1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for Clp 1.17.3.
4#
5# Report bugs to <clp@list.coin-or.org>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76	 X"$0" : 'X\(//\)$' \| \
77	 X"$0" : 'X\(/\)$' \| \
78	 .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
82  	  /^X\/\(\/\).*/{ s//\1/; q; }
83  	  s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144	 case $as_dir in
145	 /*)
146	   if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154	     CONFIG_SHELL=$as_dir/$as_base
155	     export CONFIG_SHELL
156	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157	   fi;;
158	 esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='	' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS=" 	$as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337	 test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349	 test "X$echo_testing_string" = "X$echo_test_string"; then
350	# Cool, printf works
351	:
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353	   test "X$echo_testing_string" = 'X\t' &&
354	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355	   test "X$echo_testing_string" = "X$echo_test_string"; then
356	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357	export CONFIG_SHELL
358	SHELL="$CONFIG_SHELL"
359	export SHELL
360	echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362	   test "X$echo_testing_string" = 'X\t' &&
363	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364	   test "X$echo_testing_string" = "X$echo_test_string"; then
365	echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367	# maybe with a smaller string...
368	prev=:
369
370	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372	  then
373	    break
374	  fi
375	  prev="$cmd"
376	done
377
378	if test "$prev" != 'sed 50q "$0"'; then
379	  echo_test_string=`eval $prev`
380	  export echo_test_string
381	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382	else
383	  # Oops.  We lost completely, so just stick with echo.
384	  echo=echo
385	fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='Clp'
431PACKAGE_TARNAME='clp'
432PACKAGE_VERSION='1.17.3'
433PACKAGE_STRING='Clp 1.17.3'
434PACKAGE_BUGREPORT='clp@list.coin-or.org'
435
436ac_unique_file="src/ClpSimplex.cpp"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion CLP_SVN_REV CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX COIN_CXX_IS_CL_TRUE COIN_CXX_IS_CL_FALSE MPICXX EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS DEPENDENCY_LINKING_TRUE DEPENDENCY_LINKING_FALSE LT_LDFLAGS PKG_CONFIG ac_ct_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED COINUTILS_LIBS COINUTILS_CFLAGS COINUTILS_DATA COINUTILS_DEPENDENCIES COINUTILS_LIBS_INSTALLED COINUTILS_CFLAGS_INSTALLED COINUTILS_DATA_INSTALLED CLPLIB_CFLAGS CLPLIB_LIBS CLPLIB_PCLIBS CLPLIB_PCREQUIRES CLPLIB_DEPENDENCIES CLPLIB_CFLAGS_INSTALLED CLPLIB_LIBS_INSTALLED COIN_HAS_COINUTILS_TRUE COIN_HAS_COINUTILS_FALSE OSI_LIBS OSI_CFLAGS OSI_DATA OSI_DEPENDENCIES OSI_LIBS_INSTALLED OSI_CFLAGS_INSTALLED OSI_DATA_INSTALLED OSICLPLIB_CFLAGS OSICLPLIB_LIBS OSICLPLIB_PCLIBS OSICLPLIB_PCREQUIRES OSICLPLIB_DEPENDENCIES OSICLPLIB_CFLAGS_INSTALLED OSICLPLIB_LIBS_INSTALLED COIN_HAS_OSI_TRUE COIN_HAS_OSI_FALSE OSITESTS_LIBS OSITESTS_CFLAGS OSITESTS_DATA OSITESTS_DEPENDENCIES OSITESTS_LIBS_INSTALLED OSITESTS_CFLAGS_INSTALLED OSITESTS_DATA_INSTALLED COIN_HAS_OSITESTS_TRUE COIN_HAS_OSITESTS_FALSE SAMPLE_LIBS SAMPLE_CFLAGS SAMPLE_DATA SAMPLE_DEPENDENCIES SAMPLE_LIBS_INSTALLED SAMPLE_CFLAGS_INSTALLED SAMPLE_DATA_INSTALLED COIN_HAS_SAMPLE_TRUE COIN_HAS_SAMPLE_FALSE NETLIB_LIBS NETLIB_CFLAGS NETLIB_DATA NETLIB_DEPENDENCIES NETLIB_LIBS_INSTALLED NETLIB_CFLAGS_INSTALLED NETLIB_DATA_INSTALLED COIN_HAS_NETLIB_TRUE COIN_HAS_NETLIB_FALSE COIN_HAS_ABC_TRUE COIN_HAS_ABC_FALSE AMDINCDIR AMDLIB COIN_HAS_AMD_TRUE COIN_HAS_AMD_FALSE CHOLMODINCDIR CHOLMODLIB COIN_HAS_CHOLMOD_TRUE COIN_HAS_CHOLMOD_FALSE GLPK_LIBS GLPK_CFLAGS GLPK_DATA GLPK_DEPENDENCIES GLPK_LIBS_INSTALLED GLPK_CFLAGS_INSTALLED GLPK_DATA_INSTALLED COIN_HAS_GLPK_TRUE COIN_HAS_GLPK_FALSE MUMPS_LIBS MUMPS_CFLAGS MUMPS_DATA MUMPS_DEPENDENCIES MUMPS_LIBS_INSTALLED MUMPS_CFLAGS_INSTALLED MUMPS_DATA_INSTALLED COIN_HAS_MUMPS_TRUE COIN_HAS_MUMPS_FALSE ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS MPIF77 FLIBS BLAS_LIBS BLAS_CFLAGS BLAS_DATA BLAS_DEPENDENCIES BLAS_LIBS_INSTALLED BLAS_CFLAGS_INSTALLED BLAS_DATA_INSTALLED COIN_HAS_BLAS_TRUE COIN_HAS_BLAS_FALSE COIN_HAS_WSMP_TRUE COIN_HAS_WSMP_FALSE ASL_LIBS ASL_CFLAGS ASL_DATA ASL_DEPENDENCIES ASL_LIBS_INSTALLED ASL_CFLAGS_INSTALLED ASL_DATA_INSTALLED COIN_HAS_ASL_TRUE COIN_HAS_ASL_FALSE coin_have_doxygen coin_have_latex coin_doxy_usedot coin_doxy_tagname coin_doxy_logname COIN_HAS_DOXYGEN_TRUE COIN_HAS_DOXYGEN_FALSE COIN_HAS_LATEX_TRUE COIN_HAS_LATEX_FALSE coin_doxy_tagfiles coin_doxy_excludes LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834	      localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874	 X"$0" : 'X\(//\)[^/]' \| \
875	 X"$0" : 'X\(//\)$' \| \
876	 X"$0" : 'X\(/\)' \| \
877	 .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881  	  /^X\(\/\/\)$/{ s//\1/; q; }
882  	  /^X\(\/\).*/{ s//\1/; q; }
883  	  s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_CXXDEFS_set=${CXXDEFS+set}
953ac_env_CXXDEFS_value=$CXXDEFS
954ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
955ac_cv_env_CXXDEFS_value=$CXXDEFS
956ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
957ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
958ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
959ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
960ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
961ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
962ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
963ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
964ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
965ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
966ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
967ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
968ac_env_CXX_set=${CXX+set}
969ac_env_CXX_value=$CXX
970ac_cv_env_CXX_set=${CXX+set}
971ac_cv_env_CXX_value=$CXX
972ac_env_CXXFLAGS_set=${CXXFLAGS+set}
973ac_env_CXXFLAGS_value=$CXXFLAGS
974ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
975ac_cv_env_CXXFLAGS_value=$CXXFLAGS
976ac_env_MPICXX_set=${MPICXX+set}
977ac_env_MPICXX_value=$MPICXX
978ac_cv_env_MPICXX_set=${MPICXX+set}
979ac_cv_env_MPICXX_value=$MPICXX
980ac_env_CPP_set=${CPP+set}
981ac_env_CPP_value=$CPP
982ac_cv_env_CPP_set=${CPP+set}
983ac_cv_env_CPP_value=$CPP
984ac_env_CXXCPP_set=${CXXCPP+set}
985ac_env_CXXCPP_value=$CXXCPP
986ac_cv_env_CXXCPP_set=${CXXCPP+set}
987ac_cv_env_CXXCPP_value=$CXXCPP
988ac_env_F77_set=${F77+set}
989ac_env_F77_value=$F77
990ac_cv_env_F77_set=${F77+set}
991ac_cv_env_F77_value=$F77
992ac_env_FFLAGS_set=${FFLAGS+set}
993ac_env_FFLAGS_value=$FFLAGS
994ac_cv_env_FFLAGS_set=${FFLAGS+set}
995ac_cv_env_FFLAGS_value=$FFLAGS
996ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
997ac_env_PKG_CONFIG_value=$PKG_CONFIG
998ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
999ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
1000ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
1001ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
1002ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
1003ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
1004ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
1005ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
1006ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
1007ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
1008ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
1009ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
1010ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
1011ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
1012ac_env_MPIF77_set=${MPIF77+set}
1013ac_env_MPIF77_value=$MPIF77
1014ac_cv_env_MPIF77_set=${MPIF77+set}
1015ac_cv_env_MPIF77_value=$MPIF77
1016
1017#
1018# Report the --help message.
1019#
1020if test "$ac_init_help" = "long"; then
1021  # Omit some internal or obsolete options to make the list less imposing.
1022  # This message is too long to be a string in the A/UX 3.1 sh.
1023  cat <<_ACEOF
1024\`configure' configures Clp 1.17.3 to adapt to many kinds of systems.
1025
1026Usage: $0 [OPTION]... [VAR=VALUE]...
1027
1028To assign environment variables (e.g., CC, CFLAGS...), specify them as
1029VAR=VALUE.  See below for descriptions of some of the useful variables.
1030
1031Defaults for the options are specified in brackets.
1032
1033Configuration:
1034  -h, --help              display this help and exit
1035      --help=short        display options specific to this package
1036      --help=recursive    display the short help of all the included packages
1037  -V, --version           display version information and exit
1038  -q, --quiet, --silent   do not print \`checking...' messages
1039      --cache-file=FILE   cache test results in FILE [disabled]
1040  -C, --config-cache      alias for \`--cache-file=config.cache'
1041  -n, --no-create         do not create output files
1042      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1043
1044_ACEOF
1045
1046  cat <<_ACEOF
1047Installation directories:
1048  --prefix=PREFIX         install architecture-independent files in PREFIX
1049			  [$ac_default_prefix]
1050  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1051			  [PREFIX]
1052
1053By default, \`make install' will install all the files in
1054\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1055an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1056for instance \`--prefix=\$HOME'.
1057
1058For better control, use the options below.
1059
1060Fine tuning of the installation directories:
1061  --bindir=DIR           user executables [EPREFIX/bin]
1062  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1063  --libexecdir=DIR       program executables [EPREFIX/libexec]
1064  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1065  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1066  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1067  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1068  --libdir=DIR           object code libraries [EPREFIX/lib]
1069  --includedir=DIR       C header files [PREFIX/include]
1070  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1071  --infodir=DIR          info documentation [PREFIX/info]
1072  --mandir=DIR           man documentation [PREFIX/man]
1073_ACEOF
1074
1075  cat <<\_ACEOF
1076
1077Program names:
1078  --program-prefix=PREFIX            prepend PREFIX to installed program names
1079  --program-suffix=SUFFIX            append SUFFIX to installed program names
1080  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1081
1082System types:
1083  --build=BUILD     configure for building on BUILD [guessed]
1084  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1085_ACEOF
1086fi
1087
1088if test -n "$ac_init_help"; then
1089  case $ac_init_help in
1090     short | recursive ) echo "Configuration of Clp 1.17.3:";;
1091   esac
1092  cat <<\_ACEOF
1093
1094Optional Features:
1095  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1096  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1097  --enable-debug          compile all projects with debug options tests
1098                          (implies --disable-shared)
1099  --enable-debug-clp compile project Clp with debug compiler flags
1100
1101  --enable-msvc           Prefer (i)cl/ifort/link over GNU on MinGW/Cygwin.
1102  --enable-static[=PKGS]
1103                          build static libraries [default=no]
1104  --disable-dependency-tracking  speeds up one-time build
1105  --enable-dependency-tracking   do not reject slow dependency extractors
1106  --enable-maintainer-mode  enable make rules and dependencies not useful
1107			  (and sometimes confusing) to the casual installer
1108  --enable-shared[=PKGS]
1109                          build shared libraries [default=yes]
1110  --enable-fast-install[=PKGS]
1111                          optimize for fast installation [default=yes]
1112  --disable-libtool-lock  avoid locking (might break parallel builds)
1113  --disable-dependency-linking
1114                          disable linking library dependencies into shared
1115                          libraries
1116  --disable-pkg-config    disable use of pkg-config (if available)
1117  --disable-interpackage-dependencies
1118                          disables deduction of Makefile dependencies from
1119                          package linker flags
1120  --enable-aboca          enables build of Aboca solver (set to 1,2,3,4)
1121  --disable-amd-libcheck skip the link check at configuration time
1122  --disable-cholmod-libcheck
1123                          skip the link check at configuration time
1124  --enable-gnu-packages   compile with GNU packages (disabled by default)
1125
1126Optional Packages:
1127  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1128  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1129  --with-clp-verbosity specify the debug verbosity level for project Clp
1130  --with-clp-checklevel specify the sanity check level for project Clp
1131  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1132  --with-pic              try to use only PIC/non-PIC objects [default=use
1133                          both]
1134  --with-tags[=TAGS]
1135                          include additional configurations [automatic]
1136  --with-coin-instdir     prefix of installation directory for precompiled
1137                          COIN packages
1138
1139  --with-coinutils-lib linker flags for using package CoinUtils
1140  --with-coinutils-incdir directory with header files for using package
1141                          CoinUtils
1142  --with-coinutils-datadir
1143                          directory with data files for using package
1144                          CoinUtils
1145  --with-osi-lib linker flags for using package Osi
1146  --with-osi-incdir directory with header files for using package Osi
1147  --with-osi-datadir directory with data files for using package Osi
1148  --with-ositests-lib linker flags for using package OsiTests
1149  --with-ositests-incdir directory with header files for using package
1150                          OsiTests
1151  --with-ositests-datadir directory with data files for using package OsiTests
1152  --with-sample-lib linker flags for using package Sample
1153  --with-sample-incdir directory with header files for using package Sample
1154  --with-sample-datadir directory with data files for using package Sample
1155  --with-netlib-lib linker flags for using package Netlib
1156  --with-netlib-incdir directory with header files for using package Netlib
1157  --with-netlib-datadir directory with data files for using package Netlib
1158  --with-amd-incdir specify the header file directory for library AMD
1159  --with-amd-lib specify the flags used to link with the library AMD
1160  --with-cholmod-incdir specify the header file directory for library CHOLMOD
1161  --with-cholmod-lib specify the flags used to link with the library CHOLMOD
1162  --with-glpk-lib linker flags for using package Glpk
1163  --with-glpk-incdir directory with header files for using package Glpk
1164  --with-glpk-datadir directory with data files for using package Glpk
1165  --with-mumps-lib linker flags for using package Mumps
1166  --with-mumps-incdir directory with header files for using package Mumps
1167  --with-mumps-datadir directory with data files for using package Mumps
1168  --with-wsmp             specify WSMP library
1169  --with-blas             specify BLAS library (or BUILD to enforce use of
1170                          ThirdParty/Blas)
1171  --with-blas-lib linker flags for using package Blas
1172  --with-blas-incdir directory with header files for using package Blas
1173  --with-blas-datadir directory with data files for using package Blas
1174  --with-asl-lib linker flags for using package ASL
1175  --with-asl-incdir directory with header files for using package ASL
1176  --with-asl-datadir directory with data files for using package ASL
1177  --with-dot              use dot (from graphviz) when creating documentation
1178                          with doxygen if available; --without-dot to disable
1179
1180Some influential environment variables:
1181  CDEFS       Additional -D flags to be used when compiling C code.
1182  ADD_CFLAGS  Additional C compiler options
1183  DBG_CFLAGS  Debug C compiler options
1184  OPT_CFLAGS  Optimize C compiler options
1185  CC          C compiler command
1186  CFLAGS      C compiler flags
1187  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1188              nonstandard directory <lib dir>
1189  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1190              headers in a nonstandard directory <include dir>
1191  MPICC       C MPI Compiler
1192  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1193  ADD_CXXFLAGS
1194              Additional C++ compiler options
1195  DBG_CXXFLAGS
1196              Debug C++ compiler options
1197  OPT_CXXFLAGS
1198              Optimize C++ compiler options
1199  CXX         C++ compiler command
1200  CXXFLAGS    C++ compiler flags
1201  MPICXX      C++ MPI Compiler
1202  CPP         C preprocessor
1203  CXXCPP      C++ preprocessor
1204  F77         Fortran 77 compiler command
1205  FFLAGS      Fortran 77 compiler flags
1206  PKG_CONFIG  path to pkg-config utility
1207  ADD_FFLAGS  Additional Fortran compiler options
1208  DBG_FFLAGS  Debug Fortran compiler options
1209  OPT_FFLAGS  Optimize Fortran compiler options
1210  MPIF77      Fortran MPI Compiler
1211
1212Use these variables to override the choices made by `configure' or to help
1213it to find libraries and programs with nonstandard names/locations.
1214
1215Report bugs to <clp@list.coin-or.org>.
1216_ACEOF
1217fi
1218
1219if test "$ac_init_help" = "recursive"; then
1220  # If there are subdirs, report their specific --help.
1221  ac_popdir=`pwd`
1222  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1223    test -d $ac_dir || continue
1224    ac_builddir=.
1225
1226if test "$ac_dir" != .; then
1227  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1228  # A "../" for each directory in $ac_dir_suffix.
1229  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1230else
1231  ac_dir_suffix= ac_top_builddir=
1232fi
1233
1234case $srcdir in
1235  .)  # No --srcdir option.  We are building in place.
1236    ac_srcdir=.
1237    if test -z "$ac_top_builddir"; then
1238       ac_top_srcdir=.
1239    else
1240       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1241    fi ;;
1242  [\\/]* | ?:[\\/]* )  # Absolute path.
1243    ac_srcdir=$srcdir$ac_dir_suffix;
1244    ac_top_srcdir=$srcdir ;;
1245  *) # Relative path.
1246    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1247    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1248esac
1249
1250# Do not use `cd foo && pwd` to compute absolute paths, because
1251# the directories may not exist.
1252case `pwd` in
1253.) ac_abs_builddir="$ac_dir";;
1254*)
1255  case "$ac_dir" in
1256  .) ac_abs_builddir=`pwd`;;
1257  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1258  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1259  esac;;
1260esac
1261case $ac_abs_builddir in
1262.) ac_abs_top_builddir=${ac_top_builddir}.;;
1263*)
1264  case ${ac_top_builddir}. in
1265  .) ac_abs_top_builddir=$ac_abs_builddir;;
1266  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1267  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1268  esac;;
1269esac
1270case $ac_abs_builddir in
1271.) ac_abs_srcdir=$ac_srcdir;;
1272*)
1273  case $ac_srcdir in
1274  .) ac_abs_srcdir=$ac_abs_builddir;;
1275  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1276  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1277  esac;;
1278esac
1279case $ac_abs_builddir in
1280.) ac_abs_top_srcdir=$ac_top_srcdir;;
1281*)
1282  case $ac_top_srcdir in
1283  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1284  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1285  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1286  esac;;
1287esac
1288
1289    cd $ac_dir
1290    # Check for guested configure; otherwise get Cygnus style configure.
1291    if test -f $ac_srcdir/configure.gnu; then
1292      echo
1293      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1294    elif test -f $ac_srcdir/configure; then
1295      echo
1296      $SHELL $ac_srcdir/configure  --help=recursive
1297    elif test -f $ac_srcdir/configure.ac ||
1298	   test -f $ac_srcdir/configure.in; then
1299      echo
1300      $ac_configure --help
1301    else
1302      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1303    fi
1304    cd $ac_popdir
1305  done
1306fi
1307
1308test -n "$ac_init_help" && exit 0
1309if $ac_init_version; then
1310  cat <<\_ACEOF
1311Clp configure 1.17.3
1312generated by GNU Autoconf 2.59
1313
1314Copyright (C) 2003 Free Software Foundation, Inc.
1315This configure script is free software; the Free Software Foundation
1316gives unlimited permission to copy, distribute and modify it.
1317
1318
1319Copyright 2006 International Business Machines and others.
1320All Rights Reserved.
1321This file is part of the open source package Coin which is distributed
1322under the Eclipse Public License.
1323_ACEOF
1324  exit 0
1325fi
1326exec 5>config.log
1327cat >&5 <<_ACEOF
1328This file contains any messages produced by compilers while
1329running configure, to aid debugging if configure makes a mistake.
1330
1331It was created by Clp $as_me 1.17.3, which was
1332generated by GNU Autoconf 2.59.  Invocation command line was
1333
1334  $ $0 $@
1335
1336_ACEOF
1337{
1338cat <<_ASUNAME
1339## --------- ##
1340## Platform. ##
1341## --------- ##
1342
1343hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1344uname -m = `(uname -m) 2>/dev/null || echo unknown`
1345uname -r = `(uname -r) 2>/dev/null || echo unknown`
1346uname -s = `(uname -s) 2>/dev/null || echo unknown`
1347uname -v = `(uname -v) 2>/dev/null || echo unknown`
1348
1349/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1350/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1351
1352/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1353/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1354/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1355hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1356/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1357/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1358/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1359
1360_ASUNAME
1361
1362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1363for as_dir in $PATH
1364do
1365  IFS=$as_save_IFS
1366  test -z "$as_dir" && as_dir=.
1367  echo "PATH: $as_dir"
1368done
1369
1370} >&5
1371
1372cat >&5 <<_ACEOF
1373
1374
1375## ----------- ##
1376## Core tests. ##
1377## ----------- ##
1378
1379_ACEOF
1380
1381
1382# Keep a trace of the command line.
1383# Strip out --no-create and --no-recursion so they do not pile up.
1384# Strip out --silent because we don't want to record it for future runs.
1385# Also quote any args containing shell meta-characters.
1386# Make two passes to allow for proper duplicate-argument suppression.
1387ac_configure_args=
1388ac_configure_args0=
1389ac_configure_args1=
1390ac_sep=
1391ac_must_keep_next=false
1392for ac_pass in 1 2
1393do
1394  for ac_arg
1395  do
1396    case $ac_arg in
1397    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1398    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1399    | -silent | --silent | --silen | --sile | --sil)
1400      continue ;;
1401    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1402      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1403    esac
1404    case $ac_pass in
1405    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1406    2)
1407      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1408      if test $ac_must_keep_next = true; then
1409	ac_must_keep_next=false # Got value, back to normal.
1410      else
1411	case $ac_arg in
1412	  *=* | --config-cache | -C | -disable-* | --disable-* \
1413	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1414	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1415	  | -with-* | --with-* | -without-* | --without-* | --x)
1416	    case "$ac_configure_args0 " in
1417	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1418	    esac
1419	    ;;
1420	  -* ) ac_must_keep_next=true ;;
1421	esac
1422      fi
1423      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1424      # Get rid of the leading space.
1425      ac_sep=" "
1426      ;;
1427    esac
1428  done
1429done
1430$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1431$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1432
1433# When interrupted or exit'd, cleanup temporary files, and complete
1434# config.log.  We remove comments because anyway the quotes in there
1435# would cause problems or look ugly.
1436# WARNING: Be sure not to use single quotes in there, as some shells,
1437# such as our DU 5.0 friend, will then `close' the trap.
1438trap 'exit_status=$?
1439  # Save into config.log some information that might help in debugging.
1440  {
1441    echo
1442
1443    cat <<\_ASBOX
1444## ---------------- ##
1445## Cache variables. ##
1446## ---------------- ##
1447_ASBOX
1448    echo
1449    # The following way of writing the cache mishandles newlines in values,
1450{
1451  (set) 2>&1 |
1452    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1453    *ac_space=\ *)
1454      sed -n \
1455	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1456	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1457      ;;
1458    *)
1459      sed -n \
1460	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1461      ;;
1462    esac;
1463}
1464    echo
1465
1466    cat <<\_ASBOX
1467## ----------------- ##
1468## Output variables. ##
1469## ----------------- ##
1470_ASBOX
1471    echo
1472    for ac_var in $ac_subst_vars
1473    do
1474      eval ac_val=$`echo $ac_var`
1475      echo "$ac_var='"'"'$ac_val'"'"'"
1476    done | sort
1477    echo
1478
1479    if test -n "$ac_subst_files"; then
1480      cat <<\_ASBOX
1481## ------------- ##
1482## Output files. ##
1483## ------------- ##
1484_ASBOX
1485      echo
1486      for ac_var in $ac_subst_files
1487      do
1488	eval ac_val=$`echo $ac_var`
1489	echo "$ac_var='"'"'$ac_val'"'"'"
1490      done | sort
1491      echo
1492    fi
1493
1494    if test -s confdefs.h; then
1495      cat <<\_ASBOX
1496## ----------- ##
1497## confdefs.h. ##
1498## ----------- ##
1499_ASBOX
1500      echo
1501      sed "/^$/d" confdefs.h | sort
1502      echo
1503    fi
1504    test "$ac_signal" != 0 &&
1505      echo "$as_me: caught signal $ac_signal"
1506    echo "$as_me: exit $exit_status"
1507  } >&5
1508  rm -f core *.core &&
1509  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1510    exit $exit_status
1511     ' 0
1512for ac_signal in 1 2 13 15; do
1513  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1514done
1515ac_signal=0
1516
1517# confdefs.h avoids OS command line length limits that DEFS can exceed.
1518rm -rf conftest* confdefs.h
1519# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1520echo >confdefs.h
1521
1522# Predefined preprocessor variables.
1523
1524cat >>confdefs.h <<_ACEOF
1525#define PACKAGE_NAME "$PACKAGE_NAME"
1526_ACEOF
1527
1528
1529cat >>confdefs.h <<_ACEOF
1530#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1531_ACEOF
1532
1533
1534cat >>confdefs.h <<_ACEOF
1535#define PACKAGE_VERSION "$PACKAGE_VERSION"
1536_ACEOF
1537
1538
1539cat >>confdefs.h <<_ACEOF
1540#define PACKAGE_STRING "$PACKAGE_STRING"
1541_ACEOF
1542
1543
1544cat >>confdefs.h <<_ACEOF
1545#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1546_ACEOF
1547
1548
1549# Let the site file select an alternate cache file if it wants to.
1550# Prefer explicitly selected file to automatically selected ones.
1551if test -z "$CONFIG_SITE"; then
1552  if test "x$prefix" != xNONE; then
1553    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1554  else
1555    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1556  fi
1557fi
1558for ac_site_file in $CONFIG_SITE; do
1559  if test -r "$ac_site_file"; then
1560    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1561echo "$as_me: loading site script $ac_site_file" >&6;}
1562    sed 's/^/| /' "$ac_site_file" >&5
1563    . "$ac_site_file"
1564  fi
1565done
1566
1567if test -r "$cache_file"; then
1568  # Some versions of bash will fail to source /dev/null (special
1569  # files actually), so we avoid doing that.
1570  if test -f "$cache_file"; then
1571    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1572echo "$as_me: loading cache $cache_file" >&6;}
1573    case $cache_file in
1574      [\\/]* | ?:[\\/]* ) . $cache_file;;
1575      *)                      . ./$cache_file;;
1576    esac
1577  fi
1578else
1579  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1580echo "$as_me: creating cache $cache_file" >&6;}
1581  >$cache_file
1582fi
1583
1584# Check that the precious variables saved in the cache have kept the same
1585# value.
1586ac_cache_corrupted=false
1587for ac_var in `(set) 2>&1 |
1588	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1589  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1590  eval ac_new_set=\$ac_env_${ac_var}_set
1591  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1592  eval ac_new_val="\$ac_env_${ac_var}_value"
1593  case $ac_old_set,$ac_new_set in
1594    set,)
1595      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1596echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1597      ac_cache_corrupted=: ;;
1598    ,set)
1599      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1600echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1601      ac_cache_corrupted=: ;;
1602    ,);;
1603    *)
1604      if test "x$ac_old_val" != "x$ac_new_val"; then
1605	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1606echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1607	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1608echo "$as_me:   former value:  $ac_old_val" >&2;}
1609	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1610echo "$as_me:   current value: $ac_new_val" >&2;}
1611	ac_cache_corrupted=:
1612      fi;;
1613  esac
1614  # Pass precious variables to config.status.
1615  if test "$ac_new_set" = set; then
1616    case $ac_new_val in
1617    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1618      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1619    *) ac_arg=$ac_var=$ac_new_val ;;
1620    esac
1621    case " $ac_configure_args " in
1622      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1623      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1624    esac
1625  fi
1626done
1627if $ac_cache_corrupted; then
1628  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1629echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1630  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1631echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1632   { (exit 1); exit 1; }; }
1633fi
1634
1635ac_ext=c
1636ac_cpp='$CPP $CPPFLAGS'
1637ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1638ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1639ac_compiler_gnu=$ac_cv_c_compiler_gnu
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670# List one file in the package so that the configure script can test
1671# whether the package is actually there
1672
1673
1674# Where should everything be installed by default?  Here, we want it
1675# to be installed directly in 'bin', 'lib', 'include' subdirectories
1676# of the directory where configure is run.  The default would be
1677# /usr/local.
1678
1679
1680#############################################################################
1681#                         Standard build tool stuff                         #
1682#############################################################################
1683
1684# Get the system type
1685ac_aux_dir=
1686for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1687  if test -f $ac_dir/install-sh; then
1688    ac_aux_dir=$ac_dir
1689    ac_install_sh="$ac_aux_dir/install-sh -c"
1690    break
1691  elif test -f $ac_dir/install.sh; then
1692    ac_aux_dir=$ac_dir
1693    ac_install_sh="$ac_aux_dir/install.sh -c"
1694    break
1695  elif test -f $ac_dir/shtool; then
1696    ac_aux_dir=$ac_dir
1697    ac_install_sh="$ac_aux_dir/shtool install -c"
1698    break
1699  fi
1700done
1701if test -z "$ac_aux_dir"; then
1702  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1703echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1704   { (exit 1); exit 1; }; }
1705fi
1706ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1707ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1708ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1709
1710# Make sure we can run config.sub.
1711$ac_config_sub sun4 >/dev/null 2>&1 ||
1712  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1713echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1714   { (exit 1); exit 1; }; }
1715
1716echo "$as_me:$LINENO: checking build system type" >&5
1717echo $ECHO_N "checking build system type... $ECHO_C" >&6
1718if test "${ac_cv_build+set}" = set; then
1719  echo $ECHO_N "(cached) $ECHO_C" >&6
1720else
1721  ac_cv_build_alias=$build_alias
1722test -z "$ac_cv_build_alias" &&
1723  ac_cv_build_alias=`$ac_config_guess`
1724test -z "$ac_cv_build_alias" &&
1725  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1726echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1727   { (exit 1); exit 1; }; }
1728ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1729  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1730echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1731   { (exit 1); exit 1; }; }
1732
1733fi
1734echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1735echo "${ECHO_T}$ac_cv_build" >&6
1736build=$ac_cv_build
1737build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1738build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1739build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1740
1741
1742
1743# If this project depends on external projects, the Externals file in
1744# the source root directory contains definition of where to find those
1745# externals.  The following macro ensures that those externals are
1746# retrieved by svn if they are not there yet.
1747
1748# As backup, we make sure we don't loose an FLIBS if it has been set
1749# by the user
1750save_FLIBS="$FLIBS"
1751
1752# A useful makefile conditional that is always false
1753
1754
1755if false; then
1756  ALWAYS_FALSE_TRUE=
1757  ALWAYS_FALSE_FALSE='#'
1758else
1759  ALWAYS_FALSE_TRUE='#'
1760  ALWAYS_FALSE_FALSE=
1761fi
1762
1763
1764# We set the following variable so that we know later in AC_COIN_FINALIZE
1765# that we are in a project main directory
1766coin_projectdir=yes
1767
1768# Set the project's version numbers
1769
1770
1771cat >>confdefs.h <<_ACEOF
1772#define CLP_VERSION "$PACKAGE_VERSION"
1773_ACEOF
1774
1775
1776  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1777  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1778  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1779  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1780  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1781  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1782
1783cat >>confdefs.h <<_ACEOF
1784#define CLP_VERSION_MAJOR $coin_majorver
1785_ACEOF
1786
1787
1788cat >>confdefs.h <<_ACEOF
1789#define CLP_VERSION_MINOR $coin_minorver
1790_ACEOF
1791
1792
1793cat >>confdefs.h <<_ACEOF
1794#define CLP_VERSION_RELEASE $coin_releasever
1795_ACEOF
1796
1797
1798  # We use the following variable to have a string with the upper case
1799  # version of the project name
1800  COIN_PRJCT=CLP
1801
1802  # Set the project's SVN revision number. The complicated sed expression
1803  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1804  # as a single number.
1805  # Extract the first word of "svnversion", so it can be a program name with args.
1806set dummy svnversion; ac_word=$2
1807echo "$as_me:$LINENO: checking for $ac_word" >&5
1808echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1809if test "${ac_cv_prog_have_svnversion+set}" = set; then
1810  echo $ECHO_N "(cached) $ECHO_C" >&6
1811else
1812  if test -n "$have_svnversion"; then
1813  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1814else
1815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1816for as_dir in $PATH
1817do
1818  IFS=$as_save_IFS
1819  test -z "$as_dir" && as_dir=.
1820  for ac_exec_ext in '' $ac_executable_extensions; do
1821  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1822    ac_cv_prog_have_svnversion="yes"
1823    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1824    break 2
1825  fi
1826done
1827done
1828
1829  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1830fi
1831fi
1832have_svnversion=$ac_cv_prog_have_svnversion
1833if test -n "$have_svnversion"; then
1834  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1835echo "${ECHO_T}$have_svnversion" >&6
1836else
1837  echo "$as_me:$LINENO: result: no" >&5
1838echo "${ECHO_T}no" >&6
1839fi
1840
1841  if test "x$have_svnversion" = xyes; then
1842
1843    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1844    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
1845      CLP_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1846
1847cat >>confdefs.h <<_ACEOF
1848#define CLP_SVN_REV $CLP_SVN_REV
1849_ACEOF
1850
1851    fi
1852  fi
1853
1854
1855
1856# Capture libtool library version, if given.
1857 coin_libversion=15:3:14
1858
1859
1860
1861
1862# Check if user wants to produce debugging code
1863
1864echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1865echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1866
1867# Check whether --enable-debug or --disable-debug was given.
1868if test "${enable_debug+set}" = set; then
1869  enableval="$enable_debug"
1870  case "${enableval}" in
1871   yes) coin_debug_compile=true
1872        if test "${enable_shared+set}" = set; then :; else
1873          enable_shared=no
1874        fi
1875        ;;
1876   no)  coin_debug_compile=false
1877        ;;
1878   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1879echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1880   { (exit 1); exit 1; }; }
1881        ;;
1882esac
1883else
1884  coin_debug_compile=false
1885fi;
1886
1887# Check whether --enable-debug-clp or --disable-debug-clp was given.
1888if test "${enable_debug_clp+set}" = set; then
1889  enableval="$enable_debug_clp"
1890  case "${enableval}" in
1891    yes) coin_debug_compile=true
1892         ;;
1893    no)  coin_debug_compile=false
1894         ;;
1895    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-clp" >&5
1896echo "$as_me: error: bad value ${enableval} for --enable-debug-clp" >&2;}
1897   { (exit 1); exit 1; }; }
1898         ;;
1899 esac
1900else
1901  :
1902fi;
1903
1904 # m4_ifvaln([Clp],
1905
1906if test $coin_debug_compile = true; then
1907  echo "$as_me:$LINENO: result: yes" >&5
1908echo "${ECHO_T}yes" >&6
1909else
1910  echo "$as_me:$LINENO: result: no" >&5
1911echo "${ECHO_T}no" >&6
1912fi
1913
1914
1915# Check whether --with-clp-verbosity or --without-clp-verbosity was given.
1916if test "${with_clp_verbosity+set}" = set; then
1917  withval="$with_clp_verbosity"
1918  if test "$withval" = yes; then
1919                withval=1
1920              fi
1921              coin_clp_verbosity=$withval
1922else
1923  coin_clp_verbosity=0
1924fi;
1925
1926cat >>confdefs.h <<_ACEOF
1927#define COIN_CLP_VERBOSITY $coin_clp_verbosity
1928_ACEOF
1929
1930
1931
1932# Check whether --with-clp-checklevel or --without-clp-checklevel was given.
1933if test "${with_clp_checklevel+set}" = set; then
1934  withval="$with_clp_checklevel"
1935  if test "$withval" = yes; then
1936                withval=1
1937              fi
1938              coin_clp_checklevel=$withval
1939else
1940  coin_clp_checklevel=0
1941fi;
1942
1943cat >>confdefs.h <<_ACEOF
1944#define COIN_CLP_CHECKLEVEL $coin_clp_checklevel
1945_ACEOF
1946
1947
1948 # m4_ifvaln([Clp],
1949
1950
1951
1952# Get the name of the C++ compiler and appropriate compiler options
1953
1954
1955  # for backward compatibility
1956  # Check whether --enable-doscompile or --disable-doscompile was given.
1957if test "${enable_doscompile+set}" = set; then
1958  enableval="$enable_doscompile"
1959  enable_doscompile=$enableval
1960else
1961  enable_doscompile=no
1962fi;
1963
1964  # Check whether --enable-msvc or --disable-msvc was given.
1965if test "${enable_msvc+set}" = set; then
1966  enableval="$enable_msvc"
1967  enable_msvc=$enableval
1968else
1969  enable_msvc=no
1970     if test "$enable_doscompile" = msvc ; then
1971       enable_msvc=yes
1972     elif test "$enable_doscompile" != no ; then
1973       { { echo "$as_me:$LINENO: error: --enable-doscompile=$enable_doscompile not supported anymore." >&5
1974echo "$as_me: error: --enable-doscompile=$enable_doscompile not supported anymore." >&2;}
1975   { (exit 1); exit 1; }; }
1976     fi
1977
1978fi;
1979
1980  if test "$enable_msvc" = MD; then
1981    enable_shared=yes
1982    enable_msvc=yes
1983  fi
1984
1985  if test "$enable_msvc" = yes; then
1986    case $build in
1987      *-cygwin* | *-mingw*) ;;
1988      *) { { echo "$as_me:$LINENO: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&5
1989echo "$as_me: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&2;}
1990   { (exit 1); exit 1; }; } ;;
1991    esac
1992  fi
1993
1994
1995
1996ac_ext=c
1997ac_cpp='$CPP $CPPFLAGS'
1998ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1999ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2000ac_compiler_gnu=$ac_cv_c_compiler_gnu
2001
2002
2003# For consistency, we set the C compiler to the same value of the C++
2004# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
2005if test x"$CXX" != x; then
2006  case "$CXX" in
2007    clang* ) ;;
2008    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2009      if test x"$CC" = x; then
2010        CC="$CXX"
2011        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
2012echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
2013      fi
2014      ;;
2015  esac
2016fi
2017
2018
2019
2020
2021
2022
2023coin_has_cc=yes
2024
2025save_cflags="$CFLAGS"
2026
2027# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
2028# Depending on the user's PATH, when Studio/Workshop cc is not present we may
2029# find /usr/ucb/cc, which is almost certainly not a good choice for the C
2030# compiler. In this case, put cc after gcc.
2031
2032case $build in
2033  *-cygwin* | *-mingw*)
2034  	     if test "$enable_msvc" = yes ; then
2035	       comps="icl cl gcc"
2036	     else
2037	       comps="gcc icl cl"
2038	     fi ;;
2039  *-*-solaris*)
2040	     # Extract the first word of "cc", so it can be a program name with args.
2041set dummy cc; ac_word=$2
2042echo "$as_me:$LINENO: checking for $ac_word" >&5
2043echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2044if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
2045  echo $ECHO_N "(cached) $ECHO_C" >&6
2046else
2047  if test -n "$sol_cc_compiler"; then
2048  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
2049else
2050  ac_prog_rejected=no
2051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2052for as_dir in $PATH
2053do
2054  IFS=$as_save_IFS
2055  test -z "$as_dir" && as_dir=.
2056  for ac_exec_ext in '' $ac_executable_extensions; do
2057  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2058    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2059       ac_prog_rejected=yes
2060       continue
2061     fi
2062    ac_cv_prog_sol_cc_compiler="cc"
2063    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2064    break 2
2065  fi
2066done
2067done
2068
2069if test $ac_prog_rejected = yes; then
2070  # We found a bogon in the path, so make sure we never use it.
2071  set dummy $ac_cv_prog_sol_cc_compiler
2072  shift
2073  if test $# != 0; then
2074    # We chose a different compiler from the bogus one.
2075    # However, it has the same basename, so the bogon will be chosen
2076    # first if we set sol_cc_compiler to just the basename; use the full file name.
2077    shift
2078    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2079  fi
2080fi
2081fi
2082fi
2083sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2084if test -n "$sol_cc_compiler"; then
2085  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2086echo "${ECHO_T}$sol_cc_compiler" >&6
2087else
2088  echo "$as_me:$LINENO: result: no" >&5
2089echo "${ECHO_T}no" >&6
2090fi
2091
2092	     if test "$sol_cc_compiler" = "cc" ; then
2093	       comps="cc xlc gcc pgcc icc"
2094	     else
2095	       comps="xlc gcc pgcc icc cc"
2096	     fi
2097	     ;;
2098  *-*-darwin*) comps="clang gcc cc" ;;
2099  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2100  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2101  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2102esac
2103
2104# We delete the cached value, since the test might not have been
2105# performed with our choice of compilers earlier
2106$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2107# AC_MSG_NOTICE([C compiler candidates: $comps])
2108ac_ext=c
2109ac_cpp='$CPP $CPPFLAGS'
2110ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2111ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2112ac_compiler_gnu=$ac_cv_c_compiler_gnu
2113if test -n "$ac_tool_prefix"; then
2114  for ac_prog in $comps
2115  do
2116    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2117set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2118echo "$as_me:$LINENO: checking for $ac_word" >&5
2119echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2120if test "${ac_cv_prog_CC+set}" = set; then
2121  echo $ECHO_N "(cached) $ECHO_C" >&6
2122else
2123  if test -n "$CC"; then
2124  ac_cv_prog_CC="$CC" # Let the user override the test.
2125else
2126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2127for as_dir in $PATH
2128do
2129  IFS=$as_save_IFS
2130  test -z "$as_dir" && as_dir=.
2131  for ac_exec_ext in '' $ac_executable_extensions; do
2132  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2133    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2134    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2135    break 2
2136  fi
2137done
2138done
2139
2140fi
2141fi
2142CC=$ac_cv_prog_CC
2143if test -n "$CC"; then
2144  echo "$as_me:$LINENO: result: $CC" >&5
2145echo "${ECHO_T}$CC" >&6
2146else
2147  echo "$as_me:$LINENO: result: no" >&5
2148echo "${ECHO_T}no" >&6
2149fi
2150
2151    test -n "$CC" && break
2152  done
2153fi
2154if test -z "$CC"; then
2155  ac_ct_CC=$CC
2156  for ac_prog in $comps
2157do
2158  # Extract the first word of "$ac_prog", so it can be a program name with args.
2159set dummy $ac_prog; ac_word=$2
2160echo "$as_me:$LINENO: checking for $ac_word" >&5
2161echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2162if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2163  echo $ECHO_N "(cached) $ECHO_C" >&6
2164else
2165  if test -n "$ac_ct_CC"; then
2166  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2167else
2168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2169for as_dir in $PATH
2170do
2171  IFS=$as_save_IFS
2172  test -z "$as_dir" && as_dir=.
2173  for ac_exec_ext in '' $ac_executable_extensions; do
2174  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2175    ac_cv_prog_ac_ct_CC="$ac_prog"
2176    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2177    break 2
2178  fi
2179done
2180done
2181
2182fi
2183fi
2184ac_ct_CC=$ac_cv_prog_ac_ct_CC
2185if test -n "$ac_ct_CC"; then
2186  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2187echo "${ECHO_T}$ac_ct_CC" >&6
2188else
2189  echo "$as_me:$LINENO: result: no" >&5
2190echo "${ECHO_T}no" >&6
2191fi
2192
2193  test -n "$ac_ct_CC" && break
2194done
2195
2196  CC=$ac_ct_CC
2197fi
2198
2199
2200test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2201See \`config.log' for more details." >&5
2202echo "$as_me: error: no acceptable C compiler found in \$PATH
2203See \`config.log' for more details." >&2;}
2204   { (exit 1); exit 1; }; }
2205
2206# Provide some information about the compiler.
2207echo "$as_me:$LINENO:" \
2208     "checking for C compiler version" >&5
2209ac_compiler=`set X $ac_compile; echo $2`
2210{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2211  (eval $ac_compiler --version </dev/null >&5) 2>&5
2212  ac_status=$?
2213  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214  (exit $ac_status); }
2215{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2216  (eval $ac_compiler -v </dev/null >&5) 2>&5
2217  ac_status=$?
2218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219  (exit $ac_status); }
2220{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2221  (eval $ac_compiler -V </dev/null >&5) 2>&5
2222  ac_status=$?
2223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224  (exit $ac_status); }
2225
2226cat >conftest.$ac_ext <<_ACEOF
2227/* confdefs.h.  */
2228_ACEOF
2229cat confdefs.h >>conftest.$ac_ext
2230cat >>conftest.$ac_ext <<_ACEOF
2231/* end confdefs.h.  */
2232
2233int
2234main ()
2235{
2236
2237  ;
2238  return 0;
2239}
2240_ACEOF
2241ac_clean_files_save=$ac_clean_files
2242ac_clean_files="$ac_clean_files a.out a.exe b.out"
2243# Try to create an executable without -o first, disregard a.out.
2244# It will help us diagnose broken compilers, and finding out an intuition
2245# of exeext.
2246echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2247echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2248ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2249if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2250  (eval $ac_link_default) 2>&5
2251  ac_status=$?
2252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2253  (exit $ac_status); }; then
2254  # Find the output, starting from the most likely.  This scheme is
2255# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2256# resort.
2257
2258# Be careful to initialize this variable, since it used to be cached.
2259# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2260ac_cv_exeext=
2261# b.out is created by i960 compilers.
2262for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2263do
2264  test -f "$ac_file" || continue
2265  case $ac_file in
2266    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2267	;;
2268    conftest.$ac_ext )
2269	# This is the source file.
2270	;;
2271    [ab].out )
2272	# We found the default executable, but exeext='' is most
2273	# certainly right.
2274	break;;
2275    *.* )
2276	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2277	# FIXME: I believe we export ac_cv_exeext for Libtool,
2278	# but it would be cool to find out if it's true.  Does anybody
2279	# maintain Libtool? --akim.
2280	export ac_cv_exeext
2281	break;;
2282    * )
2283	break;;
2284  esac
2285done
2286else
2287  echo "$as_me: failed program was:" >&5
2288sed 's/^/| /' conftest.$ac_ext >&5
2289
2290{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2291See \`config.log' for more details." >&5
2292echo "$as_me: error: C compiler cannot create executables
2293See \`config.log' for more details." >&2;}
2294   { (exit 77); exit 77; }; }
2295fi
2296
2297ac_exeext=$ac_cv_exeext
2298echo "$as_me:$LINENO: result: $ac_file" >&5
2299echo "${ECHO_T}$ac_file" >&6
2300
2301# Check the compiler produces executables we can run.  If not, either
2302# the compiler is broken, or we cross compile.
2303echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2304echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2305# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2306# If not cross compiling, check that we can run a simple program.
2307if test "$cross_compiling" != yes; then
2308  if { ac_try='./$ac_file'
2309  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2310  (eval $ac_try) 2>&5
2311  ac_status=$?
2312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313  (exit $ac_status); }; }; then
2314    cross_compiling=no
2315  else
2316    if test "$cross_compiling" = maybe; then
2317	cross_compiling=yes
2318    else
2319	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2320If you meant to cross compile, use \`--host'.
2321See \`config.log' for more details." >&5
2322echo "$as_me: error: cannot run C compiled programs.
2323If you meant to cross compile, use \`--host'.
2324See \`config.log' for more details." >&2;}
2325   { (exit 1); exit 1; }; }
2326    fi
2327  fi
2328fi
2329echo "$as_me:$LINENO: result: yes" >&5
2330echo "${ECHO_T}yes" >&6
2331
2332rm -f a.out a.exe conftest$ac_cv_exeext b.out
2333ac_clean_files=$ac_clean_files_save
2334# Check the compiler produces executables we can run.  If not, either
2335# the compiler is broken, or we cross compile.
2336echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2337echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2338echo "$as_me:$LINENO: result: $cross_compiling" >&5
2339echo "${ECHO_T}$cross_compiling" >&6
2340
2341echo "$as_me:$LINENO: checking for suffix of executables" >&5
2342echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2343if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2344  (eval $ac_link) 2>&5
2345  ac_status=$?
2346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2347  (exit $ac_status); }; then
2348  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2349# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2350# work properly (i.e., refer to `conftest.exe'), while it won't with
2351# `rm'.
2352for ac_file in conftest.exe conftest conftest.*; do
2353  test -f "$ac_file" || continue
2354  case $ac_file in
2355    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2356    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2357	  export ac_cv_exeext
2358	  break;;
2359    * ) break;;
2360  esac
2361done
2362else
2363  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2364See \`config.log' for more details." >&5
2365echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2366See \`config.log' for more details." >&2;}
2367   { (exit 1); exit 1; }; }
2368fi
2369
2370rm -f conftest$ac_cv_exeext
2371echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2372echo "${ECHO_T}$ac_cv_exeext" >&6
2373
2374rm -f conftest.$ac_ext
2375EXEEXT=$ac_cv_exeext
2376ac_exeext=$EXEEXT
2377echo "$as_me:$LINENO: checking for suffix of object files" >&5
2378echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2379if test "${ac_cv_objext+set}" = set; then
2380  echo $ECHO_N "(cached) $ECHO_C" >&6
2381else
2382  cat >conftest.$ac_ext <<_ACEOF
2383/* confdefs.h.  */
2384_ACEOF
2385cat confdefs.h >>conftest.$ac_ext
2386cat >>conftest.$ac_ext <<_ACEOF
2387/* end confdefs.h.  */
2388
2389int
2390main ()
2391{
2392
2393  ;
2394  return 0;
2395}
2396_ACEOF
2397rm -f conftest.o conftest.obj
2398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2399  (eval $ac_compile) 2>&5
2400  ac_status=$?
2401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402  (exit $ac_status); }; then
2403  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2404  case $ac_file in
2405    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2406    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2407       break;;
2408  esac
2409done
2410else
2411  echo "$as_me: failed program was:" >&5
2412sed 's/^/| /' conftest.$ac_ext >&5
2413
2414{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2415See \`config.log' for more details." >&5
2416echo "$as_me: error: cannot compute suffix of object files: cannot compile
2417See \`config.log' for more details." >&2;}
2418   { (exit 1); exit 1; }; }
2419fi
2420
2421rm -f conftest.$ac_cv_objext conftest.$ac_ext
2422fi
2423echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2424echo "${ECHO_T}$ac_cv_objext" >&6
2425OBJEXT=$ac_cv_objext
2426ac_objext=$OBJEXT
2427echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2428echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2429if test "${ac_cv_c_compiler_gnu+set}" = set; then
2430  echo $ECHO_N "(cached) $ECHO_C" >&6
2431else
2432  cat >conftest.$ac_ext <<_ACEOF
2433/* confdefs.h.  */
2434_ACEOF
2435cat confdefs.h >>conftest.$ac_ext
2436cat >>conftest.$ac_ext <<_ACEOF
2437/* end confdefs.h.  */
2438
2439int
2440main ()
2441{
2442#ifndef __GNUC__
2443       choke me
2444#endif
2445
2446  ;
2447  return 0;
2448}
2449_ACEOF
2450rm -f conftest.$ac_objext
2451if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2452  (eval $ac_compile) 2>conftest.er1
2453  ac_status=$?
2454  grep -v '^ *+' conftest.er1 >conftest.err
2455  rm -f conftest.er1
2456  cat conftest.err >&5
2457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458  (exit $ac_status); } &&
2459	 { ac_try='test -z "$ac_c_werror_flag"
2460			 || test ! -s conftest.err'
2461  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2462  (eval $ac_try) 2>&5
2463  ac_status=$?
2464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465  (exit $ac_status); }; } &&
2466	 { ac_try='test -s conftest.$ac_objext'
2467  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2468  (eval $ac_try) 2>&5
2469  ac_status=$?
2470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471  (exit $ac_status); }; }; then
2472  ac_compiler_gnu=yes
2473else
2474  echo "$as_me: failed program was:" >&5
2475sed 's/^/| /' conftest.$ac_ext >&5
2476
2477ac_compiler_gnu=no
2478fi
2479rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2480ac_cv_c_compiler_gnu=$ac_compiler_gnu
2481
2482fi
2483echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2484echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2485GCC=`test $ac_compiler_gnu = yes && echo yes`
2486ac_test_CFLAGS=${CFLAGS+set}
2487ac_save_CFLAGS=$CFLAGS
2488CFLAGS="-g"
2489echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2490echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2491if test "${ac_cv_prog_cc_g+set}" = set; then
2492  echo $ECHO_N "(cached) $ECHO_C" >&6
2493else
2494  cat >conftest.$ac_ext <<_ACEOF
2495/* confdefs.h.  */
2496_ACEOF
2497cat confdefs.h >>conftest.$ac_ext
2498cat >>conftest.$ac_ext <<_ACEOF
2499/* end confdefs.h.  */
2500
2501int
2502main ()
2503{
2504
2505  ;
2506  return 0;
2507}
2508_ACEOF
2509rm -f conftest.$ac_objext
2510if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2511  (eval $ac_compile) 2>conftest.er1
2512  ac_status=$?
2513  grep -v '^ *+' conftest.er1 >conftest.err
2514  rm -f conftest.er1
2515  cat conftest.err >&5
2516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517  (exit $ac_status); } &&
2518	 { ac_try='test -z "$ac_c_werror_flag"
2519			 || test ! -s conftest.err'
2520  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2521  (eval $ac_try) 2>&5
2522  ac_status=$?
2523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524  (exit $ac_status); }; } &&
2525	 { ac_try='test -s conftest.$ac_objext'
2526  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2527  (eval $ac_try) 2>&5
2528  ac_status=$?
2529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530  (exit $ac_status); }; }; then
2531  ac_cv_prog_cc_g=yes
2532else
2533  echo "$as_me: failed program was:" >&5
2534sed 's/^/| /' conftest.$ac_ext >&5
2535
2536ac_cv_prog_cc_g=no
2537fi
2538rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2539fi
2540echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2541echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2542if test "$ac_test_CFLAGS" = set; then
2543  CFLAGS=$ac_save_CFLAGS
2544elif test $ac_cv_prog_cc_g = yes; then
2545  if test "$GCC" = yes; then
2546    CFLAGS="-g -O2"
2547  else
2548    CFLAGS="-g"
2549  fi
2550else
2551  if test "$GCC" = yes; then
2552    CFLAGS="-O2"
2553  else
2554    CFLAGS=
2555  fi
2556fi
2557echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2558echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2559if test "${ac_cv_prog_cc_stdc+set}" = set; then
2560  echo $ECHO_N "(cached) $ECHO_C" >&6
2561else
2562  ac_cv_prog_cc_stdc=no
2563ac_save_CC=$CC
2564cat >conftest.$ac_ext <<_ACEOF
2565/* confdefs.h.  */
2566_ACEOF
2567cat confdefs.h >>conftest.$ac_ext
2568cat >>conftest.$ac_ext <<_ACEOF
2569/* end confdefs.h.  */
2570#include <stdarg.h>
2571#include <stdio.h>
2572#include <sys/types.h>
2573#include <sys/stat.h>
2574/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2575struct buf { int x; };
2576FILE * (*rcsopen) (struct buf *, struct stat *, int);
2577static char *e (p, i)
2578     char **p;
2579     int i;
2580{
2581  return p[i];
2582}
2583static char *f (char * (*g) (char **, int), char **p, ...)
2584{
2585  char *s;
2586  va_list v;
2587  va_start (v,p);
2588  s = g (p, va_arg (v,int));
2589  va_end (v);
2590  return s;
2591}
2592
2593/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2594   function prototypes and stuff, but not '\xHH' hex character constants.
2595   These don't provoke an error unfortunately, instead are silently treated
2596   as 'x'.  The following induces an error, until -std1 is added to get
2597   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2598   array size at least.  It's necessary to write '\x00'==0 to get something
2599   that's true only with -std1.  */
2600int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2601
2602int test (int i, double x);
2603struct s1 {int (*f) (int a);};
2604struct s2 {int (*f) (double a);};
2605int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2606int argc;
2607char **argv;
2608int
2609main ()
2610{
2611return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2612  ;
2613  return 0;
2614}
2615_ACEOF
2616# Don't try gcc -ansi; that turns off useful extensions and
2617# breaks some systems' header files.
2618# AIX			-qlanglvl=ansi
2619# Ultrix and OSF/1	-std1
2620# HP-UX 10.20 and later	-Ae
2621# HP-UX older versions	-Aa -D_HPUX_SOURCE
2622# SVR4			-Xc -D__EXTENSIONS__
2623for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2624do
2625  CC="$ac_save_CC $ac_arg"
2626  rm -f conftest.$ac_objext
2627if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2628  (eval $ac_compile) 2>conftest.er1
2629  ac_status=$?
2630  grep -v '^ *+' conftest.er1 >conftest.err
2631  rm -f conftest.er1
2632  cat conftest.err >&5
2633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634  (exit $ac_status); } &&
2635	 { ac_try='test -z "$ac_c_werror_flag"
2636			 || test ! -s conftest.err'
2637  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2638  (eval $ac_try) 2>&5
2639  ac_status=$?
2640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641  (exit $ac_status); }; } &&
2642	 { ac_try='test -s conftest.$ac_objext'
2643  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2644  (eval $ac_try) 2>&5
2645  ac_status=$?
2646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647  (exit $ac_status); }; }; then
2648  ac_cv_prog_cc_stdc=$ac_arg
2649break
2650else
2651  echo "$as_me: failed program was:" >&5
2652sed 's/^/| /' conftest.$ac_ext >&5
2653
2654fi
2655rm -f conftest.err conftest.$ac_objext
2656done
2657rm -f conftest.$ac_ext conftest.$ac_objext
2658CC=$ac_save_CC
2659
2660fi
2661
2662case "x$ac_cv_prog_cc_stdc" in
2663  x|xno)
2664    echo "$as_me:$LINENO: result: none needed" >&5
2665echo "${ECHO_T}none needed" >&6 ;;
2666  *)
2667    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2668echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2669    CC="$CC $ac_cv_prog_cc_stdc" ;;
2670esac
2671
2672# Some people use a C++ compiler to compile C.  Since we use `exit',
2673# in C++ we need to declare it.  In case someone uses the same compiler
2674# for both compiling C and C++ we need to have the C++ compiler decide
2675# the declaration of exit, since it's the most demanding environment.
2676cat >conftest.$ac_ext <<_ACEOF
2677#ifndef __cplusplus
2678  choke me
2679#endif
2680_ACEOF
2681rm -f conftest.$ac_objext
2682if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2683  (eval $ac_compile) 2>conftest.er1
2684  ac_status=$?
2685  grep -v '^ *+' conftest.er1 >conftest.err
2686  rm -f conftest.er1
2687  cat conftest.err >&5
2688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689  (exit $ac_status); } &&
2690	 { ac_try='test -z "$ac_c_werror_flag"
2691			 || test ! -s conftest.err'
2692  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2693  (eval $ac_try) 2>&5
2694  ac_status=$?
2695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696  (exit $ac_status); }; } &&
2697	 { ac_try='test -s conftest.$ac_objext'
2698  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2699  (eval $ac_try) 2>&5
2700  ac_status=$?
2701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702  (exit $ac_status); }; }; then
2703  for ac_declaration in \
2704   '' \
2705   'extern "C" void std::exit (int) throw (); using std::exit;' \
2706   'extern "C" void std::exit (int); using std::exit;' \
2707   'extern "C" void exit (int) throw ();' \
2708   'extern "C" void exit (int);' \
2709   'void exit (int);'
2710do
2711  cat >conftest.$ac_ext <<_ACEOF
2712/* confdefs.h.  */
2713_ACEOF
2714cat confdefs.h >>conftest.$ac_ext
2715cat >>conftest.$ac_ext <<_ACEOF
2716/* end confdefs.h.  */
2717$ac_declaration
2718#include <stdlib.h>
2719int
2720main ()
2721{
2722exit (42);
2723  ;
2724  return 0;
2725}
2726_ACEOF
2727rm -f conftest.$ac_objext
2728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2729  (eval $ac_compile) 2>conftest.er1
2730  ac_status=$?
2731  grep -v '^ *+' conftest.er1 >conftest.err
2732  rm -f conftest.er1
2733  cat conftest.err >&5
2734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735  (exit $ac_status); } &&
2736	 { ac_try='test -z "$ac_c_werror_flag"
2737			 || test ! -s conftest.err'
2738  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2739  (eval $ac_try) 2>&5
2740  ac_status=$?
2741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742  (exit $ac_status); }; } &&
2743	 { ac_try='test -s conftest.$ac_objext'
2744  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2745  (eval $ac_try) 2>&5
2746  ac_status=$?
2747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748  (exit $ac_status); }; }; then
2749  :
2750else
2751  echo "$as_me: failed program was:" >&5
2752sed 's/^/| /' conftest.$ac_ext >&5
2753
2754continue
2755fi
2756rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2757  cat >conftest.$ac_ext <<_ACEOF
2758/* confdefs.h.  */
2759_ACEOF
2760cat confdefs.h >>conftest.$ac_ext
2761cat >>conftest.$ac_ext <<_ACEOF
2762/* end confdefs.h.  */
2763$ac_declaration
2764int
2765main ()
2766{
2767exit (42);
2768  ;
2769  return 0;
2770}
2771_ACEOF
2772rm -f conftest.$ac_objext
2773if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2774  (eval $ac_compile) 2>conftest.er1
2775  ac_status=$?
2776  grep -v '^ *+' conftest.er1 >conftest.err
2777  rm -f conftest.er1
2778  cat conftest.err >&5
2779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780  (exit $ac_status); } &&
2781	 { ac_try='test -z "$ac_c_werror_flag"
2782			 || test ! -s conftest.err'
2783  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2784  (eval $ac_try) 2>&5
2785  ac_status=$?
2786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787  (exit $ac_status); }; } &&
2788	 { ac_try='test -s conftest.$ac_objext'
2789  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2790  (eval $ac_try) 2>&5
2791  ac_status=$?
2792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793  (exit $ac_status); }; }; then
2794  break
2795else
2796  echo "$as_me: failed program was:" >&5
2797sed 's/^/| /' conftest.$ac_ext >&5
2798
2799fi
2800rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2801done
2802rm -f conftest*
2803if test -n "$ac_declaration"; then
2804  echo '#ifdef __cplusplus' >>confdefs.h
2805  echo $ac_declaration      >>confdefs.h
2806  echo '#endif'             >>confdefs.h
2807fi
2808
2809else
2810  echo "$as_me: failed program was:" >&5
2811sed 's/^/| /' conftest.$ac_ext >&5
2812
2813fi
2814rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2815ac_ext=c
2816ac_cpp='$CPP $CPPFLAGS'
2817ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2818ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2819ac_compiler_gnu=$ac_cv_c_compiler_gnu
2820
2821if test -z "$CC" ; then
2822  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2823echo "$as_me: error: Failed to find a C compiler!" >&2;}
2824   { (exit 1); exit 1; }; }
2825fi
2826# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2827case "$CC" in
2828  clang* ) ;;
2829  cl* | */cl* | CL* | */CL* )
2830    if test "$ac_cv_prog_cc_g" = yes ; then
2831      ac_cv_prog_cc_g=no
2832      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2833echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2834    fi ;;
2835  * )
2836    if test x"$CYGPATH_W" = x ; then
2837      CYGPATH_W=echo
2838    fi
2839    ;;
2840esac
2841CFLAGS="$save_cflags"
2842
2843# add automake conditional so we can recognize cl compiler in makefile
2844coin_cc_is_cl=false
2845case "$CC" in
2846  clang* ) ;;
2847  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2848    coin_cc_is_cl=true
2849    ;;
2850esac
2851
2852
2853if test $coin_cc_is_cl = true; then
2854  COIN_CC_IS_CL_TRUE=
2855  COIN_CC_IS_CL_FALSE='#'
2856else
2857  COIN_CC_IS_CL_TRUE='#'
2858  COIN_CC_IS_CL_FALSE=
2859fi
2860
2861
2862# Check if a project specific CFLAGS variable has been set
2863if test x$COIN_PRJCT != x; then
2864  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2865  if test x$coin_tmp = xset; then
2866    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2867  fi
2868fi
2869
2870if test x"$CFLAGS" = x; then
2871
2872  coin_add_cflags=
2873  coin_opt_cflags=
2874  coin_dbg_cflags=
2875  coin_warn_cflags=
2876
2877  if test "$GCC" = "yes"; then
2878    case "$CC" in
2879      icc* | */icc*)
2880        ;;
2881      *)
2882        coin_opt_cflags="-O3"
2883        coin_add_cflags="-pipe"
2884        coin_dbg_cflags="-g -O0"
2885        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2886    esac
2887  fi
2888  if test -z "$coin_opt_cflags"; then
2889    case $build in
2890      *-cygwin* | *-mingw*)
2891        case "$CC" in
2892          clang* ) ;;
2893          cl* | */cl* | CL* | */CL*)
2894            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2895              coin_opt_cflags='-MD -O2'
2896              coin_dbg_cflags='-MDd'
2897            else
2898              coin_opt_cflags='-MT -O2'
2899              coin_dbg_cflags='-MTd'
2900            fi
2901            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2902            ;;
2903          icl* | */icl* | ICL* | */ICL*)
2904            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2905              coin_opt_cflags='-MD -Ox'
2906              coin_dbg_cflags='-MDd -debug'
2907            else
2908              coin_opt_cflags='-MT -Ox'
2909              coin_dbg_cflags='-MTd -debug'
2910            fi
2911            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2912            ;;
2913        esac
2914        ;;
2915      *-linux-*)
2916        case "$CC" in
2917          icc* | */icc*)
2918            coin_opt_cflags="-O3 -ip -mp1"
2919            coin_add_cflags=""
2920            coin_dbg_cflags="-g"
2921            # Check if -i_dynamic is necessary (for new glibc library)
2922            CFLAGS=
2923            cat >conftest.$ac_ext <<_ACEOF
2924/* confdefs.h.  */
2925_ACEOF
2926cat confdefs.h >>conftest.$ac_ext
2927cat >>conftest.$ac_ext <<_ACEOF
2928/* end confdefs.h.  */
2929
2930int
2931main ()
2932{
2933int i=0; i++;
2934  ;
2935  return 0;
2936}
2937_ACEOF
2938rm -f conftest.$ac_objext conftest$ac_exeext
2939if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2940  (eval $ac_link) 2>conftest.er1
2941  ac_status=$?
2942  grep -v '^ *+' conftest.er1 >conftest.err
2943  rm -f conftest.er1
2944  cat conftest.err >&5
2945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946  (exit $ac_status); } &&
2947	 { ac_try='test -z "$ac_c_werror_flag"
2948			 || test ! -s conftest.err'
2949  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2950  (eval $ac_try) 2>&5
2951  ac_status=$?
2952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953  (exit $ac_status); }; } &&
2954	 { ac_try='test -s conftest$ac_exeext'
2955  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2956  (eval $ac_try) 2>&5
2957  ac_status=$?
2958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959  (exit $ac_status); }; }; then
2960  :
2961else
2962  echo "$as_me: failed program was:" >&5
2963sed 's/^/| /' conftest.$ac_ext >&5
2964
2965coin_add_cflags="-i_dynamic $coin_add_cflags"
2966fi
2967rm -f conftest.err conftest.$ac_objext \
2968      conftest$ac_exeext conftest.$ac_ext
2969            ;;
2970          pgcc* | */pgcc*)
2971            coin_opt_cflags="-fast"
2972            coin_add_cflags="-Kieee -pc 64"
2973            coin_dbg_cflags="-g"
2974            ;;
2975        esac
2976        ;;
2977      *-ibm-*)
2978        case "$CC" in
2979          xlc* | */xlc* | mpxlc* | */mpxlc*)
2980            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2981            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2982            coin_dbg_cflags="-g"
2983          ;;
2984        esac
2985        ;;
2986      *-hp-*)
2987        coin_opt_cflags="-O"
2988        coin_add_cflags="-Ae"
2989        coin_dbg_cflags="-g"
2990        ;;
2991      *-*-solaris*)
2992        coin_opt_cflags="-xO4"
2993        coin_dbg_cflags="-g"
2994        ;;
2995      *-sgi-*)
2996        coin_opt_cflags="-O -OPT:Olimit=0"
2997        coin_dbg_cflags="-g"
2998        ;;
2999    esac
3000  fi
3001
3002  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
3003    coin_dbg_cflags="-g"
3004  fi
3005
3006  if test -z "$coin_opt_cflags"; then
3007    # Try if -O option works if nothing else is set
3008    CFLAGS="-O"
3009    cat >conftest.$ac_ext <<_ACEOF
3010/* confdefs.h.  */
3011_ACEOF
3012cat confdefs.h >>conftest.$ac_ext
3013cat >>conftest.$ac_ext <<_ACEOF
3014/* end confdefs.h.  */
3015
3016int
3017main ()
3018{
3019int i=0; i++;
3020  ;
3021  return 0;
3022}
3023_ACEOF
3024rm -f conftest.$ac_objext conftest$ac_exeext
3025if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3026  (eval $ac_link) 2>conftest.er1
3027  ac_status=$?
3028  grep -v '^ *+' conftest.er1 >conftest.err
3029  rm -f conftest.er1
3030  cat conftest.err >&5
3031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032  (exit $ac_status); } &&
3033	 { ac_try='test -z "$ac_c_werror_flag"
3034			 || test ! -s conftest.err'
3035  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3036  (eval $ac_try) 2>&5
3037  ac_status=$?
3038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039  (exit $ac_status); }; } &&
3040	 { ac_try='test -s conftest$ac_exeext'
3041  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3042  (eval $ac_try) 2>&5
3043  ac_status=$?
3044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045  (exit $ac_status); }; }; then
3046  coin_opt_cflags="-O"
3047else
3048  echo "$as_me: failed program was:" >&5
3049sed 's/^/| /' conftest.$ac_ext >&5
3050
3051fi
3052rm -f conftest.err conftest.$ac_objext \
3053      conftest$ac_exeext conftest.$ac_ext
3054  fi
3055
3056  # if PM doesn't want the warning messages, take them out
3057  if test x"$coin_skip_warn_cflags" = xyes; then
3058    coin_warn_cflags=
3059  fi
3060
3061  if test x${DBG_CFLAGS+set} != xset; then
3062    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3063  fi
3064  if test x${OPT_CFLAGS+set} != xset; then
3065    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3066  fi
3067
3068  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3069  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3070
3071  if test "$coin_debug_compile" = "true"; then
3072    CFLAGS="$DBG_CFLAGS"
3073  else
3074    CFLAGS="$OPT_CFLAGS"
3075  fi
3076else
3077  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3078  if test x${DBG_CFLAGS+set} != xset; then
3079    DBG_CFLAGS="$CFLAGS"
3080  fi
3081  if test x${OPT_CFLAGS+set} != xset; then
3082    OPT_CFLAGS="$CFLAGS"
3083  fi
3084fi
3085
3086# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3087if test x$COIN_PRJCT != x; then
3088  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3089fi
3090
3091# Try if CFLAGS works
3092save_CFLAGS="$CFLAGS"
3093cat >conftest.$ac_ext <<_ACEOF
3094/* confdefs.h.  */
3095_ACEOF
3096cat confdefs.h >>conftest.$ac_ext
3097cat >>conftest.$ac_ext <<_ACEOF
3098/* end confdefs.h.  */
3099
3100int
3101main ()
3102{
3103int i=0; i++;
3104  ;
3105  return 0;
3106}
3107_ACEOF
3108rm -f conftest.$ac_objext conftest$ac_exeext
3109if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3110  (eval $ac_link) 2>conftest.er1
3111  ac_status=$?
3112  grep -v '^ *+' conftest.er1 >conftest.err
3113  rm -f conftest.er1
3114  cat conftest.err >&5
3115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3116  (exit $ac_status); } &&
3117	 { ac_try='test -z "$ac_c_werror_flag"
3118			 || test ! -s conftest.err'
3119  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3120  (eval $ac_try) 2>&5
3121  ac_status=$?
3122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123  (exit $ac_status); }; } &&
3124	 { ac_try='test -s conftest$ac_exeext'
3125  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3126  (eval $ac_try) 2>&5
3127  ac_status=$?
3128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129  (exit $ac_status); }; }; then
3130  :
3131else
3132  echo "$as_me: failed program was:" >&5
3133sed 's/^/| /' conftest.$ac_ext >&5
3134
3135CFLAGS=
3136fi
3137rm -f conftest.err conftest.$ac_objext \
3138      conftest$ac_exeext conftest.$ac_ext
3139if test -z "$CFLAGS"; then
3140  { echo "$as_me:$LINENO: WARNING: The value CFLAGS=\"$save_CFLAGS\" do not work.  I will now just try '-O', but you might want to set CFLAGS manually." >&5
3141echo "$as_me: WARNING: The value CFLAGS=\"$save_CFLAGS\" do not work.  I will now just try '-O', but you might want to set CFLAGS manually." >&2;}
3142  CFLAGS='-O'
3143  cat >conftest.$ac_ext <<_ACEOF
3144/* confdefs.h.  */
3145_ACEOF
3146cat confdefs.h >>conftest.$ac_ext
3147cat >>conftest.$ac_ext <<_ACEOF
3148/* end confdefs.h.  */
3149
3150int
3151main ()
3152{
3153int i=0; i++;
3154  ;
3155  return 0;
3156}
3157_ACEOF
3158rm -f conftest.$ac_objext conftest$ac_exeext
3159if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3160  (eval $ac_link) 2>conftest.er1
3161  ac_status=$?
3162  grep -v '^ *+' conftest.er1 >conftest.err
3163  rm -f conftest.er1
3164  cat conftest.err >&5
3165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166  (exit $ac_status); } &&
3167	 { ac_try='test -z "$ac_c_werror_flag"
3168			 || test ! -s conftest.err'
3169  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3170  (eval $ac_try) 2>&5
3171  ac_status=$?
3172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173  (exit $ac_status); }; } &&
3174	 { ac_try='test -s conftest$ac_exeext'
3175  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3176  (eval $ac_try) 2>&5
3177  ac_status=$?
3178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179  (exit $ac_status); }; }; then
3180  :
3181else
3182  echo "$as_me: failed program was:" >&5
3183sed 's/^/| /' conftest.$ac_ext >&5
3184
3185CFLAGS=
3186fi
3187rm -f conftest.err conftest.$ac_objext \
3188      conftest$ac_exeext conftest.$ac_ext
3189  if test -z "$CFLAGS"; then
3190    { echo "$as_me:$LINENO: WARNING: This value for CFLAGS does not work.  I will continue with empty CFLAGS, but you might want to set CFLAGS manually." >&5
3191echo "$as_me: WARNING: This value for CFLAGS does not work.  I will continue with empty CFLAGS, but you might want to set CFLAGS manually." >&2;}
3192  fi
3193fi
3194
3195{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3196echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3197
3198
3199if test x"$MPICC" = x; then :; else
3200  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3201echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3202  CC="$MPICC"
3203fi
3204
3205# Correct the LD variable if we are using the MS or Intel-windows compiler
3206case "$CC" in
3207  clang* ) ;;
3208  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3209    LD=link
3210    ;;
3211esac
3212
3213ac_ext=c
3214ac_cpp='$CPP $CPPFLAGS'
3215ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3216ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3217ac_compiler_gnu=$ac_cv_c_compiler_gnu
3218
3219
3220
3221 #Let's try if that overcomes configuration problem with VC++ 6.0
3222
3223ac_ext=cc
3224ac_cpp='$CXXCPP $CPPFLAGS'
3225ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3226ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3227ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3228
3229
3230
3231
3232
3233
3234
3235coin_has_cxx=yes
3236
3237save_cxxflags="$CXXFLAGS"
3238# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3239case $build in
3240  *-cygwin* | *-mingw*)
3241      if test "$enable_msvc" = yes ; then
3242         comps="icl cl g++"
3243      else
3244         comps="g++ icl cl"
3245      fi ;;
3246  *-*-solaris*)
3247  	     comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3248  *-darwin*) comps="clang++ g++ c++ CC" ;;
3249  *-linux-gnu*)
3250             comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;;
3251          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3252esac
3253
3254# We delete the cached value, since the test might not have been
3255# performed with our choice of compilers earlier
3256$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3257# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3258ac_ext=cc
3259ac_cpp='$CXXCPP $CPPFLAGS'
3260ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3261ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3262ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3263if test -n "$ac_tool_prefix"; then
3264  for ac_prog in $CCC $comps
3265  do
3266    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3267set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3268echo "$as_me:$LINENO: checking for $ac_word" >&5
3269echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3270if test "${ac_cv_prog_CXX+set}" = set; then
3271  echo $ECHO_N "(cached) $ECHO_C" >&6
3272else
3273  if test -n "$CXX"; then
3274  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3275else
3276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3277for as_dir in $PATH
3278do
3279  IFS=$as_save_IFS
3280  test -z "$as_dir" && as_dir=.
3281  for ac_exec_ext in '' $ac_executable_extensions; do
3282  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3283    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3284    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3285    break 2
3286  fi
3287done
3288done
3289
3290fi
3291fi
3292CXX=$ac_cv_prog_CXX
3293if test -n "$CXX"; then
3294  echo "$as_me:$LINENO: result: $CXX" >&5
3295echo "${ECHO_T}$CXX" >&6
3296else
3297  echo "$as_me:$LINENO: result: no" >&5
3298echo "${ECHO_T}no" >&6
3299fi
3300
3301    test -n "$CXX" && break
3302  done
3303fi
3304if test -z "$CXX"; then
3305  ac_ct_CXX=$CXX
3306  for ac_prog in $CCC $comps
3307do
3308  # Extract the first word of "$ac_prog", so it can be a program name with args.
3309set dummy $ac_prog; ac_word=$2
3310echo "$as_me:$LINENO: checking for $ac_word" >&5
3311echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3312if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3313  echo $ECHO_N "(cached) $ECHO_C" >&6
3314else
3315  if test -n "$ac_ct_CXX"; then
3316  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3317else
3318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3319for as_dir in $PATH
3320do
3321  IFS=$as_save_IFS
3322  test -z "$as_dir" && as_dir=.
3323  for ac_exec_ext in '' $ac_executable_extensions; do
3324  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3325    ac_cv_prog_ac_ct_CXX="$ac_prog"
3326    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3327    break 2
3328  fi
3329done
3330done
3331
3332fi
3333fi
3334ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3335if test -n "$ac_ct_CXX"; then
3336  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3337echo "${ECHO_T}$ac_ct_CXX" >&6
3338else
3339  echo "$as_me:$LINENO: result: no" >&5
3340echo "${ECHO_T}no" >&6
3341fi
3342
3343  test -n "$ac_ct_CXX" && break
3344done
3345test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3346
3347  CXX=$ac_ct_CXX
3348fi
3349
3350
3351# Provide some information about the compiler.
3352echo "$as_me:$LINENO:" \
3353     "checking for C++ compiler version" >&5
3354ac_compiler=`set X $ac_compile; echo $2`
3355{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3356  (eval $ac_compiler --version </dev/null >&5) 2>&5
3357  ac_status=$?
3358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359  (exit $ac_status); }
3360{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3361  (eval $ac_compiler -v </dev/null >&5) 2>&5
3362  ac_status=$?
3363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3364  (exit $ac_status); }
3365{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3366  (eval $ac_compiler -V </dev/null >&5) 2>&5
3367  ac_status=$?
3368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369  (exit $ac_status); }
3370
3371echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3372echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3373if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3374  echo $ECHO_N "(cached) $ECHO_C" >&6
3375else
3376  cat >conftest.$ac_ext <<_ACEOF
3377/* confdefs.h.  */
3378_ACEOF
3379cat confdefs.h >>conftest.$ac_ext
3380cat >>conftest.$ac_ext <<_ACEOF
3381/* end confdefs.h.  */
3382
3383int
3384main ()
3385{
3386#ifndef __GNUC__
3387       choke me
3388#endif
3389
3390  ;
3391  return 0;
3392}
3393_ACEOF
3394rm -f conftest.$ac_objext
3395if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3396  (eval $ac_compile) 2>conftest.er1
3397  ac_status=$?
3398  grep -v '^ *+' conftest.er1 >conftest.err
3399  rm -f conftest.er1
3400  cat conftest.err >&5
3401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402  (exit $ac_status); } &&
3403	 { ac_try='test -z "$ac_cxx_werror_flag"
3404			 || test ! -s conftest.err'
3405  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3406  (eval $ac_try) 2>&5
3407  ac_status=$?
3408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409  (exit $ac_status); }; } &&
3410	 { ac_try='test -s conftest.$ac_objext'
3411  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3412  (eval $ac_try) 2>&5
3413  ac_status=$?
3414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415  (exit $ac_status); }; }; then
3416  ac_compiler_gnu=yes
3417else
3418  echo "$as_me: failed program was:" >&5
3419sed 's/^/| /' conftest.$ac_ext >&5
3420
3421ac_compiler_gnu=no
3422fi
3423rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3424ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3425
3426fi
3427echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3428echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3429GXX=`test $ac_compiler_gnu = yes && echo yes`
3430ac_test_CXXFLAGS=${CXXFLAGS+set}
3431ac_save_CXXFLAGS=$CXXFLAGS
3432CXXFLAGS="-g"
3433echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3434echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3435if test "${ac_cv_prog_cxx_g+set}" = set; then
3436  echo $ECHO_N "(cached) $ECHO_C" >&6
3437else
3438  cat >conftest.$ac_ext <<_ACEOF
3439/* confdefs.h.  */
3440_ACEOF
3441cat confdefs.h >>conftest.$ac_ext
3442cat >>conftest.$ac_ext <<_ACEOF
3443/* end confdefs.h.  */
3444
3445int
3446main ()
3447{
3448
3449  ;
3450  return 0;
3451}
3452_ACEOF
3453rm -f conftest.$ac_objext
3454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3455  (eval $ac_compile) 2>conftest.er1
3456  ac_status=$?
3457  grep -v '^ *+' conftest.er1 >conftest.err
3458  rm -f conftest.er1
3459  cat conftest.err >&5
3460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461  (exit $ac_status); } &&
3462	 { ac_try='test -z "$ac_cxx_werror_flag"
3463			 || test ! -s conftest.err'
3464  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3465  (eval $ac_try) 2>&5
3466  ac_status=$?
3467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468  (exit $ac_status); }; } &&
3469	 { ac_try='test -s conftest.$ac_objext'
3470  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3471  (eval $ac_try) 2>&5
3472  ac_status=$?
3473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474  (exit $ac_status); }; }; then
3475  ac_cv_prog_cxx_g=yes
3476else
3477  echo "$as_me: failed program was:" >&5
3478sed 's/^/| /' conftest.$ac_ext >&5
3479
3480ac_cv_prog_cxx_g=no
3481fi
3482rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3483fi
3484echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3485echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3486if test "$ac_test_CXXFLAGS" = set; then
3487  CXXFLAGS=$ac_save_CXXFLAGS
3488elif test $ac_cv_prog_cxx_g = yes; then
3489  if test "$GXX" = yes; then
3490    CXXFLAGS="-g -O2"
3491  else
3492    CXXFLAGS="-g"
3493  fi
3494else
3495  if test "$GXX" = yes; then
3496    CXXFLAGS="-O2"
3497  else
3498    CXXFLAGS=
3499  fi
3500fi
3501for ac_declaration in \
3502   '' \
3503   'extern "C" void std::exit (int) throw (); using std::exit;' \
3504   'extern "C" void std::exit (int); using std::exit;' \
3505   'extern "C" void exit (int) throw ();' \
3506   'extern "C" void exit (int);' \
3507   'void exit (int);'
3508do
3509  cat >conftest.$ac_ext <<_ACEOF
3510/* confdefs.h.  */
3511_ACEOF
3512cat confdefs.h >>conftest.$ac_ext
3513cat >>conftest.$ac_ext <<_ACEOF
3514/* end confdefs.h.  */
3515$ac_declaration
3516#include <stdlib.h>
3517int
3518main ()
3519{
3520exit (42);
3521  ;
3522  return 0;
3523}
3524_ACEOF
3525rm -f conftest.$ac_objext
3526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3527  (eval $ac_compile) 2>conftest.er1
3528  ac_status=$?
3529  grep -v '^ *+' conftest.er1 >conftest.err
3530  rm -f conftest.er1
3531  cat conftest.err >&5
3532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533  (exit $ac_status); } &&
3534	 { ac_try='test -z "$ac_cxx_werror_flag"
3535			 || test ! -s conftest.err'
3536  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3537  (eval $ac_try) 2>&5
3538  ac_status=$?
3539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3540  (exit $ac_status); }; } &&
3541	 { ac_try='test -s conftest.$ac_objext'
3542  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3543  (eval $ac_try) 2>&5
3544  ac_status=$?
3545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546  (exit $ac_status); }; }; then
3547  :
3548else
3549  echo "$as_me: failed program was:" >&5
3550sed 's/^/| /' conftest.$ac_ext >&5
3551
3552continue
3553fi
3554rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3555  cat >conftest.$ac_ext <<_ACEOF
3556/* confdefs.h.  */
3557_ACEOF
3558cat confdefs.h >>conftest.$ac_ext
3559cat >>conftest.$ac_ext <<_ACEOF
3560/* end confdefs.h.  */
3561$ac_declaration
3562int
3563main ()
3564{
3565exit (42);
3566  ;
3567  return 0;
3568}
3569_ACEOF
3570rm -f conftest.$ac_objext
3571if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3572  (eval $ac_compile) 2>conftest.er1
3573  ac_status=$?
3574  grep -v '^ *+' conftest.er1 >conftest.err
3575  rm -f conftest.er1
3576  cat conftest.err >&5
3577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578  (exit $ac_status); } &&
3579	 { ac_try='test -z "$ac_cxx_werror_flag"
3580			 || test ! -s conftest.err'
3581  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3582  (eval $ac_try) 2>&5
3583  ac_status=$?
3584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585  (exit $ac_status); }; } &&
3586	 { ac_try='test -s conftest.$ac_objext'
3587  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3588  (eval $ac_try) 2>&5
3589  ac_status=$?
3590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3591  (exit $ac_status); }; }; then
3592  break
3593else
3594  echo "$as_me: failed program was:" >&5
3595sed 's/^/| /' conftest.$ac_ext >&5
3596
3597fi
3598rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3599done
3600rm -f conftest*
3601if test -n "$ac_declaration"; then
3602  echo '#ifdef __cplusplus' >>confdefs.h
3603  echo $ac_declaration      >>confdefs.h
3604  echo '#endif'             >>confdefs.h
3605fi
3606
3607ac_ext=cc
3608ac_cpp='$CXXCPP $CPPFLAGS'
3609ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3610ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3611ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3612
3613
3614#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3615#thus, we test here whether $CXX is actually working
3616ac_ext=cc
3617ac_cpp='$CXXCPP $CPPFLAGS'
3618ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3619ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3620ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3621
3622echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3623echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3624cat >conftest.$ac_ext <<_ACEOF
3625/* confdefs.h.  */
3626_ACEOF
3627cat confdefs.h >>conftest.$ac_ext
3628cat >>conftest.$ac_ext <<_ACEOF
3629/* end confdefs.h.  */
3630
3631int
3632main ()
3633{
3634int i=0;
3635  ;
3636  return 0;
3637}
3638_ACEOF
3639rm -f conftest.$ac_objext
3640if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3641  (eval $ac_compile) 2>conftest.er1
3642  ac_status=$?
3643  grep -v '^ *+' conftest.er1 >conftest.err
3644  rm -f conftest.er1
3645  cat conftest.err >&5
3646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3647  (exit $ac_status); } &&
3648	 { ac_try='test -z "$ac_cxx_werror_flag"
3649			 || test ! -s conftest.err'
3650  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3651  (eval $ac_try) 2>&5
3652  ac_status=$?
3653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654  (exit $ac_status); }; } &&
3655	 { ac_try='test -s conftest.$ac_objext'
3656  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3657  (eval $ac_try) 2>&5
3658  ac_status=$?
3659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660  (exit $ac_status); }; }; then
3661  echo "$as_me:$LINENO: result: yes" >&5
3662echo "${ECHO_T}yes" >&6
3663else
3664  echo "$as_me: failed program was:" >&5
3665sed 's/^/| /' conftest.$ac_ext >&5
3666
3667echo "$as_me:$LINENO: result: no" >&5
3668echo "${ECHO_T}no" >&6
3669   { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3670echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3671   { (exit 1); exit 1; }; }
3672
3673fi
3674rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3675ac_ext=cc
3676ac_cpp='$CXXCPP $CPPFLAGS'
3677ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3678ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3679ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3680
3681
3682coin_cxx_is_cl=false
3683# It seems that we need to cleanup something here for the Windows
3684case "$CXX" in
3685  clang* | */clang*) ;;
3686  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3687    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3688    mv confdefs.hh confdefs.h
3689    coin_cxx_is_cl=true
3690    ;;
3691esac
3692
3693# add automake conditional so we can recognize cl compiler in makefile
3694
3695
3696if test $coin_cxx_is_cl = true; then
3697  COIN_CXX_IS_CL_TRUE=
3698  COIN_CXX_IS_CL_FALSE='#'
3699else
3700  COIN_CXX_IS_CL_TRUE='#'
3701  COIN_CXX_IS_CL_FALSE=
3702fi
3703
3704
3705# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3706case "$CXX" in
3707  clang* ) ;;
3708  cl* | */cl* | CL* | */CL* )
3709    if test "$ac_cv_prog_cxx_g" = yes ; then
3710      ac_cv_prog_cxx_g=no
3711      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3712echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3713    fi ;;
3714  * )
3715    if test x"$CYGPATH_W" = x ; then
3716      CYGPATH_W=echo
3717    fi
3718    ;;
3719esac
3720CXXFLAGS="$save_cxxflags"
3721
3722# Check if a project specific CXXFLAGS variable has been set
3723if test x$COIN_PRJCT != x; then
3724  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3725  if test x$coin_tmp = xset; then
3726    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3727  fi
3728fi
3729
3730if test x"$CXXFLAGS" = x; then
3731
3732# ToDo decide whether we want -DNDEBUG for optimization
3733  coin_add_cxxflags=
3734  coin_opt_cxxflags=
3735  coin_dbg_cxxflags=
3736  coin_warn_cxxflags=
3737
3738  if test "$GXX" = "yes"; then
3739    case "$CXX" in
3740      icpc* | */icpc*)
3741        ;;
3742      *)
3743# ToDo decide about unroll-loops
3744        coin_opt_cxxflags="-O3"
3745        coin_add_cxxflags="-pipe"
3746        coin_dbg_cxxflags="-g -O0"
3747        coin_warn_cxxflags="-Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long"
3748    esac
3749  fi
3750
3751# Note that we do not need to cover GCC in the following tests.
3752
3753  if test -z "$coin_opt_cxxflags"; then
3754    case $build in
3755      *-cygwin* | *-mingw*)
3756        case "$CXX" in
3757          clang* ) ;;
3758          cl* | */cl* | CL* | */CL*)
3759            # The MT and MTd options are mutually exclusive
3760            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3761               coin_opt_cxxflags='-MD -O2'
3762               coin_dbg_cxxflags='-MDd'
3763            else
3764               coin_opt_cxxflags='-MT -O2'
3765               coin_dbg_cxxflags='-MTd'
3766            fi
3767            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3768            ;;
3769          icl* | */icl* | ICL* | */ICL*)
3770          # The MT and MTd options are mutually exclusive
3771            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3772              coin_opt_cxxflags='-MD -Ox'
3773              coin_dbg_cxxflags='-MDd -debug'
3774            else
3775              coin_opt_cxxflags='-MT -Ox'
3776              coin_dbg_cxxflags='-MTd -debug'
3777            fi
3778            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3779            ;;
3780        esac
3781        ;;
3782      *-linux-*)
3783        case "$CXX" in
3784          icpc* | */icpc*)
3785            coin_opt_cxxflags="-O3 -ip -mp1"
3786            coin_add_cxxflags=""
3787            coin_dbg_cxxflags="-g"
3788            # Check if -i_dynamic is necessary (for new glibc library)
3789            CXXFLAGS=
3790            cat >conftest.$ac_ext <<_ACEOF
3791/* confdefs.h.  */
3792_ACEOF
3793cat confdefs.h >>conftest.$ac_ext
3794cat >>conftest.$ac_ext <<_ACEOF
3795/* end confdefs.h.  */
3796
3797int
3798main ()
3799{
3800int i=0; i++;
3801  ;
3802  return 0;
3803}
3804_ACEOF
3805rm -f conftest.$ac_objext conftest$ac_exeext
3806if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3807  (eval $ac_link) 2>conftest.er1
3808  ac_status=$?
3809  grep -v '^ *+' conftest.er1 >conftest.err
3810  rm -f conftest.er1
3811  cat conftest.err >&5
3812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813  (exit $ac_status); } &&
3814	 { ac_try='test -z "$ac_cxx_werror_flag"
3815			 || test ! -s conftest.err'
3816  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3817  (eval $ac_try) 2>&5
3818  ac_status=$?
3819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820  (exit $ac_status); }; } &&
3821	 { ac_try='test -s conftest$ac_exeext'
3822  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3823  (eval $ac_try) 2>&5
3824  ac_status=$?
3825  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826  (exit $ac_status); }; }; then
3827  :
3828else
3829  echo "$as_me: failed program was:" >&5
3830sed 's/^/| /' conftest.$ac_ext >&5
3831
3832coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3833fi
3834rm -f conftest.err conftest.$ac_objext \
3835      conftest$ac_exeext conftest.$ac_ext
3836            ;;
3837          pgCC* | */pgCC*)
3838            coin_opt_cxxflags="-fast"
3839            coin_add_cxxflags="-Kieee -pc 64"
3840            coin_dbg_cxxflags="-g"
3841            ;;
3842        esac
3843        ;;
3844      *-ibm-*)
3845        case "$CXX" in
3846          xlC* | */xlC* | mpxlC* | */mpxlC*)
3847            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3848            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3849            coin_dbg_cxxflags="-g"
3850            ;;
3851        esac
3852        ;;
3853      *-hp-*)
3854        case "$CXX" in
3855          aCC* | */aCC* )
3856            coin_opt_cxxflags="-O"
3857            coin_add_cxxflags="-AA"
3858            coin_dbg_cxxflags="-g"
3859            ;;
3860        esac
3861        ;;
3862      *-*-solaris*)
3863          coin_opt_cxxflags="-O4"
3864          coin_dbg_cxxflags="-g"
3865        ;;
3866    esac
3867  fi
3868
3869# Generic flag settings. If these don't work, add a case above.
3870
3871  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3872    coin_dbg_cxxflags="-g"
3873  fi
3874
3875  if test -z "$coin_opt_cxxflags"; then
3876    # Try if -O option works if nothing else is set
3877    CXXFLAGS=-O
3878    cat >conftest.$ac_ext <<_ACEOF
3879/* confdefs.h.  */
3880_ACEOF
3881cat confdefs.h >>conftest.$ac_ext
3882cat >>conftest.$ac_ext <<_ACEOF
3883/* end confdefs.h.  */
3884
3885int
3886main ()
3887{
3888int i=0; i++;
3889  ;
3890  return 0;
3891}
3892_ACEOF
3893rm -f conftest.$ac_objext conftest$ac_exeext
3894if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3895  (eval $ac_link) 2>conftest.er1
3896  ac_status=$?
3897  grep -v '^ *+' conftest.er1 >conftest.err
3898  rm -f conftest.er1
3899  cat conftest.err >&5
3900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901  (exit $ac_status); } &&
3902	 { ac_try='test -z "$ac_cxx_werror_flag"
3903			 || test ! -s conftest.err'
3904  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3905  (eval $ac_try) 2>&5
3906  ac_status=$?
3907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908  (exit $ac_status); }; } &&
3909	 { ac_try='test -s conftest$ac_exeext'
3910  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3911  (eval $ac_try) 2>&5
3912  ac_status=$?
3913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3914  (exit $ac_status); }; }; then
3915  coin_opt_cxxflags="-O"
3916else
3917  echo "$as_me: failed program was:" >&5
3918sed 's/^/| /' conftest.$ac_ext >&5
3919
3920fi
3921rm -f conftest.err conftest.$ac_objext \
3922      conftest$ac_exeext conftest.$ac_ext
3923  fi
3924
3925  # if PM doesn't want the warning messages, take them out
3926  if test x"$coin_skip_warn_cxxflags" = xyes; then
3927    coin_warn_cxxflags=
3928  fi
3929
3930# Do final setup of flags based on values determined above.
3931
3932  if test x${DBG_CXXFLAGS+set} != xset; then
3933    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3934  fi
3935  if test x${OPT_CXXFLAGS+set} != xset; then
3936    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
3937  fi
3938
3939  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3940  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3941
3942  if test "$coin_debug_compile" = "true"; then
3943    CXXFLAGS="$DBG_CXXFLAGS"
3944  else
3945    CXXFLAGS="$OPT_CXXFLAGS"
3946  fi
3947
3948# Handle the case where CXXFLAGS was set externally.
3949else
3950  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3951  if test x${DBG_CXXFLAGS+set} != xset; then
3952    DBG_CXXFLAGS="$CXXFLAGS"
3953  fi
3954  if test x${OPT_CXXFLAGS+set} != xset; then
3955    OPT_CXXFLAGS="$CXXFLAGS"
3956  fi
3957fi
3958
3959# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3960if test x$COIN_PRJCT != x; then
3961  CXXFLAGS="$CXXFLAGS -D${COIN_PRJCT}_BUILD"
3962fi
3963
3964# Try if CXXFLAGS works
3965save_CXXFLAGS="$CXXFLAGS"
3966cat >conftest.$ac_ext <<_ACEOF
3967/* confdefs.h.  */
3968_ACEOF
3969cat confdefs.h >>conftest.$ac_ext
3970cat >>conftest.$ac_ext <<_ACEOF
3971/* end confdefs.h.  */
3972
3973int
3974main ()
3975{
3976int i=0; i++;
3977  ;
3978  return 0;
3979}
3980_ACEOF
3981rm -f conftest.$ac_objext conftest$ac_exeext
3982if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3983  (eval $ac_link) 2>conftest.er1
3984  ac_status=$?
3985  grep -v '^ *+' conftest.er1 >conftest.err
3986  rm -f conftest.er1
3987  cat conftest.err >&5
3988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989  (exit $ac_status); } &&
3990	 { ac_try='test -z "$ac_cxx_werror_flag"
3991			 || test ! -s conftest.err'
3992  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3993  (eval $ac_try) 2>&5
3994  ac_status=$?
3995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996  (exit $ac_status); }; } &&
3997	 { ac_try='test -s conftest$ac_exeext'
3998  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3999  (eval $ac_try) 2>&5
4000  ac_status=$?
4001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002  (exit $ac_status); }; }; then
4003  :
4004else
4005  echo "$as_me: failed program was:" >&5
4006sed 's/^/| /' conftest.$ac_ext >&5
4007
4008CXXFLAGS=
4009fi
4010rm -f conftest.err conftest.$ac_objext \
4011      conftest$ac_exeext conftest.$ac_ext
4012if test -z "$CXXFLAGS"; then
4013  { echo "$as_me:$LINENO: WARNING: The flags CXXFLAGS=\"$save_CXXFLAGS\" do not work.  I will now just try '-O', but you might want to set CXXFLAGS manually." >&5
4014echo "$as_me: WARNING: The flags CXXFLAGS=\"$save_CXXFLAGS\" do not work.  I will now just try '-O', but you might want to set CXXFLAGS manually." >&2;}
4015  CXXFLAGS='-O'
4016  cat >conftest.$ac_ext <<_ACEOF
4017/* confdefs.h.  */
4018_ACEOF
4019cat confdefs.h >>conftest.$ac_ext
4020cat >>conftest.$ac_ext <<_ACEOF
4021/* end confdefs.h.  */
4022
4023int
4024main ()
4025{
4026int i=0; i++;
4027  ;
4028  return 0;
4029}
4030_ACEOF
4031rm -f conftest.$ac_objext conftest$ac_exeext
4032if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4033  (eval $ac_link) 2>conftest.er1
4034  ac_status=$?
4035  grep -v '^ *+' conftest.er1 >conftest.err
4036  rm -f conftest.er1
4037  cat conftest.err >&5
4038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039  (exit $ac_status); } &&
4040	 { ac_try='test -z "$ac_cxx_werror_flag"
4041			 || test ! -s conftest.err'
4042  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4043  (eval $ac_try) 2>&5
4044  ac_status=$?
4045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046  (exit $ac_status); }; } &&
4047	 { ac_try='test -s conftest$ac_exeext'
4048  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4049  (eval $ac_try) 2>&5
4050  ac_status=$?
4051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052  (exit $ac_status); }; }; then
4053  :
4054else
4055  echo "$as_me: failed program was:" >&5
4056sed 's/^/| /' conftest.$ac_ext >&5
4057
4058CXXFLAGS=
4059fi
4060rm -f conftest.err conftest.$ac_objext \
4061      conftest$ac_exeext conftest.$ac_ext
4062  if test -z "$CXXFLAGS"; then
4063    { echo "$as_me:$LINENO: WARNING: This value for CXXFLAGS does not work.  I will continue with empty CXXFLAGS, but you might want to set CXXFLAGS manually." >&5
4064echo "$as_me: WARNING: This value for CXXFLAGS does not work.  I will continue with empty CXXFLAGS, but you might want to set CXXFLAGS manually." >&2;}
4065  fi
4066fi
4067
4068{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
4069echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
4070
4071
4072if test x"$MPICXX" = x; then :; else
4073  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
4074echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
4075  CXX="$MPICXX"
4076fi
4077
4078# correct the LD variable in a build with MS or Intel-windows compiler
4079case "$CXX" in
4080  clang* ) ;;
4081  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4082    LD=link
4083    ;;
4084esac
4085
4086ac_ext=c
4087ac_cpp='$CPP $CPPFLAGS'
4088ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4089ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4090ac_compiler_gnu=$ac_cv_c_compiler_gnu
4091
4092
4093
4094# Initialize automake and libtool
4095{
4096
4097
4098
4099# START
4100
4101coin_disable_shared=no
4102# Test if force_shared has been set
4103if test "x" = xforce_shared; then
4104  if test x$enable_shared = xno; then
4105    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4106echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4107   { (exit 1); exit 1; }; }
4108  fi
4109  enable_shared=yes;
4110else
4111  case $build in
4112    *-cygwin* | *-mingw*)
4113      coin_disable_shared=yes
4114      if test x"$enable_shared" = xyes; then
4115        case "$CC" in
4116          clang* )
4117            { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5
4118echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;}
4119            ;;
4120          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4121            { echo "$as_me:$LINENO: Building of DLLs not supported in this configuration." >&5
4122echo "$as_me: Building of DLLs not supported in this configuration." >&6;}
4123            ;;
4124          *gcc*)
4125            if test x"$enable_dependency_linking" = xyes; then
4126              coin_disable_shared=no
4127            else
4128              { echo "$as_me:$LINENO: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&5
4129echo "$as_me: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&2;}
4130            fi
4131            ;;
4132          *)
4133            { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5
4134echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;}
4135            ;;
4136        esac
4137      fi
4138    ;;
4139    *-aix*)
4140      coin_disable_shared=yes
4141      platform=AIX
4142      if test x"$enable_shared" = xyes; then
4143        { echo "$as_me:$LINENO: WARNING: Shared objects are not supported." >&5
4144echo "$as_me: WARNING: Shared objects are not supported." >&2;}
4145      fi
4146    ;;
4147  esac
4148fi
4149if test x"$coin_disable_shared" = xyes; then
4150  if test x"$enable_shared" = xyes; then
4151    :
4152  else
4153    # we don't disable shared, because it was not selected anyway
4154    coin_disable_shared=no
4155  fi
4156  enable_shared=no
4157fi
4158# By default, we only want the shared objects to be compiled
4159# Check whether --enable-static or --disable-static was given.
4160if test "${enable_static+set}" = set; then
4161  enableval="$enable_static"
4162  p=${PACKAGE-default}
4163    case $enableval in
4164    yes) enable_static=yes ;;
4165    no) enable_static=no ;;
4166    *)
4167     enable_static=no
4168      # Look at the argument we got.  We use all the common list separators.
4169      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4170      for pkg in $enableval; do
4171	IFS="$lt_save_ifs"
4172	if test "X$pkg" = "X$p"; then
4173	  enable_static=yes
4174	fi
4175      done
4176      IFS="$lt_save_ifs"
4177      ;;
4178    esac
4179else
4180  enable_static=no
4181fi;
4182
4183
4184
4185
4186# Initialize automake
4187echo "$as_me:$LINENO: checking for egrep" >&5
4188echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4189if test "${ac_cv_prog_egrep+set}" = set; then
4190  echo $ECHO_N "(cached) $ECHO_C" >&6
4191else
4192  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4193    then ac_cv_prog_egrep='grep -E'
4194    else ac_cv_prog_egrep='egrep'
4195    fi
4196fi
4197echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4198echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4199 EGREP=$ac_cv_prog_egrep
4200
4201
4202echo "$as_me:$LINENO: checking whether ln -s works" >&5
4203echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4204LN_S=$as_ln_s
4205if test "$LN_S" = "ln -s"; then
4206  echo "$as_me:$LINENO: result: yes" >&5
4207echo "${ECHO_T}yes" >&6
4208else
4209  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4210echo "${ECHO_T}no, using $LN_S" >&6
4211fi
4212
4213am__api_version="1.9"
4214# Find a good install program.  We prefer a C program (faster),
4215# so one script is as good as another.  But avoid the broken or
4216# incompatible versions:
4217# SysV /etc/install, /usr/sbin/install
4218# SunOS /usr/etc/install
4219# IRIX /sbin/install
4220# AIX /bin/install
4221# AmigaOS /C/install, which installs bootblocks on floppy discs
4222# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4223# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4224# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4225# OS/2's system install, which has a completely different semantic
4226# ./install, which can be erroneously created by make from ./install.sh.
4227echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4228echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4229if test -z "$INSTALL"; then
4230if test "${ac_cv_path_install+set}" = set; then
4231  echo $ECHO_N "(cached) $ECHO_C" >&6
4232else
4233  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4234for as_dir in $PATH
4235do
4236  IFS=$as_save_IFS
4237  test -z "$as_dir" && as_dir=.
4238  # Account for people who put trailing slashes in PATH elements.
4239case $as_dir/ in
4240  ./ | .// | /cC/* | \
4241  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4242  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4243  /usr/ucb/* ) ;;
4244  *)
4245    # OSF1 and SCO ODT 3.0 have their own names for install.
4246    # Don't use installbsd from OSF since it installs stuff as root
4247    # by default.
4248    for ac_prog in ginstall scoinst install; do
4249      for ac_exec_ext in '' $ac_executable_extensions; do
4250	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4251	  if test $ac_prog = install &&
4252	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4253	    # AIX install.  It has an incompatible calling convention.
4254	    :
4255	  elif test $ac_prog = install &&
4256	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4257	    # program-specific install script used by HP pwplus--don't use.
4258	    :
4259	  else
4260	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4261	    break 3
4262	  fi
4263	fi
4264      done
4265    done
4266    ;;
4267esac
4268done
4269
4270
4271fi
4272  if test "${ac_cv_path_install+set}" = set; then
4273    INSTALL=$ac_cv_path_install
4274  else
4275    # As a last resort, use the slow shell script.  We don't cache a
4276    # path for INSTALL within a source directory, because that will
4277    # break other packages using the cache if that directory is
4278    # removed, or if the path is relative.
4279    INSTALL=$ac_install_sh
4280  fi
4281fi
4282echo "$as_me:$LINENO: result: $INSTALL" >&5
4283echo "${ECHO_T}$INSTALL" >&6
4284
4285# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4286# It thinks the first close brace ends the variable substitution.
4287test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4288
4289test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4290
4291test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4292
4293echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4294echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4295# Just in case
4296sleep 1
4297echo timestamp > conftest.file
4298# Do `set' in a subshell so we don't clobber the current shell's
4299# arguments.  Must try -L first in case configure is actually a
4300# symlink; some systems play weird games with the mod time of symlinks
4301# (eg FreeBSD returns the mod time of the symlink's containing
4302# directory).
4303if (
4304   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4305   if test "$*" = "X"; then
4306      # -L didn't work.
4307      set X `ls -t $srcdir/configure conftest.file`
4308   fi
4309   rm -f conftest.file
4310   if test "$*" != "X $srcdir/configure conftest.file" \
4311      && test "$*" != "X conftest.file $srcdir/configure"; then
4312
4313      # If neither matched, then we have a broken ls.  This can happen
4314      # if, for instance, CONFIG_SHELL is bash and it inherits a
4315      # broken ls alias from the environment.  This has actually
4316      # happened.  Such a system could not be considered "sane".
4317      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4318alias in your environment" >&5
4319echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4320alias in your environment" >&2;}
4321   { (exit 1); exit 1; }; }
4322   fi
4323
4324   test "$2" = conftest.file
4325   )
4326then
4327   # Ok.
4328   :
4329else
4330   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4331Check your system clock" >&5
4332echo "$as_me: error: newly created file is older than distributed files!
4333Check your system clock" >&2;}
4334   { (exit 1); exit 1; }; }
4335fi
4336echo "$as_me:$LINENO: result: yes" >&5
4337echo "${ECHO_T}yes" >&6
4338test "$program_prefix" != NONE &&
4339  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4340# Use a double $ so make ignores it.
4341test "$program_suffix" != NONE &&
4342  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4343# Double any \ or $.  echo might interpret backslashes.
4344# By default was `s,x,x', remove it if useless.
4345cat <<\_ACEOF >conftest.sed
4346s/[\\$]/&&/g;s/;s,x,x,$//
4347_ACEOF
4348program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4349rm conftest.sed
4350
4351# expand $ac_aux_dir to an absolute path
4352am_aux_dir=`cd $ac_aux_dir && pwd`
4353
4354test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4355# Use eval to expand $SHELL
4356if eval "$MISSING --run true"; then
4357  am_missing_run="$MISSING --run "
4358else
4359  am_missing_run=
4360  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4361echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4362fi
4363
4364if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4365  # We used to keeping the `.' as first argument, in order to
4366  # allow $(mkdir_p) to be used without argument.  As in
4367  #   $(mkdir_p) $(somedir)
4368  # where $(somedir) is conditionally defined.  However this is wrong
4369  # for two reasons:
4370  #  1. if the package is installed by a user who cannot write `.'
4371  #     make install will fail,
4372  #  2. the above comment should most certainly read
4373  #     $(mkdir_p) $(DESTDIR)$(somedir)
4374  #     so it does not work when $(somedir) is undefined and
4375  #     $(DESTDIR) is not.
4376  #  To support the latter case, we have to write
4377  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4378  #  so the `.' trick is pointless.
4379  mkdir_p='mkdir -p --'
4380else
4381  # On NextStep and OpenStep, the `mkdir' command does not
4382  # recognize any option.  It will interpret all options as
4383  # directories to create, and then abort because `.' already
4384  # exists.
4385  for d in ./-p ./--version;
4386  do
4387    test -d $d && rmdir $d
4388  done
4389  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4390  if test -f "$ac_aux_dir/mkinstalldirs"; then
4391    mkdir_p='$(mkinstalldirs)'
4392  else
4393    mkdir_p='$(install_sh) -d'
4394  fi
4395fi
4396
4397for ac_prog in gawk mawk nawk awk
4398do
4399  # Extract the first word of "$ac_prog", so it can be a program name with args.
4400set dummy $ac_prog; ac_word=$2
4401echo "$as_me:$LINENO: checking for $ac_word" >&5
4402echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4403if test "${ac_cv_prog_AWK+set}" = set; then
4404  echo $ECHO_N "(cached) $ECHO_C" >&6
4405else
4406  if test -n "$AWK"; then
4407  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4408else
4409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4410for as_dir in $PATH
4411do
4412  IFS=$as_save_IFS
4413  test -z "$as_dir" && as_dir=.
4414  for ac_exec_ext in '' $ac_executable_extensions; do
4415  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4416    ac_cv_prog_AWK="$ac_prog"
4417    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4418    break 2
4419  fi
4420done
4421done
4422
4423fi
4424fi
4425AWK=$ac_cv_prog_AWK
4426if test -n "$AWK"; then
4427  echo "$as_me:$LINENO: result: $AWK" >&5
4428echo "${ECHO_T}$AWK" >&6
4429else
4430  echo "$as_me:$LINENO: result: no" >&5
4431echo "${ECHO_T}no" >&6
4432fi
4433
4434  test -n "$AWK" && break
4435done
4436
4437echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4438echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4439set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4440if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4441  echo $ECHO_N "(cached) $ECHO_C" >&6
4442else
4443  cat >conftest.make <<\_ACEOF
4444all:
4445	@echo 'ac_maketemp="$(MAKE)"'
4446_ACEOF
4447# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4448eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4449if test -n "$ac_maketemp"; then
4450  eval ac_cv_prog_make_${ac_make}_set=yes
4451else
4452  eval ac_cv_prog_make_${ac_make}_set=no
4453fi
4454rm -f conftest.make
4455fi
4456if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4457  echo "$as_me:$LINENO: result: yes" >&5
4458echo "${ECHO_T}yes" >&6
4459  SET_MAKE=
4460else
4461  echo "$as_me:$LINENO: result: no" >&5
4462echo "${ECHO_T}no" >&6
4463  SET_MAKE="MAKE=${MAKE-make}"
4464fi
4465
4466rm -rf .tst 2>/dev/null
4467mkdir .tst 2>/dev/null
4468if test -d .tst; then
4469  am__leading_dot=.
4470else
4471  am__leading_dot=_
4472fi
4473rmdir .tst 2>/dev/null
4474
4475DEPDIR="${am__leading_dot}deps"
4476
4477          ac_config_commands="$ac_config_commands depfiles"
4478
4479
4480am_make=${MAKE-make}
4481cat > confinc << 'END'
4482am__doit:
4483	@echo done
4484.PHONY: am__doit
4485END
4486# If we don't find an include directive, just comment out the code.
4487echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4488echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4489am__include="#"
4490am__quote=
4491_am_result=none
4492# First try GNU make style include.
4493echo "include confinc" > confmf
4494# We grep out `Entering directory' and `Leaving directory'
4495# messages which can occur if `w' ends up in MAKEFLAGS.
4496# In particular we don't look at `^make:' because GNU make might
4497# be invoked under some other name (usually "gmake"), in which
4498# case it prints its new name instead of `make'.
4499if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4500   am__include=include
4501   am__quote=
4502   _am_result=GNU
4503fi
4504# Now try BSD make style include.
4505if test "$am__include" = "#"; then
4506   echo '.include "confinc"' > confmf
4507   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4508      am__include=.include
4509      am__quote="\""
4510      _am_result=BSD
4511   fi
4512fi
4513
4514
4515echo "$as_me:$LINENO: result: $_am_result" >&5
4516echo "${ECHO_T}$_am_result" >&6
4517rm -f confinc confmf
4518
4519# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4520if test "${enable_dependency_tracking+set}" = set; then
4521  enableval="$enable_dependency_tracking"
4522
4523fi;
4524if test "x$enable_dependency_tracking" != xno; then
4525  am_depcomp="$ac_aux_dir/depcomp"
4526  AMDEPBACKSLASH='\'
4527fi
4528
4529
4530if test "x$enable_dependency_tracking" != xno; then
4531  AMDEP_TRUE=
4532  AMDEP_FALSE='#'
4533else
4534  AMDEP_TRUE='#'
4535  AMDEP_FALSE=
4536fi
4537
4538
4539
4540
4541
4542
4543# AC_MSG_NOTICE([Beginning automake initialisation.])
4544# Stuff for automake
4545# test to see if srcdir already configured
4546if test "`cd $srcdir && pwd`" != "`pwd`" &&
4547   test -f $srcdir/config.status; then
4548  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4549echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4550   { (exit 1); exit 1; }; }
4551fi
4552
4553# test whether we have cygpath
4554if test -z "$CYGPATH_W"; then
4555  if (cygpath --version) >/dev/null 2>/dev/null; then
4556    CYGPATH_W='cygpath -w'
4557  else
4558    CYGPATH_W=echo
4559  fi
4560fi
4561
4562
4563# Define the identity of the package.
4564 PACKAGE='clp'
4565 VERSION='1.17.3'
4566
4567
4568cat >>confdefs.h <<_ACEOF
4569#define PACKAGE "$PACKAGE"
4570_ACEOF
4571
4572
4573cat >>confdefs.h <<_ACEOF
4574#define VERSION "$VERSION"
4575_ACEOF
4576
4577# Some tools Automake needs.
4578
4579ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4580
4581
4582AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4583
4584
4585AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4586
4587
4588AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4589
4590
4591MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4592
4593install_sh=${install_sh-"$am_aux_dir/install-sh"}
4594
4595# Installed binaries are usually stripped using `strip' when the user
4596# run `make install-strip'.  However `strip' might not be the right
4597# tool to use in cross-compilation environments, therefore Automake
4598# will honor the `STRIP' environment variable to overrule this program.
4599if test "$cross_compiling" != no; then
4600  if test -n "$ac_tool_prefix"; then
4601  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4602set dummy ${ac_tool_prefix}strip; ac_word=$2
4603echo "$as_me:$LINENO: checking for $ac_word" >&5
4604echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4605if test "${ac_cv_prog_STRIP+set}" = set; then
4606  echo $ECHO_N "(cached) $ECHO_C" >&6
4607else
4608  if test -n "$STRIP"; then
4609  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4610else
4611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4612for as_dir in $PATH
4613do
4614  IFS=$as_save_IFS
4615  test -z "$as_dir" && as_dir=.
4616  for ac_exec_ext in '' $ac_executable_extensions; do
4617  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4618    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4619    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4620    break 2
4621  fi
4622done
4623done
4624
4625fi
4626fi
4627STRIP=$ac_cv_prog_STRIP
4628if test -n "$STRIP"; then
4629  echo "$as_me:$LINENO: result: $STRIP" >&5
4630echo "${ECHO_T}$STRIP" >&6
4631else
4632  echo "$as_me:$LINENO: result: no" >&5
4633echo "${ECHO_T}no" >&6
4634fi
4635
4636fi
4637if test -z "$ac_cv_prog_STRIP"; then
4638  ac_ct_STRIP=$STRIP
4639  # Extract the first word of "strip", so it can be a program name with args.
4640set dummy strip; ac_word=$2
4641echo "$as_me:$LINENO: checking for $ac_word" >&5
4642echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4643if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4644  echo $ECHO_N "(cached) $ECHO_C" >&6
4645else
4646  if test -n "$ac_ct_STRIP"; then
4647  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4648else
4649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4650for as_dir in $PATH
4651do
4652  IFS=$as_save_IFS
4653  test -z "$as_dir" && as_dir=.
4654  for ac_exec_ext in '' $ac_executable_extensions; do
4655  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4656    ac_cv_prog_ac_ct_STRIP="strip"
4657    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4658    break 2
4659  fi
4660done
4661done
4662
4663  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4664fi
4665fi
4666ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4667if test -n "$ac_ct_STRIP"; then
4668  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4669echo "${ECHO_T}$ac_ct_STRIP" >&6
4670else
4671  echo "$as_me:$LINENO: result: no" >&5
4672echo "${ECHO_T}no" >&6
4673fi
4674
4675  STRIP=$ac_ct_STRIP
4676else
4677  STRIP="$ac_cv_prog_STRIP"
4678fi
4679
4680fi
4681INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4682
4683# We need awk for the "check" target.  The system "awk" is bad on
4684# some platforms.
4685# Always define AMTAR for backward compatibility.
4686
4687AMTAR=${AMTAR-"${am_missing_run}tar"}
4688
4689am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4690
4691
4692
4693
4694depcc="$CC"   am_compiler_list=
4695
4696echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4697echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4698if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4699  echo $ECHO_N "(cached) $ECHO_C" >&6
4700else
4701  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4702  # We make a subdir and do the tests there.  Otherwise we can end up
4703  # making bogus files that we don't know about and never remove.  For
4704  # instance it was reported that on HP-UX the gcc test will end up
4705  # making a dummy file named `D' -- because `-MD' means `put the output
4706  # in D'.
4707  mkdir conftest.dir
4708  # Copy depcomp to subdir because otherwise we won't find it if we're
4709  # using a relative directory.
4710  cp "$am_depcomp" conftest.dir
4711  cd conftest.dir
4712  # We will build objects and dependencies in a subdirectory because
4713  # it helps to detect inapplicable dependency modes.  For instance
4714  # both Tru64's cc and ICC support -MD to output dependencies as a
4715  # side effect of compilation, but ICC will put the dependencies in
4716  # the current directory while Tru64 will put them in the object
4717  # directory.
4718  mkdir sub
4719
4720  am_cv_CC_dependencies_compiler_type=none
4721  if test "$am_compiler_list" = ""; then
4722     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4723  fi
4724  for depmode in $am_compiler_list; do
4725    # Setup a source with many dependencies, because some compilers
4726    # like to wrap large dependency lists on column 80 (with \), and
4727    # we should not choose a depcomp mode which is confused by this.
4728    #
4729    # We need to recreate these files for each test, as the compiler may
4730    # overwrite some of them when testing with obscure command lines.
4731    # This happens at least with the AIX C compiler.
4732    : > sub/conftest.c
4733    for i in 1 2 3 4 5 6; do
4734      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4735      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4736      # Solaris 8's {/usr,}/bin/sh.
4737      touch sub/conftst$i.h
4738    done
4739    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4740
4741    case $depmode in
4742    nosideeffect)
4743      # after this tag, mechanisms are not by side-effect, so they'll
4744      # only be used when explicitly requested
4745      if test "x$enable_dependency_tracking" = xyes; then
4746	continue
4747      else
4748	break
4749      fi
4750      ;;
4751    none) break ;;
4752    esac
4753    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4754    # mode.  It turns out that the SunPro C++ compiler does not properly
4755    # handle `-M -o', and we need to detect this.
4756    if depmode=$depmode \
4757       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4758       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4759       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4760         >/dev/null 2>conftest.err &&
4761       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4762       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4763       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4764      # icc doesn't choke on unknown options, it will just issue warnings
4765      # or remarks (even with -Werror).  So we grep stderr for any message
4766      # that says an option was ignored or not supported.
4767      # When given -MP, icc 7.0 and 7.1 complain thusly:
4768      #   icc: Command line warning: ignoring option '-M'; no argument required
4769      # The diagnosis changed in icc 8.0:
4770      #   icc: Command line remark: option '-MP' not supported
4771      if (grep 'ignoring option' conftest.err ||
4772          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4773        am_cv_CC_dependencies_compiler_type=$depmode
4774        break
4775      fi
4776    fi
4777  done
4778
4779  cd ..
4780  rm -rf conftest.dir
4781else
4782  am_cv_CC_dependencies_compiler_type=none
4783fi
4784
4785fi
4786echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4787echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4788CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4789
4790
4791
4792if
4793  test "x$enable_dependency_tracking" != xno \
4794  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4795  am__fastdepCC_TRUE=
4796  am__fastdepCC_FALSE='#'
4797else
4798  am__fastdepCC_TRUE='#'
4799  am__fastdepCC_FALSE=
4800fi
4801
4802
4803depcc="$CXX"  am_compiler_list=
4804
4805echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4806echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4807if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4808  echo $ECHO_N "(cached) $ECHO_C" >&6
4809else
4810  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4811  # We make a subdir and do the tests there.  Otherwise we can end up
4812  # making bogus files that we don't know about and never remove.  For
4813  # instance it was reported that on HP-UX the gcc test will end up
4814  # making a dummy file named `D' -- because `-MD' means `put the output
4815  # in D'.
4816  mkdir conftest.dir
4817  # Copy depcomp to subdir because otherwise we won't find it if we're
4818  # using a relative directory.
4819  cp "$am_depcomp" conftest.dir
4820  cd conftest.dir
4821  # We will build objects and dependencies in a subdirectory because
4822  # it helps to detect inapplicable dependency modes.  For instance
4823  # both Tru64's cc and ICC support -MD to output dependencies as a
4824  # side effect of compilation, but ICC will put the dependencies in
4825  # the current directory while Tru64 will put them in the object
4826  # directory.
4827  mkdir sub
4828
4829  am_cv_CXX_dependencies_compiler_type=none
4830  if test "$am_compiler_list" = ""; then
4831     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4832  fi
4833  for depmode in $am_compiler_list; do
4834    # Setup a source with many dependencies, because some compilers
4835    # like to wrap large dependency lists on column 80 (with \), and
4836    # we should not choose a depcomp mode which is confused by this.
4837    #
4838    # We need to recreate these files for each test, as the compiler may
4839    # overwrite some of them when testing with obscure command lines.
4840    # This happens at least with the AIX C compiler.
4841    : > sub/conftest.c
4842    for i in 1 2 3 4 5 6; do
4843      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4844      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4845      # Solaris 8's {/usr,}/bin/sh.
4846      touch sub/conftst$i.h
4847    done
4848    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4849
4850    case $depmode in
4851    nosideeffect)
4852      # after this tag, mechanisms are not by side-effect, so they'll
4853      # only be used when explicitly requested
4854      if test "x$enable_dependency_tracking" = xyes; then
4855	continue
4856      else
4857	break
4858      fi
4859      ;;
4860    none) break ;;
4861    esac
4862    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4863    # mode.  It turns out that the SunPro C++ compiler does not properly
4864    # handle `-M -o', and we need to detect this.
4865    if depmode=$depmode \
4866       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4867       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4868       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4869         >/dev/null 2>conftest.err &&
4870       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4871       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4872       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4873      # icc doesn't choke on unknown options, it will just issue warnings
4874      # or remarks (even with -Werror).  So we grep stderr for any message
4875      # that says an option was ignored or not supported.
4876      # When given -MP, icc 7.0 and 7.1 complain thusly:
4877      #   icc: Command line warning: ignoring option '-M'; no argument required
4878      # The diagnosis changed in icc 8.0:
4879      #   icc: Command line remark: option '-MP' not supported
4880      if (grep 'ignoring option' conftest.err ||
4881          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4882        am_cv_CXX_dependencies_compiler_type=$depmode
4883        break
4884      fi
4885    fi
4886  done
4887
4888  cd ..
4889  rm -rf conftest.dir
4890else
4891  am_cv_CXX_dependencies_compiler_type=none
4892fi
4893
4894fi
4895echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4896echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4897CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4898
4899
4900
4901if
4902  test "x$enable_dependency_tracking" != xno \
4903  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4904  am__fastdepCXX_TRUE=
4905  am__fastdepCXX_FALSE='#'
4906else
4907  am__fastdepCXX_TRUE='#'
4908  am__fastdepCXX_FALSE=
4909fi
4910
4911
4912
4913echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4914echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4915    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4916if test "${enable_maintainer_mode+set}" = set; then
4917  enableval="$enable_maintainer_mode"
4918  USE_MAINTAINER_MODE=$enableval
4919else
4920  USE_MAINTAINER_MODE=no
4921fi;
4922  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4923echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4924
4925
4926if test $USE_MAINTAINER_MODE = yes; then
4927  MAINTAINER_MODE_TRUE=
4928  MAINTAINER_MODE_FALSE='#'
4929else
4930  MAINTAINER_MODE_TRUE='#'
4931  MAINTAINER_MODE_FALSE=
4932fi
4933
4934  MAINT=$MAINTAINER_MODE_TRUE
4935
4936
4937
4938coin_have_externals=no
4939if test "$enable_maintainer_mode" = yes; then
4940
4941  # If maintainer mode is chosen, we make sure that the correct versions
4942  # of the tools are used, and that we know where libtool.m4 is (to
4943  # recreate acinclude.m4)
4944
4945
4946  LIBTOOLM4=
4947  # Normally, $HOME
4948  AUTOTOOLS_DFLT=$HOME
4949
4950  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
4951echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
4952if test "${ac_cv_use_correct_autotools+set}" = set; then
4953  echo $ECHO_N "(cached) $ECHO_C" >&6
4954else
4955  ac_cv_use_correct_autotools=check
4956fi
4957echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
4958echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
4959
4960  if test $ac_cv_use_correct_autotools = check; then
4961    ac_cv_use_correct_autotools=yes
4962    # Check if we have autoconf
4963    # Extract the first word of "autoconf", so it can be a program name with args.
4964set dummy autoconf; ac_word=$2
4965echo "$as_me:$LINENO: checking for $ac_word" >&5
4966echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4967if test "${ac_cv_prog_have_autoconf+set}" = set; then
4968  echo $ECHO_N "(cached) $ECHO_C" >&6
4969else
4970  if test -n "$have_autoconf"; then
4971  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
4972else
4973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4974for as_dir in $PATH
4975do
4976  IFS=$as_save_IFS
4977  test -z "$as_dir" && as_dir=.
4978  for ac_exec_ext in '' $ac_executable_extensions; do
4979  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4980    ac_cv_prog_have_autoconf="yes"
4981    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4982    break 2
4983  fi
4984done
4985done
4986
4987  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
4988fi
4989fi
4990have_autoconf=$ac_cv_prog_have_autoconf
4991if test -n "$have_autoconf"; then
4992  echo "$as_me:$LINENO: result: $have_autoconf" >&5
4993echo "${ECHO_T}$have_autoconf" >&6
4994else
4995  echo "$as_me:$LINENO: result: no" >&5
4996echo "${ECHO_T}no" >&6
4997fi
4998
4999    if test $have_autoconf = no; then
5000      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5001echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5002   { (exit 1); exit 1; }; }
5003    fi
5004
5005    # Check whether autoconf is the correct version
5006    correct_version='2.59'
5007    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5008    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5009echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5010    autoconf --version > confauto.out 2>&1
5011    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5012      echo "$as_me:$LINENO: result: yes" >&5
5013echo "${ECHO_T}yes" >&6
5014    else
5015      rm -f confauto.out
5016      echo "$as_me:$LINENO: result: no" >&5
5017echo "${ECHO_T}no" >&6
5018      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5019echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5020   { (exit 1); exit 1; }; }
5021    fi
5022    rm -f confauto.out
5023
5024    # Check if the executable autoconf is picked up from the correct location
5025    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5026echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5027    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5028    autoconf_dir=`cd $autoconf_dir; pwd`
5029    if test x$AUTOTOOLS_DIR = x; then
5030      want_dir=$AUTOTOOLS_DFLT/bin
5031    else
5032      want_dir=$AUTOTOOLS_DIR/bin
5033    fi
5034    if test $autoconf_dir = `cd $want_dir; pwd`; then
5035      echo "$as_me:$LINENO: result: yes" >&5
5036echo "${ECHO_T}yes" >&6
5037    else
5038      rm -f confauto.out
5039      echo "$as_me:$LINENO: result: no" >&5
5040echo "${ECHO_T}no" >&6
5041      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5042echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5043   { (exit 1); exit 1; }; }
5044    fi
5045
5046    # Check if we have automake
5047    # Extract the first word of "automake", so it can be a program name with args.
5048set dummy automake; ac_word=$2
5049echo "$as_me:$LINENO: checking for $ac_word" >&5
5050echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5051if test "${ac_cv_prog_have_automake+set}" = set; then
5052  echo $ECHO_N "(cached) $ECHO_C" >&6
5053else
5054  if test -n "$have_automake"; then
5055  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5056else
5057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5058for as_dir in $PATH
5059do
5060  IFS=$as_save_IFS
5061  test -z "$as_dir" && as_dir=.
5062  for ac_exec_ext in '' $ac_executable_extensions; do
5063  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5064    ac_cv_prog_have_automake="yes"
5065    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5066    break 2
5067  fi
5068done
5069done
5070
5071  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5072fi
5073fi
5074have_automake=$ac_cv_prog_have_automake
5075if test -n "$have_automake"; then
5076  echo "$as_me:$LINENO: result: $have_automake" >&5
5077echo "${ECHO_T}$have_automake" >&6
5078else
5079  echo "$as_me:$LINENO: result: no" >&5
5080echo "${ECHO_T}no" >&6
5081fi
5082
5083    if test $have_automake = no; then
5084      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5085echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5086   { (exit 1); exit 1; }; }
5087    fi
5088
5089    # Check whether automake is the correct version
5090    correct_version='1.9.6'
5091    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5092    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5093echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5094    automake --version > confauto.out 2>&1
5095    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5096      echo "$as_me:$LINENO: result: yes" >&5
5097echo "${ECHO_T}yes" >&6
5098    else
5099      rm -f confauto.out
5100      echo "$as_me:$LINENO: result: no" >&5
5101echo "${ECHO_T}no" >&6
5102      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5103echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5104   { (exit 1); exit 1; }; }
5105    fi
5106    rm -f confauto.out
5107
5108    # Check if the executable automake is picked up from the correct location
5109    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5110echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5111    automake_dir=`which automake | sed -e 's=/automake=='`
5112    automake_dir=`cd $automake_dir; pwd`
5113    if test x$AUTOTOOLS_DIR = x; then
5114      want_dir=$AUTOTOOLS_DFLT/bin
5115    else
5116      want_dir=$AUTOTOOLS_DIR/bin
5117    fi
5118    if test $automake_dir = `cd $want_dir; pwd`; then
5119      echo "$as_me:$LINENO: result: yes" >&5
5120echo "${ECHO_T}yes" >&6
5121    else
5122      rm -f confauto.out
5123      echo "$as_me:$LINENO: result: no" >&5
5124echo "${ECHO_T}no" >&6
5125      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5126echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5127   { (exit 1); exit 1; }; }
5128    fi
5129
5130    # Check if this is the correct version of libtool (with escaped dots)
5131    if test x$AUTOTOOLS_DIR = x; then
5132      want_dir=$AUTOTOOLS_DFLT/share
5133    else
5134      want_dir=$AUTOTOOLS_DIR/share
5135    fi
5136    correct_version='1.5.22'
5137    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5138    if test -r $want_dir/libtool/ltmain.sh; then
5139  have_ltmain=yes
5140  :
5141else
5142  have_ltmain=no
5143  :
5144fi
5145
5146    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5147echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5148    if test $have_ltmain = yes; then
5149    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5150        echo "$as_me:$LINENO: result: yes" >&5
5151echo "${ECHO_T}yes" >&6
5152      else
5153        echo "$as_me:$LINENO: result: no" >&5
5154echo "${ECHO_T}no" >&6
5155        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5156echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5157   { (exit 1); exit 1; }; }
5158      fi
5159    else
5160      echo "$as_me:$LINENO: result: no" >&5
5161echo "${ECHO_T}no" >&6
5162      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5163echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5164   { (exit 1); exit 1; }; }
5165    fi
5166  fi
5167
5168  # Check if we can find the libtool file
5169  if test x$AUTOTOOLS_DIR = x; then
5170    want_dir=$AUTOTOOLS_DFLT/share
5171  else
5172    want_dir=$AUTOTOOLS_DIR/share
5173  fi
5174  if test -r $want_dir/aclocal/libtool.m4; then
5175  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5176  :
5177else
5178  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5179echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5180   { (exit 1); exit 1; }; }
5181  :
5182fi
5183
5184
5185  # Check if we have an Dependencies file
5186  if test -r $srcdir/Dependencies; then
5187    coin_have_externals=yes
5188  fi
5189  # Check if subversion is installed and understands https
5190  # Extract the first word of "svn", so it can be a program name with args.
5191set dummy svn; ac_word=$2
5192echo "$as_me:$LINENO: checking for $ac_word" >&5
5193echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5194if test "${ac_cv_prog_have_svn+set}" = set; then
5195  echo $ECHO_N "(cached) $ECHO_C" >&6
5196else
5197  if test -n "$have_svn"; then
5198  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5199else
5200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5201for as_dir in $PATH
5202do
5203  IFS=$as_save_IFS
5204  test -z "$as_dir" && as_dir=.
5205  for ac_exec_ext in '' $ac_executable_extensions; do
5206  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5207    ac_cv_prog_have_svn="yes"
5208    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5209    break 2
5210  fi
5211done
5212done
5213
5214  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5215fi
5216fi
5217have_svn=$ac_cv_prog_have_svn
5218if test -n "$have_svn"; then
5219  echo "$as_me:$LINENO: result: $have_svn" >&5
5220echo "${ECHO_T}$have_svn" >&6
5221else
5222  echo "$as_me:$LINENO: result: no" >&5
5223echo "${ECHO_T}no" >&6
5224fi
5225
5226  if test x$have_svn = xyes; then
5227    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5228echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5229if test "${ac_cv_svn_understands_https+set}" = set; then
5230  echo $ECHO_N "(cached) $ECHO_C" >&6
5231else
5232  svn --version > confauto.out 2>&1
5233                    if $EGREP https confauto.out >/dev/null 2>&1; then
5234                      ac_cv_svn_understands_https=yes
5235                    else
5236                      ac_cv_svn_understands_https=no
5237                      have_svn=no
5238                      ac_cv_prog_have_svn=no
5239                    fi
5240                    rm -f confauto.out
5241fi
5242echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5243echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5244  fi
5245
5246  # Find the location of the BuildTools directory
5247  BUILDTOOLSDIR=
5248  if test -r $srcdir/BuildTools/coin.m4; then
5249    BUILDTOOLSDIR=$srcdir/BuildTools
5250  else
5251    if test -r $srcdir/../BuildTools/coin.m4; then
5252      BUILDTOOLSDIR=$srcdir/../BuildTools
5253    else
5254      if test -r $srcdir/../../BuildTools/coin.m4; then
5255        BUILDTOOLSDIR=$srcdir/../../BuildTools
5256      else
5257        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5258echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5259   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
5260      fi
5261    fi
5262  fi
5263
5264
5265  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
5266  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
5267    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
5268  fi
5269
5270  # The following variable is set to the name of the directory where
5271  # the autotool scripts are located
5272
5273  AUX_DIR=$ac_aux_dir
5274fi
5275
5276# helpful variable for the base directory of this package
5277abs_source_dir=`cd $srcdir; pwd`
5278
5279
5280# Stuff for example Makefiles
5281if test x$prefix = xNONE; then
5282  full_prefix=$ac_default_prefix
5283else
5284  full_prefix=$prefix
5285fi
5286full_prefix=`cd $full_prefix ; pwd`
5287
5288abs_lib_dir=$full_prefix/lib
5289
5290abs_include_dir=$full_prefix/include
5291
5292abs_bin_dir=$full_prefix/bin
5293
5294
5295
5296if test $coin_have_externals = yes && test x$have_svn = xyes; then
5297  HAVE_EXTERNALS_TRUE=
5298  HAVE_EXTERNALS_FALSE='#'
5299else
5300  HAVE_EXTERNALS_TRUE='#'
5301  HAVE_EXTERNALS_FALSE=
5302fi
5303
5304
5305# AC_MSG_NOTICE([End automake initialisation.])
5306
5307
5308
5309LIBTOOL=
5310if test -f ../libtool; then
5311  coin_config_dir=..
5312  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5313fi
5314if test "x$LIBTOOL" = x; then
5315  if test -f ../../libtool; then
5316    coin_config_dir=../..
5317    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5318  fi
5319fi
5320
5321if test "x$LIBTOOL" = x; then
5322# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5323  # Stuff for libtool
5324  # Check whether --enable-shared or --disable-shared was given.
5325if test "${enable_shared+set}" = set; then
5326  enableval="$enable_shared"
5327  p=${PACKAGE-default}
5328    case $enableval in
5329    yes) enable_shared=yes ;;
5330    no) enable_shared=no ;;
5331    *)
5332      enable_shared=no
5333      # Look at the argument we got.  We use all the common list separators.
5334      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5335      for pkg in $enableval; do
5336	IFS="$lt_save_ifs"
5337	if test "X$pkg" = "X$p"; then
5338	  enable_shared=yes
5339	fi
5340      done
5341      IFS="$lt_save_ifs"
5342      ;;
5343    esac
5344else
5345  enable_shared=yes
5346fi;
5347
5348# Check whether --enable-fast-install or --disable-fast-install was given.
5349if test "${enable_fast_install+set}" = set; then
5350  enableval="$enable_fast_install"
5351  p=${PACKAGE-default}
5352    case $enableval in
5353    yes) enable_fast_install=yes ;;
5354    no) enable_fast_install=no ;;
5355    *)
5356      enable_fast_install=no
5357      # Look at the argument we got.  We use all the common list separators.
5358      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5359      for pkg in $enableval; do
5360	IFS="$lt_save_ifs"
5361	if test "X$pkg" = "X$p"; then
5362	  enable_fast_install=yes
5363	fi
5364      done
5365      IFS="$lt_save_ifs"
5366      ;;
5367    esac
5368else
5369  enable_fast_install=yes
5370fi;
5371
5372echo "$as_me:$LINENO: checking host system type" >&5
5373echo $ECHO_N "checking host system type... $ECHO_C" >&6
5374if test "${ac_cv_host+set}" = set; then
5375  echo $ECHO_N "(cached) $ECHO_C" >&6
5376else
5377  ac_cv_host_alias=$host_alias
5378test -z "$ac_cv_host_alias" &&
5379  ac_cv_host_alias=$ac_cv_build_alias
5380ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5381  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5382echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5383   { (exit 1); exit 1; }; }
5384
5385fi
5386echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5387echo "${ECHO_T}$ac_cv_host" >&6
5388host=$ac_cv_host
5389host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5390host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5391host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5392
5393
5394echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5395echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5396if test "${lt_cv_path_SED+set}" = set; then
5397  echo $ECHO_N "(cached) $ECHO_C" >&6
5398else
5399  # Loop through the user's path and test for sed and gsed.
5400# Then use that list of sed's as ones to test for truncation.
5401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5402for as_dir in $PATH
5403do
5404  IFS=$as_save_IFS
5405  test -z "$as_dir" && as_dir=.
5406  for lt_ac_prog in sed gsed; do
5407    for ac_exec_ext in '' $ac_executable_extensions; do
5408      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5409        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5410      fi
5411    done
5412  done
5413done
5414lt_ac_max=0
5415lt_ac_count=0
5416# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5417# along with /bin/sed that truncates output.
5418for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5419  test ! -f $lt_ac_sed && continue
5420  cat /dev/null > conftest.in
5421  lt_ac_count=0
5422  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5423  # Check for GNU sed and select it if it is found.
5424  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5425    lt_cv_path_SED=$lt_ac_sed
5426    break
5427  fi
5428  while true; do
5429    cat conftest.in conftest.in >conftest.tmp
5430    mv conftest.tmp conftest.in
5431    cp conftest.in conftest.nl
5432    echo >>conftest.nl
5433    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5434    cmp -s conftest.out conftest.nl || break
5435    # 10000 chars as input seems more than enough
5436    test $lt_ac_count -gt 10 && break
5437    lt_ac_count=`expr $lt_ac_count + 1`
5438    if test $lt_ac_count -gt $lt_ac_max; then
5439      lt_ac_max=$lt_ac_count
5440      lt_cv_path_SED=$lt_ac_sed
5441    fi
5442  done
5443done
5444
5445fi
5446
5447SED=$lt_cv_path_SED
5448echo "$as_me:$LINENO: result: $SED" >&5
5449echo "${ECHO_T}$SED" >&6
5450
5451
5452# Check whether --with-gnu-ld or --without-gnu-ld was given.
5453if test "${with_gnu_ld+set}" = set; then
5454  withval="$with_gnu_ld"
5455  test "$withval" = no || with_gnu_ld=yes
5456else
5457  with_gnu_ld=no
5458fi;
5459ac_prog=ld
5460if test "$GCC" = yes; then
5461  # Check if gcc -print-prog-name=ld gives a path.
5462  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5463echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5464  case $host in
5465  *-*-mingw*)
5466    # gcc leaves a trailing carriage return which upsets mingw
5467    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5468  *)
5469    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5470  esac
5471  case $ac_prog in
5472    # Accept absolute paths.
5473    [\\/]* | ?:[\\/]*)
5474      re_direlt='/[^/][^/]*/\.\./'
5475      # Canonicalize the pathname of ld
5476      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5477      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5478	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5479      done
5480      test -z "$LD" && LD="$ac_prog"
5481      ;;
5482  "")
5483    # If it fails, then pretend we aren't using GCC.
5484    ac_prog=ld
5485    ;;
5486  *)
5487    # If it is relative, then search for the first ld in PATH.
5488    with_gnu_ld=unknown
5489    ;;
5490  esac
5491elif test "$with_gnu_ld" = yes; then
5492  echo "$as_me:$LINENO: checking for GNU ld" >&5
5493echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5494else
5495  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5496echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5497fi
5498if test "${lt_cv_path_LD+set}" = set; then
5499  echo $ECHO_N "(cached) $ECHO_C" >&6
5500else
5501  if test -z "$LD"; then
5502  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5503  for ac_dir in $PATH; do
5504    IFS="$lt_save_ifs"
5505    test -z "$ac_dir" && ac_dir=.
5506    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5507      lt_cv_path_LD="$ac_dir/$ac_prog"
5508      # Check to see if the program is GNU ld.  I'd rather use --version,
5509      # but apparently some variants of GNU ld only accept -v.
5510      # Break only if it was the GNU/non-GNU ld that we prefer.
5511      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5512      *GNU* | *'with BFD'*)
5513	test "$with_gnu_ld" != no && break
5514	;;
5515      *)
5516	test "$with_gnu_ld" != yes && break
5517	;;
5518      esac
5519    fi
5520  done
5521  IFS="$lt_save_ifs"
5522else
5523  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5524fi
5525fi
5526
5527LD="$lt_cv_path_LD"
5528if test -n "$LD"; then
5529  echo "$as_me:$LINENO: result: $LD" >&5
5530echo "${ECHO_T}$LD" >&6
5531else
5532  echo "$as_me:$LINENO: result: no" >&5
5533echo "${ECHO_T}no" >&6
5534fi
5535test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5536echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5537   { (exit 1); exit 1; }; }
5538echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5539echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5540if test "${lt_cv_prog_gnu_ld+set}" = set; then
5541  echo $ECHO_N "(cached) $ECHO_C" >&6
5542else
5543  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5544case `$LD -v 2>&1 </dev/null` in
5545*GNU* | *'with BFD'*)
5546  lt_cv_prog_gnu_ld=yes
5547  ;;
5548*)
5549  lt_cv_prog_gnu_ld=no
5550  ;;
5551esac
5552fi
5553echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5554echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5555with_gnu_ld=$lt_cv_prog_gnu_ld
5556
5557
5558echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5559echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5560if test "${lt_cv_ld_reload_flag+set}" = set; then
5561  echo $ECHO_N "(cached) $ECHO_C" >&6
5562else
5563  lt_cv_ld_reload_flag='-r'
5564fi
5565echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5566echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5567reload_flag=$lt_cv_ld_reload_flag
5568case $reload_flag in
5569"" | " "*) ;;
5570*) reload_flag=" $reload_flag" ;;
5571esac
5572reload_cmds='$LD$reload_flag -o $output$reload_objs'
5573case $host_os in
5574  darwin*)
5575    if test "$GCC" = yes; then
5576      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5577    else
5578      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5579    fi
5580    ;;
5581esac
5582
5583echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5584echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5585if test "${lt_cv_path_NM+set}" = set; then
5586  echo $ECHO_N "(cached) $ECHO_C" >&6
5587else
5588  if test -n "$NM"; then
5589  # Let the user override the test.
5590  lt_cv_path_NM="$NM"
5591else
5592  lt_nm_to_check="${ac_tool_prefix}nm"
5593  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5594    lt_nm_to_check="$lt_nm_to_check nm"
5595  fi
5596  for lt_tmp_nm in $lt_nm_to_check; do
5597    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5598    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5599      IFS="$lt_save_ifs"
5600      test -z "$ac_dir" && ac_dir=.
5601      tmp_nm="$ac_dir/$lt_tmp_nm"
5602      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5603	# Check to see if the nm accepts a BSD-compat flag.
5604	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5605	#   nm: unknown option "B" ignored
5606	# Tru64's nm complains that /dev/null is an invalid object file
5607	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5608	*/dev/null* | *'Invalid file or object type'*)
5609	  lt_cv_path_NM="$tmp_nm -B"
5610	  break
5611	  ;;
5612	*)
5613	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5614	  */dev/null*)
5615	    lt_cv_path_NM="$tmp_nm -p"
5616	    break
5617	    ;;
5618	  *)
5619	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5620	    continue # so that we can try to find one that supports BSD flags
5621	    ;;
5622	  esac
5623	  ;;
5624	esac
5625      fi
5626    done
5627    IFS="$lt_save_ifs"
5628  done
5629  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5630fi
5631fi
5632echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5633echo "${ECHO_T}$lt_cv_path_NM" >&6
5634NM="$lt_cv_path_NM"
5635
5636echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5637echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5638if test "${lt_cv_deplibs_check_method+set}" = set; then
5639  echo $ECHO_N "(cached) $ECHO_C" >&6
5640else
5641  lt_cv_file_magic_cmd='$MAGIC_CMD'
5642lt_cv_file_magic_test_file=
5643lt_cv_deplibs_check_method='unknown'
5644# Need to set the preceding variable on all platforms that support
5645# interlibrary dependencies.
5646# 'none' -- dependencies not supported.
5647# `unknown' -- same as none, but documents that we really don't know.
5648# 'pass_all' -- all dependencies passed with no checks.
5649# 'test_compile' -- check by making test program.
5650# 'file_magic [[regex]]' -- check by looking for files in library path
5651# which responds to the $file_magic_cmd with a given extended regex.
5652# If you have `file' or equivalent on your system and you're not sure
5653# whether `pass_all' will *always* work, you probably want this one.
5654
5655case $host_os in
5656aix4* | aix5*)
5657  lt_cv_deplibs_check_method=pass_all
5658  ;;
5659
5660beos*)
5661  lt_cv_deplibs_check_method=pass_all
5662  ;;
5663
5664bsdi[45]*)
5665  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5666  lt_cv_file_magic_cmd='/usr/bin/file -L'
5667  lt_cv_file_magic_test_file=/shlib/libc.so
5668  ;;
5669
5670cygwin*)
5671  # func_win32_libid is a shell function defined in ltmain.sh
5672  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5673  lt_cv_file_magic_cmd='func_win32_libid'
5674  ;;
5675
5676mingw* | pw32*)
5677  # Base MSYS/MinGW do not provide the 'file' command needed by
5678  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5679  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5680  lt_cv_file_magic_cmd='$OBJDUMP -f'
5681  ;;
5682
5683darwin* | rhapsody*)
5684  lt_cv_deplibs_check_method=pass_all
5685  ;;
5686
5687freebsd* | kfreebsd*-gnu | dragonfly*)
5688  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5689    case $host_cpu in
5690    i*86 )
5691      # Not sure whether the presence of OpenBSD here was a mistake.
5692      # Let's accept both of them until this is cleared up.
5693      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5694      lt_cv_file_magic_cmd=/usr/bin/file
5695      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5696      ;;
5697    esac
5698  else
5699    lt_cv_deplibs_check_method=pass_all
5700  fi
5701  ;;
5702
5703gnu*)
5704  lt_cv_deplibs_check_method=pass_all
5705  ;;
5706
5707hpux10.20* | hpux11*)
5708  lt_cv_file_magic_cmd=/usr/bin/file
5709  case $host_cpu in
5710  ia64*)
5711    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5712    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5713    ;;
5714  hppa*64*)
5715    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5716    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5717    ;;
5718  *)
5719    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5720    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5721    ;;
5722  esac
5723  ;;
5724
5725interix3*)
5726  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5727  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5728  ;;
5729
5730irix5* | irix6* | nonstopux*)
5731  case $LD in
5732  *-32|*"-32 ") libmagic=32-bit;;
5733  *-n32|*"-n32 ") libmagic=N32;;
5734  *-64|*"-64 ") libmagic=64-bit;;
5735  *) libmagic=never-match;;
5736  esac
5737  lt_cv_deplibs_check_method=pass_all
5738  ;;
5739
5740# This must be Linux ELF.
5741linux*)
5742  lt_cv_deplibs_check_method=pass_all
5743  ;;
5744
5745netbsd*)
5746  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5747    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5748  else
5749    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5750  fi
5751  ;;
5752
5753newos6*)
5754  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5755  lt_cv_file_magic_cmd=/usr/bin/file
5756  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5757  ;;
5758
5759nto-qnx*)
5760  lt_cv_deplibs_check_method=unknown
5761  ;;
5762
5763openbsd*)
5764  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5765    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5766  else
5767    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5768  fi
5769  ;;
5770
5771osf3* | osf4* | osf5*)
5772  lt_cv_deplibs_check_method=pass_all
5773  ;;
5774
5775solaris*)
5776  lt_cv_deplibs_check_method=pass_all
5777  ;;
5778
5779sysv4 | sysv4.3*)
5780  case $host_vendor in
5781  motorola)
5782    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
5783    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5784    ;;
5785  ncr)
5786    lt_cv_deplibs_check_method=pass_all
5787    ;;
5788  sequent)
5789    lt_cv_file_magic_cmd='/bin/file'
5790    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5791    ;;
5792  sni)
5793    lt_cv_file_magic_cmd='/bin/file'
5794    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5795    lt_cv_file_magic_test_file=/lib/libc.so
5796    ;;
5797  siemens)
5798    lt_cv_deplibs_check_method=pass_all
5799    ;;
5800  pc)
5801    lt_cv_deplibs_check_method=pass_all
5802    ;;
5803  esac
5804  ;;
5805
5806sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5807  lt_cv_deplibs_check_method=pass_all
5808  ;;
5809esac
5810
5811fi
5812echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5813echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5814file_magic_cmd=$lt_cv_file_magic_cmd
5815deplibs_check_method=$lt_cv_deplibs_check_method
5816test -z "$deplibs_check_method" && deplibs_check_method=unknown
5817
5818
5819
5820
5821# If no C compiler was specified, use CC.
5822LTCC=${LTCC-"$CC"}
5823
5824# If no C compiler flags were specified, use CFLAGS.
5825LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5826
5827# Allow CC to be a program name with arguments.
5828compiler=$CC
5829
5830# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5831if test "${enable_libtool_lock+set}" = set; then
5832  enableval="$enable_libtool_lock"
5833
5834fi;
5835test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5836
5837# Some flags need to be propagated to the compiler or linker for good
5838# libtool support.
5839case $host in
5840ia64-*-hpux*)
5841  # Find out which ABI we are using.
5842  echo 'int i;' > conftest.$ac_ext
5843  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5844  (eval $ac_compile) 2>&5
5845  ac_status=$?
5846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847  (exit $ac_status); }; then
5848    case `/usr/bin/file conftest.$ac_objext` in
5849    *ELF-32*)
5850      HPUX_IA64_MODE="32"
5851      ;;
5852    *ELF-64*)
5853      HPUX_IA64_MODE="64"
5854      ;;
5855    esac
5856  fi
5857  rm -rf conftest*
5858  ;;
5859*-*-irix6*)
5860  # Find out which ABI we are using.
5861  echo '#line 5861 "configure"' > conftest.$ac_ext
5862  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5863  (eval $ac_compile) 2>&5
5864  ac_status=$?
5865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866  (exit $ac_status); }; then
5867   if test "$lt_cv_prog_gnu_ld" = yes; then
5868    case `/usr/bin/file conftest.$ac_objext` in
5869    *32-bit*)
5870      LD="${LD-ld} -melf32bsmip"
5871      ;;
5872    *N32*)
5873      LD="${LD-ld} -melf32bmipn32"
5874      ;;
5875    *64-bit*)
5876      LD="${LD-ld} -melf64bmip"
5877      ;;
5878    esac
5879   else
5880    case `/usr/bin/file conftest.$ac_objext` in
5881    *32-bit*)
5882      LD="${LD-ld} -32"
5883      ;;
5884    *N32*)
5885      LD="${LD-ld} -n32"
5886      ;;
5887    *64-bit*)
5888      LD="${LD-ld} -64"
5889      ;;
5890    esac
5891   fi
5892  fi
5893  rm -rf conftest*
5894  ;;
5895
5896x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5897  # Find out which ABI we are using.
5898  echo 'int i;' > conftest.$ac_ext
5899  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5900  (eval $ac_compile) 2>&5
5901  ac_status=$?
5902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903  (exit $ac_status); }; then
5904    case `/usr/bin/file conftest.o` in
5905    *32-bit*)
5906      case $host in
5907        x86_64-*linux*)
5908          LD="${LD-ld} -m elf_i386"
5909          ;;
5910        ppc64-*linux*|powerpc64-*linux*)
5911          LD="${LD-ld} -m elf32ppclinux"
5912          ;;
5913        s390x-*linux*)
5914          LD="${LD-ld} -m elf_s390"
5915          ;;
5916        sparc64-*linux*)
5917          LD="${LD-ld} -m elf32_sparc"
5918          ;;
5919      esac
5920      ;;
5921    *64-bit*)
5922      case $host in
5923        x86_64-*linux*)
5924          LD="${LD-ld} -m elf_x86_64"
5925          ;;
5926        ppc*-*linux*|powerpc*-*linux*)
5927          LD="${LD-ld} -m elf64ppc"
5928          ;;
5929        s390*-*linux*)
5930          LD="${LD-ld} -m elf64_s390"
5931          ;;
5932        sparc*-*linux*)
5933          LD="${LD-ld} -m elf64_sparc"
5934          ;;
5935      esac
5936      ;;
5937    esac
5938  fi
5939  rm -rf conftest*
5940  ;;
5941
5942*-*-sco3.2v5*)
5943  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5944  SAVE_CFLAGS="$CFLAGS"
5945  CFLAGS="$CFLAGS -belf"
5946  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5947echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5948if test "${lt_cv_cc_needs_belf+set}" = set; then
5949  echo $ECHO_N "(cached) $ECHO_C" >&6
5950else
5951  ac_ext=c
5952ac_cpp='$CPP $CPPFLAGS'
5953ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5954ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5955ac_compiler_gnu=$ac_cv_c_compiler_gnu
5956
5957     cat >conftest.$ac_ext <<_ACEOF
5958/* confdefs.h.  */
5959_ACEOF
5960cat confdefs.h >>conftest.$ac_ext
5961cat >>conftest.$ac_ext <<_ACEOF
5962/* end confdefs.h.  */
5963
5964int
5965main ()
5966{
5967
5968  ;
5969  return 0;
5970}
5971_ACEOF
5972rm -f conftest.$ac_objext conftest$ac_exeext
5973if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5974  (eval $ac_link) 2>conftest.er1
5975  ac_status=$?
5976  grep -v '^ *+' conftest.er1 >conftest.err
5977  rm -f conftest.er1
5978  cat conftest.err >&5
5979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5980  (exit $ac_status); } &&
5981	 { ac_try='test -z "$ac_c_werror_flag"
5982			 || test ! -s conftest.err'
5983  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5984  (eval $ac_try) 2>&5
5985  ac_status=$?
5986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987  (exit $ac_status); }; } &&
5988	 { ac_try='test -s conftest$ac_exeext'
5989  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5990  (eval $ac_try) 2>&5
5991  ac_status=$?
5992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993  (exit $ac_status); }; }; then
5994  lt_cv_cc_needs_belf=yes
5995else
5996  echo "$as_me: failed program was:" >&5
5997sed 's/^/| /' conftest.$ac_ext >&5
5998
5999lt_cv_cc_needs_belf=no
6000fi
6001rm -f conftest.err conftest.$ac_objext \
6002      conftest$ac_exeext conftest.$ac_ext
6003     ac_ext=c
6004ac_cpp='$CPP $CPPFLAGS'
6005ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6006ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6007ac_compiler_gnu=$ac_cv_c_compiler_gnu
6008
6009fi
6010echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6011echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6012  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6013    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6014    CFLAGS="$SAVE_CFLAGS"
6015  fi
6016  ;;
6017sparc*-*solaris*)
6018  # Find out which ABI we are using.
6019  echo 'int i;' > conftest.$ac_ext
6020  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6021  (eval $ac_compile) 2>&5
6022  ac_status=$?
6023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024  (exit $ac_status); }; then
6025    case `/usr/bin/file conftest.o` in
6026    *64-bit*)
6027      case $lt_cv_prog_gnu_ld in
6028      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6029      *)    LD="${LD-ld} -64" ;;
6030      esac
6031      ;;
6032    esac
6033  fi
6034  rm -rf conftest*
6035  ;;
6036
6037
6038esac
6039
6040need_locks="$enable_libtool_lock"
6041
6042
6043ac_ext=c
6044ac_cpp='$CPP $CPPFLAGS'
6045ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6046ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6047ac_compiler_gnu=$ac_cv_c_compiler_gnu
6048echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6049echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6050# On Suns, sometimes $CPP names a directory.
6051if test -n "$CPP" && test -d "$CPP"; then
6052  CPP=
6053fi
6054if test -z "$CPP"; then
6055  if test "${ac_cv_prog_CPP+set}" = set; then
6056  echo $ECHO_N "(cached) $ECHO_C" >&6
6057else
6058      # Double quotes because CPP needs to be expanded
6059    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6060    do
6061      ac_preproc_ok=false
6062for ac_c_preproc_warn_flag in '' yes
6063do
6064  # Use a header file that comes with gcc, so configuring glibc
6065  # with a fresh cross-compiler works.
6066  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6067  # <limits.h> exists even on freestanding compilers.
6068  # On the NeXT, cc -E runs the code through the compiler's parser,
6069  # not just through cpp. "Syntax error" is here to catch this case.
6070  cat >conftest.$ac_ext <<_ACEOF
6071/* confdefs.h.  */
6072_ACEOF
6073cat confdefs.h >>conftest.$ac_ext
6074cat >>conftest.$ac_ext <<_ACEOF
6075/* end confdefs.h.  */
6076#ifdef __STDC__
6077# include <limits.h>
6078#else
6079# include <assert.h>
6080#endif
6081		     Syntax error
6082_ACEOF
6083if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6084  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6085  ac_status=$?
6086  grep -v '^ *+' conftest.er1 >conftest.err
6087  rm -f conftest.er1
6088  cat conftest.err >&5
6089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090  (exit $ac_status); } >/dev/null; then
6091  if test -s conftest.err; then
6092    ac_cpp_err=$ac_c_preproc_warn_flag
6093    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6094  else
6095    ac_cpp_err=
6096  fi
6097else
6098  ac_cpp_err=yes
6099fi
6100if test -z "$ac_cpp_err"; then
6101  :
6102else
6103  echo "$as_me: failed program was:" >&5
6104sed 's/^/| /' conftest.$ac_ext >&5
6105
6106  # Broken: fails on valid input.
6107continue
6108fi
6109rm -f conftest.err conftest.$ac_ext
6110
6111  # OK, works on sane cases.  Now check whether non-existent headers
6112  # can be detected and how.
6113  cat >conftest.$ac_ext <<_ACEOF
6114/* confdefs.h.  */
6115_ACEOF
6116cat confdefs.h >>conftest.$ac_ext
6117cat >>conftest.$ac_ext <<_ACEOF
6118/* end confdefs.h.  */
6119#include <ac_nonexistent.h>
6120_ACEOF
6121if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6122  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6123  ac_status=$?
6124  grep -v '^ *+' conftest.er1 >conftest.err
6125  rm -f conftest.er1
6126  cat conftest.err >&5
6127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128  (exit $ac_status); } >/dev/null; then
6129  if test -s conftest.err; then
6130    ac_cpp_err=$ac_c_preproc_warn_flag
6131    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6132  else
6133    ac_cpp_err=
6134  fi
6135else
6136  ac_cpp_err=yes
6137fi
6138if test -z "$ac_cpp_err"; then
6139  # Broken: success on invalid input.
6140continue
6141else
6142  echo "$as_me: failed program was:" >&5
6143sed 's/^/| /' conftest.$ac_ext >&5
6144
6145  # Passes both tests.
6146ac_preproc_ok=:
6147break
6148fi
6149rm -f conftest.err conftest.$ac_ext
6150
6151done
6152# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6153rm -f conftest.err conftest.$ac_ext
6154if $ac_preproc_ok; then
6155  break
6156fi
6157
6158    done
6159    ac_cv_prog_CPP=$CPP
6160
6161fi
6162  CPP=$ac_cv_prog_CPP
6163else
6164  ac_cv_prog_CPP=$CPP
6165fi
6166echo "$as_me:$LINENO: result: $CPP" >&5
6167echo "${ECHO_T}$CPP" >&6
6168ac_preproc_ok=false
6169for ac_c_preproc_warn_flag in '' yes
6170do
6171  # Use a header file that comes with gcc, so configuring glibc
6172  # with a fresh cross-compiler works.
6173  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6174  # <limits.h> exists even on freestanding compilers.
6175  # On the NeXT, cc -E runs the code through the compiler's parser,
6176  # not just through cpp. "Syntax error" is here to catch this case.
6177  cat >conftest.$ac_ext <<_ACEOF
6178/* confdefs.h.  */
6179_ACEOF
6180cat confdefs.h >>conftest.$ac_ext
6181cat >>conftest.$ac_ext <<_ACEOF
6182/* end confdefs.h.  */
6183#ifdef __STDC__
6184# include <limits.h>
6185#else
6186# include <assert.h>
6187#endif
6188		     Syntax error
6189_ACEOF
6190if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6191  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6192  ac_status=$?
6193  grep -v '^ *+' conftest.er1 >conftest.err
6194  rm -f conftest.er1
6195  cat conftest.err >&5
6196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197  (exit $ac_status); } >/dev/null; then
6198  if test -s conftest.err; then
6199    ac_cpp_err=$ac_c_preproc_warn_flag
6200    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6201  else
6202    ac_cpp_err=
6203  fi
6204else
6205  ac_cpp_err=yes
6206fi
6207if test -z "$ac_cpp_err"; then
6208  :
6209else
6210  echo "$as_me: failed program was:" >&5
6211sed 's/^/| /' conftest.$ac_ext >&5
6212
6213  # Broken: fails on valid input.
6214continue
6215fi
6216rm -f conftest.err conftest.$ac_ext
6217
6218  # OK, works on sane cases.  Now check whether non-existent headers
6219  # can be detected and how.
6220  cat >conftest.$ac_ext <<_ACEOF
6221/* confdefs.h.  */
6222_ACEOF
6223cat confdefs.h >>conftest.$ac_ext
6224cat >>conftest.$ac_ext <<_ACEOF
6225/* end confdefs.h.  */
6226#include <ac_nonexistent.h>
6227_ACEOF
6228if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6229  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6230  ac_status=$?
6231  grep -v '^ *+' conftest.er1 >conftest.err
6232  rm -f conftest.er1
6233  cat conftest.err >&5
6234  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6235  (exit $ac_status); } >/dev/null; then
6236  if test -s conftest.err; then
6237    ac_cpp_err=$ac_c_preproc_warn_flag
6238    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6239  else
6240    ac_cpp_err=
6241  fi
6242else
6243  ac_cpp_err=yes
6244fi
6245if test -z "$ac_cpp_err"; then
6246  # Broken: success on invalid input.
6247continue
6248else
6249  echo "$as_me: failed program was:" >&5
6250sed 's/^/| /' conftest.$ac_ext >&5
6251
6252  # Passes both tests.
6253ac_preproc_ok=:
6254break
6255fi
6256rm -f conftest.err conftest.$ac_ext
6257
6258done
6259# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6260rm -f conftest.err conftest.$ac_ext
6261if $ac_preproc_ok; then
6262  :
6263else
6264  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6265See \`config.log' for more details." >&5
6266echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6267See \`config.log' for more details." >&2;}
6268   { (exit 1); exit 1; }; }
6269fi
6270
6271ac_ext=c
6272ac_cpp='$CPP $CPPFLAGS'
6273ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6274ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6275ac_compiler_gnu=$ac_cv_c_compiler_gnu
6276
6277
6278echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6279echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6280if test "${ac_cv_header_stdc+set}" = set; then
6281  echo $ECHO_N "(cached) $ECHO_C" >&6
6282else
6283  cat >conftest.$ac_ext <<_ACEOF
6284/* confdefs.h.  */
6285_ACEOF
6286cat confdefs.h >>conftest.$ac_ext
6287cat >>conftest.$ac_ext <<_ACEOF
6288/* end confdefs.h.  */
6289#include <stdlib.h>
6290#include <stdarg.h>
6291#include <string.h>
6292#include <float.h>
6293
6294int
6295main ()
6296{
6297
6298  ;
6299  return 0;
6300}
6301_ACEOF
6302rm -f conftest.$ac_objext
6303if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6304  (eval $ac_compile) 2>conftest.er1
6305  ac_status=$?
6306  grep -v '^ *+' conftest.er1 >conftest.err
6307  rm -f conftest.er1
6308  cat conftest.err >&5
6309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310  (exit $ac_status); } &&
6311	 { ac_try='test -z "$ac_c_werror_flag"
6312			 || test ! -s conftest.err'
6313  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6314  (eval $ac_try) 2>&5
6315  ac_status=$?
6316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317  (exit $ac_status); }; } &&
6318	 { ac_try='test -s conftest.$ac_objext'
6319  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6320  (eval $ac_try) 2>&5
6321  ac_status=$?
6322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323  (exit $ac_status); }; }; then
6324  ac_cv_header_stdc=yes
6325else
6326  echo "$as_me: failed program was:" >&5
6327sed 's/^/| /' conftest.$ac_ext >&5
6328
6329ac_cv_header_stdc=no
6330fi
6331rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6332
6333if test $ac_cv_header_stdc = yes; then
6334  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6335  cat >conftest.$ac_ext <<_ACEOF
6336/* confdefs.h.  */
6337_ACEOF
6338cat confdefs.h >>conftest.$ac_ext
6339cat >>conftest.$ac_ext <<_ACEOF
6340/* end confdefs.h.  */
6341#include <string.h>
6342
6343_ACEOF
6344if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6345  $EGREP "memchr" >/dev/null 2>&1; then
6346  :
6347else
6348  ac_cv_header_stdc=no
6349fi
6350rm -f conftest*
6351
6352fi
6353
6354if test $ac_cv_header_stdc = yes; then
6355  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6356  cat >conftest.$ac_ext <<_ACEOF
6357/* confdefs.h.  */
6358_ACEOF
6359cat confdefs.h >>conftest.$ac_ext
6360cat >>conftest.$ac_ext <<_ACEOF
6361/* end confdefs.h.  */
6362#include <stdlib.h>
6363
6364_ACEOF
6365if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6366  $EGREP "free" >/dev/null 2>&1; then
6367  :
6368else
6369  ac_cv_header_stdc=no
6370fi
6371rm -f conftest*
6372
6373fi
6374
6375if test $ac_cv_header_stdc = yes; then
6376  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6377  if test "$cross_compiling" = yes; then
6378  :
6379else
6380  cat >conftest.$ac_ext <<_ACEOF
6381/* confdefs.h.  */
6382_ACEOF
6383cat confdefs.h >>conftest.$ac_ext
6384cat >>conftest.$ac_ext <<_ACEOF
6385/* end confdefs.h.  */
6386#include <ctype.h>
6387#if ((' ' & 0x0FF) == 0x020)
6388# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6389# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6390#else
6391# define ISLOWER(c) \
6392		   (('a' <= (c) && (c) <= 'i') \
6393		     || ('j' <= (c) && (c) <= 'r') \
6394		     || ('s' <= (c) && (c) <= 'z'))
6395# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6396#endif
6397
6398#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6399int
6400main ()
6401{
6402  int i;
6403  for (i = 0; i < 256; i++)
6404    if (XOR (islower (i), ISLOWER (i))
6405	|| toupper (i) != TOUPPER (i))
6406      exit(2);
6407  exit (0);
6408}
6409_ACEOF
6410rm -f conftest$ac_exeext
6411if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6412  (eval $ac_link) 2>&5
6413  ac_status=$?
6414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6416  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6417  (eval $ac_try) 2>&5
6418  ac_status=$?
6419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420  (exit $ac_status); }; }; then
6421  :
6422else
6423  echo "$as_me: program exited with status $ac_status" >&5
6424echo "$as_me: failed program was:" >&5
6425sed 's/^/| /' conftest.$ac_ext >&5
6426
6427( exit $ac_status )
6428ac_cv_header_stdc=no
6429fi
6430rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6431fi
6432fi
6433fi
6434echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6435echo "${ECHO_T}$ac_cv_header_stdc" >&6
6436if test $ac_cv_header_stdc = yes; then
6437
6438cat >>confdefs.h <<\_ACEOF
6439#define STDC_HEADERS 1
6440_ACEOF
6441
6442fi
6443
6444# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6455		  inttypes.h stdint.h unistd.h
6456do
6457as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6458echo "$as_me:$LINENO: checking for $ac_header" >&5
6459echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6460if eval "test \"\${$as_ac_Header+set}\" = set"; then
6461  echo $ECHO_N "(cached) $ECHO_C" >&6
6462else
6463  cat >conftest.$ac_ext <<_ACEOF
6464/* confdefs.h.  */
6465_ACEOF
6466cat confdefs.h >>conftest.$ac_ext
6467cat >>conftest.$ac_ext <<_ACEOF
6468/* end confdefs.h.  */
6469$ac_includes_default
6470
6471#include <$ac_header>
6472_ACEOF
6473rm -f conftest.$ac_objext
6474if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6475  (eval $ac_compile) 2>conftest.er1
6476  ac_status=$?
6477  grep -v '^ *+' conftest.er1 >conftest.err
6478  rm -f conftest.er1
6479  cat conftest.err >&5
6480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481  (exit $ac_status); } &&
6482	 { ac_try='test -z "$ac_c_werror_flag"
6483			 || test ! -s conftest.err'
6484  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6485  (eval $ac_try) 2>&5
6486  ac_status=$?
6487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488  (exit $ac_status); }; } &&
6489	 { ac_try='test -s conftest.$ac_objext'
6490  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6491  (eval $ac_try) 2>&5
6492  ac_status=$?
6493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494  (exit $ac_status); }; }; then
6495  eval "$as_ac_Header=yes"
6496else
6497  echo "$as_me: failed program was:" >&5
6498sed 's/^/| /' conftest.$ac_ext >&5
6499
6500eval "$as_ac_Header=no"
6501fi
6502rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6503fi
6504echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6505echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6506if test `eval echo '${'$as_ac_Header'}'` = yes; then
6507  cat >>confdefs.h <<_ACEOF
6508#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6509_ACEOF
6510
6511fi
6512
6513done
6514
6515
6516
6517for ac_header in dlfcn.h
6518do
6519as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6520if eval "test \"\${$as_ac_Header+set}\" = set"; then
6521  echo "$as_me:$LINENO: checking for $ac_header" >&5
6522echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6523if eval "test \"\${$as_ac_Header+set}\" = set"; then
6524  echo $ECHO_N "(cached) $ECHO_C" >&6
6525fi
6526echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6527echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6528else
6529  # Is the header compilable?
6530echo "$as_me:$LINENO: checking $ac_header usability" >&5
6531echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6532cat >conftest.$ac_ext <<_ACEOF
6533/* confdefs.h.  */
6534_ACEOF
6535cat confdefs.h >>conftest.$ac_ext
6536cat >>conftest.$ac_ext <<_ACEOF
6537/* end confdefs.h.  */
6538$ac_includes_default
6539#include <$ac_header>
6540_ACEOF
6541rm -f conftest.$ac_objext
6542if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6543  (eval $ac_compile) 2>conftest.er1
6544  ac_status=$?
6545  grep -v '^ *+' conftest.er1 >conftest.err
6546  rm -f conftest.er1
6547  cat conftest.err >&5
6548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549  (exit $ac_status); } &&
6550	 { ac_try='test -z "$ac_c_werror_flag"
6551			 || test ! -s conftest.err'
6552  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6553  (eval $ac_try) 2>&5
6554  ac_status=$?
6555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556  (exit $ac_status); }; } &&
6557	 { ac_try='test -s conftest.$ac_objext'
6558  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6559  (eval $ac_try) 2>&5
6560  ac_status=$?
6561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562  (exit $ac_status); }; }; then
6563  ac_header_compiler=yes
6564else
6565  echo "$as_me: failed program was:" >&5
6566sed 's/^/| /' conftest.$ac_ext >&5
6567
6568ac_header_compiler=no
6569fi
6570rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6571echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6572echo "${ECHO_T}$ac_header_compiler" >&6
6573
6574# Is the header present?
6575echo "$as_me:$LINENO: checking $ac_header presence" >&5
6576echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6577cat >conftest.$ac_ext <<_ACEOF
6578/* confdefs.h.  */
6579_ACEOF
6580cat confdefs.h >>conftest.$ac_ext
6581cat >>conftest.$ac_ext <<_ACEOF
6582/* end confdefs.h.  */
6583#include <$ac_header>
6584_ACEOF
6585if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6586  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6587  ac_status=$?
6588  grep -v '^ *+' conftest.er1 >conftest.err
6589  rm -f conftest.er1
6590  cat conftest.err >&5
6591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6592  (exit $ac_status); } >/dev/null; then
6593  if test -s conftest.err; then
6594    ac_cpp_err=$ac_c_preproc_warn_flag
6595    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6596  else
6597    ac_cpp_err=
6598  fi
6599else
6600  ac_cpp_err=yes
6601fi
6602if test -z "$ac_cpp_err"; then
6603  ac_header_preproc=yes
6604else
6605  echo "$as_me: failed program was:" >&5
6606sed 's/^/| /' conftest.$ac_ext >&5
6607
6608  ac_header_preproc=no
6609fi
6610rm -f conftest.err conftest.$ac_ext
6611echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6612echo "${ECHO_T}$ac_header_preproc" >&6
6613
6614# So?  What about this header?
6615case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6616  yes:no: )
6617    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6618echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6619    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6620echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6621    ac_header_preproc=yes
6622    ;;
6623  no:yes:* )
6624    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6625echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6626    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6627echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6628    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6629echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6630    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6631echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6632    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6633echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6634    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6635echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6636    (
6637      cat <<\_ASBOX
6638## ----------------------------------- ##
6639## Report this to clp@list.coin-or.org ##
6640## ----------------------------------- ##
6641_ASBOX
6642    ) |
6643      sed "s/^/$as_me: WARNING:     /" >&2
6644    ;;
6645esac
6646echo "$as_me:$LINENO: checking for $ac_header" >&5
6647echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6648if eval "test \"\${$as_ac_Header+set}\" = set"; then
6649  echo $ECHO_N "(cached) $ECHO_C" >&6
6650else
6651  eval "$as_ac_Header=\$ac_header_preproc"
6652fi
6653echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6654echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6655
6656fi
6657if test `eval echo '${'$as_ac_Header'}'` = yes; then
6658  cat >>confdefs.h <<_ACEOF
6659#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6660_ACEOF
6661
6662fi
6663
6664done
6665
6666
6667
6668if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6669    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6670    (test "X$CXX" != "Xg++"))) ; then
6671  ac_ext=cc
6672ac_cpp='$CXXCPP $CPPFLAGS'
6673ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6674ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6675ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6676echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6677echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6678if test -z "$CXXCPP"; then
6679  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6680  echo $ECHO_N "(cached) $ECHO_C" >&6
6681else
6682      # Double quotes because CXXCPP needs to be expanded
6683    for CXXCPP in "$CXX -E" "/lib/cpp"
6684    do
6685      ac_preproc_ok=false
6686for ac_cxx_preproc_warn_flag in '' yes
6687do
6688  # Use a header file that comes with gcc, so configuring glibc
6689  # with a fresh cross-compiler works.
6690  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6691  # <limits.h> exists even on freestanding compilers.
6692  # On the NeXT, cc -E runs the code through the compiler's parser,
6693  # not just through cpp. "Syntax error" is here to catch this case.
6694  cat >conftest.$ac_ext <<_ACEOF
6695/* confdefs.h.  */
6696_ACEOF
6697cat confdefs.h >>conftest.$ac_ext
6698cat >>conftest.$ac_ext <<_ACEOF
6699/* end confdefs.h.  */
6700#ifdef __STDC__
6701# include <limits.h>
6702#else
6703# include <assert.h>
6704#endif
6705		     Syntax error
6706_ACEOF
6707if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6708  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6709  ac_status=$?
6710  grep -v '^ *+' conftest.er1 >conftest.err
6711  rm -f conftest.er1
6712  cat conftest.err >&5
6713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714  (exit $ac_status); } >/dev/null; then
6715  if test -s conftest.err; then
6716    ac_cpp_err=$ac_cxx_preproc_warn_flag
6717    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6718  else
6719    ac_cpp_err=
6720  fi
6721else
6722  ac_cpp_err=yes
6723fi
6724if test -z "$ac_cpp_err"; then
6725  :
6726else
6727  echo "$as_me: failed program was:" >&5
6728sed 's/^/| /' conftest.$ac_ext >&5
6729
6730  # Broken: fails on valid input.
6731continue
6732fi
6733rm -f conftest.err conftest.$ac_ext
6734
6735  # OK, works on sane cases.  Now check whether non-existent headers
6736  # can be detected and how.
6737  cat >conftest.$ac_ext <<_ACEOF
6738/* confdefs.h.  */
6739_ACEOF
6740cat confdefs.h >>conftest.$ac_ext
6741cat >>conftest.$ac_ext <<_ACEOF
6742/* end confdefs.h.  */
6743#include <ac_nonexistent.h>
6744_ACEOF
6745if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6746  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6747  ac_status=$?
6748  grep -v '^ *+' conftest.er1 >conftest.err
6749  rm -f conftest.er1
6750  cat conftest.err >&5
6751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752  (exit $ac_status); } >/dev/null; then
6753  if test -s conftest.err; then
6754    ac_cpp_err=$ac_cxx_preproc_warn_flag
6755    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6756  else
6757    ac_cpp_err=
6758  fi
6759else
6760  ac_cpp_err=yes
6761fi
6762if test -z "$ac_cpp_err"; then
6763  # Broken: success on invalid input.
6764continue
6765else
6766  echo "$as_me: failed program was:" >&5
6767sed 's/^/| /' conftest.$ac_ext >&5
6768
6769  # Passes both tests.
6770ac_preproc_ok=:
6771break
6772fi
6773rm -f conftest.err conftest.$ac_ext
6774
6775done
6776# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6777rm -f conftest.err conftest.$ac_ext
6778if $ac_preproc_ok; then
6779  break
6780fi
6781
6782    done
6783    ac_cv_prog_CXXCPP=$CXXCPP
6784
6785fi
6786  CXXCPP=$ac_cv_prog_CXXCPP
6787else
6788  ac_cv_prog_CXXCPP=$CXXCPP
6789fi
6790echo "$as_me:$LINENO: result: $CXXCPP" >&5
6791echo "${ECHO_T}$CXXCPP" >&6
6792ac_preproc_ok=false
6793for ac_cxx_preproc_warn_flag in '' yes
6794do
6795  # Use a header file that comes with gcc, so configuring glibc
6796  # with a fresh cross-compiler works.
6797  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6798  # <limits.h> exists even on freestanding compilers.
6799  # On the NeXT, cc -E runs the code through the compiler's parser,
6800  # not just through cpp. "Syntax error" is here to catch this case.
6801  cat >conftest.$ac_ext <<_ACEOF
6802/* confdefs.h.  */
6803_ACEOF
6804cat confdefs.h >>conftest.$ac_ext
6805cat >>conftest.$ac_ext <<_ACEOF
6806/* end confdefs.h.  */
6807#ifdef __STDC__
6808# include <limits.h>
6809#else
6810# include <assert.h>
6811#endif
6812		     Syntax error
6813_ACEOF
6814if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6815  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6816  ac_status=$?
6817  grep -v '^ *+' conftest.er1 >conftest.err
6818  rm -f conftest.er1
6819  cat conftest.err >&5
6820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821  (exit $ac_status); } >/dev/null; then
6822  if test -s conftest.err; then
6823    ac_cpp_err=$ac_cxx_preproc_warn_flag
6824    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6825  else
6826    ac_cpp_err=
6827  fi
6828else
6829  ac_cpp_err=yes
6830fi
6831if test -z "$ac_cpp_err"; then
6832  :
6833else
6834  echo "$as_me: failed program was:" >&5
6835sed 's/^/| /' conftest.$ac_ext >&5
6836
6837  # Broken: fails on valid input.
6838continue
6839fi
6840rm -f conftest.err conftest.$ac_ext
6841
6842  # OK, works on sane cases.  Now check whether non-existent headers
6843  # can be detected and how.
6844  cat >conftest.$ac_ext <<_ACEOF
6845/* confdefs.h.  */
6846_ACEOF
6847cat confdefs.h >>conftest.$ac_ext
6848cat >>conftest.$ac_ext <<_ACEOF
6849/* end confdefs.h.  */
6850#include <ac_nonexistent.h>
6851_ACEOF
6852if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6853  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6854  ac_status=$?
6855  grep -v '^ *+' conftest.er1 >conftest.err
6856  rm -f conftest.er1
6857  cat conftest.err >&5
6858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6859  (exit $ac_status); } >/dev/null; then
6860  if test -s conftest.err; then
6861    ac_cpp_err=$ac_cxx_preproc_warn_flag
6862    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6863  else
6864    ac_cpp_err=
6865  fi
6866else
6867  ac_cpp_err=yes
6868fi
6869if test -z "$ac_cpp_err"; then
6870  # Broken: success on invalid input.
6871continue
6872else
6873  echo "$as_me: failed program was:" >&5
6874sed 's/^/| /' conftest.$ac_ext >&5
6875
6876  # Passes both tests.
6877ac_preproc_ok=:
6878break
6879fi
6880rm -f conftest.err conftest.$ac_ext
6881
6882done
6883# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6884rm -f conftest.err conftest.$ac_ext
6885if $ac_preproc_ok; then
6886  :
6887else
6888  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6889See \`config.log' for more details." >&5
6890echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6891See \`config.log' for more details." >&2;}
6892   { (exit 1); exit 1; }; }
6893fi
6894
6895ac_ext=cc
6896ac_cpp='$CXXCPP $CPPFLAGS'
6897ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6898ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6899ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6900
6901fi
6902
6903ac_ext=f
6904ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6905ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6906ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6907if test -n "$ac_tool_prefix"; then
6908  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6909  do
6910    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6911set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6912echo "$as_me:$LINENO: checking for $ac_word" >&5
6913echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6914if test "${ac_cv_prog_F77+set}" = set; then
6915  echo $ECHO_N "(cached) $ECHO_C" >&6
6916else
6917  if test -n "$F77"; then
6918  ac_cv_prog_F77="$F77" # Let the user override the test.
6919else
6920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6921for as_dir in $PATH
6922do
6923  IFS=$as_save_IFS
6924  test -z "$as_dir" && as_dir=.
6925  for ac_exec_ext in '' $ac_executable_extensions; do
6926  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6927    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6928    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6929    break 2
6930  fi
6931done
6932done
6933
6934fi
6935fi
6936F77=$ac_cv_prog_F77
6937if test -n "$F77"; then
6938  echo "$as_me:$LINENO: result: $F77" >&5
6939echo "${ECHO_T}$F77" >&6
6940else
6941  echo "$as_me:$LINENO: result: no" >&5
6942echo "${ECHO_T}no" >&6
6943fi
6944
6945    test -n "$F77" && break
6946  done
6947fi
6948if test -z "$F77"; then
6949  ac_ct_F77=$F77
6950  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6951do
6952  # Extract the first word of "$ac_prog", so it can be a program name with args.
6953set dummy $ac_prog; ac_word=$2
6954echo "$as_me:$LINENO: checking for $ac_word" >&5
6955echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6956if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6957  echo $ECHO_N "(cached) $ECHO_C" >&6
6958else
6959  if test -n "$ac_ct_F77"; then
6960  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6961else
6962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6963for as_dir in $PATH
6964do
6965  IFS=$as_save_IFS
6966  test -z "$as_dir" && as_dir=.
6967  for ac_exec_ext in '' $ac_executable_extensions; do
6968  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6969    ac_cv_prog_ac_ct_F77="$ac_prog"
6970    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6971    break 2
6972  fi
6973done
6974done
6975
6976fi
6977fi
6978ac_ct_F77=$ac_cv_prog_ac_ct_F77
6979if test -n "$ac_ct_F77"; then
6980  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6981echo "${ECHO_T}$ac_ct_F77" >&6
6982else
6983  echo "$as_me:$LINENO: result: no" >&5
6984echo "${ECHO_T}no" >&6
6985fi
6986
6987  test -n "$ac_ct_F77" && break
6988done
6989
6990  F77=$ac_ct_F77
6991fi
6992
6993
6994# Provide some information about the compiler.
6995echo "$as_me:6995:" \
6996     "checking for Fortran 77 compiler version" >&5
6997ac_compiler=`set X $ac_compile; echo $2`
6998{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6999  (eval $ac_compiler --version </dev/null >&5) 2>&5
7000  ac_status=$?
7001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002  (exit $ac_status); }
7003{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7004  (eval $ac_compiler -v </dev/null >&5) 2>&5
7005  ac_status=$?
7006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7007  (exit $ac_status); }
7008{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7009  (eval $ac_compiler -V </dev/null >&5) 2>&5
7010  ac_status=$?
7011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7012  (exit $ac_status); }
7013rm -f a.out
7014
7015# If we don't use `.F' as extension, the preprocessor is not run on the
7016# input file.  (Note that this only needs to work for GNU compilers.)
7017ac_save_ext=$ac_ext
7018ac_ext=F
7019echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7020echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
7021if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7022  echo $ECHO_N "(cached) $ECHO_C" >&6
7023else
7024  cat >conftest.$ac_ext <<_ACEOF
7025      program main
7026#ifndef __GNUC__
7027       choke me
7028#endif
7029
7030      end
7031_ACEOF
7032rm -f conftest.$ac_objext
7033if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7034  (eval $ac_compile) 2>conftest.er1
7035  ac_status=$?
7036  grep -v '^ *+' conftest.er1 >conftest.err
7037  rm -f conftest.er1
7038  cat conftest.err >&5
7039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7040  (exit $ac_status); } &&
7041	 { ac_try='test -z "$ac_f77_werror_flag"
7042			 || test ! -s conftest.err'
7043  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7044  (eval $ac_try) 2>&5
7045  ac_status=$?
7046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7047  (exit $ac_status); }; } &&
7048	 { ac_try='test -s conftest.$ac_objext'
7049  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7050  (eval $ac_try) 2>&5
7051  ac_status=$?
7052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7053  (exit $ac_status); }; }; then
7054  ac_compiler_gnu=yes
7055else
7056  echo "$as_me: failed program was:" >&5
7057sed 's/^/| /' conftest.$ac_ext >&5
7058
7059ac_compiler_gnu=no
7060fi
7061rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7062ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7063
7064fi
7065echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7066echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7067ac_ext=$ac_save_ext
7068ac_test_FFLAGS=${FFLAGS+set}
7069ac_save_FFLAGS=$FFLAGS
7070FFLAGS=
7071echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7072echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7073if test "${ac_cv_prog_f77_g+set}" = set; then
7074  echo $ECHO_N "(cached) $ECHO_C" >&6
7075else
7076  FFLAGS=-g
7077cat >conftest.$ac_ext <<_ACEOF
7078      program main
7079
7080      end
7081_ACEOF
7082rm -f conftest.$ac_objext
7083if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7084  (eval $ac_compile) 2>conftest.er1
7085  ac_status=$?
7086  grep -v '^ *+' conftest.er1 >conftest.err
7087  rm -f conftest.er1
7088  cat conftest.err >&5
7089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7090  (exit $ac_status); } &&
7091	 { ac_try='test -z "$ac_f77_werror_flag"
7092			 || test ! -s conftest.err'
7093  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7094  (eval $ac_try) 2>&5
7095  ac_status=$?
7096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7097  (exit $ac_status); }; } &&
7098	 { ac_try='test -s conftest.$ac_objext'
7099  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7100  (eval $ac_try) 2>&5
7101  ac_status=$?
7102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7103  (exit $ac_status); }; }; then
7104  ac_cv_prog_f77_g=yes
7105else
7106  echo "$as_me: failed program was:" >&5
7107sed 's/^/| /' conftest.$ac_ext >&5
7108
7109ac_cv_prog_f77_g=no
7110fi
7111rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7112
7113fi
7114echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7115echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7116if test "$ac_test_FFLAGS" = set; then
7117  FFLAGS=$ac_save_FFLAGS
7118elif test $ac_cv_prog_f77_g = yes; then
7119  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7120    FFLAGS="-g -O2"
7121  else
7122    FFLAGS="-g"
7123  fi
7124else
7125  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7126    FFLAGS="-O2"
7127  else
7128    FFLAGS=
7129  fi
7130fi
7131
7132G77=`test $ac_compiler_gnu = yes && echo yes`
7133ac_ext=c
7134ac_cpp='$CPP $CPPFLAGS'
7135ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7136ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7137ac_compiler_gnu=$ac_cv_c_compiler_gnu
7138
7139
7140
7141# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7142
7143# find the maximum length of command line arguments
7144echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7145echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7146if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7147  echo $ECHO_N "(cached) $ECHO_C" >&6
7148else
7149    i=0
7150  teststring="ABCD"
7151
7152  case $build_os in
7153  msdosdjgpp*)
7154    # On DJGPP, this test can blow up pretty badly due to problems in libc
7155    # (any single argument exceeding 2000 bytes causes a buffer overrun
7156    # during glob expansion).  Even if it were fixed, the result of this
7157    # check would be larger than it should be.
7158    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7159    ;;
7160
7161  gnu*)
7162    # Under GNU Hurd, this test is not required because there is
7163    # no limit to the length of command line arguments.
7164    # Libtool will interpret -1 as no limit whatsoever
7165    lt_cv_sys_max_cmd_len=-1;
7166    ;;
7167
7168  cygwin* | mingw*)
7169    # On Win9x/ME, this test blows up -- it succeeds, but takes
7170    # about 5 minutes as the teststring grows exponentially.
7171    # Worse, since 9x/ME are not pre-emptively multitasking,
7172    # you end up with a "frozen" computer, even though with patience
7173    # the test eventually succeeds (with a max line length of 256k).
7174    # Instead, let's just punt: use the minimum linelength reported by
7175    # all of the supported platforms: 8192 (on NT/2K/XP).
7176    lt_cv_sys_max_cmd_len=8192;
7177    ;;
7178
7179  amigaos*)
7180    # On AmigaOS with pdksh, this test takes hours, literally.
7181    # So we just punt and use a minimum line length of 8192.
7182    lt_cv_sys_max_cmd_len=8192;
7183    ;;
7184
7185  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7186    # This has been around since 386BSD, at least.  Likely further.
7187    if test -x /sbin/sysctl; then
7188      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7189    elif test -x /usr/sbin/sysctl; then
7190      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7191    else
7192      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
7193    fi
7194    # And add a safety zone
7195    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7196    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7197    ;;
7198
7199  interix*)
7200    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7201    lt_cv_sys_max_cmd_len=196608
7202    ;;
7203
7204  osf*)
7205    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7206    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7207    # nice to cause kernel panics so lets avoid the loop below.
7208    # First set a reasonable default.
7209    lt_cv_sys_max_cmd_len=16384
7210    #
7211    if test -x /sbin/sysconfig; then
7212      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7213        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7214      esac
7215    fi
7216    ;;
7217  sco3.2v5*)
7218    lt_cv_sys_max_cmd_len=102400
7219    ;;
7220  sysv5* | sco5v6* | sysv4.2uw2*)
7221    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7222    if test -n "$kargmax"; then
7223      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
7224    else
7225      lt_cv_sys_max_cmd_len=32768
7226    fi
7227    ;;
7228  *)
7229    # If test is not a shell built-in, we'll probably end up computing a
7230    # maximum length that is only half of the actual maximum length, but
7231    # we can't tell.
7232    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7233    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7234	       = "XX$teststring") >/dev/null 2>&1 &&
7235	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
7236	    lt_cv_sys_max_cmd_len=$new_result &&
7237	    test $i != 17 # 1/2 MB should be enough
7238    do
7239      i=`expr $i + 1`
7240      teststring=$teststring$teststring
7241    done
7242    teststring=
7243    # Add a significant safety factor because C++ compilers can tack on massive
7244    # amounts of additional arguments before passing them to the linker.
7245    # It appears as though 1/2 is a usable value.
7246    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7247    ;;
7248  esac
7249
7250fi
7251
7252if test -n $lt_cv_sys_max_cmd_len ; then
7253  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7254echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7255else
7256  echo "$as_me:$LINENO: result: none" >&5
7257echo "${ECHO_T}none" >&6
7258fi
7259
7260
7261
7262
7263# Check for command to grab the raw symbol name followed by C symbol from nm.
7264echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7265echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7266if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7267  echo $ECHO_N "(cached) $ECHO_C" >&6
7268else
7269
7270# These are sane defaults that work on at least a few old systems.
7271# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7272
7273# Character class describing NM global symbol codes.
7274symcode='[BCDEGRST]'
7275
7276# Regexp to match symbols that can be accessed directly from C.
7277sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7278
7279# Transform an extracted symbol line into a proper C declaration
7280lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7281
7282# Transform an extracted symbol line into symbol name and symbol address
7283lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
7284
7285# Define system-specific variables.
7286case $host_os in
7287aix*)
7288  symcode='[BCDT]'
7289  ;;
7290cygwin* | mingw* | pw32*)
7291  symcode='[ABCDGISTW]'
7292  ;;
7293hpux*) # Its linker distinguishes data from code symbols
7294  if test "$host_cpu" = ia64; then
7295    symcode='[ABCDEGRST]'
7296  fi
7297  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7298  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
7299  ;;
7300linux*)
7301  if test "$host_cpu" = ia64; then
7302    symcode='[ABCDGIRSTW]'
7303    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7304    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
7305  fi
7306  ;;
7307irix* | nonstopux*)
7308  symcode='[BCDEGRST]'
7309  ;;
7310osf*)
7311  symcode='[BCDEGQRST]'
7312  ;;
7313solaris*)
7314  symcode='[BDRT]'
7315  ;;
7316sco3.2v5*)
7317  symcode='[DT]'
7318  ;;
7319sysv4.2uw2*)
7320  symcode='[DT]'
7321  ;;
7322sysv5* | sco5v6* | unixware* | OpenUNIX*)
7323  symcode='[ABDT]'
7324  ;;
7325sysv4)
7326  symcode='[DFNSTU]'
7327  ;;
7328esac
7329
7330# Handle CRLF in mingw tool chain
7331opt_cr=
7332case $build_os in
7333mingw*)
7334  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7335  ;;
7336esac
7337
7338# If we're using GNU nm, then use its standard symbol codes.
7339case `$NM -V 2>&1` in
7340*GNU* | *'with BFD'*)
7341  symcode='[ABCDGIRSTW]' ;;
7342esac
7343
7344# Try without a prefix undercore, then with it.
7345for ac_symprfx in "" "_"; do
7346
7347  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7348  symxfrm="\\1 $ac_symprfx\\2 \\2"
7349
7350  # Write the raw and C identifiers.
7351  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7352
7353  # Check to see that the pipe works correctly.
7354  pipe_works=no
7355
7356  rm -f conftest*
7357  cat > conftest.$ac_ext <<EOF
7358#ifdef __cplusplus
7359extern "C" {
7360#endif
7361char nm_test_var;
7362void nm_test_func(){}
7363#ifdef __cplusplus
7364}
7365#endif
7366int main(){nm_test_var='a';nm_test_func();return(0);}
7367EOF
7368
7369  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7370  (eval $ac_compile) 2>&5
7371  ac_status=$?
7372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7373  (exit $ac_status); }; then
7374    # Now try to grab the symbols.
7375    nlist=conftest.nm
7376    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7377  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7378  ac_status=$?
7379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7380  (exit $ac_status); } && test -s "$nlist"; then
7381      # Try sorting and uniquifying the output.
7382      if sort "$nlist" | uniq > "$nlist"T; then
7383	mv -f "$nlist"T "$nlist"
7384      else
7385	rm -f "$nlist"T
7386      fi
7387
7388      # Make sure that we snagged all the symbols we need.
7389      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7390	if grep ' nm_test_func$' "$nlist" >/dev/null; then
7391	  cat <<EOF > conftest.$ac_ext
7392#ifdef __cplusplus
7393extern "C" {
7394#endif
7395
7396EOF
7397	  # Now generate the symbol file.
7398	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7399
7400	  cat <<EOF >> conftest.$ac_ext
7401#if defined (__STDC__) && __STDC__
7402# define lt_ptr_t void *
7403#else
7404# define lt_ptr_t char *
7405# define const
7406#endif
7407
7408/* The mapping between symbol names and symbols. */
7409const struct {
7410  const char *name;
7411  lt_ptr_t address;
7412}
7413lt_preloaded_symbols[] =
7414{
7415EOF
7416	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7417	  cat <<\EOF >> conftest.$ac_ext
7418  {0, (lt_ptr_t) 0}
7419};
7420
7421#ifdef __cplusplus
7422}
7423#endif
7424EOF
7425	  # Now try linking the two files.
7426	  mv conftest.$ac_objext conftstm.$ac_objext
7427	  lt_save_LIBS="$LIBS"
7428	  lt_save_CFLAGS="$CFLAGS"
7429	  LIBS="conftstm.$ac_objext"
7430	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7431	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7432  (eval $ac_link) 2>&5
7433  ac_status=$?
7434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7435  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7436	    pipe_works=yes
7437	  fi
7438	  LIBS="$lt_save_LIBS"
7439	  CFLAGS="$lt_save_CFLAGS"
7440	else
7441	  echo "cannot find nm_test_func in $nlist" >&5
7442	fi
7443      else
7444	echo "cannot find nm_test_var in $nlist" >&5
7445      fi
7446    else
7447      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7448    fi
7449  else
7450    echo "$progname: failed program was:" >&5
7451    cat conftest.$ac_ext >&5
7452  fi
7453  rm -f conftest* conftst*
7454
7455  # Do not use the global_symbol_pipe unless it works.
7456  if test "$pipe_works" = yes; then
7457    break
7458  else
7459    lt_cv_sys_global_symbol_pipe=
7460  fi
7461done
7462
7463fi
7464
7465if test -z "$lt_cv_sys_global_symbol_pipe"; then
7466  lt_cv_sys_global_symbol_to_cdecl=
7467fi
7468if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7469  echo "$as_me:$LINENO: result: failed" >&5
7470echo "${ECHO_T}failed" >&6
7471else
7472  echo "$as_me:$LINENO: result: ok" >&5
7473echo "${ECHO_T}ok" >&6
7474fi
7475
7476echo "$as_me:$LINENO: checking for objdir" >&5
7477echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7478if test "${lt_cv_objdir+set}" = set; then
7479  echo $ECHO_N "(cached) $ECHO_C" >&6
7480else
7481  rm -f .libs 2>/dev/null
7482mkdir .libs 2>/dev/null
7483if test -d .libs; then
7484  lt_cv_objdir=.libs
7485else
7486  # MS-DOS does not allow filenames that begin with a dot.
7487  lt_cv_objdir=_libs
7488fi
7489rmdir .libs 2>/dev/null
7490fi
7491echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7492echo "${ECHO_T}$lt_cv_objdir" >&6
7493objdir=$lt_cv_objdir
7494
7495
7496
7497
7498
7499case $host_os in
7500aix3*)
7501  # AIX sometimes has problems with the GCC collect2 program.  For some
7502  # reason, if we set the COLLECT_NAMES environment variable, the problems
7503  # vanish in a puff of smoke.
7504  if test "X${COLLECT_NAMES+set}" != Xset; then
7505    COLLECT_NAMES=
7506    export COLLECT_NAMES
7507  fi
7508  ;;
7509esac
7510
7511# Sed substitution that helps us do robust quoting.  It backslashifies
7512# metacharacters that are still active within double-quoted strings.
7513Xsed='sed -e 1s/^X//'
7514sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7515
7516# Same as above, but do not quote variable references.
7517double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7518
7519# Sed substitution to delay expansion of an escaped shell variable in a
7520# double_quote_subst'ed string.
7521delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7522
7523# Sed substitution to avoid accidental globbing in evaled expressions
7524no_glob_subst='s/\*/\\\*/g'
7525
7526# Constants:
7527rm="rm -f"
7528
7529# Global variables:
7530default_ofile=libtool
7531can_build_shared=yes
7532
7533# All known linkers require a `.a' archive for static linking (except MSVC,
7534# which needs '.lib').
7535libext=a
7536ltmain="$ac_aux_dir/ltmain.sh"
7537ofile="$default_ofile"
7538with_gnu_ld="$lt_cv_prog_gnu_ld"
7539
7540if test -n "$ac_tool_prefix"; then
7541  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7542set dummy ${ac_tool_prefix}ar; ac_word=$2
7543echo "$as_me:$LINENO: checking for $ac_word" >&5
7544echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7545if test "${ac_cv_prog_AR+set}" = set; then
7546  echo $ECHO_N "(cached) $ECHO_C" >&6
7547else
7548  if test -n "$AR"; then
7549  ac_cv_prog_AR="$AR" # Let the user override the test.
7550else
7551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7552for as_dir in $PATH
7553do
7554  IFS=$as_save_IFS
7555  test -z "$as_dir" && as_dir=.
7556  for ac_exec_ext in '' $ac_executable_extensions; do
7557  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7558    ac_cv_prog_AR="${ac_tool_prefix}ar"
7559    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7560    break 2
7561  fi
7562done
7563done
7564
7565fi
7566fi
7567AR=$ac_cv_prog_AR
7568if test -n "$AR"; then
7569  echo "$as_me:$LINENO: result: $AR" >&5
7570echo "${ECHO_T}$AR" >&6
7571else
7572  echo "$as_me:$LINENO: result: no" >&5
7573echo "${ECHO_T}no" >&6
7574fi
7575
7576fi
7577if test -z "$ac_cv_prog_AR"; then
7578  ac_ct_AR=$AR
7579  # Extract the first word of "ar", so it can be a program name with args.
7580set dummy ar; ac_word=$2
7581echo "$as_me:$LINENO: checking for $ac_word" >&5
7582echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7583if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7584  echo $ECHO_N "(cached) $ECHO_C" >&6
7585else
7586  if test -n "$ac_ct_AR"; then
7587  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7588else
7589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7590for as_dir in $PATH
7591do
7592  IFS=$as_save_IFS
7593  test -z "$as_dir" && as_dir=.
7594  for ac_exec_ext in '' $ac_executable_extensions; do
7595  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7596    ac_cv_prog_ac_ct_AR="ar"
7597    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7598    break 2
7599  fi
7600done
7601done
7602
7603  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7604fi
7605fi
7606ac_ct_AR=$ac_cv_prog_ac_ct_AR
7607if test -n "$ac_ct_AR"; then
7608  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7609echo "${ECHO_T}$ac_ct_AR" >&6
7610else
7611  echo "$as_me:$LINENO: result: no" >&5
7612echo "${ECHO_T}no" >&6
7613fi
7614
7615  AR=$ac_ct_AR
7616else
7617  AR="$ac_cv_prog_AR"
7618fi
7619
7620if test -n "$ac_tool_prefix"; then
7621  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7622set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7623echo "$as_me:$LINENO: checking for $ac_word" >&5
7624echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7625if test "${ac_cv_prog_RANLIB+set}" = set; then
7626  echo $ECHO_N "(cached) $ECHO_C" >&6
7627else
7628  if test -n "$RANLIB"; then
7629  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7630else
7631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7632for as_dir in $PATH
7633do
7634  IFS=$as_save_IFS
7635  test -z "$as_dir" && as_dir=.
7636  for ac_exec_ext in '' $ac_executable_extensions; do
7637  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7638    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7639    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7640    break 2
7641  fi
7642done
7643done
7644
7645fi
7646fi
7647RANLIB=$ac_cv_prog_RANLIB
7648if test -n "$RANLIB"; then
7649  echo "$as_me:$LINENO: result: $RANLIB" >&5
7650echo "${ECHO_T}$RANLIB" >&6
7651else
7652  echo "$as_me:$LINENO: result: no" >&5
7653echo "${ECHO_T}no" >&6
7654fi
7655
7656fi
7657if test -z "$ac_cv_prog_RANLIB"; then
7658  ac_ct_RANLIB=$RANLIB
7659  # Extract the first word of "ranlib", so it can be a program name with args.
7660set dummy ranlib; ac_word=$2
7661echo "$as_me:$LINENO: checking for $ac_word" >&5
7662echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7663if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7664  echo $ECHO_N "(cached) $ECHO_C" >&6
7665else
7666  if test -n "$ac_ct_RANLIB"; then
7667  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7668else
7669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7670for as_dir in $PATH
7671do
7672  IFS=$as_save_IFS
7673  test -z "$as_dir" && as_dir=.
7674  for ac_exec_ext in '' $ac_executable_extensions; do
7675  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7676    ac_cv_prog_ac_ct_RANLIB="ranlib"
7677    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7678    break 2
7679  fi
7680done
7681done
7682
7683  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7684fi
7685fi
7686ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7687if test -n "$ac_ct_RANLIB"; then
7688  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7689echo "${ECHO_T}$ac_ct_RANLIB" >&6
7690else
7691  echo "$as_me:$LINENO: result: no" >&5
7692echo "${ECHO_T}no" >&6
7693fi
7694
7695  RANLIB=$ac_ct_RANLIB
7696else
7697  RANLIB="$ac_cv_prog_RANLIB"
7698fi
7699
7700if test -n "$ac_tool_prefix"; then
7701  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7702set dummy ${ac_tool_prefix}strip; ac_word=$2
7703echo "$as_me:$LINENO: checking for $ac_word" >&5
7704echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7705if test "${ac_cv_prog_STRIP+set}" = set; then
7706  echo $ECHO_N "(cached) $ECHO_C" >&6
7707else
7708  if test -n "$STRIP"; then
7709  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7710else
7711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7712for as_dir in $PATH
7713do
7714  IFS=$as_save_IFS
7715  test -z "$as_dir" && as_dir=.
7716  for ac_exec_ext in '' $ac_executable_extensions; do
7717  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7718    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7719    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7720    break 2
7721  fi
7722done
7723done
7724
7725fi
7726fi
7727STRIP=$ac_cv_prog_STRIP
7728if test -n "$STRIP"; then
7729  echo "$as_me:$LINENO: result: $STRIP" >&5
7730echo "${ECHO_T}$STRIP" >&6
7731else
7732  echo "$as_me:$LINENO: result: no" >&5
7733echo "${ECHO_T}no" >&6
7734fi
7735
7736fi
7737if test -z "$ac_cv_prog_STRIP"; then
7738  ac_ct_STRIP=$STRIP
7739  # Extract the first word of "strip", so it can be a program name with args.
7740set dummy strip; ac_word=$2
7741echo "$as_me:$LINENO: checking for $ac_word" >&5
7742echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7743if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7744  echo $ECHO_N "(cached) $ECHO_C" >&6
7745else
7746  if test -n "$ac_ct_STRIP"; then
7747  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7748else
7749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7750for as_dir in $PATH
7751do
7752  IFS=$as_save_IFS
7753  test -z "$as_dir" && as_dir=.
7754  for ac_exec_ext in '' $ac_executable_extensions; do
7755  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7756    ac_cv_prog_ac_ct_STRIP="strip"
7757    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7758    break 2
7759  fi
7760done
7761done
7762
7763  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7764fi
7765fi
7766ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7767if test -n "$ac_ct_STRIP"; then
7768  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7769echo "${ECHO_T}$ac_ct_STRIP" >&6
7770else
7771  echo "$as_me:$LINENO: result: no" >&5
7772echo "${ECHO_T}no" >&6
7773fi
7774
7775  STRIP=$ac_ct_STRIP
7776else
7777  STRIP="$ac_cv_prog_STRIP"
7778fi
7779
7780
7781old_CC="$CC"
7782old_CFLAGS="$CFLAGS"
7783
7784# Set sane defaults for various variables
7785test -z "$AR" && AR=ar
7786test -z "$AR_FLAGS" && AR_FLAGS=cru
7787test -z "$AS" && AS=as
7788test -z "$CC" && CC=cc
7789test -z "$LTCC" && LTCC=$CC
7790test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7791test -z "$DLLTOOL" && DLLTOOL=dlltool
7792test -z "$LD" && LD=ld
7793test -z "$LN_S" && LN_S="ln -s"
7794test -z "$MAGIC_CMD" && MAGIC_CMD=file
7795test -z "$NM" && NM=nm
7796test -z "$SED" && SED=sed
7797test -z "$OBJDUMP" && OBJDUMP=objdump
7798test -z "$RANLIB" && RANLIB=:
7799test -z "$STRIP" && STRIP=:
7800test -z "$ac_objext" && ac_objext=o
7801
7802# Determine commands to create old-style static archives.
7803old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7804old_postinstall_cmds='chmod 644 $oldlib'
7805old_postuninstall_cmds=
7806
7807if test -n "$RANLIB"; then
7808  case $host_os in
7809  openbsd*)
7810    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7811    ;;
7812  *)
7813    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7814    ;;
7815  esac
7816  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7817fi
7818
7819for cc_temp in $compiler""; do
7820  case $cc_temp in
7821    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7822    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7823    \-*) ;;
7824    *) break;;
7825  esac
7826done
7827cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7828
7829
7830# Only perform the check for file, if the check method requires it
7831case $deplibs_check_method in
7832file_magic*)
7833  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7834    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7835echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7836if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7837  echo $ECHO_N "(cached) $ECHO_C" >&6
7838else
7839  case $MAGIC_CMD in
7840[\\/*] |  ?:[\\/]*)
7841  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7842  ;;
7843*)
7844  lt_save_MAGIC_CMD="$MAGIC_CMD"
7845  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7846  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7847  for ac_dir in $ac_dummy; do
7848    IFS="$lt_save_ifs"
7849    test -z "$ac_dir" && ac_dir=.
7850    if test -f $ac_dir/${ac_tool_prefix}file; then
7851      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7852      if test -n "$file_magic_test_file"; then
7853	case $deplibs_check_method in
7854	"file_magic "*)
7855	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7856	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7857	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7858	    $EGREP "$file_magic_regex" > /dev/null; then
7859	    :
7860	  else
7861	    cat <<EOF 1>&2
7862
7863*** Warning: the command libtool uses to detect shared libraries,
7864*** $file_magic_cmd, produces output that libtool cannot recognize.
7865*** The result is that libtool may fail to recognize shared libraries
7866*** as such.  This will affect the creation of libtool libraries that
7867*** depend on shared libraries, but programs linked with such libtool
7868*** libraries will work regardless of this problem.  Nevertheless, you
7869*** may want to report the problem to your system manager and/or to
7870*** bug-libtool@gnu.org
7871
7872EOF
7873	  fi ;;
7874	esac
7875      fi
7876      break
7877    fi
7878  done
7879  IFS="$lt_save_ifs"
7880  MAGIC_CMD="$lt_save_MAGIC_CMD"
7881  ;;
7882esac
7883fi
7884
7885MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7886if test -n "$MAGIC_CMD"; then
7887  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7888echo "${ECHO_T}$MAGIC_CMD" >&6
7889else
7890  echo "$as_me:$LINENO: result: no" >&5
7891echo "${ECHO_T}no" >&6
7892fi
7893
7894if test -z "$lt_cv_path_MAGIC_CMD"; then
7895  if test -n "$ac_tool_prefix"; then
7896    echo "$as_me:$LINENO: checking for file" >&5
7897echo $ECHO_N "checking for file... $ECHO_C" >&6
7898if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7899  echo $ECHO_N "(cached) $ECHO_C" >&6
7900else
7901  case $MAGIC_CMD in
7902[\\/*] |  ?:[\\/]*)
7903  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7904  ;;
7905*)
7906  lt_save_MAGIC_CMD="$MAGIC_CMD"
7907  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7908  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7909  for ac_dir in $ac_dummy; do
7910    IFS="$lt_save_ifs"
7911    test -z "$ac_dir" && ac_dir=.
7912    if test -f $ac_dir/file; then
7913      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7914      if test -n "$file_magic_test_file"; then
7915	case $deplibs_check_method in
7916	"file_magic "*)
7917	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7918	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7919	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7920	    $EGREP "$file_magic_regex" > /dev/null; then
7921	    :
7922	  else
7923	    cat <<EOF 1>&2
7924
7925*** Warning: the command libtool uses to detect shared libraries,
7926*** $file_magic_cmd, produces output that libtool cannot recognize.
7927*** The result is that libtool may fail to recognize shared libraries
7928*** as such.  This will affect the creation of libtool libraries that
7929*** depend on shared libraries, but programs linked with such libtool
7930*** libraries will work regardless of this problem.  Nevertheless, you
7931*** may want to report the problem to your system manager and/or to
7932*** bug-libtool@gnu.org
7933
7934EOF
7935	  fi ;;
7936	esac
7937      fi
7938      break
7939    fi
7940  done
7941  IFS="$lt_save_ifs"
7942  MAGIC_CMD="$lt_save_MAGIC_CMD"
7943  ;;
7944esac
7945fi
7946
7947MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7948if test -n "$MAGIC_CMD"; then
7949  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7950echo "${ECHO_T}$MAGIC_CMD" >&6
7951else
7952  echo "$as_me:$LINENO: result: no" >&5
7953echo "${ECHO_T}no" >&6
7954fi
7955
7956  else
7957    MAGIC_CMD=:
7958  fi
7959fi
7960
7961  fi
7962  ;;
7963esac
7964
7965enable_dlopen=no
7966enable_win32_dll=no
7967
7968# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7969if test "${enable_libtool_lock+set}" = set; then
7970  enableval="$enable_libtool_lock"
7971
7972fi;
7973test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7974
7975
7976# Check whether --with-pic or --without-pic was given.
7977if test "${with_pic+set}" = set; then
7978  withval="$with_pic"
7979  pic_mode="$withval"
7980else
7981  pic_mode=default
7982fi;
7983test -z "$pic_mode" && pic_mode=default
7984
7985# Use C for the default configuration in the libtool script
7986tagname=
7987lt_save_CC="$CC"
7988ac_ext=c
7989ac_cpp='$CPP $CPPFLAGS'
7990ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7991ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7992ac_compiler_gnu=$ac_cv_c_compiler_gnu
7993
7994
7995# Source file extension for C test sources.
7996ac_ext=c
7997
7998# Object file extension for compiled C test sources.
7999objext=o
8000objext=$objext
8001
8002# Code to be used in simple compile tests
8003lt_simple_compile_test_code="int some_variable = 0;\n"
8004
8005# Code to be used in simple link tests
8006lt_simple_link_test_code='int main(){return(0);}\n'
8007
8008
8009# If no C compiler was specified, use CC.
8010LTCC=${LTCC-"$CC"}
8011
8012# If no C compiler flags were specified, use CFLAGS.
8013LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8014
8015# Allow CC to be a program name with arguments.
8016compiler=$CC
8017
8018
8019# save warnings/boilerplate of simple test code
8020ac_outfile=conftest.$ac_objext
8021printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8022eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8023_lt_compiler_boilerplate=`cat conftest.err`
8024$rm conftest*
8025
8026ac_outfile=conftest.$ac_objext
8027printf "$lt_simple_link_test_code" >conftest.$ac_ext
8028eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8029_lt_linker_boilerplate=`cat conftest.err`
8030$rm conftest*
8031
8032
8033## CAVEAT EMPTOR:
8034## There is no encapsulation within the following macros, do not change
8035## the running order or otherwise move them around unless you know exactly
8036## what you are doing...
8037
8038lt_prog_compiler_no_builtin_flag=
8039
8040if test "$GCC" = yes; then
8041  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8042
8043
8044echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8045echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8046if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8047  echo $ECHO_N "(cached) $ECHO_C" >&6
8048else
8049  lt_cv_prog_compiler_rtti_exceptions=no
8050  ac_outfile=conftest.$ac_objext
8051   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8052   lt_compiler_flag="-fno-rtti -fno-exceptions"
8053   # Insert the option either (1) after the last *FLAGS variable, or
8054   # (2) before a word containing "conftest.", or (3) at the end.
8055   # Note that $ac_compile itself does not contain backslashes and begins
8056   # with a dollar sign (not a hyphen), so the echo should work correctly.
8057   # The option is referenced via a variable to avoid confusing sed.
8058   lt_compile=`echo "$ac_compile" | $SED \
8059   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8060   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8061   -e 's:$: $lt_compiler_flag:'`
8062   (eval echo "\"\$as_me:8062: $lt_compile\"" >&5)
8063   (eval "$lt_compile" 2>conftest.err)
8064   ac_status=$?
8065   cat conftest.err >&5
8066   echo "$as_me:8066: \$? = $ac_status" >&5
8067   if (exit $ac_status) && test -s "$ac_outfile"; then
8068     # The compiler can only warn and ignore the option if not recognized
8069     # So say no if there are warnings other than the usual output.
8070     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8071     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8072     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8073       lt_cv_prog_compiler_rtti_exceptions=yes
8074     fi
8075   fi
8076   $rm conftest*
8077
8078fi
8079echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8080echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8081
8082if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8083    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8084else
8085    :
8086fi
8087
8088fi
8089
8090lt_prog_compiler_wl=
8091lt_prog_compiler_pic=
8092lt_prog_compiler_static=
8093
8094echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8095echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8096
8097  if test "$GCC" = yes; then
8098    lt_prog_compiler_wl='-Wl,'
8099    lt_prog_compiler_static='-static'
8100
8101    case $host_os in
8102      aix*)
8103      # All AIX code is PIC.
8104      if test "$host_cpu" = ia64; then
8105	# AIX 5 now supports IA64 processor
8106	lt_prog_compiler_static='-Bstatic'
8107      fi
8108      ;;
8109
8110    amigaos*)
8111      # FIXME: we need at least 68020 code to build shared libraries, but
8112      # adding the `-m68020' flag to GCC prevents building anything better,
8113      # like `-m68040'.
8114      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8115      ;;
8116
8117    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8118      # PIC is the default for these OSes.
8119      ;;
8120
8121    mingw* | pw32* | os2*)
8122      # This hack is so that the source file can tell whether it is being
8123      # built for inclusion in a dll (and should export symbols for example).
8124      lt_prog_compiler_pic='-DDLL_EXPORT'
8125      ;;
8126
8127    darwin* | rhapsody*)
8128      # PIC is the default on this platform
8129      # Common symbols not allowed in MH_DYLIB files
8130      lt_prog_compiler_pic='-fno-common'
8131      ;;
8132
8133    interix3*)
8134      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8135      # Instead, we relocate shared libraries at runtime.
8136      ;;
8137
8138    msdosdjgpp*)
8139      # Just because we use GCC doesn't mean we suddenly get shared libraries
8140      # on systems that don't support them.
8141      lt_prog_compiler_can_build_shared=no
8142      enable_shared=no
8143      ;;
8144
8145    sysv4*MP*)
8146      if test -d /usr/nec; then
8147	lt_prog_compiler_pic=-Kconform_pic
8148      fi
8149      ;;
8150
8151    hpux*)
8152      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8153      # not for PA HP-UX.
8154      case $host_cpu in
8155      hppa*64*|ia64*)
8156	# +Z the default
8157	;;
8158      *)
8159	lt_prog_compiler_pic='-fPIC'
8160	;;
8161      esac
8162      ;;
8163
8164    *)
8165      lt_prog_compiler_pic='-fPIC'
8166      ;;
8167    esac
8168  else
8169    # PORTME Check for flag to pass linker flags through the system compiler.
8170    case $host_os in
8171    aix*)
8172      lt_prog_compiler_wl='-Wl,'
8173      if test "$host_cpu" = ia64; then
8174	# AIX 5 now supports IA64 processor
8175	lt_prog_compiler_static='-Bstatic'
8176      else
8177	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8178      fi
8179      ;;
8180      darwin*)
8181        # PIC is the default on this platform
8182        # Common symbols not allowed in MH_DYLIB files
8183       case $cc_basename in
8184         xlc*)
8185         lt_prog_compiler_pic='-qnocommon'
8186         lt_prog_compiler_wl='-Wl,'
8187         ;;
8188       esac
8189       ;;
8190
8191    mingw* | pw32* | os2*)
8192      # This hack is so that the source file can tell whether it is being
8193      # built for inclusion in a dll (and should export symbols for example).
8194      lt_prog_compiler_pic='-DDLL_EXPORT'
8195      ;;
8196
8197    hpux9* | hpux10* | hpux11*)
8198      lt_prog_compiler_wl='-Wl,'
8199      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8200      # not for PA HP-UX.
8201      case $host_cpu in
8202      hppa*64*|ia64*)
8203	# +Z the default
8204	;;
8205      *)
8206	lt_prog_compiler_pic='+Z'
8207	;;
8208      esac
8209      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8210      lt_prog_compiler_static='${wl}-a ${wl}archive'
8211      ;;
8212
8213    irix5* | irix6* | nonstopux*)
8214      lt_prog_compiler_wl='-Wl,'
8215      # PIC (with -KPIC) is the default.
8216      lt_prog_compiler_static='-non_shared'
8217      ;;
8218
8219    newsos6)
8220      lt_prog_compiler_pic='-KPIC'
8221      lt_prog_compiler_static='-Bstatic'
8222      ;;
8223
8224    linux*)
8225      case $cc_basename in
8226      icc* | ecc*)
8227	lt_prog_compiler_wl='-Wl,'
8228	lt_prog_compiler_pic='-KPIC'
8229	lt_prog_compiler_static='-static'
8230        ;;
8231      pgcc* | pgf77* | pgf90* | pgf95*)
8232        # Portland Group compilers (*not* the Pentium gcc compiler,
8233	# which looks to be a dead project)
8234	lt_prog_compiler_wl='-Wl,'
8235	lt_prog_compiler_pic='-fpic'
8236	lt_prog_compiler_static='-Bstatic'
8237        ;;
8238      ccc*)
8239        lt_prog_compiler_wl='-Wl,'
8240        # All Alpha code is PIC.
8241        lt_prog_compiler_static='-non_shared'
8242        ;;
8243      esac
8244      ;;
8245
8246    osf3* | osf4* | osf5*)
8247      lt_prog_compiler_wl='-Wl,'
8248      # All OSF/1 code is PIC.
8249      lt_prog_compiler_static='-non_shared'
8250      ;;
8251
8252    solaris*)
8253      lt_prog_compiler_pic='-KPIC'
8254      lt_prog_compiler_static='-Bstatic'
8255      case $cc_basename in
8256      f77* | f90* | f95*)
8257	lt_prog_compiler_wl='-Qoption ld ';;
8258      *)
8259	lt_prog_compiler_wl='-Wl,';;
8260      esac
8261      ;;
8262
8263    sunos4*)
8264      lt_prog_compiler_wl='-Qoption ld '
8265      lt_prog_compiler_pic='-PIC'
8266      lt_prog_compiler_static='-Bstatic'
8267      ;;
8268
8269    sysv4 | sysv4.2uw2* | sysv4.3*)
8270      lt_prog_compiler_wl='-Wl,'
8271      lt_prog_compiler_pic='-KPIC'
8272      lt_prog_compiler_static='-Bstatic'
8273      ;;
8274
8275    sysv4*MP*)
8276      if test -d /usr/nec ;then
8277	lt_prog_compiler_pic='-Kconform_pic'
8278	lt_prog_compiler_static='-Bstatic'
8279      fi
8280      ;;
8281
8282    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8283      lt_prog_compiler_wl='-Wl,'
8284      lt_prog_compiler_pic='-KPIC'
8285      lt_prog_compiler_static='-Bstatic'
8286      ;;
8287
8288    unicos*)
8289      lt_prog_compiler_wl='-Wl,'
8290      lt_prog_compiler_can_build_shared=no
8291      ;;
8292
8293    uts4*)
8294      lt_prog_compiler_pic='-pic'
8295      lt_prog_compiler_static='-Bstatic'
8296      ;;
8297
8298    *)
8299      lt_prog_compiler_can_build_shared=no
8300      ;;
8301    esac
8302  fi
8303
8304echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8305echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8306
8307#
8308# Check to make sure the PIC flag actually works.
8309#
8310if test -n "$lt_prog_compiler_pic"; then
8311
8312echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8313echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8314if test "${lt_prog_compiler_pic_works+set}" = set; then
8315  echo $ECHO_N "(cached) $ECHO_C" >&6
8316else
8317  lt_prog_compiler_pic_works=no
8318  ac_outfile=conftest.$ac_objext
8319   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8320   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8321   # Insert the option either (1) after the last *FLAGS variable, or
8322   # (2) before a word containing "conftest.", or (3) at the end.
8323   # Note that $ac_compile itself does not contain backslashes and begins
8324   # with a dollar sign (not a hyphen), so the echo should work correctly.
8325   # The option is referenced via a variable to avoid confusing sed.
8326   lt_compile=`echo "$ac_compile" | $SED \
8327   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8328   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8329   -e 's:$: $lt_compiler_flag:'`
8330   (eval echo "\"\$as_me:8330: $lt_compile\"" >&5)
8331   (eval "$lt_compile" 2>conftest.err)
8332   ac_status=$?
8333   cat conftest.err >&5
8334   echo "$as_me:8334: \$? = $ac_status" >&5
8335   if (exit $ac_status) && test -s "$ac_outfile"; then
8336     # The compiler can only warn and ignore the option if not recognized
8337     # So say no if there are warnings other than the usual output.
8338     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8339     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8340     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8341       lt_prog_compiler_pic_works=yes
8342     fi
8343   fi
8344   $rm conftest*
8345
8346fi
8347echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8348echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8349
8350if test x"$lt_prog_compiler_pic_works" = xyes; then
8351    case $lt_prog_compiler_pic in
8352     "" | " "*) ;;
8353     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8354     esac
8355else
8356    lt_prog_compiler_pic=
8357     lt_prog_compiler_can_build_shared=no
8358fi
8359
8360fi
8361case $host_os in
8362  # For platforms which do not support PIC, -DPIC is meaningless:
8363  *djgpp*)
8364    lt_prog_compiler_pic=
8365    ;;
8366  *)
8367    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8368    ;;
8369esac
8370
8371#
8372# Check to make sure the static flag actually works.
8373#
8374wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8375echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8376echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8377if test "${lt_prog_compiler_static_works+set}" = set; then
8378  echo $ECHO_N "(cached) $ECHO_C" >&6
8379else
8380  lt_prog_compiler_static_works=no
8381   save_LDFLAGS="$LDFLAGS"
8382   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8383   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8384   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8385     # The linker can only warn and ignore the option if not recognized
8386     # So say no if there are warnings
8387     if test -s conftest.err; then
8388       # Append any errors to the config.log.
8389       cat conftest.err 1>&5
8390       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8391       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8392       if diff conftest.exp conftest.er2 >/dev/null; then
8393         lt_prog_compiler_static_works=yes
8394       fi
8395     else
8396       lt_prog_compiler_static_works=yes
8397     fi
8398   fi
8399   $rm conftest*
8400   LDFLAGS="$save_LDFLAGS"
8401
8402fi
8403echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8404echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8405
8406if test x"$lt_prog_compiler_static_works" = xyes; then
8407    :
8408else
8409    lt_prog_compiler_static=
8410fi
8411
8412
8413echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8414echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8415if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8416  echo $ECHO_N "(cached) $ECHO_C" >&6
8417else
8418  lt_cv_prog_compiler_c_o=no
8419   $rm -r conftest 2>/dev/null
8420   mkdir conftest
8421   cd conftest
8422   mkdir out
8423   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8424
8425   lt_compiler_flag="-o out/conftest2.$ac_objext"
8426   # Insert the option either (1) after the last *FLAGS variable, or
8427   # (2) before a word containing "conftest.", or (3) at the end.
8428   # Note that $ac_compile itself does not contain backslashes and begins
8429   # with a dollar sign (not a hyphen), so the echo should work correctly.
8430   lt_compile=`echo "$ac_compile" | $SED \
8431   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8432   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8433   -e 's:$: $lt_compiler_flag:'`
8434   (eval echo "\"\$as_me:8434: $lt_compile\"" >&5)
8435   (eval "$lt_compile" 2>out/conftest.err)
8436   ac_status=$?
8437   cat out/conftest.err >&5
8438   echo "$as_me:8438: \$? = $ac_status" >&5
8439   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8440   then
8441     # The compiler can only warn and ignore the option if not recognized
8442     # So say no if there are warnings
8443     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8444     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8445     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8446       lt_cv_prog_compiler_c_o=yes
8447     fi
8448   fi
8449   chmod u+w . 2>&5
8450   $rm conftest*
8451   # SGI C++ compiler will create directory out/ii_files/ for
8452   # template instantiation
8453   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8454   $rm out/* && rmdir out
8455   cd ..
8456   rmdir conftest
8457   $rm conftest*
8458
8459fi
8460echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8461echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8462
8463
8464hard_links="nottested"
8465if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8466  # do not overwrite the value of need_locks provided by the user
8467  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8468echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8469  hard_links=yes
8470  $rm conftest*
8471  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8472  touch conftest.a
8473  ln conftest.a conftest.b 2>&5 || hard_links=no
8474  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8475  echo "$as_me:$LINENO: result: $hard_links" >&5
8476echo "${ECHO_T}$hard_links" >&6
8477  if test "$hard_links" = no; then
8478    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8479echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8480    need_locks=warn
8481  fi
8482else
8483  need_locks=no
8484fi
8485
8486echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8487echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8488
8489  runpath_var=
8490  allow_undefined_flag=
8491  enable_shared_with_static_runtimes=no
8492  archive_cmds=
8493  archive_expsym_cmds=
8494  old_archive_From_new_cmds=
8495  old_archive_from_expsyms_cmds=
8496  export_dynamic_flag_spec=
8497  whole_archive_flag_spec=
8498  thread_safe_flag_spec=
8499  hardcode_libdir_flag_spec=
8500  hardcode_libdir_flag_spec_ld=
8501  hardcode_libdir_separator=
8502  hardcode_direct=no
8503  hardcode_minus_L=no
8504  hardcode_shlibpath_var=unsupported
8505  link_all_deplibs=unknown
8506  hardcode_automatic=no
8507  module_cmds=
8508  module_expsym_cmds=
8509  always_export_symbols=no
8510  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8511  # include_expsyms should be a list of space-separated symbols to be *always*
8512  # included in the symbol list
8513  include_expsyms=
8514  # exclude_expsyms can be an extended regexp of symbols to exclude
8515  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8516  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8517  # as well as any symbol that contains `d'.
8518  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8519  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8520  # platforms (ab)use it in PIC code, but their linkers get confused if
8521  # the symbol is explicitly referenced.  Since portable code cannot
8522  # rely on this symbol name, it's probably fine to never include it in
8523  # preloaded symbol tables.
8524  extract_expsyms_cmds=
8525  # Just being paranoid about ensuring that cc_basename is set.
8526  for cc_temp in $compiler""; do
8527  case $cc_temp in
8528    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8529    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8530    \-*) ;;
8531    *) break;;
8532  esac
8533done
8534cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8535
8536  case $host_os in
8537  cygwin* | mingw* | pw32*)
8538    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8539    # When not using gcc, we currently assume that we are using
8540    # Microsoft Visual C++.
8541    if test "$GCC" != yes; then
8542      with_gnu_ld=no
8543    fi
8544    ;;
8545  interix*)
8546    # we just hope/assume this is gcc and not c89 (= MSVC++)
8547    with_gnu_ld=yes
8548    ;;
8549  openbsd*)
8550    with_gnu_ld=no
8551    ;;
8552  esac
8553
8554  ld_shlibs=yes
8555  if test "$with_gnu_ld" = yes; then
8556    # If archive_cmds runs LD, not CC, wlarc should be empty
8557    wlarc='${wl}'
8558
8559    # Set some defaults for GNU ld with shared library support. These
8560    # are reset later if shared libraries are not supported. Putting them
8561    # here allows them to be overridden if necessary.
8562    runpath_var=LD_RUN_PATH
8563    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8564    export_dynamic_flag_spec='${wl}--export-dynamic'
8565    # ancient GNU ld didn't support --whole-archive et. al.
8566    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8567	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8568      else
8569  	whole_archive_flag_spec=
8570    fi
8571    supports_anon_versioning=no
8572    case `$LD -v 2>/dev/null` in
8573      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8574      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8575      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8576      *\ 2.11.*) ;; # other 2.11 versions
8577      *) supports_anon_versioning=yes ;;
8578    esac
8579
8580    # See if GNU ld supports shared libraries.
8581    case $host_os in
8582    aix3* | aix4* | aix5*)
8583      # On AIX/PPC, the GNU linker is very broken
8584      if test "$host_cpu" != ia64; then
8585	ld_shlibs=no
8586	cat <<EOF 1>&2
8587
8588*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8589*** to be unable to reliably create shared libraries on AIX.
8590*** Therefore, libtool is disabling shared libraries support.  If you
8591*** really care for shared libraries, you may want to modify your PATH
8592*** so that a non-GNU linker is found, and then restart.
8593
8594EOF
8595      fi
8596      ;;
8597
8598    amigaos*)
8599      archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8600      hardcode_libdir_flag_spec='-L$libdir'
8601      hardcode_minus_L=yes
8602
8603      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8604      # that the semantics of dynamic libraries on AmigaOS, at least up
8605      # to version 4, is to share data among multiple programs linked
8606      # with the same dynamic library.  Since this doesn't match the
8607      # behavior of shared libraries on other platforms, we can't use
8608      # them.
8609      ld_shlibs=no
8610      ;;
8611
8612    beos*)
8613      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8614	allow_undefined_flag=unsupported
8615	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8616	# support --undefined.  This deserves some investigation.  FIXME
8617	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8618      else
8619	ld_shlibs=no
8620      fi
8621      ;;
8622
8623    cygwin* | mingw* | pw32*)
8624      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8625      # as there is no search path for DLLs.
8626      hardcode_libdir_flag_spec='-L$libdir'
8627      allow_undefined_flag=unsupported
8628      always_export_symbols=no
8629      enable_shared_with_static_runtimes=yes
8630      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8631
8632      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8633        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8634	# If the export-symbols file already is a .def file (1st line
8635	# is EXPORTS), use it as is; otherwise, prepend...
8636	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8637	  cp $export_symbols $output_objdir/$soname.def;
8638	else
8639	  echo EXPORTS > $output_objdir/$soname.def;
8640	  cat $export_symbols >> $output_objdir/$soname.def;
8641	fi~
8642	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8643      else
8644	ld_shlibs=no
8645      fi
8646      ;;
8647
8648    interix3*)
8649      hardcode_direct=no
8650      hardcode_shlibpath_var=no
8651      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8652      export_dynamic_flag_spec='${wl}-E'
8653      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8654      # Instead, shared libraries are loaded at an image base (0x10000000 by
8655      # default) and relocated if they conflict, which is a slow very memory
8656      # consuming and fragmenting process.  To avoid this, we pick a random,
8657      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8658      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8659      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8660      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8661      ;;
8662
8663    linux*)
8664      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8665	tmp_addflag=
8666	case $cc_basename,$host_cpu in
8667	pgcc*)				# Portland Group C compiler
8668	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8669	  tmp_addflag=' $pic_flag'
8670	  ;;
8671	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8672	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8673	  tmp_addflag=' $pic_flag -Mnomain' ;;
8674	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
8675	  tmp_addflag=' -i_dynamic' ;;
8676	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8677	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8678	ifc* | ifort*)			# Intel Fortran compiler
8679	  tmp_addflag=' -nofor_main' ;;
8680	esac
8681	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8682
8683	if test $supports_anon_versioning = yes; then
8684	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8685  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8686  $echo "local: *; };" >> $output_objdir/$libname.ver~
8687	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8688	fi
8689      else
8690	ld_shlibs=no
8691      fi
8692      ;;
8693
8694    netbsd*)
8695      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8696	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8697	wlarc=
8698      else
8699	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8700	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8701      fi
8702      ;;
8703
8704    solaris*)
8705      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8706	ld_shlibs=no
8707	cat <<EOF 1>&2
8708
8709*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8710*** create shared libraries on Solaris systems.  Therefore, libtool
8711*** is disabling shared libraries support.  We urge you to upgrade GNU
8712*** binutils to release 2.9.1 or newer.  Another option is to modify
8713*** your PATH or compiler configuration so that the native linker is
8714*** used, and then restart.
8715
8716EOF
8717      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8718	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8719	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8720      else
8721	ld_shlibs=no
8722      fi
8723      ;;
8724
8725    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8726      case `$LD -v 2>&1` in
8727        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8728	ld_shlibs=no
8729	cat <<_LT_EOF 1>&2
8730
8731*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8732*** reliably create shared libraries on SCO systems.  Therefore, libtool
8733*** is disabling shared libraries support.  We urge you to upgrade GNU
8734*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8735*** your PATH or compiler configuration so that the native linker is
8736*** used, and then restart.
8737
8738_LT_EOF
8739	;;
8740	*)
8741	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8742	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8743	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8744	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8745	  else
8746	    ld_shlibs=no
8747	  fi
8748	;;
8749      esac
8750      ;;
8751
8752    sunos4*)
8753      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8754      wlarc=
8755      hardcode_direct=yes
8756      hardcode_shlibpath_var=no
8757      ;;
8758
8759    *)
8760      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8761	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8762	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8763      else
8764	ld_shlibs=no
8765      fi
8766      ;;
8767    esac
8768
8769    if test "$ld_shlibs" = no; then
8770      runpath_var=
8771      hardcode_libdir_flag_spec=
8772      export_dynamic_flag_spec=
8773      whole_archive_flag_spec=
8774    fi
8775  else
8776    # PORTME fill in a description of your system's linker (not GNU ld)
8777    case $host_os in
8778    aix3*)
8779      allow_undefined_flag=unsupported
8780      always_export_symbols=yes
8781      archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
8782      # Note: this linker hardcodes the directories in LIBPATH if there
8783      # are no directories specified by -L.
8784      hardcode_minus_L=yes
8785      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8786	# Neither direct hardcoding nor static linking is supported with a
8787	# broken collect2.
8788	hardcode_direct=unsupported
8789      fi
8790      ;;
8791
8792    aix4* | aix5*)
8793      if test "$host_cpu" = ia64; then
8794	# On IA64, the linker does run time linking by default, so we don't
8795	# have to do anything special.
8796	aix_use_runtimelinking=no
8797	exp_sym_flag='-Bexport'
8798	no_entry_flag=""
8799      else
8800	# If we're using GNU nm, then we don't want the "-C" option.
8801	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8802	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8803	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8804	else
8805	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8806	fi
8807	aix_use_runtimelinking=no
8808
8809	# Test if we are trying to use run time linking or normal
8810	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8811	# need to do runtime linking.
8812	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8813	  for ld_flag in $LDFLAGS; do
8814  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8815  	    aix_use_runtimelinking=yes
8816  	    break
8817  	  fi
8818	  done
8819	  ;;
8820	esac
8821
8822	exp_sym_flag='-bexport'
8823	no_entry_flag='-bnoentry'
8824      fi
8825
8826      # When large executables or shared objects are built, AIX ld can
8827      # have problems creating the table of contents.  If linking a library
8828      # or program results in "error TOC overflow" add -mminimal-toc to
8829      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8830      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8831
8832      archive_cmds=''
8833      hardcode_direct=yes
8834      hardcode_libdir_separator=':'
8835      link_all_deplibs=yes
8836
8837      if test "$GCC" = yes; then
8838	case $host_os in aix4.[012]|aix4.[012].*)
8839	# We only want to do this on AIX 4.2 and lower, the check
8840	# below for broken collect2 doesn't work under 4.3+
8841	  collect2name=`${CC} -print-prog-name=collect2`
8842	  if test -f "$collect2name" && \
8843  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
8844	  then
8845  	  # We have reworked collect2
8846  	  hardcode_direct=yes
8847	  else
8848  	  # We have old collect2
8849  	  hardcode_direct=unsupported
8850  	  # It fails to find uninstalled libraries when the uninstalled
8851  	  # path is not listed in the libpath.  Setting hardcode_minus_L
8852  	  # to unsupported forces relinking
8853  	  hardcode_minus_L=yes
8854  	  hardcode_libdir_flag_spec='-L$libdir'
8855  	  hardcode_libdir_separator=
8856	  fi
8857	  ;;
8858	esac
8859	shared_flag='-shared'
8860	if test "$aix_use_runtimelinking" = yes; then
8861	  shared_flag="$shared_flag "'${wl}-G'
8862	fi
8863      else
8864	# not using gcc
8865	if test "$host_cpu" = ia64; then
8866  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8867  	# chokes on -Wl,-G. The following line is correct:
8868	  shared_flag='-G'
8869	else
8870	  if test "$aix_use_runtimelinking" = yes; then
8871	    shared_flag='${wl}-G'
8872	  else
8873	    shared_flag='${wl}-bM:SRE'
8874	  fi
8875	fi
8876      fi
8877
8878      # It seems that -bexpall does not export symbols beginning with
8879      # underscore (_), so it is better to generate a list of symbols to export.
8880      always_export_symbols=yes
8881      if test "$aix_use_runtimelinking" = yes; then
8882	# Warning - without using the other runtime loading flags (-brtl),
8883	# -berok will link without error, but may produce a broken library.
8884	allow_undefined_flag='-berok'
8885       # Determine the default libpath from the value encoded in an empty executable.
8886       cat >conftest.$ac_ext <<_ACEOF
8887/* confdefs.h.  */
8888_ACEOF
8889cat confdefs.h >>conftest.$ac_ext
8890cat >>conftest.$ac_ext <<_ACEOF
8891/* end confdefs.h.  */
8892
8893int
8894main ()
8895{
8896
8897  ;
8898  return 0;
8899}
8900_ACEOF
8901rm -f conftest.$ac_objext conftest$ac_exeext
8902if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8903  (eval $ac_link) 2>conftest.er1
8904  ac_status=$?
8905  grep -v '^ *+' conftest.er1 >conftest.err
8906  rm -f conftest.er1
8907  cat conftest.err >&5
8908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909  (exit $ac_status); } &&
8910	 { ac_try='test -z "$ac_c_werror_flag"
8911			 || test ! -s conftest.err'
8912  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8913  (eval $ac_try) 2>&5
8914  ac_status=$?
8915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8916  (exit $ac_status); }; } &&
8917	 { ac_try='test -s conftest$ac_exeext'
8918  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8919  (eval $ac_try) 2>&5
8920  ac_status=$?
8921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922  (exit $ac_status); }; }; then
8923
8924aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8925}'`
8926# Check for a 64-bit object if we didn't find anything.
8927if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8928}'`; fi
8929else
8930  echo "$as_me: failed program was:" >&5
8931sed 's/^/| /' conftest.$ac_ext >&5
8932
8933fi
8934rm -f conftest.err conftest.$ac_objext \
8935      conftest$ac_exeext conftest.$ac_ext
8936if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8937
8938       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8939	archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8940       else
8941	if test "$host_cpu" = ia64; then
8942	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8943	  allow_undefined_flag="-z nodefs"
8944	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8945	else
8946	 # Determine the default libpath from the value encoded in an empty executable.
8947	 cat >conftest.$ac_ext <<_ACEOF
8948/* confdefs.h.  */
8949_ACEOF
8950cat confdefs.h >>conftest.$ac_ext
8951cat >>conftest.$ac_ext <<_ACEOF
8952/* end confdefs.h.  */
8953
8954int
8955main ()
8956{
8957
8958  ;
8959  return 0;
8960}
8961_ACEOF
8962rm -f conftest.$ac_objext conftest$ac_exeext
8963if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8964  (eval $ac_link) 2>conftest.er1
8965  ac_status=$?
8966  grep -v '^ *+' conftest.er1 >conftest.err
8967  rm -f conftest.er1
8968  cat conftest.err >&5
8969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8970  (exit $ac_status); } &&
8971	 { ac_try='test -z "$ac_c_werror_flag"
8972			 || test ! -s conftest.err'
8973  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8974  (eval $ac_try) 2>&5
8975  ac_status=$?
8976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8977  (exit $ac_status); }; } &&
8978	 { ac_try='test -s conftest$ac_exeext'
8979  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8980  (eval $ac_try) 2>&5
8981  ac_status=$?
8982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983  (exit $ac_status); }; }; then
8984
8985aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8986}'`
8987# Check for a 64-bit object if we didn't find anything.
8988if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8989}'`; fi
8990else
8991  echo "$as_me: failed program was:" >&5
8992sed 's/^/| /' conftest.$ac_ext >&5
8993
8994fi
8995rm -f conftest.err conftest.$ac_objext \
8996      conftest$ac_exeext conftest.$ac_ext
8997if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8998
8999	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9000	  # Warning - without using the other run time loading flags,
9001	  # -berok will link without error, but may produce a broken library.
9002	  no_undefined_flag=' ${wl}-bernotok'
9003	  allow_undefined_flag=' ${wl}-berok'
9004	  # Exported symbols can be pulled into shared objects from archives
9005	  whole_archive_flag_spec='$convenience'
9006	  archive_cmds_need_lc=yes
9007	  # This is similar to how AIX traditionally builds its shared libraries.
9008	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9009	fi
9010      fi
9011      ;;
9012
9013    amigaos*)
9014      archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9015      hardcode_libdir_flag_spec='-L$libdir'
9016      hardcode_minus_L=yes
9017      # see comment about different semantics on the GNU ld section
9018      ld_shlibs=no
9019      ;;
9020
9021    bsdi[45]*)
9022      export_dynamic_flag_spec=-rdynamic
9023      ;;
9024
9025    cygwin* | mingw* | pw32*)
9026      # When not using gcc, we currently assume that we are using
9027      # Microsoft Visual C++.
9028      # hardcode_libdir_flag_spec is actually meaningless, as there is
9029      # no search path for DLLs.
9030      hardcode_libdir_flag_spec=' '
9031      allow_undefined_flag=unsupported
9032      # Tell ltmain to make .lib files, not .a files.
9033      libext=lib
9034      # Tell ltmain to make .dll files, not .so files.
9035      shrext_cmds=".dll"
9036      # FIXME: Setting linknames here is a bad hack.
9037      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9038      # The linker will automatically build a .lib file if we build a DLL.
9039      old_archive_From_new_cmds='true'
9040      # FIXME: Should let the user specify the lib program.
9041      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9042      fix_srcfile_path='`cygpath -w "$srcfile"`'
9043      enable_shared_with_static_runtimes=yes
9044      ;;
9045
9046    darwin* | rhapsody*)
9047      case $host_os in
9048        rhapsody* | darwin1.[012])
9049         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9050         ;;
9051       *) # Darwin 1.3 on
9052         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9053           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9054         else
9055           case ${MACOSX_DEPLOYMENT_TARGET} in
9056             10.[012])
9057               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9058               ;;
9059             10.*)
9060               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9061               ;;
9062           esac
9063         fi
9064         ;;
9065      esac
9066      archive_cmds_need_lc=no
9067      hardcode_direct=no
9068      hardcode_automatic=yes
9069      hardcode_shlibpath_var=unsupported
9070      whole_archive_flag_spec=''
9071      link_all_deplibs=yes
9072    if test "$GCC" = yes ; then
9073    	output_verbose_link_cmd='echo'
9074        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9075      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9076      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9077      archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9078      module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9079    else
9080      case $cc_basename in
9081        xlc*)
9082         output_verbose_link_cmd='echo'
9083         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9084         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9085          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9086         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9087          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9088          ;;
9089       *)
9090         ld_shlibs=no
9091          ;;
9092      esac
9093    fi
9094      ;;
9095
9096    dgux*)
9097      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9098      hardcode_libdir_flag_spec='-L$libdir'
9099      hardcode_shlibpath_var=no
9100      ;;
9101
9102    freebsd1*)
9103      ld_shlibs=no
9104      ;;
9105
9106    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9107    # support.  Future versions do this automatically, but an explicit c++rt0.o
9108    # does not break anything, and helps significantly (at the cost of a little
9109    # extra space).
9110    freebsd2.2*)
9111      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9112      hardcode_libdir_flag_spec='-R$libdir'
9113      hardcode_direct=yes
9114      hardcode_shlibpath_var=no
9115      ;;
9116
9117    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9118    freebsd2*)
9119      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9120      hardcode_direct=yes
9121      hardcode_minus_L=yes
9122      hardcode_shlibpath_var=no
9123      ;;
9124
9125    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9126    freebsd* | kfreebsd*-gnu | dragonfly*)
9127      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9128      hardcode_libdir_flag_spec='-R$libdir'
9129      hardcode_direct=yes
9130      hardcode_shlibpath_var=no
9131      ;;
9132
9133    hpux9*)
9134      if test "$GCC" = yes; then
9135	archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9136      else
9137	archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9138      fi
9139      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9140      hardcode_libdir_separator=:
9141      hardcode_direct=yes
9142
9143      # hardcode_minus_L: Not really in the search PATH,
9144      # but as the default location of the library.
9145      hardcode_minus_L=yes
9146      export_dynamic_flag_spec='${wl}-E'
9147      ;;
9148
9149    hpux10*)
9150      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9151	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9152      else
9153	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9154      fi
9155      if test "$with_gnu_ld" = no; then
9156	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9157	hardcode_libdir_separator=:
9158
9159	hardcode_direct=yes
9160	export_dynamic_flag_spec='${wl}-E'
9161
9162	# hardcode_minus_L: Not really in the search PATH,
9163	# but as the default location of the library.
9164	hardcode_minus_L=yes
9165      fi
9166      ;;
9167
9168    hpux11*)
9169      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9170	case $host_cpu in
9171	hppa*64*)
9172	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9173	  ;;
9174	ia64*)
9175	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9176	  ;;
9177	*)
9178	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9179	  ;;
9180	esac
9181      else
9182	case $host_cpu in
9183	hppa*64*)
9184	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9185	  ;;
9186	ia64*)
9187	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9188	  ;;
9189	*)
9190	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9191	  ;;
9192	esac
9193      fi
9194      if test "$with_gnu_ld" = no; then
9195	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9196	hardcode_libdir_separator=:
9197
9198	case $host_cpu in
9199	hppa*64*|ia64*)
9200	  hardcode_libdir_flag_spec_ld='+b $libdir'
9201	  hardcode_direct=no
9202	  hardcode_shlibpath_var=no
9203	  ;;
9204	*)
9205	  hardcode_direct=yes
9206	  export_dynamic_flag_spec='${wl}-E'
9207
9208	  # hardcode_minus_L: Not really in the search PATH,
9209	  # but as the default location of the library.
9210	  hardcode_minus_L=yes
9211	  ;;
9212	esac
9213      fi
9214      ;;
9215
9216    irix5* | irix6* | nonstopux*)
9217      if test "$GCC" = yes; then
9218	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9219      else
9220	archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9221	hardcode_libdir_flag_spec_ld='-rpath $libdir'
9222      fi
9223      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9224      hardcode_libdir_separator=:
9225      link_all_deplibs=yes
9226      ;;
9227
9228    netbsd*)
9229      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9230	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9231      else
9232	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9233      fi
9234      hardcode_libdir_flag_spec='-R$libdir'
9235      hardcode_direct=yes
9236      hardcode_shlibpath_var=no
9237      ;;
9238
9239    newsos6)
9240      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9241      hardcode_direct=yes
9242      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9243      hardcode_libdir_separator=:
9244      hardcode_shlibpath_var=no
9245      ;;
9246
9247    openbsd*)
9248      hardcode_direct=yes
9249      hardcode_shlibpath_var=no
9250      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9251	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9252	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9253	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9254	export_dynamic_flag_spec='${wl}-E'
9255      else
9256       case $host_os in
9257	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9258	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9259	   hardcode_libdir_flag_spec='-R$libdir'
9260	   ;;
9261	 *)
9262	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9263	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9264	   ;;
9265       esac
9266      fi
9267      ;;
9268
9269    os2*)
9270      hardcode_libdir_flag_spec='-L$libdir'
9271      hardcode_minus_L=yes
9272      allow_undefined_flag=unsupported
9273      archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9274      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9275      ;;
9276
9277    osf3*)
9278      if test "$GCC" = yes; then
9279	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9280	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9281      else
9282	allow_undefined_flag=' -expect_unresolved \*'
9283	archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9284      fi
9285      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9286      hardcode_libdir_separator=:
9287      ;;
9288
9289    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9290      if test "$GCC" = yes; then
9291	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9292	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9293	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9294      else
9295	allow_undefined_flag=' -expect_unresolved \*'
9296	archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9297	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9298	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
9299
9300	# Both c and cxx compiler support -rpath directly
9301	hardcode_libdir_flag_spec='-rpath $libdir'
9302      fi
9303      hardcode_libdir_separator=:
9304      ;;
9305
9306    solaris*)
9307      no_undefined_flag=' -z text'
9308      if test "$GCC" = yes; then
9309	wlarc='${wl}'
9310	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9311	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9312	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9313      else
9314	wlarc=''
9315	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9316	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9317  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9318      fi
9319      hardcode_libdir_flag_spec='-R$libdir'
9320      hardcode_shlibpath_var=no
9321      case $host_os in
9322      solaris2.[0-5] | solaris2.[0-5].*) ;;
9323      *)
9324 	# The compiler driver will combine linker options so we
9325 	# cannot just pass the convience library names through
9326 	# without $wl, iff we do not link with $LD.
9327 	# Luckily, gcc supports the same syntax we need for Sun Studio.
9328 	# Supported since Solaris 2.6 (maybe 2.5.1?)
9329 	case $wlarc in
9330 	'')
9331 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9332 	*)
9333 	  whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
9334 	esac ;;
9335      esac
9336      link_all_deplibs=yes
9337      ;;
9338
9339    sunos4*)
9340      if test "x$host_vendor" = xsequent; then
9341	# Use $CC to link under sequent, because it throws in some extra .o
9342	# files that make .init and .fini sections work.
9343	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9344      else
9345	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9346      fi
9347      hardcode_libdir_flag_spec='-L$libdir'
9348      hardcode_direct=yes
9349      hardcode_minus_L=yes
9350      hardcode_shlibpath_var=no
9351      ;;
9352
9353    sysv4)
9354      case $host_vendor in
9355	sni)
9356	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9357	  hardcode_direct=yes # is this really true???
9358	;;
9359	siemens)
9360	  ## LD is ld it makes a PLAMLIB
9361	  ## CC just makes a GrossModule.
9362	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9363	  reload_cmds='$CC -r -o $output$reload_objs'
9364	  hardcode_direct=no
9365        ;;
9366	motorola)
9367	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9368	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9369	;;
9370      esac
9371      runpath_var='LD_RUN_PATH'
9372      hardcode_shlibpath_var=no
9373      ;;
9374
9375    sysv4.3*)
9376      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9377      hardcode_shlibpath_var=no
9378      export_dynamic_flag_spec='-Bexport'
9379      ;;
9380
9381    sysv4*MP*)
9382      if test -d /usr/nec; then
9383	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9384	hardcode_shlibpath_var=no
9385	runpath_var=LD_RUN_PATH
9386	hardcode_runpath_var=yes
9387	ld_shlibs=yes
9388      fi
9389      ;;
9390
9391    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9392      no_undefined_flag='${wl}-z,text'
9393      archive_cmds_need_lc=no
9394      hardcode_shlibpath_var=no
9395      runpath_var='LD_RUN_PATH'
9396
9397      if test "$GCC" = yes; then
9398	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9399	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9400      else
9401	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9402	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9403      fi
9404      ;;
9405
9406    sysv5* | sco3.2v5* | sco5v6*)
9407      # Note: We can NOT use -z defs as we might desire, because we do not
9408      # link with -lc, and that would cause any symbols used from libc to
9409      # always be unresolved, which means just about no library would
9410      # ever link correctly.  If we're not using GNU ld we use -z text
9411      # though, which does catch some bad symbols but isn't as heavy-handed
9412      # as -z defs.
9413      no_undefined_flag='${wl}-z,text'
9414      allow_undefined_flag='${wl}-z,nodefs'
9415      archive_cmds_need_lc=no
9416      hardcode_shlibpath_var=no
9417      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9418      hardcode_libdir_separator=':'
9419      link_all_deplibs=yes
9420      export_dynamic_flag_spec='${wl}-Bexport'
9421      runpath_var='LD_RUN_PATH'
9422
9423      if test "$GCC" = yes; then
9424	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9425	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9426      else
9427	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9428	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9429      fi
9430      ;;
9431
9432    uts4*)
9433      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9434      hardcode_libdir_flag_spec='-L$libdir'
9435      hardcode_shlibpath_var=no
9436      ;;
9437
9438    *)
9439      ld_shlibs=no
9440      ;;
9441    esac
9442  fi
9443
9444echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9445echo "${ECHO_T}$ld_shlibs" >&6
9446test "$ld_shlibs" = no && can_build_shared=no
9447
9448#
9449# Do we need to explicitly link libc?
9450#
9451case "x$archive_cmds_need_lc" in
9452x|xyes)
9453  # Assume -lc should be added
9454  archive_cmds_need_lc=yes
9455
9456  if test "$enable_shared" = yes && test "$GCC" = yes; then
9457    case $archive_cmds in
9458    *'~'*)
9459      # FIXME: we may have to deal with multi-command sequences.
9460      ;;
9461    '$CC '*)
9462      # Test whether the compiler implicitly links with -lc since on some
9463      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9464      # to ld, don't add -lc before -lgcc.
9465      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9466echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9467      $rm conftest*
9468      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9469
9470      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9471  (eval $ac_compile) 2>&5
9472  ac_status=$?
9473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9474  (exit $ac_status); } 2>conftest.err; then
9475        soname=conftest
9476        lib=conftest
9477        libobjs=conftest.$ac_objext
9478        deplibs=
9479        wl=$lt_prog_compiler_wl
9480	pic_flag=$lt_prog_compiler_pic
9481        compiler_flags=-v
9482        linker_flags=-v
9483        verstring=
9484        output_objdir=.
9485        libname=conftest
9486        lt_save_allow_undefined_flag=$allow_undefined_flag
9487        allow_undefined_flag=
9488        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9489  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9490  ac_status=$?
9491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492  (exit $ac_status); }
9493        then
9494	  archive_cmds_need_lc=no
9495        else
9496	  archive_cmds_need_lc=yes
9497        fi
9498        allow_undefined_flag=$lt_save_allow_undefined_flag
9499      else
9500        cat conftest.err 1>&5
9501      fi
9502      $rm conftest*
9503      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9504echo "${ECHO_T}$archive_cmds_need_lc" >&6
9505      ;;
9506    esac
9507  fi
9508  ;;
9509esac
9510
9511echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9512echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9513library_names_spec=
9514libname_spec='lib$name'
9515soname_spec=
9516shrext_cmds=".so"
9517postinstall_cmds=
9518postuninstall_cmds=
9519finish_cmds=
9520finish_eval=
9521shlibpath_var=
9522shlibpath_overrides_runpath=unknown
9523version_type=none
9524dynamic_linker="$host_os ld.so"
9525sys_lib_dlsearch_path_spec="/lib /usr/lib"
9526if test "$GCC" = yes; then
9527  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9528  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9529    # if the path contains ";" then we assume it to be the separator
9530    # otherwise default to the standard path separator (i.e. ":") - it is
9531    # assumed that no part of a normal pathname contains ";" but that should
9532    # okay in the real world where ";" in dirpaths is itself problematic.
9533    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9534  else
9535    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9536  fi
9537else
9538  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9539fi
9540need_lib_prefix=unknown
9541hardcode_into_libs=no
9542
9543# when you set need_version to no, make sure it does not cause -set_version
9544# flags to be left without arguments
9545need_version=unknown
9546
9547case $host_os in
9548aix3*)
9549  version_type=linux
9550  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9551  shlibpath_var=LIBPATH
9552
9553  # AIX 3 has no versioning support, so we append a major version to the name.
9554  soname_spec='${libname}${release}${shared_ext}$major'
9555  ;;
9556
9557aix4* | aix5*)
9558  version_type=linux
9559  need_lib_prefix=no
9560  need_version=no
9561  hardcode_into_libs=yes
9562  if test "$host_cpu" = ia64; then
9563    # AIX 5 supports IA64
9564    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9565    shlibpath_var=LD_LIBRARY_PATH
9566  else
9567    # With GCC up to 2.95.x, collect2 would create an import file
9568    # for dependence libraries.  The import file would start with
9569    # the line `#! .'.  This would cause the generated library to
9570    # depend on `.', always an invalid library.  This was fixed in
9571    # development snapshots of GCC prior to 3.0.
9572    case $host_os in
9573      aix4 | aix4.[01] | aix4.[01].*)
9574      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9575	   echo ' yes '
9576	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9577	:
9578      else
9579	can_build_shared=no
9580      fi
9581      ;;
9582    esac
9583    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9584    # soname into executable. Probably we can add versioning support to
9585    # collect2, so additional links can be useful in future.
9586    if test "$aix_use_runtimelinking" = yes; then
9587      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9588      # instead of lib<name>.a to let people know that these are not
9589      # typical AIX shared libraries.
9590      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9591    else
9592      # We preserve .a as extension for shared libraries through AIX4.2
9593      # and later when we are not doing run time linking.
9594      library_names_spec='${libname}${release}.a $libname.a'
9595      soname_spec='${libname}${release}${shared_ext}$major'
9596    fi
9597    shlibpath_var=LIBPATH
9598  fi
9599  ;;
9600
9601amigaos*)
9602  library_names_spec='$libname.ixlibrary $libname.a'
9603  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9604  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9605  ;;
9606
9607beos*)
9608  library_names_spec='${libname}${shared_ext}'
9609  dynamic_linker="$host_os ld.so"
9610  shlibpath_var=LIBRARY_PATH
9611  ;;
9612
9613bsdi[45]*)
9614  version_type=linux
9615  need_version=no
9616  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9617  soname_spec='${libname}${release}${shared_ext}$major'
9618  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9619  shlibpath_var=LD_LIBRARY_PATH
9620  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9621  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9622  # the default ld.so.conf also contains /usr/contrib/lib and
9623  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9624  # libtool to hard-code these into programs
9625  ;;
9626
9627cygwin* | mingw* | pw32*)
9628  version_type=windows
9629  shrext_cmds=".dll"
9630  need_version=no
9631  need_lib_prefix=no
9632
9633  case $GCC,$host_os in
9634  yes,cygwin* | yes,mingw* | yes,pw32*)
9635    library_names_spec='$libname.dll.a'
9636    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9637    postinstall_cmds='base_file=`basename \${file}`~
9638      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9639      dldir=$destdir/`dirname \$dlpath`~
9640      test -d \$dldir || mkdir -p \$dldir~
9641      $install_prog $dir/$dlname \$dldir/$dlname~
9642      chmod a+x \$dldir/$dlname'
9643    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9644      dlpath=$dir/\$dldll~
9645       $rm \$dlpath'
9646    shlibpath_overrides_runpath=yes
9647
9648    case $host_os in
9649    cygwin*)
9650      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9651      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9652      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9653      ;;
9654    mingw*)
9655      # MinGW DLLs use traditional 'lib' prefix
9656      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9657      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9658      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9659        # It is most probably a Windows format PATH printed by
9660        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9661        # path with ; separators, and with drive letters. We can handle the
9662        # drive letters (cygwin fileutils understands them), so leave them,
9663        # especially as we might pass files found there to a mingw objdump,
9664        # which wouldn't understand a cygwinified path. Ahh.
9665        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9666      else
9667        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9668      fi
9669      ;;
9670    pw32*)
9671      # pw32 DLLs use 'pw' prefix rather than 'lib'
9672      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9673      ;;
9674    esac
9675    ;;
9676
9677  *)
9678    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9679    ;;
9680  esac
9681  dynamic_linker='Win32 ld.exe'
9682  # FIXME: first we should search . and the directory the executable is in
9683  shlibpath_var=PATH
9684  ;;
9685
9686darwin* | rhapsody*)
9687  dynamic_linker="$host_os dyld"
9688  version_type=darwin
9689  need_lib_prefix=no
9690  need_version=no
9691  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9692  soname_spec='${libname}${release}${major}$shared_ext'
9693  shlibpath_overrides_runpath=yes
9694  shlibpath_var=DYLD_LIBRARY_PATH
9695  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9696  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9697  if test "$GCC" = yes; then
9698    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
9699  else
9700    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9701  fi
9702  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9703  ;;
9704
9705dgux*)
9706  version_type=linux
9707  need_lib_prefix=no
9708  need_version=no
9709  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9710  soname_spec='${libname}${release}${shared_ext}$major'
9711  shlibpath_var=LD_LIBRARY_PATH
9712  ;;
9713
9714freebsd1*)
9715  dynamic_linker=no
9716  ;;
9717
9718kfreebsd*-gnu)
9719  version_type=linux
9720  need_lib_prefix=no
9721  need_version=no
9722  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9723  soname_spec='${libname}${release}${shared_ext}$major'
9724  shlibpath_var=LD_LIBRARY_PATH
9725  shlibpath_overrides_runpath=no
9726  hardcode_into_libs=yes
9727  dynamic_linker='GNU ld.so'
9728  ;;
9729
9730freebsd* | dragonfly*)
9731  # DragonFly does not have aout.  When/if they implement a new
9732  # versioning mechanism, adjust this.
9733  if test -x /usr/bin/objformat; then
9734    objformat=`/usr/bin/objformat`
9735  else
9736    case $host_os in
9737    freebsd[123]*) objformat=aout ;;
9738    *) objformat=elf ;;
9739    esac
9740  fi
9741  version_type=freebsd-$objformat
9742  case $version_type in
9743    freebsd-elf*)
9744      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9745      need_version=no
9746      need_lib_prefix=no
9747      ;;
9748    freebsd-*)
9749      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9750      need_version=yes
9751      ;;
9752  esac
9753  shlibpath_var=LD_LIBRARY_PATH
9754  case $host_os in
9755  freebsd2*)
9756    shlibpath_overrides_runpath=yes
9757    ;;
9758  freebsd3.[01]* | freebsdelf3.[01]*)
9759    shlibpath_overrides_runpath=yes
9760    hardcode_into_libs=yes
9761    ;;
9762  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9763  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9764    shlibpath_overrides_runpath=no
9765    hardcode_into_libs=yes
9766    ;;
9767  freebsd*) # from 4.6 on
9768    shlibpath_overrides_runpath=yes
9769    hardcode_into_libs=yes
9770    ;;
9771  esac
9772  ;;
9773
9774gnu*)
9775  version_type=linux
9776  need_lib_prefix=no
9777  need_version=no
9778  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9779  soname_spec='${libname}${release}${shared_ext}$major'
9780  shlibpath_var=LD_LIBRARY_PATH
9781  hardcode_into_libs=yes
9782  ;;
9783
9784hpux9* | hpux10* | hpux11*)
9785  # Give a soname corresponding to the major version so that dld.sl refuses to
9786  # link against other versions.
9787  version_type=sunos
9788  need_lib_prefix=no
9789  need_version=no
9790  case $host_cpu in
9791  ia64*)
9792    shrext_cmds='.so'
9793    hardcode_into_libs=yes
9794    dynamic_linker="$host_os dld.so"
9795    shlibpath_var=LD_LIBRARY_PATH
9796    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9797    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9798    soname_spec='${libname}${release}${shared_ext}$major'
9799    if test "X$HPUX_IA64_MODE" = X32; then
9800      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9801    else
9802      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9803    fi
9804    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9805    ;;
9806   hppa*64*)
9807     shrext_cmds='.sl'
9808     hardcode_into_libs=yes
9809     dynamic_linker="$host_os dld.sl"
9810     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9811     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9812     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9813     soname_spec='${libname}${release}${shared_ext}$major'
9814     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9815     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9816     ;;
9817   *)
9818    shrext_cmds='.sl'
9819    dynamic_linker="$host_os dld.sl"
9820    shlibpath_var=SHLIB_PATH
9821    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9822    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9823    soname_spec='${libname}${release}${shared_ext}$major'
9824    ;;
9825  esac
9826  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9827  postinstall_cmds='chmod 555 $lib'
9828  ;;
9829
9830interix3*)
9831  version_type=linux
9832  need_lib_prefix=no
9833  need_version=no
9834  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9835  soname_spec='${libname}${release}${shared_ext}$major'
9836  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9837  shlibpath_var=LD_LIBRARY_PATH
9838  shlibpath_overrides_runpath=no
9839  hardcode_into_libs=yes
9840  ;;
9841
9842irix5* | irix6* | nonstopux*)
9843  case $host_os in
9844    nonstopux*) version_type=nonstopux ;;
9845    *)
9846	if test "$lt_cv_prog_gnu_ld" = yes; then
9847		version_type=linux
9848	else
9849		version_type=irix
9850	fi ;;
9851  esac
9852  need_lib_prefix=no
9853  need_version=no
9854  soname_spec='${libname}${release}${shared_ext}$major'
9855  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9856  case $host_os in
9857  irix5* | nonstopux*)
9858    libsuff= shlibsuff=
9859    ;;
9860  *)
9861    case $LD in # libtool.m4 will add one of these switches to LD
9862    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9863      libsuff= shlibsuff= libmagic=32-bit;;
9864    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9865      libsuff=32 shlibsuff=N32 libmagic=N32;;
9866    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9867      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9868    *) libsuff= shlibsuff= libmagic=never-match;;
9869    esac
9870    ;;
9871  esac
9872  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9873  shlibpath_overrides_runpath=no
9874  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9875  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9876  hardcode_into_libs=yes
9877  ;;
9878
9879# No shared lib support for Linux oldld, aout, or coff.
9880linux*oldld* | linux*aout* | linux*coff*)
9881  dynamic_linker=no
9882  ;;
9883
9884# This must be Linux ELF.
9885linux*)
9886  version_type=linux
9887  need_lib_prefix=no
9888  need_version=no
9889  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9890  soname_spec='${libname}${release}${shared_ext}$major'
9891  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9892  shlibpath_var=LD_LIBRARY_PATH
9893  shlibpath_overrides_runpath=no
9894  # This implies no fast_install, which is unacceptable.
9895  # Some rework will be needed to allow for fast_install
9896  # before this can be enabled.
9897  hardcode_into_libs=yes
9898
9899  # Append ld.so.conf contents to the search path
9900  if test -f /etc/ld.so.conf; then
9901    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9902    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9903  fi
9904
9905  # We used to test for /lib/ld.so.1 and disable shared libraries on
9906  # powerpc, because MkLinux only supported shared libraries with the
9907  # GNU dynamic linker.  Since this was broken with cross compilers,
9908  # most powerpc-linux boxes support dynamic linking these days and
9909  # people can always --disable-shared, the test was removed, and we
9910  # assume the GNU/Linux dynamic linker is in use.
9911  dynamic_linker='GNU/Linux ld.so'
9912  ;;
9913
9914knetbsd*-gnu)
9915  version_type=linux
9916  need_lib_prefix=no
9917  need_version=no
9918  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9919  soname_spec='${libname}${release}${shared_ext}$major'
9920  shlibpath_var=LD_LIBRARY_PATH
9921  shlibpath_overrides_runpath=no
9922  hardcode_into_libs=yes
9923  dynamic_linker='GNU ld.so'
9924  ;;
9925
9926netbsd*)
9927  version_type=sunos
9928  need_lib_prefix=no
9929  need_version=no
9930  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9931    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9932    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9933    dynamic_linker='NetBSD (a.out) ld.so'
9934  else
9935    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9936    soname_spec='${libname}${release}${shared_ext}$major'
9937    dynamic_linker='NetBSD ld.elf_so'
9938  fi
9939  shlibpath_var=LD_LIBRARY_PATH
9940  shlibpath_overrides_runpath=yes
9941  hardcode_into_libs=yes
9942  ;;
9943
9944newsos6)
9945  version_type=linux
9946  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9947  shlibpath_var=LD_LIBRARY_PATH
9948  shlibpath_overrides_runpath=yes
9949  ;;
9950
9951nto-qnx*)
9952  version_type=linux
9953  need_lib_prefix=no
9954  need_version=no
9955  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9956  soname_spec='${libname}${release}${shared_ext}$major'
9957  shlibpath_var=LD_LIBRARY_PATH
9958  shlibpath_overrides_runpath=yes
9959  ;;
9960
9961openbsd*)
9962  version_type=sunos
9963  sys_lib_dlsearch_path_spec="/usr/lib"
9964  need_lib_prefix=no
9965  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9966  case $host_os in
9967    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9968    *)                         need_version=no  ;;
9969  esac
9970  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9971  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9972  shlibpath_var=LD_LIBRARY_PATH
9973  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9974    case $host_os in
9975      openbsd2.[89] | openbsd2.[89].*)
9976	shlibpath_overrides_runpath=no
9977	;;
9978      *)
9979	shlibpath_overrides_runpath=yes
9980	;;
9981      esac
9982  else
9983    shlibpath_overrides_runpath=yes
9984  fi
9985  ;;
9986
9987os2*)
9988  libname_spec='$name'
9989  shrext_cmds=".dll"
9990  need_lib_prefix=no
9991  library_names_spec='$libname${shared_ext} $libname.a'
9992  dynamic_linker='OS/2 ld.exe'
9993  shlibpath_var=LIBPATH
9994  ;;
9995
9996osf3* | osf4* | osf5*)
9997  version_type=osf
9998  need_lib_prefix=no
9999  need_version=no
10000  soname_spec='${libname}${release}${shared_ext}$major'
10001  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10002  shlibpath_var=LD_LIBRARY_PATH
10003  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10004  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10005  ;;
10006
10007solaris*)
10008  version_type=linux
10009  need_lib_prefix=no
10010  need_version=no
10011  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10012  soname_spec='${libname}${release}${shared_ext}$major'
10013  shlibpath_var=LD_LIBRARY_PATH
10014  shlibpath_overrides_runpath=yes
10015  hardcode_into_libs=yes
10016  # ldd complains unless libraries are executable
10017  postinstall_cmds='chmod +x $lib'
10018  ;;
10019
10020sunos4*)
10021  version_type=sunos
10022  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10023  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10024  shlibpath_var=LD_LIBRARY_PATH
10025  shlibpath_overrides_runpath=yes
10026  if test "$with_gnu_ld" = yes; then
10027    need_lib_prefix=no
10028  fi
10029  need_version=yes
10030  ;;
10031
10032sysv4 | sysv4.3*)
10033  version_type=linux
10034  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10035  soname_spec='${libname}${release}${shared_ext}$major'
10036  shlibpath_var=LD_LIBRARY_PATH
10037  case $host_vendor in
10038    sni)
10039      shlibpath_overrides_runpath=no
10040      need_lib_prefix=no
10041      export_dynamic_flag_spec='${wl}-Blargedynsym'
10042      runpath_var=LD_RUN_PATH
10043      ;;
10044    siemens)
10045      need_lib_prefix=no
10046      ;;
10047    motorola)
10048      need_lib_prefix=no
10049      need_version=no
10050      shlibpath_overrides_runpath=no
10051      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10052      ;;
10053  esac
10054  ;;
10055
10056sysv4*MP*)
10057  if test -d /usr/nec ;then
10058    version_type=linux
10059    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10060    soname_spec='$libname${shared_ext}.$major'
10061    shlibpath_var=LD_LIBRARY_PATH
10062  fi
10063  ;;
10064
10065sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10066  version_type=freebsd-elf
10067  need_lib_prefix=no
10068  need_version=no
10069  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10070  soname_spec='${libname}${release}${shared_ext}$major'
10071  shlibpath_var=LD_LIBRARY_PATH
10072  hardcode_into_libs=yes
10073  if test "$with_gnu_ld" = yes; then
10074    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10075    shlibpath_overrides_runpath=no
10076  else
10077    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10078    shlibpath_overrides_runpath=yes
10079    case $host_os in
10080      sco3.2v5*)
10081        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10082	;;
10083    esac
10084  fi
10085  sys_lib_dlsearch_path_spec='/usr/lib'
10086  ;;
10087
10088uts4*)
10089  version_type=linux
10090  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10091  soname_spec='${libname}${release}${shared_ext}$major'
10092  shlibpath_var=LD_LIBRARY_PATH
10093  ;;
10094
10095*)
10096  dynamic_linker=no
10097  ;;
10098esac
10099echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10100echo "${ECHO_T}$dynamic_linker" >&6
10101test "$dynamic_linker" = no && can_build_shared=no
10102
10103variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10104if test "$GCC" = yes; then
10105  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10106fi
10107
10108echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10109echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10110hardcode_action=
10111if test -n "$hardcode_libdir_flag_spec" || \
10112   test -n "$runpath_var" || \
10113   test "X$hardcode_automatic" = "Xyes" ; then
10114
10115  # We can hardcode non-existant directories.
10116  if test "$hardcode_direct" != no &&
10117     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10118     # have to relink, otherwise we might link with an installed library
10119     # when we should be linking with a yet-to-be-installed one
10120     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10121     test "$hardcode_minus_L" != no; then
10122    # Linking always hardcodes the temporary library directory.
10123    hardcode_action=relink
10124  else
10125    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10126    hardcode_action=immediate
10127  fi
10128else
10129  # We cannot hardcode anything, or else we can only hardcode existing
10130  # directories.
10131  hardcode_action=unsupported
10132fi
10133echo "$as_me:$LINENO: result: $hardcode_action" >&5
10134echo "${ECHO_T}$hardcode_action" >&6
10135
10136if test "$hardcode_action" = relink; then
10137  # Fast installation is not supported
10138  enable_fast_install=no
10139elif test "$shlibpath_overrides_runpath" = yes ||
10140     test "$enable_shared" = no; then
10141  # Fast installation is not necessary
10142  enable_fast_install=needless
10143fi
10144
10145striplib=
10146old_striplib=
10147echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10148echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10149if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10150  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10151  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10152  echo "$as_me:$LINENO: result: yes" >&5
10153echo "${ECHO_T}yes" >&6
10154else
10155# FIXME - insert some real tests, host_os isn't really good enough
10156  case $host_os in
10157   darwin*)
10158       if test -n "$STRIP" ; then
10159         striplib="$STRIP -x"
10160         echo "$as_me:$LINENO: result: yes" >&5
10161echo "${ECHO_T}yes" >&6
10162       else
10163  echo "$as_me:$LINENO: result: no" >&5
10164echo "${ECHO_T}no" >&6
10165fi
10166       ;;
10167   *)
10168  echo "$as_me:$LINENO: result: no" >&5
10169echo "${ECHO_T}no" >&6
10170    ;;
10171  esac
10172fi
10173
10174if test "x$enable_dlopen" != xyes; then
10175  enable_dlopen=unknown
10176  enable_dlopen_self=unknown
10177  enable_dlopen_self_static=unknown
10178else
10179  lt_cv_dlopen=no
10180  lt_cv_dlopen_libs=
10181
10182  case $host_os in
10183  beos*)
10184    lt_cv_dlopen="load_add_on"
10185    lt_cv_dlopen_libs=
10186    lt_cv_dlopen_self=yes
10187    ;;
10188
10189  mingw* | pw32*)
10190    lt_cv_dlopen="LoadLibrary"
10191    lt_cv_dlopen_libs=
10192   ;;
10193
10194  cygwin*)
10195    lt_cv_dlopen="dlopen"
10196    lt_cv_dlopen_libs=
10197   ;;
10198
10199  darwin*)
10200  # if libdl is installed we need to link against it
10201    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10202echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10203if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10204  echo $ECHO_N "(cached) $ECHO_C" >&6
10205else
10206  ac_check_lib_save_LIBS=$LIBS
10207LIBS="-ldl  $LIBS"
10208cat >conftest.$ac_ext <<_ACEOF
10209/* confdefs.h.  */
10210_ACEOF
10211cat confdefs.h >>conftest.$ac_ext
10212cat >>conftest.$ac_ext <<_ACEOF
10213/* end confdefs.h.  */
10214
10215/* Override any gcc2 internal prototype to avoid an error.  */
10216#ifdef __cplusplus
10217extern "C"
10218#endif
10219/* We use char because int might match the return type of a gcc2
10220   builtin and then its argument prototype would still apply.  */
10221char dlopen ();
10222int
10223main ()
10224{
10225dlopen ();
10226  ;
10227  return 0;
10228}
10229_ACEOF
10230rm -f conftest.$ac_objext conftest$ac_exeext
10231if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10232  (eval $ac_link) 2>conftest.er1
10233  ac_status=$?
10234  grep -v '^ *+' conftest.er1 >conftest.err
10235  rm -f conftest.er1
10236  cat conftest.err >&5
10237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10238  (exit $ac_status); } &&
10239	 { ac_try='test -z "$ac_c_werror_flag"
10240			 || test ! -s conftest.err'
10241  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10242  (eval $ac_try) 2>&5
10243  ac_status=$?
10244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10245  (exit $ac_status); }; } &&
10246	 { ac_try='test -s conftest$ac_exeext'
10247  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10248  (eval $ac_try) 2>&5
10249  ac_status=$?
10250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10251  (exit $ac_status); }; }; then
10252  ac_cv_lib_dl_dlopen=yes
10253else
10254  echo "$as_me: failed program was:" >&5
10255sed 's/^/| /' conftest.$ac_ext >&5
10256
10257ac_cv_lib_dl_dlopen=no
10258fi
10259rm -f conftest.err conftest.$ac_objext \
10260      conftest$ac_exeext conftest.$ac_ext
10261LIBS=$ac_check_lib_save_LIBS
10262fi
10263echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10264echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10265if test $ac_cv_lib_dl_dlopen = yes; then
10266  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10267else
10268
10269    lt_cv_dlopen="dyld"
10270    lt_cv_dlopen_libs=
10271    lt_cv_dlopen_self=yes
10272
10273fi
10274
10275   ;;
10276
10277  *)
10278    echo "$as_me:$LINENO: checking for shl_load" >&5
10279echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10280if test "${ac_cv_func_shl_load+set}" = set; then
10281  echo $ECHO_N "(cached) $ECHO_C" >&6
10282else
10283  cat >conftest.$ac_ext <<_ACEOF
10284/* confdefs.h.  */
10285_ACEOF
10286cat confdefs.h >>conftest.$ac_ext
10287cat >>conftest.$ac_ext <<_ACEOF
10288/* end confdefs.h.  */
10289/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10290   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10291#define shl_load innocuous_shl_load
10292
10293/* System header to define __stub macros and hopefully few prototypes,
10294    which can conflict with char shl_load (); below.
10295    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10296    <limits.h> exists even on freestanding compilers.  */
10297
10298#ifdef __STDC__
10299# include <limits.h>
10300#else
10301# include <assert.h>
10302#endif
10303
10304#undef shl_load
10305
10306/* Override any gcc2 internal prototype to avoid an error.  */
10307#ifdef __cplusplus
10308extern "C"
10309{
10310#endif
10311/* We use char because int might match the return type of a gcc2
10312   builtin and then its argument prototype would still apply.  */
10313char shl_load ();
10314/* The GNU C library defines this for functions which it implements
10315    to always fail with ENOSYS.  Some functions are actually named
10316    something starting with __ and the normal name is an alias.  */
10317#if defined (__stub_shl_load) || defined (__stub___shl_load)
10318choke me
10319#else
10320char (*f) () = shl_load;
10321#endif
10322#ifdef __cplusplus
10323}
10324#endif
10325
10326int
10327main ()
10328{
10329return f != shl_load;
10330  ;
10331  return 0;
10332}
10333_ACEOF
10334rm -f conftest.$ac_objext conftest$ac_exeext
10335if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10336  (eval $ac_link) 2>conftest.er1
10337  ac_status=$?
10338  grep -v '^ *+' conftest.er1 >conftest.err
10339  rm -f conftest.er1
10340  cat conftest.err >&5
10341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10342  (exit $ac_status); } &&
10343	 { ac_try='test -z "$ac_c_werror_flag"
10344			 || test ! -s conftest.err'
10345  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10346  (eval $ac_try) 2>&5
10347  ac_status=$?
10348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10349  (exit $ac_status); }; } &&
10350	 { ac_try='test -s conftest$ac_exeext'
10351  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10352  (eval $ac_try) 2>&5
10353  ac_status=$?
10354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10355  (exit $ac_status); }; }; then
10356  ac_cv_func_shl_load=yes
10357else
10358  echo "$as_me: failed program was:" >&5
10359sed 's/^/| /' conftest.$ac_ext >&5
10360
10361ac_cv_func_shl_load=no
10362fi
10363rm -f conftest.err conftest.$ac_objext \
10364      conftest$ac_exeext conftest.$ac_ext
10365fi
10366echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10367echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10368if test $ac_cv_func_shl_load = yes; then
10369  lt_cv_dlopen="shl_load"
10370else
10371  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10372echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10373if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10374  echo $ECHO_N "(cached) $ECHO_C" >&6
10375else
10376  ac_check_lib_save_LIBS=$LIBS
10377LIBS="-ldld  $LIBS"
10378cat >conftest.$ac_ext <<_ACEOF
10379/* confdefs.h.  */
10380_ACEOF
10381cat confdefs.h >>conftest.$ac_ext
10382cat >>conftest.$ac_ext <<_ACEOF
10383/* end confdefs.h.  */
10384
10385/* Override any gcc2 internal prototype to avoid an error.  */
10386#ifdef __cplusplus
10387extern "C"
10388#endif
10389/* We use char because int might match the return type of a gcc2
10390   builtin and then its argument prototype would still apply.  */
10391char shl_load ();
10392int
10393main ()
10394{
10395shl_load ();
10396  ;
10397  return 0;
10398}
10399_ACEOF
10400rm -f conftest.$ac_objext conftest$ac_exeext
10401if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10402  (eval $ac_link) 2>conftest.er1
10403  ac_status=$?
10404  grep -v '^ *+' conftest.er1 >conftest.err
10405  rm -f conftest.er1
10406  cat conftest.err >&5
10407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408  (exit $ac_status); } &&
10409	 { ac_try='test -z "$ac_c_werror_flag"
10410			 || test ! -s conftest.err'
10411  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10412  (eval $ac_try) 2>&5
10413  ac_status=$?
10414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10415  (exit $ac_status); }; } &&
10416	 { ac_try='test -s conftest$ac_exeext'
10417  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10418  (eval $ac_try) 2>&5
10419  ac_status=$?
10420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421  (exit $ac_status); }; }; then
10422  ac_cv_lib_dld_shl_load=yes
10423else
10424  echo "$as_me: failed program was:" >&5
10425sed 's/^/| /' conftest.$ac_ext >&5
10426
10427ac_cv_lib_dld_shl_load=no
10428fi
10429rm -f conftest.err conftest.$ac_objext \
10430      conftest$ac_exeext conftest.$ac_ext
10431LIBS=$ac_check_lib_save_LIBS
10432fi
10433echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10434echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10435if test $ac_cv_lib_dld_shl_load = yes; then
10436  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10437else
10438  echo "$as_me:$LINENO: checking for dlopen" >&5
10439echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10440if test "${ac_cv_func_dlopen+set}" = set; then
10441  echo $ECHO_N "(cached) $ECHO_C" >&6
10442else
10443  cat >conftest.$ac_ext <<_ACEOF
10444/* confdefs.h.  */
10445_ACEOF
10446cat confdefs.h >>conftest.$ac_ext
10447cat >>conftest.$ac_ext <<_ACEOF
10448/* end confdefs.h.  */
10449/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10450   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10451#define dlopen innocuous_dlopen
10452
10453/* System header to define __stub macros and hopefully few prototypes,
10454    which can conflict with char dlopen (); below.
10455    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10456    <limits.h> exists even on freestanding compilers.  */
10457
10458#ifdef __STDC__
10459# include <limits.h>
10460#else
10461# include <assert.h>
10462#endif
10463
10464#undef dlopen
10465
10466/* Override any gcc2 internal prototype to avoid an error.  */
10467#ifdef __cplusplus
10468extern "C"
10469{
10470#endif
10471/* We use char because int might match the return type of a gcc2
10472   builtin and then its argument prototype would still apply.  */
10473char dlopen ();
10474/* The GNU C library defines this for functions which it implements
10475    to always fail with ENOSYS.  Some functions are actually named
10476    something starting with __ and the normal name is an alias.  */
10477#if defined (__stub_dlopen) || defined (__stub___dlopen)
10478choke me
10479#else
10480char (*f) () = dlopen;
10481#endif
10482#ifdef __cplusplus
10483}
10484#endif
10485
10486int
10487main ()
10488{
10489return f != dlopen;
10490  ;
10491  return 0;
10492}
10493_ACEOF
10494rm -f conftest.$ac_objext conftest$ac_exeext
10495if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10496  (eval $ac_link) 2>conftest.er1
10497  ac_status=$?
10498  grep -v '^ *+' conftest.er1 >conftest.err
10499  rm -f conftest.er1
10500  cat conftest.err >&5
10501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10502  (exit $ac_status); } &&
10503	 { ac_try='test -z "$ac_c_werror_flag"
10504			 || test ! -s conftest.err'
10505  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10506  (eval $ac_try) 2>&5
10507  ac_status=$?
10508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10509  (exit $ac_status); }; } &&
10510	 { ac_try='test -s conftest$ac_exeext'
10511  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10512  (eval $ac_try) 2>&5
10513  ac_status=$?
10514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10515  (exit $ac_status); }; }; then
10516  ac_cv_func_dlopen=yes
10517else
10518  echo "$as_me: failed program was:" >&5
10519sed 's/^/| /' conftest.$ac_ext >&5
10520
10521ac_cv_func_dlopen=no
10522fi
10523rm -f conftest.err conftest.$ac_objext \
10524      conftest$ac_exeext conftest.$ac_ext
10525fi
10526echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10527echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10528if test $ac_cv_func_dlopen = yes; then
10529  lt_cv_dlopen="dlopen"
10530else
10531  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10532echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10533if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10534  echo $ECHO_N "(cached) $ECHO_C" >&6
10535else
10536  ac_check_lib_save_LIBS=$LIBS
10537LIBS="-ldl  $LIBS"
10538cat >conftest.$ac_ext <<_ACEOF
10539/* confdefs.h.  */
10540_ACEOF
10541cat confdefs.h >>conftest.$ac_ext
10542cat >>conftest.$ac_ext <<_ACEOF
10543/* end confdefs.h.  */
10544
10545/* Override any gcc2 internal prototype to avoid an error.  */
10546#ifdef __cplusplus
10547extern "C"
10548#endif
10549/* We use char because int might match the return type of a gcc2
10550   builtin and then its argument prototype would still apply.  */
10551char dlopen ();
10552int
10553main ()
10554{
10555dlopen ();
10556  ;
10557  return 0;
10558}
10559_ACEOF
10560rm -f conftest.$ac_objext conftest$ac_exeext
10561if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10562  (eval $ac_link) 2>conftest.er1
10563  ac_status=$?
10564  grep -v '^ *+' conftest.er1 >conftest.err
10565  rm -f conftest.er1
10566  cat conftest.err >&5
10567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568  (exit $ac_status); } &&
10569	 { ac_try='test -z "$ac_c_werror_flag"
10570			 || test ! -s conftest.err'
10571  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10572  (eval $ac_try) 2>&5
10573  ac_status=$?
10574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10575  (exit $ac_status); }; } &&
10576	 { ac_try='test -s conftest$ac_exeext'
10577  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10578  (eval $ac_try) 2>&5
10579  ac_status=$?
10580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10581  (exit $ac_status); }; }; then
10582  ac_cv_lib_dl_dlopen=yes
10583else
10584  echo "$as_me: failed program was:" >&5
10585sed 's/^/| /' conftest.$ac_ext >&5
10586
10587ac_cv_lib_dl_dlopen=no
10588fi
10589rm -f conftest.err conftest.$ac_objext \
10590      conftest$ac_exeext conftest.$ac_ext
10591LIBS=$ac_check_lib_save_LIBS
10592fi
10593echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10594echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10595if test $ac_cv_lib_dl_dlopen = yes; then
10596  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10597else
10598  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10599echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10600if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10601  echo $ECHO_N "(cached) $ECHO_C" >&6
10602else
10603  ac_check_lib_save_LIBS=$LIBS
10604LIBS="-lsvld  $LIBS"
10605cat >conftest.$ac_ext <<_ACEOF
10606/* confdefs.h.  */
10607_ACEOF
10608cat confdefs.h >>conftest.$ac_ext
10609cat >>conftest.$ac_ext <<_ACEOF
10610/* end confdefs.h.  */
10611
10612/* Override any gcc2 internal prototype to avoid an error.  */
10613#ifdef __cplusplus
10614extern "C"
10615#endif
10616/* We use char because int might match the return type of a gcc2
10617   builtin and then its argument prototype would still apply.  */
10618char dlopen ();
10619int
10620main ()
10621{
10622dlopen ();
10623  ;
10624  return 0;
10625}
10626_ACEOF
10627rm -f conftest.$ac_objext conftest$ac_exeext
10628if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10629  (eval $ac_link) 2>conftest.er1
10630  ac_status=$?
10631  grep -v '^ *+' conftest.er1 >conftest.err
10632  rm -f conftest.er1
10633  cat conftest.err >&5
10634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10635  (exit $ac_status); } &&
10636	 { ac_try='test -z "$ac_c_werror_flag"
10637			 || test ! -s conftest.err'
10638  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10639  (eval $ac_try) 2>&5
10640  ac_status=$?
10641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642  (exit $ac_status); }; } &&
10643	 { ac_try='test -s conftest$ac_exeext'
10644  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10645  (eval $ac_try) 2>&5
10646  ac_status=$?
10647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10648  (exit $ac_status); }; }; then
10649  ac_cv_lib_svld_dlopen=yes
10650else
10651  echo "$as_me: failed program was:" >&5
10652sed 's/^/| /' conftest.$ac_ext >&5
10653
10654ac_cv_lib_svld_dlopen=no
10655fi
10656rm -f conftest.err conftest.$ac_objext \
10657      conftest$ac_exeext conftest.$ac_ext
10658LIBS=$ac_check_lib_save_LIBS
10659fi
10660echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10661echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10662if test $ac_cv_lib_svld_dlopen = yes; then
10663  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10664else
10665  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10666echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10667if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10668  echo $ECHO_N "(cached) $ECHO_C" >&6
10669else
10670  ac_check_lib_save_LIBS=$LIBS
10671LIBS="-ldld  $LIBS"
10672cat >conftest.$ac_ext <<_ACEOF
10673/* confdefs.h.  */
10674_ACEOF
10675cat confdefs.h >>conftest.$ac_ext
10676cat >>conftest.$ac_ext <<_ACEOF
10677/* end confdefs.h.  */
10678
10679/* Override any gcc2 internal prototype to avoid an error.  */
10680#ifdef __cplusplus
10681extern "C"
10682#endif
10683/* We use char because int might match the return type of a gcc2
10684   builtin and then its argument prototype would still apply.  */
10685char dld_link ();
10686int
10687main ()
10688{
10689dld_link ();
10690  ;
10691  return 0;
10692}
10693_ACEOF
10694rm -f conftest.$ac_objext conftest$ac_exeext
10695if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10696  (eval $ac_link) 2>conftest.er1
10697  ac_status=$?
10698  grep -v '^ *+' conftest.er1 >conftest.err
10699  rm -f conftest.er1
10700  cat conftest.err >&5
10701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702  (exit $ac_status); } &&
10703	 { ac_try='test -z "$ac_c_werror_flag"
10704			 || test ! -s conftest.err'
10705  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10706  (eval $ac_try) 2>&5
10707  ac_status=$?
10708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10709  (exit $ac_status); }; } &&
10710	 { ac_try='test -s conftest$ac_exeext'
10711  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10712  (eval $ac_try) 2>&5
10713  ac_status=$?
10714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10715  (exit $ac_status); }; }; then
10716  ac_cv_lib_dld_dld_link=yes
10717else
10718  echo "$as_me: failed program was:" >&5
10719sed 's/^/| /' conftest.$ac_ext >&5
10720
10721ac_cv_lib_dld_dld_link=no
10722fi
10723rm -f conftest.err conftest.$ac_objext \
10724      conftest$ac_exeext conftest.$ac_ext
10725LIBS=$ac_check_lib_save_LIBS
10726fi
10727echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10728echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10729if test $ac_cv_lib_dld_dld_link = yes; then
10730  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10731fi
10732
10733
10734fi
10735
10736
10737fi
10738
10739
10740fi
10741
10742
10743fi
10744
10745
10746fi
10747
10748    ;;
10749  esac
10750
10751  if test "x$lt_cv_dlopen" != xno; then
10752    enable_dlopen=yes
10753  else
10754    enable_dlopen=no
10755  fi
10756
10757  case $lt_cv_dlopen in
10758  dlopen)
10759    save_CPPFLAGS="$CPPFLAGS"
10760    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10761
10762    save_LDFLAGS="$LDFLAGS"
10763    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10764
10765    save_LIBS="$LIBS"
10766    LIBS="$lt_cv_dlopen_libs $LIBS"
10767
10768    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10769echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10770if test "${lt_cv_dlopen_self+set}" = set; then
10771  echo $ECHO_N "(cached) $ECHO_C" >&6
10772else
10773  	  if test "$cross_compiling" = yes; then :
10774  lt_cv_dlopen_self=cross
10775else
10776  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10777  lt_status=$lt_dlunknown
10778  cat > conftest.$ac_ext <<EOF
10779#line 10779 "configure"
10780#include "confdefs.h"
10781
10782#if HAVE_DLFCN_H
10783#include <dlfcn.h>
10784#endif
10785
10786#include <stdio.h>
10787
10788#ifdef RTLD_GLOBAL
10789#  define LT_DLGLOBAL		RTLD_GLOBAL
10790#else
10791#  ifdef DL_GLOBAL
10792#    define LT_DLGLOBAL		DL_GLOBAL
10793#  else
10794#    define LT_DLGLOBAL		0
10795#  endif
10796#endif
10797
10798/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10799   find out it does not work in some platform. */
10800#ifndef LT_DLLAZY_OR_NOW
10801#  ifdef RTLD_LAZY
10802#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10803#  else
10804#    ifdef DL_LAZY
10805#      define LT_DLLAZY_OR_NOW		DL_LAZY
10806#    else
10807#      ifdef RTLD_NOW
10808#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10809#      else
10810#        ifdef DL_NOW
10811#          define LT_DLLAZY_OR_NOW	DL_NOW
10812#        else
10813#          define LT_DLLAZY_OR_NOW	0
10814#        endif
10815#      endif
10816#    endif
10817#  endif
10818#endif
10819
10820#ifdef __cplusplus
10821extern "C" void exit (int);
10822#endif
10823
10824void fnord() { int i=42;}
10825int main ()
10826{
10827  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10828  int status = $lt_dlunknown;
10829
10830  if (self)
10831    {
10832      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10833      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10834      /* dlclose (self); */
10835    }
10836  else
10837    puts (dlerror ());
10838
10839    exit (status);
10840}
10841EOF
10842  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10843  (eval $ac_link) 2>&5
10844  ac_status=$?
10845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10847    (./conftest; exit; ) >&5 2>/dev/null
10848    lt_status=$?
10849    case x$lt_status in
10850      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10851      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10852      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10853    esac
10854  else :
10855    # compilation failed
10856    lt_cv_dlopen_self=no
10857  fi
10858fi
10859rm -fr conftest*
10860
10861
10862fi
10863echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10864echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10865
10866    if test "x$lt_cv_dlopen_self" = xyes; then
10867      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10868      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10869echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10870if test "${lt_cv_dlopen_self_static+set}" = set; then
10871  echo $ECHO_N "(cached) $ECHO_C" >&6
10872else
10873  	  if test "$cross_compiling" = yes; then :
10874  lt_cv_dlopen_self_static=cross
10875else
10876  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10877  lt_status=$lt_dlunknown
10878  cat > conftest.$ac_ext <<EOF
10879#line 10879 "configure"
10880#include "confdefs.h"
10881
10882#if HAVE_DLFCN_H
10883#include <dlfcn.h>
10884#endif
10885
10886#include <stdio.h>
10887
10888#ifdef RTLD_GLOBAL
10889#  define LT_DLGLOBAL		RTLD_GLOBAL
10890#else
10891#  ifdef DL_GLOBAL
10892#    define LT_DLGLOBAL		DL_GLOBAL
10893#  else
10894#    define LT_DLGLOBAL		0
10895#  endif
10896#endif
10897
10898/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10899   find out it does not work in some platform. */
10900#ifndef LT_DLLAZY_OR_NOW
10901#  ifdef RTLD_LAZY
10902#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10903#  else
10904#    ifdef DL_LAZY
10905#      define LT_DLLAZY_OR_NOW		DL_LAZY
10906#    else
10907#      ifdef RTLD_NOW
10908#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10909#      else
10910#        ifdef DL_NOW
10911#          define LT_DLLAZY_OR_NOW	DL_NOW
10912#        else
10913#          define LT_DLLAZY_OR_NOW	0
10914#        endif
10915#      endif
10916#    endif
10917#  endif
10918#endif
10919
10920#ifdef __cplusplus
10921extern "C" void exit (int);
10922#endif
10923
10924void fnord() { int i=42;}
10925int main ()
10926{
10927  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10928  int status = $lt_dlunknown;
10929
10930  if (self)
10931    {
10932      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10933      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10934      /* dlclose (self); */
10935    }
10936  else
10937    puts (dlerror ());
10938
10939    exit (status);
10940}
10941EOF
10942  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10943  (eval $ac_link) 2>&5
10944  ac_status=$?
10945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10946  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10947    (./conftest; exit; ) >&5 2>/dev/null
10948    lt_status=$?
10949    case x$lt_status in
10950      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10951      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10952      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10953    esac
10954  else :
10955    # compilation failed
10956    lt_cv_dlopen_self_static=no
10957  fi
10958fi
10959rm -fr conftest*
10960
10961
10962fi
10963echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10964echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10965    fi
10966
10967    CPPFLAGS="$save_CPPFLAGS"
10968    LDFLAGS="$save_LDFLAGS"
10969    LIBS="$save_LIBS"
10970    ;;
10971  esac
10972
10973  case $lt_cv_dlopen_self in
10974  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10975  *) enable_dlopen_self=unknown ;;
10976  esac
10977
10978  case $lt_cv_dlopen_self_static in
10979  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10980  *) enable_dlopen_self_static=unknown ;;
10981  esac
10982fi
10983
10984
10985# Report which library types will actually be built
10986echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10987echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10988echo "$as_me:$LINENO: result: $can_build_shared" >&5
10989echo "${ECHO_T}$can_build_shared" >&6
10990
10991echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10992echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10993test "$can_build_shared" = "no" && enable_shared=no
10994
10995# On AIX, shared libraries and static libraries use the same namespace, and
10996# are all built from PIC.
10997case $host_os in
10998aix3*)
10999  test "$enable_shared" = yes && enable_static=no
11000  if test -n "$RANLIB"; then
11001    archive_cmds="$archive_cmds~\$RANLIB \$lib"
11002    postinstall_cmds='$RANLIB $lib'
11003  fi
11004  ;;
11005
11006aix4* | aix5*)
11007  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11008    test "$enable_shared" = yes && enable_static=no
11009  fi
11010    ;;
11011esac
11012echo "$as_me:$LINENO: result: $enable_shared" >&5
11013echo "${ECHO_T}$enable_shared" >&6
11014
11015echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11016echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11017# Make sure either enable_shared or enable_static is yes.
11018test "$enable_shared" = yes || enable_static=yes
11019echo "$as_me:$LINENO: result: $enable_static" >&5
11020echo "${ECHO_T}$enable_static" >&6
11021
11022# The else clause should only fire when bootstrapping the
11023# libtool distribution, otherwise you forgot to ship ltmain.sh
11024# with your package, and you will get complaints that there are
11025# no rules to generate ltmain.sh.
11026if test -f "$ltmain"; then
11027  # See if we are running on zsh, and set the options which allow our commands through
11028  # without removal of \ escapes.
11029  if test -n "${ZSH_VERSION+set}" ; then
11030    setopt NO_GLOB_SUBST
11031  fi
11032  # Now quote all the things that may contain metacharacters while being
11033  # careful not to overquote the AC_SUBSTed values.  We take copies of the
11034  # variables and quote the copies for generation of the libtool script.
11035  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11036    SED SHELL STRIP \
11037    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11038    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11039    deplibs_check_method reload_flag reload_cmds need_locks \
11040    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11041    lt_cv_sys_global_symbol_to_c_name_address \
11042    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11043    old_postinstall_cmds old_postuninstall_cmds \
11044    compiler \
11045    CC \
11046    LD \
11047    lt_prog_compiler_wl \
11048    lt_prog_compiler_pic \
11049    lt_prog_compiler_static \
11050    lt_prog_compiler_no_builtin_flag \
11051    export_dynamic_flag_spec \
11052    thread_safe_flag_spec \
11053    whole_archive_flag_spec \
11054    enable_shared_with_static_runtimes \
11055    old_archive_cmds \
11056    old_archive_from_new_cmds \
11057    predep_objects \
11058    postdep_objects \
11059    predeps \
11060    postdeps \
11061    compiler_lib_search_path \
11062    archive_cmds \
11063    archive_expsym_cmds \
11064    postinstall_cmds \
11065    postuninstall_cmds \
11066    old_archive_from_expsyms_cmds \
11067    allow_undefined_flag \
11068    no_undefined_flag \
11069    export_symbols_cmds \
11070    hardcode_libdir_flag_spec \
11071    hardcode_libdir_flag_spec_ld \
11072    hardcode_libdir_separator \
11073    hardcode_automatic \
11074    module_cmds \
11075    module_expsym_cmds \
11076    lt_cv_prog_compiler_c_o \
11077    exclude_expsyms \
11078    include_expsyms; do
11079
11080    case $var in
11081    old_archive_cmds | \
11082    old_archive_from_new_cmds | \
11083    archive_cmds | \
11084    archive_expsym_cmds | \
11085    module_cmds | \
11086    module_expsym_cmds | \
11087    old_archive_from_expsyms_cmds | \
11088    export_symbols_cmds | \
11089    extract_expsyms_cmds | reload_cmds | finish_cmds | \
11090    postinstall_cmds | postuninstall_cmds | \
11091    old_postinstall_cmds | old_postuninstall_cmds | \
11092    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11093      # Double-quote double-evaled strings.
11094      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11095      ;;
11096    *)
11097      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11098      ;;
11099    esac
11100  done
11101
11102  case $lt_echo in
11103  *'\$0 --fallback-echo"')
11104    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11105    ;;
11106  esac
11107
11108cfgfile="${ofile}T"
11109  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11110  $rm -f "$cfgfile"
11111  { echo "$as_me:$LINENO: creating $ofile" >&5
11112echo "$as_me: creating $ofile" >&6;}
11113
11114  cat <<__EOF__ >> "$cfgfile"
11115#! $SHELL
11116
11117# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11118# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11119# NOTE: Changes made to this file will be lost: look at ltmain.sh.
11120#
11121# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11122# Free Software Foundation, Inc.
11123#
11124# This file is part of GNU Libtool:
11125# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11126#
11127# This program is free software; you can redistribute it and/or modify
11128# it under the terms of the GNU General Public License as published by
11129# the Free Software Foundation; either version 2 of the License, or
11130# (at your option) any later version.
11131#
11132# This program is distributed in the hope that it will be useful, but
11133# WITHOUT ANY WARRANTY; without even the implied warranty of
11134# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11135# General Public License for more details.
11136#
11137# You should have received a copy of the GNU General Public License
11138# along with this program; if not, write to the Free Software
11139# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11140#
11141# As a special exception to the GNU General Public License, if you
11142# distribute this file as part of a program that contains a
11143# configuration script generated by Autoconf, you may include it under
11144# the same distribution terms that you use for the rest of that program.
11145
11146# A sed program that does not truncate output.
11147SED=$lt_SED
11148
11149# Sed that helps us avoid accidentally triggering echo(1) options like -n.
11150Xsed="$SED -e 1s/^X//"
11151
11152# The HP-UX ksh and POSIX shell print the target directory to stdout
11153# if CDPATH is set.
11154(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11155
11156# The names of the tagged configurations supported by this script.
11157available_tags=
11158
11159# ### BEGIN LIBTOOL CONFIG
11160
11161# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11162
11163# Shell to use when invoking shell scripts.
11164SHELL=$lt_SHELL
11165
11166# Whether or not to build shared libraries.
11167build_libtool_libs=$enable_shared
11168
11169# Whether or not to build static libraries.
11170build_old_libs=$enable_static
11171
11172# Whether or not to add -lc for building shared libraries.
11173build_libtool_need_lc=$archive_cmds_need_lc
11174
11175# Whether or not to disallow shared libs when runtime libs are static
11176allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11177
11178# Whether or not to optimize for fast installation.
11179fast_install=$enable_fast_install
11180
11181# The host system.
11182host_alias=$host_alias
11183host=$host
11184host_os=$host_os
11185
11186# The build system.
11187build_alias=$build_alias
11188build=$build
11189build_os=$build_os
11190
11191# An echo program that does not interpret backslashes.
11192echo=$lt_echo
11193
11194# The archiver.
11195AR=$lt_AR
11196AR_FLAGS=$lt_AR_FLAGS
11197
11198# A C compiler.
11199LTCC=$lt_LTCC
11200
11201# LTCC compiler flags.
11202LTCFLAGS=$lt_LTCFLAGS
11203
11204# A language-specific compiler.
11205CC=$lt_compiler
11206
11207# Is the compiler the GNU C compiler?
11208with_gcc=$GCC
11209
11210# An ERE matcher.
11211EGREP=$lt_EGREP
11212
11213# The linker used to build libraries.
11214LD=$lt_LD
11215
11216# Whether we need hard or soft links.
11217LN_S=$lt_LN_S
11218
11219# A BSD-compatible nm program.
11220NM=$lt_NM
11221
11222# A symbol stripping program
11223STRIP=$lt_STRIP
11224
11225# Used to examine libraries when file_magic_cmd begins "file"
11226MAGIC_CMD=$MAGIC_CMD
11227
11228# Used on cygwin: DLL creation program.
11229DLLTOOL="$DLLTOOL"
11230
11231# Used on cygwin: object dumper.
11232OBJDUMP="$OBJDUMP"
11233
11234# Used on cygwin: assembler.
11235AS="$AS"
11236
11237# The name of the directory that contains temporary libtool files.
11238objdir=$objdir
11239
11240# How to create reloadable object files.
11241reload_flag=$lt_reload_flag
11242reload_cmds=$lt_reload_cmds
11243
11244# How to pass a linker flag through the compiler.
11245wl=$lt_lt_prog_compiler_wl
11246
11247# Object file suffix (normally "o").
11248objext="$ac_objext"
11249
11250# Old archive suffix (normally "a").
11251libext="$libext"
11252
11253# Shared library suffix (normally ".so").
11254shrext_cmds='$shrext_cmds'
11255
11256# Executable file suffix (normally "").
11257exeext="$exeext"
11258
11259# Additional compiler flags for building library objects.
11260pic_flag=$lt_lt_prog_compiler_pic
11261pic_mode=$pic_mode
11262
11263# What is the maximum length of a command?
11264max_cmd_len=$lt_cv_sys_max_cmd_len
11265
11266# Does compiler simultaneously support -c and -o options?
11267compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11268
11269# Must we lock files when doing compilation?
11270need_locks=$lt_need_locks
11271
11272# Do we need the lib prefix for modules?
11273need_lib_prefix=$need_lib_prefix
11274
11275# Do we need a version for libraries?
11276need_version=$need_version
11277
11278# Whether dlopen is supported.
11279dlopen_support=$enable_dlopen
11280
11281# Whether dlopen of programs is supported.
11282dlopen_self=$enable_dlopen_self
11283
11284# Whether dlopen of statically linked programs is supported.
11285dlopen_self_static=$enable_dlopen_self_static
11286
11287# Compiler flag to prevent dynamic linking.
11288link_static_flag=$lt_lt_prog_compiler_static
11289
11290# Compiler flag to turn off builtin functions.
11291no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11292
11293# Compiler flag to allow reflexive dlopens.
11294export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11295
11296# Compiler flag to generate shared objects directly from archives.
11297whole_archive_flag_spec=$lt_whole_archive_flag_spec
11298
11299# Compiler flag to generate thread-safe objects.
11300thread_safe_flag_spec=$lt_thread_safe_flag_spec
11301
11302# Library versioning type.
11303version_type=$version_type
11304
11305# Format of library name prefix.
11306libname_spec=$lt_libname_spec
11307
11308# List of archive names.  First name is the real one, the rest are links.
11309# The last name is the one that the linker finds with -lNAME.
11310library_names_spec=$lt_library_names_spec
11311
11312# The coded name of the library, if different from the real name.
11313soname_spec=$lt_soname_spec
11314
11315# Commands used to build and install an old-style archive.
11316RANLIB=$lt_RANLIB
11317old_archive_cmds=$lt_old_archive_cmds
11318old_postinstall_cmds=$lt_old_postinstall_cmds
11319old_postuninstall_cmds=$lt_old_postuninstall_cmds
11320
11321# Create an old-style archive from a shared archive.
11322old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11323
11324# Create a temporary old-style archive to link instead of a shared archive.
11325old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11326
11327# Commands used to build and install a shared archive.
11328archive_cmds=$lt_archive_cmds
11329archive_expsym_cmds=$lt_archive_expsym_cmds
11330postinstall_cmds=$lt_postinstall_cmds
11331postuninstall_cmds=$lt_postuninstall_cmds
11332
11333# Commands used to build a loadable module (assumed same as above if empty)
11334module_cmds=$lt_module_cmds
11335module_expsym_cmds=$lt_module_expsym_cmds
11336
11337# Commands to strip libraries.
11338old_striplib=$lt_old_striplib
11339striplib=$lt_striplib
11340
11341# Dependencies to place before the objects being linked to create a
11342# shared library.
11343predep_objects=$lt_predep_objects
11344
11345# Dependencies to place after the objects being linked to create a
11346# shared library.
11347postdep_objects=$lt_postdep_objects
11348
11349# Dependencies to place before the objects being linked to create a
11350# shared library.
11351predeps=$lt_predeps
11352
11353# Dependencies to place after the objects being linked to create a
11354# shared library.
11355postdeps=$lt_postdeps
11356
11357# The library search path used internally by the compiler when linking
11358# a shared library.
11359compiler_lib_search_path=$lt_compiler_lib_search_path
11360
11361# Method to check whether dependent libraries are shared objects.
11362deplibs_check_method=$lt_deplibs_check_method
11363
11364# Command to use when deplibs_check_method == file_magic.
11365file_magic_cmd=$lt_file_magic_cmd
11366
11367# Flag that allows shared libraries with undefined symbols to be built.
11368allow_undefined_flag=$lt_allow_undefined_flag
11369
11370# Flag that forces no undefined symbols.
11371no_undefined_flag=$lt_no_undefined_flag
11372
11373# Commands used to finish a libtool library installation in a directory.
11374finish_cmds=$lt_finish_cmds
11375
11376# Same as above, but a single script fragment to be evaled but not shown.
11377finish_eval=$lt_finish_eval
11378
11379# Take the output of nm and produce a listing of raw symbols and C names.
11380global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11381
11382# Transform the output of nm in a proper C declaration
11383global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11384
11385# Transform the output of nm in a C name address pair
11386global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11387
11388# This is the shared library runtime path variable.
11389runpath_var=$runpath_var
11390
11391# This is the shared library path variable.
11392shlibpath_var=$shlibpath_var
11393
11394# Is shlibpath searched before the hard-coded library search path?
11395shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11396
11397# How to hardcode a shared library path into an executable.
11398hardcode_action=$hardcode_action
11399
11400# Whether we should hardcode library paths into libraries.
11401hardcode_into_libs=$hardcode_into_libs
11402
11403# Flag to hardcode \$libdir into a binary during linking.
11404# This must work even if \$libdir does not exist.
11405hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11406
11407# If ld is used when linking, flag to hardcode \$libdir into
11408# a binary during linking. This must work even if \$libdir does
11409# not exist.
11410hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11411
11412# Whether we need a single -rpath flag with a separated argument.
11413hardcode_libdir_separator=$lt_hardcode_libdir_separator
11414
11415# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11416# resulting binary.
11417hardcode_direct=$hardcode_direct
11418
11419# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11420# resulting binary.
11421hardcode_minus_L=$hardcode_minus_L
11422
11423# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11424# the resulting binary.
11425hardcode_shlibpath_var=$hardcode_shlibpath_var
11426
11427# Set to yes if building a shared library automatically hardcodes DIR into the library
11428# and all subsequent libraries and executables linked against it.
11429hardcode_automatic=$hardcode_automatic
11430
11431# Variables whose values should be saved in libtool wrapper scripts and
11432# restored at relink time.
11433variables_saved_for_relink="$variables_saved_for_relink"
11434
11435# Whether libtool must link a program against all its dependency libraries.
11436link_all_deplibs=$link_all_deplibs
11437
11438# Compile-time system search path for libraries
11439sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11440
11441# Run-time system search path for libraries
11442sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11443
11444# Fix the shell variable \$srcfile for the compiler.
11445fix_srcfile_path="$fix_srcfile_path"
11446
11447# Set to yes if exported symbols are required.
11448always_export_symbols=$always_export_symbols
11449
11450# The commands to list exported symbols.
11451export_symbols_cmds=$lt_export_symbols_cmds
11452
11453# The commands to extract the exported symbol list from a shared archive.
11454extract_expsyms_cmds=$lt_extract_expsyms_cmds
11455
11456# Symbols that should not be listed in the preloaded symbols.
11457exclude_expsyms=$lt_exclude_expsyms
11458
11459# Symbols that must always be exported.
11460include_expsyms=$lt_include_expsyms
11461
11462# ### END LIBTOOL CONFIG
11463
11464__EOF__
11465
11466
11467  case $host_os in
11468  aix3*)
11469    cat <<\EOF >> "$cfgfile"
11470
11471# AIX sometimes has problems with the GCC collect2 program.  For some
11472# reason, if we set the COLLECT_NAMES environment variable, the problems
11473# vanish in a puff of smoke.
11474if test "X${COLLECT_NAMES+set}" != Xset; then
11475  COLLECT_NAMES=
11476  export COLLECT_NAMES
11477fi
11478EOF
11479    ;;
11480  esac
11481
11482  # We use sed instead of cat because bash on DJGPP gets confused if
11483  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11484  # text mode, it properly converts lines to CR/LF.  This bash problem
11485  # is reportedly fixed, but why not run on old versions too?
11486  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11487
11488  mv -f "$cfgfile" "$ofile" || \
11489    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11490  chmod +x "$ofile"
11491
11492else
11493  # If there is no Makefile yet, we rely on a make rule to execute
11494  # `config.status --recheck' to rerun these tests and create the
11495  # libtool script then.
11496  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11497  if test -f "$ltmain_in"; then
11498    test -f Makefile && make "$ltmain"
11499  fi
11500fi
11501
11502
11503ac_ext=c
11504ac_cpp='$CPP $CPPFLAGS'
11505ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11506ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11507ac_compiler_gnu=$ac_cv_c_compiler_gnu
11508
11509CC="$lt_save_CC"
11510
11511
11512# Check whether --with-tags or --without-tags was given.
11513if test "${with_tags+set}" = set; then
11514  withval="$with_tags"
11515  tagnames="$withval"
11516fi;
11517
11518if test -f "$ltmain" && test -n "$tagnames"; then
11519  if test ! -f "${ofile}"; then
11520    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11521echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11522  fi
11523
11524  if test -z "$LTCC"; then
11525    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11526    if test -z "$LTCC"; then
11527      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11528echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11529    else
11530      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11531echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11532    fi
11533  fi
11534  if test -z "$LTCFLAGS"; then
11535    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11536  fi
11537
11538  # Extract list of available tagged configurations in $ofile.
11539  # Note that this assumes the entire list is on one line.
11540  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11541
11542  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11543  for tagname in $tagnames; do
11544    IFS="$lt_save_ifs"
11545    # Check whether tagname contains only valid characters
11546    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11547    "") ;;
11548    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11549echo "$as_me: error: invalid tag name: $tagname" >&2;}
11550   { (exit 1); exit 1; }; }
11551	;;
11552    esac
11553
11554    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11555    then
11556      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11557echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11558   { (exit 1); exit 1; }; }
11559    fi
11560
11561    # Update the list of available tags.
11562    if test -n "$tagname"; then
11563      echo appending configuration tag \"$tagname\" to $ofile
11564
11565      case $tagname in
11566      CXX)
11567	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11568	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11569	    (test "X$CXX" != "Xg++"))) ; then
11570	  ac_ext=cc
11571ac_cpp='$CXXCPP $CPPFLAGS'
11572ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11573ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11574ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11575
11576
11577
11578
11579archive_cmds_need_lc_CXX=no
11580allow_undefined_flag_CXX=
11581always_export_symbols_CXX=no
11582archive_expsym_cmds_CXX=
11583export_dynamic_flag_spec_CXX=
11584hardcode_direct_CXX=no
11585hardcode_libdir_flag_spec_CXX=
11586hardcode_libdir_flag_spec_ld_CXX=
11587hardcode_libdir_separator_CXX=
11588hardcode_minus_L_CXX=no
11589hardcode_shlibpath_var_CXX=unsupported
11590hardcode_automatic_CXX=no
11591module_cmds_CXX=
11592module_expsym_cmds_CXX=
11593link_all_deplibs_CXX=unknown
11594old_archive_cmds_CXX=$old_archive_cmds
11595no_undefined_flag_CXX=
11596whole_archive_flag_spec_CXX=
11597enable_shared_with_static_runtimes_CXX=no
11598
11599# Dependencies to place before and after the object being linked:
11600predep_objects_CXX=
11601postdep_objects_CXX=
11602predeps_CXX=
11603postdeps_CXX=
11604compiler_lib_search_path_CXX=
11605
11606# Source file extension for C++ test sources.
11607ac_ext=cpp
11608
11609# Object file extension for compiled C++ test sources.
11610objext=o
11611objext_CXX=$objext
11612
11613# Code to be used in simple compile tests
11614lt_simple_compile_test_code="int some_variable = 0;\n"
11615
11616# Code to be used in simple link tests
11617lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11618
11619# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11620
11621# If no C compiler was specified, use CC.
11622LTCC=${LTCC-"$CC"}
11623
11624# If no C compiler flags were specified, use CFLAGS.
11625LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11626
11627# Allow CC to be a program name with arguments.
11628compiler=$CC
11629
11630
11631# save warnings/boilerplate of simple test code
11632ac_outfile=conftest.$ac_objext
11633printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11634eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11635_lt_compiler_boilerplate=`cat conftest.err`
11636$rm conftest*
11637
11638ac_outfile=conftest.$ac_objext
11639printf "$lt_simple_link_test_code" >conftest.$ac_ext
11640eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11641_lt_linker_boilerplate=`cat conftest.err`
11642$rm conftest*
11643
11644
11645# Allow CC to be a program name with arguments.
11646lt_save_CC=$CC
11647lt_save_LD=$LD
11648lt_save_GCC=$GCC
11649GCC=$GXX
11650lt_save_with_gnu_ld=$with_gnu_ld
11651lt_save_path_LD=$lt_cv_path_LD
11652if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11653  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11654else
11655  $as_unset lt_cv_prog_gnu_ld
11656fi
11657if test -n "${lt_cv_path_LDCXX+set}"; then
11658  lt_cv_path_LD=$lt_cv_path_LDCXX
11659else
11660  $as_unset lt_cv_path_LD
11661fi
11662test -z "${LDCXX+set}" || LD=$LDCXX
11663CC=${CXX-"c++"}
11664compiler=$CC
11665compiler_CXX=$CC
11666for cc_temp in $compiler""; do
11667  case $cc_temp in
11668    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11669    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11670    \-*) ;;
11671    *) break;;
11672  esac
11673done
11674cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11675
11676
11677# We don't want -fno-exception wen compiling C++ code, so set the
11678# no_builtin_flag separately
11679if test "$GXX" = yes; then
11680  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11681else
11682  lt_prog_compiler_no_builtin_flag_CXX=
11683fi
11684
11685if test "$GXX" = yes; then
11686  # Set up default GNU C++ configuration
11687
11688
11689# Check whether --with-gnu-ld or --without-gnu-ld was given.
11690if test "${with_gnu_ld+set}" = set; then
11691  withval="$with_gnu_ld"
11692  test "$withval" = no || with_gnu_ld=yes
11693else
11694  with_gnu_ld=no
11695fi;
11696ac_prog=ld
11697if test "$GCC" = yes; then
11698  # Check if gcc -print-prog-name=ld gives a path.
11699  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11700echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11701  case $host in
11702  *-*-mingw*)
11703    # gcc leaves a trailing carriage return which upsets mingw
11704    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11705  *)
11706    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11707  esac
11708  case $ac_prog in
11709    # Accept absolute paths.
11710    [\\/]* | ?:[\\/]*)
11711      re_direlt='/[^/][^/]*/\.\./'
11712      # Canonicalize the pathname of ld
11713      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11714      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11715	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11716      done
11717      test -z "$LD" && LD="$ac_prog"
11718      ;;
11719  "")
11720    # If it fails, then pretend we aren't using GCC.
11721    ac_prog=ld
11722    ;;
11723  *)
11724    # If it is relative, then search for the first ld in PATH.
11725    with_gnu_ld=unknown
11726    ;;
11727  esac
11728elif test "$with_gnu_ld" = yes; then
11729  echo "$as_me:$LINENO: checking for GNU ld" >&5
11730echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11731else
11732  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11733echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11734fi
11735if test "${lt_cv_path_LD+set}" = set; then
11736  echo $ECHO_N "(cached) $ECHO_C" >&6
11737else
11738  if test -z "$LD"; then
11739  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11740  for ac_dir in $PATH; do
11741    IFS="$lt_save_ifs"
11742    test -z "$ac_dir" && ac_dir=.
11743    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11744      lt_cv_path_LD="$ac_dir/$ac_prog"
11745      # Check to see if the program is GNU ld.  I'd rather use --version,
11746      # but apparently some variants of GNU ld only accept -v.
11747      # Break only if it was the GNU/non-GNU ld that we prefer.
11748      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11749      *GNU* | *'with BFD'*)
11750	test "$with_gnu_ld" != no && break
11751	;;
11752      *)
11753	test "$with_gnu_ld" != yes && break
11754	;;
11755      esac
11756    fi
11757  done
11758  IFS="$lt_save_ifs"
11759else
11760  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11761fi
11762fi
11763
11764LD="$lt_cv_path_LD"
11765if test -n "$LD"; then
11766  echo "$as_me:$LINENO: result: $LD" >&5
11767echo "${ECHO_T}$LD" >&6
11768else
11769  echo "$as_me:$LINENO: result: no" >&5
11770echo "${ECHO_T}no" >&6
11771fi
11772test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11773echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11774   { (exit 1); exit 1; }; }
11775echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11776echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11777if test "${lt_cv_prog_gnu_ld+set}" = set; then
11778  echo $ECHO_N "(cached) $ECHO_C" >&6
11779else
11780  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11781case `$LD -v 2>&1 </dev/null` in
11782*GNU* | *'with BFD'*)
11783  lt_cv_prog_gnu_ld=yes
11784  ;;
11785*)
11786  lt_cv_prog_gnu_ld=no
11787  ;;
11788esac
11789fi
11790echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11791echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
11792with_gnu_ld=$lt_cv_prog_gnu_ld
11793
11794
11795
11796  # Check if GNU C++ uses GNU ld as the underlying linker, since the
11797  # archiving commands below assume that GNU ld is being used.
11798  if test "$with_gnu_ld" = yes; then
11799    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11800    archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11801
11802    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11803    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11804
11805    # If archive_cmds runs LD, not CC, wlarc should be empty
11806    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11807    #     investigate it a little bit more. (MM)
11808    wlarc='${wl}'
11809
11810    # ancient GNU ld didn't support --whole-archive et. al.
11811    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11812	grep 'no-whole-archive' > /dev/null; then
11813      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11814    else
11815      whole_archive_flag_spec_CXX=
11816    fi
11817  else
11818    with_gnu_ld=no
11819    wlarc=
11820
11821    # A generic and very simple default shared library creation
11822    # command for GNU C++ for the case where it uses the native
11823    # linker, instead of GNU ld.  If possible, this setting should
11824    # overridden to take advantage of the native linker features on
11825    # the platform it is being used on.
11826    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11827  fi
11828
11829  # Commands to make compiler produce verbose output that lists
11830  # what "hidden" libraries, object files and flags are used when
11831  # linking a shared library.
11832  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11833
11834else
11835  GXX=no
11836  with_gnu_ld=no
11837  wlarc=
11838fi
11839
11840# PORTME: fill in a description of your system's C++ link characteristics
11841echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11842echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11843ld_shlibs_CXX=yes
11844case $host_os in
11845  aix3*)
11846    # FIXME: insert proper C++ library support
11847    ld_shlibs_CXX=no
11848    ;;
11849  aix4* | aix5*)
11850    if test "$host_cpu" = ia64; then
11851      # On IA64, the linker does run time linking by default, so we don't
11852      # have to do anything special.
11853      aix_use_runtimelinking=no
11854      exp_sym_flag='-Bexport'
11855      no_entry_flag=""
11856    else
11857      aix_use_runtimelinking=no
11858
11859      # Test if we are trying to use run time linking or normal
11860      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11861      # need to do runtime linking.
11862      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11863	for ld_flag in $LDFLAGS; do
11864	  case $ld_flag in
11865	  *-brtl*)
11866	    aix_use_runtimelinking=yes
11867	    break
11868	    ;;
11869	  esac
11870	done
11871	;;
11872      esac
11873
11874      exp_sym_flag='-bexport'
11875      no_entry_flag='-bnoentry'
11876    fi
11877
11878    # When large executables or shared objects are built, AIX ld can
11879    # have problems creating the table of contents.  If linking a library
11880    # or program results in "error TOC overflow" add -mminimal-toc to
11881    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11882    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11883
11884    archive_cmds_CXX=''
11885    hardcode_direct_CXX=yes
11886    hardcode_libdir_separator_CXX=':'
11887    link_all_deplibs_CXX=yes
11888
11889    if test "$GXX" = yes; then
11890      case $host_os in aix4.[012]|aix4.[012].*)
11891      # We only want to do this on AIX 4.2 and lower, the check
11892      # below for broken collect2 doesn't work under 4.3+
11893	collect2name=`${CC} -print-prog-name=collect2`
11894	if test -f "$collect2name" && \
11895	   strings "$collect2name" | grep resolve_lib_name >/dev/null
11896	then
11897	  # We have reworked collect2
11898	  hardcode_direct_CXX=yes
11899	else
11900	  # We have old collect2
11901	  hardcode_direct_CXX=unsupported
11902	  # It fails to find uninstalled libraries when the uninstalled
11903	  # path is not listed in the libpath.  Setting hardcode_minus_L
11904	  # to unsupported forces relinking
11905	  hardcode_minus_L_CXX=yes
11906	  hardcode_libdir_flag_spec_CXX='-L$libdir'
11907	  hardcode_libdir_separator_CXX=
11908	fi
11909	;;
11910      esac
11911      shared_flag='-shared'
11912      if test "$aix_use_runtimelinking" = yes; then
11913	shared_flag="$shared_flag "'${wl}-G'
11914      fi
11915    else
11916      # not using gcc
11917      if test "$host_cpu" = ia64; then
11918	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11919	# chokes on -Wl,-G. The following line is correct:
11920	shared_flag='-G'
11921      else
11922	if test "$aix_use_runtimelinking" = yes; then
11923	  shared_flag='${wl}-G'
11924	else
11925	  shared_flag='${wl}-bM:SRE'
11926	fi
11927      fi
11928    fi
11929
11930    # It seems that -bexpall does not export symbols beginning with
11931    # underscore (_), so it is better to generate a list of symbols to export.
11932    always_export_symbols_CXX=yes
11933    if test "$aix_use_runtimelinking" = yes; then
11934      # Warning - without using the other runtime loading flags (-brtl),
11935      # -berok will link without error, but may produce a broken library.
11936      allow_undefined_flag_CXX='-berok'
11937      # Determine the default libpath from the value encoded in an empty executable.
11938      cat >conftest.$ac_ext <<_ACEOF
11939/* confdefs.h.  */
11940_ACEOF
11941cat confdefs.h >>conftest.$ac_ext
11942cat >>conftest.$ac_ext <<_ACEOF
11943/* end confdefs.h.  */
11944
11945int
11946main ()
11947{
11948
11949  ;
11950  return 0;
11951}
11952_ACEOF
11953rm -f conftest.$ac_objext conftest$ac_exeext
11954if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11955  (eval $ac_link) 2>conftest.er1
11956  ac_status=$?
11957  grep -v '^ *+' conftest.er1 >conftest.err
11958  rm -f conftest.er1
11959  cat conftest.err >&5
11960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11961  (exit $ac_status); } &&
11962	 { ac_try='test -z "$ac_cxx_werror_flag"
11963			 || test ! -s conftest.err'
11964  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11965  (eval $ac_try) 2>&5
11966  ac_status=$?
11967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968  (exit $ac_status); }; } &&
11969	 { ac_try='test -s conftest$ac_exeext'
11970  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11971  (eval $ac_try) 2>&5
11972  ac_status=$?
11973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974  (exit $ac_status); }; }; then
11975
11976aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11977}'`
11978# Check for a 64-bit object if we didn't find anything.
11979if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11980}'`; fi
11981else
11982  echo "$as_me: failed program was:" >&5
11983sed 's/^/| /' conftest.$ac_ext >&5
11984
11985fi
11986rm -f conftest.err conftest.$ac_objext \
11987      conftest$ac_exeext conftest.$ac_ext
11988if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11989
11990      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11991
11992      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11993     else
11994      if test "$host_cpu" = ia64; then
11995	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11996	allow_undefined_flag_CXX="-z nodefs"
11997	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
11998      else
11999	# Determine the default libpath from the value encoded in an empty executable.
12000	cat >conftest.$ac_ext <<_ACEOF
12001/* confdefs.h.  */
12002_ACEOF
12003cat confdefs.h >>conftest.$ac_ext
12004cat >>conftest.$ac_ext <<_ACEOF
12005/* end confdefs.h.  */
12006
12007int
12008main ()
12009{
12010
12011  ;
12012  return 0;
12013}
12014_ACEOF
12015rm -f conftest.$ac_objext conftest$ac_exeext
12016if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12017  (eval $ac_link) 2>conftest.er1
12018  ac_status=$?
12019  grep -v '^ *+' conftest.er1 >conftest.err
12020  rm -f conftest.er1
12021  cat conftest.err >&5
12022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12023  (exit $ac_status); } &&
12024	 { ac_try='test -z "$ac_cxx_werror_flag"
12025			 || test ! -s conftest.err'
12026  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12027  (eval $ac_try) 2>&5
12028  ac_status=$?
12029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12030  (exit $ac_status); }; } &&
12031	 { ac_try='test -s conftest$ac_exeext'
12032  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12033  (eval $ac_try) 2>&5
12034  ac_status=$?
12035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036  (exit $ac_status); }; }; then
12037
12038aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12039}'`
12040# Check for a 64-bit object if we didn't find anything.
12041if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12042}'`; fi
12043else
12044  echo "$as_me: failed program was:" >&5
12045sed 's/^/| /' conftest.$ac_ext >&5
12046
12047fi
12048rm -f conftest.err conftest.$ac_objext \
12049      conftest$ac_exeext conftest.$ac_ext
12050if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12051
12052	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12053	# Warning - without using the other run time loading flags,
12054	# -berok will link without error, but may produce a broken library.
12055	no_undefined_flag_CXX=' ${wl}-bernotok'
12056	allow_undefined_flag_CXX=' ${wl}-berok'
12057	# Exported symbols can be pulled into shared objects from archives
12058	whole_archive_flag_spec_CXX='$convenience'
12059	archive_cmds_need_lc_CXX=yes
12060	# This is similar to how AIX traditionally builds its shared libraries.
12061	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12062      fi
12063    fi
12064    ;;
12065
12066  beos*)
12067    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12068      allow_undefined_flag_CXX=unsupported
12069      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12070      # support --undefined.  This deserves some investigation.  FIXME
12071      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12072    else
12073      ld_shlibs_CXX=no
12074    fi
12075    ;;
12076
12077  chorus*)
12078    case $cc_basename in
12079      *)
12080	# FIXME: insert proper C++ library support
12081	ld_shlibs_CXX=no
12082	;;
12083    esac
12084    ;;
12085
12086  cygwin* | mingw* | pw32*)
12087    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12088    # as there is no search path for DLLs.
12089    hardcode_libdir_flag_spec_CXX='-L$libdir'
12090    allow_undefined_flag_CXX=unsupported
12091    always_export_symbols_CXX=no
12092    enable_shared_with_static_runtimes_CXX=yes
12093
12094    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12095      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12096      # If the export-symbols file already is a .def file (1st line
12097      # is EXPORTS), use it as is; otherwise, prepend...
12098      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12099	cp $export_symbols $output_objdir/$soname.def;
12100      else
12101	echo EXPORTS > $output_objdir/$soname.def;
12102	cat $export_symbols >> $output_objdir/$soname.def;
12103      fi~
12104      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12105    else
12106      ld_shlibs_CXX=no
12107    fi
12108  ;;
12109      darwin* | rhapsody*)
12110        case $host_os in
12111        rhapsody* | darwin1.[012])
12112         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12113         ;;
12114       *) # Darwin 1.3 on
12115         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12116           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12117         else
12118           case ${MACOSX_DEPLOYMENT_TARGET} in
12119             10.[012])
12120               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12121               ;;
12122             10.*)
12123               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12124               ;;
12125           esac
12126         fi
12127         ;;
12128        esac
12129      archive_cmds_need_lc_CXX=no
12130      hardcode_direct_CXX=no
12131      hardcode_automatic_CXX=yes
12132      hardcode_shlibpath_var_CXX=unsupported
12133      whole_archive_flag_spec_CXX=''
12134      link_all_deplibs_CXX=yes
12135
12136    if test "$GXX" = yes ; then
12137      lt_int_apple_cc_single_mod=no
12138      output_verbose_link_cmd='echo'
12139      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12140       lt_int_apple_cc_single_mod=yes
12141      fi
12142      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12143       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12144      else
12145          archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12146        fi
12147        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12148        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12149          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12150            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12151          else
12152            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12153          fi
12154            module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12155      else
12156      case $cc_basename in
12157        xlc*)
12158         output_verbose_link_cmd='echo'
12159          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12160          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12161          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12162          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12163          module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12164          ;;
12165       *)
12166         ld_shlibs_CXX=no
12167          ;;
12168      esac
12169      fi
12170        ;;
12171
12172  dgux*)
12173    case $cc_basename in
12174      ec++*)
12175	# FIXME: insert proper C++ library support
12176	ld_shlibs_CXX=no
12177	;;
12178      ghcx*)
12179	# Green Hills C++ Compiler
12180	# FIXME: insert proper C++ library support
12181	ld_shlibs_CXX=no
12182	;;
12183      *)
12184	# FIXME: insert proper C++ library support
12185	ld_shlibs_CXX=no
12186	;;
12187    esac
12188    ;;
12189  freebsd[12]*)
12190    # C++ shared libraries reported to be fairly broken before switch to ELF
12191    ld_shlibs_CXX=no
12192    ;;
12193  freebsd-elf*)
12194    archive_cmds_need_lc_CXX=no
12195    ;;
12196  freebsd* | kfreebsd*-gnu | dragonfly*)
12197    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12198    # conventions
12199    ld_shlibs_CXX=yes
12200    ;;
12201  gnu*)
12202    ;;
12203  hpux9*)
12204    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12205    hardcode_libdir_separator_CXX=:
12206    export_dynamic_flag_spec_CXX='${wl}-E'
12207    hardcode_direct_CXX=yes
12208    hardcode_minus_L_CXX=yes # Not in the search PATH,
12209				# but as the default
12210				# location of the library.
12211
12212    case $cc_basename in
12213    CC*)
12214      # FIXME: insert proper C++ library support
12215      ld_shlibs_CXX=no
12216      ;;
12217    aCC*)
12218      archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12219      # Commands to make compiler produce verbose output that lists
12220      # what "hidden" libraries, object files and flags are used when
12221      # linking a shared library.
12222      #
12223      # There doesn't appear to be a way to prevent this compiler from
12224      # explicitly linking system object files so we need to strip them
12225      # from the output so that they don't get included in the library
12226      # dependencies.
12227      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12228      ;;
12229    *)
12230      if test "$GXX" = yes; then
12231        archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12232      else
12233        # FIXME: insert proper C++ library support
12234        ld_shlibs_CXX=no
12235      fi
12236      ;;
12237    esac
12238    ;;
12239  hpux10*|hpux11*)
12240    if test $with_gnu_ld = no; then
12241      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12242      hardcode_libdir_separator_CXX=:
12243
12244      case $host_cpu in
12245      hppa*64*|ia64*)
12246	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12247        ;;
12248      *)
12249	export_dynamic_flag_spec_CXX='${wl}-E'
12250        ;;
12251      esac
12252    fi
12253    case $host_cpu in
12254    hppa*64*|ia64*)
12255      hardcode_direct_CXX=no
12256      hardcode_shlibpath_var_CXX=no
12257      ;;
12258    *)
12259      hardcode_direct_CXX=yes
12260      hardcode_minus_L_CXX=yes # Not in the search PATH,
12261					      # but as the default
12262					      # location of the library.
12263      ;;
12264    esac
12265
12266    case $cc_basename in
12267      CC*)
12268	# FIXME: insert proper C++ library support
12269	ld_shlibs_CXX=no
12270	;;
12271      aCC*)
12272	case $host_cpu in
12273	hppa*64*)
12274	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12275	  ;;
12276	ia64*)
12277	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12278	  ;;
12279	*)
12280	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12281	  ;;
12282	esac
12283	# Commands to make compiler produce verbose output that lists
12284	# what "hidden" libraries, object files and flags are used when
12285	# linking a shared library.
12286	#
12287	# There doesn't appear to be a way to prevent this compiler from
12288	# explicitly linking system object files so we need to strip them
12289	# from the output so that they don't get included in the library
12290	# dependencies.
12291	output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12292	;;
12293      *)
12294	if test "$GXX" = yes; then
12295	  if test $with_gnu_ld = no; then
12296	    case $host_cpu in
12297	    hppa*64*)
12298	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12299	      ;;
12300	    ia64*)
12301	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12302	      ;;
12303	    *)
12304	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12305	      ;;
12306	    esac
12307	  fi
12308	else
12309	  # FIXME: insert proper C++ library support
12310	  ld_shlibs_CXX=no
12311	fi
12312	;;
12313    esac
12314    ;;
12315  interix3*)
12316    hardcode_direct_CXX=no
12317    hardcode_shlibpath_var_CXX=no
12318    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12319    export_dynamic_flag_spec_CXX='${wl}-E'
12320    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12321    # Instead, shared libraries are loaded at an image base (0x10000000 by
12322    # default) and relocated if they conflict, which is a slow very memory
12323    # consuming and fragmenting process.  To avoid this, we pick a random,
12324    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12325    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12326    archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12327    archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12328    ;;
12329  irix5* | irix6*)
12330    case $cc_basename in
12331      CC*)
12332	# SGI C++
12333	archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12334
12335	# Archives containing C++ object files must be created using
12336	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12337	# necessary to make sure instantiated templates are included
12338	# in the archive.
12339	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12340	;;
12341      *)
12342	if test "$GXX" = yes; then
12343	  if test "$with_gnu_ld" = no; then
12344	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12345	  else
12346	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
12347	  fi
12348	fi
12349	link_all_deplibs_CXX=yes
12350	;;
12351    esac
12352    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12353    hardcode_libdir_separator_CXX=:
12354    ;;
12355  linux*)
12356    case $cc_basename in
12357      KCC*)
12358	# Kuck and Associates, Inc. (KAI) C++ Compiler
12359
12360	# KCC will only create a shared library if the output file
12361	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12362	# to its proper name (with version) after linking.
12363	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12364	archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
12365	# Commands to make compiler produce verbose output that lists
12366	# what "hidden" libraries, object files and flags are used when
12367	# linking a shared library.
12368	#
12369	# There doesn't appear to be a way to prevent this compiler from
12370	# explicitly linking system object files so we need to strip them
12371	# from the output so that they don't get included in the library
12372	# dependencies.
12373	output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12374
12375	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12376	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12377
12378	# Archives containing C++ object files must be created using
12379	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12380	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12381	;;
12382      icpc*)
12383	# Intel C++
12384	with_gnu_ld=yes
12385	# version 8.0 and above of icpc choke on multiply defined symbols
12386	# if we add $predep_objects and $postdep_objects, however 7.1 and
12387	# earlier do not add the objects themselves.
12388	case `$CC -V 2>&1` in
12389	*"Version 7."*)
12390  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12391  	  archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12392	  ;;
12393	*)  # Version 8.0 or newer
12394	  tmp_idyn=
12395	  case $host_cpu in
12396	    ia64*) tmp_idyn=' -i_dynamic';;
12397	  esac
12398  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12399	  archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12400	  ;;
12401	esac
12402	archive_cmds_need_lc_CXX=no
12403	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12404	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12405	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12406	;;
12407      pgCC*)
12408        # Portland Group C++ compiler
12409	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12410  	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12411
12412	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12413	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12414	whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
12415        ;;
12416      cxx*)
12417	# Compaq C++
12418	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12419	archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
12420
12421	runpath_var=LD_RUN_PATH
12422	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12423	hardcode_libdir_separator_CXX=:
12424
12425	# Commands to make compiler produce verbose output that lists
12426	# what "hidden" libraries, object files and flags are used when
12427	# linking a shared library.
12428	#
12429	# There doesn't appear to be a way to prevent this compiler from
12430	# explicitly linking system object files so we need to strip them
12431	# from the output so that they don't get included in the library
12432	# dependencies.
12433	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12434	;;
12435    esac
12436    ;;
12437  lynxos*)
12438    # FIXME: insert proper C++ library support
12439    ld_shlibs_CXX=no
12440    ;;
12441  m88k*)
12442    # FIXME: insert proper C++ library support
12443    ld_shlibs_CXX=no
12444    ;;
12445  mvs*)
12446    case $cc_basename in
12447      cxx*)
12448	# FIXME: insert proper C++ library support
12449	ld_shlibs_CXX=no
12450	;;
12451      *)
12452	# FIXME: insert proper C++ library support
12453	ld_shlibs_CXX=no
12454	;;
12455    esac
12456    ;;
12457  netbsd*)
12458    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12459      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12460      wlarc=
12461      hardcode_libdir_flag_spec_CXX='-R$libdir'
12462      hardcode_direct_CXX=yes
12463      hardcode_shlibpath_var_CXX=no
12464    fi
12465    # Workaround some broken pre-1.5 toolchains
12466    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12467    ;;
12468  openbsd2*)
12469    # C++ shared libraries are fairly broken
12470    ld_shlibs_CXX=no
12471    ;;
12472  openbsd*)
12473    hardcode_direct_CXX=yes
12474    hardcode_shlibpath_var_CXX=no
12475    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12476    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12477    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12478      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12479      export_dynamic_flag_spec_CXX='${wl}-E'
12480      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12481    fi
12482    output_verbose_link_cmd='echo'
12483    ;;
12484  osf3*)
12485    case $cc_basename in
12486      KCC*)
12487	# Kuck and Associates, Inc. (KAI) C++ Compiler
12488
12489	# KCC will only create a shared library if the output file
12490	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12491	# to its proper name (with version) after linking.
12492	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12493
12494	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12495	hardcode_libdir_separator_CXX=:
12496
12497	# Archives containing C++ object files must be created using
12498	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
12499	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12500
12501	;;
12502      RCC*)
12503	# Rational C++ 2.4.1
12504	# FIXME: insert proper C++ library support
12505	ld_shlibs_CXX=no
12506	;;
12507      cxx*)
12508	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12509	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12510
12511	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12512	hardcode_libdir_separator_CXX=:
12513
12514	# Commands to make compiler produce verbose output that lists
12515	# what "hidden" libraries, object files and flags are used when
12516	# linking a shared library.
12517	#
12518	# There doesn't appear to be a way to prevent this compiler from
12519	# explicitly linking system object files so we need to strip them
12520	# from the output so that they don't get included in the library
12521	# dependencies.
12522	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12523	;;
12524      *)
12525	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12526	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12527	  archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12528
12529	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12530	  hardcode_libdir_separator_CXX=:
12531
12532	  # Commands to make compiler produce verbose output that lists
12533	  # what "hidden" libraries, object files and flags are used when
12534	  # linking a shared library.
12535	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12536
12537	else
12538	  # FIXME: insert proper C++ library support
12539	  ld_shlibs_CXX=no
12540	fi
12541	;;
12542    esac
12543    ;;
12544  osf4* | osf5*)
12545    case $cc_basename in
12546      KCC*)
12547	# Kuck and Associates, Inc. (KAI) C++ Compiler
12548
12549	# KCC will only create a shared library if the output file
12550	# ends with ".so" (or ".sl" for HP-UX), so rename the library
12551	# to its proper name (with version) after linking.
12552	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12553
12554	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12555	hardcode_libdir_separator_CXX=:
12556
12557	# Archives containing C++ object files must be created using
12558	# the KAI C++ compiler.
12559	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12560	;;
12561      RCC*)
12562	# Rational C++ 2.4.1
12563	# FIXME: insert proper C++ library support
12564	ld_shlibs_CXX=no
12565	;;
12566      cxx*)
12567	allow_undefined_flag_CXX=' -expect_unresolved \*'
12568	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12569	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12570	  echo "-hidden">> $lib.exp~
12571	  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version	$verstring` -update_registry ${output_objdir}/so_locations -o $lib~
12572	  $rm $lib.exp'
12573
12574	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12575	hardcode_libdir_separator_CXX=:
12576
12577	# Commands to make compiler produce verbose output that lists
12578	# what "hidden" libraries, object files and flags are used when
12579	# linking a shared library.
12580	#
12581	# There doesn't appear to be a way to prevent this compiler from
12582	# explicitly linking system object files so we need to strip them
12583	# from the output so that they don't get included in the library
12584	# dependencies.
12585	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12586	;;
12587      *)
12588	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12589	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12590	 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12591
12592	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12593	  hardcode_libdir_separator_CXX=:
12594
12595	  # Commands to make compiler produce verbose output that lists
12596	  # what "hidden" libraries, object files and flags are used when
12597	  # linking a shared library.
12598	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12599
12600	else
12601	  # FIXME: insert proper C++ library support
12602	  ld_shlibs_CXX=no
12603	fi
12604	;;
12605    esac
12606    ;;
12607  psos*)
12608    # FIXME: insert proper C++ library support
12609    ld_shlibs_CXX=no
12610    ;;
12611  sunos4*)
12612    case $cc_basename in
12613      CC*)
12614	# Sun C++ 4.x
12615	# FIXME: insert proper C++ library support
12616	ld_shlibs_CXX=no
12617	;;
12618      lcc*)
12619	# Lucid
12620	# FIXME: insert proper C++ library support
12621	ld_shlibs_CXX=no
12622	;;
12623      *)
12624	# FIXME: insert proper C++ library support
12625	ld_shlibs_CXX=no
12626	;;
12627    esac
12628    ;;
12629  solaris*)
12630    case $cc_basename in
12631      CC*)
12632	# Sun C++ 4.2, 5.x and Centerline C++
12633        archive_cmds_need_lc_CXX=yes
12634	no_undefined_flag_CXX=' -zdefs'
12635	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12636	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12637	$CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12638
12639	hardcode_libdir_flag_spec_CXX='-R$libdir'
12640	hardcode_shlibpath_var_CXX=no
12641	case $host_os in
12642	  solaris2.[0-5] | solaris2.[0-5].*) ;;
12643	  *)
12644	    # The C++ compiler is used as linker so we must use $wl
12645	    # flag to pass the commands to the underlying system
12646	    # linker. We must also pass each convience library through
12647	    # to the system linker between allextract/defaultextract.
12648	    # The C++ compiler will combine linker options so we
12649	    # cannot just pass the convience library names through
12650	    # without $wl.
12651	    # Supported since Solaris 2.6 (maybe 2.5.1?)
12652	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
12653	    ;;
12654	esac
12655	link_all_deplibs_CXX=yes
12656
12657	output_verbose_link_cmd='echo'
12658
12659	# Archives containing C++ object files must be created using
12660	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
12661	# necessary to make sure instantiated templates are included
12662	# in the archive.
12663	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12664	;;
12665      gcx*)
12666	# Green Hills C++ Compiler
12667	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12668
12669	# The C++ compiler must be used to create the archive.
12670	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12671	;;
12672      *)
12673	# GNU C++ compiler with Solaris linker
12674	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12675	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12676	  if $CC --version | grep -v '^2\.7' > /dev/null; then
12677	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12678	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12679		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12680
12681	    # Commands to make compiler produce verbose output that lists
12682	    # what "hidden" libraries, object files and flags are used when
12683	    # linking a shared library.
12684	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12685	  else
12686	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
12687	    # platform.
12688	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12689	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12690		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12691
12692	    # Commands to make compiler produce verbose output that lists
12693	    # what "hidden" libraries, object files and flags are used when
12694	    # linking a shared library.
12695	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12696	  fi
12697
12698	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12699	fi
12700	;;
12701    esac
12702    ;;
12703  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12704    no_undefined_flag_CXX='${wl}-z,text'
12705    archive_cmds_need_lc_CXX=no
12706    hardcode_shlibpath_var_CXX=no
12707    runpath_var='LD_RUN_PATH'
12708
12709    case $cc_basename in
12710      CC*)
12711	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12712	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12713	;;
12714      *)
12715	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12716	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12717	;;
12718    esac
12719    ;;
12720  sysv5* | sco3.2v5* | sco5v6*)
12721    # Note: We can NOT use -z defs as we might desire, because we do not
12722    # link with -lc, and that would cause any symbols used from libc to
12723    # always be unresolved, which means just about no library would
12724    # ever link correctly.  If we're not using GNU ld we use -z text
12725    # though, which does catch some bad symbols but isn't as heavy-handed
12726    # as -z defs.
12727    # For security reasons, it is highly recommended that you always
12728    # use absolute paths for naming shared libraries, and exclude the
12729    # DT_RUNPATH tag from executables and libraries.  But doing so
12730    # requires that you compile everything twice, which is a pain.
12731    # So that behaviour is only enabled if SCOABSPATH is set to a
12732    # non-empty value in the environment.  Most likely only useful for
12733    # creating official distributions of packages.
12734    # This is a hack until libtool officially supports absolute path
12735    # names for shared libraries.
12736    no_undefined_flag_CXX='${wl}-z,text'
12737    allow_undefined_flag_CXX='${wl}-z,nodefs'
12738    archive_cmds_need_lc_CXX=no
12739    hardcode_shlibpath_var_CXX=no
12740    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12741    hardcode_libdir_separator_CXX=':'
12742    link_all_deplibs_CXX=yes
12743    export_dynamic_flag_spec_CXX='${wl}-Bexport'
12744    runpath_var='LD_RUN_PATH'
12745
12746    case $cc_basename in
12747      CC*)
12748	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12749	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12750	;;
12751      *)
12752	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12753	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12754	;;
12755    esac
12756    ;;
12757  tandem*)
12758    case $cc_basename in
12759      NCC*)
12760	# NonStop-UX NCC 3.20
12761	# FIXME: insert proper C++ library support
12762	ld_shlibs_CXX=no
12763	;;
12764      *)
12765	# FIXME: insert proper C++ library support
12766	ld_shlibs_CXX=no
12767	;;
12768    esac
12769    ;;
12770  vxworks*)
12771    # FIXME: insert proper C++ library support
12772    ld_shlibs_CXX=no
12773    ;;
12774  *)
12775    # FIXME: insert proper C++ library support
12776    ld_shlibs_CXX=no
12777    ;;
12778esac
12779echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12780echo "${ECHO_T}$ld_shlibs_CXX" >&6
12781test "$ld_shlibs_CXX" = no && can_build_shared=no
12782
12783GCC_CXX="$GXX"
12784LD_CXX="$LD"
12785
12786## CAVEAT EMPTOR:
12787## There is no encapsulation within the following macros, do not change
12788## the running order or otherwise move them around unless you know exactly
12789## what you are doing...
12790
12791cat > conftest.$ac_ext <<EOF
12792class Foo
12793{
12794public:
12795  Foo (void) { a = 0; }
12796private:
12797  int a;
12798};
12799EOF
12800
12801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12802  (eval $ac_compile) 2>&5
12803  ac_status=$?
12804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805  (exit $ac_status); }; then
12806  # Parse the compiler output and extract the necessary
12807  # objects, libraries and library flags.
12808
12809  # Sentinel used to keep track of whether or not we are before
12810  # the conftest object file.
12811  pre_test_object_deps_done=no
12812
12813  # The `*' in the case matches for architectures that use `case' in
12814  # $output_verbose_cmd can trigger glob expansion during the loop
12815  # eval without this substitution.
12816  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12817
12818  for p in `eval $output_verbose_link_cmd`; do
12819    case $p in
12820
12821    -L* | -R* | -l*)
12822       # Some compilers place space between "-{L,R}" and the path.
12823       # Remove the space.
12824       if test $p = "-L" \
12825	  || test $p = "-R"; then
12826	 prev=$p
12827	 continue
12828       else
12829	 prev=
12830       fi
12831
12832       if test "$pre_test_object_deps_done" = no; then
12833	 case $p in
12834	 -L* | -R*)
12835	   # Internal compiler library paths should come after those
12836	   # provided the user.  The postdeps already come after the
12837	   # user supplied libs so there is no need to process them.
12838	   if test -z "$compiler_lib_search_path_CXX"; then
12839	     compiler_lib_search_path_CXX="${prev}${p}"
12840	   else
12841	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12842	   fi
12843	   ;;
12844	 # The "-l" case would never come before the object being
12845	 # linked, so don't bother handling this case.
12846	 esac
12847       else
12848	 if test -z "$postdeps_CXX"; then
12849	   postdeps_CXX="${prev}${p}"
12850	 else
12851	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12852	 fi
12853       fi
12854       ;;
12855
12856    *.$objext)
12857       # This assumes that the test object file only shows up
12858       # once in the compiler output.
12859       if test "$p" = "conftest.$objext"; then
12860	 pre_test_object_deps_done=yes
12861	 continue
12862       fi
12863
12864       if test "$pre_test_object_deps_done" = no; then
12865	 if test -z "$predep_objects_CXX"; then
12866	   predep_objects_CXX="$p"
12867	 else
12868	   predep_objects_CXX="$predep_objects_CXX $p"
12869	 fi
12870       else
12871	 if test -z "$postdep_objects_CXX"; then
12872	   postdep_objects_CXX="$p"
12873	 else
12874	   postdep_objects_CXX="$postdep_objects_CXX $p"
12875	 fi
12876       fi
12877       ;;
12878
12879    *) ;; # Ignore the rest.
12880
12881    esac
12882  done
12883
12884  # Clean up.
12885  rm -f a.out a.exe
12886else
12887  echo "libtool.m4: error: problem compiling CXX test program"
12888fi
12889
12890$rm -f confest.$objext
12891
12892# PORTME: override above test on systems where it is broken
12893case $host_os in
12894interix3*)
12895  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12896  # hack all around it, let's just trust "g++" to DTRT.
12897  predep_objects_CXX=
12898  postdep_objects_CXX=
12899  postdeps_CXX=
12900  ;;
12901
12902solaris*)
12903  case $cc_basename in
12904  CC*)
12905    # Adding this requires a known-good setup of shared libraries for
12906    # Sun compiler versions before 5.6, else PIC objects from an old
12907    # archive will be linked into the output, leading to subtle bugs.
12908    postdeps_CXX='-lCstd -lCrun'
12909    ;;
12910  esac
12911  ;;
12912esac
12913
12914
12915case " $postdeps_CXX " in
12916*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12917esac
12918
12919lt_prog_compiler_wl_CXX=
12920lt_prog_compiler_pic_CXX=
12921lt_prog_compiler_static_CXX=
12922
12923echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12924echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12925
12926  # C++ specific cases for pic, static, wl, etc.
12927  if test "$GXX" = yes; then
12928    lt_prog_compiler_wl_CXX='-Wl,'
12929    lt_prog_compiler_static_CXX='-static'
12930
12931    case $host_os in
12932    aix*)
12933      # All AIX code is PIC.
12934      if test "$host_cpu" = ia64; then
12935	# AIX 5 now supports IA64 processor
12936	lt_prog_compiler_static_CXX='-Bstatic'
12937      fi
12938      ;;
12939    amigaos*)
12940      # FIXME: we need at least 68020 code to build shared libraries, but
12941      # adding the `-m68020' flag to GCC prevents building anything better,
12942      # like `-m68040'.
12943      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12944      ;;
12945    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12946      # PIC is the default for these OSes.
12947      ;;
12948    mingw* | os2* | pw32*)
12949      # This hack is so that the source file can tell whether it is being
12950      # built for inclusion in a dll (and should export symbols for example).
12951      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12952      ;;
12953    darwin* | rhapsody*)
12954      # PIC is the default on this platform
12955      # Common symbols not allowed in MH_DYLIB files
12956      lt_prog_compiler_pic_CXX='-fno-common'
12957      ;;
12958    *djgpp*)
12959      # DJGPP does not support shared libraries at all
12960      lt_prog_compiler_pic_CXX=
12961      ;;
12962    interix3*)
12963      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12964      # Instead, we relocate shared libraries at runtime.
12965      ;;
12966    sysv4*MP*)
12967      if test -d /usr/nec; then
12968	lt_prog_compiler_pic_CXX=-Kconform_pic
12969      fi
12970      ;;
12971    hpux*)
12972      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12973      # not for PA HP-UX.
12974      case $host_cpu in
12975      hppa*64*|ia64*)
12976	;;
12977      *)
12978	lt_prog_compiler_pic_CXX='-fPIC'
12979	;;
12980      esac
12981      ;;
12982    *)
12983      lt_prog_compiler_pic_CXX='-fPIC'
12984      ;;
12985    esac
12986  else
12987    case $host_os in
12988      aix4* | aix5*)
12989	# All AIX code is PIC.
12990	if test "$host_cpu" = ia64; then
12991	  # AIX 5 now supports IA64 processor
12992	  lt_prog_compiler_static_CXX='-Bstatic'
12993	else
12994	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12995	fi
12996	;;
12997      chorus*)
12998	case $cc_basename in
12999	cxch68*)
13000	  # Green Hills C++ Compiler
13001	  # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
13002	  ;;
13003	esac
13004	;;
13005       darwin*)
13006         # PIC is the default on this platform
13007         # Common symbols not allowed in MH_DYLIB files
13008         case $cc_basename in
13009           xlc*)
13010           lt_prog_compiler_pic_CXX='-qnocommon'
13011           lt_prog_compiler_wl_CXX='-Wl,'
13012           ;;
13013         esac
13014       ;;
13015      dgux*)
13016	case $cc_basename in
13017	  ec++*)
13018	    lt_prog_compiler_pic_CXX='-KPIC'
13019	    ;;
13020	  ghcx*)
13021	    # Green Hills C++ Compiler
13022	    lt_prog_compiler_pic_CXX='-pic'
13023	    ;;
13024	  *)
13025	    ;;
13026	esac
13027	;;
13028      freebsd* | kfreebsd*-gnu | dragonfly*)
13029	# FreeBSD uses GNU C++
13030	;;
13031      hpux9* | hpux10* | hpux11*)
13032	case $cc_basename in
13033	  CC*)
13034	    lt_prog_compiler_wl_CXX='-Wl,'
13035	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13036	    if test "$host_cpu" != ia64; then
13037	      lt_prog_compiler_pic_CXX='+Z'
13038	    fi
13039	    ;;
13040	  aCC*)
13041	    lt_prog_compiler_wl_CXX='-Wl,'
13042	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13043	    case $host_cpu in
13044	    hppa*64*|ia64*)
13045	      # +Z the default
13046	      ;;
13047	    *)
13048	      lt_prog_compiler_pic_CXX='+Z'
13049	      ;;
13050	    esac
13051	    ;;
13052	  *)
13053	    ;;
13054	esac
13055	;;
13056      interix*)
13057	# This is c89, which is MS Visual C++ (no shared libs)
13058	# Anyone wants to do a port?
13059	;;
13060      irix5* | irix6* | nonstopux*)
13061	case $cc_basename in
13062	  CC*)
13063	    lt_prog_compiler_wl_CXX='-Wl,'
13064	    lt_prog_compiler_static_CXX='-non_shared'
13065	    # CC pic flag -KPIC is the default.
13066	    ;;
13067	  *)
13068	    ;;
13069	esac
13070	;;
13071      linux*)
13072	case $cc_basename in
13073	  KCC*)
13074	    # KAI C++ Compiler
13075	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13076	    lt_prog_compiler_pic_CXX='-fPIC'
13077	    ;;
13078	  icpc* | ecpc*)
13079	    # Intel C++
13080	    lt_prog_compiler_wl_CXX='-Wl,'
13081	    lt_prog_compiler_pic_CXX='-KPIC'
13082	    lt_prog_compiler_static_CXX='-static'
13083	    ;;
13084	  pgCC*)
13085	    # Portland Group C++ compiler.
13086	    lt_prog_compiler_wl_CXX='-Wl,'
13087	    lt_prog_compiler_pic_CXX='-fpic'
13088	    lt_prog_compiler_static_CXX='-Bstatic'
13089	    ;;
13090	  cxx*)
13091	    # Compaq C++
13092	    # Make sure the PIC flag is empty.  It appears that all Alpha
13093	    # Linux and Compaq Tru64 Unix objects are PIC.
13094	    lt_prog_compiler_pic_CXX=
13095	    lt_prog_compiler_static_CXX='-non_shared'
13096	    ;;
13097	  *)
13098	    ;;
13099	esac
13100	;;
13101      lynxos*)
13102	;;
13103      m88k*)
13104	;;
13105      mvs*)
13106	case $cc_basename in
13107	  cxx*)
13108	    lt_prog_compiler_pic_CXX='-W c,exportall'
13109	    ;;
13110	  *)
13111	    ;;
13112	esac
13113	;;
13114      netbsd*)
13115	;;
13116      osf3* | osf4* | osf5*)
13117	case $cc_basename in
13118	  KCC*)
13119	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13120	    ;;
13121	  RCC*)
13122	    # Rational C++ 2.4.1
13123	    lt_prog_compiler_pic_CXX='-pic'
13124	    ;;
13125	  cxx*)
13126	    # Digital/Compaq C++
13127	    lt_prog_compiler_wl_CXX='-Wl,'
13128	    # Make sure the PIC flag is empty.  It appears that all Alpha
13129	    # Linux and Compaq Tru64 Unix objects are PIC.
13130	    lt_prog_compiler_pic_CXX=
13131	    lt_prog_compiler_static_CXX='-non_shared'
13132	    ;;
13133	  *)
13134	    ;;
13135	esac
13136	;;
13137      psos*)
13138	;;
13139      solaris*)
13140	case $cc_basename in
13141	  CC*)
13142	    # Sun C++ 4.2, 5.x and Centerline C++
13143	    lt_prog_compiler_pic_CXX='-KPIC'
13144	    lt_prog_compiler_static_CXX='-Bstatic'
13145	    lt_prog_compiler_wl_CXX='-Qoption ld '
13146	    ;;
13147	  gcx*)
13148	    # Green Hills C++ Compiler
13149	    lt_prog_compiler_pic_CXX='-PIC'
13150	    ;;
13151	  *)
13152	    ;;
13153	esac
13154	;;
13155      sunos4*)
13156	case $cc_basename in
13157	  CC*)
13158	    # Sun C++ 4.x
13159	    lt_prog_compiler_pic_CXX='-pic'
13160	    lt_prog_compiler_static_CXX='-Bstatic'
13161	    ;;
13162	  lcc*)
13163	    # Lucid
13164	    lt_prog_compiler_pic_CXX='-pic'
13165	    ;;
13166	  *)
13167	    ;;
13168	esac
13169	;;
13170      tandem*)
13171	case $cc_basename in
13172	  NCC*)
13173	    # NonStop-UX NCC 3.20
13174	    lt_prog_compiler_pic_CXX='-KPIC'
13175	    ;;
13176	  *)
13177	    ;;
13178	esac
13179	;;
13180      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13181	case $cc_basename in
13182	  CC*)
13183	    lt_prog_compiler_wl_CXX='-Wl,'
13184	    lt_prog_compiler_pic_CXX='-KPIC'
13185	    lt_prog_compiler_static_CXX='-Bstatic'
13186	    ;;
13187	esac
13188	;;
13189      vxworks*)
13190	;;
13191      *)
13192	lt_prog_compiler_can_build_shared_CXX=no
13193	;;
13194    esac
13195  fi
13196
13197echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13198echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
13199
13200#
13201# Check to make sure the PIC flag actually works.
13202#
13203if test -n "$lt_prog_compiler_pic_CXX"; then
13204
13205echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13206echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
13207if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13208  echo $ECHO_N "(cached) $ECHO_C" >&6
13209else
13210  lt_prog_compiler_pic_works_CXX=no
13211  ac_outfile=conftest.$ac_objext
13212   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13213   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13214   # Insert the option either (1) after the last *FLAGS variable, or
13215   # (2) before a word containing "conftest.", or (3) at the end.
13216   # Note that $ac_compile itself does not contain backslashes and begins
13217   # with a dollar sign (not a hyphen), so the echo should work correctly.
13218   # The option is referenced via a variable to avoid confusing sed.
13219   lt_compile=`echo "$ac_compile" | $SED \
13220   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13221   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13222   -e 's:$: $lt_compiler_flag:'`
13223   (eval echo "\"\$as_me:13223: $lt_compile\"" >&5)
13224   (eval "$lt_compile" 2>conftest.err)
13225   ac_status=$?
13226   cat conftest.err >&5
13227   echo "$as_me:13227: \$? = $ac_status" >&5
13228   if (exit $ac_status) && test -s "$ac_outfile"; then
13229     # The compiler can only warn and ignore the option if not recognized
13230     # So say no if there are warnings other than the usual output.
13231     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13232     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13233     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13234       lt_prog_compiler_pic_works_CXX=yes
13235     fi
13236   fi
13237   $rm conftest*
13238
13239fi
13240echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13241echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
13242
13243if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13244    case $lt_prog_compiler_pic_CXX in
13245     "" | " "*) ;;
13246     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13247     esac
13248else
13249    lt_prog_compiler_pic_CXX=
13250     lt_prog_compiler_can_build_shared_CXX=no
13251fi
13252
13253fi
13254case $host_os in
13255  # For platforms which do not support PIC, -DPIC is meaningless:
13256  *djgpp*)
13257    lt_prog_compiler_pic_CXX=
13258    ;;
13259  *)
13260    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13261    ;;
13262esac
13263
13264#
13265# Check to make sure the static flag actually works.
13266#
13267wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13268echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13269echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13270if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13271  echo $ECHO_N "(cached) $ECHO_C" >&6
13272else
13273  lt_prog_compiler_static_works_CXX=no
13274   save_LDFLAGS="$LDFLAGS"
13275   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13276   printf "$lt_simple_link_test_code" > conftest.$ac_ext
13277   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13278     # The linker can only warn and ignore the option if not recognized
13279     # So say no if there are warnings
13280     if test -s conftest.err; then
13281       # Append any errors to the config.log.
13282       cat conftest.err 1>&5
13283       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13284       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13285       if diff conftest.exp conftest.er2 >/dev/null; then
13286         lt_prog_compiler_static_works_CXX=yes
13287       fi
13288     else
13289       lt_prog_compiler_static_works_CXX=yes
13290     fi
13291   fi
13292   $rm conftest*
13293   LDFLAGS="$save_LDFLAGS"
13294
13295fi
13296echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13297echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
13298
13299if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13300    :
13301else
13302    lt_prog_compiler_static_CXX=
13303fi
13304
13305
13306echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13307echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13308if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13309  echo $ECHO_N "(cached) $ECHO_C" >&6
13310else
13311  lt_cv_prog_compiler_c_o_CXX=no
13312   $rm -r conftest 2>/dev/null
13313   mkdir conftest
13314   cd conftest
13315   mkdir out
13316   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13317
13318   lt_compiler_flag="-o out/conftest2.$ac_objext"
13319   # Insert the option either (1) after the last *FLAGS variable, or
13320   # (2) before a word containing "conftest.", or (3) at the end.
13321   # Note that $ac_compile itself does not contain backslashes and begins
13322   # with a dollar sign (not a hyphen), so the echo should work correctly.
13323   lt_compile=`echo "$ac_compile" | $SED \
13324   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13325   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13326   -e 's:$: $lt_compiler_flag:'`
13327   (eval echo "\"\$as_me:13327: $lt_compile\"" >&5)
13328   (eval "$lt_compile" 2>out/conftest.err)
13329   ac_status=$?
13330   cat out/conftest.err >&5
13331   echo "$as_me:13331: \$? = $ac_status" >&5
13332   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13333   then
13334     # The compiler can only warn and ignore the option if not recognized
13335     # So say no if there are warnings
13336     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13337     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13338     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13339       lt_cv_prog_compiler_c_o_CXX=yes
13340     fi
13341   fi
13342   chmod u+w . 2>&5
13343   $rm conftest*
13344   # SGI C++ compiler will create directory out/ii_files/ for
13345   # template instantiation
13346   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13347   $rm out/* && rmdir out
13348   cd ..
13349   rmdir conftest
13350   $rm conftest*
13351
13352fi
13353echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13354echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
13355
13356
13357hard_links="nottested"
13358if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13359  # do not overwrite the value of need_locks provided by the user
13360  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13361echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13362  hard_links=yes
13363  $rm conftest*
13364  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13365  touch conftest.a
13366  ln conftest.a conftest.b 2>&5 || hard_links=no
13367  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13368  echo "$as_me:$LINENO: result: $hard_links" >&5
13369echo "${ECHO_T}$hard_links" >&6
13370  if test "$hard_links" = no; then
13371    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13372echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13373    need_locks=warn
13374  fi
13375else
13376  need_locks=no
13377fi
13378
13379echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13380echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13381
13382  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13383  case $host_os in
13384  aix4* | aix5*)
13385    # If we're using GNU nm, then we don't want the "-C" option.
13386    # -C means demangle to AIX nm, but means don't demangle with GNU nm
13387    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13388      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13389    else
13390      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13391    fi
13392    ;;
13393  pw32*)
13394    export_symbols_cmds_CXX="$ltdll_cmds"
13395  ;;
13396  cygwin* | mingw*)
13397    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13398  ;;
13399  *)
13400    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13401  ;;
13402  esac
13403
13404echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13405echo "${ECHO_T}$ld_shlibs_CXX" >&6
13406test "$ld_shlibs_CXX" = no && can_build_shared=no
13407
13408#
13409# Do we need to explicitly link libc?
13410#
13411case "x$archive_cmds_need_lc_CXX" in
13412x|xyes)
13413  # Assume -lc should be added
13414  archive_cmds_need_lc_CXX=yes
13415
13416  if test "$enable_shared" = yes && test "$GCC" = yes; then
13417    case $archive_cmds_CXX in
13418    *'~'*)
13419      # FIXME: we may have to deal with multi-command sequences.
13420      ;;
13421    '$CC '*)
13422      # Test whether the compiler implicitly links with -lc since on some
13423      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13424      # to ld, don't add -lc before -lgcc.
13425      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13426echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13427      $rm conftest*
13428      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13429
13430      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13431  (eval $ac_compile) 2>&5
13432  ac_status=$?
13433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13434  (exit $ac_status); } 2>conftest.err; then
13435        soname=conftest
13436        lib=conftest
13437        libobjs=conftest.$ac_objext
13438        deplibs=
13439        wl=$lt_prog_compiler_wl_CXX
13440	pic_flag=$lt_prog_compiler_pic_CXX
13441        compiler_flags=-v
13442        linker_flags=-v
13443        verstring=
13444        output_objdir=.
13445        libname=conftest
13446        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13447        allow_undefined_flag_CXX=
13448        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13449  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13450  ac_status=$?
13451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13452  (exit $ac_status); }
13453        then
13454	  archive_cmds_need_lc_CXX=no
13455        else
13456	  archive_cmds_need_lc_CXX=yes
13457        fi
13458        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13459      else
13460        cat conftest.err 1>&5
13461      fi
13462      $rm conftest*
13463      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13464echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
13465      ;;
13466    esac
13467  fi
13468  ;;
13469esac
13470
13471echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13472echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13473library_names_spec=
13474libname_spec='lib$name'
13475soname_spec=
13476shrext_cmds=".so"
13477postinstall_cmds=
13478postuninstall_cmds=
13479finish_cmds=
13480finish_eval=
13481shlibpath_var=
13482shlibpath_overrides_runpath=unknown
13483version_type=none
13484dynamic_linker="$host_os ld.so"
13485sys_lib_dlsearch_path_spec="/lib /usr/lib"
13486if test "$GCC" = yes; then
13487  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13488  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13489    # if the path contains ";" then we assume it to be the separator
13490    # otherwise default to the standard path separator (i.e. ":") - it is
13491    # assumed that no part of a normal pathname contains ";" but that should
13492    # okay in the real world where ";" in dirpaths is itself problematic.
13493    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13494  else
13495    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13496  fi
13497else
13498  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13499fi
13500need_lib_prefix=unknown
13501hardcode_into_libs=no
13502
13503# when you set need_version to no, make sure it does not cause -set_version
13504# flags to be left without arguments
13505need_version=unknown
13506
13507case $host_os in
13508aix3*)
13509  version_type=linux
13510  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13511  shlibpath_var=LIBPATH
13512
13513  # AIX 3 has no versioning support, so we append a major version to the name.
13514  soname_spec='${libname}${release}${shared_ext}$major'
13515  ;;
13516
13517aix4* | aix5*)
13518  version_type=linux
13519  need_lib_prefix=no
13520  need_version=no
13521  hardcode_into_libs=yes
13522  if test "$host_cpu" = ia64; then
13523    # AIX 5 supports IA64
13524    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13525    shlibpath_var=LD_LIBRARY_PATH
13526  else
13527    # With GCC up to 2.95.x, collect2 would create an import file
13528    # for dependence libraries.  The import file would start with
13529    # the line `#! .'.  This would cause the generated library to
13530    # depend on `.', always an invalid library.  This was fixed in
13531    # development snapshots of GCC prior to 3.0.
13532    case $host_os in
13533      aix4 | aix4.[01] | aix4.[01].*)
13534      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13535	   echo ' yes '
13536	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13537	:
13538      else
13539	can_build_shared=no
13540      fi
13541      ;;
13542    esac
13543    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13544    # soname into executable. Probably we can add versioning support to
13545    # collect2, so additional links can be useful in future.
13546    if test "$aix_use_runtimelinking" = yes; then
13547      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13548      # instead of lib<name>.a to let people know that these are not
13549      # typical AIX shared libraries.
13550      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13551    else
13552      # We preserve .a as extension for shared libraries through AIX4.2
13553      # and later when we are not doing run time linking.
13554      library_names_spec='${libname}${release}.a $libname.a'
13555      soname_spec='${libname}${release}${shared_ext}$major'
13556    fi
13557    shlibpath_var=LIBPATH
13558  fi
13559  ;;
13560
13561amigaos*)
13562  library_names_spec='$libname.ixlibrary $libname.a'
13563  # Create ${libname}_ixlibrary.a entries in /sys/libs.
13564  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
13565  ;;
13566
13567beos*)
13568  library_names_spec='${libname}${shared_ext}'
13569  dynamic_linker="$host_os ld.so"
13570  shlibpath_var=LIBRARY_PATH
13571  ;;
13572
13573bsdi[45]*)
13574  version_type=linux
13575  need_version=no
13576  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13577  soname_spec='${libname}${release}${shared_ext}$major'
13578  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13579  shlibpath_var=LD_LIBRARY_PATH
13580  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13581  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13582  # the default ld.so.conf also contains /usr/contrib/lib and
13583  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13584  # libtool to hard-code these into programs
13585  ;;
13586
13587cygwin* | mingw* | pw32*)
13588  version_type=windows
13589  shrext_cmds=".dll"
13590  need_version=no
13591  need_lib_prefix=no
13592
13593  case $GCC,$host_os in
13594  yes,cygwin* | yes,mingw* | yes,pw32*)
13595    library_names_spec='$libname.dll.a'
13596    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13597    postinstall_cmds='base_file=`basename \${file}`~
13598      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13599      dldir=$destdir/`dirname \$dlpath`~
13600      test -d \$dldir || mkdir -p \$dldir~
13601      $install_prog $dir/$dlname \$dldir/$dlname~
13602      chmod a+x \$dldir/$dlname'
13603    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13604      dlpath=$dir/\$dldll~
13605       $rm \$dlpath'
13606    shlibpath_overrides_runpath=yes
13607
13608    case $host_os in
13609    cygwin*)
13610      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13611      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13612      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13613      ;;
13614    mingw*)
13615      # MinGW DLLs use traditional 'lib' prefix
13616      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13617      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13618      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13619        # It is most probably a Windows format PATH printed by
13620        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13621        # path with ; separators, and with drive letters. We can handle the
13622        # drive letters (cygwin fileutils understands them), so leave them,
13623        # especially as we might pass files found there to a mingw objdump,
13624        # which wouldn't understand a cygwinified path. Ahh.
13625        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13626      else
13627        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13628      fi
13629      ;;
13630    pw32*)
13631      # pw32 DLLs use 'pw' prefix rather than 'lib'
13632      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13633      ;;
13634    esac
13635    ;;
13636
13637  *)
13638    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13639    ;;
13640  esac
13641  dynamic_linker='Win32 ld.exe'
13642  # FIXME: first we should search . and the directory the executable is in
13643  shlibpath_var=PATH
13644  ;;
13645
13646darwin* | rhapsody*)
13647  dynamic_linker="$host_os dyld"
13648  version_type=darwin
13649  need_lib_prefix=no
13650  need_version=no
13651  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13652  soname_spec='${libname}${release}${major}$shared_ext'
13653  shlibpath_overrides_runpath=yes
13654  shlibpath_var=DYLD_LIBRARY_PATH
13655  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13656  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13657  if test "$GCC" = yes; then
13658    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
13659  else
13660    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13661  fi
13662  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13663  ;;
13664
13665dgux*)
13666  version_type=linux
13667  need_lib_prefix=no
13668  need_version=no
13669  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13670  soname_spec='${libname}${release}${shared_ext}$major'
13671  shlibpath_var=LD_LIBRARY_PATH
13672  ;;
13673
13674freebsd1*)
13675  dynamic_linker=no
13676  ;;
13677
13678kfreebsd*-gnu)
13679  version_type=linux
13680  need_lib_prefix=no
13681  need_version=no
13682  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13683  soname_spec='${libname}${release}${shared_ext}$major'
13684  shlibpath_var=LD_LIBRARY_PATH
13685  shlibpath_overrides_runpath=no
13686  hardcode_into_libs=yes
13687  dynamic_linker='GNU ld.so'
13688  ;;
13689
13690freebsd* | dragonfly*)
13691  # DragonFly does not have aout.  When/if they implement a new
13692  # versioning mechanism, adjust this.
13693  if test -x /usr/bin/objformat; then
13694    objformat=`/usr/bin/objformat`
13695  else
13696    case $host_os in
13697    freebsd[123]*) objformat=aout ;;
13698    *) objformat=elf ;;
13699    esac
13700  fi
13701  version_type=freebsd-$objformat
13702  case $version_type in
13703    freebsd-elf*)
13704      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13705      need_version=no
13706      need_lib_prefix=no
13707      ;;
13708    freebsd-*)
13709      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13710      need_version=yes
13711      ;;
13712  esac
13713  shlibpath_var=LD_LIBRARY_PATH
13714  case $host_os in
13715  freebsd2*)
13716    shlibpath_overrides_runpath=yes
13717    ;;
13718  freebsd3.[01]* | freebsdelf3.[01]*)
13719    shlibpath_overrides_runpath=yes
13720    hardcode_into_libs=yes
13721    ;;
13722  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13723  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13724    shlibpath_overrides_runpath=no
13725    hardcode_into_libs=yes
13726    ;;
13727  freebsd*) # from 4.6 on
13728    shlibpath_overrides_runpath=yes
13729    hardcode_into_libs=yes
13730    ;;
13731  esac
13732  ;;
13733
13734gnu*)
13735  version_type=linux
13736  need_lib_prefix=no
13737  need_version=no
13738  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13739  soname_spec='${libname}${release}${shared_ext}$major'
13740  shlibpath_var=LD_LIBRARY_PATH
13741  hardcode_into_libs=yes
13742  ;;
13743
13744hpux9* | hpux10* | hpux11*)
13745  # Give a soname corresponding to the major version so that dld.sl refuses to
13746  # link against other versions.
13747  version_type=sunos
13748  need_lib_prefix=no
13749  need_version=no
13750  case $host_cpu in
13751  ia64*)
13752    shrext_cmds='.so'
13753    hardcode_into_libs=yes
13754    dynamic_linker="$host_os dld.so"
13755    shlibpath_var=LD_LIBRARY_PATH
13756    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13757    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13758    soname_spec='${libname}${release}${shared_ext}$major'
13759    if test "X$HPUX_IA64_MODE" = X32; then
13760      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13761    else
13762      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13763    fi
13764    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13765    ;;
13766   hppa*64*)
13767     shrext_cmds='.sl'
13768     hardcode_into_libs=yes
13769     dynamic_linker="$host_os dld.sl"
13770     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13771     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13772     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13773     soname_spec='${libname}${release}${shared_ext}$major'
13774     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13775     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13776     ;;
13777   *)
13778    shrext_cmds='.sl'
13779    dynamic_linker="$host_os dld.sl"
13780    shlibpath_var=SHLIB_PATH
13781    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13782    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13783    soname_spec='${libname}${release}${shared_ext}$major'
13784    ;;
13785  esac
13786  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13787  postinstall_cmds='chmod 555 $lib'
13788  ;;
13789
13790interix3*)
13791  version_type=linux
13792  need_lib_prefix=no
13793  need_version=no
13794  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13795  soname_spec='${libname}${release}${shared_ext}$major'
13796  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13797  shlibpath_var=LD_LIBRARY_PATH
13798  shlibpath_overrides_runpath=no
13799  hardcode_into_libs=yes
13800  ;;
13801
13802irix5* | irix6* | nonstopux*)
13803  case $host_os in
13804    nonstopux*) version_type=nonstopux ;;
13805    *)
13806	if test "$lt_cv_prog_gnu_ld" = yes; then
13807		version_type=linux
13808	else
13809		version_type=irix
13810	fi ;;
13811  esac
13812  need_lib_prefix=no
13813  need_version=no
13814  soname_spec='${libname}${release}${shared_ext}$major'
13815  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13816  case $host_os in
13817  irix5* | nonstopux*)
13818    libsuff= shlibsuff=
13819    ;;
13820  *)
13821    case $LD in # libtool.m4 will add one of these switches to LD
13822    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13823      libsuff= shlibsuff= libmagic=32-bit;;
13824    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13825      libsuff=32 shlibsuff=N32 libmagic=N32;;
13826    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13827      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13828    *) libsuff= shlibsuff= libmagic=never-match;;
13829    esac
13830    ;;
13831  esac
13832  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13833  shlibpath_overrides_runpath=no
13834  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13835  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13836  hardcode_into_libs=yes
13837  ;;
13838
13839# No shared lib support for Linux oldld, aout, or coff.
13840linux*oldld* | linux*aout* | linux*coff*)
13841  dynamic_linker=no
13842  ;;
13843
13844# This must be Linux ELF.
13845linux*)
13846  version_type=linux
13847  need_lib_prefix=no
13848  need_version=no
13849  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13850  soname_spec='${libname}${release}${shared_ext}$major'
13851  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13852  shlibpath_var=LD_LIBRARY_PATH
13853  shlibpath_overrides_runpath=no
13854  # This implies no fast_install, which is unacceptable.
13855  # Some rework will be needed to allow for fast_install
13856  # before this can be enabled.
13857  hardcode_into_libs=yes
13858
13859  # Append ld.so.conf contents to the search path
13860  if test -f /etc/ld.so.conf; then
13861    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13862    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13863  fi
13864
13865  # We used to test for /lib/ld.so.1 and disable shared libraries on
13866  # powerpc, because MkLinux only supported shared libraries with the
13867  # GNU dynamic linker.  Since this was broken with cross compilers,
13868  # most powerpc-linux boxes support dynamic linking these days and
13869  # people can always --disable-shared, the test was removed, and we
13870  # assume the GNU/Linux dynamic linker is in use.
13871  dynamic_linker='GNU/Linux ld.so'
13872  ;;
13873
13874knetbsd*-gnu)
13875  version_type=linux
13876  need_lib_prefix=no
13877  need_version=no
13878  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13879  soname_spec='${libname}${release}${shared_ext}$major'
13880  shlibpath_var=LD_LIBRARY_PATH
13881  shlibpath_overrides_runpath=no
13882  hardcode_into_libs=yes
13883  dynamic_linker='GNU ld.so'
13884  ;;
13885
13886netbsd*)
13887  version_type=sunos
13888  need_lib_prefix=no
13889  need_version=no
13890  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13891    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13892    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13893    dynamic_linker='NetBSD (a.out) ld.so'
13894  else
13895    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13896    soname_spec='${libname}${release}${shared_ext}$major'
13897    dynamic_linker='NetBSD ld.elf_so'
13898  fi
13899  shlibpath_var=LD_LIBRARY_PATH
13900  shlibpath_overrides_runpath=yes
13901  hardcode_into_libs=yes
13902  ;;
13903
13904newsos6)
13905  version_type=linux
13906  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13907  shlibpath_var=LD_LIBRARY_PATH
13908  shlibpath_overrides_runpath=yes
13909  ;;
13910
13911nto-qnx*)
13912  version_type=linux
13913  need_lib_prefix=no
13914  need_version=no
13915  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13916  soname_spec='${libname}${release}${shared_ext}$major'
13917  shlibpath_var=LD_LIBRARY_PATH
13918  shlibpath_overrides_runpath=yes
13919  ;;
13920
13921openbsd*)
13922  version_type=sunos
13923  sys_lib_dlsearch_path_spec="/usr/lib"
13924  need_lib_prefix=no
13925  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13926  case $host_os in
13927    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13928    *)                         need_version=no  ;;
13929  esac
13930  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13931  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13932  shlibpath_var=LD_LIBRARY_PATH
13933  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13934    case $host_os in
13935      openbsd2.[89] | openbsd2.[89].*)
13936	shlibpath_overrides_runpath=no
13937	;;
13938      *)
13939	shlibpath_overrides_runpath=yes
13940	;;
13941      esac
13942  else
13943    shlibpath_overrides_runpath=yes
13944  fi
13945  ;;
13946
13947os2*)
13948  libname_spec='$name'
13949  shrext_cmds=".dll"
13950  need_lib_prefix=no
13951  library_names_spec='$libname${shared_ext} $libname.a'
13952  dynamic_linker='OS/2 ld.exe'
13953  shlibpath_var=LIBPATH
13954  ;;
13955
13956osf3* | osf4* | osf5*)
13957  version_type=osf
13958  need_lib_prefix=no
13959  need_version=no
13960  soname_spec='${libname}${release}${shared_ext}$major'
13961  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13962  shlibpath_var=LD_LIBRARY_PATH
13963  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13964  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13965  ;;
13966
13967solaris*)
13968  version_type=linux
13969  need_lib_prefix=no
13970  need_version=no
13971  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13972  soname_spec='${libname}${release}${shared_ext}$major'
13973  shlibpath_var=LD_LIBRARY_PATH
13974  shlibpath_overrides_runpath=yes
13975  hardcode_into_libs=yes
13976  # ldd complains unless libraries are executable
13977  postinstall_cmds='chmod +x $lib'
13978  ;;
13979
13980sunos4*)
13981  version_type=sunos
13982  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13983  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13984  shlibpath_var=LD_LIBRARY_PATH
13985  shlibpath_overrides_runpath=yes
13986  if test "$with_gnu_ld" = yes; then
13987    need_lib_prefix=no
13988  fi
13989  need_version=yes
13990  ;;
13991
13992sysv4 | sysv4.3*)
13993  version_type=linux
13994  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13995  soname_spec='${libname}${release}${shared_ext}$major'
13996  shlibpath_var=LD_LIBRARY_PATH
13997  case $host_vendor in
13998    sni)
13999      shlibpath_overrides_runpath=no
14000      need_lib_prefix=no
14001      export_dynamic_flag_spec='${wl}-Blargedynsym'
14002      runpath_var=LD_RUN_PATH
14003      ;;
14004    siemens)
14005      need_lib_prefix=no
14006      ;;
14007    motorola)
14008      need_lib_prefix=no
14009      need_version=no
14010      shlibpath_overrides_runpath=no
14011      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14012      ;;
14013  esac
14014  ;;
14015
14016sysv4*MP*)
14017  if test -d /usr/nec ;then
14018    version_type=linux
14019    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14020    soname_spec='$libname${shared_ext}.$major'
14021    shlibpath_var=LD_LIBRARY_PATH
14022  fi
14023  ;;
14024
14025sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14026  version_type=freebsd-elf
14027  need_lib_prefix=no
14028  need_version=no
14029  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14030  soname_spec='${libname}${release}${shared_ext}$major'
14031  shlibpath_var=LD_LIBRARY_PATH
14032  hardcode_into_libs=yes
14033  if test "$with_gnu_ld" = yes; then
14034    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14035    shlibpath_overrides_runpath=no
14036  else
14037    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14038    shlibpath_overrides_runpath=yes
14039    case $host_os in
14040      sco3.2v5*)
14041        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14042	;;
14043    esac
14044  fi
14045  sys_lib_dlsearch_path_spec='/usr/lib'
14046  ;;
14047
14048uts4*)
14049  version_type=linux
14050  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14051  soname_spec='${libname}${release}${shared_ext}$major'
14052  shlibpath_var=LD_LIBRARY_PATH
14053  ;;
14054
14055*)
14056  dynamic_linker=no
14057  ;;
14058esac
14059echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14060echo "${ECHO_T}$dynamic_linker" >&6
14061test "$dynamic_linker" = no && can_build_shared=no
14062
14063variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14064if test "$GCC" = yes; then
14065  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14066fi
14067
14068echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14069echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14070hardcode_action_CXX=
14071if test -n "$hardcode_libdir_flag_spec_CXX" || \
14072   test -n "$runpath_var_CXX" || \
14073   test "X$hardcode_automatic_CXX" = "Xyes" ; then
14074
14075  # We can hardcode non-existant directories.
14076  if test "$hardcode_direct_CXX" != no &&
14077     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14078     # have to relink, otherwise we might link with an installed library
14079     # when we should be linking with a yet-to-be-installed one
14080     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14081     test "$hardcode_minus_L_CXX" != no; then
14082    # Linking always hardcodes the temporary library directory.
14083    hardcode_action_CXX=relink
14084  else
14085    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14086    hardcode_action_CXX=immediate
14087  fi
14088else
14089  # We cannot hardcode anything, or else we can only hardcode existing
14090  # directories.
14091  hardcode_action_CXX=unsupported
14092fi
14093echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14094echo "${ECHO_T}$hardcode_action_CXX" >&6
14095
14096if test "$hardcode_action_CXX" = relink; then
14097  # Fast installation is not supported
14098  enable_fast_install=no
14099elif test "$shlibpath_overrides_runpath" = yes ||
14100     test "$enable_shared" = no; then
14101  # Fast installation is not necessary
14102  enable_fast_install=needless
14103fi
14104
14105
14106# The else clause should only fire when bootstrapping the
14107# libtool distribution, otherwise you forgot to ship ltmain.sh
14108# with your package, and you will get complaints that there are
14109# no rules to generate ltmain.sh.
14110if test -f "$ltmain"; then
14111  # See if we are running on zsh, and set the options which allow our commands through
14112  # without removal of \ escapes.
14113  if test -n "${ZSH_VERSION+set}" ; then
14114    setopt NO_GLOB_SUBST
14115  fi
14116  # Now quote all the things that may contain metacharacters while being
14117  # careful not to overquote the AC_SUBSTed values.  We take copies of the
14118  # variables and quote the copies for generation of the libtool script.
14119  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14120    SED SHELL STRIP \
14121    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14122    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14123    deplibs_check_method reload_flag reload_cmds need_locks \
14124    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14125    lt_cv_sys_global_symbol_to_c_name_address \
14126    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14127    old_postinstall_cmds old_postuninstall_cmds \
14128    compiler_CXX \
14129    CC_CXX \
14130    LD_CXX \
14131    lt_prog_compiler_wl_CXX \
14132    lt_prog_compiler_pic_CXX \
14133    lt_prog_compiler_static_CXX \
14134    lt_prog_compiler_no_builtin_flag_CXX \
14135    export_dynamic_flag_spec_CXX \
14136    thread_safe_flag_spec_CXX \
14137    whole_archive_flag_spec_CXX \
14138    enable_shared_with_static_runtimes_CXX \
14139    old_archive_cmds_CXX \
14140    old_archive_from_new_cmds_CXX \
14141    predep_objects_CXX \
14142    postdep_objects_CXX \
14143    predeps_CXX \
14144    postdeps_CXX \
14145    compiler_lib_search_path_CXX \
14146    archive_cmds_CXX \
14147    archive_expsym_cmds_CXX \
14148    postinstall_cmds_CXX \
14149    postuninstall_cmds_CXX \
14150    old_archive_from_expsyms_cmds_CXX \
14151    allow_undefined_flag_CXX \
14152    no_undefined_flag_CXX \
14153    export_symbols_cmds_CXX \
14154    hardcode_libdir_flag_spec_CXX \
14155    hardcode_libdir_flag_spec_ld_CXX \
14156    hardcode_libdir_separator_CXX \
14157    hardcode_automatic_CXX \
14158    module_cmds_CXX \
14159    module_expsym_cmds_CXX \
14160    lt_cv_prog_compiler_c_o_CXX \
14161    exclude_expsyms_CXX \
14162    include_expsyms_CXX; do
14163
14164    case $var in
14165    old_archive_cmds_CXX | \
14166    old_archive_from_new_cmds_CXX | \
14167    archive_cmds_CXX | \
14168    archive_expsym_cmds_CXX | \
14169    module_cmds_CXX | \
14170    module_expsym_cmds_CXX | \
14171    old_archive_from_expsyms_cmds_CXX | \
14172    export_symbols_cmds_CXX | \
14173    extract_expsyms_cmds | reload_cmds | finish_cmds | \
14174    postinstall_cmds | postuninstall_cmds | \
14175    old_postinstall_cmds | old_postuninstall_cmds | \
14176    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14177      # Double-quote double-evaled strings.
14178      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14179      ;;
14180    *)
14181      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14182      ;;
14183    esac
14184  done
14185
14186  case $lt_echo in
14187  *'\$0 --fallback-echo"')
14188    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14189    ;;
14190  esac
14191
14192cfgfile="$ofile"
14193
14194  cat <<__EOF__ >> "$cfgfile"
14195# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14196
14197# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14198
14199# Shell to use when invoking shell scripts.
14200SHELL=$lt_SHELL
14201
14202# Whether or not to build shared libraries.
14203build_libtool_libs=$enable_shared
14204
14205# Whether or not to build static libraries.
14206build_old_libs=$enable_static
14207
14208# Whether or not to add -lc for building shared libraries.
14209build_libtool_need_lc=$archive_cmds_need_lc_CXX
14210
14211# Whether or not to disallow shared libs when runtime libs are static
14212allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14213
14214# Whether or not to optimize for fast installation.
14215fast_install=$enable_fast_install
14216
14217# The host system.
14218host_alias=$host_alias
14219host=$host
14220host_os=$host_os
14221
14222# The build system.
14223build_alias=$build_alias
14224build=$build
14225build_os=$build_os
14226
14227# An echo program that does not interpret backslashes.
14228echo=$lt_echo
14229
14230# The archiver.
14231AR=$lt_AR
14232AR_FLAGS=$lt_AR_FLAGS
14233
14234# A C compiler.
14235LTCC=$lt_LTCC
14236
14237# LTCC compiler flags.
14238LTCFLAGS=$lt_LTCFLAGS
14239
14240# A language-specific compiler.
14241CC=$lt_compiler_CXX
14242
14243# Is the compiler the GNU C compiler?
14244with_gcc=$GCC_CXX
14245
14246# An ERE matcher.
14247EGREP=$lt_EGREP
14248
14249# The linker used to build libraries.
14250LD=$lt_LD_CXX
14251
14252# Whether we need hard or soft links.
14253LN_S=$lt_LN_S
14254
14255# A BSD-compatible nm program.
14256NM=$lt_NM
14257
14258# A symbol stripping program
14259STRIP=$lt_STRIP
14260
14261# Used to examine libraries when file_magic_cmd begins "file"
14262MAGIC_CMD=$MAGIC_CMD
14263
14264# Used on cygwin: DLL creation program.
14265DLLTOOL="$DLLTOOL"
14266
14267# Used on cygwin: object dumper.
14268OBJDUMP="$OBJDUMP"
14269
14270# Used on cygwin: assembler.
14271AS="$AS"
14272
14273# The name of the directory that contains temporary libtool files.
14274objdir=$objdir
14275
14276# How to create reloadable object files.
14277reload_flag=$lt_reload_flag
14278reload_cmds=$lt_reload_cmds
14279
14280# How to pass a linker flag through the compiler.
14281wl=$lt_lt_prog_compiler_wl_CXX
14282
14283# Object file suffix (normally "o").
14284objext="$ac_objext"
14285
14286# Old archive suffix (normally "a").
14287libext="$libext"
14288
14289# Shared library suffix (normally ".so").
14290shrext_cmds='$shrext_cmds'
14291
14292# Executable file suffix (normally "").
14293exeext="$exeext"
14294
14295# Additional compiler flags for building library objects.
14296pic_flag=$lt_lt_prog_compiler_pic_CXX
14297pic_mode=$pic_mode
14298
14299# What is the maximum length of a command?
14300max_cmd_len=$lt_cv_sys_max_cmd_len
14301
14302# Does compiler simultaneously support -c and -o options?
14303compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14304
14305# Must we lock files when doing compilation?
14306need_locks=$lt_need_locks
14307
14308# Do we need the lib prefix for modules?
14309need_lib_prefix=$need_lib_prefix
14310
14311# Do we need a version for libraries?
14312need_version=$need_version
14313
14314# Whether dlopen is supported.
14315dlopen_support=$enable_dlopen
14316
14317# Whether dlopen of programs is supported.
14318dlopen_self=$enable_dlopen_self
14319
14320# Whether dlopen of statically linked programs is supported.
14321dlopen_self_static=$enable_dlopen_self_static
14322
14323# Compiler flag to prevent dynamic linking.
14324link_static_flag=$lt_lt_prog_compiler_static_CXX
14325
14326# Compiler flag to turn off builtin functions.
14327no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14328
14329# Compiler flag to allow reflexive dlopens.
14330export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14331
14332# Compiler flag to generate shared objects directly from archives.
14333whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14334
14335# Compiler flag to generate thread-safe objects.
14336thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14337
14338# Library versioning type.
14339version_type=$version_type
14340
14341# Format of library name prefix.
14342libname_spec=$lt_libname_spec
14343
14344# List of archive names.  First name is the real one, the rest are links.
14345# The last name is the one that the linker finds with -lNAME.
14346library_names_spec=$lt_library_names_spec
14347
14348# The coded name of the library, if different from the real name.
14349soname_spec=$lt_soname_spec
14350
14351# Commands used to build and install an old-style archive.
14352RANLIB=$lt_RANLIB
14353old_archive_cmds=$lt_old_archive_cmds_CXX
14354old_postinstall_cmds=$lt_old_postinstall_cmds
14355old_postuninstall_cmds=$lt_old_postuninstall_cmds
14356
14357# Create an old-style archive from a shared archive.
14358old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14359
14360# Create a temporary old-style archive to link instead of a shared archive.
14361old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14362
14363# Commands used to build and install a shared archive.
14364archive_cmds=$lt_archive_cmds_CXX
14365archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14366postinstall_cmds=$lt_postinstall_cmds
14367postuninstall_cmds=$lt_postuninstall_cmds
14368
14369# Commands used to build a loadable module (assumed same as above if empty)
14370module_cmds=$lt_module_cmds_CXX
14371module_expsym_cmds=$lt_module_expsym_cmds_CXX
14372
14373# Commands to strip libraries.
14374old_striplib=$lt_old_striplib
14375striplib=$lt_striplib
14376
14377# Dependencies to place before the objects being linked to create a
14378# shared library.
14379predep_objects=$lt_predep_objects_CXX
14380
14381# Dependencies to place after the objects being linked to create a
14382# shared library.
14383postdep_objects=$lt_postdep_objects_CXX
14384
14385# Dependencies to place before the objects being linked to create a
14386# shared library.
14387predeps=$lt_predeps_CXX
14388
14389# Dependencies to place after the objects being linked to create a
14390# shared library.
14391postdeps=$lt_postdeps_CXX
14392
14393# The library search path used internally by the compiler when linking
14394# a shared library.
14395compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14396
14397# Method to check whether dependent libraries are shared objects.
14398deplibs_check_method=$lt_deplibs_check_method
14399
14400# Command to use when deplibs_check_method == file_magic.
14401file_magic_cmd=$lt_file_magic_cmd
14402
14403# Flag that allows shared libraries with undefined symbols to be built.
14404allow_undefined_flag=$lt_allow_undefined_flag_CXX
14405
14406# Flag that forces no undefined symbols.
14407no_undefined_flag=$lt_no_undefined_flag_CXX
14408
14409# Commands used to finish a libtool library installation in a directory.
14410finish_cmds=$lt_finish_cmds
14411
14412# Same as above, but a single script fragment to be evaled but not shown.
14413finish_eval=$lt_finish_eval
14414
14415# Take the output of nm and produce a listing of raw symbols and C names.
14416global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14417
14418# Transform the output of nm in a proper C declaration
14419global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14420
14421# Transform the output of nm in a C name address pair
14422global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14423
14424# This is the shared library runtime path variable.
14425runpath_var=$runpath_var
14426
14427# This is the shared library path variable.
14428shlibpath_var=$shlibpath_var
14429
14430# Is shlibpath searched before the hard-coded library search path?
14431shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14432
14433# How to hardcode a shared library path into an executable.
14434hardcode_action=$hardcode_action_CXX
14435
14436# Whether we should hardcode library paths into libraries.
14437hardcode_into_libs=$hardcode_into_libs
14438
14439# Flag to hardcode \$libdir into a binary during linking.
14440# This must work even if \$libdir does not exist.
14441hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14442
14443# If ld is used when linking, flag to hardcode \$libdir into
14444# a binary during linking. This must work even if \$libdir does
14445# not exist.
14446hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14447
14448# Whether we need a single -rpath flag with a separated argument.
14449hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14450
14451# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14452# resulting binary.
14453hardcode_direct=$hardcode_direct_CXX
14454
14455# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14456# resulting binary.
14457hardcode_minus_L=$hardcode_minus_L_CXX
14458
14459# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14460# the resulting binary.
14461hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14462
14463# Set to yes if building a shared library automatically hardcodes DIR into the library
14464# and all subsequent libraries and executables linked against it.
14465hardcode_automatic=$hardcode_automatic_CXX
14466
14467# Variables whose values should be saved in libtool wrapper scripts and
14468# restored at relink time.
14469variables_saved_for_relink="$variables_saved_for_relink"
14470
14471# Whether libtool must link a program against all its dependency libraries.
14472link_all_deplibs=$link_all_deplibs_CXX
14473
14474# Compile-time system search path for libraries
14475sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14476
14477# Run-time system search path for libraries
14478sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14479
14480# Fix the shell variable \$srcfile for the compiler.
14481fix_srcfile_path="$fix_srcfile_path_CXX"
14482
14483# Set to yes if exported symbols are required.
14484always_export_symbols=$always_export_symbols_CXX
14485
14486# The commands to list exported symbols.
14487export_symbols_cmds=$lt_export_symbols_cmds_CXX
14488
14489# The commands to extract the exported symbol list from a shared archive.
14490extract_expsyms_cmds=$lt_extract_expsyms_cmds
14491
14492# Symbols that should not be listed in the preloaded symbols.
14493exclude_expsyms=$lt_exclude_expsyms_CXX
14494
14495# Symbols that must always be exported.
14496include_expsyms=$lt_include_expsyms_CXX
14497
14498# ### END LIBTOOL TAG CONFIG: $tagname
14499
14500__EOF__
14501
14502
14503else
14504  # If there is no Makefile yet, we rely on a make rule to execute
14505  # `config.status --recheck' to rerun these tests and create the
14506  # libtool script then.
14507  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14508  if test -f "$ltmain_in"; then
14509    test -f Makefile && make "$ltmain"
14510  fi
14511fi
14512
14513
14514ac_ext=c
14515ac_cpp='$CPP $CPPFLAGS'
14516ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14517ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14518ac_compiler_gnu=$ac_cv_c_compiler_gnu
14519
14520CC=$lt_save_CC
14521LDCXX=$LD
14522LD=$lt_save_LD
14523GCC=$lt_save_GCC
14524with_gnu_ldcxx=$with_gnu_ld
14525with_gnu_ld=$lt_save_with_gnu_ld
14526lt_cv_path_LDCXX=$lt_cv_path_LD
14527lt_cv_path_LD=$lt_save_path_LD
14528lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14529lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14530
14531	else
14532	  tagname=""
14533	fi
14534	;;
14535
14536      F77)
14537	if test -n "$F77" && test "X$F77" != "Xno"; then
14538
14539ac_ext=f
14540ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14541ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14542ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14543
14544
14545archive_cmds_need_lc_F77=no
14546allow_undefined_flag_F77=
14547always_export_symbols_F77=no
14548archive_expsym_cmds_F77=
14549export_dynamic_flag_spec_F77=
14550hardcode_direct_F77=no
14551hardcode_libdir_flag_spec_F77=
14552hardcode_libdir_flag_spec_ld_F77=
14553hardcode_libdir_separator_F77=
14554hardcode_minus_L_F77=no
14555hardcode_automatic_F77=no
14556module_cmds_F77=
14557module_expsym_cmds_F77=
14558link_all_deplibs_F77=unknown
14559old_archive_cmds_F77=$old_archive_cmds
14560no_undefined_flag_F77=
14561whole_archive_flag_spec_F77=
14562enable_shared_with_static_runtimes_F77=no
14563
14564# Source file extension for f77 test sources.
14565ac_ext=f
14566
14567# Object file extension for compiled f77 test sources.
14568objext=o
14569objext_F77=$objext
14570
14571# Code to be used in simple compile tests
14572lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
14573
14574# Code to be used in simple link tests
14575lt_simple_link_test_code="      program t\n      end\n"
14576
14577# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14578
14579# If no C compiler was specified, use CC.
14580LTCC=${LTCC-"$CC"}
14581
14582# If no C compiler flags were specified, use CFLAGS.
14583LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14584
14585# Allow CC to be a program name with arguments.
14586compiler=$CC
14587
14588
14589# save warnings/boilerplate of simple test code
14590ac_outfile=conftest.$ac_objext
14591printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14592eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14593_lt_compiler_boilerplate=`cat conftest.err`
14594$rm conftest*
14595
14596ac_outfile=conftest.$ac_objext
14597printf "$lt_simple_link_test_code" >conftest.$ac_ext
14598eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14599_lt_linker_boilerplate=`cat conftest.err`
14600$rm conftest*
14601
14602
14603# Allow CC to be a program name with arguments.
14604lt_save_CC="$CC"
14605CC=${F77-"f77"}
14606compiler=$CC
14607compiler_F77=$CC
14608for cc_temp in $compiler""; do
14609  case $cc_temp in
14610    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14611    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14612    \-*) ;;
14613    *) break;;
14614  esac
14615done
14616cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14617
14618
14619echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14620echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14621echo "$as_me:$LINENO: result: $can_build_shared" >&5
14622echo "${ECHO_T}$can_build_shared" >&6
14623
14624echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14625echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14626test "$can_build_shared" = "no" && enable_shared=no
14627
14628# On AIX, shared libraries and static libraries use the same namespace, and
14629# are all built from PIC.
14630case $host_os in
14631aix3*)
14632  test "$enable_shared" = yes && enable_static=no
14633  if test -n "$RANLIB"; then
14634    archive_cmds="$archive_cmds~\$RANLIB \$lib"
14635    postinstall_cmds='$RANLIB $lib'
14636  fi
14637  ;;
14638aix4* | aix5*)
14639  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14640    test "$enable_shared" = yes && enable_static=no
14641  fi
14642  ;;
14643esac
14644echo "$as_me:$LINENO: result: $enable_shared" >&5
14645echo "${ECHO_T}$enable_shared" >&6
14646
14647echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14648echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14649# Make sure either enable_shared or enable_static is yes.
14650test "$enable_shared" = yes || enable_static=yes
14651echo "$as_me:$LINENO: result: $enable_static" >&5
14652echo "${ECHO_T}$enable_static" >&6
14653
14654GCC_F77="$G77"
14655LD_F77="$LD"
14656
14657lt_prog_compiler_wl_F77=
14658lt_prog_compiler_pic_F77=
14659lt_prog_compiler_static_F77=
14660
14661echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14662echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14663
14664  if test "$GCC" = yes; then
14665    lt_prog_compiler_wl_F77='-Wl,'
14666    lt_prog_compiler_static_F77='-static'
14667
14668    case $host_os in
14669      aix*)
14670      # All AIX code is PIC.
14671      if test "$host_cpu" = ia64; then
14672	# AIX 5 now supports IA64 processor
14673	lt_prog_compiler_static_F77='-Bstatic'
14674      fi
14675      ;;
14676
14677    amigaos*)
14678      # FIXME: we need at least 68020 code to build shared libraries, but
14679      # adding the `-m68020' flag to GCC prevents building anything better,
14680      # like `-m68040'.
14681      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14682      ;;
14683
14684    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14685      # PIC is the default for these OSes.
14686      ;;
14687
14688    mingw* | pw32* | os2*)
14689      # This hack is so that the source file can tell whether it is being
14690      # built for inclusion in a dll (and should export symbols for example).
14691      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14692      ;;
14693
14694    darwin* | rhapsody*)
14695      # PIC is the default on this platform
14696      # Common symbols not allowed in MH_DYLIB files
14697      lt_prog_compiler_pic_F77='-fno-common'
14698      ;;
14699
14700    interix3*)
14701      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14702      # Instead, we relocate shared libraries at runtime.
14703      ;;
14704
14705    msdosdjgpp*)
14706      # Just because we use GCC doesn't mean we suddenly get shared libraries
14707      # on systems that don't support them.
14708      lt_prog_compiler_can_build_shared_F77=no
14709      enable_shared=no
14710      ;;
14711
14712    sysv4*MP*)
14713      if test -d /usr/nec; then
14714	lt_prog_compiler_pic_F77=-Kconform_pic
14715      fi
14716      ;;
14717
14718    hpux*)
14719      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14720      # not for PA HP-UX.
14721      case $host_cpu in
14722      hppa*64*|ia64*)
14723	# +Z the default
14724	;;
14725      *)
14726	lt_prog_compiler_pic_F77='-fPIC'
14727	;;
14728      esac
14729      ;;
14730
14731    *)
14732      lt_prog_compiler_pic_F77='-fPIC'
14733      ;;
14734    esac
14735  else
14736    # PORTME Check for flag to pass linker flags through the system compiler.
14737    case $host_os in
14738    aix*)
14739      lt_prog_compiler_wl_F77='-Wl,'
14740      if test "$host_cpu" = ia64; then
14741	# AIX 5 now supports IA64 processor
14742	lt_prog_compiler_static_F77='-Bstatic'
14743      else
14744	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14745      fi
14746      ;;
14747      darwin*)
14748        # PIC is the default on this platform
14749        # Common symbols not allowed in MH_DYLIB files
14750       case $cc_basename in
14751         xlc*)
14752         lt_prog_compiler_pic_F77='-qnocommon'
14753         lt_prog_compiler_wl_F77='-Wl,'
14754         ;;
14755       esac
14756       ;;
14757
14758    mingw* | pw32* | os2*)
14759      # This hack is so that the source file can tell whether it is being
14760      # built for inclusion in a dll (and should export symbols for example).
14761      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14762      ;;
14763
14764    hpux9* | hpux10* | hpux11*)
14765      lt_prog_compiler_wl_F77='-Wl,'
14766      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14767      # not for PA HP-UX.
14768      case $host_cpu in
14769      hppa*64*|ia64*)
14770	# +Z the default
14771	;;
14772      *)
14773	lt_prog_compiler_pic_F77='+Z'
14774	;;
14775      esac
14776      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14777      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14778      ;;
14779
14780    irix5* | irix6* | nonstopux*)
14781      lt_prog_compiler_wl_F77='-Wl,'
14782      # PIC (with -KPIC) is the default.
14783      lt_prog_compiler_static_F77='-non_shared'
14784      ;;
14785
14786    newsos6)
14787      lt_prog_compiler_pic_F77='-KPIC'
14788      lt_prog_compiler_static_F77='-Bstatic'
14789      ;;
14790
14791    linux*)
14792      case $cc_basename in
14793      icc* | ecc*)
14794	lt_prog_compiler_wl_F77='-Wl,'
14795	lt_prog_compiler_pic_F77='-KPIC'
14796	lt_prog_compiler_static_F77='-static'
14797        ;;
14798      pgcc* | pgf77* | pgf90* | pgf95*)
14799        # Portland Group compilers (*not* the Pentium gcc compiler,
14800	# which looks to be a dead project)
14801	lt_prog_compiler_wl_F77='-Wl,'
14802	lt_prog_compiler_pic_F77='-fpic'
14803	lt_prog_compiler_static_F77='-Bstatic'
14804        ;;
14805      ccc*)
14806        lt_prog_compiler_wl_F77='-Wl,'
14807        # All Alpha code is PIC.
14808        lt_prog_compiler_static_F77='-non_shared'
14809        ;;
14810      esac
14811      ;;
14812
14813    osf3* | osf4* | osf5*)
14814      lt_prog_compiler_wl_F77='-Wl,'
14815      # All OSF/1 code is PIC.
14816      lt_prog_compiler_static_F77='-non_shared'
14817      ;;
14818
14819    solaris*)
14820      lt_prog_compiler_pic_F77='-KPIC'
14821      lt_prog_compiler_static_F77='-Bstatic'
14822      case $cc_basename in
14823      f77* | f90* | f95*)
14824	lt_prog_compiler_wl_F77='-Qoption ld ';;
14825      *)
14826	lt_prog_compiler_wl_F77='-Wl,';;
14827      esac
14828      ;;
14829
14830    sunos4*)
14831      lt_prog_compiler_wl_F77='-Qoption ld '
14832      lt_prog_compiler_pic_F77='-PIC'
14833      lt_prog_compiler_static_F77='-Bstatic'
14834      ;;
14835
14836    sysv4 | sysv4.2uw2* | sysv4.3*)
14837      lt_prog_compiler_wl_F77='-Wl,'
14838      lt_prog_compiler_pic_F77='-KPIC'
14839      lt_prog_compiler_static_F77='-Bstatic'
14840      ;;
14841
14842    sysv4*MP*)
14843      if test -d /usr/nec ;then
14844	lt_prog_compiler_pic_F77='-Kconform_pic'
14845	lt_prog_compiler_static_F77='-Bstatic'
14846      fi
14847      ;;
14848
14849    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14850      lt_prog_compiler_wl_F77='-Wl,'
14851      lt_prog_compiler_pic_F77='-KPIC'
14852      lt_prog_compiler_static_F77='-Bstatic'
14853      ;;
14854
14855    unicos*)
14856      lt_prog_compiler_wl_F77='-Wl,'
14857      lt_prog_compiler_can_build_shared_F77=no
14858      ;;
14859
14860    uts4*)
14861      lt_prog_compiler_pic_F77='-pic'
14862      lt_prog_compiler_static_F77='-Bstatic'
14863      ;;
14864
14865    *)
14866      lt_prog_compiler_can_build_shared_F77=no
14867      ;;
14868    esac
14869  fi
14870
14871echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14872echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14873
14874#
14875# Check to make sure the PIC flag actually works.
14876#
14877if test -n "$lt_prog_compiler_pic_F77"; then
14878
14879echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14880echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14881if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14882  echo $ECHO_N "(cached) $ECHO_C" >&6
14883else
14884  lt_prog_compiler_pic_works_F77=no
14885  ac_outfile=conftest.$ac_objext
14886   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14887   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14888   # Insert the option either (1) after the last *FLAGS variable, or
14889   # (2) before a word containing "conftest.", or (3) at the end.
14890   # Note that $ac_compile itself does not contain backslashes and begins
14891   # with a dollar sign (not a hyphen), so the echo should work correctly.
14892   # The option is referenced via a variable to avoid confusing sed.
14893   lt_compile=`echo "$ac_compile" | $SED \
14894   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14895   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14896   -e 's:$: $lt_compiler_flag:'`
14897   (eval echo "\"\$as_me:14897: $lt_compile\"" >&5)
14898   (eval "$lt_compile" 2>conftest.err)
14899   ac_status=$?
14900   cat conftest.err >&5
14901   echo "$as_me:14901: \$? = $ac_status" >&5
14902   if (exit $ac_status) && test -s "$ac_outfile"; then
14903     # The compiler can only warn and ignore the option if not recognized
14904     # So say no if there are warnings other than the usual output.
14905     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14906     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14907     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14908       lt_prog_compiler_pic_works_F77=yes
14909     fi
14910   fi
14911   $rm conftest*
14912
14913fi
14914echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14915echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14916
14917if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14918    case $lt_prog_compiler_pic_F77 in
14919     "" | " "*) ;;
14920     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14921     esac
14922else
14923    lt_prog_compiler_pic_F77=
14924     lt_prog_compiler_can_build_shared_F77=no
14925fi
14926
14927fi
14928case $host_os in
14929  # For platforms which do not support PIC, -DPIC is meaningless:
14930  *djgpp*)
14931    lt_prog_compiler_pic_F77=
14932    ;;
14933  *)
14934    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14935    ;;
14936esac
14937
14938#
14939# Check to make sure the static flag actually works.
14940#
14941wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14942echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14943echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
14944if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14945  echo $ECHO_N "(cached) $ECHO_C" >&6
14946else
14947  lt_prog_compiler_static_works_F77=no
14948   save_LDFLAGS="$LDFLAGS"
14949   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14950   printf "$lt_simple_link_test_code" > conftest.$ac_ext
14951   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14952     # The linker can only warn and ignore the option if not recognized
14953     # So say no if there are warnings
14954     if test -s conftest.err; then
14955       # Append any errors to the config.log.
14956       cat conftest.err 1>&5
14957       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14958       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14959       if diff conftest.exp conftest.er2 >/dev/null; then
14960         lt_prog_compiler_static_works_F77=yes
14961       fi
14962     else
14963       lt_prog_compiler_static_works_F77=yes
14964     fi
14965   fi
14966   $rm conftest*
14967   LDFLAGS="$save_LDFLAGS"
14968
14969fi
14970echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14971echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
14972
14973if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14974    :
14975else
14976    lt_prog_compiler_static_F77=
14977fi
14978
14979
14980echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14981echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14982if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14983  echo $ECHO_N "(cached) $ECHO_C" >&6
14984else
14985  lt_cv_prog_compiler_c_o_F77=no
14986   $rm -r conftest 2>/dev/null
14987   mkdir conftest
14988   cd conftest
14989   mkdir out
14990   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14991
14992   lt_compiler_flag="-o out/conftest2.$ac_objext"
14993   # Insert the option either (1) after the last *FLAGS variable, or
14994   # (2) before a word containing "conftest.", or (3) at the end.
14995   # Note that $ac_compile itself does not contain backslashes and begins
14996   # with a dollar sign (not a hyphen), so the echo should work correctly.
14997   lt_compile=`echo "$ac_compile" | $SED \
14998   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14999   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15000   -e 's:$: $lt_compiler_flag:'`
15001   (eval echo "\"\$as_me:15001: $lt_compile\"" >&5)
15002   (eval "$lt_compile" 2>out/conftest.err)
15003   ac_status=$?
15004   cat out/conftest.err >&5
15005   echo "$as_me:15005: \$? = $ac_status" >&5
15006   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15007   then
15008     # The compiler can only warn and ignore the option if not recognized
15009     # So say no if there are warnings
15010     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15011     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15012     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15013       lt_cv_prog_compiler_c_o_F77=yes
15014     fi
15015   fi
15016   chmod u+w . 2>&5
15017   $rm conftest*
15018   # SGI C++ compiler will create directory out/ii_files/ for
15019   # template instantiation
15020   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15021   $rm out/* && rmdir out
15022   cd ..
15023   rmdir conftest
15024   $rm conftest*
15025
15026fi
15027echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15028echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
15029
15030
15031hard_links="nottested"
15032if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15033  # do not overwrite the value of need_locks provided by the user
15034  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15035echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15036  hard_links=yes
15037  $rm conftest*
15038  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15039  touch conftest.a
15040  ln conftest.a conftest.b 2>&5 || hard_links=no
15041  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15042  echo "$as_me:$LINENO: result: $hard_links" >&5
15043echo "${ECHO_T}$hard_links" >&6
15044  if test "$hard_links" = no; then
15045    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15046echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15047    need_locks=warn
15048  fi
15049else
15050  need_locks=no
15051fi
15052
15053echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15054echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15055
15056  runpath_var=
15057  allow_undefined_flag_F77=
15058  enable_shared_with_static_runtimes_F77=no
15059  archive_cmds_F77=
15060  archive_expsym_cmds_F77=
15061  old_archive_From_new_cmds_F77=
15062  old_archive_from_expsyms_cmds_F77=
15063  export_dynamic_flag_spec_F77=
15064  whole_archive_flag_spec_F77=
15065  thread_safe_flag_spec_F77=
15066  hardcode_libdir_flag_spec_F77=
15067  hardcode_libdir_flag_spec_ld_F77=
15068  hardcode_libdir_separator_F77=
15069  hardcode_direct_F77=no
15070  hardcode_minus_L_F77=no
15071  hardcode_shlibpath_var_F77=unsupported
15072  link_all_deplibs_F77=unknown
15073  hardcode_automatic_F77=no
15074  module_cmds_F77=
15075  module_expsym_cmds_F77=
15076  always_export_symbols_F77=no
15077  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15078  # include_expsyms should be a list of space-separated symbols to be *always*
15079  # included in the symbol list
15080  include_expsyms_F77=
15081  # exclude_expsyms can be an extended regexp of symbols to exclude
15082  # it will be wrapped by ` (' and `)$', so one must not match beginning or
15083  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15084  # as well as any symbol that contains `d'.
15085  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15086  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15087  # platforms (ab)use it in PIC code, but their linkers get confused if
15088  # the symbol is explicitly referenced.  Since portable code cannot
15089  # rely on this symbol name, it's probably fine to never include it in
15090  # preloaded symbol tables.
15091  extract_expsyms_cmds=
15092  # Just being paranoid about ensuring that cc_basename is set.
15093  for cc_temp in $compiler""; do
15094  case $cc_temp in
15095    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15096    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15097    \-*) ;;
15098    *) break;;
15099  esac
15100done
15101cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15102
15103  case $host_os in
15104  cygwin* | mingw* | pw32*)
15105    # FIXME: the MSVC++ port hasn't been tested in a loooong time
15106    # When not using gcc, we currently assume that we are using
15107    # Microsoft Visual C++.
15108    if test "$GCC" != yes; then
15109      with_gnu_ld=no
15110    fi
15111    ;;
15112  interix*)
15113    # we just hope/assume this is gcc and not c89 (= MSVC++)
15114    with_gnu_ld=yes
15115    ;;
15116  openbsd*)
15117    with_gnu_ld=no
15118    ;;
15119  esac
15120
15121  ld_shlibs_F77=yes
15122  if test "$with_gnu_ld" = yes; then
15123    # If archive_cmds runs LD, not CC, wlarc should be empty
15124    wlarc='${wl}'
15125
15126    # Set some defaults for GNU ld with shared library support. These
15127    # are reset later if shared libraries are not supported. Putting them
15128    # here allows them to be overridden if necessary.
15129    runpath_var=LD_RUN_PATH
15130    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15131    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15132    # ancient GNU ld didn't support --whole-archive et. al.
15133    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15134	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15135      else
15136  	whole_archive_flag_spec_F77=
15137    fi
15138    supports_anon_versioning=no
15139    case `$LD -v 2>/dev/null` in
15140      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15141      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15142      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15143      *\ 2.11.*) ;; # other 2.11 versions
15144      *) supports_anon_versioning=yes ;;
15145    esac
15146
15147    # See if GNU ld supports shared libraries.
15148    case $host_os in
15149    aix3* | aix4* | aix5*)
15150      # On AIX/PPC, the GNU linker is very broken
15151      if test "$host_cpu" != ia64; then
15152	ld_shlibs_F77=no
15153	cat <<EOF 1>&2
15154
15155*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15156*** to be unable to reliably create shared libraries on AIX.
15157*** Therefore, libtool is disabling shared libraries support.  If you
15158*** really care for shared libraries, you may want to modify your PATH
15159*** so that a non-GNU linker is found, and then restart.
15160
15161EOF
15162      fi
15163      ;;
15164
15165    amigaos*)
15166      archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15167      hardcode_libdir_flag_spec_F77='-L$libdir'
15168      hardcode_minus_L_F77=yes
15169
15170      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15171      # that the semantics of dynamic libraries on AmigaOS, at least up
15172      # to version 4, is to share data among multiple programs linked
15173      # with the same dynamic library.  Since this doesn't match the
15174      # behavior of shared libraries on other platforms, we can't use
15175      # them.
15176      ld_shlibs_F77=no
15177      ;;
15178
15179    beos*)
15180      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15181	allow_undefined_flag_F77=unsupported
15182	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15183	# support --undefined.  This deserves some investigation.  FIXME
15184	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15185      else
15186	ld_shlibs_F77=no
15187      fi
15188      ;;
15189
15190    cygwin* | mingw* | pw32*)
15191      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15192      # as there is no search path for DLLs.
15193      hardcode_libdir_flag_spec_F77='-L$libdir'
15194      allow_undefined_flag_F77=unsupported
15195      always_export_symbols_F77=no
15196      enable_shared_with_static_runtimes_F77=yes
15197      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15198
15199      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15200        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15201	# If the export-symbols file already is a .def file (1st line
15202	# is EXPORTS), use it as is; otherwise, prepend...
15203	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15204	  cp $export_symbols $output_objdir/$soname.def;
15205	else
15206	  echo EXPORTS > $output_objdir/$soname.def;
15207	  cat $export_symbols >> $output_objdir/$soname.def;
15208	fi~
15209	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15210      else
15211	ld_shlibs_F77=no
15212      fi
15213      ;;
15214
15215    interix3*)
15216      hardcode_direct_F77=no
15217      hardcode_shlibpath_var_F77=no
15218      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15219      export_dynamic_flag_spec_F77='${wl}-E'
15220      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15221      # Instead, shared libraries are loaded at an image base (0x10000000 by
15222      # default) and relocated if they conflict, which is a slow very memory
15223      # consuming and fragmenting process.  To avoid this, we pick a random,
15224      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15225      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15226      archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15227      archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15228      ;;
15229
15230    linux*)
15231      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15232	tmp_addflag=
15233	case $cc_basename,$host_cpu in
15234	pgcc*)				# Portland Group C compiler
15235	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15236	  tmp_addflag=' $pic_flag'
15237	  ;;
15238	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
15239	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
15240	  tmp_addflag=' $pic_flag -Mnomain' ;;
15241	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
15242	  tmp_addflag=' -i_dynamic' ;;
15243	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
15244	  tmp_addflag=' -i_dynamic -nofor_main' ;;
15245	ifc* | ifort*)			# Intel Fortran compiler
15246	  tmp_addflag=' -nofor_main' ;;
15247	esac
15248	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15249
15250	if test $supports_anon_versioning = yes; then
15251	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15252  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15253  $echo "local: *; };" >> $output_objdir/$libname.ver~
15254	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15255	fi
15256      else
15257	ld_shlibs_F77=no
15258      fi
15259      ;;
15260
15261    netbsd*)
15262      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15263	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15264	wlarc=
15265      else
15266	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15267	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15268      fi
15269      ;;
15270
15271    solaris*)
15272      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15273	ld_shlibs_F77=no
15274	cat <<EOF 1>&2
15275
15276*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15277*** create shared libraries on Solaris systems.  Therefore, libtool
15278*** is disabling shared libraries support.  We urge you to upgrade GNU
15279*** binutils to release 2.9.1 or newer.  Another option is to modify
15280*** your PATH or compiler configuration so that the native linker is
15281*** used, and then restart.
15282
15283EOF
15284      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15285	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15286	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15287      else
15288	ld_shlibs_F77=no
15289      fi
15290      ;;
15291
15292    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15293      case `$LD -v 2>&1` in
15294        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15295	ld_shlibs_F77=no
15296	cat <<_LT_EOF 1>&2
15297
15298*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15299*** reliably create shared libraries on SCO systems.  Therefore, libtool
15300*** is disabling shared libraries support.  We urge you to upgrade GNU
15301*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15302*** your PATH or compiler configuration so that the native linker is
15303*** used, and then restart.
15304
15305_LT_EOF
15306	;;
15307	*)
15308	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15309	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15310	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15311	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15312	  else
15313	    ld_shlibs_F77=no
15314	  fi
15315	;;
15316      esac
15317      ;;
15318
15319    sunos4*)
15320      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15321      wlarc=
15322      hardcode_direct_F77=yes
15323      hardcode_shlibpath_var_F77=no
15324      ;;
15325
15326    *)
15327      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15328	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15329	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15330      else
15331	ld_shlibs_F77=no
15332      fi
15333      ;;
15334    esac
15335
15336    if test "$ld_shlibs_F77" = no; then
15337      runpath_var=
15338      hardcode_libdir_flag_spec_F77=
15339      export_dynamic_flag_spec_F77=
15340      whole_archive_flag_spec_F77=
15341    fi
15342  else
15343    # PORTME fill in a description of your system's linker (not GNU ld)
15344    case $host_os in
15345    aix3*)
15346      allow_undefined_flag_F77=unsupported
15347      always_export_symbols_F77=yes
15348      archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
15349      # Note: this linker hardcodes the directories in LIBPATH if there
15350      # are no directories specified by -L.
15351      hardcode_minus_L_F77=yes
15352      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15353	# Neither direct hardcoding nor static linking is supported with a
15354	# broken collect2.
15355	hardcode_direct_F77=unsupported
15356      fi
15357      ;;
15358
15359    aix4* | aix5*)
15360      if test "$host_cpu" = ia64; then
15361	# On IA64, the linker does run time linking by default, so we don't
15362	# have to do anything special.
15363	aix_use_runtimelinking=no
15364	exp_sym_flag='-Bexport'
15365	no_entry_flag=""
15366      else
15367	# If we're using GNU nm, then we don't want the "-C" option.
15368	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15369	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15370	  export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15371	else
15372	  export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
15373	fi
15374	aix_use_runtimelinking=no
15375
15376	# Test if we are trying to use run time linking or normal
15377	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15378	# need to do runtime linking.
15379	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15380	  for ld_flag in $LDFLAGS; do
15381  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15382  	    aix_use_runtimelinking=yes
15383  	    break
15384  	  fi
15385	  done
15386	  ;;
15387	esac
15388
15389	exp_sym_flag='-bexport'
15390	no_entry_flag='-bnoentry'
15391      fi
15392
15393      # When large executables or shared objects are built, AIX ld can
15394      # have problems creating the table of contents.  If linking a library
15395      # or program results in "error TOC overflow" add -mminimal-toc to
15396      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15397      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15398
15399      archive_cmds_F77=''
15400      hardcode_direct_F77=yes
15401      hardcode_libdir_separator_F77=':'
15402      link_all_deplibs_F77=yes
15403
15404      if test "$GCC" = yes; then
15405	case $host_os in aix4.[012]|aix4.[012].*)
15406	# We only want to do this on AIX 4.2 and lower, the check
15407	# below for broken collect2 doesn't work under 4.3+
15408	  collect2name=`${CC} -print-prog-name=collect2`
15409	  if test -f "$collect2name" && \
15410  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
15411	  then
15412  	  # We have reworked collect2
15413  	  hardcode_direct_F77=yes
15414	  else
15415  	  # We have old collect2
15416  	  hardcode_direct_F77=unsupported
15417  	  # It fails to find uninstalled libraries when the uninstalled
15418  	  # path is not listed in the libpath.  Setting hardcode_minus_L
15419  	  # to unsupported forces relinking
15420  	  hardcode_minus_L_F77=yes
15421  	  hardcode_libdir_flag_spec_F77='-L$libdir'
15422  	  hardcode_libdir_separator_F77=
15423	  fi
15424	  ;;
15425	esac
15426	shared_flag='-shared'
15427	if test "$aix_use_runtimelinking" = yes; then
15428	  shared_flag="$shared_flag "'${wl}-G'
15429	fi
15430      else
15431	# not using gcc
15432	if test "$host_cpu" = ia64; then
15433  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15434  	# chokes on -Wl,-G. The following line is correct:
15435	  shared_flag='-G'
15436	else
15437	  if test "$aix_use_runtimelinking" = yes; then
15438	    shared_flag='${wl}-G'
15439	  else
15440	    shared_flag='${wl}-bM:SRE'
15441	  fi
15442	fi
15443      fi
15444
15445      # It seems that -bexpall does not export symbols beginning with
15446      # underscore (_), so it is better to generate a list of symbols to export.
15447      always_export_symbols_F77=yes
15448      if test "$aix_use_runtimelinking" = yes; then
15449	# Warning - without using the other runtime loading flags (-brtl),
15450	# -berok will link without error, but may produce a broken library.
15451	allow_undefined_flag_F77='-berok'
15452       # Determine the default libpath from the value encoded in an empty executable.
15453       cat >conftest.$ac_ext <<_ACEOF
15454      program main
15455
15456      end
15457_ACEOF
15458rm -f conftest.$ac_objext conftest$ac_exeext
15459if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15460  (eval $ac_link) 2>conftest.er1
15461  ac_status=$?
15462  grep -v '^ *+' conftest.er1 >conftest.err
15463  rm -f conftest.er1
15464  cat conftest.err >&5
15465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15466  (exit $ac_status); } &&
15467	 { ac_try='test -z "$ac_f77_werror_flag"
15468			 || test ! -s conftest.err'
15469  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15470  (eval $ac_try) 2>&5
15471  ac_status=$?
15472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15473  (exit $ac_status); }; } &&
15474	 { ac_try='test -s conftest$ac_exeext'
15475  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15476  (eval $ac_try) 2>&5
15477  ac_status=$?
15478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15479  (exit $ac_status); }; }; then
15480
15481aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15482}'`
15483# Check for a 64-bit object if we didn't find anything.
15484if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15485}'`; fi
15486else
15487  echo "$as_me: failed program was:" >&5
15488sed 's/^/| /' conftest.$ac_ext >&5
15489
15490fi
15491rm -f conftest.err conftest.$ac_objext \
15492      conftest$ac_exeext conftest.$ac_ext
15493if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15494
15495       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15496	archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15497       else
15498	if test "$host_cpu" = ia64; then
15499	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15500	  allow_undefined_flag_F77="-z nodefs"
15501	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
15502	else
15503	 # Determine the default libpath from the value encoded in an empty executable.
15504	 cat >conftest.$ac_ext <<_ACEOF
15505      program main
15506
15507      end
15508_ACEOF
15509rm -f conftest.$ac_objext conftest$ac_exeext
15510if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15511  (eval $ac_link) 2>conftest.er1
15512  ac_status=$?
15513  grep -v '^ *+' conftest.er1 >conftest.err
15514  rm -f conftest.er1
15515  cat conftest.err >&5
15516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15517  (exit $ac_status); } &&
15518	 { ac_try='test -z "$ac_f77_werror_flag"
15519			 || test ! -s conftest.err'
15520  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15521  (eval $ac_try) 2>&5
15522  ac_status=$?
15523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15524  (exit $ac_status); }; } &&
15525	 { ac_try='test -s conftest$ac_exeext'
15526  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15527  (eval $ac_try) 2>&5
15528  ac_status=$?
15529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15530  (exit $ac_status); }; }; then
15531
15532aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15533}'`
15534# Check for a 64-bit object if we didn't find anything.
15535if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15536}'`; fi
15537else
15538  echo "$as_me: failed program was:" >&5
15539sed 's/^/| /' conftest.$ac_ext >&5
15540
15541fi
15542rm -f conftest.err conftest.$ac_objext \
15543      conftest$ac_exeext conftest.$ac_ext
15544if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15545
15546	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15547	  # Warning - without using the other run time loading flags,
15548	  # -berok will link without error, but may produce a broken library.
15549	  no_undefined_flag_F77=' ${wl}-bernotok'
15550	  allow_undefined_flag_F77=' ${wl}-berok'
15551	  # Exported symbols can be pulled into shared objects from archives
15552	  whole_archive_flag_spec_F77='$convenience'
15553	  archive_cmds_need_lc_F77=yes
15554	  # This is similar to how AIX traditionally builds its shared libraries.
15555	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15556	fi
15557      fi
15558      ;;
15559
15560    amigaos*)
15561      archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15562      hardcode_libdir_flag_spec_F77='-L$libdir'
15563      hardcode_minus_L_F77=yes
15564      # see comment about different semantics on the GNU ld section
15565      ld_shlibs_F77=no
15566      ;;
15567
15568    bsdi[45]*)
15569      export_dynamic_flag_spec_F77=-rdynamic
15570      ;;
15571
15572    cygwin* | mingw* | pw32*)
15573      # When not using gcc, we currently assume that we are using
15574      # Microsoft Visual C++.
15575      # hardcode_libdir_flag_spec is actually meaningless, as there is
15576      # no search path for DLLs.
15577      hardcode_libdir_flag_spec_F77=' '
15578      allow_undefined_flag_F77=unsupported
15579      # Tell ltmain to make .lib files, not .a files.
15580      libext=lib
15581      # Tell ltmain to make .dll files, not .so files.
15582      shrext_cmds=".dll"
15583      # FIXME: Setting linknames here is a bad hack.
15584      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15585      # The linker will automatically build a .lib file if we build a DLL.
15586      old_archive_From_new_cmds_F77='true'
15587      # FIXME: Should let the user specify the lib program.
15588      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15589      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15590      enable_shared_with_static_runtimes_F77=yes
15591      ;;
15592
15593    darwin* | rhapsody*)
15594      case $host_os in
15595        rhapsody* | darwin1.[012])
15596         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15597         ;;
15598       *) # Darwin 1.3 on
15599         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15600           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15601         else
15602           case ${MACOSX_DEPLOYMENT_TARGET} in
15603             10.[012])
15604               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15605               ;;
15606             10.*)
15607               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15608               ;;
15609           esac
15610         fi
15611         ;;
15612      esac
15613      archive_cmds_need_lc_F77=no
15614      hardcode_direct_F77=no
15615      hardcode_automatic_F77=yes
15616      hardcode_shlibpath_var_F77=unsupported
15617      whole_archive_flag_spec_F77=''
15618      link_all_deplibs_F77=yes
15619    if test "$GCC" = yes ; then
15620    	output_verbose_link_cmd='echo'
15621        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15622      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15623      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15624      archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15625      module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15626    else
15627      case $cc_basename in
15628        xlc*)
15629         output_verbose_link_cmd='echo'
15630         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15631         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15632          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15633         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15634          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15635          ;;
15636       *)
15637         ld_shlibs_F77=no
15638          ;;
15639      esac
15640    fi
15641      ;;
15642
15643    dgux*)
15644      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15645      hardcode_libdir_flag_spec_F77='-L$libdir'
15646      hardcode_shlibpath_var_F77=no
15647      ;;
15648
15649    freebsd1*)
15650      ld_shlibs_F77=no
15651      ;;
15652
15653    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15654    # support.  Future versions do this automatically, but an explicit c++rt0.o
15655    # does not break anything, and helps significantly (at the cost of a little
15656    # extra space).
15657    freebsd2.2*)
15658      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15659      hardcode_libdir_flag_spec_F77='-R$libdir'
15660      hardcode_direct_F77=yes
15661      hardcode_shlibpath_var_F77=no
15662      ;;
15663
15664    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15665    freebsd2*)
15666      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15667      hardcode_direct_F77=yes
15668      hardcode_minus_L_F77=yes
15669      hardcode_shlibpath_var_F77=no
15670      ;;
15671
15672    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15673    freebsd* | kfreebsd*-gnu | dragonfly*)
15674      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15675      hardcode_libdir_flag_spec_F77='-R$libdir'
15676      hardcode_direct_F77=yes
15677      hardcode_shlibpath_var_F77=no
15678      ;;
15679
15680    hpux9*)
15681      if test "$GCC" = yes; then
15682	archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15683      else
15684	archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15685      fi
15686      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15687      hardcode_libdir_separator_F77=:
15688      hardcode_direct_F77=yes
15689
15690      # hardcode_minus_L: Not really in the search PATH,
15691      # but as the default location of the library.
15692      hardcode_minus_L_F77=yes
15693      export_dynamic_flag_spec_F77='${wl}-E'
15694      ;;
15695
15696    hpux10*)
15697      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15698	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15699      else
15700	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15701      fi
15702      if test "$with_gnu_ld" = no; then
15703	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15704	hardcode_libdir_separator_F77=:
15705
15706	hardcode_direct_F77=yes
15707	export_dynamic_flag_spec_F77='${wl}-E'
15708
15709	# hardcode_minus_L: Not really in the search PATH,
15710	# but as the default location of the library.
15711	hardcode_minus_L_F77=yes
15712      fi
15713      ;;
15714
15715    hpux11*)
15716      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15717	case $host_cpu in
15718	hppa*64*)
15719	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15720	  ;;
15721	ia64*)
15722	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15723	  ;;
15724	*)
15725	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15726	  ;;
15727	esac
15728      else
15729	case $host_cpu in
15730	hppa*64*)
15731	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15732	  ;;
15733	ia64*)
15734	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15735	  ;;
15736	*)
15737	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15738	  ;;
15739	esac
15740      fi
15741      if test "$with_gnu_ld" = no; then
15742	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15743	hardcode_libdir_separator_F77=:
15744
15745	case $host_cpu in
15746	hppa*64*|ia64*)
15747	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15748	  hardcode_direct_F77=no
15749	  hardcode_shlibpath_var_F77=no
15750	  ;;
15751	*)
15752	  hardcode_direct_F77=yes
15753	  export_dynamic_flag_spec_F77='${wl}-E'
15754
15755	  # hardcode_minus_L: Not really in the search PATH,
15756	  # but as the default location of the library.
15757	  hardcode_minus_L_F77=yes
15758	  ;;
15759	esac
15760      fi
15761      ;;
15762
15763    irix5* | irix6* | nonstopux*)
15764      if test "$GCC" = yes; then
15765	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15766      else
15767	archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15768	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15769      fi
15770      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15771      hardcode_libdir_separator_F77=:
15772      link_all_deplibs_F77=yes
15773      ;;
15774
15775    netbsd*)
15776      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15777	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15778      else
15779	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15780      fi
15781      hardcode_libdir_flag_spec_F77='-R$libdir'
15782      hardcode_direct_F77=yes
15783      hardcode_shlibpath_var_F77=no
15784      ;;
15785
15786    newsos6)
15787      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15788      hardcode_direct_F77=yes
15789      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15790      hardcode_libdir_separator_F77=:
15791      hardcode_shlibpath_var_F77=no
15792      ;;
15793
15794    openbsd*)
15795      hardcode_direct_F77=yes
15796      hardcode_shlibpath_var_F77=no
15797      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15798	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15799	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15800	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15801	export_dynamic_flag_spec_F77='${wl}-E'
15802      else
15803       case $host_os in
15804	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15805	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15806	   hardcode_libdir_flag_spec_F77='-R$libdir'
15807	   ;;
15808	 *)
15809	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15810	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15811	   ;;
15812       esac
15813      fi
15814      ;;
15815
15816    os2*)
15817      hardcode_libdir_flag_spec_F77='-L$libdir'
15818      hardcode_minus_L_F77=yes
15819      allow_undefined_flag_F77=unsupported
15820      archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
15821      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15822      ;;
15823
15824    osf3*)
15825      if test "$GCC" = yes; then
15826	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15827	archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15828      else
15829	allow_undefined_flag_F77=' -expect_unresolved \*'
15830	archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15831      fi
15832      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15833      hardcode_libdir_separator_F77=:
15834      ;;
15835
15836    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15837      if test "$GCC" = yes; then
15838	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15839	archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15840	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15841      else
15842	allow_undefined_flag_F77=' -expect_unresolved \*'
15843	archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15844	archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15845	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15846
15847	# Both c and cxx compiler support -rpath directly
15848	hardcode_libdir_flag_spec_F77='-rpath $libdir'
15849      fi
15850      hardcode_libdir_separator_F77=:
15851      ;;
15852
15853    solaris*)
15854      no_undefined_flag_F77=' -z text'
15855      if test "$GCC" = yes; then
15856	wlarc='${wl}'
15857	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15858	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15859	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15860      else
15861	wlarc=''
15862	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15863	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15864  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15865      fi
15866      hardcode_libdir_flag_spec_F77='-R$libdir'
15867      hardcode_shlibpath_var_F77=no
15868      case $host_os in
15869      solaris2.[0-5] | solaris2.[0-5].*) ;;
15870      *)
15871 	# The compiler driver will combine linker options so we
15872 	# cannot just pass the convience library names through
15873 	# without $wl, iff we do not link with $LD.
15874 	# Luckily, gcc supports the same syntax we need for Sun Studio.
15875 	# Supported since Solaris 2.6 (maybe 2.5.1?)
15876 	case $wlarc in
15877 	'')
15878 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15879 	*)
15880 	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15881 	esac ;;
15882      esac
15883      link_all_deplibs_F77=yes
15884      ;;
15885
15886    sunos4*)
15887      if test "x$host_vendor" = xsequent; then
15888	# Use $CC to link under sequent, because it throws in some extra .o
15889	# files that make .init and .fini sections work.
15890	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15891      else
15892	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15893      fi
15894      hardcode_libdir_flag_spec_F77='-L$libdir'
15895      hardcode_direct_F77=yes
15896      hardcode_minus_L_F77=yes
15897      hardcode_shlibpath_var_F77=no
15898      ;;
15899
15900    sysv4)
15901      case $host_vendor in
15902	sni)
15903	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15904	  hardcode_direct_F77=yes # is this really true???
15905	;;
15906	siemens)
15907	  ## LD is ld it makes a PLAMLIB
15908	  ## CC just makes a GrossModule.
15909	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15910	  reload_cmds_F77='$CC -r -o $output$reload_objs'
15911	  hardcode_direct_F77=no
15912        ;;
15913	motorola)
15914	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15915	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15916	;;
15917      esac
15918      runpath_var='LD_RUN_PATH'
15919      hardcode_shlibpath_var_F77=no
15920      ;;
15921
15922    sysv4.3*)
15923      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15924      hardcode_shlibpath_var_F77=no
15925      export_dynamic_flag_spec_F77='-Bexport'
15926      ;;
15927
15928    sysv4*MP*)
15929      if test -d /usr/nec; then
15930	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15931	hardcode_shlibpath_var_F77=no
15932	runpath_var=LD_RUN_PATH
15933	hardcode_runpath_var=yes
15934	ld_shlibs_F77=yes
15935      fi
15936      ;;
15937
15938    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15939      no_undefined_flag_F77='${wl}-z,text'
15940      archive_cmds_need_lc_F77=no
15941      hardcode_shlibpath_var_F77=no
15942      runpath_var='LD_RUN_PATH'
15943
15944      if test "$GCC" = yes; then
15945	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15946	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15947      else
15948	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15949	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15950      fi
15951      ;;
15952
15953    sysv5* | sco3.2v5* | sco5v6*)
15954      # Note: We can NOT use -z defs as we might desire, because we do not
15955      # link with -lc, and that would cause any symbols used from libc to
15956      # always be unresolved, which means just about no library would
15957      # ever link correctly.  If we're not using GNU ld we use -z text
15958      # though, which does catch some bad symbols but isn't as heavy-handed
15959      # as -z defs.
15960      no_undefined_flag_F77='${wl}-z,text'
15961      allow_undefined_flag_F77='${wl}-z,nodefs'
15962      archive_cmds_need_lc_F77=no
15963      hardcode_shlibpath_var_F77=no
15964      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15965      hardcode_libdir_separator_F77=':'
15966      link_all_deplibs_F77=yes
15967      export_dynamic_flag_spec_F77='${wl}-Bexport'
15968      runpath_var='LD_RUN_PATH'
15969
15970      if test "$GCC" = yes; then
15971	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15972	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15973      else
15974	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15975	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15976      fi
15977      ;;
15978
15979    uts4*)
15980      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15981      hardcode_libdir_flag_spec_F77='-L$libdir'
15982      hardcode_shlibpath_var_F77=no
15983      ;;
15984
15985    *)
15986      ld_shlibs_F77=no
15987      ;;
15988    esac
15989  fi
15990
15991echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15992echo "${ECHO_T}$ld_shlibs_F77" >&6
15993test "$ld_shlibs_F77" = no && can_build_shared=no
15994
15995#
15996# Do we need to explicitly link libc?
15997#
15998case "x$archive_cmds_need_lc_F77" in
15999x|xyes)
16000  # Assume -lc should be added
16001  archive_cmds_need_lc_F77=yes
16002
16003  if test "$enable_shared" = yes && test "$GCC" = yes; then
16004    case $archive_cmds_F77 in
16005    *'~'*)
16006      # FIXME: we may have to deal with multi-command sequences.
16007      ;;
16008    '$CC '*)
16009      # Test whether the compiler implicitly links with -lc since on some
16010      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16011      # to ld, don't add -lc before -lgcc.
16012      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16013echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16014      $rm conftest*
16015      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16016
16017      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16018  (eval $ac_compile) 2>&5
16019  ac_status=$?
16020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16021  (exit $ac_status); } 2>conftest.err; then
16022        soname=conftest
16023        lib=conftest
16024        libobjs=conftest.$ac_objext
16025        deplibs=
16026        wl=$lt_prog_compiler_wl_F77
16027	pic_flag=$lt_prog_compiler_pic_F77
16028        compiler_flags=-v
16029        linker_flags=-v
16030        verstring=
16031        output_objdir=.
16032        libname=conftest
16033        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16034        allow_undefined_flag_F77=
16035        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16036  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16037  ac_status=$?
16038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16039  (exit $ac_status); }
16040        then
16041	  archive_cmds_need_lc_F77=no
16042        else
16043	  archive_cmds_need_lc_F77=yes
16044        fi
16045        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16046      else
16047        cat conftest.err 1>&5
16048      fi
16049      $rm conftest*
16050      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16051echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
16052      ;;
16053    esac
16054  fi
16055  ;;
16056esac
16057
16058echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16059echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16060library_names_spec=
16061libname_spec='lib$name'
16062soname_spec=
16063shrext_cmds=".so"
16064postinstall_cmds=
16065postuninstall_cmds=
16066finish_cmds=
16067finish_eval=
16068shlibpath_var=
16069shlibpath_overrides_runpath=unknown
16070version_type=none
16071dynamic_linker="$host_os ld.so"
16072sys_lib_dlsearch_path_spec="/lib /usr/lib"
16073if test "$GCC" = yes; then
16074  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16075  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16076    # if the path contains ";" then we assume it to be the separator
16077    # otherwise default to the standard path separator (i.e. ":") - it is
16078    # assumed that no part of a normal pathname contains ";" but that should
16079    # okay in the real world where ";" in dirpaths is itself problematic.
16080    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16081  else
16082    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16083  fi
16084else
16085  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16086fi
16087need_lib_prefix=unknown
16088hardcode_into_libs=no
16089
16090# when you set need_version to no, make sure it does not cause -set_version
16091# flags to be left without arguments
16092need_version=unknown
16093
16094case $host_os in
16095aix3*)
16096  version_type=linux
16097  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16098  shlibpath_var=LIBPATH
16099
16100  # AIX 3 has no versioning support, so we append a major version to the name.
16101  soname_spec='${libname}${release}${shared_ext}$major'
16102  ;;
16103
16104aix4* | aix5*)
16105  version_type=linux
16106  need_lib_prefix=no
16107  need_version=no
16108  hardcode_into_libs=yes
16109  if test "$host_cpu" = ia64; then
16110    # AIX 5 supports IA64
16111    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16112    shlibpath_var=LD_LIBRARY_PATH
16113  else
16114    # With GCC up to 2.95.x, collect2 would create an import file
16115    # for dependence libraries.  The import file would start with
16116    # the line `#! .'.  This would cause the generated library to
16117    # depend on `.', always an invalid library.  This was fixed in
16118    # development snapshots of GCC prior to 3.0.
16119    case $host_os in
16120      aix4 | aix4.[01] | aix4.[01].*)
16121      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16122	   echo ' yes '
16123	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16124	:
16125      else
16126	can_build_shared=no
16127      fi
16128      ;;
16129    esac
16130    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16131    # soname into executable. Probably we can add versioning support to
16132    # collect2, so additional links can be useful in future.
16133    if test "$aix_use_runtimelinking" = yes; then
16134      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16135      # instead of lib<name>.a to let people know that these are not
16136      # typical AIX shared libraries.
16137      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16138    else
16139      # We preserve .a as extension for shared libraries through AIX4.2
16140      # and later when we are not doing run time linking.
16141      library_names_spec='${libname}${release}.a $libname.a'
16142      soname_spec='${libname}${release}${shared_ext}$major'
16143    fi
16144    shlibpath_var=LIBPATH
16145  fi
16146  ;;
16147
16148amigaos*)
16149  library_names_spec='$libname.ixlibrary $libname.a'
16150  # Create ${libname}_ixlibrary.a entries in /sys/libs.
16151  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
16152  ;;
16153
16154beos*)
16155  library_names_spec='${libname}${shared_ext}'
16156  dynamic_linker="$host_os ld.so"
16157  shlibpath_var=LIBRARY_PATH
16158  ;;
16159
16160bsdi[45]*)
16161  version_type=linux
16162  need_version=no
16163  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16164  soname_spec='${libname}${release}${shared_ext}$major'
16165  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16166  shlibpath_var=LD_LIBRARY_PATH
16167  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16168  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16169  # the default ld.so.conf also contains /usr/contrib/lib and
16170  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16171  # libtool to hard-code these into programs
16172  ;;
16173
16174cygwin* | mingw* | pw32*)
16175  version_type=windows
16176  shrext_cmds=".dll"
16177  need_version=no
16178  need_lib_prefix=no
16179
16180  case $GCC,$host_os in
16181  yes,cygwin* | yes,mingw* | yes,pw32*)
16182    library_names_spec='$libname.dll.a'
16183    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16184    postinstall_cmds='base_file=`basename \${file}`~
16185      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16186      dldir=$destdir/`dirname \$dlpath`~
16187      test -d \$dldir || mkdir -p \$dldir~
16188      $install_prog $dir/$dlname \$dldir/$dlname~
16189      chmod a+x \$dldir/$dlname'
16190    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16191      dlpath=$dir/\$dldll~
16192       $rm \$dlpath'
16193    shlibpath_overrides_runpath=yes
16194
16195    case $host_os in
16196    cygwin*)
16197      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16198      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16199      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16200      ;;
16201    mingw*)
16202      # MinGW DLLs use traditional 'lib' prefix
16203      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16204      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16205      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16206        # It is most probably a Windows format PATH printed by
16207        # mingw gcc, but we are running on Cygwin. Gcc prints its search
16208        # path with ; separators, and with drive letters. We can handle the
16209        # drive letters (cygwin fileutils understands them), so leave them,
16210        # especially as we might pass files found there to a mingw objdump,
16211        # which wouldn't understand a cygwinified path. Ahh.
16212        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16213      else
16214        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16215      fi
16216      ;;
16217    pw32*)
16218      # pw32 DLLs use 'pw' prefix rather than 'lib'
16219      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16220      ;;
16221    esac
16222    ;;
16223
16224  *)
16225    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16226    ;;
16227  esac
16228  dynamic_linker='Win32 ld.exe'
16229  # FIXME: first we should search . and the directory the executable is in
16230  shlibpath_var=PATH
16231  ;;
16232
16233darwin* | rhapsody*)
16234  dynamic_linker="$host_os dyld"
16235  version_type=darwin
16236  need_lib_prefix=no
16237  need_version=no
16238  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16239  soname_spec='${libname}${release}${major}$shared_ext'
16240  shlibpath_overrides_runpath=yes
16241  shlibpath_var=DYLD_LIBRARY_PATH
16242  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16243  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16244  if test "$GCC" = yes; then
16245    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
16246  else
16247    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16248  fi
16249  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16250  ;;
16251
16252dgux*)
16253  version_type=linux
16254  need_lib_prefix=no
16255  need_version=no
16256  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16257  soname_spec='${libname}${release}${shared_ext}$major'
16258  shlibpath_var=LD_LIBRARY_PATH
16259  ;;
16260
16261freebsd1*)
16262  dynamic_linker=no
16263  ;;
16264
16265kfreebsd*-gnu)
16266  version_type=linux
16267  need_lib_prefix=no
16268  need_version=no
16269  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16270  soname_spec='${libname}${release}${shared_ext}$major'
16271  shlibpath_var=LD_LIBRARY_PATH
16272  shlibpath_overrides_runpath=no
16273  hardcode_into_libs=yes
16274  dynamic_linker='GNU ld.so'
16275  ;;
16276
16277freebsd* | dragonfly*)
16278  # DragonFly does not have aout.  When/if they implement a new
16279  # versioning mechanism, adjust this.
16280  if test -x /usr/bin/objformat; then
16281    objformat=`/usr/bin/objformat`
16282  else
16283    case $host_os in
16284    freebsd[123]*) objformat=aout ;;
16285    *) objformat=elf ;;
16286    esac
16287  fi
16288  version_type=freebsd-$objformat
16289  case $version_type in
16290    freebsd-elf*)
16291      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16292      need_version=no
16293      need_lib_prefix=no
16294      ;;
16295    freebsd-*)
16296      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16297      need_version=yes
16298      ;;
16299  esac
16300  shlibpath_var=LD_LIBRARY_PATH
16301  case $host_os in
16302  freebsd2*)
16303    shlibpath_overrides_runpath=yes
16304    ;;
16305  freebsd3.[01]* | freebsdelf3.[01]*)
16306    shlibpath_overrides_runpath=yes
16307    hardcode_into_libs=yes
16308    ;;
16309  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16310  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16311    shlibpath_overrides_runpath=no
16312    hardcode_into_libs=yes
16313    ;;
16314  freebsd*) # from 4.6 on
16315    shlibpath_overrides_runpath=yes
16316    hardcode_into_libs=yes
16317    ;;
16318  esac
16319  ;;
16320
16321gnu*)
16322  version_type=linux
16323  need_lib_prefix=no
16324  need_version=no
16325  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16326  soname_spec='${libname}${release}${shared_ext}$major'
16327  shlibpath_var=LD_LIBRARY_PATH
16328  hardcode_into_libs=yes
16329  ;;
16330
16331hpux9* | hpux10* | hpux11*)
16332  # Give a soname corresponding to the major version so that dld.sl refuses to
16333  # link against other versions.
16334  version_type=sunos
16335  need_lib_prefix=no
16336  need_version=no
16337  case $host_cpu in
16338  ia64*)
16339    shrext_cmds='.so'
16340    hardcode_into_libs=yes
16341    dynamic_linker="$host_os dld.so"
16342    shlibpath_var=LD_LIBRARY_PATH
16343    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16344    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16345    soname_spec='${libname}${release}${shared_ext}$major'
16346    if test "X$HPUX_IA64_MODE" = X32; then
16347      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16348    else
16349      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16350    fi
16351    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16352    ;;
16353   hppa*64*)
16354     shrext_cmds='.sl'
16355     hardcode_into_libs=yes
16356     dynamic_linker="$host_os dld.sl"
16357     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16358     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16359     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16360     soname_spec='${libname}${release}${shared_ext}$major'
16361     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16362     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16363     ;;
16364   *)
16365    shrext_cmds='.sl'
16366    dynamic_linker="$host_os dld.sl"
16367    shlibpath_var=SHLIB_PATH
16368    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16369    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16370    soname_spec='${libname}${release}${shared_ext}$major'
16371    ;;
16372  esac
16373  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16374  postinstall_cmds='chmod 555 $lib'
16375  ;;
16376
16377interix3*)
16378  version_type=linux
16379  need_lib_prefix=no
16380  need_version=no
16381  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16382  soname_spec='${libname}${release}${shared_ext}$major'
16383  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16384  shlibpath_var=LD_LIBRARY_PATH
16385  shlibpath_overrides_runpath=no
16386  hardcode_into_libs=yes
16387  ;;
16388
16389irix5* | irix6* | nonstopux*)
16390  case $host_os in
16391    nonstopux*) version_type=nonstopux ;;
16392    *)
16393	if test "$lt_cv_prog_gnu_ld" = yes; then
16394		version_type=linux
16395	else
16396		version_type=irix
16397	fi ;;
16398  esac
16399  need_lib_prefix=no
16400  need_version=no
16401  soname_spec='${libname}${release}${shared_ext}$major'
16402  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16403  case $host_os in
16404  irix5* | nonstopux*)
16405    libsuff= shlibsuff=
16406    ;;
16407  *)
16408    case $LD in # libtool.m4 will add one of these switches to LD
16409    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16410      libsuff= shlibsuff= libmagic=32-bit;;
16411    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16412      libsuff=32 shlibsuff=N32 libmagic=N32;;
16413    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16414      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16415    *) libsuff= shlibsuff= libmagic=never-match;;
16416    esac
16417    ;;
16418  esac
16419  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16420  shlibpath_overrides_runpath=no
16421  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16422  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16423  hardcode_into_libs=yes
16424  ;;
16425
16426# No shared lib support for Linux oldld, aout, or coff.
16427linux*oldld* | linux*aout* | linux*coff*)
16428  dynamic_linker=no
16429  ;;
16430
16431# This must be Linux ELF.
16432linux*)
16433  version_type=linux
16434  need_lib_prefix=no
16435  need_version=no
16436  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16437  soname_spec='${libname}${release}${shared_ext}$major'
16438  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16439  shlibpath_var=LD_LIBRARY_PATH
16440  shlibpath_overrides_runpath=no
16441  # This implies no fast_install, which is unacceptable.
16442  # Some rework will be needed to allow for fast_install
16443  # before this can be enabled.
16444  hardcode_into_libs=yes
16445
16446  # Append ld.so.conf contents to the search path
16447  if test -f /etc/ld.so.conf; then
16448    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16449    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16450  fi
16451
16452  # We used to test for /lib/ld.so.1 and disable shared libraries on
16453  # powerpc, because MkLinux only supported shared libraries with the
16454  # GNU dynamic linker.  Since this was broken with cross compilers,
16455  # most powerpc-linux boxes support dynamic linking these days and
16456  # people can always --disable-shared, the test was removed, and we
16457  # assume the GNU/Linux dynamic linker is in use.
16458  dynamic_linker='GNU/Linux ld.so'
16459  ;;
16460
16461knetbsd*-gnu)
16462  version_type=linux
16463  need_lib_prefix=no
16464  need_version=no
16465  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16466  soname_spec='${libname}${release}${shared_ext}$major'
16467  shlibpath_var=LD_LIBRARY_PATH
16468  shlibpath_overrides_runpath=no
16469  hardcode_into_libs=yes
16470  dynamic_linker='GNU ld.so'
16471  ;;
16472
16473netbsd*)
16474  version_type=sunos
16475  need_lib_prefix=no
16476  need_version=no
16477  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16478    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16479    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16480    dynamic_linker='NetBSD (a.out) ld.so'
16481  else
16482    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16483    soname_spec='${libname}${release}${shared_ext}$major'
16484    dynamic_linker='NetBSD ld.elf_so'
16485  fi
16486  shlibpath_var=LD_LIBRARY_PATH
16487  shlibpath_overrides_runpath=yes
16488  hardcode_into_libs=yes
16489  ;;
16490
16491newsos6)
16492  version_type=linux
16493  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16494  shlibpath_var=LD_LIBRARY_PATH
16495  shlibpath_overrides_runpath=yes
16496  ;;
16497
16498nto-qnx*)
16499  version_type=linux
16500  need_lib_prefix=no
16501  need_version=no
16502  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16503  soname_spec='${libname}${release}${shared_ext}$major'
16504  shlibpath_var=LD_LIBRARY_PATH
16505  shlibpath_overrides_runpath=yes
16506  ;;
16507
16508openbsd*)
16509  version_type=sunos
16510  sys_lib_dlsearch_path_spec="/usr/lib"
16511  need_lib_prefix=no
16512  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16513  case $host_os in
16514    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16515    *)                         need_version=no  ;;
16516  esac
16517  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16518  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16519  shlibpath_var=LD_LIBRARY_PATH
16520  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16521    case $host_os in
16522      openbsd2.[89] | openbsd2.[89].*)
16523	shlibpath_overrides_runpath=no
16524	;;
16525      *)
16526	shlibpath_overrides_runpath=yes
16527	;;
16528      esac
16529  else
16530    shlibpath_overrides_runpath=yes
16531  fi
16532  ;;
16533
16534os2*)
16535  libname_spec='$name'
16536  shrext_cmds=".dll"
16537  need_lib_prefix=no
16538  library_names_spec='$libname${shared_ext} $libname.a'
16539  dynamic_linker='OS/2 ld.exe'
16540  shlibpath_var=LIBPATH
16541  ;;
16542
16543osf3* | osf4* | osf5*)
16544  version_type=osf
16545  need_lib_prefix=no
16546  need_version=no
16547  soname_spec='${libname}${release}${shared_ext}$major'
16548  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16549  shlibpath_var=LD_LIBRARY_PATH
16550  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16551  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16552  ;;
16553
16554solaris*)
16555  version_type=linux
16556  need_lib_prefix=no
16557  need_version=no
16558  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16559  soname_spec='${libname}${release}${shared_ext}$major'
16560  shlibpath_var=LD_LIBRARY_PATH
16561  shlibpath_overrides_runpath=yes
16562  hardcode_into_libs=yes
16563  # ldd complains unless libraries are executable
16564  postinstall_cmds='chmod +x $lib'
16565  ;;
16566
16567sunos4*)
16568  version_type=sunos
16569  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16570  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16571  shlibpath_var=LD_LIBRARY_PATH
16572  shlibpath_overrides_runpath=yes
16573  if test "$with_gnu_ld" = yes; then
16574    need_lib_prefix=no
16575  fi
16576  need_version=yes
16577  ;;
16578
16579sysv4 | sysv4.3*)
16580  version_type=linux
16581  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16582  soname_spec='${libname}${release}${shared_ext}$major'
16583  shlibpath_var=LD_LIBRARY_PATH
16584  case $host_vendor in
16585    sni)
16586      shlibpath_overrides_runpath=no
16587      need_lib_prefix=no
16588      export_dynamic_flag_spec='${wl}-Blargedynsym'
16589      runpath_var=LD_RUN_PATH
16590      ;;
16591    siemens)
16592      need_lib_prefix=no
16593      ;;
16594    motorola)
16595      need_lib_prefix=no
16596      need_version=no
16597      shlibpath_overrides_runpath=no
16598      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16599      ;;
16600  esac
16601  ;;
16602
16603sysv4*MP*)
16604  if test -d /usr/nec ;then
16605    version_type=linux
16606    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16607    soname_spec='$libname${shared_ext}.$major'
16608    shlibpath_var=LD_LIBRARY_PATH
16609  fi
16610  ;;
16611
16612sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16613  version_type=freebsd-elf
16614  need_lib_prefix=no
16615  need_version=no
16616  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16617  soname_spec='${libname}${release}${shared_ext}$major'
16618  shlibpath_var=LD_LIBRARY_PATH
16619  hardcode_into_libs=yes
16620  if test "$with_gnu_ld" = yes; then
16621    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16622    shlibpath_overrides_runpath=no
16623  else
16624    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16625    shlibpath_overrides_runpath=yes
16626    case $host_os in
16627      sco3.2v5*)
16628        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16629	;;
16630    esac
16631  fi
16632  sys_lib_dlsearch_path_spec='/usr/lib'
16633  ;;
16634
16635uts4*)
16636  version_type=linux
16637  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16638  soname_spec='${libname}${release}${shared_ext}$major'
16639  shlibpath_var=LD_LIBRARY_PATH
16640  ;;
16641
16642*)
16643  dynamic_linker=no
16644  ;;
16645esac
16646echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16647echo "${ECHO_T}$dynamic_linker" >&6
16648test "$dynamic_linker" = no && can_build_shared=no
16649
16650variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16651if test "$GCC" = yes; then
16652  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16653fi
16654
16655echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16656echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16657hardcode_action_F77=
16658if test -n "$hardcode_libdir_flag_spec_F77" || \
16659   test -n "$runpath_var_F77" || \
16660   test "X$hardcode_automatic_F77" = "Xyes" ; then
16661
16662  # We can hardcode non-existant directories.
16663  if test "$hardcode_direct_F77" != no &&
16664     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16665     # have to relink, otherwise we might link with an installed library
16666     # when we should be linking with a yet-to-be-installed one
16667     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16668     test "$hardcode_minus_L_F77" != no; then
16669    # Linking always hardcodes the temporary library directory.
16670    hardcode_action_F77=relink
16671  else
16672    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16673    hardcode_action_F77=immediate
16674  fi
16675else
16676  # We cannot hardcode anything, or else we can only hardcode existing
16677  # directories.
16678  hardcode_action_F77=unsupported
16679fi
16680echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16681echo "${ECHO_T}$hardcode_action_F77" >&6
16682
16683if test "$hardcode_action_F77" = relink; then
16684  # Fast installation is not supported
16685  enable_fast_install=no
16686elif test "$shlibpath_overrides_runpath" = yes ||
16687     test "$enable_shared" = no; then
16688  # Fast installation is not necessary
16689  enable_fast_install=needless
16690fi
16691
16692
16693# The else clause should only fire when bootstrapping the
16694# libtool distribution, otherwise you forgot to ship ltmain.sh
16695# with your package, and you will get complaints that there are
16696# no rules to generate ltmain.sh.
16697if test -f "$ltmain"; then
16698  # See if we are running on zsh, and set the options which allow our commands through
16699  # without removal of \ escapes.
16700  if test -n "${ZSH_VERSION+set}" ; then
16701    setopt NO_GLOB_SUBST
16702  fi
16703  # Now quote all the things that may contain metacharacters while being
16704  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16705  # variables and quote the copies for generation of the libtool script.
16706  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16707    SED SHELL STRIP \
16708    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16709    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16710    deplibs_check_method reload_flag reload_cmds need_locks \
16711    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16712    lt_cv_sys_global_symbol_to_c_name_address \
16713    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16714    old_postinstall_cmds old_postuninstall_cmds \
16715    compiler_F77 \
16716    CC_F77 \
16717    LD_F77 \
16718    lt_prog_compiler_wl_F77 \
16719    lt_prog_compiler_pic_F77 \
16720    lt_prog_compiler_static_F77 \
16721    lt_prog_compiler_no_builtin_flag_F77 \
16722    export_dynamic_flag_spec_F77 \
16723    thread_safe_flag_spec_F77 \
16724    whole_archive_flag_spec_F77 \
16725    enable_shared_with_static_runtimes_F77 \
16726    old_archive_cmds_F77 \
16727    old_archive_from_new_cmds_F77 \
16728    predep_objects_F77 \
16729    postdep_objects_F77 \
16730    predeps_F77 \
16731    postdeps_F77 \
16732    compiler_lib_search_path_F77 \
16733    archive_cmds_F77 \
16734    archive_expsym_cmds_F77 \
16735    postinstall_cmds_F77 \
16736    postuninstall_cmds_F77 \
16737    old_archive_from_expsyms_cmds_F77 \
16738    allow_undefined_flag_F77 \
16739    no_undefined_flag_F77 \
16740    export_symbols_cmds_F77 \
16741    hardcode_libdir_flag_spec_F77 \
16742    hardcode_libdir_flag_spec_ld_F77 \
16743    hardcode_libdir_separator_F77 \
16744    hardcode_automatic_F77 \
16745    module_cmds_F77 \
16746    module_expsym_cmds_F77 \
16747    lt_cv_prog_compiler_c_o_F77 \
16748    exclude_expsyms_F77 \
16749    include_expsyms_F77; do
16750
16751    case $var in
16752    old_archive_cmds_F77 | \
16753    old_archive_from_new_cmds_F77 | \
16754    archive_cmds_F77 | \
16755    archive_expsym_cmds_F77 | \
16756    module_cmds_F77 | \
16757    module_expsym_cmds_F77 | \
16758    old_archive_from_expsyms_cmds_F77 | \
16759    export_symbols_cmds_F77 | \
16760    extract_expsyms_cmds | reload_cmds | finish_cmds | \
16761    postinstall_cmds | postuninstall_cmds | \
16762    old_postinstall_cmds | old_postuninstall_cmds | \
16763    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16764      # Double-quote double-evaled strings.
16765      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16766      ;;
16767    *)
16768      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16769      ;;
16770    esac
16771  done
16772
16773  case $lt_echo in
16774  *'\$0 --fallback-echo"')
16775    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16776    ;;
16777  esac
16778
16779cfgfile="$ofile"
16780
16781  cat <<__EOF__ >> "$cfgfile"
16782# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16783
16784# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16785
16786# Shell to use when invoking shell scripts.
16787SHELL=$lt_SHELL
16788
16789# Whether or not to build shared libraries.
16790build_libtool_libs=$enable_shared
16791
16792# Whether or not to build static libraries.
16793build_old_libs=$enable_static
16794
16795# Whether or not to add -lc for building shared libraries.
16796build_libtool_need_lc=$archive_cmds_need_lc_F77
16797
16798# Whether or not to disallow shared libs when runtime libs are static
16799allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16800
16801# Whether or not to optimize for fast installation.
16802fast_install=$enable_fast_install
16803
16804# The host system.
16805host_alias=$host_alias
16806host=$host
16807host_os=$host_os
16808
16809# The build system.
16810build_alias=$build_alias
16811build=$build
16812build_os=$build_os
16813
16814# An echo program that does not interpret backslashes.
16815echo=$lt_echo
16816
16817# The archiver.
16818AR=$lt_AR
16819AR_FLAGS=$lt_AR_FLAGS
16820
16821# A C compiler.
16822LTCC=$lt_LTCC
16823
16824# LTCC compiler flags.
16825LTCFLAGS=$lt_LTCFLAGS
16826
16827# A language-specific compiler.
16828CC=$lt_compiler_F77
16829
16830# Is the compiler the GNU C compiler?
16831with_gcc=$GCC_F77
16832
16833# An ERE matcher.
16834EGREP=$lt_EGREP
16835
16836# The linker used to build libraries.
16837LD=$lt_LD_F77
16838
16839# Whether we need hard or soft links.
16840LN_S=$lt_LN_S
16841
16842# A BSD-compatible nm program.
16843NM=$lt_NM
16844
16845# A symbol stripping program
16846STRIP=$lt_STRIP
16847
16848# Used to examine libraries when file_magic_cmd begins "file"
16849MAGIC_CMD=$MAGIC_CMD
16850
16851# Used on cygwin: DLL creation program.
16852DLLTOOL="$DLLTOOL"
16853
16854# Used on cygwin: object dumper.
16855OBJDUMP="$OBJDUMP"
16856
16857# Used on cygwin: assembler.
16858AS="$AS"
16859
16860# The name of the directory that contains temporary libtool files.
16861objdir=$objdir
16862
16863# How to create reloadable object files.
16864reload_flag=$lt_reload_flag
16865reload_cmds=$lt_reload_cmds
16866
16867# How to pass a linker flag through the compiler.
16868wl=$lt_lt_prog_compiler_wl_F77
16869
16870# Object file suffix (normally "o").
16871objext="$ac_objext"
16872
16873# Old archive suffix (normally "a").
16874libext="$libext"
16875
16876# Shared library suffix (normally ".so").
16877shrext_cmds='$shrext_cmds'
16878
16879# Executable file suffix (normally "").
16880exeext="$exeext"
16881
16882# Additional compiler flags for building library objects.
16883pic_flag=$lt_lt_prog_compiler_pic_F77
16884pic_mode=$pic_mode
16885
16886# What is the maximum length of a command?
16887max_cmd_len=$lt_cv_sys_max_cmd_len
16888
16889# Does compiler simultaneously support -c and -o options?
16890compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16891
16892# Must we lock files when doing compilation?
16893need_locks=$lt_need_locks
16894
16895# Do we need the lib prefix for modules?
16896need_lib_prefix=$need_lib_prefix
16897
16898# Do we need a version for libraries?
16899need_version=$need_version
16900
16901# Whether dlopen is supported.
16902dlopen_support=$enable_dlopen
16903
16904# Whether dlopen of programs is supported.
16905dlopen_self=$enable_dlopen_self
16906
16907# Whether dlopen of statically linked programs is supported.
16908dlopen_self_static=$enable_dlopen_self_static
16909
16910# Compiler flag to prevent dynamic linking.
16911link_static_flag=$lt_lt_prog_compiler_static_F77
16912
16913# Compiler flag to turn off builtin functions.
16914no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16915
16916# Compiler flag to allow reflexive dlopens.
16917export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16918
16919# Compiler flag to generate shared objects directly from archives.
16920whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16921
16922# Compiler flag to generate thread-safe objects.
16923thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16924
16925# Library versioning type.
16926version_type=$version_type
16927
16928# Format of library name prefix.
16929libname_spec=$lt_libname_spec
16930
16931# List of archive names.  First name is the real one, the rest are links.
16932# The last name is the one that the linker finds with -lNAME.
16933library_names_spec=$lt_library_names_spec
16934
16935# The coded name of the library, if different from the real name.
16936soname_spec=$lt_soname_spec
16937
16938# Commands used to build and install an old-style archive.
16939RANLIB=$lt_RANLIB
16940old_archive_cmds=$lt_old_archive_cmds_F77
16941old_postinstall_cmds=$lt_old_postinstall_cmds
16942old_postuninstall_cmds=$lt_old_postuninstall_cmds
16943
16944# Create an old-style archive from a shared archive.
16945old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16946
16947# Create a temporary old-style archive to link instead of a shared archive.
16948old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16949
16950# Commands used to build and install a shared archive.
16951archive_cmds=$lt_archive_cmds_F77
16952archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16953postinstall_cmds=$lt_postinstall_cmds
16954postuninstall_cmds=$lt_postuninstall_cmds
16955
16956# Commands used to build a loadable module (assumed same as above if empty)
16957module_cmds=$lt_module_cmds_F77
16958module_expsym_cmds=$lt_module_expsym_cmds_F77
16959
16960# Commands to strip libraries.
16961old_striplib=$lt_old_striplib
16962striplib=$lt_striplib
16963
16964# Dependencies to place before the objects being linked to create a
16965# shared library.
16966predep_objects=$lt_predep_objects_F77
16967
16968# Dependencies to place after the objects being linked to create a
16969# shared library.
16970postdep_objects=$lt_postdep_objects_F77
16971
16972# Dependencies to place before the objects being linked to create a
16973# shared library.
16974predeps=$lt_predeps_F77
16975
16976# Dependencies to place after the objects being linked to create a
16977# shared library.
16978postdeps=$lt_postdeps_F77
16979
16980# The library search path used internally by the compiler when linking
16981# a shared library.
16982compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16983
16984# Method to check whether dependent libraries are shared objects.
16985deplibs_check_method=$lt_deplibs_check_method
16986
16987# Command to use when deplibs_check_method == file_magic.
16988file_magic_cmd=$lt_file_magic_cmd
16989
16990# Flag that allows shared libraries with undefined symbols to be built.
16991allow_undefined_flag=$lt_allow_undefined_flag_F77
16992
16993# Flag that forces no undefined symbols.
16994no_undefined_flag=$lt_no_undefined_flag_F77
16995
16996# Commands used to finish a libtool library installation in a directory.
16997finish_cmds=$lt_finish_cmds
16998
16999# Same as above, but a single script fragment to be evaled but not shown.
17000finish_eval=$lt_finish_eval
17001
17002# Take the output of nm and produce a listing of raw symbols and C names.
17003global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17004
17005# Transform the output of nm in a proper C declaration
17006global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17007
17008# Transform the output of nm in a C name address pair
17009global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17010
17011# This is the shared library runtime path variable.
17012runpath_var=$runpath_var
17013
17014# This is the shared library path variable.
17015shlibpath_var=$shlibpath_var
17016
17017# Is shlibpath searched before the hard-coded library search path?
17018shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17019
17020# How to hardcode a shared library path into an executable.
17021hardcode_action=$hardcode_action_F77
17022
17023# Whether we should hardcode library paths into libraries.
17024hardcode_into_libs=$hardcode_into_libs
17025
17026# Flag to hardcode \$libdir into a binary during linking.
17027# This must work even if \$libdir does not exist.
17028hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17029
17030# If ld is used when linking, flag to hardcode \$libdir into
17031# a binary during linking. This must work even if \$libdir does
17032# not exist.
17033hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17034
17035# Whether we need a single -rpath flag with a separated argument.
17036hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17037
17038# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17039# resulting binary.
17040hardcode_direct=$hardcode_direct_F77
17041
17042# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17043# resulting binary.
17044hardcode_minus_L=$hardcode_minus_L_F77
17045
17046# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17047# the resulting binary.
17048hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17049
17050# Set to yes if building a shared library automatically hardcodes DIR into the library
17051# and all subsequent libraries and executables linked against it.
17052hardcode_automatic=$hardcode_automatic_F77
17053
17054# Variables whose values should be saved in libtool wrapper scripts and
17055# restored at relink time.
17056variables_saved_for_relink="$variables_saved_for_relink"
17057
17058# Whether libtool must link a program against all its dependency libraries.
17059link_all_deplibs=$link_all_deplibs_F77
17060
17061# Compile-time system search path for libraries
17062sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17063
17064# Run-time system search path for libraries
17065sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17066
17067# Fix the shell variable \$srcfile for the compiler.
17068fix_srcfile_path="$fix_srcfile_path_F77"
17069
17070# Set to yes if exported symbols are required.
17071always_export_symbols=$always_export_symbols_F77
17072
17073# The commands to list exported symbols.
17074export_symbols_cmds=$lt_export_symbols_cmds_F77
17075
17076# The commands to extract the exported symbol list from a shared archive.
17077extract_expsyms_cmds=$lt_extract_expsyms_cmds
17078
17079# Symbols that should not be listed in the preloaded symbols.
17080exclude_expsyms=$lt_exclude_expsyms_F77
17081
17082# Symbols that must always be exported.
17083include_expsyms=$lt_include_expsyms_F77
17084
17085# ### END LIBTOOL TAG CONFIG: $tagname
17086
17087__EOF__
17088
17089
17090else
17091  # If there is no Makefile yet, we rely on a make rule to execute
17092  # `config.status --recheck' to rerun these tests and create the
17093  # libtool script then.
17094  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17095  if test -f "$ltmain_in"; then
17096    test -f Makefile && make "$ltmain"
17097  fi
17098fi
17099
17100
17101ac_ext=c
17102ac_cpp='$CPP $CPPFLAGS'
17103ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17104ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17105ac_compiler_gnu=$ac_cv_c_compiler_gnu
17106
17107CC="$lt_save_CC"
17108
17109	else
17110	  tagname=""
17111	fi
17112	;;
17113
17114      GCJ)
17115	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17116
17117
17118
17119# Source file extension for Java test sources.
17120ac_ext=java
17121
17122# Object file extension for compiled Java test sources.
17123objext=o
17124objext_GCJ=$objext
17125
17126# Code to be used in simple compile tests
17127lt_simple_compile_test_code="class foo {}\n"
17128
17129# Code to be used in simple link tests
17130lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17131
17132# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17133
17134# If no C compiler was specified, use CC.
17135LTCC=${LTCC-"$CC"}
17136
17137# If no C compiler flags were specified, use CFLAGS.
17138LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17139
17140# Allow CC to be a program name with arguments.
17141compiler=$CC
17142
17143
17144# save warnings/boilerplate of simple test code
17145ac_outfile=conftest.$ac_objext
17146printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17147eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17148_lt_compiler_boilerplate=`cat conftest.err`
17149$rm conftest*
17150
17151ac_outfile=conftest.$ac_objext
17152printf "$lt_simple_link_test_code" >conftest.$ac_ext
17153eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17154_lt_linker_boilerplate=`cat conftest.err`
17155$rm conftest*
17156
17157
17158# Allow CC to be a program name with arguments.
17159lt_save_CC="$CC"
17160CC=${GCJ-"gcj"}
17161compiler=$CC
17162compiler_GCJ=$CC
17163for cc_temp in $compiler""; do
17164  case $cc_temp in
17165    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17166    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17167    \-*) ;;
17168    *) break;;
17169  esac
17170done
17171cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17172
17173
17174# GCJ did not exist at the time GCC didn't implicitly link libc in.
17175archive_cmds_need_lc_GCJ=no
17176
17177old_archive_cmds_GCJ=$old_archive_cmds
17178
17179## CAVEAT EMPTOR:
17180## There is no encapsulation within the following macros, do not change
17181## the running order or otherwise move them around unless you know exactly
17182## what you are doing...
17183
17184lt_prog_compiler_no_builtin_flag_GCJ=
17185
17186if test "$GCC" = yes; then
17187  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17188
17189
17190echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17191echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
17192if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17193  echo $ECHO_N "(cached) $ECHO_C" >&6
17194else
17195  lt_cv_prog_compiler_rtti_exceptions=no
17196  ac_outfile=conftest.$ac_objext
17197   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17198   lt_compiler_flag="-fno-rtti -fno-exceptions"
17199   # Insert the option either (1) after the last *FLAGS variable, or
17200   # (2) before a word containing "conftest.", or (3) at the end.
17201   # Note that $ac_compile itself does not contain backslashes and begins
17202   # with a dollar sign (not a hyphen), so the echo should work correctly.
17203   # The option is referenced via a variable to avoid confusing sed.
17204   lt_compile=`echo "$ac_compile" | $SED \
17205   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17206   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17207   -e 's:$: $lt_compiler_flag:'`
17208   (eval echo "\"\$as_me:17208: $lt_compile\"" >&5)
17209   (eval "$lt_compile" 2>conftest.err)
17210   ac_status=$?
17211   cat conftest.err >&5
17212   echo "$as_me:17212: \$? = $ac_status" >&5
17213   if (exit $ac_status) && test -s "$ac_outfile"; then
17214     # The compiler can only warn and ignore the option if not recognized
17215     # So say no if there are warnings other than the usual output.
17216     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17217     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17218     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17219       lt_cv_prog_compiler_rtti_exceptions=yes
17220     fi
17221   fi
17222   $rm conftest*
17223
17224fi
17225echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17226echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
17227
17228if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17229    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17230else
17231    :
17232fi
17233
17234fi
17235
17236lt_prog_compiler_wl_GCJ=
17237lt_prog_compiler_pic_GCJ=
17238lt_prog_compiler_static_GCJ=
17239
17240echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17241echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17242
17243  if test "$GCC" = yes; then
17244    lt_prog_compiler_wl_GCJ='-Wl,'
17245    lt_prog_compiler_static_GCJ='-static'
17246
17247    case $host_os in
17248      aix*)
17249      # All AIX code is PIC.
17250      if test "$host_cpu" = ia64; then
17251	# AIX 5 now supports IA64 processor
17252	lt_prog_compiler_static_GCJ='-Bstatic'
17253      fi
17254      ;;
17255
17256    amigaos*)
17257      # FIXME: we need at least 68020 code to build shared libraries, but
17258      # adding the `-m68020' flag to GCC prevents building anything better,
17259      # like `-m68040'.
17260      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17261      ;;
17262
17263    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17264      # PIC is the default for these OSes.
17265      ;;
17266
17267    mingw* | pw32* | os2*)
17268      # This hack is so that the source file can tell whether it is being
17269      # built for inclusion in a dll (and should export symbols for example).
17270      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17271      ;;
17272
17273    darwin* | rhapsody*)
17274      # PIC is the default on this platform
17275      # Common symbols not allowed in MH_DYLIB files
17276      lt_prog_compiler_pic_GCJ='-fno-common'
17277      ;;
17278
17279    interix3*)
17280      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17281      # Instead, we relocate shared libraries at runtime.
17282      ;;
17283
17284    msdosdjgpp*)
17285      # Just because we use GCC doesn't mean we suddenly get shared libraries
17286      # on systems that don't support them.
17287      lt_prog_compiler_can_build_shared_GCJ=no
17288      enable_shared=no
17289      ;;
17290
17291    sysv4*MP*)
17292      if test -d /usr/nec; then
17293	lt_prog_compiler_pic_GCJ=-Kconform_pic
17294      fi
17295      ;;
17296
17297    hpux*)
17298      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17299      # not for PA HP-UX.
17300      case $host_cpu in
17301      hppa*64*|ia64*)
17302	# +Z the default
17303	;;
17304      *)
17305	lt_prog_compiler_pic_GCJ='-fPIC'
17306	;;
17307      esac
17308      ;;
17309
17310    *)
17311      lt_prog_compiler_pic_GCJ='-fPIC'
17312      ;;
17313    esac
17314  else
17315    # PORTME Check for flag to pass linker flags through the system compiler.
17316    case $host_os in
17317    aix*)
17318      lt_prog_compiler_wl_GCJ='-Wl,'
17319      if test "$host_cpu" = ia64; then
17320	# AIX 5 now supports IA64 processor
17321	lt_prog_compiler_static_GCJ='-Bstatic'
17322      else
17323	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17324      fi
17325      ;;
17326      darwin*)
17327        # PIC is the default on this platform
17328        # Common symbols not allowed in MH_DYLIB files
17329       case $cc_basename in
17330         xlc*)
17331         lt_prog_compiler_pic_GCJ='-qnocommon'
17332         lt_prog_compiler_wl_GCJ='-Wl,'
17333         ;;
17334       esac
17335       ;;
17336
17337    mingw* | pw32* | os2*)
17338      # This hack is so that the source file can tell whether it is being
17339      # built for inclusion in a dll (and should export symbols for example).
17340      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17341      ;;
17342
17343    hpux9* | hpux10* | hpux11*)
17344      lt_prog_compiler_wl_GCJ='-Wl,'
17345      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17346      # not for PA HP-UX.
17347      case $host_cpu in
17348      hppa*64*|ia64*)
17349	# +Z the default
17350	;;
17351      *)
17352	lt_prog_compiler_pic_GCJ='+Z'
17353	;;
17354      esac
17355      # Is there a better lt_prog_compiler_static that works with the bundled CC?
17356      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17357      ;;
17358
17359    irix5* | irix6* | nonstopux*)
17360      lt_prog_compiler_wl_GCJ='-Wl,'
17361      # PIC (with -KPIC) is the default.
17362      lt_prog_compiler_static_GCJ='-non_shared'
17363      ;;
17364
17365    newsos6)
17366      lt_prog_compiler_pic_GCJ='-KPIC'
17367      lt_prog_compiler_static_GCJ='-Bstatic'
17368      ;;
17369
17370    linux*)
17371      case $cc_basename in
17372      icc* | ecc*)
17373	lt_prog_compiler_wl_GCJ='-Wl,'
17374	lt_prog_compiler_pic_GCJ='-KPIC'
17375	lt_prog_compiler_static_GCJ='-static'
17376        ;;
17377      pgcc* | pgf77* | pgf90* | pgf95*)
17378        # Portland Group compilers (*not* the Pentium gcc compiler,
17379	# which looks to be a dead project)
17380	lt_prog_compiler_wl_GCJ='-Wl,'
17381	lt_prog_compiler_pic_GCJ='-fpic'
17382	lt_prog_compiler_static_GCJ='-Bstatic'
17383        ;;
17384      ccc*)
17385        lt_prog_compiler_wl_GCJ='-Wl,'
17386        # All Alpha code is PIC.
17387        lt_prog_compiler_static_GCJ='-non_shared'
17388        ;;
17389      esac
17390      ;;
17391
17392    osf3* | osf4* | osf5*)
17393      lt_prog_compiler_wl_GCJ='-Wl,'
17394      # All OSF/1 code is PIC.
17395      lt_prog_compiler_static_GCJ='-non_shared'
17396      ;;
17397
17398    solaris*)
17399      lt_prog_compiler_pic_GCJ='-KPIC'
17400      lt_prog_compiler_static_GCJ='-Bstatic'
17401      case $cc_basename in
17402      f77* | f90* | f95*)
17403	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17404      *)
17405	lt_prog_compiler_wl_GCJ='-Wl,';;
17406      esac
17407      ;;
17408
17409    sunos4*)
17410      lt_prog_compiler_wl_GCJ='-Qoption ld '
17411      lt_prog_compiler_pic_GCJ='-PIC'
17412      lt_prog_compiler_static_GCJ='-Bstatic'
17413      ;;
17414
17415    sysv4 | sysv4.2uw2* | sysv4.3*)
17416      lt_prog_compiler_wl_GCJ='-Wl,'
17417      lt_prog_compiler_pic_GCJ='-KPIC'
17418      lt_prog_compiler_static_GCJ='-Bstatic'
17419      ;;
17420
17421    sysv4*MP*)
17422      if test -d /usr/nec ;then
17423	lt_prog_compiler_pic_GCJ='-Kconform_pic'
17424	lt_prog_compiler_static_GCJ='-Bstatic'
17425      fi
17426      ;;
17427
17428    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17429      lt_prog_compiler_wl_GCJ='-Wl,'
17430      lt_prog_compiler_pic_GCJ='-KPIC'
17431      lt_prog_compiler_static_GCJ='-Bstatic'
17432      ;;
17433
17434    unicos*)
17435      lt_prog_compiler_wl_GCJ='-Wl,'
17436      lt_prog_compiler_can_build_shared_GCJ=no
17437      ;;
17438
17439    uts4*)
17440      lt_prog_compiler_pic_GCJ='-pic'
17441      lt_prog_compiler_static_GCJ='-Bstatic'
17442      ;;
17443
17444    *)
17445      lt_prog_compiler_can_build_shared_GCJ=no
17446      ;;
17447    esac
17448  fi
17449
17450echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17451echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
17452
17453#
17454# Check to make sure the PIC flag actually works.
17455#
17456if test -n "$lt_prog_compiler_pic_GCJ"; then
17457
17458echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17459echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
17460if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17461  echo $ECHO_N "(cached) $ECHO_C" >&6
17462else
17463  lt_prog_compiler_pic_works_GCJ=no
17464  ac_outfile=conftest.$ac_objext
17465   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17466   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17467   # Insert the option either (1) after the last *FLAGS variable, or
17468   # (2) before a word containing "conftest.", or (3) at the end.
17469   # Note that $ac_compile itself does not contain backslashes and begins
17470   # with a dollar sign (not a hyphen), so the echo should work correctly.
17471   # The option is referenced via a variable to avoid confusing sed.
17472   lt_compile=`echo "$ac_compile" | $SED \
17473   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17474   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17475   -e 's:$: $lt_compiler_flag:'`
17476   (eval echo "\"\$as_me:17476: $lt_compile\"" >&5)
17477   (eval "$lt_compile" 2>conftest.err)
17478   ac_status=$?
17479   cat conftest.err >&5
17480   echo "$as_me:17480: \$? = $ac_status" >&5
17481   if (exit $ac_status) && test -s "$ac_outfile"; then
17482     # The compiler can only warn and ignore the option if not recognized
17483     # So say no if there are warnings other than the usual output.
17484     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17485     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17486     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17487       lt_prog_compiler_pic_works_GCJ=yes
17488     fi
17489   fi
17490   $rm conftest*
17491
17492fi
17493echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17494echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
17495
17496if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17497    case $lt_prog_compiler_pic_GCJ in
17498     "" | " "*) ;;
17499     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17500     esac
17501else
17502    lt_prog_compiler_pic_GCJ=
17503     lt_prog_compiler_can_build_shared_GCJ=no
17504fi
17505
17506fi
17507case $host_os in
17508  # For platforms which do not support PIC, -DPIC is meaningless:
17509  *djgpp*)
17510    lt_prog_compiler_pic_GCJ=
17511    ;;
17512  *)
17513    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17514    ;;
17515esac
17516
17517#
17518# Check to make sure the static flag actually works.
17519#
17520wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17521echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17522echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
17523if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17524  echo $ECHO_N "(cached) $ECHO_C" >&6
17525else
17526  lt_prog_compiler_static_works_GCJ=no
17527   save_LDFLAGS="$LDFLAGS"
17528   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17529   printf "$lt_simple_link_test_code" > conftest.$ac_ext
17530   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17531     # The linker can only warn and ignore the option if not recognized
17532     # So say no if there are warnings
17533     if test -s conftest.err; then
17534       # Append any errors to the config.log.
17535       cat conftest.err 1>&5
17536       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17537       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17538       if diff conftest.exp conftest.er2 >/dev/null; then
17539         lt_prog_compiler_static_works_GCJ=yes
17540       fi
17541     else
17542       lt_prog_compiler_static_works_GCJ=yes
17543     fi
17544   fi
17545   $rm conftest*
17546   LDFLAGS="$save_LDFLAGS"
17547
17548fi
17549echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17550echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
17551
17552if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17553    :
17554else
17555    lt_prog_compiler_static_GCJ=
17556fi
17557
17558
17559echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17560echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17561if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17562  echo $ECHO_N "(cached) $ECHO_C" >&6
17563else
17564  lt_cv_prog_compiler_c_o_GCJ=no
17565   $rm -r conftest 2>/dev/null
17566   mkdir conftest
17567   cd conftest
17568   mkdir out
17569   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17570
17571   lt_compiler_flag="-o out/conftest2.$ac_objext"
17572   # Insert the option either (1) after the last *FLAGS variable, or
17573   # (2) before a word containing "conftest.", or (3) at the end.
17574   # Note that $ac_compile itself does not contain backslashes and begins
17575   # with a dollar sign (not a hyphen), so the echo should work correctly.
17576   lt_compile=`echo "$ac_compile" | $SED \
17577   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17578   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17579   -e 's:$: $lt_compiler_flag:'`
17580   (eval echo "\"\$as_me:17580: $lt_compile\"" >&5)
17581   (eval "$lt_compile" 2>out/conftest.err)
17582   ac_status=$?
17583   cat out/conftest.err >&5
17584   echo "$as_me:17584: \$? = $ac_status" >&5
17585   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17586   then
17587     # The compiler can only warn and ignore the option if not recognized
17588     # So say no if there are warnings
17589     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17590     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17591     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17592       lt_cv_prog_compiler_c_o_GCJ=yes
17593     fi
17594   fi
17595   chmod u+w . 2>&5
17596   $rm conftest*
17597   # SGI C++ compiler will create directory out/ii_files/ for
17598   # template instantiation
17599   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17600   $rm out/* && rmdir out
17601   cd ..
17602   rmdir conftest
17603   $rm conftest*
17604
17605fi
17606echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17607echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
17608
17609
17610hard_links="nottested"
17611if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17612  # do not overwrite the value of need_locks provided by the user
17613  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17614echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17615  hard_links=yes
17616  $rm conftest*
17617  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17618  touch conftest.a
17619  ln conftest.a conftest.b 2>&5 || hard_links=no
17620  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17621  echo "$as_me:$LINENO: result: $hard_links" >&5
17622echo "${ECHO_T}$hard_links" >&6
17623  if test "$hard_links" = no; then
17624    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17625echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17626    need_locks=warn
17627  fi
17628else
17629  need_locks=no
17630fi
17631
17632echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17633echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17634
17635  runpath_var=
17636  allow_undefined_flag_GCJ=
17637  enable_shared_with_static_runtimes_GCJ=no
17638  archive_cmds_GCJ=
17639  archive_expsym_cmds_GCJ=
17640  old_archive_From_new_cmds_GCJ=
17641  old_archive_from_expsyms_cmds_GCJ=
17642  export_dynamic_flag_spec_GCJ=
17643  whole_archive_flag_spec_GCJ=
17644  thread_safe_flag_spec_GCJ=
17645  hardcode_libdir_flag_spec_GCJ=
17646  hardcode_libdir_flag_spec_ld_GCJ=
17647  hardcode_libdir_separator_GCJ=
17648  hardcode_direct_GCJ=no
17649  hardcode_minus_L_GCJ=no
17650  hardcode_shlibpath_var_GCJ=unsupported
17651  link_all_deplibs_GCJ=unknown
17652  hardcode_automatic_GCJ=no
17653  module_cmds_GCJ=
17654  module_expsym_cmds_GCJ=
17655  always_export_symbols_GCJ=no
17656  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17657  # include_expsyms should be a list of space-separated symbols to be *always*
17658  # included in the symbol list
17659  include_expsyms_GCJ=
17660  # exclude_expsyms can be an extended regexp of symbols to exclude
17661  # it will be wrapped by ` (' and `)$', so one must not match beginning or
17662  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17663  # as well as any symbol that contains `d'.
17664  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17665  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17666  # platforms (ab)use it in PIC code, but their linkers get confused if
17667  # the symbol is explicitly referenced.  Since portable code cannot
17668  # rely on this symbol name, it's probably fine to never include it in
17669  # preloaded symbol tables.
17670  extract_expsyms_cmds=
17671  # Just being paranoid about ensuring that cc_basename is set.
17672  for cc_temp in $compiler""; do
17673  case $cc_temp in
17674    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17675    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17676    \-*) ;;
17677    *) break;;
17678  esac
17679done
17680cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17681
17682  case $host_os in
17683  cygwin* | mingw* | pw32*)
17684    # FIXME: the MSVC++ port hasn't been tested in a loooong time
17685    # When not using gcc, we currently assume that we are using
17686    # Microsoft Visual C++.
17687    if test "$GCC" != yes; then
17688      with_gnu_ld=no
17689    fi
17690    ;;
17691  interix*)
17692    # we just hope/assume this is gcc and not c89 (= MSVC++)
17693    with_gnu_ld=yes
17694    ;;
17695  openbsd*)
17696    with_gnu_ld=no
17697    ;;
17698  esac
17699
17700  ld_shlibs_GCJ=yes
17701  if test "$with_gnu_ld" = yes; then
17702    # If archive_cmds runs LD, not CC, wlarc should be empty
17703    wlarc='${wl}'
17704
17705    # Set some defaults for GNU ld with shared library support. These
17706    # are reset later if shared libraries are not supported. Putting them
17707    # here allows them to be overridden if necessary.
17708    runpath_var=LD_RUN_PATH
17709    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17710    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17711    # ancient GNU ld didn't support --whole-archive et. al.
17712    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17713	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17714      else
17715  	whole_archive_flag_spec_GCJ=
17716    fi
17717    supports_anon_versioning=no
17718    case `$LD -v 2>/dev/null` in
17719      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17720      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17721      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17722      *\ 2.11.*) ;; # other 2.11 versions
17723      *) supports_anon_versioning=yes ;;
17724    esac
17725
17726    # See if GNU ld supports shared libraries.
17727    case $host_os in
17728    aix3* | aix4* | aix5*)
17729      # On AIX/PPC, the GNU linker is very broken
17730      if test "$host_cpu" != ia64; then
17731	ld_shlibs_GCJ=no
17732	cat <<EOF 1>&2
17733
17734*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17735*** to be unable to reliably create shared libraries on AIX.
17736*** Therefore, libtool is disabling shared libraries support.  If you
17737*** really care for shared libraries, you may want to modify your PATH
17738*** so that a non-GNU linker is found, and then restart.
17739
17740EOF
17741      fi
17742      ;;
17743
17744    amigaos*)
17745      archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17746      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17747      hardcode_minus_L_GCJ=yes
17748
17749      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17750      # that the semantics of dynamic libraries on AmigaOS, at least up
17751      # to version 4, is to share data among multiple programs linked
17752      # with the same dynamic library.  Since this doesn't match the
17753      # behavior of shared libraries on other platforms, we can't use
17754      # them.
17755      ld_shlibs_GCJ=no
17756      ;;
17757
17758    beos*)
17759      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17760	allow_undefined_flag_GCJ=unsupported
17761	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17762	# support --undefined.  This deserves some investigation.  FIXME
17763	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17764      else
17765	ld_shlibs_GCJ=no
17766      fi
17767      ;;
17768
17769    cygwin* | mingw* | pw32*)
17770      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17771      # as there is no search path for DLLs.
17772      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17773      allow_undefined_flag_GCJ=unsupported
17774      always_export_symbols_GCJ=no
17775      enable_shared_with_static_runtimes_GCJ=yes
17776      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17777
17778      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17779        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17780	# If the export-symbols file already is a .def file (1st line
17781	# is EXPORTS), use it as is; otherwise, prepend...
17782	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17783	  cp $export_symbols $output_objdir/$soname.def;
17784	else
17785	  echo EXPORTS > $output_objdir/$soname.def;
17786	  cat $export_symbols >> $output_objdir/$soname.def;
17787	fi~
17788	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17789      else
17790	ld_shlibs_GCJ=no
17791      fi
17792      ;;
17793
17794    interix3*)
17795      hardcode_direct_GCJ=no
17796      hardcode_shlibpath_var_GCJ=no
17797      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17798      export_dynamic_flag_spec_GCJ='${wl}-E'
17799      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17800      # Instead, shared libraries are loaded at an image base (0x10000000 by
17801      # default) and relocated if they conflict, which is a slow very memory
17802      # consuming and fragmenting process.  To avoid this, we pick a random,
17803      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17804      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17805      archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17806      archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17807      ;;
17808
17809    linux*)
17810      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17811	tmp_addflag=
17812	case $cc_basename,$host_cpu in
17813	pgcc*)				# Portland Group C compiler
17814	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17815	  tmp_addflag=' $pic_flag'
17816	  ;;
17817	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
17818	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17819	  tmp_addflag=' $pic_flag -Mnomain' ;;
17820	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
17821	  tmp_addflag=' -i_dynamic' ;;
17822	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
17823	  tmp_addflag=' -i_dynamic -nofor_main' ;;
17824	ifc* | ifort*)			# Intel Fortran compiler
17825	  tmp_addflag=' -nofor_main' ;;
17826	esac
17827	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17828
17829	if test $supports_anon_versioning = yes; then
17830	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17831  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17832  $echo "local: *; };" >> $output_objdir/$libname.ver~
17833	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17834	fi
17835      else
17836	ld_shlibs_GCJ=no
17837      fi
17838      ;;
17839
17840    netbsd*)
17841      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17842	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17843	wlarc=
17844      else
17845	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17846	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17847      fi
17848      ;;
17849
17850    solaris*)
17851      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17852	ld_shlibs_GCJ=no
17853	cat <<EOF 1>&2
17854
17855*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17856*** create shared libraries on Solaris systems.  Therefore, libtool
17857*** is disabling shared libraries support.  We urge you to upgrade GNU
17858*** binutils to release 2.9.1 or newer.  Another option is to modify
17859*** your PATH or compiler configuration so that the native linker is
17860*** used, and then restart.
17861
17862EOF
17863      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17864	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17865	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17866      else
17867	ld_shlibs_GCJ=no
17868      fi
17869      ;;
17870
17871    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17872      case `$LD -v 2>&1` in
17873        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17874	ld_shlibs_GCJ=no
17875	cat <<_LT_EOF 1>&2
17876
17877*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17878*** reliably create shared libraries on SCO systems.  Therefore, libtool
17879*** is disabling shared libraries support.  We urge you to upgrade GNU
17880*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17881*** your PATH or compiler configuration so that the native linker is
17882*** used, and then restart.
17883
17884_LT_EOF
17885	;;
17886	*)
17887	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17888	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17889	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17890	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17891	  else
17892	    ld_shlibs_GCJ=no
17893	  fi
17894	;;
17895      esac
17896      ;;
17897
17898    sunos4*)
17899      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17900      wlarc=
17901      hardcode_direct_GCJ=yes
17902      hardcode_shlibpath_var_GCJ=no
17903      ;;
17904
17905    *)
17906      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17907	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17908	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17909      else
17910	ld_shlibs_GCJ=no
17911      fi
17912      ;;
17913    esac
17914
17915    if test "$ld_shlibs_GCJ" = no; then
17916      runpath_var=
17917      hardcode_libdir_flag_spec_GCJ=
17918      export_dynamic_flag_spec_GCJ=
17919      whole_archive_flag_spec_GCJ=
17920    fi
17921  else
17922    # PORTME fill in a description of your system's linker (not GNU ld)
17923    case $host_os in
17924    aix3*)
17925      allow_undefined_flag_GCJ=unsupported
17926      always_export_symbols_GCJ=yes
17927      archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17928      # Note: this linker hardcodes the directories in LIBPATH if there
17929      # are no directories specified by -L.
17930      hardcode_minus_L_GCJ=yes
17931      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17932	# Neither direct hardcoding nor static linking is supported with a
17933	# broken collect2.
17934	hardcode_direct_GCJ=unsupported
17935      fi
17936      ;;
17937
17938    aix4* | aix5*)
17939      if test "$host_cpu" = ia64; then
17940	# On IA64, the linker does run time linking by default, so we don't
17941	# have to do anything special.
17942	aix_use_runtimelinking=no
17943	exp_sym_flag='-Bexport'
17944	no_entry_flag=""
17945      else
17946	# If we're using GNU nm, then we don't want the "-C" option.
17947	# -C means demangle to AIX nm, but means don't demangle with GNU nm
17948	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17949	  export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17950	else
17951	  export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17952	fi
17953	aix_use_runtimelinking=no
17954
17955	# Test if we are trying to use run time linking or normal
17956	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17957	# need to do runtime linking.
17958	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17959	  for ld_flag in $LDFLAGS; do
17960  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17961  	    aix_use_runtimelinking=yes
17962  	    break
17963  	  fi
17964	  done
17965	  ;;
17966	esac
17967
17968	exp_sym_flag='-bexport'
17969	no_entry_flag='-bnoentry'
17970      fi
17971
17972      # When large executables or shared objects are built, AIX ld can
17973      # have problems creating the table of contents.  If linking a library
17974      # or program results in "error TOC overflow" add -mminimal-toc to
17975      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17976      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17977
17978      archive_cmds_GCJ=''
17979      hardcode_direct_GCJ=yes
17980      hardcode_libdir_separator_GCJ=':'
17981      link_all_deplibs_GCJ=yes
17982
17983      if test "$GCC" = yes; then
17984	case $host_os in aix4.[012]|aix4.[012].*)
17985	# We only want to do this on AIX 4.2 and lower, the check
17986	# below for broken collect2 doesn't work under 4.3+
17987	  collect2name=`${CC} -print-prog-name=collect2`
17988	  if test -f "$collect2name" && \
17989  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
17990	  then
17991  	  # We have reworked collect2
17992  	  hardcode_direct_GCJ=yes
17993	  else
17994  	  # We have old collect2
17995  	  hardcode_direct_GCJ=unsupported
17996  	  # It fails to find uninstalled libraries when the uninstalled
17997  	  # path is not listed in the libpath.  Setting hardcode_minus_L
17998  	  # to unsupported forces relinking
17999  	  hardcode_minus_L_GCJ=yes
18000  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
18001  	  hardcode_libdir_separator_GCJ=
18002	  fi
18003	  ;;
18004	esac
18005	shared_flag='-shared'
18006	if test "$aix_use_runtimelinking" = yes; then
18007	  shared_flag="$shared_flag "'${wl}-G'
18008	fi
18009      else
18010	# not using gcc
18011	if test "$host_cpu" = ia64; then
18012  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18013  	# chokes on -Wl,-G. The following line is correct:
18014	  shared_flag='-G'
18015	else
18016	  if test "$aix_use_runtimelinking" = yes; then
18017	    shared_flag='${wl}-G'
18018	  else
18019	    shared_flag='${wl}-bM:SRE'
18020	  fi
18021	fi
18022      fi
18023
18024      # It seems that -bexpall does not export symbols beginning with
18025      # underscore (_), so it is better to generate a list of symbols to export.
18026      always_export_symbols_GCJ=yes
18027      if test "$aix_use_runtimelinking" = yes; then
18028	# Warning - without using the other runtime loading flags (-brtl),
18029	# -berok will link without error, but may produce a broken library.
18030	allow_undefined_flag_GCJ='-berok'
18031       # Determine the default libpath from the value encoded in an empty executable.
18032       cat >conftest.$ac_ext <<_ACEOF
18033/* confdefs.h.  */
18034_ACEOF
18035cat confdefs.h >>conftest.$ac_ext
18036cat >>conftest.$ac_ext <<_ACEOF
18037/* end confdefs.h.  */
18038
18039int
18040main ()
18041{
18042
18043  ;
18044  return 0;
18045}
18046_ACEOF
18047rm -f conftest.$ac_objext conftest$ac_exeext
18048if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18049  (eval $ac_link) 2>conftest.er1
18050  ac_status=$?
18051  grep -v '^ *+' conftest.er1 >conftest.err
18052  rm -f conftest.er1
18053  cat conftest.err >&5
18054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18055  (exit $ac_status); } &&
18056	 { ac_try='test -z "$ac_c_werror_flag"
18057			 || test ! -s conftest.err'
18058  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18059  (eval $ac_try) 2>&5
18060  ac_status=$?
18061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18062  (exit $ac_status); }; } &&
18063	 { ac_try='test -s conftest$ac_exeext'
18064  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18065  (eval $ac_try) 2>&5
18066  ac_status=$?
18067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18068  (exit $ac_status); }; }; then
18069
18070aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18071}'`
18072# Check for a 64-bit object if we didn't find anything.
18073if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18074}'`; fi
18075else
18076  echo "$as_me: failed program was:" >&5
18077sed 's/^/| /' conftest.$ac_ext >&5
18078
18079fi
18080rm -f conftest.err conftest.$ac_objext \
18081      conftest$ac_exeext conftest.$ac_ext
18082if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18083
18084       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18085	archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
18086       else
18087	if test "$host_cpu" = ia64; then
18088	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18089	  allow_undefined_flag_GCJ="-z nodefs"
18090	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
18091	else
18092	 # Determine the default libpath from the value encoded in an empty executable.
18093	 cat >conftest.$ac_ext <<_ACEOF
18094/* confdefs.h.  */
18095_ACEOF
18096cat confdefs.h >>conftest.$ac_ext
18097cat >>conftest.$ac_ext <<_ACEOF
18098/* end confdefs.h.  */
18099
18100int
18101main ()
18102{
18103
18104  ;
18105  return 0;
18106}
18107_ACEOF
18108rm -f conftest.$ac_objext conftest$ac_exeext
18109if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18110  (eval $ac_link) 2>conftest.er1
18111  ac_status=$?
18112  grep -v '^ *+' conftest.er1 >conftest.err
18113  rm -f conftest.er1
18114  cat conftest.err >&5
18115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18116  (exit $ac_status); } &&
18117	 { ac_try='test -z "$ac_c_werror_flag"
18118			 || test ! -s conftest.err'
18119  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18120  (eval $ac_try) 2>&5
18121  ac_status=$?
18122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18123  (exit $ac_status); }; } &&
18124	 { ac_try='test -s conftest$ac_exeext'
18125  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18126  (eval $ac_try) 2>&5
18127  ac_status=$?
18128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18129  (exit $ac_status); }; }; then
18130
18131aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18132}'`
18133# Check for a 64-bit object if we didn't find anything.
18134if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18135}'`; fi
18136else
18137  echo "$as_me: failed program was:" >&5
18138sed 's/^/| /' conftest.$ac_ext >&5
18139
18140fi
18141rm -f conftest.err conftest.$ac_objext \
18142      conftest$ac_exeext conftest.$ac_ext
18143if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18144
18145	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18146	  # Warning - without using the other run time loading flags,
18147	  # -berok will link without error, but may produce a broken library.
18148	  no_undefined_flag_GCJ=' ${wl}-bernotok'
18149	  allow_undefined_flag_GCJ=' ${wl}-berok'
18150	  # Exported symbols can be pulled into shared objects from archives
18151	  whole_archive_flag_spec_GCJ='$convenience'
18152	  archive_cmds_need_lc_GCJ=yes
18153	  # This is similar to how AIX traditionally builds its shared libraries.
18154	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
18155	fi
18156      fi
18157      ;;
18158
18159    amigaos*)
18160      archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
18161      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18162      hardcode_minus_L_GCJ=yes
18163      # see comment about different semantics on the GNU ld section
18164      ld_shlibs_GCJ=no
18165      ;;
18166
18167    bsdi[45]*)
18168      export_dynamic_flag_spec_GCJ=-rdynamic
18169      ;;
18170
18171    cygwin* | mingw* | pw32*)
18172      # When not using gcc, we currently assume that we are using
18173      # Microsoft Visual C++.
18174      # hardcode_libdir_flag_spec is actually meaningless, as there is
18175      # no search path for DLLs.
18176      hardcode_libdir_flag_spec_GCJ=' '
18177      allow_undefined_flag_GCJ=unsupported
18178      # Tell ltmain to make .lib files, not .a files.
18179      libext=lib
18180      # Tell ltmain to make .dll files, not .so files.
18181      shrext_cmds=".dll"
18182      # FIXME: Setting linknames here is a bad hack.
18183      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18184      # The linker will automatically build a .lib file if we build a DLL.
18185      old_archive_From_new_cmds_GCJ='true'
18186      # FIXME: Should let the user specify the lib program.
18187      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18188      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18189      enable_shared_with_static_runtimes_GCJ=yes
18190      ;;
18191
18192    darwin* | rhapsody*)
18193      case $host_os in
18194        rhapsody* | darwin1.[012])
18195         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18196         ;;
18197       *) # Darwin 1.3 on
18198         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18199           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18200         else
18201           case ${MACOSX_DEPLOYMENT_TARGET} in
18202             10.[012])
18203               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18204               ;;
18205             10.*)
18206               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18207               ;;
18208           esac
18209         fi
18210         ;;
18211      esac
18212      archive_cmds_need_lc_GCJ=no
18213      hardcode_direct_GCJ=no
18214      hardcode_automatic_GCJ=yes
18215      hardcode_shlibpath_var_GCJ=unsupported
18216      whole_archive_flag_spec_GCJ=''
18217      link_all_deplibs_GCJ=yes
18218    if test "$GCC" = yes ; then
18219    	output_verbose_link_cmd='echo'
18220        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18221      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18222      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18223      archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18224      module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18225    else
18226      case $cc_basename in
18227        xlc*)
18228         output_verbose_link_cmd='echo'
18229         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18230         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18231          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18232         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18233          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18234          ;;
18235       *)
18236         ld_shlibs_GCJ=no
18237          ;;
18238      esac
18239    fi
18240      ;;
18241
18242    dgux*)
18243      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18244      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18245      hardcode_shlibpath_var_GCJ=no
18246      ;;
18247
18248    freebsd1*)
18249      ld_shlibs_GCJ=no
18250      ;;
18251
18252    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18253    # support.  Future versions do this automatically, but an explicit c++rt0.o
18254    # does not break anything, and helps significantly (at the cost of a little
18255    # extra space).
18256    freebsd2.2*)
18257      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18258      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18259      hardcode_direct_GCJ=yes
18260      hardcode_shlibpath_var_GCJ=no
18261      ;;
18262
18263    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18264    freebsd2*)
18265      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18266      hardcode_direct_GCJ=yes
18267      hardcode_minus_L_GCJ=yes
18268      hardcode_shlibpath_var_GCJ=no
18269      ;;
18270
18271    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18272    freebsd* | kfreebsd*-gnu | dragonfly*)
18273      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18274      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18275      hardcode_direct_GCJ=yes
18276      hardcode_shlibpath_var_GCJ=no
18277      ;;
18278
18279    hpux9*)
18280      if test "$GCC" = yes; then
18281	archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
18282      else
18283	archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
18284      fi
18285      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18286      hardcode_libdir_separator_GCJ=:
18287      hardcode_direct_GCJ=yes
18288
18289      # hardcode_minus_L: Not really in the search PATH,
18290      # but as the default location of the library.
18291      hardcode_minus_L_GCJ=yes
18292      export_dynamic_flag_spec_GCJ='${wl}-E'
18293      ;;
18294
18295    hpux10*)
18296      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18297	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18298      else
18299	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18300      fi
18301      if test "$with_gnu_ld" = no; then
18302	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18303	hardcode_libdir_separator_GCJ=:
18304
18305	hardcode_direct_GCJ=yes
18306	export_dynamic_flag_spec_GCJ='${wl}-E'
18307
18308	# hardcode_minus_L: Not really in the search PATH,
18309	# but as the default location of the library.
18310	hardcode_minus_L_GCJ=yes
18311      fi
18312      ;;
18313
18314    hpux11*)
18315      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18316	case $host_cpu in
18317	hppa*64*)
18318	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18319	  ;;
18320	ia64*)
18321	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18322	  ;;
18323	*)
18324	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18325	  ;;
18326	esac
18327      else
18328	case $host_cpu in
18329	hppa*64*)
18330	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18331	  ;;
18332	ia64*)
18333	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18334	  ;;
18335	*)
18336	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18337	  ;;
18338	esac
18339      fi
18340      if test "$with_gnu_ld" = no; then
18341	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18342	hardcode_libdir_separator_GCJ=:
18343
18344	case $host_cpu in
18345	hppa*64*|ia64*)
18346	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18347	  hardcode_direct_GCJ=no
18348	  hardcode_shlibpath_var_GCJ=no
18349	  ;;
18350	*)
18351	  hardcode_direct_GCJ=yes
18352	  export_dynamic_flag_spec_GCJ='${wl}-E'
18353
18354	  # hardcode_minus_L: Not really in the search PATH,
18355	  # but as the default location of the library.
18356	  hardcode_minus_L_GCJ=yes
18357	  ;;
18358	esac
18359      fi
18360      ;;
18361
18362    irix5* | irix6* | nonstopux*)
18363      if test "$GCC" = yes; then
18364	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18365      else
18366	archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18367	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18368      fi
18369      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18370      hardcode_libdir_separator_GCJ=:
18371      link_all_deplibs_GCJ=yes
18372      ;;
18373
18374    netbsd*)
18375      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18376	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18377      else
18378	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18379      fi
18380      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18381      hardcode_direct_GCJ=yes
18382      hardcode_shlibpath_var_GCJ=no
18383      ;;
18384
18385    newsos6)
18386      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18387      hardcode_direct_GCJ=yes
18388      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18389      hardcode_libdir_separator_GCJ=:
18390      hardcode_shlibpath_var_GCJ=no
18391      ;;
18392
18393    openbsd*)
18394      hardcode_direct_GCJ=yes
18395      hardcode_shlibpath_var_GCJ=no
18396      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18397	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18398	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18399	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18400	export_dynamic_flag_spec_GCJ='${wl}-E'
18401      else
18402       case $host_os in
18403	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18404	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18405	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
18406	   ;;
18407	 *)
18408	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18409	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18410	   ;;
18411       esac
18412      fi
18413      ;;
18414
18415    os2*)
18416      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18417      hardcode_minus_L_GCJ=yes
18418      allow_undefined_flag_GCJ=unsupported
18419      archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
18420      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18421      ;;
18422
18423    osf3*)
18424      if test "$GCC" = yes; then
18425	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18426	archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18427      else
18428	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18429	archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18430      fi
18431      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18432      hardcode_libdir_separator_GCJ=:
18433      ;;
18434
18435    osf4* | osf5*)	# as osf3* with the addition of -msym flag
18436      if test "$GCC" = yes; then
18437	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18438	archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18439	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18440      else
18441	allow_undefined_flag_GCJ=' -expect_unresolved \*'
18442	archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
18443	archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
18444	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
18445
18446	# Both c and cxx compiler support -rpath directly
18447	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18448      fi
18449      hardcode_libdir_separator_GCJ=:
18450      ;;
18451
18452    solaris*)
18453      no_undefined_flag_GCJ=' -z text'
18454      if test "$GCC" = yes; then
18455	wlarc='${wl}'
18456	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18457	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18458	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18459      else
18460	wlarc=''
18461	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18462	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18463  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18464      fi
18465      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18466      hardcode_shlibpath_var_GCJ=no
18467      case $host_os in
18468      solaris2.[0-5] | solaris2.[0-5].*) ;;
18469      *)
18470 	# The compiler driver will combine linker options so we
18471 	# cannot just pass the convience library names through
18472 	# without $wl, iff we do not link with $LD.
18473 	# Luckily, gcc supports the same syntax we need for Sun Studio.
18474 	# Supported since Solaris 2.6 (maybe 2.5.1?)
18475 	case $wlarc in
18476 	'')
18477 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18478 	*)
18479 	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
18480 	esac ;;
18481      esac
18482      link_all_deplibs_GCJ=yes
18483      ;;
18484
18485    sunos4*)
18486      if test "x$host_vendor" = xsequent; then
18487	# Use $CC to link under sequent, because it throws in some extra .o
18488	# files that make .init and .fini sections work.
18489	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18490      else
18491	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18492      fi
18493      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18494      hardcode_direct_GCJ=yes
18495      hardcode_minus_L_GCJ=yes
18496      hardcode_shlibpath_var_GCJ=no
18497      ;;
18498
18499    sysv4)
18500      case $host_vendor in
18501	sni)
18502	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18503	  hardcode_direct_GCJ=yes # is this really true???
18504	;;
18505	siemens)
18506	  ## LD is ld it makes a PLAMLIB
18507	  ## CC just makes a GrossModule.
18508	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18509	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18510	  hardcode_direct_GCJ=no
18511        ;;
18512	motorola)
18513	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18514	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18515	;;
18516      esac
18517      runpath_var='LD_RUN_PATH'
18518      hardcode_shlibpath_var_GCJ=no
18519      ;;
18520
18521    sysv4.3*)
18522      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18523      hardcode_shlibpath_var_GCJ=no
18524      export_dynamic_flag_spec_GCJ='-Bexport'
18525      ;;
18526
18527    sysv4*MP*)
18528      if test -d /usr/nec; then
18529	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18530	hardcode_shlibpath_var_GCJ=no
18531	runpath_var=LD_RUN_PATH
18532	hardcode_runpath_var=yes
18533	ld_shlibs_GCJ=yes
18534      fi
18535      ;;
18536
18537    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18538      no_undefined_flag_GCJ='${wl}-z,text'
18539      archive_cmds_need_lc_GCJ=no
18540      hardcode_shlibpath_var_GCJ=no
18541      runpath_var='LD_RUN_PATH'
18542
18543      if test "$GCC" = yes; then
18544	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18545	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18546      else
18547	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18548	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18549      fi
18550      ;;
18551
18552    sysv5* | sco3.2v5* | sco5v6*)
18553      # Note: We can NOT use -z defs as we might desire, because we do not
18554      # link with -lc, and that would cause any symbols used from libc to
18555      # always be unresolved, which means just about no library would
18556      # ever link correctly.  If we're not using GNU ld we use -z text
18557      # though, which does catch some bad symbols but isn't as heavy-handed
18558      # as -z defs.
18559      no_undefined_flag_GCJ='${wl}-z,text'
18560      allow_undefined_flag_GCJ='${wl}-z,nodefs'
18561      archive_cmds_need_lc_GCJ=no
18562      hardcode_shlibpath_var_GCJ=no
18563      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18564      hardcode_libdir_separator_GCJ=':'
18565      link_all_deplibs_GCJ=yes
18566      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18567      runpath_var='LD_RUN_PATH'
18568
18569      if test "$GCC" = yes; then
18570	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18571	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18572      else
18573	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18574	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18575      fi
18576      ;;
18577
18578    uts4*)
18579      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18580      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18581      hardcode_shlibpath_var_GCJ=no
18582      ;;
18583
18584    *)
18585      ld_shlibs_GCJ=no
18586      ;;
18587    esac
18588  fi
18589
18590echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18591echo "${ECHO_T}$ld_shlibs_GCJ" >&6
18592test "$ld_shlibs_GCJ" = no && can_build_shared=no
18593
18594#
18595# Do we need to explicitly link libc?
18596#
18597case "x$archive_cmds_need_lc_GCJ" in
18598x|xyes)
18599  # Assume -lc should be added
18600  archive_cmds_need_lc_GCJ=yes
18601
18602  if test "$enable_shared" = yes && test "$GCC" = yes; then
18603    case $archive_cmds_GCJ in
18604    *'~'*)
18605      # FIXME: we may have to deal with multi-command sequences.
18606      ;;
18607    '$CC '*)
18608      # Test whether the compiler implicitly links with -lc since on some
18609      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18610      # to ld, don't add -lc before -lgcc.
18611      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18612echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18613      $rm conftest*
18614      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18615
18616      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18617  (eval $ac_compile) 2>&5
18618  ac_status=$?
18619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18620  (exit $ac_status); } 2>conftest.err; then
18621        soname=conftest
18622        lib=conftest
18623        libobjs=conftest.$ac_objext
18624        deplibs=
18625        wl=$lt_prog_compiler_wl_GCJ
18626	pic_flag=$lt_prog_compiler_pic_GCJ
18627        compiler_flags=-v
18628        linker_flags=-v
18629        verstring=
18630        output_objdir=.
18631        libname=conftest
18632        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18633        allow_undefined_flag_GCJ=
18634        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18635  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18636  ac_status=$?
18637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18638  (exit $ac_status); }
18639        then
18640	  archive_cmds_need_lc_GCJ=no
18641        else
18642	  archive_cmds_need_lc_GCJ=yes
18643        fi
18644        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18645      else
18646        cat conftest.err 1>&5
18647      fi
18648      $rm conftest*
18649      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18650echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
18651      ;;
18652    esac
18653  fi
18654  ;;
18655esac
18656
18657echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18658echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18659library_names_spec=
18660libname_spec='lib$name'
18661soname_spec=
18662shrext_cmds=".so"
18663postinstall_cmds=
18664postuninstall_cmds=
18665finish_cmds=
18666finish_eval=
18667shlibpath_var=
18668shlibpath_overrides_runpath=unknown
18669version_type=none
18670dynamic_linker="$host_os ld.so"
18671sys_lib_dlsearch_path_spec="/lib /usr/lib"
18672if test "$GCC" = yes; then
18673  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18674  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18675    # if the path contains ";" then we assume it to be the separator
18676    # otherwise default to the standard path separator (i.e. ":") - it is
18677    # assumed that no part of a normal pathname contains ";" but that should
18678    # okay in the real world where ";" in dirpaths is itself problematic.
18679    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18680  else
18681    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18682  fi
18683else
18684  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18685fi
18686need_lib_prefix=unknown
18687hardcode_into_libs=no
18688
18689# when you set need_version to no, make sure it does not cause -set_version
18690# flags to be left without arguments
18691need_version=unknown
18692
18693case $host_os in
18694aix3*)
18695  version_type=linux
18696  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18697  shlibpath_var=LIBPATH
18698
18699  # AIX 3 has no versioning support, so we append a major version to the name.
18700  soname_spec='${libname}${release}${shared_ext}$major'
18701  ;;
18702
18703aix4* | aix5*)
18704  version_type=linux
18705  need_lib_prefix=no
18706  need_version=no
18707  hardcode_into_libs=yes
18708  if test "$host_cpu" = ia64; then
18709    # AIX 5 supports IA64
18710    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18711    shlibpath_var=LD_LIBRARY_PATH
18712  else
18713    # With GCC up to 2.95.x, collect2 would create an import file
18714    # for dependence libraries.  The import file would start with
18715    # the line `#! .'.  This would cause the generated library to
18716    # depend on `.', always an invalid library.  This was fixed in
18717    # development snapshots of GCC prior to 3.0.
18718    case $host_os in
18719      aix4 | aix4.[01] | aix4.[01].*)
18720      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18721	   echo ' yes '
18722	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18723	:
18724      else
18725	can_build_shared=no
18726      fi
18727      ;;
18728    esac
18729    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18730    # soname into executable. Probably we can add versioning support to
18731    # collect2, so additional links can be useful in future.
18732    if test "$aix_use_runtimelinking" = yes; then
18733      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18734      # instead of lib<name>.a to let people know that these are not
18735      # typical AIX shared libraries.
18736      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18737    else
18738      # We preserve .a as extension for shared libraries through AIX4.2
18739      # and later when we are not doing run time linking.
18740      library_names_spec='${libname}${release}.a $libname.a'
18741      soname_spec='${libname}${release}${shared_ext}$major'
18742    fi
18743    shlibpath_var=LIBPATH
18744  fi
18745  ;;
18746
18747amigaos*)
18748  library_names_spec='$libname.ixlibrary $libname.a'
18749  # Create ${libname}_ixlibrary.a entries in /sys/libs.
18750  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
18751  ;;
18752
18753beos*)
18754  library_names_spec='${libname}${shared_ext}'
18755  dynamic_linker="$host_os ld.so"
18756  shlibpath_var=LIBRARY_PATH
18757  ;;
18758
18759bsdi[45]*)
18760  version_type=linux
18761  need_version=no
18762  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18763  soname_spec='${libname}${release}${shared_ext}$major'
18764  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18765  shlibpath_var=LD_LIBRARY_PATH
18766  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18767  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18768  # the default ld.so.conf also contains /usr/contrib/lib and
18769  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18770  # libtool to hard-code these into programs
18771  ;;
18772
18773cygwin* | mingw* | pw32*)
18774  version_type=windows
18775  shrext_cmds=".dll"
18776  need_version=no
18777  need_lib_prefix=no
18778
18779  case $GCC,$host_os in
18780  yes,cygwin* | yes,mingw* | yes,pw32*)
18781    library_names_spec='$libname.dll.a'
18782    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18783    postinstall_cmds='base_file=`basename \${file}`~
18784      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18785      dldir=$destdir/`dirname \$dlpath`~
18786      test -d \$dldir || mkdir -p \$dldir~
18787      $install_prog $dir/$dlname \$dldir/$dlname~
18788      chmod a+x \$dldir/$dlname'
18789    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18790      dlpath=$dir/\$dldll~
18791       $rm \$dlpath'
18792    shlibpath_overrides_runpath=yes
18793
18794    case $host_os in
18795    cygwin*)
18796      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18797      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18798      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18799      ;;
18800    mingw*)
18801      # MinGW DLLs use traditional 'lib' prefix
18802      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18803      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18804      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18805        # It is most probably a Windows format PATH printed by
18806        # mingw gcc, but we are running on Cygwin. Gcc prints its search
18807        # path with ; separators, and with drive letters. We can handle the
18808        # drive letters (cygwin fileutils understands them), so leave them,
18809        # especially as we might pass files found there to a mingw objdump,
18810        # which wouldn't understand a cygwinified path. Ahh.
18811        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18812      else
18813        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18814      fi
18815      ;;
18816    pw32*)
18817      # pw32 DLLs use 'pw' prefix rather than 'lib'
18818      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18819      ;;
18820    esac
18821    ;;
18822
18823  *)
18824    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18825    ;;
18826  esac
18827  dynamic_linker='Win32 ld.exe'
18828  # FIXME: first we should search . and the directory the executable is in
18829  shlibpath_var=PATH
18830  ;;
18831
18832darwin* | rhapsody*)
18833  dynamic_linker="$host_os dyld"
18834  version_type=darwin
18835  need_lib_prefix=no
18836  need_version=no
18837  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18838  soname_spec='${libname}${release}${major}$shared_ext'
18839  shlibpath_overrides_runpath=yes
18840  shlibpath_var=DYLD_LIBRARY_PATH
18841  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18842  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18843  if test "$GCC" = yes; then
18844    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18845  else
18846    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18847  fi
18848  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18849  ;;
18850
18851dgux*)
18852  version_type=linux
18853  need_lib_prefix=no
18854  need_version=no
18855  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18856  soname_spec='${libname}${release}${shared_ext}$major'
18857  shlibpath_var=LD_LIBRARY_PATH
18858  ;;
18859
18860freebsd1*)
18861  dynamic_linker=no
18862  ;;
18863
18864kfreebsd*-gnu)
18865  version_type=linux
18866  need_lib_prefix=no
18867  need_version=no
18868  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18869  soname_spec='${libname}${release}${shared_ext}$major'
18870  shlibpath_var=LD_LIBRARY_PATH
18871  shlibpath_overrides_runpath=no
18872  hardcode_into_libs=yes
18873  dynamic_linker='GNU ld.so'
18874  ;;
18875
18876freebsd* | dragonfly*)
18877  # DragonFly does not have aout.  When/if they implement a new
18878  # versioning mechanism, adjust this.
18879  if test -x /usr/bin/objformat; then
18880    objformat=`/usr/bin/objformat`
18881  else
18882    case $host_os in
18883    freebsd[123]*) objformat=aout ;;
18884    *) objformat=elf ;;
18885    esac
18886  fi
18887  version_type=freebsd-$objformat
18888  case $version_type in
18889    freebsd-elf*)
18890      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18891      need_version=no
18892      need_lib_prefix=no
18893      ;;
18894    freebsd-*)
18895      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18896      need_version=yes
18897      ;;
18898  esac
18899  shlibpath_var=LD_LIBRARY_PATH
18900  case $host_os in
18901  freebsd2*)
18902    shlibpath_overrides_runpath=yes
18903    ;;
18904  freebsd3.[01]* | freebsdelf3.[01]*)
18905    shlibpath_overrides_runpath=yes
18906    hardcode_into_libs=yes
18907    ;;
18908  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18909  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18910    shlibpath_overrides_runpath=no
18911    hardcode_into_libs=yes
18912    ;;
18913  freebsd*) # from 4.6 on
18914    shlibpath_overrides_runpath=yes
18915    hardcode_into_libs=yes
18916    ;;
18917  esac
18918  ;;
18919
18920gnu*)
18921  version_type=linux
18922  need_lib_prefix=no
18923  need_version=no
18924  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18925  soname_spec='${libname}${release}${shared_ext}$major'
18926  shlibpath_var=LD_LIBRARY_PATH
18927  hardcode_into_libs=yes
18928  ;;
18929
18930hpux9* | hpux10* | hpux11*)
18931  # Give a soname corresponding to the major version so that dld.sl refuses to
18932  # link against other versions.
18933  version_type=sunos
18934  need_lib_prefix=no
18935  need_version=no
18936  case $host_cpu in
18937  ia64*)
18938    shrext_cmds='.so'
18939    hardcode_into_libs=yes
18940    dynamic_linker="$host_os dld.so"
18941    shlibpath_var=LD_LIBRARY_PATH
18942    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18943    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18944    soname_spec='${libname}${release}${shared_ext}$major'
18945    if test "X$HPUX_IA64_MODE" = X32; then
18946      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18947    else
18948      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18949    fi
18950    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18951    ;;
18952   hppa*64*)
18953     shrext_cmds='.sl'
18954     hardcode_into_libs=yes
18955     dynamic_linker="$host_os dld.sl"
18956     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18957     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18958     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18959     soname_spec='${libname}${release}${shared_ext}$major'
18960     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18961     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18962     ;;
18963   *)
18964    shrext_cmds='.sl'
18965    dynamic_linker="$host_os dld.sl"
18966    shlibpath_var=SHLIB_PATH
18967    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18968    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18969    soname_spec='${libname}${release}${shared_ext}$major'
18970    ;;
18971  esac
18972  # HP-UX runs *really* slowly unless shared libraries are mode 555.
18973  postinstall_cmds='chmod 555 $lib'
18974  ;;
18975
18976interix3*)
18977  version_type=linux
18978  need_lib_prefix=no
18979  need_version=no
18980  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18981  soname_spec='${libname}${release}${shared_ext}$major'
18982  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18983  shlibpath_var=LD_LIBRARY_PATH
18984  shlibpath_overrides_runpath=no
18985  hardcode_into_libs=yes
18986  ;;
18987
18988irix5* | irix6* | nonstopux*)
18989  case $host_os in
18990    nonstopux*) version_type=nonstopux ;;
18991    *)
18992	if test "$lt_cv_prog_gnu_ld" = yes; then
18993		version_type=linux
18994	else
18995		version_type=irix
18996	fi ;;
18997  esac
18998  need_lib_prefix=no
18999  need_version=no
19000  soname_spec='${libname}${release}${shared_ext}$major'
19001  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19002  case $host_os in
19003  irix5* | nonstopux*)
19004    libsuff= shlibsuff=
19005    ;;
19006  *)
19007    case $LD in # libtool.m4 will add one of these switches to LD
19008    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19009      libsuff= shlibsuff= libmagic=32-bit;;
19010    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19011      libsuff=32 shlibsuff=N32 libmagic=N32;;
19012    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19013      libsuff=64 shlibsuff=64 libmagic=64-bit;;
19014    *) libsuff= shlibsuff= libmagic=never-match;;
19015    esac
19016    ;;
19017  esac
19018  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19019  shlibpath_overrides_runpath=no
19020  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19021  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19022  hardcode_into_libs=yes
19023  ;;
19024
19025# No shared lib support for Linux oldld, aout, or coff.
19026linux*oldld* | linux*aout* | linux*coff*)
19027  dynamic_linker=no
19028  ;;
19029
19030# This must be Linux ELF.
19031linux*)
19032  version_type=linux
19033  need_lib_prefix=no
19034  need_version=no
19035  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19036  soname_spec='${libname}${release}${shared_ext}$major'
19037  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19038  shlibpath_var=LD_LIBRARY_PATH
19039  shlibpath_overrides_runpath=no
19040  # This implies no fast_install, which is unacceptable.
19041  # Some rework will be needed to allow for fast_install
19042  # before this can be enabled.
19043  hardcode_into_libs=yes
19044
19045  # Append ld.so.conf contents to the search path
19046  if test -f /etc/ld.so.conf; then
19047    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
19048    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19049  fi
19050
19051  # We used to test for /lib/ld.so.1 and disable shared libraries on
19052  # powerpc, because MkLinux only supported shared libraries with the
19053  # GNU dynamic linker.  Since this was broken with cross compilers,
19054  # most powerpc-linux boxes support dynamic linking these days and
19055  # people can always --disable-shared, the test was removed, and we
19056  # assume the GNU/Linux dynamic linker is in use.
19057  dynamic_linker='GNU/Linux ld.so'
19058  ;;
19059
19060knetbsd*-gnu)
19061  version_type=linux
19062  need_lib_prefix=no
19063  need_version=no
19064  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19065  soname_spec='${libname}${release}${shared_ext}$major'
19066  shlibpath_var=LD_LIBRARY_PATH
19067  shlibpath_overrides_runpath=no
19068  hardcode_into_libs=yes
19069  dynamic_linker='GNU ld.so'
19070  ;;
19071
19072netbsd*)
19073  version_type=sunos
19074  need_lib_prefix=no
19075  need_version=no
19076  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19077    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19078    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19079    dynamic_linker='NetBSD (a.out) ld.so'
19080  else
19081    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19082    soname_spec='${libname}${release}${shared_ext}$major'
19083    dynamic_linker='NetBSD ld.elf_so'
19084  fi
19085  shlibpath_var=LD_LIBRARY_PATH
19086  shlibpath_overrides_runpath=yes
19087  hardcode_into_libs=yes
19088  ;;
19089
19090newsos6)
19091  version_type=linux
19092  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19093  shlibpath_var=LD_LIBRARY_PATH
19094  shlibpath_overrides_runpath=yes
19095  ;;
19096
19097nto-qnx*)
19098  version_type=linux
19099  need_lib_prefix=no
19100  need_version=no
19101  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19102  soname_spec='${libname}${release}${shared_ext}$major'
19103  shlibpath_var=LD_LIBRARY_PATH
19104  shlibpath_overrides_runpath=yes
19105  ;;
19106
19107openbsd*)
19108  version_type=sunos
19109  sys_lib_dlsearch_path_spec="/usr/lib"
19110  need_lib_prefix=no
19111  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19112  case $host_os in
19113    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19114    *)                         need_version=no  ;;
19115  esac
19116  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19117  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19118  shlibpath_var=LD_LIBRARY_PATH
19119  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19120    case $host_os in
19121      openbsd2.[89] | openbsd2.[89].*)
19122	shlibpath_overrides_runpath=no
19123	;;
19124      *)
19125	shlibpath_overrides_runpath=yes
19126	;;
19127      esac
19128  else
19129    shlibpath_overrides_runpath=yes
19130  fi
19131  ;;
19132
19133os2*)
19134  libname_spec='$name'
19135  shrext_cmds=".dll"
19136  need_lib_prefix=no
19137  library_names_spec='$libname${shared_ext} $libname.a'
19138  dynamic_linker='OS/2 ld.exe'
19139  shlibpath_var=LIBPATH
19140  ;;
19141
19142osf3* | osf4* | osf5*)
19143  version_type=osf
19144  need_lib_prefix=no
19145  need_version=no
19146  soname_spec='${libname}${release}${shared_ext}$major'
19147  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19148  shlibpath_var=LD_LIBRARY_PATH
19149  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19150  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19151  ;;
19152
19153solaris*)
19154  version_type=linux
19155  need_lib_prefix=no
19156  need_version=no
19157  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19158  soname_spec='${libname}${release}${shared_ext}$major'
19159  shlibpath_var=LD_LIBRARY_PATH
19160  shlibpath_overrides_runpath=yes
19161  hardcode_into_libs=yes
19162  # ldd complains unless libraries are executable
19163  postinstall_cmds='chmod +x $lib'
19164  ;;
19165
19166sunos4*)
19167  version_type=sunos
19168  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19169  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19170  shlibpath_var=LD_LIBRARY_PATH
19171  shlibpath_overrides_runpath=yes
19172  if test "$with_gnu_ld" = yes; then
19173    need_lib_prefix=no
19174  fi
19175  need_version=yes
19176  ;;
19177
19178sysv4 | sysv4.3*)
19179  version_type=linux
19180  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19181  soname_spec='${libname}${release}${shared_ext}$major'
19182  shlibpath_var=LD_LIBRARY_PATH
19183  case $host_vendor in
19184    sni)
19185      shlibpath_overrides_runpath=no
19186      need_lib_prefix=no
19187      export_dynamic_flag_spec='${wl}-Blargedynsym'
19188      runpath_var=LD_RUN_PATH
19189      ;;
19190    siemens)
19191      need_lib_prefix=no
19192      ;;
19193    motorola)
19194      need_lib_prefix=no
19195      need_version=no
19196      shlibpath_overrides_runpath=no
19197      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19198      ;;
19199  esac
19200  ;;
19201
19202sysv4*MP*)
19203  if test -d /usr/nec ;then
19204    version_type=linux
19205    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19206    soname_spec='$libname${shared_ext}.$major'
19207    shlibpath_var=LD_LIBRARY_PATH
19208  fi
19209  ;;
19210
19211sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19212  version_type=freebsd-elf
19213  need_lib_prefix=no
19214  need_version=no
19215  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19216  soname_spec='${libname}${release}${shared_ext}$major'
19217  shlibpath_var=LD_LIBRARY_PATH
19218  hardcode_into_libs=yes
19219  if test "$with_gnu_ld" = yes; then
19220    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19221    shlibpath_overrides_runpath=no
19222  else
19223    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19224    shlibpath_overrides_runpath=yes
19225    case $host_os in
19226      sco3.2v5*)
19227        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19228	;;
19229    esac
19230  fi
19231  sys_lib_dlsearch_path_spec='/usr/lib'
19232  ;;
19233
19234uts4*)
19235  version_type=linux
19236  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19237  soname_spec='${libname}${release}${shared_ext}$major'
19238  shlibpath_var=LD_LIBRARY_PATH
19239  ;;
19240
19241*)
19242  dynamic_linker=no
19243  ;;
19244esac
19245echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19246echo "${ECHO_T}$dynamic_linker" >&6
19247test "$dynamic_linker" = no && can_build_shared=no
19248
19249variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19250if test "$GCC" = yes; then
19251  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19252fi
19253
19254echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19255echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19256hardcode_action_GCJ=
19257if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19258   test -n "$runpath_var_GCJ" || \
19259   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19260
19261  # We can hardcode non-existant directories.
19262  if test "$hardcode_direct_GCJ" != no &&
19263     # If the only mechanism to avoid hardcoding is shlibpath_var, we
19264     # have to relink, otherwise we might link with an installed library
19265     # when we should be linking with a yet-to-be-installed one
19266     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19267     test "$hardcode_minus_L_GCJ" != no; then
19268    # Linking always hardcodes the temporary library directory.
19269    hardcode_action_GCJ=relink
19270  else
19271    # We can link without hardcoding, and we can hardcode nonexisting dirs.
19272    hardcode_action_GCJ=immediate
19273  fi
19274else
19275  # We cannot hardcode anything, or else we can only hardcode existing
19276  # directories.
19277  hardcode_action_GCJ=unsupported
19278fi
19279echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19280echo "${ECHO_T}$hardcode_action_GCJ" >&6
19281
19282if test "$hardcode_action_GCJ" = relink; then
19283  # Fast installation is not supported
19284  enable_fast_install=no
19285elif test "$shlibpath_overrides_runpath" = yes ||
19286     test "$enable_shared" = no; then
19287  # Fast installation is not necessary
19288  enable_fast_install=needless
19289fi
19290
19291
19292# The else clause should only fire when bootstrapping the
19293# libtool distribution, otherwise you forgot to ship ltmain.sh
19294# with your package, and you will get complaints that there are
19295# no rules to generate ltmain.sh.
19296if test -f "$ltmain"; then
19297  # See if we are running on zsh, and set the options which allow our commands through
19298  # without removal of \ escapes.
19299  if test -n "${ZSH_VERSION+set}" ; then
19300    setopt NO_GLOB_SUBST
19301  fi
19302  # Now quote all the things that may contain metacharacters while being
19303  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19304  # variables and quote the copies for generation of the libtool script.
19305  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19306    SED SHELL STRIP \
19307    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19308    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19309    deplibs_check_method reload_flag reload_cmds need_locks \
19310    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19311    lt_cv_sys_global_symbol_to_c_name_address \
19312    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19313    old_postinstall_cmds old_postuninstall_cmds \
19314    compiler_GCJ \
19315    CC_GCJ \
19316    LD_GCJ \
19317    lt_prog_compiler_wl_GCJ \
19318    lt_prog_compiler_pic_GCJ \
19319    lt_prog_compiler_static_GCJ \
19320    lt_prog_compiler_no_builtin_flag_GCJ \
19321    export_dynamic_flag_spec_GCJ \
19322    thread_safe_flag_spec_GCJ \
19323    whole_archive_flag_spec_GCJ \
19324    enable_shared_with_static_runtimes_GCJ \
19325    old_archive_cmds_GCJ \
19326    old_archive_from_new_cmds_GCJ \
19327    predep_objects_GCJ \
19328    postdep_objects_GCJ \
19329    predeps_GCJ \
19330    postdeps_GCJ \
19331    compiler_lib_search_path_GCJ \
19332    archive_cmds_GCJ \
19333    archive_expsym_cmds_GCJ \
19334    postinstall_cmds_GCJ \
19335    postuninstall_cmds_GCJ \
19336    old_archive_from_expsyms_cmds_GCJ \
19337    allow_undefined_flag_GCJ \
19338    no_undefined_flag_GCJ \
19339    export_symbols_cmds_GCJ \
19340    hardcode_libdir_flag_spec_GCJ \
19341    hardcode_libdir_flag_spec_ld_GCJ \
19342    hardcode_libdir_separator_GCJ \
19343    hardcode_automatic_GCJ \
19344    module_cmds_GCJ \
19345    module_expsym_cmds_GCJ \
19346    lt_cv_prog_compiler_c_o_GCJ \
19347    exclude_expsyms_GCJ \
19348    include_expsyms_GCJ; do
19349
19350    case $var in
19351    old_archive_cmds_GCJ | \
19352    old_archive_from_new_cmds_GCJ | \
19353    archive_cmds_GCJ | \
19354    archive_expsym_cmds_GCJ | \
19355    module_cmds_GCJ | \
19356    module_expsym_cmds_GCJ | \
19357    old_archive_from_expsyms_cmds_GCJ | \
19358    export_symbols_cmds_GCJ | \
19359    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19360    postinstall_cmds | postuninstall_cmds | \
19361    old_postinstall_cmds | old_postuninstall_cmds | \
19362    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19363      # Double-quote double-evaled strings.
19364      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19365      ;;
19366    *)
19367      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19368      ;;
19369    esac
19370  done
19371
19372  case $lt_echo in
19373  *'\$0 --fallback-echo"')
19374    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19375    ;;
19376  esac
19377
19378cfgfile="$ofile"
19379
19380  cat <<__EOF__ >> "$cfgfile"
19381# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19382
19383# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19384
19385# Shell to use when invoking shell scripts.
19386SHELL=$lt_SHELL
19387
19388# Whether or not to build shared libraries.
19389build_libtool_libs=$enable_shared
19390
19391# Whether or not to build static libraries.
19392build_old_libs=$enable_static
19393
19394# Whether or not to add -lc for building shared libraries.
19395build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19396
19397# Whether or not to disallow shared libs when runtime libs are static
19398allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19399
19400# Whether or not to optimize for fast installation.
19401fast_install=$enable_fast_install
19402
19403# The host system.
19404host_alias=$host_alias
19405host=$host
19406host_os=$host_os
19407
19408# The build system.
19409build_alias=$build_alias
19410build=$build
19411build_os=$build_os
19412
19413# An echo program that does not interpret backslashes.
19414echo=$lt_echo
19415
19416# The archiver.
19417AR=$lt_AR
19418AR_FLAGS=$lt_AR_FLAGS
19419
19420# A C compiler.
19421LTCC=$lt_LTCC
19422
19423# LTCC compiler flags.
19424LTCFLAGS=$lt_LTCFLAGS
19425
19426# A language-specific compiler.
19427CC=$lt_compiler_GCJ
19428
19429# Is the compiler the GNU C compiler?
19430with_gcc=$GCC_GCJ
19431
19432# An ERE matcher.
19433EGREP=$lt_EGREP
19434
19435# The linker used to build libraries.
19436LD=$lt_LD_GCJ
19437
19438# Whether we need hard or soft links.
19439LN_S=$lt_LN_S
19440
19441# A BSD-compatible nm program.
19442NM=$lt_NM
19443
19444# A symbol stripping program
19445STRIP=$lt_STRIP
19446
19447# Used to examine libraries when file_magic_cmd begins "file"
19448MAGIC_CMD=$MAGIC_CMD
19449
19450# Used on cygwin: DLL creation program.
19451DLLTOOL="$DLLTOOL"
19452
19453# Used on cygwin: object dumper.
19454OBJDUMP="$OBJDUMP"
19455
19456# Used on cygwin: assembler.
19457AS="$AS"
19458
19459# The name of the directory that contains temporary libtool files.
19460objdir=$objdir
19461
19462# How to create reloadable object files.
19463reload_flag=$lt_reload_flag
19464reload_cmds=$lt_reload_cmds
19465
19466# How to pass a linker flag through the compiler.
19467wl=$lt_lt_prog_compiler_wl_GCJ
19468
19469# Object file suffix (normally "o").
19470objext="$ac_objext"
19471
19472# Old archive suffix (normally "a").
19473libext="$libext"
19474
19475# Shared library suffix (normally ".so").
19476shrext_cmds='$shrext_cmds'
19477
19478# Executable file suffix (normally "").
19479exeext="$exeext"
19480
19481# Additional compiler flags for building library objects.
19482pic_flag=$lt_lt_prog_compiler_pic_GCJ
19483pic_mode=$pic_mode
19484
19485# What is the maximum length of a command?
19486max_cmd_len=$lt_cv_sys_max_cmd_len
19487
19488# Does compiler simultaneously support -c and -o options?
19489compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19490
19491# Must we lock files when doing compilation?
19492need_locks=$lt_need_locks
19493
19494# Do we need the lib prefix for modules?
19495need_lib_prefix=$need_lib_prefix
19496
19497# Do we need a version for libraries?
19498need_version=$need_version
19499
19500# Whether dlopen is supported.
19501dlopen_support=$enable_dlopen
19502
19503# Whether dlopen of programs is supported.
19504dlopen_self=$enable_dlopen_self
19505
19506# Whether dlopen of statically linked programs is supported.
19507dlopen_self_static=$enable_dlopen_self_static
19508
19509# Compiler flag to prevent dynamic linking.
19510link_static_flag=$lt_lt_prog_compiler_static_GCJ
19511
19512# Compiler flag to turn off builtin functions.
19513no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19514
19515# Compiler flag to allow reflexive dlopens.
19516export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19517
19518# Compiler flag to generate shared objects directly from archives.
19519whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19520
19521# Compiler flag to generate thread-safe objects.
19522thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19523
19524# Library versioning type.
19525version_type=$version_type
19526
19527# Format of library name prefix.
19528libname_spec=$lt_libname_spec
19529
19530# List of archive names.  First name is the real one, the rest are links.
19531# The last name is the one that the linker finds with -lNAME.
19532library_names_spec=$lt_library_names_spec
19533
19534# The coded name of the library, if different from the real name.
19535soname_spec=$lt_soname_spec
19536
19537# Commands used to build and install an old-style archive.
19538RANLIB=$lt_RANLIB
19539old_archive_cmds=$lt_old_archive_cmds_GCJ
19540old_postinstall_cmds=$lt_old_postinstall_cmds
19541old_postuninstall_cmds=$lt_old_postuninstall_cmds
19542
19543# Create an old-style archive from a shared archive.
19544old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19545
19546# Create a temporary old-style archive to link instead of a shared archive.
19547old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19548
19549# Commands used to build and install a shared archive.
19550archive_cmds=$lt_archive_cmds_GCJ
19551archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19552postinstall_cmds=$lt_postinstall_cmds
19553postuninstall_cmds=$lt_postuninstall_cmds
19554
19555# Commands used to build a loadable module (assumed same as above if empty)
19556module_cmds=$lt_module_cmds_GCJ
19557module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19558
19559# Commands to strip libraries.
19560old_striplib=$lt_old_striplib
19561striplib=$lt_striplib
19562
19563# Dependencies to place before the objects being linked to create a
19564# shared library.
19565predep_objects=$lt_predep_objects_GCJ
19566
19567# Dependencies to place after the objects being linked to create a
19568# shared library.
19569postdep_objects=$lt_postdep_objects_GCJ
19570
19571# Dependencies to place before the objects being linked to create a
19572# shared library.
19573predeps=$lt_predeps_GCJ
19574
19575# Dependencies to place after the objects being linked to create a
19576# shared library.
19577postdeps=$lt_postdeps_GCJ
19578
19579# The library search path used internally by the compiler when linking
19580# a shared library.
19581compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19582
19583# Method to check whether dependent libraries are shared objects.
19584deplibs_check_method=$lt_deplibs_check_method
19585
19586# Command to use when deplibs_check_method == file_magic.
19587file_magic_cmd=$lt_file_magic_cmd
19588
19589# Flag that allows shared libraries with undefined symbols to be built.
19590allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19591
19592# Flag that forces no undefined symbols.
19593no_undefined_flag=$lt_no_undefined_flag_GCJ
19594
19595# Commands used to finish a libtool library installation in a directory.
19596finish_cmds=$lt_finish_cmds
19597
19598# Same as above, but a single script fragment to be evaled but not shown.
19599finish_eval=$lt_finish_eval
19600
19601# Take the output of nm and produce a listing of raw symbols and C names.
19602global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19603
19604# Transform the output of nm in a proper C declaration
19605global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19606
19607# Transform the output of nm in a C name address pair
19608global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19609
19610# This is the shared library runtime path variable.
19611runpath_var=$runpath_var
19612
19613# This is the shared library path variable.
19614shlibpath_var=$shlibpath_var
19615
19616# Is shlibpath searched before the hard-coded library search path?
19617shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19618
19619# How to hardcode a shared library path into an executable.
19620hardcode_action=$hardcode_action_GCJ
19621
19622# Whether we should hardcode library paths into libraries.
19623hardcode_into_libs=$hardcode_into_libs
19624
19625# Flag to hardcode \$libdir into a binary during linking.
19626# This must work even if \$libdir does not exist.
19627hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19628
19629# If ld is used when linking, flag to hardcode \$libdir into
19630# a binary during linking. This must work even if \$libdir does
19631# not exist.
19632hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19633
19634# Whether we need a single -rpath flag with a separated argument.
19635hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19636
19637# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19638# resulting binary.
19639hardcode_direct=$hardcode_direct_GCJ
19640
19641# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19642# resulting binary.
19643hardcode_minus_L=$hardcode_minus_L_GCJ
19644
19645# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19646# the resulting binary.
19647hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19648
19649# Set to yes if building a shared library automatically hardcodes DIR into the library
19650# and all subsequent libraries and executables linked against it.
19651hardcode_automatic=$hardcode_automatic_GCJ
19652
19653# Variables whose values should be saved in libtool wrapper scripts and
19654# restored at relink time.
19655variables_saved_for_relink="$variables_saved_for_relink"
19656
19657# Whether libtool must link a program against all its dependency libraries.
19658link_all_deplibs=$link_all_deplibs_GCJ
19659
19660# Compile-time system search path for libraries
19661sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19662
19663# Run-time system search path for libraries
19664sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19665
19666# Fix the shell variable \$srcfile for the compiler.
19667fix_srcfile_path="$fix_srcfile_path_GCJ"
19668
19669# Set to yes if exported symbols are required.
19670always_export_symbols=$always_export_symbols_GCJ
19671
19672# The commands to list exported symbols.
19673export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19674
19675# The commands to extract the exported symbol list from a shared archive.
19676extract_expsyms_cmds=$lt_extract_expsyms_cmds
19677
19678# Symbols that should not be listed in the preloaded symbols.
19679exclude_expsyms=$lt_exclude_expsyms_GCJ
19680
19681# Symbols that must always be exported.
19682include_expsyms=$lt_include_expsyms_GCJ
19683
19684# ### END LIBTOOL TAG CONFIG: $tagname
19685
19686__EOF__
19687
19688
19689else
19690  # If there is no Makefile yet, we rely on a make rule to execute
19691  # `config.status --recheck' to rerun these tests and create the
19692  # libtool script then.
19693  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19694  if test -f "$ltmain_in"; then
19695    test -f Makefile && make "$ltmain"
19696  fi
19697fi
19698
19699
19700ac_ext=c
19701ac_cpp='$CPP $CPPFLAGS'
19702ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19703ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19704ac_compiler_gnu=$ac_cv_c_compiler_gnu
19705
19706CC="$lt_save_CC"
19707
19708	else
19709	  tagname=""
19710	fi
19711	;;
19712
19713      RC)
19714
19715
19716
19717# Source file extension for RC test sources.
19718ac_ext=rc
19719
19720# Object file extension for compiled RC test sources.
19721objext=o
19722objext_RC=$objext
19723
19724# Code to be used in simple compile tests
19725lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19726
19727# Code to be used in simple link tests
19728lt_simple_link_test_code="$lt_simple_compile_test_code"
19729
19730# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19731
19732# If no C compiler was specified, use CC.
19733LTCC=${LTCC-"$CC"}
19734
19735# If no C compiler flags were specified, use CFLAGS.
19736LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19737
19738# Allow CC to be a program name with arguments.
19739compiler=$CC
19740
19741
19742# save warnings/boilerplate of simple test code
19743ac_outfile=conftest.$ac_objext
19744printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19745eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19746_lt_compiler_boilerplate=`cat conftest.err`
19747$rm conftest*
19748
19749ac_outfile=conftest.$ac_objext
19750printf "$lt_simple_link_test_code" >conftest.$ac_ext
19751eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19752_lt_linker_boilerplate=`cat conftest.err`
19753$rm conftest*
19754
19755
19756# Allow CC to be a program name with arguments.
19757lt_save_CC="$CC"
19758CC=${RC-"windres"}
19759compiler=$CC
19760compiler_RC=$CC
19761for cc_temp in $compiler""; do
19762  case $cc_temp in
19763    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19764    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19765    \-*) ;;
19766    *) break;;
19767  esac
19768done
19769cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19770
19771lt_cv_prog_compiler_c_o_RC=yes
19772
19773# The else clause should only fire when bootstrapping the
19774# libtool distribution, otherwise you forgot to ship ltmain.sh
19775# with your package, and you will get complaints that there are
19776# no rules to generate ltmain.sh.
19777if test -f "$ltmain"; then
19778  # See if we are running on zsh, and set the options which allow our commands through
19779  # without removal of \ escapes.
19780  if test -n "${ZSH_VERSION+set}" ; then
19781    setopt NO_GLOB_SUBST
19782  fi
19783  # Now quote all the things that may contain metacharacters while being
19784  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19785  # variables and quote the copies for generation of the libtool script.
19786  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19787    SED SHELL STRIP \
19788    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19789    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19790    deplibs_check_method reload_flag reload_cmds need_locks \
19791    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19792    lt_cv_sys_global_symbol_to_c_name_address \
19793    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19794    old_postinstall_cmds old_postuninstall_cmds \
19795    compiler_RC \
19796    CC_RC \
19797    LD_RC \
19798    lt_prog_compiler_wl_RC \
19799    lt_prog_compiler_pic_RC \
19800    lt_prog_compiler_static_RC \
19801    lt_prog_compiler_no_builtin_flag_RC \
19802    export_dynamic_flag_spec_RC \
19803    thread_safe_flag_spec_RC \
19804    whole_archive_flag_spec_RC \
19805    enable_shared_with_static_runtimes_RC \
19806    old_archive_cmds_RC \
19807    old_archive_from_new_cmds_RC \
19808    predep_objects_RC \
19809    postdep_objects_RC \
19810    predeps_RC \
19811    postdeps_RC \
19812    compiler_lib_search_path_RC \
19813    archive_cmds_RC \
19814    archive_expsym_cmds_RC \
19815    postinstall_cmds_RC \
19816    postuninstall_cmds_RC \
19817    old_archive_from_expsyms_cmds_RC \
19818    allow_undefined_flag_RC \
19819    no_undefined_flag_RC \
19820    export_symbols_cmds_RC \
19821    hardcode_libdir_flag_spec_RC \
19822    hardcode_libdir_flag_spec_ld_RC \
19823    hardcode_libdir_separator_RC \
19824    hardcode_automatic_RC \
19825    module_cmds_RC \
19826    module_expsym_cmds_RC \
19827    lt_cv_prog_compiler_c_o_RC \
19828    exclude_expsyms_RC \
19829    include_expsyms_RC; do
19830
19831    case $var in
19832    old_archive_cmds_RC | \
19833    old_archive_from_new_cmds_RC | \
19834    archive_cmds_RC | \
19835    archive_expsym_cmds_RC | \
19836    module_cmds_RC | \
19837    module_expsym_cmds_RC | \
19838    old_archive_from_expsyms_cmds_RC | \
19839    export_symbols_cmds_RC | \
19840    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19841    postinstall_cmds | postuninstall_cmds | \
19842    old_postinstall_cmds | old_postuninstall_cmds | \
19843    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19844      # Double-quote double-evaled strings.
19845      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19846      ;;
19847    *)
19848      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19849      ;;
19850    esac
19851  done
19852
19853  case $lt_echo in
19854  *'\$0 --fallback-echo"')
19855    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19856    ;;
19857  esac
19858
19859cfgfile="$ofile"
19860
19861  cat <<__EOF__ >> "$cfgfile"
19862# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19863
19864# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19865
19866# Shell to use when invoking shell scripts.
19867SHELL=$lt_SHELL
19868
19869# Whether or not to build shared libraries.
19870build_libtool_libs=$enable_shared
19871
19872# Whether or not to build static libraries.
19873build_old_libs=$enable_static
19874
19875# Whether or not to add -lc for building shared libraries.
19876build_libtool_need_lc=$archive_cmds_need_lc_RC
19877
19878# Whether or not to disallow shared libs when runtime libs are static
19879allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19880
19881# Whether or not to optimize for fast installation.
19882fast_install=$enable_fast_install
19883
19884# The host system.
19885host_alias=$host_alias
19886host=$host
19887host_os=$host_os
19888
19889# The build system.
19890build_alias=$build_alias
19891build=$build
19892build_os=$build_os
19893
19894# An echo program that does not interpret backslashes.
19895echo=$lt_echo
19896
19897# The archiver.
19898AR=$lt_AR
19899AR_FLAGS=$lt_AR_FLAGS
19900
19901# A C compiler.
19902LTCC=$lt_LTCC
19903
19904# LTCC compiler flags.
19905LTCFLAGS=$lt_LTCFLAGS
19906
19907# A language-specific compiler.
19908CC=$lt_compiler_RC
19909
19910# Is the compiler the GNU C compiler?
19911with_gcc=$GCC_RC
19912
19913# An ERE matcher.
19914EGREP=$lt_EGREP
19915
19916# The linker used to build libraries.
19917LD=$lt_LD_RC
19918
19919# Whether we need hard or soft links.
19920LN_S=$lt_LN_S
19921
19922# A BSD-compatible nm program.
19923NM=$lt_NM
19924
19925# A symbol stripping program
19926STRIP=$lt_STRIP
19927
19928# Used to examine libraries when file_magic_cmd begins "file"
19929MAGIC_CMD=$MAGIC_CMD
19930
19931# Used on cygwin: DLL creation program.
19932DLLTOOL="$DLLTOOL"
19933
19934# Used on cygwin: object dumper.
19935OBJDUMP="$OBJDUMP"
19936
19937# Used on cygwin: assembler.
19938AS="$AS"
19939
19940# The name of the directory that contains temporary libtool files.
19941objdir=$objdir
19942
19943# How to create reloadable object files.
19944reload_flag=$lt_reload_flag
19945reload_cmds=$lt_reload_cmds
19946
19947# How to pass a linker flag through the compiler.
19948wl=$lt_lt_prog_compiler_wl_RC
19949
19950# Object file suffix (normally "o").
19951objext="$ac_objext"
19952
19953# Old archive suffix (normally "a").
19954libext="$libext"
19955
19956# Shared library suffix (normally ".so").
19957shrext_cmds='$shrext_cmds'
19958
19959# Executable file suffix (normally "").
19960exeext="$exeext"
19961
19962# Additional compiler flags for building library objects.
19963pic_flag=$lt_lt_prog_compiler_pic_RC
19964pic_mode=$pic_mode
19965
19966# What is the maximum length of a command?
19967max_cmd_len=$lt_cv_sys_max_cmd_len
19968
19969# Does compiler simultaneously support -c and -o options?
19970compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19971
19972# Must we lock files when doing compilation?
19973need_locks=$lt_need_locks
19974
19975# Do we need the lib prefix for modules?
19976need_lib_prefix=$need_lib_prefix
19977
19978# Do we need a version for libraries?
19979need_version=$need_version
19980
19981# Whether dlopen is supported.
19982dlopen_support=$enable_dlopen
19983
19984# Whether dlopen of programs is supported.
19985dlopen_self=$enable_dlopen_self
19986
19987# Whether dlopen of statically linked programs is supported.
19988dlopen_self_static=$enable_dlopen_self_static
19989
19990# Compiler flag to prevent dynamic linking.
19991link_static_flag=$lt_lt_prog_compiler_static_RC
19992
19993# Compiler flag to turn off builtin functions.
19994no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19995
19996# Compiler flag to allow reflexive dlopens.
19997export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19998
19999# Compiler flag to generate shared objects directly from archives.
20000whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20001
20002# Compiler flag to generate thread-safe objects.
20003thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20004
20005# Library versioning type.
20006version_type=$version_type
20007
20008# Format of library name prefix.
20009libname_spec=$lt_libname_spec
20010
20011# List of archive names.  First name is the real one, the rest are links.
20012# The last name is the one that the linker finds with -lNAME.
20013library_names_spec=$lt_library_names_spec
20014
20015# The coded name of the library, if different from the real name.
20016soname_spec=$lt_soname_spec
20017
20018# Commands used to build and install an old-style archive.
20019RANLIB=$lt_RANLIB
20020old_archive_cmds=$lt_old_archive_cmds_RC
20021old_postinstall_cmds=$lt_old_postinstall_cmds
20022old_postuninstall_cmds=$lt_old_postuninstall_cmds
20023
20024# Create an old-style archive from a shared archive.
20025old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20026
20027# Create a temporary old-style archive to link instead of a shared archive.
20028old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20029
20030# Commands used to build and install a shared archive.
20031archive_cmds=$lt_archive_cmds_RC
20032archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20033postinstall_cmds=$lt_postinstall_cmds
20034postuninstall_cmds=$lt_postuninstall_cmds
20035
20036# Commands used to build a loadable module (assumed same as above if empty)
20037module_cmds=$lt_module_cmds_RC
20038module_expsym_cmds=$lt_module_expsym_cmds_RC
20039
20040# Commands to strip libraries.
20041old_striplib=$lt_old_striplib
20042striplib=$lt_striplib
20043
20044# Dependencies to place before the objects being linked to create a
20045# shared library.
20046predep_objects=$lt_predep_objects_RC
20047
20048# Dependencies to place after the objects being linked to create a
20049# shared library.
20050postdep_objects=$lt_postdep_objects_RC
20051
20052# Dependencies to place before the objects being linked to create a
20053# shared library.
20054predeps=$lt_predeps_RC
20055
20056# Dependencies to place after the objects being linked to create a
20057# shared library.
20058postdeps=$lt_postdeps_RC
20059
20060# The library search path used internally by the compiler when linking
20061# a shared library.
20062compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20063
20064# Method to check whether dependent libraries are shared objects.
20065deplibs_check_method=$lt_deplibs_check_method
20066
20067# Command to use when deplibs_check_method == file_magic.
20068file_magic_cmd=$lt_file_magic_cmd
20069
20070# Flag that allows shared libraries with undefined symbols to be built.
20071allow_undefined_flag=$lt_allow_undefined_flag_RC
20072
20073# Flag that forces no undefined symbols.
20074no_undefined_flag=$lt_no_undefined_flag_RC
20075
20076# Commands used to finish a libtool library installation in a directory.
20077finish_cmds=$lt_finish_cmds
20078
20079# Same as above, but a single script fragment to be evaled but not shown.
20080finish_eval=$lt_finish_eval
20081
20082# Take the output of nm and produce a listing of raw symbols and C names.
20083global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20084
20085# Transform the output of nm in a proper C declaration
20086global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20087
20088# Transform the output of nm in a C name address pair
20089global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20090
20091# This is the shared library runtime path variable.
20092runpath_var=$runpath_var
20093
20094# This is the shared library path variable.
20095shlibpath_var=$shlibpath_var
20096
20097# Is shlibpath searched before the hard-coded library search path?
20098shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20099
20100# How to hardcode a shared library path into an executable.
20101hardcode_action=$hardcode_action_RC
20102
20103# Whether we should hardcode library paths into libraries.
20104hardcode_into_libs=$hardcode_into_libs
20105
20106# Flag to hardcode \$libdir into a binary during linking.
20107# This must work even if \$libdir does not exist.
20108hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20109
20110# If ld is used when linking, flag to hardcode \$libdir into
20111# a binary during linking. This must work even if \$libdir does
20112# not exist.
20113hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20114
20115# Whether we need a single -rpath flag with a separated argument.
20116hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20117
20118# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20119# resulting binary.
20120hardcode_direct=$hardcode_direct_RC
20121
20122# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20123# resulting binary.
20124hardcode_minus_L=$hardcode_minus_L_RC
20125
20126# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20127# the resulting binary.
20128hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20129
20130# Set to yes if building a shared library automatically hardcodes DIR into the library
20131# and all subsequent libraries and executables linked against it.
20132hardcode_automatic=$hardcode_automatic_RC
20133
20134# Variables whose values should be saved in libtool wrapper scripts and
20135# restored at relink time.
20136variables_saved_for_relink="$variables_saved_for_relink"
20137
20138# Whether libtool must link a program against all its dependency libraries.
20139link_all_deplibs=$link_all_deplibs_RC
20140
20141# Compile-time system search path for libraries
20142sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20143
20144# Run-time system search path for libraries
20145sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20146
20147# Fix the shell variable \$srcfile for the compiler.
20148fix_srcfile_path="$fix_srcfile_path_RC"
20149
20150# Set to yes if exported symbols are required.
20151always_export_symbols=$always_export_symbols_RC
20152
20153# The commands to list exported symbols.
20154export_symbols_cmds=$lt_export_symbols_cmds_RC
20155
20156# The commands to extract the exported symbol list from a shared archive.
20157extract_expsyms_cmds=$lt_extract_expsyms_cmds
20158
20159# Symbols that should not be listed in the preloaded symbols.
20160exclude_expsyms=$lt_exclude_expsyms_RC
20161
20162# Symbols that must always be exported.
20163include_expsyms=$lt_include_expsyms_RC
20164
20165# ### END LIBTOOL TAG CONFIG: $tagname
20166
20167__EOF__
20168
20169
20170else
20171  # If there is no Makefile yet, we rely on a make rule to execute
20172  # `config.status --recheck' to rerun these tests and create the
20173  # libtool script then.
20174  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20175  if test -f "$ltmain_in"; then
20176    test -f Makefile && make "$ltmain"
20177  fi
20178fi
20179
20180
20181ac_ext=c
20182ac_cpp='$CPP $CPPFLAGS'
20183ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20184ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20185ac_compiler_gnu=$ac_cv_c_compiler_gnu
20186
20187CC="$lt_save_CC"
20188
20189	;;
20190
20191      *)
20192	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20193echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20194   { (exit 1); exit 1; }; }
20195	;;
20196      esac
20197
20198      # Append the new tag name to the list of available tags.
20199      if test -n "$tagname" ; then
20200      available_tags="$available_tags $tagname"
20201    fi
20202    fi
20203  done
20204  IFS="$lt_save_ifs"
20205
20206  # Now substitute the updated list of available tags.
20207  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20208    mv "${ofile}T" "$ofile"
20209    chmod +x "$ofile"
20210  else
20211    rm -f "${ofile}T"
20212    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20213echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20214   { (exit 1); exit 1; }; }
20215  fi
20216fi
20217
20218
20219
20220# This can be used to rebuild libtool when needed
20221LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20222
20223# Always use our own libtool.
20224LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20225
20226# Prevent multiple expansion
20227
20228
20229
20230
20231
20232
20233
20234
20235
20236
20237
20238# No longer needed now that CPPFLAGS is correctly set -- lh, 061214 --
20239 # AC_REQUIRE([AC_COIN_DLFCN_H])
20240
20241# NEW: If libtool exists in the directory higher up, we use that one
20242#      instead of creating a new one
20243
20244# It turns out that the code for AC_PROG_LIBTOOL is somehow AC_REQUIRED
20245# out in front of this macro body. You'll notice that LIBTOOL is already
20246# defined here.  We'll have to count on this macro not being called if libtool
20247# already exists, or at least move the libtool fixes outside the conditional.
20248# AC_MSG_NOTICE([Entering coin_prog_libtool, LIBTOOL = "$LIBTOOL".])
20249# This test is therefore removed.  -- lh, 061214 --
20250# if test "x$LIBTOOL" = x; then
20251
20252# AC_MSG_NOTICE([Calling PROG_LIBTOOL.])
20253
20254
20255
20256
20257
20258
20259
20260
20261
20262# AC_MSG_NOTICE([Finished PROG_LIBTOOL.])
20263
20264
20265
20266  { echo "$as_me:$LINENO: Build is \"$build\"." >&5
20267echo "$as_me: Build is \"$build\"." >&6;}
20268  mydos2unix='| dos2unix'
20269  case $build in
20270    *-mingw*)
20271      CYGPATH_W=echo
20272      ;;
20273  esac
20274
20275  case $build in
20276    # Here we need to check if -m32 is specified.  If so, we need to correct
20277    # sys_lib_search_path_spec
20278    *-cygwin* | *-mingw*)
20279       case "$CXX" in
20280    clang* )
20281      # we assume that libtool patches for CLANG are the same as for GNU compiler - correct???
20282      { echo "$as_me:$LINENO: Applying patches to libtool for CLANG compiler" >&5
20283echo "$as_me: Applying patches to libtool for CLANG compiler" >&6;}
20284      sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
20285	  -e 's|"lib /OUT:\\$oldlib\\$oldobjs\\$old_deplibs"|"\\$AR \\$AR_FLAGS \\$oldlib\\$oldobjs\\$old_deplibs~\\$RANLIB \\$oldlib"|' \
20286	  -e 's|libext="lib"|libext="a"|' \
20287      libtool > conftest.bla
20288      ;;
20289    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
20290      { echo "$as_me:$LINENO: Applying patches to libtool for cl compiler" >&5
20291echo "$as_me: Applying patches to libtool for cl compiler" >&6;}
20292      sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
20293	  -e 's|fix_srcfile_path=\"\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
20294	  -e 's%compile_deplibs=\"\$dir/\$old_library \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$old_library | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \
20295	  -e 's%compile_deplibs=\"\$dir/\$linklib \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$linklib | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \
20296	  -e 's%lib /OUT:%lib -OUT:%' \
20297	  -e "s%cygpath -w%$CYGPATH_W%" \
20298	  -e 's%$AR x \\$f_ex_an_ar_oldlib%bla=\\$(lib -nologo -list \\$('"$CYGPATH_W \$1"') '"$mydos2unix"' | xargs echo); echo \\$bla; for i in \\$bla; do lib -nologo -extract:\\$i \\$('"$CYGPATH_W \$1"'); done%' \
20299	  -e 's%$AR t "$f_ex_an_ar_oldlib"%lib -nologo -list \$('"$CYGPATH_W \$1"') '"$mydos2unix"'%' \
20300	  -e 's%f_ex_an_ar_oldlib="\($?*1*\)"%f_ex_an_ar_oldlib='\`"$CYGPATH_W"' \1`%' \
20301	  -e 's%^archive_cmds=.*%archive_cmds="\\$CC -o \\$lib \\$libobjs \\$compiler_flags \\\\\\`echo \\\\\\"\\$deplibs\\\\\\" | \\$SED -e '"\'"'s/ -lc\\$//'"\'"'\\\\\\` -link -dll~linknames="%' \
20302	  -e 's%old_archive_cmds="lib -OUT:\\$oldlib\\$oldobjs\\$old_deplibs"%old_archive_cmds="if test -r \\$oldlib; then bla=\\"\\$oldlib\\"; else bla=; fi; lib -OUT:\\$oldlib \\\\\\$bla\\$oldobjs\\$old_deplibs"%' \
20303      libtool > conftest.bla
20304      ;;
20305    *)
20306      { echo "$as_me:$LINENO: Applying patches to libtool for GNU compiler" >&5
20307echo "$as_me: Applying patches to libtool for GNU compiler" >&6;}
20308      sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
20309	  -e 's|"lib /OUT:\\$oldlib\\$oldobjs\\$old_deplibs"|"\\$AR \\$AR_FLAGS \\$oldlib\\$oldobjs\\$old_deplibs~\\$RANLIB \\$oldlib"|' \
20310	  -e 's|libext="lib"|libext="a"|' \
20311      libtool > conftest.bla
20312      ;;
20313  esac
20314  mv conftest.bla libtool
20315  chmod 755 libtool
20316
20317      ;;
20318    *x86_64-*)
20319      if test "$GCC" = yes && (echo $CXXFLAGS $CFLAGS $FFLAGS | $EGREP 'm32' >& /dev/null); then
20320        { echo "$as_me:$LINENO: Applying patches to libtool for 32bit compilation" >&5
20321echo "$as_me: Applying patches to libtool for 32bit compilation" >&6;}
20322        sed -e 's|sys_lib_search_path_spec=".*"|sys_lib_search_path_spec="/lib /usr/lib"|' libtool > conftest.bla
20323        mv conftest.bla libtool
20324        chmod 755 libtool
20325      fi
20326      ;;
20327
20328    *-solaris*)
20329       if test "$GCC" = yes && \
20330     (echo $CXXFLAGS $CFLAGS $FFLAGS | $EGREP 'm64' >/dev/null 2>&1) ; then
20331    hdwisa=`isainfo | sed -e 's/\([^ ]*\) .*$/\1/'`
20332    if `$EGREP 'sys_lib_search_path_spec=' libtool | $EGREP -v $hdwisa >/dev/null 2>&1` ; then
20333      { echo "$as_me:$LINENO: Applying patches to libtool for 64-bit GCC compilation" >&5
20334echo "$as_me: Applying patches to libtool for 64-bit GCC compilation" >&6;}
20335      fixlibtmp=`$CC -m64 -print-search-dirs | $EGREP '^libraries:'`
20336      fixlibtmp=`echo $fixlibtmp | sed -e 's/libraries: =//' -e 's/:/ /g'`
20337      if `echo "$fixlibtmp" | $EGREP -v $hdwisa  >/dev/null 2>&1` ; then
20338	# AC_MSG_NOTICE(Compensating for broken gcc)
20339	for lib in $fixlibtmp ; do
20340	  if test -d "${lib}${hdwisa}" ; then
20341	    syslibpath64="$syslibpath64 ${lib}${hdwisa}/"
20342	  fi
20343	done
20344	syslibpath64="${syslibpath64} ${fixlibtmp}"
20345      else
20346	syslibpath64="$fixlibtmp"
20347      fi
20348      sed -e 's|sys_lib_search_path_spec=".*"|sys_lib_search_path_spec="'"$syslibpath64"'"|' libtool > conftest.bla
20349      mv conftest.bla libtool
20350      chmod 755 libtool
20351    fi
20352    # AC_MSG_NOTICE(Result is )
20353    # $EGREP 'sys_lib_search_path_spec=' libtool
20354  fi
20355      ;;
20356    # Cygwin. Ah, cygwin. Too big and ugly to inline; see the macro.
20357    *-darwin*)
20358      { echo "$as_me:$LINENO: Applying patches to libtool for Darwin" >&5
20359echo "$as_me: Applying patches to libtool for Darwin" >&6;}
20360      sed -e 's/verstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"/verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"/' \
20361        -e 's/ -dynamiclib / -dynamiclib -single_module /g' \
20362      libtool > conftest.bla
20363
20364      mv conftest.bla libtool
20365      chmod 755 libtool
20366      ;;
20367  esac
20368# This fi matches the commented `if test "x$LIBTOOL" = x;' up at the head of
20369# the macro. -- lh, 061214 --
20370# fi
20371
20372# AC_MSG_NOTICE([End libtool initialisation.])
20373
20374# AC_MSG_NOTICE([Finished COIN_PROG_LIBTOOL.])
20375  # set RPATH_FLAGS to the compiler link flags required to hardcode location
20376  # of the shared objects
20377  RPATH_FLAGS=
20378
20379if test $enable_shared = yes; then
20380  case $build in
20381    *-linux-*)
20382      if test "$GXX" = "yes"; then
20383        RPATH_FLAGS=
20384        for dir in $abs_lib_dir; do
20385          RPATH_FLAGS="$RPATH_FLAGS -Wl,--rpath -Wl,$dir"
20386        done
20387      fi ;;
20388    *-darwin*)
20389        RPATH_FLAGS=nothing ;;
20390    *-ibm-*)
20391      case "$CXX" in
20392      xlC* | */xlC* | mpxlC* | */mpxlC*)
20393        RPATH_FLAGS=nothing ;;
20394      esac ;;
20395    *-hp-*)
20396        RPATH_FLAGS=nothing ;;
20397    *-mingw32)
20398        RPATH_FLAGS=nothing ;;
20399    *-*-solaris*)
20400        RPATH_FLAGS=
20401        for dir in $abs_lib_dir; do
20402          RPATH_FLAGS="$RPATH_FLAGS -R$dir"
20403        done
20404  esac
20405
20406  if test "$RPATH_FLAGS" = ""; then
20407    { echo "$as_me:$LINENO: WARNING: Could not automatically determine how to tell the linker about automatic inclusion of the path for shared libraries.  The test examples might not work if you link against shared objects.  You will need to set the LD_LIBRARY_PATH, DYLP_LIBRARY_PATH, or LIBDIR variable manually." >&5
20408echo "$as_me: WARNING: Could not automatically determine how to tell the linker about automatic inclusion of the path for shared libraries.  The test examples might not work if you link against shared objects.  You will need to set the LD_LIBRARY_PATH, DYLP_LIBRARY_PATH, or LIBDIR variable manually." >&2;}
20409  fi
20410  if test "$RPATH_FLAGS" = "nothing"; then
20411    RPATH_FLAGS=
20412  fi
20413fi
20414
20415
20416
20417
20418else
20419
20420  { echo "$as_me:$LINENO: Using libtool script in directory $coin_config_dir" >&5
20421echo "$as_me: Using libtool script in directory $coin_config_dir" >&6;}
20422  # get all missing information from the config.log file
20423
20424  # output variables and defines
20425  as_save_IFS=$IFS
20426  IFS='
20427'
20428  for oneline in `cat $coin_config_dir/config.status`; do
20429    case "$oneline" in
20430         # First some automake conditionals
20431      s,@am__fastdep* | s,@AR@* | s,@CPP@*  | s,@CPPFLAGS@* | s,@CXXCPP@*  | \
20432      s,@RANLIB@* | s,@STRIP@* | s,@ac_ct_AR@* | s,@ac_ct_RANLIB@* | \
20433      s,@ac_ct_STRIP@* | s,@host* | s,@LN_S@* | s,@RPATH_FLAGS@* | \
20434      s,@ac_c_preproc_warn_flag@* |  s,@ac_cxx_preproc_warn_flag@* )
20435        command=`echo $oneline | sed -e 's/^s,@//' -e 's/@,/="/' -e 's/,;t t/"/'`
20436#        echo "$command"
20437        eval "$command"
20438        ;;
20439      s,@DEFS@* )
20440        command=`echo $oneline | sed -e 's/^s,@DEFS@,/defsline="/' -e 's/,;t t/"/'`
20441#        echo "$command"
20442        eval "$command"
20443        ;;
20444    esac
20445  done
20446  IFS=$as_save_IFS
20447
20448  # And some defines (assuming here that the packages base dir
20449  # doesn't have a config.h file
20450  for word in $defsline; do
20451#    echo word $word
20452    case $word in
20453      -DHAVE_[A-Z_]*_H=1 | -DSTDC_HEADERS=1 )
20454        i=`echo $word | sed -e 's/-D/#define /' -e 's/=/ /'`
20455#        echo dd $i
20456        echo $i >>confdefs.h
20457        ;;
20458    esac
20459  done
20460fi
20461
20462# AC_MSG_NOTICE([End of INIT_AUTO_TOOLS.])
20463
20464# Check whether --enable-dependency-linking or --disable-dependency-linking was given.
20465if test "${enable_dependency_linking+set}" = set; then
20466  enableval="$enable_dependency_linking"
20467  dependency_linking="$enableval"
20468else
20469  dependency_linking=auto
20470fi;
20471
20472if test "$dependency_linking" = auto; then
20473  # On Cygwin and AIX, building DLLs doesn't work
20474  dependency_linking=no
20475  if test x"$coin_disable_shared" = xno; then
20476    case $build in
20477      *-cygwin* | *-mingw*)
20478        case "$CC" in
20479          clang* )
20480            dependency_linking=yes
20481            ;;
20482          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
20483            dependency_linking=no
20484            ;;
20485          *gcc*)
20486            dependency_linking=yes
20487            ;;
20488          *)
20489            dependency_linking=yes
20490            ;;
20491        esac
20492        ;;
20493      *)
20494        dependency_linking=yes
20495        ;;
20496    esac
20497  fi
20498fi
20499
20500if test "$dependency_linking" = yes ;
20501then
20502  LT_LDFLAGS="-no-undefined"
20503else
20504  LT_LDFLAGS=
20505fi
20506
20507
20508
20509if test "$dependency_linking" = yes; then
20510  DEPENDENCY_LINKING_TRUE=
20511  DEPENDENCY_LINKING_FALSE='#'
20512else
20513  DEPENDENCY_LINKING_TRUE='#'
20514  DEPENDENCY_LINKING_FALSE=
20515fi
20516
20517
20518# Check if we want to set the library version
20519echo "$as_me:$LINENO: checking if library version is set" >&5
20520echo $ECHO_N "checking if library version is set... $ECHO_C" >&6
20521if test x"$coin_libversion" != x; then
20522  LT_LDFLAGS="$LT_LDFLAGS -version-info $coin_libversion"
20523  echo "$as_me:$LINENO: result: $coin_libversion" >&5
20524echo "${ECHO_T}$coin_libversion" >&6
20525else
20526  echo "$as_me:$LINENO: result: no" >&5
20527echo "${ECHO_T}no" >&6
20528fi
20529
20530
20531
20532#END
20533}
20534
20535#############################################################################
20536#                              COIN-OR components                           #
20537#############################################################################
20538
20539
20540
20541# Check whether --enable-pkg-config or --disable-pkg-config was given.
20542if test "${enable_pkg_config+set}" = set; then
20543  enableval="$enable_pkg_config"
20544  use_pkgconfig="$enableval"
20545else
20546  if test x$coin_cc_is_cl = xtrue; then
20547     use_pkgconfig=no
20548   else
20549     use_pkgconfig=yes
20550   fi
20551fi;
20552
20553if test $use_pkgconfig = yes ; then
20554  if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20555    if test -n "$ac_tool_prefix"; then
20556  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20557set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20558echo "$as_me:$LINENO: checking for $ac_word" >&5
20559echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20560if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
20561  echo $ECHO_N "(cached) $ECHO_C" >&6
20562else
20563  if test -n "$PKG_CONFIG"; then
20564  ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
20565else
20566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20567for as_dir in $PATH
20568do
20569  IFS=$as_save_IFS
20570  test -z "$as_dir" && as_dir=.
20571  for ac_exec_ext in '' $ac_executable_extensions; do
20572  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20573    ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
20574    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20575    break 2
20576  fi
20577done
20578done
20579
20580fi
20581fi
20582PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
20583if test -n "$PKG_CONFIG"; then
20584  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20585echo "${ECHO_T}$PKG_CONFIG" >&6
20586else
20587  echo "$as_me:$LINENO: result: no" >&5
20588echo "${ECHO_T}no" >&6
20589fi
20590
20591fi
20592if test -z "$ac_cv_prog_PKG_CONFIG"; then
20593  ac_ct_PKG_CONFIG=$PKG_CONFIG
20594  # Extract the first word of "pkg-config", so it can be a program name with args.
20595set dummy pkg-config; ac_word=$2
20596echo "$as_me:$LINENO: checking for $ac_word" >&5
20597echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20598if test "${ac_cv_prog_ac_ct_PKG_CONFIG+set}" = set; then
20599  echo $ECHO_N "(cached) $ECHO_C" >&6
20600else
20601  if test -n "$ac_ct_PKG_CONFIG"; then
20602  ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
20603else
20604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20605for as_dir in $PATH
20606do
20607  IFS=$as_save_IFS
20608  test -z "$as_dir" && as_dir=.
20609  for ac_exec_ext in '' $ac_executable_extensions; do
20610  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20611    ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
20612    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20613    break 2
20614  fi
20615done
20616done
20617
20618fi
20619fi
20620ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
20621if test -n "$ac_ct_PKG_CONFIG"; then
20622  echo "$as_me:$LINENO: result: $ac_ct_PKG_CONFIG" >&5
20623echo "${ECHO_T}$ac_ct_PKG_CONFIG" >&6
20624else
20625  echo "$as_me:$LINENO: result: no" >&5
20626echo "${ECHO_T}no" >&6
20627fi
20628
20629  PKG_CONFIG=$ac_ct_PKG_CONFIG
20630else
20631  PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
20632fi
20633
20634  fi
20635  if test -n "$PKG_CONFIG"; then
20636    _pkg_min_version=0.16.0
20637    echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
20638echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
20639    if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20640      echo "$as_me:$LINENO: result: yes" >&5
20641echo "${ECHO_T}yes" >&6
20642    else
20643      echo "$as_me:$LINENO: result: no" >&5
20644echo "${ECHO_T}no" >&6
20645      PKG_CONFIG=""
20646    fi
20647  fi
20648
20649  # check if pkg-config supports the short-errors flag
20650  if test -n "$PKG_CONFIG" && \
20651    $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20652    pkg_short_errors=" --short-errors "
20653  else
20654    pkg_short_errors=""
20655  fi
20656fi
20657
20658
20659
20660if test -n "$PKG_CONFIG"; then
20661  COIN_HAS_PKGCONFIG_TRUE=
20662  COIN_HAS_PKGCONFIG_FALSE='#'
20663else
20664  COIN_HAS_PKGCONFIG_TRUE='#'
20665  COIN_HAS_PKGCONFIG_FALSE=
20666fi
20667
20668
20669
20670# assemble pkg-config search path for installed projects
20671COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
20672
20673# let's assume that when installing into $prefix, then the user may have installed some other coin projects there before, so it's worth to have a look into there
20674# best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
20675# unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
20676if test "x${prefix}" = xNONE ; then
20677  COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib64/pkgconfig:${ac_default_prefix}/lib/pkgconfig:${ac_default_prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
20678else
20679  COIN_PKG_CONFIG_PATH="${prefix}/lib64/pkgconfig:${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
20680fi
20681
20682
20683# Check whether --with-coin-instdir or --without-coin-instdir was given.
20684if test "${with_coin_instdir+set}" = set; then
20685  withval="$with_coin_instdir"
20686  if test -d "$withval"; then : ; else
20687     { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
20688echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
20689   { (exit 1); exit 1; }; }
20690   fi
20691   COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:$withval/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
20692
20693fi;
20694
20695
20696
20697# assemble additional pkg-config search paths for uninstalled projects
20698if test x$coin_projectdir = xyes ; then
20699  # if we are in a project setup, then in a classic setup, we want to find uninstalled projects
20700  # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
20701  # unfortunately, if the user set prefix, then we do not know where the project base directory is located
20702  # but it is likely to be either .. (if we are a usual coin project) or ../.. (if we are a unusual coin project like ThirdParty or Data)
20703  COIN_PKG_CONFIG_PATH_UNINSTALLED=
20704  if test -f ../coin_subdirs.txt ; then
20705    for i in `cat ../coin_subdirs.txt` ; do
20706      if test -d ../$i ; then
20707        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
20708      fi
20709      if test -d ../$i/pkgconfig ; then
20710        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
20711      fi
20712    done
20713  fi
20714
20715  if test -f ../../coin_subdirs.txt ; then
20716    for i in `cat ../../coin_subdirs.txt` ; do
20717      if test -d ../../$i ; then
20718        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
20719      fi
20720      if test -d ../../$i/pkgconfig ; then
20721        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
20722      fi
20723    done
20724  fi
20725
20726
20727fi
20728
20729if test -n "$PKG_CONFIG" && test x$coin_cc_is_cl = xtrue; then
20730  { echo "$as_me:$LINENO: WARNING: Using pkg-config together with MS or Intel Compiler on Windows is not support by example Makefiles. Consider using --disable-pkg-config." >&5
20731echo "$as_me: WARNING: Using pkg-config together with MS or Intel Compiler on Windows is not support by example Makefiles. Consider using --disable-pkg-config." >&2;}
20732fi
20733
20734
20735
20736echo "$as_me:$LINENO: checking for COIN-OR package CoinUtils" >&5
20737echo $ECHO_N "checking for COIN-OR package CoinUtils... $ECHO_C" >&6
20738
20739coin_has_coinutils=notGiven
20740
20741# check if user wants to skip package in any case
20742if test x"$COIN_SKIP_PROJECTS" != x; then
20743  for dir in $COIN_SKIP_PROJECTS; do
20744    if test $dir = "CoinUtils"; then
20745      coin_has_coinutils=skipping
20746    fi
20747  done
20748fi
20749
20750if test "$coin_has_coinutils" != skipping; then
20751
20752# Check whether --with-m4_tolower(CoinUtils) or --without-m4_tolower(CoinUtils) was given.
20753if test "${with_coinutils+set}" = set; then
20754  withval="$with_coinutils"
20755  if test "$withval" = no ; then
20756       coin_has_coinutils=skipping
20757     fi
20758
20759fi;
20760fi
20761
20762COINUTILS_LIBS=
20763COINUTILS_CFLAGS=
20764COINUTILS_DATA=
20765COINUTILS_DEPENDENCIES=
20766COINUTILS_PCLIBS=
20767COINUTILS_PCREQUIRES=
20768
20769
20770
20771
20772
20773
20774
20775
20776
20777
20778
20779
20780
20781
20782
20783
20784
20785#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
20786if test $coin_has_coinutils != skipping; then
20787
20788# Check whether --with-m4_tolower(CoinUtils)-lib or --without-m4_tolower(CoinUtils)-lib was given.
20789if test "${with_coinutils_lib+set}" = set; then
20790  withval="$with_coinutils_lib"
20791  if test "$withval" = no ; then
20792       coin_has_coinutils=skipping
20793     else
20794       coin_has_coinutils=yes
20795       COINUTILS_LIBS="$withval"
20796       COINUTILS_PCLIBS="$withval"
20797
20798         CLPLIB_PCLIBS="$withval $CLPLIB_PCLIBS"
20799         CLPLIB_LIBS="$withval $CLPLIB_LIBS"
20800
20801       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
20802       if test -z "$PKG_CONFIG" ; then
20803         COINUTILS_LIBS_INSTALLED="$withval"
20804         CLPLIB_LIBS_INSTALLED="$withval $CLPLIB_LIBS_INSTALLED"
20805       fi
20806     fi
20807
20808fi;
20809fi
20810
20811if test $coin_has_coinutils != skipping; then
20812
20813# Check whether --with-m4_tolower(CoinUtils)-incdir or --without-m4_tolower(CoinUtils)-incdir was given.
20814if test "${with_coinutils_incdir+set}" = set; then
20815  withval="$with_coinutils_incdir"
20816  if test "$withval" = no ; then
20817       coin_has_coinutils=skipping
20818     else
20819       coin_has_coinutils=yes
20820       COINUTILS_CFLAGS="-I`${CYGPATH_W} $withval`"
20821       CLPLIB_CFLAGS="-I`${CYGPATH_W} $withval` $CLPLIB_CFLAGS"
20822       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
20823       if test -z "$PKG_CONFIG" ; then
20824         COINUTILS_CFLAGS_INSTALLED="$COINUTILS_CFLAGS"
20825         CLPLIB_CFLAGS_INSTALLED="$COINUTILS_CFLAGS $CLPLIB_CFLAGS_INSTALLED"
20826       fi
20827     fi
20828
20829fi;
20830fi
20831
20832if test $coin_has_coinutils != skipping; then
20833
20834# Check whether --with-m4_tolower(CoinUtils)-datadir or --without-m4_tolower(CoinUtils)-datadir was given.
20835if test "${with_coinutils_datadir+set}" = set; then
20836  withval="$with_coinutils_datadir"
20837  if test "$withval" = no ; then
20838       coin_has_coinutils=skipping
20839     else
20840       coin_has_coinutils=yes
20841       COINUTILS_DATA="$withval"
20842       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
20843       if test -z "$PKG_CONFIG" ; then
20844         COINUTILS_DATA_INSTALLED="$withval"
20845       fi
20846     fi
20847
20848fi;
20849fi
20850
20851if test $coin_has_coinutils = notGiven; then
20852  if test -n "$PKG_CONFIG" ; then
20853    # set search path for pkg-config
20854    # need to export variable to be sure that the following pkg-config gets these values
20855    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
20856    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
20857    export PKG_CONFIG_PATH
20858
20859    # let pkg-config do it's magic
20860
20861
20862
20863if test -n "$PKG_CONFIG" ; then
20864  if $PKG_CONFIG --exists "coinutils"; then
20865    COINUTILS_VERSIONS=`$PKG_CONFIG --modversion "coinutils" 2>/dev/null | tr '\n' ' '`
20866     cflags=`$PKG_CONFIG --cflags "coinutils" 2>/dev/null`
20867    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
20868	# thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
20869	# but only do this if is not trivial
20870    if test "$CYGPATH_W" != "echo" ; then
20871      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
20872      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
20873    fi
20874    COINUTILS_CFLAGS="$cflags"
20875    COINUTILS_LIBS=`$PKG_CONFIG --libs "coinutils" 2>/dev/null`
20876    COINUTILS_DATA=`$PKG_CONFIG --variable=datadir "coinutils" 2>/dev/null`
20877     coin_has_coinutils=yes
20878        echo "$as_me:$LINENO: result: yes: $COINUTILS_VERSIONS" >&5
20879echo "${ECHO_T}yes: $COINUTILS_VERSIONS" >&6
20880
20881        # adjust linker flags for (i)cl compiler
20882        # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl)
20883        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
20884        then
20885          COINUTILS_LIBS=`echo " $COINUTILS_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
20886        fi
20887        COINUTILS_PCREQUIRES="coinutils"
20888
20889        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in ClpLib
20890
20891          CLPLIB_PCREQUIRES="coinutils $CLPLIB_PCREQUIRES"
20892          CLPLIB_CFLAGS="$COINUTILS_CFLAGS $CLPLIB_CFLAGS"
20893          CLPLIB_LIBS="$COINUTILS_LIBS $CLPLIB_LIBS"
20894
20895
20896
20897  else
20898    COINUTILS_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "coinutils"`
20899      coin_has_coinutils=notGiven
20900        echo "$as_me:$LINENO: result: not given: $COINUTILS_PKG_ERRORS" >&5
20901echo "${ECHO_T}not given: $COINUTILS_PKG_ERRORS" >&6
20902
20903  fi
20904else
20905  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module CoinUtils without pkg-config\"" >&5
20906echo "$as_me: error: \"Cannot check for existance of module CoinUtils without pkg-config\"" >&2;}
20907   { (exit 1); exit 1; }; }
20908fi
20909
20910
20911
20912
20913    # reset PKG_CONFIG_PATH variable
20914    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
20915    export PKG_CONFIG_PATH
20916
20917  else
20918    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
20919echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
20920
20921echo "$as_me:$LINENO: checking for COIN-OR package CoinUtils (fallback)" >&5
20922echo $ECHO_N "checking for COIN-OR package CoinUtils (fallback)... $ECHO_C" >&6
20923
20924coin_has_coinutils=notGiven
20925COINUTILS_LIBS=
20926COINUTILS_LIBS_INSTALLED=
20927COINUTILS_CFLAGS=
20928COINUTILS_CFLAGS_INSTALLED=
20929COINUTILS_DATA=
20930COINUTILS_DATA_INSTALLED=
20931COINUTILS_PCLIBS=
20932COINUTILS_PCREQUIRES=
20933
20934# initial list of dependencies is "coinutils", but we need to filter out version number specifications (= x, <= x, >= x, != x)
20935projtoprocess="coinutils"
20936
20937# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
20938# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
20939# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
20940# also, we setup the DATA variable
20941allproj=""
20942allpcfiles=""
20943allpcifiles=""
20944while test "x$projtoprocess" != x ; do
20945
20946  for proj in $projtoprocess ; do
20947    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
20948    pcfile=""
20949    save_IFS="$IFS"
20950    IFS=":"
20951    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
20952      # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again
20953      if test -r "$dir/${proj}-uninstalled.pc" ; then
20954        pcfile="$dir/$proj-uninstalled.pc"
20955        if test -r "$dir/${proj}.pc" ; then
20956          pcifile="$dir/${proj}.pc"
20957        else
20958          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
20959echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
20960          pcifile=
20961        fi
20962        break
20963      fi
20964    done
20965    IFS="$save_IFS"
20966
20967    if test "x$pcfile" != x ; then
20968      # read dependencies from $pcfile and filter it
20969      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ 	]\{0,\}[^ 	]\{1,\}//g'`
20970
20971      # add projrequires to the front of the list of projects that have to be processed next
20972      # at the same time, remove $proj from this list
20973      projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
20974
20975      # read DATA from $pcfile, if _DATA is still empty
20976      if test "x$COINUTILS_DATA" = x ; then
20977        projdatadir=
20978        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
20979        eval `sh -c "$pcfilemod"`
20980        COINUTILS_DATA="$projdatadir"
20981      fi
20982
20983      allproj="$allproj $proj"
20984      allpcfiles="$pcfile:$allpcfiles"
20985
20986    else
20987      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
20988echo "${ECHO_T}no, dependency $proj not available" >&6
20989      allproj=fail
20990      break 2
20991    fi
20992
20993    if test "x$pcifile" != x ; then
20994      allpcifiles="$pcifile:$allpcifiles"
20995
20996      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
20997      if test "x$COINUTILS_DATA_INSTALLED" = x ; then
20998        projdatadir=
20999        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
21000        eval `sh -c "$pcifilemod"`
21001        if test "${CYGPATH_W}" != "echo"; then
21002          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
21003        fi
21004        COINUTILS_DATA_INSTALLED="$projdatadir"
21005      fi
21006
21007    fi
21008
21009    break
21010  done
21011
21012  # remove spaces on begin of $projtoprocess
21013  projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
21014
21015done
21016
21017if test "$allproj" != fail ; then
21018
21019  # now go through the list of .pc files and assemble compiler and linker flags
21020  # important is here to obey the reverse order that has been setup before,
21021  # since then libraries that are required by several others should be after these other libraries
21022  pcfilesprocessed=""
21023
21024  save_IFS="$IFS"
21025  IFS=":"
21026  for pcfile in $allpcfiles ; do
21027
21028    # if $pcfile has been processed already, skip this round
21029    if test "x$pcfilesprocessed" != x ; then
21030      for pcfiledone in $pcfilesprocessed ; do
21031        if test "$pcfiledone" = "$pcfile" ; then
21032          continue 2
21033        fi
21034      done
21035    fi
21036
21037    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
21038    #   replace "Libs:" by "echo projlibs="
21039    #   replace "Cflags:" by "echo projcflags="
21040    #   remove every line starting with <some word>:
21041    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
21042
21043    # set projcflags and projlibs variables by running $pcfilemod
21044    # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
21045    projcflags=
21046    projlibs=
21047    IFS="$save_IFS"
21048    eval `sh -c "$pcfilemod"`
21049    IFS=":"
21050
21051    # add CYGPATH_W cludge into include flags and set CFLAGS variable
21052    if test "${CYGPATH_W}" != "echo"; then
21053      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
21054    fi
21055    COINUTILS_CFLAGS="$projcflags $COINUTILS_CFLAGS"
21056
21057    # set LIBS variable
21058    COINUTILS_LIBS="$projlibs $COINUTILS_LIBS"
21059
21060    # remember that we have processed $pcfile
21061    pcfilesprocessed="$pcfilesprocessed:$pcfile"
21062
21063  done
21064  IFS="$save_IFS"
21065
21066
21067  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
21068  # important is here again to obey the reverse order that has been setup before,
21069  # since then libraries that are required by several others should be after these other libraries
21070  pcfilesprocessed=""
21071
21072  save_IFS="$IFS"
21073  IFS=":"
21074  for pcfile in $allpcifiles ; do
21075
21076    # if $pcfile has been processed already, skip this round
21077    if test "x$pcfilesprocessed" != x ; then
21078      for pcfiledone in $pcfilesprocessed ; do
21079        if test "$pcfiledone" = "$pcfile" ; then
21080          continue 2
21081        fi
21082      done
21083    fi
21084
21085    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
21086    #   replace "Libs:" by "echo projlibs="
21087    #   replace "Cflags:" by "echo projcflags="
21088    #   remove every line starting with <some word>:
21089    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
21090
21091    # set projcflags and projlibs variables by running $pcfilemod
21092    # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
21093    projcflags=
21094    projlibs=
21095    IFS="$save_IFS"
21096    eval `sh -c "$pcfilemod"`
21097    IFS=":"
21098
21099    # add CYGPATH_W cludge into include flags and set CFLAGS variable
21100    if test "${CYGPATH_W}" != "echo"; then
21101      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
21102    fi
21103    COINUTILS_CFLAGS_INSTALLED="$projcflags $COINUTILS_CFLAGS_INSTALLED"
21104
21105    # set LIBS variable
21106    COINUTILS_LIBS_INSTALLED="$projlibs $COINUTILS_LIBS_INSTALLED"
21107
21108    # remember that we have processed $pcfile
21109    pcfilesprocessed="$pcfilesprocessed:$pcfile"
21110
21111  done
21112  IFS="$save_IFS"
21113
21114
21115  # finish up
21116  coin_has_coinutils=yes
21117  echo "$as_me:$LINENO: result: yes" >&5
21118echo "${ECHO_T}yes" >&6
21119
21120cat >>confdefs.h <<\_ACEOF
21121#define COIN_HAS_COINUTILS 1
21122_ACEOF
21123
21124
21125  # adjust linker flags for (i)cl compiler
21126  # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl),
21127  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
21128  #    everything of the form "-lname" by "libname.lib", and
21129  #    everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
21130  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
21131  then
21132    COINUTILS_LIBS=`echo " $COINUTILS_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
21133    COINUTILS_LIBS_INSTALLED=`echo " $COINUTILS_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'`
21134  fi
21135
21136  COINUTILS_PCREQUIRES="coinutils"
21137
21138    CLPLIB_PCREQUIRES="coinutils $CLPLIB_PCREQUIRES"
21139    CLPLIB_CFLAGS="$COINUTILS_CFLAGS $CLPLIB_CFLAGS"
21140    CLPLIB_LIBS="$COINUTILS_LIBS $CLPLIB_LIBS"
21141    CLPLIB_CFLAGS_INSTALLED="$COINUTILS_CFLAGS_INSTALLED $CLPLIB_CFLAGS_INSTALLED"
21142    CLPLIB_LIBS_INSTALLED="$COINUTILS_LIBS_INSTALLED $CLPLIB_LIBS_INSTALLED"
21143
21144
21145fi
21146
21147
21148
21149if test $coin_has_coinutils != notGiven &&
21150                test $coin_has_coinutils != skipping; then
21151  COIN_HAS_COINUTILS_TRUE=
21152  COIN_HAS_COINUTILS_FALSE='#'
21153else
21154  COIN_HAS_COINUTILS_TRUE='#'
21155  COIN_HAS_COINUTILS_FALSE=
21156fi
21157
21158
21159
21160  fi
21161
21162else
21163  echo "$as_me:$LINENO: result: $coin_has_coinutils" >&5
21164echo "${ECHO_T}$coin_has_coinutils" >&6
21165fi
21166
21167if test $coin_has_coinutils != skipping &&
21168   test $coin_has_coinutils != notGiven ; then
21169
21170cat >>confdefs.h <<\_ACEOF
21171#define COIN_HAS_COINUTILS 1
21172_ACEOF
21173
21174
21175  # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
21176if test "${enable_interpackage_dependencies+set}" = set; then
21177  enableval="$enable_interpackage_dependencies"
21178
21179else
21180  enable_interpackage_dependencies=yes
21181fi;
21182
21183  if test $enable_interpackage_dependencies = yes ; then
21184     # construct dependencies variables from LIBS variables
21185     # we add an extra space in LIBS so we can substitute out everything starting with " -"
21186     # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows
21187     # then remove everything of the form -xxx
21188     # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
21189     COINUTILS_DEPENDENCIES=`echo " $COINUTILS_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
21190
21191       CLPLIB_DEPENDENCIES=`echo " $CLPLIB_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
21192
21193  fi
21194
21195  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
21196    if test -n "$COINUTILS_CFLAGS" ; then
21197      { echo "$as_me:$LINENO: CoinUtils CFLAGS are $COINUTILS_CFLAGS" >&5
21198echo "$as_me: CoinUtils CFLAGS are $COINUTILS_CFLAGS" >&6;}
21199    fi
21200    if test -n "$COINUTILS_LIBS" ; then
21201      { echo "$as_me:$LINENO: CoinUtils LIBS   are $COINUTILS_LIBS" >&5
21202echo "$as_me: CoinUtils LIBS   are $COINUTILS_LIBS" >&6;}
21203    fi
21204    if test -n "$COINUTILS_DEPENDENCIES" ; then
21205      { echo "$as_me:$LINENO: CoinUtils DEPENDENCIES are $COINUTILS_DEPENDENCIES" >&5
21206echo "$as_me: CoinUtils DEPENDENCIES are $COINUTILS_DEPENDENCIES" >&6;}
21207    fi
21208    if test -n "$COINUTILS_DATA" ; then
21209      { echo "$as_me:$LINENO: CoinUtils DATA   is  $COINUTILS_DATA" >&5
21210echo "$as_me: CoinUtils DATA   is  $COINUTILS_DATA" >&6;}
21211    fi
21212    if test -n "$COINUTILS_PCLIBS" ; then
21213      { echo "$as_me:$LINENO: CoinUtils PCLIBS are $COINUTILS_PCLIBS" >&5
21214echo "$as_me: CoinUtils PCLIBS are $COINUTILS_PCLIBS" >&6;}
21215    fi
21216    if test -n "$COINUTILS_PCREQUIRES" ; then
21217      { echo "$as_me:$LINENO: CoinUtils PCREQUIRES are $COINUTILS_PCREQUIRES" >&5
21218echo "$as_me: CoinUtils PCREQUIRES are $COINUTILS_PCREQUIRES" >&6;}
21219    fi
21220
21221      { echo "$as_me:$LINENO: ClpLib CFLAGS are $CLPLIB_CFLAGS" >&5
21222echo "$as_me: ClpLib CFLAGS are $CLPLIB_CFLAGS" >&6;}
21223      { echo "$as_me:$LINENO: ClpLib LIBS   are $CLPLIB_LIBS" >&5
21224echo "$as_me: ClpLib LIBS   are $CLPLIB_LIBS" >&6;}
21225      { echo "$as_me:$LINENO: ClpLib DEPENDENCIES are $CLPLIB_DEPENDENCIES" >&5
21226echo "$as_me: ClpLib DEPENDENCIES are $CLPLIB_DEPENDENCIES" >&6;}
21227
21228  fi
21229fi
21230
21231# Define the Makefile conditional
21232
21233
21234if test $coin_has_coinutils != notGiven &&
21235                test $coin_has_coinutils != skipping; then
21236  COIN_HAS_COINUTILS_TRUE=
21237  COIN_HAS_COINUTILS_FALSE='#'
21238else
21239  COIN_HAS_COINUTILS_TRUE='#'
21240  COIN_HAS_COINUTILS_FALSE=
21241fi
21242
21243
21244
21245if test $coin_has_coinutils != yes ; then
21246  { { echo "$as_me:$LINENO: error: Required package CoinUtils not available." >&5
21247echo "$as_me: error: Required package CoinUtils not available." >&2;}
21248   { (exit 1); exit 1; }; }
21249fi
21250
21251echo "$as_me:$LINENO: checking for COIN-OR package Osi" >&5
21252echo $ECHO_N "checking for COIN-OR package Osi... $ECHO_C" >&6
21253
21254coin_has_osi=notGiven
21255
21256# check if user wants to skip package in any case
21257if test x"$COIN_SKIP_PROJECTS" != x; then
21258  for dir in $COIN_SKIP_PROJECTS; do
21259    if test $dir = "Osi"; then
21260      coin_has_osi=skipping
21261    fi
21262  done
21263fi
21264
21265if test "$coin_has_osi" != skipping; then
21266
21267# Check whether --with-m4_tolower(Osi) or --without-m4_tolower(Osi) was given.
21268if test "${with_osi+set}" = set; then
21269  withval="$with_osi"
21270  if test "$withval" = no ; then
21271       coin_has_osi=skipping
21272     fi
21273
21274fi;
21275fi
21276
21277OSI_LIBS=
21278OSI_CFLAGS=
21279OSI_DATA=
21280OSI_DEPENDENCIES=
21281OSI_PCLIBS=
21282OSI_PCREQUIRES=
21283
21284
21285
21286
21287
21288
21289
21290
21291
21292
21293
21294
21295
21296
21297
21298
21299
21300#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
21301if test $coin_has_osi != skipping; then
21302
21303# Check whether --with-m4_tolower(Osi)-lib or --without-m4_tolower(Osi)-lib was given.
21304if test "${with_osi_lib+set}" = set; then
21305  withval="$with_osi_lib"
21306  if test "$withval" = no ; then
21307       coin_has_osi=skipping
21308     else
21309       coin_has_osi=yes
21310       OSI_LIBS="$withval"
21311       OSI_PCLIBS="$withval"
21312
21313         OSICLPLIB_PCLIBS="$withval $OSICLPLIB_PCLIBS"
21314         OSICLPLIB_LIBS="$withval $OSICLPLIB_LIBS"
21315
21316       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
21317       if test -z "$PKG_CONFIG" ; then
21318         OSI_LIBS_INSTALLED="$withval"
21319         OSICLPLIB_LIBS_INSTALLED="$withval $OSICLPLIB_LIBS_INSTALLED"
21320       fi
21321     fi
21322
21323fi;
21324fi
21325
21326if test $coin_has_osi != skipping; then
21327
21328# Check whether --with-m4_tolower(Osi)-incdir or --without-m4_tolower(Osi)-incdir was given.
21329if test "${with_osi_incdir+set}" = set; then
21330  withval="$with_osi_incdir"
21331  if test "$withval" = no ; then
21332       coin_has_osi=skipping
21333     else
21334       coin_has_osi=yes
21335       OSI_CFLAGS="-I`${CYGPATH_W} $withval`"
21336       OSICLPLIB_CFLAGS="-I`${CYGPATH_W} $withval` $OSICLPLIB_CFLAGS"
21337       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
21338       if test -z "$PKG_CONFIG" ; then
21339         OSI_CFLAGS_INSTALLED="$OSI_CFLAGS"
21340         OSICLPLIB_CFLAGS_INSTALLED="$OSI_CFLAGS $OSICLPLIB_CFLAGS_INSTALLED"
21341       fi
21342     fi
21343
21344fi;
21345fi
21346
21347if test $coin_has_osi != skipping; then
21348
21349# Check whether --with-m4_tolower(Osi)-datadir or --without-m4_tolower(Osi)-datadir was given.
21350if test "${with_osi_datadir+set}" = set; then
21351  withval="$with_osi_datadir"
21352  if test "$withval" = no ; then
21353       coin_has_osi=skipping
21354     else
21355       coin_has_osi=yes
21356       OSI_DATA="$withval"
21357       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
21358       if test -z "$PKG_CONFIG" ; then
21359         OSI_DATA_INSTALLED="$withval"
21360       fi
21361     fi
21362
21363fi;
21364fi
21365
21366if test $coin_has_osi = notGiven; then
21367  if test -n "$PKG_CONFIG" ; then
21368    # set search path for pkg-config
21369    # need to export variable to be sure that the following pkg-config gets these values
21370    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
21371    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
21372    export PKG_CONFIG_PATH
21373
21374    # let pkg-config do it's magic
21375
21376
21377
21378if test -n "$PKG_CONFIG" ; then
21379  if $PKG_CONFIG --exists "osi"; then
21380    OSI_VERSIONS=`$PKG_CONFIG --modversion "osi" 2>/dev/null | tr '\n' ' '`
21381     cflags=`$PKG_CONFIG --cflags "osi" 2>/dev/null`
21382    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
21383	# thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
21384	# but only do this if is not trivial
21385    if test "$CYGPATH_W" != "echo" ; then
21386      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
21387      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
21388    fi
21389    OSI_CFLAGS="$cflags"
21390    OSI_LIBS=`$PKG_CONFIG --libs "osi" 2>/dev/null`
21391    OSI_DATA=`$PKG_CONFIG --variable=datadir "osi" 2>/dev/null`
21392     coin_has_osi=yes
21393        echo "$as_me:$LINENO: result: yes: $OSI_VERSIONS" >&5
21394echo "${ECHO_T}yes: $OSI_VERSIONS" >&6
21395
21396        # adjust linker flags for (i)cl compiler
21397        # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl)
21398        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
21399        then
21400          OSI_LIBS=`echo " $OSI_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
21401        fi
21402        OSI_PCREQUIRES="osi"
21403
21404        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in OsiClpLib
21405
21406          OSICLPLIB_PCREQUIRES="osi $OSICLPLIB_PCREQUIRES"
21407          OSICLPLIB_CFLAGS="$OSI_CFLAGS $OSICLPLIB_CFLAGS"
21408          OSICLPLIB_LIBS="$OSI_LIBS $OSICLPLIB_LIBS"
21409
21410
21411
21412  else
21413    OSI_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "osi"`
21414      coin_has_osi=notGiven
21415        echo "$as_me:$LINENO: result: not given: $OSI_PKG_ERRORS" >&5
21416echo "${ECHO_T}not given: $OSI_PKG_ERRORS" >&6
21417
21418  fi
21419else
21420  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Osi without pkg-config\"" >&5
21421echo "$as_me: error: \"Cannot check for existance of module Osi without pkg-config\"" >&2;}
21422   { (exit 1); exit 1; }; }
21423fi
21424
21425
21426
21427
21428    # reset PKG_CONFIG_PATH variable
21429    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
21430    export PKG_CONFIG_PATH
21431
21432  else
21433    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
21434echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
21435
21436echo "$as_me:$LINENO: checking for COIN-OR package Osi (fallback)" >&5
21437echo $ECHO_N "checking for COIN-OR package Osi (fallback)... $ECHO_C" >&6
21438
21439coin_has_osi=notGiven
21440OSI_LIBS=
21441OSI_LIBS_INSTALLED=
21442OSI_CFLAGS=
21443OSI_CFLAGS_INSTALLED=
21444OSI_DATA=
21445OSI_DATA_INSTALLED=
21446OSI_PCLIBS=
21447OSI_PCREQUIRES=
21448
21449# initial list of dependencies is "osi", but we need to filter out version number specifications (= x, <= x, >= x, != x)
21450projtoprocess="osi"
21451
21452# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
21453# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
21454# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
21455# also, we setup the DATA variable
21456allproj=""
21457allpcfiles=""
21458allpcifiles=""
21459while test "x$projtoprocess" != x ; do
21460
21461  for proj in $projtoprocess ; do
21462    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
21463    pcfile=""
21464    save_IFS="$IFS"
21465    IFS=":"
21466    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
21467      # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again
21468      if test -r "$dir/${proj}-uninstalled.pc" ; then
21469        pcfile="$dir/$proj-uninstalled.pc"
21470        if test -r "$dir/${proj}.pc" ; then
21471          pcifile="$dir/${proj}.pc"
21472        else
21473          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
21474echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
21475          pcifile=
21476        fi
21477        break
21478      fi
21479    done
21480    IFS="$save_IFS"
21481
21482    if test "x$pcfile" != x ; then
21483      # read dependencies from $pcfile and filter it
21484      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ 	]\{0,\}[^ 	]\{1,\}//g'`
21485
21486      # add projrequires to the front of the list of projects that have to be processed next
21487      # at the same time, remove $proj from this list
21488      projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
21489
21490      # read DATA from $pcfile, if _DATA is still empty
21491      if test "x$OSI_DATA" = x ; then
21492        projdatadir=
21493        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
21494        eval `sh -c "$pcfilemod"`
21495        OSI_DATA="$projdatadir"
21496      fi
21497
21498      allproj="$allproj $proj"
21499      allpcfiles="$pcfile:$allpcfiles"
21500
21501    else
21502      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
21503echo "${ECHO_T}no, dependency $proj not available" >&6
21504      allproj=fail
21505      break 2
21506    fi
21507
21508    if test "x$pcifile" != x ; then
21509      allpcifiles="$pcifile:$allpcifiles"
21510
21511      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
21512      if test "x$OSI_DATA_INSTALLED" = x ; then
21513        projdatadir=
21514        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
21515        eval `sh -c "$pcifilemod"`
21516        if test "${CYGPATH_W}" != "echo"; then
21517          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
21518        fi
21519        OSI_DATA_INSTALLED="$projdatadir"
21520      fi
21521
21522    fi
21523
21524    break
21525  done
21526
21527  # remove spaces on begin of $projtoprocess
21528  projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
21529
21530done
21531
21532if test "$allproj" != fail ; then
21533
21534  # now go through the list of .pc files and assemble compiler and linker flags
21535  # important is here to obey the reverse order that has been setup before,
21536  # since then libraries that are required by several others should be after these other libraries
21537  pcfilesprocessed=""
21538
21539  save_IFS="$IFS"
21540  IFS=":"
21541  for pcfile in $allpcfiles ; do
21542
21543    # if $pcfile has been processed already, skip this round
21544    if test "x$pcfilesprocessed" != x ; then
21545      for pcfiledone in $pcfilesprocessed ; do
21546        if test "$pcfiledone" = "$pcfile" ; then
21547          continue 2
21548        fi
21549      done
21550    fi
21551
21552    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
21553    #   replace "Libs:" by "echo projlibs="
21554    #   replace "Cflags:" by "echo projcflags="
21555    #   remove every line starting with <some word>:
21556    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
21557
21558    # set projcflags and projlibs variables by running $pcfilemod
21559    # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
21560    projcflags=
21561    projlibs=
21562    IFS="$save_IFS"
21563    eval `sh -c "$pcfilemod"`
21564    IFS=":"
21565
21566    # add CYGPATH_W cludge into include flags and set CFLAGS variable
21567    if test "${CYGPATH_W}" != "echo"; then
21568      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
21569    fi
21570    OSI_CFLAGS="$projcflags $OSI_CFLAGS"
21571
21572    # set LIBS variable
21573    OSI_LIBS="$projlibs $OSI_LIBS"
21574
21575    # remember that we have processed $pcfile
21576    pcfilesprocessed="$pcfilesprocessed:$pcfile"
21577
21578  done
21579  IFS="$save_IFS"
21580
21581
21582  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
21583  # important is here again to obey the reverse order that has been setup before,
21584  # since then libraries that are required by several others should be after these other libraries
21585  pcfilesprocessed=""
21586
21587  save_IFS="$IFS"
21588  IFS=":"
21589  for pcfile in $allpcifiles ; do
21590
21591    # if $pcfile has been processed already, skip this round
21592    if test "x$pcfilesprocessed" != x ; then
21593      for pcfiledone in $pcfilesprocessed ; do
21594        if test "$pcfiledone" = "$pcfile" ; then
21595          continue 2
21596        fi
21597      done
21598    fi
21599
21600    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
21601    #   replace "Libs:" by "echo projlibs="
21602    #   replace "Cflags:" by "echo projcflags="
21603    #   remove every line starting with <some word>:
21604    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
21605
21606    # set projcflags and projlibs variables by running $pcfilemod
21607    # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
21608    projcflags=
21609    projlibs=
21610    IFS="$save_IFS"
21611    eval `sh -c "$pcfilemod"`
21612    IFS=":"
21613
21614    # add CYGPATH_W cludge into include flags and set CFLAGS variable
21615    if test "${CYGPATH_W}" != "echo"; then
21616      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
21617    fi
21618    OSI_CFLAGS_INSTALLED="$projcflags $OSI_CFLAGS_INSTALLED"
21619
21620    # set LIBS variable
21621    OSI_LIBS_INSTALLED="$projlibs $OSI_LIBS_INSTALLED"
21622
21623    # remember that we have processed $pcfile
21624    pcfilesprocessed="$pcfilesprocessed:$pcfile"
21625
21626  done
21627  IFS="$save_IFS"
21628
21629
21630  # finish up
21631  coin_has_osi=yes
21632  echo "$as_me:$LINENO: result: yes" >&5
21633echo "${ECHO_T}yes" >&6
21634
21635cat >>confdefs.h <<\_ACEOF
21636#define COIN_HAS_OSI 1
21637_ACEOF
21638
21639
21640  # adjust linker flags for (i)cl compiler
21641  # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl),
21642  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
21643  #    everything of the form "-lname" by "libname.lib", and
21644  #    everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
21645  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
21646  then
21647    OSI_LIBS=`echo " $OSI_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
21648    OSI_LIBS_INSTALLED=`echo " $OSI_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'`
21649  fi
21650
21651  OSI_PCREQUIRES="osi"
21652
21653    OSICLPLIB_PCREQUIRES="osi $OSICLPLIB_PCREQUIRES"
21654    OSICLPLIB_CFLAGS="$OSI_CFLAGS $OSICLPLIB_CFLAGS"
21655    OSICLPLIB_LIBS="$OSI_LIBS $OSICLPLIB_LIBS"
21656    OSICLPLIB_CFLAGS_INSTALLED="$OSI_CFLAGS_INSTALLED $OSICLPLIB_CFLAGS_INSTALLED"
21657    OSICLPLIB_LIBS_INSTALLED="$OSI_LIBS_INSTALLED $OSICLPLIB_LIBS_INSTALLED"
21658
21659
21660fi
21661
21662
21663
21664if test $coin_has_osi != notGiven &&
21665                test $coin_has_osi != skipping; then
21666  COIN_HAS_OSI_TRUE=
21667  COIN_HAS_OSI_FALSE='#'
21668else
21669  COIN_HAS_OSI_TRUE='#'
21670  COIN_HAS_OSI_FALSE=
21671fi
21672
21673
21674
21675  fi
21676
21677else
21678  echo "$as_me:$LINENO: result: $coin_has_osi" >&5
21679echo "${ECHO_T}$coin_has_osi" >&6
21680fi
21681
21682if test $coin_has_osi != skipping &&
21683   test $coin_has_osi != notGiven ; then
21684
21685cat >>confdefs.h <<\_ACEOF
21686#define COIN_HAS_OSI 1
21687_ACEOF
21688
21689
21690  # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
21691if test "${enable_interpackage_dependencies+set}" = set; then
21692  enableval="$enable_interpackage_dependencies"
21693
21694else
21695  enable_interpackage_dependencies=yes
21696fi;
21697
21698  if test $enable_interpackage_dependencies = yes ; then
21699     # construct dependencies variables from LIBS variables
21700     # we add an extra space in LIBS so we can substitute out everything starting with " -"
21701     # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows
21702     # then remove everything of the form -xxx
21703     # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
21704     OSI_DEPENDENCIES=`echo " $OSI_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
21705
21706       OSICLPLIB_DEPENDENCIES=`echo " $OSICLPLIB_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
21707
21708  fi
21709
21710  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
21711    if test -n "$OSI_CFLAGS" ; then
21712      { echo "$as_me:$LINENO: Osi CFLAGS are $OSI_CFLAGS" >&5
21713echo "$as_me: Osi CFLAGS are $OSI_CFLAGS" >&6;}
21714    fi
21715    if test -n "$OSI_LIBS" ; then
21716      { echo "$as_me:$LINENO: Osi LIBS   are $OSI_LIBS" >&5
21717echo "$as_me: Osi LIBS   are $OSI_LIBS" >&6;}
21718    fi
21719    if test -n "$OSI_DEPENDENCIES" ; then
21720      { echo "$as_me:$LINENO: Osi DEPENDENCIES are $OSI_DEPENDENCIES" >&5
21721echo "$as_me: Osi DEPENDENCIES are $OSI_DEPENDENCIES" >&6;}
21722    fi
21723    if test -n "$OSI_DATA" ; then
21724      { echo "$as_me:$LINENO: Osi DATA   is  $OSI_DATA" >&5
21725echo "$as_me: Osi DATA   is  $OSI_DATA" >&6;}
21726    fi
21727    if test -n "$OSI_PCLIBS" ; then
21728      { echo "$as_me:$LINENO: Osi PCLIBS are $OSI_PCLIBS" >&5
21729echo "$as_me: Osi PCLIBS are $OSI_PCLIBS" >&6;}
21730    fi
21731    if test -n "$OSI_PCREQUIRES" ; then
21732      { echo "$as_me:$LINENO: Osi PCREQUIRES are $OSI_PCREQUIRES" >&5
21733echo "$as_me: Osi PCREQUIRES are $OSI_PCREQUIRES" >&6;}
21734    fi
21735
21736      { echo "$as_me:$LINENO: OsiClpLib CFLAGS are $OSICLPLIB_CFLAGS" >&5
21737echo "$as_me: OsiClpLib CFLAGS are $OSICLPLIB_CFLAGS" >&6;}
21738      { echo "$as_me:$LINENO: OsiClpLib LIBS   are $OSICLPLIB_LIBS" >&5
21739echo "$as_me: OsiClpLib LIBS   are $OSICLPLIB_LIBS" >&6;}
21740      { echo "$as_me:$LINENO: OsiClpLib DEPENDENCIES are $OSICLPLIB_DEPENDENCIES" >&5
21741echo "$as_me: OsiClpLib DEPENDENCIES are $OSICLPLIB_DEPENDENCIES" >&6;}
21742
21743  fi
21744fi
21745
21746# Define the Makefile conditional
21747
21748
21749if test $coin_has_osi != notGiven &&
21750                test $coin_has_osi != skipping; then
21751  COIN_HAS_OSI_TRUE=
21752  COIN_HAS_OSI_FALSE='#'
21753else
21754  COIN_HAS_OSI_TRUE='#'
21755  COIN_HAS_OSI_FALSE=
21756fi
21757
21758
21759
21760
21761echo "$as_me:$LINENO: checking for COIN-OR package OsiTests" >&5
21762echo $ECHO_N "checking for COIN-OR package OsiTests... $ECHO_C" >&6
21763
21764coin_has_ositests=notGiven
21765
21766# check if user wants to skip package in any case
21767if test x"$COIN_SKIP_PROJECTS" != x; then
21768  for dir in $COIN_SKIP_PROJECTS; do
21769    if test $dir = "OsiTests"; then
21770      coin_has_ositests=skipping
21771    fi
21772  done
21773fi
21774
21775if test "$coin_has_ositests" != skipping; then
21776
21777# Check whether --with-m4_tolower(OsiTests) or --without-m4_tolower(OsiTests) was given.
21778if test "${with_ositests+set}" = set; then
21779  withval="$with_ositests"
21780  if test "$withval" = no ; then
21781       coin_has_ositests=skipping
21782     fi
21783
21784fi;
21785fi
21786
21787OSITESTS_LIBS=
21788OSITESTS_CFLAGS=
21789OSITESTS_DATA=
21790OSITESTS_DEPENDENCIES=
21791OSITESTS_PCLIBS=
21792OSITESTS_PCREQUIRES=
21793
21794
21795
21796
21797
21798
21799
21800
21801
21802#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
21803if test $coin_has_ositests != skipping; then
21804
21805# Check whether --with-m4_tolower(OsiTests)-lib or --without-m4_tolower(OsiTests)-lib was given.
21806if test "${with_ositests_lib+set}" = set; then
21807  withval="$with_ositests_lib"
21808  if test "$withval" = no ; then
21809       coin_has_ositests=skipping
21810     else
21811       coin_has_ositests=yes
21812       OSITESTS_LIBS="$withval"
21813       OSITESTS_PCLIBS="$withval"
21814
21815       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
21816       if test -z "$PKG_CONFIG" ; then
21817         OSITESTS_LIBS_INSTALLED="$withval"
21818
21819       fi
21820     fi
21821
21822fi;
21823fi
21824
21825if test $coin_has_ositests != skipping; then
21826
21827# Check whether --with-m4_tolower(OsiTests)-incdir or --without-m4_tolower(OsiTests)-incdir was given.
21828if test "${with_ositests_incdir+set}" = set; then
21829  withval="$with_ositests_incdir"
21830  if test "$withval" = no ; then
21831       coin_has_ositests=skipping
21832     else
21833       coin_has_ositests=yes
21834       OSITESTS_CFLAGS="-I`${CYGPATH_W} $withval`"
21835
21836       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
21837       if test -z "$PKG_CONFIG" ; then
21838         OSITESTS_CFLAGS_INSTALLED="$OSITESTS_CFLAGS"
21839
21840       fi
21841     fi
21842
21843fi;
21844fi
21845
21846if test $coin_has_ositests != skipping; then
21847
21848# Check whether --with-m4_tolower(OsiTests)-datadir or --without-m4_tolower(OsiTests)-datadir was given.
21849if test "${with_ositests_datadir+set}" = set; then
21850  withval="$with_ositests_datadir"
21851  if test "$withval" = no ; then
21852       coin_has_ositests=skipping
21853     else
21854       coin_has_ositests=yes
21855       OSITESTS_DATA="$withval"
21856       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
21857       if test -z "$PKG_CONFIG" ; then
21858         OSITESTS_DATA_INSTALLED="$withval"
21859       fi
21860     fi
21861
21862fi;
21863fi
21864
21865if test $coin_has_ositests = notGiven; then
21866  if test -n "$PKG_CONFIG" ; then
21867    # set search path for pkg-config
21868    # need to export variable to be sure that the following pkg-config gets these values
21869    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
21870    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
21871    export PKG_CONFIG_PATH
21872
21873    # let pkg-config do it's magic
21874
21875
21876
21877if test -n "$PKG_CONFIG" ; then
21878  if $PKG_CONFIG --exists "osi-unittests"; then
21879    OSITESTS_VERSIONS=`$PKG_CONFIG --modversion "osi-unittests" 2>/dev/null | tr '\n' ' '`
21880     cflags=`$PKG_CONFIG --cflags "osi-unittests" 2>/dev/null`
21881    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
21882	# thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
21883	# but only do this if is not trivial
21884    if test "$CYGPATH_W" != "echo" ; then
21885      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
21886      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
21887    fi
21888    OSITESTS_CFLAGS="$cflags"
21889    OSITESTS_LIBS=`$PKG_CONFIG --libs "osi-unittests" 2>/dev/null`
21890    OSITESTS_DATA=`$PKG_CONFIG --variable=datadir "osi-unittests" 2>/dev/null`
21891     coin_has_ositests=yes
21892        echo "$as_me:$LINENO: result: yes: $OSITESTS_VERSIONS" >&5
21893echo "${ECHO_T}yes: $OSITESTS_VERSIONS" >&6
21894
21895        # adjust linker flags for (i)cl compiler
21896        # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl)
21897        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
21898        then
21899          OSITESTS_LIBS=`echo " $OSITESTS_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
21900        fi
21901        OSITESTS_PCREQUIRES="osi-unittests"
21902
21903        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in
21904
21905
21906
21907  else
21908    OSITESTS_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "osi-unittests"`
21909      coin_has_ositests=notGiven
21910        echo "$as_me:$LINENO: result: not given: $OSITESTS_PKG_ERRORS" >&5
21911echo "${ECHO_T}not given: $OSITESTS_PKG_ERRORS" >&6
21912
21913  fi
21914else
21915  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module OsiTests without pkg-config\"" >&5
21916echo "$as_me: error: \"Cannot check for existance of module OsiTests without pkg-config\"" >&2;}
21917   { (exit 1); exit 1; }; }
21918fi
21919
21920
21921
21922
21923    # reset PKG_CONFIG_PATH variable
21924    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
21925    export PKG_CONFIG_PATH
21926
21927  else
21928    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
21929echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
21930
21931echo "$as_me:$LINENO: checking for COIN-OR package OsiTests (fallback)" >&5
21932echo $ECHO_N "checking for COIN-OR package OsiTests (fallback)... $ECHO_C" >&6
21933
21934coin_has_ositests=notGiven
21935OSITESTS_LIBS=
21936OSITESTS_LIBS_INSTALLED=
21937OSITESTS_CFLAGS=
21938OSITESTS_CFLAGS_INSTALLED=
21939OSITESTS_DATA=
21940OSITESTS_DATA_INSTALLED=
21941OSITESTS_PCLIBS=
21942OSITESTS_PCREQUIRES=
21943
21944# initial list of dependencies is "osi-unittests", but we need to filter out version number specifications (= x, <= x, >= x, != x)
21945projtoprocess="osi-unittests"
21946
21947# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
21948# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
21949# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
21950# also, we setup the DATA variable
21951allproj=""
21952allpcfiles=""
21953allpcifiles=""
21954while test "x$projtoprocess" != x ; do
21955
21956  for proj in $projtoprocess ; do
21957    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
21958    pcfile=""
21959    save_IFS="$IFS"
21960    IFS=":"
21961    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
21962      # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again
21963      if test -r "$dir/${proj}-uninstalled.pc" ; then
21964        pcfile="$dir/$proj-uninstalled.pc"
21965        if test -r "$dir/${proj}.pc" ; then
21966          pcifile="$dir/${proj}.pc"
21967        else
21968          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
21969echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
21970          pcifile=
21971        fi
21972        break
21973      fi
21974    done
21975    IFS="$save_IFS"
21976
21977    if test "x$pcfile" != x ; then
21978      # read dependencies from $pcfile and filter it
21979      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ 	]\{0,\}[^ 	]\{1,\}//g'`
21980
21981      # add projrequires to the front of the list of projects that have to be processed next
21982      # at the same time, remove $proj from this list
21983      projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
21984
21985      # read DATA from $pcfile, if _DATA is still empty
21986      if test "x$OSITESTS_DATA" = x ; then
21987        projdatadir=
21988        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
21989        eval `sh -c "$pcfilemod"`
21990        OSITESTS_DATA="$projdatadir"
21991      fi
21992
21993      allproj="$allproj $proj"
21994      allpcfiles="$pcfile:$allpcfiles"
21995
21996    else
21997      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
21998echo "${ECHO_T}no, dependency $proj not available" >&6
21999      allproj=fail
22000      break 2
22001    fi
22002
22003    if test "x$pcifile" != x ; then
22004      allpcifiles="$pcifile:$allpcifiles"
22005
22006      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
22007      if test "x$OSITESTS_DATA_INSTALLED" = x ; then
22008        projdatadir=
22009        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
22010        eval `sh -c "$pcifilemod"`
22011        if test "${CYGPATH_W}" != "echo"; then
22012          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
22013        fi
22014        OSITESTS_DATA_INSTALLED="$projdatadir"
22015      fi
22016
22017    fi
22018
22019    break
22020  done
22021
22022  # remove spaces on begin of $projtoprocess
22023  projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
22024
22025done
22026
22027if test "$allproj" != fail ; then
22028
22029  # now go through the list of .pc files and assemble compiler and linker flags
22030  # important is here to obey the reverse order that has been setup before,
22031  # since then libraries that are required by several others should be after these other libraries
22032  pcfilesprocessed=""
22033
22034  save_IFS="$IFS"
22035  IFS=":"
22036  for pcfile in $allpcfiles ; do
22037
22038    # if $pcfile has been processed already, skip this round
22039    if test "x$pcfilesprocessed" != x ; then
22040      for pcfiledone in $pcfilesprocessed ; do
22041        if test "$pcfiledone" = "$pcfile" ; then
22042          continue 2
22043        fi
22044      done
22045    fi
22046
22047    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
22048    #   replace "Libs:" by "echo projlibs="
22049    #   replace "Cflags:" by "echo projcflags="
22050    #   remove every line starting with <some word>:
22051    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
22052
22053    # set projcflags and projlibs variables by running $pcfilemod
22054    # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
22055    projcflags=
22056    projlibs=
22057    IFS="$save_IFS"
22058    eval `sh -c "$pcfilemod"`
22059    IFS=":"
22060
22061    # add CYGPATH_W cludge into include flags and set CFLAGS variable
22062    if test "${CYGPATH_W}" != "echo"; then
22063      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
22064    fi
22065    OSITESTS_CFLAGS="$projcflags $OSITESTS_CFLAGS"
22066
22067    # set LIBS variable
22068    OSITESTS_LIBS="$projlibs $OSITESTS_LIBS"
22069
22070    # remember that we have processed $pcfile
22071    pcfilesprocessed="$pcfilesprocessed:$pcfile"
22072
22073  done
22074  IFS="$save_IFS"
22075
22076
22077  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
22078  # important is here again to obey the reverse order that has been setup before,
22079  # since then libraries that are required by several others should be after these other libraries
22080  pcfilesprocessed=""
22081
22082  save_IFS="$IFS"
22083  IFS=":"
22084  for pcfile in $allpcifiles ; do
22085
22086    # if $pcfile has been processed already, skip this round
22087    if test "x$pcfilesprocessed" != x ; then
22088      for pcfiledone in $pcfilesprocessed ; do
22089        if test "$pcfiledone" = "$pcfile" ; then
22090          continue 2
22091        fi
22092      done
22093    fi
22094
22095    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
22096    #   replace "Libs:" by "echo projlibs="
22097    #   replace "Cflags:" by "echo projcflags="
22098    #   remove every line starting with <some word>:
22099    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
22100
22101    # set projcflags and projlibs variables by running $pcfilemod
22102    # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
22103    projcflags=
22104    projlibs=
22105    IFS="$save_IFS"
22106    eval `sh -c "$pcfilemod"`
22107    IFS=":"
22108
22109    # add CYGPATH_W cludge into include flags and set CFLAGS variable
22110    if test "${CYGPATH_W}" != "echo"; then
22111      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
22112    fi
22113    OSITESTS_CFLAGS_INSTALLED="$projcflags $OSITESTS_CFLAGS_INSTALLED"
22114
22115    # set LIBS variable
22116    OSITESTS_LIBS_INSTALLED="$projlibs $OSITESTS_LIBS_INSTALLED"
22117
22118    # remember that we have processed $pcfile
22119    pcfilesprocessed="$pcfilesprocessed:$pcfile"
22120
22121  done
22122  IFS="$save_IFS"
22123
22124
22125  # finish up
22126  coin_has_ositests=yes
22127  echo "$as_me:$LINENO: result: yes" >&5
22128echo "${ECHO_T}yes" >&6
22129
22130cat >>confdefs.h <<\_ACEOF
22131#define COIN_HAS_OSITESTS 1
22132_ACEOF
22133
22134
22135  # adjust linker flags for (i)cl compiler
22136  # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl),
22137  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
22138  #    everything of the form "-lname" by "libname.lib", and
22139  #    everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
22140  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
22141  then
22142    OSITESTS_LIBS=`echo " $OSITESTS_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
22143    OSITESTS_LIBS_INSTALLED=`echo " $OSITESTS_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'`
22144  fi
22145
22146  OSITESTS_PCREQUIRES="osi-unittests"
22147
22148
22149fi
22150
22151
22152
22153if test $coin_has_ositests != notGiven &&
22154                test $coin_has_ositests != skipping; then
22155  COIN_HAS_OSITESTS_TRUE=
22156  COIN_HAS_OSITESTS_FALSE='#'
22157else
22158  COIN_HAS_OSITESTS_TRUE='#'
22159  COIN_HAS_OSITESTS_FALSE=
22160fi
22161
22162
22163
22164  fi
22165
22166else
22167  echo "$as_me:$LINENO: result: $coin_has_ositests" >&5
22168echo "${ECHO_T}$coin_has_ositests" >&6
22169fi
22170
22171if test $coin_has_ositests != skipping &&
22172   test $coin_has_ositests != notGiven ; then
22173
22174cat >>confdefs.h <<\_ACEOF
22175#define COIN_HAS_OSITESTS 1
22176_ACEOF
22177
22178
22179  # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
22180if test "${enable_interpackage_dependencies+set}" = set; then
22181  enableval="$enable_interpackage_dependencies"
22182
22183else
22184  enable_interpackage_dependencies=yes
22185fi;
22186
22187  if test $enable_interpackage_dependencies = yes ; then
22188     # construct dependencies variables from LIBS variables
22189     # we add an extra space in LIBS so we can substitute out everything starting with " -"
22190     # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows
22191     # then remove everything of the form -xxx
22192     # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
22193     OSITESTS_DEPENDENCIES=`echo " $OSITESTS_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
22194
22195  fi
22196
22197  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
22198    if test -n "$OSITESTS_CFLAGS" ; then
22199      { echo "$as_me:$LINENO: OsiTests CFLAGS are $OSITESTS_CFLAGS" >&5
22200echo "$as_me: OsiTests CFLAGS are $OSITESTS_CFLAGS" >&6;}
22201    fi
22202    if test -n "$OSITESTS_LIBS" ; then
22203      { echo "$as_me:$LINENO: OsiTests LIBS   are $OSITESTS_LIBS" >&5
22204echo "$as_me: OsiTests LIBS   are $OSITESTS_LIBS" >&6;}
22205    fi
22206    if test -n "$OSITESTS_DEPENDENCIES" ; then
22207      { echo "$as_me:$LINENO: OsiTests DEPENDENCIES are $OSITESTS_DEPENDENCIES" >&5
22208echo "$as_me: OsiTests DEPENDENCIES are $OSITESTS_DEPENDENCIES" >&6;}
22209    fi
22210    if test -n "$OSITESTS_DATA" ; then
22211      { echo "$as_me:$LINENO: OsiTests DATA   is  $OSITESTS_DATA" >&5
22212echo "$as_me: OsiTests DATA   is  $OSITESTS_DATA" >&6;}
22213    fi
22214    if test -n "$OSITESTS_PCLIBS" ; then
22215      { echo "$as_me:$LINENO: OsiTests PCLIBS are $OSITESTS_PCLIBS" >&5
22216echo "$as_me: OsiTests PCLIBS are $OSITESTS_PCLIBS" >&6;}
22217    fi
22218    if test -n "$OSITESTS_PCREQUIRES" ; then
22219      { echo "$as_me:$LINENO: OsiTests PCREQUIRES are $OSITESTS_PCREQUIRES" >&5
22220echo "$as_me: OsiTests PCREQUIRES are $OSITESTS_PCREQUIRES" >&6;}
22221    fi
22222
22223  fi
22224fi
22225
22226# Define the Makefile conditional
22227
22228
22229if test $coin_has_ositests != notGiven &&
22230                test $coin_has_ositests != skipping; then
22231  COIN_HAS_OSITESTS_TRUE=
22232  COIN_HAS_OSITESTS_FALSE='#'
22233else
22234  COIN_HAS_OSITESTS_TRUE='#'
22235  COIN_HAS_OSITESTS_FALSE=
22236fi
22237
22238
22239
22240
22241echo "$as_me:$LINENO: checking for COIN-OR package Sample" >&5
22242echo $ECHO_N "checking for COIN-OR package Sample... $ECHO_C" >&6
22243
22244coin_has_sample=notGiven
22245
22246# check if user wants to skip package in any case
22247if test x"$COIN_SKIP_PROJECTS" != x; then
22248  for dir in $COIN_SKIP_PROJECTS; do
22249    if test $dir = "Sample"; then
22250      coin_has_sample=skipping
22251    fi
22252  done
22253fi
22254
22255if test "$coin_has_sample" != skipping; then
22256
22257# Check whether --with-m4_tolower(Sample) or --without-m4_tolower(Sample) was given.
22258if test "${with_sample+set}" = set; then
22259  withval="$with_sample"
22260  if test "$withval" = no ; then
22261       coin_has_sample=skipping
22262     fi
22263
22264fi;
22265fi
22266
22267SAMPLE_LIBS=
22268SAMPLE_CFLAGS=
22269SAMPLE_DATA=
22270SAMPLE_DEPENDENCIES=
22271SAMPLE_PCLIBS=
22272SAMPLE_PCREQUIRES=
22273
22274
22275
22276
22277
22278
22279
22280
22281
22282#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
22283if test $coin_has_sample != skipping; then
22284
22285# Check whether --with-m4_tolower(Sample)-lib or --without-m4_tolower(Sample)-lib was given.
22286if test "${with_sample_lib+set}" = set; then
22287  withval="$with_sample_lib"
22288  if test "$withval" = no ; then
22289       coin_has_sample=skipping
22290     else
22291       coin_has_sample=yes
22292       SAMPLE_LIBS="$withval"
22293       SAMPLE_PCLIBS="$withval"
22294
22295       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
22296       if test -z "$PKG_CONFIG" ; then
22297         SAMPLE_LIBS_INSTALLED="$withval"
22298
22299       fi
22300     fi
22301
22302fi;
22303fi
22304
22305if test $coin_has_sample != skipping; then
22306
22307# Check whether --with-m4_tolower(Sample)-incdir or --without-m4_tolower(Sample)-incdir was given.
22308if test "${with_sample_incdir+set}" = set; then
22309  withval="$with_sample_incdir"
22310  if test "$withval" = no ; then
22311       coin_has_sample=skipping
22312     else
22313       coin_has_sample=yes
22314       SAMPLE_CFLAGS="-I`${CYGPATH_W} $withval`"
22315
22316       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
22317       if test -z "$PKG_CONFIG" ; then
22318         SAMPLE_CFLAGS_INSTALLED="$SAMPLE_CFLAGS"
22319
22320       fi
22321     fi
22322
22323fi;
22324fi
22325
22326if test $coin_has_sample != skipping; then
22327
22328# Check whether --with-m4_tolower(Sample)-datadir or --without-m4_tolower(Sample)-datadir was given.
22329if test "${with_sample_datadir+set}" = set; then
22330  withval="$with_sample_datadir"
22331  if test "$withval" = no ; then
22332       coin_has_sample=skipping
22333     else
22334       coin_has_sample=yes
22335       SAMPLE_DATA="$withval"
22336       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
22337       if test -z "$PKG_CONFIG" ; then
22338         SAMPLE_DATA_INSTALLED="$withval"
22339       fi
22340     fi
22341
22342fi;
22343fi
22344
22345if test $coin_has_sample = notGiven; then
22346  if test -n "$PKG_CONFIG" ; then
22347    # set search path for pkg-config
22348    # need to export variable to be sure that the following pkg-config gets these values
22349    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
22350    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
22351    export PKG_CONFIG_PATH
22352
22353    # let pkg-config do it's magic
22354
22355
22356
22357if test -n "$PKG_CONFIG" ; then
22358  if $PKG_CONFIG --exists "coindatasample"; then
22359    SAMPLE_VERSIONS=`$PKG_CONFIG --modversion "coindatasample" 2>/dev/null | tr '\n' ' '`
22360     cflags=`$PKG_CONFIG --cflags "coindatasample" 2>/dev/null`
22361    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
22362	# thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
22363	# but only do this if is not trivial
22364    if test "$CYGPATH_W" != "echo" ; then
22365      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
22366      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
22367    fi
22368    SAMPLE_CFLAGS="$cflags"
22369    SAMPLE_LIBS=`$PKG_CONFIG --libs "coindatasample" 2>/dev/null`
22370    SAMPLE_DATA=`$PKG_CONFIG --variable=datadir "coindatasample" 2>/dev/null`
22371     coin_has_sample=yes
22372        echo "$as_me:$LINENO: result: yes: $SAMPLE_VERSIONS" >&5
22373echo "${ECHO_T}yes: $SAMPLE_VERSIONS" >&6
22374
22375        # adjust linker flags for (i)cl compiler
22376        # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl)
22377        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
22378        then
22379          SAMPLE_LIBS=`echo " $SAMPLE_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
22380        fi
22381        SAMPLE_PCREQUIRES="coindatasample"
22382
22383        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in
22384
22385
22386
22387  else
22388    SAMPLE_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "coindatasample"`
22389      coin_has_sample=notGiven
22390        echo "$as_me:$LINENO: result: not given: $SAMPLE_PKG_ERRORS" >&5
22391echo "${ECHO_T}not given: $SAMPLE_PKG_ERRORS" >&6
22392
22393  fi
22394else
22395  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Sample without pkg-config\"" >&5
22396echo "$as_me: error: \"Cannot check for existance of module Sample without pkg-config\"" >&2;}
22397   { (exit 1); exit 1; }; }
22398fi
22399
22400
22401
22402
22403    # reset PKG_CONFIG_PATH variable
22404    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
22405    export PKG_CONFIG_PATH
22406
22407  else
22408    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
22409echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
22410
22411echo "$as_me:$LINENO: checking for COIN-OR package Sample (fallback)" >&5
22412echo $ECHO_N "checking for COIN-OR package Sample (fallback)... $ECHO_C" >&6
22413
22414coin_has_sample=notGiven
22415SAMPLE_LIBS=
22416SAMPLE_LIBS_INSTALLED=
22417SAMPLE_CFLAGS=
22418SAMPLE_CFLAGS_INSTALLED=
22419SAMPLE_DATA=
22420SAMPLE_DATA_INSTALLED=
22421SAMPLE_PCLIBS=
22422SAMPLE_PCREQUIRES=
22423
22424# initial list of dependencies is "coindatasample", but we need to filter out version number specifications (= x, <= x, >= x, != x)
22425projtoprocess="coindatasample"
22426
22427# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
22428# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
22429# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
22430# also, we setup the DATA variable
22431allproj=""
22432allpcfiles=""
22433allpcifiles=""
22434while test "x$projtoprocess" != x ; do
22435
22436  for proj in $projtoprocess ; do
22437    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
22438    pcfile=""
22439    save_IFS="$IFS"
22440    IFS=":"
22441    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
22442      # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again
22443      if test -r "$dir/${proj}-uninstalled.pc" ; then
22444        pcfile="$dir/$proj-uninstalled.pc"
22445        if test -r "$dir/${proj}.pc" ; then
22446          pcifile="$dir/${proj}.pc"
22447        else
22448          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
22449echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
22450          pcifile=
22451        fi
22452        break
22453      fi
22454    done
22455    IFS="$save_IFS"
22456
22457    if test "x$pcfile" != x ; then
22458      # read dependencies from $pcfile and filter it
22459      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ 	]\{0,\}[^ 	]\{1,\}//g'`
22460
22461      # add projrequires to the front of the list of projects that have to be processed next
22462      # at the same time, remove $proj from this list
22463      projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
22464
22465      # read DATA from $pcfile, if _DATA is still empty
22466      if test "x$SAMPLE_DATA" = x ; then
22467        projdatadir=
22468        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
22469        eval `sh -c "$pcfilemod"`
22470        SAMPLE_DATA="$projdatadir"
22471      fi
22472
22473      allproj="$allproj $proj"
22474      allpcfiles="$pcfile:$allpcfiles"
22475
22476    else
22477      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
22478echo "${ECHO_T}no, dependency $proj not available" >&6
22479      allproj=fail
22480      break 2
22481    fi
22482
22483    if test "x$pcifile" != x ; then
22484      allpcifiles="$pcifile:$allpcifiles"
22485
22486      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
22487      if test "x$SAMPLE_DATA_INSTALLED" = x ; then
22488        projdatadir=
22489        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
22490        eval `sh -c "$pcifilemod"`
22491        if test "${CYGPATH_W}" != "echo"; then
22492          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
22493        fi
22494        SAMPLE_DATA_INSTALLED="$projdatadir"
22495      fi
22496
22497    fi
22498
22499    break
22500  done
22501
22502  # remove spaces on begin of $projtoprocess
22503  projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
22504
22505done
22506
22507if test "$allproj" != fail ; then
22508
22509  # now go through the list of .pc files and assemble compiler and linker flags
22510  # important is here to obey the reverse order that has been setup before,
22511  # since then libraries that are required by several others should be after these other libraries
22512  pcfilesprocessed=""
22513
22514  save_IFS="$IFS"
22515  IFS=":"
22516  for pcfile in $allpcfiles ; do
22517
22518    # if $pcfile has been processed already, skip this round
22519    if test "x$pcfilesprocessed" != x ; then
22520      for pcfiledone in $pcfilesprocessed ; do
22521        if test "$pcfiledone" = "$pcfile" ; then
22522          continue 2
22523        fi
22524      done
22525    fi
22526
22527    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
22528    #   replace "Libs:" by "echo projlibs="
22529    #   replace "Cflags:" by "echo projcflags="
22530    #   remove every line starting with <some word>:
22531    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
22532
22533    # set projcflags and projlibs variables by running $pcfilemod
22534    # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
22535    projcflags=
22536    projlibs=
22537    IFS="$save_IFS"
22538    eval `sh -c "$pcfilemod"`
22539    IFS=":"
22540
22541    # add CYGPATH_W cludge into include flags and set CFLAGS variable
22542    if test "${CYGPATH_W}" != "echo"; then
22543      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
22544    fi
22545    SAMPLE_CFLAGS="$projcflags $SAMPLE_CFLAGS"
22546
22547    # set LIBS variable
22548    SAMPLE_LIBS="$projlibs $SAMPLE_LIBS"
22549
22550    # remember that we have processed $pcfile
22551    pcfilesprocessed="$pcfilesprocessed:$pcfile"
22552
22553  done
22554  IFS="$save_IFS"
22555
22556
22557  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
22558  # important is here again to obey the reverse order that has been setup before,
22559  # since then libraries that are required by several others should be after these other libraries
22560  pcfilesprocessed=""
22561
22562  save_IFS="$IFS"
22563  IFS=":"
22564  for pcfile in $allpcifiles ; do
22565
22566    # if $pcfile has been processed already, skip this round
22567    if test "x$pcfilesprocessed" != x ; then
22568      for pcfiledone in $pcfilesprocessed ; do
22569        if test "$pcfiledone" = "$pcfile" ; then
22570          continue 2
22571        fi
22572      done
22573    fi
22574
22575    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
22576    #   replace "Libs:" by "echo projlibs="
22577    #   replace "Cflags:" by "echo projcflags="
22578    #   remove every line starting with <some word>:
22579    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
22580
22581    # set projcflags and projlibs variables by running $pcfilemod
22582    # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
22583    projcflags=
22584    projlibs=
22585    IFS="$save_IFS"
22586    eval `sh -c "$pcfilemod"`
22587    IFS=":"
22588
22589    # add CYGPATH_W cludge into include flags and set CFLAGS variable
22590    if test "${CYGPATH_W}" != "echo"; then
22591      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
22592    fi
22593    SAMPLE_CFLAGS_INSTALLED="$projcflags $SAMPLE_CFLAGS_INSTALLED"
22594
22595    # set LIBS variable
22596    SAMPLE_LIBS_INSTALLED="$projlibs $SAMPLE_LIBS_INSTALLED"
22597
22598    # remember that we have processed $pcfile
22599    pcfilesprocessed="$pcfilesprocessed:$pcfile"
22600
22601  done
22602  IFS="$save_IFS"
22603
22604
22605  # finish up
22606  coin_has_sample=yes
22607  echo "$as_me:$LINENO: result: yes" >&5
22608echo "${ECHO_T}yes" >&6
22609
22610cat >>confdefs.h <<\_ACEOF
22611#define COIN_HAS_SAMPLE 1
22612_ACEOF
22613
22614
22615  # adjust linker flags for (i)cl compiler
22616  # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl),
22617  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
22618  #    everything of the form "-lname" by "libname.lib", and
22619  #    everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
22620  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
22621  then
22622    SAMPLE_LIBS=`echo " $SAMPLE_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
22623    SAMPLE_LIBS_INSTALLED=`echo " $SAMPLE_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'`
22624  fi
22625
22626  SAMPLE_PCREQUIRES="coindatasample"
22627
22628
22629fi
22630
22631
22632
22633if test $coin_has_sample != notGiven &&
22634                test $coin_has_sample != skipping; then
22635  COIN_HAS_SAMPLE_TRUE=
22636  COIN_HAS_SAMPLE_FALSE='#'
22637else
22638  COIN_HAS_SAMPLE_TRUE='#'
22639  COIN_HAS_SAMPLE_FALSE=
22640fi
22641
22642
22643
22644  fi
22645
22646else
22647  echo "$as_me:$LINENO: result: $coin_has_sample" >&5
22648echo "${ECHO_T}$coin_has_sample" >&6
22649fi
22650
22651if test $coin_has_sample != skipping &&
22652   test $coin_has_sample != notGiven ; then
22653
22654cat >>confdefs.h <<\_ACEOF
22655#define COIN_HAS_SAMPLE 1
22656_ACEOF
22657
22658
22659  # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
22660if test "${enable_interpackage_dependencies+set}" = set; then
22661  enableval="$enable_interpackage_dependencies"
22662
22663else
22664  enable_interpackage_dependencies=yes
22665fi;
22666
22667  if test $enable_interpackage_dependencies = yes ; then
22668     # construct dependencies variables from LIBS variables
22669     # we add an extra space in LIBS so we can substitute out everything starting with " -"
22670     # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows
22671     # then remove everything of the form -xxx
22672     # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
22673     SAMPLE_DEPENDENCIES=`echo " $SAMPLE_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
22674
22675  fi
22676
22677  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
22678    if test -n "$SAMPLE_CFLAGS" ; then
22679      { echo "$as_me:$LINENO: Sample CFLAGS are $SAMPLE_CFLAGS" >&5
22680echo "$as_me: Sample CFLAGS are $SAMPLE_CFLAGS" >&6;}
22681    fi
22682    if test -n "$SAMPLE_LIBS" ; then
22683      { echo "$as_me:$LINENO: Sample LIBS   are $SAMPLE_LIBS" >&5
22684echo "$as_me: Sample LIBS   are $SAMPLE_LIBS" >&6;}
22685    fi
22686    if test -n "$SAMPLE_DEPENDENCIES" ; then
22687      { echo "$as_me:$LINENO: Sample DEPENDENCIES are $SAMPLE_DEPENDENCIES" >&5
22688echo "$as_me: Sample DEPENDENCIES are $SAMPLE_DEPENDENCIES" >&6;}
22689    fi
22690    if test -n "$SAMPLE_DATA" ; then
22691      { echo "$as_me:$LINENO: Sample DATA   is  $SAMPLE_DATA" >&5
22692echo "$as_me: Sample DATA   is  $SAMPLE_DATA" >&6;}
22693    fi
22694    if test -n "$SAMPLE_PCLIBS" ; then
22695      { echo "$as_me:$LINENO: Sample PCLIBS are $SAMPLE_PCLIBS" >&5
22696echo "$as_me: Sample PCLIBS are $SAMPLE_PCLIBS" >&6;}
22697    fi
22698    if test -n "$SAMPLE_PCREQUIRES" ; then
22699      { echo "$as_me:$LINENO: Sample PCREQUIRES are $SAMPLE_PCREQUIRES" >&5
22700echo "$as_me: Sample PCREQUIRES are $SAMPLE_PCREQUIRES" >&6;}
22701    fi
22702
22703  fi
22704fi
22705
22706# Define the Makefile conditional
22707
22708
22709if test $coin_has_sample != notGiven &&
22710                test $coin_has_sample != skipping; then
22711  COIN_HAS_SAMPLE_TRUE=
22712  COIN_HAS_SAMPLE_FALSE='#'
22713else
22714  COIN_HAS_SAMPLE_TRUE='#'
22715  COIN_HAS_SAMPLE_FALSE=
22716fi
22717
22718
22719
22720
22721echo "$as_me:$LINENO: checking for COIN-OR package Netlib" >&5
22722echo $ECHO_N "checking for COIN-OR package Netlib... $ECHO_C" >&6
22723
22724coin_has_netlib=notGiven
22725
22726# check if user wants to skip package in any case
22727if test x"$COIN_SKIP_PROJECTS" != x; then
22728  for dir in $COIN_SKIP_PROJECTS; do
22729    if test $dir = "Netlib"; then
22730      coin_has_netlib=skipping
22731    fi
22732  done
22733fi
22734
22735if test "$coin_has_netlib" != skipping; then
22736
22737# Check whether --with-m4_tolower(Netlib) or --without-m4_tolower(Netlib) was given.
22738if test "${with_netlib+set}" = set; then
22739  withval="$with_netlib"
22740  if test "$withval" = no ; then
22741       coin_has_netlib=skipping
22742     fi
22743
22744fi;
22745fi
22746
22747NETLIB_LIBS=
22748NETLIB_CFLAGS=
22749NETLIB_DATA=
22750NETLIB_DEPENDENCIES=
22751NETLIB_PCLIBS=
22752NETLIB_PCREQUIRES=
22753
22754
22755
22756
22757
22758
22759
22760
22761
22762#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
22763if test $coin_has_netlib != skipping; then
22764
22765# Check whether --with-m4_tolower(Netlib)-lib or --without-m4_tolower(Netlib)-lib was given.
22766if test "${with_netlib_lib+set}" = set; then
22767  withval="$with_netlib_lib"
22768  if test "$withval" = no ; then
22769       coin_has_netlib=skipping
22770     else
22771       coin_has_netlib=yes
22772       NETLIB_LIBS="$withval"
22773       NETLIB_PCLIBS="$withval"
22774
22775       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
22776       if test -z "$PKG_CONFIG" ; then
22777         NETLIB_LIBS_INSTALLED="$withval"
22778
22779       fi
22780     fi
22781
22782fi;
22783fi
22784
22785if test $coin_has_netlib != skipping; then
22786
22787# Check whether --with-m4_tolower(Netlib)-incdir or --without-m4_tolower(Netlib)-incdir was given.
22788if test "${with_netlib_incdir+set}" = set; then
22789  withval="$with_netlib_incdir"
22790  if test "$withval" = no ; then
22791       coin_has_netlib=skipping
22792     else
22793       coin_has_netlib=yes
22794       NETLIB_CFLAGS="-I`${CYGPATH_W} $withval`"
22795
22796       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
22797       if test -z "$PKG_CONFIG" ; then
22798         NETLIB_CFLAGS_INSTALLED="$NETLIB_CFLAGS"
22799
22800       fi
22801     fi
22802
22803fi;
22804fi
22805
22806if test $coin_has_netlib != skipping; then
22807
22808# Check whether --with-m4_tolower(Netlib)-datadir or --without-m4_tolower(Netlib)-datadir was given.
22809if test "${with_netlib_datadir+set}" = set; then
22810  withval="$with_netlib_datadir"
22811  if test "$withval" = no ; then
22812       coin_has_netlib=skipping
22813     else
22814       coin_has_netlib=yes
22815       NETLIB_DATA="$withval"
22816       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
22817       if test -z "$PKG_CONFIG" ; then
22818         NETLIB_DATA_INSTALLED="$withval"
22819       fi
22820     fi
22821
22822fi;
22823fi
22824
22825if test $coin_has_netlib = notGiven; then
22826  if test -n "$PKG_CONFIG" ; then
22827    # set search path for pkg-config
22828    # need to export variable to be sure that the following pkg-config gets these values
22829    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
22830    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
22831    export PKG_CONFIG_PATH
22832
22833    # let pkg-config do it's magic
22834
22835
22836
22837if test -n "$PKG_CONFIG" ; then
22838  if $PKG_CONFIG --exists "coindatanetlib"; then
22839    NETLIB_VERSIONS=`$PKG_CONFIG --modversion "coindatanetlib" 2>/dev/null | tr '\n' ' '`
22840     cflags=`$PKG_CONFIG --cflags "coindatanetlib" 2>/dev/null`
22841    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
22842	# thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
22843	# but only do this if is not trivial
22844    if test "$CYGPATH_W" != "echo" ; then
22845      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
22846      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
22847    fi
22848    NETLIB_CFLAGS="$cflags"
22849    NETLIB_LIBS=`$PKG_CONFIG --libs "coindatanetlib" 2>/dev/null`
22850    NETLIB_DATA=`$PKG_CONFIG --variable=datadir "coindatanetlib" 2>/dev/null`
22851     coin_has_netlib=yes
22852        echo "$as_me:$LINENO: result: yes: $NETLIB_VERSIONS" >&5
22853echo "${ECHO_T}yes: $NETLIB_VERSIONS" >&6
22854
22855        # adjust linker flags for (i)cl compiler
22856        # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl)
22857        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
22858        then
22859          NETLIB_LIBS=`echo " $NETLIB_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
22860        fi
22861        NETLIB_PCREQUIRES="coindatanetlib"
22862
22863        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in
22864
22865
22866
22867  else
22868    NETLIB_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "coindatanetlib"`
22869      coin_has_netlib=notGiven
22870        echo "$as_me:$LINENO: result: not given: $NETLIB_PKG_ERRORS" >&5
22871echo "${ECHO_T}not given: $NETLIB_PKG_ERRORS" >&6
22872
22873  fi
22874else
22875  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Netlib without pkg-config\"" >&5
22876echo "$as_me: error: \"Cannot check for existance of module Netlib without pkg-config\"" >&2;}
22877   { (exit 1); exit 1; }; }
22878fi
22879
22880
22881
22882
22883    # reset PKG_CONFIG_PATH variable
22884    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
22885    export PKG_CONFIG_PATH
22886
22887  else
22888    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
22889echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
22890
22891echo "$as_me:$LINENO: checking for COIN-OR package Netlib (fallback)" >&5
22892echo $ECHO_N "checking for COIN-OR package Netlib (fallback)... $ECHO_C" >&6
22893
22894coin_has_netlib=notGiven
22895NETLIB_LIBS=
22896NETLIB_LIBS_INSTALLED=
22897NETLIB_CFLAGS=
22898NETLIB_CFLAGS_INSTALLED=
22899NETLIB_DATA=
22900NETLIB_DATA_INSTALLED=
22901NETLIB_PCLIBS=
22902NETLIB_PCREQUIRES=
22903
22904# initial list of dependencies is "coindatanetlib", but we need to filter out version number specifications (= x, <= x, >= x, != x)
22905projtoprocess="coindatanetlib"
22906
22907# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
22908# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
22909# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
22910# also, we setup the DATA variable
22911allproj=""
22912allpcfiles=""
22913allpcifiles=""
22914while test "x$projtoprocess" != x ; do
22915
22916  for proj in $projtoprocess ; do
22917    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
22918    pcfile=""
22919    save_IFS="$IFS"
22920    IFS=":"
22921    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
22922      # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again
22923      if test -r "$dir/${proj}-uninstalled.pc" ; then
22924        pcfile="$dir/$proj-uninstalled.pc"
22925        if test -r "$dir/${proj}.pc" ; then
22926          pcifile="$dir/${proj}.pc"
22927        else
22928          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
22929echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
22930          pcifile=
22931        fi
22932        break
22933      fi
22934    done
22935    IFS="$save_IFS"
22936
22937    if test "x$pcfile" != x ; then
22938      # read dependencies from $pcfile and filter it
22939      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ 	]\{0,\}[^ 	]\{1,\}//g'`
22940
22941      # add projrequires to the front of the list of projects that have to be processed next
22942      # at the same time, remove $proj from this list
22943      projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
22944
22945      # read DATA from $pcfile, if _DATA is still empty
22946      if test "x$NETLIB_DATA" = x ; then
22947        projdatadir=
22948        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
22949        eval `sh -c "$pcfilemod"`
22950        NETLIB_DATA="$projdatadir"
22951      fi
22952
22953      allproj="$allproj $proj"
22954      allpcfiles="$pcfile:$allpcfiles"
22955
22956    else
22957      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
22958echo "${ECHO_T}no, dependency $proj not available" >&6
22959      allproj=fail
22960      break 2
22961    fi
22962
22963    if test "x$pcifile" != x ; then
22964      allpcifiles="$pcifile:$allpcifiles"
22965
22966      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
22967      if test "x$NETLIB_DATA_INSTALLED" = x ; then
22968        projdatadir=
22969        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
22970        eval `sh -c "$pcifilemod"`
22971        if test "${CYGPATH_W}" != "echo"; then
22972          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
22973        fi
22974        NETLIB_DATA_INSTALLED="$projdatadir"
22975      fi
22976
22977    fi
22978
22979    break
22980  done
22981
22982  # remove spaces on begin of $projtoprocess
22983  projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
22984
22985done
22986
22987if test "$allproj" != fail ; then
22988
22989  # now go through the list of .pc files and assemble compiler and linker flags
22990  # important is here to obey the reverse order that has been setup before,
22991  # since then libraries that are required by several others should be after these other libraries
22992  pcfilesprocessed=""
22993
22994  save_IFS="$IFS"
22995  IFS=":"
22996  for pcfile in $allpcfiles ; do
22997
22998    # if $pcfile has been processed already, skip this round
22999    if test "x$pcfilesprocessed" != x ; then
23000      for pcfiledone in $pcfilesprocessed ; do
23001        if test "$pcfiledone" = "$pcfile" ; then
23002          continue 2
23003        fi
23004      done
23005    fi
23006
23007    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
23008    #   replace "Libs:" by "echo projlibs="
23009    #   replace "Cflags:" by "echo projcflags="
23010    #   remove every line starting with <some word>:
23011    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
23012
23013    # set projcflags and projlibs variables by running $pcfilemod
23014    # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
23015    projcflags=
23016    projlibs=
23017    IFS="$save_IFS"
23018    eval `sh -c "$pcfilemod"`
23019    IFS=":"
23020
23021    # add CYGPATH_W cludge into include flags and set CFLAGS variable
23022    if test "${CYGPATH_W}" != "echo"; then
23023      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
23024    fi
23025    NETLIB_CFLAGS="$projcflags $NETLIB_CFLAGS"
23026
23027    # set LIBS variable
23028    NETLIB_LIBS="$projlibs $NETLIB_LIBS"
23029
23030    # remember that we have processed $pcfile
23031    pcfilesprocessed="$pcfilesprocessed:$pcfile"
23032
23033  done
23034  IFS="$save_IFS"
23035
23036
23037  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
23038  # important is here again to obey the reverse order that has been setup before,
23039  # since then libraries that are required by several others should be after these other libraries
23040  pcfilesprocessed=""
23041
23042  save_IFS="$IFS"
23043  IFS=":"
23044  for pcfile in $allpcifiles ; do
23045
23046    # if $pcfile has been processed already, skip this round
23047    if test "x$pcfilesprocessed" != x ; then
23048      for pcfiledone in $pcfilesprocessed ; do
23049        if test "$pcfiledone" = "$pcfile" ; then
23050          continue 2
23051        fi
23052      done
23053    fi
23054
23055    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
23056    #   replace "Libs:" by "echo projlibs="
23057    #   replace "Cflags:" by "echo projcflags="
23058    #   remove every line starting with <some word>:
23059    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
23060
23061    # set projcflags and projlibs variables by running $pcfilemod
23062    # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
23063    projcflags=
23064    projlibs=
23065    IFS="$save_IFS"
23066    eval `sh -c "$pcfilemod"`
23067    IFS=":"
23068
23069    # add CYGPATH_W cludge into include flags and set CFLAGS variable
23070    if test "${CYGPATH_W}" != "echo"; then
23071      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
23072    fi
23073    NETLIB_CFLAGS_INSTALLED="$projcflags $NETLIB_CFLAGS_INSTALLED"
23074
23075    # set LIBS variable
23076    NETLIB_LIBS_INSTALLED="$projlibs $NETLIB_LIBS_INSTALLED"
23077
23078    # remember that we have processed $pcfile
23079    pcfilesprocessed="$pcfilesprocessed:$pcfile"
23080
23081  done
23082  IFS="$save_IFS"
23083
23084
23085  # finish up
23086  coin_has_netlib=yes
23087  echo "$as_me:$LINENO: result: yes" >&5
23088echo "${ECHO_T}yes" >&6
23089
23090cat >>confdefs.h <<\_ACEOF
23091#define COIN_HAS_NETLIB 1
23092_ACEOF
23093
23094
23095  # adjust linker flags for (i)cl compiler
23096  # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl),
23097  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
23098  #    everything of the form "-lname" by "libname.lib", and
23099  #    everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
23100  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
23101  then
23102    NETLIB_LIBS=`echo " $NETLIB_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
23103    NETLIB_LIBS_INSTALLED=`echo " $NETLIB_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'`
23104  fi
23105
23106  NETLIB_PCREQUIRES="coindatanetlib"
23107
23108
23109fi
23110
23111
23112
23113if test $coin_has_netlib != notGiven &&
23114                test $coin_has_netlib != skipping; then
23115  COIN_HAS_NETLIB_TRUE=
23116  COIN_HAS_NETLIB_FALSE='#'
23117else
23118  COIN_HAS_NETLIB_TRUE='#'
23119  COIN_HAS_NETLIB_FALSE=
23120fi
23121
23122
23123
23124  fi
23125
23126else
23127  echo "$as_me:$LINENO: result: $coin_has_netlib" >&5
23128echo "${ECHO_T}$coin_has_netlib" >&6
23129fi
23130
23131if test $coin_has_netlib != skipping &&
23132   test $coin_has_netlib != notGiven ; then
23133
23134cat >>confdefs.h <<\_ACEOF
23135#define COIN_HAS_NETLIB 1
23136_ACEOF
23137
23138
23139  # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
23140if test "${enable_interpackage_dependencies+set}" = set; then
23141  enableval="$enable_interpackage_dependencies"
23142
23143else
23144  enable_interpackage_dependencies=yes
23145fi;
23146
23147  if test $enable_interpackage_dependencies = yes ; then
23148     # construct dependencies variables from LIBS variables
23149     # we add an extra space in LIBS so we can substitute out everything starting with " -"
23150     # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows
23151     # then remove everything of the form -xxx
23152     # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
23153     NETLIB_DEPENDENCIES=`echo " $NETLIB_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
23154
23155  fi
23156
23157  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
23158    if test -n "$NETLIB_CFLAGS" ; then
23159      { echo "$as_me:$LINENO: Netlib CFLAGS are $NETLIB_CFLAGS" >&5
23160echo "$as_me: Netlib CFLAGS are $NETLIB_CFLAGS" >&6;}
23161    fi
23162    if test -n "$NETLIB_LIBS" ; then
23163      { echo "$as_me:$LINENO: Netlib LIBS   are $NETLIB_LIBS" >&5
23164echo "$as_me: Netlib LIBS   are $NETLIB_LIBS" >&6;}
23165    fi
23166    if test -n "$NETLIB_DEPENDENCIES" ; then
23167      { echo "$as_me:$LINENO: Netlib DEPENDENCIES are $NETLIB_DEPENDENCIES" >&5
23168echo "$as_me: Netlib DEPENDENCIES are $NETLIB_DEPENDENCIES" >&6;}
23169    fi
23170    if test -n "$NETLIB_DATA" ; then
23171      { echo "$as_me:$LINENO: Netlib DATA   is  $NETLIB_DATA" >&5
23172echo "$as_me: Netlib DATA   is  $NETLIB_DATA" >&6;}
23173    fi
23174    if test -n "$NETLIB_PCLIBS" ; then
23175      { echo "$as_me:$LINENO: Netlib PCLIBS are $NETLIB_PCLIBS" >&5
23176echo "$as_me: Netlib PCLIBS are $NETLIB_PCLIBS" >&6;}
23177    fi
23178    if test -n "$NETLIB_PCREQUIRES" ; then
23179      { echo "$as_me:$LINENO: Netlib PCREQUIRES are $NETLIB_PCREQUIRES" >&5
23180echo "$as_me: Netlib PCREQUIRES are $NETLIB_PCREQUIRES" >&6;}
23181    fi
23182
23183  fi
23184fi
23185
23186# Define the Makefile conditional
23187
23188
23189if test $coin_has_netlib != notGiven &&
23190                test $coin_has_netlib != skipping; then
23191  COIN_HAS_NETLIB_TRUE=
23192  COIN_HAS_NETLIB_FALSE='#'
23193else
23194  COIN_HAS_NETLIB_TRUE='#'
23195  COIN_HAS_NETLIB_FALSE=
23196fi
23197
23198
23199
23200
23201#############################################################################
23202#                                    Aboca                                  #
23203#############################################################################
23204
23205#  1 - build Abc serial but no inherit code
23206#  2 - build Abc serial and inherit code
23207#  3 - build Abc cilk parallel but no inherit code
23208#  4 - build Abc cilk parallel and inherit code
23209# Check whether --enable-aboca or --disable-aboca was given.
23210if test "${enable_aboca+set}" = set; then
23211  enableval="$enable_aboca"
23212  use_aboca=$enableval
23213else
23214  use_aboca=no
23215fi;
23216if test "$use_aboca" = yes ; then
23217  use_aboca=1
23218fi
23219case "$use_aboca" in
23220  1 | 2 | 3 | 4)
23221
23222cat >>confdefs.h <<_ACEOF
23223#define CLP_HAS_ABC $use_aboca
23224_ACEOF
23225
23226    ;;
23227  no) ;;
23228  *)
23229    { { echo "$as_me:$LINENO: error: invalid argument for --enable-aboca: $use_aboca" >&5
23230echo "$as_me: error: invalid argument for --enable-aboca: $use_aboca" >&2;}
23231   { (exit 1); exit 1; }; }
23232    ;;
23233esac
23234
23235
23236if test ! "$use_aboca" = no; then
23237  COIN_HAS_ABC_TRUE=
23238  COIN_HAS_ABC_FALSE='#'
23239else
23240  COIN_HAS_ABC_TRUE='#'
23241  COIN_HAS_ABC_FALSE=
23242fi
23243
23244
23245#############################################################################
23246#                        Third party linear solvers                         #
23247#############################################################################
23248
23249# AMD from UFL
23250
23251  echo "$as_me:$LINENO: checking if user provides library for AMD" >&5
23252echo $ECHO_N "checking if user provides library for AMD... $ECHO_C" >&6
23253
23254# Check for header file directory
23255
23256
23257# Check whether --with-amd-incdir or --without-amd-incdir was given.
23258if test "${with_amd_incdir+set}" = set; then
23259  withval="$with_amd_incdir"
23260  AMDINCDIR=`cd $withval; pwd`
23261fi;
23262
23263# Check for library directory
23264
23265
23266# Check whether --with-amd-lib or --without-amd-lib was given.
23267if test "${with_amd_lib+set}" = set; then
23268  withval="$with_amd_lib"
23269  AMDLIB=$withval
23270fi;
23271
23272# Switch to disable library check if requested
23273
23274  # Check whether --enable-amd-libcheck or --disable-amd-libcheck was given.
23275if test "${enable_amd_libcheck+set}" = set; then
23276  enableval="$enable_amd_libcheck"
23277  amd_libcheck=$enableval
23278else
23279  amd_libcheck=yes
23280fi;
23281
23282# At this point, if we're going to use the library, both LBRYINCDIR and
23283# LBRYLIB must be defined and not empty.
23284
23285  if test x"$AMDINCDIR" != x || test x"$AMDLIB" != x; then
23286    if test x"$AMDINCDIR" = x || test x"$AMDLIB" = x; then
23287      { { echo "$as_me:$LINENO: error: You need to specify both an include directory and link flags to use library AMD. Use --with-amd-incdir of environment variable $AMDINCDIR to specify the include directory. Use --with-amd-lib or environment variable $AMDLIB to specify link flags." >&5
23288echo "$as_me: error: You need to specify both an include directory and link flags to use library AMD. Use --with-amd-incdir of environment variable $AMDINCDIR to specify the include directory. Use --with-amd-lib or environment variable $AMDLIB to specify link flags." >&2;}
23289   { (exit 1); exit 1; }; }
23290    fi
23291    coin_has_amd=true
23292    echo "$as_me:$LINENO: result: yes" >&5
23293echo "${ECHO_T}yes" >&6
23294  else
23295    coin_has_amd=false
23296    echo "$as_me:$LINENO: result: no" >&5
23297echo "${ECHO_T}no" >&6
23298  fi
23299
23300# If we have instructions for use, consider header and link checks.
23301
23302  if test $coin_has_amd = true; then
23303
23304# If argument 3 (file) is given, check for the file. Typically this will be a
23305# header file, but that's not assumed.
23306
23307    if test -r $AMDINCDIR/amd.h; then
23308
23309  :
23310else
23311  { { echo "$as_me:$LINENO: error: Cannot find file amd.h in $AMDINCDIR" >&5
23312echo "$as_me: error: Cannot find file amd.h in $AMDINCDIR" >&2;}
23313   { (exit 1); exit 1; }; }
23314  :
23315fi
23316
23317
23318# Now see if we can link the function. There are arguments for and against
23319# assuming argument 3 is a header file declaring the function. A correct
23320# function declaration is the main argument in favour. Having to cope with
23321# possible dependencies or other oddities are the main arguments against.
23322# Force the use of C as the best single choice amongst C++, C, and Fortran.
23323# Obviously, this has limits.
23324
23325    if test x"$amd_libcheck" != xno; then
23326	   coin_save_LIBS="$LIBS"
23327	   LIBS="$AMDLIB "
23328	   coin_AMD_link=no
23329	   ac_ext=c
23330ac_cpp='$CPP $CPPFLAGS'
23331ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23332ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23333ac_compiler_gnu=$ac_cv_c_compiler_gnu
23334
23335	   for fnm in amd_defaults ; do
23336	     echo "$as_me:$LINENO: checking whether symbol $fnm is available with AMD" >&5
23337echo $ECHO_N "checking whether symbol $fnm is available with AMD... $ECHO_C" >&6
23338	     cat >conftest.$ac_ext <<_ACEOF
23339/* confdefs.h.  */
23340_ACEOF
23341cat confdefs.h >>conftest.$ac_ext
23342cat >>conftest.$ac_ext <<_ACEOF
23343/* end confdefs.h.  */
23344
23345int
23346main ()
23347{
23348$fnm()
23349  ;
23350  return 0;
23351}
23352_ACEOF
23353rm -f conftest.$ac_objext conftest$ac_exeext
23354if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23355  (eval $ac_link) 2>conftest.er1
23356  ac_status=$?
23357  grep -v '^ *+' conftest.er1 >conftest.err
23358  rm -f conftest.er1
23359  cat conftest.err >&5
23360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23361  (exit $ac_status); } &&
23362	 { ac_try='test -z "$ac_c_werror_flag"
23363			 || test ! -s conftest.err'
23364  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23365  (eval $ac_try) 2>&5
23366  ac_status=$?
23367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23368  (exit $ac_status); }; } &&
23369	 { ac_try='test -s conftest$ac_exeext'
23370  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23371  (eval $ac_try) 2>&5
23372  ac_status=$?
23373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23374  (exit $ac_status); }; }; then
23375  echo "$as_me:$LINENO: result: yes" >&5
23376echo "${ECHO_T}yes" >&6
23377		  coin_AMD_link=yes
23378		  break
23379else
23380  echo "$as_me: failed program was:" >&5
23381sed 's/^/| /' conftest.$ac_ext >&5
23382
23383echo "$as_me:$LINENO: result: no" >&5
23384echo "${ECHO_T}no" >&6
23385fi
23386rm -f conftest.err conftest.$ac_objext \
23387      conftest$ac_exeext conftest.$ac_ext
23388	   done
23389	   ac_ext=c
23390ac_cpp='$CPP $CPPFLAGS'
23391ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23392ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23393ac_compiler_gnu=$ac_cv_c_compiler_gnu
23394
23395           LIBS="$coin_save_LIBS"
23396	   if test x"$coin_AMD_link" != xyes ; then
23397	     { { echo "$as_me:$LINENO: error: Cannot find symbol(s) amd_defaults with AMD" >&5
23398echo "$as_me: error: Cannot find symbol(s) amd_defaults with AMD" >&2;}
23399   { (exit 1); exit 1; }; }
23400	   fi
23401	 fi
23402
23403
23404# If we make it this far, we've verified the file and linked the function. Add
23405# the necessary link flags to ClpLib_{PC}LIBS and define the preprocessor symbol
23406# COIN_HAS_LBRY.
23407
23408
23409      CLPLIB_LIBS="$AMDLIB $CLPLIB_LIBS"
23410      CLPLIB_PCLIBS="$AMDLIB $CLPLIB_PCLIBS"
23411      CLPLIB_LIBS_INSTALLED="$AMDLIB $CLPLIB_LIBS_INSTALLED"
23412
23413
23414
23415cat >>confdefs.h <<\_ACEOF
23416#define COIN_HAS_AMD 1
23417_ACEOF
23418
23419  fi
23420
23421# Arrange for configure to substitute LBRYINCDIR and LBRYLIB and create the
23422# automake conditional. These actions must occur unconditionally.
23423
23424
23425
23426
23427
23428if test $coin_has_amd = true; then
23429  COIN_HAS_AMD_TRUE=
23430  COIN_HAS_AMD_FALSE='#'
23431else
23432  COIN_HAS_AMD_TRUE='#'
23433  COIN_HAS_AMD_FALSE=
23434fi
23435
23436
23437
23438# CHOLMOD from UFL
23439# CHOLMOD requires AMD, which can be given by AMD_LIBS
23440# CHOLMOD requires Blas and Lapack?
23441coin_save_LIBS="$LIBS"
23442LIBS="$LIBS $AMD_LIBS"
23443
23444  echo "$as_me:$LINENO: checking if user provides library for CHOLMOD" >&5
23445echo $ECHO_N "checking if user provides library for CHOLMOD... $ECHO_C" >&6
23446
23447# Check for header file directory
23448
23449
23450# Check whether --with-cholmod-incdir or --without-cholmod-incdir was given.
23451if test "${with_cholmod_incdir+set}" = set; then
23452  withval="$with_cholmod_incdir"
23453  CHOLMODINCDIR=`cd $withval; pwd`
23454fi;
23455
23456# Check for library directory
23457
23458
23459# Check whether --with-cholmod-lib or --without-cholmod-lib was given.
23460if test "${with_cholmod_lib+set}" = set; then
23461  withval="$with_cholmod_lib"
23462  CHOLMODLIB=$withval
23463fi;
23464
23465# Switch to disable library check if requested
23466
23467  # Check whether --enable-cholmod-libcheck or --disable-cholmod-libcheck was given.
23468if test "${enable_cholmod_libcheck+set}" = set; then
23469  enableval="$enable_cholmod_libcheck"
23470  cholmod_libcheck=$enableval
23471else
23472  cholmod_libcheck=yes
23473fi;
23474
23475# At this point, if we're going to use the library, both LBRYINCDIR and
23476# LBRYLIB must be defined and not empty.
23477
23478  if test x"$CHOLMODINCDIR" != x || test x"$CHOLMODLIB" != x; then
23479    if test x"$CHOLMODINCDIR" = x || test x"$CHOLMODLIB" = x; then
23480      { { echo "$as_me:$LINENO: error: You need to specify both an include directory and link flags to use library CHOLMOD. Use --with-cholmod-incdir of environment variable $CHOLMODINCDIR to specify the include directory. Use --with-cholmod-lib or environment variable $CHOLMODLIB to specify link flags." >&5
23481echo "$as_me: error: You need to specify both an include directory and link flags to use library CHOLMOD. Use --with-cholmod-incdir of environment variable $CHOLMODINCDIR to specify the include directory. Use --with-cholmod-lib or environment variable $CHOLMODLIB to specify link flags." >&2;}
23482   { (exit 1); exit 1; }; }
23483    fi
23484    coin_has_cholmod=true
23485    echo "$as_me:$LINENO: result: yes" >&5
23486echo "${ECHO_T}yes" >&6
23487  else
23488    coin_has_cholmod=false
23489    echo "$as_me:$LINENO: result: no" >&5
23490echo "${ECHO_T}no" >&6
23491  fi
23492
23493# If we have instructions for use, consider header and link checks.
23494
23495  if test $coin_has_cholmod = true; then
23496
23497# If argument 3 (file) is given, check for the file. Typically this will be a
23498# header file, but that's not assumed.
23499
23500    if test -r $CHOLMODINCDIR/cholmod.h; then
23501
23502  :
23503else
23504  { { echo "$as_me:$LINENO: error: Cannot find file cholmod.h in $CHOLMODINCDIR" >&5
23505echo "$as_me: error: Cannot find file cholmod.h in $CHOLMODINCDIR" >&2;}
23506   { (exit 1); exit 1; }; }
23507  :
23508fi
23509
23510
23511# Now see if we can link the function. There are arguments for and against
23512# assuming argument 3 is a header file declaring the function. A correct
23513# function declaration is the main argument in favour. Having to cope with
23514# possible dependencies or other oddities are the main arguments against.
23515# Force the use of C as the best single choice amongst C++, C, and Fortran.
23516# Obviously, this has limits.
23517
23518    if test x"$cholmod_libcheck" != xno; then
23519	   coin_save_LIBS="$LIBS"
23520	   LIBS="$CHOLMODLIB "
23521	   coin_CHOLMOD_link=no
23522	   ac_ext=c
23523ac_cpp='$CPP $CPPFLAGS'
23524ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23525ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23526ac_compiler_gnu=$ac_cv_c_compiler_gnu
23527
23528	   for fnm in cholmod_start ; do
23529	     echo "$as_me:$LINENO: checking whether symbol $fnm is available with CHOLMOD" >&5
23530echo $ECHO_N "checking whether symbol $fnm is available with CHOLMOD... $ECHO_C" >&6
23531	     cat >conftest.$ac_ext <<_ACEOF
23532/* confdefs.h.  */
23533_ACEOF
23534cat confdefs.h >>conftest.$ac_ext
23535cat >>conftest.$ac_ext <<_ACEOF
23536/* end confdefs.h.  */
23537
23538int
23539main ()
23540{
23541$fnm()
23542  ;
23543  return 0;
23544}
23545_ACEOF
23546rm -f conftest.$ac_objext conftest$ac_exeext
23547if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23548  (eval $ac_link) 2>conftest.er1
23549  ac_status=$?
23550  grep -v '^ *+' conftest.er1 >conftest.err
23551  rm -f conftest.er1
23552  cat conftest.err >&5
23553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23554  (exit $ac_status); } &&
23555	 { ac_try='test -z "$ac_c_werror_flag"
23556			 || test ! -s conftest.err'
23557  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23558  (eval $ac_try) 2>&5
23559  ac_status=$?
23560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23561  (exit $ac_status); }; } &&
23562	 { ac_try='test -s conftest$ac_exeext'
23563  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23564  (eval $ac_try) 2>&5
23565  ac_status=$?
23566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23567  (exit $ac_status); }; }; then
23568  echo "$as_me:$LINENO: result: yes" >&5
23569echo "${ECHO_T}yes" >&6
23570		  coin_CHOLMOD_link=yes
23571		  break
23572else
23573  echo "$as_me: failed program was:" >&5
23574sed 's/^/| /' conftest.$ac_ext >&5
23575
23576echo "$as_me:$LINENO: result: no" >&5
23577echo "${ECHO_T}no" >&6
23578fi
23579rm -f conftest.err conftest.$ac_objext \
23580      conftest$ac_exeext conftest.$ac_ext
23581	   done
23582	   ac_ext=c
23583ac_cpp='$CPP $CPPFLAGS'
23584ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23585ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23586ac_compiler_gnu=$ac_cv_c_compiler_gnu
23587
23588           LIBS="$coin_save_LIBS"
23589	   if test x"$coin_CHOLMOD_link" != xyes ; then
23590	     { { echo "$as_me:$LINENO: error: Cannot find symbol(s) cholmod_start with CHOLMOD" >&5
23591echo "$as_me: error: Cannot find symbol(s) cholmod_start with CHOLMOD" >&2;}
23592   { (exit 1); exit 1; }; }
23593	   fi
23594	 fi
23595
23596
23597# If we make it this far, we've verified the file and linked the function. Add
23598# the necessary link flags to ClpLib_{PC}LIBS and define the preprocessor symbol
23599# COIN_HAS_LBRY.
23600
23601
23602      CLPLIB_LIBS="$CHOLMODLIB $CLPLIB_LIBS"
23603      CLPLIB_PCLIBS="$CHOLMODLIB $CLPLIB_PCLIBS"
23604      CLPLIB_LIBS_INSTALLED="$CHOLMODLIB $CLPLIB_LIBS_INSTALLED"
23605
23606
23607
23608cat >>confdefs.h <<\_ACEOF
23609#define COIN_HAS_CHOLMOD 1
23610_ACEOF
23611
23612  fi
23613
23614# Arrange for configure to substitute LBRYINCDIR and LBRYLIB and create the
23615# automake conditional. These actions must occur unconditionally.
23616
23617
23618
23619
23620
23621if test $coin_has_cholmod = true; then
23622  COIN_HAS_CHOLMOD_TRUE=
23623  COIN_HAS_CHOLMOD_FALSE='#'
23624else
23625  COIN_HAS_CHOLMOD_TRUE='#'
23626  COIN_HAS_CHOLMOD_FALSE=
23627fi
23628
23629
23630LIBS="$coin_save_LIBS"
23631
23632# Glpk also brings AMD
23633if test $coin_has_cholmod = false -a $coin_has_amd = false ; then
23634
23635echo "$as_me:$LINENO: checking for COIN-OR package Glpk" >&5
23636echo $ECHO_N "checking for COIN-OR package Glpk... $ECHO_C" >&6
23637
23638coin_has_glpk=notGiven
23639
23640# check if user wants to skip package in any case
23641if test x"$COIN_SKIP_PROJECTS" != x; then
23642  for dir in $COIN_SKIP_PROJECTS; do
23643    if test $dir = "Glpk"; then
23644      coin_has_glpk=skipping
23645    fi
23646  done
23647fi
23648
23649if test "$coin_has_glpk" != skipping; then
23650
23651# Check whether --with-m4_tolower(Glpk) or --without-m4_tolower(Glpk) was given.
23652if test "${with_glpk+set}" = set; then
23653  withval="$with_glpk"
23654  if test "$withval" = no ; then
23655       coin_has_glpk=skipping
23656     fi
23657
23658fi;
23659fi
23660
23661GLPK_LIBS=
23662GLPK_CFLAGS=
23663GLPK_DATA=
23664GLPK_DEPENDENCIES=
23665GLPK_PCLIBS=
23666GLPK_PCREQUIRES=
23667
23668
23669
23670
23671
23672
23673
23674
23675
23676
23677
23678
23679
23680
23681
23682
23683
23684#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
23685if test $coin_has_glpk != skipping; then
23686
23687# Check whether --with-m4_tolower(Glpk)-lib or --without-m4_tolower(Glpk)-lib was given.
23688if test "${with_glpk_lib+set}" = set; then
23689  withval="$with_glpk_lib"
23690  if test "$withval" = no ; then
23691       coin_has_glpk=skipping
23692     else
23693       coin_has_glpk=yes
23694       GLPK_LIBS="$withval"
23695       GLPK_PCLIBS="$withval"
23696
23697         CLPLIB_PCLIBS="$withval $CLPLIB_PCLIBS"
23698         CLPLIB_LIBS="$withval $CLPLIB_LIBS"
23699
23700       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
23701       if test -z "$PKG_CONFIG" ; then
23702         GLPK_LIBS_INSTALLED="$withval"
23703         CLPLIB_LIBS_INSTALLED="$withval $CLPLIB_LIBS_INSTALLED"
23704       fi
23705     fi
23706
23707fi;
23708fi
23709
23710if test $coin_has_glpk != skipping; then
23711
23712# Check whether --with-m4_tolower(Glpk)-incdir or --without-m4_tolower(Glpk)-incdir was given.
23713if test "${with_glpk_incdir+set}" = set; then
23714  withval="$with_glpk_incdir"
23715  if test "$withval" = no ; then
23716       coin_has_glpk=skipping
23717     else
23718       coin_has_glpk=yes
23719       GLPK_CFLAGS="-I`${CYGPATH_W} $withval`"
23720       CLPLIB_CFLAGS="-I`${CYGPATH_W} $withval` $CLPLIB_CFLAGS"
23721       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
23722       if test -z "$PKG_CONFIG" ; then
23723         GLPK_CFLAGS_INSTALLED="$GLPK_CFLAGS"
23724         CLPLIB_CFLAGS_INSTALLED="$GLPK_CFLAGS $CLPLIB_CFLAGS_INSTALLED"
23725       fi
23726     fi
23727
23728fi;
23729fi
23730
23731if test $coin_has_glpk != skipping; then
23732
23733# Check whether --with-m4_tolower(Glpk)-datadir or --without-m4_tolower(Glpk)-datadir was given.
23734if test "${with_glpk_datadir+set}" = set; then
23735  withval="$with_glpk_datadir"
23736  if test "$withval" = no ; then
23737       coin_has_glpk=skipping
23738     else
23739       coin_has_glpk=yes
23740       GLPK_DATA="$withval"
23741       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
23742       if test -z "$PKG_CONFIG" ; then
23743         GLPK_DATA_INSTALLED="$withval"
23744       fi
23745     fi
23746
23747fi;
23748fi
23749
23750if test $coin_has_glpk = notGiven; then
23751  if test -n "$PKG_CONFIG" ; then
23752    # set search path for pkg-config
23753    # need to export variable to be sure that the following pkg-config gets these values
23754    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
23755    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
23756    export PKG_CONFIG_PATH
23757
23758    # let pkg-config do it's magic
23759
23760
23761
23762if test -n "$PKG_CONFIG" ; then
23763  if $PKG_CONFIG --exists "coinglpk"; then
23764    GLPK_VERSIONS=`$PKG_CONFIG --modversion "coinglpk" 2>/dev/null | tr '\n' ' '`
23765     cflags=`$PKG_CONFIG --cflags "coinglpk" 2>/dev/null`
23766    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
23767	# thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
23768	# but only do this if is not trivial
23769    if test "$CYGPATH_W" != "echo" ; then
23770      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
23771      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
23772    fi
23773    GLPK_CFLAGS="$cflags"
23774    GLPK_LIBS=`$PKG_CONFIG --libs "coinglpk" 2>/dev/null`
23775    GLPK_DATA=`$PKG_CONFIG --variable=datadir "coinglpk" 2>/dev/null`
23776     coin_has_glpk=yes
23777        echo "$as_me:$LINENO: result: yes: $GLPK_VERSIONS" >&5
23778echo "${ECHO_T}yes: $GLPK_VERSIONS" >&6
23779
23780        # adjust linker flags for (i)cl compiler
23781        # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl)
23782        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
23783        then
23784          GLPK_LIBS=`echo " $GLPK_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
23785        fi
23786        GLPK_PCREQUIRES="coinglpk"
23787
23788        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in ClpLib
23789
23790          CLPLIB_PCREQUIRES="coinglpk $CLPLIB_PCREQUIRES"
23791          CLPLIB_CFLAGS="$GLPK_CFLAGS $CLPLIB_CFLAGS"
23792          CLPLIB_LIBS="$GLPK_LIBS $CLPLIB_LIBS"
23793
23794
23795
23796  else
23797    GLPK_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "coinglpk"`
23798      coin_has_glpk=notGiven
23799        echo "$as_me:$LINENO: result: not given: $GLPK_PKG_ERRORS" >&5
23800echo "${ECHO_T}not given: $GLPK_PKG_ERRORS" >&6
23801
23802  fi
23803else
23804  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Glpk without pkg-config\"" >&5
23805echo "$as_me: error: \"Cannot check for existance of module Glpk without pkg-config\"" >&2;}
23806   { (exit 1); exit 1; }; }
23807fi
23808
23809
23810
23811
23812    # reset PKG_CONFIG_PATH variable
23813    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
23814    export PKG_CONFIG_PATH
23815
23816  else
23817    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
23818echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
23819
23820echo "$as_me:$LINENO: checking for COIN-OR package Glpk (fallback)" >&5
23821echo $ECHO_N "checking for COIN-OR package Glpk (fallback)... $ECHO_C" >&6
23822
23823coin_has_glpk=notGiven
23824GLPK_LIBS=
23825GLPK_LIBS_INSTALLED=
23826GLPK_CFLAGS=
23827GLPK_CFLAGS_INSTALLED=
23828GLPK_DATA=
23829GLPK_DATA_INSTALLED=
23830GLPK_PCLIBS=
23831GLPK_PCREQUIRES=
23832
23833# initial list of dependencies is "coinglpk", but we need to filter out version number specifications (= x, <= x, >= x, != x)
23834projtoprocess="coinglpk"
23835
23836# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
23837# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
23838# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
23839# also, we setup the DATA variable
23840allproj=""
23841allpcfiles=""
23842allpcifiles=""
23843while test "x$projtoprocess" != x ; do
23844
23845  for proj in $projtoprocess ; do
23846    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
23847    pcfile=""
23848    save_IFS="$IFS"
23849    IFS=":"
23850    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
23851      # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again
23852      if test -r "$dir/${proj}-uninstalled.pc" ; then
23853        pcfile="$dir/$proj-uninstalled.pc"
23854        if test -r "$dir/${proj}.pc" ; then
23855          pcifile="$dir/${proj}.pc"
23856        else
23857          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
23858echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
23859          pcifile=
23860        fi
23861        break
23862      fi
23863    done
23864    IFS="$save_IFS"
23865
23866    if test "x$pcfile" != x ; then
23867      # read dependencies from $pcfile and filter it
23868      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ 	]\{0,\}[^ 	]\{1,\}//g'`
23869
23870      # add projrequires to the front of the list of projects that have to be processed next
23871      # at the same time, remove $proj from this list
23872      projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
23873
23874      # read DATA from $pcfile, if _DATA is still empty
23875      if test "x$GLPK_DATA" = x ; then
23876        projdatadir=
23877        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
23878        eval `sh -c "$pcfilemod"`
23879        GLPK_DATA="$projdatadir"
23880      fi
23881
23882      allproj="$allproj $proj"
23883      allpcfiles="$pcfile:$allpcfiles"
23884
23885    else
23886      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
23887echo "${ECHO_T}no, dependency $proj not available" >&6
23888      allproj=fail
23889      break 2
23890    fi
23891
23892    if test "x$pcifile" != x ; then
23893      allpcifiles="$pcifile:$allpcifiles"
23894
23895      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
23896      if test "x$GLPK_DATA_INSTALLED" = x ; then
23897        projdatadir=
23898        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
23899        eval `sh -c "$pcifilemod"`
23900        if test "${CYGPATH_W}" != "echo"; then
23901          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
23902        fi
23903        GLPK_DATA_INSTALLED="$projdatadir"
23904      fi
23905
23906    fi
23907
23908    break
23909  done
23910
23911  # remove spaces on begin of $projtoprocess
23912  projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
23913
23914done
23915
23916if test "$allproj" != fail ; then
23917
23918  # now go through the list of .pc files and assemble compiler and linker flags
23919  # important is here to obey the reverse order that has been setup before,
23920  # since then libraries that are required by several others should be after these other libraries
23921  pcfilesprocessed=""
23922
23923  save_IFS="$IFS"
23924  IFS=":"
23925  for pcfile in $allpcfiles ; do
23926
23927    # if $pcfile has been processed already, skip this round
23928    if test "x$pcfilesprocessed" != x ; then
23929      for pcfiledone in $pcfilesprocessed ; do
23930        if test "$pcfiledone" = "$pcfile" ; then
23931          continue 2
23932        fi
23933      done
23934    fi
23935
23936    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
23937    #   replace "Libs:" by "echo projlibs="
23938    #   replace "Cflags:" by "echo projcflags="
23939    #   remove every line starting with <some word>:
23940    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
23941
23942    # set projcflags and projlibs variables by running $pcfilemod
23943    # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
23944    projcflags=
23945    projlibs=
23946    IFS="$save_IFS"
23947    eval `sh -c "$pcfilemod"`
23948    IFS=":"
23949
23950    # add CYGPATH_W cludge into include flags and set CFLAGS variable
23951    if test "${CYGPATH_W}" != "echo"; then
23952      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
23953    fi
23954    GLPK_CFLAGS="$projcflags $GLPK_CFLAGS"
23955
23956    # set LIBS variable
23957    GLPK_LIBS="$projlibs $GLPK_LIBS"
23958
23959    # remember that we have processed $pcfile
23960    pcfilesprocessed="$pcfilesprocessed:$pcfile"
23961
23962  done
23963  IFS="$save_IFS"
23964
23965
23966  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
23967  # important is here again to obey the reverse order that has been setup before,
23968  # since then libraries that are required by several others should be after these other libraries
23969  pcfilesprocessed=""
23970
23971  save_IFS="$IFS"
23972  IFS=":"
23973  for pcfile in $allpcifiles ; do
23974
23975    # if $pcfile has been processed already, skip this round
23976    if test "x$pcfilesprocessed" != x ; then
23977      for pcfiledone in $pcfilesprocessed ; do
23978        if test "$pcfiledone" = "$pcfile" ; then
23979          continue 2
23980        fi
23981      done
23982    fi
23983
23984    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
23985    #   replace "Libs:" by "echo projlibs="
23986    #   replace "Cflags:" by "echo projcflags="
23987    #   remove every line starting with <some word>:
23988    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
23989
23990    # set projcflags and projlibs variables by running $pcfilemod
23991    # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
23992    projcflags=
23993    projlibs=
23994    IFS="$save_IFS"
23995    eval `sh -c "$pcfilemod"`
23996    IFS=":"
23997
23998    # add CYGPATH_W cludge into include flags and set CFLAGS variable
23999    if test "${CYGPATH_W}" != "echo"; then
24000      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
24001    fi
24002    GLPK_CFLAGS_INSTALLED="$projcflags $GLPK_CFLAGS_INSTALLED"
24003
24004    # set LIBS variable
24005    GLPK_LIBS_INSTALLED="$projlibs $GLPK_LIBS_INSTALLED"
24006
24007    # remember that we have processed $pcfile
24008    pcfilesprocessed="$pcfilesprocessed:$pcfile"
24009
24010  done
24011  IFS="$save_IFS"
24012
24013
24014  # finish up
24015  coin_has_glpk=yes
24016  echo "$as_me:$LINENO: result: yes" >&5
24017echo "${ECHO_T}yes" >&6
24018
24019cat >>confdefs.h <<\_ACEOF
24020#define COIN_HAS_GLPK 1
24021_ACEOF
24022
24023
24024  # adjust linker flags for (i)cl compiler
24025  # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl),
24026  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
24027  #    everything of the form "-lname" by "libname.lib", and
24028  #    everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
24029  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
24030  then
24031    GLPK_LIBS=`echo " $GLPK_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
24032    GLPK_LIBS_INSTALLED=`echo " $GLPK_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'`
24033  fi
24034
24035  GLPK_PCREQUIRES="coinglpk"
24036
24037    CLPLIB_PCREQUIRES="coinglpk $CLPLIB_PCREQUIRES"
24038    CLPLIB_CFLAGS="$GLPK_CFLAGS $CLPLIB_CFLAGS"
24039    CLPLIB_LIBS="$GLPK_LIBS $CLPLIB_LIBS"
24040    CLPLIB_CFLAGS_INSTALLED="$GLPK_CFLAGS_INSTALLED $CLPLIB_CFLAGS_INSTALLED"
24041    CLPLIB_LIBS_INSTALLED="$GLPK_LIBS_INSTALLED $CLPLIB_LIBS_INSTALLED"
24042
24043
24044fi
24045
24046
24047
24048if test $coin_has_glpk != notGiven &&
24049                test $coin_has_glpk != skipping; then
24050  COIN_HAS_GLPK_TRUE=
24051  COIN_HAS_GLPK_FALSE='#'
24052else
24053  COIN_HAS_GLPK_TRUE='#'
24054  COIN_HAS_GLPK_FALSE=
24055fi
24056
24057
24058
24059  fi
24060
24061else
24062  echo "$as_me:$LINENO: result: $coin_has_glpk" >&5
24063echo "${ECHO_T}$coin_has_glpk" >&6
24064fi
24065
24066if test $coin_has_glpk != skipping &&
24067   test $coin_has_glpk != notGiven ; then
24068
24069cat >>confdefs.h <<\_ACEOF
24070#define COIN_HAS_GLPK 1
24071_ACEOF
24072
24073
24074  # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
24075if test "${enable_interpackage_dependencies+set}" = set; then
24076  enableval="$enable_interpackage_dependencies"
24077
24078else
24079  enable_interpackage_dependencies=yes
24080fi;
24081
24082  if test $enable_interpackage_dependencies = yes ; then
24083     # construct dependencies variables from LIBS variables
24084     # we add an extra space in LIBS so we can substitute out everything starting with " -"
24085     # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows
24086     # then remove everything of the form -xxx
24087     # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
24088     GLPK_DEPENDENCIES=`echo " $GLPK_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
24089
24090       CLPLIB_DEPENDENCIES=`echo " $CLPLIB_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
24091
24092  fi
24093
24094  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
24095    if test -n "$GLPK_CFLAGS" ; then
24096      { echo "$as_me:$LINENO: Glpk CFLAGS are $GLPK_CFLAGS" >&5
24097echo "$as_me: Glpk CFLAGS are $GLPK_CFLAGS" >&6;}
24098    fi
24099    if test -n "$GLPK_LIBS" ; then
24100      { echo "$as_me:$LINENO: Glpk LIBS   are $GLPK_LIBS" >&5
24101echo "$as_me: Glpk LIBS   are $GLPK_LIBS" >&6;}
24102    fi
24103    if test -n "$GLPK_DEPENDENCIES" ; then
24104      { echo "$as_me:$LINENO: Glpk DEPENDENCIES are $GLPK_DEPENDENCIES" >&5
24105echo "$as_me: Glpk DEPENDENCIES are $GLPK_DEPENDENCIES" >&6;}
24106    fi
24107    if test -n "$GLPK_DATA" ; then
24108      { echo "$as_me:$LINENO: Glpk DATA   is  $GLPK_DATA" >&5
24109echo "$as_me: Glpk DATA   is  $GLPK_DATA" >&6;}
24110    fi
24111    if test -n "$GLPK_PCLIBS" ; then
24112      { echo "$as_me:$LINENO: Glpk PCLIBS are $GLPK_PCLIBS" >&5
24113echo "$as_me: Glpk PCLIBS are $GLPK_PCLIBS" >&6;}
24114    fi
24115    if test -n "$GLPK_PCREQUIRES" ; then
24116      { echo "$as_me:$LINENO: Glpk PCREQUIRES are $GLPK_PCREQUIRES" >&5
24117echo "$as_me: Glpk PCREQUIRES are $GLPK_PCREQUIRES" >&6;}
24118    fi
24119
24120      { echo "$as_me:$LINENO: ClpLib CFLAGS are $CLPLIB_CFLAGS" >&5
24121echo "$as_me: ClpLib CFLAGS are $CLPLIB_CFLAGS" >&6;}
24122      { echo "$as_me:$LINENO: ClpLib LIBS   are $CLPLIB_LIBS" >&5
24123echo "$as_me: ClpLib LIBS   are $CLPLIB_LIBS" >&6;}
24124      { echo "$as_me:$LINENO: ClpLib DEPENDENCIES are $CLPLIB_DEPENDENCIES" >&5
24125echo "$as_me: ClpLib DEPENDENCIES are $CLPLIB_DEPENDENCIES" >&6;}
24126
24127  fi
24128fi
24129
24130# Define the Makefile conditional
24131
24132
24133if test $coin_has_glpk != notGiven &&
24134                test $coin_has_glpk != skipping; then
24135  COIN_HAS_GLPK_TRUE=
24136  COIN_HAS_GLPK_FALSE='#'
24137else
24138  COIN_HAS_GLPK_TRUE='#'
24139  COIN_HAS_GLPK_FALSE=
24140fi
24141
24142
24143
24144  if test $coin_has_glpk = yes ; then
24145    { echo "$as_me:$LINENO: using AMD from GLPK package" >&5
24146echo "$as_me: using AMD from GLPK package" >&6;}
24147
24148cat >>confdefs.h <<\_ACEOF
24149#define COIN_HAS_AMD 1
24150_ACEOF
24151
24152  fi
24153else
24154  # for configure
24155
24156
24157if test 0 = 1; then
24158  COIN_HAS_GLPK_TRUE=
24159  COIN_HAS_GLPK_FALSE='#'
24160else
24161  COIN_HAS_GLPK_TRUE='#'
24162  COIN_HAS_GLPK_FALSE=
24163fi
24164
24165fi
24166
24167# MUMPS
24168
24169echo "$as_me:$LINENO: checking for COIN-OR package Mumps" >&5
24170echo $ECHO_N "checking for COIN-OR package Mumps... $ECHO_C" >&6
24171
24172coin_has_mumps=notGiven
24173
24174# check if user wants to skip package in any case
24175if test x"$COIN_SKIP_PROJECTS" != x; then
24176  for dir in $COIN_SKIP_PROJECTS; do
24177    if test $dir = "Mumps"; then
24178      coin_has_mumps=skipping
24179    fi
24180  done
24181fi
24182
24183if test "$coin_has_mumps" != skipping; then
24184
24185# Check whether --with-m4_tolower(Mumps) or --without-m4_tolower(Mumps) was given.
24186if test "${with_mumps+set}" = set; then
24187  withval="$with_mumps"
24188  if test "$withval" = no ; then
24189       coin_has_mumps=skipping
24190     fi
24191
24192fi;
24193fi
24194
24195MUMPS_LIBS=
24196MUMPS_CFLAGS=
24197MUMPS_DATA=
24198MUMPS_DEPENDENCIES=
24199MUMPS_PCLIBS=
24200MUMPS_PCREQUIRES=
24201
24202
24203
24204
24205
24206
24207
24208
24209
24210
24211
24212
24213
24214
24215
24216
24217
24218#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
24219if test $coin_has_mumps != skipping; then
24220
24221# Check whether --with-m4_tolower(Mumps)-lib or --without-m4_tolower(Mumps)-lib was given.
24222if test "${with_mumps_lib+set}" = set; then
24223  withval="$with_mumps_lib"
24224  if test "$withval" = no ; then
24225       coin_has_mumps=skipping
24226     else
24227       coin_has_mumps=yes
24228       MUMPS_LIBS="$withval"
24229       MUMPS_PCLIBS="$withval"
24230
24231         CLPLIB_PCLIBS="$withval $CLPLIB_PCLIBS"
24232         CLPLIB_LIBS="$withval $CLPLIB_LIBS"
24233
24234       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
24235       if test -z "$PKG_CONFIG" ; then
24236         MUMPS_LIBS_INSTALLED="$withval"
24237         CLPLIB_LIBS_INSTALLED="$withval $CLPLIB_LIBS_INSTALLED"
24238       fi
24239     fi
24240
24241fi;
24242fi
24243
24244if test $coin_has_mumps != skipping; then
24245
24246# Check whether --with-m4_tolower(Mumps)-incdir or --without-m4_tolower(Mumps)-incdir was given.
24247if test "${with_mumps_incdir+set}" = set; then
24248  withval="$with_mumps_incdir"
24249  if test "$withval" = no ; then
24250       coin_has_mumps=skipping
24251     else
24252       coin_has_mumps=yes
24253       MUMPS_CFLAGS="-I`${CYGPATH_W} $withval`"
24254       CLPLIB_CFLAGS="-I`${CYGPATH_W} $withval` $CLPLIB_CFLAGS"
24255       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
24256       if test -z "$PKG_CONFIG" ; then
24257         MUMPS_CFLAGS_INSTALLED="$MUMPS_CFLAGS"
24258         CLPLIB_CFLAGS_INSTALLED="$MUMPS_CFLAGS $CLPLIB_CFLAGS_INSTALLED"
24259       fi
24260     fi
24261
24262fi;
24263fi
24264
24265if test $coin_has_mumps != skipping; then
24266
24267# Check whether --with-m4_tolower(Mumps)-datadir or --without-m4_tolower(Mumps)-datadir was given.
24268if test "${with_mumps_datadir+set}" = set; then
24269  withval="$with_mumps_datadir"
24270  if test "$withval" = no ; then
24271       coin_has_mumps=skipping
24272     else
24273       coin_has_mumps=yes
24274       MUMPS_DATA="$withval"
24275       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
24276       if test -z "$PKG_CONFIG" ; then
24277         MUMPS_DATA_INSTALLED="$withval"
24278       fi
24279     fi
24280
24281fi;
24282fi
24283
24284if test $coin_has_mumps = notGiven; then
24285  if test -n "$PKG_CONFIG" ; then
24286    # set search path for pkg-config
24287    # need to export variable to be sure that the following pkg-config gets these values
24288    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
24289    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
24290    export PKG_CONFIG_PATH
24291
24292    # let pkg-config do it's magic
24293
24294
24295
24296if test -n "$PKG_CONFIG" ; then
24297  if $PKG_CONFIG --exists "coinmumps"; then
24298    MUMPS_VERSIONS=`$PKG_CONFIG --modversion "coinmumps" 2>/dev/null | tr '\n' ' '`
24299     cflags=`$PKG_CONFIG --cflags "coinmumps" 2>/dev/null`
24300    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
24301	# thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
24302	# but only do this if is not trivial
24303    if test "$CYGPATH_W" != "echo" ; then
24304      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
24305      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
24306    fi
24307    MUMPS_CFLAGS="$cflags"
24308    MUMPS_LIBS=`$PKG_CONFIG --libs "coinmumps" 2>/dev/null`
24309    MUMPS_DATA=`$PKG_CONFIG --variable=datadir "coinmumps" 2>/dev/null`
24310     coin_has_mumps=yes
24311        echo "$as_me:$LINENO: result: yes: $MUMPS_VERSIONS" >&5
24312echo "${ECHO_T}yes: $MUMPS_VERSIONS" >&6
24313
24314        # adjust linker flags for (i)cl compiler
24315        # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl)
24316        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
24317        then
24318          MUMPS_LIBS=`echo " $MUMPS_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
24319        fi
24320        MUMPS_PCREQUIRES="coinmumps"
24321
24322        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in ClpLib
24323
24324          CLPLIB_PCREQUIRES="coinmumps $CLPLIB_PCREQUIRES"
24325          CLPLIB_CFLAGS="$MUMPS_CFLAGS $CLPLIB_CFLAGS"
24326          CLPLIB_LIBS="$MUMPS_LIBS $CLPLIB_LIBS"
24327
24328
24329
24330  else
24331    MUMPS_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "coinmumps"`
24332      coin_has_mumps=notGiven
24333        echo "$as_me:$LINENO: result: not given: $MUMPS_PKG_ERRORS" >&5
24334echo "${ECHO_T}not given: $MUMPS_PKG_ERRORS" >&6
24335
24336  fi
24337else
24338  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Mumps without pkg-config\"" >&5
24339echo "$as_me: error: \"Cannot check for existance of module Mumps without pkg-config\"" >&2;}
24340   { (exit 1); exit 1; }; }
24341fi
24342
24343
24344
24345
24346    # reset PKG_CONFIG_PATH variable
24347    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
24348    export PKG_CONFIG_PATH
24349
24350  else
24351    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
24352echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
24353
24354echo "$as_me:$LINENO: checking for COIN-OR package Mumps (fallback)" >&5
24355echo $ECHO_N "checking for COIN-OR package Mumps (fallback)... $ECHO_C" >&6
24356
24357coin_has_mumps=notGiven
24358MUMPS_LIBS=
24359MUMPS_LIBS_INSTALLED=
24360MUMPS_CFLAGS=
24361MUMPS_CFLAGS_INSTALLED=
24362MUMPS_DATA=
24363MUMPS_DATA_INSTALLED=
24364MUMPS_PCLIBS=
24365MUMPS_PCREQUIRES=
24366
24367# initial list of dependencies is "coinmumps", but we need to filter out version number specifications (= x, <= x, >= x, != x)
24368projtoprocess="coinmumps"
24369
24370# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
24371# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
24372# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
24373# also, we setup the DATA variable
24374allproj=""
24375allpcfiles=""
24376allpcifiles=""
24377while test "x$projtoprocess" != x ; do
24378
24379  for proj in $projtoprocess ; do
24380    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
24381    pcfile=""
24382    save_IFS="$IFS"
24383    IFS=":"
24384    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
24385      # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again
24386      if test -r "$dir/${proj}-uninstalled.pc" ; then
24387        pcfile="$dir/$proj-uninstalled.pc"
24388        if test -r "$dir/${proj}.pc" ; then
24389          pcifile="$dir/${proj}.pc"
24390        else
24391          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
24392echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
24393          pcifile=
24394        fi
24395        break
24396      fi
24397    done
24398    IFS="$save_IFS"
24399
24400    if test "x$pcfile" != x ; then
24401      # read dependencies from $pcfile and filter it
24402      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ 	]\{0,\}[^ 	]\{1,\}//g'`
24403
24404      # add projrequires to the front of the list of projects that have to be processed next
24405      # at the same time, remove $proj from this list
24406      projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
24407
24408      # read DATA from $pcfile, if _DATA is still empty
24409      if test "x$MUMPS_DATA" = x ; then
24410        projdatadir=
24411        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
24412        eval `sh -c "$pcfilemod"`
24413        MUMPS_DATA="$projdatadir"
24414      fi
24415
24416      allproj="$allproj $proj"
24417      allpcfiles="$pcfile:$allpcfiles"
24418
24419    else
24420      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
24421echo "${ECHO_T}no, dependency $proj not available" >&6
24422      allproj=fail
24423      break 2
24424    fi
24425
24426    if test "x$pcifile" != x ; then
24427      allpcifiles="$pcifile:$allpcifiles"
24428
24429      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
24430      if test "x$MUMPS_DATA_INSTALLED" = x ; then
24431        projdatadir=
24432        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
24433        eval `sh -c "$pcifilemod"`
24434        if test "${CYGPATH_W}" != "echo"; then
24435          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
24436        fi
24437        MUMPS_DATA_INSTALLED="$projdatadir"
24438      fi
24439
24440    fi
24441
24442    break
24443  done
24444
24445  # remove spaces on begin of $projtoprocess
24446  projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
24447
24448done
24449
24450if test "$allproj" != fail ; then
24451
24452  # now go through the list of .pc files and assemble compiler and linker flags
24453  # important is here to obey the reverse order that has been setup before,
24454  # since then libraries that are required by several others should be after these other libraries
24455  pcfilesprocessed=""
24456
24457  save_IFS="$IFS"
24458  IFS=":"
24459  for pcfile in $allpcfiles ; do
24460
24461    # if $pcfile has been processed already, skip this round
24462    if test "x$pcfilesprocessed" != x ; then
24463      for pcfiledone in $pcfilesprocessed ; do
24464        if test "$pcfiledone" = "$pcfile" ; then
24465          continue 2
24466        fi
24467      done
24468    fi
24469
24470    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
24471    #   replace "Libs:" by "echo projlibs="
24472    #   replace "Cflags:" by "echo projcflags="
24473    #   remove every line starting with <some word>:
24474    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
24475
24476    # set projcflags and projlibs variables by running $pcfilemod
24477    # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
24478    projcflags=
24479    projlibs=
24480    IFS="$save_IFS"
24481    eval `sh -c "$pcfilemod"`
24482    IFS=":"
24483
24484    # add CYGPATH_W cludge into include flags and set CFLAGS variable
24485    if test "${CYGPATH_W}" != "echo"; then
24486      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
24487    fi
24488    MUMPS_CFLAGS="$projcflags $MUMPS_CFLAGS"
24489
24490    # set LIBS variable
24491    MUMPS_LIBS="$projlibs $MUMPS_LIBS"
24492
24493    # remember that we have processed $pcfile
24494    pcfilesprocessed="$pcfilesprocessed:$pcfile"
24495
24496  done
24497  IFS="$save_IFS"
24498
24499
24500  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
24501  # important is here again to obey the reverse order that has been setup before,
24502  # since then libraries that are required by several others should be after these other libraries
24503  pcfilesprocessed=""
24504
24505  save_IFS="$IFS"
24506  IFS=":"
24507  for pcfile in $allpcifiles ; do
24508
24509    # if $pcfile has been processed already, skip this round
24510    if test "x$pcfilesprocessed" != x ; then
24511      for pcfiledone in $pcfilesprocessed ; do
24512        if test "$pcfiledone" = "$pcfile" ; then
24513          continue 2
24514        fi
24515      done
24516    fi
24517
24518    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
24519    #   replace "Libs:" by "echo projlibs="
24520    #   replace "Cflags:" by "echo projcflags="
24521    #   remove every line starting with <some word>:
24522    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
24523
24524    # set projcflags and projlibs variables by running $pcfilemod
24525    # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
24526    projcflags=
24527    projlibs=
24528    IFS="$save_IFS"
24529    eval `sh -c "$pcfilemod"`
24530    IFS=":"
24531
24532    # add CYGPATH_W cludge into include flags and set CFLAGS variable
24533    if test "${CYGPATH_W}" != "echo"; then
24534      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
24535    fi
24536    MUMPS_CFLAGS_INSTALLED="$projcflags $MUMPS_CFLAGS_INSTALLED"
24537
24538    # set LIBS variable
24539    MUMPS_LIBS_INSTALLED="$projlibs $MUMPS_LIBS_INSTALLED"
24540
24541    # remember that we have processed $pcfile
24542    pcfilesprocessed="$pcfilesprocessed:$pcfile"
24543
24544  done
24545  IFS="$save_IFS"
24546
24547
24548  # finish up
24549  coin_has_mumps=yes
24550  echo "$as_me:$LINENO: result: yes" >&5
24551echo "${ECHO_T}yes" >&6
24552
24553cat >>confdefs.h <<\_ACEOF
24554#define COIN_HAS_MUMPS 1
24555_ACEOF
24556
24557
24558  # adjust linker flags for (i)cl compiler
24559  # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl),
24560  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
24561  #    everything of the form "-lname" by "libname.lib", and
24562  #    everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
24563  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
24564  then
24565    MUMPS_LIBS=`echo " $MUMPS_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
24566    MUMPS_LIBS_INSTALLED=`echo " $MUMPS_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'`
24567  fi
24568
24569  MUMPS_PCREQUIRES="coinmumps"
24570
24571    CLPLIB_PCREQUIRES="coinmumps $CLPLIB_PCREQUIRES"
24572    CLPLIB_CFLAGS="$MUMPS_CFLAGS $CLPLIB_CFLAGS"
24573    CLPLIB_LIBS="$MUMPS_LIBS $CLPLIB_LIBS"
24574    CLPLIB_CFLAGS_INSTALLED="$MUMPS_CFLAGS_INSTALLED $CLPLIB_CFLAGS_INSTALLED"
24575    CLPLIB_LIBS_INSTALLED="$MUMPS_LIBS_INSTALLED $CLPLIB_LIBS_INSTALLED"
24576
24577
24578fi
24579
24580
24581
24582if test $coin_has_mumps != notGiven &&
24583                test $coin_has_mumps != skipping; then
24584  COIN_HAS_MUMPS_TRUE=
24585  COIN_HAS_MUMPS_FALSE='#'
24586else
24587  COIN_HAS_MUMPS_TRUE='#'
24588  COIN_HAS_MUMPS_FALSE=
24589fi
24590
24591
24592
24593  fi
24594
24595else
24596  echo "$as_me:$LINENO: result: $coin_has_mumps" >&5
24597echo "${ECHO_T}$coin_has_mumps" >&6
24598fi
24599
24600if test $coin_has_mumps != skipping &&
24601   test $coin_has_mumps != notGiven ; then
24602
24603cat >>confdefs.h <<\_ACEOF
24604#define COIN_HAS_MUMPS 1
24605_ACEOF
24606
24607
24608  # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
24609if test "${enable_interpackage_dependencies+set}" = set; then
24610  enableval="$enable_interpackage_dependencies"
24611
24612else
24613  enable_interpackage_dependencies=yes
24614fi;
24615
24616  if test $enable_interpackage_dependencies = yes ; then
24617     # construct dependencies variables from LIBS variables
24618     # we add an extra space in LIBS so we can substitute out everything starting with " -"
24619     # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows
24620     # then remove everything of the form -xxx
24621     # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
24622     MUMPS_DEPENDENCIES=`echo " $MUMPS_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
24623
24624       CLPLIB_DEPENDENCIES=`echo " $CLPLIB_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
24625
24626  fi
24627
24628  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
24629    if test -n "$MUMPS_CFLAGS" ; then
24630      { echo "$as_me:$LINENO: Mumps CFLAGS are $MUMPS_CFLAGS" >&5
24631echo "$as_me: Mumps CFLAGS are $MUMPS_CFLAGS" >&6;}
24632    fi
24633    if test -n "$MUMPS_LIBS" ; then
24634      { echo "$as_me:$LINENO: Mumps LIBS   are $MUMPS_LIBS" >&5
24635echo "$as_me: Mumps LIBS   are $MUMPS_LIBS" >&6;}
24636    fi
24637    if test -n "$MUMPS_DEPENDENCIES" ; then
24638      { echo "$as_me:$LINENO: Mumps DEPENDENCIES are $MUMPS_DEPENDENCIES" >&5
24639echo "$as_me: Mumps DEPENDENCIES are $MUMPS_DEPENDENCIES" >&6;}
24640    fi
24641    if test -n "$MUMPS_DATA" ; then
24642      { echo "$as_me:$LINENO: Mumps DATA   is  $MUMPS_DATA" >&5
24643echo "$as_me: Mumps DATA   is  $MUMPS_DATA" >&6;}
24644    fi
24645    if test -n "$MUMPS_PCLIBS" ; then
24646      { echo "$as_me:$LINENO: Mumps PCLIBS are $MUMPS_PCLIBS" >&5
24647echo "$as_me: Mumps PCLIBS are $MUMPS_PCLIBS" >&6;}
24648    fi
24649    if test -n "$MUMPS_PCREQUIRES" ; then
24650      { echo "$as_me:$LINENO: Mumps PCREQUIRES are $MUMPS_PCREQUIRES" >&5
24651echo "$as_me: Mumps PCREQUIRES are $MUMPS_PCREQUIRES" >&6;}
24652    fi
24653
24654      { echo "$as_me:$LINENO: ClpLib CFLAGS are $CLPLIB_CFLAGS" >&5
24655echo "$as_me: ClpLib CFLAGS are $CLPLIB_CFLAGS" >&6;}
24656      { echo "$as_me:$LINENO: ClpLib LIBS   are $CLPLIB_LIBS" >&5
24657echo "$as_me: ClpLib LIBS   are $CLPLIB_LIBS" >&6;}
24658      { echo "$as_me:$LINENO: ClpLib DEPENDENCIES are $CLPLIB_DEPENDENCIES" >&5
24659echo "$as_me: ClpLib DEPENDENCIES are $CLPLIB_DEPENDENCIES" >&6;}
24660
24661  fi
24662fi
24663
24664# Define the Makefile conditional
24665
24666
24667if test $coin_has_mumps != notGiven &&
24668                test $coin_has_mumps != skipping; then
24669  COIN_HAS_MUMPS_TRUE=
24670  COIN_HAS_MUMPS_FALSE='#'
24671else
24672  COIN_HAS_MUMPS_TRUE='#'
24673  COIN_HAS_MUMPS_FALSE=
24674fi
24675
24676
24677
24678
24679# WSMP
24680
24681# Check whether --with-wsmp or --without-wsmp was given.
24682if test "${with_wsmp+set}" = set; then
24683  withval="$with_wsmp"
24684  use_wsmp=$withval
24685else
24686  use_wsmp=no
24687fi;
24688
24689if test "$use_wsmp" != "no"; then
24690  # Check how to link against Fortran libraries from C
24691  case $build in
24692  *-cygwin* | *-mingw*)
24693     if test "$enable_msvc" = yes ; then
24694       coin_f77_comps="ifort fl32 compile_f2c"
24695     else
24696       coin_f77_comps="gfortran ifort g95 g77 fl32 compile_f2c"
24697     fi ;;
24698  *-*-solaris*)
24699     coin_f77_comps="f95 f90 g95 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
24700  *-linux-gnu*)
24701     coin_f77_comps="gfortran ifort g95 fort77 f77 g77 pgf90 pgf77 ifc frt af77 xlf_r" ;;
24702  *) coin_f77_comps="xlf_r fort77 gfortran ifort g95 f77 g77 pgf90 pgf77 ifc frt af77" ;;
24703 esac
24704
24705
24706
24707
24708ac_ext=f
24709ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
24710ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24711ac_compiler_gnu=$ac_cv_f77_compiler_gnu
24712
24713
24714
24715
24716
24717
24718coin_has_f77=yes
24719
24720save_fflags="$FFLAGS"
24721
24722# We delete the cached value, since the test might not have been
24723# performed with our choice of compilers earlier
24724$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
24725
24726# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
24727# coin_f77_comps to see if there's a program that matches one of the names.
24728# If there's no such program, F77 = unavailable. If we match the name,
24729# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
24730# compiler.
24731# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
24732
24733
24734{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
24735echo "$as_me: Trying to determine Fortran compiler name" >&6;}
24736if test -n "$ac_tool_prefix"; then
24737  for ac_prog in $coin_f77_comps
24738  do
24739    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
24740set dummy $ac_tool_prefix$ac_prog; ac_word=$2
24741echo "$as_me:$LINENO: checking for $ac_word" >&5
24742echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24743if test "${ac_cv_prog_F77+set}" = set; then
24744  echo $ECHO_N "(cached) $ECHO_C" >&6
24745else
24746  if test -n "$F77"; then
24747  ac_cv_prog_F77="$F77" # Let the user override the test.
24748else
24749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24750for as_dir in $PATH
24751do
24752  IFS=$as_save_IFS
24753  test -z "$as_dir" && as_dir=.
24754  for ac_exec_ext in '' $ac_executable_extensions; do
24755  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24756    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
24757    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24758    break 2
24759  fi
24760done
24761done
24762
24763fi
24764fi
24765F77=$ac_cv_prog_F77
24766if test -n "$F77"; then
24767  echo "$as_me:$LINENO: result: $F77" >&5
24768echo "${ECHO_T}$F77" >&6
24769else
24770  echo "$as_me:$LINENO: result: no" >&5
24771echo "${ECHO_T}no" >&6
24772fi
24773
24774    test -n "$F77" && break
24775  done
24776fi
24777if test -z "$F77"; then
24778  ac_ct_F77=$F77
24779  for ac_prog in $coin_f77_comps
24780do
24781  # Extract the first word of "$ac_prog", so it can be a program name with args.
24782set dummy $ac_prog; ac_word=$2
24783echo "$as_me:$LINENO: checking for $ac_word" >&5
24784echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24785if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
24786  echo $ECHO_N "(cached) $ECHO_C" >&6
24787else
24788  if test -n "$ac_ct_F77"; then
24789  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
24790else
24791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24792for as_dir in $PATH
24793do
24794  IFS=$as_save_IFS
24795  test -z "$as_dir" && as_dir=.
24796  for ac_exec_ext in '' $ac_executable_extensions; do
24797  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24798    ac_cv_prog_ac_ct_F77="$ac_prog"
24799    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24800    break 2
24801  fi
24802done
24803done
24804
24805fi
24806fi
24807ac_ct_F77=$ac_cv_prog_ac_ct_F77
24808if test -n "$ac_ct_F77"; then
24809  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
24810echo "${ECHO_T}$ac_ct_F77" >&6
24811else
24812  echo "$as_me:$LINENO: result: no" >&5
24813echo "${ECHO_T}no" >&6
24814fi
24815
24816  test -n "$ac_ct_F77" && break
24817done
24818test -n "$ac_ct_F77" || ac_ct_F77="unavailable"
24819
24820  F77=$ac_ct_F77
24821fi
24822
24823
24824if test "$F77" != "unavailable" ; then
24825  ac_ext=f
24826ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
24827ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24828ac_compiler_gnu=$ac_cv_f77_compiler_gnu
24829if test -n "$ac_tool_prefix"; then
24830  for ac_prog in $coin_f77_comps
24831  do
24832    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
24833set dummy $ac_tool_prefix$ac_prog; ac_word=$2
24834echo "$as_me:$LINENO: checking for $ac_word" >&5
24835echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24836if test "${ac_cv_prog_F77+set}" = set; then
24837  echo $ECHO_N "(cached) $ECHO_C" >&6
24838else
24839  if test -n "$F77"; then
24840  ac_cv_prog_F77="$F77" # Let the user override the test.
24841else
24842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24843for as_dir in $PATH
24844do
24845  IFS=$as_save_IFS
24846  test -z "$as_dir" && as_dir=.
24847  for ac_exec_ext in '' $ac_executable_extensions; do
24848  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24849    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
24850    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24851    break 2
24852  fi
24853done
24854done
24855
24856fi
24857fi
24858F77=$ac_cv_prog_F77
24859if test -n "$F77"; then
24860  echo "$as_me:$LINENO: result: $F77" >&5
24861echo "${ECHO_T}$F77" >&6
24862else
24863  echo "$as_me:$LINENO: result: no" >&5
24864echo "${ECHO_T}no" >&6
24865fi
24866
24867    test -n "$F77" && break
24868  done
24869fi
24870if test -z "$F77"; then
24871  ac_ct_F77=$F77
24872  for ac_prog in $coin_f77_comps
24873do
24874  # Extract the first word of "$ac_prog", so it can be a program name with args.
24875set dummy $ac_prog; ac_word=$2
24876echo "$as_me:$LINENO: checking for $ac_word" >&5
24877echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24878if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
24879  echo $ECHO_N "(cached) $ECHO_C" >&6
24880else
24881  if test -n "$ac_ct_F77"; then
24882  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
24883else
24884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24885for as_dir in $PATH
24886do
24887  IFS=$as_save_IFS
24888  test -z "$as_dir" && as_dir=.
24889  for ac_exec_ext in '' $ac_executable_extensions; do
24890  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24891    ac_cv_prog_ac_ct_F77="$ac_prog"
24892    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24893    break 2
24894  fi
24895done
24896done
24897
24898fi
24899fi
24900ac_ct_F77=$ac_cv_prog_ac_ct_F77
24901if test -n "$ac_ct_F77"; then
24902  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
24903echo "${ECHO_T}$ac_ct_F77" >&6
24904else
24905  echo "$as_me:$LINENO: result: no" >&5
24906echo "${ECHO_T}no" >&6
24907fi
24908
24909  test -n "$ac_ct_F77" && break
24910done
24911
24912  F77=$ac_ct_F77
24913fi
24914
24915
24916# Provide some information about the compiler.
24917echo "$as_me:24917:" \
24918     "checking for Fortran 77 compiler version" >&5
24919ac_compiler=`set X $ac_compile; echo $2`
24920{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
24921  (eval $ac_compiler --version </dev/null >&5) 2>&5
24922  ac_status=$?
24923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24924  (exit $ac_status); }
24925{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
24926  (eval $ac_compiler -v </dev/null >&5) 2>&5
24927  ac_status=$?
24928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24929  (exit $ac_status); }
24930{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
24931  (eval $ac_compiler -V </dev/null >&5) 2>&5
24932  ac_status=$?
24933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24934  (exit $ac_status); }
24935rm -f a.out
24936
24937# If we don't use `.F' as extension, the preprocessor is not run on the
24938# input file.  (Note that this only needs to work for GNU compilers.)
24939ac_save_ext=$ac_ext
24940ac_ext=F
24941echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
24942echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
24943if test "${ac_cv_f77_compiler_gnu+set}" = set; then
24944  echo $ECHO_N "(cached) $ECHO_C" >&6
24945else
24946  cat >conftest.$ac_ext <<_ACEOF
24947      program main
24948#ifndef __GNUC__
24949       choke me
24950#endif
24951
24952      end
24953_ACEOF
24954rm -f conftest.$ac_objext
24955if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24956  (eval $ac_compile) 2>conftest.er1
24957  ac_status=$?
24958  grep -v '^ *+' conftest.er1 >conftest.err
24959  rm -f conftest.er1
24960  cat conftest.err >&5
24961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24962  (exit $ac_status); } &&
24963	 { ac_try='test -z "$ac_f77_werror_flag"
24964			 || test ! -s conftest.err'
24965  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24966  (eval $ac_try) 2>&5
24967  ac_status=$?
24968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24969  (exit $ac_status); }; } &&
24970	 { ac_try='test -s conftest.$ac_objext'
24971  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24972  (eval $ac_try) 2>&5
24973  ac_status=$?
24974  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24975  (exit $ac_status); }; }; then
24976  ac_compiler_gnu=yes
24977else
24978  echo "$as_me: failed program was:" >&5
24979sed 's/^/| /' conftest.$ac_ext >&5
24980
24981ac_compiler_gnu=no
24982fi
24983rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24984ac_cv_f77_compiler_gnu=$ac_compiler_gnu
24985
24986fi
24987echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
24988echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
24989ac_ext=$ac_save_ext
24990ac_test_FFLAGS=${FFLAGS+set}
24991ac_save_FFLAGS=$FFLAGS
24992FFLAGS=
24993echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
24994echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
24995if test "${ac_cv_prog_f77_g+set}" = set; then
24996  echo $ECHO_N "(cached) $ECHO_C" >&6
24997else
24998  FFLAGS=-g
24999cat >conftest.$ac_ext <<_ACEOF
25000      program main
25001
25002      end
25003_ACEOF
25004rm -f conftest.$ac_objext
25005if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25006  (eval $ac_compile) 2>conftest.er1
25007  ac_status=$?
25008  grep -v '^ *+' conftest.er1 >conftest.err
25009  rm -f conftest.er1
25010  cat conftest.err >&5
25011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25012  (exit $ac_status); } &&
25013	 { ac_try='test -z "$ac_f77_werror_flag"
25014			 || test ! -s conftest.err'
25015  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25016  (eval $ac_try) 2>&5
25017  ac_status=$?
25018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25019  (exit $ac_status); }; } &&
25020	 { ac_try='test -s conftest.$ac_objext'
25021  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25022  (eval $ac_try) 2>&5
25023  ac_status=$?
25024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25025  (exit $ac_status); }; }; then
25026  ac_cv_prog_f77_g=yes
25027else
25028  echo "$as_me: failed program was:" >&5
25029sed 's/^/| /' conftest.$ac_ext >&5
25030
25031ac_cv_prog_f77_g=no
25032fi
25033rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25034
25035fi
25036echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
25037echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
25038if test "$ac_test_FFLAGS" = set; then
25039  FFLAGS=$ac_save_FFLAGS
25040elif test $ac_cv_prog_f77_g = yes; then
25041  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
25042    FFLAGS="-g -O2"
25043  else
25044    FFLAGS="-g"
25045  fi
25046else
25047  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
25048    FFLAGS="-O2"
25049  else
25050    FFLAGS=
25051  fi
25052fi
25053
25054G77=`test $ac_compiler_gnu = yes && echo yes`
25055ac_ext=f
25056ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
25057ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25058ac_compiler_gnu=$ac_cv_f77_compiler_gnu
25059
25060else
25061  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
25062echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
25063fi
25064
25065FFLAGS="$save_fflags"
25066
25067# Check if a project specific FFLAGS variable has been set
25068if test x$COIN_PRJCT != x; then
25069  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
25070  if test x$coin_tmp = xset; then
25071    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
25072  fi
25073fi
25074
25075if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
25076
25077  coin_add_fflags=
25078  coin_opt_fflags=
25079  coin_dbg_fflags=
25080  coin_warn_fflags=
25081
25082  if test "$G77" = "yes"; then
25083    coin_opt_fflags="-O3"
25084    coin_add_fflags="-pipe"
25085    coin_dbg_fflags="-g -O0"
25086  else
25087    case $build in
25088      *-cygwin* | *-mingw*)
25089        case $F77 in
25090          ifort* | */ifort* | IFORT* | */IFORT* )
25091            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
25092              coin_opt_fflags='-MD -O3'
25093              coin_dbg_fflags='-MDd -debug'
25094            else
25095              coin_opt_fflags='-MT -O3'
25096              coin_dbg_fflags='-MTd -debug'
25097            fi
25098            coin_add_fflags='-fpp -nologo'
25099          ;;
25100          compile_f2c*)
25101            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
25102              coin_opt_fflags='-MD -O2'
25103              coin_dbg_fflags='-MDd'
25104            else
25105              coin_opt_fflags='-MT -O2'
25106              coin_dbg_fflags='-MTd'
25107            fi
25108            coin_add_fflags='-nologo -wd4996'
25109          ;;
25110        esac
25111        ;;
25112      *-linux-*)
25113        case $F77 in
25114          ifc* | */ifc* | ifort* | */ifort*)
25115            coin_opt_fflags="-O3 -ip"
25116            coin_add_fflags="-cm -w90 -w95"
25117            coin_dbg_fflags="-g -CA -CB -CS"
25118            # Check if -i_dynamic is necessary (for new glibc library)
25119            FFLAGS=
25120            cat >conftest.$ac_ext <<_ACEOF
25121      program main
25122      write(*,*) 'Hello world'
25123      end
25124_ACEOF
25125rm -f conftest.$ac_objext conftest$ac_exeext
25126if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25127  (eval $ac_link) 2>conftest.er1
25128  ac_status=$?
25129  grep -v '^ *+' conftest.er1 >conftest.err
25130  rm -f conftest.er1
25131  cat conftest.err >&5
25132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25133  (exit $ac_status); } &&
25134	 { ac_try='test -z "$ac_f77_werror_flag"
25135			 || test ! -s conftest.err'
25136  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25137  (eval $ac_try) 2>&5
25138  ac_status=$?
25139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25140  (exit $ac_status); }; } &&
25141	 { ac_try='test -s conftest$ac_exeext'
25142  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25143  (eval $ac_try) 2>&5
25144  ac_status=$?
25145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25146  (exit $ac_status); }; }; then
25147  :
25148else
25149  echo "$as_me: failed program was:" >&5
25150sed 's/^/| /' conftest.$ac_ext >&5
25151
25152coin_add_fflags="-i_dynamic $coin_add_fflags"
25153fi
25154rm -f conftest.err conftest.$ac_objext \
25155      conftest$ac_exeext conftest.$ac_ext
25156            ;;
25157          pgf77* | */pgf77* | pgf90* | */pgf90*)
25158            coin_opt_fflags="-fast"
25159            coin_add_fflags="-Kieee -pc 64"
25160            coin_dbg_fflags="-g"
25161          ;;
25162        esac
25163        ;;
25164      *-ibm-*)
25165        case "$F77" in
25166          xlf* | */xlf* | mpxlf* | */mpxlf* )
25167            coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
25168            coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
25169            coin_dbg_fflags="-g -C"
25170            ;;
25171        esac
25172        ;;
25173      *-hp-*)
25174        coin_opt_fflags="+O3"
25175        coin_add_fflags="+U77"
25176        coin_dbg_fflags="-C -g"
25177        ;;
25178      *-*-solaris*)
25179        coin_opt_fflags="-O4"
25180        coin_dbg_fflags="-g"
25181        ;;
25182      *-sgi-*)
25183        coin_opt_fflags="-O5 -OPT:Olimit=0"
25184        coin_dbg_fflags="-g"
25185        ;;
25186    esac
25187  fi
25188
25189  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
25190    coin_dbg_fflags="-g"
25191  fi
25192
25193  if test -z "$coin_opt_fflags"; then
25194    # Try if -O option works if nothing else is set
25195    FFLAGS=-O
25196    cat >conftest.$ac_ext <<_ACEOF
25197      program main
25198      integer i
25199      end
25200_ACEOF
25201rm -f conftest.$ac_objext conftest$ac_exeext
25202if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25203  (eval $ac_link) 2>conftest.er1
25204  ac_status=$?
25205  grep -v '^ *+' conftest.er1 >conftest.err
25206  rm -f conftest.er1
25207  cat conftest.err >&5
25208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25209  (exit $ac_status); } &&
25210	 { ac_try='test -z "$ac_f77_werror_flag"
25211			 || test ! -s conftest.err'
25212  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25213  (eval $ac_try) 2>&5
25214  ac_status=$?
25215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25216  (exit $ac_status); }; } &&
25217	 { ac_try='test -s conftest$ac_exeext'
25218  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25219  (eval $ac_try) 2>&5
25220  ac_status=$?
25221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25222  (exit $ac_status); }; }; then
25223  coin_opt_fflags="-O"
25224else
25225  echo "$as_me: failed program was:" >&5
25226sed 's/^/| /' conftest.$ac_ext >&5
25227
25228fi
25229rm -f conftest.err conftest.$ac_objext \
25230      conftest$ac_exeext conftest.$ac_ext
25231  fi
25232
25233  # if PM doesn't want the warning messages, take them out
25234  if test x"$coin_skip_warn_fflags" = xyes; then
25235    coin_warn_fflags=
25236  fi
25237
25238  if test x${DBG_FFLAGS+set} != xset; then
25239    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
25240  fi
25241  if test x${OPT_FFLAGS+set} != xset; then
25242    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
25243  fi
25244
25245  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
25246  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
25247
25248  if test "$coin_debug_compile" = "true"; then
25249    FFLAGS="$DBG_FFLAGS"
25250  else
25251    FFLAGS="$OPT_FFLAGS"
25252  fi
25253else
25254  FFLAGS="$FFLAGS $ADD_FFLAGS"
25255  if test x${DBG_FFLAGS+set} != xset; then
25256    DBG_FFLAGS="$FFLAGS"
25257  fi
25258  if test x${OPT_FFLAGS+set} != xset; then
25259    OPT_FFLAGS="$FFLAGS"
25260  fi
25261fi
25262
25263# Try if FFLAGS works
25264if test "$F77" != "unavailable" ; then
25265  cat >conftest.$ac_ext <<_ACEOF
25266      program main
25267      integer i
25268      end
25269_ACEOF
25270rm -f conftest.$ac_objext conftest$ac_exeext
25271if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25272  (eval $ac_link) 2>conftest.er1
25273  ac_status=$?
25274  grep -v '^ *+' conftest.er1 >conftest.err
25275  rm -f conftest.er1
25276  cat conftest.err >&5
25277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25278  (exit $ac_status); } &&
25279	 { ac_try='test -z "$ac_f77_werror_flag"
25280			 || test ! -s conftest.err'
25281  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25282  (eval $ac_try) 2>&5
25283  ac_status=$?
25284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25285  (exit $ac_status); }; } &&
25286	 { ac_try='test -s conftest$ac_exeext'
25287  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25288  (eval $ac_try) 2>&5
25289  ac_status=$?
25290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25291  (exit $ac_status); }; }; then
25292  :
25293else
25294  echo "$as_me: failed program was:" >&5
25295sed 's/^/| /' conftest.$ac_ext >&5
25296
25297FFLAGS=
25298fi
25299rm -f conftest.err conftest.$ac_objext \
25300      conftest$ac_exeext conftest.$ac_ext
25301  if test -z "$FFLAGS"; then
25302    { echo "$as_me:$LINENO: WARNING: The flags FFLAGS=\"$FFLAGS\" do not work.  I will now just try '-O', but you might want to set FFLAGS manually." >&5
25303echo "$as_me: WARNING: The flags FFLAGS=\"$FFLAGS\" do not work.  I will now just try '-O', but you might want to set FFLAGS manually." >&2;}
25304    FFLAGS='-O'
25305    cat >conftest.$ac_ext <<_ACEOF
25306      program main
25307      integer i
25308      end
25309_ACEOF
25310rm -f conftest.$ac_objext conftest$ac_exeext
25311if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25312  (eval $ac_link) 2>conftest.er1
25313  ac_status=$?
25314  grep -v '^ *+' conftest.er1 >conftest.err
25315  rm -f conftest.er1
25316  cat conftest.err >&5
25317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25318  (exit $ac_status); } &&
25319	 { ac_try='test -z "$ac_f77_werror_flag"
25320			 || test ! -s conftest.err'
25321  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25322  (eval $ac_try) 2>&5
25323  ac_status=$?
25324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25325  (exit $ac_status); }; } &&
25326	 { ac_try='test -s conftest$ac_exeext'
25327  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25328  (eval $ac_try) 2>&5
25329  ac_status=$?
25330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25331  (exit $ac_status); }; }; then
25332  :
25333else
25334  echo "$as_me: failed program was:" >&5
25335sed 's/^/| /' conftest.$ac_ext >&5
25336
25337FFLAGS=
25338fi
25339rm -f conftest.err conftest.$ac_objext \
25340      conftest$ac_exeext conftest.$ac_ext
25341    if test -z "$FFLAGS"; then
25342      { echo "$as_me:$LINENO: WARNING: This value for FFLAGS does not work.  I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&5
25343echo "$as_me: WARNING: This value for FFLAGS does not work.  I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&2;}
25344    fi
25345  fi
25346fi
25347
25348{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
25349echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
25350
25351
25352if test x"$MPIF77" = x; then :; else
25353  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
25354echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
25355  F77="$MPIF77"
25356fi
25357
25358# correct the LD variable if we use the intel fortran compiler in windows
25359case $build in
25360  *-cygwin* | *-mingw*)
25361    case "$F77" in
25362      ifort* | */ifort* | IFORT* | */IFORT*)
25363        LD=link
25364      ;;
25365    esac
25366  ;;
25367esac
25368
25369ac_ext=c
25370ac_cpp='$CPP $CPPFLAGS'
25371ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25372ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25373ac_compiler_gnu=$ac_cv_c_compiler_gnu
25374
25375
25376
25377# get FLIBS
25378ac_ext=f
25379ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
25380ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25381ac_compiler_gnu=$ac_cv_f77_compiler_gnu
25382echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5
25383echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6
25384if test "${ac_cv_prog_f77_v+set}" = set; then
25385  echo $ECHO_N "(cached) $ECHO_C" >&6
25386else
25387  cat >conftest.$ac_ext <<_ACEOF
25388      program main
25389
25390      end
25391_ACEOF
25392rm -f conftest.$ac_objext
25393if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25394  (eval $ac_compile) 2>conftest.er1
25395  ac_status=$?
25396  grep -v '^ *+' conftest.er1 >conftest.err
25397  rm -f conftest.er1
25398  cat conftest.err >&5
25399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25400  (exit $ac_status); } &&
25401	 { ac_try='test -z "$ac_f77_werror_flag"
25402			 || test ! -s conftest.err'
25403  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25404  (eval $ac_try) 2>&5
25405  ac_status=$?
25406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25407  (exit $ac_status); }; } &&
25408	 { ac_try='test -s conftest.$ac_objext'
25409  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25410  (eval $ac_try) 2>&5
25411  ac_status=$?
25412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25413  (exit $ac_status); }; }; then
25414  ac_cv_prog_f77_v=
25415# Try some options frequently used verbose output
25416for ac_verb in -v -verbose --verbose -V -\#\#\#; do
25417  cat >conftest.$ac_ext <<_ACEOF
25418      program main
25419
25420      end
25421_ACEOF
25422
25423# Compile and link our simple test program by passing a flag (argument
25424# 1 to this macro) to the Fortran compiler in order to get
25425# "verbose" output that we can then parse for the Fortran linker
25426# flags.
25427ac_save_FFLAGS=$FFLAGS
25428FFLAGS="$FFLAGS $ac_verb"
25429(eval echo $as_me:25429: \"$ac_link\") >&5
25430ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
25431echo "$ac_f77_v_output" >&5
25432FFLAGS=$ac_save_FFLAGS
25433
25434rm -f conftest*
25435
25436# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
25437# /foo, /bar, and /baz are search directories for the Fortran linker.
25438# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
25439ac_f77_v_output="`echo $ac_f77_v_output |
25440	grep 'LPATH is:' |
25441	sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
25442
25443case $ac_f77_v_output in
25444  # If we are using xlf then replace all the commas with spaces.
25445  *xlfentry*)
25446    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
25447
25448  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
25449  # $LIBS confuse us, and the libraries appear later in the output anyway).
25450  *mGLOB_options_string*)
25451    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
25452
25453  # If we are using Cray Fortran then delete quotes.
25454  # Use "\"" instead of '"' for font-lock-mode.
25455  # FIXME: a more general fix for quoted arguments with spaces?
25456  *cft90*)
25457    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
25458esac
25459
25460
25461  # look for -l* and *.a constructs in the output
25462  for ac_arg in $ac_f77_v_output; do
25463     case $ac_arg in
25464        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
25465          ac_cv_prog_f77_v=$ac_verb
25466          break 2 ;;
25467     esac
25468  done
25469done
25470if test -z "$ac_cv_prog_f77_v"; then
25471   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5
25472echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
25473fi
25474else
25475  echo "$as_me: failed program was:" >&5
25476sed 's/^/| /' conftest.$ac_ext >&5
25477
25478{ echo "$as_me:$LINENO: WARNING: compilation failed" >&5
25479echo "$as_me: WARNING: compilation failed" >&2;}
25480fi
25481rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25482
25483fi
25484echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5
25485echo "${ECHO_T}$ac_cv_prog_f77_v" >&6
25486echo "$as_me:$LINENO: checking for Fortran libraries of $F77" >&5
25487echo $ECHO_N "checking for Fortran libraries of $F77... $ECHO_C" >&6
25488if test "${ac_cv_f77_libs+set}" = set; then
25489  echo $ECHO_N "(cached) $ECHO_C" >&6
25490else
25491  if test "x$FLIBS" != "x"; then
25492  ac_cv_f77_libs="$FLIBS" # Let the user override the test.
25493else
25494
25495cat >conftest.$ac_ext <<_ACEOF
25496      program main
25497
25498      end
25499_ACEOF
25500
25501# Compile and link our simple test program by passing a flag (argument
25502# 1 to this macro) to the Fortran compiler in order to get
25503# "verbose" output that we can then parse for the Fortran linker
25504# flags.
25505ac_save_FFLAGS=$FFLAGS
25506FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
25507(eval echo $as_me:25507: \"$ac_link\") >&5
25508ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
25509echo "$ac_f77_v_output" >&5
25510FFLAGS=$ac_save_FFLAGS
25511
25512rm -f conftest*
25513
25514# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
25515# /foo, /bar, and /baz are search directories for the Fortran linker.
25516# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
25517ac_f77_v_output="`echo $ac_f77_v_output |
25518	grep 'LPATH is:' |
25519	sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
25520
25521case $ac_f77_v_output in
25522  # If we are using xlf then replace all the commas with spaces.
25523  *xlfentry*)
25524    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
25525
25526  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
25527  # $LIBS confuse us, and the libraries appear later in the output anyway).
25528  *mGLOB_options_string*)
25529    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
25530
25531  # If we are using Cray Fortran then delete quotes.
25532  # Use "\"" instead of '"' for font-lock-mode.
25533  # FIXME: a more general fix for quoted arguments with spaces?
25534  *cft90*)
25535    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
25536esac
25537
25538
25539
25540ac_cv_f77_libs=
25541
25542# Save positional arguments (if any)
25543ac_save_positional="$@"
25544
25545set X $ac_f77_v_output
25546while test $# != 1; do
25547  shift
25548  ac_arg=$1
25549  case $ac_arg in
25550        [\\/]*.a | ?:[\\/]*.a)
25551            ac_exists=false
25552  for ac_i in $ac_cv_f77_libs; do
25553    if test x"$ac_arg" = x"$ac_i"; then
25554      ac_exists=true
25555      break
25556    fi
25557  done
25558
25559  if test x"$ac_exists" = xtrue; then
25560  :
25561else
25562  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
25563fi
25564
25565          ;;
25566        -bI:*)
25567            ac_exists=false
25568  for ac_i in $ac_cv_f77_libs; do
25569    if test x"$ac_arg" = x"$ac_i"; then
25570      ac_exists=true
25571      break
25572    fi
25573  done
25574
25575  if test x"$ac_exists" = xtrue; then
25576  :
25577else
25578  if test "$ac_compiler_gnu" = yes; then
25579  for ac_link_opt in $ac_arg; do
25580    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
25581  done
25582else
25583  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
25584fi
25585fi
25586
25587          ;;
25588          # Ignore these flags.
25589        -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*)
25590          ;;
25591        -lkernel32)
25592          test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
25593          ;;
25594        -[LRuY])
25595          # These flags, when seen by themselves, take an argument.
25596          # We remove the space between option and argument and re-iterate
25597          # unless we find an empty arg or a new option (starting with -)
25598	  case $2 in
25599	     "" | -*);;
25600	     *)
25601		ac_arg="$ac_arg$2"
25602		shift; shift
25603		set X $ac_arg "$@"
25604		;;
25605	  esac
25606          ;;
25607        -YP,*)
25608          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
25609              ac_exists=false
25610  for ac_i in $ac_cv_f77_libs; do
25611    if test x"$ac_j" = x"$ac_i"; then
25612      ac_exists=true
25613      break
25614    fi
25615  done
25616
25617  if test x"$ac_exists" = xtrue; then
25618  :
25619else
25620  ac_arg="$ac_arg $ac_j"
25621                               ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
25622fi
25623
25624          done
25625          ;;
25626        -[lLR]*)
25627            ac_exists=false
25628  for ac_i in $ac_cv_f77_libs; do
25629    if test x"$ac_arg" = x"$ac_i"; then
25630      ac_exists=true
25631      break
25632    fi
25633  done
25634
25635  if test x"$ac_exists" = xtrue; then
25636  :
25637else
25638  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
25639fi
25640
25641          ;;
25642          # Ignore everything else.
25643  esac
25644done
25645# restore positional arguments
25646set X $ac_save_positional; shift
25647
25648# We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
25649# then we insist that the "run path" must be an absolute path (i.e. it
25650# must begin with a "/").
25651case `(uname -sr) 2>/dev/null` in
25652   "SunOS 5"*)
25653      ac_ld_run_path=`echo $ac_f77_v_output |
25654                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
25655      test "x$ac_ld_run_path" != x &&
25656        if test "$ac_compiler_gnu" = yes; then
25657  for ac_link_opt in $ac_ld_run_path; do
25658    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
25659  done
25660else
25661  ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
25662fi
25663      ;;
25664esac
25665fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
25666
25667fi
25668echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5
25669echo "${ECHO_T}$ac_cv_f77_libs" >&6
25670FLIBS="$ac_cv_f77_libs"
25671
25672
25673ac_ext=c
25674ac_cpp='$CPP $CPPFLAGS'
25675ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25676ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25677ac_compiler_gnu=$ac_cv_c_compiler_gnu
25678
25679orig_FLIBS="$FLIBS"
25680
25681# If FLIBS has been set by the user, we just restore its value here
25682if test x"$save_FLIBS" != x; then
25683  FLIBS="$save_FLIBS"
25684else
25685  # This is to correct a missing exclusion in autoconf 2.59
25686  if test x"$FLIBS" != x; then
25687    my_flibs=
25688    for flag in $FLIBS; do
25689      case $flag in
25690        -lcrt*.o) ;;
25691        -lcygwin) ;;
25692        -lgcc*)   ;;
25693               *) my_flibs="$my_flibs $flag" ;;
25694      esac
25695    done
25696    FLIBS="$my_flibs"
25697  fi
25698
25699  case $build in
25700  # The following is a fix to define FLIBS for ifort on Windows
25701  # In its original version, it linked in libifcorert.lib or libifcorertd.lib on Windows/ifort explicitly.
25702  # However, this seem to create a dependency on libifcorert.dll (or libifcorertd.dll) in the executables.
25703  # This is seem to be unnecessary, libifcorert(d).lib has been removed from the link line.
25704  # Further, excluding libc.lib from the default libs seemed to be necessary only for VS < 8.
25705  # Since the corresponding flag seems to make more trouble than it avoids, it has been removed now.
25706     *-cygwin* | *-mingw*)
25707       case "$F77" in
25708#         ifort* | */ifort* | IFORT* | */IFORT*)
25709#           FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib"
25710#           if "$coin_debug_compile" = true ; then
25711#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmt.lib"
25712#           else
25713#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmtd.lib"
25714#           fi
25715#           ;;
25716         compile_f2c*)
25717           FLIBS=`$F77 -FLIBS` ;;
25718       esac;;
25719     *-hp-*)
25720         FLIBS="$FLIBS -lm";;
25721     *-ibm-*)
25722         FLIBS=`echo $FLIBS | sed 's/-lc)/-lc/g'` ;;
25723     *-linux-*)
25724       case "$F77" in
25725         pgf77* | */pgf77* | pgf90* | */pgf90*)
25726# ask linker to go through the archives multiple times
25727# (the Fortran compiler seems to do that automatically...)
25728           FLIBS="-Wl,--start-group $FLIBS -Wl,--end-group" ;;
25729       esac
25730  esac
25731  ac_cv_f77_libs="$FLIBS"
25732fi
25733
25734if test "x$orig_FLIBS" != "x$FLIBS" ; then
25735  { echo "$as_me:$LINENO: Corrected Fortran libraries: $FLIBS" >&5
25736echo "$as_me: Corrected Fortran libraries: $FLIBS" >&6;}
25737fi
25738
25739ac_ext=f
25740ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
25741ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25742ac_compiler_gnu=$ac_cv_f77_compiler_gnu
25743
25744echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5
25745echo $ECHO_N "checking for dummy main to link with Fortran libraries... $ECHO_C" >&6
25746if test "${ac_cv_f77_dummy_main+set}" = set; then
25747  echo $ECHO_N "(cached) $ECHO_C" >&6
25748else
25749  ac_f77_dm_save_LIBS=$LIBS
25750 LIBS="$LIBS $FLIBS"
25751 ac_fortran_dm_var=F77_DUMMY_MAIN
25752 ac_ext=c
25753ac_cpp='$CPP $CPPFLAGS'
25754ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25755ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25756ac_compiler_gnu=$ac_cv_c_compiler_gnu
25757
25758 # First, try linking without a dummy main:
25759 cat >conftest.$ac_ext <<_ACEOF
25760/* confdefs.h.  */
25761_ACEOF
25762cat confdefs.h >>conftest.$ac_ext
25763cat >>conftest.$ac_ext <<_ACEOF
25764/* end confdefs.h.  */
25765
25766#ifdef F77_DUMMY_MAIN
25767
25768#  ifdef __cplusplus
25769     extern "C"
25770#  endif
25771   int F77_DUMMY_MAIN() { return 1; }
25772
25773#endif
25774int
25775main ()
25776{
25777
25778  ;
25779  return 0;
25780}
25781_ACEOF
25782rm -f conftest.$ac_objext conftest$ac_exeext
25783if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25784  (eval $ac_link) 2>conftest.er1
25785  ac_status=$?
25786  grep -v '^ *+' conftest.er1 >conftest.err
25787  rm -f conftest.er1
25788  cat conftest.err >&5
25789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25790  (exit $ac_status); } &&
25791	 { ac_try='test -z "$ac_c_werror_flag"
25792			 || test ! -s conftest.err'
25793  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25794  (eval $ac_try) 2>&5
25795  ac_status=$?
25796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25797  (exit $ac_status); }; } &&
25798	 { ac_try='test -s conftest$ac_exeext'
25799  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25800  (eval $ac_try) 2>&5
25801  ac_status=$?
25802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25803  (exit $ac_status); }; }; then
25804  ac_cv_fortran_dummy_main=none
25805else
25806  echo "$as_me: failed program was:" >&5
25807sed 's/^/| /' conftest.$ac_ext >&5
25808
25809ac_cv_fortran_dummy_main=unknown
25810fi
25811rm -f conftest.err conftest.$ac_objext \
25812      conftest$ac_exeext conftest.$ac_ext
25813
25814 if test $ac_cv_fortran_dummy_main = unknown; then
25815   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
25816     cat >conftest.$ac_ext <<_ACEOF
25817/* confdefs.h.  */
25818_ACEOF
25819cat confdefs.h >>conftest.$ac_ext
25820cat >>conftest.$ac_ext <<_ACEOF
25821/* end confdefs.h.  */
25822#define $ac_fortran_dm_var $ac_func
25823#ifdef F77_DUMMY_MAIN
25824
25825#  ifdef __cplusplus
25826     extern "C"
25827#  endif
25828   int F77_DUMMY_MAIN() { return 1; }
25829
25830#endif
25831int
25832main ()
25833{
25834
25835  ;
25836  return 0;
25837}
25838_ACEOF
25839rm -f conftest.$ac_objext conftest$ac_exeext
25840if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25841  (eval $ac_link) 2>conftest.er1
25842  ac_status=$?
25843  grep -v '^ *+' conftest.er1 >conftest.err
25844  rm -f conftest.er1
25845  cat conftest.err >&5
25846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25847  (exit $ac_status); } &&
25848	 { ac_try='test -z "$ac_c_werror_flag"
25849			 || test ! -s conftest.err'
25850  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25851  (eval $ac_try) 2>&5
25852  ac_status=$?
25853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25854  (exit $ac_status); }; } &&
25855	 { ac_try='test -s conftest$ac_exeext'
25856  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25857  (eval $ac_try) 2>&5
25858  ac_status=$?
25859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25860  (exit $ac_status); }; }; then
25861  ac_cv_fortran_dummy_main=$ac_func; break
25862else
25863  echo "$as_me: failed program was:" >&5
25864sed 's/^/| /' conftest.$ac_ext >&5
25865
25866fi
25867rm -f conftest.err conftest.$ac_objext \
25868      conftest$ac_exeext conftest.$ac_ext
25869   done
25870 fi
25871 ac_ext=f
25872ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
25873ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25874ac_compiler_gnu=$ac_cv_f77_compiler_gnu
25875 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
25876 rm -f conftest*
25877 LIBS=$ac_f77_dm_save_LIBS
25878
25879fi
25880echo "$as_me:$LINENO: result: $ac_cv_f77_dummy_main" >&5
25881echo "${ECHO_T}$ac_cv_f77_dummy_main" >&6
25882F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
25883if test "$F77_DUMMY_MAIN" != unknown; then
25884  if test $F77_DUMMY_MAIN != none; then
25885
25886cat >>confdefs.h <<_ACEOF
25887#define F77_DUMMY_MAIN $F77_DUMMY_MAIN
25888_ACEOF
25889
25890  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
25891
25892cat >>confdefs.h <<\_ACEOF
25893#define FC_DUMMY_MAIN_EQ_F77 1
25894_ACEOF
25895
25896  fi
25897fi
25898else
25899  { { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails
25900See \`config.log' for more details." >&5
25901echo "$as_me: error: linking to Fortran libraries from C fails
25902See \`config.log' for more details." >&2;}
25903   { (exit 1); exit 1; }; }
25904fi
25905
25906
25907ac_ext=f
25908ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
25909ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25910ac_compiler_gnu=$ac_cv_f77_compiler_gnu
25911
25912ac_ext=f
25913ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
25914ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25915ac_compiler_gnu=$ac_cv_f77_compiler_gnu
25916echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5
25917echo $ECHO_N "checking for Fortran name-mangling scheme... $ECHO_C" >&6
25918if test "${ac_cv_f77_mangling+set}" = set; then
25919  echo $ECHO_N "(cached) $ECHO_C" >&6
25920else
25921  cat >conftest.$ac_ext <<_ACEOF
25922      subroutine foobar()
25923      return
25924      end
25925      subroutine foo_bar()
25926      return
25927      end
25928_ACEOF
25929rm -f conftest.$ac_objext
25930if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25931  (eval $ac_compile) 2>conftest.er1
25932  ac_status=$?
25933  grep -v '^ *+' conftest.er1 >conftest.err
25934  rm -f conftest.er1
25935  cat conftest.err >&5
25936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25937  (exit $ac_status); } &&
25938	 { ac_try='test -z "$ac_f77_werror_flag"
25939			 || test ! -s conftest.err'
25940  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25941  (eval $ac_try) 2>&5
25942  ac_status=$?
25943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25944  (exit $ac_status); }; } &&
25945	 { ac_try='test -s conftest.$ac_objext'
25946  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25947  (eval $ac_try) 2>&5
25948  ac_status=$?
25949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25950  (exit $ac_status); }; }; then
25951  mv conftest.$ac_objext cfortran_test.$ac_objext
25952
25953  ac_save_LIBS=$LIBS
25954  LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
25955
25956  ac_ext=c
25957ac_cpp='$CPP $CPPFLAGS'
25958ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25959ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25960ac_compiler_gnu=$ac_cv_c_compiler_gnu
25961  ac_success=no
25962  for ac_foobar in foobar FOOBAR; do
25963    for ac_underscore in "" "_"; do
25964      ac_func="$ac_foobar$ac_underscore"
25965      cat >conftest.$ac_ext <<_ACEOF
25966/* confdefs.h.  */
25967_ACEOF
25968cat confdefs.h >>conftest.$ac_ext
25969cat >>conftest.$ac_ext <<_ACEOF
25970/* end confdefs.h.  */
25971
25972/* Override any gcc2 internal prototype to avoid an error.  */
25973#ifdef __cplusplus
25974extern "C"
25975#endif
25976/* We use char because int might match the return type of a gcc2
25977   builtin and then its argument prototype would still apply.  */
25978char $ac_func ();
25979#ifdef F77_DUMMY_MAIN
25980
25981#  ifdef __cplusplus
25982     extern "C"
25983#  endif
25984   int F77_DUMMY_MAIN() { return 1; }
25985
25986#endif
25987int
25988main ()
25989{
25990$ac_func ();
25991  ;
25992  return 0;
25993}
25994_ACEOF
25995rm -f conftest.$ac_objext conftest$ac_exeext
25996if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25997  (eval $ac_link) 2>conftest.er1
25998  ac_status=$?
25999  grep -v '^ *+' conftest.er1 >conftest.err
26000  rm -f conftest.er1
26001  cat conftest.err >&5
26002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26003  (exit $ac_status); } &&
26004	 { ac_try='test -z "$ac_c_werror_flag"
26005			 || test ! -s conftest.err'
26006  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26007  (eval $ac_try) 2>&5
26008  ac_status=$?
26009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26010  (exit $ac_status); }; } &&
26011	 { ac_try='test -s conftest$ac_exeext'
26012  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26013  (eval $ac_try) 2>&5
26014  ac_status=$?
26015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26016  (exit $ac_status); }; }; then
26017  ac_success=yes; break 2
26018else
26019  echo "$as_me: failed program was:" >&5
26020sed 's/^/| /' conftest.$ac_ext >&5
26021
26022fi
26023rm -f conftest.err conftest.$ac_objext \
26024      conftest$ac_exeext conftest.$ac_ext
26025    done
26026  done
26027  ac_ext=f
26028ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
26029ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26030ac_compiler_gnu=$ac_cv_f77_compiler_gnu
26031
26032  if test "$ac_success" = "yes"; then
26033     case $ac_foobar in
26034	foobar)
26035	   ac_case=lower
26036	   ac_foo_bar=foo_bar
26037	   ;;
26038	FOOBAR)
26039	   ac_case=upper
26040	   ac_foo_bar=FOO_BAR
26041	   ;;
26042     esac
26043
26044     ac_ext=c
26045ac_cpp='$CPP $CPPFLAGS'
26046ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26047ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26048ac_compiler_gnu=$ac_cv_c_compiler_gnu
26049     ac_success_extra=no
26050     for ac_extra in "" "_"; do
26051	ac_func="$ac_foo_bar$ac_underscore$ac_extra"
26052	cat >conftest.$ac_ext <<_ACEOF
26053/* confdefs.h.  */
26054_ACEOF
26055cat confdefs.h >>conftest.$ac_ext
26056cat >>conftest.$ac_ext <<_ACEOF
26057/* end confdefs.h.  */
26058
26059/* Override any gcc2 internal prototype to avoid an error.  */
26060#ifdef __cplusplus
26061extern "C"
26062#endif
26063/* We use char because int might match the return type of a gcc2
26064   builtin and then its argument prototype would still apply.  */
26065char $ac_func ();
26066#ifdef F77_DUMMY_MAIN
26067
26068#  ifdef __cplusplus
26069     extern "C"
26070#  endif
26071   int F77_DUMMY_MAIN() { return 1; }
26072
26073#endif
26074int
26075main ()
26076{
26077$ac_func ();
26078  ;
26079  return 0;
26080}
26081_ACEOF
26082rm -f conftest.$ac_objext conftest$ac_exeext
26083if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26084  (eval $ac_link) 2>conftest.er1
26085  ac_status=$?
26086  grep -v '^ *+' conftest.er1 >conftest.err
26087  rm -f conftest.er1
26088  cat conftest.err >&5
26089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26090  (exit $ac_status); } &&
26091	 { ac_try='test -z "$ac_c_werror_flag"
26092			 || test ! -s conftest.err'
26093  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26094  (eval $ac_try) 2>&5
26095  ac_status=$?
26096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26097  (exit $ac_status); }; } &&
26098	 { ac_try='test -s conftest$ac_exeext'
26099  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26100  (eval $ac_try) 2>&5
26101  ac_status=$?
26102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26103  (exit $ac_status); }; }; then
26104  ac_success_extra=yes; break
26105else
26106  echo "$as_me: failed program was:" >&5
26107sed 's/^/| /' conftest.$ac_ext >&5
26108
26109fi
26110rm -f conftest.err conftest.$ac_objext \
26111      conftest$ac_exeext conftest.$ac_ext
26112     done
26113     ac_ext=f
26114ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
26115ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26116ac_compiler_gnu=$ac_cv_f77_compiler_gnu
26117
26118     if test "$ac_success_extra" = "yes"; then
26119	ac_cv_f77_mangling="$ac_case case"
26120        if test -z "$ac_underscore"; then
26121           ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
26122	else
26123           ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
26124        fi
26125        if test -z "$ac_extra"; then
26126           ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
26127	else
26128           ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
26129        fi
26130      else
26131	ac_cv_f77_mangling="unknown"
26132      fi
26133  else
26134     ac_cv_f77_mangling="unknown"
26135  fi
26136
26137  LIBS=$ac_save_LIBS
26138  rm -f cfortran_test* conftest*
26139else
26140  echo "$as_me: failed program was:" >&5
26141sed 's/^/| /' conftest.$ac_ext >&5
26142
26143{ { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program
26144See \`config.log' for more details." >&5
26145echo "$as_me: error: cannot compile a simple Fortran program
26146See \`config.log' for more details." >&2;}
26147   { (exit 1); exit 1; }; }
26148fi
26149rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26150
26151fi
26152echo "$as_me:$LINENO: result: $ac_cv_f77_mangling" >&5
26153echo "${ECHO_T}$ac_cv_f77_mangling" >&6
26154
26155ac_ext=f
26156ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
26157ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26158ac_compiler_gnu=$ac_cv_f77_compiler_gnu
26159
26160
26161ac_ext=f
26162ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
26163ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26164ac_compiler_gnu=$ac_cv_f77_compiler_gnu
26165
26166ac_ext=f
26167ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
26168ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26169ac_compiler_gnu=$ac_cv_f77_compiler_gnu
26170
26171
26172case $ac_cv_f77_mangling in
26173  "lower case, no underscore, no extra underscore")
26174          cat >>confdefs.h <<\_ACEOF
26175#define F77_FUNC(name,NAME) name
26176_ACEOF
26177
26178          cat >>confdefs.h <<\_ACEOF
26179#define F77_FUNC_(name,NAME) name
26180_ACEOF
26181 ;;
26182  "lower case, no underscore, extra underscore")
26183          cat >>confdefs.h <<\_ACEOF
26184#define F77_FUNC(name,NAME) name
26185_ACEOF
26186
26187          cat >>confdefs.h <<\_ACEOF
26188#define F77_FUNC_(name,NAME) name ## _
26189_ACEOF
26190 ;;
26191  "lower case, underscore, no extra underscore")
26192          cat >>confdefs.h <<\_ACEOF
26193#define F77_FUNC(name,NAME) name ## _
26194_ACEOF
26195
26196          cat >>confdefs.h <<\_ACEOF
26197#define F77_FUNC_(name,NAME) name ## _
26198_ACEOF
26199 ;;
26200  "lower case, underscore, extra underscore")
26201          cat >>confdefs.h <<\_ACEOF
26202#define F77_FUNC(name,NAME) name ## _
26203_ACEOF
26204
26205          cat >>confdefs.h <<\_ACEOF
26206#define F77_FUNC_(name,NAME) name ## __
26207_ACEOF
26208 ;;
26209  "upper case, no underscore, no extra underscore")
26210          cat >>confdefs.h <<\_ACEOF
26211#define F77_FUNC(name,NAME) NAME
26212_ACEOF
26213
26214          cat >>confdefs.h <<\_ACEOF
26215#define F77_FUNC_(name,NAME) NAME
26216_ACEOF
26217 ;;
26218  "upper case, no underscore, extra underscore")
26219          cat >>confdefs.h <<\_ACEOF
26220#define F77_FUNC(name,NAME) NAME
26221_ACEOF
26222
26223          cat >>confdefs.h <<\_ACEOF
26224#define F77_FUNC_(name,NAME) NAME ## _
26225_ACEOF
26226 ;;
26227  "upper case, underscore, no extra underscore")
26228          cat >>confdefs.h <<\_ACEOF
26229#define F77_FUNC(name,NAME) NAME ## _
26230_ACEOF
26231
26232          cat >>confdefs.h <<\_ACEOF
26233#define F77_FUNC_(name,NAME) NAME ## _
26234_ACEOF
26235 ;;
26236  "upper case, underscore, extra underscore")
26237          cat >>confdefs.h <<\_ACEOF
26238#define F77_FUNC(name,NAME) NAME ## _
26239_ACEOF
26240
26241          cat >>confdefs.h <<\_ACEOF
26242#define F77_FUNC_(name,NAME) NAME ## __
26243_ACEOF
26244 ;;
26245  *)
26246          { echo "$as_me:$LINENO: WARNING: unknown Fortran name-mangling scheme" >&5
26247echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
26248          ;;
26249esac
26250
26251ac_ext=f
26252ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
26253ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26254ac_compiler_gnu=$ac_cv_f77_compiler_gnu
26255
26256ac_ext=c
26257ac_cpp='$CPP $CPPFLAGS'
26258ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26259ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26260ac_compiler_gnu=$ac_cv_c_compiler_gnu
26261
26262
26263
26264
26265  # WSMP requires Blas
26266
26267
26268# Check whether --with-blas or --without-blas was given.
26269if test "${with_blas+set}" = set; then
26270  withval="$with_blas"
26271  use_blas="$withval"
26272else
26273  use_blas=
26274fi;
26275
26276# if user specified --with-blas-lib, then we should give COIN_CHECK_PACKAGE
26277# preference
26278
26279# Check whether --with-blas-lib or --without-blas-lib was given.
26280if test "${with_blas_lib+set}" = set; then
26281  withval="$with_blas_lib"
26282  use_blas=BUILD
26283fi;
26284
26285# Check if user supplied option makes sense
26286if test x"$use_blas" != x; then
26287  if test "$use_blas" = "BUILD"; then
26288    # we come to this later
26289    :
26290  elif test "$use_blas" != "no"; then
26291    coin_save_LIBS="$LIBS"
26292    LIBS="$use_blas $LIBS"
26293    if test "$F77" != unavailable ; then
26294      coin_need_flibs=no
26295      echo "$as_me:$LINENO: checking whether user supplied BLASLIB=\"$use_blas\" works" >&5
26296echo $ECHO_N "checking whether user supplied BLASLIB=\"$use_blas\" works... $ECHO_C" >&6
26297      case $ac_ext in
26298  f)
26299    cat >conftest.$ac_ext <<_ACEOF
26300/* confdefs.h.  */
26301_ACEOF
26302cat confdefs.h >>conftest.$ac_ext
26303cat >>conftest.$ac_ext <<_ACEOF
26304/* end confdefs.h.  */
26305
26306#ifdef F77_DUMMY_MAIN
26307
26308#  ifdef __cplusplus
26309     extern "C"
26310#  endif
26311   int F77_DUMMY_MAIN() { return 1; }
26312
26313#endif
26314int
26315main ()
26316{
26317      call daxpy
26318  ;
26319  return 0;
26320}
26321_ACEOF
26322rm -f conftest.$ac_objext conftest$ac_exeext
26323if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26324  (eval $ac_link) 2>conftest.er1
26325  ac_status=$?
26326  grep -v '^ *+' conftest.er1 >conftest.err
26327  rm -f conftest.er1
26328  cat conftest.err >&5
26329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26330  (exit $ac_status); } &&
26331	 { ac_try='test -z "$ac_c_werror_flag"
26332			 || test ! -s conftest.err'
26333  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26334  (eval $ac_try) 2>&5
26335  ac_status=$?
26336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26337  (exit $ac_status); }; } &&
26338	 { ac_try='test -s conftest$ac_exeext'
26339  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26340  (eval $ac_try) 2>&5
26341  ac_status=$?
26342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26343  (exit $ac_status); }; }; then
26344  if test $coin_need_flibs = yes ; then
26345                           use_blas="$use_blas $FLIBS"
26346                         fi
26347                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
26348echo "${ECHO_T}yes: $use_blas" >&6
26349else
26350  echo "$as_me: failed program was:" >&5
26351sed 's/^/| /' conftest.$ac_ext >&5
26352
26353echo "$as_me:$LINENO: result: no" >&5
26354echo "${ECHO_T}no" >&6
26355                         { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
26356echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
26357   { (exit 1); exit 1; }; }
26358fi
26359rm -f conftest.err conftest.$ac_objext \
26360      conftest$ac_exeext conftest.$ac_ext
26361    ;;
26362  c)
26363    ac_ext=f
26364ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
26365ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26366ac_compiler_gnu=$ac_cv_f77_compiler_gnu
26367case $ac_cv_f77_mangling in
26368  upper*) ac_val="DAXPY" ;;
26369  lower*) ac_val="daxpy" ;;
26370  *)      ac_val="unknown" ;;
26371esac
26372case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
26373
26374cfuncdaxpy="$ac_val"
26375
26376ac_ext=c
26377ac_cpp='$CPP $CPPFLAGS'
26378ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26379ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26380ac_compiler_gnu=$ac_cv_c_compiler_gnu
26381
26382    if test x"$coin_need_flibs" = xyes; then
26383      flink_try=no;
26384    else
26385      cat >conftest.$ac_ext <<_ACEOF
26386/* confdefs.h.  */
26387_ACEOF
26388cat confdefs.h >>conftest.$ac_ext
26389cat >>conftest.$ac_ext <<_ACEOF
26390/* end confdefs.h.  */
26391void $cfuncdaxpy();
26392#ifdef F77_DUMMY_MAIN
26393
26394#  ifdef __cplusplus
26395     extern "C"
26396#  endif
26397   int F77_DUMMY_MAIN() { return 1; }
26398
26399#endif
26400int
26401main ()
26402{
26403$cfuncdaxpy()
26404  ;
26405  return 0;
26406}
26407_ACEOF
26408rm -f conftest.$ac_objext conftest$ac_exeext
26409if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26410  (eval $ac_link) 2>conftest.er1
26411  ac_status=$?
26412  grep -v '^ *+' conftest.er1 >conftest.err
26413  rm -f conftest.er1
26414  cat conftest.err >&5
26415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26416  (exit $ac_status); } &&
26417	 { ac_try='test -z "$ac_c_werror_flag"
26418			 || test ! -s conftest.err'
26419  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26420  (eval $ac_try) 2>&5
26421  ac_status=$?
26422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26423  (exit $ac_status); }; } &&
26424	 { ac_try='test -s conftest$ac_exeext'
26425  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26426  (eval $ac_try) 2>&5
26427  ac_status=$?
26428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26429  (exit $ac_status); }; }; then
26430  flink_try=yes
26431else
26432  echo "$as_me: failed program was:" >&5
26433sed 's/^/| /' conftest.$ac_ext >&5
26434
26435flink_try=no
26436fi
26437rm -f conftest.err conftest.$ac_objext \
26438      conftest$ac_exeext conftest.$ac_ext
26439    fi
26440    if test $flink_try = yes; then
26441      if test $coin_need_flibs = yes ; then
26442                           use_blas="$use_blas $FLIBS"
26443                         fi
26444                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
26445echo "${ECHO_T}yes: $use_blas" >&6
26446    else
26447      if test x"$FLIBS" != x; then
26448        flink_save_libs="$LIBS"
26449        LIBS="$LIBS $FLIBS"
26450        cat >conftest.$ac_ext <<_ACEOF
26451/* confdefs.h.  */
26452_ACEOF
26453cat confdefs.h >>conftest.$ac_ext
26454cat >>conftest.$ac_ext <<_ACEOF
26455/* end confdefs.h.  */
26456void $cfuncdaxpy();
26457#ifdef F77_DUMMY_MAIN
26458
26459#  ifdef __cplusplus
26460     extern "C"
26461#  endif
26462   int F77_DUMMY_MAIN() { return 1; }
26463
26464#endif
26465int
26466main ()
26467{
26468$cfuncdaxpy()
26469  ;
26470  return 0;
26471}
26472_ACEOF
26473rm -f conftest.$ac_objext conftest$ac_exeext
26474if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26475  (eval $ac_link) 2>conftest.er1
26476  ac_status=$?
26477  grep -v '^ *+' conftest.er1 >conftest.err
26478  rm -f conftest.er1
26479  cat conftest.err >&5
26480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26481  (exit $ac_status); } &&
26482	 { ac_try='test -z "$ac_c_werror_flag"
26483			 || test ! -s conftest.err'
26484  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26485  (eval $ac_try) 2>&5
26486  ac_status=$?
26487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26488  (exit $ac_status); }; } &&
26489	 { ac_try='test -s conftest$ac_exeext'
26490  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26491  (eval $ac_try) 2>&5
26492  ac_status=$?
26493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26494  (exit $ac_status); }; }; then
26495  LIBS="$flink_save_libs"
26496                     coin_need_flibs=yes
26497                     if test $coin_need_flibs = yes ; then
26498                           use_blas="$use_blas $FLIBS"
26499                         fi
26500                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
26501echo "${ECHO_T}yes: $use_blas" >&6
26502
26503else
26504  echo "$as_me: failed program was:" >&5
26505sed 's/^/| /' conftest.$ac_ext >&5
26506
26507LIBS="$flink_save_libs"
26508                     echo "$as_me:$LINENO: result: no" >&5
26509echo "${ECHO_T}no" >&6
26510                         { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
26511echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
26512   { (exit 1); exit 1; }; }
26513fi
26514rm -f conftest.err conftest.$ac_objext \
26515      conftest$ac_exeext conftest.$ac_ext
26516      else
26517        echo "$as_me:$LINENO: result: no" >&5
26518echo "${ECHO_T}no" >&6
26519                         { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
26520echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
26521   { (exit 1); exit 1; }; }
26522      fi
26523    fi
26524    ;;
26525  cc|cpp)
26526    ac_ext=f
26527ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
26528ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26529ac_compiler_gnu=$ac_cv_f77_compiler_gnu
26530case $ac_cv_f77_mangling in
26531  upper*) ac_val="DAXPY" ;;
26532  lower*) ac_val="daxpy" ;;
26533  *)      ac_val="unknown" ;;
26534esac
26535case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
26536
26537cfuncdaxpy="$ac_val"
26538
26539ac_ext=c
26540ac_cpp='$CPP $CPPFLAGS'
26541ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26542ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26543ac_compiler_gnu=$ac_cv_c_compiler_gnu
26544
26545    if test x"$coin_need_flibs" = xyes; then
26546      flink_try=no;
26547    else
26548      cat >conftest.$ac_ext <<_ACEOF
26549/* confdefs.h.  */
26550_ACEOF
26551cat confdefs.h >>conftest.$ac_ext
26552cat >>conftest.$ac_ext <<_ACEOF
26553/* end confdefs.h.  */
26554extern "C" {void $cfuncdaxpy();}
26555#ifdef F77_DUMMY_MAIN
26556
26557#  ifdef __cplusplus
26558     extern "C"
26559#  endif
26560   int F77_DUMMY_MAIN() { return 1; }
26561
26562#endif
26563int
26564main ()
26565{
26566$cfuncdaxpy()
26567  ;
26568  return 0;
26569}
26570_ACEOF
26571rm -f conftest.$ac_objext conftest$ac_exeext
26572if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26573  (eval $ac_link) 2>conftest.er1
26574  ac_status=$?
26575  grep -v '^ *+' conftest.er1 >conftest.err
26576  rm -f conftest.er1
26577  cat conftest.err >&5
26578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26579  (exit $ac_status); } &&
26580	 { ac_try='test -z "$ac_c_werror_flag"
26581			 || test ! -s conftest.err'
26582  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26583  (eval $ac_try) 2>&5
26584  ac_status=$?
26585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26586  (exit $ac_status); }; } &&
26587	 { ac_try='test -s conftest$ac_exeext'
26588  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26589  (eval $ac_try) 2>&5
26590  ac_status=$?
26591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26592  (exit $ac_status); }; }; then
26593  flink_try=yes
26594else
26595  echo "$as_me: failed program was:" >&5
26596sed 's/^/| /' conftest.$ac_ext >&5
26597
26598flink_try=no
26599fi
26600rm -f conftest.err conftest.$ac_objext \
26601      conftest$ac_exeext conftest.$ac_ext
26602    fi
26603    if test $flink_try = yes; then
26604      if test $coin_need_flibs = yes ; then
26605                           use_blas="$use_blas $FLIBS"
26606                         fi
26607                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
26608echo "${ECHO_T}yes: $use_blas" >&6
26609    else
26610      if test x"$FLIBS" != x; then
26611        flink_save_libs="$LIBS"
26612        LIBS="$LIBS $FLIBS"
26613        cat >conftest.$ac_ext <<_ACEOF
26614/* confdefs.h.  */
26615_ACEOF
26616cat confdefs.h >>conftest.$ac_ext
26617cat >>conftest.$ac_ext <<_ACEOF
26618/* end confdefs.h.  */
26619extern "C" {void $cfuncdaxpy();}
26620#ifdef F77_DUMMY_MAIN
26621
26622#  ifdef __cplusplus
26623     extern "C"
26624#  endif
26625   int F77_DUMMY_MAIN() { return 1; }
26626
26627#endif
26628int
26629main ()
26630{
26631$cfuncdaxpy()
26632  ;
26633  return 0;
26634}
26635_ACEOF
26636rm -f conftest.$ac_objext conftest$ac_exeext
26637if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26638  (eval $ac_link) 2>conftest.er1
26639  ac_status=$?
26640  grep -v '^ *+' conftest.er1 >conftest.err
26641  rm -f conftest.er1
26642  cat conftest.err >&5
26643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26644  (exit $ac_status); } &&
26645	 { ac_try='test -z "$ac_c_werror_flag"
26646			 || test ! -s conftest.err'
26647  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26648  (eval $ac_try) 2>&5
26649  ac_status=$?
26650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26651  (exit $ac_status); }; } &&
26652	 { ac_try='test -s conftest$ac_exeext'
26653  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26654  (eval $ac_try) 2>&5
26655  ac_status=$?
26656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26657  (exit $ac_status); }; }; then
26658  LIBS="$flink_save_libs"
26659                     coin_need_flibs=yes
26660                     if test $coin_need_flibs = yes ; then
26661                           use_blas="$use_blas $FLIBS"
26662                         fi
26663                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
26664echo "${ECHO_T}yes: $use_blas" >&6
26665
26666else
26667  echo "$as_me: failed program was:" >&5
26668sed 's/^/| /' conftest.$ac_ext >&5
26669
26670LIBS="$flink_save_libs"
26671                     echo "$as_me:$LINENO: result: no" >&5
26672echo "${ECHO_T}no" >&6
26673                         { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
26674echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
26675   { (exit 1); exit 1; }; }
26676fi
26677rm -f conftest.err conftest.$ac_objext \
26678      conftest$ac_exeext conftest.$ac_ext
26679      else
26680        echo "$as_me:$LINENO: result: no" >&5
26681echo "${ECHO_T}no" >&6
26682                         { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
26683echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
26684   { (exit 1); exit 1; }; }
26685      fi
26686    fi
26687    ;;
26688esac
26689
26690      use_blas="$use_blas $FLIBS"
26691    else
26692      { echo "$as_me:$LINENO: checking whether user supplied BLASLIB=\"$use_blas\" works with C linkage" >&5
26693echo "$as_me: checking whether user supplied BLASLIB=\"$use_blas\" works with C linkage" >&6;}
26694      ac_ext=c
26695ac_cpp='$CPP $CPPFLAGS'
26696ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26697ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26698ac_compiler_gnu=$ac_cv_c_compiler_gnu
26699
26700      echo "$as_me:$LINENO: checking for daxpy" >&5
26701echo $ECHO_N "checking for daxpy... $ECHO_C" >&6
26702if test "${ac_cv_func_daxpy+set}" = set; then
26703  echo $ECHO_N "(cached) $ECHO_C" >&6
26704else
26705  cat >conftest.$ac_ext <<_ACEOF
26706/* confdefs.h.  */
26707_ACEOF
26708cat confdefs.h >>conftest.$ac_ext
26709cat >>conftest.$ac_ext <<_ACEOF
26710/* end confdefs.h.  */
26711/* Define daxpy to an innocuous variant, in case <limits.h> declares daxpy.
26712   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26713#define daxpy innocuous_daxpy
26714
26715/* System header to define __stub macros and hopefully few prototypes,
26716    which can conflict with char daxpy (); below.
26717    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26718    <limits.h> exists even on freestanding compilers.  */
26719
26720#ifdef __STDC__
26721# include <limits.h>
26722#else
26723# include <assert.h>
26724#endif
26725
26726#undef daxpy
26727
26728/* Override any gcc2 internal prototype to avoid an error.  */
26729#ifdef __cplusplus
26730extern "C"
26731{
26732#endif
26733/* We use char because int might match the return type of a gcc2
26734   builtin and then its argument prototype would still apply.  */
26735char daxpy ();
26736/* The GNU C library defines this for functions which it implements
26737    to always fail with ENOSYS.  Some functions are actually named
26738    something starting with __ and the normal name is an alias.  */
26739#if defined (__stub_daxpy) || defined (__stub___daxpy)
26740choke me
26741#else
26742char (*f) () = daxpy;
26743#endif
26744#ifdef __cplusplus
26745}
26746#endif
26747
26748#ifdef F77_DUMMY_MAIN
26749
26750#  ifdef __cplusplus
26751     extern "C"
26752#  endif
26753   int F77_DUMMY_MAIN() { return 1; }
26754
26755#endif
26756int
26757main ()
26758{
26759return f != daxpy;
26760  ;
26761  return 0;
26762}
26763_ACEOF
26764rm -f conftest.$ac_objext conftest$ac_exeext
26765if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26766  (eval $ac_link) 2>conftest.er1
26767  ac_status=$?
26768  grep -v '^ *+' conftest.er1 >conftest.err
26769  rm -f conftest.er1
26770  cat conftest.err >&5
26771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26772  (exit $ac_status); } &&
26773	 { ac_try='test -z "$ac_c_werror_flag"
26774			 || test ! -s conftest.err'
26775  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26776  (eval $ac_try) 2>&5
26777  ac_status=$?
26778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26779  (exit $ac_status); }; } &&
26780	 { ac_try='test -s conftest$ac_exeext'
26781  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26782  (eval $ac_try) 2>&5
26783  ac_status=$?
26784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26785  (exit $ac_status); }; }; then
26786  ac_cv_func_daxpy=yes
26787else
26788  echo "$as_me: failed program was:" >&5
26789sed 's/^/| /' conftest.$ac_ext >&5
26790
26791ac_cv_func_daxpy=no
26792fi
26793rm -f conftest.err conftest.$ac_objext \
26794      conftest$ac_exeext conftest.$ac_ext
26795fi
26796echo "$as_me:$LINENO: result: $ac_cv_func_daxpy" >&5
26797echo "${ECHO_T}$ac_cv_func_daxpy" >&6
26798if test $ac_cv_func_daxpy = yes; then
26799  :
26800else
26801  { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
26802echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
26803   { (exit 1); exit 1; }; }
26804fi
26805
26806      ac_ext=c
26807ac_cpp='$CPP $CPPFLAGS'
26808ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26809ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26810ac_compiler_gnu=$ac_cv_c_compiler_gnu
26811
26812    fi
26813    LIBS="$coin_save_LIBS"
26814  fi
26815else
26816# Try to autodetect the library for blas based on build system
26817  #AC_MSG_CHECKING([default locations for BLAS])
26818  case $build in
26819    *-sgi-*)
26820      echo "$as_me:$LINENO: checking whether -lcomplib.sgimath has BLAS" >&5
26821echo $ECHO_N "checking whether -lcomplib.sgimath has BLAS... $ECHO_C" >&6
26822      coin_need_flibs=no
26823      coin_save_LIBS="$LIBS"
26824      LIBS="-lcomplib.sgimath $LIBS"
26825      case $ac_ext in
26826  f)
26827    cat >conftest.$ac_ext <<_ACEOF
26828/* confdefs.h.  */
26829_ACEOF
26830cat confdefs.h >>conftest.$ac_ext
26831cat >>conftest.$ac_ext <<_ACEOF
26832/* end confdefs.h.  */
26833
26834#ifdef F77_DUMMY_MAIN
26835
26836#  ifdef __cplusplus
26837     extern "C"
26838#  endif
26839   int F77_DUMMY_MAIN() { return 1; }
26840
26841#endif
26842int
26843main ()
26844{
26845      call daxpy
26846  ;
26847  return 0;
26848}
26849_ACEOF
26850rm -f conftest.$ac_objext conftest$ac_exeext
26851if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26852  (eval $ac_link) 2>conftest.er1
26853  ac_status=$?
26854  grep -v '^ *+' conftest.er1 >conftest.err
26855  rm -f conftest.er1
26856  cat conftest.err >&5
26857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26858  (exit $ac_status); } &&
26859	 { ac_try='test -z "$ac_c_werror_flag"
26860			 || test ! -s conftest.err'
26861  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26862  (eval $ac_try) 2>&5
26863  ac_status=$?
26864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26865  (exit $ac_status); }; } &&
26866	 { ac_try='test -s conftest$ac_exeext'
26867  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26868  (eval $ac_try) 2>&5
26869  ac_status=$?
26870  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26871  (exit $ac_status); }; }; then
26872  use_blas="-lcomplib.sgimath"
26873                         if test $coin_need_flibs = yes ; then
26874                           use_blas="$use_blas $FLIBS"
26875                         fi
26876                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
26877echo "${ECHO_T}yes: $use_blas" >&6
26878
26879else
26880  echo "$as_me: failed program was:" >&5
26881sed 's/^/| /' conftest.$ac_ext >&5
26882
26883echo "$as_me:$LINENO: result: no" >&5
26884echo "${ECHO_T}no" >&6
26885fi
26886rm -f conftest.err conftest.$ac_objext \
26887      conftest$ac_exeext conftest.$ac_ext
26888    ;;
26889  c)
26890    ac_ext=f
26891ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
26892ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26893ac_compiler_gnu=$ac_cv_f77_compiler_gnu
26894case $ac_cv_f77_mangling in
26895  upper*) ac_val="DAXPY" ;;
26896  lower*) ac_val="daxpy" ;;
26897  *)      ac_val="unknown" ;;
26898esac
26899case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
26900
26901cfuncdaxpy="$ac_val"
26902
26903ac_ext=c
26904ac_cpp='$CPP $CPPFLAGS'
26905ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26906ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26907ac_compiler_gnu=$ac_cv_c_compiler_gnu
26908
26909    if test x"$coin_need_flibs" = xyes; then
26910      flink_try=no;
26911    else
26912      cat >conftest.$ac_ext <<_ACEOF
26913/* confdefs.h.  */
26914_ACEOF
26915cat confdefs.h >>conftest.$ac_ext
26916cat >>conftest.$ac_ext <<_ACEOF
26917/* end confdefs.h.  */
26918void $cfuncdaxpy();
26919#ifdef F77_DUMMY_MAIN
26920
26921#  ifdef __cplusplus
26922     extern "C"
26923#  endif
26924   int F77_DUMMY_MAIN() { return 1; }
26925
26926#endif
26927int
26928main ()
26929{
26930$cfuncdaxpy()
26931  ;
26932  return 0;
26933}
26934_ACEOF
26935rm -f conftest.$ac_objext conftest$ac_exeext
26936if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26937  (eval $ac_link) 2>conftest.er1
26938  ac_status=$?
26939  grep -v '^ *+' conftest.er1 >conftest.err
26940  rm -f conftest.er1
26941  cat conftest.err >&5
26942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26943  (exit $ac_status); } &&
26944	 { ac_try='test -z "$ac_c_werror_flag"
26945			 || test ! -s conftest.err'
26946  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26947  (eval $ac_try) 2>&5
26948  ac_status=$?
26949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26950  (exit $ac_status); }; } &&
26951	 { ac_try='test -s conftest$ac_exeext'
26952  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26953  (eval $ac_try) 2>&5
26954  ac_status=$?
26955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26956  (exit $ac_status); }; }; then
26957  flink_try=yes
26958else
26959  echo "$as_me: failed program was:" >&5
26960sed 's/^/| /' conftest.$ac_ext >&5
26961
26962flink_try=no
26963fi
26964rm -f conftest.err conftest.$ac_objext \
26965      conftest$ac_exeext conftest.$ac_ext
26966    fi
26967    if test $flink_try = yes; then
26968      use_blas="-lcomplib.sgimath"
26969                         if test $coin_need_flibs = yes ; then
26970                           use_blas="$use_blas $FLIBS"
26971                         fi
26972                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
26973echo "${ECHO_T}yes: $use_blas" >&6
26974
26975    else
26976      if test x"$FLIBS" != x; then
26977        flink_save_libs="$LIBS"
26978        LIBS="$LIBS $FLIBS"
26979        cat >conftest.$ac_ext <<_ACEOF
26980/* confdefs.h.  */
26981_ACEOF
26982cat confdefs.h >>conftest.$ac_ext
26983cat >>conftest.$ac_ext <<_ACEOF
26984/* end confdefs.h.  */
26985void $cfuncdaxpy();
26986#ifdef F77_DUMMY_MAIN
26987
26988#  ifdef __cplusplus
26989     extern "C"
26990#  endif
26991   int F77_DUMMY_MAIN() { return 1; }
26992
26993#endif
26994int
26995main ()
26996{
26997$cfuncdaxpy()
26998  ;
26999  return 0;
27000}
27001_ACEOF
27002rm -f conftest.$ac_objext conftest$ac_exeext
27003if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27004  (eval $ac_link) 2>conftest.er1
27005  ac_status=$?
27006  grep -v '^ *+' conftest.er1 >conftest.err
27007  rm -f conftest.er1
27008  cat conftest.err >&5
27009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27010  (exit $ac_status); } &&
27011	 { ac_try='test -z "$ac_c_werror_flag"
27012			 || test ! -s conftest.err'
27013  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27014  (eval $ac_try) 2>&5
27015  ac_status=$?
27016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27017  (exit $ac_status); }; } &&
27018	 { ac_try='test -s conftest$ac_exeext'
27019  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27020  (eval $ac_try) 2>&5
27021  ac_status=$?
27022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27023  (exit $ac_status); }; }; then
27024  LIBS="$flink_save_libs"
27025                     coin_need_flibs=yes
27026                     use_blas="-lcomplib.sgimath"
27027                         if test $coin_need_flibs = yes ; then
27028                           use_blas="$use_blas $FLIBS"
27029                         fi
27030                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
27031echo "${ECHO_T}yes: $use_blas" >&6
27032
27033
27034else
27035  echo "$as_me: failed program was:" >&5
27036sed 's/^/| /' conftest.$ac_ext >&5
27037
27038LIBS="$flink_save_libs"
27039                     echo "$as_me:$LINENO: result: no" >&5
27040echo "${ECHO_T}no" >&6
27041fi
27042rm -f conftest.err conftest.$ac_objext \
27043      conftest$ac_exeext conftest.$ac_ext
27044      else
27045        echo "$as_me:$LINENO: result: no" >&5
27046echo "${ECHO_T}no" >&6
27047      fi
27048    fi
27049    ;;
27050  cc|cpp)
27051    ac_ext=f
27052ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
27053ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27054ac_compiler_gnu=$ac_cv_f77_compiler_gnu
27055case $ac_cv_f77_mangling in
27056  upper*) ac_val="DAXPY" ;;
27057  lower*) ac_val="daxpy" ;;
27058  *)      ac_val="unknown" ;;
27059esac
27060case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
27061
27062cfuncdaxpy="$ac_val"
27063
27064ac_ext=c
27065ac_cpp='$CPP $CPPFLAGS'
27066ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27067ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27068ac_compiler_gnu=$ac_cv_c_compiler_gnu
27069
27070    if test x"$coin_need_flibs" = xyes; then
27071      flink_try=no;
27072    else
27073      cat >conftest.$ac_ext <<_ACEOF
27074/* confdefs.h.  */
27075_ACEOF
27076cat confdefs.h >>conftest.$ac_ext
27077cat >>conftest.$ac_ext <<_ACEOF
27078/* end confdefs.h.  */
27079extern "C" {void $cfuncdaxpy();}
27080#ifdef F77_DUMMY_MAIN
27081
27082#  ifdef __cplusplus
27083     extern "C"
27084#  endif
27085   int F77_DUMMY_MAIN() { return 1; }
27086
27087#endif
27088int
27089main ()
27090{
27091$cfuncdaxpy()
27092  ;
27093  return 0;
27094}
27095_ACEOF
27096rm -f conftest.$ac_objext conftest$ac_exeext
27097if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27098  (eval $ac_link) 2>conftest.er1
27099  ac_status=$?
27100  grep -v '^ *+' conftest.er1 >conftest.err
27101  rm -f conftest.er1
27102  cat conftest.err >&5
27103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27104  (exit $ac_status); } &&
27105	 { ac_try='test -z "$ac_c_werror_flag"
27106			 || test ! -s conftest.err'
27107  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27108  (eval $ac_try) 2>&5
27109  ac_status=$?
27110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27111  (exit $ac_status); }; } &&
27112	 { ac_try='test -s conftest$ac_exeext'
27113  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27114  (eval $ac_try) 2>&5
27115  ac_status=$?
27116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27117  (exit $ac_status); }; }; then
27118  flink_try=yes
27119else
27120  echo "$as_me: failed program was:" >&5
27121sed 's/^/| /' conftest.$ac_ext >&5
27122
27123flink_try=no
27124fi
27125rm -f conftest.err conftest.$ac_objext \
27126      conftest$ac_exeext conftest.$ac_ext
27127    fi
27128    if test $flink_try = yes; then
27129      use_blas="-lcomplib.sgimath"
27130                         if test $coin_need_flibs = yes ; then
27131                           use_blas="$use_blas $FLIBS"
27132                         fi
27133                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
27134echo "${ECHO_T}yes: $use_blas" >&6
27135
27136    else
27137      if test x"$FLIBS" != x; then
27138        flink_save_libs="$LIBS"
27139        LIBS="$LIBS $FLIBS"
27140        cat >conftest.$ac_ext <<_ACEOF
27141/* confdefs.h.  */
27142_ACEOF
27143cat confdefs.h >>conftest.$ac_ext
27144cat >>conftest.$ac_ext <<_ACEOF
27145/* end confdefs.h.  */
27146extern "C" {void $cfuncdaxpy();}
27147#ifdef F77_DUMMY_MAIN
27148
27149#  ifdef __cplusplus
27150     extern "C"
27151#  endif
27152   int F77_DUMMY_MAIN() { return 1; }
27153
27154#endif
27155int
27156main ()
27157{
27158$cfuncdaxpy()
27159  ;
27160  return 0;
27161}
27162_ACEOF
27163rm -f conftest.$ac_objext conftest$ac_exeext
27164if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27165  (eval $ac_link) 2>conftest.er1
27166  ac_status=$?
27167  grep -v '^ *+' conftest.er1 >conftest.err
27168  rm -f conftest.er1
27169  cat conftest.err >&5
27170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27171  (exit $ac_status); } &&
27172	 { ac_try='test -z "$ac_c_werror_flag"
27173			 || test ! -s conftest.err'
27174  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27175  (eval $ac_try) 2>&5
27176  ac_status=$?
27177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27178  (exit $ac_status); }; } &&
27179	 { ac_try='test -s conftest$ac_exeext'
27180  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27181  (eval $ac_try) 2>&5
27182  ac_status=$?
27183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27184  (exit $ac_status); }; }; then
27185  LIBS="$flink_save_libs"
27186                     coin_need_flibs=yes
27187                     use_blas="-lcomplib.sgimath"
27188                         if test $coin_need_flibs = yes ; then
27189                           use_blas="$use_blas $FLIBS"
27190                         fi
27191                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
27192echo "${ECHO_T}yes: $use_blas" >&6
27193
27194
27195else
27196  echo "$as_me: failed program was:" >&5
27197sed 's/^/| /' conftest.$ac_ext >&5
27198
27199LIBS="$flink_save_libs"
27200                     echo "$as_me:$LINENO: result: no" >&5
27201echo "${ECHO_T}no" >&6
27202fi
27203rm -f conftest.err conftest.$ac_objext \
27204      conftest$ac_exeext conftest.$ac_ext
27205      else
27206        echo "$as_me:$LINENO: result: no" >&5
27207echo "${ECHO_T}no" >&6
27208      fi
27209    fi
27210    ;;
27211esac
27212
27213      LIBS="$coin_save_LIBS"
27214      ;;
27215
27216# Ideally, we'd use -library=sunperf, but it's an imperfect world. Studio
27217# cc doesn't recognise -library, it wants -xlic_lib. Studio 12 CC doesn't
27218# recognise -xlic_lib. Libtool doesn't like -xlic_lib anyway. Sun claims
27219# that CC and cc will understand -library in Studio 13. The main extra
27220# function of -xlic_lib and -library is to arrange for the Fortran run-time
27221# libraries to be linked for C++ and C. We can arrange that explicitly.
27222    *-*-solaris*)
27223      echo "$as_me:$LINENO: checking for BLAS in libsunperf" >&5
27224echo $ECHO_N "checking for BLAS in libsunperf... $ECHO_C" >&6
27225      coin_need_flibs=no
27226      coin_save_LIBS="$LIBS"
27227      LIBS="-lsunperf $FLIBS $LIBS"
27228      case $ac_ext in
27229  f)
27230    cat >conftest.$ac_ext <<_ACEOF
27231/* confdefs.h.  */
27232_ACEOF
27233cat confdefs.h >>conftest.$ac_ext
27234cat >>conftest.$ac_ext <<_ACEOF
27235/* end confdefs.h.  */
27236
27237#ifdef F77_DUMMY_MAIN
27238
27239#  ifdef __cplusplus
27240     extern "C"
27241#  endif
27242   int F77_DUMMY_MAIN() { return 1; }
27243
27244#endif
27245int
27246main ()
27247{
27248      call daxpy
27249  ;
27250  return 0;
27251}
27252_ACEOF
27253rm -f conftest.$ac_objext conftest$ac_exeext
27254if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27255  (eval $ac_link) 2>conftest.er1
27256  ac_status=$?
27257  grep -v '^ *+' conftest.er1 >conftest.err
27258  rm -f conftest.er1
27259  cat conftest.err >&5
27260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27261  (exit $ac_status); } &&
27262	 { ac_try='test -z "$ac_c_werror_flag"
27263			 || test ! -s conftest.err'
27264  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27265  (eval $ac_try) 2>&5
27266  ac_status=$?
27267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27268  (exit $ac_status); }; } &&
27269	 { ac_try='test -s conftest$ac_exeext'
27270  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27271  (eval $ac_try) 2>&5
27272  ac_status=$?
27273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27274  (exit $ac_status); }; }; then
27275  use_blas='-lsunperf'
27276                         if test $coin_need_flibs = yes ; then
27277                           use_blas="$use_blas $FLIBS"
27278                         fi
27279                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
27280echo "${ECHO_T}yes: $use_blas" >&6
27281
27282else
27283  echo "$as_me: failed program was:" >&5
27284sed 's/^/| /' conftest.$ac_ext >&5
27285
27286echo "$as_me:$LINENO: result: no" >&5
27287echo "${ECHO_T}no" >&6
27288fi
27289rm -f conftest.err conftest.$ac_objext \
27290      conftest$ac_exeext conftest.$ac_ext
27291    ;;
27292  c)
27293    ac_ext=f
27294ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
27295ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27296ac_compiler_gnu=$ac_cv_f77_compiler_gnu
27297case $ac_cv_f77_mangling in
27298  upper*) ac_val="DAXPY" ;;
27299  lower*) ac_val="daxpy" ;;
27300  *)      ac_val="unknown" ;;
27301esac
27302case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
27303
27304cfuncdaxpy="$ac_val"
27305
27306ac_ext=c
27307ac_cpp='$CPP $CPPFLAGS'
27308ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27309ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27310ac_compiler_gnu=$ac_cv_c_compiler_gnu
27311
27312    if test x"$coin_need_flibs" = xyes; then
27313      flink_try=no;
27314    else
27315      cat >conftest.$ac_ext <<_ACEOF
27316/* confdefs.h.  */
27317_ACEOF
27318cat confdefs.h >>conftest.$ac_ext
27319cat >>conftest.$ac_ext <<_ACEOF
27320/* end confdefs.h.  */
27321void $cfuncdaxpy();
27322#ifdef F77_DUMMY_MAIN
27323
27324#  ifdef __cplusplus
27325     extern "C"
27326#  endif
27327   int F77_DUMMY_MAIN() { return 1; }
27328
27329#endif
27330int
27331main ()
27332{
27333$cfuncdaxpy()
27334  ;
27335  return 0;
27336}
27337_ACEOF
27338rm -f conftest.$ac_objext conftest$ac_exeext
27339if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27340  (eval $ac_link) 2>conftest.er1
27341  ac_status=$?
27342  grep -v '^ *+' conftest.er1 >conftest.err
27343  rm -f conftest.er1
27344  cat conftest.err >&5
27345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27346  (exit $ac_status); } &&
27347	 { ac_try='test -z "$ac_c_werror_flag"
27348			 || test ! -s conftest.err'
27349  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27350  (eval $ac_try) 2>&5
27351  ac_status=$?
27352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27353  (exit $ac_status); }; } &&
27354	 { ac_try='test -s conftest$ac_exeext'
27355  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27356  (eval $ac_try) 2>&5
27357  ac_status=$?
27358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27359  (exit $ac_status); }; }; then
27360  flink_try=yes
27361else
27362  echo "$as_me: failed program was:" >&5
27363sed 's/^/| /' conftest.$ac_ext >&5
27364
27365flink_try=no
27366fi
27367rm -f conftest.err conftest.$ac_objext \
27368      conftest$ac_exeext conftest.$ac_ext
27369    fi
27370    if test $flink_try = yes; then
27371      use_blas='-lsunperf'
27372                         if test $coin_need_flibs = yes ; then
27373                           use_blas="$use_blas $FLIBS"
27374                         fi
27375                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
27376echo "${ECHO_T}yes: $use_blas" >&6
27377
27378    else
27379      if test x"$FLIBS" != x; then
27380        flink_save_libs="$LIBS"
27381        LIBS="$LIBS $FLIBS"
27382        cat >conftest.$ac_ext <<_ACEOF
27383/* confdefs.h.  */
27384_ACEOF
27385cat confdefs.h >>conftest.$ac_ext
27386cat >>conftest.$ac_ext <<_ACEOF
27387/* end confdefs.h.  */
27388void $cfuncdaxpy();
27389#ifdef F77_DUMMY_MAIN
27390
27391#  ifdef __cplusplus
27392     extern "C"
27393#  endif
27394   int F77_DUMMY_MAIN() { return 1; }
27395
27396#endif
27397int
27398main ()
27399{
27400$cfuncdaxpy()
27401  ;
27402  return 0;
27403}
27404_ACEOF
27405rm -f conftest.$ac_objext conftest$ac_exeext
27406if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27407  (eval $ac_link) 2>conftest.er1
27408  ac_status=$?
27409  grep -v '^ *+' conftest.er1 >conftest.err
27410  rm -f conftest.er1
27411  cat conftest.err >&5
27412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27413  (exit $ac_status); } &&
27414	 { ac_try='test -z "$ac_c_werror_flag"
27415			 || test ! -s conftest.err'
27416  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27417  (eval $ac_try) 2>&5
27418  ac_status=$?
27419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27420  (exit $ac_status); }; } &&
27421	 { ac_try='test -s conftest$ac_exeext'
27422  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27423  (eval $ac_try) 2>&5
27424  ac_status=$?
27425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27426  (exit $ac_status); }; }; then
27427  LIBS="$flink_save_libs"
27428                     coin_need_flibs=yes
27429                     use_blas='-lsunperf'
27430                         if test $coin_need_flibs = yes ; then
27431                           use_blas="$use_blas $FLIBS"
27432                         fi
27433                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
27434echo "${ECHO_T}yes: $use_blas" >&6
27435
27436
27437else
27438  echo "$as_me: failed program was:" >&5
27439sed 's/^/| /' conftest.$ac_ext >&5
27440
27441LIBS="$flink_save_libs"
27442                     echo "$as_me:$LINENO: result: no" >&5
27443echo "${ECHO_T}no" >&6
27444fi
27445rm -f conftest.err conftest.$ac_objext \
27446      conftest$ac_exeext conftest.$ac_ext
27447      else
27448        echo "$as_me:$LINENO: result: no" >&5
27449echo "${ECHO_T}no" >&6
27450      fi
27451    fi
27452    ;;
27453  cc|cpp)
27454    ac_ext=f
27455ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
27456ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27457ac_compiler_gnu=$ac_cv_f77_compiler_gnu
27458case $ac_cv_f77_mangling in
27459  upper*) ac_val="DAXPY" ;;
27460  lower*) ac_val="daxpy" ;;
27461  *)      ac_val="unknown" ;;
27462esac
27463case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
27464
27465cfuncdaxpy="$ac_val"
27466
27467ac_ext=c
27468ac_cpp='$CPP $CPPFLAGS'
27469ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27470ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27471ac_compiler_gnu=$ac_cv_c_compiler_gnu
27472
27473    if test x"$coin_need_flibs" = xyes; then
27474      flink_try=no;
27475    else
27476      cat >conftest.$ac_ext <<_ACEOF
27477/* confdefs.h.  */
27478_ACEOF
27479cat confdefs.h >>conftest.$ac_ext
27480cat >>conftest.$ac_ext <<_ACEOF
27481/* end confdefs.h.  */
27482extern "C" {void $cfuncdaxpy();}
27483#ifdef F77_DUMMY_MAIN
27484
27485#  ifdef __cplusplus
27486     extern "C"
27487#  endif
27488   int F77_DUMMY_MAIN() { return 1; }
27489
27490#endif
27491int
27492main ()
27493{
27494$cfuncdaxpy()
27495  ;
27496  return 0;
27497}
27498_ACEOF
27499rm -f conftest.$ac_objext conftest$ac_exeext
27500if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27501  (eval $ac_link) 2>conftest.er1
27502  ac_status=$?
27503  grep -v '^ *+' conftest.er1 >conftest.err
27504  rm -f conftest.er1
27505  cat conftest.err >&5
27506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27507  (exit $ac_status); } &&
27508	 { ac_try='test -z "$ac_c_werror_flag"
27509			 || test ! -s conftest.err'
27510  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27511  (eval $ac_try) 2>&5
27512  ac_status=$?
27513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27514  (exit $ac_status); }; } &&
27515	 { ac_try='test -s conftest$ac_exeext'
27516  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27517  (eval $ac_try) 2>&5
27518  ac_status=$?
27519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27520  (exit $ac_status); }; }; then
27521  flink_try=yes
27522else
27523  echo "$as_me: failed program was:" >&5
27524sed 's/^/| /' conftest.$ac_ext >&5
27525
27526flink_try=no
27527fi
27528rm -f conftest.err conftest.$ac_objext \
27529      conftest$ac_exeext conftest.$ac_ext
27530    fi
27531    if test $flink_try = yes; then
27532      use_blas='-lsunperf'
27533                         if test $coin_need_flibs = yes ; then
27534                           use_blas="$use_blas $FLIBS"
27535                         fi
27536                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
27537echo "${ECHO_T}yes: $use_blas" >&6
27538
27539    else
27540      if test x"$FLIBS" != x; then
27541        flink_save_libs="$LIBS"
27542        LIBS="$LIBS $FLIBS"
27543        cat >conftest.$ac_ext <<_ACEOF
27544/* confdefs.h.  */
27545_ACEOF
27546cat confdefs.h >>conftest.$ac_ext
27547cat >>conftest.$ac_ext <<_ACEOF
27548/* end confdefs.h.  */
27549extern "C" {void $cfuncdaxpy();}
27550#ifdef F77_DUMMY_MAIN
27551
27552#  ifdef __cplusplus
27553     extern "C"
27554#  endif
27555   int F77_DUMMY_MAIN() { return 1; }
27556
27557#endif
27558int
27559main ()
27560{
27561$cfuncdaxpy()
27562  ;
27563  return 0;
27564}
27565_ACEOF
27566rm -f conftest.$ac_objext conftest$ac_exeext
27567if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27568  (eval $ac_link) 2>conftest.er1
27569  ac_status=$?
27570  grep -v '^ *+' conftest.er1 >conftest.err
27571  rm -f conftest.er1
27572  cat conftest.err >&5
27573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27574  (exit $ac_status); } &&
27575	 { ac_try='test -z "$ac_c_werror_flag"
27576			 || test ! -s conftest.err'
27577  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27578  (eval $ac_try) 2>&5
27579  ac_status=$?
27580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27581  (exit $ac_status); }; } &&
27582	 { ac_try='test -s conftest$ac_exeext'
27583  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27584  (eval $ac_try) 2>&5
27585  ac_status=$?
27586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27587  (exit $ac_status); }; }; then
27588  LIBS="$flink_save_libs"
27589                     coin_need_flibs=yes
27590                     use_blas='-lsunperf'
27591                         if test $coin_need_flibs = yes ; then
27592                           use_blas="$use_blas $FLIBS"
27593                         fi
27594                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
27595echo "${ECHO_T}yes: $use_blas" >&6
27596
27597
27598else
27599  echo "$as_me: failed program was:" >&5
27600sed 's/^/| /' conftest.$ac_ext >&5
27601
27602LIBS="$flink_save_libs"
27603                     echo "$as_me:$LINENO: result: no" >&5
27604echo "${ECHO_T}no" >&6
27605fi
27606rm -f conftest.err conftest.$ac_objext \
27607      conftest$ac_exeext conftest.$ac_ext
27608      else
27609        echo "$as_me:$LINENO: result: no" >&5
27610echo "${ECHO_T}no" >&6
27611      fi
27612    fi
27613    ;;
27614esac
27615
27616      LIBS="$coin_save_LIBS"
27617      ;;
27618
27619    *-cygwin* | *-mingw*)
27620      case "$CC" in
27621        clang* ) ;;
27622        cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
27623          coin_save_LIBS="$LIBS"
27624          LIBS="mkl_intel_c.lib mkl_sequential.lib mkl_core.lib $LIBS"
27625          if test "$F77" != unavailable ; then
27626            echo "$as_me:$LINENO: checking for BLAS in MKL (32bit)" >&5
27627echo $ECHO_N "checking for BLAS in MKL (32bit)... $ECHO_C" >&6
27628            case $ac_ext in
27629  f)
27630    cat >conftest.$ac_ext <<_ACEOF
27631/* confdefs.h.  */
27632_ACEOF
27633cat confdefs.h >>conftest.$ac_ext
27634cat >>conftest.$ac_ext <<_ACEOF
27635/* end confdefs.h.  */
27636
27637#ifdef F77_DUMMY_MAIN
27638
27639#  ifdef __cplusplus
27640     extern "C"
27641#  endif
27642   int F77_DUMMY_MAIN() { return 1; }
27643
27644#endif
27645int
27646main ()
27647{
27648      call daxpy
27649  ;
27650  return 0;
27651}
27652_ACEOF
27653rm -f conftest.$ac_objext conftest$ac_exeext
27654if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27655  (eval $ac_link) 2>conftest.er1
27656  ac_status=$?
27657  grep -v '^ *+' conftest.er1 >conftest.err
27658  rm -f conftest.er1
27659  cat conftest.err >&5
27660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27661  (exit $ac_status); } &&
27662	 { ac_try='test -z "$ac_c_werror_flag"
27663			 || test ! -s conftest.err'
27664  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27665  (eval $ac_try) 2>&5
27666  ac_status=$?
27667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27668  (exit $ac_status); }; } &&
27669	 { ac_try='test -s conftest$ac_exeext'
27670  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27671  (eval $ac_try) 2>&5
27672  ac_status=$?
27673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27674  (exit $ac_status); }; }; then
27675  use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
27676                               echo "$as_me:$LINENO: result: yes: $use_blas" >&5
27677echo "${ECHO_T}yes: $use_blas" >&6
27678
27679else
27680  echo "$as_me: failed program was:" >&5
27681sed 's/^/| /' conftest.$ac_ext >&5
27682
27683echo "$as_me:$LINENO: result: no" >&5
27684echo "${ECHO_T}no" >&6
27685fi
27686rm -f conftest.err conftest.$ac_objext \
27687      conftest$ac_exeext conftest.$ac_ext
27688    ;;
27689  c)
27690    ac_ext=f
27691ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
27692ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27693ac_compiler_gnu=$ac_cv_f77_compiler_gnu
27694case $ac_cv_f77_mangling in
27695  upper*) ac_val="DAXPY" ;;
27696  lower*) ac_val="daxpy" ;;
27697  *)      ac_val="unknown" ;;
27698esac
27699case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
27700
27701cfuncdaxpy="$ac_val"
27702
27703ac_ext=c
27704ac_cpp='$CPP $CPPFLAGS'
27705ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27706ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27707ac_compiler_gnu=$ac_cv_c_compiler_gnu
27708
27709    if test x"$coin_need_flibs" = xyes; then
27710      flink_try=no;
27711    else
27712      cat >conftest.$ac_ext <<_ACEOF
27713/* confdefs.h.  */
27714_ACEOF
27715cat confdefs.h >>conftest.$ac_ext
27716cat >>conftest.$ac_ext <<_ACEOF
27717/* end confdefs.h.  */
27718void $cfuncdaxpy();
27719#ifdef F77_DUMMY_MAIN
27720
27721#  ifdef __cplusplus
27722     extern "C"
27723#  endif
27724   int F77_DUMMY_MAIN() { return 1; }
27725
27726#endif
27727int
27728main ()
27729{
27730$cfuncdaxpy()
27731  ;
27732  return 0;
27733}
27734_ACEOF
27735rm -f conftest.$ac_objext conftest$ac_exeext
27736if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27737  (eval $ac_link) 2>conftest.er1
27738  ac_status=$?
27739  grep -v '^ *+' conftest.er1 >conftest.err
27740  rm -f conftest.er1
27741  cat conftest.err >&5
27742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27743  (exit $ac_status); } &&
27744	 { ac_try='test -z "$ac_c_werror_flag"
27745			 || test ! -s conftest.err'
27746  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27747  (eval $ac_try) 2>&5
27748  ac_status=$?
27749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27750  (exit $ac_status); }; } &&
27751	 { ac_try='test -s conftest$ac_exeext'
27752  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27753  (eval $ac_try) 2>&5
27754  ac_status=$?
27755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27756  (exit $ac_status); }; }; then
27757  flink_try=yes
27758else
27759  echo "$as_me: failed program was:" >&5
27760sed 's/^/| /' conftest.$ac_ext >&5
27761
27762flink_try=no
27763fi
27764rm -f conftest.err conftest.$ac_objext \
27765      conftest$ac_exeext conftest.$ac_ext
27766    fi
27767    if test $flink_try = yes; then
27768      use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
27769                               echo "$as_me:$LINENO: result: yes: $use_blas" >&5
27770echo "${ECHO_T}yes: $use_blas" >&6
27771
27772    else
27773      if test x"$FLIBS" != x; then
27774        flink_save_libs="$LIBS"
27775        LIBS="$LIBS $FLIBS"
27776        cat >conftest.$ac_ext <<_ACEOF
27777/* confdefs.h.  */
27778_ACEOF
27779cat confdefs.h >>conftest.$ac_ext
27780cat >>conftest.$ac_ext <<_ACEOF
27781/* end confdefs.h.  */
27782void $cfuncdaxpy();
27783#ifdef F77_DUMMY_MAIN
27784
27785#  ifdef __cplusplus
27786     extern "C"
27787#  endif
27788   int F77_DUMMY_MAIN() { return 1; }
27789
27790#endif
27791int
27792main ()
27793{
27794$cfuncdaxpy()
27795  ;
27796  return 0;
27797}
27798_ACEOF
27799rm -f conftest.$ac_objext conftest$ac_exeext
27800if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27801  (eval $ac_link) 2>conftest.er1
27802  ac_status=$?
27803  grep -v '^ *+' conftest.er1 >conftest.err
27804  rm -f conftest.er1
27805  cat conftest.err >&5
27806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27807  (exit $ac_status); } &&
27808	 { ac_try='test -z "$ac_c_werror_flag"
27809			 || test ! -s conftest.err'
27810  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27811  (eval $ac_try) 2>&5
27812  ac_status=$?
27813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27814  (exit $ac_status); }; } &&
27815	 { ac_try='test -s conftest$ac_exeext'
27816  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27817  (eval $ac_try) 2>&5
27818  ac_status=$?
27819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27820  (exit $ac_status); }; }; then
27821  LIBS="$flink_save_libs"
27822                     coin_need_flibs=yes
27823                     use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
27824                               echo "$as_me:$LINENO: result: yes: $use_blas" >&5
27825echo "${ECHO_T}yes: $use_blas" >&6
27826
27827
27828else
27829  echo "$as_me: failed program was:" >&5
27830sed 's/^/| /' conftest.$ac_ext >&5
27831
27832LIBS="$flink_save_libs"
27833                     echo "$as_me:$LINENO: result: no" >&5
27834echo "${ECHO_T}no" >&6
27835fi
27836rm -f conftest.err conftest.$ac_objext \
27837      conftest$ac_exeext conftest.$ac_ext
27838      else
27839        echo "$as_me:$LINENO: result: no" >&5
27840echo "${ECHO_T}no" >&6
27841      fi
27842    fi
27843    ;;
27844  cc|cpp)
27845    ac_ext=f
27846ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
27847ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27848ac_compiler_gnu=$ac_cv_f77_compiler_gnu
27849case $ac_cv_f77_mangling in
27850  upper*) ac_val="DAXPY" ;;
27851  lower*) ac_val="daxpy" ;;
27852  *)      ac_val="unknown" ;;
27853esac
27854case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
27855
27856cfuncdaxpy="$ac_val"
27857
27858ac_ext=c
27859ac_cpp='$CPP $CPPFLAGS'
27860ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27861ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27862ac_compiler_gnu=$ac_cv_c_compiler_gnu
27863
27864    if test x"$coin_need_flibs" = xyes; then
27865      flink_try=no;
27866    else
27867      cat >conftest.$ac_ext <<_ACEOF
27868/* confdefs.h.  */
27869_ACEOF
27870cat confdefs.h >>conftest.$ac_ext
27871cat >>conftest.$ac_ext <<_ACEOF
27872/* end confdefs.h.  */
27873extern "C" {void $cfuncdaxpy();}
27874#ifdef F77_DUMMY_MAIN
27875
27876#  ifdef __cplusplus
27877     extern "C"
27878#  endif
27879   int F77_DUMMY_MAIN() { return 1; }
27880
27881#endif
27882int
27883main ()
27884{
27885$cfuncdaxpy()
27886  ;
27887  return 0;
27888}
27889_ACEOF
27890rm -f conftest.$ac_objext conftest$ac_exeext
27891if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27892  (eval $ac_link) 2>conftest.er1
27893  ac_status=$?
27894  grep -v '^ *+' conftest.er1 >conftest.err
27895  rm -f conftest.er1
27896  cat conftest.err >&5
27897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27898  (exit $ac_status); } &&
27899	 { ac_try='test -z "$ac_c_werror_flag"
27900			 || test ! -s conftest.err'
27901  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27902  (eval $ac_try) 2>&5
27903  ac_status=$?
27904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27905  (exit $ac_status); }; } &&
27906	 { ac_try='test -s conftest$ac_exeext'
27907  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27908  (eval $ac_try) 2>&5
27909  ac_status=$?
27910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27911  (exit $ac_status); }; }; then
27912  flink_try=yes
27913else
27914  echo "$as_me: failed program was:" >&5
27915sed 's/^/| /' conftest.$ac_ext >&5
27916
27917flink_try=no
27918fi
27919rm -f conftest.err conftest.$ac_objext \
27920      conftest$ac_exeext conftest.$ac_ext
27921    fi
27922    if test $flink_try = yes; then
27923      use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
27924                               echo "$as_me:$LINENO: result: yes: $use_blas" >&5
27925echo "${ECHO_T}yes: $use_blas" >&6
27926
27927    else
27928      if test x"$FLIBS" != x; then
27929        flink_save_libs="$LIBS"
27930        LIBS="$LIBS $FLIBS"
27931        cat >conftest.$ac_ext <<_ACEOF
27932/* confdefs.h.  */
27933_ACEOF
27934cat confdefs.h >>conftest.$ac_ext
27935cat >>conftest.$ac_ext <<_ACEOF
27936/* end confdefs.h.  */
27937extern "C" {void $cfuncdaxpy();}
27938#ifdef F77_DUMMY_MAIN
27939
27940#  ifdef __cplusplus
27941     extern "C"
27942#  endif
27943   int F77_DUMMY_MAIN() { return 1; }
27944
27945#endif
27946int
27947main ()
27948{
27949$cfuncdaxpy()
27950  ;
27951  return 0;
27952}
27953_ACEOF
27954rm -f conftest.$ac_objext conftest$ac_exeext
27955if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27956  (eval $ac_link) 2>conftest.er1
27957  ac_status=$?
27958  grep -v '^ *+' conftest.er1 >conftest.err
27959  rm -f conftest.er1
27960  cat conftest.err >&5
27961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27962  (exit $ac_status); } &&
27963	 { ac_try='test -z "$ac_c_werror_flag"
27964			 || test ! -s conftest.err'
27965  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27966  (eval $ac_try) 2>&5
27967  ac_status=$?
27968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27969  (exit $ac_status); }; } &&
27970	 { ac_try='test -s conftest$ac_exeext'
27971  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27972  (eval $ac_try) 2>&5
27973  ac_status=$?
27974  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27975  (exit $ac_status); }; }; then
27976  LIBS="$flink_save_libs"
27977                     coin_need_flibs=yes
27978                     use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
27979                               echo "$as_me:$LINENO: result: yes: $use_blas" >&5
27980echo "${ECHO_T}yes: $use_blas" >&6
27981
27982
27983else
27984  echo "$as_me: failed program was:" >&5
27985sed 's/^/| /' conftest.$ac_ext >&5
27986
27987LIBS="$flink_save_libs"
27988                     echo "$as_me:$LINENO: result: no" >&5
27989echo "${ECHO_T}no" >&6
27990fi
27991rm -f conftest.err conftest.$ac_objext \
27992      conftest$ac_exeext conftest.$ac_ext
27993      else
27994        echo "$as_me:$LINENO: result: no" >&5
27995echo "${ECHO_T}no" >&6
27996      fi
27997    fi
27998    ;;
27999esac
28000
28001          else
28002            { echo "$as_me:$LINENO: for BLAS in MKL (32bit) using C linkage" >&5
28003echo "$as_me: for BLAS in MKL (32bit) using C linkage" >&6;}
28004            ac_ext=c
28005ac_cpp='$CPP $CPPFLAGS'
28006ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28007ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28008ac_compiler_gnu=$ac_cv_c_compiler_gnu
28009
28010            echo "$as_me:$LINENO: checking for daxpy" >&5
28011echo $ECHO_N "checking for daxpy... $ECHO_C" >&6
28012if test "${ac_cv_func_daxpy+set}" = set; then
28013  echo $ECHO_N "(cached) $ECHO_C" >&6
28014else
28015  cat >conftest.$ac_ext <<_ACEOF
28016/* confdefs.h.  */
28017_ACEOF
28018cat confdefs.h >>conftest.$ac_ext
28019cat >>conftest.$ac_ext <<_ACEOF
28020/* end confdefs.h.  */
28021/* Define daxpy to an innocuous variant, in case <limits.h> declares daxpy.
28022   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28023#define daxpy innocuous_daxpy
28024
28025/* System header to define __stub macros and hopefully few prototypes,
28026    which can conflict with char daxpy (); below.
28027    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28028    <limits.h> exists even on freestanding compilers.  */
28029
28030#ifdef __STDC__
28031# include <limits.h>
28032#else
28033# include <assert.h>
28034#endif
28035
28036#undef daxpy
28037
28038/* Override any gcc2 internal prototype to avoid an error.  */
28039#ifdef __cplusplus
28040extern "C"
28041{
28042#endif
28043/* We use char because int might match the return type of a gcc2
28044   builtin and then its argument prototype would still apply.  */
28045char daxpy ();
28046/* The GNU C library defines this for functions which it implements
28047    to always fail with ENOSYS.  Some functions are actually named
28048    something starting with __ and the normal name is an alias.  */
28049#if defined (__stub_daxpy) || defined (__stub___daxpy)
28050choke me
28051#else
28052char (*f) () = daxpy;
28053#endif
28054#ifdef __cplusplus
28055}
28056#endif
28057
28058#ifdef F77_DUMMY_MAIN
28059
28060#  ifdef __cplusplus
28061     extern "C"
28062#  endif
28063   int F77_DUMMY_MAIN() { return 1; }
28064
28065#endif
28066int
28067main ()
28068{
28069return f != daxpy;
28070  ;
28071  return 0;
28072}
28073_ACEOF
28074rm -f conftest.$ac_objext conftest$ac_exeext
28075if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28076  (eval $ac_link) 2>conftest.er1
28077  ac_status=$?
28078  grep -v '^ *+' conftest.er1 >conftest.err
28079  rm -f conftest.er1
28080  cat conftest.err >&5
28081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28082  (exit $ac_status); } &&
28083	 { ac_try='test -z "$ac_c_werror_flag"
28084			 || test ! -s conftest.err'
28085  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28086  (eval $ac_try) 2>&5
28087  ac_status=$?
28088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28089  (exit $ac_status); }; } &&
28090	 { ac_try='test -s conftest$ac_exeext'
28091  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28092  (eval $ac_try) 2>&5
28093  ac_status=$?
28094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28095  (exit $ac_status); }; }; then
28096  ac_cv_func_daxpy=yes
28097else
28098  echo "$as_me: failed program was:" >&5
28099sed 's/^/| /' conftest.$ac_ext >&5
28100
28101ac_cv_func_daxpy=no
28102fi
28103rm -f conftest.err conftest.$ac_objext \
28104      conftest$ac_exeext conftest.$ac_ext
28105fi
28106echo "$as_me:$LINENO: result: $ac_cv_func_daxpy" >&5
28107echo "${ECHO_T}$ac_cv_func_daxpy" >&6
28108if test $ac_cv_func_daxpy = yes; then
28109  use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
28110fi
28111
28112            ac_ext=c
28113ac_cpp='$CPP $CPPFLAGS'
28114ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28115ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28116ac_compiler_gnu=$ac_cv_c_compiler_gnu
28117
28118          fi
28119          LIBS="$coin_save_LIBS"
28120
28121          if test "x$use_blas" = x ; then
28122            LIBS="mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib $LIBS"
28123            if test "$F77" != unavailable ; then
28124              echo "$as_me:$LINENO: checking for BLAS in MKL (64bit)" >&5
28125echo $ECHO_N "checking for BLAS in MKL (64bit)... $ECHO_C" >&6
28126              case $ac_ext in
28127  f)
28128    cat >conftest.$ac_ext <<_ACEOF
28129/* confdefs.h.  */
28130_ACEOF
28131cat confdefs.h >>conftest.$ac_ext
28132cat >>conftest.$ac_ext <<_ACEOF
28133/* end confdefs.h.  */
28134
28135#ifdef F77_DUMMY_MAIN
28136
28137#  ifdef __cplusplus
28138     extern "C"
28139#  endif
28140   int F77_DUMMY_MAIN() { return 1; }
28141
28142#endif
28143int
28144main ()
28145{
28146      call daxpy
28147  ;
28148  return 0;
28149}
28150_ACEOF
28151rm -f conftest.$ac_objext conftest$ac_exeext
28152if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28153  (eval $ac_link) 2>conftest.er1
28154  ac_status=$?
28155  grep -v '^ *+' conftest.er1 >conftest.err
28156  rm -f conftest.er1
28157  cat conftest.err >&5
28158  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28159  (exit $ac_status); } &&
28160	 { ac_try='test -z "$ac_c_werror_flag"
28161			 || test ! -s conftest.err'
28162  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28163  (eval $ac_try) 2>&5
28164  ac_status=$?
28165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28166  (exit $ac_status); }; } &&
28167	 { ac_try='test -s conftest$ac_exeext'
28168  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28169  (eval $ac_try) 2>&5
28170  ac_status=$?
28171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28172  (exit $ac_status); }; }; then
28173  use_blas='mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib'
28174                                 echo "$as_me:$LINENO: result: yes: $use_blas" >&5
28175echo "${ECHO_T}yes: $use_blas" >&6
28176
28177else
28178  echo "$as_me: failed program was:" >&5
28179sed 's/^/| /' conftest.$ac_ext >&5
28180
28181echo "$as_me:$LINENO: result: no" >&5
28182echo "${ECHO_T}no" >&6
28183fi
28184rm -f conftest.err conftest.$ac_objext \
28185      conftest$ac_exeext conftest.$ac_ext
28186    ;;
28187  c)
28188    ac_ext=f
28189ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
28190ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28191ac_compiler_gnu=$ac_cv_f77_compiler_gnu
28192case $ac_cv_f77_mangling in
28193  upper*) ac_val="DAXPY" ;;
28194  lower*) ac_val="daxpy" ;;
28195  *)      ac_val="unknown" ;;
28196esac
28197case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
28198
28199cfuncdaxpy="$ac_val"
28200
28201ac_ext=c
28202ac_cpp='$CPP $CPPFLAGS'
28203ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28204ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28205ac_compiler_gnu=$ac_cv_c_compiler_gnu
28206
28207    if test x"$coin_need_flibs" = xyes; then
28208      flink_try=no;
28209    else
28210      cat >conftest.$ac_ext <<_ACEOF
28211/* confdefs.h.  */
28212_ACEOF
28213cat confdefs.h >>conftest.$ac_ext
28214cat >>conftest.$ac_ext <<_ACEOF
28215/* end confdefs.h.  */
28216void $cfuncdaxpy();
28217#ifdef F77_DUMMY_MAIN
28218
28219#  ifdef __cplusplus
28220     extern "C"
28221#  endif
28222   int F77_DUMMY_MAIN() { return 1; }
28223
28224#endif
28225int
28226main ()
28227{
28228$cfuncdaxpy()
28229  ;
28230  return 0;
28231}
28232_ACEOF
28233rm -f conftest.$ac_objext conftest$ac_exeext
28234if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28235  (eval $ac_link) 2>conftest.er1
28236  ac_status=$?
28237  grep -v '^ *+' conftest.er1 >conftest.err
28238  rm -f conftest.er1
28239  cat conftest.err >&5
28240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28241  (exit $ac_status); } &&
28242	 { ac_try='test -z "$ac_c_werror_flag"
28243			 || test ! -s conftest.err'
28244  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28245  (eval $ac_try) 2>&5
28246  ac_status=$?
28247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28248  (exit $ac_status); }; } &&
28249	 { ac_try='test -s conftest$ac_exeext'
28250  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28251  (eval $ac_try) 2>&5
28252  ac_status=$?
28253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28254  (exit $ac_status); }; }; then
28255  flink_try=yes
28256else
28257  echo "$as_me: failed program was:" >&5
28258sed 's/^/| /' conftest.$ac_ext >&5
28259
28260flink_try=no
28261fi
28262rm -f conftest.err conftest.$ac_objext \
28263      conftest$ac_exeext conftest.$ac_ext
28264    fi
28265    if test $flink_try = yes; then
28266      use_blas='mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib'
28267                                 echo "$as_me:$LINENO: result: yes: $use_blas" >&5
28268echo "${ECHO_T}yes: $use_blas" >&6
28269
28270    else
28271      if test x"$FLIBS" != x; then
28272        flink_save_libs="$LIBS"
28273        LIBS="$LIBS $FLIBS"
28274        cat >conftest.$ac_ext <<_ACEOF
28275/* confdefs.h.  */
28276_ACEOF
28277cat confdefs.h >>conftest.$ac_ext
28278cat >>conftest.$ac_ext <<_ACEOF
28279/* end confdefs.h.  */
28280void $cfuncdaxpy();
28281#ifdef F77_DUMMY_MAIN
28282
28283#  ifdef __cplusplus
28284     extern "C"
28285#  endif
28286   int F77_DUMMY_MAIN() { return 1; }
28287
28288#endif
28289int
28290main ()
28291{
28292$cfuncdaxpy()
28293  ;
28294  return 0;
28295}
28296_ACEOF
28297rm -f conftest.$ac_objext conftest$ac_exeext
28298if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28299  (eval $ac_link) 2>conftest.er1
28300  ac_status=$?
28301  grep -v '^ *+' conftest.er1 >conftest.err
28302  rm -f conftest.er1
28303  cat conftest.err >&5
28304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28305  (exit $ac_status); } &&
28306	 { ac_try='test -z "$ac_c_werror_flag"
28307			 || test ! -s conftest.err'
28308  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28309  (eval $ac_try) 2>&5
28310  ac_status=$?
28311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28312  (exit $ac_status); }; } &&
28313	 { ac_try='test -s conftest$ac_exeext'
28314  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28315  (eval $ac_try) 2>&5
28316  ac_status=$?
28317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28318  (exit $ac_status); }; }; then
28319  LIBS="$flink_save_libs"
28320                     coin_need_flibs=yes
28321                     use_blas='mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib'
28322                                 echo "$as_me:$LINENO: result: yes: $use_blas" >&5
28323echo "${ECHO_T}yes: $use_blas" >&6
28324
28325
28326else
28327  echo "$as_me: failed program was:" >&5
28328sed 's/^/| /' conftest.$ac_ext >&5
28329
28330LIBS="$flink_save_libs"
28331                     echo "$as_me:$LINENO: result: no" >&5
28332echo "${ECHO_T}no" >&6
28333fi
28334rm -f conftest.err conftest.$ac_objext \
28335      conftest$ac_exeext conftest.$ac_ext
28336      else
28337        echo "$as_me:$LINENO: result: no" >&5
28338echo "${ECHO_T}no" >&6
28339      fi
28340    fi
28341    ;;
28342  cc|cpp)
28343    ac_ext=f
28344ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
28345ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28346ac_compiler_gnu=$ac_cv_f77_compiler_gnu
28347case $ac_cv_f77_mangling in
28348  upper*) ac_val="DAXPY" ;;
28349  lower*) ac_val="daxpy" ;;
28350  *)      ac_val="unknown" ;;
28351esac
28352case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
28353
28354cfuncdaxpy="$ac_val"
28355
28356ac_ext=c
28357ac_cpp='$CPP $CPPFLAGS'
28358ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28359ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28360ac_compiler_gnu=$ac_cv_c_compiler_gnu
28361
28362    if test x"$coin_need_flibs" = xyes; then
28363      flink_try=no;
28364    else
28365      cat >conftest.$ac_ext <<_ACEOF
28366/* confdefs.h.  */
28367_ACEOF
28368cat confdefs.h >>conftest.$ac_ext
28369cat >>conftest.$ac_ext <<_ACEOF
28370/* end confdefs.h.  */
28371extern "C" {void $cfuncdaxpy();}
28372#ifdef F77_DUMMY_MAIN
28373
28374#  ifdef __cplusplus
28375     extern "C"
28376#  endif
28377   int F77_DUMMY_MAIN() { return 1; }
28378
28379#endif
28380int
28381main ()
28382{
28383$cfuncdaxpy()
28384  ;
28385  return 0;
28386}
28387_ACEOF
28388rm -f conftest.$ac_objext conftest$ac_exeext
28389if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28390  (eval $ac_link) 2>conftest.er1
28391  ac_status=$?
28392  grep -v '^ *+' conftest.er1 >conftest.err
28393  rm -f conftest.er1
28394  cat conftest.err >&5
28395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28396  (exit $ac_status); } &&
28397	 { ac_try='test -z "$ac_c_werror_flag"
28398			 || test ! -s conftest.err'
28399  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28400  (eval $ac_try) 2>&5
28401  ac_status=$?
28402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28403  (exit $ac_status); }; } &&
28404	 { ac_try='test -s conftest$ac_exeext'
28405  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28406  (eval $ac_try) 2>&5
28407  ac_status=$?
28408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28409  (exit $ac_status); }; }; then
28410  flink_try=yes
28411else
28412  echo "$as_me: failed program was:" >&5
28413sed 's/^/| /' conftest.$ac_ext >&5
28414
28415flink_try=no
28416fi
28417rm -f conftest.err conftest.$ac_objext \
28418      conftest$ac_exeext conftest.$ac_ext
28419    fi
28420    if test $flink_try = yes; then
28421      use_blas='mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib'
28422                                 echo "$as_me:$LINENO: result: yes: $use_blas" >&5
28423echo "${ECHO_T}yes: $use_blas" >&6
28424
28425    else
28426      if test x"$FLIBS" != x; then
28427        flink_save_libs="$LIBS"
28428        LIBS="$LIBS $FLIBS"
28429        cat >conftest.$ac_ext <<_ACEOF
28430/* confdefs.h.  */
28431_ACEOF
28432cat confdefs.h >>conftest.$ac_ext
28433cat >>conftest.$ac_ext <<_ACEOF
28434/* end confdefs.h.  */
28435extern "C" {void $cfuncdaxpy();}
28436#ifdef F77_DUMMY_MAIN
28437
28438#  ifdef __cplusplus
28439     extern "C"
28440#  endif
28441   int F77_DUMMY_MAIN() { return 1; }
28442
28443#endif
28444int
28445main ()
28446{
28447$cfuncdaxpy()
28448  ;
28449  return 0;
28450}
28451_ACEOF
28452rm -f conftest.$ac_objext conftest$ac_exeext
28453if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28454  (eval $ac_link) 2>conftest.er1
28455  ac_status=$?
28456  grep -v '^ *+' conftest.er1 >conftest.err
28457  rm -f conftest.er1
28458  cat conftest.err >&5
28459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28460  (exit $ac_status); } &&
28461	 { ac_try='test -z "$ac_c_werror_flag"
28462			 || test ! -s conftest.err'
28463  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28464  (eval $ac_try) 2>&5
28465  ac_status=$?
28466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28467  (exit $ac_status); }; } &&
28468	 { ac_try='test -s conftest$ac_exeext'
28469  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28470  (eval $ac_try) 2>&5
28471  ac_status=$?
28472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28473  (exit $ac_status); }; }; then
28474  LIBS="$flink_save_libs"
28475                     coin_need_flibs=yes
28476                     use_blas='mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib'
28477                                 echo "$as_me:$LINENO: result: yes: $use_blas" >&5
28478echo "${ECHO_T}yes: $use_blas" >&6
28479
28480
28481else
28482  echo "$as_me: failed program was:" >&5
28483sed 's/^/| /' conftest.$ac_ext >&5
28484
28485LIBS="$flink_save_libs"
28486                     echo "$as_me:$LINENO: result: no" >&5
28487echo "${ECHO_T}no" >&6
28488fi
28489rm -f conftest.err conftest.$ac_objext \
28490      conftest$ac_exeext conftest.$ac_ext
28491      else
28492        echo "$as_me:$LINENO: result: no" >&5
28493echo "${ECHO_T}no" >&6
28494      fi
28495    fi
28496    ;;
28497esac
28498
28499            else
28500              { echo "$as_me:$LINENO: for BLAS in MKL (64bit) using C linkage" >&5
28501echo "$as_me: for BLAS in MKL (64bit) using C linkage" >&6;}
28502              # unset cached outcome of test with 32bit MKL
28503              unset ac_cv_func_daxpy
28504              ac_ext=c
28505ac_cpp='$CPP $CPPFLAGS'
28506ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28507ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28508ac_compiler_gnu=$ac_cv_c_compiler_gnu
28509
28510              echo "$as_me:$LINENO: checking for daxpy" >&5
28511echo $ECHO_N "checking for daxpy... $ECHO_C" >&6
28512if test "${ac_cv_func_daxpy+set}" = set; then
28513  echo $ECHO_N "(cached) $ECHO_C" >&6
28514else
28515  cat >conftest.$ac_ext <<_ACEOF
28516/* confdefs.h.  */
28517_ACEOF
28518cat confdefs.h >>conftest.$ac_ext
28519cat >>conftest.$ac_ext <<_ACEOF
28520/* end confdefs.h.  */
28521/* Define daxpy to an innocuous variant, in case <limits.h> declares daxpy.
28522   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28523#define daxpy innocuous_daxpy
28524
28525/* System header to define __stub macros and hopefully few prototypes,
28526    which can conflict with char daxpy (); below.
28527    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28528    <limits.h> exists even on freestanding compilers.  */
28529
28530#ifdef __STDC__
28531# include <limits.h>
28532#else
28533# include <assert.h>
28534#endif
28535
28536#undef daxpy
28537
28538/* Override any gcc2 internal prototype to avoid an error.  */
28539#ifdef __cplusplus
28540extern "C"
28541{
28542#endif
28543/* We use char because int might match the return type of a gcc2
28544   builtin and then its argument prototype would still apply.  */
28545char daxpy ();
28546/* The GNU C library defines this for functions which it implements
28547    to always fail with ENOSYS.  Some functions are actually named
28548    something starting with __ and the normal name is an alias.  */
28549#if defined (__stub_daxpy) || defined (__stub___daxpy)
28550choke me
28551#else
28552char (*f) () = daxpy;
28553#endif
28554#ifdef __cplusplus
28555}
28556#endif
28557
28558#ifdef F77_DUMMY_MAIN
28559
28560#  ifdef __cplusplus
28561     extern "C"
28562#  endif
28563   int F77_DUMMY_MAIN() { return 1; }
28564
28565#endif
28566int
28567main ()
28568{
28569return f != daxpy;
28570  ;
28571  return 0;
28572}
28573_ACEOF
28574rm -f conftest.$ac_objext conftest$ac_exeext
28575if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28576  (eval $ac_link) 2>conftest.er1
28577  ac_status=$?
28578  grep -v '^ *+' conftest.er1 >conftest.err
28579  rm -f conftest.er1
28580  cat conftest.err >&5
28581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28582  (exit $ac_status); } &&
28583	 { ac_try='test -z "$ac_c_werror_flag"
28584			 || test ! -s conftest.err'
28585  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28586  (eval $ac_try) 2>&5
28587  ac_status=$?
28588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28589  (exit $ac_status); }; } &&
28590	 { ac_try='test -s conftest$ac_exeext'
28591  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28592  (eval $ac_try) 2>&5
28593  ac_status=$?
28594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28595  (exit $ac_status); }; }; then
28596  ac_cv_func_daxpy=yes
28597else
28598  echo "$as_me: failed program was:" >&5
28599sed 's/^/| /' conftest.$ac_ext >&5
28600
28601ac_cv_func_daxpy=no
28602fi
28603rm -f conftest.err conftest.$ac_objext \
28604      conftest$ac_exeext conftest.$ac_ext
28605fi
28606echo "$as_me:$LINENO: result: $ac_cv_func_daxpy" >&5
28607echo "${ECHO_T}$ac_cv_func_daxpy" >&6
28608if test $ac_cv_func_daxpy = yes; then
28609  use_blas='mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib'
28610fi
28611
28612              ac_ext=c
28613ac_cpp='$CPP $CPPFLAGS'
28614ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28615ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28616ac_compiler_gnu=$ac_cv_c_compiler_gnu
28617
28618            fi
28619            LIBS="$coin_save_LIBS"
28620          fi
28621          ;;
28622      esac
28623      ;;
28624
28625     *-darwin*)
28626      echo "$as_me:$LINENO: checking for BLAS in Veclib" >&5
28627echo $ECHO_N "checking for BLAS in Veclib... $ECHO_C" >&6
28628      coin_need_flibs=no
28629      coin_save_LIBS="$LIBS"
28630      LIBS="-framework Accelerate $LIBS"
28631      case $ac_ext in
28632  f)
28633    cat >conftest.$ac_ext <<_ACEOF
28634/* confdefs.h.  */
28635_ACEOF
28636cat confdefs.h >>conftest.$ac_ext
28637cat >>conftest.$ac_ext <<_ACEOF
28638/* end confdefs.h.  */
28639
28640#ifdef F77_DUMMY_MAIN
28641
28642#  ifdef __cplusplus
28643     extern "C"
28644#  endif
28645   int F77_DUMMY_MAIN() { return 1; }
28646
28647#endif
28648int
28649main ()
28650{
28651      call daxpy
28652  ;
28653  return 0;
28654}
28655_ACEOF
28656rm -f conftest.$ac_objext conftest$ac_exeext
28657if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28658  (eval $ac_link) 2>conftest.er1
28659  ac_status=$?
28660  grep -v '^ *+' conftest.er1 >conftest.err
28661  rm -f conftest.er1
28662  cat conftest.err >&5
28663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28664  (exit $ac_status); } &&
28665	 { ac_try='test -z "$ac_c_werror_flag"
28666			 || test ! -s conftest.err'
28667  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28668  (eval $ac_try) 2>&5
28669  ac_status=$?
28670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28671  (exit $ac_status); }; } &&
28672	 { ac_try='test -s conftest$ac_exeext'
28673  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28674  (eval $ac_try) 2>&5
28675  ac_status=$?
28676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28677  (exit $ac_status); }; }; then
28678  use_blas='-framework Accelerate'
28679                         if test $coin_need_flibs = yes ; then
28680                           use_blas="$use_blas $FLIBS"
28681                         fi
28682                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
28683echo "${ECHO_T}yes: $use_blas" >&6
28684
28685else
28686  echo "$as_me: failed program was:" >&5
28687sed 's/^/| /' conftest.$ac_ext >&5
28688
28689echo "$as_me:$LINENO: result: no" >&5
28690echo "${ECHO_T}no" >&6
28691fi
28692rm -f conftest.err conftest.$ac_objext \
28693      conftest$ac_exeext conftest.$ac_ext
28694    ;;
28695  c)
28696    ac_ext=f
28697ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
28698ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28699ac_compiler_gnu=$ac_cv_f77_compiler_gnu
28700case $ac_cv_f77_mangling in
28701  upper*) ac_val="DAXPY" ;;
28702  lower*) ac_val="daxpy" ;;
28703  *)      ac_val="unknown" ;;
28704esac
28705case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
28706
28707cfuncdaxpy="$ac_val"
28708
28709ac_ext=c
28710ac_cpp='$CPP $CPPFLAGS'
28711ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28712ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28713ac_compiler_gnu=$ac_cv_c_compiler_gnu
28714
28715    if test x"$coin_need_flibs" = xyes; then
28716      flink_try=no;
28717    else
28718      cat >conftest.$ac_ext <<_ACEOF
28719/* confdefs.h.  */
28720_ACEOF
28721cat confdefs.h >>conftest.$ac_ext
28722cat >>conftest.$ac_ext <<_ACEOF
28723/* end confdefs.h.  */
28724void $cfuncdaxpy();
28725#ifdef F77_DUMMY_MAIN
28726
28727#  ifdef __cplusplus
28728     extern "C"
28729#  endif
28730   int F77_DUMMY_MAIN() { return 1; }
28731
28732#endif
28733int
28734main ()
28735{
28736$cfuncdaxpy()
28737  ;
28738  return 0;
28739}
28740_ACEOF
28741rm -f conftest.$ac_objext conftest$ac_exeext
28742if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28743  (eval $ac_link) 2>conftest.er1
28744  ac_status=$?
28745  grep -v '^ *+' conftest.er1 >conftest.err
28746  rm -f conftest.er1
28747  cat conftest.err >&5
28748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28749  (exit $ac_status); } &&
28750	 { ac_try='test -z "$ac_c_werror_flag"
28751			 || test ! -s conftest.err'
28752  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28753  (eval $ac_try) 2>&5
28754  ac_status=$?
28755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28756  (exit $ac_status); }; } &&
28757	 { ac_try='test -s conftest$ac_exeext'
28758  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28759  (eval $ac_try) 2>&5
28760  ac_status=$?
28761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28762  (exit $ac_status); }; }; then
28763  flink_try=yes
28764else
28765  echo "$as_me: failed program was:" >&5
28766sed 's/^/| /' conftest.$ac_ext >&5
28767
28768flink_try=no
28769fi
28770rm -f conftest.err conftest.$ac_objext \
28771      conftest$ac_exeext conftest.$ac_ext
28772    fi
28773    if test $flink_try = yes; then
28774      use_blas='-framework Accelerate'
28775                         if test $coin_need_flibs = yes ; then
28776                           use_blas="$use_blas $FLIBS"
28777                         fi
28778                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
28779echo "${ECHO_T}yes: $use_blas" >&6
28780
28781    else
28782      if test x"$FLIBS" != x; then
28783        flink_save_libs="$LIBS"
28784        LIBS="$LIBS $FLIBS"
28785        cat >conftest.$ac_ext <<_ACEOF
28786/* confdefs.h.  */
28787_ACEOF
28788cat confdefs.h >>conftest.$ac_ext
28789cat >>conftest.$ac_ext <<_ACEOF
28790/* end confdefs.h.  */
28791void $cfuncdaxpy();
28792#ifdef F77_DUMMY_MAIN
28793
28794#  ifdef __cplusplus
28795     extern "C"
28796#  endif
28797   int F77_DUMMY_MAIN() { return 1; }
28798
28799#endif
28800int
28801main ()
28802{
28803$cfuncdaxpy()
28804  ;
28805  return 0;
28806}
28807_ACEOF
28808rm -f conftest.$ac_objext conftest$ac_exeext
28809if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28810  (eval $ac_link) 2>conftest.er1
28811  ac_status=$?
28812  grep -v '^ *+' conftest.er1 >conftest.err
28813  rm -f conftest.er1
28814  cat conftest.err >&5
28815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28816  (exit $ac_status); } &&
28817	 { ac_try='test -z "$ac_c_werror_flag"
28818			 || test ! -s conftest.err'
28819  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28820  (eval $ac_try) 2>&5
28821  ac_status=$?
28822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28823  (exit $ac_status); }; } &&
28824	 { ac_try='test -s conftest$ac_exeext'
28825  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28826  (eval $ac_try) 2>&5
28827  ac_status=$?
28828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28829  (exit $ac_status); }; }; then
28830  LIBS="$flink_save_libs"
28831                     coin_need_flibs=yes
28832                     use_blas='-framework Accelerate'
28833                         if test $coin_need_flibs = yes ; then
28834                           use_blas="$use_blas $FLIBS"
28835                         fi
28836                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
28837echo "${ECHO_T}yes: $use_blas" >&6
28838
28839
28840else
28841  echo "$as_me: failed program was:" >&5
28842sed 's/^/| /' conftest.$ac_ext >&5
28843
28844LIBS="$flink_save_libs"
28845                     echo "$as_me:$LINENO: result: no" >&5
28846echo "${ECHO_T}no" >&6
28847fi
28848rm -f conftest.err conftest.$ac_objext \
28849      conftest$ac_exeext conftest.$ac_ext
28850      else
28851        echo "$as_me:$LINENO: result: no" >&5
28852echo "${ECHO_T}no" >&6
28853      fi
28854    fi
28855    ;;
28856  cc|cpp)
28857    ac_ext=f
28858ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
28859ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28860ac_compiler_gnu=$ac_cv_f77_compiler_gnu
28861case $ac_cv_f77_mangling in
28862  upper*) ac_val="DAXPY" ;;
28863  lower*) ac_val="daxpy" ;;
28864  *)      ac_val="unknown" ;;
28865esac
28866case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
28867
28868cfuncdaxpy="$ac_val"
28869
28870ac_ext=c
28871ac_cpp='$CPP $CPPFLAGS'
28872ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28873ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28874ac_compiler_gnu=$ac_cv_c_compiler_gnu
28875
28876    if test x"$coin_need_flibs" = xyes; then
28877      flink_try=no;
28878    else
28879      cat >conftest.$ac_ext <<_ACEOF
28880/* confdefs.h.  */
28881_ACEOF
28882cat confdefs.h >>conftest.$ac_ext
28883cat >>conftest.$ac_ext <<_ACEOF
28884/* end confdefs.h.  */
28885extern "C" {void $cfuncdaxpy();}
28886#ifdef F77_DUMMY_MAIN
28887
28888#  ifdef __cplusplus
28889     extern "C"
28890#  endif
28891   int F77_DUMMY_MAIN() { return 1; }
28892
28893#endif
28894int
28895main ()
28896{
28897$cfuncdaxpy()
28898  ;
28899  return 0;
28900}
28901_ACEOF
28902rm -f conftest.$ac_objext conftest$ac_exeext
28903if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28904  (eval $ac_link) 2>conftest.er1
28905  ac_status=$?
28906  grep -v '^ *+' conftest.er1 >conftest.err
28907  rm -f conftest.er1
28908  cat conftest.err >&5
28909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28910  (exit $ac_status); } &&
28911	 { ac_try='test -z "$ac_c_werror_flag"
28912			 || test ! -s conftest.err'
28913  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28914  (eval $ac_try) 2>&5
28915  ac_status=$?
28916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28917  (exit $ac_status); }; } &&
28918	 { ac_try='test -s conftest$ac_exeext'
28919  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28920  (eval $ac_try) 2>&5
28921  ac_status=$?
28922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28923  (exit $ac_status); }; }; then
28924  flink_try=yes
28925else
28926  echo "$as_me: failed program was:" >&5
28927sed 's/^/| /' conftest.$ac_ext >&5
28928
28929flink_try=no
28930fi
28931rm -f conftest.err conftest.$ac_objext \
28932      conftest$ac_exeext conftest.$ac_ext
28933    fi
28934    if test $flink_try = yes; then
28935      use_blas='-framework Accelerate'
28936                         if test $coin_need_flibs = yes ; then
28937                           use_blas="$use_blas $FLIBS"
28938                         fi
28939                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
28940echo "${ECHO_T}yes: $use_blas" >&6
28941
28942    else
28943      if test x"$FLIBS" != x; then
28944        flink_save_libs="$LIBS"
28945        LIBS="$LIBS $FLIBS"
28946        cat >conftest.$ac_ext <<_ACEOF
28947/* confdefs.h.  */
28948_ACEOF
28949cat confdefs.h >>conftest.$ac_ext
28950cat >>conftest.$ac_ext <<_ACEOF
28951/* end confdefs.h.  */
28952extern "C" {void $cfuncdaxpy();}
28953#ifdef F77_DUMMY_MAIN
28954
28955#  ifdef __cplusplus
28956     extern "C"
28957#  endif
28958   int F77_DUMMY_MAIN() { return 1; }
28959
28960#endif
28961int
28962main ()
28963{
28964$cfuncdaxpy()
28965  ;
28966  return 0;
28967}
28968_ACEOF
28969rm -f conftest.$ac_objext conftest$ac_exeext
28970if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28971  (eval $ac_link) 2>conftest.er1
28972  ac_status=$?
28973  grep -v '^ *+' conftest.er1 >conftest.err
28974  rm -f conftest.er1
28975  cat conftest.err >&5
28976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28977  (exit $ac_status); } &&
28978	 { ac_try='test -z "$ac_c_werror_flag"
28979			 || test ! -s conftest.err'
28980  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28981  (eval $ac_try) 2>&5
28982  ac_status=$?
28983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28984  (exit $ac_status); }; } &&
28985	 { ac_try='test -s conftest$ac_exeext'
28986  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28987  (eval $ac_try) 2>&5
28988  ac_status=$?
28989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28990  (exit $ac_status); }; }; then
28991  LIBS="$flink_save_libs"
28992                     coin_need_flibs=yes
28993                     use_blas='-framework Accelerate'
28994                         if test $coin_need_flibs = yes ; then
28995                           use_blas="$use_blas $FLIBS"
28996                         fi
28997                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
28998echo "${ECHO_T}yes: $use_blas" >&6
28999
29000
29001else
29002  echo "$as_me: failed program was:" >&5
29003sed 's/^/| /' conftest.$ac_ext >&5
29004
29005LIBS="$flink_save_libs"
29006                     echo "$as_me:$LINENO: result: no" >&5
29007echo "${ECHO_T}no" >&6
29008fi
29009rm -f conftest.err conftest.$ac_objext \
29010      conftest$ac_exeext conftest.$ac_ext
29011      else
29012        echo "$as_me:$LINENO: result: no" >&5
29013echo "${ECHO_T}no" >&6
29014      fi
29015    fi
29016    ;;
29017esac
29018
29019      LIBS="$coin_save_LIBS"
29020      ;;
29021  esac
29022
29023  if test -z "$use_blas" ; then
29024    echo "$as_me:$LINENO: checking whether -lblas has BLAS" >&5
29025echo $ECHO_N "checking whether -lblas has BLAS... $ECHO_C" >&6
29026    coin_need_flibs=no
29027    coin_save_LIBS="$LIBS"
29028    LIBS="-lblas $LIBS"
29029    case $ac_ext in
29030  f)
29031    cat >conftest.$ac_ext <<_ACEOF
29032/* confdefs.h.  */
29033_ACEOF
29034cat confdefs.h >>conftest.$ac_ext
29035cat >>conftest.$ac_ext <<_ACEOF
29036/* end confdefs.h.  */
29037
29038#ifdef F77_DUMMY_MAIN
29039
29040#  ifdef __cplusplus
29041     extern "C"
29042#  endif
29043   int F77_DUMMY_MAIN() { return 1; }
29044
29045#endif
29046int
29047main ()
29048{
29049      call daxpy
29050  ;
29051  return 0;
29052}
29053_ACEOF
29054rm -f conftest.$ac_objext conftest$ac_exeext
29055if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29056  (eval $ac_link) 2>conftest.er1
29057  ac_status=$?
29058  grep -v '^ *+' conftest.er1 >conftest.err
29059  rm -f conftest.er1
29060  cat conftest.err >&5
29061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29062  (exit $ac_status); } &&
29063	 { ac_try='test -z "$ac_c_werror_flag"
29064			 || test ! -s conftest.err'
29065  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29066  (eval $ac_try) 2>&5
29067  ac_status=$?
29068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29069  (exit $ac_status); }; } &&
29070	 { ac_try='test -s conftest$ac_exeext'
29071  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29072  (eval $ac_try) 2>&5
29073  ac_status=$?
29074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29075  (exit $ac_status); }; }; then
29076  use_blas='-lblas'
29077                       if test $coin_need_flibs = yes ; then
29078                         use_blas="$use_blas $FLIBS"
29079                       fi
29080                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
29081echo "${ECHO_T}yes: $use_blas" >&6
29082
29083else
29084  echo "$as_me: failed program was:" >&5
29085sed 's/^/| /' conftest.$ac_ext >&5
29086
29087echo "$as_me:$LINENO: result: no" >&5
29088echo "${ECHO_T}no" >&6
29089fi
29090rm -f conftest.err conftest.$ac_objext \
29091      conftest$ac_exeext conftest.$ac_ext
29092    ;;
29093  c)
29094    ac_ext=f
29095ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
29096ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29097ac_compiler_gnu=$ac_cv_f77_compiler_gnu
29098case $ac_cv_f77_mangling in
29099  upper*) ac_val="DAXPY" ;;
29100  lower*) ac_val="daxpy" ;;
29101  *)      ac_val="unknown" ;;
29102esac
29103case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
29104
29105cfuncdaxpy="$ac_val"
29106
29107ac_ext=c
29108ac_cpp='$CPP $CPPFLAGS'
29109ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29110ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29111ac_compiler_gnu=$ac_cv_c_compiler_gnu
29112
29113    if test x"$coin_need_flibs" = xyes; then
29114      flink_try=no;
29115    else
29116      cat >conftest.$ac_ext <<_ACEOF
29117/* confdefs.h.  */
29118_ACEOF
29119cat confdefs.h >>conftest.$ac_ext
29120cat >>conftest.$ac_ext <<_ACEOF
29121/* end confdefs.h.  */
29122void $cfuncdaxpy();
29123#ifdef F77_DUMMY_MAIN
29124
29125#  ifdef __cplusplus
29126     extern "C"
29127#  endif
29128   int F77_DUMMY_MAIN() { return 1; }
29129
29130#endif
29131int
29132main ()
29133{
29134$cfuncdaxpy()
29135  ;
29136  return 0;
29137}
29138_ACEOF
29139rm -f conftest.$ac_objext conftest$ac_exeext
29140if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29141  (eval $ac_link) 2>conftest.er1
29142  ac_status=$?
29143  grep -v '^ *+' conftest.er1 >conftest.err
29144  rm -f conftest.er1
29145  cat conftest.err >&5
29146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29147  (exit $ac_status); } &&
29148	 { ac_try='test -z "$ac_c_werror_flag"
29149			 || test ! -s conftest.err'
29150  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29151  (eval $ac_try) 2>&5
29152  ac_status=$?
29153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29154  (exit $ac_status); }; } &&
29155	 { ac_try='test -s conftest$ac_exeext'
29156  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29157  (eval $ac_try) 2>&5
29158  ac_status=$?
29159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29160  (exit $ac_status); }; }; then
29161  flink_try=yes
29162else
29163  echo "$as_me: failed program was:" >&5
29164sed 's/^/| /' conftest.$ac_ext >&5
29165
29166flink_try=no
29167fi
29168rm -f conftest.err conftest.$ac_objext \
29169      conftest$ac_exeext conftest.$ac_ext
29170    fi
29171    if test $flink_try = yes; then
29172      use_blas='-lblas'
29173                       if test $coin_need_flibs = yes ; then
29174                         use_blas="$use_blas $FLIBS"
29175                       fi
29176                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
29177echo "${ECHO_T}yes: $use_blas" >&6
29178
29179    else
29180      if test x"$FLIBS" != x; then
29181        flink_save_libs="$LIBS"
29182        LIBS="$LIBS $FLIBS"
29183        cat >conftest.$ac_ext <<_ACEOF
29184/* confdefs.h.  */
29185_ACEOF
29186cat confdefs.h >>conftest.$ac_ext
29187cat >>conftest.$ac_ext <<_ACEOF
29188/* end confdefs.h.  */
29189void $cfuncdaxpy();
29190#ifdef F77_DUMMY_MAIN
29191
29192#  ifdef __cplusplus
29193     extern "C"
29194#  endif
29195   int F77_DUMMY_MAIN() { return 1; }
29196
29197#endif
29198int
29199main ()
29200{
29201$cfuncdaxpy()
29202  ;
29203  return 0;
29204}
29205_ACEOF
29206rm -f conftest.$ac_objext conftest$ac_exeext
29207if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29208  (eval $ac_link) 2>conftest.er1
29209  ac_status=$?
29210  grep -v '^ *+' conftest.er1 >conftest.err
29211  rm -f conftest.er1
29212  cat conftest.err >&5
29213  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29214  (exit $ac_status); } &&
29215	 { ac_try='test -z "$ac_c_werror_flag"
29216			 || test ! -s conftest.err'
29217  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29218  (eval $ac_try) 2>&5
29219  ac_status=$?
29220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29221  (exit $ac_status); }; } &&
29222	 { ac_try='test -s conftest$ac_exeext'
29223  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29224  (eval $ac_try) 2>&5
29225  ac_status=$?
29226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29227  (exit $ac_status); }; }; then
29228  LIBS="$flink_save_libs"
29229                     coin_need_flibs=yes
29230                     use_blas='-lblas'
29231                       if test $coin_need_flibs = yes ; then
29232                         use_blas="$use_blas $FLIBS"
29233                       fi
29234                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
29235echo "${ECHO_T}yes: $use_blas" >&6
29236
29237
29238else
29239  echo "$as_me: failed program was:" >&5
29240sed 's/^/| /' conftest.$ac_ext >&5
29241
29242LIBS="$flink_save_libs"
29243                     echo "$as_me:$LINENO: result: no" >&5
29244echo "${ECHO_T}no" >&6
29245fi
29246rm -f conftest.err conftest.$ac_objext \
29247      conftest$ac_exeext conftest.$ac_ext
29248      else
29249        echo "$as_me:$LINENO: result: no" >&5
29250echo "${ECHO_T}no" >&6
29251      fi
29252    fi
29253    ;;
29254  cc|cpp)
29255    ac_ext=f
29256ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
29257ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29258ac_compiler_gnu=$ac_cv_f77_compiler_gnu
29259case $ac_cv_f77_mangling in
29260  upper*) ac_val="DAXPY" ;;
29261  lower*) ac_val="daxpy" ;;
29262  *)      ac_val="unknown" ;;
29263esac
29264case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
29265
29266cfuncdaxpy="$ac_val"
29267
29268ac_ext=c
29269ac_cpp='$CPP $CPPFLAGS'
29270ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29271ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29272ac_compiler_gnu=$ac_cv_c_compiler_gnu
29273
29274    if test x"$coin_need_flibs" = xyes; then
29275      flink_try=no;
29276    else
29277      cat >conftest.$ac_ext <<_ACEOF
29278/* confdefs.h.  */
29279_ACEOF
29280cat confdefs.h >>conftest.$ac_ext
29281cat >>conftest.$ac_ext <<_ACEOF
29282/* end confdefs.h.  */
29283extern "C" {void $cfuncdaxpy();}
29284#ifdef F77_DUMMY_MAIN
29285
29286#  ifdef __cplusplus
29287     extern "C"
29288#  endif
29289   int F77_DUMMY_MAIN() { return 1; }
29290
29291#endif
29292int
29293main ()
29294{
29295$cfuncdaxpy()
29296  ;
29297  return 0;
29298}
29299_ACEOF
29300rm -f conftest.$ac_objext conftest$ac_exeext
29301if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29302  (eval $ac_link) 2>conftest.er1
29303  ac_status=$?
29304  grep -v '^ *+' conftest.er1 >conftest.err
29305  rm -f conftest.er1
29306  cat conftest.err >&5
29307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29308  (exit $ac_status); } &&
29309	 { ac_try='test -z "$ac_c_werror_flag"
29310			 || test ! -s conftest.err'
29311  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29312  (eval $ac_try) 2>&5
29313  ac_status=$?
29314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29315  (exit $ac_status); }; } &&
29316	 { ac_try='test -s conftest$ac_exeext'
29317  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29318  (eval $ac_try) 2>&5
29319  ac_status=$?
29320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29321  (exit $ac_status); }; }; then
29322  flink_try=yes
29323else
29324  echo "$as_me: failed program was:" >&5
29325sed 's/^/| /' conftest.$ac_ext >&5
29326
29327flink_try=no
29328fi
29329rm -f conftest.err conftest.$ac_objext \
29330      conftest$ac_exeext conftest.$ac_ext
29331    fi
29332    if test $flink_try = yes; then
29333      use_blas='-lblas'
29334                       if test $coin_need_flibs = yes ; then
29335                         use_blas="$use_blas $FLIBS"
29336                       fi
29337                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
29338echo "${ECHO_T}yes: $use_blas" >&6
29339
29340    else
29341      if test x"$FLIBS" != x; then
29342        flink_save_libs="$LIBS"
29343        LIBS="$LIBS $FLIBS"
29344        cat >conftest.$ac_ext <<_ACEOF
29345/* confdefs.h.  */
29346_ACEOF
29347cat confdefs.h >>conftest.$ac_ext
29348cat >>conftest.$ac_ext <<_ACEOF
29349/* end confdefs.h.  */
29350extern "C" {void $cfuncdaxpy();}
29351#ifdef F77_DUMMY_MAIN
29352
29353#  ifdef __cplusplus
29354     extern "C"
29355#  endif
29356   int F77_DUMMY_MAIN() { return 1; }
29357
29358#endif
29359int
29360main ()
29361{
29362$cfuncdaxpy()
29363  ;
29364  return 0;
29365}
29366_ACEOF
29367rm -f conftest.$ac_objext conftest$ac_exeext
29368if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29369  (eval $ac_link) 2>conftest.er1
29370  ac_status=$?
29371  grep -v '^ *+' conftest.er1 >conftest.err
29372  rm -f conftest.er1
29373  cat conftest.err >&5
29374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29375  (exit $ac_status); } &&
29376	 { ac_try='test -z "$ac_c_werror_flag"
29377			 || test ! -s conftest.err'
29378  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29379  (eval $ac_try) 2>&5
29380  ac_status=$?
29381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29382  (exit $ac_status); }; } &&
29383	 { ac_try='test -s conftest$ac_exeext'
29384  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29385  (eval $ac_try) 2>&5
29386  ac_status=$?
29387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29388  (exit $ac_status); }; }; then
29389  LIBS="$flink_save_libs"
29390                     coin_need_flibs=yes
29391                     use_blas='-lblas'
29392                       if test $coin_need_flibs = yes ; then
29393                         use_blas="$use_blas $FLIBS"
29394                       fi
29395                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
29396echo "${ECHO_T}yes: $use_blas" >&6
29397
29398
29399else
29400  echo "$as_me: failed program was:" >&5
29401sed 's/^/| /' conftest.$ac_ext >&5
29402
29403LIBS="$flink_save_libs"
29404                     echo "$as_me:$LINENO: result: no" >&5
29405echo "${ECHO_T}no" >&6
29406fi
29407rm -f conftest.err conftest.$ac_objext \
29408      conftest$ac_exeext conftest.$ac_ext
29409      else
29410        echo "$as_me:$LINENO: result: no" >&5
29411echo "${ECHO_T}no" >&6
29412      fi
29413    fi
29414    ;;
29415esac
29416
29417    LIBS="$coin_save_LIBS"
29418  fi
29419
29420  # If we have no other ideas, consider building BLAS.
29421  if test -z "$use_blas" ; then
29422    use_blas=BUILD
29423  fi
29424fi
29425
29426if test "x$use_blas" = xBUILD ; then
29427
29428echo "$as_me:$LINENO: checking for COIN-OR package Blas" >&5
29429echo $ECHO_N "checking for COIN-OR package Blas... $ECHO_C" >&6
29430
29431coin_has_blas=notGiven
29432
29433# check if user wants to skip package in any case
29434if test x"$COIN_SKIP_PROJECTS" != x; then
29435  for dir in $COIN_SKIP_PROJECTS; do
29436    if test $dir = "Blas"; then
29437      coin_has_blas=skipping
29438    fi
29439  done
29440fi
29441
29442if test "$coin_has_blas" != skipping; then
29443
29444# Check whether --with-m4_tolower(Blas) or --without-m4_tolower(Blas) was given.
29445if test "${with_blas+set}" = set; then
29446  withval="$with_blas"
29447  if test "$withval" = no ; then
29448       coin_has_blas=skipping
29449     fi
29450
29451fi;
29452fi
29453
29454BLAS_LIBS=
29455BLAS_CFLAGS=
29456BLAS_DATA=
29457BLAS_DEPENDENCIES=
29458BLAS_PCLIBS=
29459BLAS_PCREQUIRES=
29460
29461
29462
29463
29464
29465
29466
29467
29468
29469
29470
29471
29472
29473
29474
29475
29476
29477#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
29478if test $coin_has_blas != skipping; then
29479
29480# Check whether --with-m4_tolower(Blas)-lib or --without-m4_tolower(Blas)-lib was given.
29481if test "${with_blas_lib+set}" = set; then
29482  withval="$with_blas_lib"
29483  if test "$withval" = no ; then
29484       coin_has_blas=skipping
29485     else
29486       coin_has_blas=yes
29487       BLAS_LIBS="$withval"
29488       BLAS_PCLIBS="$withval"
29489
29490         CLPLIB_PCLIBS="$withval $CLPLIB_PCLIBS"
29491         CLPLIB_LIBS="$withval $CLPLIB_LIBS"
29492
29493       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
29494       if test -z "$PKG_CONFIG" ; then
29495         BLAS_LIBS_INSTALLED="$withval"
29496         CLPLIB_LIBS_INSTALLED="$withval $CLPLIB_LIBS_INSTALLED"
29497       fi
29498     fi
29499
29500fi;
29501fi
29502
29503if test $coin_has_blas != skipping; then
29504
29505# Check whether --with-m4_tolower(Blas)-incdir or --without-m4_tolower(Blas)-incdir was given.
29506if test "${with_blas_incdir+set}" = set; then
29507  withval="$with_blas_incdir"
29508  if test "$withval" = no ; then
29509       coin_has_blas=skipping
29510     else
29511       coin_has_blas=yes
29512       BLAS_CFLAGS="-I`${CYGPATH_W} $withval`"
29513       CLPLIB_CFLAGS="-I`${CYGPATH_W} $withval` $CLPLIB_CFLAGS"
29514       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
29515       if test -z "$PKG_CONFIG" ; then
29516         BLAS_CFLAGS_INSTALLED="$BLAS_CFLAGS"
29517         CLPLIB_CFLAGS_INSTALLED="$BLAS_CFLAGS $CLPLIB_CFLAGS_INSTALLED"
29518       fi
29519     fi
29520
29521fi;
29522fi
29523
29524if test $coin_has_blas != skipping; then
29525
29526# Check whether --with-m4_tolower(Blas)-datadir or --without-m4_tolower(Blas)-datadir was given.
29527if test "${with_blas_datadir+set}" = set; then
29528  withval="$with_blas_datadir"
29529  if test "$withval" = no ; then
29530       coin_has_blas=skipping
29531     else
29532       coin_has_blas=yes
29533       BLAS_DATA="$withval"
29534       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
29535       if test -z "$PKG_CONFIG" ; then
29536         BLAS_DATA_INSTALLED="$withval"
29537       fi
29538     fi
29539
29540fi;
29541fi
29542
29543if test $coin_has_blas = notGiven; then
29544  if test -n "$PKG_CONFIG" ; then
29545    # set search path for pkg-config
29546    # need to export variable to be sure that the following pkg-config gets these values
29547    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
29548    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
29549    export PKG_CONFIG_PATH
29550
29551    # let pkg-config do it's magic
29552
29553
29554
29555if test -n "$PKG_CONFIG" ; then
29556  if $PKG_CONFIG --exists "coinblas"; then
29557    BLAS_VERSIONS=`$PKG_CONFIG --modversion "coinblas" 2>/dev/null | tr '\n' ' '`
29558     cflags=`$PKG_CONFIG --cflags "coinblas" 2>/dev/null`
29559    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
29560	# thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
29561	# but only do this if is not trivial
29562    if test "$CYGPATH_W" != "echo" ; then
29563      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
29564      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
29565    fi
29566    BLAS_CFLAGS="$cflags"
29567    BLAS_LIBS=`$PKG_CONFIG --libs "coinblas" 2>/dev/null`
29568    BLAS_DATA=`$PKG_CONFIG --variable=datadir "coinblas" 2>/dev/null`
29569     coin_has_blas=yes
29570        echo "$as_me:$LINENO: result: yes: $BLAS_VERSIONS" >&5
29571echo "${ECHO_T}yes: $BLAS_VERSIONS" >&6
29572
29573        # adjust linker flags for (i)cl compiler
29574        # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl)
29575        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
29576        then
29577          BLAS_LIBS=`echo " $BLAS_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
29578        fi
29579        BLAS_PCREQUIRES="coinblas"
29580
29581        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in ClpLib
29582
29583          CLPLIB_PCREQUIRES="coinblas $CLPLIB_PCREQUIRES"
29584          CLPLIB_CFLAGS="$BLAS_CFLAGS $CLPLIB_CFLAGS"
29585          CLPLIB_LIBS="$BLAS_LIBS $CLPLIB_LIBS"
29586
29587
29588
29589  else
29590    BLAS_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "coinblas"`
29591      coin_has_blas=notGiven
29592        echo "$as_me:$LINENO: result: not given: $BLAS_PKG_ERRORS" >&5
29593echo "${ECHO_T}not given: $BLAS_PKG_ERRORS" >&6
29594
29595  fi
29596else
29597  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Blas without pkg-config\"" >&5
29598echo "$as_me: error: \"Cannot check for existance of module Blas without pkg-config\"" >&2;}
29599   { (exit 1); exit 1; }; }
29600fi
29601
29602
29603
29604
29605    # reset PKG_CONFIG_PATH variable
29606    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
29607    export PKG_CONFIG_PATH
29608
29609  else
29610    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
29611echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
29612
29613echo "$as_me:$LINENO: checking for COIN-OR package Blas (fallback)" >&5
29614echo $ECHO_N "checking for COIN-OR package Blas (fallback)... $ECHO_C" >&6
29615
29616coin_has_blas=notGiven
29617BLAS_LIBS=
29618BLAS_LIBS_INSTALLED=
29619BLAS_CFLAGS=
29620BLAS_CFLAGS_INSTALLED=
29621BLAS_DATA=
29622BLAS_DATA_INSTALLED=
29623BLAS_PCLIBS=
29624BLAS_PCREQUIRES=
29625
29626# initial list of dependencies is "coinblas", but we need to filter out version number specifications (= x, <= x, >= x, != x)
29627projtoprocess="coinblas"
29628
29629# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
29630# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
29631# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
29632# also, we setup the DATA variable
29633allproj=""
29634allpcfiles=""
29635allpcifiles=""
29636while test "x$projtoprocess" != x ; do
29637
29638  for proj in $projtoprocess ; do
29639    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
29640    pcfile=""
29641    save_IFS="$IFS"
29642    IFS=":"
29643    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
29644      # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again
29645      if test -r "$dir/${proj}-uninstalled.pc" ; then
29646        pcfile="$dir/$proj-uninstalled.pc"
29647        if test -r "$dir/${proj}.pc" ; then
29648          pcifile="$dir/${proj}.pc"
29649        else
29650          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
29651echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
29652          pcifile=
29653        fi
29654        break
29655      fi
29656    done
29657    IFS="$save_IFS"
29658
29659    if test "x$pcfile" != x ; then
29660      # read dependencies from $pcfile and filter it
29661      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ 	]\{0,\}[^ 	]\{1,\}//g'`
29662
29663      # add projrequires to the front of the list of projects that have to be processed next
29664      # at the same time, remove $proj from this list
29665      projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
29666
29667      # read DATA from $pcfile, if _DATA is still empty
29668      if test "x$BLAS_DATA" = x ; then
29669        projdatadir=
29670        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
29671        eval `sh -c "$pcfilemod"`
29672        BLAS_DATA="$projdatadir"
29673      fi
29674
29675      allproj="$allproj $proj"
29676      allpcfiles="$pcfile:$allpcfiles"
29677
29678    else
29679      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
29680echo "${ECHO_T}no, dependency $proj not available" >&6
29681      allproj=fail
29682      break 2
29683    fi
29684
29685    if test "x$pcifile" != x ; then
29686      allpcifiles="$pcifile:$allpcifiles"
29687
29688      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
29689      if test "x$BLAS_DATA_INSTALLED" = x ; then
29690        projdatadir=
29691        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
29692        eval `sh -c "$pcifilemod"`
29693        if test "${CYGPATH_W}" != "echo"; then
29694          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
29695        fi
29696        BLAS_DATA_INSTALLED="$projdatadir"
29697      fi
29698
29699    fi
29700
29701    break
29702  done
29703
29704  # remove spaces on begin of $projtoprocess
29705  projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
29706
29707done
29708
29709if test "$allproj" != fail ; then
29710
29711  # now go through the list of .pc files and assemble compiler and linker flags
29712  # important is here to obey the reverse order that has been setup before,
29713  # since then libraries that are required by several others should be after these other libraries
29714  pcfilesprocessed=""
29715
29716  save_IFS="$IFS"
29717  IFS=":"
29718  for pcfile in $allpcfiles ; do
29719
29720    # if $pcfile has been processed already, skip this round
29721    if test "x$pcfilesprocessed" != x ; then
29722      for pcfiledone in $pcfilesprocessed ; do
29723        if test "$pcfiledone" = "$pcfile" ; then
29724          continue 2
29725        fi
29726      done
29727    fi
29728
29729    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
29730    #   replace "Libs:" by "echo projlibs="
29731    #   replace "Cflags:" by "echo projcflags="
29732    #   remove every line starting with <some word>:
29733    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
29734
29735    # set projcflags and projlibs variables by running $pcfilemod
29736    # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
29737    projcflags=
29738    projlibs=
29739    IFS="$save_IFS"
29740    eval `sh -c "$pcfilemod"`
29741    IFS=":"
29742
29743    # add CYGPATH_W cludge into include flags and set CFLAGS variable
29744    if test "${CYGPATH_W}" != "echo"; then
29745      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
29746    fi
29747    BLAS_CFLAGS="$projcflags $BLAS_CFLAGS"
29748
29749    # set LIBS variable
29750    BLAS_LIBS="$projlibs $BLAS_LIBS"
29751
29752    # remember that we have processed $pcfile
29753    pcfilesprocessed="$pcfilesprocessed:$pcfile"
29754
29755  done
29756  IFS="$save_IFS"
29757
29758
29759  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
29760  # important is here again to obey the reverse order that has been setup before,
29761  # since then libraries that are required by several others should be after these other libraries
29762  pcfilesprocessed=""
29763
29764  save_IFS="$IFS"
29765  IFS=":"
29766  for pcfile in $allpcifiles ; do
29767
29768    # if $pcfile has been processed already, skip this round
29769    if test "x$pcfilesprocessed" != x ; then
29770      for pcfiledone in $pcfilesprocessed ; do
29771        if test "$pcfiledone" = "$pcfile" ; then
29772          continue 2
29773        fi
29774      done
29775    fi
29776
29777    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
29778    #   replace "Libs:" by "echo projlibs="
29779    #   replace "Cflags:" by "echo projcflags="
29780    #   remove every line starting with <some word>:
29781    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
29782
29783    # set projcflags and projlibs variables by running $pcfilemod
29784    # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
29785    projcflags=
29786    projlibs=
29787    IFS="$save_IFS"
29788    eval `sh -c "$pcfilemod"`
29789    IFS=":"
29790
29791    # add CYGPATH_W cludge into include flags and set CFLAGS variable
29792    if test "${CYGPATH_W}" != "echo"; then
29793      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
29794    fi
29795    BLAS_CFLAGS_INSTALLED="$projcflags $BLAS_CFLAGS_INSTALLED"
29796
29797    # set LIBS variable
29798    BLAS_LIBS_INSTALLED="$projlibs $BLAS_LIBS_INSTALLED"
29799
29800    # remember that we have processed $pcfile
29801    pcfilesprocessed="$pcfilesprocessed:$pcfile"
29802
29803  done
29804  IFS="$save_IFS"
29805
29806
29807  # finish up
29808  coin_has_blas=yes
29809  echo "$as_me:$LINENO: result: yes" >&5
29810echo "${ECHO_T}yes" >&6
29811
29812cat >>confdefs.h <<\_ACEOF
29813#define COIN_HAS_BLAS 1
29814_ACEOF
29815
29816
29817  # adjust linker flags for (i)cl compiler
29818  # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl),
29819  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
29820  #    everything of the form "-lname" by "libname.lib", and
29821  #    everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
29822  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
29823  then
29824    BLAS_LIBS=`echo " $BLAS_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
29825    BLAS_LIBS_INSTALLED=`echo " $BLAS_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'`
29826  fi
29827
29828  BLAS_PCREQUIRES="coinblas"
29829
29830    CLPLIB_PCREQUIRES="coinblas $CLPLIB_PCREQUIRES"
29831    CLPLIB_CFLAGS="$BLAS_CFLAGS $CLPLIB_CFLAGS"
29832    CLPLIB_LIBS="$BLAS_LIBS $CLPLIB_LIBS"
29833    CLPLIB_CFLAGS_INSTALLED="$BLAS_CFLAGS_INSTALLED $CLPLIB_CFLAGS_INSTALLED"
29834    CLPLIB_LIBS_INSTALLED="$BLAS_LIBS_INSTALLED $CLPLIB_LIBS_INSTALLED"
29835
29836
29837fi
29838
29839
29840
29841if test $coin_has_blas != notGiven &&
29842                test $coin_has_blas != skipping; then
29843  COIN_HAS_BLAS_TRUE=
29844  COIN_HAS_BLAS_FALSE='#'
29845else
29846  COIN_HAS_BLAS_TRUE='#'
29847  COIN_HAS_BLAS_FALSE=
29848fi
29849
29850
29851
29852  fi
29853
29854else
29855  echo "$as_me:$LINENO: result: $coin_has_blas" >&5
29856echo "${ECHO_T}$coin_has_blas" >&6
29857fi
29858
29859if test $coin_has_blas != skipping &&
29860   test $coin_has_blas != notGiven ; then
29861
29862cat >>confdefs.h <<\_ACEOF
29863#define COIN_HAS_BLAS 1
29864_ACEOF
29865
29866
29867  # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
29868if test "${enable_interpackage_dependencies+set}" = set; then
29869  enableval="$enable_interpackage_dependencies"
29870
29871else
29872  enable_interpackage_dependencies=yes
29873fi;
29874
29875  if test $enable_interpackage_dependencies = yes ; then
29876     # construct dependencies variables from LIBS variables
29877     # we add an extra space in LIBS so we can substitute out everything starting with " -"
29878     # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows
29879     # then remove everything of the form -xxx
29880     # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
29881     BLAS_DEPENDENCIES=`echo " $BLAS_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
29882
29883       CLPLIB_DEPENDENCIES=`echo " $CLPLIB_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
29884
29885  fi
29886
29887  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
29888    if test -n "$BLAS_CFLAGS" ; then
29889      { echo "$as_me:$LINENO: Blas CFLAGS are $BLAS_CFLAGS" >&5
29890echo "$as_me: Blas CFLAGS are $BLAS_CFLAGS" >&6;}
29891    fi
29892    if test -n "$BLAS_LIBS" ; then
29893      { echo "$as_me:$LINENO: Blas LIBS   are $BLAS_LIBS" >&5
29894echo "$as_me: Blas LIBS   are $BLAS_LIBS" >&6;}
29895    fi
29896    if test -n "$BLAS_DEPENDENCIES" ; then
29897      { echo "$as_me:$LINENO: Blas DEPENDENCIES are $BLAS_DEPENDENCIES" >&5
29898echo "$as_me: Blas DEPENDENCIES are $BLAS_DEPENDENCIES" >&6;}
29899    fi
29900    if test -n "$BLAS_DATA" ; then
29901      { echo "$as_me:$LINENO: Blas DATA   is  $BLAS_DATA" >&5
29902echo "$as_me: Blas DATA   is  $BLAS_DATA" >&6;}
29903    fi
29904    if test -n "$BLAS_PCLIBS" ; then
29905      { echo "$as_me:$LINENO: Blas PCLIBS are $BLAS_PCLIBS" >&5
29906echo "$as_me: Blas PCLIBS are $BLAS_PCLIBS" >&6;}
29907    fi
29908    if test -n "$BLAS_PCREQUIRES" ; then
29909      { echo "$as_me:$LINENO: Blas PCREQUIRES are $BLAS_PCREQUIRES" >&5
29910echo "$as_me: Blas PCREQUIRES are $BLAS_PCREQUIRES" >&6;}
29911    fi
29912
29913      { echo "$as_me:$LINENO: ClpLib CFLAGS are $CLPLIB_CFLAGS" >&5
29914echo "$as_me: ClpLib CFLAGS are $CLPLIB_CFLAGS" >&6;}
29915      { echo "$as_me:$LINENO: ClpLib LIBS   are $CLPLIB_LIBS" >&5
29916echo "$as_me: ClpLib LIBS   are $CLPLIB_LIBS" >&6;}
29917      { echo "$as_me:$LINENO: ClpLib DEPENDENCIES are $CLPLIB_DEPENDENCIES" >&5
29918echo "$as_me: ClpLib DEPENDENCIES are $CLPLIB_DEPENDENCIES" >&6;}
29919
29920  fi
29921fi
29922
29923# Define the Makefile conditional
29924
29925
29926if test $coin_has_blas != notGiven &&
29927                test $coin_has_blas != skipping; then
29928  COIN_HAS_BLAS_TRUE=
29929  COIN_HAS_BLAS_FALSE='#'
29930else
29931  COIN_HAS_BLAS_TRUE='#'
29932  COIN_HAS_BLAS_FALSE=
29933fi
29934
29935
29936
29937
29938elif test "x$use_blas" != x && test "$use_blas" != no; then
29939  coin_has_blas=yes
29940
29941
29942if test 0 = 0; then
29943  COIN_HAS_BLAS_TRUE=
29944  COIN_HAS_BLAS_FALSE='#'
29945else
29946  COIN_HAS_BLAS_TRUE='#'
29947  COIN_HAS_BLAS_FALSE=
29948fi
29949
29950
29951cat >>confdefs.h <<\_ACEOF
29952#define COIN_HAS_BLAS 1
29953_ACEOF
29954
29955  BLAS_LIBS="$use_blas"
29956  BLAS_CFLAGS=
29957  BLAS_DATA=
29958
29959
29960
29961
29962    CLPLIB_PCLIBS="$BLAS_LIBS $CLPLIB_PCLIBS"
29963    CLPLIB_LIBS="$BLAS_LIBS $CLPLIB_LIBS"
29964    CLPLIB_LIBS_INSTALLED="$BLAS_LIBS $CLPLIB_LIBS_INSTALLED"
29965
29966
29967else
29968  coin_has_blas=no
29969
29970
29971if test 0 = 1; then
29972  COIN_HAS_BLAS_TRUE=
29973  COIN_HAS_BLAS_FALSE='#'
29974else
29975  COIN_HAS_BLAS_TRUE='#'
29976  COIN_HAS_BLAS_FALSE=
29977fi
29978
29979fi
29980
29981
29982
29983
29984
29985
29986
29987
29988
29989  coin_save_LIBS="$LIBS"
29990  LIBS="$LIBS $use_wsmp $BLAS_LIBS"
29991  ac_ext=f
29992ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
29993ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29994ac_compiler_gnu=$ac_cv_f77_compiler_gnu
29995
29996  echo "$as_me:$LINENO: checking whether user-supplied WSMP library \"$use_wsmp\" works" >&5
29997echo $ECHO_N "checking whether user-supplied WSMP library \"$use_wsmp\" works... $ECHO_C" >&6
29998  cat >conftest.$ac_ext <<_ACEOF
29999      program main
30000      call WSSMP()
30001      end
30002_ACEOF
30003rm -f conftest.$ac_objext conftest$ac_exeext
30004if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30005  (eval $ac_link) 2>conftest.er1
30006  ac_status=$?
30007  grep -v '^ *+' conftest.er1 >conftest.err
30008  rm -f conftest.er1
30009  cat conftest.err >&5
30010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30011  (exit $ac_status); } &&
30012	 { ac_try='test -z "$ac_f77_werror_flag"
30013			 || test ! -s conftest.err'
30014  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30015  (eval $ac_try) 2>&5
30016  ac_status=$?
30017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30018  (exit $ac_status); }; } &&
30019	 { ac_try='test -s conftest$ac_exeext'
30020  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30021  (eval $ac_try) 2>&5
30022  ac_status=$?
30023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30024  (exit $ac_status); }; }; then
30025  echo "$as_me:$LINENO: result: yes" >&5
30026echo "${ECHO_T}yes" >&6
30027else
30028  echo "$as_me: failed program was:" >&5
30029sed 's/^/| /' conftest.$ac_ext >&5
30030
30031echo "$as_me:$LINENO: result: no" >&5
30032echo "${ECHO_T}no" >&6
30033               { { echo "$as_me:$LINENO: error: WSMP library $use_wsmp does not seem to work" >&5
30034echo "$as_me: error: WSMP library $use_wsmp does not seem to work" >&2;}
30035   { (exit 1); exit 1; }; }
30036fi
30037rm -f conftest.err conftest.$ac_objext \
30038      conftest$ac_exeext conftest.$ac_ext
30039  ac_ext=c
30040ac_cpp='$CPP $CPPFLAGS'
30041ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30042ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30043ac_compiler_gnu=$ac_cv_c_compiler_gnu
30044
30045  LIBS="$coin_save_LIBS"
30046
30047
30048cat >>confdefs.h <<_ACEOF
30049#define COIN_HAS_WSMP 1
30050_ACEOF
30051
30052
30053  CLPLIB_LIBS="$use_wsmp $CLPLIB_LIBS"
30054  CLPLIB_LIBS_INSTALLED="$use_wsmp $CLPLIB_LIBS_INSTALLED"
30055  CLPLIB_PCLIBS="$use_wsmp $CLPLIB_PCLIBS"
30056else
30057  # to please configure
30058
30059
30060if test 0 = 1; then
30061  COIN_HAS_BLAS_TRUE=
30062  COIN_HAS_BLAS_FALSE='#'
30063else
30064  COIN_HAS_BLAS_TRUE='#'
30065  COIN_HAS_BLAS_FALSE=
30066fi
30067
30068fi
30069
30070
30071if test "$use_wsmp" != no; then
30072  COIN_HAS_WSMP_TRUE=
30073  COIN_HAS_WSMP_FALSE='#'
30074else
30075  COIN_HAS_WSMP_TRUE='#'
30076  COIN_HAS_WSMP_FALSE=
30077fi
30078
30079
30080#############################################################################
30081#                             Other dependencies                            #
30082#############################################################################
30083# Ampl Solver library
30084
30085echo "$as_me:$LINENO: checking for COIN-OR package ASL" >&5
30086echo $ECHO_N "checking for COIN-OR package ASL... $ECHO_C" >&6
30087
30088coin_has_asl=notGiven
30089
30090# check if user wants to skip package in any case
30091if test x"$COIN_SKIP_PROJECTS" != x; then
30092  for dir in $COIN_SKIP_PROJECTS; do
30093    if test $dir = "ASL"; then
30094      coin_has_asl=skipping
30095    fi
30096  done
30097fi
30098
30099if test "$coin_has_asl" != skipping; then
30100
30101# Check whether --with-m4_tolower(ASL) or --without-m4_tolower(ASL) was given.
30102if test "${with_asl+set}" = set; then
30103  withval="$with_asl"
30104  if test "$withval" = no ; then
30105       coin_has_asl=skipping
30106     fi
30107
30108fi;
30109fi
30110
30111ASL_LIBS=
30112ASL_CFLAGS=
30113ASL_DATA=
30114ASL_DEPENDENCIES=
30115ASL_PCLIBS=
30116ASL_PCREQUIRES=
30117
30118
30119
30120
30121
30122
30123
30124
30125
30126
30127
30128
30129
30130
30131
30132
30133
30134#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
30135if test $coin_has_asl != skipping; then
30136
30137# Check whether --with-m4_tolower(ASL)-lib or --without-m4_tolower(ASL)-lib was given.
30138if test "${with_asl_lib+set}" = set; then
30139  withval="$with_asl_lib"
30140  if test "$withval" = no ; then
30141       coin_has_asl=skipping
30142     else
30143       coin_has_asl=yes
30144       ASL_LIBS="$withval"
30145       ASL_PCLIBS="$withval"
30146
30147         CLPLIB_PCLIBS="$withval $CLPLIB_PCLIBS"
30148         CLPLIB_LIBS="$withval $CLPLIB_LIBS"
30149
30150       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
30151       if test -z "$PKG_CONFIG" ; then
30152         ASL_LIBS_INSTALLED="$withval"
30153         CLPLIB_LIBS_INSTALLED="$withval $CLPLIB_LIBS_INSTALLED"
30154       fi
30155     fi
30156
30157fi;
30158fi
30159
30160if test $coin_has_asl != skipping; then
30161
30162# Check whether --with-m4_tolower(ASL)-incdir or --without-m4_tolower(ASL)-incdir was given.
30163if test "${with_asl_incdir+set}" = set; then
30164  withval="$with_asl_incdir"
30165  if test "$withval" = no ; then
30166       coin_has_asl=skipping
30167     else
30168       coin_has_asl=yes
30169       ASL_CFLAGS="-I`${CYGPATH_W} $withval`"
30170       CLPLIB_CFLAGS="-I`${CYGPATH_W} $withval` $CLPLIB_CFLAGS"
30171       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
30172       if test -z "$PKG_CONFIG" ; then
30173         ASL_CFLAGS_INSTALLED="$ASL_CFLAGS"
30174         CLPLIB_CFLAGS_INSTALLED="$ASL_CFLAGS $CLPLIB_CFLAGS_INSTALLED"
30175       fi
30176     fi
30177
30178fi;
30179fi
30180
30181if test $coin_has_asl != skipping; then
30182
30183# Check whether --with-m4_tolower(ASL)-datadir or --without-m4_tolower(ASL)-datadir was given.
30184if test "${with_asl_datadir+set}" = set; then
30185  withval="$with_asl_datadir"
30186  if test "$withval" = no ; then
30187       coin_has_asl=skipping
30188     else
30189       coin_has_asl=yes
30190       ASL_DATA="$withval"
30191       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
30192       if test -z "$PKG_CONFIG" ; then
30193         ASL_DATA_INSTALLED="$withval"
30194       fi
30195     fi
30196
30197fi;
30198fi
30199
30200if test $coin_has_asl = notGiven; then
30201  if test -n "$PKG_CONFIG" ; then
30202    # set search path for pkg-config
30203    # need to export variable to be sure that the following pkg-config gets these values
30204    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
30205    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
30206    export PKG_CONFIG_PATH
30207
30208    # let pkg-config do it's magic
30209
30210
30211
30212if test -n "$PKG_CONFIG" ; then
30213  if $PKG_CONFIG --exists "coinasl"; then
30214    ASL_VERSIONS=`$PKG_CONFIG --modversion "coinasl" 2>/dev/null | tr '\n' ' '`
30215     cflags=`$PKG_CONFIG --cflags "coinasl" 2>/dev/null`
30216    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
30217	# thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
30218	# but only do this if is not trivial
30219    if test "$CYGPATH_W" != "echo" ; then
30220      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
30221      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
30222    fi
30223    ASL_CFLAGS="$cflags"
30224    ASL_LIBS=`$PKG_CONFIG --libs "coinasl" 2>/dev/null`
30225    ASL_DATA=`$PKG_CONFIG --variable=datadir "coinasl" 2>/dev/null`
30226     coin_has_asl=yes
30227        echo "$as_me:$LINENO: result: yes: $ASL_VERSIONS" >&5
30228echo "${ECHO_T}yes: $ASL_VERSIONS" >&6
30229
30230        # adjust linker flags for (i)cl compiler
30231        # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl)
30232        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
30233        then
30234          ASL_LIBS=`echo " $ASL_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
30235        fi
30236        ASL_PCREQUIRES="coinasl"
30237
30238        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in ClpLib
30239
30240          CLPLIB_PCREQUIRES="coinasl $CLPLIB_PCREQUIRES"
30241          CLPLIB_CFLAGS="$ASL_CFLAGS $CLPLIB_CFLAGS"
30242          CLPLIB_LIBS="$ASL_LIBS $CLPLIB_LIBS"
30243
30244
30245
30246  else
30247    ASL_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "coinasl"`
30248      coin_has_asl=notGiven
30249        echo "$as_me:$LINENO: result: not given: $ASL_PKG_ERRORS" >&5
30250echo "${ECHO_T}not given: $ASL_PKG_ERRORS" >&6
30251
30252  fi
30253else
30254  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module ASL without pkg-config\"" >&5
30255echo "$as_me: error: \"Cannot check for existance of module ASL without pkg-config\"" >&2;}
30256   { (exit 1); exit 1; }; }
30257fi
30258
30259
30260
30261
30262    # reset PKG_CONFIG_PATH variable
30263    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
30264    export PKG_CONFIG_PATH
30265
30266  else
30267    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
30268echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
30269
30270echo "$as_me:$LINENO: checking for COIN-OR package ASL (fallback)" >&5
30271echo $ECHO_N "checking for COIN-OR package ASL (fallback)... $ECHO_C" >&6
30272
30273coin_has_asl=notGiven
30274ASL_LIBS=
30275ASL_LIBS_INSTALLED=
30276ASL_CFLAGS=
30277ASL_CFLAGS_INSTALLED=
30278ASL_DATA=
30279ASL_DATA_INSTALLED=
30280ASL_PCLIBS=
30281ASL_PCREQUIRES=
30282
30283# initial list of dependencies is "coinasl", but we need to filter out version number specifications (= x, <= x, >= x, != x)
30284projtoprocess="coinasl"
30285
30286# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
30287# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
30288# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
30289# also, we setup the DATA variable
30290allproj=""
30291allpcfiles=""
30292allpcifiles=""
30293while test "x$projtoprocess" != x ; do
30294
30295  for proj in $projtoprocess ; do
30296    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
30297    pcfile=""
30298    save_IFS="$IFS"
30299    IFS=":"
30300    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
30301      # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again
30302      if test -r "$dir/${proj}-uninstalled.pc" ; then
30303        pcfile="$dir/$proj-uninstalled.pc"
30304        if test -r "$dir/${proj}.pc" ; then
30305          pcifile="$dir/${proj}.pc"
30306        else
30307          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
30308echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
30309          pcifile=
30310        fi
30311        break
30312      fi
30313    done
30314    IFS="$save_IFS"
30315
30316    if test "x$pcfile" != x ; then
30317      # read dependencies from $pcfile and filter it
30318      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ 	]\{0,\}[^ 	]\{1,\}//g'`
30319
30320      # add projrequires to the front of the list of projects that have to be processed next
30321      # at the same time, remove $proj from this list
30322      projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
30323
30324      # read DATA from $pcfile, if _DATA is still empty
30325      if test "x$ASL_DATA" = x ; then
30326        projdatadir=
30327        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
30328        eval `sh -c "$pcfilemod"`
30329        ASL_DATA="$projdatadir"
30330      fi
30331
30332      allproj="$allproj $proj"
30333      allpcfiles="$pcfile:$allpcfiles"
30334
30335    else
30336      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
30337echo "${ECHO_T}no, dependency $proj not available" >&6
30338      allproj=fail
30339      break 2
30340    fi
30341
30342    if test "x$pcifile" != x ; then
30343      allpcifiles="$pcifile:$allpcifiles"
30344
30345      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
30346      if test "x$ASL_DATA_INSTALLED" = x ; then
30347        projdatadir=
30348        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
30349        eval `sh -c "$pcifilemod"`
30350        if test "${CYGPATH_W}" != "echo"; then
30351          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
30352        fi
30353        ASL_DATA_INSTALLED="$projdatadir"
30354      fi
30355
30356    fi
30357
30358    break
30359  done
30360
30361  # remove spaces on begin of $projtoprocess
30362  projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
30363
30364done
30365
30366if test "$allproj" != fail ; then
30367
30368  # now go through the list of .pc files and assemble compiler and linker flags
30369  # important is here to obey the reverse order that has been setup before,
30370  # since then libraries that are required by several others should be after these other libraries
30371  pcfilesprocessed=""
30372
30373  save_IFS="$IFS"
30374  IFS=":"
30375  for pcfile in $allpcfiles ; do
30376
30377    # if $pcfile has been processed already, skip this round
30378    if test "x$pcfilesprocessed" != x ; then
30379      for pcfiledone in $pcfilesprocessed ; do
30380        if test "$pcfiledone" = "$pcfile" ; then
30381          continue 2
30382        fi
30383      done
30384    fi
30385
30386    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
30387    #   replace "Libs:" by "echo projlibs="
30388    #   replace "Cflags:" by "echo projcflags="
30389    #   remove every line starting with <some word>:
30390    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
30391
30392    # set projcflags and projlibs variables by running $pcfilemod
30393    # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
30394    projcflags=
30395    projlibs=
30396    IFS="$save_IFS"
30397    eval `sh -c "$pcfilemod"`
30398    IFS=":"
30399
30400    # add CYGPATH_W cludge into include flags and set CFLAGS variable
30401    if test "${CYGPATH_W}" != "echo"; then
30402      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
30403    fi
30404    ASL_CFLAGS="$projcflags $ASL_CFLAGS"
30405
30406    # set LIBS variable
30407    ASL_LIBS="$projlibs $ASL_LIBS"
30408
30409    # remember that we have processed $pcfile
30410    pcfilesprocessed="$pcfilesprocessed:$pcfile"
30411
30412  done
30413  IFS="$save_IFS"
30414
30415
30416  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
30417  # important is here again to obey the reverse order that has been setup before,
30418  # since then libraries that are required by several others should be after these other libraries
30419  pcfilesprocessed=""
30420
30421  save_IFS="$IFS"
30422  IFS=":"
30423  for pcfile in $allpcifiles ; do
30424
30425    # if $pcfile has been processed already, skip this round
30426    if test "x$pcfilesprocessed" != x ; then
30427      for pcfiledone in $pcfilesprocessed ; do
30428        if test "$pcfiledone" = "$pcfile" ; then
30429          continue 2
30430        fi
30431      done
30432    fi
30433
30434    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
30435    #   replace "Libs:" by "echo projlibs="
30436    #   replace "Cflags:" by "echo projcflags="
30437    #   remove every line starting with <some word>:
30438    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
30439
30440    # set projcflags and projlibs variables by running $pcfilemod
30441    # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
30442    projcflags=
30443    projlibs=
30444    IFS="$save_IFS"
30445    eval `sh -c "$pcfilemod"`
30446    IFS=":"
30447
30448    # add CYGPATH_W cludge into include flags and set CFLAGS variable
30449    if test "${CYGPATH_W}" != "echo"; then
30450      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
30451    fi
30452    ASL_CFLAGS_INSTALLED="$projcflags $ASL_CFLAGS_INSTALLED"
30453
30454    # set LIBS variable
30455    ASL_LIBS_INSTALLED="$projlibs $ASL_LIBS_INSTALLED"
30456
30457    # remember that we have processed $pcfile
30458    pcfilesprocessed="$pcfilesprocessed:$pcfile"
30459
30460  done
30461  IFS="$save_IFS"
30462
30463
30464  # finish up
30465  coin_has_asl=yes
30466  echo "$as_me:$LINENO: result: yes" >&5
30467echo "${ECHO_T}yes" >&6
30468
30469cat >>confdefs.h <<\_ACEOF
30470#define COIN_HAS_ASL 1
30471_ACEOF
30472
30473
30474  # adjust linker flags for (i)cl compiler
30475  # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl),
30476  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
30477  #    everything of the form "-lname" by "libname.lib", and
30478  #    everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
30479  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
30480  then
30481    ASL_LIBS=`echo " $ASL_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
30482    ASL_LIBS_INSTALLED=`echo " $ASL_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'`
30483  fi
30484
30485  ASL_PCREQUIRES="coinasl"
30486
30487    CLPLIB_PCREQUIRES="coinasl $CLPLIB_PCREQUIRES"
30488    CLPLIB_CFLAGS="$ASL_CFLAGS $CLPLIB_CFLAGS"
30489    CLPLIB_LIBS="$ASL_LIBS $CLPLIB_LIBS"
30490    CLPLIB_CFLAGS_INSTALLED="$ASL_CFLAGS_INSTALLED $CLPLIB_CFLAGS_INSTALLED"
30491    CLPLIB_LIBS_INSTALLED="$ASL_LIBS_INSTALLED $CLPLIB_LIBS_INSTALLED"
30492
30493
30494fi
30495
30496
30497
30498if test $coin_has_asl != notGiven &&
30499                test $coin_has_asl != skipping; then
30500  COIN_HAS_ASL_TRUE=
30501  COIN_HAS_ASL_FALSE='#'
30502else
30503  COIN_HAS_ASL_TRUE='#'
30504  COIN_HAS_ASL_FALSE=
30505fi
30506
30507
30508
30509  fi
30510
30511else
30512  echo "$as_me:$LINENO: result: $coin_has_asl" >&5
30513echo "${ECHO_T}$coin_has_asl" >&6
30514fi
30515
30516if test $coin_has_asl != skipping &&
30517   test $coin_has_asl != notGiven ; then
30518
30519cat >>confdefs.h <<\_ACEOF
30520#define COIN_HAS_ASL 1
30521_ACEOF
30522
30523
30524  # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
30525if test "${enable_interpackage_dependencies+set}" = set; then
30526  enableval="$enable_interpackage_dependencies"
30527
30528else
30529  enable_interpackage_dependencies=yes
30530fi;
30531
30532  if test $enable_interpackage_dependencies = yes ; then
30533     # construct dependencies variables from LIBS variables
30534     # we add an extra space in LIBS so we can substitute out everything starting with " -"
30535     # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows
30536     # then remove everything of the form -xxx
30537     # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
30538     ASL_DEPENDENCIES=`echo " $ASL_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
30539
30540       CLPLIB_DEPENDENCIES=`echo " $CLPLIB_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
30541
30542  fi
30543
30544  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
30545    if test -n "$ASL_CFLAGS" ; then
30546      { echo "$as_me:$LINENO: ASL CFLAGS are $ASL_CFLAGS" >&5
30547echo "$as_me: ASL CFLAGS are $ASL_CFLAGS" >&6;}
30548    fi
30549    if test -n "$ASL_LIBS" ; then
30550      { echo "$as_me:$LINENO: ASL LIBS   are $ASL_LIBS" >&5
30551echo "$as_me: ASL LIBS   are $ASL_LIBS" >&6;}
30552    fi
30553    if test -n "$ASL_DEPENDENCIES" ; then
30554      { echo "$as_me:$LINENO: ASL DEPENDENCIES are $ASL_DEPENDENCIES" >&5
30555echo "$as_me: ASL DEPENDENCIES are $ASL_DEPENDENCIES" >&6;}
30556    fi
30557    if test -n "$ASL_DATA" ; then
30558      { echo "$as_me:$LINENO: ASL DATA   is  $ASL_DATA" >&5
30559echo "$as_me: ASL DATA   is  $ASL_DATA" >&6;}
30560    fi
30561    if test -n "$ASL_PCLIBS" ; then
30562      { echo "$as_me:$LINENO: ASL PCLIBS are $ASL_PCLIBS" >&5
30563echo "$as_me: ASL PCLIBS are $ASL_PCLIBS" >&6;}
30564    fi
30565    if test -n "$ASL_PCREQUIRES" ; then
30566      { echo "$as_me:$LINENO: ASL PCREQUIRES are $ASL_PCREQUIRES" >&5
30567echo "$as_me: ASL PCREQUIRES are $ASL_PCREQUIRES" >&6;}
30568    fi
30569
30570      { echo "$as_me:$LINENO: ClpLib CFLAGS are $CLPLIB_CFLAGS" >&5
30571echo "$as_me: ClpLib CFLAGS are $CLPLIB_CFLAGS" >&6;}
30572      { echo "$as_me:$LINENO: ClpLib LIBS   are $CLPLIB_LIBS" >&5
30573echo "$as_me: ClpLib LIBS   are $CLPLIB_LIBS" >&6;}
30574      { echo "$as_me:$LINENO: ClpLib DEPENDENCIES are $CLPLIB_DEPENDENCIES" >&5
30575echo "$as_me: ClpLib DEPENDENCIES are $CLPLIB_DEPENDENCIES" >&6;}
30576
30577  fi
30578fi
30579
30580# Define the Makefile conditional
30581
30582
30583if test $coin_has_asl != notGiven &&
30584                test $coin_has_asl != skipping; then
30585  COIN_HAS_ASL_TRUE=
30586  COIN_HAS_ASL_FALSE='#'
30587else
30588  COIN_HAS_ASL_TRUE='#'
30589  COIN_HAS_ASL_FALSE=
30590fi
30591
30592
30593
30594
30595# Check whether --enable-gnu-packages or --disable-gnu-packages was given.
30596if test "${enable_gnu_packages+set}" = set; then
30597  enableval="$enable_gnu_packages"
30598  coin_enable_gnu=$enableval
30599else
30600  coin_enable_gnu=no
30601fi;
30602
30603
30604
30605
30606
30607
30608
30609coin_has_readline=no
30610if test $coin_enable_gnu = yes; then
30611  #if test x"#include <stdio.h>" = x; then
30612#  hdr="#include <readline/readline.h>"
30613#else
30614#  hdr="#include <stdio.h>"
30615#fi
30616#AC_CHECK_HEADERS([readline/readline.h],[coin_has_readline=yes],[],[$hdr])
30617
30618for ac_header in readline/readline.h
30619do
30620as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30621echo "$as_me:$LINENO: checking for $ac_header" >&5
30622echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30623if eval "test \"\${$as_ac_Header+set}\" = set"; then
30624  echo $ECHO_N "(cached) $ECHO_C" >&6
30625else
30626  cat >conftest.$ac_ext <<_ACEOF
30627/* confdefs.h.  */
30628_ACEOF
30629cat confdefs.h >>conftest.$ac_ext
30630cat >>conftest.$ac_ext <<_ACEOF
30631/* end confdefs.h.  */
30632#include <stdio.h>
30633
30634#include <$ac_header>
30635_ACEOF
30636rm -f conftest.$ac_objext
30637if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30638  (eval $ac_compile) 2>conftest.er1
30639  ac_status=$?
30640  grep -v '^ *+' conftest.er1 >conftest.err
30641  rm -f conftest.er1
30642  cat conftest.err >&5
30643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30644  (exit $ac_status); } &&
30645	 { ac_try='test -z "$ac_c_werror_flag"
30646			 || test ! -s conftest.err'
30647  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30648  (eval $ac_try) 2>&5
30649  ac_status=$?
30650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30651  (exit $ac_status); }; } &&
30652	 { ac_try='test -s conftest.$ac_objext'
30653  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30654  (eval $ac_try) 2>&5
30655  ac_status=$?
30656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30657  (exit $ac_status); }; }; then
30658  eval "$as_ac_Header=yes"
30659else
30660  echo "$as_me: failed program was:" >&5
30661sed 's/^/| /' conftest.$ac_ext >&5
30662
30663eval "$as_ac_Header=no"
30664fi
30665rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30666fi
30667echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30668echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30669if test `eval echo '${'$as_ac_Header'}'` = yes; then
30670  cat >>confdefs.h <<_ACEOF
30671#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30672_ACEOF
30673 coin_has_readline=yes
30674fi
30675
30676done
30677
30678
30679
30680  coin_save_LIBS="$LIBS"
30681  LIBS=
30682  # First we check if tputs and friends are available
30683  if test $coin_has_readline = yes; then
30684    echo "$as_me:$LINENO: checking for library containing tputs" >&5
30685echo $ECHO_N "checking for library containing tputs... $ECHO_C" >&6
30686if test "${ac_cv_search_tputs+set}" = set; then
30687  echo $ECHO_N "(cached) $ECHO_C" >&6
30688else
30689  ac_func_search_save_LIBS=$LIBS
30690ac_cv_search_tputs=no
30691cat >conftest.$ac_ext <<_ACEOF
30692/* confdefs.h.  */
30693_ACEOF
30694cat confdefs.h >>conftest.$ac_ext
30695cat >>conftest.$ac_ext <<_ACEOF
30696/* end confdefs.h.  */
30697
30698/* Override any gcc2 internal prototype to avoid an error.  */
30699#ifdef __cplusplus
30700extern "C"
30701#endif
30702/* We use char because int might match the return type of a gcc2
30703   builtin and then its argument prototype would still apply.  */
30704char tputs ();
30705#ifdef F77_DUMMY_MAIN
30706
30707#  ifdef __cplusplus
30708     extern "C"
30709#  endif
30710   int F77_DUMMY_MAIN() { return 1; }
30711
30712#endif
30713int
30714main ()
30715{
30716tputs ();
30717  ;
30718  return 0;
30719}
30720_ACEOF
30721rm -f conftest.$ac_objext conftest$ac_exeext
30722if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30723  (eval $ac_link) 2>conftest.er1
30724  ac_status=$?
30725  grep -v '^ *+' conftest.er1 >conftest.err
30726  rm -f conftest.er1
30727  cat conftest.err >&5
30728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30729  (exit $ac_status); } &&
30730	 { ac_try='test -z "$ac_c_werror_flag"
30731			 || test ! -s conftest.err'
30732  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30733  (eval $ac_try) 2>&5
30734  ac_status=$?
30735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30736  (exit $ac_status); }; } &&
30737	 { ac_try='test -s conftest$ac_exeext'
30738  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30739  (eval $ac_try) 2>&5
30740  ac_status=$?
30741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30742  (exit $ac_status); }; }; then
30743  ac_cv_search_tputs="none required"
30744else
30745  echo "$as_me: failed program was:" >&5
30746sed 's/^/| /' conftest.$ac_ext >&5
30747
30748fi
30749rm -f conftest.err conftest.$ac_objext \
30750      conftest$ac_exeext conftest.$ac_ext
30751if test "$ac_cv_search_tputs" = no; then
30752  for ac_lib in ncurses termcap curses; do
30753    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
30754    cat >conftest.$ac_ext <<_ACEOF
30755/* confdefs.h.  */
30756_ACEOF
30757cat confdefs.h >>conftest.$ac_ext
30758cat >>conftest.$ac_ext <<_ACEOF
30759/* end confdefs.h.  */
30760
30761/* Override any gcc2 internal prototype to avoid an error.  */
30762#ifdef __cplusplus
30763extern "C"
30764#endif
30765/* We use char because int might match the return type of a gcc2
30766   builtin and then its argument prototype would still apply.  */
30767char tputs ();
30768#ifdef F77_DUMMY_MAIN
30769
30770#  ifdef __cplusplus
30771     extern "C"
30772#  endif
30773   int F77_DUMMY_MAIN() { return 1; }
30774
30775#endif
30776int
30777main ()
30778{
30779tputs ();
30780  ;
30781  return 0;
30782}
30783_ACEOF
30784rm -f conftest.$ac_objext conftest$ac_exeext
30785if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30786  (eval $ac_link) 2>conftest.er1
30787  ac_status=$?
30788  grep -v '^ *+' conftest.er1 >conftest.err
30789  rm -f conftest.er1
30790  cat conftest.err >&5
30791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30792  (exit $ac_status); } &&
30793	 { ac_try='test -z "$ac_c_werror_flag"
30794			 || test ! -s conftest.err'
30795  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30796  (eval $ac_try) 2>&5
30797  ac_status=$?
30798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30799  (exit $ac_status); }; } &&
30800	 { ac_try='test -s conftest$ac_exeext'
30801  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30802  (eval $ac_try) 2>&5
30803  ac_status=$?
30804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30805  (exit $ac_status); }; }; then
30806  ac_cv_search_tputs="-l$ac_lib"
30807break
30808else
30809  echo "$as_me: failed program was:" >&5
30810sed 's/^/| /' conftest.$ac_ext >&5
30811
30812fi
30813rm -f conftest.err conftest.$ac_objext \
30814      conftest$ac_exeext conftest.$ac_ext
30815  done
30816fi
30817LIBS=$ac_func_search_save_LIBS
30818fi
30819echo "$as_me:$LINENO: result: $ac_cv_search_tputs" >&5
30820echo "${ECHO_T}$ac_cv_search_tputs" >&6
30821if test "$ac_cv_search_tputs" != no; then
30822  test "$ac_cv_search_tputs" = "none required" || LIBS="$ac_cv_search_tputs $LIBS"
30823
30824else
30825  coin_has_readline=no
30826fi
30827
30828  fi
30829
30830  # Now we check for readline
30831  if test $coin_has_readline = yes; then
30832    echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
30833echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
30834if test "${ac_cv_lib_readline_readline+set}" = set; then
30835  echo $ECHO_N "(cached) $ECHO_C" >&6
30836else
30837  ac_check_lib_save_LIBS=$LIBS
30838LIBS="-lreadline  $LIBS"
30839cat >conftest.$ac_ext <<_ACEOF
30840/* confdefs.h.  */
30841_ACEOF
30842cat confdefs.h >>conftest.$ac_ext
30843cat >>conftest.$ac_ext <<_ACEOF
30844/* end confdefs.h.  */
30845
30846/* Override any gcc2 internal prototype to avoid an error.  */
30847#ifdef __cplusplus
30848extern "C"
30849#endif
30850/* We use char because int might match the return type of a gcc2
30851   builtin and then its argument prototype would still apply.  */
30852char readline ();
30853#ifdef F77_DUMMY_MAIN
30854
30855#  ifdef __cplusplus
30856     extern "C"
30857#  endif
30858   int F77_DUMMY_MAIN() { return 1; }
30859
30860#endif
30861int
30862main ()
30863{
30864readline ();
30865  ;
30866  return 0;
30867}
30868_ACEOF
30869rm -f conftest.$ac_objext conftest$ac_exeext
30870if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30871  (eval $ac_link) 2>conftest.er1
30872  ac_status=$?
30873  grep -v '^ *+' conftest.er1 >conftest.err
30874  rm -f conftest.er1
30875  cat conftest.err >&5
30876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30877  (exit $ac_status); } &&
30878	 { ac_try='test -z "$ac_c_werror_flag"
30879			 || test ! -s conftest.err'
30880  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30881  (eval $ac_try) 2>&5
30882  ac_status=$?
30883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30884  (exit $ac_status); }; } &&
30885	 { ac_try='test -s conftest$ac_exeext'
30886  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30887  (eval $ac_try) 2>&5
30888  ac_status=$?
30889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30890  (exit $ac_status); }; }; then
30891  ac_cv_lib_readline_readline=yes
30892else
30893  echo "$as_me: failed program was:" >&5
30894sed 's/^/| /' conftest.$ac_ext >&5
30895
30896ac_cv_lib_readline_readline=no
30897fi
30898rm -f conftest.err conftest.$ac_objext \
30899      conftest$ac_exeext conftest.$ac_ext
30900LIBS=$ac_check_lib_save_LIBS
30901fi
30902echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
30903echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
30904if test $ac_cv_lib_readline_readline = yes; then
30905  :
30906else
30907  coin_has_readline=no
30908fi
30909
30910  fi
30911
30912  if test $coin_has_readline = yes; then
30913
30914                    CLPLIB_LIBS="-lreadline $LIBS $CLPLIB_LIBS"
30915                    CLPLIB_PCLIBS="-lreadline $LIBS $CLPLIB_PCLIBS"
30916                    CLPLIB_LIBS_INSTALLED="-lreadline $LIBS $CLPLIB_LIBS_INSTALLED"
30917
30918
30919cat >>confdefs.h <<\_ACEOF
30920#define COIN_HAS_READLINE 1
30921_ACEOF
30922
30923  fi
30924
30925  LIBS="$coin_save_LIBS"
30926fi
30927
30928
30929
30930ac_ext=cc
30931ac_cpp='$CXXCPP $CPPFLAGS'
30932ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30933ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30934ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30935
30936#if test x"" = x; then
30937#  hdr="#include <cmath>"
30938#else
30939#  hdr=""
30940#fi
30941#AC_CHECK_HEADERS([cmath],[],[],[$hdr])
30942
30943for ac_header in cmath
30944do
30945as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30946if eval "test \"\${$as_ac_Header+set}\" = set"; then
30947  echo "$as_me:$LINENO: checking for $ac_header" >&5
30948echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30949if eval "test \"\${$as_ac_Header+set}\" = set"; then
30950  echo $ECHO_N "(cached) $ECHO_C" >&6
30951fi
30952echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30953echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30954else
30955  # Is the header compilable?
30956echo "$as_me:$LINENO: checking $ac_header usability" >&5
30957echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30958cat >conftest.$ac_ext <<_ACEOF
30959/* confdefs.h.  */
30960_ACEOF
30961cat confdefs.h >>conftest.$ac_ext
30962cat >>conftest.$ac_ext <<_ACEOF
30963/* end confdefs.h.  */
30964$ac_includes_default
30965#include <$ac_header>
30966_ACEOF
30967rm -f conftest.$ac_objext
30968if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30969  (eval $ac_compile) 2>conftest.er1
30970  ac_status=$?
30971  grep -v '^ *+' conftest.er1 >conftest.err
30972  rm -f conftest.er1
30973  cat conftest.err >&5
30974  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30975  (exit $ac_status); } &&
30976	 { ac_try='test -z "$ac_cxx_werror_flag"
30977			 || test ! -s conftest.err'
30978  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30979  (eval $ac_try) 2>&5
30980  ac_status=$?
30981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30982  (exit $ac_status); }; } &&
30983	 { ac_try='test -s conftest.$ac_objext'
30984  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30985  (eval $ac_try) 2>&5
30986  ac_status=$?
30987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30988  (exit $ac_status); }; }; then
30989  ac_header_compiler=yes
30990else
30991  echo "$as_me: failed program was:" >&5
30992sed 's/^/| /' conftest.$ac_ext >&5
30993
30994ac_header_compiler=no
30995fi
30996rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30997echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30998echo "${ECHO_T}$ac_header_compiler" >&6
30999
31000# Is the header present?
31001echo "$as_me:$LINENO: checking $ac_header presence" >&5
31002echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31003cat >conftest.$ac_ext <<_ACEOF
31004/* confdefs.h.  */
31005_ACEOF
31006cat confdefs.h >>conftest.$ac_ext
31007cat >>conftest.$ac_ext <<_ACEOF
31008/* end confdefs.h.  */
31009#include <$ac_header>
31010_ACEOF
31011if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31012  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31013  ac_status=$?
31014  grep -v '^ *+' conftest.er1 >conftest.err
31015  rm -f conftest.er1
31016  cat conftest.err >&5
31017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31018  (exit $ac_status); } >/dev/null; then
31019  if test -s conftest.err; then
31020    ac_cpp_err=$ac_cxx_preproc_warn_flag
31021    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
31022  else
31023    ac_cpp_err=
31024  fi
31025else
31026  ac_cpp_err=yes
31027fi
31028if test -z "$ac_cpp_err"; then
31029  ac_header_preproc=yes
31030else
31031  echo "$as_me: failed program was:" >&5
31032sed 's/^/| /' conftest.$ac_ext >&5
31033
31034  ac_header_preproc=no
31035fi
31036rm -f conftest.err conftest.$ac_ext
31037echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31038echo "${ECHO_T}$ac_header_preproc" >&6
31039
31040# So?  What about this header?
31041case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
31042  yes:no: )
31043    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31044echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31045    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31046echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31047    ac_header_preproc=yes
31048    ;;
31049  no:yes:* )
31050    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31051echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31052    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31053echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31054    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31055echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31056    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31057echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31058    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31059echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31060    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31061echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31062    (
31063      cat <<\_ASBOX
31064## ----------------------------------- ##
31065## Report this to clp@list.coin-or.org ##
31066## ----------------------------------- ##
31067_ASBOX
31068    ) |
31069      sed "s/^/$as_me: WARNING:     /" >&2
31070    ;;
31071esac
31072echo "$as_me:$LINENO: checking for $ac_header" >&5
31073echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31074if eval "test \"\${$as_ac_Header+set}\" = set"; then
31075  echo $ECHO_N "(cached) $ECHO_C" >&6
31076else
31077  eval "$as_ac_Header=\$ac_header_preproc"
31078fi
31079echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31080echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31081
31082fi
31083if test `eval echo '${'$as_ac_Header'}'` = yes; then
31084  cat >>confdefs.h <<_ACEOF
31085#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31086_ACEOF
31087
31088fi
31089
31090done
31091
31092
31093if test "$ac_cv_header_cmath" != "yes"; then
31094  #if test x"" = x; then
31095#  hdr="#include <math.h>"
31096#else
31097#  hdr=""
31098#fi
31099#AC_CHECK_HEADERS([math.h],[],[],[$hdr])
31100
31101for ac_header in math.h
31102do
31103as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31104if eval "test \"\${$as_ac_Header+set}\" = set"; then
31105  echo "$as_me:$LINENO: checking for $ac_header" >&5
31106echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31107if eval "test \"\${$as_ac_Header+set}\" = set"; then
31108  echo $ECHO_N "(cached) $ECHO_C" >&6
31109fi
31110echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31111echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31112else
31113  # Is the header compilable?
31114echo "$as_me:$LINENO: checking $ac_header usability" >&5
31115echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31116cat >conftest.$ac_ext <<_ACEOF
31117/* confdefs.h.  */
31118_ACEOF
31119cat confdefs.h >>conftest.$ac_ext
31120cat >>conftest.$ac_ext <<_ACEOF
31121/* end confdefs.h.  */
31122$ac_includes_default
31123#include <$ac_header>
31124_ACEOF
31125rm -f conftest.$ac_objext
31126if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31127  (eval $ac_compile) 2>conftest.er1
31128  ac_status=$?
31129  grep -v '^ *+' conftest.er1 >conftest.err
31130  rm -f conftest.er1
31131  cat conftest.err >&5
31132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31133  (exit $ac_status); } &&
31134	 { ac_try='test -z "$ac_cxx_werror_flag"
31135			 || test ! -s conftest.err'
31136  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31137  (eval $ac_try) 2>&5
31138  ac_status=$?
31139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31140  (exit $ac_status); }; } &&
31141	 { ac_try='test -s conftest.$ac_objext'
31142  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31143  (eval $ac_try) 2>&5
31144  ac_status=$?
31145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31146  (exit $ac_status); }; }; then
31147  ac_header_compiler=yes
31148else
31149  echo "$as_me: failed program was:" >&5
31150sed 's/^/| /' conftest.$ac_ext >&5
31151
31152ac_header_compiler=no
31153fi
31154rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31155echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31156echo "${ECHO_T}$ac_header_compiler" >&6
31157
31158# Is the header present?
31159echo "$as_me:$LINENO: checking $ac_header presence" >&5
31160echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31161cat >conftest.$ac_ext <<_ACEOF
31162/* confdefs.h.  */
31163_ACEOF
31164cat confdefs.h >>conftest.$ac_ext
31165cat >>conftest.$ac_ext <<_ACEOF
31166/* end confdefs.h.  */
31167#include <$ac_header>
31168_ACEOF
31169if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31170  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31171  ac_status=$?
31172  grep -v '^ *+' conftest.er1 >conftest.err
31173  rm -f conftest.er1
31174  cat conftest.err >&5
31175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31176  (exit $ac_status); } >/dev/null; then
31177  if test -s conftest.err; then
31178    ac_cpp_err=$ac_cxx_preproc_warn_flag
31179    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
31180  else
31181    ac_cpp_err=
31182  fi
31183else
31184  ac_cpp_err=yes
31185fi
31186if test -z "$ac_cpp_err"; then
31187  ac_header_preproc=yes
31188else
31189  echo "$as_me: failed program was:" >&5
31190sed 's/^/| /' conftest.$ac_ext >&5
31191
31192  ac_header_preproc=no
31193fi
31194rm -f conftest.err conftest.$ac_ext
31195echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31196echo "${ECHO_T}$ac_header_preproc" >&6
31197
31198# So?  What about this header?
31199case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
31200  yes:no: )
31201    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31202echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31203    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31204echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31205    ac_header_preproc=yes
31206    ;;
31207  no:yes:* )
31208    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31209echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31210    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31211echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31212    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31213echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31214    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31215echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31216    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31217echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31218    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31219echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31220    (
31221      cat <<\_ASBOX
31222## ----------------------------------- ##
31223## Report this to clp@list.coin-or.org ##
31224## ----------------------------------- ##
31225_ASBOX
31226    ) |
31227      sed "s/^/$as_me: WARNING:     /" >&2
31228    ;;
31229esac
31230echo "$as_me:$LINENO: checking for $ac_header" >&5
31231echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31232if eval "test \"\${$as_ac_Header+set}\" = set"; then
31233  echo $ECHO_N "(cached) $ECHO_C" >&6
31234else
31235  eval "$as_ac_Header=\$ac_header_preproc"
31236fi
31237echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31238echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31239
31240fi
31241if test `eval echo '${'$as_ac_Header'}'` = yes; then
31242  cat >>confdefs.h <<_ACEOF
31243#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31244_ACEOF
31245
31246fi
31247
31248done
31249
31250
31251fi
31252ac_ext=c
31253ac_cpp='$CPP $CPPFLAGS'
31254ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31255ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31256ac_compiler_gnu=$ac_cv_c_compiler_gnu
31257
31258
31259ac_ext=cc
31260ac_cpp='$CXXCPP $CPPFLAGS'
31261ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31262ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31263ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31264
31265#if test x"" = x; then
31266#  hdr="#include <cfloat>"
31267#else
31268#  hdr=""
31269#fi
31270#AC_CHECK_HEADERS([cfloat],[],[],[$hdr])
31271
31272for ac_header in cfloat
31273do
31274as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31275if eval "test \"\${$as_ac_Header+set}\" = set"; then
31276  echo "$as_me:$LINENO: checking for $ac_header" >&5
31277echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31278if eval "test \"\${$as_ac_Header+set}\" = set"; then
31279  echo $ECHO_N "(cached) $ECHO_C" >&6
31280fi
31281echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31282echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31283else
31284  # Is the header compilable?
31285echo "$as_me:$LINENO: checking $ac_header usability" >&5
31286echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31287cat >conftest.$ac_ext <<_ACEOF
31288/* confdefs.h.  */
31289_ACEOF
31290cat confdefs.h >>conftest.$ac_ext
31291cat >>conftest.$ac_ext <<_ACEOF
31292/* end confdefs.h.  */
31293$ac_includes_default
31294#include <$ac_header>
31295_ACEOF
31296rm -f conftest.$ac_objext
31297if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31298  (eval $ac_compile) 2>conftest.er1
31299  ac_status=$?
31300  grep -v '^ *+' conftest.er1 >conftest.err
31301  rm -f conftest.er1
31302  cat conftest.err >&5
31303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31304  (exit $ac_status); } &&
31305	 { ac_try='test -z "$ac_cxx_werror_flag"
31306			 || test ! -s conftest.err'
31307  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31308  (eval $ac_try) 2>&5
31309  ac_status=$?
31310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31311  (exit $ac_status); }; } &&
31312	 { ac_try='test -s conftest.$ac_objext'
31313  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31314  (eval $ac_try) 2>&5
31315  ac_status=$?
31316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31317  (exit $ac_status); }; }; then
31318  ac_header_compiler=yes
31319else
31320  echo "$as_me: failed program was:" >&5
31321sed 's/^/| /' conftest.$ac_ext >&5
31322
31323ac_header_compiler=no
31324fi
31325rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31326echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31327echo "${ECHO_T}$ac_header_compiler" >&6
31328
31329# Is the header present?
31330echo "$as_me:$LINENO: checking $ac_header presence" >&5
31331echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31332cat >conftest.$ac_ext <<_ACEOF
31333/* confdefs.h.  */
31334_ACEOF
31335cat confdefs.h >>conftest.$ac_ext
31336cat >>conftest.$ac_ext <<_ACEOF
31337/* end confdefs.h.  */
31338#include <$ac_header>
31339_ACEOF
31340if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31341  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31342  ac_status=$?
31343  grep -v '^ *+' conftest.er1 >conftest.err
31344  rm -f conftest.er1
31345  cat conftest.err >&5
31346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31347  (exit $ac_status); } >/dev/null; then
31348  if test -s conftest.err; then
31349    ac_cpp_err=$ac_cxx_preproc_warn_flag
31350    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
31351  else
31352    ac_cpp_err=
31353  fi
31354else
31355  ac_cpp_err=yes
31356fi
31357if test -z "$ac_cpp_err"; then
31358  ac_header_preproc=yes
31359else
31360  echo "$as_me: failed program was:" >&5
31361sed 's/^/| /' conftest.$ac_ext >&5
31362
31363  ac_header_preproc=no
31364fi
31365rm -f conftest.err conftest.$ac_ext
31366echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31367echo "${ECHO_T}$ac_header_preproc" >&6
31368
31369# So?  What about this header?
31370case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
31371  yes:no: )
31372    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31373echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31374    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31375echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31376    ac_header_preproc=yes
31377    ;;
31378  no:yes:* )
31379    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31380echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31381    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31382echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31383    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31384echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31385    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31386echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31387    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31388echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31389    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31390echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31391    (
31392      cat <<\_ASBOX
31393## ----------------------------------- ##
31394## Report this to clp@list.coin-or.org ##
31395## ----------------------------------- ##
31396_ASBOX
31397    ) |
31398      sed "s/^/$as_me: WARNING:     /" >&2
31399    ;;
31400esac
31401echo "$as_me:$LINENO: checking for $ac_header" >&5
31402echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31403if eval "test \"\${$as_ac_Header+set}\" = set"; then
31404  echo $ECHO_N "(cached) $ECHO_C" >&6
31405else
31406  eval "$as_ac_Header=\$ac_header_preproc"
31407fi
31408echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31409echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31410
31411fi
31412if test `eval echo '${'$as_ac_Header'}'` = yes; then
31413  cat >>confdefs.h <<_ACEOF
31414#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31415_ACEOF
31416
31417fi
31418
31419done
31420
31421
31422if test "$ac_cv_header_cfloat" != "yes"; then
31423  #if test x"" = x; then
31424#  hdr="#include <float.h>"
31425#else
31426#  hdr=""
31427#fi
31428#AC_CHECK_HEADERS([float.h],[],[],[$hdr])
31429
31430for ac_header in float.h
31431do
31432as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31433if eval "test \"\${$as_ac_Header+set}\" = set"; then
31434  echo "$as_me:$LINENO: checking for $ac_header" >&5
31435echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31436if eval "test \"\${$as_ac_Header+set}\" = set"; then
31437  echo $ECHO_N "(cached) $ECHO_C" >&6
31438fi
31439echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31440echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31441else
31442  # Is the header compilable?
31443echo "$as_me:$LINENO: checking $ac_header usability" >&5
31444echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31445cat >conftest.$ac_ext <<_ACEOF
31446/* confdefs.h.  */
31447_ACEOF
31448cat confdefs.h >>conftest.$ac_ext
31449cat >>conftest.$ac_ext <<_ACEOF
31450/* end confdefs.h.  */
31451$ac_includes_default
31452#include <$ac_header>
31453_ACEOF
31454rm -f conftest.$ac_objext
31455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31456  (eval $ac_compile) 2>conftest.er1
31457  ac_status=$?
31458  grep -v '^ *+' conftest.er1 >conftest.err
31459  rm -f conftest.er1
31460  cat conftest.err >&5
31461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31462  (exit $ac_status); } &&
31463	 { ac_try='test -z "$ac_cxx_werror_flag"
31464			 || test ! -s conftest.err'
31465  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31466  (eval $ac_try) 2>&5
31467  ac_status=$?
31468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31469  (exit $ac_status); }; } &&
31470	 { ac_try='test -s conftest.$ac_objext'
31471  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31472  (eval $ac_try) 2>&5
31473  ac_status=$?
31474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31475  (exit $ac_status); }; }; then
31476  ac_header_compiler=yes
31477else
31478  echo "$as_me: failed program was:" >&5
31479sed 's/^/| /' conftest.$ac_ext >&5
31480
31481ac_header_compiler=no
31482fi
31483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31484echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31485echo "${ECHO_T}$ac_header_compiler" >&6
31486
31487# Is the header present?
31488echo "$as_me:$LINENO: checking $ac_header presence" >&5
31489echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31490cat >conftest.$ac_ext <<_ACEOF
31491/* confdefs.h.  */
31492_ACEOF
31493cat confdefs.h >>conftest.$ac_ext
31494cat >>conftest.$ac_ext <<_ACEOF
31495/* end confdefs.h.  */
31496#include <$ac_header>
31497_ACEOF
31498if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31499  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31500  ac_status=$?
31501  grep -v '^ *+' conftest.er1 >conftest.err
31502  rm -f conftest.er1
31503  cat conftest.err >&5
31504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31505  (exit $ac_status); } >/dev/null; then
31506  if test -s conftest.err; then
31507    ac_cpp_err=$ac_cxx_preproc_warn_flag
31508    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
31509  else
31510    ac_cpp_err=
31511  fi
31512else
31513  ac_cpp_err=yes
31514fi
31515if test -z "$ac_cpp_err"; then
31516  ac_header_preproc=yes
31517else
31518  echo "$as_me: failed program was:" >&5
31519sed 's/^/| /' conftest.$ac_ext >&5
31520
31521  ac_header_preproc=no
31522fi
31523rm -f conftest.err conftest.$ac_ext
31524echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31525echo "${ECHO_T}$ac_header_preproc" >&6
31526
31527# So?  What about this header?
31528case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
31529  yes:no: )
31530    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31531echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31532    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31533echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31534    ac_header_preproc=yes
31535    ;;
31536  no:yes:* )
31537    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31538echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31539    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31540echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31541    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31542echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31543    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31544echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31545    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31546echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31547    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31548echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31549    (
31550      cat <<\_ASBOX
31551## ----------------------------------- ##
31552## Report this to clp@list.coin-or.org ##
31553## ----------------------------------- ##
31554_ASBOX
31555    ) |
31556      sed "s/^/$as_me: WARNING:     /" >&2
31557    ;;
31558esac
31559echo "$as_me:$LINENO: checking for $ac_header" >&5
31560echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31561if eval "test \"\${$as_ac_Header+set}\" = set"; then
31562  echo $ECHO_N "(cached) $ECHO_C" >&6
31563else
31564  eval "$as_ac_Header=\$ac_header_preproc"
31565fi
31566echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31567echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31568
31569fi
31570if test `eval echo '${'$as_ac_Header'}'` = yes; then
31571  cat >>confdefs.h <<_ACEOF
31572#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31573_ACEOF
31574
31575fi
31576
31577done
31578
31579
31580fi
31581ac_ext=c
31582ac_cpp='$CPP $CPPFLAGS'
31583ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31584ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31585ac_compiler_gnu=$ac_cv_c_compiler_gnu
31586
31587
31588ac_ext=cc
31589ac_cpp='$CXXCPP $CPPFLAGS'
31590ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31591ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31592ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31593
31594#if test x"" = x; then
31595#  hdr="#include <cieeefp>"
31596#else
31597#  hdr=""
31598#fi
31599#AC_CHECK_HEADERS([cieeefp],[],[],[$hdr])
31600
31601for ac_header in cieeefp
31602do
31603as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31604if eval "test \"\${$as_ac_Header+set}\" = set"; then
31605  echo "$as_me:$LINENO: checking for $ac_header" >&5
31606echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31607if eval "test \"\${$as_ac_Header+set}\" = set"; then
31608  echo $ECHO_N "(cached) $ECHO_C" >&6
31609fi
31610echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31611echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31612else
31613  # Is the header compilable?
31614echo "$as_me:$LINENO: checking $ac_header usability" >&5
31615echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31616cat >conftest.$ac_ext <<_ACEOF
31617/* confdefs.h.  */
31618_ACEOF
31619cat confdefs.h >>conftest.$ac_ext
31620cat >>conftest.$ac_ext <<_ACEOF
31621/* end confdefs.h.  */
31622$ac_includes_default
31623#include <$ac_header>
31624_ACEOF
31625rm -f conftest.$ac_objext
31626if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31627  (eval $ac_compile) 2>conftest.er1
31628  ac_status=$?
31629  grep -v '^ *+' conftest.er1 >conftest.err
31630  rm -f conftest.er1
31631  cat conftest.err >&5
31632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31633  (exit $ac_status); } &&
31634	 { ac_try='test -z "$ac_cxx_werror_flag"
31635			 || test ! -s conftest.err'
31636  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31637  (eval $ac_try) 2>&5
31638  ac_status=$?
31639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31640  (exit $ac_status); }; } &&
31641	 { ac_try='test -s conftest.$ac_objext'
31642  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31643  (eval $ac_try) 2>&5
31644  ac_status=$?
31645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31646  (exit $ac_status); }; }; then
31647  ac_header_compiler=yes
31648else
31649  echo "$as_me: failed program was:" >&5
31650sed 's/^/| /' conftest.$ac_ext >&5
31651
31652ac_header_compiler=no
31653fi
31654rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31655echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31656echo "${ECHO_T}$ac_header_compiler" >&6
31657
31658# Is the header present?
31659echo "$as_me:$LINENO: checking $ac_header presence" >&5
31660echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31661cat >conftest.$ac_ext <<_ACEOF
31662/* confdefs.h.  */
31663_ACEOF
31664cat confdefs.h >>conftest.$ac_ext
31665cat >>conftest.$ac_ext <<_ACEOF
31666/* end confdefs.h.  */
31667#include <$ac_header>
31668_ACEOF
31669if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31670  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31671  ac_status=$?
31672  grep -v '^ *+' conftest.er1 >conftest.err
31673  rm -f conftest.er1
31674  cat conftest.err >&5
31675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31676  (exit $ac_status); } >/dev/null; then
31677  if test -s conftest.err; then
31678    ac_cpp_err=$ac_cxx_preproc_warn_flag
31679    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
31680  else
31681    ac_cpp_err=
31682  fi
31683else
31684  ac_cpp_err=yes
31685fi
31686if test -z "$ac_cpp_err"; then
31687  ac_header_preproc=yes
31688else
31689  echo "$as_me: failed program was:" >&5
31690sed 's/^/| /' conftest.$ac_ext >&5
31691
31692  ac_header_preproc=no
31693fi
31694rm -f conftest.err conftest.$ac_ext
31695echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31696echo "${ECHO_T}$ac_header_preproc" >&6
31697
31698# So?  What about this header?
31699case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
31700  yes:no: )
31701    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31702echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31703    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31704echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31705    ac_header_preproc=yes
31706    ;;
31707  no:yes:* )
31708    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31709echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31710    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31711echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31712    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31713echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31714    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31715echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31716    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31717echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31718    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31719echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31720    (
31721      cat <<\_ASBOX
31722## ----------------------------------- ##
31723## Report this to clp@list.coin-or.org ##
31724## ----------------------------------- ##
31725_ASBOX
31726    ) |
31727      sed "s/^/$as_me: WARNING:     /" >&2
31728    ;;
31729esac
31730echo "$as_me:$LINENO: checking for $ac_header" >&5
31731echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31732if eval "test \"\${$as_ac_Header+set}\" = set"; then
31733  echo $ECHO_N "(cached) $ECHO_C" >&6
31734else
31735  eval "$as_ac_Header=\$ac_header_preproc"
31736fi
31737echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31738echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31739
31740fi
31741if test `eval echo '${'$as_ac_Header'}'` = yes; then
31742  cat >>confdefs.h <<_ACEOF
31743#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31744_ACEOF
31745
31746fi
31747
31748done
31749
31750
31751if test "$ac_cv_header_cieeefp" != "yes"; then
31752  #if test x"" = x; then
31753#  hdr="#include <ieeefp.h>"
31754#else
31755#  hdr=""
31756#fi
31757#AC_CHECK_HEADERS([ieeefp.h],[],[],[$hdr])
31758
31759for ac_header in ieeefp.h
31760do
31761as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31762if eval "test \"\${$as_ac_Header+set}\" = set"; then
31763  echo "$as_me:$LINENO: checking for $ac_header" >&5
31764echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31765if eval "test \"\${$as_ac_Header+set}\" = set"; then
31766  echo $ECHO_N "(cached) $ECHO_C" >&6
31767fi
31768echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31769echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31770else
31771  # Is the header compilable?
31772echo "$as_me:$LINENO: checking $ac_header usability" >&5
31773echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31774cat >conftest.$ac_ext <<_ACEOF
31775/* confdefs.h.  */
31776_ACEOF
31777cat confdefs.h >>conftest.$ac_ext
31778cat >>conftest.$ac_ext <<_ACEOF
31779/* end confdefs.h.  */
31780$ac_includes_default
31781#include <$ac_header>
31782_ACEOF
31783rm -f conftest.$ac_objext
31784if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31785  (eval $ac_compile) 2>conftest.er1
31786  ac_status=$?
31787  grep -v '^ *+' conftest.er1 >conftest.err
31788  rm -f conftest.er1
31789  cat conftest.err >&5
31790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31791  (exit $ac_status); } &&
31792	 { ac_try='test -z "$ac_cxx_werror_flag"
31793			 || test ! -s conftest.err'
31794  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31795  (eval $ac_try) 2>&5
31796  ac_status=$?
31797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31798  (exit $ac_status); }; } &&
31799	 { ac_try='test -s conftest.$ac_objext'
31800  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31801  (eval $ac_try) 2>&5
31802  ac_status=$?
31803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31804  (exit $ac_status); }; }; then
31805  ac_header_compiler=yes
31806else
31807  echo "$as_me: failed program was:" >&5
31808sed 's/^/| /' conftest.$ac_ext >&5
31809
31810ac_header_compiler=no
31811fi
31812rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31813echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31814echo "${ECHO_T}$ac_header_compiler" >&6
31815
31816# Is the header present?
31817echo "$as_me:$LINENO: checking $ac_header presence" >&5
31818echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31819cat >conftest.$ac_ext <<_ACEOF
31820/* confdefs.h.  */
31821_ACEOF
31822cat confdefs.h >>conftest.$ac_ext
31823cat >>conftest.$ac_ext <<_ACEOF
31824/* end confdefs.h.  */
31825#include <$ac_header>
31826_ACEOF
31827if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31828  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31829  ac_status=$?
31830  grep -v '^ *+' conftest.er1 >conftest.err
31831  rm -f conftest.er1
31832  cat conftest.err >&5
31833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31834  (exit $ac_status); } >/dev/null; then
31835  if test -s conftest.err; then
31836    ac_cpp_err=$ac_cxx_preproc_warn_flag
31837    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
31838  else
31839    ac_cpp_err=
31840  fi
31841else
31842  ac_cpp_err=yes
31843fi
31844if test -z "$ac_cpp_err"; then
31845  ac_header_preproc=yes
31846else
31847  echo "$as_me: failed program was:" >&5
31848sed 's/^/| /' conftest.$ac_ext >&5
31849
31850  ac_header_preproc=no
31851fi
31852rm -f conftest.err conftest.$ac_ext
31853echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31854echo "${ECHO_T}$ac_header_preproc" >&6
31855
31856# So?  What about this header?
31857case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
31858  yes:no: )
31859    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31860echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31861    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31862echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31863    ac_header_preproc=yes
31864    ;;
31865  no:yes:* )
31866    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31867echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31868    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31869echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31870    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31871echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31872    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31873echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31874    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31875echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31876    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31877echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31878    (
31879      cat <<\_ASBOX
31880## ----------------------------------- ##
31881## Report this to clp@list.coin-or.org ##
31882## ----------------------------------- ##
31883_ASBOX
31884    ) |
31885      sed "s/^/$as_me: WARNING:     /" >&2
31886    ;;
31887esac
31888echo "$as_me:$LINENO: checking for $ac_header" >&5
31889echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31890if eval "test \"\${$as_ac_Header+set}\" = set"; then
31891  echo $ECHO_N "(cached) $ECHO_C" >&6
31892else
31893  eval "$as_ac_Header=\$ac_header_preproc"
31894fi
31895echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31896echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31897
31898fi
31899if test `eval echo '${'$as_ac_Header'}'` = yes; then
31900  cat >>confdefs.h <<_ACEOF
31901#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31902_ACEOF
31903
31904fi
31905
31906done
31907
31908
31909fi
31910ac_ext=c
31911ac_cpp='$CPP $CPPFLAGS'
31912ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31913ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31914ac_compiler_gnu=$ac_cv_c_compiler_gnu
31915
31916
31917
31918##############################################################################
31919#                   VPATH links for example input files                      #
31920##############################################################################
31921
31922# In case this is a VPATH configuration we need to make sure that the
31923# input files for the examples are available in the VPATH directory.
31924
31925
31926echo "$as_me:$LINENO: checking whether this is a VPATH configuration" >&5
31927echo $ECHO_N "checking whether this is a VPATH configuration... $ECHO_C" >&6
31928if test `cd $srcdir; pwd` != `pwd`; then
31929  coin_vpath_config=yes;
31930else
31931  coin_vpath_config=no;
31932fi
31933echo "$as_me:$LINENO: result: $coin_vpath_config" >&5
31934echo "${ECHO_T}$coin_vpath_config" >&6
31935
31936
31937
31938# Allow for newlines in the parameter
31939if test $coin_vpath_config = yes; then
31940  cvl_tmp="examples/hello.mps"
31941  for file in $cvl_tmp ; do
31942    coin_vpath_link_files="$coin_vpath_link_files $file"
31943  done
31944fi
31945
31946
31947
31948# Allow for newlines in the parameter
31949if test $coin_vpath_config = yes; then
31950  cvl_tmp="examples/input.130"
31951  for file in $cvl_tmp ; do
31952    coin_vpath_link_files="$coin_vpath_link_files $file"
31953  done
31954fi
31955
31956
31957
31958# Allow for newlines in the parameter
31959if test $coin_vpath_config = yes; then
31960  cvl_tmp="examples/g.tiny"
31961  for file in $cvl_tmp ; do
31962    coin_vpath_link_files="$coin_vpath_link_files $file"
31963  done
31964fi
31965
31966
31967
31968# Allow for newlines in the parameter
31969if test $coin_vpath_config = yes; then
31970  cvl_tmp="examples/gparm.tiny"
31971  for file in $cvl_tmp ; do
31972    coin_vpath_link_files="$coin_vpath_link_files $file"
31973  done
31974fi
31975
31976
31977#############################################################################
31978#                  Check for doxygen                                        #
31979#############################################################################
31980
31981
31982
31983{ echo "$as_me:$LINENO: configuring doxygen documentation options" >&5
31984echo "$as_me: configuring doxygen documentation options" >&6;}
31985
31986# Check to see if doxygen is available.
31987
31988# Extract the first word of "doxygen", so it can be a program name with args.
31989set dummy doxygen; ac_word=$2
31990echo "$as_me:$LINENO: checking for $ac_word" >&5
31991echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31992if test "${ac_cv_prog_coin_have_doxygen+set}" = set; then
31993  echo $ECHO_N "(cached) $ECHO_C" >&6
31994else
31995  if test -n "$coin_have_doxygen"; then
31996  ac_cv_prog_coin_have_doxygen="$coin_have_doxygen" # Let the user override the test.
31997else
31998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31999for as_dir in $PATH
32000do
32001  IFS=$as_save_IFS
32002  test -z "$as_dir" && as_dir=.
32003  for ac_exec_ext in '' $ac_executable_extensions; do
32004  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32005    ac_cv_prog_coin_have_doxygen="yes"
32006    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32007    break 2
32008  fi
32009done
32010done
32011
32012  test -z "$ac_cv_prog_coin_have_doxygen" && ac_cv_prog_coin_have_doxygen="no"
32013fi
32014fi
32015coin_have_doxygen=$ac_cv_prog_coin_have_doxygen
32016if test -n "$coin_have_doxygen"; then
32017  echo "$as_me:$LINENO: result: $coin_have_doxygen" >&5
32018echo "${ECHO_T}$coin_have_doxygen" >&6
32019else
32020  echo "$as_me:$LINENO: result: no" >&5
32021echo "${ECHO_T}no" >&6
32022fi
32023
32024# Extract the first word of "latex", so it can be a program name with args.
32025set dummy latex; ac_word=$2
32026echo "$as_me:$LINENO: checking for $ac_word" >&5
32027echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
32028if test "${ac_cv_prog_coin_have_latex+set}" = set; then
32029  echo $ECHO_N "(cached) $ECHO_C" >&6
32030else
32031  if test -n "$coin_have_latex"; then
32032  ac_cv_prog_coin_have_latex="$coin_have_latex" # Let the user override the test.
32033else
32034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32035for as_dir in $PATH
32036do
32037  IFS=$as_save_IFS
32038  test -z "$as_dir" && as_dir=.
32039  for ac_exec_ext in '' $ac_executable_extensions; do
32040  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32041    ac_cv_prog_coin_have_latex="yes"
32042    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32043    break 2
32044  fi
32045done
32046done
32047
32048  test -z "$ac_cv_prog_coin_have_latex" && ac_cv_prog_coin_have_latex="no"
32049fi
32050fi
32051coin_have_latex=$ac_cv_prog_coin_have_latex
32052if test -n "$coin_have_latex"; then
32053  echo "$as_me:$LINENO: result: $coin_have_latex" >&5
32054echo "${ECHO_T}$coin_have_latex" >&6
32055else
32056  echo "$as_me:$LINENO: result: no" >&5
32057echo "${ECHO_T}no" >&6
32058fi
32059
32060
32061# Look for the dot tool from the graphviz package, unless the user has
32062# disabled it.
32063
32064
32065# Check whether --with-dot or --without-dot was given.
32066if test "${with_dot+set}" = set; then
32067  withval="$with_dot"
32068
32069else
32070  withval=yes
32071fi;
32072if test x"$withval" = xno ; then
32073  coin_doxy_usedot=NO
32074  echo "$as_me:$LINENO: checking for dot " >&5
32075echo $ECHO_N "checking for dot ... $ECHO_C" >&6
32076  echo "$as_me:$LINENO: result: disabled" >&5
32077echo "${ECHO_T}disabled" >&6
32078else
32079  # Extract the first word of "dot", so it can be a program name with args.
32080set dummy dot; ac_word=$2
32081echo "$as_me:$LINENO: checking for $ac_word" >&5
32082echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
32083if test "${ac_cv_prog_coin_doxy_usedot+set}" = set; then
32084  echo $ECHO_N "(cached) $ECHO_C" >&6
32085else
32086  if test -n "$coin_doxy_usedot"; then
32087  ac_cv_prog_coin_doxy_usedot="$coin_doxy_usedot" # Let the user override the test.
32088else
32089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32090for as_dir in $PATH
32091do
32092  IFS=$as_save_IFS
32093  test -z "$as_dir" && as_dir=.
32094  for ac_exec_ext in '' $ac_executable_extensions; do
32095  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32096    ac_cv_prog_coin_doxy_usedot="YES"
32097    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32098    break 2
32099  fi
32100done
32101done
32102
32103  test -z "$ac_cv_prog_coin_doxy_usedot" && ac_cv_prog_coin_doxy_usedot="NO"
32104fi
32105fi
32106coin_doxy_usedot=$ac_cv_prog_coin_doxy_usedot
32107if test -n "$coin_doxy_usedot"; then
32108  echo "$as_me:$LINENO: result: $coin_doxy_usedot" >&5
32109echo "${ECHO_T}$coin_doxy_usedot" >&6
32110else
32111  echo "$as_me:$LINENO: result: no" >&5
32112echo "${ECHO_T}no" >&6
32113fi
32114
32115fi
32116
32117# Generate a tag file name and a log file name
32118
32119coin_doxy_tagname=doxydoc/${PACKAGE}_doxy.tag
32120
32121coin_doxy_logname=doxydoc/${PACKAGE}_doxy.log
32122
32123
32124
32125if test $coin_have_doxygen = yes; then
32126  COIN_HAS_DOXYGEN_TRUE=
32127  COIN_HAS_DOXYGEN_FALSE='#'
32128else
32129  COIN_HAS_DOXYGEN_TRUE='#'
32130  COIN_HAS_DOXYGEN_FALSE=
32131fi
32132
32133
32134
32135if test $coin_have_latex = yes; then
32136  COIN_HAS_LATEX_TRUE=
32137  COIN_HAS_LATEX_FALSE='#'
32138else
32139  COIN_HAS_LATEX_TRUE='#'
32140  COIN_HAS_LATEX_FALSE=
32141fi
32142
32143
32144# Process the list of project names and massage them into possible doxygen
32145# doc'n directories. Prefer 1) classic external, source processed using
32146# a project-specific doxygen.conf, we use the tag file; 2) classic
32147# external, source processed using package doxygen.conf; 3) installed
32148# doxydoc. Alternatives 1) and 2) are only possible if the directory will be
32149# configured, which we can't know unless this is the package base configure,
32150# since coin_subdirs is only set there. Hence it's sufficient to check for
32151# membership. If we use a tag file from a classic external, exclude the
32152# source from doxygen processing when doxygen runs in the base directory.
32153
32154coin_doxy_tagfiles=
32155coin_doxy_excludes=
32156tmp="CoinUtils Osi"
32157for proj in $tmp ; do
32158  lc_proj=`echo $proj | tr [A-Z] [a-z]`
32159  echo "$as_me:$LINENO: checking for doxygen doc'n for $proj " >&5
32160echo $ECHO_N "checking for doxygen doc'n for $proj ... $ECHO_C" >&6
32161  doxytag=${lc_proj}_doxy.tag
32162  doxyfound=no
32163  # proj will be configured, hence doxydoc present in build tree
32164  doxysrcdir="${srcdir}/../${proj}"
32165  # AC_MSG_NOTICE([Considering $doxysrcdir (base)])
32166  if test -d "$doxysrcdir" ; then
32167    # with a doxydoc directory?
32168    doxydir="$doxysrcdir/doxydoc"
32169    # AC_MSG_NOTICE([Considering $doxydir (base)])
32170    # AC_MSG_NOTICE([Subdirs: $coin_subdirs)])
32171    if test -d "$doxydir" ; then
32172      # use tag file; don't process source
32173      doxydir="../${proj}/doxydoc"
32174      coin_doxy_tagfiles="$coin_doxy_tagfiles $doxydir/$doxytag=../../$doxydir/html"
32175      echo "$as_me:$LINENO: result: $doxydir (tag)" >&5
32176echo "${ECHO_T}$doxydir (tag)" >&6
32177      coin_doxy_excludes="$coin_doxy_excludes */${proj}"
32178    else
32179      # will process the source -- nothing further to be done here
32180      echo "$as_me:$LINENO: result: $doxysrcdir (src)" >&5
32181echo "${ECHO_T}$doxysrcdir (src)" >&6
32182    fi
32183    doxyfound=yes
32184  fi
32185  # Not built, fall back to installed tag file
32186  if test $doxyfound = no ; then
32187    eval doxydir="${datadir}/coin/doc/${proj}/doxydoc"
32188    # AC_MSG_NOTICE([Considering $doxydir (install)])
32189    # AC_MSG_NOTICE([Subdirs: $coin_subdirs)])
32190    coin_doxy_tagfiles="$coin_doxy_tagfiles $doxydir/$doxytag=$doxydir/html"
32191    echo "$as_me:$LINENO: result: $doxydir (tag)" >&5
32192echo "${ECHO_T}$doxydir (tag)" >&6
32193  fi
32194done
32195
32196
32197
32198
32199
32200##############################################################################
32201#                   Finishing up by writing all the output                   #
32202##############################################################################
32203
32204# Here list all the files that configure should create (except for the
32205# configuration header file)
32206                                                                      ac_config_files="$ac_config_files Makefile examples/Makefile src/Makefile src/OsiClp/Makefile test/Makefile clp.pc clp-uninstalled.pc"
32207
32208
32209if test $coin_has_osi = yes ; then
32210                      ac_config_files="$ac_config_files osi-clp.pc:src/OsiClp/osi-clp.pc.in osi-clp-uninstalled.pc:src/OsiClp/osi-clp-uninstalled.pc.in"
32211
32212fi
32213
32214          ac_config_files="$ac_config_files doxydoc/doxygen.conf"
32215
32216
32217# Here put the location and name of the configuration header file
32218                    ac_config_headers="$ac_config_headers src/config.h src/config_clp.h"
32219
32220
32221# Finally, we let configure write all the output...
32222
32223
32224
32225
32226echo "$as_me:$LINENO: checking which command should be used to link input files" >&5
32227echo $ECHO_N "checking which command should be used to link input files... $ECHO_C" >&6
32228coin_link_input_cmd="$LN_S"
32229case "$CC" in
32230  clang* ) ;;
32231  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
32232    coin_link_input_cmd=cp ;;
32233esac
32234echo "$as_me:$LINENO: result: $coin_link_input_cmd" >&5
32235echo "${ECHO_T}$coin_link_input_cmd" >&6
32236
32237
32238
32239if test x$coin_skip_ac_output != xyes; then
32240
32241  # library extension
32242
32243  case "$CC" in
32244    clang* )
32245         LIBEXT=a ;;
32246    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
32247         LIBEXT=lib ;;
32248      *) LIBEXT=a ;;
32249  esac
32250
32251  # Define VPATH_DISTCLEANFILES to be everything that needs to be
32252  # cleaned for distclean in a vpath configuration
32253
32254  VPATH_DISTCLEANFILES="$coin_vpath_link_files"
32255
32256  # Take out subdirectories if their configuration concluded that they
32257  # don't need to be compiled
32258  if test x"$coin_ac_skip_subdirs" != x; then
32259    new_subdirs=
32260    for i in $subdirs; do
32261      skipme=no
32262      for j in $coin_ac_skip_subdirs; do
32263        if test $i = $j; then
32264          skipme=yes;
32265        fi
32266      done
32267      if test $skipme = no; then
32268        new_subdirs="$new_subdirs $i"
32269      fi
32270    done
32271    subdirs="$new_subdirs"
32272  fi
32273
32274  # need to come before AC_OUTPUT
32275  if test x$coin_projectdir != xyes; then
32276    # write coin_subdirs to a file so that project configuration knows where to find uninstalled projects
32277    echo $coin_subdirs > coin_subdirs.txt
32278  else
32279    # substitute for OBJDIR, needed to setup .pc file for uninstalled project
32280    ABSBUILDDIR="`pwd`"
32281
32282  fi
32283
32284  cat >confcache <<\_ACEOF
32285# This file is a shell script that caches the results of configure
32286# tests run on this system so they can be shared between configure
32287# scripts and configure runs, see configure's option --config-cache.
32288# It is not useful on other systems.  If it contains results you don't
32289# want to keep, you may remove or edit it.
32290#
32291# config.status only pays attention to the cache file if you give it
32292# the --recheck option to rerun configure.
32293#
32294# `ac_cv_env_foo' variables (set or unset) will be overridden when
32295# loading this file, other *unset* `ac_cv_foo' will be assigned the
32296# following values.
32297
32298_ACEOF
32299
32300# The following way of writing the cache mishandles newlines in values,
32301# but we know of no workaround that is simple, portable, and efficient.
32302# So, don't put newlines in cache variables' values.
32303# Ultrix sh set writes to stderr and can't be redirected directly,
32304# and sets the high bit in the cache file unless we assign to the vars.
32305{
32306  (set) 2>&1 |
32307    case `(ac_space=' '; set | grep ac_space) 2>&1` in
32308    *ac_space=\ *)
32309      # `set' does not quote correctly, so add quotes (double-quote
32310      # substitution turns \\\\ into \\, and sed turns \\ into \).
32311      sed -n \
32312	"s/'/'\\\\''/g;
32313	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32314      ;;
32315    *)
32316      # `set' quotes correctly as required by POSIX, so do not add quotes.
32317      sed -n \
32318	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
32319      ;;
32320    esac;
32321} |
32322  sed '
32323     t clear
32324     : clear
32325     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32326     t end
32327     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32328     : end' >>confcache
32329if diff $cache_file confcache >/dev/null 2>&1; then :; else
32330  if test -w $cache_file; then
32331    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
32332    cat confcache >$cache_file
32333  else
32334    echo "not updating unwritable cache $cache_file"
32335  fi
32336fi
32337rm -f confcache
32338
32339test "x$prefix" = xNONE && prefix=$ac_default_prefix
32340# Let make expand exec_prefix.
32341test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32342
32343# VPATH may cause trouble with some makes, so we remove $(srcdir),
32344# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
32345# trailing colons and then remove the whole line if VPATH becomes empty
32346# (actually we leave an empty line to preserve line numbers).
32347if test "x$srcdir" = x.; then
32348  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
32349s/:*\$(srcdir):*/:/;
32350s/:*\${srcdir}:*/:/;
32351s/:*@srcdir@:*/:/;
32352s/^\([^=]*=[	 ]*\):*/\1/;
32353s/:*$//;
32354s/^[^=]*=[	 ]*$//;
32355}'
32356fi
32357
32358DEFS=-DHAVE_CONFIG_H
32359
32360ac_libobjs=
32361ac_ltlibobjs=
32362for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32363  # 1. Remove the extension, and $U if already installed.
32364  ac_i=`echo "$ac_i" |
32365	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
32366  # 2. Add them.
32367  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
32368  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
32369done
32370LIBOBJS=$ac_libobjs
32371
32372LTLIBOBJS=$ac_ltlibobjs
32373
32374
32375if test -z "${ALWAYS_FALSE_TRUE}" && test -z "${ALWAYS_FALSE_FALSE}"; then
32376  { { echo "$as_me:$LINENO: error: conditional \"ALWAYS_FALSE\" was never defined.
32377Usually this means the macro was only invoked conditionally." >&5
32378echo "$as_me: error: conditional \"ALWAYS_FALSE\" was never defined.
32379Usually this means the macro was only invoked conditionally." >&2;}
32380   { (exit 1); exit 1; }; }
32381fi
32382if test -z "${COIN_CC_IS_CL_TRUE}" && test -z "${COIN_CC_IS_CL_FALSE}"; then
32383  { { echo "$as_me:$LINENO: error: conditional \"COIN_CC_IS_CL\" was never defined.
32384Usually this means the macro was only invoked conditionally." >&5
32385echo "$as_me: error: conditional \"COIN_CC_IS_CL\" was never defined.
32386Usually this means the macro was only invoked conditionally." >&2;}
32387   { (exit 1); exit 1; }; }
32388fi
32389if test -z "${COIN_CXX_IS_CL_TRUE}" && test -z "${COIN_CXX_IS_CL_FALSE}"; then
32390  { { echo "$as_me:$LINENO: error: conditional \"COIN_CXX_IS_CL\" was never defined.
32391Usually this means the macro was only invoked conditionally." >&5
32392echo "$as_me: error: conditional \"COIN_CXX_IS_CL\" was never defined.
32393Usually this means the macro was only invoked conditionally." >&2;}
32394   { (exit 1); exit 1; }; }
32395fi
32396if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
32397  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
32398Usually this means the macro was only invoked conditionally." >&5
32399echo "$as_me: error: conditional \"AMDEP\" was never defined.
32400Usually this means the macro was only invoked conditionally." >&2;}
32401   { (exit 1); exit 1; }; }
32402fi
32403if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
32404  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
32405Usually this means the macro was only invoked conditionally." >&5
32406echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
32407Usually this means the macro was only invoked conditionally." >&2;}
32408   { (exit 1); exit 1; }; }
32409fi
32410if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
32411  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
32412Usually this means the macro was only invoked conditionally." >&5
32413echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
32414Usually this means the macro was only invoked conditionally." >&2;}
32415   { (exit 1); exit 1; }; }
32416fi
32417if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
32418  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
32419Usually this means the macro was only invoked conditionally." >&5
32420echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
32421Usually this means the macro was only invoked conditionally." >&2;}
32422   { (exit 1); exit 1; }; }
32423fi
32424if test -z "${HAVE_EXTERNALS_TRUE}" && test -z "${HAVE_EXTERNALS_FALSE}"; then
32425  { { echo "$as_me:$LINENO: error: conditional \"HAVE_EXTERNALS\" was never defined.
32426Usually this means the macro was only invoked conditionally." >&5
32427echo "$as_me: error: conditional \"HAVE_EXTERNALS\" was never defined.
32428Usually this means the macro was only invoked conditionally." >&2;}
32429   { (exit 1); exit 1; }; }
32430fi
32431if test -z "${DEPENDENCY_LINKING_TRUE}" && test -z "${DEPENDENCY_LINKING_FALSE}"; then
32432  { { echo "$as_me:$LINENO: error: conditional \"DEPENDENCY_LINKING\" was never defined.
32433Usually this means the macro was only invoked conditionally." >&5
32434echo "$as_me: error: conditional \"DEPENDENCY_LINKING\" was never defined.
32435Usually this means the macro was only invoked conditionally." >&2;}
32436   { (exit 1); exit 1; }; }
32437fi
32438if test -z "${COIN_HAS_PKGCONFIG_TRUE}" && test -z "${COIN_HAS_PKGCONFIG_FALSE}"; then
32439  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_PKGCONFIG\" was never defined.
32440Usually this means the macro was only invoked conditionally." >&5
32441echo "$as_me: error: conditional \"COIN_HAS_PKGCONFIG\" was never defined.
32442Usually this means the macro was only invoked conditionally." >&2;}
32443   { (exit 1); exit 1; }; }
32444fi
32445if test -z "${COIN_HAS_COINUTILS_TRUE}" && test -z "${COIN_HAS_COINUTILS_FALSE}"; then
32446  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_COINUTILS\" was never defined.
32447Usually this means the macro was only invoked conditionally." >&5
32448echo "$as_me: error: conditional \"COIN_HAS_COINUTILS\" was never defined.
32449Usually this means the macro was only invoked conditionally." >&2;}
32450   { (exit 1); exit 1; }; }
32451fi
32452if test -z "${COIN_HAS_COINUTILS_TRUE}" && test -z "${COIN_HAS_COINUTILS_FALSE}"; then
32453  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_COINUTILS\" was never defined.
32454Usually this means the macro was only invoked conditionally." >&5
32455echo "$as_me: error: conditional \"COIN_HAS_COINUTILS\" was never defined.
32456Usually this means the macro was only invoked conditionally." >&2;}
32457   { (exit 1); exit 1; }; }
32458fi
32459if test -z "${COIN_HAS_OSI_TRUE}" && test -z "${COIN_HAS_OSI_FALSE}"; then
32460  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_OSI\" was never defined.
32461Usually this means the macro was only invoked conditionally." >&5
32462echo "$as_me: error: conditional \"COIN_HAS_OSI\" was never defined.
32463Usually this means the macro was only invoked conditionally." >&2;}
32464   { (exit 1); exit 1; }; }
32465fi
32466if test -z "${COIN_HAS_OSI_TRUE}" && test -z "${COIN_HAS_OSI_FALSE}"; then
32467  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_OSI\" was never defined.
32468Usually this means the macro was only invoked conditionally." >&5
32469echo "$as_me: error: conditional \"COIN_HAS_OSI\" was never defined.
32470Usually this means the macro was only invoked conditionally." >&2;}
32471   { (exit 1); exit 1; }; }
32472fi
32473if test -z "${COIN_HAS_OSITESTS_TRUE}" && test -z "${COIN_HAS_OSITESTS_FALSE}"; then
32474  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_OSITESTS\" was never defined.
32475Usually this means the macro was only invoked conditionally." >&5
32476echo "$as_me: error: conditional \"COIN_HAS_OSITESTS\" was never defined.
32477Usually this means the macro was only invoked conditionally." >&2;}
32478   { (exit 1); exit 1; }; }
32479fi
32480if test -z "${COIN_HAS_OSITESTS_TRUE}" && test -z "${COIN_HAS_OSITESTS_FALSE}"; then
32481  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_OSITESTS\" was never defined.
32482Usually this means the macro was only invoked conditionally." >&5
32483echo "$as_me: error: conditional \"COIN_HAS_OSITESTS\" was never defined.
32484Usually this means the macro was only invoked conditionally." >&2;}
32485   { (exit 1); exit 1; }; }
32486fi
32487if test -z "${COIN_HAS_SAMPLE_TRUE}" && test -z "${COIN_HAS_SAMPLE_FALSE}"; then
32488  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_SAMPLE\" was never defined.
32489Usually this means the macro was only invoked conditionally." >&5
32490echo "$as_me: error: conditional \"COIN_HAS_SAMPLE\" was never defined.
32491Usually this means the macro was only invoked conditionally." >&2;}
32492   { (exit 1); exit 1; }; }
32493fi
32494if test -z "${COIN_HAS_SAMPLE_TRUE}" && test -z "${COIN_HAS_SAMPLE_FALSE}"; then
32495  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_SAMPLE\" was never defined.
32496Usually this means the macro was only invoked conditionally." >&5
32497echo "$as_me: error: conditional \"COIN_HAS_SAMPLE\" was never defined.
32498Usually this means the macro was only invoked conditionally." >&2;}
32499   { (exit 1); exit 1; }; }
32500fi
32501if test -z "${COIN_HAS_NETLIB_TRUE}" && test -z "${COIN_HAS_NETLIB_FALSE}"; then
32502  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_NETLIB\" was never defined.
32503Usually this means the macro was only invoked conditionally." >&5
32504echo "$as_me: error: conditional \"COIN_HAS_NETLIB\" was never defined.
32505Usually this means the macro was only invoked conditionally." >&2;}
32506   { (exit 1); exit 1; }; }
32507fi
32508if test -z "${COIN_HAS_NETLIB_TRUE}" && test -z "${COIN_HAS_NETLIB_FALSE}"; then
32509  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_NETLIB\" was never defined.
32510Usually this means the macro was only invoked conditionally." >&5
32511echo "$as_me: error: conditional \"COIN_HAS_NETLIB\" was never defined.
32512Usually this means the macro was only invoked conditionally." >&2;}
32513   { (exit 1); exit 1; }; }
32514fi
32515if test -z "${COIN_HAS_ABC_TRUE}" && test -z "${COIN_HAS_ABC_FALSE}"; then
32516  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_ABC\" was never defined.
32517Usually this means the macro was only invoked conditionally." >&5
32518echo "$as_me: error: conditional \"COIN_HAS_ABC\" was never defined.
32519Usually this means the macro was only invoked conditionally." >&2;}
32520   { (exit 1); exit 1; }; }
32521fi
32522if test -z "${COIN_HAS_AMD_TRUE}" && test -z "${COIN_HAS_AMD_FALSE}"; then
32523  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_AMD\" was never defined.
32524Usually this means the macro was only invoked conditionally." >&5
32525echo "$as_me: error: conditional \"COIN_HAS_AMD\" was never defined.
32526Usually this means the macro was only invoked conditionally." >&2;}
32527   { (exit 1); exit 1; }; }
32528fi
32529if test -z "${COIN_HAS_CHOLMOD_TRUE}" && test -z "${COIN_HAS_CHOLMOD_FALSE}"; then
32530  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_CHOLMOD\" was never defined.
32531Usually this means the macro was only invoked conditionally." >&5
32532echo "$as_me: error: conditional \"COIN_HAS_CHOLMOD\" was never defined.
32533Usually this means the macro was only invoked conditionally." >&2;}
32534   { (exit 1); exit 1; }; }
32535fi
32536if test -z "${COIN_HAS_GLPK_TRUE}" && test -z "${COIN_HAS_GLPK_FALSE}"; then
32537  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_GLPK\" was never defined.
32538Usually this means the macro was only invoked conditionally." >&5
32539echo "$as_me: error: conditional \"COIN_HAS_GLPK\" was never defined.
32540Usually this means the macro was only invoked conditionally." >&2;}
32541   { (exit 1); exit 1; }; }
32542fi
32543if test -z "${COIN_HAS_GLPK_TRUE}" && test -z "${COIN_HAS_GLPK_FALSE}"; then
32544  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_GLPK\" was never defined.
32545Usually this means the macro was only invoked conditionally." >&5
32546echo "$as_me: error: conditional \"COIN_HAS_GLPK\" was never defined.
32547Usually this means the macro was only invoked conditionally." >&2;}
32548   { (exit 1); exit 1; }; }
32549fi
32550if test -z "${COIN_HAS_GLPK_TRUE}" && test -z "${COIN_HAS_GLPK_FALSE}"; then
32551  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_GLPK\" was never defined.
32552Usually this means the macro was only invoked conditionally." >&5
32553echo "$as_me: error: conditional \"COIN_HAS_GLPK\" was never defined.
32554Usually this means the macro was only invoked conditionally." >&2;}
32555   { (exit 1); exit 1; }; }
32556fi
32557if test -z "${COIN_HAS_MUMPS_TRUE}" && test -z "${COIN_HAS_MUMPS_FALSE}"; then
32558  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_MUMPS\" was never defined.
32559Usually this means the macro was only invoked conditionally." >&5
32560echo "$as_me: error: conditional \"COIN_HAS_MUMPS\" was never defined.
32561Usually this means the macro was only invoked conditionally." >&2;}
32562   { (exit 1); exit 1; }; }
32563fi
32564if test -z "${COIN_HAS_MUMPS_TRUE}" && test -z "${COIN_HAS_MUMPS_FALSE}"; then
32565  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_MUMPS\" was never defined.
32566Usually this means the macro was only invoked conditionally." >&5
32567echo "$as_me: error: conditional \"COIN_HAS_MUMPS\" was never defined.
32568Usually this means the macro was only invoked conditionally." >&2;}
32569   { (exit 1); exit 1; }; }
32570fi
32571if test -z "${COIN_HAS_BLAS_TRUE}" && test -z "${COIN_HAS_BLAS_FALSE}"; then
32572  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_BLAS\" was never defined.
32573Usually this means the macro was only invoked conditionally." >&5
32574echo "$as_me: error: conditional \"COIN_HAS_BLAS\" was never defined.
32575Usually this means the macro was only invoked conditionally." >&2;}
32576   { (exit 1); exit 1; }; }
32577fi
32578if test -z "${COIN_HAS_BLAS_TRUE}" && test -z "${COIN_HAS_BLAS_FALSE}"; then
32579  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_BLAS\" was never defined.
32580Usually this means the macro was only invoked conditionally." >&5
32581echo "$as_me: error: conditional \"COIN_HAS_BLAS\" was never defined.
32582Usually this means the macro was only invoked conditionally." >&2;}
32583   { (exit 1); exit 1; }; }
32584fi
32585if test -z "${COIN_HAS_BLAS_TRUE}" && test -z "${COIN_HAS_BLAS_FALSE}"; then
32586  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_BLAS\" was never defined.
32587Usually this means the macro was only invoked conditionally." >&5
32588echo "$as_me: error: conditional \"COIN_HAS_BLAS\" was never defined.
32589Usually this means the macro was only invoked conditionally." >&2;}
32590   { (exit 1); exit 1; }; }
32591fi
32592if test -z "${COIN_HAS_BLAS_TRUE}" && test -z "${COIN_HAS_BLAS_FALSE}"; then
32593  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_BLAS\" was never defined.
32594Usually this means the macro was only invoked conditionally." >&5
32595echo "$as_me: error: conditional \"COIN_HAS_BLAS\" was never defined.
32596Usually this means the macro was only invoked conditionally." >&2;}
32597   { (exit 1); exit 1; }; }
32598fi
32599if test -z "${COIN_HAS_BLAS_TRUE}" && test -z "${COIN_HAS_BLAS_FALSE}"; then
32600  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_BLAS\" was never defined.
32601Usually this means the macro was only invoked conditionally." >&5
32602echo "$as_me: error: conditional \"COIN_HAS_BLAS\" was never defined.
32603Usually this means the macro was only invoked conditionally." >&2;}
32604   { (exit 1); exit 1; }; }
32605fi
32606if test -z "${COIN_HAS_WSMP_TRUE}" && test -z "${COIN_HAS_WSMP_FALSE}"; then
32607  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_WSMP\" was never defined.
32608Usually this means the macro was only invoked conditionally." >&5
32609echo "$as_me: error: conditional \"COIN_HAS_WSMP\" was never defined.
32610Usually this means the macro was only invoked conditionally." >&2;}
32611   { (exit 1); exit 1; }; }
32612fi
32613if test -z "${COIN_HAS_ASL_TRUE}" && test -z "${COIN_HAS_ASL_FALSE}"; then
32614  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_ASL\" was never defined.
32615Usually this means the macro was only invoked conditionally." >&5
32616echo "$as_me: error: conditional \"COIN_HAS_ASL\" was never defined.
32617Usually this means the macro was only invoked conditionally." >&2;}
32618   { (exit 1); exit 1; }; }
32619fi
32620if test -z "${COIN_HAS_ASL_TRUE}" && test -z "${COIN_HAS_ASL_FALSE}"; then
32621  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_ASL\" was never defined.
32622Usually this means the macro was only invoked conditionally." >&5
32623echo "$as_me: error: conditional \"COIN_HAS_ASL\" was never defined.
32624Usually this means the macro was only invoked conditionally." >&2;}
32625   { (exit 1); exit 1; }; }
32626fi
32627if test -z "${COIN_HAS_DOXYGEN_TRUE}" && test -z "${COIN_HAS_DOXYGEN_FALSE}"; then
32628  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_DOXYGEN\" was never defined.
32629Usually this means the macro was only invoked conditionally." >&5
32630echo "$as_me: error: conditional \"COIN_HAS_DOXYGEN\" was never defined.
32631Usually this means the macro was only invoked conditionally." >&2;}
32632   { (exit 1); exit 1; }; }
32633fi
32634if test -z "${COIN_HAS_LATEX_TRUE}" && test -z "${COIN_HAS_LATEX_FALSE}"; then
32635  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_LATEX\" was never defined.
32636Usually this means the macro was only invoked conditionally." >&5
32637echo "$as_me: error: conditional \"COIN_HAS_LATEX\" was never defined.
32638Usually this means the macro was only invoked conditionally." >&2;}
32639   { (exit 1); exit 1; }; }
32640fi
32641
32642: ${CONFIG_STATUS=./config.status}
32643ac_clean_files_save=$ac_clean_files
32644ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32645{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
32646echo "$as_me: creating $CONFIG_STATUS" >&6;}
32647cat >$CONFIG_STATUS <<_ACEOF
32648#! $SHELL
32649# Generated by $as_me.
32650# Run this file to recreate the current configuration.
32651# Compiler output produced by configure, useful for debugging
32652# configure, is in config.log if it exists.
32653
32654debug=false
32655ac_cs_recheck=false
32656ac_cs_silent=false
32657SHELL=\${CONFIG_SHELL-$SHELL}
32658_ACEOF
32659
32660cat >>$CONFIG_STATUS <<\_ACEOF
32661## --------------------- ##
32662## M4sh Initialization.  ##
32663## --------------------- ##
32664
32665# Be Bourne compatible
32666if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
32667  emulate sh
32668  NULLCMD=:
32669  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
32670  # is contrary to our usage.  Disable this feature.
32671  alias -g '${1+"$@"}'='"$@"'
32672elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
32673  set -o posix
32674fi
32675DUALCASE=1; export DUALCASE # for MKS sh
32676
32677# Support unset when possible.
32678if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32679  as_unset=unset
32680else
32681  as_unset=false
32682fi
32683
32684
32685# Work around bugs in pre-3.0 UWIN ksh.
32686$as_unset ENV MAIL MAILPATH
32687PS1='$ '
32688PS2='> '
32689PS4='+ '
32690
32691# NLS nuisances.
32692for as_var in \
32693  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
32694  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
32695  LC_TELEPHONE LC_TIME
32696do
32697  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
32698    eval $as_var=C; export $as_var
32699  else
32700    $as_unset $as_var
32701  fi
32702done
32703
32704# Required to use basename.
32705if expr a : '\(a\)' >/dev/null 2>&1; then
32706  as_expr=expr
32707else
32708  as_expr=false
32709fi
32710
32711if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
32712  as_basename=basename
32713else
32714  as_basename=false
32715fi
32716
32717
32718# Name of the executable.
32719as_me=`$as_basename "$0" ||
32720$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32721	 X"$0" : 'X\(//\)$' \| \
32722	 X"$0" : 'X\(/\)$' \| \
32723	 .     : '\(.\)' 2>/dev/null ||
32724echo X/"$0" |
32725    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
32726  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
32727  	  /^X\/\(\/\).*/{ s//\1/; q; }
32728  	  s/.*/./; q'`
32729
32730
32731# PATH needs CR, and LINENO needs CR and PATH.
32732# Avoid depending upon Character Ranges.
32733as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32734as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32735as_cr_Letters=$as_cr_letters$as_cr_LETTERS
32736as_cr_digits='0123456789'
32737as_cr_alnum=$as_cr_Letters$as_cr_digits
32738
32739# The user is always right.
32740if test "${PATH_SEPARATOR+set}" != set; then
32741  echo "#! /bin/sh" >conf$$.sh
32742  echo  "exit 0"   >>conf$$.sh
32743  chmod +x conf$$.sh
32744  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
32745    PATH_SEPARATOR=';'
32746  else
32747    PATH_SEPARATOR=:
32748  fi
32749  rm -f conf$$.sh
32750fi
32751
32752
32753  as_lineno_1=$LINENO
32754  as_lineno_2=$LINENO
32755  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
32756  test "x$as_lineno_1" != "x$as_lineno_2" &&
32757  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
32758  # Find who we are.  Look in the path if we contain no path at all
32759  # relative or not.
32760  case $0 in
32761    *[\\/]* ) as_myself=$0 ;;
32762    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32763for as_dir in $PATH
32764do
32765  IFS=$as_save_IFS
32766  test -z "$as_dir" && as_dir=.
32767  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32768done
32769
32770       ;;
32771  esac
32772  # We did not find ourselves, most probably we were run as `sh COMMAND'
32773  # in which case we are not to be found in the path.
32774  if test "x$as_myself" = x; then
32775    as_myself=$0
32776  fi
32777  if test ! -f "$as_myself"; then
32778    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
32779echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
32780   { (exit 1); exit 1; }; }
32781  fi
32782  case $CONFIG_SHELL in
32783  '')
32784    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32785for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
32786do
32787  IFS=$as_save_IFS
32788  test -z "$as_dir" && as_dir=.
32789  for as_base in sh bash ksh sh5; do
32790	 case $as_dir in
32791	 /*)
32792	   if ("$as_dir/$as_base" -c '
32793  as_lineno_1=$LINENO
32794  as_lineno_2=$LINENO
32795  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
32796  test "x$as_lineno_1" != "x$as_lineno_2" &&
32797  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
32798	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
32799	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
32800	     CONFIG_SHELL=$as_dir/$as_base
32801	     export CONFIG_SHELL
32802	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
32803	   fi;;
32804	 esac
32805       done
32806done
32807;;
32808  esac
32809
32810  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
32811  # uniformly replaced by the line number.  The first 'sed' inserts a
32812  # line-number line before each line; the second 'sed' does the real
32813  # work.  The second script uses 'N' to pair each line-number line
32814  # with the numbered line, and appends trailing '-' during
32815  # substitution so that $LINENO is not a special case at line end.
32816  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
32817  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
32818  sed '=' <$as_myself |
32819    sed '
32820      N
32821      s,$,-,
32822      : loop
32823      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
32824      t loop
32825      s,-$,,
32826      s,^['$as_cr_digits']*\n,,
32827    ' >$as_me.lineno &&
32828  chmod +x $as_me.lineno ||
32829    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
32830echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
32831   { (exit 1); exit 1; }; }
32832
32833  # Don't try to exec as it changes $[0], causing all sort of problems
32834  # (the dirname of $[0] is not the place where we might find the
32835  # original and so on.  Autoconf is especially sensible to this).
32836  . ./$as_me.lineno
32837  # Exit status is that of the last command.
32838  exit
32839}
32840
32841
32842case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
32843  *c*,-n*) ECHO_N= ECHO_C='
32844' ECHO_T='	' ;;
32845  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
32846  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
32847esac
32848
32849if expr a : '\(a\)' >/dev/null 2>&1; then
32850  as_expr=expr
32851else
32852  as_expr=false
32853fi
32854
32855rm -f conf$$ conf$$.exe conf$$.file
32856echo >conf$$.file
32857if ln -s conf$$.file conf$$ 2>/dev/null; then
32858  # We could just check for DJGPP; but this test a) works b) is more generic
32859  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
32860  if test -f conf$$.exe; then
32861    # Don't use ln at all; we don't have any links
32862    as_ln_s='cp -p'
32863  else
32864    as_ln_s='ln -s'
32865  fi
32866elif ln conf$$.file conf$$ 2>/dev/null; then
32867  as_ln_s=ln
32868else
32869  as_ln_s='cp -p'
32870fi
32871rm -f conf$$ conf$$.exe conf$$.file
32872
32873if mkdir -p . 2>/dev/null; then
32874  as_mkdir_p=:
32875else
32876  test -d ./-p && rmdir ./-p
32877  as_mkdir_p=false
32878fi
32879
32880as_executable_p="test -f"
32881
32882# Sed expression to map a string onto a valid CPP name.
32883as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
32884
32885# Sed expression to map a string onto a valid variable name.
32886as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
32887
32888
32889# IFS
32890# We need space, tab and new line, in precisely that order.
32891as_nl='
32892'
32893IFS=" 	$as_nl"
32894
32895# CDPATH.
32896$as_unset CDPATH
32897
32898exec 6>&1
32899
32900# Open the log real soon, to keep \$[0] and so on meaningful, and to
32901# report actual input values of CONFIG_FILES etc. instead of their
32902# values after options handling.  Logging --version etc. is OK.
32903exec 5>>config.log
32904{
32905  echo
32906  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
32907## Running $as_me. ##
32908_ASBOX
32909} >&5
32910cat >&5 <<_CSEOF
32911
32912This file was extended by Clp $as_me 1.17.3, which was
32913generated by GNU Autoconf 2.59.  Invocation command line was
32914
32915  CONFIG_FILES    = $CONFIG_FILES
32916  CONFIG_HEADERS  = $CONFIG_HEADERS
32917  CONFIG_LINKS    = $CONFIG_LINKS
32918  CONFIG_COMMANDS = $CONFIG_COMMANDS
32919  $ $0 $@
32920
32921_CSEOF
32922echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
32923echo >&5
32924_ACEOF
32925
32926# Files that config.status was made for.
32927if test -n "$ac_config_files"; then
32928  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
32929fi
32930
32931if test -n "$ac_config_headers"; then
32932  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
32933fi
32934
32935if test -n "$ac_config_links"; then
32936  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
32937fi
32938
32939if test -n "$ac_config_commands"; then
32940  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
32941fi
32942
32943cat >>$CONFIG_STATUS <<\_ACEOF
32944
32945ac_cs_usage="\
32946\`$as_me' instantiates files from templates according to the
32947current configuration.
32948
32949Usage: $0 [OPTIONS] [FILE]...
32950
32951  -h, --help       print this help, then exit
32952  -V, --version    print version number, then exit
32953  -q, --quiet      do not print progress messages
32954  -d, --debug      don't remove temporary files
32955      --recheck    update $as_me by reconfiguring in the same conditions
32956  --file=FILE[:TEMPLATE]
32957		   instantiate the configuration file FILE
32958  --header=FILE[:TEMPLATE]
32959		   instantiate the configuration header FILE
32960
32961Configuration files:
32962$config_files
32963
32964Configuration headers:
32965$config_headers
32966
32967Configuration commands:
32968$config_commands
32969
32970Report bugs to <bug-autoconf@gnu.org>."
32971_ACEOF
32972
32973cat >>$CONFIG_STATUS <<_ACEOF
32974ac_cs_version="\\
32975Clp config.status 1.17.3
32976configured by $0, generated by GNU Autoconf 2.59,
32977  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
32978
32979Copyright (C) 2003 Free Software Foundation, Inc.
32980This config.status script is free software; the Free Software Foundation
32981gives unlimited permission to copy, distribute and modify it."
32982srcdir=$srcdir
32983INSTALL="$INSTALL"
32984_ACEOF
32985
32986cat >>$CONFIG_STATUS <<\_ACEOF
32987# If no file are specified by the user, then we need to provide default
32988# value.  By we need to know if files were specified by the user.
32989ac_need_defaults=:
32990while test $# != 0
32991do
32992  case $1 in
32993  --*=*)
32994    ac_option=`expr "x$1" : 'x\([^=]*\)='`
32995    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
32996    ac_shift=:
32997    ;;
32998  -*)
32999    ac_option=$1
33000    ac_optarg=$2
33001    ac_shift=shift
33002    ;;
33003  *) # This is not an option, so the user has probably given explicit
33004     # arguments.
33005     ac_option=$1
33006     ac_need_defaults=false;;
33007  esac
33008
33009  case $ac_option in
33010  # Handling of the options.
33011_ACEOF
33012cat >>$CONFIG_STATUS <<\_ACEOF
33013  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33014    ac_cs_recheck=: ;;
33015  --version | --vers* | -V )
33016    echo "$ac_cs_version"; exit 0 ;;
33017  --he | --h)
33018    # Conflict between --help and --header
33019    { { echo "$as_me:$LINENO: error: ambiguous option: $1
33020Try \`$0 --help' for more information." >&5
33021echo "$as_me: error: ambiguous option: $1
33022Try \`$0 --help' for more information." >&2;}
33023   { (exit 1); exit 1; }; };;
33024  --help | --hel | -h )
33025    echo "$ac_cs_usage"; exit 0 ;;
33026  --debug | --d* | -d )
33027    debug=: ;;
33028  --file | --fil | --fi | --f )
33029    $ac_shift
33030    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
33031    ac_need_defaults=false;;
33032  --header | --heade | --head | --hea )
33033    $ac_shift
33034    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
33035    ac_need_defaults=false;;
33036  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33037  | -silent | --silent | --silen | --sile | --sil | --si | --s)
33038    ac_cs_silent=: ;;
33039
33040  # This is an error.
33041  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
33042Try \`$0 --help' for more information." >&5
33043echo "$as_me: error: unrecognized option: $1
33044Try \`$0 --help' for more information." >&2;}
33045   { (exit 1); exit 1; }; } ;;
33046
33047  *) ac_config_targets="$ac_config_targets $1" ;;
33048
33049  esac
33050  shift
33051done
33052
33053ac_configure_extra_args=
33054
33055if $ac_cs_silent; then
33056  exec 6>/dev/null
33057  ac_configure_extra_args="$ac_configure_extra_args --silent"
33058fi
33059
33060_ACEOF
33061cat >>$CONFIG_STATUS <<_ACEOF
33062if \$ac_cs_recheck; then
33063  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
33064  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33065fi
33066
33067_ACEOF
33068
33069cat >>$CONFIG_STATUS <<_ACEOF
33070#
33071# INIT-COMMANDS section.
33072#
33073
33074AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
33075
33076_ACEOF
33077
33078
33079
33080cat >>$CONFIG_STATUS <<\_ACEOF
33081for ac_config_target in $ac_config_targets
33082do
33083  case "$ac_config_target" in
33084  # Handling of arguments.
33085  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
33086  "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
33087  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
33088  "src/OsiClp/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/OsiClp/Makefile" ;;
33089  "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
33090  "clp.pc" ) CONFIG_FILES="$CONFIG_FILES clp.pc" ;;
33091  "clp-uninstalled.pc" ) CONFIG_FILES="$CONFIG_FILES clp-uninstalled.pc" ;;
33092  "osi-clp.pc" ) CONFIG_FILES="$CONFIG_FILES osi-clp.pc:src/OsiClp/osi-clp.pc.in" ;;
33093  "osi-clp-uninstalled.pc" ) CONFIG_FILES="$CONFIG_FILES osi-clp-uninstalled.pc:src/OsiClp/osi-clp-uninstalled.pc.in" ;;
33094  "doxydoc/doxygen.conf" ) CONFIG_FILES="$CONFIG_FILES doxydoc/doxygen.conf" ;;
33095  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
33096  "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
33097  "src/config_clp.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config_clp.h" ;;
33098  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
33099echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
33100   { (exit 1); exit 1; }; };;
33101  esac
33102done
33103
33104# If the user did not use the arguments to specify the items to instantiate,
33105# then the envvar interface is used.  Set only those that are not.
33106# We use the long form for the default assignment because of an extremely
33107# bizarre bug on SunOS 4.1.3.
33108if $ac_need_defaults; then
33109  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33110  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33111  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
33112fi
33113
33114# Have a temporary directory for convenience.  Make it in the build tree
33115# simply because there is no reason to put it here, and in addition,
33116# creating and moving files from /tmp can sometimes cause problems.
33117# Create a temporary directory, and hook for its removal unless debugging.
33118$debug ||
33119{
33120  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
33121  trap '{ (exit 1); exit 1; }' 1 2 13 15
33122}
33123
33124# Create a (secure) tmp directory for tmp files.
33125
33126{
33127  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
33128  test -n "$tmp" && test -d "$tmp"
33129}  ||
33130{
33131  tmp=./confstat$$-$RANDOM
33132  (umask 077 && mkdir $tmp)
33133} ||
33134{
33135   echo "$me: cannot create a temporary directory in ." >&2
33136   { (exit 1); exit 1; }
33137}
33138
33139_ACEOF
33140
33141cat >>$CONFIG_STATUS <<_ACEOF
33142
33143#
33144# CONFIG_FILES section.
33145#
33146
33147# No need to generate the scripts if there are no CONFIG_FILES.
33148# This happens for instance when ./config.status config.h
33149if test -n "\$CONFIG_FILES"; then
33150  # Protect against being on the right side of a sed subst in config.status.
33151  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
33152   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
33153s,@SHELL@,$SHELL,;t t
33154s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
33155s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
33156s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
33157s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
33158s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
33159s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
33160s,@exec_prefix@,$exec_prefix,;t t
33161s,@prefix@,$prefix,;t t
33162s,@program_transform_name@,$program_transform_name,;t t
33163s,@bindir@,$bindir,;t t
33164s,@sbindir@,$sbindir,;t t
33165s,@libexecdir@,$libexecdir,;t t
33166s,@datadir@,$datadir,;t t
33167s,@sysconfdir@,$sysconfdir,;t t
33168s,@sharedstatedir@,$sharedstatedir,;t t
33169s,@localstatedir@,$localstatedir,;t t
33170s,@libdir@,$libdir,;t t
33171s,@includedir@,$includedir,;t t
33172s,@oldincludedir@,$oldincludedir,;t t
33173s,@infodir@,$infodir,;t t
33174s,@mandir@,$mandir,;t t
33175s,@build_alias@,$build_alias,;t t
33176s,@host_alias@,$host_alias,;t t
33177s,@target_alias@,$target_alias,;t t
33178s,@DEFS@,$DEFS,;t t
33179s,@ECHO_C@,$ECHO_C,;t t
33180s,@ECHO_N@,$ECHO_N,;t t
33181s,@ECHO_T@,$ECHO_T,;t t
33182s,@LIBS@,$LIBS,;t t
33183s,@build@,$build,;t t
33184s,@build_cpu@,$build_cpu,;t t
33185s,@build_vendor@,$build_vendor,;t t
33186s,@build_os@,$build_os,;t t
33187s,@ALWAYS_FALSE_TRUE@,$ALWAYS_FALSE_TRUE,;t t
33188s,@ALWAYS_FALSE_FALSE@,$ALWAYS_FALSE_FALSE,;t t
33189s,@have_svnversion@,$have_svnversion,;t t
33190s,@CLP_SVN_REV@,$CLP_SVN_REV,;t t
33191s,@CDEFS@,$CDEFS,;t t
33192s,@ADD_CFLAGS@,$ADD_CFLAGS,;t t
33193s,@DBG_CFLAGS@,$DBG_CFLAGS,;t t
33194s,@OPT_CFLAGS@,$OPT_CFLAGS,;t t
33195s,@sol_cc_compiler@,$sol_cc_compiler,;t t
33196s,@CC@,$CC,;t t
33197s,@CFLAGS@,$CFLAGS,;t t
33198s,@LDFLAGS@,$LDFLAGS,;t t
33199s,@CPPFLAGS@,$CPPFLAGS,;t t
33200s,@ac_ct_CC@,$ac_ct_CC,;t t
33201s,@EXEEXT@,$EXEEXT,;t t
33202s,@OBJEXT@,$OBJEXT,;t t
33203s,@COIN_CC_IS_CL_TRUE@,$COIN_CC_IS_CL_TRUE,;t t
33204s,@COIN_CC_IS_CL_FALSE@,$COIN_CC_IS_CL_FALSE,;t t
33205s,@MPICC@,$MPICC,;t t
33206s,@CXXDEFS@,$CXXDEFS,;t t
33207s,@ADD_CXXFLAGS@,$ADD_CXXFLAGS,;t t
33208s,@DBG_CXXFLAGS@,$DBG_CXXFLAGS,;t t
33209s,@OPT_CXXFLAGS@,$OPT_CXXFLAGS,;t t
33210s,@CXX@,$CXX,;t t
33211s,@CXXFLAGS@,$CXXFLAGS,;t t
33212s,@ac_ct_CXX@,$ac_ct_CXX,;t t
33213s,@COIN_CXX_IS_CL_TRUE@,$COIN_CXX_IS_CL_TRUE,;t t
33214s,@COIN_CXX_IS_CL_FALSE@,$COIN_CXX_IS_CL_FALSE,;t t
33215s,@MPICXX@,$MPICXX,;t t
33216s,@EGREP@,$EGREP,;t t
33217s,@LN_S@,$LN_S,;t t
33218s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
33219s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
33220s,@INSTALL_DATA@,$INSTALL_DATA,;t t
33221s,@CYGPATH_W@,$CYGPATH_W,;t t
33222s,@PACKAGE@,$PACKAGE,;t t
33223s,@VERSION@,$VERSION,;t t
33224s,@ACLOCAL@,$ACLOCAL,;t t
33225s,@AUTOCONF@,$AUTOCONF,;t t
33226s,@AUTOMAKE@,$AUTOMAKE,;t t
33227s,@AUTOHEADER@,$AUTOHEADER,;t t
33228s,@MAKEINFO@,$MAKEINFO,;t t
33229s,@install_sh@,$install_sh,;t t
33230s,@STRIP@,$STRIP,;t t
33231s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
33232s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
33233s,@mkdir_p@,$mkdir_p,;t t
33234s,@AWK@,$AWK,;t t
33235s,@SET_MAKE@,$SET_MAKE,;t t
33236s,@am__leading_dot@,$am__leading_dot,;t t
33237s,@AMTAR@,$AMTAR,;t t
33238s,@am__tar@,$am__tar,;t t
33239s,@am__untar@,$am__untar,;t t
33240s,@DEPDIR@,$DEPDIR,;t t
33241s,@am__include@,$am__include,;t t
33242s,@am__quote@,$am__quote,;t t
33243s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
33244s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
33245s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
33246s,@CCDEPMODE@,$CCDEPMODE,;t t
33247s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
33248s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
33249s,@CXXDEPMODE@,$CXXDEPMODE,;t t
33250s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
33251s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
33252s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
33253s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
33254s,@MAINT@,$MAINT,;t t
33255s,@LIBTOOLM4@,$LIBTOOLM4,;t t
33256s,@have_autoconf@,$have_autoconf,;t t
33257s,@have_automake@,$have_automake,;t t
33258s,@have_svn@,$have_svn,;t t
33259s,@BUILDTOOLSDIR@,$BUILDTOOLSDIR,;t t
33260s,@AUX_DIR@,$AUX_DIR,;t t
33261s,@abs_source_dir@,$abs_source_dir,;t t
33262s,@abs_lib_dir@,$abs_lib_dir,;t t
33263s,@abs_include_dir@,$abs_include_dir,;t t
33264s,@abs_bin_dir@,$abs_bin_dir,;t t
33265s,@HAVE_EXTERNALS_TRUE@,$HAVE_EXTERNALS_TRUE,;t t
33266s,@HAVE_EXTERNALS_FALSE@,$HAVE_EXTERNALS_FALSE,;t t
33267s,@host@,$host,;t t
33268s,@host_cpu@,$host_cpu,;t t
33269s,@host_vendor@,$host_vendor,;t t
33270s,@host_os@,$host_os,;t t
33271s,@ECHO@,$ECHO,;t t
33272s,@AR@,$AR,;t t
33273s,@ac_ct_AR@,$ac_ct_AR,;t t
33274s,@RANLIB@,$RANLIB,;t t
33275s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
33276s,@CPP@,$CPP,;t t
33277s,@CXXCPP@,$CXXCPP,;t t
33278s,@F77@,$F77,;t t
33279s,@FFLAGS@,$FFLAGS,;t t
33280s,@ac_ct_F77@,$ac_ct_F77,;t t
33281s,@LIBTOOL@,$LIBTOOL,;t t
33282s,@ac_c_preproc_warn_flag@,$ac_c_preproc_warn_flag,;t t
33283s,@ac_cxx_preproc_warn_flag@,$ac_cxx_preproc_warn_flag,;t t
33284s,@RPATH_FLAGS@,$RPATH_FLAGS,;t t
33285s,@DEPENDENCY_LINKING_TRUE@,$DEPENDENCY_LINKING_TRUE,;t t
33286s,@DEPENDENCY_LINKING_FALSE@,$DEPENDENCY_LINKING_FALSE,;t t
33287s,@LT_LDFLAGS@,$LT_LDFLAGS,;t t
33288s,@PKG_CONFIG@,$PKG_CONFIG,;t t
33289s,@ac_ct_PKG_CONFIG@,$ac_ct_PKG_CONFIG,;t t
33290s,@COIN_HAS_PKGCONFIG_TRUE@,$COIN_HAS_PKGCONFIG_TRUE,;t t
33291s,@COIN_HAS_PKGCONFIG_FALSE@,$COIN_HAS_PKGCONFIG_FALSE,;t t
33292s,@COIN_PKG_CONFIG_PATH@,$COIN_PKG_CONFIG_PATH,;t t
33293s,@COIN_PKG_CONFIG_PATH_UNINSTALLED@,$COIN_PKG_CONFIG_PATH_UNINSTALLED,;t t
33294s,@COINUTILS_LIBS@,$COINUTILS_LIBS,;t t
33295s,@COINUTILS_CFLAGS@,$COINUTILS_CFLAGS,;t t
33296s,@COINUTILS_DATA@,$COINUTILS_DATA,;t t
33297s,@COINUTILS_DEPENDENCIES@,$COINUTILS_DEPENDENCIES,;t t
33298s,@COINUTILS_LIBS_INSTALLED@,$COINUTILS_LIBS_INSTALLED,;t t
33299s,@COINUTILS_CFLAGS_INSTALLED@,$COINUTILS_CFLAGS_INSTALLED,;t t
33300s,@COINUTILS_DATA_INSTALLED@,$COINUTILS_DATA_INSTALLED,;t t
33301s,@CLPLIB_CFLAGS@,$CLPLIB_CFLAGS,;t t
33302s,@CLPLIB_LIBS@,$CLPLIB_LIBS,;t t
33303s,@CLPLIB_PCLIBS@,$CLPLIB_PCLIBS,;t t
33304s,@CLPLIB_PCREQUIRES@,$CLPLIB_PCREQUIRES,;t t
33305s,@CLPLIB_DEPENDENCIES@,$CLPLIB_DEPENDENCIES,;t t
33306s,@CLPLIB_CFLAGS_INSTALLED@,$CLPLIB_CFLAGS_INSTALLED,;t t
33307s,@CLPLIB_LIBS_INSTALLED@,$CLPLIB_LIBS_INSTALLED,;t t
33308s,@COIN_HAS_COINUTILS_TRUE@,$COIN_HAS_COINUTILS_TRUE,;t t
33309s,@COIN_HAS_COINUTILS_FALSE@,$COIN_HAS_COINUTILS_FALSE,;t t
33310s,@OSI_LIBS@,$OSI_LIBS,;t t
33311s,@OSI_CFLAGS@,$OSI_CFLAGS,;t t
33312s,@OSI_DATA@,$OSI_DATA,;t t
33313s,@OSI_DEPENDENCIES@,$OSI_DEPENDENCIES,;t t
33314s,@OSI_LIBS_INSTALLED@,$OSI_LIBS_INSTALLED,;t t
33315s,@OSI_CFLAGS_INSTALLED@,$OSI_CFLAGS_INSTALLED,;t t
33316s,@OSI_DATA_INSTALLED@,$OSI_DATA_INSTALLED,;t t
33317s,@OSICLPLIB_CFLAGS@,$OSICLPLIB_CFLAGS,;t t
33318s,@OSICLPLIB_LIBS@,$OSICLPLIB_LIBS,;t t
33319s,@OSICLPLIB_PCLIBS@,$OSICLPLIB_PCLIBS,;t t
33320s,@OSICLPLIB_PCREQUIRES@,$OSICLPLIB_PCREQUIRES,;t t
33321s,@OSICLPLIB_DEPENDENCIES@,$OSICLPLIB_DEPENDENCIES,;t t
33322s,@OSICLPLIB_CFLAGS_INSTALLED@,$OSICLPLIB_CFLAGS_INSTALLED,;t t
33323s,@OSICLPLIB_LIBS_INSTALLED@,$OSICLPLIB_LIBS_INSTALLED,;t t
33324s,@COIN_HAS_OSI_TRUE@,$COIN_HAS_OSI_TRUE,;t t
33325s,@COIN_HAS_OSI_FALSE@,$COIN_HAS_OSI_FALSE,;t t
33326s,@OSITESTS_LIBS@,$OSITESTS_LIBS,;t t
33327s,@OSITESTS_CFLAGS@,$OSITESTS_CFLAGS,;t t
33328s,@OSITESTS_DATA@,$OSITESTS_DATA,;t t
33329s,@OSITESTS_DEPENDENCIES@,$OSITESTS_DEPENDENCIES,;t t
33330s,@OSITESTS_LIBS_INSTALLED@,$OSITESTS_LIBS_INSTALLED,;t t
33331s,@OSITESTS_CFLAGS_INSTALLED@,$OSITESTS_CFLAGS_INSTALLED,;t t
33332s,@OSITESTS_DATA_INSTALLED@,$OSITESTS_DATA_INSTALLED,;t t
33333s,@COIN_HAS_OSITESTS_TRUE@,$COIN_HAS_OSITESTS_TRUE,;t t
33334s,@COIN_HAS_OSITESTS_FALSE@,$COIN_HAS_OSITESTS_FALSE,;t t
33335s,@SAMPLE_LIBS@,$SAMPLE_LIBS,;t t
33336s,@SAMPLE_CFLAGS@,$SAMPLE_CFLAGS,;t t
33337s,@SAMPLE_DATA@,$SAMPLE_DATA,;t t
33338s,@SAMPLE_DEPENDENCIES@,$SAMPLE_DEPENDENCIES,;t t
33339s,@SAMPLE_LIBS_INSTALLED@,$SAMPLE_LIBS_INSTALLED,;t t
33340s,@SAMPLE_CFLAGS_INSTALLED@,$SAMPLE_CFLAGS_INSTALLED,;t t
33341s,@SAMPLE_DATA_INSTALLED@,$SAMPLE_DATA_INSTALLED,;t t
33342s,@COIN_HAS_SAMPLE_TRUE@,$COIN_HAS_SAMPLE_TRUE,;t t
33343s,@COIN_HAS_SAMPLE_FALSE@,$COIN_HAS_SAMPLE_FALSE,;t t
33344s,@NETLIB_LIBS@,$NETLIB_LIBS,;t t
33345s,@NETLIB_CFLAGS@,$NETLIB_CFLAGS,;t t
33346s,@NETLIB_DATA@,$NETLIB_DATA,;t t
33347s,@NETLIB_DEPENDENCIES@,$NETLIB_DEPENDENCIES,;t t
33348s,@NETLIB_LIBS_INSTALLED@,$NETLIB_LIBS_INSTALLED,;t t
33349s,@NETLIB_CFLAGS_INSTALLED@,$NETLIB_CFLAGS_INSTALLED,;t t
33350s,@NETLIB_DATA_INSTALLED@,$NETLIB_DATA_INSTALLED,;t t
33351s,@COIN_HAS_NETLIB_TRUE@,$COIN_HAS_NETLIB_TRUE,;t t
33352s,@COIN_HAS_NETLIB_FALSE@,$COIN_HAS_NETLIB_FALSE,;t t
33353s,@COIN_HAS_ABC_TRUE@,$COIN_HAS_ABC_TRUE,;t t
33354s,@COIN_HAS_ABC_FALSE@,$COIN_HAS_ABC_FALSE,;t t
33355s,@AMDINCDIR@,$AMDINCDIR,;t t
33356s,@AMDLIB@,$AMDLIB,;t t
33357s,@COIN_HAS_AMD_TRUE@,$COIN_HAS_AMD_TRUE,;t t
33358s,@COIN_HAS_AMD_FALSE@,$COIN_HAS_AMD_FALSE,;t t
33359s,@CHOLMODINCDIR@,$CHOLMODINCDIR,;t t
33360s,@CHOLMODLIB@,$CHOLMODLIB,;t t
33361s,@COIN_HAS_CHOLMOD_TRUE@,$COIN_HAS_CHOLMOD_TRUE,;t t
33362s,@COIN_HAS_CHOLMOD_FALSE@,$COIN_HAS_CHOLMOD_FALSE,;t t
33363s,@GLPK_LIBS@,$GLPK_LIBS,;t t
33364s,@GLPK_CFLAGS@,$GLPK_CFLAGS,;t t
33365s,@GLPK_DATA@,$GLPK_DATA,;t t
33366s,@GLPK_DEPENDENCIES@,$GLPK_DEPENDENCIES,;t t
33367s,@GLPK_LIBS_INSTALLED@,$GLPK_LIBS_INSTALLED,;t t
33368s,@GLPK_CFLAGS_INSTALLED@,$GLPK_CFLAGS_INSTALLED,;t t
33369s,@GLPK_DATA_INSTALLED@,$GLPK_DATA_INSTALLED,;t t
33370s,@COIN_HAS_GLPK_TRUE@,$COIN_HAS_GLPK_TRUE,;t t
33371s,@COIN_HAS_GLPK_FALSE@,$COIN_HAS_GLPK_FALSE,;t t
33372s,@MUMPS_LIBS@,$MUMPS_LIBS,;t t
33373s,@MUMPS_CFLAGS@,$MUMPS_CFLAGS,;t t
33374s,@MUMPS_DATA@,$MUMPS_DATA,;t t
33375s,@MUMPS_DEPENDENCIES@,$MUMPS_DEPENDENCIES,;t t
33376s,@MUMPS_LIBS_INSTALLED@,$MUMPS_LIBS_INSTALLED,;t t
33377s,@MUMPS_CFLAGS_INSTALLED@,$MUMPS_CFLAGS_INSTALLED,;t t
33378s,@MUMPS_DATA_INSTALLED@,$MUMPS_DATA_INSTALLED,;t t
33379s,@COIN_HAS_MUMPS_TRUE@,$COIN_HAS_MUMPS_TRUE,;t t
33380s,@COIN_HAS_MUMPS_FALSE@,$COIN_HAS_MUMPS_FALSE,;t t
33381s,@ADD_FFLAGS@,$ADD_FFLAGS,;t t
33382s,@DBG_FFLAGS@,$DBG_FFLAGS,;t t
33383s,@OPT_FFLAGS@,$OPT_FFLAGS,;t t
33384s,@MPIF77@,$MPIF77,;t t
33385s,@FLIBS@,$FLIBS,;t t
33386s,@BLAS_LIBS@,$BLAS_LIBS,;t t
33387s,@BLAS_CFLAGS@,$BLAS_CFLAGS,;t t
33388s,@BLAS_DATA@,$BLAS_DATA,;t t
33389s,@BLAS_DEPENDENCIES@,$BLAS_DEPENDENCIES,;t t
33390s,@BLAS_LIBS_INSTALLED@,$BLAS_LIBS_INSTALLED,;t t
33391s,@BLAS_CFLAGS_INSTALLED@,$BLAS_CFLAGS_INSTALLED,;t t
33392s,@BLAS_DATA_INSTALLED@,$BLAS_DATA_INSTALLED,;t t
33393s,@COIN_HAS_BLAS_TRUE@,$COIN_HAS_BLAS_TRUE,;t t
33394s,@COIN_HAS_BLAS_FALSE@,$COIN_HAS_BLAS_FALSE,;t t
33395s,@COIN_HAS_WSMP_TRUE@,$COIN_HAS_WSMP_TRUE,;t t
33396s,@COIN_HAS_WSMP_FALSE@,$COIN_HAS_WSMP_FALSE,;t t
33397s,@ASL_LIBS@,$ASL_LIBS,;t t
33398s,@ASL_CFLAGS@,$ASL_CFLAGS,;t t
33399s,@ASL_DATA@,$ASL_DATA,;t t
33400s,@ASL_DEPENDENCIES@,$ASL_DEPENDENCIES,;t t
33401s,@ASL_LIBS_INSTALLED@,$ASL_LIBS_INSTALLED,;t t
33402s,@ASL_CFLAGS_INSTALLED@,$ASL_CFLAGS_INSTALLED,;t t
33403s,@ASL_DATA_INSTALLED@,$ASL_DATA_INSTALLED,;t t
33404s,@COIN_HAS_ASL_TRUE@,$COIN_HAS_ASL_TRUE,;t t
33405s,@COIN_HAS_ASL_FALSE@,$COIN_HAS_ASL_FALSE,;t t
33406s,@coin_have_doxygen@,$coin_have_doxygen,;t t
33407s,@coin_have_latex@,$coin_have_latex,;t t
33408s,@coin_doxy_usedot@,$coin_doxy_usedot,;t t
33409s,@coin_doxy_tagname@,$coin_doxy_tagname,;t t
33410s,@coin_doxy_logname@,$coin_doxy_logname,;t t
33411s,@COIN_HAS_DOXYGEN_TRUE@,$COIN_HAS_DOXYGEN_TRUE,;t t
33412s,@COIN_HAS_DOXYGEN_FALSE@,$COIN_HAS_DOXYGEN_FALSE,;t t
33413s,@COIN_HAS_LATEX_TRUE@,$COIN_HAS_LATEX_TRUE,;t t
33414s,@COIN_HAS_LATEX_FALSE@,$COIN_HAS_LATEX_FALSE,;t t
33415s,@coin_doxy_tagfiles@,$coin_doxy_tagfiles,;t t
33416s,@coin_doxy_excludes@,$coin_doxy_excludes,;t t
33417s,@LIBEXT@,$LIBEXT,;t t
33418s,@VPATH_DISTCLEANFILES@,$VPATH_DISTCLEANFILES,;t t
33419s,@ABSBUILDDIR@,$ABSBUILDDIR,;t t
33420s,@LIBOBJS@,$LIBOBJS,;t t
33421s,@LTLIBOBJS@,$LTLIBOBJS,;t t
33422CEOF
33423
33424_ACEOF
33425
33426  cat >>$CONFIG_STATUS <<\_ACEOF
33427  # Split the substitutions into bite-sized pieces for seds with
33428  # small command number limits, like on Digital OSF/1 and HP-UX.
33429  ac_max_sed_lines=48
33430  ac_sed_frag=1 # Number of current file.
33431  ac_beg=1 # First line for current file.
33432  ac_end=$ac_max_sed_lines # Line after last line for current file.
33433  ac_more_lines=:
33434  ac_sed_cmds=
33435  while $ac_more_lines; do
33436    if test $ac_beg -gt 1; then
33437      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
33438    else
33439      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
33440    fi
33441    if test ! -s $tmp/subs.frag; then
33442      ac_more_lines=false
33443    else
33444      # The purpose of the label and of the branching condition is to
33445      # speed up the sed processing (if there are no `@' at all, there
33446      # is no need to browse any of the substitutions).
33447      # These are the two extra sed commands mentioned above.
33448      (echo ':t
33449  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
33450      if test -z "$ac_sed_cmds"; then
33451	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
33452      else
33453	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
33454      fi
33455      ac_sed_frag=`expr $ac_sed_frag + 1`
33456      ac_beg=$ac_end
33457      ac_end=`expr $ac_end + $ac_max_sed_lines`
33458    fi
33459  done
33460  if test -z "$ac_sed_cmds"; then
33461    ac_sed_cmds=cat
33462  fi
33463fi # test -n "$CONFIG_FILES"
33464
33465_ACEOF
33466cat >>$CONFIG_STATUS <<\_ACEOF
33467for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
33468  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
33469  case $ac_file in
33470  - | *:- | *:-:* ) # input from stdin
33471	cat >$tmp/stdin
33472	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
33473	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
33474  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
33475	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
33476  * )   ac_file_in=$ac_file.in ;;
33477  esac
33478
33479  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
33480  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
33481$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33482	 X"$ac_file" : 'X\(//\)[^/]' \| \
33483	 X"$ac_file" : 'X\(//\)$' \| \
33484	 X"$ac_file" : 'X\(/\)' \| \
33485	 .     : '\(.\)' 2>/dev/null ||
33486echo X"$ac_file" |
33487    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
33488  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
33489  	  /^X\(\/\/\)$/{ s//\1/; q; }
33490  	  /^X\(\/\).*/{ s//\1/; q; }
33491  	  s/.*/./; q'`
33492  { if $as_mkdir_p; then
33493    mkdir -p "$ac_dir"
33494  else
33495    as_dir="$ac_dir"
33496    as_dirs=
33497    while test ! -d "$as_dir"; do
33498      as_dirs="$as_dir $as_dirs"
33499      as_dir=`(dirname "$as_dir") 2>/dev/null ||
33500$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33501	 X"$as_dir" : 'X\(//\)[^/]' \| \
33502	 X"$as_dir" : 'X\(//\)$' \| \
33503	 X"$as_dir" : 'X\(/\)' \| \
33504	 .     : '\(.\)' 2>/dev/null ||
33505echo X"$as_dir" |
33506    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
33507  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
33508  	  /^X\(\/\/\)$/{ s//\1/; q; }
33509  	  /^X\(\/\).*/{ s//\1/; q; }
33510  	  s/.*/./; q'`
33511    done
33512    test ! -n "$as_dirs" || mkdir $as_dirs
33513  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
33514echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
33515   { (exit 1); exit 1; }; }; }
33516
33517  ac_builddir=.
33518
33519if test "$ac_dir" != .; then
33520  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
33521  # A "../" for each directory in $ac_dir_suffix.
33522  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
33523else
33524  ac_dir_suffix= ac_top_builddir=
33525fi
33526
33527case $srcdir in
33528  .)  # No --srcdir option.  We are building in place.
33529    ac_srcdir=.
33530    if test -z "$ac_top_builddir"; then
33531       ac_top_srcdir=.
33532    else
33533       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
33534    fi ;;
33535  [\\/]* | ?:[\\/]* )  # Absolute path.
33536    ac_srcdir=$srcdir$ac_dir_suffix;
33537    ac_top_srcdir=$srcdir ;;
33538  *) # Relative path.
33539    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
33540    ac_top_srcdir=$ac_top_builddir$srcdir ;;
33541esac
33542
33543# Do not use `cd foo && pwd` to compute absolute paths, because
33544# the directories may not exist.
33545case `pwd` in
33546.) ac_abs_builddir="$ac_dir";;
33547*)
33548  case "$ac_dir" in
33549  .) ac_abs_builddir=`pwd`;;
33550  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
33551  *) ac_abs_builddir=`pwd`/"$ac_dir";;
33552  esac;;
33553esac
33554case $ac_abs_builddir in
33555.) ac_abs_top_builddir=${ac_top_builddir}.;;
33556*)
33557  case ${ac_top_builddir}. in
33558  .) ac_abs_top_builddir=$ac_abs_builddir;;
33559  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
33560  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
33561  esac;;
33562esac
33563case $ac_abs_builddir in
33564.) ac_abs_srcdir=$ac_srcdir;;
33565*)
33566  case $ac_srcdir in
33567  .) ac_abs_srcdir=$ac_abs_builddir;;
33568  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
33569  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
33570  esac;;
33571esac
33572case $ac_abs_builddir in
33573.) ac_abs_top_srcdir=$ac_top_srcdir;;
33574*)
33575  case $ac_top_srcdir in
33576  .) ac_abs_top_srcdir=$ac_abs_builddir;;
33577  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
33578  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
33579  esac;;
33580esac
33581
33582
33583  case $INSTALL in
33584  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
33585  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
33586  esac
33587
33588  if test x"$ac_file" != x-; then
33589    { echo "$as_me:$LINENO: creating $ac_file" >&5
33590echo "$as_me: creating $ac_file" >&6;}
33591    rm -f "$ac_file"
33592  fi
33593  # Let's still pretend it is `configure' which instantiates (i.e., don't
33594  # use $as_me), people would be surprised to read:
33595  #    /* config.h.  Generated by config.status.  */
33596  if test x"$ac_file" = x-; then
33597    configure_input=
33598  else
33599    configure_input="$ac_file.  "
33600  fi
33601  configure_input=$configure_input"Generated from `echo $ac_file_in |
33602				     sed 's,.*/,,'` by configure."
33603
33604  # First look for the input files in the build tree, otherwise in the
33605  # src tree.
33606  ac_file_inputs=`IFS=:
33607    for f in $ac_file_in; do
33608      case $f in
33609      -) echo $tmp/stdin ;;
33610      [\\/$]*)
33611	 # Absolute (can't be DOS-style, as IFS=:)
33612	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
33613echo "$as_me: error: cannot find input file: $f" >&2;}
33614   { (exit 1); exit 1; }; }
33615	 echo "$f";;
33616      *) # Relative
33617	 if test -f "$f"; then
33618	   # Build tree
33619	   echo "$f"
33620	 elif test -f "$srcdir/$f"; then
33621	   # Source tree
33622	   echo "$srcdir/$f"
33623	 else
33624	   # /dev/null tree
33625	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
33626echo "$as_me: error: cannot find input file: $f" >&2;}
33627   { (exit 1); exit 1; }; }
33628	 fi;;
33629      esac
33630    done` || { (exit 1); exit 1; }
33631_ACEOF
33632cat >>$CONFIG_STATUS <<_ACEOF
33633  sed "$ac_vpsub
33634$extrasub
33635_ACEOF
33636cat >>$CONFIG_STATUS <<\_ACEOF
33637:t
33638/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
33639s,@configure_input@,$configure_input,;t t
33640s,@srcdir@,$ac_srcdir,;t t
33641s,@abs_srcdir@,$ac_abs_srcdir,;t t
33642s,@top_srcdir@,$ac_top_srcdir,;t t
33643s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
33644s,@builddir@,$ac_builddir,;t t
33645s,@abs_builddir@,$ac_abs_builddir,;t t
33646s,@top_builddir@,$ac_top_builddir,;t t
33647s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
33648s,@INSTALL@,$ac_INSTALL,;t t
33649" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
33650  rm -f $tmp/stdin
33651  if test x"$ac_file" != x-; then
33652    mv $tmp/out $ac_file
33653  else
33654    cat $tmp/out
33655    rm -f $tmp/out
33656  fi
33657
33658done
33659_ACEOF
33660cat >>$CONFIG_STATUS <<\_ACEOF
33661
33662#
33663# CONFIG_HEADER section.
33664#
33665
33666# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
33667# NAME is the cpp macro being defined and VALUE is the value it is being given.
33668#
33669# ac_d sets the value in "#define NAME VALUE" lines.
33670ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
33671ac_dB='[	 ].*$,\1#\2'
33672ac_dC=' '
33673ac_dD=',;t'
33674# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
33675ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
33676ac_uB='$,\1#\2define\3'
33677ac_uC=' '
33678ac_uD=',;t'
33679
33680for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
33681  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
33682  case $ac_file in
33683  - | *:- | *:-:* ) # input from stdin
33684	cat >$tmp/stdin
33685	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
33686	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
33687  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
33688	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
33689  * )   ac_file_in=$ac_file.in ;;
33690  esac
33691
33692  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
33693echo "$as_me: creating $ac_file" >&6;}
33694
33695  # First look for the input files in the build tree, otherwise in the
33696  # src tree.
33697  ac_file_inputs=`IFS=:
33698    for f in $ac_file_in; do
33699      case $f in
33700      -) echo $tmp/stdin ;;
33701      [\\/$]*)
33702	 # Absolute (can't be DOS-style, as IFS=:)
33703	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
33704echo "$as_me: error: cannot find input file: $f" >&2;}
33705   { (exit 1); exit 1; }; }
33706	 # Do quote $f, to prevent DOS paths from being IFS'd.
33707	 echo "$f";;
33708      *) # Relative
33709	 if test -f "$f"; then
33710	   # Build tree
33711	   echo "$f"
33712	 elif test -f "$srcdir/$f"; then
33713	   # Source tree
33714	   echo "$srcdir/$f"
33715	 else
33716	   # /dev/null tree
33717	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
33718echo "$as_me: error: cannot find input file: $f" >&2;}
33719   { (exit 1); exit 1; }; }
33720	 fi;;
33721      esac
33722    done` || { (exit 1); exit 1; }
33723  # Remove the trailing spaces.
33724  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
33725
33726_ACEOF
33727
33728# Transform confdefs.h into two sed scripts, `conftest.defines' and
33729# `conftest.undefs', that substitutes the proper values into
33730# config.h.in to produce config.h.  The first handles `#define'
33731# templates, and the second `#undef' templates.
33732# And first: Protect against being on the right side of a sed subst in
33733# config.status.  Protect against being in an unquoted here document
33734# in config.status.
33735rm -f conftest.defines conftest.undefs
33736# Using a here document instead of a string reduces the quoting nightmare.
33737# Putting comments in sed scripts is not portable.
33738#
33739# `end' is used to avoid that the second main sed command (meant for
33740# 0-ary CPP macros) applies to n-ary macro definitions.
33741# See the Autoconf documentation for `clear'.
33742cat >confdef2sed.sed <<\_ACEOF
33743s/[\\&,]/\\&/g
33744s,[\\$`],\\&,g
33745t clear
33746: clear
33747s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
33748t end
33749s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
33750: end
33751_ACEOF
33752# If some macros were called several times there might be several times
33753# the same #defines, which is useless.  Nevertheless, we may not want to
33754# sort them, since we want the *last* AC-DEFINE to be honored.
33755uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
33756sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
33757rm -f confdef2sed.sed
33758
33759# This sed command replaces #undef with comments.  This is necessary, for
33760# example, in the case of _POSIX_SOURCE, which is predefined and required
33761# on some systems where configure will not decide to define it.
33762cat >>conftest.undefs <<\_ACEOF
33763s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
33764_ACEOF
33765
33766# Break up conftest.defines because some shells have a limit on the size
33767# of here documents, and old seds have small limits too (100 cmds).
33768echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
33769echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
33770echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
33771echo '  :' >>$CONFIG_STATUS
33772rm -f conftest.tail
33773while grep . conftest.defines >/dev/null
33774do
33775  # Write a limited-size here document to $tmp/defines.sed.
33776  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
33777  # Speed up: don't consider the non `#define' lines.
33778  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
33779  # Work around the forget-to-reset-the-flag bug.
33780  echo 't clr' >>$CONFIG_STATUS
33781  echo ': clr' >>$CONFIG_STATUS
33782  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
33783  echo 'CEOF
33784  sed -f $tmp/defines.sed $tmp/in >$tmp/out
33785  rm -f $tmp/in
33786  mv $tmp/out $tmp/in
33787' >>$CONFIG_STATUS
33788  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
33789  rm -f conftest.defines
33790  mv conftest.tail conftest.defines
33791done
33792rm -f conftest.defines
33793echo '  fi # grep' >>$CONFIG_STATUS
33794echo >>$CONFIG_STATUS
33795
33796# Break up conftest.undefs because some shells have a limit on the size
33797# of here documents, and old seds have small limits too (100 cmds).
33798echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
33799rm -f conftest.tail
33800while grep . conftest.undefs >/dev/null
33801do
33802  # Write a limited-size here document to $tmp/undefs.sed.
33803  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
33804  # Speed up: don't consider the non `#undef'
33805  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
33806  # Work around the forget-to-reset-the-flag bug.
33807  echo 't clr' >>$CONFIG_STATUS
33808  echo ': clr' >>$CONFIG_STATUS
33809  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
33810  echo 'CEOF
33811  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
33812  rm -f $tmp/in
33813  mv $tmp/out $tmp/in
33814' >>$CONFIG_STATUS
33815  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
33816  rm -f conftest.undefs
33817  mv conftest.tail conftest.undefs
33818done
33819rm -f conftest.undefs
33820
33821cat >>$CONFIG_STATUS <<\_ACEOF
33822  # Let's still pretend it is `configure' which instantiates (i.e., don't
33823  # use $as_me), people would be surprised to read:
33824  #    /* config.h.  Generated by config.status.  */
33825  if test x"$ac_file" = x-; then
33826    echo "/* Generated by configure.  */" >$tmp/config.h
33827  else
33828    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
33829  fi
33830  cat $tmp/in >>$tmp/config.h
33831  rm -f $tmp/in
33832  if test x"$ac_file" != x-; then
33833    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
33834      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
33835echo "$as_me: $ac_file is unchanged" >&6;}
33836    else
33837      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
33838$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33839	 X"$ac_file" : 'X\(//\)[^/]' \| \
33840	 X"$ac_file" : 'X\(//\)$' \| \
33841	 X"$ac_file" : 'X\(/\)' \| \
33842	 .     : '\(.\)' 2>/dev/null ||
33843echo X"$ac_file" |
33844    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
33845  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
33846  	  /^X\(\/\/\)$/{ s//\1/; q; }
33847  	  /^X\(\/\).*/{ s//\1/; q; }
33848  	  s/.*/./; q'`
33849      { if $as_mkdir_p; then
33850    mkdir -p "$ac_dir"
33851  else
33852    as_dir="$ac_dir"
33853    as_dirs=
33854    while test ! -d "$as_dir"; do
33855      as_dirs="$as_dir $as_dirs"
33856      as_dir=`(dirname "$as_dir") 2>/dev/null ||
33857$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33858	 X"$as_dir" : 'X\(//\)[^/]' \| \
33859	 X"$as_dir" : 'X\(//\)$' \| \
33860	 X"$as_dir" : 'X\(/\)' \| \
33861	 .     : '\(.\)' 2>/dev/null ||
33862echo X"$as_dir" |
33863    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
33864  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
33865  	  /^X\(\/\/\)$/{ s//\1/; q; }
33866  	  /^X\(\/\).*/{ s//\1/; q; }
33867  	  s/.*/./; q'`
33868    done
33869    test ! -n "$as_dirs" || mkdir $as_dirs
33870  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
33871echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
33872   { (exit 1); exit 1; }; }; }
33873
33874      rm -f $ac_file
33875      mv $tmp/config.h $ac_file
33876    fi
33877  else
33878    cat $tmp/config.h
33879    rm -f $tmp/config.h
33880  fi
33881# Compute $ac_file's index in $config_headers.
33882_am_stamp_count=1
33883for _am_header in $config_headers :; do
33884  case $_am_header in
33885    $ac_file | $ac_file:* )
33886      break ;;
33887    * )
33888      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
33889  esac
33890done
33891echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
33892$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33893	 X$ac_file : 'X\(//\)[^/]' \| \
33894	 X$ac_file : 'X\(//\)$' \| \
33895	 X$ac_file : 'X\(/\)' \| \
33896	 .     : '\(.\)' 2>/dev/null ||
33897echo X$ac_file |
33898    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
33899  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
33900  	  /^X\(\/\/\)$/{ s//\1/; q; }
33901  	  /^X\(\/\).*/{ s//\1/; q; }
33902  	  s/.*/./; q'`/stamp-h$_am_stamp_count
33903done
33904_ACEOF
33905cat >>$CONFIG_STATUS <<\_ACEOF
33906
33907#
33908# CONFIG_COMMANDS section.
33909#
33910for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
33911  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
33912  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
33913  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
33914$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33915	 X"$ac_dest" : 'X\(//\)[^/]' \| \
33916	 X"$ac_dest" : 'X\(//\)$' \| \
33917	 X"$ac_dest" : 'X\(/\)' \| \
33918	 .     : '\(.\)' 2>/dev/null ||
33919echo X"$ac_dest" |
33920    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
33921  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
33922  	  /^X\(\/\/\)$/{ s//\1/; q; }
33923  	  /^X\(\/\).*/{ s//\1/; q; }
33924  	  s/.*/./; q'`
33925  { if $as_mkdir_p; then
33926    mkdir -p "$ac_dir"
33927  else
33928    as_dir="$ac_dir"
33929    as_dirs=
33930    while test ! -d "$as_dir"; do
33931      as_dirs="$as_dir $as_dirs"
33932      as_dir=`(dirname "$as_dir") 2>/dev/null ||
33933$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33934	 X"$as_dir" : 'X\(//\)[^/]' \| \
33935	 X"$as_dir" : 'X\(//\)$' \| \
33936	 X"$as_dir" : 'X\(/\)' \| \
33937	 .     : '\(.\)' 2>/dev/null ||
33938echo X"$as_dir" |
33939    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
33940  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
33941  	  /^X\(\/\/\)$/{ s//\1/; q; }
33942  	  /^X\(\/\).*/{ s//\1/; q; }
33943  	  s/.*/./; q'`
33944    done
33945    test ! -n "$as_dirs" || mkdir $as_dirs
33946  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
33947echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
33948   { (exit 1); exit 1; }; }; }
33949
33950  ac_builddir=.
33951
33952if test "$ac_dir" != .; then
33953  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
33954  # A "../" for each directory in $ac_dir_suffix.
33955  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
33956else
33957  ac_dir_suffix= ac_top_builddir=
33958fi
33959
33960case $srcdir in
33961  .)  # No --srcdir option.  We are building in place.
33962    ac_srcdir=.
33963    if test -z "$ac_top_builddir"; then
33964       ac_top_srcdir=.
33965    else
33966       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
33967    fi ;;
33968  [\\/]* | ?:[\\/]* )  # Absolute path.
33969    ac_srcdir=$srcdir$ac_dir_suffix;
33970    ac_top_srcdir=$srcdir ;;
33971  *) # Relative path.
33972    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
33973    ac_top_srcdir=$ac_top_builddir$srcdir ;;
33974esac
33975
33976# Do not use `cd foo && pwd` to compute absolute paths, because
33977# the directories may not exist.
33978case `pwd` in
33979.) ac_abs_builddir="$ac_dir";;
33980*)
33981  case "$ac_dir" in
33982  .) ac_abs_builddir=`pwd`;;
33983  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
33984  *) ac_abs_builddir=`pwd`/"$ac_dir";;
33985  esac;;
33986esac
33987case $ac_abs_builddir in
33988.) ac_abs_top_builddir=${ac_top_builddir}.;;
33989*)
33990  case ${ac_top_builddir}. in
33991  .) ac_abs_top_builddir=$ac_abs_builddir;;
33992  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
33993  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
33994  esac;;
33995esac
33996case $ac_abs_builddir in
33997.) ac_abs_srcdir=$ac_srcdir;;
33998*)
33999  case $ac_srcdir in
34000  .) ac_abs_srcdir=$ac_abs_builddir;;
34001  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
34002  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
34003  esac;;
34004esac
34005case $ac_abs_builddir in
34006.) ac_abs_top_srcdir=$ac_top_srcdir;;
34007*)
34008  case $ac_top_srcdir in
34009  .) ac_abs_top_srcdir=$ac_abs_builddir;;
34010  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
34011  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
34012  esac;;
34013esac
34014
34015
34016  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
34017echo "$as_me: executing $ac_dest commands" >&6;}
34018  case $ac_dest in
34019    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
34020  # Strip MF so we end up with the name of the file.
34021  mf=`echo "$mf" | sed -e 's/:.*$//'`
34022  # Check whether this is an Automake generated Makefile or not.
34023  # We used to match only the files named `Makefile.in', but
34024  # some people rename them; so instead we look at the file content.
34025  # Grep'ing the first line is not enough: some people post-process
34026  # each Makefile.in and add a new line on top of each file to say so.
34027  # So let's grep whole file.
34028  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
34029    dirpart=`(dirname "$mf") 2>/dev/null ||
34030$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34031	 X"$mf" : 'X\(//\)[^/]' \| \
34032	 X"$mf" : 'X\(//\)$' \| \
34033	 X"$mf" : 'X\(/\)' \| \
34034	 .     : '\(.\)' 2>/dev/null ||
34035echo X"$mf" |
34036    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
34037  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
34038  	  /^X\(\/\/\)$/{ s//\1/; q; }
34039  	  /^X\(\/\).*/{ s//\1/; q; }
34040  	  s/.*/./; q'`
34041  else
34042    continue
34043  fi
34044  # Extract the definition of DEPDIR, am__include, and am__quote
34045  # from the Makefile without running `make'.
34046  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
34047  test -z "$DEPDIR" && continue
34048  am__include=`sed -n 's/^am__include = //p' < "$mf"`
34049  test -z "am__include" && continue
34050  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
34051  # When using ansi2knr, U may be empty or an underscore; expand it
34052  U=`sed -n 's/^U = //p' < "$mf"`
34053  # Find all dependency output files, they are included files with
34054  # $(DEPDIR) in their names.  We invoke sed twice because it is the
34055  # simplest approach to changing $(DEPDIR) to its actual value in the
34056  # expansion.
34057  for file in `sed -n "
34058    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
34059       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
34060    # Make sure the directory exists.
34061    test -f "$dirpart/$file" && continue
34062    fdir=`(dirname "$file") 2>/dev/null ||
34063$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34064	 X"$file" : 'X\(//\)[^/]' \| \
34065	 X"$file" : 'X\(//\)$' \| \
34066	 X"$file" : 'X\(/\)' \| \
34067	 .     : '\(.\)' 2>/dev/null ||
34068echo X"$file" |
34069    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
34070  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
34071  	  /^X\(\/\/\)$/{ s//\1/; q; }
34072  	  /^X\(\/\).*/{ s//\1/; q; }
34073  	  s/.*/./; q'`
34074    { if $as_mkdir_p; then
34075    mkdir -p $dirpart/$fdir
34076  else
34077    as_dir=$dirpart/$fdir
34078    as_dirs=
34079    while test ! -d "$as_dir"; do
34080      as_dirs="$as_dir $as_dirs"
34081      as_dir=`(dirname "$as_dir") 2>/dev/null ||
34082$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34083	 X"$as_dir" : 'X\(//\)[^/]' \| \
34084	 X"$as_dir" : 'X\(//\)$' \| \
34085	 X"$as_dir" : 'X\(/\)' \| \
34086	 .     : '\(.\)' 2>/dev/null ||
34087echo X"$as_dir" |
34088    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
34089  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
34090  	  /^X\(\/\/\)$/{ s//\1/; q; }
34091  	  /^X\(\/\).*/{ s//\1/; q; }
34092  	  s/.*/./; q'`
34093    done
34094    test ! -n "$as_dirs" || mkdir $as_dirs
34095  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
34096echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
34097   { (exit 1); exit 1; }; }; }
34098
34099    # echo "creating $dirpart/$file"
34100    echo '# dummy' > "$dirpart/$file"
34101  done
34102done
34103 ;;
34104  esac
34105done
34106_ACEOF
34107
34108cat >>$CONFIG_STATUS <<\_ACEOF
34109
34110{ (exit 0); exit 0; }
34111_ACEOF
34112chmod +x $CONFIG_STATUS
34113ac_clean_files=$ac_clean_files_save
34114
34115
34116# configure is writing to config.log, and then calls config.status.
34117# config.status does its own redirection, appending to config.log.
34118# Unfortunately, on DOS this fails, as config.log is still kept open
34119# by configure, so config.status won't be able to write to it; its
34120# output is simply discarded.  So we exec the FD to /dev/null,
34121# effectively closing config.log, so it can be properly (re)opened and
34122# appended to by config.status.  When coming back to configure, we
34123# need to make the FD available again.
34124if test "$no_create" != yes; then
34125  ac_cs_success=:
34126  ac_config_status_args=
34127  test "$silent" = yes &&
34128    ac_config_status_args="$ac_config_status_args --quiet"
34129  exec 5>/dev/null
34130  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
34131  exec 5>>config.log
34132  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34133  # would make configure fail if this is the last instruction.
34134  $ac_cs_success || { (exit 1); exit 1; }
34135fi
34136
34137
34138  if test x"$coin_vpath_link_files" = x; then : ; else
34139    lnkcmd="$coin_link_input_cmd"
34140    if test "$lnkcmd" = cp; then
34141      { echo "$as_me:$LINENO: Copying data files for VPATH configuration" >&5
34142echo "$as_me: Copying data files for VPATH configuration" >&6;}
34143    else
34144      { echo "$as_me:$LINENO: Creating VPATH links for data files" >&5
34145echo "$as_me: Creating VPATH links for data files" >&6;}
34146    fi
34147    for file in $coin_vpath_link_files; do
34148      dir=`(dirname "./$file") 2>/dev/null ||
34149$as_expr X"./$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34150	 X"./$file" : 'X\(//\)[^/]' \| \
34151	 X"./$file" : 'X\(//\)$' \| \
34152	 X"./$file" : 'X\(/\)' \| \
34153	 .     : '\(.\)' 2>/dev/null ||
34154echo X"./$file" |
34155    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
34156  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
34157  	  /^X\(\/\/\)$/{ s//\1/; q; }
34158  	  /^X\(\/\).*/{ s//\1/; q; }
34159  	  s/.*/./; q'`
34160      if test -d $dir; then : ; else
34161        { if $as_mkdir_p; then
34162    mkdir -p $dir
34163  else
34164    as_dir=$dir
34165    as_dirs=
34166    while test ! -d "$as_dir"; do
34167      as_dirs="$as_dir $as_dirs"
34168      as_dir=`(dirname "$as_dir") 2>/dev/null ||
34169$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34170	 X"$as_dir" : 'X\(//\)[^/]' \| \
34171	 X"$as_dir" : 'X\(//\)$' \| \
34172	 X"$as_dir" : 'X\(/\)' \| \
34173	 .     : '\(.\)' 2>/dev/null ||
34174echo X"$as_dir" |
34175    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
34176  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
34177  	  /^X\(\/\/\)$/{ s//\1/; q; }
34178  	  /^X\(\/\).*/{ s//\1/; q; }
34179  	  s/.*/./; q'`
34180    done
34181    test ! -n "$as_dirs" || mkdir $as_dirs
34182  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dir" >&5
34183echo "$as_me: error: cannot create directory $dir" >&2;}
34184   { (exit 1); exit 1; }; }; }
34185
34186      fi
34187      rm -f $file
34188      $lnkcmd $abs_source_dir/$file $file
34189    done
34190  fi
34191
34192  { echo "$as_me:$LINENO: In case of trouble, first consult the troubleshooting page at https://projects.coin-or.org/BuildTools/wiki/user-troubleshooting" >&5
34193echo "$as_me: In case of trouble, first consult the troubleshooting page at https://projects.coin-or.org/BuildTools/wiki/user-troubleshooting" >&6;}
34194  if test x$coin_projectdir = xyes; then
34195    { echo "$as_me:$LINENO: Configuration of $PACKAGE_NAME successful" >&5
34196echo "$as_me: Configuration of $PACKAGE_NAME successful" >&6;}
34197  else
34198    { echo "$as_me:$LINENO: Main configuration of $PACKAGE_NAME successful" >&5
34199echo "$as_me: Main configuration of $PACKAGE_NAME successful" >&6;}
34200  fi
34201else
34202  { echo "$as_me:$LINENO: No configuration of $PACKAGE_NAME necessary" >&5
34203echo "$as_me: No configuration of $PACKAGE_NAME necessary" >&6;}
34204fi
34205
34206
34207