1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for CoinUtils 2.11.2.
4#
5# Report bugs to <http://projects.coin-or.org/CoinUtils>.
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='CoinUtils'
431PACKAGE_TARNAME='coinutils'
432PACKAGE_VERSION='2.11.2'
433PACKAGE_STRING='CoinUtils 2.11.2'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/CoinUtils'
435
436ac_unique_file="src/CoinError.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 COINUTILS_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 ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 ac_ct_F77 FFLAGS MPIF77 FLIBS 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 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 BLAS_LIBS BLAS_CFLAGS BLAS_DATA BLAS_DEPENDENCIES BLAS_LIBS_INSTALLED BLAS_CFLAGS_INSTALLED BLAS_DATA_INSTALLED COINUTILSLIB_CFLAGS COINUTILSLIB_LIBS COINUTILSLIB_PCLIBS COINUTILSLIB_PCREQUIRES COINUTILSLIB_DEPENDENCIES COINUTILSLIB_CFLAGS_INSTALLED COINUTILSLIB_LIBS_INSTALLED COIN_HAS_BLAS_TRUE COIN_HAS_BLAS_FALSE LAPACK_LIBS LAPACK_CFLAGS LAPACK_DATA LAPACK_DEPENDENCIES LAPACK_LIBS_INSTALLED LAPACK_CFLAGS_INSTALLED LAPACK_DATA_INSTALLED COIN_HAS_LAPACK_TRUE COIN_HAS_LAPACK_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 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_ZLIB_TRUE COIN_HAS_ZLIB_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_ADD_FFLAGS_set=${ADD_FFLAGS+set}
981ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
982ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
983ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
984ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
985ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
986ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
987ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
988ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
989ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
990ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
991ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
992ac_env_F77_set=${F77+set}
993ac_env_F77_value=$F77
994ac_cv_env_F77_set=${F77+set}
995ac_cv_env_F77_value=$F77
996ac_env_FFLAGS_set=${FFLAGS+set}
997ac_env_FFLAGS_value=$FFLAGS
998ac_cv_env_FFLAGS_set=${FFLAGS+set}
999ac_cv_env_FFLAGS_value=$FFLAGS
1000ac_env_MPIF77_set=${MPIF77+set}
1001ac_env_MPIF77_value=$MPIF77
1002ac_cv_env_MPIF77_set=${MPIF77+set}
1003ac_cv_env_MPIF77_value=$MPIF77
1004ac_env_CPP_set=${CPP+set}
1005ac_env_CPP_value=$CPP
1006ac_cv_env_CPP_set=${CPP+set}
1007ac_cv_env_CPP_value=$CPP
1008ac_env_CXXCPP_set=${CXXCPP+set}
1009ac_env_CXXCPP_value=$CXXCPP
1010ac_cv_env_CXXCPP_set=${CXXCPP+set}
1011ac_cv_env_CXXCPP_value=$CXXCPP
1012ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
1013ac_env_PKG_CONFIG_value=$PKG_CONFIG
1014ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
1015ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
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 CoinUtils 2.11.2 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 CoinUtils 2.11.2:";;
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-coinutils
1100                          compile project CoinUtils with debug compiler flags
1101
1102  --enable-msvc           Prefer (i)cl/ifort/link over GNU on MinGW/Cygwin.
1103  --enable-static[=PKGS]
1104                          build static libraries [default=no]
1105  --disable-dependency-tracking  speeds up one-time build
1106  --enable-dependency-tracking   do not reject slow dependency extractors
1107  --enable-maintainer-mode  enable make rules and dependencies not useful
1108			  (and sometimes confusing) to the casual installer
1109  --enable-shared[=PKGS]
1110                          build shared libraries [default=yes]
1111  --enable-fast-install[=PKGS]
1112                          optimize for fast installation [default=yes]
1113  --disable-libtool-lock  avoid locking (might break parallel builds)
1114  --disable-dependency-linking
1115                          disable linking library dependencies into shared
1116                          libraries
1117  --enable-coinutils-threads
1118                          enables compilation of thread aware CoinUtils
1119                          (mempool so far)
1120  --enable-coinutils-mempool-override-new
1121                          enables the CoinUtils mempool to override global
1122                          new/delete
1123  --enable-coinutils-mempool-maxpooled
1124                          Specify the default maximum memory allocation size
1125                          that is served by the memory pool. If negative (or
1126                          'no') then the memory pool is disabled completely.
1127                          Otherwise its value can be overridden at runtime
1128                          using the COINUTILS_MEMPOOL_MAXPOOLED environment
1129                          variable.
1130  --disable-pkg-config    disable use of pkg-config (if available)
1131  --disable-interpackage-dependencies
1132                          disables deduction of Makefile dependencies from
1133                          package linker flags
1134  --disable-zlib          do not compile with compression library zlib
1135  --disable-bzlib         do not compile with compression library bzlib
1136  --enable-gnu-packages   compile with GNU packages (disabled by default)
1137
1138Optional Packages:
1139  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1140  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1141  --with-coinutils-verbosity
1142                          specify the debug verbosity level for project
1143                          CoinUtils
1144  --with-coinutils-checklevel
1145                          specify the sanity check level for project CoinUtils
1146  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1147  --with-pic              try to use only PIC/non-PIC objects [default=use
1148                          both]
1149  --with-tags[=TAGS]
1150                          include additional configurations [automatic]
1151  --with-blas             specify BLAS library (or BUILD to enforce use of
1152                          ThirdParty/Blas)
1153
1154  --with-coin-instdir     prefix of installation directory for precompiled
1155                          COIN packages
1156  --with-blas-lib linker flags for using package Blas
1157  --with-blas-incdir directory with header files for using package Blas
1158  --with-blas-datadir directory with data files for using package Blas
1159  --with-lapack           specify LAPACK library (or BUILD to enforce use of
1160                          ThirdParty/Lapack)
1161  --with-lapack-lib linker flags for using package Lapack
1162  --with-lapack-incdir directory with header files for using package Lapack
1163  --with-lapack-datadir directory with data files for using package Lapack
1164  --with-glpk-lib linker flags for using package Glpk
1165  --with-glpk-incdir directory with header files for using package Glpk
1166  --with-glpk-datadir directory with data files for using package Glpk
1167  --with-sample-lib linker flags for using package Sample
1168  --with-sample-incdir directory with header files for using package Sample
1169  --with-sample-datadir directory with data files for using package Sample
1170  --with-netlib-lib linker flags for using package Netlib
1171  --with-netlib-incdir directory with header files for using package Netlib
1172  --with-netlib-datadir directory with data files for using package Netlib
1173  --with-dot              use dot (from graphviz) when creating documentation
1174                          with doxygen if available; --without-dot to disable
1175
1176Some influential environment variables:
1177  CDEFS       Additional -D flags to be used when compiling C code.
1178  ADD_CFLAGS  Additional C compiler options
1179  DBG_CFLAGS  Debug C compiler options
1180  OPT_CFLAGS  Optimize C compiler options
1181  CC          C compiler command
1182  CFLAGS      C compiler flags
1183  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1184              nonstandard directory <lib dir>
1185  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1186              headers in a nonstandard directory <include dir>
1187  MPICC       C MPI Compiler
1188  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1189  ADD_CXXFLAGS
1190              Additional C++ compiler options
1191  DBG_CXXFLAGS
1192              Debug C++ compiler options
1193  OPT_CXXFLAGS
1194              Optimize C++ compiler options
1195  CXX         C++ compiler command
1196  CXXFLAGS    C++ compiler flags
1197  MPICXX      C++ MPI Compiler
1198  ADD_FFLAGS  Additional Fortran compiler options
1199  DBG_FFLAGS  Debug Fortran compiler options
1200  OPT_FFLAGS  Optimize Fortran compiler options
1201  F77         Fortran 77 compiler command
1202  FFLAGS      Fortran 77 compiler flags
1203  MPIF77      Fortran MPI Compiler
1204  CPP         C preprocessor
1205  CXXCPP      C++ preprocessor
1206  PKG_CONFIG  path to pkg-config utility
1207
1208Use these variables to override the choices made by `configure' or to help
1209it to find libraries and programs with nonstandard names/locations.
1210
1211Report bugs to <http://projects.coin-or.org/CoinUtils>.
1212_ACEOF
1213fi
1214
1215if test "$ac_init_help" = "recursive"; then
1216  # If there are subdirs, report their specific --help.
1217  ac_popdir=`pwd`
1218  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1219    test -d $ac_dir || continue
1220    ac_builddir=.
1221
1222if test "$ac_dir" != .; then
1223  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1224  # A "../" for each directory in $ac_dir_suffix.
1225  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1226else
1227  ac_dir_suffix= ac_top_builddir=
1228fi
1229
1230case $srcdir in
1231  .)  # No --srcdir option.  We are building in place.
1232    ac_srcdir=.
1233    if test -z "$ac_top_builddir"; then
1234       ac_top_srcdir=.
1235    else
1236       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1237    fi ;;
1238  [\\/]* | ?:[\\/]* )  # Absolute path.
1239    ac_srcdir=$srcdir$ac_dir_suffix;
1240    ac_top_srcdir=$srcdir ;;
1241  *) # Relative path.
1242    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1243    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1244esac
1245
1246# Do not use `cd foo && pwd` to compute absolute paths, because
1247# the directories may not exist.
1248case `pwd` in
1249.) ac_abs_builddir="$ac_dir";;
1250*)
1251  case "$ac_dir" in
1252  .) ac_abs_builddir=`pwd`;;
1253  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1254  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1255  esac;;
1256esac
1257case $ac_abs_builddir in
1258.) ac_abs_top_builddir=${ac_top_builddir}.;;
1259*)
1260  case ${ac_top_builddir}. in
1261  .) ac_abs_top_builddir=$ac_abs_builddir;;
1262  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1263  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1264  esac;;
1265esac
1266case $ac_abs_builddir in
1267.) ac_abs_srcdir=$ac_srcdir;;
1268*)
1269  case $ac_srcdir in
1270  .) ac_abs_srcdir=$ac_abs_builddir;;
1271  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1272  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1273  esac;;
1274esac
1275case $ac_abs_builddir in
1276.) ac_abs_top_srcdir=$ac_top_srcdir;;
1277*)
1278  case $ac_top_srcdir in
1279  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1280  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1281  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1282  esac;;
1283esac
1284
1285    cd $ac_dir
1286    # Check for guested configure; otherwise get Cygnus style configure.
1287    if test -f $ac_srcdir/configure.gnu; then
1288      echo
1289      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1290    elif test -f $ac_srcdir/configure; then
1291      echo
1292      $SHELL $ac_srcdir/configure  --help=recursive
1293    elif test -f $ac_srcdir/configure.ac ||
1294	   test -f $ac_srcdir/configure.in; then
1295      echo
1296      $ac_configure --help
1297    else
1298      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1299    fi
1300    cd $ac_popdir
1301  done
1302fi
1303
1304test -n "$ac_init_help" && exit 0
1305if $ac_init_version; then
1306  cat <<\_ACEOF
1307CoinUtils configure 2.11.2
1308generated by GNU Autoconf 2.59
1309
1310Copyright (C) 2003 Free Software Foundation, Inc.
1311This configure script is free software; the Free Software Foundation
1312gives unlimited permission to copy, distribute and modify it.
1313
1314
1315Copyright 2006 International Business Machines and others.
1316All Rights Reserved.
1317This file is part of the open source package Coin which is distributed
1318under the Eclipse Public License.
1319_ACEOF
1320  exit 0
1321fi
1322exec 5>config.log
1323cat >&5 <<_ACEOF
1324This file contains any messages produced by compilers while
1325running configure, to aid debugging if configure makes a mistake.
1326
1327It was created by CoinUtils $as_me 2.11.2, which was
1328generated by GNU Autoconf 2.59.  Invocation command line was
1329
1330  $ $0 $@
1331
1332_ACEOF
1333{
1334cat <<_ASUNAME
1335## --------- ##
1336## Platform. ##
1337## --------- ##
1338
1339hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1340uname -m = `(uname -m) 2>/dev/null || echo unknown`
1341uname -r = `(uname -r) 2>/dev/null || echo unknown`
1342uname -s = `(uname -s) 2>/dev/null || echo unknown`
1343uname -v = `(uname -v) 2>/dev/null || echo unknown`
1344
1345/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1346/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1347
1348/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1349/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1350/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1351hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1352/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1353/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1354/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1355
1356_ASUNAME
1357
1358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1359for as_dir in $PATH
1360do
1361  IFS=$as_save_IFS
1362  test -z "$as_dir" && as_dir=.
1363  echo "PATH: $as_dir"
1364done
1365
1366} >&5
1367
1368cat >&5 <<_ACEOF
1369
1370
1371## ----------- ##
1372## Core tests. ##
1373## ----------- ##
1374
1375_ACEOF
1376
1377
1378# Keep a trace of the command line.
1379# Strip out --no-create and --no-recursion so they do not pile up.
1380# Strip out --silent because we don't want to record it for future runs.
1381# Also quote any args containing shell meta-characters.
1382# Make two passes to allow for proper duplicate-argument suppression.
1383ac_configure_args=
1384ac_configure_args0=
1385ac_configure_args1=
1386ac_sep=
1387ac_must_keep_next=false
1388for ac_pass in 1 2
1389do
1390  for ac_arg
1391  do
1392    case $ac_arg in
1393    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1394    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1395    | -silent | --silent | --silen | --sile | --sil)
1396      continue ;;
1397    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1398      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1399    esac
1400    case $ac_pass in
1401    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1402    2)
1403      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1404      if test $ac_must_keep_next = true; then
1405	ac_must_keep_next=false # Got value, back to normal.
1406      else
1407	case $ac_arg in
1408	  *=* | --config-cache | -C | -disable-* | --disable-* \
1409	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1410	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1411	  | -with-* | --with-* | -without-* | --without-* | --x)
1412	    case "$ac_configure_args0 " in
1413	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1414	    esac
1415	    ;;
1416	  -* ) ac_must_keep_next=true ;;
1417	esac
1418      fi
1419      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1420      # Get rid of the leading space.
1421      ac_sep=" "
1422      ;;
1423    esac
1424  done
1425done
1426$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1427$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1428
1429# When interrupted or exit'd, cleanup temporary files, and complete
1430# config.log.  We remove comments because anyway the quotes in there
1431# would cause problems or look ugly.
1432# WARNING: Be sure not to use single quotes in there, as some shells,
1433# such as our DU 5.0 friend, will then `close' the trap.
1434trap 'exit_status=$?
1435  # Save into config.log some information that might help in debugging.
1436  {
1437    echo
1438
1439    cat <<\_ASBOX
1440## ---------------- ##
1441## Cache variables. ##
1442## ---------------- ##
1443_ASBOX
1444    echo
1445    # The following way of writing the cache mishandles newlines in values,
1446{
1447  (set) 2>&1 |
1448    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1449    *ac_space=\ *)
1450      sed -n \
1451	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1452	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1453      ;;
1454    *)
1455      sed -n \
1456	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1457      ;;
1458    esac;
1459}
1460    echo
1461
1462    cat <<\_ASBOX
1463## ----------------- ##
1464## Output variables. ##
1465## ----------------- ##
1466_ASBOX
1467    echo
1468    for ac_var in $ac_subst_vars
1469    do
1470      eval ac_val=$`echo $ac_var`
1471      echo "$ac_var='"'"'$ac_val'"'"'"
1472    done | sort
1473    echo
1474
1475    if test -n "$ac_subst_files"; then
1476      cat <<\_ASBOX
1477## ------------- ##
1478## Output files. ##
1479## ------------- ##
1480_ASBOX
1481      echo
1482      for ac_var in $ac_subst_files
1483      do
1484	eval ac_val=$`echo $ac_var`
1485	echo "$ac_var='"'"'$ac_val'"'"'"
1486      done | sort
1487      echo
1488    fi
1489
1490    if test -s confdefs.h; then
1491      cat <<\_ASBOX
1492## ----------- ##
1493## confdefs.h. ##
1494## ----------- ##
1495_ASBOX
1496      echo
1497      sed "/^$/d" confdefs.h | sort
1498      echo
1499    fi
1500    test "$ac_signal" != 0 &&
1501      echo "$as_me: caught signal $ac_signal"
1502    echo "$as_me: exit $exit_status"
1503  } >&5
1504  rm -f core *.core &&
1505  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1506    exit $exit_status
1507     ' 0
1508for ac_signal in 1 2 13 15; do
1509  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1510done
1511ac_signal=0
1512
1513# confdefs.h avoids OS command line length limits that DEFS can exceed.
1514rm -rf conftest* confdefs.h
1515# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1516echo >confdefs.h
1517
1518# Predefined preprocessor variables.
1519
1520cat >>confdefs.h <<_ACEOF
1521#define PACKAGE_NAME "$PACKAGE_NAME"
1522_ACEOF
1523
1524
1525cat >>confdefs.h <<_ACEOF
1526#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1527_ACEOF
1528
1529
1530cat >>confdefs.h <<_ACEOF
1531#define PACKAGE_VERSION "$PACKAGE_VERSION"
1532_ACEOF
1533
1534
1535cat >>confdefs.h <<_ACEOF
1536#define PACKAGE_STRING "$PACKAGE_STRING"
1537_ACEOF
1538
1539
1540cat >>confdefs.h <<_ACEOF
1541#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1542_ACEOF
1543
1544
1545# Let the site file select an alternate cache file if it wants to.
1546# Prefer explicitly selected file to automatically selected ones.
1547if test -z "$CONFIG_SITE"; then
1548  if test "x$prefix" != xNONE; then
1549    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1550  else
1551    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1552  fi
1553fi
1554for ac_site_file in $CONFIG_SITE; do
1555  if test -r "$ac_site_file"; then
1556    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1557echo "$as_me: loading site script $ac_site_file" >&6;}
1558    sed 's/^/| /' "$ac_site_file" >&5
1559    . "$ac_site_file"
1560  fi
1561done
1562
1563if test -r "$cache_file"; then
1564  # Some versions of bash will fail to source /dev/null (special
1565  # files actually), so we avoid doing that.
1566  if test -f "$cache_file"; then
1567    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1568echo "$as_me: loading cache $cache_file" >&6;}
1569    case $cache_file in
1570      [\\/]* | ?:[\\/]* ) . $cache_file;;
1571      *)                      . ./$cache_file;;
1572    esac
1573  fi
1574else
1575  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1576echo "$as_me: creating cache $cache_file" >&6;}
1577  >$cache_file
1578fi
1579
1580# Check that the precious variables saved in the cache have kept the same
1581# value.
1582ac_cache_corrupted=false
1583for ac_var in `(set) 2>&1 |
1584	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1585  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1586  eval ac_new_set=\$ac_env_${ac_var}_set
1587  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1588  eval ac_new_val="\$ac_env_${ac_var}_value"
1589  case $ac_old_set,$ac_new_set in
1590    set,)
1591      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1592echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1593      ac_cache_corrupted=: ;;
1594    ,set)
1595      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1596echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1597      ac_cache_corrupted=: ;;
1598    ,);;
1599    *)
1600      if test "x$ac_old_val" != "x$ac_new_val"; then
1601	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1602echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1603	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1604echo "$as_me:   former value:  $ac_old_val" >&2;}
1605	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1606echo "$as_me:   current value: $ac_new_val" >&2;}
1607	ac_cache_corrupted=:
1608      fi;;
1609  esac
1610  # Pass precious variables to config.status.
1611  if test "$ac_new_set" = set; then
1612    case $ac_new_val in
1613    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1614      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1615    *) ac_arg=$ac_var=$ac_new_val ;;
1616    esac
1617    case " $ac_configure_args " in
1618      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1619      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1620    esac
1621  fi
1622done
1623if $ac_cache_corrupted; then
1624  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1625echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1626  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1627echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1628   { (exit 1); exit 1; }; }
1629fi
1630
1631ac_ext=c
1632ac_cpp='$CPP $CPPFLAGS'
1633ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1634ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1635ac_compiler_gnu=$ac_cv_c_compiler_gnu
1636
1637
1638
1639
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# List one file in the package so that the configure script can test
1667# whether the package is actually there
1668
1669
1670# Where should everything be installed by default?  Here, we want it
1671# to be installed directly in 'bin', 'lib', 'include' subdirectories
1672# of the directory where configure is run.  The default would be
1673# /usr/local.
1674
1675
1676#############################################################################
1677#                         Standard build tool stuff                         #
1678#############################################################################
1679
1680# Get the system type
1681ac_aux_dir=
1682for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1683  if test -f $ac_dir/install-sh; then
1684    ac_aux_dir=$ac_dir
1685    ac_install_sh="$ac_aux_dir/install-sh -c"
1686    break
1687  elif 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/shtool; then
1692    ac_aux_dir=$ac_dir
1693    ac_install_sh="$ac_aux_dir/shtool install -c"
1694    break
1695  fi
1696done
1697if test -z "$ac_aux_dir"; then
1698  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1699echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1700   { (exit 1); exit 1; }; }
1701fi
1702ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1703ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1704ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1705
1706# Make sure we can run config.sub.
1707$ac_config_sub sun4 >/dev/null 2>&1 ||
1708  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1709echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1710   { (exit 1); exit 1; }; }
1711
1712echo "$as_me:$LINENO: checking build system type" >&5
1713echo $ECHO_N "checking build system type... $ECHO_C" >&6
1714if test "${ac_cv_build+set}" = set; then
1715  echo $ECHO_N "(cached) $ECHO_C" >&6
1716else
1717  ac_cv_build_alias=$build_alias
1718test -z "$ac_cv_build_alias" &&
1719  ac_cv_build_alias=`$ac_config_guess`
1720test -z "$ac_cv_build_alias" &&
1721  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1722echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1723   { (exit 1); exit 1; }; }
1724ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1725  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1726echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1727   { (exit 1); exit 1; }; }
1728
1729fi
1730echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1731echo "${ECHO_T}$ac_cv_build" >&6
1732build=$ac_cv_build
1733build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1734build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1735build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1736
1737
1738
1739# If this project depends on external projects, the Externals file in
1740# the source root directory contains definition of where to find those
1741# externals.  The following macro ensures that those externals are
1742# retrieved by svn if they are not there yet.
1743
1744# As backup, we make sure we don't loose an FLIBS if it has been set
1745# by the user
1746save_FLIBS="$FLIBS"
1747
1748# A useful makefile conditional that is always false
1749
1750
1751if false; then
1752  ALWAYS_FALSE_TRUE=
1753  ALWAYS_FALSE_FALSE='#'
1754else
1755  ALWAYS_FALSE_TRUE='#'
1756  ALWAYS_FALSE_FALSE=
1757fi
1758
1759
1760# We set the following variable so that we know later in AC_COIN_FINALIZE
1761# that we are in a project main directory
1762coin_projectdir=yes
1763
1764# Set the project's version numbers
1765
1766
1767cat >>confdefs.h <<_ACEOF
1768#define COINUTILS_VERSION "$PACKAGE_VERSION"
1769_ACEOF
1770
1771
1772  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1773  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1774  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1775  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1776  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1777  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1778
1779cat >>confdefs.h <<_ACEOF
1780#define COINUTILS_VERSION_MAJOR $coin_majorver
1781_ACEOF
1782
1783
1784cat >>confdefs.h <<_ACEOF
1785#define COINUTILS_VERSION_MINOR $coin_minorver
1786_ACEOF
1787
1788
1789cat >>confdefs.h <<_ACEOF
1790#define COINUTILS_VERSION_RELEASE $coin_releasever
1791_ACEOF
1792
1793
1794  # We use the following variable to have a string with the upper case
1795  # version of the project name
1796  COIN_PRJCT=COINUTILS
1797
1798  # Set the project's SVN revision number. The complicated sed expression
1799  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1800  # as a single number.
1801  # Extract the first word of "svnversion", so it can be a program name with args.
1802set dummy svnversion; ac_word=$2
1803echo "$as_me:$LINENO: checking for $ac_word" >&5
1804echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1805if test "${ac_cv_prog_have_svnversion+set}" = set; then
1806  echo $ECHO_N "(cached) $ECHO_C" >&6
1807else
1808  if test -n "$have_svnversion"; then
1809  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1810else
1811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1812for as_dir in $PATH
1813do
1814  IFS=$as_save_IFS
1815  test -z "$as_dir" && as_dir=.
1816  for ac_exec_ext in '' $ac_executable_extensions; do
1817  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1818    ac_cv_prog_have_svnversion="yes"
1819    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1820    break 2
1821  fi
1822done
1823done
1824
1825  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1826fi
1827fi
1828have_svnversion=$ac_cv_prog_have_svnversion
1829if test -n "$have_svnversion"; then
1830  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1831echo "${ECHO_T}$have_svnversion" >&6
1832else
1833  echo "$as_me:$LINENO: result: no" >&5
1834echo "${ECHO_T}no" >&6
1835fi
1836
1837  if test "x$have_svnversion" = xyes; then
1838
1839    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1840    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
1841      COINUTILS_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1842
1843cat >>confdefs.h <<_ACEOF
1844#define COINUTILS_SVN_REV $COINUTILS_SVN_REV
1845_ACEOF
1846
1847    fi
1848  fi
1849
1850
1851
1852# Capture libtool library version, if given.
1853 coin_libversion=14:2:11
1854
1855
1856
1857
1858# Check if user wants to produce debugging code
1859
1860echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1861echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1862
1863# Check whether --enable-debug or --disable-debug was given.
1864if test "${enable_debug+set}" = set; then
1865  enableval="$enable_debug"
1866  case "${enableval}" in
1867   yes) coin_debug_compile=true
1868        if test "${enable_shared+set}" = set; then :; else
1869          enable_shared=no
1870        fi
1871        ;;
1872   no)  coin_debug_compile=false
1873        ;;
1874   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1875echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1876   { (exit 1); exit 1; }; }
1877        ;;
1878esac
1879else
1880  coin_debug_compile=false
1881fi;
1882
1883# Check whether --enable-debug-coinutils or --disable-debug-coinutils was given.
1884if test "${enable_debug_coinutils+set}" = set; then
1885  enableval="$enable_debug_coinutils"
1886  case "${enableval}" in
1887    yes) coin_debug_compile=true
1888         ;;
1889    no)  coin_debug_compile=false
1890         ;;
1891    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-coinutils" >&5
1892echo "$as_me: error: bad value ${enableval} for --enable-debug-coinutils" >&2;}
1893   { (exit 1); exit 1; }; }
1894         ;;
1895 esac
1896else
1897  :
1898fi;
1899
1900 # m4_ifvaln([CoinUtils],
1901
1902if test $coin_debug_compile = true; then
1903  echo "$as_me:$LINENO: result: yes" >&5
1904echo "${ECHO_T}yes" >&6
1905else
1906  echo "$as_me:$LINENO: result: no" >&5
1907echo "${ECHO_T}no" >&6
1908fi
1909
1910
1911# Check whether --with-coinutils-verbosity or --without-coinutils-verbosity was given.
1912if test "${with_coinutils_verbosity+set}" = set; then
1913  withval="$with_coinutils_verbosity"
1914  if test "$withval" = yes; then
1915                withval=1
1916              fi
1917              coin_coinutils_verbosity=$withval
1918else
1919  coin_coinutils_verbosity=0
1920fi;
1921
1922cat >>confdefs.h <<_ACEOF
1923#define COIN_COINUTILS_VERBOSITY $coin_coinutils_verbosity
1924_ACEOF
1925
1926
1927
1928# Check whether --with-coinutils-checklevel or --without-coinutils-checklevel was given.
1929if test "${with_coinutils_checklevel+set}" = set; then
1930  withval="$with_coinutils_checklevel"
1931  if test "$withval" = yes; then
1932                withval=1
1933              fi
1934              coin_coinutils_checklevel=$withval
1935else
1936  coin_coinutils_checklevel=0
1937fi;
1938
1939cat >>confdefs.h <<_ACEOF
1940#define COIN_COINUTILS_CHECKLEVEL $coin_coinutils_checklevel
1941_ACEOF
1942
1943
1944 # m4_ifvaln([CoinUtils],
1945
1946
1947
1948# Get the name of the C++ compiler and appropriate compiler options
1949
1950
1951  # for backward compatibility
1952  # Check whether --enable-doscompile or --disable-doscompile was given.
1953if test "${enable_doscompile+set}" = set; then
1954  enableval="$enable_doscompile"
1955  enable_doscompile=$enableval
1956else
1957  enable_doscompile=no
1958fi;
1959
1960  # Check whether --enable-msvc or --disable-msvc was given.
1961if test "${enable_msvc+set}" = set; then
1962  enableval="$enable_msvc"
1963  enable_msvc=$enableval
1964else
1965  enable_msvc=no
1966     if test "$enable_doscompile" = msvc ; then
1967       enable_msvc=yes
1968     elif test "$enable_doscompile" != no ; then
1969       { { echo "$as_me:$LINENO: error: --enable-doscompile=$enable_doscompile not supported anymore." >&5
1970echo "$as_me: error: --enable-doscompile=$enable_doscompile not supported anymore." >&2;}
1971   { (exit 1); exit 1; }; }
1972     fi
1973
1974fi;
1975
1976  if test "$enable_msvc" = MD; then
1977    enable_shared=yes
1978    enable_msvc=yes
1979  fi
1980
1981  if test "$enable_msvc" = yes; then
1982    case $build in
1983      *-cygwin* | *-mingw*) ;;
1984      *) { { echo "$as_me:$LINENO: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&5
1985echo "$as_me: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&2;}
1986   { (exit 1); exit 1; }; } ;;
1987    esac
1988  fi
1989
1990
1991
1992ac_ext=c
1993ac_cpp='$CPP $CPPFLAGS'
1994ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1995ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1996ac_compiler_gnu=$ac_cv_c_compiler_gnu
1997
1998
1999# For consistency, we set the C compiler to the same value of the C++
2000# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
2001if test x"$CXX" != x; then
2002  case "$CXX" in
2003    clang* ) ;;
2004    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2005      if test x"$CC" = x; then
2006        CC="$CXX"
2007        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
2008echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
2009      fi
2010      ;;
2011  esac
2012fi
2013
2014
2015
2016
2017
2018
2019coin_has_cc=yes
2020
2021save_cflags="$CFLAGS"
2022
2023# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
2024# Depending on the user's PATH, when Studio/Workshop cc is not present we may
2025# find /usr/ucb/cc, which is almost certainly not a good choice for the C
2026# compiler. In this case, put cc after gcc.
2027
2028case $build in
2029  *-cygwin* | *-mingw*)
2030  	     if test "$enable_msvc" = yes ; then
2031	       comps="icl cl gcc"
2032	     else
2033	       comps="gcc icl cl"
2034	     fi ;;
2035  *-*-solaris*)
2036	     # Extract the first word of "cc", so it can be a program name with args.
2037set dummy cc; ac_word=$2
2038echo "$as_me:$LINENO: checking for $ac_word" >&5
2039echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2040if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
2041  echo $ECHO_N "(cached) $ECHO_C" >&6
2042else
2043  if test -n "$sol_cc_compiler"; then
2044  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
2045else
2046  ac_prog_rejected=no
2047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2048for as_dir in $PATH
2049do
2050  IFS=$as_save_IFS
2051  test -z "$as_dir" && as_dir=.
2052  for ac_exec_ext in '' $ac_executable_extensions; do
2053  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2054    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2055       ac_prog_rejected=yes
2056       continue
2057     fi
2058    ac_cv_prog_sol_cc_compiler="cc"
2059    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2060    break 2
2061  fi
2062done
2063done
2064
2065if test $ac_prog_rejected = yes; then
2066  # We found a bogon in the path, so make sure we never use it.
2067  set dummy $ac_cv_prog_sol_cc_compiler
2068  shift
2069  if test $# != 0; then
2070    # We chose a different compiler from the bogus one.
2071    # However, it has the same basename, so the bogon will be chosen
2072    # first if we set sol_cc_compiler to just the basename; use the full file name.
2073    shift
2074    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2075  fi
2076fi
2077fi
2078fi
2079sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2080if test -n "$sol_cc_compiler"; then
2081  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2082echo "${ECHO_T}$sol_cc_compiler" >&6
2083else
2084  echo "$as_me:$LINENO: result: no" >&5
2085echo "${ECHO_T}no" >&6
2086fi
2087
2088	     if test "$sol_cc_compiler" = "cc" ; then
2089	       comps="cc xlc gcc pgcc icc"
2090	     else
2091	       comps="xlc gcc pgcc icc cc"
2092	     fi
2093	     ;;
2094  *-*-darwin*) comps="clang gcc cc" ;;
2095  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2096  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2097  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2098esac
2099
2100# We delete the cached value, since the test might not have been
2101# performed with our choice of compilers earlier
2102$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2103# AC_MSG_NOTICE([C compiler candidates: $comps])
2104ac_ext=c
2105ac_cpp='$CPP $CPPFLAGS'
2106ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2107ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2108ac_compiler_gnu=$ac_cv_c_compiler_gnu
2109if test -n "$ac_tool_prefix"; then
2110  for ac_prog in $comps
2111  do
2112    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2113set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2114echo "$as_me:$LINENO: checking for $ac_word" >&5
2115echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2116if test "${ac_cv_prog_CC+set}" = set; then
2117  echo $ECHO_N "(cached) $ECHO_C" >&6
2118else
2119  if test -n "$CC"; then
2120  ac_cv_prog_CC="$CC" # Let the user override the test.
2121else
2122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2123for as_dir in $PATH
2124do
2125  IFS=$as_save_IFS
2126  test -z "$as_dir" && as_dir=.
2127  for ac_exec_ext in '' $ac_executable_extensions; do
2128  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2129    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2130    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2131    break 2
2132  fi
2133done
2134done
2135
2136fi
2137fi
2138CC=$ac_cv_prog_CC
2139if test -n "$CC"; then
2140  echo "$as_me:$LINENO: result: $CC" >&5
2141echo "${ECHO_T}$CC" >&6
2142else
2143  echo "$as_me:$LINENO: result: no" >&5
2144echo "${ECHO_T}no" >&6
2145fi
2146
2147    test -n "$CC" && break
2148  done
2149fi
2150if test -z "$CC"; then
2151  ac_ct_CC=$CC
2152  for ac_prog in $comps
2153do
2154  # Extract the first word of "$ac_prog", so it can be a program name with args.
2155set dummy $ac_prog; ac_word=$2
2156echo "$as_me:$LINENO: checking for $ac_word" >&5
2157echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2158if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2159  echo $ECHO_N "(cached) $ECHO_C" >&6
2160else
2161  if test -n "$ac_ct_CC"; then
2162  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2163else
2164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2165for as_dir in $PATH
2166do
2167  IFS=$as_save_IFS
2168  test -z "$as_dir" && as_dir=.
2169  for ac_exec_ext in '' $ac_executable_extensions; do
2170  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2171    ac_cv_prog_ac_ct_CC="$ac_prog"
2172    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2173    break 2
2174  fi
2175done
2176done
2177
2178fi
2179fi
2180ac_ct_CC=$ac_cv_prog_ac_ct_CC
2181if test -n "$ac_ct_CC"; then
2182  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2183echo "${ECHO_T}$ac_ct_CC" >&6
2184else
2185  echo "$as_me:$LINENO: result: no" >&5
2186echo "${ECHO_T}no" >&6
2187fi
2188
2189  test -n "$ac_ct_CC" && break
2190done
2191
2192  CC=$ac_ct_CC
2193fi
2194
2195
2196test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2197See \`config.log' for more details." >&5
2198echo "$as_me: error: no acceptable C compiler found in \$PATH
2199See \`config.log' for more details." >&2;}
2200   { (exit 1); exit 1; }; }
2201
2202# Provide some information about the compiler.
2203echo "$as_me:$LINENO:" \
2204     "checking for C compiler version" >&5
2205ac_compiler=`set X $ac_compile; echo $2`
2206{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2207  (eval $ac_compiler --version </dev/null >&5) 2>&5
2208  ac_status=$?
2209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2210  (exit $ac_status); }
2211{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2212  (eval $ac_compiler -v </dev/null >&5) 2>&5
2213  ac_status=$?
2214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215  (exit $ac_status); }
2216{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2217  (eval $ac_compiler -V </dev/null >&5) 2>&5
2218  ac_status=$?
2219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220  (exit $ac_status); }
2221
2222cat >conftest.$ac_ext <<_ACEOF
2223/* confdefs.h.  */
2224_ACEOF
2225cat confdefs.h >>conftest.$ac_ext
2226cat >>conftest.$ac_ext <<_ACEOF
2227/* end confdefs.h.  */
2228
2229int
2230main ()
2231{
2232
2233  ;
2234  return 0;
2235}
2236_ACEOF
2237ac_clean_files_save=$ac_clean_files
2238ac_clean_files="$ac_clean_files a.out a.exe b.out"
2239# Try to create an executable without -o first, disregard a.out.
2240# It will help us diagnose broken compilers, and finding out an intuition
2241# of exeext.
2242echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2243echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2244ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2245if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2246  (eval $ac_link_default) 2>&5
2247  ac_status=$?
2248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2249  (exit $ac_status); }; then
2250  # Find the output, starting from the most likely.  This scheme is
2251# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2252# resort.
2253
2254# Be careful to initialize this variable, since it used to be cached.
2255# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2256ac_cv_exeext=
2257# b.out is created by i960 compilers.
2258for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2259do
2260  test -f "$ac_file" || continue
2261  case $ac_file in
2262    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2263	;;
2264    conftest.$ac_ext )
2265	# This is the source file.
2266	;;
2267    [ab].out )
2268	# We found the default executable, but exeext='' is most
2269	# certainly right.
2270	break;;
2271    *.* )
2272	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2273	# FIXME: I believe we export ac_cv_exeext for Libtool,
2274	# but it would be cool to find out if it's true.  Does anybody
2275	# maintain Libtool? --akim.
2276	export ac_cv_exeext
2277	break;;
2278    * )
2279	break;;
2280  esac
2281done
2282else
2283  echo "$as_me: failed program was:" >&5
2284sed 's/^/| /' conftest.$ac_ext >&5
2285
2286{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2287See \`config.log' for more details." >&5
2288echo "$as_me: error: C compiler cannot create executables
2289See \`config.log' for more details." >&2;}
2290   { (exit 77); exit 77; }; }
2291fi
2292
2293ac_exeext=$ac_cv_exeext
2294echo "$as_me:$LINENO: result: $ac_file" >&5
2295echo "${ECHO_T}$ac_file" >&6
2296
2297# Check the compiler produces executables we can run.  If not, either
2298# the compiler is broken, or we cross compile.
2299echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2300echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2301# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2302# If not cross compiling, check that we can run a simple program.
2303if test "$cross_compiling" != yes; then
2304  if { ac_try='./$ac_file'
2305  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2306  (eval $ac_try) 2>&5
2307  ac_status=$?
2308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309  (exit $ac_status); }; }; then
2310    cross_compiling=no
2311  else
2312    if test "$cross_compiling" = maybe; then
2313	cross_compiling=yes
2314    else
2315	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2316If you meant to cross compile, use \`--host'.
2317See \`config.log' for more details." >&5
2318echo "$as_me: error: cannot run C compiled programs.
2319If you meant to cross compile, use \`--host'.
2320See \`config.log' for more details." >&2;}
2321   { (exit 1); exit 1; }; }
2322    fi
2323  fi
2324fi
2325echo "$as_me:$LINENO: result: yes" >&5
2326echo "${ECHO_T}yes" >&6
2327
2328rm -f a.out a.exe conftest$ac_cv_exeext b.out
2329ac_clean_files=$ac_clean_files_save
2330# Check the compiler produces executables we can run.  If not, either
2331# the compiler is broken, or we cross compile.
2332echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2333echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2334echo "$as_me:$LINENO: result: $cross_compiling" >&5
2335echo "${ECHO_T}$cross_compiling" >&6
2336
2337echo "$as_me:$LINENO: checking for suffix of executables" >&5
2338echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2339if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2340  (eval $ac_link) 2>&5
2341  ac_status=$?
2342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2343  (exit $ac_status); }; then
2344  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2345# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2346# work properly (i.e., refer to `conftest.exe'), while it won't with
2347# `rm'.
2348for ac_file in conftest.exe conftest conftest.*; do
2349  test -f "$ac_file" || continue
2350  case $ac_file in
2351    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2352    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2353	  export ac_cv_exeext
2354	  break;;
2355    * ) break;;
2356  esac
2357done
2358else
2359  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2360See \`config.log' for more details." >&5
2361echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2362See \`config.log' for more details." >&2;}
2363   { (exit 1); exit 1; }; }
2364fi
2365
2366rm -f conftest$ac_cv_exeext
2367echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2368echo "${ECHO_T}$ac_cv_exeext" >&6
2369
2370rm -f conftest.$ac_ext
2371EXEEXT=$ac_cv_exeext
2372ac_exeext=$EXEEXT
2373echo "$as_me:$LINENO: checking for suffix of object files" >&5
2374echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2375if test "${ac_cv_objext+set}" = set; then
2376  echo $ECHO_N "(cached) $ECHO_C" >&6
2377else
2378  cat >conftest.$ac_ext <<_ACEOF
2379/* confdefs.h.  */
2380_ACEOF
2381cat confdefs.h >>conftest.$ac_ext
2382cat >>conftest.$ac_ext <<_ACEOF
2383/* end confdefs.h.  */
2384
2385int
2386main ()
2387{
2388
2389  ;
2390  return 0;
2391}
2392_ACEOF
2393rm -f conftest.o conftest.obj
2394if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2395  (eval $ac_compile) 2>&5
2396  ac_status=$?
2397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398  (exit $ac_status); }; then
2399  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2400  case $ac_file in
2401    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2402    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2403       break;;
2404  esac
2405done
2406else
2407  echo "$as_me: failed program was:" >&5
2408sed 's/^/| /' conftest.$ac_ext >&5
2409
2410{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2411See \`config.log' for more details." >&5
2412echo "$as_me: error: cannot compute suffix of object files: cannot compile
2413See \`config.log' for more details." >&2;}
2414   { (exit 1); exit 1; }; }
2415fi
2416
2417rm -f conftest.$ac_cv_objext conftest.$ac_ext
2418fi
2419echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2420echo "${ECHO_T}$ac_cv_objext" >&6
2421OBJEXT=$ac_cv_objext
2422ac_objext=$OBJEXT
2423echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2424echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2425if test "${ac_cv_c_compiler_gnu+set}" = set; then
2426  echo $ECHO_N "(cached) $ECHO_C" >&6
2427else
2428  cat >conftest.$ac_ext <<_ACEOF
2429/* confdefs.h.  */
2430_ACEOF
2431cat confdefs.h >>conftest.$ac_ext
2432cat >>conftest.$ac_ext <<_ACEOF
2433/* end confdefs.h.  */
2434
2435int
2436main ()
2437{
2438#ifndef __GNUC__
2439       choke me
2440#endif
2441
2442  ;
2443  return 0;
2444}
2445_ACEOF
2446rm -f conftest.$ac_objext
2447if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2448  (eval $ac_compile) 2>conftest.er1
2449  ac_status=$?
2450  grep -v '^ *+' conftest.er1 >conftest.err
2451  rm -f conftest.er1
2452  cat conftest.err >&5
2453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454  (exit $ac_status); } &&
2455	 { ac_try='test -z "$ac_c_werror_flag"
2456			 || test ! -s conftest.err'
2457  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2458  (eval $ac_try) 2>&5
2459  ac_status=$?
2460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461  (exit $ac_status); }; } &&
2462	 { ac_try='test -s conftest.$ac_objext'
2463  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2464  (eval $ac_try) 2>&5
2465  ac_status=$?
2466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467  (exit $ac_status); }; }; then
2468  ac_compiler_gnu=yes
2469else
2470  echo "$as_me: failed program was:" >&5
2471sed 's/^/| /' conftest.$ac_ext >&5
2472
2473ac_compiler_gnu=no
2474fi
2475rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2476ac_cv_c_compiler_gnu=$ac_compiler_gnu
2477
2478fi
2479echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2480echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2481GCC=`test $ac_compiler_gnu = yes && echo yes`
2482ac_test_CFLAGS=${CFLAGS+set}
2483ac_save_CFLAGS=$CFLAGS
2484CFLAGS="-g"
2485echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2486echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2487if test "${ac_cv_prog_cc_g+set}" = set; then
2488  echo $ECHO_N "(cached) $ECHO_C" >&6
2489else
2490  cat >conftest.$ac_ext <<_ACEOF
2491/* confdefs.h.  */
2492_ACEOF
2493cat confdefs.h >>conftest.$ac_ext
2494cat >>conftest.$ac_ext <<_ACEOF
2495/* end confdefs.h.  */
2496
2497int
2498main ()
2499{
2500
2501  ;
2502  return 0;
2503}
2504_ACEOF
2505rm -f conftest.$ac_objext
2506if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2507  (eval $ac_compile) 2>conftest.er1
2508  ac_status=$?
2509  grep -v '^ *+' conftest.er1 >conftest.err
2510  rm -f conftest.er1
2511  cat conftest.err >&5
2512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513  (exit $ac_status); } &&
2514	 { ac_try='test -z "$ac_c_werror_flag"
2515			 || test ! -s conftest.err'
2516  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2517  (eval $ac_try) 2>&5
2518  ac_status=$?
2519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520  (exit $ac_status); }; } &&
2521	 { ac_try='test -s conftest.$ac_objext'
2522  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2523  (eval $ac_try) 2>&5
2524  ac_status=$?
2525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526  (exit $ac_status); }; }; then
2527  ac_cv_prog_cc_g=yes
2528else
2529  echo "$as_me: failed program was:" >&5
2530sed 's/^/| /' conftest.$ac_ext >&5
2531
2532ac_cv_prog_cc_g=no
2533fi
2534rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2535fi
2536echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2537echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2538if test "$ac_test_CFLAGS" = set; then
2539  CFLAGS=$ac_save_CFLAGS
2540elif test $ac_cv_prog_cc_g = yes; then
2541  if test "$GCC" = yes; then
2542    CFLAGS="-g -O2"
2543  else
2544    CFLAGS="-g"
2545  fi
2546else
2547  if test "$GCC" = yes; then
2548    CFLAGS="-O2"
2549  else
2550    CFLAGS=
2551  fi
2552fi
2553echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2554echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2555if test "${ac_cv_prog_cc_stdc+set}" = set; then
2556  echo $ECHO_N "(cached) $ECHO_C" >&6
2557else
2558  ac_cv_prog_cc_stdc=no
2559ac_save_CC=$CC
2560cat >conftest.$ac_ext <<_ACEOF
2561/* confdefs.h.  */
2562_ACEOF
2563cat confdefs.h >>conftest.$ac_ext
2564cat >>conftest.$ac_ext <<_ACEOF
2565/* end confdefs.h.  */
2566#include <stdarg.h>
2567#include <stdio.h>
2568#include <sys/types.h>
2569#include <sys/stat.h>
2570/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2571struct buf { int x; };
2572FILE * (*rcsopen) (struct buf *, struct stat *, int);
2573static char *e (p, i)
2574     char **p;
2575     int i;
2576{
2577  return p[i];
2578}
2579static char *f (char * (*g) (char **, int), char **p, ...)
2580{
2581  char *s;
2582  va_list v;
2583  va_start (v,p);
2584  s = g (p, va_arg (v,int));
2585  va_end (v);
2586  return s;
2587}
2588
2589/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2590   function prototypes and stuff, but not '\xHH' hex character constants.
2591   These don't provoke an error unfortunately, instead are silently treated
2592   as 'x'.  The following induces an error, until -std1 is added to get
2593   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2594   array size at least.  It's necessary to write '\x00'==0 to get something
2595   that's true only with -std1.  */
2596int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2597
2598int test (int i, double x);
2599struct s1 {int (*f) (int a);};
2600struct s2 {int (*f) (double a);};
2601int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2602int argc;
2603char **argv;
2604int
2605main ()
2606{
2607return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2608  ;
2609  return 0;
2610}
2611_ACEOF
2612# Don't try gcc -ansi; that turns off useful extensions and
2613# breaks some systems' header files.
2614# AIX			-qlanglvl=ansi
2615# Ultrix and OSF/1	-std1
2616# HP-UX 10.20 and later	-Ae
2617# HP-UX older versions	-Aa -D_HPUX_SOURCE
2618# SVR4			-Xc -D__EXTENSIONS__
2619for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2620do
2621  CC="$ac_save_CC $ac_arg"
2622  rm -f conftest.$ac_objext
2623if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2624  (eval $ac_compile) 2>conftest.er1
2625  ac_status=$?
2626  grep -v '^ *+' conftest.er1 >conftest.err
2627  rm -f conftest.er1
2628  cat conftest.err >&5
2629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630  (exit $ac_status); } &&
2631	 { ac_try='test -z "$ac_c_werror_flag"
2632			 || test ! -s conftest.err'
2633  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2634  (eval $ac_try) 2>&5
2635  ac_status=$?
2636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637  (exit $ac_status); }; } &&
2638	 { ac_try='test -s conftest.$ac_objext'
2639  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2640  (eval $ac_try) 2>&5
2641  ac_status=$?
2642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643  (exit $ac_status); }; }; then
2644  ac_cv_prog_cc_stdc=$ac_arg
2645break
2646else
2647  echo "$as_me: failed program was:" >&5
2648sed 's/^/| /' conftest.$ac_ext >&5
2649
2650fi
2651rm -f conftest.err conftest.$ac_objext
2652done
2653rm -f conftest.$ac_ext conftest.$ac_objext
2654CC=$ac_save_CC
2655
2656fi
2657
2658case "x$ac_cv_prog_cc_stdc" in
2659  x|xno)
2660    echo "$as_me:$LINENO: result: none needed" >&5
2661echo "${ECHO_T}none needed" >&6 ;;
2662  *)
2663    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2664echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2665    CC="$CC $ac_cv_prog_cc_stdc" ;;
2666esac
2667
2668# Some people use a C++ compiler to compile C.  Since we use `exit',
2669# in C++ we need to declare it.  In case someone uses the same compiler
2670# for both compiling C and C++ we need to have the C++ compiler decide
2671# the declaration of exit, since it's the most demanding environment.
2672cat >conftest.$ac_ext <<_ACEOF
2673#ifndef __cplusplus
2674  choke me
2675#endif
2676_ACEOF
2677rm -f conftest.$ac_objext
2678if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2679  (eval $ac_compile) 2>conftest.er1
2680  ac_status=$?
2681  grep -v '^ *+' conftest.er1 >conftest.err
2682  rm -f conftest.er1
2683  cat conftest.err >&5
2684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685  (exit $ac_status); } &&
2686	 { ac_try='test -z "$ac_c_werror_flag"
2687			 || test ! -s conftest.err'
2688  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2689  (eval $ac_try) 2>&5
2690  ac_status=$?
2691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692  (exit $ac_status); }; } &&
2693	 { ac_try='test -s conftest.$ac_objext'
2694  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2695  (eval $ac_try) 2>&5
2696  ac_status=$?
2697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698  (exit $ac_status); }; }; then
2699  for ac_declaration in \
2700   '' \
2701   'extern "C" void std::exit (int) throw (); using std::exit;' \
2702   'extern "C" void std::exit (int); using std::exit;' \
2703   'extern "C" void exit (int) throw ();' \
2704   'extern "C" void exit (int);' \
2705   'void exit (int);'
2706do
2707  cat >conftest.$ac_ext <<_ACEOF
2708/* confdefs.h.  */
2709_ACEOF
2710cat confdefs.h >>conftest.$ac_ext
2711cat >>conftest.$ac_ext <<_ACEOF
2712/* end confdefs.h.  */
2713$ac_declaration
2714#include <stdlib.h>
2715int
2716main ()
2717{
2718exit (42);
2719  ;
2720  return 0;
2721}
2722_ACEOF
2723rm -f conftest.$ac_objext
2724if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2725  (eval $ac_compile) 2>conftest.er1
2726  ac_status=$?
2727  grep -v '^ *+' conftest.er1 >conftest.err
2728  rm -f conftest.er1
2729  cat conftest.err >&5
2730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731  (exit $ac_status); } &&
2732	 { ac_try='test -z "$ac_c_werror_flag"
2733			 || test ! -s conftest.err'
2734  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2735  (eval $ac_try) 2>&5
2736  ac_status=$?
2737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738  (exit $ac_status); }; } &&
2739	 { ac_try='test -s conftest.$ac_objext'
2740  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2741  (eval $ac_try) 2>&5
2742  ac_status=$?
2743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744  (exit $ac_status); }; }; then
2745  :
2746else
2747  echo "$as_me: failed program was:" >&5
2748sed 's/^/| /' conftest.$ac_ext >&5
2749
2750continue
2751fi
2752rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2753  cat >conftest.$ac_ext <<_ACEOF
2754/* confdefs.h.  */
2755_ACEOF
2756cat confdefs.h >>conftest.$ac_ext
2757cat >>conftest.$ac_ext <<_ACEOF
2758/* end confdefs.h.  */
2759$ac_declaration
2760int
2761main ()
2762{
2763exit (42);
2764  ;
2765  return 0;
2766}
2767_ACEOF
2768rm -f conftest.$ac_objext
2769if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2770  (eval $ac_compile) 2>conftest.er1
2771  ac_status=$?
2772  grep -v '^ *+' conftest.er1 >conftest.err
2773  rm -f conftest.er1
2774  cat conftest.err >&5
2775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776  (exit $ac_status); } &&
2777	 { ac_try='test -z "$ac_c_werror_flag"
2778			 || test ! -s conftest.err'
2779  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2780  (eval $ac_try) 2>&5
2781  ac_status=$?
2782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783  (exit $ac_status); }; } &&
2784	 { ac_try='test -s conftest.$ac_objext'
2785  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2786  (eval $ac_try) 2>&5
2787  ac_status=$?
2788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789  (exit $ac_status); }; }; then
2790  break
2791else
2792  echo "$as_me: failed program was:" >&5
2793sed 's/^/| /' conftest.$ac_ext >&5
2794
2795fi
2796rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2797done
2798rm -f conftest*
2799if test -n "$ac_declaration"; then
2800  echo '#ifdef __cplusplus' >>confdefs.h
2801  echo $ac_declaration      >>confdefs.h
2802  echo '#endif'             >>confdefs.h
2803fi
2804
2805else
2806  echo "$as_me: failed program was:" >&5
2807sed 's/^/| /' conftest.$ac_ext >&5
2808
2809fi
2810rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2811ac_ext=c
2812ac_cpp='$CPP $CPPFLAGS'
2813ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2814ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2815ac_compiler_gnu=$ac_cv_c_compiler_gnu
2816
2817if test -z "$CC" ; then
2818  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2819echo "$as_me: error: Failed to find a C compiler!" >&2;}
2820   { (exit 1); exit 1; }; }
2821fi
2822# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2823case "$CC" in
2824  clang* ) ;;
2825  cl* | */cl* | CL* | */CL* )
2826    if test "$ac_cv_prog_cc_g" = yes ; then
2827      ac_cv_prog_cc_g=no
2828      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2829echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2830    fi ;;
2831  * )
2832    if test x"$CYGPATH_W" = x ; then
2833      CYGPATH_W=echo
2834    fi
2835    ;;
2836esac
2837CFLAGS="$save_cflags"
2838
2839# add automake conditional so we can recognize cl compiler in makefile
2840coin_cc_is_cl=false
2841case "$CC" in
2842  clang* ) ;;
2843  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2844    coin_cc_is_cl=true
2845    ;;
2846esac
2847
2848
2849if test $coin_cc_is_cl = true; then
2850  COIN_CC_IS_CL_TRUE=
2851  COIN_CC_IS_CL_FALSE='#'
2852else
2853  COIN_CC_IS_CL_TRUE='#'
2854  COIN_CC_IS_CL_FALSE=
2855fi
2856
2857
2858# Check if a project specific CFLAGS variable has been set
2859if test x$COIN_PRJCT != x; then
2860  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2861  if test x$coin_tmp = xset; then
2862    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2863  fi
2864fi
2865
2866if test x"$CFLAGS" = x; then
2867
2868  coin_add_cflags=
2869  coin_opt_cflags=
2870  coin_dbg_cflags=
2871  coin_warn_cflags=
2872
2873  if test "$GCC" = "yes"; then
2874    case "$CC" in
2875      icc* | */icc*)
2876        ;;
2877      *)
2878        coin_opt_cflags="-O3"
2879        coin_add_cflags="-pipe"
2880        coin_dbg_cflags="-g -O0"
2881        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2882    esac
2883  fi
2884  if test -z "$coin_opt_cflags"; then
2885    case $build in
2886      *-cygwin* | *-mingw*)
2887        case "$CC" in
2888          clang* ) ;;
2889          cl* | */cl* | CL* | */CL*)
2890            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2891              coin_opt_cflags='-MD -O2'
2892              coin_dbg_cflags='-MDd'
2893            else
2894              coin_opt_cflags='-MT -O2'
2895              coin_dbg_cflags='-MTd'
2896            fi
2897            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2898            ;;
2899          icl* | */icl* | ICL* | */ICL*)
2900            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2901              coin_opt_cflags='-MD -Ox'
2902              coin_dbg_cflags='-MDd -debug'
2903            else
2904              coin_opt_cflags='-MT -Ox'
2905              coin_dbg_cflags='-MTd -debug'
2906            fi
2907            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2908            ;;
2909        esac
2910        ;;
2911      *-linux-*)
2912        case "$CC" in
2913          icc* | */icc*)
2914            coin_opt_cflags="-O3 -ip -mp1"
2915            coin_add_cflags=""
2916            coin_dbg_cflags="-g"
2917            # Check if -i_dynamic is necessary (for new glibc library)
2918            CFLAGS=
2919            cat >conftest.$ac_ext <<_ACEOF
2920/* confdefs.h.  */
2921_ACEOF
2922cat confdefs.h >>conftest.$ac_ext
2923cat >>conftest.$ac_ext <<_ACEOF
2924/* end confdefs.h.  */
2925
2926int
2927main ()
2928{
2929int i=0; i++;
2930  ;
2931  return 0;
2932}
2933_ACEOF
2934rm -f conftest.$ac_objext conftest$ac_exeext
2935if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2936  (eval $ac_link) 2>conftest.er1
2937  ac_status=$?
2938  grep -v '^ *+' conftest.er1 >conftest.err
2939  rm -f conftest.er1
2940  cat conftest.err >&5
2941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942  (exit $ac_status); } &&
2943	 { ac_try='test -z "$ac_c_werror_flag"
2944			 || test ! -s conftest.err'
2945  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2946  (eval $ac_try) 2>&5
2947  ac_status=$?
2948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949  (exit $ac_status); }; } &&
2950	 { ac_try='test -s conftest$ac_exeext'
2951  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2952  (eval $ac_try) 2>&5
2953  ac_status=$?
2954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955  (exit $ac_status); }; }; then
2956  :
2957else
2958  echo "$as_me: failed program was:" >&5
2959sed 's/^/| /' conftest.$ac_ext >&5
2960
2961coin_add_cflags="-i_dynamic $coin_add_cflags"
2962fi
2963rm -f conftest.err conftest.$ac_objext \
2964      conftest$ac_exeext conftest.$ac_ext
2965            ;;
2966          pgcc* | */pgcc*)
2967            coin_opt_cflags="-fast"
2968            coin_add_cflags="-Kieee -pc 64"
2969            coin_dbg_cflags="-g"
2970            ;;
2971        esac
2972        ;;
2973      *-ibm-*)
2974        case "$CC" in
2975          xlc* | */xlc* | mpxlc* | */mpxlc*)
2976            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2977            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2978            coin_dbg_cflags="-g"
2979          ;;
2980        esac
2981        ;;
2982      *-hp-*)
2983        coin_opt_cflags="-O"
2984        coin_add_cflags="-Ae"
2985        coin_dbg_cflags="-g"
2986        ;;
2987      *-*-solaris*)
2988        coin_opt_cflags="-xO4"
2989        coin_dbg_cflags="-g"
2990        ;;
2991      *-sgi-*)
2992        coin_opt_cflags="-O -OPT:Olimit=0"
2993        coin_dbg_cflags="-g"
2994        ;;
2995    esac
2996  fi
2997
2998  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2999    coin_dbg_cflags="-g"
3000  fi
3001
3002  if test -z "$coin_opt_cflags"; then
3003    # Try if -O option works if nothing else is set
3004    CFLAGS="-O"
3005    cat >conftest.$ac_ext <<_ACEOF
3006/* confdefs.h.  */
3007_ACEOF
3008cat confdefs.h >>conftest.$ac_ext
3009cat >>conftest.$ac_ext <<_ACEOF
3010/* end confdefs.h.  */
3011
3012int
3013main ()
3014{
3015int i=0; i++;
3016  ;
3017  return 0;
3018}
3019_ACEOF
3020rm -f conftest.$ac_objext conftest$ac_exeext
3021if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3022  (eval $ac_link) 2>conftest.er1
3023  ac_status=$?
3024  grep -v '^ *+' conftest.er1 >conftest.err
3025  rm -f conftest.er1
3026  cat conftest.err >&5
3027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028  (exit $ac_status); } &&
3029	 { ac_try='test -z "$ac_c_werror_flag"
3030			 || test ! -s conftest.err'
3031  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3032  (eval $ac_try) 2>&5
3033  ac_status=$?
3034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035  (exit $ac_status); }; } &&
3036	 { ac_try='test -s conftest$ac_exeext'
3037  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3038  (eval $ac_try) 2>&5
3039  ac_status=$?
3040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041  (exit $ac_status); }; }; then
3042  coin_opt_cflags="-O"
3043else
3044  echo "$as_me: failed program was:" >&5
3045sed 's/^/| /' conftest.$ac_ext >&5
3046
3047fi
3048rm -f conftest.err conftest.$ac_objext \
3049      conftest$ac_exeext conftest.$ac_ext
3050  fi
3051
3052  # if PM doesn't want the warning messages, take them out
3053  if test x"$coin_skip_warn_cflags" = xyes; then
3054    coin_warn_cflags=
3055  fi
3056
3057  if test x${DBG_CFLAGS+set} != xset; then
3058    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3059  fi
3060  if test x${OPT_CFLAGS+set} != xset; then
3061    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3062  fi
3063
3064  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3065  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3066
3067  if test "$coin_debug_compile" = "true"; then
3068    CFLAGS="$DBG_CFLAGS"
3069  else
3070    CFLAGS="$OPT_CFLAGS"
3071  fi
3072else
3073  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3074  if test x${DBG_CFLAGS+set} != xset; then
3075    DBG_CFLAGS="$CFLAGS"
3076  fi
3077  if test x${OPT_CFLAGS+set} != xset; then
3078    OPT_CFLAGS="$CFLAGS"
3079  fi
3080fi
3081
3082# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3083if test x$COIN_PRJCT != x; then
3084  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3085fi
3086
3087# Try if CFLAGS works
3088save_CFLAGS="$CFLAGS"
3089cat >conftest.$ac_ext <<_ACEOF
3090/* confdefs.h.  */
3091_ACEOF
3092cat confdefs.h >>conftest.$ac_ext
3093cat >>conftest.$ac_ext <<_ACEOF
3094/* end confdefs.h.  */
3095
3096int
3097main ()
3098{
3099int i=0; i++;
3100  ;
3101  return 0;
3102}
3103_ACEOF
3104rm -f conftest.$ac_objext conftest$ac_exeext
3105if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3106  (eval $ac_link) 2>conftest.er1
3107  ac_status=$?
3108  grep -v '^ *+' conftest.er1 >conftest.err
3109  rm -f conftest.er1
3110  cat conftest.err >&5
3111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112  (exit $ac_status); } &&
3113	 { ac_try='test -z "$ac_c_werror_flag"
3114			 || test ! -s conftest.err'
3115  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3116  (eval $ac_try) 2>&5
3117  ac_status=$?
3118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119  (exit $ac_status); }; } &&
3120	 { ac_try='test -s conftest$ac_exeext'
3121  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3122  (eval $ac_try) 2>&5
3123  ac_status=$?
3124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125  (exit $ac_status); }; }; then
3126  :
3127else
3128  echo "$as_me: failed program was:" >&5
3129sed 's/^/| /' conftest.$ac_ext >&5
3130
3131CFLAGS=
3132fi
3133rm -f conftest.err conftest.$ac_objext \
3134      conftest$ac_exeext conftest.$ac_ext
3135if test -z "$CFLAGS"; then
3136  { 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
3137echo "$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;}
3138  CFLAGS='-O'
3139  cat >conftest.$ac_ext <<_ACEOF
3140/* confdefs.h.  */
3141_ACEOF
3142cat confdefs.h >>conftest.$ac_ext
3143cat >>conftest.$ac_ext <<_ACEOF
3144/* end confdefs.h.  */
3145
3146int
3147main ()
3148{
3149int i=0; i++;
3150  ;
3151  return 0;
3152}
3153_ACEOF
3154rm -f conftest.$ac_objext conftest$ac_exeext
3155if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3156  (eval $ac_link) 2>conftest.er1
3157  ac_status=$?
3158  grep -v '^ *+' conftest.er1 >conftest.err
3159  rm -f conftest.er1
3160  cat conftest.err >&5
3161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162  (exit $ac_status); } &&
3163	 { ac_try='test -z "$ac_c_werror_flag"
3164			 || test ! -s conftest.err'
3165  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3166  (eval $ac_try) 2>&5
3167  ac_status=$?
3168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169  (exit $ac_status); }; } &&
3170	 { ac_try='test -s conftest$ac_exeext'
3171  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3172  (eval $ac_try) 2>&5
3173  ac_status=$?
3174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175  (exit $ac_status); }; }; then
3176  :
3177else
3178  echo "$as_me: failed program was:" >&5
3179sed 's/^/| /' conftest.$ac_ext >&5
3180
3181CFLAGS=
3182fi
3183rm -f conftest.err conftest.$ac_objext \
3184      conftest$ac_exeext conftest.$ac_ext
3185  if test -z "$CFLAGS"; then
3186    { 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
3187echo "$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;}
3188  fi
3189fi
3190
3191{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3192echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3193
3194
3195if test x"$MPICC" = x; then :; else
3196  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3197echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3198  CC="$MPICC"
3199fi
3200
3201# Correct the LD variable if we are using the MS or Intel-windows compiler
3202case "$CC" in
3203  clang* ) ;;
3204  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3205    LD=link
3206    ;;
3207esac
3208
3209ac_ext=c
3210ac_cpp='$CPP $CPPFLAGS'
3211ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3212ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3213ac_compiler_gnu=$ac_cv_c_compiler_gnu
3214
3215
3216
3217 #Let's try if that overcomes configuration problem with VC++ 6.0
3218
3219ac_ext=cc
3220ac_cpp='$CXXCPP $CPPFLAGS'
3221ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3222ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3223ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3224
3225
3226
3227
3228
3229
3230
3231coin_has_cxx=yes
3232
3233save_cxxflags="$CXXFLAGS"
3234# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3235case $build in
3236  *-cygwin* | *-mingw*)
3237      if test "$enable_msvc" = yes ; then
3238         comps="icl cl g++"
3239      else
3240         comps="g++ icl cl"
3241      fi ;;
3242  *-*-solaris*)
3243  	     comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3244  *-darwin*) comps="clang++ g++ c++ CC" ;;
3245  *-linux-gnu*)
3246             comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;;
3247          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3248esac
3249
3250# We delete the cached value, since the test might not have been
3251# performed with our choice of compilers earlier
3252$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3253# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3254ac_ext=cc
3255ac_cpp='$CXXCPP $CPPFLAGS'
3256ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3257ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3258ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3259if test -n "$ac_tool_prefix"; then
3260  for ac_prog in $CCC $comps
3261  do
3262    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3263set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3264echo "$as_me:$LINENO: checking for $ac_word" >&5
3265echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3266if test "${ac_cv_prog_CXX+set}" = set; then
3267  echo $ECHO_N "(cached) $ECHO_C" >&6
3268else
3269  if test -n "$CXX"; then
3270  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3271else
3272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3273for as_dir in $PATH
3274do
3275  IFS=$as_save_IFS
3276  test -z "$as_dir" && as_dir=.
3277  for ac_exec_ext in '' $ac_executable_extensions; do
3278  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3279    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3280    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3281    break 2
3282  fi
3283done
3284done
3285
3286fi
3287fi
3288CXX=$ac_cv_prog_CXX
3289if test -n "$CXX"; then
3290  echo "$as_me:$LINENO: result: $CXX" >&5
3291echo "${ECHO_T}$CXX" >&6
3292else
3293  echo "$as_me:$LINENO: result: no" >&5
3294echo "${ECHO_T}no" >&6
3295fi
3296
3297    test -n "$CXX" && break
3298  done
3299fi
3300if test -z "$CXX"; then
3301  ac_ct_CXX=$CXX
3302  for ac_prog in $CCC $comps
3303do
3304  # Extract the first word of "$ac_prog", so it can be a program name with args.
3305set dummy $ac_prog; ac_word=$2
3306echo "$as_me:$LINENO: checking for $ac_word" >&5
3307echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3308if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3309  echo $ECHO_N "(cached) $ECHO_C" >&6
3310else
3311  if test -n "$ac_ct_CXX"; then
3312  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3313else
3314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3315for as_dir in $PATH
3316do
3317  IFS=$as_save_IFS
3318  test -z "$as_dir" && as_dir=.
3319  for ac_exec_ext in '' $ac_executable_extensions; do
3320  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3321    ac_cv_prog_ac_ct_CXX="$ac_prog"
3322    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3323    break 2
3324  fi
3325done
3326done
3327
3328fi
3329fi
3330ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3331if test -n "$ac_ct_CXX"; then
3332  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3333echo "${ECHO_T}$ac_ct_CXX" >&6
3334else
3335  echo "$as_me:$LINENO: result: no" >&5
3336echo "${ECHO_T}no" >&6
3337fi
3338
3339  test -n "$ac_ct_CXX" && break
3340done
3341test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3342
3343  CXX=$ac_ct_CXX
3344fi
3345
3346
3347# Provide some information about the compiler.
3348echo "$as_me:$LINENO:" \
3349     "checking for C++ compiler version" >&5
3350ac_compiler=`set X $ac_compile; echo $2`
3351{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3352  (eval $ac_compiler --version </dev/null >&5) 2>&5
3353  ac_status=$?
3354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355  (exit $ac_status); }
3356{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3357  (eval $ac_compiler -v </dev/null >&5) 2>&5
3358  ac_status=$?
3359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360  (exit $ac_status); }
3361{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3362  (eval $ac_compiler -V </dev/null >&5) 2>&5
3363  ac_status=$?
3364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365  (exit $ac_status); }
3366
3367echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3368echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3369if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3370  echo $ECHO_N "(cached) $ECHO_C" >&6
3371else
3372  cat >conftest.$ac_ext <<_ACEOF
3373/* confdefs.h.  */
3374_ACEOF
3375cat confdefs.h >>conftest.$ac_ext
3376cat >>conftest.$ac_ext <<_ACEOF
3377/* end confdefs.h.  */
3378
3379int
3380main ()
3381{
3382#ifndef __GNUC__
3383       choke me
3384#endif
3385
3386  ;
3387  return 0;
3388}
3389_ACEOF
3390rm -f conftest.$ac_objext
3391if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3392  (eval $ac_compile) 2>conftest.er1
3393  ac_status=$?
3394  grep -v '^ *+' conftest.er1 >conftest.err
3395  rm -f conftest.er1
3396  cat conftest.err >&5
3397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398  (exit $ac_status); } &&
3399	 { ac_try='test -z "$ac_cxx_werror_flag"
3400			 || test ! -s conftest.err'
3401  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3402  (eval $ac_try) 2>&5
3403  ac_status=$?
3404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405  (exit $ac_status); }; } &&
3406	 { ac_try='test -s conftest.$ac_objext'
3407  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3408  (eval $ac_try) 2>&5
3409  ac_status=$?
3410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411  (exit $ac_status); }; }; then
3412  ac_compiler_gnu=yes
3413else
3414  echo "$as_me: failed program was:" >&5
3415sed 's/^/| /' conftest.$ac_ext >&5
3416
3417ac_compiler_gnu=no
3418fi
3419rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3420ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3421
3422fi
3423echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3424echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3425GXX=`test $ac_compiler_gnu = yes && echo yes`
3426ac_test_CXXFLAGS=${CXXFLAGS+set}
3427ac_save_CXXFLAGS=$CXXFLAGS
3428CXXFLAGS="-g"
3429echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3430echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3431if test "${ac_cv_prog_cxx_g+set}" = set; then
3432  echo $ECHO_N "(cached) $ECHO_C" >&6
3433else
3434  cat >conftest.$ac_ext <<_ACEOF
3435/* confdefs.h.  */
3436_ACEOF
3437cat confdefs.h >>conftest.$ac_ext
3438cat >>conftest.$ac_ext <<_ACEOF
3439/* end confdefs.h.  */
3440
3441int
3442main ()
3443{
3444
3445  ;
3446  return 0;
3447}
3448_ACEOF
3449rm -f conftest.$ac_objext
3450if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3451  (eval $ac_compile) 2>conftest.er1
3452  ac_status=$?
3453  grep -v '^ *+' conftest.er1 >conftest.err
3454  rm -f conftest.er1
3455  cat conftest.err >&5
3456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457  (exit $ac_status); } &&
3458	 { ac_try='test -z "$ac_cxx_werror_flag"
3459			 || test ! -s conftest.err'
3460  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3461  (eval $ac_try) 2>&5
3462  ac_status=$?
3463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464  (exit $ac_status); }; } &&
3465	 { ac_try='test -s conftest.$ac_objext'
3466  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3467  (eval $ac_try) 2>&5
3468  ac_status=$?
3469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470  (exit $ac_status); }; }; then
3471  ac_cv_prog_cxx_g=yes
3472else
3473  echo "$as_me: failed program was:" >&5
3474sed 's/^/| /' conftest.$ac_ext >&5
3475
3476ac_cv_prog_cxx_g=no
3477fi
3478rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3479fi
3480echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3481echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3482if test "$ac_test_CXXFLAGS" = set; then
3483  CXXFLAGS=$ac_save_CXXFLAGS
3484elif test $ac_cv_prog_cxx_g = yes; then
3485  if test "$GXX" = yes; then
3486    CXXFLAGS="-g -O2"
3487  else
3488    CXXFLAGS="-g"
3489  fi
3490else
3491  if test "$GXX" = yes; then
3492    CXXFLAGS="-O2"
3493  else
3494    CXXFLAGS=
3495  fi
3496fi
3497for ac_declaration in \
3498   '' \
3499   'extern "C" void std::exit (int) throw (); using std::exit;' \
3500   'extern "C" void std::exit (int); using std::exit;' \
3501   'extern "C" void exit (int) throw ();' \
3502   'extern "C" void exit (int);' \
3503   'void exit (int);'
3504do
3505  cat >conftest.$ac_ext <<_ACEOF
3506/* confdefs.h.  */
3507_ACEOF
3508cat confdefs.h >>conftest.$ac_ext
3509cat >>conftest.$ac_ext <<_ACEOF
3510/* end confdefs.h.  */
3511$ac_declaration
3512#include <stdlib.h>
3513int
3514main ()
3515{
3516exit (42);
3517  ;
3518  return 0;
3519}
3520_ACEOF
3521rm -f conftest.$ac_objext
3522if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3523  (eval $ac_compile) 2>conftest.er1
3524  ac_status=$?
3525  grep -v '^ *+' conftest.er1 >conftest.err
3526  rm -f conftest.er1
3527  cat conftest.err >&5
3528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529  (exit $ac_status); } &&
3530	 { ac_try='test -z "$ac_cxx_werror_flag"
3531			 || test ! -s conftest.err'
3532  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3533  (eval $ac_try) 2>&5
3534  ac_status=$?
3535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536  (exit $ac_status); }; } &&
3537	 { ac_try='test -s conftest.$ac_objext'
3538  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3539  (eval $ac_try) 2>&5
3540  ac_status=$?
3541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3542  (exit $ac_status); }; }; then
3543  :
3544else
3545  echo "$as_me: failed program was:" >&5
3546sed 's/^/| /' conftest.$ac_ext >&5
3547
3548continue
3549fi
3550rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3551  cat >conftest.$ac_ext <<_ACEOF
3552/* confdefs.h.  */
3553_ACEOF
3554cat confdefs.h >>conftest.$ac_ext
3555cat >>conftest.$ac_ext <<_ACEOF
3556/* end confdefs.h.  */
3557$ac_declaration
3558int
3559main ()
3560{
3561exit (42);
3562  ;
3563  return 0;
3564}
3565_ACEOF
3566rm -f conftest.$ac_objext
3567if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3568  (eval $ac_compile) 2>conftest.er1
3569  ac_status=$?
3570  grep -v '^ *+' conftest.er1 >conftest.err
3571  rm -f conftest.er1
3572  cat conftest.err >&5
3573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574  (exit $ac_status); } &&
3575	 { ac_try='test -z "$ac_cxx_werror_flag"
3576			 || test ! -s conftest.err'
3577  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3578  (eval $ac_try) 2>&5
3579  ac_status=$?
3580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581  (exit $ac_status); }; } &&
3582	 { ac_try='test -s conftest.$ac_objext'
3583  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3584  (eval $ac_try) 2>&5
3585  ac_status=$?
3586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587  (exit $ac_status); }; }; then
3588  break
3589else
3590  echo "$as_me: failed program was:" >&5
3591sed 's/^/| /' conftest.$ac_ext >&5
3592
3593fi
3594rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3595done
3596rm -f conftest*
3597if test -n "$ac_declaration"; then
3598  echo '#ifdef __cplusplus' >>confdefs.h
3599  echo $ac_declaration      >>confdefs.h
3600  echo '#endif'             >>confdefs.h
3601fi
3602
3603ac_ext=cc
3604ac_cpp='$CXXCPP $CPPFLAGS'
3605ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3606ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3607ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3608
3609
3610#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3611#thus, we test here whether $CXX is actually working
3612ac_ext=cc
3613ac_cpp='$CXXCPP $CPPFLAGS'
3614ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3615ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3616ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3617
3618echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3619echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3620cat >conftest.$ac_ext <<_ACEOF
3621/* confdefs.h.  */
3622_ACEOF
3623cat confdefs.h >>conftest.$ac_ext
3624cat >>conftest.$ac_ext <<_ACEOF
3625/* end confdefs.h.  */
3626
3627int
3628main ()
3629{
3630int i=0;
3631  ;
3632  return 0;
3633}
3634_ACEOF
3635rm -f conftest.$ac_objext
3636if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3637  (eval $ac_compile) 2>conftest.er1
3638  ac_status=$?
3639  grep -v '^ *+' conftest.er1 >conftest.err
3640  rm -f conftest.er1
3641  cat conftest.err >&5
3642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643  (exit $ac_status); } &&
3644	 { ac_try='test -z "$ac_cxx_werror_flag"
3645			 || test ! -s conftest.err'
3646  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3647  (eval $ac_try) 2>&5
3648  ac_status=$?
3649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650  (exit $ac_status); }; } &&
3651	 { ac_try='test -s conftest.$ac_objext'
3652  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3653  (eval $ac_try) 2>&5
3654  ac_status=$?
3655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656  (exit $ac_status); }; }; then
3657  echo "$as_me:$LINENO: result: yes" >&5
3658echo "${ECHO_T}yes" >&6
3659else
3660  echo "$as_me: failed program was:" >&5
3661sed 's/^/| /' conftest.$ac_ext >&5
3662
3663echo "$as_me:$LINENO: result: no" >&5
3664echo "${ECHO_T}no" >&6
3665   { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3666echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3667   { (exit 1); exit 1; }; }
3668
3669fi
3670rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3671ac_ext=cc
3672ac_cpp='$CXXCPP $CPPFLAGS'
3673ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3674ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3675ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3676
3677
3678coin_cxx_is_cl=false
3679# It seems that we need to cleanup something here for the Windows
3680case "$CXX" in
3681  clang* | */clang*) ;;
3682  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3683    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3684    mv confdefs.hh confdefs.h
3685    coin_cxx_is_cl=true
3686    ;;
3687esac
3688
3689# add automake conditional so we can recognize cl compiler in makefile
3690
3691
3692if test $coin_cxx_is_cl = true; then
3693  COIN_CXX_IS_CL_TRUE=
3694  COIN_CXX_IS_CL_FALSE='#'
3695else
3696  COIN_CXX_IS_CL_TRUE='#'
3697  COIN_CXX_IS_CL_FALSE=
3698fi
3699
3700
3701# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3702case "$CXX" in
3703  clang* ) ;;
3704  cl* | */cl* | CL* | */CL* )
3705    if test "$ac_cv_prog_cxx_g" = yes ; then
3706      ac_cv_prog_cxx_g=no
3707      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3708echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3709    fi ;;
3710  * )
3711    if test x"$CYGPATH_W" = x ; then
3712      CYGPATH_W=echo
3713    fi
3714    ;;
3715esac
3716CXXFLAGS="$save_cxxflags"
3717
3718# Check if a project specific CXXFLAGS variable has been set
3719if test x$COIN_PRJCT != x; then
3720  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3721  if test x$coin_tmp = xset; then
3722    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3723  fi
3724fi
3725
3726if test x"$CXXFLAGS" = x; then
3727
3728# ToDo decide whether we want -DNDEBUG for optimization
3729  coin_add_cxxflags=
3730  coin_opt_cxxflags=
3731  coin_dbg_cxxflags=
3732  coin_warn_cxxflags=
3733
3734  if test "$GXX" = "yes"; then
3735    case "$CXX" in
3736      icpc* | */icpc*)
3737        ;;
3738      *)
3739# ToDo decide about unroll-loops
3740        coin_opt_cxxflags="-O3"
3741        coin_add_cxxflags="-pipe"
3742        coin_dbg_cxxflags="-g -O0"
3743        coin_warn_cxxflags="-Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long"
3744    esac
3745  fi
3746
3747# Note that we do not need to cover GCC in the following tests.
3748
3749  if test -z "$coin_opt_cxxflags"; then
3750    case $build in
3751      *-cygwin* | *-mingw*)
3752        case "$CXX" in
3753          clang* ) ;;
3754          cl* | */cl* | CL* | */CL*)
3755            # The MT and MTd options are mutually exclusive
3756            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3757               coin_opt_cxxflags='-MD -O2'
3758               coin_dbg_cxxflags='-MDd'
3759            else
3760               coin_opt_cxxflags='-MT -O2'
3761               coin_dbg_cxxflags='-MTd'
3762            fi
3763            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3764            ;;
3765          icl* | */icl* | ICL* | */ICL*)
3766          # The MT and MTd options are mutually exclusive
3767            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3768              coin_opt_cxxflags='-MD -Ox'
3769              coin_dbg_cxxflags='-MDd -debug'
3770            else
3771              coin_opt_cxxflags='-MT -Ox'
3772              coin_dbg_cxxflags='-MTd -debug'
3773            fi
3774            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3775            ;;
3776        esac
3777        ;;
3778      *-linux-*)
3779        case "$CXX" in
3780          icpc* | */icpc*)
3781            coin_opt_cxxflags="-O3 -ip -mp1"
3782            coin_add_cxxflags=""
3783            coin_dbg_cxxflags="-g"
3784            # Check if -i_dynamic is necessary (for new glibc library)
3785            CXXFLAGS=
3786            cat >conftest.$ac_ext <<_ACEOF
3787/* confdefs.h.  */
3788_ACEOF
3789cat confdefs.h >>conftest.$ac_ext
3790cat >>conftest.$ac_ext <<_ACEOF
3791/* end confdefs.h.  */
3792
3793int
3794main ()
3795{
3796int i=0; i++;
3797  ;
3798  return 0;
3799}
3800_ACEOF
3801rm -f conftest.$ac_objext conftest$ac_exeext
3802if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3803  (eval $ac_link) 2>conftest.er1
3804  ac_status=$?
3805  grep -v '^ *+' conftest.er1 >conftest.err
3806  rm -f conftest.er1
3807  cat conftest.err >&5
3808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809  (exit $ac_status); } &&
3810	 { ac_try='test -z "$ac_cxx_werror_flag"
3811			 || test ! -s conftest.err'
3812  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3813  (eval $ac_try) 2>&5
3814  ac_status=$?
3815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816  (exit $ac_status); }; } &&
3817	 { ac_try='test -s conftest$ac_exeext'
3818  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3819  (eval $ac_try) 2>&5
3820  ac_status=$?
3821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822  (exit $ac_status); }; }; then
3823  :
3824else
3825  echo "$as_me: failed program was:" >&5
3826sed 's/^/| /' conftest.$ac_ext >&5
3827
3828coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3829fi
3830rm -f conftest.err conftest.$ac_objext \
3831      conftest$ac_exeext conftest.$ac_ext
3832            ;;
3833          pgCC* | */pgCC*)
3834            coin_opt_cxxflags="-fast"
3835            coin_add_cxxflags="-Kieee -pc 64"
3836            coin_dbg_cxxflags="-g"
3837            ;;
3838        esac
3839        ;;
3840      *-ibm-*)
3841        case "$CXX" in
3842          xlC* | */xlC* | mpxlC* | */mpxlC*)
3843            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3844            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3845            coin_dbg_cxxflags="-g"
3846            ;;
3847        esac
3848        ;;
3849      *-hp-*)
3850        case "$CXX" in
3851          aCC* | */aCC* )
3852            coin_opt_cxxflags="-O"
3853            coin_add_cxxflags="-AA"
3854            coin_dbg_cxxflags="-g"
3855            ;;
3856        esac
3857        ;;
3858      *-*-solaris*)
3859          coin_opt_cxxflags="-O4"
3860          coin_dbg_cxxflags="-g"
3861        ;;
3862    esac
3863  fi
3864
3865# Generic flag settings. If these don't work, add a case above.
3866
3867  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3868    coin_dbg_cxxflags="-g"
3869  fi
3870
3871  if test -z "$coin_opt_cxxflags"; then
3872    # Try if -O option works if nothing else is set
3873    CXXFLAGS=-O
3874    cat >conftest.$ac_ext <<_ACEOF
3875/* confdefs.h.  */
3876_ACEOF
3877cat confdefs.h >>conftest.$ac_ext
3878cat >>conftest.$ac_ext <<_ACEOF
3879/* end confdefs.h.  */
3880
3881int
3882main ()
3883{
3884int i=0; i++;
3885  ;
3886  return 0;
3887}
3888_ACEOF
3889rm -f conftest.$ac_objext conftest$ac_exeext
3890if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3891  (eval $ac_link) 2>conftest.er1
3892  ac_status=$?
3893  grep -v '^ *+' conftest.er1 >conftest.err
3894  rm -f conftest.er1
3895  cat conftest.err >&5
3896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897  (exit $ac_status); } &&
3898	 { ac_try='test -z "$ac_cxx_werror_flag"
3899			 || test ! -s conftest.err'
3900  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3901  (eval $ac_try) 2>&5
3902  ac_status=$?
3903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3904  (exit $ac_status); }; } &&
3905	 { ac_try='test -s conftest$ac_exeext'
3906  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3907  (eval $ac_try) 2>&5
3908  ac_status=$?
3909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3910  (exit $ac_status); }; }; then
3911  coin_opt_cxxflags="-O"
3912else
3913  echo "$as_me: failed program was:" >&5
3914sed 's/^/| /' conftest.$ac_ext >&5
3915
3916fi
3917rm -f conftest.err conftest.$ac_objext \
3918      conftest$ac_exeext conftest.$ac_ext
3919  fi
3920
3921  # if PM doesn't want the warning messages, take them out
3922  if test x"$coin_skip_warn_cxxflags" = xyes; then
3923    coin_warn_cxxflags=
3924  fi
3925
3926# Do final setup of flags based on values determined above.
3927
3928  if test x${DBG_CXXFLAGS+set} != xset; then
3929    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3930  fi
3931  if test x${OPT_CXXFLAGS+set} != xset; then
3932    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
3933  fi
3934
3935  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3936  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3937
3938  if test "$coin_debug_compile" = "true"; then
3939    CXXFLAGS="$DBG_CXXFLAGS"
3940  else
3941    CXXFLAGS="$OPT_CXXFLAGS"
3942  fi
3943
3944# Handle the case where CXXFLAGS was set externally.
3945else
3946  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3947  if test x${DBG_CXXFLAGS+set} != xset; then
3948    DBG_CXXFLAGS="$CXXFLAGS"
3949  fi
3950  if test x${OPT_CXXFLAGS+set} != xset; then
3951    OPT_CXXFLAGS="$CXXFLAGS"
3952  fi
3953fi
3954
3955# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3956if test x$COIN_PRJCT != x; then
3957  CXXFLAGS="$CXXFLAGS -D${COIN_PRJCT}_BUILD"
3958fi
3959
3960# Try if CXXFLAGS works
3961save_CXXFLAGS="$CXXFLAGS"
3962cat >conftest.$ac_ext <<_ACEOF
3963/* confdefs.h.  */
3964_ACEOF
3965cat confdefs.h >>conftest.$ac_ext
3966cat >>conftest.$ac_ext <<_ACEOF
3967/* end confdefs.h.  */
3968
3969int
3970main ()
3971{
3972int i=0; i++;
3973  ;
3974  return 0;
3975}
3976_ACEOF
3977rm -f conftest.$ac_objext conftest$ac_exeext
3978if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3979  (eval $ac_link) 2>conftest.er1
3980  ac_status=$?
3981  grep -v '^ *+' conftest.er1 >conftest.err
3982  rm -f conftest.er1
3983  cat conftest.err >&5
3984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985  (exit $ac_status); } &&
3986	 { ac_try='test -z "$ac_cxx_werror_flag"
3987			 || test ! -s conftest.err'
3988  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3989  (eval $ac_try) 2>&5
3990  ac_status=$?
3991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992  (exit $ac_status); }; } &&
3993	 { ac_try='test -s conftest$ac_exeext'
3994  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3995  (eval $ac_try) 2>&5
3996  ac_status=$?
3997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998  (exit $ac_status); }; }; then
3999  :
4000else
4001  echo "$as_me: failed program was:" >&5
4002sed 's/^/| /' conftest.$ac_ext >&5
4003
4004CXXFLAGS=
4005fi
4006rm -f conftest.err conftest.$ac_objext \
4007      conftest$ac_exeext conftest.$ac_ext
4008if test -z "$CXXFLAGS"; then
4009  { 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
4010echo "$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;}
4011  CXXFLAGS='-O'
4012  cat >conftest.$ac_ext <<_ACEOF
4013/* confdefs.h.  */
4014_ACEOF
4015cat confdefs.h >>conftest.$ac_ext
4016cat >>conftest.$ac_ext <<_ACEOF
4017/* end confdefs.h.  */
4018
4019int
4020main ()
4021{
4022int i=0; i++;
4023  ;
4024  return 0;
4025}
4026_ACEOF
4027rm -f conftest.$ac_objext conftest$ac_exeext
4028if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4029  (eval $ac_link) 2>conftest.er1
4030  ac_status=$?
4031  grep -v '^ *+' conftest.er1 >conftest.err
4032  rm -f conftest.er1
4033  cat conftest.err >&5
4034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035  (exit $ac_status); } &&
4036	 { ac_try='test -z "$ac_cxx_werror_flag"
4037			 || test ! -s conftest.err'
4038  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4039  (eval $ac_try) 2>&5
4040  ac_status=$?
4041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042  (exit $ac_status); }; } &&
4043	 { ac_try='test -s conftest$ac_exeext'
4044  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4045  (eval $ac_try) 2>&5
4046  ac_status=$?
4047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048  (exit $ac_status); }; }; then
4049  :
4050else
4051  echo "$as_me: failed program was:" >&5
4052sed 's/^/| /' conftest.$ac_ext >&5
4053
4054CXXFLAGS=
4055fi
4056rm -f conftest.err conftest.$ac_objext \
4057      conftest$ac_exeext conftest.$ac_ext
4058  if test -z "$CXXFLAGS"; then
4059    { 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
4060echo "$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;}
4061  fi
4062fi
4063
4064{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
4065echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
4066
4067
4068if test x"$MPICXX" = x; then :; else
4069  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
4070echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
4071  CXX="$MPICXX"
4072fi
4073
4074# correct the LD variable in a build with MS or Intel-windows compiler
4075case "$CXX" in
4076  clang* ) ;;
4077  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4078    LD=link
4079    ;;
4080esac
4081
4082ac_ext=c
4083ac_cpp='$CPP $CPPFLAGS'
4084ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4085ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4086ac_compiler_gnu=$ac_cv_c_compiler_gnu
4087
4088
4089
4090# Get the name of the Fortran compiler and appropriate compiler options
4091case $build in
4092  *-cygwin* | *-mingw*)
4093     if test "$enable_msvc" = yes ; then
4094       coin_f77_comps="ifort fl32 compile_f2c"
4095     else
4096       coin_f77_comps="gfortran ifort g95 g77 fl32 compile_f2c"
4097     fi ;;
4098  *-*-solaris*)
4099     coin_f77_comps="f95 f90 g95 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
4100  *-linux-gnu*)
4101     coin_f77_comps="gfortran ifort g95 fort77 f77 g77 pgf90 pgf77 ifc frt af77 xlf_r" ;;
4102  *) coin_f77_comps="xlf_r fort77 gfortran ifort g95 f77 g77 pgf90 pgf77 ifc frt af77" ;;
4103 esac
4104
4105
4106
4107
4108
4109ac_ext=f
4110ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4111ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4112ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4113
4114
4115
4116
4117
4118
4119coin_has_f77=yes
4120
4121save_fflags="$FFLAGS"
4122
4123# We delete the cached value, since the test might not have been
4124# performed with our choice of compilers earlier
4125$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
4126
4127# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
4128# coin_f77_comps to see if there's a program that matches one of the names.
4129# If there's no such program, F77 = unavailable. If we match the name,
4130# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
4131# compiler.
4132# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
4133
4134
4135{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
4136echo "$as_me: Trying to determine Fortran compiler name" >&6;}
4137if test -n "$ac_tool_prefix"; then
4138  for ac_prog in $coin_f77_comps
4139  do
4140    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4141set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4142echo "$as_me:$LINENO: checking for $ac_word" >&5
4143echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4144if test "${ac_cv_prog_F77+set}" = set; then
4145  echo $ECHO_N "(cached) $ECHO_C" >&6
4146else
4147  if test -n "$F77"; then
4148  ac_cv_prog_F77="$F77" # Let the user override the test.
4149else
4150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4151for as_dir in $PATH
4152do
4153  IFS=$as_save_IFS
4154  test -z "$as_dir" && as_dir=.
4155  for ac_exec_ext in '' $ac_executable_extensions; do
4156  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4157    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4158    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4159    break 2
4160  fi
4161done
4162done
4163
4164fi
4165fi
4166F77=$ac_cv_prog_F77
4167if test -n "$F77"; then
4168  echo "$as_me:$LINENO: result: $F77" >&5
4169echo "${ECHO_T}$F77" >&6
4170else
4171  echo "$as_me:$LINENO: result: no" >&5
4172echo "${ECHO_T}no" >&6
4173fi
4174
4175    test -n "$F77" && break
4176  done
4177fi
4178if test -z "$F77"; then
4179  ac_ct_F77=$F77
4180  for ac_prog in $coin_f77_comps
4181do
4182  # Extract the first word of "$ac_prog", so it can be a program name with args.
4183set dummy $ac_prog; ac_word=$2
4184echo "$as_me:$LINENO: checking for $ac_word" >&5
4185echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4186if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4187  echo $ECHO_N "(cached) $ECHO_C" >&6
4188else
4189  if test -n "$ac_ct_F77"; then
4190  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4191else
4192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4193for as_dir in $PATH
4194do
4195  IFS=$as_save_IFS
4196  test -z "$as_dir" && as_dir=.
4197  for ac_exec_ext in '' $ac_executable_extensions; do
4198  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4199    ac_cv_prog_ac_ct_F77="$ac_prog"
4200    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4201    break 2
4202  fi
4203done
4204done
4205
4206fi
4207fi
4208ac_ct_F77=$ac_cv_prog_ac_ct_F77
4209if test -n "$ac_ct_F77"; then
4210  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4211echo "${ECHO_T}$ac_ct_F77" >&6
4212else
4213  echo "$as_me:$LINENO: result: no" >&5
4214echo "${ECHO_T}no" >&6
4215fi
4216
4217  test -n "$ac_ct_F77" && break
4218done
4219test -n "$ac_ct_F77" || ac_ct_F77="unavailable"
4220
4221  F77=$ac_ct_F77
4222fi
4223
4224
4225if test "$F77" != "unavailable" ; then
4226  ac_ext=f
4227ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4228ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4229ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4230if test -n "$ac_tool_prefix"; then
4231  for ac_prog in $coin_f77_comps
4232  do
4233    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4234set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4235echo "$as_me:$LINENO: checking for $ac_word" >&5
4236echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4237if test "${ac_cv_prog_F77+set}" = set; then
4238  echo $ECHO_N "(cached) $ECHO_C" >&6
4239else
4240  if test -n "$F77"; then
4241  ac_cv_prog_F77="$F77" # Let the user override the test.
4242else
4243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4244for as_dir in $PATH
4245do
4246  IFS=$as_save_IFS
4247  test -z "$as_dir" && as_dir=.
4248  for ac_exec_ext in '' $ac_executable_extensions; do
4249  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4250    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4251    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4252    break 2
4253  fi
4254done
4255done
4256
4257fi
4258fi
4259F77=$ac_cv_prog_F77
4260if test -n "$F77"; then
4261  echo "$as_me:$LINENO: result: $F77" >&5
4262echo "${ECHO_T}$F77" >&6
4263else
4264  echo "$as_me:$LINENO: result: no" >&5
4265echo "${ECHO_T}no" >&6
4266fi
4267
4268    test -n "$F77" && break
4269  done
4270fi
4271if test -z "$F77"; then
4272  ac_ct_F77=$F77
4273  for ac_prog in $coin_f77_comps
4274do
4275  # Extract the first word of "$ac_prog", so it can be a program name with args.
4276set dummy $ac_prog; ac_word=$2
4277echo "$as_me:$LINENO: checking for $ac_word" >&5
4278echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4279if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4280  echo $ECHO_N "(cached) $ECHO_C" >&6
4281else
4282  if test -n "$ac_ct_F77"; then
4283  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4284else
4285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4286for as_dir in $PATH
4287do
4288  IFS=$as_save_IFS
4289  test -z "$as_dir" && as_dir=.
4290  for ac_exec_ext in '' $ac_executable_extensions; do
4291  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4292    ac_cv_prog_ac_ct_F77="$ac_prog"
4293    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4294    break 2
4295  fi
4296done
4297done
4298
4299fi
4300fi
4301ac_ct_F77=$ac_cv_prog_ac_ct_F77
4302if test -n "$ac_ct_F77"; then
4303  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4304echo "${ECHO_T}$ac_ct_F77" >&6
4305else
4306  echo "$as_me:$LINENO: result: no" >&5
4307echo "${ECHO_T}no" >&6
4308fi
4309
4310  test -n "$ac_ct_F77" && break
4311done
4312
4313  F77=$ac_ct_F77
4314fi
4315
4316
4317# Provide some information about the compiler.
4318echo "$as_me:4318:" \
4319     "checking for Fortran 77 compiler version" >&5
4320ac_compiler=`set X $ac_compile; echo $2`
4321{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4322  (eval $ac_compiler --version </dev/null >&5) 2>&5
4323  ac_status=$?
4324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325  (exit $ac_status); }
4326{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4327  (eval $ac_compiler -v </dev/null >&5) 2>&5
4328  ac_status=$?
4329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330  (exit $ac_status); }
4331{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4332  (eval $ac_compiler -V </dev/null >&5) 2>&5
4333  ac_status=$?
4334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335  (exit $ac_status); }
4336rm -f a.out
4337
4338# If we don't use `.F' as extension, the preprocessor is not run on the
4339# input file.  (Note that this only needs to work for GNU compilers.)
4340ac_save_ext=$ac_ext
4341ac_ext=F
4342echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4343echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4344if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4345  echo $ECHO_N "(cached) $ECHO_C" >&6
4346else
4347  cat >conftest.$ac_ext <<_ACEOF
4348      program main
4349#ifndef __GNUC__
4350       choke me
4351#endif
4352
4353      end
4354_ACEOF
4355rm -f conftest.$ac_objext
4356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4357  (eval $ac_compile) 2>conftest.er1
4358  ac_status=$?
4359  grep -v '^ *+' conftest.er1 >conftest.err
4360  rm -f conftest.er1
4361  cat conftest.err >&5
4362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363  (exit $ac_status); } &&
4364	 { ac_try='test -z "$ac_f77_werror_flag"
4365			 || test ! -s conftest.err'
4366  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4367  (eval $ac_try) 2>&5
4368  ac_status=$?
4369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370  (exit $ac_status); }; } &&
4371	 { ac_try='test -s conftest.$ac_objext'
4372  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4373  (eval $ac_try) 2>&5
4374  ac_status=$?
4375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376  (exit $ac_status); }; }; then
4377  ac_compiler_gnu=yes
4378else
4379  echo "$as_me: failed program was:" >&5
4380sed 's/^/| /' conftest.$ac_ext >&5
4381
4382ac_compiler_gnu=no
4383fi
4384rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4385ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4386
4387fi
4388echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4389echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4390ac_ext=$ac_save_ext
4391ac_test_FFLAGS=${FFLAGS+set}
4392ac_save_FFLAGS=$FFLAGS
4393FFLAGS=
4394echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4395echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4396if test "${ac_cv_prog_f77_g+set}" = set; then
4397  echo $ECHO_N "(cached) $ECHO_C" >&6
4398else
4399  FFLAGS=-g
4400cat >conftest.$ac_ext <<_ACEOF
4401      program main
4402
4403      end
4404_ACEOF
4405rm -f conftest.$ac_objext
4406if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4407  (eval $ac_compile) 2>conftest.er1
4408  ac_status=$?
4409  grep -v '^ *+' conftest.er1 >conftest.err
4410  rm -f conftest.er1
4411  cat conftest.err >&5
4412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413  (exit $ac_status); } &&
4414	 { ac_try='test -z "$ac_f77_werror_flag"
4415			 || test ! -s conftest.err'
4416  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4417  (eval $ac_try) 2>&5
4418  ac_status=$?
4419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420  (exit $ac_status); }; } &&
4421	 { ac_try='test -s conftest.$ac_objext'
4422  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4423  (eval $ac_try) 2>&5
4424  ac_status=$?
4425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426  (exit $ac_status); }; }; then
4427  ac_cv_prog_f77_g=yes
4428else
4429  echo "$as_me: failed program was:" >&5
4430sed 's/^/| /' conftest.$ac_ext >&5
4431
4432ac_cv_prog_f77_g=no
4433fi
4434rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4435
4436fi
4437echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4438echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4439if test "$ac_test_FFLAGS" = set; then
4440  FFLAGS=$ac_save_FFLAGS
4441elif test $ac_cv_prog_f77_g = yes; then
4442  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4443    FFLAGS="-g -O2"
4444  else
4445    FFLAGS="-g"
4446  fi
4447else
4448  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4449    FFLAGS="-O2"
4450  else
4451    FFLAGS=
4452  fi
4453fi
4454
4455G77=`test $ac_compiler_gnu = yes && echo yes`
4456ac_ext=f
4457ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4458ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4459ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4460
4461else
4462  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
4463echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
4464fi
4465
4466FFLAGS="$save_fflags"
4467
4468# Check if a project specific FFLAGS variable has been set
4469if test x$COIN_PRJCT != x; then
4470  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
4471  if test x$coin_tmp = xset; then
4472    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
4473  fi
4474fi
4475
4476if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
4477
4478  coin_add_fflags=
4479  coin_opt_fflags=
4480  coin_dbg_fflags=
4481  coin_warn_fflags=
4482
4483  if test "$G77" = "yes"; then
4484    coin_opt_fflags="-O3"
4485    coin_add_fflags="-pipe"
4486    coin_dbg_fflags="-g -O0"
4487  else
4488    case $build in
4489      *-cygwin* | *-mingw*)
4490        case $F77 in
4491          ifort* | */ifort* | IFORT* | */IFORT* )
4492            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
4493              coin_opt_fflags='-MD -O3'
4494              coin_dbg_fflags='-MDd -debug'
4495            else
4496              coin_opt_fflags='-MT -O3'
4497              coin_dbg_fflags='-MTd -debug'
4498            fi
4499            coin_add_fflags='-fpp -nologo'
4500          ;;
4501          compile_f2c*)
4502            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
4503              coin_opt_fflags='-MD -O2'
4504              coin_dbg_fflags='-MDd'
4505            else
4506              coin_opt_fflags='-MT -O2'
4507              coin_dbg_fflags='-MTd'
4508            fi
4509            coin_add_fflags='-nologo -wd4996'
4510          ;;
4511        esac
4512        ;;
4513      *-linux-*)
4514        case $F77 in
4515          ifc* | */ifc* | ifort* | */ifort*)
4516            coin_opt_fflags="-O3 -ip"
4517            coin_add_fflags="-cm -w90 -w95"
4518            coin_dbg_fflags="-g -CA -CB -CS"
4519            # Check if -i_dynamic is necessary (for new glibc library)
4520            FFLAGS=
4521            cat >conftest.$ac_ext <<_ACEOF
4522      program main
4523      write(*,*) 'Hello world'
4524      end
4525_ACEOF
4526rm -f conftest.$ac_objext conftest$ac_exeext
4527if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4528  (eval $ac_link) 2>conftest.er1
4529  ac_status=$?
4530  grep -v '^ *+' conftest.er1 >conftest.err
4531  rm -f conftest.er1
4532  cat conftest.err >&5
4533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534  (exit $ac_status); } &&
4535	 { ac_try='test -z "$ac_f77_werror_flag"
4536			 || test ! -s conftest.err'
4537  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4538  (eval $ac_try) 2>&5
4539  ac_status=$?
4540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541  (exit $ac_status); }; } &&
4542	 { ac_try='test -s conftest$ac_exeext'
4543  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4544  (eval $ac_try) 2>&5
4545  ac_status=$?
4546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547  (exit $ac_status); }; }; then
4548  :
4549else
4550  echo "$as_me: failed program was:" >&5
4551sed 's/^/| /' conftest.$ac_ext >&5
4552
4553coin_add_fflags="-i_dynamic $coin_add_fflags"
4554fi
4555rm -f conftest.err conftest.$ac_objext \
4556      conftest$ac_exeext conftest.$ac_ext
4557            ;;
4558          pgf77* | */pgf77* | pgf90* | */pgf90*)
4559            coin_opt_fflags="-fast"
4560            coin_add_fflags="-Kieee -pc 64"
4561            coin_dbg_fflags="-g"
4562          ;;
4563        esac
4564        ;;
4565      *-ibm-*)
4566        case "$F77" in
4567          xlf* | */xlf* | mpxlf* | */mpxlf* )
4568            coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
4569            coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
4570            coin_dbg_fflags="-g -C"
4571            ;;
4572        esac
4573        ;;
4574      *-hp-*)
4575        coin_opt_fflags="+O3"
4576        coin_add_fflags="+U77"
4577        coin_dbg_fflags="-C -g"
4578        ;;
4579      *-*-solaris*)
4580        coin_opt_fflags="-O4"
4581        coin_dbg_fflags="-g"
4582        ;;
4583      *-sgi-*)
4584        coin_opt_fflags="-O5 -OPT:Olimit=0"
4585        coin_dbg_fflags="-g"
4586        ;;
4587    esac
4588  fi
4589
4590  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
4591    coin_dbg_fflags="-g"
4592  fi
4593
4594  if test -z "$coin_opt_fflags"; then
4595    # Try if -O option works if nothing else is set
4596    FFLAGS=-O
4597    cat >conftest.$ac_ext <<_ACEOF
4598      program main
4599      integer i
4600      end
4601_ACEOF
4602rm -f conftest.$ac_objext conftest$ac_exeext
4603if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4604  (eval $ac_link) 2>conftest.er1
4605  ac_status=$?
4606  grep -v '^ *+' conftest.er1 >conftest.err
4607  rm -f conftest.er1
4608  cat conftest.err >&5
4609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610  (exit $ac_status); } &&
4611	 { ac_try='test -z "$ac_f77_werror_flag"
4612			 || test ! -s conftest.err'
4613  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4614  (eval $ac_try) 2>&5
4615  ac_status=$?
4616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617  (exit $ac_status); }; } &&
4618	 { ac_try='test -s conftest$ac_exeext'
4619  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4620  (eval $ac_try) 2>&5
4621  ac_status=$?
4622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623  (exit $ac_status); }; }; then
4624  coin_opt_fflags="-O"
4625else
4626  echo "$as_me: failed program was:" >&5
4627sed 's/^/| /' conftest.$ac_ext >&5
4628
4629fi
4630rm -f conftest.err conftest.$ac_objext \
4631      conftest$ac_exeext conftest.$ac_ext
4632  fi
4633
4634  # if PM doesn't want the warning messages, take them out
4635  if test x"$coin_skip_warn_fflags" = xyes; then
4636    coin_warn_fflags=
4637  fi
4638
4639  if test x${DBG_FFLAGS+set} != xset; then
4640    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
4641  fi
4642  if test x${OPT_FFLAGS+set} != xset; then
4643    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
4644  fi
4645
4646  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
4647  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
4648
4649  if test "$coin_debug_compile" = "true"; then
4650    FFLAGS="$DBG_FFLAGS"
4651  else
4652    FFLAGS="$OPT_FFLAGS"
4653  fi
4654else
4655  FFLAGS="$FFLAGS $ADD_FFLAGS"
4656  if test x${DBG_FFLAGS+set} != xset; then
4657    DBG_FFLAGS="$FFLAGS"
4658  fi
4659  if test x${OPT_FFLAGS+set} != xset; then
4660    OPT_FFLAGS="$FFLAGS"
4661  fi
4662fi
4663
4664# Try if FFLAGS works
4665if test "$F77" != "unavailable" ; then
4666  cat >conftest.$ac_ext <<_ACEOF
4667      program main
4668      integer i
4669      end
4670_ACEOF
4671rm -f conftest.$ac_objext conftest$ac_exeext
4672if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4673  (eval $ac_link) 2>conftest.er1
4674  ac_status=$?
4675  grep -v '^ *+' conftest.er1 >conftest.err
4676  rm -f conftest.er1
4677  cat conftest.err >&5
4678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679  (exit $ac_status); } &&
4680	 { ac_try='test -z "$ac_f77_werror_flag"
4681			 || test ! -s conftest.err'
4682  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4683  (eval $ac_try) 2>&5
4684  ac_status=$?
4685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686  (exit $ac_status); }; } &&
4687	 { ac_try='test -s conftest$ac_exeext'
4688  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4689  (eval $ac_try) 2>&5
4690  ac_status=$?
4691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692  (exit $ac_status); }; }; then
4693  :
4694else
4695  echo "$as_me: failed program was:" >&5
4696sed 's/^/| /' conftest.$ac_ext >&5
4697
4698FFLAGS=
4699fi
4700rm -f conftest.err conftest.$ac_objext \
4701      conftest$ac_exeext conftest.$ac_ext
4702  if test -z "$FFLAGS"; then
4703    { 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
4704echo "$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;}
4705    FFLAGS='-O'
4706    cat >conftest.$ac_ext <<_ACEOF
4707      program main
4708      integer i
4709      end
4710_ACEOF
4711rm -f conftest.$ac_objext conftest$ac_exeext
4712if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4713  (eval $ac_link) 2>conftest.er1
4714  ac_status=$?
4715  grep -v '^ *+' conftest.er1 >conftest.err
4716  rm -f conftest.er1
4717  cat conftest.err >&5
4718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719  (exit $ac_status); } &&
4720	 { ac_try='test -z "$ac_f77_werror_flag"
4721			 || test ! -s conftest.err'
4722  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4723  (eval $ac_try) 2>&5
4724  ac_status=$?
4725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726  (exit $ac_status); }; } &&
4727	 { ac_try='test -s conftest$ac_exeext'
4728  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4729  (eval $ac_try) 2>&5
4730  ac_status=$?
4731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732  (exit $ac_status); }; }; then
4733  :
4734else
4735  echo "$as_me: failed program was:" >&5
4736sed 's/^/| /' conftest.$ac_ext >&5
4737
4738FFLAGS=
4739fi
4740rm -f conftest.err conftest.$ac_objext \
4741      conftest$ac_exeext conftest.$ac_ext
4742    if test -z "$FFLAGS"; then
4743      { 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
4744echo "$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;}
4745    fi
4746  fi
4747fi
4748
4749{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
4750echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
4751
4752
4753if test x"$MPIF77" = x; then :; else
4754  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
4755echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
4756  F77="$MPIF77"
4757fi
4758
4759# correct the LD variable if we use the intel fortran compiler in windows
4760case $build in
4761  *-cygwin* | *-mingw*)
4762    case "$F77" in
4763      ifort* | */ifort* | IFORT* | */IFORT*)
4764        LD=link
4765      ;;
4766    esac
4767  ;;
4768esac
4769
4770ac_ext=c
4771ac_cpp='$CPP $CPPFLAGS'
4772ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4773ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4774ac_compiler_gnu=$ac_cv_c_compiler_gnu
4775
4776
4777
4778# Find out how to call Fortran from C and determine Fortran runtime libraries
4779if test "x$F77" != xunavailable
4780then
4781
4782# get FLIBS
4783ac_ext=f
4784ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4785ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4786ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4787echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5
4788echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6
4789if test "${ac_cv_prog_f77_v+set}" = set; then
4790  echo $ECHO_N "(cached) $ECHO_C" >&6
4791else
4792  cat >conftest.$ac_ext <<_ACEOF
4793      program main
4794
4795      end
4796_ACEOF
4797rm -f conftest.$ac_objext
4798if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4799  (eval $ac_compile) 2>conftest.er1
4800  ac_status=$?
4801  grep -v '^ *+' conftest.er1 >conftest.err
4802  rm -f conftest.er1
4803  cat conftest.err >&5
4804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4805  (exit $ac_status); } &&
4806	 { ac_try='test -z "$ac_f77_werror_flag"
4807			 || test ! -s conftest.err'
4808  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4809  (eval $ac_try) 2>&5
4810  ac_status=$?
4811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812  (exit $ac_status); }; } &&
4813	 { ac_try='test -s conftest.$ac_objext'
4814  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4815  (eval $ac_try) 2>&5
4816  ac_status=$?
4817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818  (exit $ac_status); }; }; then
4819  ac_cv_prog_f77_v=
4820# Try some options frequently used verbose output
4821for ac_verb in -v -verbose --verbose -V -\#\#\#; do
4822  cat >conftest.$ac_ext <<_ACEOF
4823      program main
4824
4825      end
4826_ACEOF
4827
4828# Compile and link our simple test program by passing a flag (argument
4829# 1 to this macro) to the Fortran compiler in order to get
4830# "verbose" output that we can then parse for the Fortran linker
4831# flags.
4832ac_save_FFLAGS=$FFLAGS
4833FFLAGS="$FFLAGS $ac_verb"
4834(eval echo $as_me:4834: \"$ac_link\") >&5
4835ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4836echo "$ac_f77_v_output" >&5
4837FFLAGS=$ac_save_FFLAGS
4838
4839rm -f conftest*
4840
4841# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
4842# /foo, /bar, and /baz are search directories for the Fortran linker.
4843# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
4844ac_f77_v_output="`echo $ac_f77_v_output |
4845	grep 'LPATH is:' |
4846	sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
4847
4848case $ac_f77_v_output in
4849  # If we are using xlf then replace all the commas with spaces.
4850  *xlfentry*)
4851    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
4852
4853  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
4854  # $LIBS confuse us, and the libraries appear later in the output anyway).
4855  *mGLOB_options_string*)
4856    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
4857
4858  # If we are using Cray Fortran then delete quotes.
4859  # Use "\"" instead of '"' for font-lock-mode.
4860  # FIXME: a more general fix for quoted arguments with spaces?
4861  *cft90*)
4862    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
4863esac
4864
4865
4866  # look for -l* and *.a constructs in the output
4867  for ac_arg in $ac_f77_v_output; do
4868     case $ac_arg in
4869        [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
4870          ac_cv_prog_f77_v=$ac_verb
4871          break 2 ;;
4872     esac
4873  done
4874done
4875if test -z "$ac_cv_prog_f77_v"; then
4876   { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5
4877echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
4878fi
4879else
4880  echo "$as_me: failed program was:" >&5
4881sed 's/^/| /' conftest.$ac_ext >&5
4882
4883{ echo "$as_me:$LINENO: WARNING: compilation failed" >&5
4884echo "$as_me: WARNING: compilation failed" >&2;}
4885fi
4886rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4887
4888fi
4889echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5
4890echo "${ECHO_T}$ac_cv_prog_f77_v" >&6
4891echo "$as_me:$LINENO: checking for Fortran libraries of $F77" >&5
4892echo $ECHO_N "checking for Fortran libraries of $F77... $ECHO_C" >&6
4893if test "${ac_cv_f77_libs+set}" = set; then
4894  echo $ECHO_N "(cached) $ECHO_C" >&6
4895else
4896  if test "x$FLIBS" != "x"; then
4897  ac_cv_f77_libs="$FLIBS" # Let the user override the test.
4898else
4899
4900cat >conftest.$ac_ext <<_ACEOF
4901      program main
4902
4903      end
4904_ACEOF
4905
4906# Compile and link our simple test program by passing a flag (argument
4907# 1 to this macro) to the Fortran compiler in order to get
4908# "verbose" output that we can then parse for the Fortran linker
4909# flags.
4910ac_save_FFLAGS=$FFLAGS
4911FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
4912(eval echo $as_me:4912: \"$ac_link\") >&5
4913ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
4914echo "$ac_f77_v_output" >&5
4915FFLAGS=$ac_save_FFLAGS
4916
4917rm -f conftest*
4918
4919# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
4920# /foo, /bar, and /baz are search directories for the Fortran linker.
4921# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
4922ac_f77_v_output="`echo $ac_f77_v_output |
4923	grep 'LPATH is:' |
4924	sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
4925
4926case $ac_f77_v_output in
4927  # If we are using xlf then replace all the commas with spaces.
4928  *xlfentry*)
4929    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
4930
4931  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
4932  # $LIBS confuse us, and the libraries appear later in the output anyway).
4933  *mGLOB_options_string*)
4934    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
4935
4936  # If we are using Cray Fortran then delete quotes.
4937  # Use "\"" instead of '"' for font-lock-mode.
4938  # FIXME: a more general fix for quoted arguments with spaces?
4939  *cft90*)
4940    ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
4941esac
4942
4943
4944
4945ac_cv_f77_libs=
4946
4947# Save positional arguments (if any)
4948ac_save_positional="$@"
4949
4950set X $ac_f77_v_output
4951while test $# != 1; do
4952  shift
4953  ac_arg=$1
4954  case $ac_arg in
4955        [\\/]*.a | ?:[\\/]*.a)
4956            ac_exists=false
4957  for ac_i in $ac_cv_f77_libs; do
4958    if test x"$ac_arg" = x"$ac_i"; then
4959      ac_exists=true
4960      break
4961    fi
4962  done
4963
4964  if test x"$ac_exists" = xtrue; then
4965  :
4966else
4967  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4968fi
4969
4970          ;;
4971        -bI:*)
4972            ac_exists=false
4973  for ac_i in $ac_cv_f77_libs; do
4974    if test x"$ac_arg" = x"$ac_i"; then
4975      ac_exists=true
4976      break
4977    fi
4978  done
4979
4980  if test x"$ac_exists" = xtrue; then
4981  :
4982else
4983  if test "$ac_compiler_gnu" = yes; then
4984  for ac_link_opt in $ac_arg; do
4985    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
4986  done
4987else
4988  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4989fi
4990fi
4991
4992          ;;
4993          # Ignore these flags.
4994        -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*)
4995          ;;
4996        -lkernel32)
4997          test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
4998          ;;
4999        -[LRuY])
5000          # These flags, when seen by themselves, take an argument.
5001          # We remove the space between option and argument and re-iterate
5002          # unless we find an empty arg or a new option (starting with -)
5003	  case $2 in
5004	     "" | -*);;
5005	     *)
5006		ac_arg="$ac_arg$2"
5007		shift; shift
5008		set X $ac_arg "$@"
5009		;;
5010	  esac
5011          ;;
5012        -YP,*)
5013          for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
5014              ac_exists=false
5015  for ac_i in $ac_cv_f77_libs; do
5016    if test x"$ac_j" = x"$ac_i"; then
5017      ac_exists=true
5018      break
5019    fi
5020  done
5021
5022  if test x"$ac_exists" = xtrue; then
5023  :
5024else
5025  ac_arg="$ac_arg $ac_j"
5026                               ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
5027fi
5028
5029          done
5030          ;;
5031        -[lLR]*)
5032            ac_exists=false
5033  for ac_i in $ac_cv_f77_libs; do
5034    if test x"$ac_arg" = x"$ac_i"; then
5035      ac_exists=true
5036      break
5037    fi
5038  done
5039
5040  if test x"$ac_exists" = xtrue; then
5041  :
5042else
5043  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
5044fi
5045
5046          ;;
5047          # Ignore everything else.
5048  esac
5049done
5050# restore positional arguments
5051set X $ac_save_positional; shift
5052
5053# We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
5054# then we insist that the "run path" must be an absolute path (i.e. it
5055# must begin with a "/").
5056case `(uname -sr) 2>/dev/null` in
5057   "SunOS 5"*)
5058      ac_ld_run_path=`echo $ac_f77_v_output |
5059                        sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
5060      test "x$ac_ld_run_path" != x &&
5061        if test "$ac_compiler_gnu" = yes; then
5062  for ac_link_opt in $ac_ld_run_path; do
5063    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
5064  done
5065else
5066  ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
5067fi
5068      ;;
5069esac
5070fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
5071
5072fi
5073echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5
5074echo "${ECHO_T}$ac_cv_f77_libs" >&6
5075FLIBS="$ac_cv_f77_libs"
5076
5077
5078ac_ext=c
5079ac_cpp='$CPP $CPPFLAGS'
5080ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5081ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5082ac_compiler_gnu=$ac_cv_c_compiler_gnu
5083
5084orig_FLIBS="$FLIBS"
5085
5086# If FLIBS has been set by the user, we just restore its value here
5087if test x"$save_FLIBS" != x; then
5088  FLIBS="$save_FLIBS"
5089else
5090  # This is to correct a missing exclusion in autoconf 2.59
5091  if test x"$FLIBS" != x; then
5092    my_flibs=
5093    for flag in $FLIBS; do
5094      case $flag in
5095        -lcrt*.o) ;;
5096        -lcygwin) ;;
5097        -lgcc*)   ;;
5098               *) my_flibs="$my_flibs $flag" ;;
5099      esac
5100    done
5101    FLIBS="$my_flibs"
5102  fi
5103
5104  case $build in
5105  # The following is a fix to define FLIBS for ifort on Windows
5106  # In its original version, it linked in libifcorert.lib or libifcorertd.lib on Windows/ifort explicitly.
5107  # However, this seem to create a dependency on libifcorert.dll (or libifcorertd.dll) in the executables.
5108  # This is seem to be unnecessary, libifcorert(d).lib has been removed from the link line.
5109  # Further, excluding libc.lib from the default libs seemed to be necessary only for VS < 8.
5110  # Since the corresponding flag seems to make more trouble than it avoids, it has been removed now.
5111     *-cygwin* | *-mingw*)
5112       case "$F77" in
5113#         ifort* | */ifort* | IFORT* | */IFORT*)
5114#           FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib"
5115#           if "$coin_debug_compile" = true ; then
5116#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmt.lib"
5117#           else
5118#             FLIBS="-link $LIBS /NODEFAULTLIB:libc.lib /NODEFAULTLIB:libcmtd.lib"
5119#           fi
5120#           ;;
5121         compile_f2c*)
5122           FLIBS=`$F77 -FLIBS` ;;
5123       esac;;
5124     *-hp-*)
5125         FLIBS="$FLIBS -lm";;
5126     *-ibm-*)
5127         FLIBS=`echo $FLIBS | sed 's/-lc)/-lc/g'` ;;
5128     *-linux-*)
5129       case "$F77" in
5130         pgf77* | */pgf77* | pgf90* | */pgf90*)
5131# ask linker to go through the archives multiple times
5132# (the Fortran compiler seems to do that automatically...)
5133           FLIBS="-Wl,--start-group $FLIBS -Wl,--end-group" ;;
5134       esac
5135  esac
5136  ac_cv_f77_libs="$FLIBS"
5137fi
5138
5139if test "x$orig_FLIBS" != "x$FLIBS" ; then
5140  { echo "$as_me:$LINENO: Corrected Fortran libraries: $FLIBS" >&5
5141echo "$as_me: Corrected Fortran libraries: $FLIBS" >&6;}
5142fi
5143
5144ac_ext=f
5145ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5146ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5147ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5148
5149echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5
5150echo $ECHO_N "checking for dummy main to link with Fortran libraries... $ECHO_C" >&6
5151if test "${ac_cv_f77_dummy_main+set}" = set; then
5152  echo $ECHO_N "(cached) $ECHO_C" >&6
5153else
5154  ac_f77_dm_save_LIBS=$LIBS
5155 LIBS="$LIBS $FLIBS"
5156 ac_fortran_dm_var=F77_DUMMY_MAIN
5157 ac_ext=c
5158ac_cpp='$CPP $CPPFLAGS'
5159ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5160ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5161ac_compiler_gnu=$ac_cv_c_compiler_gnu
5162
5163 # First, try linking without a dummy main:
5164 cat >conftest.$ac_ext <<_ACEOF
5165/* confdefs.h.  */
5166_ACEOF
5167cat confdefs.h >>conftest.$ac_ext
5168cat >>conftest.$ac_ext <<_ACEOF
5169/* end confdefs.h.  */
5170
5171#ifdef F77_DUMMY_MAIN
5172
5173#  ifdef __cplusplus
5174     extern "C"
5175#  endif
5176   int F77_DUMMY_MAIN() { return 1; }
5177
5178#endif
5179int
5180main ()
5181{
5182
5183  ;
5184  return 0;
5185}
5186_ACEOF
5187rm -f conftest.$ac_objext conftest$ac_exeext
5188if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5189  (eval $ac_link) 2>conftest.er1
5190  ac_status=$?
5191  grep -v '^ *+' conftest.er1 >conftest.err
5192  rm -f conftest.er1
5193  cat conftest.err >&5
5194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195  (exit $ac_status); } &&
5196	 { ac_try='test -z "$ac_c_werror_flag"
5197			 || test ! -s conftest.err'
5198  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5199  (eval $ac_try) 2>&5
5200  ac_status=$?
5201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202  (exit $ac_status); }; } &&
5203	 { ac_try='test -s conftest$ac_exeext'
5204  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5205  (eval $ac_try) 2>&5
5206  ac_status=$?
5207  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208  (exit $ac_status); }; }; then
5209  ac_cv_fortran_dummy_main=none
5210else
5211  echo "$as_me: failed program was:" >&5
5212sed 's/^/| /' conftest.$ac_ext >&5
5213
5214ac_cv_fortran_dummy_main=unknown
5215fi
5216rm -f conftest.err conftest.$ac_objext \
5217      conftest$ac_exeext conftest.$ac_ext
5218
5219 if test $ac_cv_fortran_dummy_main = unknown; then
5220   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
5221     cat >conftest.$ac_ext <<_ACEOF
5222/* confdefs.h.  */
5223_ACEOF
5224cat confdefs.h >>conftest.$ac_ext
5225cat >>conftest.$ac_ext <<_ACEOF
5226/* end confdefs.h.  */
5227#define $ac_fortran_dm_var $ac_func
5228#ifdef F77_DUMMY_MAIN
5229
5230#  ifdef __cplusplus
5231     extern "C"
5232#  endif
5233   int F77_DUMMY_MAIN() { return 1; }
5234
5235#endif
5236int
5237main ()
5238{
5239
5240  ;
5241  return 0;
5242}
5243_ACEOF
5244rm -f conftest.$ac_objext conftest$ac_exeext
5245if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5246  (eval $ac_link) 2>conftest.er1
5247  ac_status=$?
5248  grep -v '^ *+' conftest.er1 >conftest.err
5249  rm -f conftest.er1
5250  cat conftest.err >&5
5251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5252  (exit $ac_status); } &&
5253	 { ac_try='test -z "$ac_c_werror_flag"
5254			 || test ! -s conftest.err'
5255  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5256  (eval $ac_try) 2>&5
5257  ac_status=$?
5258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259  (exit $ac_status); }; } &&
5260	 { ac_try='test -s conftest$ac_exeext'
5261  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5262  (eval $ac_try) 2>&5
5263  ac_status=$?
5264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265  (exit $ac_status); }; }; then
5266  ac_cv_fortran_dummy_main=$ac_func; break
5267else
5268  echo "$as_me: failed program was:" >&5
5269sed 's/^/| /' conftest.$ac_ext >&5
5270
5271fi
5272rm -f conftest.err conftest.$ac_objext \
5273      conftest$ac_exeext conftest.$ac_ext
5274   done
5275 fi
5276 ac_ext=f
5277ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5278ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5279ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5280 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
5281 rm -f conftest*
5282 LIBS=$ac_f77_dm_save_LIBS
5283
5284fi
5285echo "$as_me:$LINENO: result: $ac_cv_f77_dummy_main" >&5
5286echo "${ECHO_T}$ac_cv_f77_dummy_main" >&6
5287F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
5288if test "$F77_DUMMY_MAIN" != unknown; then
5289  if test $F77_DUMMY_MAIN != none; then
5290
5291cat >>confdefs.h <<_ACEOF
5292#define F77_DUMMY_MAIN $F77_DUMMY_MAIN
5293_ACEOF
5294
5295  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
5296
5297cat >>confdefs.h <<\_ACEOF
5298#define FC_DUMMY_MAIN_EQ_F77 1
5299_ACEOF
5300
5301  fi
5302fi
5303else
5304  { { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails
5305See \`config.log' for more details." >&5
5306echo "$as_me: error: linking to Fortran libraries from C fails
5307See \`config.log' for more details." >&2;}
5308   { (exit 1); exit 1; }; }
5309fi
5310
5311
5312ac_ext=f
5313ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5314ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5315ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5316
5317ac_ext=f
5318ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5319ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5320ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5321echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5
5322echo $ECHO_N "checking for Fortran name-mangling scheme... $ECHO_C" >&6
5323if test "${ac_cv_f77_mangling+set}" = set; then
5324  echo $ECHO_N "(cached) $ECHO_C" >&6
5325else
5326  cat >conftest.$ac_ext <<_ACEOF
5327      subroutine foobar()
5328      return
5329      end
5330      subroutine foo_bar()
5331      return
5332      end
5333_ACEOF
5334rm -f conftest.$ac_objext
5335if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5336  (eval $ac_compile) 2>conftest.er1
5337  ac_status=$?
5338  grep -v '^ *+' conftest.er1 >conftest.err
5339  rm -f conftest.er1
5340  cat conftest.err >&5
5341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342  (exit $ac_status); } &&
5343	 { ac_try='test -z "$ac_f77_werror_flag"
5344			 || test ! -s conftest.err'
5345  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5346  (eval $ac_try) 2>&5
5347  ac_status=$?
5348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349  (exit $ac_status); }; } &&
5350	 { ac_try='test -s conftest.$ac_objext'
5351  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5352  (eval $ac_try) 2>&5
5353  ac_status=$?
5354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355  (exit $ac_status); }; }; then
5356  mv conftest.$ac_objext cfortran_test.$ac_objext
5357
5358  ac_save_LIBS=$LIBS
5359  LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
5360
5361  ac_ext=c
5362ac_cpp='$CPP $CPPFLAGS'
5363ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5364ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5365ac_compiler_gnu=$ac_cv_c_compiler_gnu
5366  ac_success=no
5367  for ac_foobar in foobar FOOBAR; do
5368    for ac_underscore in "" "_"; do
5369      ac_func="$ac_foobar$ac_underscore"
5370      cat >conftest.$ac_ext <<_ACEOF
5371/* confdefs.h.  */
5372_ACEOF
5373cat confdefs.h >>conftest.$ac_ext
5374cat >>conftest.$ac_ext <<_ACEOF
5375/* end confdefs.h.  */
5376
5377/* Override any gcc2 internal prototype to avoid an error.  */
5378#ifdef __cplusplus
5379extern "C"
5380#endif
5381/* We use char because int might match the return type of a gcc2
5382   builtin and then its argument prototype would still apply.  */
5383char $ac_func ();
5384#ifdef F77_DUMMY_MAIN
5385
5386#  ifdef __cplusplus
5387     extern "C"
5388#  endif
5389   int F77_DUMMY_MAIN() { return 1; }
5390
5391#endif
5392int
5393main ()
5394{
5395$ac_func ();
5396  ;
5397  return 0;
5398}
5399_ACEOF
5400rm -f conftest.$ac_objext conftest$ac_exeext
5401if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5402  (eval $ac_link) 2>conftest.er1
5403  ac_status=$?
5404  grep -v '^ *+' conftest.er1 >conftest.err
5405  rm -f conftest.er1
5406  cat conftest.err >&5
5407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408  (exit $ac_status); } &&
5409	 { ac_try='test -z "$ac_c_werror_flag"
5410			 || test ! -s conftest.err'
5411  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5412  (eval $ac_try) 2>&5
5413  ac_status=$?
5414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5415  (exit $ac_status); }; } &&
5416	 { ac_try='test -s conftest$ac_exeext'
5417  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5418  (eval $ac_try) 2>&5
5419  ac_status=$?
5420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5421  (exit $ac_status); }; }; then
5422  ac_success=yes; break 2
5423else
5424  echo "$as_me: failed program was:" >&5
5425sed 's/^/| /' conftest.$ac_ext >&5
5426
5427fi
5428rm -f conftest.err conftest.$ac_objext \
5429      conftest$ac_exeext conftest.$ac_ext
5430    done
5431  done
5432  ac_ext=f
5433ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5434ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5435ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5436
5437  if test "$ac_success" = "yes"; then
5438     case $ac_foobar in
5439	foobar)
5440	   ac_case=lower
5441	   ac_foo_bar=foo_bar
5442	   ;;
5443	FOOBAR)
5444	   ac_case=upper
5445	   ac_foo_bar=FOO_BAR
5446	   ;;
5447     esac
5448
5449     ac_ext=c
5450ac_cpp='$CPP $CPPFLAGS'
5451ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5452ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5453ac_compiler_gnu=$ac_cv_c_compiler_gnu
5454     ac_success_extra=no
5455     for ac_extra in "" "_"; do
5456	ac_func="$ac_foo_bar$ac_underscore$ac_extra"
5457	cat >conftest.$ac_ext <<_ACEOF
5458/* confdefs.h.  */
5459_ACEOF
5460cat confdefs.h >>conftest.$ac_ext
5461cat >>conftest.$ac_ext <<_ACEOF
5462/* end confdefs.h.  */
5463
5464/* Override any gcc2 internal prototype to avoid an error.  */
5465#ifdef __cplusplus
5466extern "C"
5467#endif
5468/* We use char because int might match the return type of a gcc2
5469   builtin and then its argument prototype would still apply.  */
5470char $ac_func ();
5471#ifdef F77_DUMMY_MAIN
5472
5473#  ifdef __cplusplus
5474     extern "C"
5475#  endif
5476   int F77_DUMMY_MAIN() { return 1; }
5477
5478#endif
5479int
5480main ()
5481{
5482$ac_func ();
5483  ;
5484  return 0;
5485}
5486_ACEOF
5487rm -f conftest.$ac_objext conftest$ac_exeext
5488if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5489  (eval $ac_link) 2>conftest.er1
5490  ac_status=$?
5491  grep -v '^ *+' conftest.er1 >conftest.err
5492  rm -f conftest.er1
5493  cat conftest.err >&5
5494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495  (exit $ac_status); } &&
5496	 { ac_try='test -z "$ac_c_werror_flag"
5497			 || test ! -s conftest.err'
5498  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5499  (eval $ac_try) 2>&5
5500  ac_status=$?
5501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502  (exit $ac_status); }; } &&
5503	 { ac_try='test -s conftest$ac_exeext'
5504  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5505  (eval $ac_try) 2>&5
5506  ac_status=$?
5507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508  (exit $ac_status); }; }; then
5509  ac_success_extra=yes; break
5510else
5511  echo "$as_me: failed program was:" >&5
5512sed 's/^/| /' conftest.$ac_ext >&5
5513
5514fi
5515rm -f conftest.err conftest.$ac_objext \
5516      conftest$ac_exeext conftest.$ac_ext
5517     done
5518     ac_ext=f
5519ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5520ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5521ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5522
5523     if test "$ac_success_extra" = "yes"; then
5524	ac_cv_f77_mangling="$ac_case case"
5525        if test -z "$ac_underscore"; then
5526           ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
5527	else
5528           ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
5529        fi
5530        if test -z "$ac_extra"; then
5531           ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
5532	else
5533           ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
5534        fi
5535      else
5536	ac_cv_f77_mangling="unknown"
5537      fi
5538  else
5539     ac_cv_f77_mangling="unknown"
5540  fi
5541
5542  LIBS=$ac_save_LIBS
5543  rm -f cfortran_test* conftest*
5544else
5545  echo "$as_me: failed program was:" >&5
5546sed 's/^/| /' conftest.$ac_ext >&5
5547
5548{ { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program
5549See \`config.log' for more details." >&5
5550echo "$as_me: error: cannot compile a simple Fortran program
5551See \`config.log' for more details." >&2;}
5552   { (exit 1); exit 1; }; }
5553fi
5554rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5555
5556fi
5557echo "$as_me:$LINENO: result: $ac_cv_f77_mangling" >&5
5558echo "${ECHO_T}$ac_cv_f77_mangling" >&6
5559
5560ac_ext=f
5561ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5562ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5563ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5564
5565
5566ac_ext=f
5567ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5568ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5569ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5570
5571ac_ext=f
5572ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5573ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5574ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5575
5576
5577case $ac_cv_f77_mangling in
5578  "lower case, no underscore, no extra underscore")
5579          cat >>confdefs.h <<\_ACEOF
5580#define F77_FUNC(name,NAME) name
5581_ACEOF
5582
5583          cat >>confdefs.h <<\_ACEOF
5584#define F77_FUNC_(name,NAME) name
5585_ACEOF
5586 ;;
5587  "lower case, no underscore, extra underscore")
5588          cat >>confdefs.h <<\_ACEOF
5589#define F77_FUNC(name,NAME) name
5590_ACEOF
5591
5592          cat >>confdefs.h <<\_ACEOF
5593#define F77_FUNC_(name,NAME) name ## _
5594_ACEOF
5595 ;;
5596  "lower case, underscore, no extra underscore")
5597          cat >>confdefs.h <<\_ACEOF
5598#define F77_FUNC(name,NAME) name ## _
5599_ACEOF
5600
5601          cat >>confdefs.h <<\_ACEOF
5602#define F77_FUNC_(name,NAME) name ## _
5603_ACEOF
5604 ;;
5605  "lower case, underscore, extra underscore")
5606          cat >>confdefs.h <<\_ACEOF
5607#define F77_FUNC(name,NAME) name ## _
5608_ACEOF
5609
5610          cat >>confdefs.h <<\_ACEOF
5611#define F77_FUNC_(name,NAME) name ## __
5612_ACEOF
5613 ;;
5614  "upper case, no underscore, no extra underscore")
5615          cat >>confdefs.h <<\_ACEOF
5616#define F77_FUNC(name,NAME) NAME
5617_ACEOF
5618
5619          cat >>confdefs.h <<\_ACEOF
5620#define F77_FUNC_(name,NAME) NAME
5621_ACEOF
5622 ;;
5623  "upper case, no underscore, extra underscore")
5624          cat >>confdefs.h <<\_ACEOF
5625#define F77_FUNC(name,NAME) NAME
5626_ACEOF
5627
5628          cat >>confdefs.h <<\_ACEOF
5629#define F77_FUNC_(name,NAME) NAME ## _
5630_ACEOF
5631 ;;
5632  "upper case, underscore, no extra underscore")
5633          cat >>confdefs.h <<\_ACEOF
5634#define F77_FUNC(name,NAME) NAME ## _
5635_ACEOF
5636
5637          cat >>confdefs.h <<\_ACEOF
5638#define F77_FUNC_(name,NAME) NAME ## _
5639_ACEOF
5640 ;;
5641  "upper case, underscore, extra underscore")
5642          cat >>confdefs.h <<\_ACEOF
5643#define F77_FUNC(name,NAME) NAME ## _
5644_ACEOF
5645
5646          cat >>confdefs.h <<\_ACEOF
5647#define F77_FUNC_(name,NAME) NAME ## __
5648_ACEOF
5649 ;;
5650  *)
5651          { echo "$as_me:$LINENO: WARNING: unknown Fortran name-mangling scheme" >&5
5652echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
5653          ;;
5654esac
5655
5656ac_ext=f
5657ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5658ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5659ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5660
5661ac_ext=c
5662ac_cpp='$CPP $CPPFLAGS'
5663ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5664ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5665ac_compiler_gnu=$ac_cv_c_compiler_gnu
5666
5667
5668
5669fi
5670
5671# Initialize automake and libtool
5672{
5673
5674
5675
5676# START
5677
5678coin_disable_shared=no
5679# Test if force_shared has been set
5680if test "x" = xforce_shared; then
5681  if test x$enable_shared = xno; then
5682    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
5683echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
5684   { (exit 1); exit 1; }; }
5685  fi
5686  enable_shared=yes;
5687else
5688  case $build in
5689    *-cygwin* | *-mingw*)
5690      coin_disable_shared=yes
5691      if test x"$enable_shared" = xyes; then
5692        case "$CC" in
5693          clang* )
5694            { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5
5695echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;}
5696            ;;
5697          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
5698            { echo "$as_me:$LINENO: Building of DLLs not supported in this configuration." >&5
5699echo "$as_me: Building of DLLs not supported in this configuration." >&6;}
5700            ;;
5701          *gcc*)
5702            if test x"$enable_dependency_linking" = xyes; then
5703              coin_disable_shared=no
5704            else
5705              { echo "$as_me:$LINENO: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&5
5706echo "$as_me: WARNING: Dependency linking seems to be disabled, so shared libraries (DLLs) will not be built" >&2;}
5707            fi
5708            ;;
5709          *)
5710            { echo "$as_me:$LINENO: WARNING: Building of DLLs not supported in this configuration." >&5
5711echo "$as_me: WARNING: Building of DLLs not supported in this configuration." >&2;}
5712            ;;
5713        esac
5714      fi
5715    ;;
5716    *-aix*)
5717      coin_disable_shared=yes
5718      platform=AIX
5719      if test x"$enable_shared" = xyes; then
5720        { echo "$as_me:$LINENO: WARNING: Shared objects are not supported." >&5
5721echo "$as_me: WARNING: Shared objects are not supported." >&2;}
5722      fi
5723    ;;
5724  esac
5725fi
5726if test x"$coin_disable_shared" = xyes; then
5727  if test x"$enable_shared" = xyes; then
5728    :
5729  else
5730    # we don't disable shared, because it was not selected anyway
5731    coin_disable_shared=no
5732  fi
5733  enable_shared=no
5734fi
5735# By default, we only want the shared objects to be compiled
5736# Check whether --enable-static or --disable-static was given.
5737if test "${enable_static+set}" = set; then
5738  enableval="$enable_static"
5739  p=${PACKAGE-default}
5740    case $enableval in
5741    yes) enable_static=yes ;;
5742    no) enable_static=no ;;
5743    *)
5744     enable_static=no
5745      # Look at the argument we got.  We use all the common list separators.
5746      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5747      for pkg in $enableval; do
5748	IFS="$lt_save_ifs"
5749	if test "X$pkg" = "X$p"; then
5750	  enable_static=yes
5751	fi
5752      done
5753      IFS="$lt_save_ifs"
5754      ;;
5755    esac
5756else
5757  enable_static=no
5758fi;
5759
5760
5761
5762
5763# Initialize automake
5764echo "$as_me:$LINENO: checking for egrep" >&5
5765echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5766if test "${ac_cv_prog_egrep+set}" = set; then
5767  echo $ECHO_N "(cached) $ECHO_C" >&6
5768else
5769  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5770    then ac_cv_prog_egrep='grep -E'
5771    else ac_cv_prog_egrep='egrep'
5772    fi
5773fi
5774echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5775echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5776 EGREP=$ac_cv_prog_egrep
5777
5778
5779echo "$as_me:$LINENO: checking whether ln -s works" >&5
5780echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5781LN_S=$as_ln_s
5782if test "$LN_S" = "ln -s"; then
5783  echo "$as_me:$LINENO: result: yes" >&5
5784echo "${ECHO_T}yes" >&6
5785else
5786  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5787echo "${ECHO_T}no, using $LN_S" >&6
5788fi
5789
5790am__api_version="1.9"
5791# Find a good install program.  We prefer a C program (faster),
5792# so one script is as good as another.  But avoid the broken or
5793# incompatible versions:
5794# SysV /etc/install, /usr/sbin/install
5795# SunOS /usr/etc/install
5796# IRIX /sbin/install
5797# AIX /bin/install
5798# AmigaOS /C/install, which installs bootblocks on floppy discs
5799# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5800# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5801# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5802# OS/2's system install, which has a completely different semantic
5803# ./install, which can be erroneously created by make from ./install.sh.
5804echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5805echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5806if test -z "$INSTALL"; then
5807if test "${ac_cv_path_install+set}" = set; then
5808  echo $ECHO_N "(cached) $ECHO_C" >&6
5809else
5810  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5811for as_dir in $PATH
5812do
5813  IFS=$as_save_IFS
5814  test -z "$as_dir" && as_dir=.
5815  # Account for people who put trailing slashes in PATH elements.
5816case $as_dir/ in
5817  ./ | .// | /cC/* | \
5818  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5819  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5820  /usr/ucb/* ) ;;
5821  *)
5822    # OSF1 and SCO ODT 3.0 have their own names for install.
5823    # Don't use installbsd from OSF since it installs stuff as root
5824    # by default.
5825    for ac_prog in ginstall scoinst install; do
5826      for ac_exec_ext in '' $ac_executable_extensions; do
5827	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5828	  if test $ac_prog = install &&
5829	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5830	    # AIX install.  It has an incompatible calling convention.
5831	    :
5832	  elif test $ac_prog = install &&
5833	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5834	    # program-specific install script used by HP pwplus--don't use.
5835	    :
5836	  else
5837	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5838	    break 3
5839	  fi
5840	fi
5841      done
5842    done
5843    ;;
5844esac
5845done
5846
5847
5848fi
5849  if test "${ac_cv_path_install+set}" = set; then
5850    INSTALL=$ac_cv_path_install
5851  else
5852    # As a last resort, use the slow shell script.  We don't cache a
5853    # path for INSTALL within a source directory, because that will
5854    # break other packages using the cache if that directory is
5855    # removed, or if the path is relative.
5856    INSTALL=$ac_install_sh
5857  fi
5858fi
5859echo "$as_me:$LINENO: result: $INSTALL" >&5
5860echo "${ECHO_T}$INSTALL" >&6
5861
5862# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5863# It thinks the first close brace ends the variable substitution.
5864test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5865
5866test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5867
5868test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5869
5870echo "$as_me:$LINENO: checking whether build environment is sane" >&5
5871echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
5872# Just in case
5873sleep 1
5874echo timestamp > conftest.file
5875# Do `set' in a subshell so we don't clobber the current shell's
5876# arguments.  Must try -L first in case configure is actually a
5877# symlink; some systems play weird games with the mod time of symlinks
5878# (eg FreeBSD returns the mod time of the symlink's containing
5879# directory).
5880if (
5881   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
5882   if test "$*" = "X"; then
5883      # -L didn't work.
5884      set X `ls -t $srcdir/configure conftest.file`
5885   fi
5886   rm -f conftest.file
5887   if test "$*" != "X $srcdir/configure conftest.file" \
5888      && test "$*" != "X conftest.file $srcdir/configure"; then
5889
5890      # If neither matched, then we have a broken ls.  This can happen
5891      # if, for instance, CONFIG_SHELL is bash and it inherits a
5892      # broken ls alias from the environment.  This has actually
5893      # happened.  Such a system could not be considered "sane".
5894      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
5895alias in your environment" >&5
5896echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
5897alias in your environment" >&2;}
5898   { (exit 1); exit 1; }; }
5899   fi
5900
5901   test "$2" = conftest.file
5902   )
5903then
5904   # Ok.
5905   :
5906else
5907   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
5908Check your system clock" >&5
5909echo "$as_me: error: newly created file is older than distributed files!
5910Check your system clock" >&2;}
5911   { (exit 1); exit 1; }; }
5912fi
5913echo "$as_me:$LINENO: result: yes" >&5
5914echo "${ECHO_T}yes" >&6
5915test "$program_prefix" != NONE &&
5916  program_transform_name="s,^,$program_prefix,;$program_transform_name"
5917# Use a double $ so make ignores it.
5918test "$program_suffix" != NONE &&
5919  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
5920# Double any \ or $.  echo might interpret backslashes.
5921# By default was `s,x,x', remove it if useless.
5922cat <<\_ACEOF >conftest.sed
5923s/[\\$]/&&/g;s/;s,x,x,$//
5924_ACEOF
5925program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
5926rm conftest.sed
5927
5928# expand $ac_aux_dir to an absolute path
5929am_aux_dir=`cd $ac_aux_dir && pwd`
5930
5931test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
5932# Use eval to expand $SHELL
5933if eval "$MISSING --run true"; then
5934  am_missing_run="$MISSING --run "
5935else
5936  am_missing_run=
5937  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
5938echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5939fi
5940
5941if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
5942  # We used to keeping the `.' as first argument, in order to
5943  # allow $(mkdir_p) to be used without argument.  As in
5944  #   $(mkdir_p) $(somedir)
5945  # where $(somedir) is conditionally defined.  However this is wrong
5946  # for two reasons:
5947  #  1. if the package is installed by a user who cannot write `.'
5948  #     make install will fail,
5949  #  2. the above comment should most certainly read
5950  #     $(mkdir_p) $(DESTDIR)$(somedir)
5951  #     so it does not work when $(somedir) is undefined and
5952  #     $(DESTDIR) is not.
5953  #  To support the latter case, we have to write
5954  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
5955  #  so the `.' trick is pointless.
5956  mkdir_p='mkdir -p --'
5957else
5958  # On NextStep and OpenStep, the `mkdir' command does not
5959  # recognize any option.  It will interpret all options as
5960  # directories to create, and then abort because `.' already
5961  # exists.
5962  for d in ./-p ./--version;
5963  do
5964    test -d $d && rmdir $d
5965  done
5966  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
5967  if test -f "$ac_aux_dir/mkinstalldirs"; then
5968    mkdir_p='$(mkinstalldirs)'
5969  else
5970    mkdir_p='$(install_sh) -d'
5971  fi
5972fi
5973
5974for ac_prog in gawk mawk nawk awk
5975do
5976  # Extract the first word of "$ac_prog", so it can be a program name with args.
5977set dummy $ac_prog; ac_word=$2
5978echo "$as_me:$LINENO: checking for $ac_word" >&5
5979echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5980if test "${ac_cv_prog_AWK+set}" = set; then
5981  echo $ECHO_N "(cached) $ECHO_C" >&6
5982else
5983  if test -n "$AWK"; then
5984  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5985else
5986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5987for as_dir in $PATH
5988do
5989  IFS=$as_save_IFS
5990  test -z "$as_dir" && as_dir=.
5991  for ac_exec_ext in '' $ac_executable_extensions; do
5992  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5993    ac_cv_prog_AWK="$ac_prog"
5994    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5995    break 2
5996  fi
5997done
5998done
5999
6000fi
6001fi
6002AWK=$ac_cv_prog_AWK
6003if test -n "$AWK"; then
6004  echo "$as_me:$LINENO: result: $AWK" >&5
6005echo "${ECHO_T}$AWK" >&6
6006else
6007  echo "$as_me:$LINENO: result: no" >&5
6008echo "${ECHO_T}no" >&6
6009fi
6010
6011  test -n "$AWK" && break
6012done
6013
6014echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6015echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6016set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
6017if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6018  echo $ECHO_N "(cached) $ECHO_C" >&6
6019else
6020  cat >conftest.make <<\_ACEOF
6021all:
6022	@echo 'ac_maketemp="$(MAKE)"'
6023_ACEOF
6024# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6025eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6026if test -n "$ac_maketemp"; then
6027  eval ac_cv_prog_make_${ac_make}_set=yes
6028else
6029  eval ac_cv_prog_make_${ac_make}_set=no
6030fi
6031rm -f conftest.make
6032fi
6033if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6034  echo "$as_me:$LINENO: result: yes" >&5
6035echo "${ECHO_T}yes" >&6
6036  SET_MAKE=
6037else
6038  echo "$as_me:$LINENO: result: no" >&5
6039echo "${ECHO_T}no" >&6
6040  SET_MAKE="MAKE=${MAKE-make}"
6041fi
6042
6043rm -rf .tst 2>/dev/null
6044mkdir .tst 2>/dev/null
6045if test -d .tst; then
6046  am__leading_dot=.
6047else
6048  am__leading_dot=_
6049fi
6050rmdir .tst 2>/dev/null
6051
6052DEPDIR="${am__leading_dot}deps"
6053
6054          ac_config_commands="$ac_config_commands depfiles"
6055
6056
6057am_make=${MAKE-make}
6058cat > confinc << 'END'
6059am__doit:
6060	@echo done
6061.PHONY: am__doit
6062END
6063# If we don't find an include directive, just comment out the code.
6064echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
6065echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
6066am__include="#"
6067am__quote=
6068_am_result=none
6069# First try GNU make style include.
6070echo "include confinc" > confmf
6071# We grep out `Entering directory' and `Leaving directory'
6072# messages which can occur if `w' ends up in MAKEFLAGS.
6073# In particular we don't look at `^make:' because GNU make might
6074# be invoked under some other name (usually "gmake"), in which
6075# case it prints its new name instead of `make'.
6076if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
6077   am__include=include
6078   am__quote=
6079   _am_result=GNU
6080fi
6081# Now try BSD make style include.
6082if test "$am__include" = "#"; then
6083   echo '.include "confinc"' > confmf
6084   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
6085      am__include=.include
6086      am__quote="\""
6087      _am_result=BSD
6088   fi
6089fi
6090
6091
6092echo "$as_me:$LINENO: result: $_am_result" >&5
6093echo "${ECHO_T}$_am_result" >&6
6094rm -f confinc confmf
6095
6096# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
6097if test "${enable_dependency_tracking+set}" = set; then
6098  enableval="$enable_dependency_tracking"
6099
6100fi;
6101if test "x$enable_dependency_tracking" != xno; then
6102  am_depcomp="$ac_aux_dir/depcomp"
6103  AMDEPBACKSLASH='\'
6104fi
6105
6106
6107if test "x$enable_dependency_tracking" != xno; then
6108  AMDEP_TRUE=
6109  AMDEP_FALSE='#'
6110else
6111  AMDEP_TRUE='#'
6112  AMDEP_FALSE=
6113fi
6114
6115
6116
6117
6118
6119
6120# AC_MSG_NOTICE([Beginning automake initialisation.])
6121# Stuff for automake
6122# test to see if srcdir already configured
6123if test "`cd $srcdir && pwd`" != "`pwd`" &&
6124   test -f $srcdir/config.status; then
6125  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
6126echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
6127   { (exit 1); exit 1; }; }
6128fi
6129
6130# test whether we have cygpath
6131if test -z "$CYGPATH_W"; then
6132  if (cygpath --version) >/dev/null 2>/dev/null; then
6133    CYGPATH_W='cygpath -w'
6134  else
6135    CYGPATH_W=echo
6136  fi
6137fi
6138
6139
6140# Define the identity of the package.
6141 PACKAGE='coinutils'
6142 VERSION='2.11.2'
6143
6144
6145cat >>confdefs.h <<_ACEOF
6146#define PACKAGE "$PACKAGE"
6147_ACEOF
6148
6149
6150cat >>confdefs.h <<_ACEOF
6151#define VERSION "$VERSION"
6152_ACEOF
6153
6154# Some tools Automake needs.
6155
6156ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
6157
6158
6159AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6160
6161
6162AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
6163
6164
6165AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6166
6167
6168MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6169
6170install_sh=${install_sh-"$am_aux_dir/install-sh"}
6171
6172# Installed binaries are usually stripped using `strip' when the user
6173# run `make install-strip'.  However `strip' might not be the right
6174# tool to use in cross-compilation environments, therefore Automake
6175# will honor the `STRIP' environment variable to overrule this program.
6176if test "$cross_compiling" != no; then
6177  if test -n "$ac_tool_prefix"; then
6178  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6179set dummy ${ac_tool_prefix}strip; ac_word=$2
6180echo "$as_me:$LINENO: checking for $ac_word" >&5
6181echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6182if test "${ac_cv_prog_STRIP+set}" = set; then
6183  echo $ECHO_N "(cached) $ECHO_C" >&6
6184else
6185  if test -n "$STRIP"; then
6186  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6187else
6188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6189for as_dir in $PATH
6190do
6191  IFS=$as_save_IFS
6192  test -z "$as_dir" && as_dir=.
6193  for ac_exec_ext in '' $ac_executable_extensions; do
6194  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6195    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6196    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6197    break 2
6198  fi
6199done
6200done
6201
6202fi
6203fi
6204STRIP=$ac_cv_prog_STRIP
6205if test -n "$STRIP"; then
6206  echo "$as_me:$LINENO: result: $STRIP" >&5
6207echo "${ECHO_T}$STRIP" >&6
6208else
6209  echo "$as_me:$LINENO: result: no" >&5
6210echo "${ECHO_T}no" >&6
6211fi
6212
6213fi
6214if test -z "$ac_cv_prog_STRIP"; then
6215  ac_ct_STRIP=$STRIP
6216  # Extract the first word of "strip", so it can be a program name with args.
6217set dummy strip; ac_word=$2
6218echo "$as_me:$LINENO: checking for $ac_word" >&5
6219echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6220if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6221  echo $ECHO_N "(cached) $ECHO_C" >&6
6222else
6223  if test -n "$ac_ct_STRIP"; then
6224  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6225else
6226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6227for as_dir in $PATH
6228do
6229  IFS=$as_save_IFS
6230  test -z "$as_dir" && as_dir=.
6231  for ac_exec_ext in '' $ac_executable_extensions; do
6232  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6233    ac_cv_prog_ac_ct_STRIP="strip"
6234    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6235    break 2
6236  fi
6237done
6238done
6239
6240  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6241fi
6242fi
6243ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6244if test -n "$ac_ct_STRIP"; then
6245  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6246echo "${ECHO_T}$ac_ct_STRIP" >&6
6247else
6248  echo "$as_me:$LINENO: result: no" >&5
6249echo "${ECHO_T}no" >&6
6250fi
6251
6252  STRIP=$ac_ct_STRIP
6253else
6254  STRIP="$ac_cv_prog_STRIP"
6255fi
6256
6257fi
6258INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
6259
6260# We need awk for the "check" target.  The system "awk" is bad on
6261# some platforms.
6262# Always define AMTAR for backward compatibility.
6263
6264AMTAR=${AMTAR-"${am_missing_run}tar"}
6265
6266am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
6267
6268
6269
6270
6271depcc="$CC"   am_compiler_list=
6272
6273echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6274echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6275if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
6276  echo $ECHO_N "(cached) $ECHO_C" >&6
6277else
6278  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6279  # We make a subdir and do the tests there.  Otherwise we can end up
6280  # making bogus files that we don't know about and never remove.  For
6281  # instance it was reported that on HP-UX the gcc test will end up
6282  # making a dummy file named `D' -- because `-MD' means `put the output
6283  # in D'.
6284  mkdir conftest.dir
6285  # Copy depcomp to subdir because otherwise we won't find it if we're
6286  # using a relative directory.
6287  cp "$am_depcomp" conftest.dir
6288  cd conftest.dir
6289  # We will build objects and dependencies in a subdirectory because
6290  # it helps to detect inapplicable dependency modes.  For instance
6291  # both Tru64's cc and ICC support -MD to output dependencies as a
6292  # side effect of compilation, but ICC will put the dependencies in
6293  # the current directory while Tru64 will put them in the object
6294  # directory.
6295  mkdir sub
6296
6297  am_cv_CC_dependencies_compiler_type=none
6298  if test "$am_compiler_list" = ""; then
6299     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6300  fi
6301  for depmode in $am_compiler_list; do
6302    # Setup a source with many dependencies, because some compilers
6303    # like to wrap large dependency lists on column 80 (with \), and
6304    # we should not choose a depcomp mode which is confused by this.
6305    #
6306    # We need to recreate these files for each test, as the compiler may
6307    # overwrite some of them when testing with obscure command lines.
6308    # This happens at least with the AIX C compiler.
6309    : > sub/conftest.c
6310    for i in 1 2 3 4 5 6; do
6311      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6312      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6313      # Solaris 8's {/usr,}/bin/sh.
6314      touch sub/conftst$i.h
6315    done
6316    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6317
6318    case $depmode in
6319    nosideeffect)
6320      # after this tag, mechanisms are not by side-effect, so they'll
6321      # only be used when explicitly requested
6322      if test "x$enable_dependency_tracking" = xyes; then
6323	continue
6324      else
6325	break
6326      fi
6327      ;;
6328    none) break ;;
6329    esac
6330    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6331    # mode.  It turns out that the SunPro C++ compiler does not properly
6332    # handle `-M -o', and we need to detect this.
6333    if depmode=$depmode \
6334       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6335       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6336       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6337         >/dev/null 2>conftest.err &&
6338       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6339       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6340       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6341      # icc doesn't choke on unknown options, it will just issue warnings
6342      # or remarks (even with -Werror).  So we grep stderr for any message
6343      # that says an option was ignored or not supported.
6344      # When given -MP, icc 7.0 and 7.1 complain thusly:
6345      #   icc: Command line warning: ignoring option '-M'; no argument required
6346      # The diagnosis changed in icc 8.0:
6347      #   icc: Command line remark: option '-MP' not supported
6348      if (grep 'ignoring option' conftest.err ||
6349          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6350        am_cv_CC_dependencies_compiler_type=$depmode
6351        break
6352      fi
6353    fi
6354  done
6355
6356  cd ..
6357  rm -rf conftest.dir
6358else
6359  am_cv_CC_dependencies_compiler_type=none
6360fi
6361
6362fi
6363echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
6364echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
6365CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6366
6367
6368
6369if
6370  test "x$enable_dependency_tracking" != xno \
6371  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6372  am__fastdepCC_TRUE=
6373  am__fastdepCC_FALSE='#'
6374else
6375  am__fastdepCC_TRUE='#'
6376  am__fastdepCC_FALSE=
6377fi
6378
6379
6380depcc="$CXX"  am_compiler_list=
6381
6382echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6383echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6384if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6385  echo $ECHO_N "(cached) $ECHO_C" >&6
6386else
6387  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6388  # We make a subdir and do the tests there.  Otherwise we can end up
6389  # making bogus files that we don't know about and never remove.  For
6390  # instance it was reported that on HP-UX the gcc test will end up
6391  # making a dummy file named `D' -- because `-MD' means `put the output
6392  # in D'.
6393  mkdir conftest.dir
6394  # Copy depcomp to subdir because otherwise we won't find it if we're
6395  # using a relative directory.
6396  cp "$am_depcomp" conftest.dir
6397  cd conftest.dir
6398  # We will build objects and dependencies in a subdirectory because
6399  # it helps to detect inapplicable dependency modes.  For instance
6400  # both Tru64's cc and ICC support -MD to output dependencies as a
6401  # side effect of compilation, but ICC will put the dependencies in
6402  # the current directory while Tru64 will put them in the object
6403  # directory.
6404  mkdir sub
6405
6406  am_cv_CXX_dependencies_compiler_type=none
6407  if test "$am_compiler_list" = ""; then
6408     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6409  fi
6410  for depmode in $am_compiler_list; do
6411    # Setup a source with many dependencies, because some compilers
6412    # like to wrap large dependency lists on column 80 (with \), and
6413    # we should not choose a depcomp mode which is confused by this.
6414    #
6415    # We need to recreate these files for each test, as the compiler may
6416    # overwrite some of them when testing with obscure command lines.
6417    # This happens at least with the AIX C compiler.
6418    : > sub/conftest.c
6419    for i in 1 2 3 4 5 6; do
6420      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6421      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6422      # Solaris 8's {/usr,}/bin/sh.
6423      touch sub/conftst$i.h
6424    done
6425    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6426
6427    case $depmode in
6428    nosideeffect)
6429      # after this tag, mechanisms are not by side-effect, so they'll
6430      # only be used when explicitly requested
6431      if test "x$enable_dependency_tracking" = xyes; then
6432	continue
6433      else
6434	break
6435      fi
6436      ;;
6437    none) break ;;
6438    esac
6439    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6440    # mode.  It turns out that the SunPro C++ compiler does not properly
6441    # handle `-M -o', and we need to detect this.
6442    if depmode=$depmode \
6443       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6444       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6445       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6446         >/dev/null 2>conftest.err &&
6447       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6448       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6449       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6450      # icc doesn't choke on unknown options, it will just issue warnings
6451      # or remarks (even with -Werror).  So we grep stderr for any message
6452      # that says an option was ignored or not supported.
6453      # When given -MP, icc 7.0 and 7.1 complain thusly:
6454      #   icc: Command line warning: ignoring option '-M'; no argument required
6455      # The diagnosis changed in icc 8.0:
6456      #   icc: Command line remark: option '-MP' not supported
6457      if (grep 'ignoring option' conftest.err ||
6458          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6459        am_cv_CXX_dependencies_compiler_type=$depmode
6460        break
6461      fi
6462    fi
6463  done
6464
6465  cd ..
6466  rm -rf conftest.dir
6467else
6468  am_cv_CXX_dependencies_compiler_type=none
6469fi
6470
6471fi
6472echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6473echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
6474CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6475
6476
6477
6478if
6479  test "x$enable_dependency_tracking" != xno \
6480  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6481  am__fastdepCXX_TRUE=
6482  am__fastdepCXX_FALSE='#'
6483else
6484  am__fastdepCXX_TRUE='#'
6485  am__fastdepCXX_FALSE=
6486fi
6487
6488
6489
6490echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
6491echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
6492    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
6493if test "${enable_maintainer_mode+set}" = set; then
6494  enableval="$enable_maintainer_mode"
6495  USE_MAINTAINER_MODE=$enableval
6496else
6497  USE_MAINTAINER_MODE=no
6498fi;
6499  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
6500echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
6501
6502
6503if test $USE_MAINTAINER_MODE = yes; then
6504  MAINTAINER_MODE_TRUE=
6505  MAINTAINER_MODE_FALSE='#'
6506else
6507  MAINTAINER_MODE_TRUE='#'
6508  MAINTAINER_MODE_FALSE=
6509fi
6510
6511  MAINT=$MAINTAINER_MODE_TRUE
6512
6513
6514
6515coin_have_externals=no
6516if test "$enable_maintainer_mode" = yes; then
6517
6518  # If maintainer mode is chosen, we make sure that the correct versions
6519  # of the tools are used, and that we know where libtool.m4 is (to
6520  # recreate acinclude.m4)
6521
6522
6523  LIBTOOLM4=
6524  # Normally, $HOME
6525  AUTOTOOLS_DFLT=$HOME
6526
6527  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
6528echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
6529if test "${ac_cv_use_correct_autotools+set}" = set; then
6530  echo $ECHO_N "(cached) $ECHO_C" >&6
6531else
6532  ac_cv_use_correct_autotools=check
6533fi
6534echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
6535echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
6536
6537  if test $ac_cv_use_correct_autotools = check; then
6538    ac_cv_use_correct_autotools=yes
6539    # Check if we have autoconf
6540    # Extract the first word of "autoconf", so it can be a program name with args.
6541set dummy autoconf; ac_word=$2
6542echo "$as_me:$LINENO: checking for $ac_word" >&5
6543echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6544if test "${ac_cv_prog_have_autoconf+set}" = set; then
6545  echo $ECHO_N "(cached) $ECHO_C" >&6
6546else
6547  if test -n "$have_autoconf"; then
6548  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
6549else
6550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6551for as_dir in $PATH
6552do
6553  IFS=$as_save_IFS
6554  test -z "$as_dir" && as_dir=.
6555  for ac_exec_ext in '' $ac_executable_extensions; do
6556  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6557    ac_cv_prog_have_autoconf="yes"
6558    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6559    break 2
6560  fi
6561done
6562done
6563
6564  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
6565fi
6566fi
6567have_autoconf=$ac_cv_prog_have_autoconf
6568if test -n "$have_autoconf"; then
6569  echo "$as_me:$LINENO: result: $have_autoconf" >&5
6570echo "${ECHO_T}$have_autoconf" >&6
6571else
6572  echo "$as_me:$LINENO: result: no" >&5
6573echo "${ECHO_T}no" >&6
6574fi
6575
6576    if test $have_autoconf = no; then
6577      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
6578echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
6579   { (exit 1); exit 1; }; }
6580    fi
6581
6582    # Check whether autoconf is the correct version
6583    correct_version='2.59'
6584    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6585    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
6586echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
6587    autoconf --version > confauto.out 2>&1
6588    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
6589      echo "$as_me:$LINENO: result: yes" >&5
6590echo "${ECHO_T}yes" >&6
6591    else
6592      rm -f confauto.out
6593      echo "$as_me:$LINENO: result: no" >&5
6594echo "${ECHO_T}no" >&6
6595      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
6596echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
6597   { (exit 1); exit 1; }; }
6598    fi
6599    rm -f confauto.out
6600
6601    # Check if the executable autoconf is picked up from the correct location
6602    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
6603echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
6604    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
6605    autoconf_dir=`cd $autoconf_dir; pwd`
6606    if test x$AUTOTOOLS_DIR = x; then
6607      want_dir=$AUTOTOOLS_DFLT/bin
6608    else
6609      want_dir=$AUTOTOOLS_DIR/bin
6610    fi
6611    if test $autoconf_dir = `cd $want_dir; pwd`; then
6612      echo "$as_me:$LINENO: result: yes" >&5
6613echo "${ECHO_T}yes" >&6
6614    else
6615      rm -f confauto.out
6616      echo "$as_me:$LINENO: result: no" >&5
6617echo "${ECHO_T}no" >&6
6618      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
6619echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
6620   { (exit 1); exit 1; }; }
6621    fi
6622
6623    # Check if we have automake
6624    # Extract the first word of "automake", so it can be a program name with args.
6625set dummy automake; ac_word=$2
6626echo "$as_me:$LINENO: checking for $ac_word" >&5
6627echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6628if test "${ac_cv_prog_have_automake+set}" = set; then
6629  echo $ECHO_N "(cached) $ECHO_C" >&6
6630else
6631  if test -n "$have_automake"; then
6632  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
6633else
6634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6635for as_dir in $PATH
6636do
6637  IFS=$as_save_IFS
6638  test -z "$as_dir" && as_dir=.
6639  for ac_exec_ext in '' $ac_executable_extensions; do
6640  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6641    ac_cv_prog_have_automake="yes"
6642    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6643    break 2
6644  fi
6645done
6646done
6647
6648  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
6649fi
6650fi
6651have_automake=$ac_cv_prog_have_automake
6652if test -n "$have_automake"; then
6653  echo "$as_me:$LINENO: result: $have_automake" >&5
6654echo "${ECHO_T}$have_automake" >&6
6655else
6656  echo "$as_me:$LINENO: result: no" >&5
6657echo "${ECHO_T}no" >&6
6658fi
6659
6660    if test $have_automake = no; then
6661      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
6662echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
6663   { (exit 1); exit 1; }; }
6664    fi
6665
6666    # Check whether automake is the correct version
6667    correct_version='1.9.6'
6668    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6669    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
6670echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
6671    automake --version > confauto.out 2>&1
6672    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
6673      echo "$as_me:$LINENO: result: yes" >&5
6674echo "${ECHO_T}yes" >&6
6675    else
6676      rm -f confauto.out
6677      echo "$as_me:$LINENO: result: no" >&5
6678echo "${ECHO_T}no" >&6
6679      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
6680echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
6681   { (exit 1); exit 1; }; }
6682    fi
6683    rm -f confauto.out
6684
6685    # Check if the executable automake is picked up from the correct location
6686    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
6687echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
6688    automake_dir=`which automake | sed -e 's=/automake=='`
6689    automake_dir=`cd $automake_dir; pwd`
6690    if test x$AUTOTOOLS_DIR = x; then
6691      want_dir=$AUTOTOOLS_DFLT/bin
6692    else
6693      want_dir=$AUTOTOOLS_DIR/bin
6694    fi
6695    if test $automake_dir = `cd $want_dir; pwd`; then
6696      echo "$as_me:$LINENO: result: yes" >&5
6697echo "${ECHO_T}yes" >&6
6698    else
6699      rm -f confauto.out
6700      echo "$as_me:$LINENO: result: no" >&5
6701echo "${ECHO_T}no" >&6
6702      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
6703echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
6704   { (exit 1); exit 1; }; }
6705    fi
6706
6707    # Check if this is the correct version of libtool (with escaped dots)
6708    if test x$AUTOTOOLS_DIR = x; then
6709      want_dir=$AUTOTOOLS_DFLT/share
6710    else
6711      want_dir=$AUTOTOOLS_DIR/share
6712    fi
6713    correct_version='1.5.22'
6714    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6715    if test -r $want_dir/libtool/ltmain.sh; then
6716  have_ltmain=yes
6717  :
6718else
6719  have_ltmain=no
6720  :
6721fi
6722
6723    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
6724echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
6725    if test $have_ltmain = yes; then
6726    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
6727        echo "$as_me:$LINENO: result: yes" >&5
6728echo "${ECHO_T}yes" >&6
6729      else
6730        echo "$as_me:$LINENO: result: no" >&5
6731echo "${ECHO_T}no" >&6
6732        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
6733echo "$as_me: error: You don't have the correct version of libtool." >&2;}
6734   { (exit 1); exit 1; }; }
6735      fi
6736    else
6737      echo "$as_me:$LINENO: result: no" >&5
6738echo "${ECHO_T}no" >&6
6739      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
6740echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
6741   { (exit 1); exit 1; }; }
6742    fi
6743  fi
6744
6745  # Check if we can find the libtool file
6746  if test x$AUTOTOOLS_DIR = x; then
6747    want_dir=$AUTOTOOLS_DFLT/share
6748  else
6749    want_dir=$AUTOTOOLS_DIR/share
6750  fi
6751  if test -r $want_dir/aclocal/libtool.m4; then
6752  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
6753  :
6754else
6755  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
6756echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
6757   { (exit 1); exit 1; }; }
6758  :
6759fi
6760
6761
6762  # Check if we have an Dependencies file
6763  if test -r $srcdir/Dependencies; then
6764    coin_have_externals=yes
6765  fi
6766  # Check if subversion is installed and understands https
6767  # Extract the first word of "svn", so it can be a program name with args.
6768set dummy svn; ac_word=$2
6769echo "$as_me:$LINENO: checking for $ac_word" >&5
6770echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6771if test "${ac_cv_prog_have_svn+set}" = set; then
6772  echo $ECHO_N "(cached) $ECHO_C" >&6
6773else
6774  if test -n "$have_svn"; then
6775  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
6776else
6777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6778for as_dir in $PATH
6779do
6780  IFS=$as_save_IFS
6781  test -z "$as_dir" && as_dir=.
6782  for ac_exec_ext in '' $ac_executable_extensions; do
6783  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6784    ac_cv_prog_have_svn="yes"
6785    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6786    break 2
6787  fi
6788done
6789done
6790
6791  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
6792fi
6793fi
6794have_svn=$ac_cv_prog_have_svn
6795if test -n "$have_svn"; then
6796  echo "$as_me:$LINENO: result: $have_svn" >&5
6797echo "${ECHO_T}$have_svn" >&6
6798else
6799  echo "$as_me:$LINENO: result: no" >&5
6800echo "${ECHO_T}no" >&6
6801fi
6802
6803  if test x$have_svn = xyes; then
6804    echo "$as_me:$LINENO: checking whether svn understands https" >&5
6805echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
6806if test "${ac_cv_svn_understands_https+set}" = set; then
6807  echo $ECHO_N "(cached) $ECHO_C" >&6
6808else
6809  svn --version > confauto.out 2>&1
6810                    if $EGREP https confauto.out >/dev/null 2>&1; then
6811                      ac_cv_svn_understands_https=yes
6812                    else
6813                      ac_cv_svn_understands_https=no
6814                      have_svn=no
6815                      ac_cv_prog_have_svn=no
6816                    fi
6817                    rm -f confauto.out
6818fi
6819echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
6820echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
6821  fi
6822
6823  # Find the location of the BuildTools directory
6824  BUILDTOOLSDIR=
6825  if test -r $srcdir/BuildTools/coin.m4; then
6826    BUILDTOOLSDIR=$srcdir/BuildTools
6827  else
6828    if test -r $srcdir/../BuildTools/coin.m4; then
6829      BUILDTOOLSDIR=$srcdir/../BuildTools
6830    else
6831      if test -r $srcdir/../../BuildTools/coin.m4; then
6832        BUILDTOOLSDIR=$srcdir/../../BuildTools
6833      else
6834        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
6835echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
6836   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
6837      fi
6838    fi
6839  fi
6840
6841
6842  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
6843  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
6844    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
6845  fi
6846
6847  # The following variable is set to the name of the directory where
6848  # the autotool scripts are located
6849
6850  AUX_DIR=$ac_aux_dir
6851fi
6852
6853# helpful variable for the base directory of this package
6854abs_source_dir=`cd $srcdir; pwd`
6855
6856
6857# Stuff for example Makefiles
6858if test x$prefix = xNONE; then
6859  full_prefix=$ac_default_prefix
6860else
6861  full_prefix=$prefix
6862fi
6863full_prefix=`cd $full_prefix ; pwd`
6864
6865abs_lib_dir=$full_prefix/lib
6866
6867abs_include_dir=$full_prefix/include
6868
6869abs_bin_dir=$full_prefix/bin
6870
6871
6872
6873if test $coin_have_externals = yes && test x$have_svn = xyes; then
6874  HAVE_EXTERNALS_TRUE=
6875  HAVE_EXTERNALS_FALSE='#'
6876else
6877  HAVE_EXTERNALS_TRUE='#'
6878  HAVE_EXTERNALS_FALSE=
6879fi
6880
6881
6882# AC_MSG_NOTICE([End automake initialisation.])
6883
6884
6885
6886LIBTOOL=
6887if test -f ../libtool; then
6888  coin_config_dir=..
6889  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
6890fi
6891if test "x$LIBTOOL" = x; then
6892  if test -f ../../libtool; then
6893    coin_config_dir=../..
6894    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
6895  fi
6896fi
6897
6898if test "x$LIBTOOL" = x; then
6899# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
6900  # Stuff for libtool
6901  # Check whether --enable-shared or --disable-shared was given.
6902if test "${enable_shared+set}" = set; then
6903  enableval="$enable_shared"
6904  p=${PACKAGE-default}
6905    case $enableval in
6906    yes) enable_shared=yes ;;
6907    no) enable_shared=no ;;
6908    *)
6909      enable_shared=no
6910      # Look at the argument we got.  We use all the common list separators.
6911      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6912      for pkg in $enableval; do
6913	IFS="$lt_save_ifs"
6914	if test "X$pkg" = "X$p"; then
6915	  enable_shared=yes
6916	fi
6917      done
6918      IFS="$lt_save_ifs"
6919      ;;
6920    esac
6921else
6922  enable_shared=yes
6923fi;
6924
6925# Check whether --enable-fast-install or --disable-fast-install was given.
6926if test "${enable_fast_install+set}" = set; then
6927  enableval="$enable_fast_install"
6928  p=${PACKAGE-default}
6929    case $enableval in
6930    yes) enable_fast_install=yes ;;
6931    no) enable_fast_install=no ;;
6932    *)
6933      enable_fast_install=no
6934      # Look at the argument we got.  We use all the common list separators.
6935      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6936      for pkg in $enableval; do
6937	IFS="$lt_save_ifs"
6938	if test "X$pkg" = "X$p"; then
6939	  enable_fast_install=yes
6940	fi
6941      done
6942      IFS="$lt_save_ifs"
6943      ;;
6944    esac
6945else
6946  enable_fast_install=yes
6947fi;
6948
6949echo "$as_me:$LINENO: checking host system type" >&5
6950echo $ECHO_N "checking host system type... $ECHO_C" >&6
6951if test "${ac_cv_host+set}" = set; then
6952  echo $ECHO_N "(cached) $ECHO_C" >&6
6953else
6954  ac_cv_host_alias=$host_alias
6955test -z "$ac_cv_host_alias" &&
6956  ac_cv_host_alias=$ac_cv_build_alias
6957ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
6958  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6959echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6960   { (exit 1); exit 1; }; }
6961
6962fi
6963echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6964echo "${ECHO_T}$ac_cv_host" >&6
6965host=$ac_cv_host
6966host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6967host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6968host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6969
6970
6971echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6972echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
6973if test "${lt_cv_path_SED+set}" = set; then
6974  echo $ECHO_N "(cached) $ECHO_C" >&6
6975else
6976  # Loop through the user's path and test for sed and gsed.
6977# Then use that list of sed's as ones to test for truncation.
6978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6979for as_dir in $PATH
6980do
6981  IFS=$as_save_IFS
6982  test -z "$as_dir" && as_dir=.
6983  for lt_ac_prog in sed gsed; do
6984    for ac_exec_ext in '' $ac_executable_extensions; do
6985      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6986        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6987      fi
6988    done
6989  done
6990done
6991lt_ac_max=0
6992lt_ac_count=0
6993# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6994# along with /bin/sed that truncates output.
6995for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6996  test ! -f $lt_ac_sed && continue
6997  cat /dev/null > conftest.in
6998  lt_ac_count=0
6999  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
7000  # Check for GNU sed and select it if it is found.
7001  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
7002    lt_cv_path_SED=$lt_ac_sed
7003    break
7004  fi
7005  while true; do
7006    cat conftest.in conftest.in >conftest.tmp
7007    mv conftest.tmp conftest.in
7008    cp conftest.in conftest.nl
7009    echo >>conftest.nl
7010    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
7011    cmp -s conftest.out conftest.nl || break
7012    # 10000 chars as input seems more than enough
7013    test $lt_ac_count -gt 10 && break
7014    lt_ac_count=`expr $lt_ac_count + 1`
7015    if test $lt_ac_count -gt $lt_ac_max; then
7016      lt_ac_max=$lt_ac_count
7017      lt_cv_path_SED=$lt_ac_sed
7018    fi
7019  done
7020done
7021
7022fi
7023
7024SED=$lt_cv_path_SED
7025echo "$as_me:$LINENO: result: $SED" >&5
7026echo "${ECHO_T}$SED" >&6
7027
7028
7029# Check whether --with-gnu-ld or --without-gnu-ld was given.
7030if test "${with_gnu_ld+set}" = set; then
7031  withval="$with_gnu_ld"
7032  test "$withval" = no || with_gnu_ld=yes
7033else
7034  with_gnu_ld=no
7035fi;
7036ac_prog=ld
7037if test "$GCC" = yes; then
7038  # Check if gcc -print-prog-name=ld gives a path.
7039  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
7040echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
7041  case $host in
7042  *-*-mingw*)
7043    # gcc leaves a trailing carriage return which upsets mingw
7044    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7045  *)
7046    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7047  esac
7048  case $ac_prog in
7049    # Accept absolute paths.
7050    [\\/]* | ?:[\\/]*)
7051      re_direlt='/[^/][^/]*/\.\./'
7052      # Canonicalize the pathname of ld
7053      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
7054      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7055	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
7056      done
7057      test -z "$LD" && LD="$ac_prog"
7058      ;;
7059  "")
7060    # If it fails, then pretend we aren't using GCC.
7061    ac_prog=ld
7062    ;;
7063  *)
7064    # If it is relative, then search for the first ld in PATH.
7065    with_gnu_ld=unknown
7066    ;;
7067  esac
7068elif test "$with_gnu_ld" = yes; then
7069  echo "$as_me:$LINENO: checking for GNU ld" >&5
7070echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
7071else
7072  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7073echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
7074fi
7075if test "${lt_cv_path_LD+set}" = set; then
7076  echo $ECHO_N "(cached) $ECHO_C" >&6
7077else
7078  if test -z "$LD"; then
7079  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7080  for ac_dir in $PATH; do
7081    IFS="$lt_save_ifs"
7082    test -z "$ac_dir" && ac_dir=.
7083    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7084      lt_cv_path_LD="$ac_dir/$ac_prog"
7085      # Check to see if the program is GNU ld.  I'd rather use --version,
7086      # but apparently some variants of GNU ld only accept -v.
7087      # Break only if it was the GNU/non-GNU ld that we prefer.
7088      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7089      *GNU* | *'with BFD'*)
7090	test "$with_gnu_ld" != no && break
7091	;;
7092      *)
7093	test "$with_gnu_ld" != yes && break
7094	;;
7095      esac
7096    fi
7097  done
7098  IFS="$lt_save_ifs"
7099else
7100  lt_cv_path_LD="$LD" # Let the user override the test with a path.
7101fi
7102fi
7103
7104LD="$lt_cv_path_LD"
7105if test -n "$LD"; then
7106  echo "$as_me:$LINENO: result: $LD" >&5
7107echo "${ECHO_T}$LD" >&6
7108else
7109  echo "$as_me:$LINENO: result: no" >&5
7110echo "${ECHO_T}no" >&6
7111fi
7112test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7113echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7114   { (exit 1); exit 1; }; }
7115echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7116echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
7117if test "${lt_cv_prog_gnu_ld+set}" = set; then
7118  echo $ECHO_N "(cached) $ECHO_C" >&6
7119else
7120  # I'd rather use --version here, but apparently some GNU lds only accept -v.
7121case `$LD -v 2>&1 </dev/null` in
7122*GNU* | *'with BFD'*)
7123  lt_cv_prog_gnu_ld=yes
7124  ;;
7125*)
7126  lt_cv_prog_gnu_ld=no
7127  ;;
7128esac
7129fi
7130echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
7131echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
7132with_gnu_ld=$lt_cv_prog_gnu_ld
7133
7134
7135echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
7136echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
7137if test "${lt_cv_ld_reload_flag+set}" = set; then
7138  echo $ECHO_N "(cached) $ECHO_C" >&6
7139else
7140  lt_cv_ld_reload_flag='-r'
7141fi
7142echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
7143echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
7144reload_flag=$lt_cv_ld_reload_flag
7145case $reload_flag in
7146"" | " "*) ;;
7147*) reload_flag=" $reload_flag" ;;
7148esac
7149reload_cmds='$LD$reload_flag -o $output$reload_objs'
7150case $host_os in
7151  darwin*)
7152    if test "$GCC" = yes; then
7153      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7154    else
7155      reload_cmds='$LD$reload_flag -o $output$reload_objs'
7156    fi
7157    ;;
7158esac
7159
7160echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7161echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7162if test "${lt_cv_path_NM+set}" = set; then
7163  echo $ECHO_N "(cached) $ECHO_C" >&6
7164else
7165  if test -n "$NM"; then
7166  # Let the user override the test.
7167  lt_cv_path_NM="$NM"
7168else
7169  lt_nm_to_check="${ac_tool_prefix}nm"
7170  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7171    lt_nm_to_check="$lt_nm_to_check nm"
7172  fi
7173  for lt_tmp_nm in $lt_nm_to_check; do
7174    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7175    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7176      IFS="$lt_save_ifs"
7177      test -z "$ac_dir" && ac_dir=.
7178      tmp_nm="$ac_dir/$lt_tmp_nm"
7179      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7180	# Check to see if the nm accepts a BSD-compat flag.
7181	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
7182	#   nm: unknown option "B" ignored
7183	# Tru64's nm complains that /dev/null is an invalid object file
7184	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7185	*/dev/null* | *'Invalid file or object type'*)
7186	  lt_cv_path_NM="$tmp_nm -B"
7187	  break
7188	  ;;
7189	*)
7190	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7191	  */dev/null*)
7192	    lt_cv_path_NM="$tmp_nm -p"
7193	    break
7194	    ;;
7195	  *)
7196	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7197	    continue # so that we can try to find one that supports BSD flags
7198	    ;;
7199	  esac
7200	  ;;
7201	esac
7202      fi
7203    done
7204    IFS="$lt_save_ifs"
7205  done
7206  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7207fi
7208fi
7209echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7210echo "${ECHO_T}$lt_cv_path_NM" >&6
7211NM="$lt_cv_path_NM"
7212
7213echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
7214echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
7215if test "${lt_cv_deplibs_check_method+set}" = set; then
7216  echo $ECHO_N "(cached) $ECHO_C" >&6
7217else
7218  lt_cv_file_magic_cmd='$MAGIC_CMD'
7219lt_cv_file_magic_test_file=
7220lt_cv_deplibs_check_method='unknown'
7221# Need to set the preceding variable on all platforms that support
7222# interlibrary dependencies.
7223# 'none' -- dependencies not supported.
7224# `unknown' -- same as none, but documents that we really don't know.
7225# 'pass_all' -- all dependencies passed with no checks.
7226# 'test_compile' -- check by making test program.
7227# 'file_magic [[regex]]' -- check by looking for files in library path
7228# which responds to the $file_magic_cmd with a given extended regex.
7229# If you have `file' or equivalent on your system and you're not sure
7230# whether `pass_all' will *always* work, you probably want this one.
7231
7232case $host_os in
7233aix4* | aix5*)
7234  lt_cv_deplibs_check_method=pass_all
7235  ;;
7236
7237beos*)
7238  lt_cv_deplibs_check_method=pass_all
7239  ;;
7240
7241bsdi[45]*)
7242  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7243  lt_cv_file_magic_cmd='/usr/bin/file -L'
7244  lt_cv_file_magic_test_file=/shlib/libc.so
7245  ;;
7246
7247cygwin*)
7248  # func_win32_libid is a shell function defined in ltmain.sh
7249  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7250  lt_cv_file_magic_cmd='func_win32_libid'
7251  ;;
7252
7253mingw* | pw32*)
7254  # Base MSYS/MinGW do not provide the 'file' command needed by
7255  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
7256  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7257  lt_cv_file_magic_cmd='$OBJDUMP -f'
7258  ;;
7259
7260darwin* | rhapsody*)
7261  lt_cv_deplibs_check_method=pass_all
7262  ;;
7263
7264freebsd* | kfreebsd*-gnu | dragonfly*)
7265  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7266    case $host_cpu in
7267    i*86 )
7268      # Not sure whether the presence of OpenBSD here was a mistake.
7269      # Let's accept both of them until this is cleared up.
7270      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7271      lt_cv_file_magic_cmd=/usr/bin/file
7272      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7273      ;;
7274    esac
7275  else
7276    lt_cv_deplibs_check_method=pass_all
7277  fi
7278  ;;
7279
7280gnu*)
7281  lt_cv_deplibs_check_method=pass_all
7282  ;;
7283
7284hpux10.20* | hpux11*)
7285  lt_cv_file_magic_cmd=/usr/bin/file
7286  case $host_cpu in
7287  ia64*)
7288    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7289    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7290    ;;
7291  hppa*64*)
7292    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]'
7293    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7294    ;;
7295  *)
7296    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7297    lt_cv_file_magic_test_file=/usr/lib/libc.sl
7298    ;;
7299  esac
7300  ;;
7301
7302interix3*)
7303  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7304  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7305  ;;
7306
7307irix5* | irix6* | nonstopux*)
7308  case $LD in
7309  *-32|*"-32 ") libmagic=32-bit;;
7310  *-n32|*"-n32 ") libmagic=N32;;
7311  *-64|*"-64 ") libmagic=64-bit;;
7312  *) libmagic=never-match;;
7313  esac
7314  lt_cv_deplibs_check_method=pass_all
7315  ;;
7316
7317# This must be Linux ELF.
7318linux*)
7319  lt_cv_deplibs_check_method=pass_all
7320  ;;
7321
7322netbsd*)
7323  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7324    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7325  else
7326    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7327  fi
7328  ;;
7329
7330newos6*)
7331  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7332  lt_cv_file_magic_cmd=/usr/bin/file
7333  lt_cv_file_magic_test_file=/usr/lib/libnls.so
7334  ;;
7335
7336nto-qnx*)
7337  lt_cv_deplibs_check_method=unknown
7338  ;;
7339
7340openbsd*)
7341  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7342    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7343  else
7344    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7345  fi
7346  ;;
7347
7348osf3* | osf4* | osf5*)
7349  lt_cv_deplibs_check_method=pass_all
7350  ;;
7351
7352solaris*)
7353  lt_cv_deplibs_check_method=pass_all
7354  ;;
7355
7356sysv4 | sysv4.3*)
7357  case $host_vendor in
7358  motorola)
7359    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]'
7360    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7361    ;;
7362  ncr)
7363    lt_cv_deplibs_check_method=pass_all
7364    ;;
7365  sequent)
7366    lt_cv_file_magic_cmd='/bin/file'
7367    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7368    ;;
7369  sni)
7370    lt_cv_file_magic_cmd='/bin/file'
7371    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7372    lt_cv_file_magic_test_file=/lib/libc.so
7373    ;;
7374  siemens)
7375    lt_cv_deplibs_check_method=pass_all
7376    ;;
7377  pc)
7378    lt_cv_deplibs_check_method=pass_all
7379    ;;
7380  esac
7381  ;;
7382
7383sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7384  lt_cv_deplibs_check_method=pass_all
7385  ;;
7386esac
7387
7388fi
7389echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
7390echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
7391file_magic_cmd=$lt_cv_file_magic_cmd
7392deplibs_check_method=$lt_cv_deplibs_check_method
7393test -z "$deplibs_check_method" && deplibs_check_method=unknown
7394
7395
7396
7397
7398# If no C compiler was specified, use CC.
7399LTCC=${LTCC-"$CC"}
7400
7401# If no C compiler flags were specified, use CFLAGS.
7402LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7403
7404# Allow CC to be a program name with arguments.
7405compiler=$CC
7406
7407# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7408if test "${enable_libtool_lock+set}" = set; then
7409  enableval="$enable_libtool_lock"
7410
7411fi;
7412test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7413
7414# Some flags need to be propagated to the compiler or linker for good
7415# libtool support.
7416case $host in
7417ia64-*-hpux*)
7418  # Find out which ABI we are using.
7419  echo 'int i;' > conftest.$ac_ext
7420  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7421  (eval $ac_compile) 2>&5
7422  ac_status=$?
7423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424  (exit $ac_status); }; then
7425    case `/usr/bin/file conftest.$ac_objext` in
7426    *ELF-32*)
7427      HPUX_IA64_MODE="32"
7428      ;;
7429    *ELF-64*)
7430      HPUX_IA64_MODE="64"
7431      ;;
7432    esac
7433  fi
7434  rm -rf conftest*
7435  ;;
7436*-*-irix6*)
7437  # Find out which ABI we are using.
7438  echo '#line 7438 "configure"' > conftest.$ac_ext
7439  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7440  (eval $ac_compile) 2>&5
7441  ac_status=$?
7442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7443  (exit $ac_status); }; then
7444   if test "$lt_cv_prog_gnu_ld" = yes; then
7445    case `/usr/bin/file conftest.$ac_objext` in
7446    *32-bit*)
7447      LD="${LD-ld} -melf32bsmip"
7448      ;;
7449    *N32*)
7450      LD="${LD-ld} -melf32bmipn32"
7451      ;;
7452    *64-bit*)
7453      LD="${LD-ld} -melf64bmip"
7454      ;;
7455    esac
7456   else
7457    case `/usr/bin/file conftest.$ac_objext` in
7458    *32-bit*)
7459      LD="${LD-ld} -32"
7460      ;;
7461    *N32*)
7462      LD="${LD-ld} -n32"
7463      ;;
7464    *64-bit*)
7465      LD="${LD-ld} -64"
7466      ;;
7467    esac
7468   fi
7469  fi
7470  rm -rf conftest*
7471  ;;
7472
7473x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
7474  # Find out which ABI we are using.
7475  echo 'int i;' > conftest.$ac_ext
7476  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7477  (eval $ac_compile) 2>&5
7478  ac_status=$?
7479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7480  (exit $ac_status); }; then
7481    case `/usr/bin/file conftest.o` in
7482    *32-bit*)
7483      case $host in
7484        x86_64-*linux*)
7485          LD="${LD-ld} -m elf_i386"
7486          ;;
7487        ppc64-*linux*|powerpc64-*linux*)
7488          LD="${LD-ld} -m elf32ppclinux"
7489          ;;
7490        s390x-*linux*)
7491          LD="${LD-ld} -m elf_s390"
7492          ;;
7493        sparc64-*linux*)
7494          LD="${LD-ld} -m elf32_sparc"
7495          ;;
7496      esac
7497      ;;
7498    *64-bit*)
7499      case $host in
7500        x86_64-*linux*)
7501          LD="${LD-ld} -m elf_x86_64"
7502          ;;
7503        ppc*-*linux*|powerpc*-*linux*)
7504          LD="${LD-ld} -m elf64ppc"
7505          ;;
7506        s390*-*linux*)
7507          LD="${LD-ld} -m elf64_s390"
7508          ;;
7509        sparc*-*linux*)
7510          LD="${LD-ld} -m elf64_sparc"
7511          ;;
7512      esac
7513      ;;
7514    esac
7515  fi
7516  rm -rf conftest*
7517  ;;
7518
7519*-*-sco3.2v5*)
7520  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7521  SAVE_CFLAGS="$CFLAGS"
7522  CFLAGS="$CFLAGS -belf"
7523  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7524echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
7525if test "${lt_cv_cc_needs_belf+set}" = set; then
7526  echo $ECHO_N "(cached) $ECHO_C" >&6
7527else
7528  ac_ext=c
7529ac_cpp='$CPP $CPPFLAGS'
7530ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7531ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7532ac_compiler_gnu=$ac_cv_c_compiler_gnu
7533
7534     cat >conftest.$ac_ext <<_ACEOF
7535/* confdefs.h.  */
7536_ACEOF
7537cat confdefs.h >>conftest.$ac_ext
7538cat >>conftest.$ac_ext <<_ACEOF
7539/* end confdefs.h.  */
7540
7541#ifdef F77_DUMMY_MAIN
7542
7543#  ifdef __cplusplus
7544     extern "C"
7545#  endif
7546   int F77_DUMMY_MAIN() { return 1; }
7547
7548#endif
7549int
7550main ()
7551{
7552
7553  ;
7554  return 0;
7555}
7556_ACEOF
7557rm -f conftest.$ac_objext conftest$ac_exeext
7558if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7559  (eval $ac_link) 2>conftest.er1
7560  ac_status=$?
7561  grep -v '^ *+' conftest.er1 >conftest.err
7562  rm -f conftest.er1
7563  cat conftest.err >&5
7564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7565  (exit $ac_status); } &&
7566	 { ac_try='test -z "$ac_c_werror_flag"
7567			 || test ! -s conftest.err'
7568  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7569  (eval $ac_try) 2>&5
7570  ac_status=$?
7571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7572  (exit $ac_status); }; } &&
7573	 { ac_try='test -s conftest$ac_exeext'
7574  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7575  (eval $ac_try) 2>&5
7576  ac_status=$?
7577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7578  (exit $ac_status); }; }; then
7579  lt_cv_cc_needs_belf=yes
7580else
7581  echo "$as_me: failed program was:" >&5
7582sed 's/^/| /' conftest.$ac_ext >&5
7583
7584lt_cv_cc_needs_belf=no
7585fi
7586rm -f conftest.err conftest.$ac_objext \
7587      conftest$ac_exeext conftest.$ac_ext
7588     ac_ext=c
7589ac_cpp='$CPP $CPPFLAGS'
7590ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7591ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7592ac_compiler_gnu=$ac_cv_c_compiler_gnu
7593
7594fi
7595echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7596echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
7597  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7598    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7599    CFLAGS="$SAVE_CFLAGS"
7600  fi
7601  ;;
7602sparc*-*solaris*)
7603  # Find out which ABI we are using.
7604  echo 'int i;' > conftest.$ac_ext
7605  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7606  (eval $ac_compile) 2>&5
7607  ac_status=$?
7608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7609  (exit $ac_status); }; then
7610    case `/usr/bin/file conftest.o` in
7611    *64-bit*)
7612      case $lt_cv_prog_gnu_ld in
7613      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7614      *)    LD="${LD-ld} -64" ;;
7615      esac
7616      ;;
7617    esac
7618  fi
7619  rm -rf conftest*
7620  ;;
7621
7622
7623esac
7624
7625need_locks="$enable_libtool_lock"
7626
7627
7628ac_ext=c
7629ac_cpp='$CPP $CPPFLAGS'
7630ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7631ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7632ac_compiler_gnu=$ac_cv_c_compiler_gnu
7633echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7634echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
7635# On Suns, sometimes $CPP names a directory.
7636if test -n "$CPP" && test -d "$CPP"; then
7637  CPP=
7638fi
7639if test -z "$CPP"; then
7640  if test "${ac_cv_prog_CPP+set}" = set; then
7641  echo $ECHO_N "(cached) $ECHO_C" >&6
7642else
7643      # Double quotes because CPP needs to be expanded
7644    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7645    do
7646      ac_preproc_ok=false
7647for ac_c_preproc_warn_flag in '' yes
7648do
7649  # Use a header file that comes with gcc, so configuring glibc
7650  # with a fresh cross-compiler works.
7651  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7652  # <limits.h> exists even on freestanding compilers.
7653  # On the NeXT, cc -E runs the code through the compiler's parser,
7654  # not just through cpp. "Syntax error" is here to catch this case.
7655  cat >conftest.$ac_ext <<_ACEOF
7656/* confdefs.h.  */
7657_ACEOF
7658cat confdefs.h >>conftest.$ac_ext
7659cat >>conftest.$ac_ext <<_ACEOF
7660/* end confdefs.h.  */
7661#ifdef __STDC__
7662# include <limits.h>
7663#else
7664# include <assert.h>
7665#endif
7666		     Syntax error
7667_ACEOF
7668if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7669  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7670  ac_status=$?
7671  grep -v '^ *+' conftest.er1 >conftest.err
7672  rm -f conftest.er1
7673  cat conftest.err >&5
7674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7675  (exit $ac_status); } >/dev/null; then
7676  if test -s conftest.err; then
7677    ac_cpp_err=$ac_c_preproc_warn_flag
7678    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7679  else
7680    ac_cpp_err=
7681  fi
7682else
7683  ac_cpp_err=yes
7684fi
7685if test -z "$ac_cpp_err"; then
7686  :
7687else
7688  echo "$as_me: failed program was:" >&5
7689sed 's/^/| /' conftest.$ac_ext >&5
7690
7691  # Broken: fails on valid input.
7692continue
7693fi
7694rm -f conftest.err conftest.$ac_ext
7695
7696  # OK, works on sane cases.  Now check whether non-existent headers
7697  # can be detected and how.
7698  cat >conftest.$ac_ext <<_ACEOF
7699/* confdefs.h.  */
7700_ACEOF
7701cat confdefs.h >>conftest.$ac_ext
7702cat >>conftest.$ac_ext <<_ACEOF
7703/* end confdefs.h.  */
7704#include <ac_nonexistent.h>
7705_ACEOF
7706if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7707  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7708  ac_status=$?
7709  grep -v '^ *+' conftest.er1 >conftest.err
7710  rm -f conftest.er1
7711  cat conftest.err >&5
7712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713  (exit $ac_status); } >/dev/null; then
7714  if test -s conftest.err; then
7715    ac_cpp_err=$ac_c_preproc_warn_flag
7716    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7717  else
7718    ac_cpp_err=
7719  fi
7720else
7721  ac_cpp_err=yes
7722fi
7723if test -z "$ac_cpp_err"; then
7724  # Broken: success on invalid input.
7725continue
7726else
7727  echo "$as_me: failed program was:" >&5
7728sed 's/^/| /' conftest.$ac_ext >&5
7729
7730  # Passes both tests.
7731ac_preproc_ok=:
7732break
7733fi
7734rm -f conftest.err conftest.$ac_ext
7735
7736done
7737# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7738rm -f conftest.err conftest.$ac_ext
7739if $ac_preproc_ok; then
7740  break
7741fi
7742
7743    done
7744    ac_cv_prog_CPP=$CPP
7745
7746fi
7747  CPP=$ac_cv_prog_CPP
7748else
7749  ac_cv_prog_CPP=$CPP
7750fi
7751echo "$as_me:$LINENO: result: $CPP" >&5
7752echo "${ECHO_T}$CPP" >&6
7753ac_preproc_ok=false
7754for ac_c_preproc_warn_flag in '' yes
7755do
7756  # Use a header file that comes with gcc, so configuring glibc
7757  # with a fresh cross-compiler works.
7758  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7759  # <limits.h> exists even on freestanding compilers.
7760  # On the NeXT, cc -E runs the code through the compiler's parser,
7761  # not just through cpp. "Syntax error" is here to catch this case.
7762  cat >conftest.$ac_ext <<_ACEOF
7763/* confdefs.h.  */
7764_ACEOF
7765cat confdefs.h >>conftest.$ac_ext
7766cat >>conftest.$ac_ext <<_ACEOF
7767/* end confdefs.h.  */
7768#ifdef __STDC__
7769# include <limits.h>
7770#else
7771# include <assert.h>
7772#endif
7773		     Syntax error
7774_ACEOF
7775if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7776  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7777  ac_status=$?
7778  grep -v '^ *+' conftest.er1 >conftest.err
7779  rm -f conftest.er1
7780  cat conftest.err >&5
7781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7782  (exit $ac_status); } >/dev/null; then
7783  if test -s conftest.err; then
7784    ac_cpp_err=$ac_c_preproc_warn_flag
7785    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7786  else
7787    ac_cpp_err=
7788  fi
7789else
7790  ac_cpp_err=yes
7791fi
7792if test -z "$ac_cpp_err"; then
7793  :
7794else
7795  echo "$as_me: failed program was:" >&5
7796sed 's/^/| /' conftest.$ac_ext >&5
7797
7798  # Broken: fails on valid input.
7799continue
7800fi
7801rm -f conftest.err conftest.$ac_ext
7802
7803  # OK, works on sane cases.  Now check whether non-existent headers
7804  # can be detected and how.
7805  cat >conftest.$ac_ext <<_ACEOF
7806/* confdefs.h.  */
7807_ACEOF
7808cat confdefs.h >>conftest.$ac_ext
7809cat >>conftest.$ac_ext <<_ACEOF
7810/* end confdefs.h.  */
7811#include <ac_nonexistent.h>
7812_ACEOF
7813if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7814  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7815  ac_status=$?
7816  grep -v '^ *+' conftest.er1 >conftest.err
7817  rm -f conftest.er1
7818  cat conftest.err >&5
7819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7820  (exit $ac_status); } >/dev/null; then
7821  if test -s conftest.err; then
7822    ac_cpp_err=$ac_c_preproc_warn_flag
7823    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7824  else
7825    ac_cpp_err=
7826  fi
7827else
7828  ac_cpp_err=yes
7829fi
7830if test -z "$ac_cpp_err"; then
7831  # Broken: success on invalid input.
7832continue
7833else
7834  echo "$as_me: failed program was:" >&5
7835sed 's/^/| /' conftest.$ac_ext >&5
7836
7837  # Passes both tests.
7838ac_preproc_ok=:
7839break
7840fi
7841rm -f conftest.err conftest.$ac_ext
7842
7843done
7844# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7845rm -f conftest.err conftest.$ac_ext
7846if $ac_preproc_ok; then
7847  :
7848else
7849  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7850See \`config.log' for more details." >&5
7851echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7852See \`config.log' for more details." >&2;}
7853   { (exit 1); exit 1; }; }
7854fi
7855
7856ac_ext=c
7857ac_cpp='$CPP $CPPFLAGS'
7858ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7859ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7860ac_compiler_gnu=$ac_cv_c_compiler_gnu
7861
7862
7863echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7864echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7865if test "${ac_cv_header_stdc+set}" = set; then
7866  echo $ECHO_N "(cached) $ECHO_C" >&6
7867else
7868  cat >conftest.$ac_ext <<_ACEOF
7869/* confdefs.h.  */
7870_ACEOF
7871cat confdefs.h >>conftest.$ac_ext
7872cat >>conftest.$ac_ext <<_ACEOF
7873/* end confdefs.h.  */
7874#include <stdlib.h>
7875#include <stdarg.h>
7876#include <string.h>
7877#include <float.h>
7878
7879#ifdef F77_DUMMY_MAIN
7880
7881#  ifdef __cplusplus
7882     extern "C"
7883#  endif
7884   int F77_DUMMY_MAIN() { return 1; }
7885
7886#endif
7887int
7888main ()
7889{
7890
7891  ;
7892  return 0;
7893}
7894_ACEOF
7895rm -f conftest.$ac_objext
7896if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7897  (eval $ac_compile) 2>conftest.er1
7898  ac_status=$?
7899  grep -v '^ *+' conftest.er1 >conftest.err
7900  rm -f conftest.er1
7901  cat conftest.err >&5
7902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7903  (exit $ac_status); } &&
7904	 { ac_try='test -z "$ac_c_werror_flag"
7905			 || test ! -s conftest.err'
7906  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7907  (eval $ac_try) 2>&5
7908  ac_status=$?
7909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7910  (exit $ac_status); }; } &&
7911	 { ac_try='test -s conftest.$ac_objext'
7912  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7913  (eval $ac_try) 2>&5
7914  ac_status=$?
7915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916  (exit $ac_status); }; }; then
7917  ac_cv_header_stdc=yes
7918else
7919  echo "$as_me: failed program was:" >&5
7920sed 's/^/| /' conftest.$ac_ext >&5
7921
7922ac_cv_header_stdc=no
7923fi
7924rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7925
7926if test $ac_cv_header_stdc = yes; then
7927  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7928  cat >conftest.$ac_ext <<_ACEOF
7929/* confdefs.h.  */
7930_ACEOF
7931cat confdefs.h >>conftest.$ac_ext
7932cat >>conftest.$ac_ext <<_ACEOF
7933/* end confdefs.h.  */
7934#include <string.h>
7935
7936_ACEOF
7937if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7938  $EGREP "memchr" >/dev/null 2>&1; then
7939  :
7940else
7941  ac_cv_header_stdc=no
7942fi
7943rm -f conftest*
7944
7945fi
7946
7947if test $ac_cv_header_stdc = yes; then
7948  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7949  cat >conftest.$ac_ext <<_ACEOF
7950/* confdefs.h.  */
7951_ACEOF
7952cat confdefs.h >>conftest.$ac_ext
7953cat >>conftest.$ac_ext <<_ACEOF
7954/* end confdefs.h.  */
7955#include <stdlib.h>
7956
7957_ACEOF
7958if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7959  $EGREP "free" >/dev/null 2>&1; then
7960  :
7961else
7962  ac_cv_header_stdc=no
7963fi
7964rm -f conftest*
7965
7966fi
7967
7968if test $ac_cv_header_stdc = yes; then
7969  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7970  if test "$cross_compiling" = yes; then
7971  :
7972else
7973  cat >conftest.$ac_ext <<_ACEOF
7974/* confdefs.h.  */
7975_ACEOF
7976cat confdefs.h >>conftest.$ac_ext
7977cat >>conftest.$ac_ext <<_ACEOF
7978/* end confdefs.h.  */
7979#include <ctype.h>
7980#if ((' ' & 0x0FF) == 0x020)
7981# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7982# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7983#else
7984# define ISLOWER(c) \
7985		   (('a' <= (c) && (c) <= 'i') \
7986		     || ('j' <= (c) && (c) <= 'r') \
7987		     || ('s' <= (c) && (c) <= 'z'))
7988# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7989#endif
7990
7991#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7992int
7993main ()
7994{
7995  int i;
7996  for (i = 0; i < 256; i++)
7997    if (XOR (islower (i), ISLOWER (i))
7998	|| toupper (i) != TOUPPER (i))
7999      exit(2);
8000  exit (0);
8001}
8002_ACEOF
8003rm -f conftest$ac_exeext
8004if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8005  (eval $ac_link) 2>&5
8006  ac_status=$?
8007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8008  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8009  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8010  (eval $ac_try) 2>&5
8011  ac_status=$?
8012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013  (exit $ac_status); }; }; then
8014  :
8015else
8016  echo "$as_me: program exited with status $ac_status" >&5
8017echo "$as_me: failed program was:" >&5
8018sed 's/^/| /' conftest.$ac_ext >&5
8019
8020( exit $ac_status )
8021ac_cv_header_stdc=no
8022fi
8023rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8024fi
8025fi
8026fi
8027echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8028echo "${ECHO_T}$ac_cv_header_stdc" >&6
8029if test $ac_cv_header_stdc = yes; then
8030
8031cat >>confdefs.h <<\_ACEOF
8032#define STDC_HEADERS 1
8033_ACEOF
8034
8035fi
8036
8037# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8048		  inttypes.h stdint.h unistd.h
8049do
8050as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8051echo "$as_me:$LINENO: checking for $ac_header" >&5
8052echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8053if eval "test \"\${$as_ac_Header+set}\" = set"; then
8054  echo $ECHO_N "(cached) $ECHO_C" >&6
8055else
8056  cat >conftest.$ac_ext <<_ACEOF
8057/* confdefs.h.  */
8058_ACEOF
8059cat confdefs.h >>conftest.$ac_ext
8060cat >>conftest.$ac_ext <<_ACEOF
8061/* end confdefs.h.  */
8062$ac_includes_default
8063
8064#include <$ac_header>
8065_ACEOF
8066rm -f conftest.$ac_objext
8067if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8068  (eval $ac_compile) 2>conftest.er1
8069  ac_status=$?
8070  grep -v '^ *+' conftest.er1 >conftest.err
8071  rm -f conftest.er1
8072  cat conftest.err >&5
8073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074  (exit $ac_status); } &&
8075	 { ac_try='test -z "$ac_c_werror_flag"
8076			 || test ! -s conftest.err'
8077  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8078  (eval $ac_try) 2>&5
8079  ac_status=$?
8080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081  (exit $ac_status); }; } &&
8082	 { ac_try='test -s conftest.$ac_objext'
8083  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8084  (eval $ac_try) 2>&5
8085  ac_status=$?
8086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087  (exit $ac_status); }; }; then
8088  eval "$as_ac_Header=yes"
8089else
8090  echo "$as_me: failed program was:" >&5
8091sed 's/^/| /' conftest.$ac_ext >&5
8092
8093eval "$as_ac_Header=no"
8094fi
8095rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8096fi
8097echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8098echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8099if test `eval echo '${'$as_ac_Header'}'` = yes; then
8100  cat >>confdefs.h <<_ACEOF
8101#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8102_ACEOF
8103
8104fi
8105
8106done
8107
8108
8109
8110for ac_header in dlfcn.h
8111do
8112as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8113if eval "test \"\${$as_ac_Header+set}\" = set"; then
8114  echo "$as_me:$LINENO: checking for $ac_header" >&5
8115echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8116if eval "test \"\${$as_ac_Header+set}\" = set"; then
8117  echo $ECHO_N "(cached) $ECHO_C" >&6
8118fi
8119echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8120echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8121else
8122  # Is the header compilable?
8123echo "$as_me:$LINENO: checking $ac_header usability" >&5
8124echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8125cat >conftest.$ac_ext <<_ACEOF
8126/* confdefs.h.  */
8127_ACEOF
8128cat confdefs.h >>conftest.$ac_ext
8129cat >>conftest.$ac_ext <<_ACEOF
8130/* end confdefs.h.  */
8131$ac_includes_default
8132#include <$ac_header>
8133_ACEOF
8134rm -f conftest.$ac_objext
8135if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8136  (eval $ac_compile) 2>conftest.er1
8137  ac_status=$?
8138  grep -v '^ *+' conftest.er1 >conftest.err
8139  rm -f conftest.er1
8140  cat conftest.err >&5
8141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8142  (exit $ac_status); } &&
8143	 { ac_try='test -z "$ac_c_werror_flag"
8144			 || test ! -s conftest.err'
8145  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8146  (eval $ac_try) 2>&5
8147  ac_status=$?
8148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8149  (exit $ac_status); }; } &&
8150	 { ac_try='test -s conftest.$ac_objext'
8151  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8152  (eval $ac_try) 2>&5
8153  ac_status=$?
8154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8155  (exit $ac_status); }; }; then
8156  ac_header_compiler=yes
8157else
8158  echo "$as_me: failed program was:" >&5
8159sed 's/^/| /' conftest.$ac_ext >&5
8160
8161ac_header_compiler=no
8162fi
8163rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8164echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8165echo "${ECHO_T}$ac_header_compiler" >&6
8166
8167# Is the header present?
8168echo "$as_me:$LINENO: checking $ac_header presence" >&5
8169echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8170cat >conftest.$ac_ext <<_ACEOF
8171/* confdefs.h.  */
8172_ACEOF
8173cat confdefs.h >>conftest.$ac_ext
8174cat >>conftest.$ac_ext <<_ACEOF
8175/* end confdefs.h.  */
8176#include <$ac_header>
8177_ACEOF
8178if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8179  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8180  ac_status=$?
8181  grep -v '^ *+' conftest.er1 >conftest.err
8182  rm -f conftest.er1
8183  cat conftest.err >&5
8184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185  (exit $ac_status); } >/dev/null; then
8186  if test -s conftest.err; then
8187    ac_cpp_err=$ac_c_preproc_warn_flag
8188    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8189  else
8190    ac_cpp_err=
8191  fi
8192else
8193  ac_cpp_err=yes
8194fi
8195if test -z "$ac_cpp_err"; then
8196  ac_header_preproc=yes
8197else
8198  echo "$as_me: failed program was:" >&5
8199sed 's/^/| /' conftest.$ac_ext >&5
8200
8201  ac_header_preproc=no
8202fi
8203rm -f conftest.err conftest.$ac_ext
8204echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8205echo "${ECHO_T}$ac_header_preproc" >&6
8206
8207# So?  What about this header?
8208case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8209  yes:no: )
8210    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8211echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8212    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8213echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8214    ac_header_preproc=yes
8215    ;;
8216  no:yes:* )
8217    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8218echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8219    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8220echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8221    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8222echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8223    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8224echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8225    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8226echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8227    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8228echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8229    (
8230      cat <<\_ASBOX
8231## ---------------------------------------------------- ##
8232## Report this to http://projects.coin-or.org/CoinUtils ##
8233## ---------------------------------------------------- ##
8234_ASBOX
8235    ) |
8236      sed "s/^/$as_me: WARNING:     /" >&2
8237    ;;
8238esac
8239echo "$as_me:$LINENO: checking for $ac_header" >&5
8240echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8241if eval "test \"\${$as_ac_Header+set}\" = set"; then
8242  echo $ECHO_N "(cached) $ECHO_C" >&6
8243else
8244  eval "$as_ac_Header=\$ac_header_preproc"
8245fi
8246echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8247echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8248
8249fi
8250if test `eval echo '${'$as_ac_Header'}'` = yes; then
8251  cat >>confdefs.h <<_ACEOF
8252#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8253_ACEOF
8254
8255fi
8256
8257done
8258
8259
8260
8261if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8262    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8263    (test "X$CXX" != "Xg++"))) ; then
8264  ac_ext=cc
8265ac_cpp='$CXXCPP $CPPFLAGS'
8266ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8267ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8268ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8269echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8270echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
8271if test -z "$CXXCPP"; then
8272  if test "${ac_cv_prog_CXXCPP+set}" = set; then
8273  echo $ECHO_N "(cached) $ECHO_C" >&6
8274else
8275      # Double quotes because CXXCPP needs to be expanded
8276    for CXXCPP in "$CXX -E" "/lib/cpp"
8277    do
8278      ac_preproc_ok=false
8279for ac_cxx_preproc_warn_flag in '' yes
8280do
8281  # Use a header file that comes with gcc, so configuring glibc
8282  # with a fresh cross-compiler works.
8283  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8284  # <limits.h> exists even on freestanding compilers.
8285  # On the NeXT, cc -E runs the code through the compiler's parser,
8286  # not just through cpp. "Syntax error" is here to catch this case.
8287  cat >conftest.$ac_ext <<_ACEOF
8288/* confdefs.h.  */
8289_ACEOF
8290cat confdefs.h >>conftest.$ac_ext
8291cat >>conftest.$ac_ext <<_ACEOF
8292/* end confdefs.h.  */
8293#ifdef __STDC__
8294# include <limits.h>
8295#else
8296# include <assert.h>
8297#endif
8298		     Syntax error
8299_ACEOF
8300if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8301  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8302  ac_status=$?
8303  grep -v '^ *+' conftest.er1 >conftest.err
8304  rm -f conftest.er1
8305  cat conftest.err >&5
8306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307  (exit $ac_status); } >/dev/null; then
8308  if test -s conftest.err; then
8309    ac_cpp_err=$ac_cxx_preproc_warn_flag
8310    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8311  else
8312    ac_cpp_err=
8313  fi
8314else
8315  ac_cpp_err=yes
8316fi
8317if test -z "$ac_cpp_err"; then
8318  :
8319else
8320  echo "$as_me: failed program was:" >&5
8321sed 's/^/| /' conftest.$ac_ext >&5
8322
8323  # Broken: fails on valid input.
8324continue
8325fi
8326rm -f conftest.err conftest.$ac_ext
8327
8328  # OK, works on sane cases.  Now check whether non-existent headers
8329  # can be detected and how.
8330  cat >conftest.$ac_ext <<_ACEOF
8331/* confdefs.h.  */
8332_ACEOF
8333cat confdefs.h >>conftest.$ac_ext
8334cat >>conftest.$ac_ext <<_ACEOF
8335/* end confdefs.h.  */
8336#include <ac_nonexistent.h>
8337_ACEOF
8338if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8339  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8340  ac_status=$?
8341  grep -v '^ *+' conftest.er1 >conftest.err
8342  rm -f conftest.er1
8343  cat conftest.err >&5
8344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345  (exit $ac_status); } >/dev/null; then
8346  if test -s conftest.err; then
8347    ac_cpp_err=$ac_cxx_preproc_warn_flag
8348    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8349  else
8350    ac_cpp_err=
8351  fi
8352else
8353  ac_cpp_err=yes
8354fi
8355if test -z "$ac_cpp_err"; then
8356  # Broken: success on invalid input.
8357continue
8358else
8359  echo "$as_me: failed program was:" >&5
8360sed 's/^/| /' conftest.$ac_ext >&5
8361
8362  # Passes both tests.
8363ac_preproc_ok=:
8364break
8365fi
8366rm -f conftest.err conftest.$ac_ext
8367
8368done
8369# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8370rm -f conftest.err conftest.$ac_ext
8371if $ac_preproc_ok; then
8372  break
8373fi
8374
8375    done
8376    ac_cv_prog_CXXCPP=$CXXCPP
8377
8378fi
8379  CXXCPP=$ac_cv_prog_CXXCPP
8380else
8381  ac_cv_prog_CXXCPP=$CXXCPP
8382fi
8383echo "$as_me:$LINENO: result: $CXXCPP" >&5
8384echo "${ECHO_T}$CXXCPP" >&6
8385ac_preproc_ok=false
8386for ac_cxx_preproc_warn_flag in '' yes
8387do
8388  # Use a header file that comes with gcc, so configuring glibc
8389  # with a fresh cross-compiler works.
8390  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8391  # <limits.h> exists even on freestanding compilers.
8392  # On the NeXT, cc -E runs the code through the compiler's parser,
8393  # not just through cpp. "Syntax error" is here to catch this case.
8394  cat >conftest.$ac_ext <<_ACEOF
8395/* confdefs.h.  */
8396_ACEOF
8397cat confdefs.h >>conftest.$ac_ext
8398cat >>conftest.$ac_ext <<_ACEOF
8399/* end confdefs.h.  */
8400#ifdef __STDC__
8401# include <limits.h>
8402#else
8403# include <assert.h>
8404#endif
8405		     Syntax error
8406_ACEOF
8407if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8408  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8409  ac_status=$?
8410  grep -v '^ *+' conftest.er1 >conftest.err
8411  rm -f conftest.er1
8412  cat conftest.err >&5
8413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414  (exit $ac_status); } >/dev/null; then
8415  if test -s conftest.err; then
8416    ac_cpp_err=$ac_cxx_preproc_warn_flag
8417    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8418  else
8419    ac_cpp_err=
8420  fi
8421else
8422  ac_cpp_err=yes
8423fi
8424if test -z "$ac_cpp_err"; then
8425  :
8426else
8427  echo "$as_me: failed program was:" >&5
8428sed 's/^/| /' conftest.$ac_ext >&5
8429
8430  # Broken: fails on valid input.
8431continue
8432fi
8433rm -f conftest.err conftest.$ac_ext
8434
8435  # OK, works on sane cases.  Now check whether non-existent headers
8436  # can be detected and how.
8437  cat >conftest.$ac_ext <<_ACEOF
8438/* confdefs.h.  */
8439_ACEOF
8440cat confdefs.h >>conftest.$ac_ext
8441cat >>conftest.$ac_ext <<_ACEOF
8442/* end confdefs.h.  */
8443#include <ac_nonexistent.h>
8444_ACEOF
8445if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8446  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8447  ac_status=$?
8448  grep -v '^ *+' conftest.er1 >conftest.err
8449  rm -f conftest.er1
8450  cat conftest.err >&5
8451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452  (exit $ac_status); } >/dev/null; then
8453  if test -s conftest.err; then
8454    ac_cpp_err=$ac_cxx_preproc_warn_flag
8455    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8456  else
8457    ac_cpp_err=
8458  fi
8459else
8460  ac_cpp_err=yes
8461fi
8462if test -z "$ac_cpp_err"; then
8463  # Broken: success on invalid input.
8464continue
8465else
8466  echo "$as_me: failed program was:" >&5
8467sed 's/^/| /' conftest.$ac_ext >&5
8468
8469  # Passes both tests.
8470ac_preproc_ok=:
8471break
8472fi
8473rm -f conftest.err conftest.$ac_ext
8474
8475done
8476# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8477rm -f conftest.err conftest.$ac_ext
8478if $ac_preproc_ok; then
8479  :
8480else
8481  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8482See \`config.log' for more details." >&5
8483echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8484See \`config.log' for more details." >&2;}
8485   { (exit 1); exit 1; }; }
8486fi
8487
8488ac_ext=cc
8489ac_cpp='$CXXCPP $CPPFLAGS'
8490ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8491ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8492ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8493
8494fi
8495
8496
8497# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
8498
8499# find the maximum length of command line arguments
8500echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
8501echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
8502if test "${lt_cv_sys_max_cmd_len+set}" = set; then
8503  echo $ECHO_N "(cached) $ECHO_C" >&6
8504else
8505    i=0
8506  teststring="ABCD"
8507
8508  case $build_os in
8509  msdosdjgpp*)
8510    # On DJGPP, this test can blow up pretty badly due to problems in libc
8511    # (any single argument exceeding 2000 bytes causes a buffer overrun
8512    # during glob expansion).  Even if it were fixed, the result of this
8513    # check would be larger than it should be.
8514    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8515    ;;
8516
8517  gnu*)
8518    # Under GNU Hurd, this test is not required because there is
8519    # no limit to the length of command line arguments.
8520    # Libtool will interpret -1 as no limit whatsoever
8521    lt_cv_sys_max_cmd_len=-1;
8522    ;;
8523
8524  cygwin* | mingw*)
8525    # On Win9x/ME, this test blows up -- it succeeds, but takes
8526    # about 5 minutes as the teststring grows exponentially.
8527    # Worse, since 9x/ME are not pre-emptively multitasking,
8528    # you end up with a "frozen" computer, even though with patience
8529    # the test eventually succeeds (with a max line length of 256k).
8530    # Instead, let's just punt: use the minimum linelength reported by
8531    # all of the supported platforms: 8192 (on NT/2K/XP).
8532    lt_cv_sys_max_cmd_len=8192;
8533    ;;
8534
8535  amigaos*)
8536    # On AmigaOS with pdksh, this test takes hours, literally.
8537    # So we just punt and use a minimum line length of 8192.
8538    lt_cv_sys_max_cmd_len=8192;
8539    ;;
8540
8541  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8542    # This has been around since 386BSD, at least.  Likely further.
8543    if test -x /sbin/sysctl; then
8544      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8545    elif test -x /usr/sbin/sysctl; then
8546      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8547    else
8548      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
8549    fi
8550    # And add a safety zone
8551    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8552    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8553    ;;
8554
8555  interix*)
8556    # We know the value 262144 and hardcode it with a safety zone (like BSD)
8557    lt_cv_sys_max_cmd_len=196608
8558    ;;
8559
8560  osf*)
8561    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8562    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8563    # nice to cause kernel panics so lets avoid the loop below.
8564    # First set a reasonable default.
8565    lt_cv_sys_max_cmd_len=16384
8566    #
8567    if test -x /sbin/sysconfig; then
8568      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8569        *1*) lt_cv_sys_max_cmd_len=-1 ;;
8570      esac
8571    fi
8572    ;;
8573  sco3.2v5*)
8574    lt_cv_sys_max_cmd_len=102400
8575    ;;
8576  sysv5* | sco5v6* | sysv4.2uw2*)
8577    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8578    if test -n "$kargmax"; then
8579      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
8580    else
8581      lt_cv_sys_max_cmd_len=32768
8582    fi
8583    ;;
8584  *)
8585    # If test is not a shell built-in, we'll probably end up computing a
8586    # maximum length that is only half of the actual maximum length, but
8587    # we can't tell.
8588    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8589    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
8590	       = "XX$teststring") >/dev/null 2>&1 &&
8591	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
8592	    lt_cv_sys_max_cmd_len=$new_result &&
8593	    test $i != 17 # 1/2 MB should be enough
8594    do
8595      i=`expr $i + 1`
8596      teststring=$teststring$teststring
8597    done
8598    teststring=
8599    # Add a significant safety factor because C++ compilers can tack on massive
8600    # amounts of additional arguments before passing them to the linker.
8601    # It appears as though 1/2 is a usable value.
8602    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8603    ;;
8604  esac
8605
8606fi
8607
8608if test -n $lt_cv_sys_max_cmd_len ; then
8609  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
8610echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
8611else
8612  echo "$as_me:$LINENO: result: none" >&5
8613echo "${ECHO_T}none" >&6
8614fi
8615
8616
8617
8618
8619# Check for command to grab the raw symbol name followed by C symbol from nm.
8620echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8621echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
8622if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8623  echo $ECHO_N "(cached) $ECHO_C" >&6
8624else
8625
8626# These are sane defaults that work on at least a few old systems.
8627# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8628
8629# Character class describing NM global symbol codes.
8630symcode='[BCDEGRST]'
8631
8632# Regexp to match symbols that can be accessed directly from C.
8633sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8634
8635# Transform an extracted symbol line into a proper C declaration
8636lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8637
8638# Transform an extracted symbol line into symbol name and symbol address
8639lt_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'"
8640
8641# Define system-specific variables.
8642case $host_os in
8643aix*)
8644  symcode='[BCDT]'
8645  ;;
8646cygwin* | mingw* | pw32*)
8647  symcode='[ABCDGISTW]'
8648  ;;
8649hpux*) # Its linker distinguishes data from code symbols
8650  if test "$host_cpu" = ia64; then
8651    symcode='[ABCDEGRST]'
8652  fi
8653  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8654  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'"
8655  ;;
8656linux*)
8657  if test "$host_cpu" = ia64; then
8658    symcode='[ABCDGIRSTW]'
8659    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8660    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'"
8661  fi
8662  ;;
8663irix* | nonstopux*)
8664  symcode='[BCDEGRST]'
8665  ;;
8666osf*)
8667  symcode='[BCDEGQRST]'
8668  ;;
8669solaris*)
8670  symcode='[BDRT]'
8671  ;;
8672sco3.2v5*)
8673  symcode='[DT]'
8674  ;;
8675sysv4.2uw2*)
8676  symcode='[DT]'
8677  ;;
8678sysv5* | sco5v6* | unixware* | OpenUNIX*)
8679  symcode='[ABDT]'
8680  ;;
8681sysv4)
8682  symcode='[DFNSTU]'
8683  ;;
8684esac
8685
8686# Handle CRLF in mingw tool chain
8687opt_cr=
8688case $build_os in
8689mingw*)
8690  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8691  ;;
8692esac
8693
8694# If we're using GNU nm, then use its standard symbol codes.
8695case `$NM -V 2>&1` in
8696*GNU* | *'with BFD'*)
8697  symcode='[ABCDGIRSTW]' ;;
8698esac
8699
8700# Try without a prefix undercore, then with it.
8701for ac_symprfx in "" "_"; do
8702
8703  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8704  symxfrm="\\1 $ac_symprfx\\2 \\2"
8705
8706  # Write the raw and C identifiers.
8707  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8708
8709  # Check to see that the pipe works correctly.
8710  pipe_works=no
8711
8712  rm -f conftest*
8713  cat > conftest.$ac_ext <<EOF
8714#ifdef __cplusplus
8715extern "C" {
8716#endif
8717char nm_test_var;
8718void nm_test_func(){}
8719#ifdef __cplusplus
8720}
8721#endif
8722int main(){nm_test_var='a';nm_test_func();return(0);}
8723EOF
8724
8725  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8726  (eval $ac_compile) 2>&5
8727  ac_status=$?
8728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729  (exit $ac_status); }; then
8730    # Now try to grab the symbols.
8731    nlist=conftest.nm
8732    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8733  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8734  ac_status=$?
8735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736  (exit $ac_status); } && test -s "$nlist"; then
8737      # Try sorting and uniquifying the output.
8738      if sort "$nlist" | uniq > "$nlist"T; then
8739	mv -f "$nlist"T "$nlist"
8740      else
8741	rm -f "$nlist"T
8742      fi
8743
8744      # Make sure that we snagged all the symbols we need.
8745      if grep ' nm_test_var$' "$nlist" >/dev/null; then
8746	if grep ' nm_test_func$' "$nlist" >/dev/null; then
8747	  cat <<EOF > conftest.$ac_ext
8748#ifdef __cplusplus
8749extern "C" {
8750#endif
8751
8752EOF
8753	  # Now generate the symbol file.
8754	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8755
8756	  cat <<EOF >> conftest.$ac_ext
8757#if defined (__STDC__) && __STDC__
8758# define lt_ptr_t void *
8759#else
8760# define lt_ptr_t char *
8761# define const
8762#endif
8763
8764/* The mapping between symbol names and symbols. */
8765const struct {
8766  const char *name;
8767  lt_ptr_t address;
8768}
8769lt_preloaded_symbols[] =
8770{
8771EOF
8772	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8773	  cat <<\EOF >> conftest.$ac_ext
8774  {0, (lt_ptr_t) 0}
8775};
8776
8777#ifdef __cplusplus
8778}
8779#endif
8780EOF
8781	  # Now try linking the two files.
8782	  mv conftest.$ac_objext conftstm.$ac_objext
8783	  lt_save_LIBS="$LIBS"
8784	  lt_save_CFLAGS="$CFLAGS"
8785	  LIBS="conftstm.$ac_objext"
8786	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8787	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8788  (eval $ac_link) 2>&5
8789  ac_status=$?
8790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8791  (exit $ac_status); } && test -s conftest${ac_exeext}; then
8792	    pipe_works=yes
8793	  fi
8794	  LIBS="$lt_save_LIBS"
8795	  CFLAGS="$lt_save_CFLAGS"
8796	else
8797	  echo "cannot find nm_test_func in $nlist" >&5
8798	fi
8799      else
8800	echo "cannot find nm_test_var in $nlist" >&5
8801      fi
8802    else
8803      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8804    fi
8805  else
8806    echo "$progname: failed program was:" >&5
8807    cat conftest.$ac_ext >&5
8808  fi
8809  rm -f conftest* conftst*
8810
8811  # Do not use the global_symbol_pipe unless it works.
8812  if test "$pipe_works" = yes; then
8813    break
8814  else
8815    lt_cv_sys_global_symbol_pipe=
8816  fi
8817done
8818
8819fi
8820
8821if test -z "$lt_cv_sys_global_symbol_pipe"; then
8822  lt_cv_sys_global_symbol_to_cdecl=
8823fi
8824if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8825  echo "$as_me:$LINENO: result: failed" >&5
8826echo "${ECHO_T}failed" >&6
8827else
8828  echo "$as_me:$LINENO: result: ok" >&5
8829echo "${ECHO_T}ok" >&6
8830fi
8831
8832echo "$as_me:$LINENO: checking for objdir" >&5
8833echo $ECHO_N "checking for objdir... $ECHO_C" >&6
8834if test "${lt_cv_objdir+set}" = set; then
8835  echo $ECHO_N "(cached) $ECHO_C" >&6
8836else
8837  rm -f .libs 2>/dev/null
8838mkdir .libs 2>/dev/null
8839if test -d .libs; then
8840  lt_cv_objdir=.libs
8841else
8842  # MS-DOS does not allow filenames that begin with a dot.
8843  lt_cv_objdir=_libs
8844fi
8845rmdir .libs 2>/dev/null
8846fi
8847echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8848echo "${ECHO_T}$lt_cv_objdir" >&6
8849objdir=$lt_cv_objdir
8850
8851
8852
8853
8854
8855case $host_os in
8856aix3*)
8857  # AIX sometimes has problems with the GCC collect2 program.  For some
8858  # reason, if we set the COLLECT_NAMES environment variable, the problems
8859  # vanish in a puff of smoke.
8860  if test "X${COLLECT_NAMES+set}" != Xset; then
8861    COLLECT_NAMES=
8862    export COLLECT_NAMES
8863  fi
8864  ;;
8865esac
8866
8867# Sed substitution that helps us do robust quoting.  It backslashifies
8868# metacharacters that are still active within double-quoted strings.
8869Xsed='sed -e 1s/^X//'
8870sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8871
8872# Same as above, but do not quote variable references.
8873double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8874
8875# Sed substitution to delay expansion of an escaped shell variable in a
8876# double_quote_subst'ed string.
8877delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8878
8879# Sed substitution to avoid accidental globbing in evaled expressions
8880no_glob_subst='s/\*/\\\*/g'
8881
8882# Constants:
8883rm="rm -f"
8884
8885# Global variables:
8886default_ofile=libtool
8887can_build_shared=yes
8888
8889# All known linkers require a `.a' archive for static linking (except MSVC,
8890# which needs '.lib').
8891libext=a
8892ltmain="$ac_aux_dir/ltmain.sh"
8893ofile="$default_ofile"
8894with_gnu_ld="$lt_cv_prog_gnu_ld"
8895
8896if test -n "$ac_tool_prefix"; then
8897  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8898set dummy ${ac_tool_prefix}ar; ac_word=$2
8899echo "$as_me:$LINENO: checking for $ac_word" >&5
8900echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8901if test "${ac_cv_prog_AR+set}" = set; then
8902  echo $ECHO_N "(cached) $ECHO_C" >&6
8903else
8904  if test -n "$AR"; then
8905  ac_cv_prog_AR="$AR" # Let the user override the test.
8906else
8907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8908for as_dir in $PATH
8909do
8910  IFS=$as_save_IFS
8911  test -z "$as_dir" && as_dir=.
8912  for ac_exec_ext in '' $ac_executable_extensions; do
8913  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8914    ac_cv_prog_AR="${ac_tool_prefix}ar"
8915    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8916    break 2
8917  fi
8918done
8919done
8920
8921fi
8922fi
8923AR=$ac_cv_prog_AR
8924if test -n "$AR"; then
8925  echo "$as_me:$LINENO: result: $AR" >&5
8926echo "${ECHO_T}$AR" >&6
8927else
8928  echo "$as_me:$LINENO: result: no" >&5
8929echo "${ECHO_T}no" >&6
8930fi
8931
8932fi
8933if test -z "$ac_cv_prog_AR"; then
8934  ac_ct_AR=$AR
8935  # Extract the first word of "ar", so it can be a program name with args.
8936set dummy ar; ac_word=$2
8937echo "$as_me:$LINENO: checking for $ac_word" >&5
8938echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8939if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8940  echo $ECHO_N "(cached) $ECHO_C" >&6
8941else
8942  if test -n "$ac_ct_AR"; then
8943  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8944else
8945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8946for as_dir in $PATH
8947do
8948  IFS=$as_save_IFS
8949  test -z "$as_dir" && as_dir=.
8950  for ac_exec_ext in '' $ac_executable_extensions; do
8951  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8952    ac_cv_prog_ac_ct_AR="ar"
8953    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8954    break 2
8955  fi
8956done
8957done
8958
8959  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
8960fi
8961fi
8962ac_ct_AR=$ac_cv_prog_ac_ct_AR
8963if test -n "$ac_ct_AR"; then
8964  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8965echo "${ECHO_T}$ac_ct_AR" >&6
8966else
8967  echo "$as_me:$LINENO: result: no" >&5
8968echo "${ECHO_T}no" >&6
8969fi
8970
8971  AR=$ac_ct_AR
8972else
8973  AR="$ac_cv_prog_AR"
8974fi
8975
8976if test -n "$ac_tool_prefix"; then
8977  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8978set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8979echo "$as_me:$LINENO: checking for $ac_word" >&5
8980echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8981if test "${ac_cv_prog_RANLIB+set}" = set; then
8982  echo $ECHO_N "(cached) $ECHO_C" >&6
8983else
8984  if test -n "$RANLIB"; then
8985  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8986else
8987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8988for as_dir in $PATH
8989do
8990  IFS=$as_save_IFS
8991  test -z "$as_dir" && as_dir=.
8992  for ac_exec_ext in '' $ac_executable_extensions; do
8993  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8994    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8995    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8996    break 2
8997  fi
8998done
8999done
9000
9001fi
9002fi
9003RANLIB=$ac_cv_prog_RANLIB
9004if test -n "$RANLIB"; then
9005  echo "$as_me:$LINENO: result: $RANLIB" >&5
9006echo "${ECHO_T}$RANLIB" >&6
9007else
9008  echo "$as_me:$LINENO: result: no" >&5
9009echo "${ECHO_T}no" >&6
9010fi
9011
9012fi
9013if test -z "$ac_cv_prog_RANLIB"; then
9014  ac_ct_RANLIB=$RANLIB
9015  # Extract the first word of "ranlib", so it can be a program name with args.
9016set dummy ranlib; ac_word=$2
9017echo "$as_me:$LINENO: checking for $ac_word" >&5
9018echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9019if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
9020  echo $ECHO_N "(cached) $ECHO_C" >&6
9021else
9022  if test -n "$ac_ct_RANLIB"; then
9023  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9024else
9025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9026for as_dir in $PATH
9027do
9028  IFS=$as_save_IFS
9029  test -z "$as_dir" && as_dir=.
9030  for ac_exec_ext in '' $ac_executable_extensions; do
9031  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9032    ac_cv_prog_ac_ct_RANLIB="ranlib"
9033    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9034    break 2
9035  fi
9036done
9037done
9038
9039  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
9040fi
9041fi
9042ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9043if test -n "$ac_ct_RANLIB"; then
9044  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
9045echo "${ECHO_T}$ac_ct_RANLIB" >&6
9046else
9047  echo "$as_me:$LINENO: result: no" >&5
9048echo "${ECHO_T}no" >&6
9049fi
9050
9051  RANLIB=$ac_ct_RANLIB
9052else
9053  RANLIB="$ac_cv_prog_RANLIB"
9054fi
9055
9056if test -n "$ac_tool_prefix"; then
9057  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9058set dummy ${ac_tool_prefix}strip; ac_word=$2
9059echo "$as_me:$LINENO: checking for $ac_word" >&5
9060echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9061if test "${ac_cv_prog_STRIP+set}" = set; then
9062  echo $ECHO_N "(cached) $ECHO_C" >&6
9063else
9064  if test -n "$STRIP"; then
9065  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9066else
9067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9068for as_dir in $PATH
9069do
9070  IFS=$as_save_IFS
9071  test -z "$as_dir" && as_dir=.
9072  for ac_exec_ext in '' $ac_executable_extensions; do
9073  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9074    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9075    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9076    break 2
9077  fi
9078done
9079done
9080
9081fi
9082fi
9083STRIP=$ac_cv_prog_STRIP
9084if test -n "$STRIP"; then
9085  echo "$as_me:$LINENO: result: $STRIP" >&5
9086echo "${ECHO_T}$STRIP" >&6
9087else
9088  echo "$as_me:$LINENO: result: no" >&5
9089echo "${ECHO_T}no" >&6
9090fi
9091
9092fi
9093if test -z "$ac_cv_prog_STRIP"; then
9094  ac_ct_STRIP=$STRIP
9095  # Extract the first word of "strip", so it can be a program name with args.
9096set dummy strip; ac_word=$2
9097echo "$as_me:$LINENO: checking for $ac_word" >&5
9098echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9099if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
9100  echo $ECHO_N "(cached) $ECHO_C" >&6
9101else
9102  if test -n "$ac_ct_STRIP"; then
9103  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9104else
9105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9106for as_dir in $PATH
9107do
9108  IFS=$as_save_IFS
9109  test -z "$as_dir" && as_dir=.
9110  for ac_exec_ext in '' $ac_executable_extensions; do
9111  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9112    ac_cv_prog_ac_ct_STRIP="strip"
9113    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9114    break 2
9115  fi
9116done
9117done
9118
9119  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
9120fi
9121fi
9122ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9123if test -n "$ac_ct_STRIP"; then
9124  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
9125echo "${ECHO_T}$ac_ct_STRIP" >&6
9126else
9127  echo "$as_me:$LINENO: result: no" >&5
9128echo "${ECHO_T}no" >&6
9129fi
9130
9131  STRIP=$ac_ct_STRIP
9132else
9133  STRIP="$ac_cv_prog_STRIP"
9134fi
9135
9136
9137old_CC="$CC"
9138old_CFLAGS="$CFLAGS"
9139
9140# Set sane defaults for various variables
9141test -z "$AR" && AR=ar
9142test -z "$AR_FLAGS" && AR_FLAGS=cru
9143test -z "$AS" && AS=as
9144test -z "$CC" && CC=cc
9145test -z "$LTCC" && LTCC=$CC
9146test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9147test -z "$DLLTOOL" && DLLTOOL=dlltool
9148test -z "$LD" && LD=ld
9149test -z "$LN_S" && LN_S="ln -s"
9150test -z "$MAGIC_CMD" && MAGIC_CMD=file
9151test -z "$NM" && NM=nm
9152test -z "$SED" && SED=sed
9153test -z "$OBJDUMP" && OBJDUMP=objdump
9154test -z "$RANLIB" && RANLIB=:
9155test -z "$STRIP" && STRIP=:
9156test -z "$ac_objext" && ac_objext=o
9157
9158# Determine commands to create old-style static archives.
9159old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
9160old_postinstall_cmds='chmod 644 $oldlib'
9161old_postuninstall_cmds=
9162
9163if test -n "$RANLIB"; then
9164  case $host_os in
9165  openbsd*)
9166    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
9167    ;;
9168  *)
9169    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
9170    ;;
9171  esac
9172  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9173fi
9174
9175for cc_temp in $compiler""; do
9176  case $cc_temp in
9177    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9178    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9179    \-*) ;;
9180    *) break;;
9181  esac
9182done
9183cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9184
9185
9186# Only perform the check for file, if the check method requires it
9187case $deplibs_check_method in
9188file_magic*)
9189  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9190    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9191echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
9192if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9193  echo $ECHO_N "(cached) $ECHO_C" >&6
9194else
9195  case $MAGIC_CMD in
9196[\\/*] |  ?:[\\/]*)
9197  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9198  ;;
9199*)
9200  lt_save_MAGIC_CMD="$MAGIC_CMD"
9201  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9202  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9203  for ac_dir in $ac_dummy; do
9204    IFS="$lt_save_ifs"
9205    test -z "$ac_dir" && ac_dir=.
9206    if test -f $ac_dir/${ac_tool_prefix}file; then
9207      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9208      if test -n "$file_magic_test_file"; then
9209	case $deplibs_check_method in
9210	"file_magic "*)
9211	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9212	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9213	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9214	    $EGREP "$file_magic_regex" > /dev/null; then
9215	    :
9216	  else
9217	    cat <<EOF 1>&2
9218
9219*** Warning: the command libtool uses to detect shared libraries,
9220*** $file_magic_cmd, produces output that libtool cannot recognize.
9221*** The result is that libtool may fail to recognize shared libraries
9222*** as such.  This will affect the creation of libtool libraries that
9223*** depend on shared libraries, but programs linked with such libtool
9224*** libraries will work regardless of this problem.  Nevertheless, you
9225*** may want to report the problem to your system manager and/or to
9226*** bug-libtool@gnu.org
9227
9228EOF
9229	  fi ;;
9230	esac
9231      fi
9232      break
9233    fi
9234  done
9235  IFS="$lt_save_ifs"
9236  MAGIC_CMD="$lt_save_MAGIC_CMD"
9237  ;;
9238esac
9239fi
9240
9241MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9242if test -n "$MAGIC_CMD"; then
9243  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9244echo "${ECHO_T}$MAGIC_CMD" >&6
9245else
9246  echo "$as_me:$LINENO: result: no" >&5
9247echo "${ECHO_T}no" >&6
9248fi
9249
9250if test -z "$lt_cv_path_MAGIC_CMD"; then
9251  if test -n "$ac_tool_prefix"; then
9252    echo "$as_me:$LINENO: checking for file" >&5
9253echo $ECHO_N "checking for file... $ECHO_C" >&6
9254if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9255  echo $ECHO_N "(cached) $ECHO_C" >&6
9256else
9257  case $MAGIC_CMD in
9258[\\/*] |  ?:[\\/]*)
9259  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9260  ;;
9261*)
9262  lt_save_MAGIC_CMD="$MAGIC_CMD"
9263  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9264  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9265  for ac_dir in $ac_dummy; do
9266    IFS="$lt_save_ifs"
9267    test -z "$ac_dir" && ac_dir=.
9268    if test -f $ac_dir/file; then
9269      lt_cv_path_MAGIC_CMD="$ac_dir/file"
9270      if test -n "$file_magic_test_file"; then
9271	case $deplibs_check_method in
9272	"file_magic "*)
9273	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9274	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9275	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9276	    $EGREP "$file_magic_regex" > /dev/null; then
9277	    :
9278	  else
9279	    cat <<EOF 1>&2
9280
9281*** Warning: the command libtool uses to detect shared libraries,
9282*** $file_magic_cmd, produces output that libtool cannot recognize.
9283*** The result is that libtool may fail to recognize shared libraries
9284*** as such.  This will affect the creation of libtool libraries that
9285*** depend on shared libraries, but programs linked with such libtool
9286*** libraries will work regardless of this problem.  Nevertheless, you
9287*** may want to report the problem to your system manager and/or to
9288*** bug-libtool@gnu.org
9289
9290EOF
9291	  fi ;;
9292	esac
9293      fi
9294      break
9295    fi
9296  done
9297  IFS="$lt_save_ifs"
9298  MAGIC_CMD="$lt_save_MAGIC_CMD"
9299  ;;
9300esac
9301fi
9302
9303MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9304if test -n "$MAGIC_CMD"; then
9305  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9306echo "${ECHO_T}$MAGIC_CMD" >&6
9307else
9308  echo "$as_me:$LINENO: result: no" >&5
9309echo "${ECHO_T}no" >&6
9310fi
9311
9312  else
9313    MAGIC_CMD=:
9314  fi
9315fi
9316
9317  fi
9318  ;;
9319esac
9320
9321enable_dlopen=no
9322enable_win32_dll=no
9323
9324# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
9325if test "${enable_libtool_lock+set}" = set; then
9326  enableval="$enable_libtool_lock"
9327
9328fi;
9329test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9330
9331
9332# Check whether --with-pic or --without-pic was given.
9333if test "${with_pic+set}" = set; then
9334  withval="$with_pic"
9335  pic_mode="$withval"
9336else
9337  pic_mode=default
9338fi;
9339test -z "$pic_mode" && pic_mode=default
9340
9341# Use C for the default configuration in the libtool script
9342tagname=
9343lt_save_CC="$CC"
9344ac_ext=c
9345ac_cpp='$CPP $CPPFLAGS'
9346ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9347ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9348ac_compiler_gnu=$ac_cv_c_compiler_gnu
9349
9350
9351# Source file extension for C test sources.
9352ac_ext=c
9353
9354# Object file extension for compiled C test sources.
9355objext=o
9356objext=$objext
9357
9358# Code to be used in simple compile tests
9359lt_simple_compile_test_code="int some_variable = 0;\n"
9360
9361# Code to be used in simple link tests
9362lt_simple_link_test_code='int main(){return(0);}\n'
9363
9364
9365# If no C compiler was specified, use CC.
9366LTCC=${LTCC-"$CC"}
9367
9368# If no C compiler flags were specified, use CFLAGS.
9369LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9370
9371# Allow CC to be a program name with arguments.
9372compiler=$CC
9373
9374
9375# save warnings/boilerplate of simple test code
9376ac_outfile=conftest.$ac_objext
9377printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9378eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9379_lt_compiler_boilerplate=`cat conftest.err`
9380$rm conftest*
9381
9382ac_outfile=conftest.$ac_objext
9383printf "$lt_simple_link_test_code" >conftest.$ac_ext
9384eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9385_lt_linker_boilerplate=`cat conftest.err`
9386$rm conftest*
9387
9388
9389## CAVEAT EMPTOR:
9390## There is no encapsulation within the following macros, do not change
9391## the running order or otherwise move them around unless you know exactly
9392## what you are doing...
9393
9394lt_prog_compiler_no_builtin_flag=
9395
9396if test "$GCC" = yes; then
9397  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9398
9399
9400echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9401echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
9402if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9403  echo $ECHO_N "(cached) $ECHO_C" >&6
9404else
9405  lt_cv_prog_compiler_rtti_exceptions=no
9406  ac_outfile=conftest.$ac_objext
9407   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9408   lt_compiler_flag="-fno-rtti -fno-exceptions"
9409   # Insert the option either (1) after the last *FLAGS variable, or
9410   # (2) before a word containing "conftest.", or (3) at the end.
9411   # Note that $ac_compile itself does not contain backslashes and begins
9412   # with a dollar sign (not a hyphen), so the echo should work correctly.
9413   # The option is referenced via a variable to avoid confusing sed.
9414   lt_compile=`echo "$ac_compile" | $SED \
9415   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9416   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9417   -e 's:$: $lt_compiler_flag:'`
9418   (eval echo "\"\$as_me:9418: $lt_compile\"" >&5)
9419   (eval "$lt_compile" 2>conftest.err)
9420   ac_status=$?
9421   cat conftest.err >&5
9422   echo "$as_me:9422: \$? = $ac_status" >&5
9423   if (exit $ac_status) && test -s "$ac_outfile"; then
9424     # The compiler can only warn and ignore the option if not recognized
9425     # So say no if there are warnings other than the usual output.
9426     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9427     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9428     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9429       lt_cv_prog_compiler_rtti_exceptions=yes
9430     fi
9431   fi
9432   $rm conftest*
9433
9434fi
9435echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9436echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
9437
9438if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9439    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9440else
9441    :
9442fi
9443
9444fi
9445
9446lt_prog_compiler_wl=
9447lt_prog_compiler_pic=
9448lt_prog_compiler_static=
9449
9450echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9451echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
9452
9453  if test "$GCC" = yes; then
9454    lt_prog_compiler_wl='-Wl,'
9455    lt_prog_compiler_static='-static'
9456
9457    case $host_os in
9458      aix*)
9459      # All AIX code is PIC.
9460      if test "$host_cpu" = ia64; then
9461	# AIX 5 now supports IA64 processor
9462	lt_prog_compiler_static='-Bstatic'
9463      fi
9464      ;;
9465
9466    amigaos*)
9467      # FIXME: we need at least 68020 code to build shared libraries, but
9468      # adding the `-m68020' flag to GCC prevents building anything better,
9469      # like `-m68040'.
9470      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9471      ;;
9472
9473    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9474      # PIC is the default for these OSes.
9475      ;;
9476
9477    mingw* | pw32* | os2*)
9478      # This hack is so that the source file can tell whether it is being
9479      # built for inclusion in a dll (and should export symbols for example).
9480      lt_prog_compiler_pic='-DDLL_EXPORT'
9481      ;;
9482
9483    darwin* | rhapsody*)
9484      # PIC is the default on this platform
9485      # Common symbols not allowed in MH_DYLIB files
9486      lt_prog_compiler_pic='-fno-common'
9487      ;;
9488
9489    interix3*)
9490      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9491      # Instead, we relocate shared libraries at runtime.
9492      ;;
9493
9494    msdosdjgpp*)
9495      # Just because we use GCC doesn't mean we suddenly get shared libraries
9496      # on systems that don't support them.
9497      lt_prog_compiler_can_build_shared=no
9498      enable_shared=no
9499      ;;
9500
9501    sysv4*MP*)
9502      if test -d /usr/nec; then
9503	lt_prog_compiler_pic=-Kconform_pic
9504      fi
9505      ;;
9506
9507    hpux*)
9508      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9509      # not for PA HP-UX.
9510      case $host_cpu in
9511      hppa*64*|ia64*)
9512	# +Z the default
9513	;;
9514      *)
9515	lt_prog_compiler_pic='-fPIC'
9516	;;
9517      esac
9518      ;;
9519
9520    *)
9521      lt_prog_compiler_pic='-fPIC'
9522      ;;
9523    esac
9524  else
9525    # PORTME Check for flag to pass linker flags through the system compiler.
9526    case $host_os in
9527    aix*)
9528      lt_prog_compiler_wl='-Wl,'
9529      if test "$host_cpu" = ia64; then
9530	# AIX 5 now supports IA64 processor
9531	lt_prog_compiler_static='-Bstatic'
9532      else
9533	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9534      fi
9535      ;;
9536      darwin*)
9537        # PIC is the default on this platform
9538        # Common symbols not allowed in MH_DYLIB files
9539       case $cc_basename in
9540         xlc*)
9541         lt_prog_compiler_pic='-qnocommon'
9542         lt_prog_compiler_wl='-Wl,'
9543         ;;
9544       esac
9545       ;;
9546
9547    mingw* | pw32* | os2*)
9548      # This hack is so that the source file can tell whether it is being
9549      # built for inclusion in a dll (and should export symbols for example).
9550      lt_prog_compiler_pic='-DDLL_EXPORT'
9551      ;;
9552
9553    hpux9* | hpux10* | hpux11*)
9554      lt_prog_compiler_wl='-Wl,'
9555      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9556      # not for PA HP-UX.
9557      case $host_cpu in
9558      hppa*64*|ia64*)
9559	# +Z the default
9560	;;
9561      *)
9562	lt_prog_compiler_pic='+Z'
9563	;;
9564      esac
9565      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9566      lt_prog_compiler_static='${wl}-a ${wl}archive'
9567      ;;
9568
9569    irix5* | irix6* | nonstopux*)
9570      lt_prog_compiler_wl='-Wl,'
9571      # PIC (with -KPIC) is the default.
9572      lt_prog_compiler_static='-non_shared'
9573      ;;
9574
9575    newsos6)
9576      lt_prog_compiler_pic='-KPIC'
9577      lt_prog_compiler_static='-Bstatic'
9578      ;;
9579
9580    linux*)
9581      case $cc_basename in
9582      icc* | ecc*)
9583	lt_prog_compiler_wl='-Wl,'
9584	lt_prog_compiler_pic='-KPIC'
9585	lt_prog_compiler_static='-static'
9586        ;;
9587      pgcc* | pgf77* | pgf90* | pgf95*)
9588        # Portland Group compilers (*not* the Pentium gcc compiler,
9589	# which looks to be a dead project)
9590	lt_prog_compiler_wl='-Wl,'
9591	lt_prog_compiler_pic='-fpic'
9592	lt_prog_compiler_static='-Bstatic'
9593        ;;
9594      ccc*)
9595        lt_prog_compiler_wl='-Wl,'
9596        # All Alpha code is PIC.
9597        lt_prog_compiler_static='-non_shared'
9598        ;;
9599      esac
9600      ;;
9601
9602    osf3* | osf4* | osf5*)
9603      lt_prog_compiler_wl='-Wl,'
9604      # All OSF/1 code is PIC.
9605      lt_prog_compiler_static='-non_shared'
9606      ;;
9607
9608    solaris*)
9609      lt_prog_compiler_pic='-KPIC'
9610      lt_prog_compiler_static='-Bstatic'
9611      case $cc_basename in
9612      f77* | f90* | f95*)
9613	lt_prog_compiler_wl='-Qoption ld ';;
9614      *)
9615	lt_prog_compiler_wl='-Wl,';;
9616      esac
9617      ;;
9618
9619    sunos4*)
9620      lt_prog_compiler_wl='-Qoption ld '
9621      lt_prog_compiler_pic='-PIC'
9622      lt_prog_compiler_static='-Bstatic'
9623      ;;
9624
9625    sysv4 | sysv4.2uw2* | sysv4.3*)
9626      lt_prog_compiler_wl='-Wl,'
9627      lt_prog_compiler_pic='-KPIC'
9628      lt_prog_compiler_static='-Bstatic'
9629      ;;
9630
9631    sysv4*MP*)
9632      if test -d /usr/nec ;then
9633	lt_prog_compiler_pic='-Kconform_pic'
9634	lt_prog_compiler_static='-Bstatic'
9635      fi
9636      ;;
9637
9638    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9639      lt_prog_compiler_wl='-Wl,'
9640      lt_prog_compiler_pic='-KPIC'
9641      lt_prog_compiler_static='-Bstatic'
9642      ;;
9643
9644    unicos*)
9645      lt_prog_compiler_wl='-Wl,'
9646      lt_prog_compiler_can_build_shared=no
9647      ;;
9648
9649    uts4*)
9650      lt_prog_compiler_pic='-pic'
9651      lt_prog_compiler_static='-Bstatic'
9652      ;;
9653
9654    *)
9655      lt_prog_compiler_can_build_shared=no
9656      ;;
9657    esac
9658  fi
9659
9660echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9661echo "${ECHO_T}$lt_prog_compiler_pic" >&6
9662
9663#
9664# Check to make sure the PIC flag actually works.
9665#
9666if test -n "$lt_prog_compiler_pic"; then
9667
9668echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9669echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
9670if test "${lt_prog_compiler_pic_works+set}" = set; then
9671  echo $ECHO_N "(cached) $ECHO_C" >&6
9672else
9673  lt_prog_compiler_pic_works=no
9674  ac_outfile=conftest.$ac_objext
9675   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9676   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9677   # Insert the option either (1) after the last *FLAGS variable, or
9678   # (2) before a word containing "conftest.", or (3) at the end.
9679   # Note that $ac_compile itself does not contain backslashes and begins
9680   # with a dollar sign (not a hyphen), so the echo should work correctly.
9681   # The option is referenced via a variable to avoid confusing sed.
9682   lt_compile=`echo "$ac_compile" | $SED \
9683   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9684   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9685   -e 's:$: $lt_compiler_flag:'`
9686   (eval echo "\"\$as_me:9686: $lt_compile\"" >&5)
9687   (eval "$lt_compile" 2>conftest.err)
9688   ac_status=$?
9689   cat conftest.err >&5
9690   echo "$as_me:9690: \$? = $ac_status" >&5
9691   if (exit $ac_status) && test -s "$ac_outfile"; then
9692     # The compiler can only warn and ignore the option if not recognized
9693     # So say no if there are warnings other than the usual output.
9694     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9695     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9696     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9697       lt_prog_compiler_pic_works=yes
9698     fi
9699   fi
9700   $rm conftest*
9701
9702fi
9703echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9704echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
9705
9706if test x"$lt_prog_compiler_pic_works" = xyes; then
9707    case $lt_prog_compiler_pic in
9708     "" | " "*) ;;
9709     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9710     esac
9711else
9712    lt_prog_compiler_pic=
9713     lt_prog_compiler_can_build_shared=no
9714fi
9715
9716fi
9717case $host_os in
9718  # For platforms which do not support PIC, -DPIC is meaningless:
9719  *djgpp*)
9720    lt_prog_compiler_pic=
9721    ;;
9722  *)
9723    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9724    ;;
9725esac
9726
9727#
9728# Check to make sure the static flag actually works.
9729#
9730wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9731echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9732echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
9733if test "${lt_prog_compiler_static_works+set}" = set; then
9734  echo $ECHO_N "(cached) $ECHO_C" >&6
9735else
9736  lt_prog_compiler_static_works=no
9737   save_LDFLAGS="$LDFLAGS"
9738   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9739   printf "$lt_simple_link_test_code" > conftest.$ac_ext
9740   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9741     # The linker can only warn and ignore the option if not recognized
9742     # So say no if there are warnings
9743     if test -s conftest.err; then
9744       # Append any errors to the config.log.
9745       cat conftest.err 1>&5
9746       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9747       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9748       if diff conftest.exp conftest.er2 >/dev/null; then
9749         lt_prog_compiler_static_works=yes
9750       fi
9751     else
9752       lt_prog_compiler_static_works=yes
9753     fi
9754   fi
9755   $rm conftest*
9756   LDFLAGS="$save_LDFLAGS"
9757
9758fi
9759echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9760echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
9761
9762if test x"$lt_prog_compiler_static_works" = xyes; then
9763    :
9764else
9765    lt_prog_compiler_static=
9766fi
9767
9768
9769echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9770echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
9771if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9772  echo $ECHO_N "(cached) $ECHO_C" >&6
9773else
9774  lt_cv_prog_compiler_c_o=no
9775   $rm -r conftest 2>/dev/null
9776   mkdir conftest
9777   cd conftest
9778   mkdir out
9779   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9780
9781   lt_compiler_flag="-o out/conftest2.$ac_objext"
9782   # Insert the option either (1) after the last *FLAGS variable, or
9783   # (2) before a word containing "conftest.", or (3) at the end.
9784   # Note that $ac_compile itself does not contain backslashes and begins
9785   # with a dollar sign (not a hyphen), so the echo should work correctly.
9786   lt_compile=`echo "$ac_compile" | $SED \
9787   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9788   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9789   -e 's:$: $lt_compiler_flag:'`
9790   (eval echo "\"\$as_me:9790: $lt_compile\"" >&5)
9791   (eval "$lt_compile" 2>out/conftest.err)
9792   ac_status=$?
9793   cat out/conftest.err >&5
9794   echo "$as_me:9794: \$? = $ac_status" >&5
9795   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9796   then
9797     # The compiler can only warn and ignore the option if not recognized
9798     # So say no if there are warnings
9799     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9800     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9801     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9802       lt_cv_prog_compiler_c_o=yes
9803     fi
9804   fi
9805   chmod u+w . 2>&5
9806   $rm conftest*
9807   # SGI C++ compiler will create directory out/ii_files/ for
9808   # template instantiation
9809   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9810   $rm out/* && rmdir out
9811   cd ..
9812   rmdir conftest
9813   $rm conftest*
9814
9815fi
9816echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9817echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
9818
9819
9820hard_links="nottested"
9821if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9822  # do not overwrite the value of need_locks provided by the user
9823  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9824echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
9825  hard_links=yes
9826  $rm conftest*
9827  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9828  touch conftest.a
9829  ln conftest.a conftest.b 2>&5 || hard_links=no
9830  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9831  echo "$as_me:$LINENO: result: $hard_links" >&5
9832echo "${ECHO_T}$hard_links" >&6
9833  if test "$hard_links" = no; then
9834    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9835echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9836    need_locks=warn
9837  fi
9838else
9839  need_locks=no
9840fi
9841
9842echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9843echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9844
9845  runpath_var=
9846  allow_undefined_flag=
9847  enable_shared_with_static_runtimes=no
9848  archive_cmds=
9849  archive_expsym_cmds=
9850  old_archive_From_new_cmds=
9851  old_archive_from_expsyms_cmds=
9852  export_dynamic_flag_spec=
9853  whole_archive_flag_spec=
9854  thread_safe_flag_spec=
9855  hardcode_libdir_flag_spec=
9856  hardcode_libdir_flag_spec_ld=
9857  hardcode_libdir_separator=
9858  hardcode_direct=no
9859  hardcode_minus_L=no
9860  hardcode_shlibpath_var=unsupported
9861  link_all_deplibs=unknown
9862  hardcode_automatic=no
9863  module_cmds=
9864  module_expsym_cmds=
9865  always_export_symbols=no
9866  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9867  # include_expsyms should be a list of space-separated symbols to be *always*
9868  # included in the symbol list
9869  include_expsyms=
9870  # exclude_expsyms can be an extended regexp of symbols to exclude
9871  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9872  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9873  # as well as any symbol that contains `d'.
9874  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9875  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9876  # platforms (ab)use it in PIC code, but their linkers get confused if
9877  # the symbol is explicitly referenced.  Since portable code cannot
9878  # rely on this symbol name, it's probably fine to never include it in
9879  # preloaded symbol tables.
9880  extract_expsyms_cmds=
9881  # Just being paranoid about ensuring that cc_basename is set.
9882  for cc_temp in $compiler""; do
9883  case $cc_temp in
9884    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9885    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9886    \-*) ;;
9887    *) break;;
9888  esac
9889done
9890cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9891
9892  case $host_os in
9893  cygwin* | mingw* | pw32*)
9894    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9895    # When not using gcc, we currently assume that we are using
9896    # Microsoft Visual C++.
9897    if test "$GCC" != yes; then
9898      with_gnu_ld=no
9899    fi
9900    ;;
9901  interix*)
9902    # we just hope/assume this is gcc and not c89 (= MSVC++)
9903    with_gnu_ld=yes
9904    ;;
9905  openbsd*)
9906    with_gnu_ld=no
9907    ;;
9908  esac
9909
9910  ld_shlibs=yes
9911  if test "$with_gnu_ld" = yes; then
9912    # If archive_cmds runs LD, not CC, wlarc should be empty
9913    wlarc='${wl}'
9914
9915    # Set some defaults for GNU ld with shared library support. These
9916    # are reset later if shared libraries are not supported. Putting them
9917    # here allows them to be overridden if necessary.
9918    runpath_var=LD_RUN_PATH
9919    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9920    export_dynamic_flag_spec='${wl}--export-dynamic'
9921    # ancient GNU ld didn't support --whole-archive et. al.
9922    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9923	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9924      else
9925  	whole_archive_flag_spec=
9926    fi
9927    supports_anon_versioning=no
9928    case `$LD -v 2>/dev/null` in
9929      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9930      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9931      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9932      *\ 2.11.*) ;; # other 2.11 versions
9933      *) supports_anon_versioning=yes ;;
9934    esac
9935
9936    # See if GNU ld supports shared libraries.
9937    case $host_os in
9938    aix3* | aix4* | aix5*)
9939      # On AIX/PPC, the GNU linker is very broken
9940      if test "$host_cpu" != ia64; then
9941	ld_shlibs=no
9942	cat <<EOF 1>&2
9943
9944*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9945*** to be unable to reliably create shared libraries on AIX.
9946*** Therefore, libtool is disabling shared libraries support.  If you
9947*** really care for shared libraries, you may want to modify your PATH
9948*** so that a non-GNU linker is found, and then restart.
9949
9950EOF
9951      fi
9952      ;;
9953
9954    amigaos*)
9955      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)'
9956      hardcode_libdir_flag_spec='-L$libdir'
9957      hardcode_minus_L=yes
9958
9959      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9960      # that the semantics of dynamic libraries on AmigaOS, at least up
9961      # to version 4, is to share data among multiple programs linked
9962      # with the same dynamic library.  Since this doesn't match the
9963      # behavior of shared libraries on other platforms, we can't use
9964      # them.
9965      ld_shlibs=no
9966      ;;
9967
9968    beos*)
9969      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9970	allow_undefined_flag=unsupported
9971	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9972	# support --undefined.  This deserves some investigation.  FIXME
9973	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9974      else
9975	ld_shlibs=no
9976      fi
9977      ;;
9978
9979    cygwin* | mingw* | pw32*)
9980      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9981      # as there is no search path for DLLs.
9982      hardcode_libdir_flag_spec='-L$libdir'
9983      allow_undefined_flag=unsupported
9984      always_export_symbols=no
9985      enable_shared_with_static_runtimes=yes
9986      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9987
9988      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9989        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9990	# If the export-symbols file already is a .def file (1st line
9991	# is EXPORTS), use it as is; otherwise, prepend...
9992	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9993	  cp $export_symbols $output_objdir/$soname.def;
9994	else
9995	  echo EXPORTS > $output_objdir/$soname.def;
9996	  cat $export_symbols >> $output_objdir/$soname.def;
9997	fi~
9998	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9999      else
10000	ld_shlibs=no
10001      fi
10002      ;;
10003
10004    interix3*)
10005      hardcode_direct=no
10006      hardcode_shlibpath_var=no
10007      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10008      export_dynamic_flag_spec='${wl}-E'
10009      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10010      # Instead, shared libraries are loaded at an image base (0x10000000 by
10011      # default) and relocated if they conflict, which is a slow very memory
10012      # consuming and fragmenting process.  To avoid this, we pick a random,
10013      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10014      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10015      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10016      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'
10017      ;;
10018
10019    linux*)
10020      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10021	tmp_addflag=
10022	case $cc_basename,$host_cpu in
10023	pgcc*)				# Portland Group C compiler
10024	  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'
10025	  tmp_addflag=' $pic_flag'
10026	  ;;
10027	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
10028	  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'
10029	  tmp_addflag=' $pic_flag -Mnomain' ;;
10030	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
10031	  tmp_addflag=' -i_dynamic' ;;
10032	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10033	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10034	ifc* | ifort*)			# Intel Fortran compiler
10035	  tmp_addflag=' -nofor_main' ;;
10036	esac
10037	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10038
10039	if test $supports_anon_versioning = yes; then
10040	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
10041  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10042  $echo "local: *; };" >> $output_objdir/$libname.ver~
10043	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10044	fi
10045      else
10046	ld_shlibs=no
10047      fi
10048      ;;
10049
10050    netbsd*)
10051      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10052	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10053	wlarc=
10054      else
10055	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10056	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10057      fi
10058      ;;
10059
10060    solaris*)
10061      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
10062	ld_shlibs=no
10063	cat <<EOF 1>&2
10064
10065*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10066*** create shared libraries on Solaris systems.  Therefore, libtool
10067*** is disabling shared libraries support.  We urge you to upgrade GNU
10068*** binutils to release 2.9.1 or newer.  Another option is to modify
10069*** your PATH or compiler configuration so that the native linker is
10070*** used, and then restart.
10071
10072EOF
10073      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10074	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10075	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10076      else
10077	ld_shlibs=no
10078      fi
10079      ;;
10080
10081    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10082      case `$LD -v 2>&1` in
10083        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10084	ld_shlibs=no
10085	cat <<_LT_EOF 1>&2
10086
10087*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10088*** reliably create shared libraries on SCO systems.  Therefore, libtool
10089*** is disabling shared libraries support.  We urge you to upgrade GNU
10090*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10091*** your PATH or compiler configuration so that the native linker is
10092*** used, and then restart.
10093
10094_LT_EOF
10095	;;
10096	*)
10097	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10098	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
10099	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
10100	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
10101	  else
10102	    ld_shlibs=no
10103	  fi
10104	;;
10105      esac
10106      ;;
10107
10108    sunos4*)
10109      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10110      wlarc=
10111      hardcode_direct=yes
10112      hardcode_shlibpath_var=no
10113      ;;
10114
10115    *)
10116      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10117	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10118	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10119      else
10120	ld_shlibs=no
10121      fi
10122      ;;
10123    esac
10124
10125    if test "$ld_shlibs" = no; then
10126      runpath_var=
10127      hardcode_libdir_flag_spec=
10128      export_dynamic_flag_spec=
10129      whole_archive_flag_spec=
10130    fi
10131  else
10132    # PORTME fill in a description of your system's linker (not GNU ld)
10133    case $host_os in
10134    aix3*)
10135      allow_undefined_flag=unsupported
10136      always_export_symbols=yes
10137      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'
10138      # Note: this linker hardcodes the directories in LIBPATH if there
10139      # are no directories specified by -L.
10140      hardcode_minus_L=yes
10141      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10142	# Neither direct hardcoding nor static linking is supported with a
10143	# broken collect2.
10144	hardcode_direct=unsupported
10145      fi
10146      ;;
10147
10148    aix4* | aix5*)
10149      if test "$host_cpu" = ia64; then
10150	# On IA64, the linker does run time linking by default, so we don't
10151	# have to do anything special.
10152	aix_use_runtimelinking=no
10153	exp_sym_flag='-Bexport'
10154	no_entry_flag=""
10155      else
10156	# If we're using GNU nm, then we don't want the "-C" option.
10157	# -C means demangle to AIX nm, but means don't demangle with GNU nm
10158	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10159	  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'
10160	else
10161	  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'
10162	fi
10163	aix_use_runtimelinking=no
10164
10165	# Test if we are trying to use run time linking or normal
10166	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10167	# need to do runtime linking.
10168	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10169	  for ld_flag in $LDFLAGS; do
10170  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10171  	    aix_use_runtimelinking=yes
10172  	    break
10173  	  fi
10174	  done
10175	  ;;
10176	esac
10177
10178	exp_sym_flag='-bexport'
10179	no_entry_flag='-bnoentry'
10180      fi
10181
10182      # When large executables or shared objects are built, AIX ld can
10183      # have problems creating the table of contents.  If linking a library
10184      # or program results in "error TOC overflow" add -mminimal-toc to
10185      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10186      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10187
10188      archive_cmds=''
10189      hardcode_direct=yes
10190      hardcode_libdir_separator=':'
10191      link_all_deplibs=yes
10192
10193      if test "$GCC" = yes; then
10194	case $host_os in aix4.[012]|aix4.[012].*)
10195	# We only want to do this on AIX 4.2 and lower, the check
10196	# below for broken collect2 doesn't work under 4.3+
10197	  collect2name=`${CC} -print-prog-name=collect2`
10198	  if test -f "$collect2name" && \
10199  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
10200	  then
10201  	  # We have reworked collect2
10202  	  hardcode_direct=yes
10203	  else
10204  	  # We have old collect2
10205  	  hardcode_direct=unsupported
10206  	  # It fails to find uninstalled libraries when the uninstalled
10207  	  # path is not listed in the libpath.  Setting hardcode_minus_L
10208  	  # to unsupported forces relinking
10209  	  hardcode_minus_L=yes
10210  	  hardcode_libdir_flag_spec='-L$libdir'
10211  	  hardcode_libdir_separator=
10212	  fi
10213	  ;;
10214	esac
10215	shared_flag='-shared'
10216	if test "$aix_use_runtimelinking" = yes; then
10217	  shared_flag="$shared_flag "'${wl}-G'
10218	fi
10219      else
10220	# not using gcc
10221	if test "$host_cpu" = ia64; then
10222  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10223  	# chokes on -Wl,-G. The following line is correct:
10224	  shared_flag='-G'
10225	else
10226	  if test "$aix_use_runtimelinking" = yes; then
10227	    shared_flag='${wl}-G'
10228	  else
10229	    shared_flag='${wl}-bM:SRE'
10230	  fi
10231	fi
10232      fi
10233
10234      # It seems that -bexpall does not export symbols beginning with
10235      # underscore (_), so it is better to generate a list of symbols to export.
10236      always_export_symbols=yes
10237      if test "$aix_use_runtimelinking" = yes; then
10238	# Warning - without using the other runtime loading flags (-brtl),
10239	# -berok will link without error, but may produce a broken library.
10240	allow_undefined_flag='-berok'
10241       # Determine the default libpath from the value encoded in an empty executable.
10242       cat >conftest.$ac_ext <<_ACEOF
10243/* confdefs.h.  */
10244_ACEOF
10245cat confdefs.h >>conftest.$ac_ext
10246cat >>conftest.$ac_ext <<_ACEOF
10247/* end confdefs.h.  */
10248
10249#ifdef F77_DUMMY_MAIN
10250
10251#  ifdef __cplusplus
10252     extern "C"
10253#  endif
10254   int F77_DUMMY_MAIN() { return 1; }
10255
10256#endif
10257int
10258main ()
10259{
10260
10261  ;
10262  return 0;
10263}
10264_ACEOF
10265rm -f conftest.$ac_objext conftest$ac_exeext
10266if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10267  (eval $ac_link) 2>conftest.er1
10268  ac_status=$?
10269  grep -v '^ *+' conftest.er1 >conftest.err
10270  rm -f conftest.er1
10271  cat conftest.err >&5
10272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10273  (exit $ac_status); } &&
10274	 { ac_try='test -z "$ac_c_werror_flag"
10275			 || test ! -s conftest.err'
10276  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10277  (eval $ac_try) 2>&5
10278  ac_status=$?
10279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10280  (exit $ac_status); }; } &&
10281	 { ac_try='test -s conftest$ac_exeext'
10282  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10283  (eval $ac_try) 2>&5
10284  ac_status=$?
10285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10286  (exit $ac_status); }; }; then
10287
10288aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10289}'`
10290# Check for a 64-bit object if we didn't find anything.
10291if 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; }
10292}'`; fi
10293else
10294  echo "$as_me: failed program was:" >&5
10295sed 's/^/| /' conftest.$ac_ext >&5
10296
10297fi
10298rm -f conftest.err conftest.$ac_objext \
10299      conftest$ac_exeext conftest.$ac_ext
10300if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10301
10302       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10303	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"
10304       else
10305	if test "$host_cpu" = ia64; then
10306	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10307	  allow_undefined_flag="-z nodefs"
10308	  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"
10309	else
10310	 # Determine the default libpath from the value encoded in an empty executable.
10311	 cat >conftest.$ac_ext <<_ACEOF
10312/* confdefs.h.  */
10313_ACEOF
10314cat confdefs.h >>conftest.$ac_ext
10315cat >>conftest.$ac_ext <<_ACEOF
10316/* end confdefs.h.  */
10317
10318#ifdef F77_DUMMY_MAIN
10319
10320#  ifdef __cplusplus
10321     extern "C"
10322#  endif
10323   int F77_DUMMY_MAIN() { return 1; }
10324
10325#endif
10326int
10327main ()
10328{
10329
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
10357aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10358}'`
10359# Check for a 64-bit object if we didn't find anything.
10360if 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; }
10361}'`; fi
10362else
10363  echo "$as_me: failed program was:" >&5
10364sed 's/^/| /' conftest.$ac_ext >&5
10365
10366fi
10367rm -f conftest.err conftest.$ac_objext \
10368      conftest$ac_exeext conftest.$ac_ext
10369if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10370
10371	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10372	  # Warning - without using the other run time loading flags,
10373	  # -berok will link without error, but may produce a broken library.
10374	  no_undefined_flag=' ${wl}-bernotok'
10375	  allow_undefined_flag=' ${wl}-berok'
10376	  # Exported symbols can be pulled into shared objects from archives
10377	  whole_archive_flag_spec='$convenience'
10378	  archive_cmds_need_lc=yes
10379	  # This is similar to how AIX traditionally builds its shared libraries.
10380	  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'
10381	fi
10382      fi
10383      ;;
10384
10385    amigaos*)
10386      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)'
10387      hardcode_libdir_flag_spec='-L$libdir'
10388      hardcode_minus_L=yes
10389      # see comment about different semantics on the GNU ld section
10390      ld_shlibs=no
10391      ;;
10392
10393    bsdi[45]*)
10394      export_dynamic_flag_spec=-rdynamic
10395      ;;
10396
10397    cygwin* | mingw* | pw32*)
10398      # When not using gcc, we currently assume that we are using
10399      # Microsoft Visual C++.
10400      # hardcode_libdir_flag_spec is actually meaningless, as there is
10401      # no search path for DLLs.
10402      hardcode_libdir_flag_spec=' '
10403      allow_undefined_flag=unsupported
10404      # Tell ltmain to make .lib files, not .a files.
10405      libext=lib
10406      # Tell ltmain to make .dll files, not .so files.
10407      shrext_cmds=".dll"
10408      # FIXME: Setting linknames here is a bad hack.
10409      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
10410      # The linker will automatically build a .lib file if we build a DLL.
10411      old_archive_From_new_cmds='true'
10412      # FIXME: Should let the user specify the lib program.
10413      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
10414      fix_srcfile_path='`cygpath -w "$srcfile"`'
10415      enable_shared_with_static_runtimes=yes
10416      ;;
10417
10418    darwin* | rhapsody*)
10419      case $host_os in
10420        rhapsody* | darwin1.[012])
10421         allow_undefined_flag='${wl}-undefined ${wl}suppress'
10422         ;;
10423       *) # Darwin 1.3 on
10424         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10425           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10426         else
10427           case ${MACOSX_DEPLOYMENT_TARGET} in
10428             10.[012])
10429               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10430               ;;
10431             10.*)
10432               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
10433               ;;
10434           esac
10435         fi
10436         ;;
10437      esac
10438      archive_cmds_need_lc=no
10439      hardcode_direct=no
10440      hardcode_automatic=yes
10441      hardcode_shlibpath_var=unsupported
10442      whole_archive_flag_spec=''
10443      link_all_deplibs=yes
10444    if test "$GCC" = yes ; then
10445    	output_verbose_link_cmd='echo'
10446        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10447      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10448      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10449      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}'
10450      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}'
10451    else
10452      case $cc_basename in
10453        xlc*)
10454         output_verbose_link_cmd='echo'
10455         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10456         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10457          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10458         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}'
10459          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}'
10460          ;;
10461       *)
10462         ld_shlibs=no
10463          ;;
10464      esac
10465    fi
10466      ;;
10467
10468    dgux*)
10469      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10470      hardcode_libdir_flag_spec='-L$libdir'
10471      hardcode_shlibpath_var=no
10472      ;;
10473
10474    freebsd1*)
10475      ld_shlibs=no
10476      ;;
10477
10478    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10479    # support.  Future versions do this automatically, but an explicit c++rt0.o
10480    # does not break anything, and helps significantly (at the cost of a little
10481    # extra space).
10482    freebsd2.2*)
10483      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10484      hardcode_libdir_flag_spec='-R$libdir'
10485      hardcode_direct=yes
10486      hardcode_shlibpath_var=no
10487      ;;
10488
10489    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10490    freebsd2*)
10491      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10492      hardcode_direct=yes
10493      hardcode_minus_L=yes
10494      hardcode_shlibpath_var=no
10495      ;;
10496
10497    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10498    freebsd* | kfreebsd*-gnu | dragonfly*)
10499      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10500      hardcode_libdir_flag_spec='-R$libdir'
10501      hardcode_direct=yes
10502      hardcode_shlibpath_var=no
10503      ;;
10504
10505    hpux9*)
10506      if test "$GCC" = yes; then
10507	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'
10508      else
10509	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'
10510      fi
10511      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10512      hardcode_libdir_separator=:
10513      hardcode_direct=yes
10514
10515      # hardcode_minus_L: Not really in the search PATH,
10516      # but as the default location of the library.
10517      hardcode_minus_L=yes
10518      export_dynamic_flag_spec='${wl}-E'
10519      ;;
10520
10521    hpux10*)
10522      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10523	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10524      else
10525	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10526      fi
10527      if test "$with_gnu_ld" = no; then
10528	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10529	hardcode_libdir_separator=:
10530
10531	hardcode_direct=yes
10532	export_dynamic_flag_spec='${wl}-E'
10533
10534	# hardcode_minus_L: Not really in the search PATH,
10535	# but as the default location of the library.
10536	hardcode_minus_L=yes
10537      fi
10538      ;;
10539
10540    hpux11*)
10541      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10542	case $host_cpu in
10543	hppa*64*)
10544	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10545	  ;;
10546	ia64*)
10547	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10548	  ;;
10549	*)
10550	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10551	  ;;
10552	esac
10553      else
10554	case $host_cpu in
10555	hppa*64*)
10556	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10557	  ;;
10558	ia64*)
10559	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10560	  ;;
10561	*)
10562	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10563	  ;;
10564	esac
10565      fi
10566      if test "$with_gnu_ld" = no; then
10567	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10568	hardcode_libdir_separator=:
10569
10570	case $host_cpu in
10571	hppa*64*|ia64*)
10572	  hardcode_libdir_flag_spec_ld='+b $libdir'
10573	  hardcode_direct=no
10574	  hardcode_shlibpath_var=no
10575	  ;;
10576	*)
10577	  hardcode_direct=yes
10578	  export_dynamic_flag_spec='${wl}-E'
10579
10580	  # hardcode_minus_L: Not really in the search PATH,
10581	  # but as the default location of the library.
10582	  hardcode_minus_L=yes
10583	  ;;
10584	esac
10585      fi
10586      ;;
10587
10588    irix5* | irix6* | nonstopux*)
10589      if test "$GCC" = yes; then
10590	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'
10591      else
10592	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'
10593	hardcode_libdir_flag_spec_ld='-rpath $libdir'
10594      fi
10595      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10596      hardcode_libdir_separator=:
10597      link_all_deplibs=yes
10598      ;;
10599
10600    netbsd*)
10601      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10602	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10603      else
10604	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10605      fi
10606      hardcode_libdir_flag_spec='-R$libdir'
10607      hardcode_direct=yes
10608      hardcode_shlibpath_var=no
10609      ;;
10610
10611    newsos6)
10612      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10613      hardcode_direct=yes
10614      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10615      hardcode_libdir_separator=:
10616      hardcode_shlibpath_var=no
10617      ;;
10618
10619    openbsd*)
10620      hardcode_direct=yes
10621      hardcode_shlibpath_var=no
10622      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10623	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10624	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10625	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10626	export_dynamic_flag_spec='${wl}-E'
10627      else
10628       case $host_os in
10629	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10630	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10631	   hardcode_libdir_flag_spec='-R$libdir'
10632	   ;;
10633	 *)
10634	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10635	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10636	   ;;
10637       esac
10638      fi
10639      ;;
10640
10641    os2*)
10642      hardcode_libdir_flag_spec='-L$libdir'
10643      hardcode_minus_L=yes
10644      allow_undefined_flag=unsupported
10645      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'
10646      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10647      ;;
10648
10649    osf3*)
10650      if test "$GCC" = yes; then
10651	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10652	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'
10653      else
10654	allow_undefined_flag=' -expect_unresolved \*'
10655	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'
10656      fi
10657      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10658      hardcode_libdir_separator=:
10659      ;;
10660
10661    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10662      if test "$GCC" = yes; then
10663	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10664	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'
10665	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10666      else
10667	allow_undefined_flag=' -expect_unresolved \*'
10668	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'
10669	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10670	$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'
10671
10672	# Both c and cxx compiler support -rpath directly
10673	hardcode_libdir_flag_spec='-rpath $libdir'
10674      fi
10675      hardcode_libdir_separator=:
10676      ;;
10677
10678    solaris*)
10679      no_undefined_flag=' -z text'
10680      if test "$GCC" = yes; then
10681	wlarc='${wl}'
10682	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10683	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10684	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10685      else
10686	wlarc=''
10687	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10688	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10689  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10690      fi
10691      hardcode_libdir_flag_spec='-R$libdir'
10692      hardcode_shlibpath_var=no
10693      case $host_os in
10694      solaris2.[0-5] | solaris2.[0-5].*) ;;
10695      *)
10696 	# The compiler driver will combine linker options so we
10697 	# cannot just pass the convience library names through
10698 	# without $wl, iff we do not link with $LD.
10699 	# Luckily, gcc supports the same syntax we need for Sun Studio.
10700 	# Supported since Solaris 2.6 (maybe 2.5.1?)
10701 	case $wlarc in
10702 	'')
10703 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
10704 	*)
10705 	  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' ;;
10706 	esac ;;
10707      esac
10708      link_all_deplibs=yes
10709      ;;
10710
10711    sunos4*)
10712      if test "x$host_vendor" = xsequent; then
10713	# Use $CC to link under sequent, because it throws in some extra .o
10714	# files that make .init and .fini sections work.
10715	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10716      else
10717	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10718      fi
10719      hardcode_libdir_flag_spec='-L$libdir'
10720      hardcode_direct=yes
10721      hardcode_minus_L=yes
10722      hardcode_shlibpath_var=no
10723      ;;
10724
10725    sysv4)
10726      case $host_vendor in
10727	sni)
10728	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10729	  hardcode_direct=yes # is this really true???
10730	;;
10731	siemens)
10732	  ## LD is ld it makes a PLAMLIB
10733	  ## CC just makes a GrossModule.
10734	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10735	  reload_cmds='$CC -r -o $output$reload_objs'
10736	  hardcode_direct=no
10737        ;;
10738	motorola)
10739	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10740	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10741	;;
10742      esac
10743      runpath_var='LD_RUN_PATH'
10744      hardcode_shlibpath_var=no
10745      ;;
10746
10747    sysv4.3*)
10748      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10749      hardcode_shlibpath_var=no
10750      export_dynamic_flag_spec='-Bexport'
10751      ;;
10752
10753    sysv4*MP*)
10754      if test -d /usr/nec; then
10755	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10756	hardcode_shlibpath_var=no
10757	runpath_var=LD_RUN_PATH
10758	hardcode_runpath_var=yes
10759	ld_shlibs=yes
10760      fi
10761      ;;
10762
10763    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
10764      no_undefined_flag='${wl}-z,text'
10765      archive_cmds_need_lc=no
10766      hardcode_shlibpath_var=no
10767      runpath_var='LD_RUN_PATH'
10768
10769      if test "$GCC" = yes; then
10770	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10771	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10772      else
10773	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10774	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10775      fi
10776      ;;
10777
10778    sysv5* | sco3.2v5* | sco5v6*)
10779      # Note: We can NOT use -z defs as we might desire, because we do not
10780      # link with -lc, and that would cause any symbols used from libc to
10781      # always be unresolved, which means just about no library would
10782      # ever link correctly.  If we're not using GNU ld we use -z text
10783      # though, which does catch some bad symbols but isn't as heavy-handed
10784      # as -z defs.
10785      no_undefined_flag='${wl}-z,text'
10786      allow_undefined_flag='${wl}-z,nodefs'
10787      archive_cmds_need_lc=no
10788      hardcode_shlibpath_var=no
10789      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10790      hardcode_libdir_separator=':'
10791      link_all_deplibs=yes
10792      export_dynamic_flag_spec='${wl}-Bexport'
10793      runpath_var='LD_RUN_PATH'
10794
10795      if test "$GCC" = yes; then
10796	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10797	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10798      else
10799	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10800	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10801      fi
10802      ;;
10803
10804    uts4*)
10805      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10806      hardcode_libdir_flag_spec='-L$libdir'
10807      hardcode_shlibpath_var=no
10808      ;;
10809
10810    *)
10811      ld_shlibs=no
10812      ;;
10813    esac
10814  fi
10815
10816echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10817echo "${ECHO_T}$ld_shlibs" >&6
10818test "$ld_shlibs" = no && can_build_shared=no
10819
10820#
10821# Do we need to explicitly link libc?
10822#
10823case "x$archive_cmds_need_lc" in
10824x|xyes)
10825  # Assume -lc should be added
10826  archive_cmds_need_lc=yes
10827
10828  if test "$enable_shared" = yes && test "$GCC" = yes; then
10829    case $archive_cmds in
10830    *'~'*)
10831      # FIXME: we may have to deal with multi-command sequences.
10832      ;;
10833    '$CC '*)
10834      # Test whether the compiler implicitly links with -lc since on some
10835      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10836      # to ld, don't add -lc before -lgcc.
10837      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10838echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10839      $rm conftest*
10840      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10841
10842      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10843  (eval $ac_compile) 2>&5
10844  ac_status=$?
10845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846  (exit $ac_status); } 2>conftest.err; then
10847        soname=conftest
10848        lib=conftest
10849        libobjs=conftest.$ac_objext
10850        deplibs=
10851        wl=$lt_prog_compiler_wl
10852	pic_flag=$lt_prog_compiler_pic
10853        compiler_flags=-v
10854        linker_flags=-v
10855        verstring=
10856        output_objdir=.
10857        libname=conftest
10858        lt_save_allow_undefined_flag=$allow_undefined_flag
10859        allow_undefined_flag=
10860        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10861  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10862  ac_status=$?
10863  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10864  (exit $ac_status); }
10865        then
10866	  archive_cmds_need_lc=no
10867        else
10868	  archive_cmds_need_lc=yes
10869        fi
10870        allow_undefined_flag=$lt_save_allow_undefined_flag
10871      else
10872        cat conftest.err 1>&5
10873      fi
10874      $rm conftest*
10875      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10876echo "${ECHO_T}$archive_cmds_need_lc" >&6
10877      ;;
10878    esac
10879  fi
10880  ;;
10881esac
10882
10883echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10884echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10885library_names_spec=
10886libname_spec='lib$name'
10887soname_spec=
10888shrext_cmds=".so"
10889postinstall_cmds=
10890postuninstall_cmds=
10891finish_cmds=
10892finish_eval=
10893shlibpath_var=
10894shlibpath_overrides_runpath=unknown
10895version_type=none
10896dynamic_linker="$host_os ld.so"
10897sys_lib_dlsearch_path_spec="/lib /usr/lib"
10898if test "$GCC" = yes; then
10899  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10900  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10901    # if the path contains ";" then we assume it to be the separator
10902    # otherwise default to the standard path separator (i.e. ":") - it is
10903    # assumed that no part of a normal pathname contains ";" but that should
10904    # okay in the real world where ";" in dirpaths is itself problematic.
10905    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10906  else
10907    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10908  fi
10909else
10910  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10911fi
10912need_lib_prefix=unknown
10913hardcode_into_libs=no
10914
10915# when you set need_version to no, make sure it does not cause -set_version
10916# flags to be left without arguments
10917need_version=unknown
10918
10919case $host_os in
10920aix3*)
10921  version_type=linux
10922  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10923  shlibpath_var=LIBPATH
10924
10925  # AIX 3 has no versioning support, so we append a major version to the name.
10926  soname_spec='${libname}${release}${shared_ext}$major'
10927  ;;
10928
10929aix4* | aix5*)
10930  version_type=linux
10931  need_lib_prefix=no
10932  need_version=no
10933  hardcode_into_libs=yes
10934  if test "$host_cpu" = ia64; then
10935    # AIX 5 supports IA64
10936    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10937    shlibpath_var=LD_LIBRARY_PATH
10938  else
10939    # With GCC up to 2.95.x, collect2 would create an import file
10940    # for dependence libraries.  The import file would start with
10941    # the line `#! .'.  This would cause the generated library to
10942    # depend on `.', always an invalid library.  This was fixed in
10943    # development snapshots of GCC prior to 3.0.
10944    case $host_os in
10945      aix4 | aix4.[01] | aix4.[01].*)
10946      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10947	   echo ' yes '
10948	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10949	:
10950      else
10951	can_build_shared=no
10952      fi
10953      ;;
10954    esac
10955    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10956    # soname into executable. Probably we can add versioning support to
10957    # collect2, so additional links can be useful in future.
10958    if test "$aix_use_runtimelinking" = yes; then
10959      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10960      # instead of lib<name>.a to let people know that these are not
10961      # typical AIX shared libraries.
10962      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10963    else
10964      # We preserve .a as extension for shared libraries through AIX4.2
10965      # and later when we are not doing run time linking.
10966      library_names_spec='${libname}${release}.a $libname.a'
10967      soname_spec='${libname}${release}${shared_ext}$major'
10968    fi
10969    shlibpath_var=LIBPATH
10970  fi
10971  ;;
10972
10973amigaos*)
10974  library_names_spec='$libname.ixlibrary $libname.a'
10975  # Create ${libname}_ixlibrary.a entries in /sys/libs.
10976  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'
10977  ;;
10978
10979beos*)
10980  library_names_spec='${libname}${shared_ext}'
10981  dynamic_linker="$host_os ld.so"
10982  shlibpath_var=LIBRARY_PATH
10983  ;;
10984
10985bsdi[45]*)
10986  version_type=linux
10987  need_version=no
10988  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10989  soname_spec='${libname}${release}${shared_ext}$major'
10990  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10991  shlibpath_var=LD_LIBRARY_PATH
10992  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10993  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10994  # the default ld.so.conf also contains /usr/contrib/lib and
10995  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10996  # libtool to hard-code these into programs
10997  ;;
10998
10999cygwin* | mingw* | pw32*)
11000  version_type=windows
11001  shrext_cmds=".dll"
11002  need_version=no
11003  need_lib_prefix=no
11004
11005  case $GCC,$host_os in
11006  yes,cygwin* | yes,mingw* | yes,pw32*)
11007    library_names_spec='$libname.dll.a'
11008    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11009    postinstall_cmds='base_file=`basename \${file}`~
11010      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11011      dldir=$destdir/`dirname \$dlpath`~
11012      test -d \$dldir || mkdir -p \$dldir~
11013      $install_prog $dir/$dlname \$dldir/$dlname~
11014      chmod a+x \$dldir/$dlname'
11015    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11016      dlpath=$dir/\$dldll~
11017       $rm \$dlpath'
11018    shlibpath_overrides_runpath=yes
11019
11020    case $host_os in
11021    cygwin*)
11022      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11023      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11024      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11025      ;;
11026    mingw*)
11027      # MinGW DLLs use traditional 'lib' prefix
11028      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11029      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11030      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11031        # It is most probably a Windows format PATH printed by
11032        # mingw gcc, but we are running on Cygwin. Gcc prints its search
11033        # path with ; separators, and with drive letters. We can handle the
11034        # drive letters (cygwin fileutils understands them), so leave them,
11035        # especially as we might pass files found there to a mingw objdump,
11036        # which wouldn't understand a cygwinified path. Ahh.
11037        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11038      else
11039        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11040      fi
11041      ;;
11042    pw32*)
11043      # pw32 DLLs use 'pw' prefix rather than 'lib'
11044      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11045      ;;
11046    esac
11047    ;;
11048
11049  *)
11050    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11051    ;;
11052  esac
11053  dynamic_linker='Win32 ld.exe'
11054  # FIXME: first we should search . and the directory the executable is in
11055  shlibpath_var=PATH
11056  ;;
11057
11058darwin* | rhapsody*)
11059  dynamic_linker="$host_os dyld"
11060  version_type=darwin
11061  need_lib_prefix=no
11062  need_version=no
11063  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11064  soname_spec='${libname}${release}${major}$shared_ext'
11065  shlibpath_overrides_runpath=yes
11066  shlibpath_var=DYLD_LIBRARY_PATH
11067  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11068  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11069  if test "$GCC" = yes; then
11070    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"`
11071  else
11072    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11073  fi
11074  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11075  ;;
11076
11077dgux*)
11078  version_type=linux
11079  need_lib_prefix=no
11080  need_version=no
11081  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11082  soname_spec='${libname}${release}${shared_ext}$major'
11083  shlibpath_var=LD_LIBRARY_PATH
11084  ;;
11085
11086freebsd1*)
11087  dynamic_linker=no
11088  ;;
11089
11090kfreebsd*-gnu)
11091  version_type=linux
11092  need_lib_prefix=no
11093  need_version=no
11094  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11095  soname_spec='${libname}${release}${shared_ext}$major'
11096  shlibpath_var=LD_LIBRARY_PATH
11097  shlibpath_overrides_runpath=no
11098  hardcode_into_libs=yes
11099  dynamic_linker='GNU ld.so'
11100  ;;
11101
11102freebsd* | dragonfly*)
11103  # DragonFly does not have aout.  When/if they implement a new
11104  # versioning mechanism, adjust this.
11105  if test -x /usr/bin/objformat; then
11106    objformat=`/usr/bin/objformat`
11107  else
11108    case $host_os in
11109    freebsd[123]*) objformat=aout ;;
11110    *) objformat=elf ;;
11111    esac
11112  fi
11113  version_type=freebsd-$objformat
11114  case $version_type in
11115    freebsd-elf*)
11116      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11117      need_version=no
11118      need_lib_prefix=no
11119      ;;
11120    freebsd-*)
11121      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11122      need_version=yes
11123      ;;
11124  esac
11125  shlibpath_var=LD_LIBRARY_PATH
11126  case $host_os in
11127  freebsd2*)
11128    shlibpath_overrides_runpath=yes
11129    ;;
11130  freebsd3.[01]* | freebsdelf3.[01]*)
11131    shlibpath_overrides_runpath=yes
11132    hardcode_into_libs=yes
11133    ;;
11134  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11135  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11136    shlibpath_overrides_runpath=no
11137    hardcode_into_libs=yes
11138    ;;
11139  freebsd*) # from 4.6 on
11140    shlibpath_overrides_runpath=yes
11141    hardcode_into_libs=yes
11142    ;;
11143  esac
11144  ;;
11145
11146gnu*)
11147  version_type=linux
11148  need_lib_prefix=no
11149  need_version=no
11150  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11151  soname_spec='${libname}${release}${shared_ext}$major'
11152  shlibpath_var=LD_LIBRARY_PATH
11153  hardcode_into_libs=yes
11154  ;;
11155
11156hpux9* | hpux10* | hpux11*)
11157  # Give a soname corresponding to the major version so that dld.sl refuses to
11158  # link against other versions.
11159  version_type=sunos
11160  need_lib_prefix=no
11161  need_version=no
11162  case $host_cpu in
11163  ia64*)
11164    shrext_cmds='.so'
11165    hardcode_into_libs=yes
11166    dynamic_linker="$host_os dld.so"
11167    shlibpath_var=LD_LIBRARY_PATH
11168    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11169    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11170    soname_spec='${libname}${release}${shared_ext}$major'
11171    if test "X$HPUX_IA64_MODE" = X32; then
11172      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11173    else
11174      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11175    fi
11176    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11177    ;;
11178   hppa*64*)
11179     shrext_cmds='.sl'
11180     hardcode_into_libs=yes
11181     dynamic_linker="$host_os dld.sl"
11182     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11183     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11184     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11185     soname_spec='${libname}${release}${shared_ext}$major'
11186     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11187     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11188     ;;
11189   *)
11190    shrext_cmds='.sl'
11191    dynamic_linker="$host_os dld.sl"
11192    shlibpath_var=SHLIB_PATH
11193    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11194    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11195    soname_spec='${libname}${release}${shared_ext}$major'
11196    ;;
11197  esac
11198  # HP-UX runs *really* slowly unless shared libraries are mode 555.
11199  postinstall_cmds='chmod 555 $lib'
11200  ;;
11201
11202interix3*)
11203  version_type=linux
11204  need_lib_prefix=no
11205  need_version=no
11206  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11207  soname_spec='${libname}${release}${shared_ext}$major'
11208  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11209  shlibpath_var=LD_LIBRARY_PATH
11210  shlibpath_overrides_runpath=no
11211  hardcode_into_libs=yes
11212  ;;
11213
11214irix5* | irix6* | nonstopux*)
11215  case $host_os in
11216    nonstopux*) version_type=nonstopux ;;
11217    *)
11218	if test "$lt_cv_prog_gnu_ld" = yes; then
11219		version_type=linux
11220	else
11221		version_type=irix
11222	fi ;;
11223  esac
11224  need_lib_prefix=no
11225  need_version=no
11226  soname_spec='${libname}${release}${shared_ext}$major'
11227  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11228  case $host_os in
11229  irix5* | nonstopux*)
11230    libsuff= shlibsuff=
11231    ;;
11232  *)
11233    case $LD in # libtool.m4 will add one of these switches to LD
11234    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11235      libsuff= shlibsuff= libmagic=32-bit;;
11236    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11237      libsuff=32 shlibsuff=N32 libmagic=N32;;
11238    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11239      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11240    *) libsuff= shlibsuff= libmagic=never-match;;
11241    esac
11242    ;;
11243  esac
11244  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11245  shlibpath_overrides_runpath=no
11246  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11247  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11248  hardcode_into_libs=yes
11249  ;;
11250
11251# No shared lib support for Linux oldld, aout, or coff.
11252linux*oldld* | linux*aout* | linux*coff*)
11253  dynamic_linker=no
11254  ;;
11255
11256# This must be Linux ELF.
11257linux*)
11258  version_type=linux
11259  need_lib_prefix=no
11260  need_version=no
11261  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11262  soname_spec='${libname}${release}${shared_ext}$major'
11263  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11264  shlibpath_var=LD_LIBRARY_PATH
11265  shlibpath_overrides_runpath=no
11266  # This implies no fast_install, which is unacceptable.
11267  # Some rework will be needed to allow for fast_install
11268  # before this can be enabled.
11269  hardcode_into_libs=yes
11270
11271  # Append ld.so.conf contents to the search path
11272  if test -f /etc/ld.so.conf; then
11273    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' ' '`
11274    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11275  fi
11276
11277  # We used to test for /lib/ld.so.1 and disable shared libraries on
11278  # powerpc, because MkLinux only supported shared libraries with the
11279  # GNU dynamic linker.  Since this was broken with cross compilers,
11280  # most powerpc-linux boxes support dynamic linking these days and
11281  # people can always --disable-shared, the test was removed, and we
11282  # assume the GNU/Linux dynamic linker is in use.
11283  dynamic_linker='GNU/Linux ld.so'
11284  ;;
11285
11286knetbsd*-gnu)
11287  version_type=linux
11288  need_lib_prefix=no
11289  need_version=no
11290  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11291  soname_spec='${libname}${release}${shared_ext}$major'
11292  shlibpath_var=LD_LIBRARY_PATH
11293  shlibpath_overrides_runpath=no
11294  hardcode_into_libs=yes
11295  dynamic_linker='GNU ld.so'
11296  ;;
11297
11298netbsd*)
11299  version_type=sunos
11300  need_lib_prefix=no
11301  need_version=no
11302  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11303    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11304    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11305    dynamic_linker='NetBSD (a.out) ld.so'
11306  else
11307    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11308    soname_spec='${libname}${release}${shared_ext}$major'
11309    dynamic_linker='NetBSD ld.elf_so'
11310  fi
11311  shlibpath_var=LD_LIBRARY_PATH
11312  shlibpath_overrides_runpath=yes
11313  hardcode_into_libs=yes
11314  ;;
11315
11316newsos6)
11317  version_type=linux
11318  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11319  shlibpath_var=LD_LIBRARY_PATH
11320  shlibpath_overrides_runpath=yes
11321  ;;
11322
11323nto-qnx*)
11324  version_type=linux
11325  need_lib_prefix=no
11326  need_version=no
11327  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11328  soname_spec='${libname}${release}${shared_ext}$major'
11329  shlibpath_var=LD_LIBRARY_PATH
11330  shlibpath_overrides_runpath=yes
11331  ;;
11332
11333openbsd*)
11334  version_type=sunos
11335  sys_lib_dlsearch_path_spec="/usr/lib"
11336  need_lib_prefix=no
11337  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11338  case $host_os in
11339    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11340    *)                         need_version=no  ;;
11341  esac
11342  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11343  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11344  shlibpath_var=LD_LIBRARY_PATH
11345  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11346    case $host_os in
11347      openbsd2.[89] | openbsd2.[89].*)
11348	shlibpath_overrides_runpath=no
11349	;;
11350      *)
11351	shlibpath_overrides_runpath=yes
11352	;;
11353      esac
11354  else
11355    shlibpath_overrides_runpath=yes
11356  fi
11357  ;;
11358
11359os2*)
11360  libname_spec='$name'
11361  shrext_cmds=".dll"
11362  need_lib_prefix=no
11363  library_names_spec='$libname${shared_ext} $libname.a'
11364  dynamic_linker='OS/2 ld.exe'
11365  shlibpath_var=LIBPATH
11366  ;;
11367
11368osf3* | osf4* | osf5*)
11369  version_type=osf
11370  need_lib_prefix=no
11371  need_version=no
11372  soname_spec='${libname}${release}${shared_ext}$major'
11373  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11374  shlibpath_var=LD_LIBRARY_PATH
11375  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11376  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11377  ;;
11378
11379solaris*)
11380  version_type=linux
11381  need_lib_prefix=no
11382  need_version=no
11383  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11384  soname_spec='${libname}${release}${shared_ext}$major'
11385  shlibpath_var=LD_LIBRARY_PATH
11386  shlibpath_overrides_runpath=yes
11387  hardcode_into_libs=yes
11388  # ldd complains unless libraries are executable
11389  postinstall_cmds='chmod +x $lib'
11390  ;;
11391
11392sunos4*)
11393  version_type=sunos
11394  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11395  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11396  shlibpath_var=LD_LIBRARY_PATH
11397  shlibpath_overrides_runpath=yes
11398  if test "$with_gnu_ld" = yes; then
11399    need_lib_prefix=no
11400  fi
11401  need_version=yes
11402  ;;
11403
11404sysv4 | sysv4.3*)
11405  version_type=linux
11406  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11407  soname_spec='${libname}${release}${shared_ext}$major'
11408  shlibpath_var=LD_LIBRARY_PATH
11409  case $host_vendor in
11410    sni)
11411      shlibpath_overrides_runpath=no
11412      need_lib_prefix=no
11413      export_dynamic_flag_spec='${wl}-Blargedynsym'
11414      runpath_var=LD_RUN_PATH
11415      ;;
11416    siemens)
11417      need_lib_prefix=no
11418      ;;
11419    motorola)
11420      need_lib_prefix=no
11421      need_version=no
11422      shlibpath_overrides_runpath=no
11423      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11424      ;;
11425  esac
11426  ;;
11427
11428sysv4*MP*)
11429  if test -d /usr/nec ;then
11430    version_type=linux
11431    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11432    soname_spec='$libname${shared_ext}.$major'
11433    shlibpath_var=LD_LIBRARY_PATH
11434  fi
11435  ;;
11436
11437sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11438  version_type=freebsd-elf
11439  need_lib_prefix=no
11440  need_version=no
11441  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11442  soname_spec='${libname}${release}${shared_ext}$major'
11443  shlibpath_var=LD_LIBRARY_PATH
11444  hardcode_into_libs=yes
11445  if test "$with_gnu_ld" = yes; then
11446    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11447    shlibpath_overrides_runpath=no
11448  else
11449    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11450    shlibpath_overrides_runpath=yes
11451    case $host_os in
11452      sco3.2v5*)
11453        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11454	;;
11455    esac
11456  fi
11457  sys_lib_dlsearch_path_spec='/usr/lib'
11458  ;;
11459
11460uts4*)
11461  version_type=linux
11462  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11463  soname_spec='${libname}${release}${shared_ext}$major'
11464  shlibpath_var=LD_LIBRARY_PATH
11465  ;;
11466
11467*)
11468  dynamic_linker=no
11469  ;;
11470esac
11471echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11472echo "${ECHO_T}$dynamic_linker" >&6
11473test "$dynamic_linker" = no && can_build_shared=no
11474
11475variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11476if test "$GCC" = yes; then
11477  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11478fi
11479
11480echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11481echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11482hardcode_action=
11483if test -n "$hardcode_libdir_flag_spec" || \
11484   test -n "$runpath_var" || \
11485   test "X$hardcode_automatic" = "Xyes" ; then
11486
11487  # We can hardcode non-existant directories.
11488  if test "$hardcode_direct" != no &&
11489     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11490     # have to relink, otherwise we might link with an installed library
11491     # when we should be linking with a yet-to-be-installed one
11492     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
11493     test "$hardcode_minus_L" != no; then
11494    # Linking always hardcodes the temporary library directory.
11495    hardcode_action=relink
11496  else
11497    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11498    hardcode_action=immediate
11499  fi
11500else
11501  # We cannot hardcode anything, or else we can only hardcode existing
11502  # directories.
11503  hardcode_action=unsupported
11504fi
11505echo "$as_me:$LINENO: result: $hardcode_action" >&5
11506echo "${ECHO_T}$hardcode_action" >&6
11507
11508if test "$hardcode_action" = relink; then
11509  # Fast installation is not supported
11510  enable_fast_install=no
11511elif test "$shlibpath_overrides_runpath" = yes ||
11512     test "$enable_shared" = no; then
11513  # Fast installation is not necessary
11514  enable_fast_install=needless
11515fi
11516
11517striplib=
11518old_striplib=
11519echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11520echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11521if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11522  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11523  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11524  echo "$as_me:$LINENO: result: yes" >&5
11525echo "${ECHO_T}yes" >&6
11526else
11527# FIXME - insert some real tests, host_os isn't really good enough
11528  case $host_os in
11529   darwin*)
11530       if test -n "$STRIP" ; then
11531         striplib="$STRIP -x"
11532         echo "$as_me:$LINENO: result: yes" >&5
11533echo "${ECHO_T}yes" >&6
11534       else
11535  echo "$as_me:$LINENO: result: no" >&5
11536echo "${ECHO_T}no" >&6
11537fi
11538       ;;
11539   *)
11540  echo "$as_me:$LINENO: result: no" >&5
11541echo "${ECHO_T}no" >&6
11542    ;;
11543  esac
11544fi
11545
11546if test "x$enable_dlopen" != xyes; then
11547  enable_dlopen=unknown
11548  enable_dlopen_self=unknown
11549  enable_dlopen_self_static=unknown
11550else
11551  lt_cv_dlopen=no
11552  lt_cv_dlopen_libs=
11553
11554  case $host_os in
11555  beos*)
11556    lt_cv_dlopen="load_add_on"
11557    lt_cv_dlopen_libs=
11558    lt_cv_dlopen_self=yes
11559    ;;
11560
11561  mingw* | pw32*)
11562    lt_cv_dlopen="LoadLibrary"
11563    lt_cv_dlopen_libs=
11564   ;;
11565
11566  cygwin*)
11567    lt_cv_dlopen="dlopen"
11568    lt_cv_dlopen_libs=
11569   ;;
11570
11571  darwin*)
11572  # if libdl is installed we need to link against it
11573    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11574echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11575if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11576  echo $ECHO_N "(cached) $ECHO_C" >&6
11577else
11578  ac_check_lib_save_LIBS=$LIBS
11579LIBS="-ldl  $LIBS"
11580cat >conftest.$ac_ext <<_ACEOF
11581/* confdefs.h.  */
11582_ACEOF
11583cat confdefs.h >>conftest.$ac_ext
11584cat >>conftest.$ac_ext <<_ACEOF
11585/* end confdefs.h.  */
11586
11587/* Override any gcc2 internal prototype to avoid an error.  */
11588#ifdef __cplusplus
11589extern "C"
11590#endif
11591/* We use char because int might match the return type of a gcc2
11592   builtin and then its argument prototype would still apply.  */
11593char dlopen ();
11594#ifdef F77_DUMMY_MAIN
11595
11596#  ifdef __cplusplus
11597     extern "C"
11598#  endif
11599   int F77_DUMMY_MAIN() { return 1; }
11600
11601#endif
11602int
11603main ()
11604{
11605dlopen ();
11606  ;
11607  return 0;
11608}
11609_ACEOF
11610rm -f conftest.$ac_objext conftest$ac_exeext
11611if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11612  (eval $ac_link) 2>conftest.er1
11613  ac_status=$?
11614  grep -v '^ *+' conftest.er1 >conftest.err
11615  rm -f conftest.er1
11616  cat conftest.err >&5
11617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618  (exit $ac_status); } &&
11619	 { ac_try='test -z "$ac_c_werror_flag"
11620			 || test ! -s conftest.err'
11621  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11622  (eval $ac_try) 2>&5
11623  ac_status=$?
11624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11625  (exit $ac_status); }; } &&
11626	 { ac_try='test -s conftest$ac_exeext'
11627  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11628  (eval $ac_try) 2>&5
11629  ac_status=$?
11630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631  (exit $ac_status); }; }; then
11632  ac_cv_lib_dl_dlopen=yes
11633else
11634  echo "$as_me: failed program was:" >&5
11635sed 's/^/| /' conftest.$ac_ext >&5
11636
11637ac_cv_lib_dl_dlopen=no
11638fi
11639rm -f conftest.err conftest.$ac_objext \
11640      conftest$ac_exeext conftest.$ac_ext
11641LIBS=$ac_check_lib_save_LIBS
11642fi
11643echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11644echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11645if test $ac_cv_lib_dl_dlopen = yes; then
11646  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11647else
11648
11649    lt_cv_dlopen="dyld"
11650    lt_cv_dlopen_libs=
11651    lt_cv_dlopen_self=yes
11652
11653fi
11654
11655   ;;
11656
11657  *)
11658    echo "$as_me:$LINENO: checking for shl_load" >&5
11659echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11660if test "${ac_cv_func_shl_load+set}" = set; then
11661  echo $ECHO_N "(cached) $ECHO_C" >&6
11662else
11663  cat >conftest.$ac_ext <<_ACEOF
11664/* confdefs.h.  */
11665_ACEOF
11666cat confdefs.h >>conftest.$ac_ext
11667cat >>conftest.$ac_ext <<_ACEOF
11668/* end confdefs.h.  */
11669/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11670   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11671#define shl_load innocuous_shl_load
11672
11673/* System header to define __stub macros and hopefully few prototypes,
11674    which can conflict with char shl_load (); below.
11675    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11676    <limits.h> exists even on freestanding compilers.  */
11677
11678#ifdef __STDC__
11679# include <limits.h>
11680#else
11681# include <assert.h>
11682#endif
11683
11684#undef shl_load
11685
11686/* Override any gcc2 internal prototype to avoid an error.  */
11687#ifdef __cplusplus
11688extern "C"
11689{
11690#endif
11691/* We use char because int might match the return type of a gcc2
11692   builtin and then its argument prototype would still apply.  */
11693char shl_load ();
11694/* The GNU C library defines this for functions which it implements
11695    to always fail with ENOSYS.  Some functions are actually named
11696    something starting with __ and the normal name is an alias.  */
11697#if defined (__stub_shl_load) || defined (__stub___shl_load)
11698choke me
11699#else
11700char (*f) () = shl_load;
11701#endif
11702#ifdef __cplusplus
11703}
11704#endif
11705
11706#ifdef F77_DUMMY_MAIN
11707
11708#  ifdef __cplusplus
11709     extern "C"
11710#  endif
11711   int F77_DUMMY_MAIN() { return 1; }
11712
11713#endif
11714int
11715main ()
11716{
11717return f != shl_load;
11718  ;
11719  return 0;
11720}
11721_ACEOF
11722rm -f conftest.$ac_objext conftest$ac_exeext
11723if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11724  (eval $ac_link) 2>conftest.er1
11725  ac_status=$?
11726  grep -v '^ *+' conftest.er1 >conftest.err
11727  rm -f conftest.er1
11728  cat conftest.err >&5
11729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11730  (exit $ac_status); } &&
11731	 { ac_try='test -z "$ac_c_werror_flag"
11732			 || test ! -s conftest.err'
11733  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11734  (eval $ac_try) 2>&5
11735  ac_status=$?
11736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737  (exit $ac_status); }; } &&
11738	 { ac_try='test -s conftest$ac_exeext'
11739  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11740  (eval $ac_try) 2>&5
11741  ac_status=$?
11742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743  (exit $ac_status); }; }; then
11744  ac_cv_func_shl_load=yes
11745else
11746  echo "$as_me: failed program was:" >&5
11747sed 's/^/| /' conftest.$ac_ext >&5
11748
11749ac_cv_func_shl_load=no
11750fi
11751rm -f conftest.err conftest.$ac_objext \
11752      conftest$ac_exeext conftest.$ac_ext
11753fi
11754echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11755echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11756if test $ac_cv_func_shl_load = yes; then
11757  lt_cv_dlopen="shl_load"
11758else
11759  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11760echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11761if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11762  echo $ECHO_N "(cached) $ECHO_C" >&6
11763else
11764  ac_check_lib_save_LIBS=$LIBS
11765LIBS="-ldld  $LIBS"
11766cat >conftest.$ac_ext <<_ACEOF
11767/* confdefs.h.  */
11768_ACEOF
11769cat confdefs.h >>conftest.$ac_ext
11770cat >>conftest.$ac_ext <<_ACEOF
11771/* end confdefs.h.  */
11772
11773/* Override any gcc2 internal prototype to avoid an error.  */
11774#ifdef __cplusplus
11775extern "C"
11776#endif
11777/* We use char because int might match the return type of a gcc2
11778   builtin and then its argument prototype would still apply.  */
11779char shl_load ();
11780#ifdef F77_DUMMY_MAIN
11781
11782#  ifdef __cplusplus
11783     extern "C"
11784#  endif
11785   int F77_DUMMY_MAIN() { return 1; }
11786
11787#endif
11788int
11789main ()
11790{
11791shl_load ();
11792  ;
11793  return 0;
11794}
11795_ACEOF
11796rm -f conftest.$ac_objext conftest$ac_exeext
11797if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11798  (eval $ac_link) 2>conftest.er1
11799  ac_status=$?
11800  grep -v '^ *+' conftest.er1 >conftest.err
11801  rm -f conftest.er1
11802  cat conftest.err >&5
11803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804  (exit $ac_status); } &&
11805	 { ac_try='test -z "$ac_c_werror_flag"
11806			 || test ! -s conftest.err'
11807  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11808  (eval $ac_try) 2>&5
11809  ac_status=$?
11810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11811  (exit $ac_status); }; } &&
11812	 { ac_try='test -s conftest$ac_exeext'
11813  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11814  (eval $ac_try) 2>&5
11815  ac_status=$?
11816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11817  (exit $ac_status); }; }; then
11818  ac_cv_lib_dld_shl_load=yes
11819else
11820  echo "$as_me: failed program was:" >&5
11821sed 's/^/| /' conftest.$ac_ext >&5
11822
11823ac_cv_lib_dld_shl_load=no
11824fi
11825rm -f conftest.err conftest.$ac_objext \
11826      conftest$ac_exeext conftest.$ac_ext
11827LIBS=$ac_check_lib_save_LIBS
11828fi
11829echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11830echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11831if test $ac_cv_lib_dld_shl_load = yes; then
11832  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11833else
11834  echo "$as_me:$LINENO: checking for dlopen" >&5
11835echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11836if test "${ac_cv_func_dlopen+set}" = set; then
11837  echo $ECHO_N "(cached) $ECHO_C" >&6
11838else
11839  cat >conftest.$ac_ext <<_ACEOF
11840/* confdefs.h.  */
11841_ACEOF
11842cat confdefs.h >>conftest.$ac_ext
11843cat >>conftest.$ac_ext <<_ACEOF
11844/* end confdefs.h.  */
11845/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11846   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11847#define dlopen innocuous_dlopen
11848
11849/* System header to define __stub macros and hopefully few prototypes,
11850    which can conflict with char dlopen (); below.
11851    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11852    <limits.h> exists even on freestanding compilers.  */
11853
11854#ifdef __STDC__
11855# include <limits.h>
11856#else
11857# include <assert.h>
11858#endif
11859
11860#undef dlopen
11861
11862/* Override any gcc2 internal prototype to avoid an error.  */
11863#ifdef __cplusplus
11864extern "C"
11865{
11866#endif
11867/* We use char because int might match the return type of a gcc2
11868   builtin and then its argument prototype would still apply.  */
11869char dlopen ();
11870/* The GNU C library defines this for functions which it implements
11871    to always fail with ENOSYS.  Some functions are actually named
11872    something starting with __ and the normal name is an alias.  */
11873#if defined (__stub_dlopen) || defined (__stub___dlopen)
11874choke me
11875#else
11876char (*f) () = dlopen;
11877#endif
11878#ifdef __cplusplus
11879}
11880#endif
11881
11882#ifdef F77_DUMMY_MAIN
11883
11884#  ifdef __cplusplus
11885     extern "C"
11886#  endif
11887   int F77_DUMMY_MAIN() { return 1; }
11888
11889#endif
11890int
11891main ()
11892{
11893return f != dlopen;
11894  ;
11895  return 0;
11896}
11897_ACEOF
11898rm -f conftest.$ac_objext conftest$ac_exeext
11899if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11900  (eval $ac_link) 2>conftest.er1
11901  ac_status=$?
11902  grep -v '^ *+' conftest.er1 >conftest.err
11903  rm -f conftest.er1
11904  cat conftest.err >&5
11905  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11906  (exit $ac_status); } &&
11907	 { ac_try='test -z "$ac_c_werror_flag"
11908			 || test ! -s conftest.err'
11909  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11910  (eval $ac_try) 2>&5
11911  ac_status=$?
11912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913  (exit $ac_status); }; } &&
11914	 { ac_try='test -s conftest$ac_exeext'
11915  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11916  (eval $ac_try) 2>&5
11917  ac_status=$?
11918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11919  (exit $ac_status); }; }; then
11920  ac_cv_func_dlopen=yes
11921else
11922  echo "$as_me: failed program was:" >&5
11923sed 's/^/| /' conftest.$ac_ext >&5
11924
11925ac_cv_func_dlopen=no
11926fi
11927rm -f conftest.err conftest.$ac_objext \
11928      conftest$ac_exeext conftest.$ac_ext
11929fi
11930echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11931echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11932if test $ac_cv_func_dlopen = yes; then
11933  lt_cv_dlopen="dlopen"
11934else
11935  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11936echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11937if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11938  echo $ECHO_N "(cached) $ECHO_C" >&6
11939else
11940  ac_check_lib_save_LIBS=$LIBS
11941LIBS="-ldl  $LIBS"
11942cat >conftest.$ac_ext <<_ACEOF
11943/* confdefs.h.  */
11944_ACEOF
11945cat confdefs.h >>conftest.$ac_ext
11946cat >>conftest.$ac_ext <<_ACEOF
11947/* end confdefs.h.  */
11948
11949/* Override any gcc2 internal prototype to avoid an error.  */
11950#ifdef __cplusplus
11951extern "C"
11952#endif
11953/* We use char because int might match the return type of a gcc2
11954   builtin and then its argument prototype would still apply.  */
11955char dlopen ();
11956#ifdef F77_DUMMY_MAIN
11957
11958#  ifdef __cplusplus
11959     extern "C"
11960#  endif
11961   int F77_DUMMY_MAIN() { return 1; }
11962
11963#endif
11964int
11965main ()
11966{
11967dlopen ();
11968  ;
11969  return 0;
11970}
11971_ACEOF
11972rm -f conftest.$ac_objext conftest$ac_exeext
11973if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11974  (eval $ac_link) 2>conftest.er1
11975  ac_status=$?
11976  grep -v '^ *+' conftest.er1 >conftest.err
11977  rm -f conftest.er1
11978  cat conftest.err >&5
11979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980  (exit $ac_status); } &&
11981	 { ac_try='test -z "$ac_c_werror_flag"
11982			 || test ! -s conftest.err'
11983  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11984  (eval $ac_try) 2>&5
11985  ac_status=$?
11986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11987  (exit $ac_status); }; } &&
11988	 { ac_try='test -s conftest$ac_exeext'
11989  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11990  (eval $ac_try) 2>&5
11991  ac_status=$?
11992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11993  (exit $ac_status); }; }; then
11994  ac_cv_lib_dl_dlopen=yes
11995else
11996  echo "$as_me: failed program was:" >&5
11997sed 's/^/| /' conftest.$ac_ext >&5
11998
11999ac_cv_lib_dl_dlopen=no
12000fi
12001rm -f conftest.err conftest.$ac_objext \
12002      conftest$ac_exeext conftest.$ac_ext
12003LIBS=$ac_check_lib_save_LIBS
12004fi
12005echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12006echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12007if test $ac_cv_lib_dl_dlopen = yes; then
12008  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12009else
12010  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12011echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12012if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12013  echo $ECHO_N "(cached) $ECHO_C" >&6
12014else
12015  ac_check_lib_save_LIBS=$LIBS
12016LIBS="-lsvld  $LIBS"
12017cat >conftest.$ac_ext <<_ACEOF
12018/* confdefs.h.  */
12019_ACEOF
12020cat confdefs.h >>conftest.$ac_ext
12021cat >>conftest.$ac_ext <<_ACEOF
12022/* end confdefs.h.  */
12023
12024/* Override any gcc2 internal prototype to avoid an error.  */
12025#ifdef __cplusplus
12026extern "C"
12027#endif
12028/* We use char because int might match the return type of a gcc2
12029   builtin and then its argument prototype would still apply.  */
12030char dlopen ();
12031#ifdef F77_DUMMY_MAIN
12032
12033#  ifdef __cplusplus
12034     extern "C"
12035#  endif
12036   int F77_DUMMY_MAIN() { return 1; }
12037
12038#endif
12039int
12040main ()
12041{
12042dlopen ();
12043  ;
12044  return 0;
12045}
12046_ACEOF
12047rm -f conftest.$ac_objext conftest$ac_exeext
12048if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12049  (eval $ac_link) 2>conftest.er1
12050  ac_status=$?
12051  grep -v '^ *+' conftest.er1 >conftest.err
12052  rm -f conftest.er1
12053  cat conftest.err >&5
12054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055  (exit $ac_status); } &&
12056	 { ac_try='test -z "$ac_c_werror_flag"
12057			 || test ! -s conftest.err'
12058  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12059  (eval $ac_try) 2>&5
12060  ac_status=$?
12061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062  (exit $ac_status); }; } &&
12063	 { ac_try='test -s conftest$ac_exeext'
12064  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12065  (eval $ac_try) 2>&5
12066  ac_status=$?
12067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12068  (exit $ac_status); }; }; then
12069  ac_cv_lib_svld_dlopen=yes
12070else
12071  echo "$as_me: failed program was:" >&5
12072sed 's/^/| /' conftest.$ac_ext >&5
12073
12074ac_cv_lib_svld_dlopen=no
12075fi
12076rm -f conftest.err conftest.$ac_objext \
12077      conftest$ac_exeext conftest.$ac_ext
12078LIBS=$ac_check_lib_save_LIBS
12079fi
12080echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12081echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12082if test $ac_cv_lib_svld_dlopen = yes; then
12083  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12084else
12085  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12086echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12087if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12088  echo $ECHO_N "(cached) $ECHO_C" >&6
12089else
12090  ac_check_lib_save_LIBS=$LIBS
12091LIBS="-ldld  $LIBS"
12092cat >conftest.$ac_ext <<_ACEOF
12093/* confdefs.h.  */
12094_ACEOF
12095cat confdefs.h >>conftest.$ac_ext
12096cat >>conftest.$ac_ext <<_ACEOF
12097/* end confdefs.h.  */
12098
12099/* Override any gcc2 internal prototype to avoid an error.  */
12100#ifdef __cplusplus
12101extern "C"
12102#endif
12103/* We use char because int might match the return type of a gcc2
12104   builtin and then its argument prototype would still apply.  */
12105char dld_link ();
12106#ifdef F77_DUMMY_MAIN
12107
12108#  ifdef __cplusplus
12109     extern "C"
12110#  endif
12111   int F77_DUMMY_MAIN() { return 1; }
12112
12113#endif
12114int
12115main ()
12116{
12117dld_link ();
12118  ;
12119  return 0;
12120}
12121_ACEOF
12122rm -f conftest.$ac_objext conftest$ac_exeext
12123if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12124  (eval $ac_link) 2>conftest.er1
12125  ac_status=$?
12126  grep -v '^ *+' conftest.er1 >conftest.err
12127  rm -f conftest.er1
12128  cat conftest.err >&5
12129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12130  (exit $ac_status); } &&
12131	 { ac_try='test -z "$ac_c_werror_flag"
12132			 || test ! -s conftest.err'
12133  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12134  (eval $ac_try) 2>&5
12135  ac_status=$?
12136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137  (exit $ac_status); }; } &&
12138	 { ac_try='test -s conftest$ac_exeext'
12139  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12140  (eval $ac_try) 2>&5
12141  ac_status=$?
12142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12143  (exit $ac_status); }; }; then
12144  ac_cv_lib_dld_dld_link=yes
12145else
12146  echo "$as_me: failed program was:" >&5
12147sed 's/^/| /' conftest.$ac_ext >&5
12148
12149ac_cv_lib_dld_dld_link=no
12150fi
12151rm -f conftest.err conftest.$ac_objext \
12152      conftest$ac_exeext conftest.$ac_ext
12153LIBS=$ac_check_lib_save_LIBS
12154fi
12155echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12156echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12157if test $ac_cv_lib_dld_dld_link = yes; then
12158  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12159fi
12160
12161
12162fi
12163
12164
12165fi
12166
12167
12168fi
12169
12170
12171fi
12172
12173
12174fi
12175
12176    ;;
12177  esac
12178
12179  if test "x$lt_cv_dlopen" != xno; then
12180    enable_dlopen=yes
12181  else
12182    enable_dlopen=no
12183  fi
12184
12185  case $lt_cv_dlopen in
12186  dlopen)
12187    save_CPPFLAGS="$CPPFLAGS"
12188    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12189
12190    save_LDFLAGS="$LDFLAGS"
12191    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12192
12193    save_LIBS="$LIBS"
12194    LIBS="$lt_cv_dlopen_libs $LIBS"
12195
12196    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12197echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12198if test "${lt_cv_dlopen_self+set}" = set; then
12199  echo $ECHO_N "(cached) $ECHO_C" >&6
12200else
12201  	  if test "$cross_compiling" = yes; then :
12202  lt_cv_dlopen_self=cross
12203else
12204  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12205  lt_status=$lt_dlunknown
12206  cat > conftest.$ac_ext <<EOF
12207#line 12207 "configure"
12208#include "confdefs.h"
12209
12210#if HAVE_DLFCN_H
12211#include <dlfcn.h>
12212#endif
12213
12214#include <stdio.h>
12215
12216#ifdef RTLD_GLOBAL
12217#  define LT_DLGLOBAL		RTLD_GLOBAL
12218#else
12219#  ifdef DL_GLOBAL
12220#    define LT_DLGLOBAL		DL_GLOBAL
12221#  else
12222#    define LT_DLGLOBAL		0
12223#  endif
12224#endif
12225
12226/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12227   find out it does not work in some platform. */
12228#ifndef LT_DLLAZY_OR_NOW
12229#  ifdef RTLD_LAZY
12230#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12231#  else
12232#    ifdef DL_LAZY
12233#      define LT_DLLAZY_OR_NOW		DL_LAZY
12234#    else
12235#      ifdef RTLD_NOW
12236#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12237#      else
12238#        ifdef DL_NOW
12239#          define LT_DLLAZY_OR_NOW	DL_NOW
12240#        else
12241#          define LT_DLLAZY_OR_NOW	0
12242#        endif
12243#      endif
12244#    endif
12245#  endif
12246#endif
12247
12248#ifdef __cplusplus
12249extern "C" void exit (int);
12250#endif
12251
12252void fnord() { int i=42;}
12253int main ()
12254{
12255  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12256  int status = $lt_dlunknown;
12257
12258  if (self)
12259    {
12260      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12261      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12262      /* dlclose (self); */
12263    }
12264  else
12265    puts (dlerror ());
12266
12267    exit (status);
12268}
12269EOF
12270  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12271  (eval $ac_link) 2>&5
12272  ac_status=$?
12273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12274  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12275    (./conftest; exit; ) >&5 2>/dev/null
12276    lt_status=$?
12277    case x$lt_status in
12278      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12279      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12280      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12281    esac
12282  else :
12283    # compilation failed
12284    lt_cv_dlopen_self=no
12285  fi
12286fi
12287rm -fr conftest*
12288
12289
12290fi
12291echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12292echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12293
12294    if test "x$lt_cv_dlopen_self" = xyes; then
12295      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12296      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12297echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12298if test "${lt_cv_dlopen_self_static+set}" = set; then
12299  echo $ECHO_N "(cached) $ECHO_C" >&6
12300else
12301  	  if test "$cross_compiling" = yes; then :
12302  lt_cv_dlopen_self_static=cross
12303else
12304  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12305  lt_status=$lt_dlunknown
12306  cat > conftest.$ac_ext <<EOF
12307#line 12307 "configure"
12308#include "confdefs.h"
12309
12310#if HAVE_DLFCN_H
12311#include <dlfcn.h>
12312#endif
12313
12314#include <stdio.h>
12315
12316#ifdef RTLD_GLOBAL
12317#  define LT_DLGLOBAL		RTLD_GLOBAL
12318#else
12319#  ifdef DL_GLOBAL
12320#    define LT_DLGLOBAL		DL_GLOBAL
12321#  else
12322#    define LT_DLGLOBAL		0
12323#  endif
12324#endif
12325
12326/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12327   find out it does not work in some platform. */
12328#ifndef LT_DLLAZY_OR_NOW
12329#  ifdef RTLD_LAZY
12330#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12331#  else
12332#    ifdef DL_LAZY
12333#      define LT_DLLAZY_OR_NOW		DL_LAZY
12334#    else
12335#      ifdef RTLD_NOW
12336#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12337#      else
12338#        ifdef DL_NOW
12339#          define LT_DLLAZY_OR_NOW	DL_NOW
12340#        else
12341#          define LT_DLLAZY_OR_NOW	0
12342#        endif
12343#      endif
12344#    endif
12345#  endif
12346#endif
12347
12348#ifdef __cplusplus
12349extern "C" void exit (int);
12350#endif
12351
12352void fnord() { int i=42;}
12353int main ()
12354{
12355  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12356  int status = $lt_dlunknown;
12357
12358  if (self)
12359    {
12360      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12361      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12362      /* dlclose (self); */
12363    }
12364  else
12365    puts (dlerror ());
12366
12367    exit (status);
12368}
12369EOF
12370  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12371  (eval $ac_link) 2>&5
12372  ac_status=$?
12373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12375    (./conftest; exit; ) >&5 2>/dev/null
12376    lt_status=$?
12377    case x$lt_status in
12378      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12379      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12380      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12381    esac
12382  else :
12383    # compilation failed
12384    lt_cv_dlopen_self_static=no
12385  fi
12386fi
12387rm -fr conftest*
12388
12389
12390fi
12391echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12392echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12393    fi
12394
12395    CPPFLAGS="$save_CPPFLAGS"
12396    LDFLAGS="$save_LDFLAGS"
12397    LIBS="$save_LIBS"
12398    ;;
12399  esac
12400
12401  case $lt_cv_dlopen_self in
12402  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12403  *) enable_dlopen_self=unknown ;;
12404  esac
12405
12406  case $lt_cv_dlopen_self_static in
12407  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12408  *) enable_dlopen_self_static=unknown ;;
12409  esac
12410fi
12411
12412
12413# Report which library types will actually be built
12414echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12415echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12416echo "$as_me:$LINENO: result: $can_build_shared" >&5
12417echo "${ECHO_T}$can_build_shared" >&6
12418
12419echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12420echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12421test "$can_build_shared" = "no" && enable_shared=no
12422
12423# On AIX, shared libraries and static libraries use the same namespace, and
12424# are all built from PIC.
12425case $host_os in
12426aix3*)
12427  test "$enable_shared" = yes && enable_static=no
12428  if test -n "$RANLIB"; then
12429    archive_cmds="$archive_cmds~\$RANLIB \$lib"
12430    postinstall_cmds='$RANLIB $lib'
12431  fi
12432  ;;
12433
12434aix4* | aix5*)
12435  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12436    test "$enable_shared" = yes && enable_static=no
12437  fi
12438    ;;
12439esac
12440echo "$as_me:$LINENO: result: $enable_shared" >&5
12441echo "${ECHO_T}$enable_shared" >&6
12442
12443echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12444echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12445# Make sure either enable_shared or enable_static is yes.
12446test "$enable_shared" = yes || enable_static=yes
12447echo "$as_me:$LINENO: result: $enable_static" >&5
12448echo "${ECHO_T}$enable_static" >&6
12449
12450# The else clause should only fire when bootstrapping the
12451# libtool distribution, otherwise you forgot to ship ltmain.sh
12452# with your package, and you will get complaints that there are
12453# no rules to generate ltmain.sh.
12454if test -f "$ltmain"; then
12455  # See if we are running on zsh, and set the options which allow our commands through
12456  # without removal of \ escapes.
12457  if test -n "${ZSH_VERSION+set}" ; then
12458    setopt NO_GLOB_SUBST
12459  fi
12460  # Now quote all the things that may contain metacharacters while being
12461  # careful not to overquote the AC_SUBSTed values.  We take copies of the
12462  # variables and quote the copies for generation of the libtool script.
12463  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12464    SED SHELL STRIP \
12465    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12466    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12467    deplibs_check_method reload_flag reload_cmds need_locks \
12468    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12469    lt_cv_sys_global_symbol_to_c_name_address \
12470    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12471    old_postinstall_cmds old_postuninstall_cmds \
12472    compiler \
12473    CC \
12474    LD \
12475    lt_prog_compiler_wl \
12476    lt_prog_compiler_pic \
12477    lt_prog_compiler_static \
12478    lt_prog_compiler_no_builtin_flag \
12479    export_dynamic_flag_spec \
12480    thread_safe_flag_spec \
12481    whole_archive_flag_spec \
12482    enable_shared_with_static_runtimes \
12483    old_archive_cmds \
12484    old_archive_from_new_cmds \
12485    predep_objects \
12486    postdep_objects \
12487    predeps \
12488    postdeps \
12489    compiler_lib_search_path \
12490    archive_cmds \
12491    archive_expsym_cmds \
12492    postinstall_cmds \
12493    postuninstall_cmds \
12494    old_archive_from_expsyms_cmds \
12495    allow_undefined_flag \
12496    no_undefined_flag \
12497    export_symbols_cmds \
12498    hardcode_libdir_flag_spec \
12499    hardcode_libdir_flag_spec_ld \
12500    hardcode_libdir_separator \
12501    hardcode_automatic \
12502    module_cmds \
12503    module_expsym_cmds \
12504    lt_cv_prog_compiler_c_o \
12505    exclude_expsyms \
12506    include_expsyms; do
12507
12508    case $var in
12509    old_archive_cmds | \
12510    old_archive_from_new_cmds | \
12511    archive_cmds | \
12512    archive_expsym_cmds | \
12513    module_cmds | \
12514    module_expsym_cmds | \
12515    old_archive_from_expsyms_cmds | \
12516    export_symbols_cmds | \
12517    extract_expsyms_cmds | reload_cmds | finish_cmds | \
12518    postinstall_cmds | postuninstall_cmds | \
12519    old_postinstall_cmds | old_postuninstall_cmds | \
12520    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12521      # Double-quote double-evaled strings.
12522      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12523      ;;
12524    *)
12525      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12526      ;;
12527    esac
12528  done
12529
12530  case $lt_echo in
12531  *'\$0 --fallback-echo"')
12532    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12533    ;;
12534  esac
12535
12536cfgfile="${ofile}T"
12537  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
12538  $rm -f "$cfgfile"
12539  { echo "$as_me:$LINENO: creating $ofile" >&5
12540echo "$as_me: creating $ofile" >&6;}
12541
12542  cat <<__EOF__ >> "$cfgfile"
12543#! $SHELL
12544
12545# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12546# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
12547# NOTE: Changes made to this file will be lost: look at ltmain.sh.
12548#
12549# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
12550# Free Software Foundation, Inc.
12551#
12552# This file is part of GNU Libtool:
12553# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
12554#
12555# This program is free software; you can redistribute it and/or modify
12556# it under the terms of the GNU General Public License as published by
12557# the Free Software Foundation; either version 2 of the License, or
12558# (at your option) any later version.
12559#
12560# This program is distributed in the hope that it will be useful, but
12561# WITHOUT ANY WARRANTY; without even the implied warranty of
12562# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12563# General Public License for more details.
12564#
12565# You should have received a copy of the GNU General Public License
12566# along with this program; if not, write to the Free Software
12567# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12568#
12569# As a special exception to the GNU General Public License, if you
12570# distribute this file as part of a program that contains a
12571# configuration script generated by Autoconf, you may include it under
12572# the same distribution terms that you use for the rest of that program.
12573
12574# A sed program that does not truncate output.
12575SED=$lt_SED
12576
12577# Sed that helps us avoid accidentally triggering echo(1) options like -n.
12578Xsed="$SED -e 1s/^X//"
12579
12580# The HP-UX ksh and POSIX shell print the target directory to stdout
12581# if CDPATH is set.
12582(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12583
12584# The names of the tagged configurations supported by this script.
12585available_tags=
12586
12587# ### BEGIN LIBTOOL CONFIG
12588
12589# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12590
12591# Shell to use when invoking shell scripts.
12592SHELL=$lt_SHELL
12593
12594# Whether or not to build shared libraries.
12595build_libtool_libs=$enable_shared
12596
12597# Whether or not to build static libraries.
12598build_old_libs=$enable_static
12599
12600# Whether or not to add -lc for building shared libraries.
12601build_libtool_need_lc=$archive_cmds_need_lc
12602
12603# Whether or not to disallow shared libs when runtime libs are static
12604allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12605
12606# Whether or not to optimize for fast installation.
12607fast_install=$enable_fast_install
12608
12609# The host system.
12610host_alias=$host_alias
12611host=$host
12612host_os=$host_os
12613
12614# The build system.
12615build_alias=$build_alias
12616build=$build
12617build_os=$build_os
12618
12619# An echo program that does not interpret backslashes.
12620echo=$lt_echo
12621
12622# The archiver.
12623AR=$lt_AR
12624AR_FLAGS=$lt_AR_FLAGS
12625
12626# A C compiler.
12627LTCC=$lt_LTCC
12628
12629# LTCC compiler flags.
12630LTCFLAGS=$lt_LTCFLAGS
12631
12632# A language-specific compiler.
12633CC=$lt_compiler
12634
12635# Is the compiler the GNU C compiler?
12636with_gcc=$GCC
12637
12638# An ERE matcher.
12639EGREP=$lt_EGREP
12640
12641# The linker used to build libraries.
12642LD=$lt_LD
12643
12644# Whether we need hard or soft links.
12645LN_S=$lt_LN_S
12646
12647# A BSD-compatible nm program.
12648NM=$lt_NM
12649
12650# A symbol stripping program
12651STRIP=$lt_STRIP
12652
12653# Used to examine libraries when file_magic_cmd begins "file"
12654MAGIC_CMD=$MAGIC_CMD
12655
12656# Used on cygwin: DLL creation program.
12657DLLTOOL="$DLLTOOL"
12658
12659# Used on cygwin: object dumper.
12660OBJDUMP="$OBJDUMP"
12661
12662# Used on cygwin: assembler.
12663AS="$AS"
12664
12665# The name of the directory that contains temporary libtool files.
12666objdir=$objdir
12667
12668# How to create reloadable object files.
12669reload_flag=$lt_reload_flag
12670reload_cmds=$lt_reload_cmds
12671
12672# How to pass a linker flag through the compiler.
12673wl=$lt_lt_prog_compiler_wl
12674
12675# Object file suffix (normally "o").
12676objext="$ac_objext"
12677
12678# Old archive suffix (normally "a").
12679libext="$libext"
12680
12681# Shared library suffix (normally ".so").
12682shrext_cmds='$shrext_cmds'
12683
12684# Executable file suffix (normally "").
12685exeext="$exeext"
12686
12687# Additional compiler flags for building library objects.
12688pic_flag=$lt_lt_prog_compiler_pic
12689pic_mode=$pic_mode
12690
12691# What is the maximum length of a command?
12692max_cmd_len=$lt_cv_sys_max_cmd_len
12693
12694# Does compiler simultaneously support -c and -o options?
12695compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12696
12697# Must we lock files when doing compilation?
12698need_locks=$lt_need_locks
12699
12700# Do we need the lib prefix for modules?
12701need_lib_prefix=$need_lib_prefix
12702
12703# Do we need a version for libraries?
12704need_version=$need_version
12705
12706# Whether dlopen is supported.
12707dlopen_support=$enable_dlopen
12708
12709# Whether dlopen of programs is supported.
12710dlopen_self=$enable_dlopen_self
12711
12712# Whether dlopen of statically linked programs is supported.
12713dlopen_self_static=$enable_dlopen_self_static
12714
12715# Compiler flag to prevent dynamic linking.
12716link_static_flag=$lt_lt_prog_compiler_static
12717
12718# Compiler flag to turn off builtin functions.
12719no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12720
12721# Compiler flag to allow reflexive dlopens.
12722export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12723
12724# Compiler flag to generate shared objects directly from archives.
12725whole_archive_flag_spec=$lt_whole_archive_flag_spec
12726
12727# Compiler flag to generate thread-safe objects.
12728thread_safe_flag_spec=$lt_thread_safe_flag_spec
12729
12730# Library versioning type.
12731version_type=$version_type
12732
12733# Format of library name prefix.
12734libname_spec=$lt_libname_spec
12735
12736# List of archive names.  First name is the real one, the rest are links.
12737# The last name is the one that the linker finds with -lNAME.
12738library_names_spec=$lt_library_names_spec
12739
12740# The coded name of the library, if different from the real name.
12741soname_spec=$lt_soname_spec
12742
12743# Commands used to build and install an old-style archive.
12744RANLIB=$lt_RANLIB
12745old_archive_cmds=$lt_old_archive_cmds
12746old_postinstall_cmds=$lt_old_postinstall_cmds
12747old_postuninstall_cmds=$lt_old_postuninstall_cmds
12748
12749# Create an old-style archive from a shared archive.
12750old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12751
12752# Create a temporary old-style archive to link instead of a shared archive.
12753old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12754
12755# Commands used to build and install a shared archive.
12756archive_cmds=$lt_archive_cmds
12757archive_expsym_cmds=$lt_archive_expsym_cmds
12758postinstall_cmds=$lt_postinstall_cmds
12759postuninstall_cmds=$lt_postuninstall_cmds
12760
12761# Commands used to build a loadable module (assumed same as above if empty)
12762module_cmds=$lt_module_cmds
12763module_expsym_cmds=$lt_module_expsym_cmds
12764
12765# Commands to strip libraries.
12766old_striplib=$lt_old_striplib
12767striplib=$lt_striplib
12768
12769# Dependencies to place before the objects being linked to create a
12770# shared library.
12771predep_objects=$lt_predep_objects
12772
12773# Dependencies to place after the objects being linked to create a
12774# shared library.
12775postdep_objects=$lt_postdep_objects
12776
12777# Dependencies to place before the objects being linked to create a
12778# shared library.
12779predeps=$lt_predeps
12780
12781# Dependencies to place after the objects being linked to create a
12782# shared library.
12783postdeps=$lt_postdeps
12784
12785# The library search path used internally by the compiler when linking
12786# a shared library.
12787compiler_lib_search_path=$lt_compiler_lib_search_path
12788
12789# Method to check whether dependent libraries are shared objects.
12790deplibs_check_method=$lt_deplibs_check_method
12791
12792# Command to use when deplibs_check_method == file_magic.
12793file_magic_cmd=$lt_file_magic_cmd
12794
12795# Flag that allows shared libraries with undefined symbols to be built.
12796allow_undefined_flag=$lt_allow_undefined_flag
12797
12798# Flag that forces no undefined symbols.
12799no_undefined_flag=$lt_no_undefined_flag
12800
12801# Commands used to finish a libtool library installation in a directory.
12802finish_cmds=$lt_finish_cmds
12803
12804# Same as above, but a single script fragment to be evaled but not shown.
12805finish_eval=$lt_finish_eval
12806
12807# Take the output of nm and produce a listing of raw symbols and C names.
12808global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12809
12810# Transform the output of nm in a proper C declaration
12811global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12812
12813# Transform the output of nm in a C name address pair
12814global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12815
12816# This is the shared library runtime path variable.
12817runpath_var=$runpath_var
12818
12819# This is the shared library path variable.
12820shlibpath_var=$shlibpath_var
12821
12822# Is shlibpath searched before the hard-coded library search path?
12823shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12824
12825# How to hardcode a shared library path into an executable.
12826hardcode_action=$hardcode_action
12827
12828# Whether we should hardcode library paths into libraries.
12829hardcode_into_libs=$hardcode_into_libs
12830
12831# Flag to hardcode \$libdir into a binary during linking.
12832# This must work even if \$libdir does not exist.
12833hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12834
12835# If ld is used when linking, flag to hardcode \$libdir into
12836# a binary during linking. This must work even if \$libdir does
12837# not exist.
12838hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12839
12840# Whether we need a single -rpath flag with a separated argument.
12841hardcode_libdir_separator=$lt_hardcode_libdir_separator
12842
12843# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12844# resulting binary.
12845hardcode_direct=$hardcode_direct
12846
12847# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12848# resulting binary.
12849hardcode_minus_L=$hardcode_minus_L
12850
12851# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12852# the resulting binary.
12853hardcode_shlibpath_var=$hardcode_shlibpath_var
12854
12855# Set to yes if building a shared library automatically hardcodes DIR into the library
12856# and all subsequent libraries and executables linked against it.
12857hardcode_automatic=$hardcode_automatic
12858
12859# Variables whose values should be saved in libtool wrapper scripts and
12860# restored at relink time.
12861variables_saved_for_relink="$variables_saved_for_relink"
12862
12863# Whether libtool must link a program against all its dependency libraries.
12864link_all_deplibs=$link_all_deplibs
12865
12866# Compile-time system search path for libraries
12867sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12868
12869# Run-time system search path for libraries
12870sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12871
12872# Fix the shell variable \$srcfile for the compiler.
12873fix_srcfile_path="$fix_srcfile_path"
12874
12875# Set to yes if exported symbols are required.
12876always_export_symbols=$always_export_symbols
12877
12878# The commands to list exported symbols.
12879export_symbols_cmds=$lt_export_symbols_cmds
12880
12881# The commands to extract the exported symbol list from a shared archive.
12882extract_expsyms_cmds=$lt_extract_expsyms_cmds
12883
12884# Symbols that should not be listed in the preloaded symbols.
12885exclude_expsyms=$lt_exclude_expsyms
12886
12887# Symbols that must always be exported.
12888include_expsyms=$lt_include_expsyms
12889
12890# ### END LIBTOOL CONFIG
12891
12892__EOF__
12893
12894
12895  case $host_os in
12896  aix3*)
12897    cat <<\EOF >> "$cfgfile"
12898
12899# AIX sometimes has problems with the GCC collect2 program.  For some
12900# reason, if we set the COLLECT_NAMES environment variable, the problems
12901# vanish in a puff of smoke.
12902if test "X${COLLECT_NAMES+set}" != Xset; then
12903  COLLECT_NAMES=
12904  export COLLECT_NAMES
12905fi
12906EOF
12907    ;;
12908  esac
12909
12910  # We use sed instead of cat because bash on DJGPP gets confused if
12911  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
12912  # text mode, it properly converts lines to CR/LF.  This bash problem
12913  # is reportedly fixed, but why not run on old versions too?
12914  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
12915
12916  mv -f "$cfgfile" "$ofile" || \
12917    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12918  chmod +x "$ofile"
12919
12920else
12921  # If there is no Makefile yet, we rely on a make rule to execute
12922  # `config.status --recheck' to rerun these tests and create the
12923  # libtool script then.
12924  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12925  if test -f "$ltmain_in"; then
12926    test -f Makefile && make "$ltmain"
12927  fi
12928fi
12929
12930
12931ac_ext=c
12932ac_cpp='$CPP $CPPFLAGS'
12933ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12934ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12935ac_compiler_gnu=$ac_cv_c_compiler_gnu
12936
12937CC="$lt_save_CC"
12938
12939
12940# Check whether --with-tags or --without-tags was given.
12941if test "${with_tags+set}" = set; then
12942  withval="$with_tags"
12943  tagnames="$withval"
12944fi;
12945
12946if test -f "$ltmain" && test -n "$tagnames"; then
12947  if test ! -f "${ofile}"; then
12948    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
12949echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
12950  fi
12951
12952  if test -z "$LTCC"; then
12953    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12954    if test -z "$LTCC"; then
12955      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12956echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
12957    else
12958      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
12959echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
12960    fi
12961  fi
12962  if test -z "$LTCFLAGS"; then
12963    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
12964  fi
12965
12966  # Extract list of available tagged configurations in $ofile.
12967  # Note that this assumes the entire list is on one line.
12968  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12969
12970  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12971  for tagname in $tagnames; do
12972    IFS="$lt_save_ifs"
12973    # Check whether tagname contains only valid characters
12974    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12975    "") ;;
12976    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12977echo "$as_me: error: invalid tag name: $tagname" >&2;}
12978   { (exit 1); exit 1; }; }
12979	;;
12980    esac
12981
12982    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12983    then
12984      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12985echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12986   { (exit 1); exit 1; }; }
12987    fi
12988
12989    # Update the list of available tags.
12990    if test -n "$tagname"; then
12991      echo appending configuration tag \"$tagname\" to $ofile
12992
12993      case $tagname in
12994      CXX)
12995	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12996	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12997	    (test "X$CXX" != "Xg++"))) ; then
12998	  ac_ext=cc
12999ac_cpp='$CXXCPP $CPPFLAGS'
13000ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13001ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13002ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13003
13004
13005
13006
13007archive_cmds_need_lc_CXX=no
13008allow_undefined_flag_CXX=
13009always_export_symbols_CXX=no
13010archive_expsym_cmds_CXX=
13011export_dynamic_flag_spec_CXX=
13012hardcode_direct_CXX=no
13013hardcode_libdir_flag_spec_CXX=
13014hardcode_libdir_flag_spec_ld_CXX=
13015hardcode_libdir_separator_CXX=
13016hardcode_minus_L_CXX=no
13017hardcode_shlibpath_var_CXX=unsupported
13018hardcode_automatic_CXX=no
13019module_cmds_CXX=
13020module_expsym_cmds_CXX=
13021link_all_deplibs_CXX=unknown
13022old_archive_cmds_CXX=$old_archive_cmds
13023no_undefined_flag_CXX=
13024whole_archive_flag_spec_CXX=
13025enable_shared_with_static_runtimes_CXX=no
13026
13027# Dependencies to place before and after the object being linked:
13028predep_objects_CXX=
13029postdep_objects_CXX=
13030predeps_CXX=
13031postdeps_CXX=
13032compiler_lib_search_path_CXX=
13033
13034# Source file extension for C++ test sources.
13035ac_ext=cpp
13036
13037# Object file extension for compiled C++ test sources.
13038objext=o
13039objext_CXX=$objext
13040
13041# Code to be used in simple compile tests
13042lt_simple_compile_test_code="int some_variable = 0;\n"
13043
13044# Code to be used in simple link tests
13045lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
13046
13047# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13048
13049# If no C compiler was specified, use CC.
13050LTCC=${LTCC-"$CC"}
13051
13052# If no C compiler flags were specified, use CFLAGS.
13053LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13054
13055# Allow CC to be a program name with arguments.
13056compiler=$CC
13057
13058
13059# save warnings/boilerplate of simple test code
13060ac_outfile=conftest.$ac_objext
13061printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13062eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13063_lt_compiler_boilerplate=`cat conftest.err`
13064$rm conftest*
13065
13066ac_outfile=conftest.$ac_objext
13067printf "$lt_simple_link_test_code" >conftest.$ac_ext
13068eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13069_lt_linker_boilerplate=`cat conftest.err`
13070$rm conftest*
13071
13072
13073# Allow CC to be a program name with arguments.
13074lt_save_CC=$CC
13075lt_save_LD=$LD
13076lt_save_GCC=$GCC
13077GCC=$GXX
13078lt_save_with_gnu_ld=$with_gnu_ld
13079lt_save_path_LD=$lt_cv_path_LD
13080if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13081  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13082else
13083  $as_unset lt_cv_prog_gnu_ld
13084fi
13085if test -n "${lt_cv_path_LDCXX+set}"; then
13086  lt_cv_path_LD=$lt_cv_path_LDCXX
13087else
13088  $as_unset lt_cv_path_LD
13089fi
13090test -z "${LDCXX+set}" || LD=$LDCXX
13091CC=${CXX-"c++"}
13092compiler=$CC
13093compiler_CXX=$CC
13094for cc_temp in $compiler""; do
13095  case $cc_temp in
13096    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13097    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13098    \-*) ;;
13099    *) break;;
13100  esac
13101done
13102cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13103
13104
13105# We don't want -fno-exception wen compiling C++ code, so set the
13106# no_builtin_flag separately
13107if test "$GXX" = yes; then
13108  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13109else
13110  lt_prog_compiler_no_builtin_flag_CXX=
13111fi
13112
13113if test "$GXX" = yes; then
13114  # Set up default GNU C++ configuration
13115
13116
13117# Check whether --with-gnu-ld or --without-gnu-ld was given.
13118if test "${with_gnu_ld+set}" = set; then
13119  withval="$with_gnu_ld"
13120  test "$withval" = no || with_gnu_ld=yes
13121else
13122  with_gnu_ld=no
13123fi;
13124ac_prog=ld
13125if test "$GCC" = yes; then
13126  # Check if gcc -print-prog-name=ld gives a path.
13127  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13128echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
13129  case $host in
13130  *-*-mingw*)
13131    # gcc leaves a trailing carriage return which upsets mingw
13132    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13133  *)
13134    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13135  esac
13136  case $ac_prog in
13137    # Accept absolute paths.
13138    [\\/]* | ?:[\\/]*)
13139      re_direlt='/[^/][^/]*/\.\./'
13140      # Canonicalize the pathname of ld
13141      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
13142      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13143	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
13144      done
13145      test -z "$LD" && LD="$ac_prog"
13146      ;;
13147  "")
13148    # If it fails, then pretend we aren't using GCC.
13149    ac_prog=ld
13150    ;;
13151  *)
13152    # If it is relative, then search for the first ld in PATH.
13153    with_gnu_ld=unknown
13154    ;;
13155  esac
13156elif test "$with_gnu_ld" = yes; then
13157  echo "$as_me:$LINENO: checking for GNU ld" >&5
13158echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
13159else
13160  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13161echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
13162fi
13163if test "${lt_cv_path_LD+set}" = set; then
13164  echo $ECHO_N "(cached) $ECHO_C" >&6
13165else
13166  if test -z "$LD"; then
13167  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13168  for ac_dir in $PATH; do
13169    IFS="$lt_save_ifs"
13170    test -z "$ac_dir" && ac_dir=.
13171    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13172      lt_cv_path_LD="$ac_dir/$ac_prog"
13173      # Check to see if the program is GNU ld.  I'd rather use --version,
13174      # but apparently some variants of GNU ld only accept -v.
13175      # Break only if it was the GNU/non-GNU ld that we prefer.
13176      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13177      *GNU* | *'with BFD'*)
13178	test "$with_gnu_ld" != no && break
13179	;;
13180      *)
13181	test "$with_gnu_ld" != yes && break
13182	;;
13183      esac
13184    fi
13185  done
13186  IFS="$lt_save_ifs"
13187else
13188  lt_cv_path_LD="$LD" # Let the user override the test with a path.
13189fi
13190fi
13191
13192LD="$lt_cv_path_LD"
13193if test -n "$LD"; then
13194  echo "$as_me:$LINENO: result: $LD" >&5
13195echo "${ECHO_T}$LD" >&6
13196else
13197  echo "$as_me:$LINENO: result: no" >&5
13198echo "${ECHO_T}no" >&6
13199fi
13200test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13201echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13202   { (exit 1); exit 1; }; }
13203echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13204echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
13205if test "${lt_cv_prog_gnu_ld+set}" = set; then
13206  echo $ECHO_N "(cached) $ECHO_C" >&6
13207else
13208  # I'd rather use --version here, but apparently some GNU lds only accept -v.
13209case `$LD -v 2>&1 </dev/null` in
13210*GNU* | *'with BFD'*)
13211  lt_cv_prog_gnu_ld=yes
13212  ;;
13213*)
13214  lt_cv_prog_gnu_ld=no
13215  ;;
13216esac
13217fi
13218echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13219echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
13220with_gnu_ld=$lt_cv_prog_gnu_ld
13221
13222
13223
13224  # Check if GNU C++ uses GNU ld as the underlying linker, since the
13225  # archiving commands below assume that GNU ld is being used.
13226  if test "$with_gnu_ld" = yes; then
13227    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13228    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'
13229
13230    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13231    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13232
13233    # If archive_cmds runs LD, not CC, wlarc should be empty
13234    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13235    #     investigate it a little bit more. (MM)
13236    wlarc='${wl}'
13237
13238    # ancient GNU ld didn't support --whole-archive et. al.
13239    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
13240	grep 'no-whole-archive' > /dev/null; then
13241      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13242    else
13243      whole_archive_flag_spec_CXX=
13244    fi
13245  else
13246    with_gnu_ld=no
13247    wlarc=
13248
13249    # A generic and very simple default shared library creation
13250    # command for GNU C++ for the case where it uses the native
13251    # linker, instead of GNU ld.  If possible, this setting should
13252    # overridden to take advantage of the native linker features on
13253    # the platform it is being used on.
13254    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13255  fi
13256
13257  # Commands to make compiler produce verbose output that lists
13258  # what "hidden" libraries, object files and flags are used when
13259  # linking a shared library.
13260  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13261
13262else
13263  GXX=no
13264  with_gnu_ld=no
13265  wlarc=
13266fi
13267
13268# PORTME: fill in a description of your system's C++ link characteristics
13269echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13270echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13271ld_shlibs_CXX=yes
13272case $host_os in
13273  aix3*)
13274    # FIXME: insert proper C++ library support
13275    ld_shlibs_CXX=no
13276    ;;
13277  aix4* | aix5*)
13278    if test "$host_cpu" = ia64; then
13279      # On IA64, the linker does run time linking by default, so we don't
13280      # have to do anything special.
13281      aix_use_runtimelinking=no
13282      exp_sym_flag='-Bexport'
13283      no_entry_flag=""
13284    else
13285      aix_use_runtimelinking=no
13286
13287      # Test if we are trying to use run time linking or normal
13288      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13289      # need to do runtime linking.
13290      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13291	for ld_flag in $LDFLAGS; do
13292	  case $ld_flag in
13293	  *-brtl*)
13294	    aix_use_runtimelinking=yes
13295	    break
13296	    ;;
13297	  esac
13298	done
13299	;;
13300      esac
13301
13302      exp_sym_flag='-bexport'
13303      no_entry_flag='-bnoentry'
13304    fi
13305
13306    # When large executables or shared objects are built, AIX ld can
13307    # have problems creating the table of contents.  If linking a library
13308    # or program results in "error TOC overflow" add -mminimal-toc to
13309    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13310    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13311
13312    archive_cmds_CXX=''
13313    hardcode_direct_CXX=yes
13314    hardcode_libdir_separator_CXX=':'
13315    link_all_deplibs_CXX=yes
13316
13317    if test "$GXX" = yes; then
13318      case $host_os in aix4.[012]|aix4.[012].*)
13319      # We only want to do this on AIX 4.2 and lower, the check
13320      # below for broken collect2 doesn't work under 4.3+
13321	collect2name=`${CC} -print-prog-name=collect2`
13322	if test -f "$collect2name" && \
13323	   strings "$collect2name" | grep resolve_lib_name >/dev/null
13324	then
13325	  # We have reworked collect2
13326	  hardcode_direct_CXX=yes
13327	else
13328	  # We have old collect2
13329	  hardcode_direct_CXX=unsupported
13330	  # It fails to find uninstalled libraries when the uninstalled
13331	  # path is not listed in the libpath.  Setting hardcode_minus_L
13332	  # to unsupported forces relinking
13333	  hardcode_minus_L_CXX=yes
13334	  hardcode_libdir_flag_spec_CXX='-L$libdir'
13335	  hardcode_libdir_separator_CXX=
13336	fi
13337	;;
13338      esac
13339      shared_flag='-shared'
13340      if test "$aix_use_runtimelinking" = yes; then
13341	shared_flag="$shared_flag "'${wl}-G'
13342      fi
13343    else
13344      # not using gcc
13345      if test "$host_cpu" = ia64; then
13346	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13347	# chokes on -Wl,-G. The following line is correct:
13348	shared_flag='-G'
13349      else
13350	if test "$aix_use_runtimelinking" = yes; then
13351	  shared_flag='${wl}-G'
13352	else
13353	  shared_flag='${wl}-bM:SRE'
13354	fi
13355      fi
13356    fi
13357
13358    # It seems that -bexpall does not export symbols beginning with
13359    # underscore (_), so it is better to generate a list of symbols to export.
13360    always_export_symbols_CXX=yes
13361    if test "$aix_use_runtimelinking" = yes; then
13362      # Warning - without using the other runtime loading flags (-brtl),
13363      # -berok will link without error, but may produce a broken library.
13364      allow_undefined_flag_CXX='-berok'
13365      # Determine the default libpath from the value encoded in an empty executable.
13366      cat >conftest.$ac_ext <<_ACEOF
13367/* confdefs.h.  */
13368_ACEOF
13369cat confdefs.h >>conftest.$ac_ext
13370cat >>conftest.$ac_ext <<_ACEOF
13371/* end confdefs.h.  */
13372
13373#ifdef F77_DUMMY_MAIN
13374
13375#  ifdef __cplusplus
13376     extern "C"
13377#  endif
13378   int F77_DUMMY_MAIN() { return 1; }
13379
13380#endif
13381int
13382main ()
13383{
13384
13385  ;
13386  return 0;
13387}
13388_ACEOF
13389rm -f conftest.$ac_objext conftest$ac_exeext
13390if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13391  (eval $ac_link) 2>conftest.er1
13392  ac_status=$?
13393  grep -v '^ *+' conftest.er1 >conftest.err
13394  rm -f conftest.er1
13395  cat conftest.err >&5
13396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13397  (exit $ac_status); } &&
13398	 { ac_try='test -z "$ac_cxx_werror_flag"
13399			 || test ! -s conftest.err'
13400  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13401  (eval $ac_try) 2>&5
13402  ac_status=$?
13403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13404  (exit $ac_status); }; } &&
13405	 { ac_try='test -s conftest$ac_exeext'
13406  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13407  (eval $ac_try) 2>&5
13408  ac_status=$?
13409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13410  (exit $ac_status); }; }; then
13411
13412aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13413}'`
13414# Check for a 64-bit object if we didn't find anything.
13415if 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; }
13416}'`; fi
13417else
13418  echo "$as_me: failed program was:" >&5
13419sed 's/^/| /' conftest.$ac_ext >&5
13420
13421fi
13422rm -f conftest.err conftest.$ac_objext \
13423      conftest$ac_exeext conftest.$ac_ext
13424if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13425
13426      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13427
13428      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"
13429     else
13430      if test "$host_cpu" = ia64; then
13431	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13432	allow_undefined_flag_CXX="-z nodefs"
13433	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"
13434      else
13435	# Determine the default libpath from the value encoded in an empty executable.
13436	cat >conftest.$ac_ext <<_ACEOF
13437/* confdefs.h.  */
13438_ACEOF
13439cat confdefs.h >>conftest.$ac_ext
13440cat >>conftest.$ac_ext <<_ACEOF
13441/* end confdefs.h.  */
13442
13443#ifdef F77_DUMMY_MAIN
13444
13445#  ifdef __cplusplus
13446     extern "C"
13447#  endif
13448   int F77_DUMMY_MAIN() { return 1; }
13449
13450#endif
13451int
13452main ()
13453{
13454
13455  ;
13456  return 0;
13457}
13458_ACEOF
13459rm -f conftest.$ac_objext conftest$ac_exeext
13460if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13461  (eval $ac_link) 2>conftest.er1
13462  ac_status=$?
13463  grep -v '^ *+' conftest.er1 >conftest.err
13464  rm -f conftest.er1
13465  cat conftest.err >&5
13466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467  (exit $ac_status); } &&
13468	 { ac_try='test -z "$ac_cxx_werror_flag"
13469			 || test ! -s conftest.err'
13470  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13471  (eval $ac_try) 2>&5
13472  ac_status=$?
13473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13474  (exit $ac_status); }; } &&
13475	 { ac_try='test -s conftest$ac_exeext'
13476  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13477  (eval $ac_try) 2>&5
13478  ac_status=$?
13479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13480  (exit $ac_status); }; }; then
13481
13482aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13483}'`
13484# Check for a 64-bit object if we didn't find anything.
13485if 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; }
13486}'`; fi
13487else
13488  echo "$as_me: failed program was:" >&5
13489sed 's/^/| /' conftest.$ac_ext >&5
13490
13491fi
13492rm -f conftest.err conftest.$ac_objext \
13493      conftest$ac_exeext conftest.$ac_ext
13494if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13495
13496	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13497	# Warning - without using the other run time loading flags,
13498	# -berok will link without error, but may produce a broken library.
13499	no_undefined_flag_CXX=' ${wl}-bernotok'
13500	allow_undefined_flag_CXX=' ${wl}-berok'
13501	# Exported symbols can be pulled into shared objects from archives
13502	whole_archive_flag_spec_CXX='$convenience'
13503	archive_cmds_need_lc_CXX=yes
13504	# This is similar to how AIX traditionally builds its shared libraries.
13505	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'
13506      fi
13507    fi
13508    ;;
13509
13510  beos*)
13511    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13512      allow_undefined_flag_CXX=unsupported
13513      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13514      # support --undefined.  This deserves some investigation.  FIXME
13515      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13516    else
13517      ld_shlibs_CXX=no
13518    fi
13519    ;;
13520
13521  chorus*)
13522    case $cc_basename in
13523      *)
13524	# FIXME: insert proper C++ library support
13525	ld_shlibs_CXX=no
13526	;;
13527    esac
13528    ;;
13529
13530  cygwin* | mingw* | pw32*)
13531    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13532    # as there is no search path for DLLs.
13533    hardcode_libdir_flag_spec_CXX='-L$libdir'
13534    allow_undefined_flag_CXX=unsupported
13535    always_export_symbols_CXX=no
13536    enable_shared_with_static_runtimes_CXX=yes
13537
13538    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13539      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'
13540      # If the export-symbols file already is a .def file (1st line
13541      # is EXPORTS), use it as is; otherwise, prepend...
13542      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13543	cp $export_symbols $output_objdir/$soname.def;
13544      else
13545	echo EXPORTS > $output_objdir/$soname.def;
13546	cat $export_symbols >> $output_objdir/$soname.def;
13547      fi~
13548      $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'
13549    else
13550      ld_shlibs_CXX=no
13551    fi
13552  ;;
13553      darwin* | rhapsody*)
13554        case $host_os in
13555        rhapsody* | darwin1.[012])
13556         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
13557         ;;
13558       *) # Darwin 1.3 on
13559         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13560           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13561         else
13562           case ${MACOSX_DEPLOYMENT_TARGET} in
13563             10.[012])
13564               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13565               ;;
13566             10.*)
13567               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
13568               ;;
13569           esac
13570         fi
13571         ;;
13572        esac
13573      archive_cmds_need_lc_CXX=no
13574      hardcode_direct_CXX=no
13575      hardcode_automatic_CXX=yes
13576      hardcode_shlibpath_var_CXX=unsupported
13577      whole_archive_flag_spec_CXX=''
13578      link_all_deplibs_CXX=yes
13579
13580    if test "$GXX" = yes ; then
13581      lt_int_apple_cc_single_mod=no
13582      output_verbose_link_cmd='echo'
13583      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
13584       lt_int_apple_cc_single_mod=yes
13585      fi
13586      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13587       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13588      else
13589          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'
13590        fi
13591        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13592        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13593          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13594            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}'
13595          else
13596            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}'
13597          fi
13598            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}'
13599      else
13600      case $cc_basename in
13601        xlc*)
13602         output_verbose_link_cmd='echo'
13603          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'
13604          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13605          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13606          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}'
13607          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}'
13608          ;;
13609       *)
13610         ld_shlibs_CXX=no
13611          ;;
13612      esac
13613      fi
13614        ;;
13615
13616  dgux*)
13617    case $cc_basename in
13618      ec++*)
13619	# FIXME: insert proper C++ library support
13620	ld_shlibs_CXX=no
13621	;;
13622      ghcx*)
13623	# Green Hills C++ Compiler
13624	# FIXME: insert proper C++ library support
13625	ld_shlibs_CXX=no
13626	;;
13627      *)
13628	# FIXME: insert proper C++ library support
13629	ld_shlibs_CXX=no
13630	;;
13631    esac
13632    ;;
13633  freebsd[12]*)
13634    # C++ shared libraries reported to be fairly broken before switch to ELF
13635    ld_shlibs_CXX=no
13636    ;;
13637  freebsd-elf*)
13638    archive_cmds_need_lc_CXX=no
13639    ;;
13640  freebsd* | kfreebsd*-gnu | dragonfly*)
13641    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13642    # conventions
13643    ld_shlibs_CXX=yes
13644    ;;
13645  gnu*)
13646    ;;
13647  hpux9*)
13648    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13649    hardcode_libdir_separator_CXX=:
13650    export_dynamic_flag_spec_CXX='${wl}-E'
13651    hardcode_direct_CXX=yes
13652    hardcode_minus_L_CXX=yes # Not in the search PATH,
13653				# but as the default
13654				# location of the library.
13655
13656    case $cc_basename in
13657    CC*)
13658      # FIXME: insert proper C++ library support
13659      ld_shlibs_CXX=no
13660      ;;
13661    aCC*)
13662      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'
13663      # Commands to make compiler produce verbose output that lists
13664      # what "hidden" libraries, object files and flags are used when
13665      # linking a shared library.
13666      #
13667      # There doesn't appear to be a way to prevent this compiler from
13668      # explicitly linking system object files so we need to strip them
13669      # from the output so that they don't get included in the library
13670      # dependencies.
13671      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'
13672      ;;
13673    *)
13674      if test "$GXX" = yes; then
13675        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'
13676      else
13677        # FIXME: insert proper C++ library support
13678        ld_shlibs_CXX=no
13679      fi
13680      ;;
13681    esac
13682    ;;
13683  hpux10*|hpux11*)
13684    if test $with_gnu_ld = no; then
13685      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13686      hardcode_libdir_separator_CXX=:
13687
13688      case $host_cpu in
13689      hppa*64*|ia64*)
13690	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
13691        ;;
13692      *)
13693	export_dynamic_flag_spec_CXX='${wl}-E'
13694        ;;
13695      esac
13696    fi
13697    case $host_cpu in
13698    hppa*64*|ia64*)
13699      hardcode_direct_CXX=no
13700      hardcode_shlibpath_var_CXX=no
13701      ;;
13702    *)
13703      hardcode_direct_CXX=yes
13704      hardcode_minus_L_CXX=yes # Not in the search PATH,
13705					      # but as the default
13706					      # location of the library.
13707      ;;
13708    esac
13709
13710    case $cc_basename in
13711      CC*)
13712	# FIXME: insert proper C++ library support
13713	ld_shlibs_CXX=no
13714	;;
13715      aCC*)
13716	case $host_cpu in
13717	hppa*64*)
13718	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13719	  ;;
13720	ia64*)
13721	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13722	  ;;
13723	*)
13724	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13725	  ;;
13726	esac
13727	# Commands to make compiler produce verbose output that lists
13728	# what "hidden" libraries, object files and flags are used when
13729	# linking a shared library.
13730	#
13731	# There doesn't appear to be a way to prevent this compiler from
13732	# explicitly linking system object files so we need to strip them
13733	# from the output so that they don't get included in the library
13734	# dependencies.
13735	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'
13736	;;
13737      *)
13738	if test "$GXX" = yes; then
13739	  if test $with_gnu_ld = no; then
13740	    case $host_cpu in
13741	    hppa*64*)
13742	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13743	      ;;
13744	    ia64*)
13745	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13746	      ;;
13747	    *)
13748	      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'
13749	      ;;
13750	    esac
13751	  fi
13752	else
13753	  # FIXME: insert proper C++ library support
13754	  ld_shlibs_CXX=no
13755	fi
13756	;;
13757    esac
13758    ;;
13759  interix3*)
13760    hardcode_direct_CXX=no
13761    hardcode_shlibpath_var_CXX=no
13762    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13763    export_dynamic_flag_spec_CXX='${wl}-E'
13764    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13765    # Instead, shared libraries are loaded at an image base (0x10000000 by
13766    # default) and relocated if they conflict, which is a slow very memory
13767    # consuming and fragmenting process.  To avoid this, we pick a random,
13768    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13769    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13770    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'
13771    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'
13772    ;;
13773  irix5* | irix6*)
13774    case $cc_basename in
13775      CC*)
13776	# SGI C++
13777	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'
13778
13779	# Archives containing C++ object files must be created using
13780	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13781	# necessary to make sure instantiated templates are included
13782	# in the archive.
13783	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13784	;;
13785      *)
13786	if test "$GXX" = yes; then
13787	  if test "$with_gnu_ld" = no; then
13788	    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'
13789	  else
13790	    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'
13791	  fi
13792	fi
13793	link_all_deplibs_CXX=yes
13794	;;
13795    esac
13796    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13797    hardcode_libdir_separator_CXX=:
13798    ;;
13799  linux*)
13800    case $cc_basename in
13801      KCC*)
13802	# Kuck and Associates, Inc. (KAI) C++ Compiler
13803
13804	# KCC will only create a shared library if the output file
13805	# ends with ".so" (or ".sl" for HP-UX), so rename the library
13806	# to its proper name (with version) after linking.
13807	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'
13808	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'
13809	# Commands to make compiler produce verbose output that lists
13810	# what "hidden" libraries, object files and flags are used when
13811	# linking a shared library.
13812	#
13813	# There doesn't appear to be a way to prevent this compiler from
13814	# explicitly linking system object files so we need to strip them
13815	# from the output so that they don't get included in the library
13816	# dependencies.
13817	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'
13818
13819	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
13820	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13821
13822	# Archives containing C++ object files must be created using
13823	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
13824	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13825	;;
13826      icpc*)
13827	# Intel C++
13828	with_gnu_ld=yes
13829	# version 8.0 and above of icpc choke on multiply defined symbols
13830	# if we add $predep_objects and $postdep_objects, however 7.1 and
13831	# earlier do not add the objects themselves.
13832	case `$CC -V 2>&1` in
13833	*"Version 7."*)
13834  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13835  	  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'
13836	  ;;
13837	*)  # Version 8.0 or newer
13838	  tmp_idyn=
13839	  case $host_cpu in
13840	    ia64*) tmp_idyn=' -i_dynamic';;
13841	  esac
13842  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13843	  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'
13844	  ;;
13845	esac
13846	archive_cmds_need_lc_CXX=no
13847	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13848	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13849	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13850	;;
13851      pgCC*)
13852        # Portland Group C++ compiler
13853	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13854  	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'
13855
13856	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13857	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13858	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'
13859        ;;
13860      cxx*)
13861	# Compaq C++
13862	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13863	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'
13864
13865	runpath_var=LD_RUN_PATH
13866	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13867	hardcode_libdir_separator_CXX=:
13868
13869	# Commands to make compiler produce verbose output that lists
13870	# what "hidden" libraries, object files and flags are used when
13871	# linking a shared library.
13872	#
13873	# There doesn't appear to be a way to prevent this compiler from
13874	# explicitly linking system object files so we need to strip them
13875	# from the output so that they don't get included in the library
13876	# dependencies.
13877	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'
13878	;;
13879    esac
13880    ;;
13881  lynxos*)
13882    # FIXME: insert proper C++ library support
13883    ld_shlibs_CXX=no
13884    ;;
13885  m88k*)
13886    # FIXME: insert proper C++ library support
13887    ld_shlibs_CXX=no
13888    ;;
13889  mvs*)
13890    case $cc_basename in
13891      cxx*)
13892	# FIXME: insert proper C++ library support
13893	ld_shlibs_CXX=no
13894	;;
13895      *)
13896	# FIXME: insert proper C++ library support
13897	ld_shlibs_CXX=no
13898	;;
13899    esac
13900    ;;
13901  netbsd*)
13902    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13903      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13904      wlarc=
13905      hardcode_libdir_flag_spec_CXX='-R$libdir'
13906      hardcode_direct_CXX=yes
13907      hardcode_shlibpath_var_CXX=no
13908    fi
13909    # Workaround some broken pre-1.5 toolchains
13910    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13911    ;;
13912  openbsd2*)
13913    # C++ shared libraries are fairly broken
13914    ld_shlibs_CXX=no
13915    ;;
13916  openbsd*)
13917    hardcode_direct_CXX=yes
13918    hardcode_shlibpath_var_CXX=no
13919    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13920    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13921    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13922      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13923      export_dynamic_flag_spec_CXX='${wl}-E'
13924      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13925    fi
13926    output_verbose_link_cmd='echo'
13927    ;;
13928  osf3*)
13929    case $cc_basename in
13930      KCC*)
13931	# Kuck and Associates, Inc. (KAI) C++ Compiler
13932
13933	# KCC will only create a shared library if the output file
13934	# ends with ".so" (or ".sl" for HP-UX), so rename the library
13935	# to its proper name (with version) after linking.
13936	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'
13937
13938	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13939	hardcode_libdir_separator_CXX=:
13940
13941	# Archives containing C++ object files must be created using
13942	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
13943	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13944
13945	;;
13946      RCC*)
13947	# Rational C++ 2.4.1
13948	# FIXME: insert proper C++ library support
13949	ld_shlibs_CXX=no
13950	;;
13951      cxx*)
13952	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13953	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'
13954
13955	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13956	hardcode_libdir_separator_CXX=:
13957
13958	# Commands to make compiler produce verbose output that lists
13959	# what "hidden" libraries, object files and flags are used when
13960	# linking a shared library.
13961	#
13962	# There doesn't appear to be a way to prevent this compiler from
13963	# explicitly linking system object files so we need to strip them
13964	# from the output so that they don't get included in the library
13965	# dependencies.
13966	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'
13967	;;
13968      *)
13969	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13970	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13971	  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'
13972
13973	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13974	  hardcode_libdir_separator_CXX=:
13975
13976	  # Commands to make compiler produce verbose output that lists
13977	  # what "hidden" libraries, object files and flags are used when
13978	  # linking a shared library.
13979	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13980
13981	else
13982	  # FIXME: insert proper C++ library support
13983	  ld_shlibs_CXX=no
13984	fi
13985	;;
13986    esac
13987    ;;
13988  osf4* | osf5*)
13989    case $cc_basename in
13990      KCC*)
13991	# Kuck and Associates, Inc. (KAI) C++ Compiler
13992
13993	# KCC will only create a shared library if the output file
13994	# ends with ".so" (or ".sl" for HP-UX), so rename the library
13995	# to its proper name (with version) after linking.
13996	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'
13997
13998	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13999	hardcode_libdir_separator_CXX=:
14000
14001	# Archives containing C++ object files must be created using
14002	# the KAI C++ compiler.
14003	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
14004	;;
14005      RCC*)
14006	# Rational C++ 2.4.1
14007	# FIXME: insert proper C++ library support
14008	ld_shlibs_CXX=no
14009	;;
14010      cxx*)
14011	allow_undefined_flag_CXX=' -expect_unresolved \*'
14012	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'
14013	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14014	  echo "-hidden">> $lib.exp~
14015	  $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~
14016	  $rm $lib.exp'
14017
14018	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14019	hardcode_libdir_separator_CXX=:
14020
14021	# Commands to make compiler produce verbose output that lists
14022	# what "hidden" libraries, object files and flags are used when
14023	# linking a shared library.
14024	#
14025	# There doesn't appear to be a way to prevent this compiler from
14026	# explicitly linking system object files so we need to strip them
14027	# from the output so that they don't get included in the library
14028	# dependencies.
14029	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'
14030	;;
14031      *)
14032	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14033	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14034	 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'
14035
14036	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14037	  hardcode_libdir_separator_CXX=:
14038
14039	  # Commands to make compiler produce verbose output that lists
14040	  # what "hidden" libraries, object files and flags are used when
14041	  # linking a shared library.
14042	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
14043
14044	else
14045	  # FIXME: insert proper C++ library support
14046	  ld_shlibs_CXX=no
14047	fi
14048	;;
14049    esac
14050    ;;
14051  psos*)
14052    # FIXME: insert proper C++ library support
14053    ld_shlibs_CXX=no
14054    ;;
14055  sunos4*)
14056    case $cc_basename in
14057      CC*)
14058	# Sun C++ 4.x
14059	# FIXME: insert proper C++ library support
14060	ld_shlibs_CXX=no
14061	;;
14062      lcc*)
14063	# Lucid
14064	# FIXME: insert proper C++ library support
14065	ld_shlibs_CXX=no
14066	;;
14067      *)
14068	# FIXME: insert proper C++ library support
14069	ld_shlibs_CXX=no
14070	;;
14071    esac
14072    ;;
14073  solaris*)
14074    case $cc_basename in
14075      CC*)
14076	# Sun C++ 4.2, 5.x and Centerline C++
14077        archive_cmds_need_lc_CXX=yes
14078	no_undefined_flag_CXX=' -zdefs'
14079	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14080	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14081	$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'
14082
14083	hardcode_libdir_flag_spec_CXX='-R$libdir'
14084	hardcode_shlibpath_var_CXX=no
14085	case $host_os in
14086	  solaris2.[0-5] | solaris2.[0-5].*) ;;
14087	  *)
14088	    # The C++ compiler is used as linker so we must use $wl
14089	    # flag to pass the commands to the underlying system
14090	    # linker. We must also pass each convience library through
14091	    # to the system linker between allextract/defaultextract.
14092	    # The C++ compiler will combine linker options so we
14093	    # cannot just pass the convience library names through
14094	    # without $wl.
14095	    # Supported since Solaris 2.6 (maybe 2.5.1?)
14096	    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'
14097	    ;;
14098	esac
14099	link_all_deplibs_CXX=yes
14100
14101	output_verbose_link_cmd='echo'
14102
14103	# Archives containing C++ object files must be created using
14104	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
14105	# necessary to make sure instantiated templates are included
14106	# in the archive.
14107	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14108	;;
14109      gcx*)
14110	# Green Hills C++ Compiler
14111	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14112
14113	# The C++ compiler must be used to create the archive.
14114	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14115	;;
14116      *)
14117	# GNU C++ compiler with Solaris linker
14118	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14119	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14120	  if $CC --version | grep -v '^2\.7' > /dev/null; then
14121	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14122	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14123		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
14124
14125	    # Commands to make compiler produce verbose output that lists
14126	    # what "hidden" libraries, object files and flags are used when
14127	    # linking a shared library.
14128	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
14129	  else
14130	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
14131	    # platform.
14132	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14133	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14134		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
14135
14136	    # Commands to make compiler produce verbose output that lists
14137	    # what "hidden" libraries, object files and flags are used when
14138	    # linking a shared library.
14139	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
14140	  fi
14141
14142	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14143	fi
14144	;;
14145    esac
14146    ;;
14147  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14148    no_undefined_flag_CXX='${wl}-z,text'
14149    archive_cmds_need_lc_CXX=no
14150    hardcode_shlibpath_var_CXX=no
14151    runpath_var='LD_RUN_PATH'
14152
14153    case $cc_basename in
14154      CC*)
14155	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14156	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14157	;;
14158      *)
14159	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14160	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14161	;;
14162    esac
14163    ;;
14164  sysv5* | sco3.2v5* | sco5v6*)
14165    # Note: We can NOT use -z defs as we might desire, because we do not
14166    # link with -lc, and that would cause any symbols used from libc to
14167    # always be unresolved, which means just about no library would
14168    # ever link correctly.  If we're not using GNU ld we use -z text
14169    # though, which does catch some bad symbols but isn't as heavy-handed
14170    # as -z defs.
14171    # For security reasons, it is highly recommended that you always
14172    # use absolute paths for naming shared libraries, and exclude the
14173    # DT_RUNPATH tag from executables and libraries.  But doing so
14174    # requires that you compile everything twice, which is a pain.
14175    # So that behaviour is only enabled if SCOABSPATH is set to a
14176    # non-empty value in the environment.  Most likely only useful for
14177    # creating official distributions of packages.
14178    # This is a hack until libtool officially supports absolute path
14179    # names for shared libraries.
14180    no_undefined_flag_CXX='${wl}-z,text'
14181    allow_undefined_flag_CXX='${wl}-z,nodefs'
14182    archive_cmds_need_lc_CXX=no
14183    hardcode_shlibpath_var_CXX=no
14184    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14185    hardcode_libdir_separator_CXX=':'
14186    link_all_deplibs_CXX=yes
14187    export_dynamic_flag_spec_CXX='${wl}-Bexport'
14188    runpath_var='LD_RUN_PATH'
14189
14190    case $cc_basename in
14191      CC*)
14192	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14193	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14194	;;
14195      *)
14196	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14197	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14198	;;
14199    esac
14200    ;;
14201  tandem*)
14202    case $cc_basename in
14203      NCC*)
14204	# NonStop-UX NCC 3.20
14205	# FIXME: insert proper C++ library support
14206	ld_shlibs_CXX=no
14207	;;
14208      *)
14209	# FIXME: insert proper C++ library support
14210	ld_shlibs_CXX=no
14211	;;
14212    esac
14213    ;;
14214  vxworks*)
14215    # FIXME: insert proper C++ library support
14216    ld_shlibs_CXX=no
14217    ;;
14218  *)
14219    # FIXME: insert proper C++ library support
14220    ld_shlibs_CXX=no
14221    ;;
14222esac
14223echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14224echo "${ECHO_T}$ld_shlibs_CXX" >&6
14225test "$ld_shlibs_CXX" = no && can_build_shared=no
14226
14227GCC_CXX="$GXX"
14228LD_CXX="$LD"
14229
14230## CAVEAT EMPTOR:
14231## There is no encapsulation within the following macros, do not change
14232## the running order or otherwise move them around unless you know exactly
14233## what you are doing...
14234
14235cat > conftest.$ac_ext <<EOF
14236class Foo
14237{
14238public:
14239  Foo (void) { a = 0; }
14240private:
14241  int a;
14242};
14243EOF
14244
14245if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14246  (eval $ac_compile) 2>&5
14247  ac_status=$?
14248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14249  (exit $ac_status); }; then
14250  # Parse the compiler output and extract the necessary
14251  # objects, libraries and library flags.
14252
14253  # Sentinel used to keep track of whether or not we are before
14254  # the conftest object file.
14255  pre_test_object_deps_done=no
14256
14257  # The `*' in the case matches for architectures that use `case' in
14258  # $output_verbose_cmd can trigger glob expansion during the loop
14259  # eval without this substitution.
14260  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
14261
14262  for p in `eval $output_verbose_link_cmd`; do
14263    case $p in
14264
14265    -L* | -R* | -l*)
14266       # Some compilers place space between "-{L,R}" and the path.
14267       # Remove the space.
14268       if test $p = "-L" \
14269	  || test $p = "-R"; then
14270	 prev=$p
14271	 continue
14272       else
14273	 prev=
14274       fi
14275
14276       if test "$pre_test_object_deps_done" = no; then
14277	 case $p in
14278	 -L* | -R*)
14279	   # Internal compiler library paths should come after those
14280	   # provided the user.  The postdeps already come after the
14281	   # user supplied libs so there is no need to process them.
14282	   if test -z "$compiler_lib_search_path_CXX"; then
14283	     compiler_lib_search_path_CXX="${prev}${p}"
14284	   else
14285	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14286	   fi
14287	   ;;
14288	 # The "-l" case would never come before the object being
14289	 # linked, so don't bother handling this case.
14290	 esac
14291       else
14292	 if test -z "$postdeps_CXX"; then
14293	   postdeps_CXX="${prev}${p}"
14294	 else
14295	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14296	 fi
14297       fi
14298       ;;
14299
14300    *.$objext)
14301       # This assumes that the test object file only shows up
14302       # once in the compiler output.
14303       if test "$p" = "conftest.$objext"; then
14304	 pre_test_object_deps_done=yes
14305	 continue
14306       fi
14307
14308       if test "$pre_test_object_deps_done" = no; then
14309	 if test -z "$predep_objects_CXX"; then
14310	   predep_objects_CXX="$p"
14311	 else
14312	   predep_objects_CXX="$predep_objects_CXX $p"
14313	 fi
14314       else
14315	 if test -z "$postdep_objects_CXX"; then
14316	   postdep_objects_CXX="$p"
14317	 else
14318	   postdep_objects_CXX="$postdep_objects_CXX $p"
14319	 fi
14320       fi
14321       ;;
14322
14323    *) ;; # Ignore the rest.
14324
14325    esac
14326  done
14327
14328  # Clean up.
14329  rm -f a.out a.exe
14330else
14331  echo "libtool.m4: error: problem compiling CXX test program"
14332fi
14333
14334$rm -f confest.$objext
14335
14336# PORTME: override above test on systems where it is broken
14337case $host_os in
14338interix3*)
14339  # Interix 3.5 installs completely hosed .la files for C++, so rather than
14340  # hack all around it, let's just trust "g++" to DTRT.
14341  predep_objects_CXX=
14342  postdep_objects_CXX=
14343  postdeps_CXX=
14344  ;;
14345
14346solaris*)
14347  case $cc_basename in
14348  CC*)
14349    # Adding this requires a known-good setup of shared libraries for
14350    # Sun compiler versions before 5.6, else PIC objects from an old
14351    # archive will be linked into the output, leading to subtle bugs.
14352    postdeps_CXX='-lCstd -lCrun'
14353    ;;
14354  esac
14355  ;;
14356esac
14357
14358
14359case " $postdeps_CXX " in
14360*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14361esac
14362
14363lt_prog_compiler_wl_CXX=
14364lt_prog_compiler_pic_CXX=
14365lt_prog_compiler_static_CXX=
14366
14367echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14368echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14369
14370  # C++ specific cases for pic, static, wl, etc.
14371  if test "$GXX" = yes; then
14372    lt_prog_compiler_wl_CXX='-Wl,'
14373    lt_prog_compiler_static_CXX='-static'
14374
14375    case $host_os in
14376    aix*)
14377      # All AIX code is PIC.
14378      if test "$host_cpu" = ia64; then
14379	# AIX 5 now supports IA64 processor
14380	lt_prog_compiler_static_CXX='-Bstatic'
14381      fi
14382      ;;
14383    amigaos*)
14384      # FIXME: we need at least 68020 code to build shared libraries, but
14385      # adding the `-m68020' flag to GCC prevents building anything better,
14386      # like `-m68040'.
14387      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14388      ;;
14389    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14390      # PIC is the default for these OSes.
14391      ;;
14392    mingw* | os2* | pw32*)
14393      # This hack is so that the source file can tell whether it is being
14394      # built for inclusion in a dll (and should export symbols for example).
14395      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14396      ;;
14397    darwin* | rhapsody*)
14398      # PIC is the default on this platform
14399      # Common symbols not allowed in MH_DYLIB files
14400      lt_prog_compiler_pic_CXX='-fno-common'
14401      ;;
14402    *djgpp*)
14403      # DJGPP does not support shared libraries at all
14404      lt_prog_compiler_pic_CXX=
14405      ;;
14406    interix3*)
14407      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14408      # Instead, we relocate shared libraries at runtime.
14409      ;;
14410    sysv4*MP*)
14411      if test -d /usr/nec; then
14412	lt_prog_compiler_pic_CXX=-Kconform_pic
14413      fi
14414      ;;
14415    hpux*)
14416      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14417      # not for PA HP-UX.
14418      case $host_cpu in
14419      hppa*64*|ia64*)
14420	;;
14421      *)
14422	lt_prog_compiler_pic_CXX='-fPIC'
14423	;;
14424      esac
14425      ;;
14426    *)
14427      lt_prog_compiler_pic_CXX='-fPIC'
14428      ;;
14429    esac
14430  else
14431    case $host_os in
14432      aix4* | aix5*)
14433	# All AIX code is PIC.
14434	if test "$host_cpu" = ia64; then
14435	  # AIX 5 now supports IA64 processor
14436	  lt_prog_compiler_static_CXX='-Bstatic'
14437	else
14438	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14439	fi
14440	;;
14441      chorus*)
14442	case $cc_basename in
14443	cxch68*)
14444	  # Green Hills C++ Compiler
14445	  # _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"
14446	  ;;
14447	esac
14448	;;
14449       darwin*)
14450         # PIC is the default on this platform
14451         # Common symbols not allowed in MH_DYLIB files
14452         case $cc_basename in
14453           xlc*)
14454           lt_prog_compiler_pic_CXX='-qnocommon'
14455           lt_prog_compiler_wl_CXX='-Wl,'
14456           ;;
14457         esac
14458       ;;
14459      dgux*)
14460	case $cc_basename in
14461	  ec++*)
14462	    lt_prog_compiler_pic_CXX='-KPIC'
14463	    ;;
14464	  ghcx*)
14465	    # Green Hills C++ Compiler
14466	    lt_prog_compiler_pic_CXX='-pic'
14467	    ;;
14468	  *)
14469	    ;;
14470	esac
14471	;;
14472      freebsd* | kfreebsd*-gnu | dragonfly*)
14473	# FreeBSD uses GNU C++
14474	;;
14475      hpux9* | hpux10* | hpux11*)
14476	case $cc_basename in
14477	  CC*)
14478	    lt_prog_compiler_wl_CXX='-Wl,'
14479	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14480	    if test "$host_cpu" != ia64; then
14481	      lt_prog_compiler_pic_CXX='+Z'
14482	    fi
14483	    ;;
14484	  aCC*)
14485	    lt_prog_compiler_wl_CXX='-Wl,'
14486	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14487	    case $host_cpu in
14488	    hppa*64*|ia64*)
14489	      # +Z the default
14490	      ;;
14491	    *)
14492	      lt_prog_compiler_pic_CXX='+Z'
14493	      ;;
14494	    esac
14495	    ;;
14496	  *)
14497	    ;;
14498	esac
14499	;;
14500      interix*)
14501	# This is c89, which is MS Visual C++ (no shared libs)
14502	# Anyone wants to do a port?
14503	;;
14504      irix5* | irix6* | nonstopux*)
14505	case $cc_basename in
14506	  CC*)
14507	    lt_prog_compiler_wl_CXX='-Wl,'
14508	    lt_prog_compiler_static_CXX='-non_shared'
14509	    # CC pic flag -KPIC is the default.
14510	    ;;
14511	  *)
14512	    ;;
14513	esac
14514	;;
14515      linux*)
14516	case $cc_basename in
14517	  KCC*)
14518	    # KAI C++ Compiler
14519	    lt_prog_compiler_wl_CXX='--backend -Wl,'
14520	    lt_prog_compiler_pic_CXX='-fPIC'
14521	    ;;
14522	  icpc* | ecpc*)
14523	    # Intel C++
14524	    lt_prog_compiler_wl_CXX='-Wl,'
14525	    lt_prog_compiler_pic_CXX='-KPIC'
14526	    lt_prog_compiler_static_CXX='-static'
14527	    ;;
14528	  pgCC*)
14529	    # Portland Group C++ compiler.
14530	    lt_prog_compiler_wl_CXX='-Wl,'
14531	    lt_prog_compiler_pic_CXX='-fpic'
14532	    lt_prog_compiler_static_CXX='-Bstatic'
14533	    ;;
14534	  cxx*)
14535	    # Compaq C++
14536	    # Make sure the PIC flag is empty.  It appears that all Alpha
14537	    # Linux and Compaq Tru64 Unix objects are PIC.
14538	    lt_prog_compiler_pic_CXX=
14539	    lt_prog_compiler_static_CXX='-non_shared'
14540	    ;;
14541	  *)
14542	    ;;
14543	esac
14544	;;
14545      lynxos*)
14546	;;
14547      m88k*)
14548	;;
14549      mvs*)
14550	case $cc_basename in
14551	  cxx*)
14552	    lt_prog_compiler_pic_CXX='-W c,exportall'
14553	    ;;
14554	  *)
14555	    ;;
14556	esac
14557	;;
14558      netbsd*)
14559	;;
14560      osf3* | osf4* | osf5*)
14561	case $cc_basename in
14562	  KCC*)
14563	    lt_prog_compiler_wl_CXX='--backend -Wl,'
14564	    ;;
14565	  RCC*)
14566	    # Rational C++ 2.4.1
14567	    lt_prog_compiler_pic_CXX='-pic'
14568	    ;;
14569	  cxx*)
14570	    # Digital/Compaq C++
14571	    lt_prog_compiler_wl_CXX='-Wl,'
14572	    # Make sure the PIC flag is empty.  It appears that all Alpha
14573	    # Linux and Compaq Tru64 Unix objects are PIC.
14574	    lt_prog_compiler_pic_CXX=
14575	    lt_prog_compiler_static_CXX='-non_shared'
14576	    ;;
14577	  *)
14578	    ;;
14579	esac
14580	;;
14581      psos*)
14582	;;
14583      solaris*)
14584	case $cc_basename in
14585	  CC*)
14586	    # Sun C++ 4.2, 5.x and Centerline C++
14587	    lt_prog_compiler_pic_CXX='-KPIC'
14588	    lt_prog_compiler_static_CXX='-Bstatic'
14589	    lt_prog_compiler_wl_CXX='-Qoption ld '
14590	    ;;
14591	  gcx*)
14592	    # Green Hills C++ Compiler
14593	    lt_prog_compiler_pic_CXX='-PIC'
14594	    ;;
14595	  *)
14596	    ;;
14597	esac
14598	;;
14599      sunos4*)
14600	case $cc_basename in
14601	  CC*)
14602	    # Sun C++ 4.x
14603	    lt_prog_compiler_pic_CXX='-pic'
14604	    lt_prog_compiler_static_CXX='-Bstatic'
14605	    ;;
14606	  lcc*)
14607	    # Lucid
14608	    lt_prog_compiler_pic_CXX='-pic'
14609	    ;;
14610	  *)
14611	    ;;
14612	esac
14613	;;
14614      tandem*)
14615	case $cc_basename in
14616	  NCC*)
14617	    # NonStop-UX NCC 3.20
14618	    lt_prog_compiler_pic_CXX='-KPIC'
14619	    ;;
14620	  *)
14621	    ;;
14622	esac
14623	;;
14624      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14625	case $cc_basename in
14626	  CC*)
14627	    lt_prog_compiler_wl_CXX='-Wl,'
14628	    lt_prog_compiler_pic_CXX='-KPIC'
14629	    lt_prog_compiler_static_CXX='-Bstatic'
14630	    ;;
14631	esac
14632	;;
14633      vxworks*)
14634	;;
14635      *)
14636	lt_prog_compiler_can_build_shared_CXX=no
14637	;;
14638    esac
14639  fi
14640
14641echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14642echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
14643
14644#
14645# Check to make sure the PIC flag actually works.
14646#
14647if test -n "$lt_prog_compiler_pic_CXX"; then
14648
14649echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14650echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
14651if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
14652  echo $ECHO_N "(cached) $ECHO_C" >&6
14653else
14654  lt_prog_compiler_pic_works_CXX=no
14655  ac_outfile=conftest.$ac_objext
14656   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14657   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14658   # Insert the option either (1) after the last *FLAGS variable, or
14659   # (2) before a word containing "conftest.", or (3) at the end.
14660   # Note that $ac_compile itself does not contain backslashes and begins
14661   # with a dollar sign (not a hyphen), so the echo should work correctly.
14662   # The option is referenced via a variable to avoid confusing sed.
14663   lt_compile=`echo "$ac_compile" | $SED \
14664   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14665   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14666   -e 's:$: $lt_compiler_flag:'`
14667   (eval echo "\"\$as_me:14667: $lt_compile\"" >&5)
14668   (eval "$lt_compile" 2>conftest.err)
14669   ac_status=$?
14670   cat conftest.err >&5
14671   echo "$as_me:14671: \$? = $ac_status" >&5
14672   if (exit $ac_status) && test -s "$ac_outfile"; then
14673     # The compiler can only warn and ignore the option if not recognized
14674     # So say no if there are warnings other than the usual output.
14675     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14676     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14677     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14678       lt_prog_compiler_pic_works_CXX=yes
14679     fi
14680   fi
14681   $rm conftest*
14682
14683fi
14684echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
14685echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
14686
14687if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
14688    case $lt_prog_compiler_pic_CXX in
14689     "" | " "*) ;;
14690     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14691     esac
14692else
14693    lt_prog_compiler_pic_CXX=
14694     lt_prog_compiler_can_build_shared_CXX=no
14695fi
14696
14697fi
14698case $host_os in
14699  # For platforms which do not support PIC, -DPIC is meaningless:
14700  *djgpp*)
14701    lt_prog_compiler_pic_CXX=
14702    ;;
14703  *)
14704    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14705    ;;
14706esac
14707
14708#
14709# Check to make sure the static flag actually works.
14710#
14711wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14712echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14713echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
14714if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
14715  echo $ECHO_N "(cached) $ECHO_C" >&6
14716else
14717  lt_prog_compiler_static_works_CXX=no
14718   save_LDFLAGS="$LDFLAGS"
14719   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14720   printf "$lt_simple_link_test_code" > conftest.$ac_ext
14721   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14722     # The linker can only warn and ignore the option if not recognized
14723     # So say no if there are warnings
14724     if test -s conftest.err; then
14725       # Append any errors to the config.log.
14726       cat conftest.err 1>&5
14727       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14728       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14729       if diff conftest.exp conftest.er2 >/dev/null; then
14730         lt_prog_compiler_static_works_CXX=yes
14731       fi
14732     else
14733       lt_prog_compiler_static_works_CXX=yes
14734     fi
14735   fi
14736   $rm conftest*
14737   LDFLAGS="$save_LDFLAGS"
14738
14739fi
14740echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
14741echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
14742
14743if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
14744    :
14745else
14746    lt_prog_compiler_static_CXX=
14747fi
14748
14749
14750echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14751echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14752if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14753  echo $ECHO_N "(cached) $ECHO_C" >&6
14754else
14755  lt_cv_prog_compiler_c_o_CXX=no
14756   $rm -r conftest 2>/dev/null
14757   mkdir conftest
14758   cd conftest
14759   mkdir out
14760   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14761
14762   lt_compiler_flag="-o out/conftest2.$ac_objext"
14763   # Insert the option either (1) after the last *FLAGS variable, or
14764   # (2) before a word containing "conftest.", or (3) at the end.
14765   # Note that $ac_compile itself does not contain backslashes and begins
14766   # with a dollar sign (not a hyphen), so the echo should work correctly.
14767   lt_compile=`echo "$ac_compile" | $SED \
14768   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14769   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14770   -e 's:$: $lt_compiler_flag:'`
14771   (eval echo "\"\$as_me:14771: $lt_compile\"" >&5)
14772   (eval "$lt_compile" 2>out/conftest.err)
14773   ac_status=$?
14774   cat out/conftest.err >&5
14775   echo "$as_me:14775: \$? = $ac_status" >&5
14776   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14777   then
14778     # The compiler can only warn and ignore the option if not recognized
14779     # So say no if there are warnings
14780     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14781     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14782     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14783       lt_cv_prog_compiler_c_o_CXX=yes
14784     fi
14785   fi
14786   chmod u+w . 2>&5
14787   $rm conftest*
14788   # SGI C++ compiler will create directory out/ii_files/ for
14789   # template instantiation
14790   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14791   $rm out/* && rmdir out
14792   cd ..
14793   rmdir conftest
14794   $rm conftest*
14795
14796fi
14797echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14798echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
14799
14800
14801hard_links="nottested"
14802if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14803  # do not overwrite the value of need_locks provided by the user
14804  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14805echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14806  hard_links=yes
14807  $rm conftest*
14808  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14809  touch conftest.a
14810  ln conftest.a conftest.b 2>&5 || hard_links=no
14811  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14812  echo "$as_me:$LINENO: result: $hard_links" >&5
14813echo "${ECHO_T}$hard_links" >&6
14814  if test "$hard_links" = no; then
14815    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14816echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14817    need_locks=warn
14818  fi
14819else
14820  need_locks=no
14821fi
14822
14823echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14824echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14825
14826  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14827  case $host_os in
14828  aix4* | aix5*)
14829    # If we're using GNU nm, then we don't want the "-C" option.
14830    # -C means demangle to AIX nm, but means don't demangle with GNU nm
14831    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14832      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'
14833    else
14834      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'
14835    fi
14836    ;;
14837  pw32*)
14838    export_symbols_cmds_CXX="$ltdll_cmds"
14839  ;;
14840  cygwin* | mingw*)
14841    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'
14842  ;;
14843  *)
14844    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14845  ;;
14846  esac
14847
14848echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14849echo "${ECHO_T}$ld_shlibs_CXX" >&6
14850test "$ld_shlibs_CXX" = no && can_build_shared=no
14851
14852#
14853# Do we need to explicitly link libc?
14854#
14855case "x$archive_cmds_need_lc_CXX" in
14856x|xyes)
14857  # Assume -lc should be added
14858  archive_cmds_need_lc_CXX=yes
14859
14860  if test "$enable_shared" = yes && test "$GCC" = yes; then
14861    case $archive_cmds_CXX in
14862    *'~'*)
14863      # FIXME: we may have to deal with multi-command sequences.
14864      ;;
14865    '$CC '*)
14866      # Test whether the compiler implicitly links with -lc since on some
14867      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14868      # to ld, don't add -lc before -lgcc.
14869      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14870echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14871      $rm conftest*
14872      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14873
14874      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14875  (eval $ac_compile) 2>&5
14876  ac_status=$?
14877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14878  (exit $ac_status); } 2>conftest.err; then
14879        soname=conftest
14880        lib=conftest
14881        libobjs=conftest.$ac_objext
14882        deplibs=
14883        wl=$lt_prog_compiler_wl_CXX
14884	pic_flag=$lt_prog_compiler_pic_CXX
14885        compiler_flags=-v
14886        linker_flags=-v
14887        verstring=
14888        output_objdir=.
14889        libname=conftest
14890        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14891        allow_undefined_flag_CXX=
14892        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14893  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14894  ac_status=$?
14895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896  (exit $ac_status); }
14897        then
14898	  archive_cmds_need_lc_CXX=no
14899        else
14900	  archive_cmds_need_lc_CXX=yes
14901        fi
14902        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14903      else
14904        cat conftest.err 1>&5
14905      fi
14906      $rm conftest*
14907      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14908echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
14909      ;;
14910    esac
14911  fi
14912  ;;
14913esac
14914
14915echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14916echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14917library_names_spec=
14918libname_spec='lib$name'
14919soname_spec=
14920shrext_cmds=".so"
14921postinstall_cmds=
14922postuninstall_cmds=
14923finish_cmds=
14924finish_eval=
14925shlibpath_var=
14926shlibpath_overrides_runpath=unknown
14927version_type=none
14928dynamic_linker="$host_os ld.so"
14929sys_lib_dlsearch_path_spec="/lib /usr/lib"
14930if test "$GCC" = yes; then
14931  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14932  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14933    # if the path contains ";" then we assume it to be the separator
14934    # otherwise default to the standard path separator (i.e. ":") - it is
14935    # assumed that no part of a normal pathname contains ";" but that should
14936    # okay in the real world where ";" in dirpaths is itself problematic.
14937    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14938  else
14939    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14940  fi
14941else
14942  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14943fi
14944need_lib_prefix=unknown
14945hardcode_into_libs=no
14946
14947# when you set need_version to no, make sure it does not cause -set_version
14948# flags to be left without arguments
14949need_version=unknown
14950
14951case $host_os in
14952aix3*)
14953  version_type=linux
14954  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14955  shlibpath_var=LIBPATH
14956
14957  # AIX 3 has no versioning support, so we append a major version to the name.
14958  soname_spec='${libname}${release}${shared_ext}$major'
14959  ;;
14960
14961aix4* | aix5*)
14962  version_type=linux
14963  need_lib_prefix=no
14964  need_version=no
14965  hardcode_into_libs=yes
14966  if test "$host_cpu" = ia64; then
14967    # AIX 5 supports IA64
14968    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14969    shlibpath_var=LD_LIBRARY_PATH
14970  else
14971    # With GCC up to 2.95.x, collect2 would create an import file
14972    # for dependence libraries.  The import file would start with
14973    # the line `#! .'.  This would cause the generated library to
14974    # depend on `.', always an invalid library.  This was fixed in
14975    # development snapshots of GCC prior to 3.0.
14976    case $host_os in
14977      aix4 | aix4.[01] | aix4.[01].*)
14978      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14979	   echo ' yes '
14980	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14981	:
14982      else
14983	can_build_shared=no
14984      fi
14985      ;;
14986    esac
14987    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14988    # soname into executable. Probably we can add versioning support to
14989    # collect2, so additional links can be useful in future.
14990    if test "$aix_use_runtimelinking" = yes; then
14991      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14992      # instead of lib<name>.a to let people know that these are not
14993      # typical AIX shared libraries.
14994      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14995    else
14996      # We preserve .a as extension for shared libraries through AIX4.2
14997      # and later when we are not doing run time linking.
14998      library_names_spec='${libname}${release}.a $libname.a'
14999      soname_spec='${libname}${release}${shared_ext}$major'
15000    fi
15001    shlibpath_var=LIBPATH
15002  fi
15003  ;;
15004
15005amigaos*)
15006  library_names_spec='$libname.ixlibrary $libname.a'
15007  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15008  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'
15009  ;;
15010
15011beos*)
15012  library_names_spec='${libname}${shared_ext}'
15013  dynamic_linker="$host_os ld.so"
15014  shlibpath_var=LIBRARY_PATH
15015  ;;
15016
15017bsdi[45]*)
15018  version_type=linux
15019  need_version=no
15020  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15021  soname_spec='${libname}${release}${shared_ext}$major'
15022  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15023  shlibpath_var=LD_LIBRARY_PATH
15024  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15025  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15026  # the default ld.so.conf also contains /usr/contrib/lib and
15027  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15028  # libtool to hard-code these into programs
15029  ;;
15030
15031cygwin* | mingw* | pw32*)
15032  version_type=windows
15033  shrext_cmds=".dll"
15034  need_version=no
15035  need_lib_prefix=no
15036
15037  case $GCC,$host_os in
15038  yes,cygwin* | yes,mingw* | yes,pw32*)
15039    library_names_spec='$libname.dll.a'
15040    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15041    postinstall_cmds='base_file=`basename \${file}`~
15042      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15043      dldir=$destdir/`dirname \$dlpath`~
15044      test -d \$dldir || mkdir -p \$dldir~
15045      $install_prog $dir/$dlname \$dldir/$dlname~
15046      chmod a+x \$dldir/$dlname'
15047    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15048      dlpath=$dir/\$dldll~
15049       $rm \$dlpath'
15050    shlibpath_overrides_runpath=yes
15051
15052    case $host_os in
15053    cygwin*)
15054      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15055      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15056      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15057      ;;
15058    mingw*)
15059      # MinGW DLLs use traditional 'lib' prefix
15060      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15061      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15062      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15063        # It is most probably a Windows format PATH printed by
15064        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15065        # path with ; separators, and with drive letters. We can handle the
15066        # drive letters (cygwin fileutils understands them), so leave them,
15067        # especially as we might pass files found there to a mingw objdump,
15068        # which wouldn't understand a cygwinified path. Ahh.
15069        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15070      else
15071        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15072      fi
15073      ;;
15074    pw32*)
15075      # pw32 DLLs use 'pw' prefix rather than 'lib'
15076      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15077      ;;
15078    esac
15079    ;;
15080
15081  *)
15082    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15083    ;;
15084  esac
15085  dynamic_linker='Win32 ld.exe'
15086  # FIXME: first we should search . and the directory the executable is in
15087  shlibpath_var=PATH
15088  ;;
15089
15090darwin* | rhapsody*)
15091  dynamic_linker="$host_os dyld"
15092  version_type=darwin
15093  need_lib_prefix=no
15094  need_version=no
15095  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15096  soname_spec='${libname}${release}${major}$shared_ext'
15097  shlibpath_overrides_runpath=yes
15098  shlibpath_var=DYLD_LIBRARY_PATH
15099  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15100  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15101  if test "$GCC" = yes; then
15102    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"`
15103  else
15104    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15105  fi
15106  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15107  ;;
15108
15109dgux*)
15110  version_type=linux
15111  need_lib_prefix=no
15112  need_version=no
15113  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15114  soname_spec='${libname}${release}${shared_ext}$major'
15115  shlibpath_var=LD_LIBRARY_PATH
15116  ;;
15117
15118freebsd1*)
15119  dynamic_linker=no
15120  ;;
15121
15122kfreebsd*-gnu)
15123  version_type=linux
15124  need_lib_prefix=no
15125  need_version=no
15126  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15127  soname_spec='${libname}${release}${shared_ext}$major'
15128  shlibpath_var=LD_LIBRARY_PATH
15129  shlibpath_overrides_runpath=no
15130  hardcode_into_libs=yes
15131  dynamic_linker='GNU ld.so'
15132  ;;
15133
15134freebsd* | dragonfly*)
15135  # DragonFly does not have aout.  When/if they implement a new
15136  # versioning mechanism, adjust this.
15137  if test -x /usr/bin/objformat; then
15138    objformat=`/usr/bin/objformat`
15139  else
15140    case $host_os in
15141    freebsd[123]*) objformat=aout ;;
15142    *) objformat=elf ;;
15143    esac
15144  fi
15145  version_type=freebsd-$objformat
15146  case $version_type in
15147    freebsd-elf*)
15148      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15149      need_version=no
15150      need_lib_prefix=no
15151      ;;
15152    freebsd-*)
15153      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15154      need_version=yes
15155      ;;
15156  esac
15157  shlibpath_var=LD_LIBRARY_PATH
15158  case $host_os in
15159  freebsd2*)
15160    shlibpath_overrides_runpath=yes
15161    ;;
15162  freebsd3.[01]* | freebsdelf3.[01]*)
15163    shlibpath_overrides_runpath=yes
15164    hardcode_into_libs=yes
15165    ;;
15166  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15167  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15168    shlibpath_overrides_runpath=no
15169    hardcode_into_libs=yes
15170    ;;
15171  freebsd*) # from 4.6 on
15172    shlibpath_overrides_runpath=yes
15173    hardcode_into_libs=yes
15174    ;;
15175  esac
15176  ;;
15177
15178gnu*)
15179  version_type=linux
15180  need_lib_prefix=no
15181  need_version=no
15182  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15183  soname_spec='${libname}${release}${shared_ext}$major'
15184  shlibpath_var=LD_LIBRARY_PATH
15185  hardcode_into_libs=yes
15186  ;;
15187
15188hpux9* | hpux10* | hpux11*)
15189  # Give a soname corresponding to the major version so that dld.sl refuses to
15190  # link against other versions.
15191  version_type=sunos
15192  need_lib_prefix=no
15193  need_version=no
15194  case $host_cpu in
15195  ia64*)
15196    shrext_cmds='.so'
15197    hardcode_into_libs=yes
15198    dynamic_linker="$host_os dld.so"
15199    shlibpath_var=LD_LIBRARY_PATH
15200    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15201    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15202    soname_spec='${libname}${release}${shared_ext}$major'
15203    if test "X$HPUX_IA64_MODE" = X32; then
15204      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15205    else
15206      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15207    fi
15208    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15209    ;;
15210   hppa*64*)
15211     shrext_cmds='.sl'
15212     hardcode_into_libs=yes
15213     dynamic_linker="$host_os dld.sl"
15214     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15215     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15216     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15217     soname_spec='${libname}${release}${shared_ext}$major'
15218     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15219     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15220     ;;
15221   *)
15222    shrext_cmds='.sl'
15223    dynamic_linker="$host_os dld.sl"
15224    shlibpath_var=SHLIB_PATH
15225    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15226    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15227    soname_spec='${libname}${release}${shared_ext}$major'
15228    ;;
15229  esac
15230  # HP-UX runs *really* slowly unless shared libraries are mode 555.
15231  postinstall_cmds='chmod 555 $lib'
15232  ;;
15233
15234interix3*)
15235  version_type=linux
15236  need_lib_prefix=no
15237  need_version=no
15238  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15239  soname_spec='${libname}${release}${shared_ext}$major'
15240  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15241  shlibpath_var=LD_LIBRARY_PATH
15242  shlibpath_overrides_runpath=no
15243  hardcode_into_libs=yes
15244  ;;
15245
15246irix5* | irix6* | nonstopux*)
15247  case $host_os in
15248    nonstopux*) version_type=nonstopux ;;
15249    *)
15250	if test "$lt_cv_prog_gnu_ld" = yes; then
15251		version_type=linux
15252	else
15253		version_type=irix
15254	fi ;;
15255  esac
15256  need_lib_prefix=no
15257  need_version=no
15258  soname_spec='${libname}${release}${shared_ext}$major'
15259  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15260  case $host_os in
15261  irix5* | nonstopux*)
15262    libsuff= shlibsuff=
15263    ;;
15264  *)
15265    case $LD in # libtool.m4 will add one of these switches to LD
15266    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15267      libsuff= shlibsuff= libmagic=32-bit;;
15268    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15269      libsuff=32 shlibsuff=N32 libmagic=N32;;
15270    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15271      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15272    *) libsuff= shlibsuff= libmagic=never-match;;
15273    esac
15274    ;;
15275  esac
15276  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15277  shlibpath_overrides_runpath=no
15278  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15279  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15280  hardcode_into_libs=yes
15281  ;;
15282
15283# No shared lib support for Linux oldld, aout, or coff.
15284linux*oldld* | linux*aout* | linux*coff*)
15285  dynamic_linker=no
15286  ;;
15287
15288# This must be Linux ELF.
15289linux*)
15290  version_type=linux
15291  need_lib_prefix=no
15292  need_version=no
15293  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15294  soname_spec='${libname}${release}${shared_ext}$major'
15295  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15296  shlibpath_var=LD_LIBRARY_PATH
15297  shlibpath_overrides_runpath=no
15298  # This implies no fast_install, which is unacceptable.
15299  # Some rework will be needed to allow for fast_install
15300  # before this can be enabled.
15301  hardcode_into_libs=yes
15302
15303  # Append ld.so.conf contents to the search path
15304  if test -f /etc/ld.so.conf; then
15305    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' ' '`
15306    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15307  fi
15308
15309  # We used to test for /lib/ld.so.1 and disable shared libraries on
15310  # powerpc, because MkLinux only supported shared libraries with the
15311  # GNU dynamic linker.  Since this was broken with cross compilers,
15312  # most powerpc-linux boxes support dynamic linking these days and
15313  # people can always --disable-shared, the test was removed, and we
15314  # assume the GNU/Linux dynamic linker is in use.
15315  dynamic_linker='GNU/Linux ld.so'
15316  ;;
15317
15318knetbsd*-gnu)
15319  version_type=linux
15320  need_lib_prefix=no
15321  need_version=no
15322  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15323  soname_spec='${libname}${release}${shared_ext}$major'
15324  shlibpath_var=LD_LIBRARY_PATH
15325  shlibpath_overrides_runpath=no
15326  hardcode_into_libs=yes
15327  dynamic_linker='GNU ld.so'
15328  ;;
15329
15330netbsd*)
15331  version_type=sunos
15332  need_lib_prefix=no
15333  need_version=no
15334  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15335    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15336    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15337    dynamic_linker='NetBSD (a.out) ld.so'
15338  else
15339    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15340    soname_spec='${libname}${release}${shared_ext}$major'
15341    dynamic_linker='NetBSD ld.elf_so'
15342  fi
15343  shlibpath_var=LD_LIBRARY_PATH
15344  shlibpath_overrides_runpath=yes
15345  hardcode_into_libs=yes
15346  ;;
15347
15348newsos6)
15349  version_type=linux
15350  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15351  shlibpath_var=LD_LIBRARY_PATH
15352  shlibpath_overrides_runpath=yes
15353  ;;
15354
15355nto-qnx*)
15356  version_type=linux
15357  need_lib_prefix=no
15358  need_version=no
15359  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15360  soname_spec='${libname}${release}${shared_ext}$major'
15361  shlibpath_var=LD_LIBRARY_PATH
15362  shlibpath_overrides_runpath=yes
15363  ;;
15364
15365openbsd*)
15366  version_type=sunos
15367  sys_lib_dlsearch_path_spec="/usr/lib"
15368  need_lib_prefix=no
15369  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15370  case $host_os in
15371    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15372    *)                         need_version=no  ;;
15373  esac
15374  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15375  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15376  shlibpath_var=LD_LIBRARY_PATH
15377  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15378    case $host_os in
15379      openbsd2.[89] | openbsd2.[89].*)
15380	shlibpath_overrides_runpath=no
15381	;;
15382      *)
15383	shlibpath_overrides_runpath=yes
15384	;;
15385      esac
15386  else
15387    shlibpath_overrides_runpath=yes
15388  fi
15389  ;;
15390
15391os2*)
15392  libname_spec='$name'
15393  shrext_cmds=".dll"
15394  need_lib_prefix=no
15395  library_names_spec='$libname${shared_ext} $libname.a'
15396  dynamic_linker='OS/2 ld.exe'
15397  shlibpath_var=LIBPATH
15398  ;;
15399
15400osf3* | osf4* | osf5*)
15401  version_type=osf
15402  need_lib_prefix=no
15403  need_version=no
15404  soname_spec='${libname}${release}${shared_ext}$major'
15405  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15406  shlibpath_var=LD_LIBRARY_PATH
15407  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15408  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15409  ;;
15410
15411solaris*)
15412  version_type=linux
15413  need_lib_prefix=no
15414  need_version=no
15415  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15416  soname_spec='${libname}${release}${shared_ext}$major'
15417  shlibpath_var=LD_LIBRARY_PATH
15418  shlibpath_overrides_runpath=yes
15419  hardcode_into_libs=yes
15420  # ldd complains unless libraries are executable
15421  postinstall_cmds='chmod +x $lib'
15422  ;;
15423
15424sunos4*)
15425  version_type=sunos
15426  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15427  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15428  shlibpath_var=LD_LIBRARY_PATH
15429  shlibpath_overrides_runpath=yes
15430  if test "$with_gnu_ld" = yes; then
15431    need_lib_prefix=no
15432  fi
15433  need_version=yes
15434  ;;
15435
15436sysv4 | sysv4.3*)
15437  version_type=linux
15438  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15439  soname_spec='${libname}${release}${shared_ext}$major'
15440  shlibpath_var=LD_LIBRARY_PATH
15441  case $host_vendor in
15442    sni)
15443      shlibpath_overrides_runpath=no
15444      need_lib_prefix=no
15445      export_dynamic_flag_spec='${wl}-Blargedynsym'
15446      runpath_var=LD_RUN_PATH
15447      ;;
15448    siemens)
15449      need_lib_prefix=no
15450      ;;
15451    motorola)
15452      need_lib_prefix=no
15453      need_version=no
15454      shlibpath_overrides_runpath=no
15455      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15456      ;;
15457  esac
15458  ;;
15459
15460sysv4*MP*)
15461  if test -d /usr/nec ;then
15462    version_type=linux
15463    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15464    soname_spec='$libname${shared_ext}.$major'
15465    shlibpath_var=LD_LIBRARY_PATH
15466  fi
15467  ;;
15468
15469sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15470  version_type=freebsd-elf
15471  need_lib_prefix=no
15472  need_version=no
15473  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15474  soname_spec='${libname}${release}${shared_ext}$major'
15475  shlibpath_var=LD_LIBRARY_PATH
15476  hardcode_into_libs=yes
15477  if test "$with_gnu_ld" = yes; then
15478    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15479    shlibpath_overrides_runpath=no
15480  else
15481    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15482    shlibpath_overrides_runpath=yes
15483    case $host_os in
15484      sco3.2v5*)
15485        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15486	;;
15487    esac
15488  fi
15489  sys_lib_dlsearch_path_spec='/usr/lib'
15490  ;;
15491
15492uts4*)
15493  version_type=linux
15494  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15495  soname_spec='${libname}${release}${shared_ext}$major'
15496  shlibpath_var=LD_LIBRARY_PATH
15497  ;;
15498
15499*)
15500  dynamic_linker=no
15501  ;;
15502esac
15503echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15504echo "${ECHO_T}$dynamic_linker" >&6
15505test "$dynamic_linker" = no && can_build_shared=no
15506
15507variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15508if test "$GCC" = yes; then
15509  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15510fi
15511
15512echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15513echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15514hardcode_action_CXX=
15515if test -n "$hardcode_libdir_flag_spec_CXX" || \
15516   test -n "$runpath_var_CXX" || \
15517   test "X$hardcode_automatic_CXX" = "Xyes" ; then
15518
15519  # We can hardcode non-existant directories.
15520  if test "$hardcode_direct_CXX" != no &&
15521     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15522     # have to relink, otherwise we might link with an installed library
15523     # when we should be linking with a yet-to-be-installed one
15524     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15525     test "$hardcode_minus_L_CXX" != no; then
15526    # Linking always hardcodes the temporary library directory.
15527    hardcode_action_CXX=relink
15528  else
15529    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15530    hardcode_action_CXX=immediate
15531  fi
15532else
15533  # We cannot hardcode anything, or else we can only hardcode existing
15534  # directories.
15535  hardcode_action_CXX=unsupported
15536fi
15537echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15538echo "${ECHO_T}$hardcode_action_CXX" >&6
15539
15540if test "$hardcode_action_CXX" = relink; then
15541  # Fast installation is not supported
15542  enable_fast_install=no
15543elif test "$shlibpath_overrides_runpath" = yes ||
15544     test "$enable_shared" = no; then
15545  # Fast installation is not necessary
15546  enable_fast_install=needless
15547fi
15548
15549
15550# The else clause should only fire when bootstrapping the
15551# libtool distribution, otherwise you forgot to ship ltmain.sh
15552# with your package, and you will get complaints that there are
15553# no rules to generate ltmain.sh.
15554if test -f "$ltmain"; then
15555  # See if we are running on zsh, and set the options which allow our commands through
15556  # without removal of \ escapes.
15557  if test -n "${ZSH_VERSION+set}" ; then
15558    setopt NO_GLOB_SUBST
15559  fi
15560  # Now quote all the things that may contain metacharacters while being
15561  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15562  # variables and quote the copies for generation of the libtool script.
15563  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15564    SED SHELL STRIP \
15565    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15566    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15567    deplibs_check_method reload_flag reload_cmds need_locks \
15568    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15569    lt_cv_sys_global_symbol_to_c_name_address \
15570    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15571    old_postinstall_cmds old_postuninstall_cmds \
15572    compiler_CXX \
15573    CC_CXX \
15574    LD_CXX \
15575    lt_prog_compiler_wl_CXX \
15576    lt_prog_compiler_pic_CXX \
15577    lt_prog_compiler_static_CXX \
15578    lt_prog_compiler_no_builtin_flag_CXX \
15579    export_dynamic_flag_spec_CXX \
15580    thread_safe_flag_spec_CXX \
15581    whole_archive_flag_spec_CXX \
15582    enable_shared_with_static_runtimes_CXX \
15583    old_archive_cmds_CXX \
15584    old_archive_from_new_cmds_CXX \
15585    predep_objects_CXX \
15586    postdep_objects_CXX \
15587    predeps_CXX \
15588    postdeps_CXX \
15589    compiler_lib_search_path_CXX \
15590    archive_cmds_CXX \
15591    archive_expsym_cmds_CXX \
15592    postinstall_cmds_CXX \
15593    postuninstall_cmds_CXX \
15594    old_archive_from_expsyms_cmds_CXX \
15595    allow_undefined_flag_CXX \
15596    no_undefined_flag_CXX \
15597    export_symbols_cmds_CXX \
15598    hardcode_libdir_flag_spec_CXX \
15599    hardcode_libdir_flag_spec_ld_CXX \
15600    hardcode_libdir_separator_CXX \
15601    hardcode_automatic_CXX \
15602    module_cmds_CXX \
15603    module_expsym_cmds_CXX \
15604    lt_cv_prog_compiler_c_o_CXX \
15605    exclude_expsyms_CXX \
15606    include_expsyms_CXX; do
15607
15608    case $var in
15609    old_archive_cmds_CXX | \
15610    old_archive_from_new_cmds_CXX | \
15611    archive_cmds_CXX | \
15612    archive_expsym_cmds_CXX | \
15613    module_cmds_CXX | \
15614    module_expsym_cmds_CXX | \
15615    old_archive_from_expsyms_cmds_CXX | \
15616    export_symbols_cmds_CXX | \
15617    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15618    postinstall_cmds | postuninstall_cmds | \
15619    old_postinstall_cmds | old_postuninstall_cmds | \
15620    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15621      # Double-quote double-evaled strings.
15622      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15623      ;;
15624    *)
15625      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15626      ;;
15627    esac
15628  done
15629
15630  case $lt_echo in
15631  *'\$0 --fallback-echo"')
15632    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15633    ;;
15634  esac
15635
15636cfgfile="$ofile"
15637
15638  cat <<__EOF__ >> "$cfgfile"
15639# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15640
15641# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15642
15643# Shell to use when invoking shell scripts.
15644SHELL=$lt_SHELL
15645
15646# Whether or not to build shared libraries.
15647build_libtool_libs=$enable_shared
15648
15649# Whether or not to build static libraries.
15650build_old_libs=$enable_static
15651
15652# Whether or not to add -lc for building shared libraries.
15653build_libtool_need_lc=$archive_cmds_need_lc_CXX
15654
15655# Whether or not to disallow shared libs when runtime libs are static
15656allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
15657
15658# Whether or not to optimize for fast installation.
15659fast_install=$enable_fast_install
15660
15661# The host system.
15662host_alias=$host_alias
15663host=$host
15664host_os=$host_os
15665
15666# The build system.
15667build_alias=$build_alias
15668build=$build
15669build_os=$build_os
15670
15671# An echo program that does not interpret backslashes.
15672echo=$lt_echo
15673
15674# The archiver.
15675AR=$lt_AR
15676AR_FLAGS=$lt_AR_FLAGS
15677
15678# A C compiler.
15679LTCC=$lt_LTCC
15680
15681# LTCC compiler flags.
15682LTCFLAGS=$lt_LTCFLAGS
15683
15684# A language-specific compiler.
15685CC=$lt_compiler_CXX
15686
15687# Is the compiler the GNU C compiler?
15688with_gcc=$GCC_CXX
15689
15690# An ERE matcher.
15691EGREP=$lt_EGREP
15692
15693# The linker used to build libraries.
15694LD=$lt_LD_CXX
15695
15696# Whether we need hard or soft links.
15697LN_S=$lt_LN_S
15698
15699# A BSD-compatible nm program.
15700NM=$lt_NM
15701
15702# A symbol stripping program
15703STRIP=$lt_STRIP
15704
15705# Used to examine libraries when file_magic_cmd begins "file"
15706MAGIC_CMD=$MAGIC_CMD
15707
15708# Used on cygwin: DLL creation program.
15709DLLTOOL="$DLLTOOL"
15710
15711# Used on cygwin: object dumper.
15712OBJDUMP="$OBJDUMP"
15713
15714# Used on cygwin: assembler.
15715AS="$AS"
15716
15717# The name of the directory that contains temporary libtool files.
15718objdir=$objdir
15719
15720# How to create reloadable object files.
15721reload_flag=$lt_reload_flag
15722reload_cmds=$lt_reload_cmds
15723
15724# How to pass a linker flag through the compiler.
15725wl=$lt_lt_prog_compiler_wl_CXX
15726
15727# Object file suffix (normally "o").
15728objext="$ac_objext"
15729
15730# Old archive suffix (normally "a").
15731libext="$libext"
15732
15733# Shared library suffix (normally ".so").
15734shrext_cmds='$shrext_cmds'
15735
15736# Executable file suffix (normally "").
15737exeext="$exeext"
15738
15739# Additional compiler flags for building library objects.
15740pic_flag=$lt_lt_prog_compiler_pic_CXX
15741pic_mode=$pic_mode
15742
15743# What is the maximum length of a command?
15744max_cmd_len=$lt_cv_sys_max_cmd_len
15745
15746# Does compiler simultaneously support -c and -o options?
15747compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15748
15749# Must we lock files when doing compilation?
15750need_locks=$lt_need_locks
15751
15752# Do we need the lib prefix for modules?
15753need_lib_prefix=$need_lib_prefix
15754
15755# Do we need a version for libraries?
15756need_version=$need_version
15757
15758# Whether dlopen is supported.
15759dlopen_support=$enable_dlopen
15760
15761# Whether dlopen of programs is supported.
15762dlopen_self=$enable_dlopen_self
15763
15764# Whether dlopen of statically linked programs is supported.
15765dlopen_self_static=$enable_dlopen_self_static
15766
15767# Compiler flag to prevent dynamic linking.
15768link_static_flag=$lt_lt_prog_compiler_static_CXX
15769
15770# Compiler flag to turn off builtin functions.
15771no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15772
15773# Compiler flag to allow reflexive dlopens.
15774export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15775
15776# Compiler flag to generate shared objects directly from archives.
15777whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15778
15779# Compiler flag to generate thread-safe objects.
15780thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15781
15782# Library versioning type.
15783version_type=$version_type
15784
15785# Format of library name prefix.
15786libname_spec=$lt_libname_spec
15787
15788# List of archive names.  First name is the real one, the rest are links.
15789# The last name is the one that the linker finds with -lNAME.
15790library_names_spec=$lt_library_names_spec
15791
15792# The coded name of the library, if different from the real name.
15793soname_spec=$lt_soname_spec
15794
15795# Commands used to build and install an old-style archive.
15796RANLIB=$lt_RANLIB
15797old_archive_cmds=$lt_old_archive_cmds_CXX
15798old_postinstall_cmds=$lt_old_postinstall_cmds
15799old_postuninstall_cmds=$lt_old_postuninstall_cmds
15800
15801# Create an old-style archive from a shared archive.
15802old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15803
15804# Create a temporary old-style archive to link instead of a shared archive.
15805old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15806
15807# Commands used to build and install a shared archive.
15808archive_cmds=$lt_archive_cmds_CXX
15809archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15810postinstall_cmds=$lt_postinstall_cmds
15811postuninstall_cmds=$lt_postuninstall_cmds
15812
15813# Commands used to build a loadable module (assumed same as above if empty)
15814module_cmds=$lt_module_cmds_CXX
15815module_expsym_cmds=$lt_module_expsym_cmds_CXX
15816
15817# Commands to strip libraries.
15818old_striplib=$lt_old_striplib
15819striplib=$lt_striplib
15820
15821# Dependencies to place before the objects being linked to create a
15822# shared library.
15823predep_objects=$lt_predep_objects_CXX
15824
15825# Dependencies to place after the objects being linked to create a
15826# shared library.
15827postdep_objects=$lt_postdep_objects_CXX
15828
15829# Dependencies to place before the objects being linked to create a
15830# shared library.
15831predeps=$lt_predeps_CXX
15832
15833# Dependencies to place after the objects being linked to create a
15834# shared library.
15835postdeps=$lt_postdeps_CXX
15836
15837# The library search path used internally by the compiler when linking
15838# a shared library.
15839compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15840
15841# Method to check whether dependent libraries are shared objects.
15842deplibs_check_method=$lt_deplibs_check_method
15843
15844# Command to use when deplibs_check_method == file_magic.
15845file_magic_cmd=$lt_file_magic_cmd
15846
15847# Flag that allows shared libraries with undefined symbols to be built.
15848allow_undefined_flag=$lt_allow_undefined_flag_CXX
15849
15850# Flag that forces no undefined symbols.
15851no_undefined_flag=$lt_no_undefined_flag_CXX
15852
15853# Commands used to finish a libtool library installation in a directory.
15854finish_cmds=$lt_finish_cmds
15855
15856# Same as above, but a single script fragment to be evaled but not shown.
15857finish_eval=$lt_finish_eval
15858
15859# Take the output of nm and produce a listing of raw symbols and C names.
15860global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15861
15862# Transform the output of nm in a proper C declaration
15863global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15864
15865# Transform the output of nm in a C name address pair
15866global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15867
15868# This is the shared library runtime path variable.
15869runpath_var=$runpath_var
15870
15871# This is the shared library path variable.
15872shlibpath_var=$shlibpath_var
15873
15874# Is shlibpath searched before the hard-coded library search path?
15875shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15876
15877# How to hardcode a shared library path into an executable.
15878hardcode_action=$hardcode_action_CXX
15879
15880# Whether we should hardcode library paths into libraries.
15881hardcode_into_libs=$hardcode_into_libs
15882
15883# Flag to hardcode \$libdir into a binary during linking.
15884# This must work even if \$libdir does not exist.
15885hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15886
15887# If ld is used when linking, flag to hardcode \$libdir into
15888# a binary during linking. This must work even if \$libdir does
15889# not exist.
15890hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15891
15892# Whether we need a single -rpath flag with a separated argument.
15893hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15894
15895# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15896# resulting binary.
15897hardcode_direct=$hardcode_direct_CXX
15898
15899# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15900# resulting binary.
15901hardcode_minus_L=$hardcode_minus_L_CXX
15902
15903# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15904# the resulting binary.
15905hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15906
15907# Set to yes if building a shared library automatically hardcodes DIR into the library
15908# and all subsequent libraries and executables linked against it.
15909hardcode_automatic=$hardcode_automatic_CXX
15910
15911# Variables whose values should be saved in libtool wrapper scripts and
15912# restored at relink time.
15913variables_saved_for_relink="$variables_saved_for_relink"
15914
15915# Whether libtool must link a program against all its dependency libraries.
15916link_all_deplibs=$link_all_deplibs_CXX
15917
15918# Compile-time system search path for libraries
15919sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15920
15921# Run-time system search path for libraries
15922sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15923
15924# Fix the shell variable \$srcfile for the compiler.
15925fix_srcfile_path="$fix_srcfile_path_CXX"
15926
15927# Set to yes if exported symbols are required.
15928always_export_symbols=$always_export_symbols_CXX
15929
15930# The commands to list exported symbols.
15931export_symbols_cmds=$lt_export_symbols_cmds_CXX
15932
15933# The commands to extract the exported symbol list from a shared archive.
15934extract_expsyms_cmds=$lt_extract_expsyms_cmds
15935
15936# Symbols that should not be listed in the preloaded symbols.
15937exclude_expsyms=$lt_exclude_expsyms_CXX
15938
15939# Symbols that must always be exported.
15940include_expsyms=$lt_include_expsyms_CXX
15941
15942# ### END LIBTOOL TAG CONFIG: $tagname
15943
15944__EOF__
15945
15946
15947else
15948  # If there is no Makefile yet, we rely on a make rule to execute
15949  # `config.status --recheck' to rerun these tests and create the
15950  # libtool script then.
15951  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15952  if test -f "$ltmain_in"; then
15953    test -f Makefile && make "$ltmain"
15954  fi
15955fi
15956
15957
15958ac_ext=c
15959ac_cpp='$CPP $CPPFLAGS'
15960ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15961ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15962ac_compiler_gnu=$ac_cv_c_compiler_gnu
15963
15964CC=$lt_save_CC
15965LDCXX=$LD
15966LD=$lt_save_LD
15967GCC=$lt_save_GCC
15968with_gnu_ldcxx=$with_gnu_ld
15969with_gnu_ld=$lt_save_with_gnu_ld
15970lt_cv_path_LDCXX=$lt_cv_path_LD
15971lt_cv_path_LD=$lt_save_path_LD
15972lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15973lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15974
15975	else
15976	  tagname=""
15977	fi
15978	;;
15979
15980      F77)
15981	if test -n "$F77" && test "X$F77" != "Xno"; then
15982
15983ac_ext=f
15984ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15985ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15986ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15987
15988
15989archive_cmds_need_lc_F77=no
15990allow_undefined_flag_F77=
15991always_export_symbols_F77=no
15992archive_expsym_cmds_F77=
15993export_dynamic_flag_spec_F77=
15994hardcode_direct_F77=no
15995hardcode_libdir_flag_spec_F77=
15996hardcode_libdir_flag_spec_ld_F77=
15997hardcode_libdir_separator_F77=
15998hardcode_minus_L_F77=no
15999hardcode_automatic_F77=no
16000module_cmds_F77=
16001module_expsym_cmds_F77=
16002link_all_deplibs_F77=unknown
16003old_archive_cmds_F77=$old_archive_cmds
16004no_undefined_flag_F77=
16005whole_archive_flag_spec_F77=
16006enable_shared_with_static_runtimes_F77=no
16007
16008# Source file extension for f77 test sources.
16009ac_ext=f
16010
16011# Object file extension for compiled f77 test sources.
16012objext=o
16013objext_F77=$objext
16014
16015# Code to be used in simple compile tests
16016lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
16017
16018# Code to be used in simple link tests
16019lt_simple_link_test_code="      program t\n      end\n"
16020
16021# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16022
16023# If no C compiler was specified, use CC.
16024LTCC=${LTCC-"$CC"}
16025
16026# If no C compiler flags were specified, use CFLAGS.
16027LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16028
16029# Allow CC to be a program name with arguments.
16030compiler=$CC
16031
16032
16033# save warnings/boilerplate of simple test code
16034ac_outfile=conftest.$ac_objext
16035printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16036eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16037_lt_compiler_boilerplate=`cat conftest.err`
16038$rm conftest*
16039
16040ac_outfile=conftest.$ac_objext
16041printf "$lt_simple_link_test_code" >conftest.$ac_ext
16042eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16043_lt_linker_boilerplate=`cat conftest.err`
16044$rm conftest*
16045
16046
16047# Allow CC to be a program name with arguments.
16048lt_save_CC="$CC"
16049CC=${F77-"f77"}
16050compiler=$CC
16051compiler_F77=$CC
16052for cc_temp in $compiler""; do
16053  case $cc_temp in
16054    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16055    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16056    \-*) ;;
16057    *) break;;
16058  esac
16059done
16060cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16061
16062
16063echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
16064echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
16065echo "$as_me:$LINENO: result: $can_build_shared" >&5
16066echo "${ECHO_T}$can_build_shared" >&6
16067
16068echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
16069echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
16070test "$can_build_shared" = "no" && enable_shared=no
16071
16072# On AIX, shared libraries and static libraries use the same namespace, and
16073# are all built from PIC.
16074case $host_os in
16075aix3*)
16076  test "$enable_shared" = yes && enable_static=no
16077  if test -n "$RANLIB"; then
16078    archive_cmds="$archive_cmds~\$RANLIB \$lib"
16079    postinstall_cmds='$RANLIB $lib'
16080  fi
16081  ;;
16082aix4* | aix5*)
16083  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16084    test "$enable_shared" = yes && enable_static=no
16085  fi
16086  ;;
16087esac
16088echo "$as_me:$LINENO: result: $enable_shared" >&5
16089echo "${ECHO_T}$enable_shared" >&6
16090
16091echo "$as_me:$LINENO: checking whether to build static libraries" >&5
16092echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
16093# Make sure either enable_shared or enable_static is yes.
16094test "$enable_shared" = yes || enable_static=yes
16095echo "$as_me:$LINENO: result: $enable_static" >&5
16096echo "${ECHO_T}$enable_static" >&6
16097
16098GCC_F77="$G77"
16099LD_F77="$LD"
16100
16101lt_prog_compiler_wl_F77=
16102lt_prog_compiler_pic_F77=
16103lt_prog_compiler_static_F77=
16104
16105echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16106echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16107
16108  if test "$GCC" = yes; then
16109    lt_prog_compiler_wl_F77='-Wl,'
16110    lt_prog_compiler_static_F77='-static'
16111
16112    case $host_os in
16113      aix*)
16114      # All AIX code is PIC.
16115      if test "$host_cpu" = ia64; then
16116	# AIX 5 now supports IA64 processor
16117	lt_prog_compiler_static_F77='-Bstatic'
16118      fi
16119      ;;
16120
16121    amigaos*)
16122      # FIXME: we need at least 68020 code to build shared libraries, but
16123      # adding the `-m68020' flag to GCC prevents building anything better,
16124      # like `-m68040'.
16125      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
16126      ;;
16127
16128    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16129      # PIC is the default for these OSes.
16130      ;;
16131
16132    mingw* | pw32* | os2*)
16133      # This hack is so that the source file can tell whether it is being
16134      # built for inclusion in a dll (and should export symbols for example).
16135      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
16136      ;;
16137
16138    darwin* | rhapsody*)
16139      # PIC is the default on this platform
16140      # Common symbols not allowed in MH_DYLIB files
16141      lt_prog_compiler_pic_F77='-fno-common'
16142      ;;
16143
16144    interix3*)
16145      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16146      # Instead, we relocate shared libraries at runtime.
16147      ;;
16148
16149    msdosdjgpp*)
16150      # Just because we use GCC doesn't mean we suddenly get shared libraries
16151      # on systems that don't support them.
16152      lt_prog_compiler_can_build_shared_F77=no
16153      enable_shared=no
16154      ;;
16155
16156    sysv4*MP*)
16157      if test -d /usr/nec; then
16158	lt_prog_compiler_pic_F77=-Kconform_pic
16159      fi
16160      ;;
16161
16162    hpux*)
16163      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16164      # not for PA HP-UX.
16165      case $host_cpu in
16166      hppa*64*|ia64*)
16167	# +Z the default
16168	;;
16169      *)
16170	lt_prog_compiler_pic_F77='-fPIC'
16171	;;
16172      esac
16173      ;;
16174
16175    *)
16176      lt_prog_compiler_pic_F77='-fPIC'
16177      ;;
16178    esac
16179  else
16180    # PORTME Check for flag to pass linker flags through the system compiler.
16181    case $host_os in
16182    aix*)
16183      lt_prog_compiler_wl_F77='-Wl,'
16184      if test "$host_cpu" = ia64; then
16185	# AIX 5 now supports IA64 processor
16186	lt_prog_compiler_static_F77='-Bstatic'
16187      else
16188	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
16189      fi
16190      ;;
16191      darwin*)
16192        # PIC is the default on this platform
16193        # Common symbols not allowed in MH_DYLIB files
16194       case $cc_basename in
16195         xlc*)
16196         lt_prog_compiler_pic_F77='-qnocommon'
16197         lt_prog_compiler_wl_F77='-Wl,'
16198         ;;
16199       esac
16200       ;;
16201
16202    mingw* | pw32* | os2*)
16203      # This hack is so that the source file can tell whether it is being
16204      # built for inclusion in a dll (and should export symbols for example).
16205      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
16206      ;;
16207
16208    hpux9* | hpux10* | hpux11*)
16209      lt_prog_compiler_wl_F77='-Wl,'
16210      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16211      # not for PA HP-UX.
16212      case $host_cpu in
16213      hppa*64*|ia64*)
16214	# +Z the default
16215	;;
16216      *)
16217	lt_prog_compiler_pic_F77='+Z'
16218	;;
16219      esac
16220      # Is there a better lt_prog_compiler_static that works with the bundled CC?
16221      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
16222      ;;
16223
16224    irix5* | irix6* | nonstopux*)
16225      lt_prog_compiler_wl_F77='-Wl,'
16226      # PIC (with -KPIC) is the default.
16227      lt_prog_compiler_static_F77='-non_shared'
16228      ;;
16229
16230    newsos6)
16231      lt_prog_compiler_pic_F77='-KPIC'
16232      lt_prog_compiler_static_F77='-Bstatic'
16233      ;;
16234
16235    linux*)
16236      case $cc_basename in
16237      icc* | ecc*)
16238	lt_prog_compiler_wl_F77='-Wl,'
16239	lt_prog_compiler_pic_F77='-KPIC'
16240	lt_prog_compiler_static_F77='-static'
16241        ;;
16242      pgcc* | pgf77* | pgf90* | pgf95*)
16243        # Portland Group compilers (*not* the Pentium gcc compiler,
16244	# which looks to be a dead project)
16245	lt_prog_compiler_wl_F77='-Wl,'
16246	lt_prog_compiler_pic_F77='-fpic'
16247	lt_prog_compiler_static_F77='-Bstatic'
16248        ;;
16249      ccc*)
16250        lt_prog_compiler_wl_F77='-Wl,'
16251        # All Alpha code is PIC.
16252        lt_prog_compiler_static_F77='-non_shared'
16253        ;;
16254      esac
16255      ;;
16256
16257    osf3* | osf4* | osf5*)
16258      lt_prog_compiler_wl_F77='-Wl,'
16259      # All OSF/1 code is PIC.
16260      lt_prog_compiler_static_F77='-non_shared'
16261      ;;
16262
16263    solaris*)
16264      lt_prog_compiler_pic_F77='-KPIC'
16265      lt_prog_compiler_static_F77='-Bstatic'
16266      case $cc_basename in
16267      f77* | f90* | f95*)
16268	lt_prog_compiler_wl_F77='-Qoption ld ';;
16269      *)
16270	lt_prog_compiler_wl_F77='-Wl,';;
16271      esac
16272      ;;
16273
16274    sunos4*)
16275      lt_prog_compiler_wl_F77='-Qoption ld '
16276      lt_prog_compiler_pic_F77='-PIC'
16277      lt_prog_compiler_static_F77='-Bstatic'
16278      ;;
16279
16280    sysv4 | sysv4.2uw2* | sysv4.3*)
16281      lt_prog_compiler_wl_F77='-Wl,'
16282      lt_prog_compiler_pic_F77='-KPIC'
16283      lt_prog_compiler_static_F77='-Bstatic'
16284      ;;
16285
16286    sysv4*MP*)
16287      if test -d /usr/nec ;then
16288	lt_prog_compiler_pic_F77='-Kconform_pic'
16289	lt_prog_compiler_static_F77='-Bstatic'
16290      fi
16291      ;;
16292
16293    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16294      lt_prog_compiler_wl_F77='-Wl,'
16295      lt_prog_compiler_pic_F77='-KPIC'
16296      lt_prog_compiler_static_F77='-Bstatic'
16297      ;;
16298
16299    unicos*)
16300      lt_prog_compiler_wl_F77='-Wl,'
16301      lt_prog_compiler_can_build_shared_F77=no
16302      ;;
16303
16304    uts4*)
16305      lt_prog_compiler_pic_F77='-pic'
16306      lt_prog_compiler_static_F77='-Bstatic'
16307      ;;
16308
16309    *)
16310      lt_prog_compiler_can_build_shared_F77=no
16311      ;;
16312    esac
16313  fi
16314
16315echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
16316echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
16317
16318#
16319# Check to make sure the PIC flag actually works.
16320#
16321if test -n "$lt_prog_compiler_pic_F77"; then
16322
16323echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
16324echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
16325if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
16326  echo $ECHO_N "(cached) $ECHO_C" >&6
16327else
16328  lt_prog_compiler_pic_works_F77=no
16329  ac_outfile=conftest.$ac_objext
16330   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16331   lt_compiler_flag="$lt_prog_compiler_pic_F77"
16332   # Insert the option either (1) after the last *FLAGS variable, or
16333   # (2) before a word containing "conftest.", or (3) at the end.
16334   # Note that $ac_compile itself does not contain backslashes and begins
16335   # with a dollar sign (not a hyphen), so the echo should work correctly.
16336   # The option is referenced via a variable to avoid confusing sed.
16337   lt_compile=`echo "$ac_compile" | $SED \
16338   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16339   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16340   -e 's:$: $lt_compiler_flag:'`
16341   (eval echo "\"\$as_me:16341: $lt_compile\"" >&5)
16342   (eval "$lt_compile" 2>conftest.err)
16343   ac_status=$?
16344   cat conftest.err >&5
16345   echo "$as_me:16345: \$? = $ac_status" >&5
16346   if (exit $ac_status) && test -s "$ac_outfile"; then
16347     # The compiler can only warn and ignore the option if not recognized
16348     # So say no if there are warnings other than the usual output.
16349     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16350     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16351     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16352       lt_prog_compiler_pic_works_F77=yes
16353     fi
16354   fi
16355   $rm conftest*
16356
16357fi
16358echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
16359echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
16360
16361if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
16362    case $lt_prog_compiler_pic_F77 in
16363     "" | " "*) ;;
16364     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
16365     esac
16366else
16367    lt_prog_compiler_pic_F77=
16368     lt_prog_compiler_can_build_shared_F77=no
16369fi
16370
16371fi
16372case $host_os in
16373  # For platforms which do not support PIC, -DPIC is meaningless:
16374  *djgpp*)
16375    lt_prog_compiler_pic_F77=
16376    ;;
16377  *)
16378    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
16379    ;;
16380esac
16381
16382#
16383# Check to make sure the static flag actually works.
16384#
16385wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
16386echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16387echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16388if test "${lt_prog_compiler_static_works_F77+set}" = set; then
16389  echo $ECHO_N "(cached) $ECHO_C" >&6
16390else
16391  lt_prog_compiler_static_works_F77=no
16392   save_LDFLAGS="$LDFLAGS"
16393   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16394   printf "$lt_simple_link_test_code" > conftest.$ac_ext
16395   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16396     # The linker can only warn and ignore the option if not recognized
16397     # So say no if there are warnings
16398     if test -s conftest.err; then
16399       # Append any errors to the config.log.
16400       cat conftest.err 1>&5
16401       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16402       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16403       if diff conftest.exp conftest.er2 >/dev/null; then
16404         lt_prog_compiler_static_works_F77=yes
16405       fi
16406     else
16407       lt_prog_compiler_static_works_F77=yes
16408     fi
16409   fi
16410   $rm conftest*
16411   LDFLAGS="$save_LDFLAGS"
16412
16413fi
16414echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
16415echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
16416
16417if test x"$lt_prog_compiler_static_works_F77" = xyes; then
16418    :
16419else
16420    lt_prog_compiler_static_F77=
16421fi
16422
16423
16424echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16425echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16426if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
16427  echo $ECHO_N "(cached) $ECHO_C" >&6
16428else
16429  lt_cv_prog_compiler_c_o_F77=no
16430   $rm -r conftest 2>/dev/null
16431   mkdir conftest
16432   cd conftest
16433   mkdir out
16434   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16435
16436   lt_compiler_flag="-o out/conftest2.$ac_objext"
16437   # Insert the option either (1) after the last *FLAGS variable, or
16438   # (2) before a word containing "conftest.", or (3) at the end.
16439   # Note that $ac_compile itself does not contain backslashes and begins
16440   # with a dollar sign (not a hyphen), so the echo should work correctly.
16441   lt_compile=`echo "$ac_compile" | $SED \
16442   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16443   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16444   -e 's:$: $lt_compiler_flag:'`
16445   (eval echo "\"\$as_me:16445: $lt_compile\"" >&5)
16446   (eval "$lt_compile" 2>out/conftest.err)
16447   ac_status=$?
16448   cat out/conftest.err >&5
16449   echo "$as_me:16449: \$? = $ac_status" >&5
16450   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16451   then
16452     # The compiler can only warn and ignore the option if not recognized
16453     # So say no if there are warnings
16454     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16455     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16456     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16457       lt_cv_prog_compiler_c_o_F77=yes
16458     fi
16459   fi
16460   chmod u+w . 2>&5
16461   $rm conftest*
16462   # SGI C++ compiler will create directory out/ii_files/ for
16463   # template instantiation
16464   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16465   $rm out/* && rmdir out
16466   cd ..
16467   rmdir conftest
16468   $rm conftest*
16469
16470fi
16471echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
16472echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
16473
16474
16475hard_links="nottested"
16476if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
16477  # do not overwrite the value of need_locks provided by the user
16478  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16479echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16480  hard_links=yes
16481  $rm conftest*
16482  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16483  touch conftest.a
16484  ln conftest.a conftest.b 2>&5 || hard_links=no
16485  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16486  echo "$as_me:$LINENO: result: $hard_links" >&5
16487echo "${ECHO_T}$hard_links" >&6
16488  if test "$hard_links" = no; then
16489    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16490echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16491    need_locks=warn
16492  fi
16493else
16494  need_locks=no
16495fi
16496
16497echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16498echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16499
16500  runpath_var=
16501  allow_undefined_flag_F77=
16502  enable_shared_with_static_runtimes_F77=no
16503  archive_cmds_F77=
16504  archive_expsym_cmds_F77=
16505  old_archive_From_new_cmds_F77=
16506  old_archive_from_expsyms_cmds_F77=
16507  export_dynamic_flag_spec_F77=
16508  whole_archive_flag_spec_F77=
16509  thread_safe_flag_spec_F77=
16510  hardcode_libdir_flag_spec_F77=
16511  hardcode_libdir_flag_spec_ld_F77=
16512  hardcode_libdir_separator_F77=
16513  hardcode_direct_F77=no
16514  hardcode_minus_L_F77=no
16515  hardcode_shlibpath_var_F77=unsupported
16516  link_all_deplibs_F77=unknown
16517  hardcode_automatic_F77=no
16518  module_cmds_F77=
16519  module_expsym_cmds_F77=
16520  always_export_symbols_F77=no
16521  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16522  # include_expsyms should be a list of space-separated symbols to be *always*
16523  # included in the symbol list
16524  include_expsyms_F77=
16525  # exclude_expsyms can be an extended regexp of symbols to exclude
16526  # it will be wrapped by ` (' and `)$', so one must not match beginning or
16527  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16528  # as well as any symbol that contains `d'.
16529  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
16530  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16531  # platforms (ab)use it in PIC code, but their linkers get confused if
16532  # the symbol is explicitly referenced.  Since portable code cannot
16533  # rely on this symbol name, it's probably fine to never include it in
16534  # preloaded symbol tables.
16535  extract_expsyms_cmds=
16536  # Just being paranoid about ensuring that cc_basename is set.
16537  for cc_temp in $compiler""; do
16538  case $cc_temp in
16539    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16540    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16541    \-*) ;;
16542    *) break;;
16543  esac
16544done
16545cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16546
16547  case $host_os in
16548  cygwin* | mingw* | pw32*)
16549    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16550    # When not using gcc, we currently assume that we are using
16551    # Microsoft Visual C++.
16552    if test "$GCC" != yes; then
16553      with_gnu_ld=no
16554    fi
16555    ;;
16556  interix*)
16557    # we just hope/assume this is gcc and not c89 (= MSVC++)
16558    with_gnu_ld=yes
16559    ;;
16560  openbsd*)
16561    with_gnu_ld=no
16562    ;;
16563  esac
16564
16565  ld_shlibs_F77=yes
16566  if test "$with_gnu_ld" = yes; then
16567    # If archive_cmds runs LD, not CC, wlarc should be empty
16568    wlarc='${wl}'
16569
16570    # Set some defaults for GNU ld with shared library support. These
16571    # are reset later if shared libraries are not supported. Putting them
16572    # here allows them to be overridden if necessary.
16573    runpath_var=LD_RUN_PATH
16574    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
16575    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
16576    # ancient GNU ld didn't support --whole-archive et. al.
16577    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16578	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16579      else
16580  	whole_archive_flag_spec_F77=
16581    fi
16582    supports_anon_versioning=no
16583    case `$LD -v 2>/dev/null` in
16584      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16585      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16586      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16587      *\ 2.11.*) ;; # other 2.11 versions
16588      *) supports_anon_versioning=yes ;;
16589    esac
16590
16591    # See if GNU ld supports shared libraries.
16592    case $host_os in
16593    aix3* | aix4* | aix5*)
16594      # On AIX/PPC, the GNU linker is very broken
16595      if test "$host_cpu" != ia64; then
16596	ld_shlibs_F77=no
16597	cat <<EOF 1>&2
16598
16599*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16600*** to be unable to reliably create shared libraries on AIX.
16601*** Therefore, libtool is disabling shared libraries support.  If you
16602*** really care for shared libraries, you may want to modify your PATH
16603*** so that a non-GNU linker is found, and then restart.
16604
16605EOF
16606      fi
16607      ;;
16608
16609    amigaos*)
16610      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)'
16611      hardcode_libdir_flag_spec_F77='-L$libdir'
16612      hardcode_minus_L_F77=yes
16613
16614      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16615      # that the semantics of dynamic libraries on AmigaOS, at least up
16616      # to version 4, is to share data among multiple programs linked
16617      # with the same dynamic library.  Since this doesn't match the
16618      # behavior of shared libraries on other platforms, we can't use
16619      # them.
16620      ld_shlibs_F77=no
16621      ;;
16622
16623    beos*)
16624      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16625	allow_undefined_flag_F77=unsupported
16626	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16627	# support --undefined.  This deserves some investigation.  FIXME
16628	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16629      else
16630	ld_shlibs_F77=no
16631      fi
16632      ;;
16633
16634    cygwin* | mingw* | pw32*)
16635      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
16636      # as there is no search path for DLLs.
16637      hardcode_libdir_flag_spec_F77='-L$libdir'
16638      allow_undefined_flag_F77=unsupported
16639      always_export_symbols_F77=no
16640      enable_shared_with_static_runtimes_F77=yes
16641      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16642
16643      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16644        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16645	# If the export-symbols file already is a .def file (1st line
16646	# is EXPORTS), use it as is; otherwise, prepend...
16647	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16648	  cp $export_symbols $output_objdir/$soname.def;
16649	else
16650	  echo EXPORTS > $output_objdir/$soname.def;
16651	  cat $export_symbols >> $output_objdir/$soname.def;
16652	fi~
16653	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16654      else
16655	ld_shlibs_F77=no
16656      fi
16657      ;;
16658
16659    interix3*)
16660      hardcode_direct_F77=no
16661      hardcode_shlibpath_var_F77=no
16662      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16663      export_dynamic_flag_spec_F77='${wl}-E'
16664      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16665      # Instead, shared libraries are loaded at an image base (0x10000000 by
16666      # default) and relocated if they conflict, which is a slow very memory
16667      # consuming and fragmenting process.  To avoid this, we pick a random,
16668      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16669      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16670      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'
16671      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'
16672      ;;
16673
16674    linux*)
16675      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16676	tmp_addflag=
16677	case $cc_basename,$host_cpu in
16678	pgcc*)				# Portland Group C compiler
16679	  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'
16680	  tmp_addflag=' $pic_flag'
16681	  ;;
16682	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
16683	  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'
16684	  tmp_addflag=' $pic_flag -Mnomain' ;;
16685	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
16686	  tmp_addflag=' -i_dynamic' ;;
16687	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
16688	  tmp_addflag=' -i_dynamic -nofor_main' ;;
16689	ifc* | ifort*)			# Intel Fortran compiler
16690	  tmp_addflag=' -nofor_main' ;;
16691	esac
16692	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16693
16694	if test $supports_anon_versioning = yes; then
16695	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
16696  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16697  $echo "local: *; };" >> $output_objdir/$libname.ver~
16698	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16699	fi
16700      else
16701	ld_shlibs_F77=no
16702      fi
16703      ;;
16704
16705    netbsd*)
16706      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16707	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16708	wlarc=
16709      else
16710	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16711	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16712      fi
16713      ;;
16714
16715    solaris*)
16716      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16717	ld_shlibs_F77=no
16718	cat <<EOF 1>&2
16719
16720*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16721*** create shared libraries on Solaris systems.  Therefore, libtool
16722*** is disabling shared libraries support.  We urge you to upgrade GNU
16723*** binutils to release 2.9.1 or newer.  Another option is to modify
16724*** your PATH or compiler configuration so that the native linker is
16725*** used, and then restart.
16726
16727EOF
16728      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16729	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16730	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16731      else
16732	ld_shlibs_F77=no
16733      fi
16734      ;;
16735
16736    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16737      case `$LD -v 2>&1` in
16738        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16739	ld_shlibs_F77=no
16740	cat <<_LT_EOF 1>&2
16741
16742*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16743*** reliably create shared libraries on SCO systems.  Therefore, libtool
16744*** is disabling shared libraries support.  We urge you to upgrade GNU
16745*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16746*** your PATH or compiler configuration so that the native linker is
16747*** used, and then restart.
16748
16749_LT_EOF
16750	;;
16751	*)
16752	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16753	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16754	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16755	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16756	  else
16757	    ld_shlibs_F77=no
16758	  fi
16759	;;
16760      esac
16761      ;;
16762
16763    sunos4*)
16764      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16765      wlarc=
16766      hardcode_direct_F77=yes
16767      hardcode_shlibpath_var_F77=no
16768      ;;
16769
16770    *)
16771      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16772	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16773	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16774      else
16775	ld_shlibs_F77=no
16776      fi
16777      ;;
16778    esac
16779
16780    if test "$ld_shlibs_F77" = no; then
16781      runpath_var=
16782      hardcode_libdir_flag_spec_F77=
16783      export_dynamic_flag_spec_F77=
16784      whole_archive_flag_spec_F77=
16785    fi
16786  else
16787    # PORTME fill in a description of your system's linker (not GNU ld)
16788    case $host_os in
16789    aix3*)
16790      allow_undefined_flag_F77=unsupported
16791      always_export_symbols_F77=yes
16792      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'
16793      # Note: this linker hardcodes the directories in LIBPATH if there
16794      # are no directories specified by -L.
16795      hardcode_minus_L_F77=yes
16796      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16797	# Neither direct hardcoding nor static linking is supported with a
16798	# broken collect2.
16799	hardcode_direct_F77=unsupported
16800      fi
16801      ;;
16802
16803    aix4* | aix5*)
16804      if test "$host_cpu" = ia64; then
16805	# On IA64, the linker does run time linking by default, so we don't
16806	# have to do anything special.
16807	aix_use_runtimelinking=no
16808	exp_sym_flag='-Bexport'
16809	no_entry_flag=""
16810      else
16811	# If we're using GNU nm, then we don't want the "-C" option.
16812	# -C means demangle to AIX nm, but means don't demangle with GNU nm
16813	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16814	  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'
16815	else
16816	  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'
16817	fi
16818	aix_use_runtimelinking=no
16819
16820	# Test if we are trying to use run time linking or normal
16821	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16822	# need to do runtime linking.
16823	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16824	  for ld_flag in $LDFLAGS; do
16825  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16826  	    aix_use_runtimelinking=yes
16827  	    break
16828  	  fi
16829	  done
16830	  ;;
16831	esac
16832
16833	exp_sym_flag='-bexport'
16834	no_entry_flag='-bnoentry'
16835      fi
16836
16837      # When large executables or shared objects are built, AIX ld can
16838      # have problems creating the table of contents.  If linking a library
16839      # or program results in "error TOC overflow" add -mminimal-toc to
16840      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16841      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16842
16843      archive_cmds_F77=''
16844      hardcode_direct_F77=yes
16845      hardcode_libdir_separator_F77=':'
16846      link_all_deplibs_F77=yes
16847
16848      if test "$GCC" = yes; then
16849	case $host_os in aix4.[012]|aix4.[012].*)
16850	# We only want to do this on AIX 4.2 and lower, the check
16851	# below for broken collect2 doesn't work under 4.3+
16852	  collect2name=`${CC} -print-prog-name=collect2`
16853	  if test -f "$collect2name" && \
16854  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
16855	  then
16856  	  # We have reworked collect2
16857  	  hardcode_direct_F77=yes
16858	  else
16859  	  # We have old collect2
16860  	  hardcode_direct_F77=unsupported
16861  	  # It fails to find uninstalled libraries when the uninstalled
16862  	  # path is not listed in the libpath.  Setting hardcode_minus_L
16863  	  # to unsupported forces relinking
16864  	  hardcode_minus_L_F77=yes
16865  	  hardcode_libdir_flag_spec_F77='-L$libdir'
16866  	  hardcode_libdir_separator_F77=
16867	  fi
16868	  ;;
16869	esac
16870	shared_flag='-shared'
16871	if test "$aix_use_runtimelinking" = yes; then
16872	  shared_flag="$shared_flag "'${wl}-G'
16873	fi
16874      else
16875	# not using gcc
16876	if test "$host_cpu" = ia64; then
16877  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16878  	# chokes on -Wl,-G. The following line is correct:
16879	  shared_flag='-G'
16880	else
16881	  if test "$aix_use_runtimelinking" = yes; then
16882	    shared_flag='${wl}-G'
16883	  else
16884	    shared_flag='${wl}-bM:SRE'
16885	  fi
16886	fi
16887      fi
16888
16889      # It seems that -bexpall does not export symbols beginning with
16890      # underscore (_), so it is better to generate a list of symbols to export.
16891      always_export_symbols_F77=yes
16892      if test "$aix_use_runtimelinking" = yes; then
16893	# Warning - without using the other runtime loading flags (-brtl),
16894	# -berok will link without error, but may produce a broken library.
16895	allow_undefined_flag_F77='-berok'
16896       # Determine the default libpath from the value encoded in an empty executable.
16897       cat >conftest.$ac_ext <<_ACEOF
16898      program main
16899
16900      end
16901_ACEOF
16902rm -f conftest.$ac_objext conftest$ac_exeext
16903if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16904  (eval $ac_link) 2>conftest.er1
16905  ac_status=$?
16906  grep -v '^ *+' conftest.er1 >conftest.err
16907  rm -f conftest.er1
16908  cat conftest.err >&5
16909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16910  (exit $ac_status); } &&
16911	 { ac_try='test -z "$ac_f77_werror_flag"
16912			 || test ! -s conftest.err'
16913  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16914  (eval $ac_try) 2>&5
16915  ac_status=$?
16916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16917  (exit $ac_status); }; } &&
16918	 { ac_try='test -s conftest$ac_exeext'
16919  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16920  (eval $ac_try) 2>&5
16921  ac_status=$?
16922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923  (exit $ac_status); }; }; then
16924
16925aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16926}'`
16927# Check for a 64-bit object if we didn't find anything.
16928if 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; }
16929}'`; fi
16930else
16931  echo "$as_me: failed program was:" >&5
16932sed 's/^/| /' conftest.$ac_ext >&5
16933
16934fi
16935rm -f conftest.err conftest.$ac_objext \
16936      conftest$ac_exeext conftest.$ac_ext
16937if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16938
16939       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16940	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"
16941       else
16942	if test "$host_cpu" = ia64; then
16943	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16944	  allow_undefined_flag_F77="-z nodefs"
16945	  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"
16946	else
16947	 # Determine the default libpath from the value encoded in an empty executable.
16948	 cat >conftest.$ac_ext <<_ACEOF
16949      program main
16950
16951      end
16952_ACEOF
16953rm -f conftest.$ac_objext conftest$ac_exeext
16954if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16955  (eval $ac_link) 2>conftest.er1
16956  ac_status=$?
16957  grep -v '^ *+' conftest.er1 >conftest.err
16958  rm -f conftest.er1
16959  cat conftest.err >&5
16960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16961  (exit $ac_status); } &&
16962	 { ac_try='test -z "$ac_f77_werror_flag"
16963			 || test ! -s conftest.err'
16964  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16965  (eval $ac_try) 2>&5
16966  ac_status=$?
16967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16968  (exit $ac_status); }; } &&
16969	 { ac_try='test -s conftest$ac_exeext'
16970  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16971  (eval $ac_try) 2>&5
16972  ac_status=$?
16973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16974  (exit $ac_status); }; }; then
16975
16976aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16977}'`
16978# Check for a 64-bit object if we didn't find anything.
16979if 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; }
16980}'`; fi
16981else
16982  echo "$as_me: failed program was:" >&5
16983sed 's/^/| /' conftest.$ac_ext >&5
16984
16985fi
16986rm -f conftest.err conftest.$ac_objext \
16987      conftest$ac_exeext conftest.$ac_ext
16988if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16989
16990	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16991	  # Warning - without using the other run time loading flags,
16992	  # -berok will link without error, but may produce a broken library.
16993	  no_undefined_flag_F77=' ${wl}-bernotok'
16994	  allow_undefined_flag_F77=' ${wl}-berok'
16995	  # Exported symbols can be pulled into shared objects from archives
16996	  whole_archive_flag_spec_F77='$convenience'
16997	  archive_cmds_need_lc_F77=yes
16998	  # This is similar to how AIX traditionally builds its shared libraries.
16999	  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'
17000	fi
17001      fi
17002      ;;
17003
17004    amigaos*)
17005      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)'
17006      hardcode_libdir_flag_spec_F77='-L$libdir'
17007      hardcode_minus_L_F77=yes
17008      # see comment about different semantics on the GNU ld section
17009      ld_shlibs_F77=no
17010      ;;
17011
17012    bsdi[45]*)
17013      export_dynamic_flag_spec_F77=-rdynamic
17014      ;;
17015
17016    cygwin* | mingw* | pw32*)
17017      # When not using gcc, we currently assume that we are using
17018      # Microsoft Visual C++.
17019      # hardcode_libdir_flag_spec is actually meaningless, as there is
17020      # no search path for DLLs.
17021      hardcode_libdir_flag_spec_F77=' '
17022      allow_undefined_flag_F77=unsupported
17023      # Tell ltmain to make .lib files, not .a files.
17024      libext=lib
17025      # Tell ltmain to make .dll files, not .so files.
17026      shrext_cmds=".dll"
17027      # FIXME: Setting linknames here is a bad hack.
17028      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17029      # The linker will automatically build a .lib file if we build a DLL.
17030      old_archive_From_new_cmds_F77='true'
17031      # FIXME: Should let the user specify the lib program.
17032      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
17033      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
17034      enable_shared_with_static_runtimes_F77=yes
17035      ;;
17036
17037    darwin* | rhapsody*)
17038      case $host_os in
17039        rhapsody* | darwin1.[012])
17040         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
17041         ;;
17042       *) # Darwin 1.3 on
17043         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17044           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17045         else
17046           case ${MACOSX_DEPLOYMENT_TARGET} in
17047             10.[012])
17048               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17049               ;;
17050             10.*)
17051               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
17052               ;;
17053           esac
17054         fi
17055         ;;
17056      esac
17057      archive_cmds_need_lc_F77=no
17058      hardcode_direct_F77=no
17059      hardcode_automatic_F77=yes
17060      hardcode_shlibpath_var_F77=unsupported
17061      whole_archive_flag_spec_F77=''
17062      link_all_deplibs_F77=yes
17063    if test "$GCC" = yes ; then
17064    	output_verbose_link_cmd='echo'
17065        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17066      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17067      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17068      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}'
17069      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}'
17070    else
17071      case $cc_basename in
17072        xlc*)
17073         output_verbose_link_cmd='echo'
17074         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17075         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17076          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17077         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}'
17078          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}'
17079          ;;
17080       *)
17081         ld_shlibs_F77=no
17082          ;;
17083      esac
17084    fi
17085      ;;
17086
17087    dgux*)
17088      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17089      hardcode_libdir_flag_spec_F77='-L$libdir'
17090      hardcode_shlibpath_var_F77=no
17091      ;;
17092
17093    freebsd1*)
17094      ld_shlibs_F77=no
17095      ;;
17096
17097    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17098    # support.  Future versions do this automatically, but an explicit c++rt0.o
17099    # does not break anything, and helps significantly (at the cost of a little
17100    # extra space).
17101    freebsd2.2*)
17102      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17103      hardcode_libdir_flag_spec_F77='-R$libdir'
17104      hardcode_direct_F77=yes
17105      hardcode_shlibpath_var_F77=no
17106      ;;
17107
17108    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17109    freebsd2*)
17110      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17111      hardcode_direct_F77=yes
17112      hardcode_minus_L_F77=yes
17113      hardcode_shlibpath_var_F77=no
17114      ;;
17115
17116    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17117    freebsd* | kfreebsd*-gnu | dragonfly*)
17118      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17119      hardcode_libdir_flag_spec_F77='-R$libdir'
17120      hardcode_direct_F77=yes
17121      hardcode_shlibpath_var_F77=no
17122      ;;
17123
17124    hpux9*)
17125      if test "$GCC" = yes; then
17126	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'
17127      else
17128	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'
17129      fi
17130      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17131      hardcode_libdir_separator_F77=:
17132      hardcode_direct_F77=yes
17133
17134      # hardcode_minus_L: Not really in the search PATH,
17135      # but as the default location of the library.
17136      hardcode_minus_L_F77=yes
17137      export_dynamic_flag_spec_F77='${wl}-E'
17138      ;;
17139
17140    hpux10*)
17141      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17142	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17143      else
17144	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17145      fi
17146      if test "$with_gnu_ld" = no; then
17147	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17148	hardcode_libdir_separator_F77=:
17149
17150	hardcode_direct_F77=yes
17151	export_dynamic_flag_spec_F77='${wl}-E'
17152
17153	# hardcode_minus_L: Not really in the search PATH,
17154	# but as the default location of the library.
17155	hardcode_minus_L_F77=yes
17156      fi
17157      ;;
17158
17159    hpux11*)
17160      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17161	case $host_cpu in
17162	hppa*64*)
17163	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17164	  ;;
17165	ia64*)
17166	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17167	  ;;
17168	*)
17169	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17170	  ;;
17171	esac
17172      else
17173	case $host_cpu in
17174	hppa*64*)
17175	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17176	  ;;
17177	ia64*)
17178	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17179	  ;;
17180	*)
17181	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17182	  ;;
17183	esac
17184      fi
17185      if test "$with_gnu_ld" = no; then
17186	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17187	hardcode_libdir_separator_F77=:
17188
17189	case $host_cpu in
17190	hppa*64*|ia64*)
17191	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
17192	  hardcode_direct_F77=no
17193	  hardcode_shlibpath_var_F77=no
17194	  ;;
17195	*)
17196	  hardcode_direct_F77=yes
17197	  export_dynamic_flag_spec_F77='${wl}-E'
17198
17199	  # hardcode_minus_L: Not really in the search PATH,
17200	  # but as the default location of the library.
17201	  hardcode_minus_L_F77=yes
17202	  ;;
17203	esac
17204      fi
17205      ;;
17206
17207    irix5* | irix6* | nonstopux*)
17208      if test "$GCC" = yes; then
17209	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'
17210      else
17211	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'
17212	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
17213      fi
17214      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17215      hardcode_libdir_separator_F77=:
17216      link_all_deplibs_F77=yes
17217      ;;
17218
17219    netbsd*)
17220      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17221	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17222      else
17223	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17224      fi
17225      hardcode_libdir_flag_spec_F77='-R$libdir'
17226      hardcode_direct_F77=yes
17227      hardcode_shlibpath_var_F77=no
17228      ;;
17229
17230    newsos6)
17231      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17232      hardcode_direct_F77=yes
17233      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17234      hardcode_libdir_separator_F77=:
17235      hardcode_shlibpath_var_F77=no
17236      ;;
17237
17238    openbsd*)
17239      hardcode_direct_F77=yes
17240      hardcode_shlibpath_var_F77=no
17241      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17242	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17243	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17244	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
17245	export_dynamic_flag_spec_F77='${wl}-E'
17246      else
17247       case $host_os in
17248	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17249	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17250	   hardcode_libdir_flag_spec_F77='-R$libdir'
17251	   ;;
17252	 *)
17253	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17254	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
17255	   ;;
17256       esac
17257      fi
17258      ;;
17259
17260    os2*)
17261      hardcode_libdir_flag_spec_F77='-L$libdir'
17262      hardcode_minus_L_F77=yes
17263      allow_undefined_flag_F77=unsupported
17264      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'
17265      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17266      ;;
17267
17268    osf3*)
17269      if test "$GCC" = yes; then
17270	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
17271	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'
17272      else
17273	allow_undefined_flag_F77=' -expect_unresolved \*'
17274	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'
17275      fi
17276      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17277      hardcode_libdir_separator_F77=:
17278      ;;
17279
17280    osf4* | osf5*)	# as osf3* with the addition of -msym flag
17281      if test "$GCC" = yes; then
17282	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
17283	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'
17284	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17285      else
17286	allow_undefined_flag_F77=' -expect_unresolved \*'
17287	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'
17288	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~
17289	$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'
17290
17291	# Both c and cxx compiler support -rpath directly
17292	hardcode_libdir_flag_spec_F77='-rpath $libdir'
17293      fi
17294      hardcode_libdir_separator_F77=:
17295      ;;
17296
17297    solaris*)
17298      no_undefined_flag_F77=' -z text'
17299      if test "$GCC" = yes; then
17300	wlarc='${wl}'
17301	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17302	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17303	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17304      else
17305	wlarc=''
17306	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17307	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17308  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17309      fi
17310      hardcode_libdir_flag_spec_F77='-R$libdir'
17311      hardcode_shlibpath_var_F77=no
17312      case $host_os in
17313      solaris2.[0-5] | solaris2.[0-5].*) ;;
17314      *)
17315 	# The compiler driver will combine linker options so we
17316 	# cannot just pass the convience library names through
17317 	# without $wl, iff we do not link with $LD.
17318 	# Luckily, gcc supports the same syntax we need for Sun Studio.
17319 	# Supported since Solaris 2.6 (maybe 2.5.1?)
17320 	case $wlarc in
17321 	'')
17322 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
17323 	*)
17324 	  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' ;;
17325 	esac ;;
17326      esac
17327      link_all_deplibs_F77=yes
17328      ;;
17329
17330    sunos4*)
17331      if test "x$host_vendor" = xsequent; then
17332	# Use $CC to link under sequent, because it throws in some extra .o
17333	# files that make .init and .fini sections work.
17334	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17335      else
17336	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17337      fi
17338      hardcode_libdir_flag_spec_F77='-L$libdir'
17339      hardcode_direct_F77=yes
17340      hardcode_minus_L_F77=yes
17341      hardcode_shlibpath_var_F77=no
17342      ;;
17343
17344    sysv4)
17345      case $host_vendor in
17346	sni)
17347	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17348	  hardcode_direct_F77=yes # is this really true???
17349	;;
17350	siemens)
17351	  ## LD is ld it makes a PLAMLIB
17352	  ## CC just makes a GrossModule.
17353	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17354	  reload_cmds_F77='$CC -r -o $output$reload_objs'
17355	  hardcode_direct_F77=no
17356        ;;
17357	motorola)
17358	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17359	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
17360	;;
17361      esac
17362      runpath_var='LD_RUN_PATH'
17363      hardcode_shlibpath_var_F77=no
17364      ;;
17365
17366    sysv4.3*)
17367      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17368      hardcode_shlibpath_var_F77=no
17369      export_dynamic_flag_spec_F77='-Bexport'
17370      ;;
17371
17372    sysv4*MP*)
17373      if test -d /usr/nec; then
17374	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17375	hardcode_shlibpath_var_F77=no
17376	runpath_var=LD_RUN_PATH
17377	hardcode_runpath_var=yes
17378	ld_shlibs_F77=yes
17379      fi
17380      ;;
17381
17382    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17383      no_undefined_flag_F77='${wl}-z,text'
17384      archive_cmds_need_lc_F77=no
17385      hardcode_shlibpath_var_F77=no
17386      runpath_var='LD_RUN_PATH'
17387
17388      if test "$GCC" = yes; then
17389	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17390	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17391      else
17392	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17393	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17394      fi
17395      ;;
17396
17397    sysv5* | sco3.2v5* | sco5v6*)
17398      # Note: We can NOT use -z defs as we might desire, because we do not
17399      # link with -lc, and that would cause any symbols used from libc to
17400      # always be unresolved, which means just about no library would
17401      # ever link correctly.  If we're not using GNU ld we use -z text
17402      # though, which does catch some bad symbols but isn't as heavy-handed
17403      # as -z defs.
17404      no_undefined_flag_F77='${wl}-z,text'
17405      allow_undefined_flag_F77='${wl}-z,nodefs'
17406      archive_cmds_need_lc_F77=no
17407      hardcode_shlibpath_var_F77=no
17408      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17409      hardcode_libdir_separator_F77=':'
17410      link_all_deplibs_F77=yes
17411      export_dynamic_flag_spec_F77='${wl}-Bexport'
17412      runpath_var='LD_RUN_PATH'
17413
17414      if test "$GCC" = yes; then
17415	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17416	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17417      else
17418	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17419	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17420      fi
17421      ;;
17422
17423    uts4*)
17424      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17425      hardcode_libdir_flag_spec_F77='-L$libdir'
17426      hardcode_shlibpath_var_F77=no
17427      ;;
17428
17429    *)
17430      ld_shlibs_F77=no
17431      ;;
17432    esac
17433  fi
17434
17435echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
17436echo "${ECHO_T}$ld_shlibs_F77" >&6
17437test "$ld_shlibs_F77" = no && can_build_shared=no
17438
17439#
17440# Do we need to explicitly link libc?
17441#
17442case "x$archive_cmds_need_lc_F77" in
17443x|xyes)
17444  # Assume -lc should be added
17445  archive_cmds_need_lc_F77=yes
17446
17447  if test "$enable_shared" = yes && test "$GCC" = yes; then
17448    case $archive_cmds_F77 in
17449    *'~'*)
17450      # FIXME: we may have to deal with multi-command sequences.
17451      ;;
17452    '$CC '*)
17453      # Test whether the compiler implicitly links with -lc since on some
17454      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17455      # to ld, don't add -lc before -lgcc.
17456      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17457echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17458      $rm conftest*
17459      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17460
17461      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17462  (eval $ac_compile) 2>&5
17463  ac_status=$?
17464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17465  (exit $ac_status); } 2>conftest.err; then
17466        soname=conftest
17467        lib=conftest
17468        libobjs=conftest.$ac_objext
17469        deplibs=
17470        wl=$lt_prog_compiler_wl_F77
17471	pic_flag=$lt_prog_compiler_pic_F77
17472        compiler_flags=-v
17473        linker_flags=-v
17474        verstring=
17475        output_objdir=.
17476        libname=conftest
17477        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
17478        allow_undefined_flag_F77=
17479        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17480  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17481  ac_status=$?
17482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17483  (exit $ac_status); }
17484        then
17485	  archive_cmds_need_lc_F77=no
17486        else
17487	  archive_cmds_need_lc_F77=yes
17488        fi
17489        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
17490      else
17491        cat conftest.err 1>&5
17492      fi
17493      $rm conftest*
17494      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
17495echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
17496      ;;
17497    esac
17498  fi
17499  ;;
17500esac
17501
17502echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17503echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17504library_names_spec=
17505libname_spec='lib$name'
17506soname_spec=
17507shrext_cmds=".so"
17508postinstall_cmds=
17509postuninstall_cmds=
17510finish_cmds=
17511finish_eval=
17512shlibpath_var=
17513shlibpath_overrides_runpath=unknown
17514version_type=none
17515dynamic_linker="$host_os ld.so"
17516sys_lib_dlsearch_path_spec="/lib /usr/lib"
17517if test "$GCC" = yes; then
17518  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17519  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17520    # if the path contains ";" then we assume it to be the separator
17521    # otherwise default to the standard path separator (i.e. ":") - it is
17522    # assumed that no part of a normal pathname contains ";" but that should
17523    # okay in the real world where ";" in dirpaths is itself problematic.
17524    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17525  else
17526    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17527  fi
17528else
17529  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17530fi
17531need_lib_prefix=unknown
17532hardcode_into_libs=no
17533
17534# when you set need_version to no, make sure it does not cause -set_version
17535# flags to be left without arguments
17536need_version=unknown
17537
17538case $host_os in
17539aix3*)
17540  version_type=linux
17541  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17542  shlibpath_var=LIBPATH
17543
17544  # AIX 3 has no versioning support, so we append a major version to the name.
17545  soname_spec='${libname}${release}${shared_ext}$major'
17546  ;;
17547
17548aix4* | aix5*)
17549  version_type=linux
17550  need_lib_prefix=no
17551  need_version=no
17552  hardcode_into_libs=yes
17553  if test "$host_cpu" = ia64; then
17554    # AIX 5 supports IA64
17555    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17556    shlibpath_var=LD_LIBRARY_PATH
17557  else
17558    # With GCC up to 2.95.x, collect2 would create an import file
17559    # for dependence libraries.  The import file would start with
17560    # the line `#! .'.  This would cause the generated library to
17561    # depend on `.', always an invalid library.  This was fixed in
17562    # development snapshots of GCC prior to 3.0.
17563    case $host_os in
17564      aix4 | aix4.[01] | aix4.[01].*)
17565      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17566	   echo ' yes '
17567	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17568	:
17569      else
17570	can_build_shared=no
17571      fi
17572      ;;
17573    esac
17574    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17575    # soname into executable. Probably we can add versioning support to
17576    # collect2, so additional links can be useful in future.
17577    if test "$aix_use_runtimelinking" = yes; then
17578      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17579      # instead of lib<name>.a to let people know that these are not
17580      # typical AIX shared libraries.
17581      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17582    else
17583      # We preserve .a as extension for shared libraries through AIX4.2
17584      # and later when we are not doing run time linking.
17585      library_names_spec='${libname}${release}.a $libname.a'
17586      soname_spec='${libname}${release}${shared_ext}$major'
17587    fi
17588    shlibpath_var=LIBPATH
17589  fi
17590  ;;
17591
17592amigaos*)
17593  library_names_spec='$libname.ixlibrary $libname.a'
17594  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17595  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'
17596  ;;
17597
17598beos*)
17599  library_names_spec='${libname}${shared_ext}'
17600  dynamic_linker="$host_os ld.so"
17601  shlibpath_var=LIBRARY_PATH
17602  ;;
17603
17604bsdi[45]*)
17605  version_type=linux
17606  need_version=no
17607  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17608  soname_spec='${libname}${release}${shared_ext}$major'
17609  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17610  shlibpath_var=LD_LIBRARY_PATH
17611  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17612  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17613  # the default ld.so.conf also contains /usr/contrib/lib and
17614  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17615  # libtool to hard-code these into programs
17616  ;;
17617
17618cygwin* | mingw* | pw32*)
17619  version_type=windows
17620  shrext_cmds=".dll"
17621  need_version=no
17622  need_lib_prefix=no
17623
17624  case $GCC,$host_os in
17625  yes,cygwin* | yes,mingw* | yes,pw32*)
17626    library_names_spec='$libname.dll.a'
17627    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17628    postinstall_cmds='base_file=`basename \${file}`~
17629      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17630      dldir=$destdir/`dirname \$dlpath`~
17631      test -d \$dldir || mkdir -p \$dldir~
17632      $install_prog $dir/$dlname \$dldir/$dlname~
17633      chmod a+x \$dldir/$dlname'
17634    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17635      dlpath=$dir/\$dldll~
17636       $rm \$dlpath'
17637    shlibpath_overrides_runpath=yes
17638
17639    case $host_os in
17640    cygwin*)
17641      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17642      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17643      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17644      ;;
17645    mingw*)
17646      # MinGW DLLs use traditional 'lib' prefix
17647      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17648      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17649      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17650        # It is most probably a Windows format PATH printed by
17651        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17652        # path with ; separators, and with drive letters. We can handle the
17653        # drive letters (cygwin fileutils understands them), so leave them,
17654        # especially as we might pass files found there to a mingw objdump,
17655        # which wouldn't understand a cygwinified path. Ahh.
17656        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17657      else
17658        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17659      fi
17660      ;;
17661    pw32*)
17662      # pw32 DLLs use 'pw' prefix rather than 'lib'
17663      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17664      ;;
17665    esac
17666    ;;
17667
17668  *)
17669    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17670    ;;
17671  esac
17672  dynamic_linker='Win32 ld.exe'
17673  # FIXME: first we should search . and the directory the executable is in
17674  shlibpath_var=PATH
17675  ;;
17676
17677darwin* | rhapsody*)
17678  dynamic_linker="$host_os dyld"
17679  version_type=darwin
17680  need_lib_prefix=no
17681  need_version=no
17682  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17683  soname_spec='${libname}${release}${major}$shared_ext'
17684  shlibpath_overrides_runpath=yes
17685  shlibpath_var=DYLD_LIBRARY_PATH
17686  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17687  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17688  if test "$GCC" = yes; then
17689    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"`
17690  else
17691    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17692  fi
17693  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17694  ;;
17695
17696dgux*)
17697  version_type=linux
17698  need_lib_prefix=no
17699  need_version=no
17700  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17701  soname_spec='${libname}${release}${shared_ext}$major'
17702  shlibpath_var=LD_LIBRARY_PATH
17703  ;;
17704
17705freebsd1*)
17706  dynamic_linker=no
17707  ;;
17708
17709kfreebsd*-gnu)
17710  version_type=linux
17711  need_lib_prefix=no
17712  need_version=no
17713  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17714  soname_spec='${libname}${release}${shared_ext}$major'
17715  shlibpath_var=LD_LIBRARY_PATH
17716  shlibpath_overrides_runpath=no
17717  hardcode_into_libs=yes
17718  dynamic_linker='GNU ld.so'
17719  ;;
17720
17721freebsd* | dragonfly*)
17722  # DragonFly does not have aout.  When/if they implement a new
17723  # versioning mechanism, adjust this.
17724  if test -x /usr/bin/objformat; then
17725    objformat=`/usr/bin/objformat`
17726  else
17727    case $host_os in
17728    freebsd[123]*) objformat=aout ;;
17729    *) objformat=elf ;;
17730    esac
17731  fi
17732  version_type=freebsd-$objformat
17733  case $version_type in
17734    freebsd-elf*)
17735      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17736      need_version=no
17737      need_lib_prefix=no
17738      ;;
17739    freebsd-*)
17740      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17741      need_version=yes
17742      ;;
17743  esac
17744  shlibpath_var=LD_LIBRARY_PATH
17745  case $host_os in
17746  freebsd2*)
17747    shlibpath_overrides_runpath=yes
17748    ;;
17749  freebsd3.[01]* | freebsdelf3.[01]*)
17750    shlibpath_overrides_runpath=yes
17751    hardcode_into_libs=yes
17752    ;;
17753  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17754  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17755    shlibpath_overrides_runpath=no
17756    hardcode_into_libs=yes
17757    ;;
17758  freebsd*) # from 4.6 on
17759    shlibpath_overrides_runpath=yes
17760    hardcode_into_libs=yes
17761    ;;
17762  esac
17763  ;;
17764
17765gnu*)
17766  version_type=linux
17767  need_lib_prefix=no
17768  need_version=no
17769  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17770  soname_spec='${libname}${release}${shared_ext}$major'
17771  shlibpath_var=LD_LIBRARY_PATH
17772  hardcode_into_libs=yes
17773  ;;
17774
17775hpux9* | hpux10* | hpux11*)
17776  # Give a soname corresponding to the major version so that dld.sl refuses to
17777  # link against other versions.
17778  version_type=sunos
17779  need_lib_prefix=no
17780  need_version=no
17781  case $host_cpu in
17782  ia64*)
17783    shrext_cmds='.so'
17784    hardcode_into_libs=yes
17785    dynamic_linker="$host_os dld.so"
17786    shlibpath_var=LD_LIBRARY_PATH
17787    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17788    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17789    soname_spec='${libname}${release}${shared_ext}$major'
17790    if test "X$HPUX_IA64_MODE" = X32; then
17791      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17792    else
17793      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17794    fi
17795    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17796    ;;
17797   hppa*64*)
17798     shrext_cmds='.sl'
17799     hardcode_into_libs=yes
17800     dynamic_linker="$host_os dld.sl"
17801     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17802     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17803     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17804     soname_spec='${libname}${release}${shared_ext}$major'
17805     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17806     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17807     ;;
17808   *)
17809    shrext_cmds='.sl'
17810    dynamic_linker="$host_os dld.sl"
17811    shlibpath_var=SHLIB_PATH
17812    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17813    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17814    soname_spec='${libname}${release}${shared_ext}$major'
17815    ;;
17816  esac
17817  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17818  postinstall_cmds='chmod 555 $lib'
17819  ;;
17820
17821interix3*)
17822  version_type=linux
17823  need_lib_prefix=no
17824  need_version=no
17825  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17826  soname_spec='${libname}${release}${shared_ext}$major'
17827  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17828  shlibpath_var=LD_LIBRARY_PATH
17829  shlibpath_overrides_runpath=no
17830  hardcode_into_libs=yes
17831  ;;
17832
17833irix5* | irix6* | nonstopux*)
17834  case $host_os in
17835    nonstopux*) version_type=nonstopux ;;
17836    *)
17837	if test "$lt_cv_prog_gnu_ld" = yes; then
17838		version_type=linux
17839	else
17840		version_type=irix
17841	fi ;;
17842  esac
17843  need_lib_prefix=no
17844  need_version=no
17845  soname_spec='${libname}${release}${shared_ext}$major'
17846  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17847  case $host_os in
17848  irix5* | nonstopux*)
17849    libsuff= shlibsuff=
17850    ;;
17851  *)
17852    case $LD in # libtool.m4 will add one of these switches to LD
17853    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17854      libsuff= shlibsuff= libmagic=32-bit;;
17855    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17856      libsuff=32 shlibsuff=N32 libmagic=N32;;
17857    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17858      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17859    *) libsuff= shlibsuff= libmagic=never-match;;
17860    esac
17861    ;;
17862  esac
17863  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17864  shlibpath_overrides_runpath=no
17865  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17866  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17867  hardcode_into_libs=yes
17868  ;;
17869
17870# No shared lib support for Linux oldld, aout, or coff.
17871linux*oldld* | linux*aout* | linux*coff*)
17872  dynamic_linker=no
17873  ;;
17874
17875# This must be Linux ELF.
17876linux*)
17877  version_type=linux
17878  need_lib_prefix=no
17879  need_version=no
17880  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17881  soname_spec='${libname}${release}${shared_ext}$major'
17882  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17883  shlibpath_var=LD_LIBRARY_PATH
17884  shlibpath_overrides_runpath=no
17885  # This implies no fast_install, which is unacceptable.
17886  # Some rework will be needed to allow for fast_install
17887  # before this can be enabled.
17888  hardcode_into_libs=yes
17889
17890  # Append ld.so.conf contents to the search path
17891  if test -f /etc/ld.so.conf; then
17892    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' ' '`
17893    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17894  fi
17895
17896  # We used to test for /lib/ld.so.1 and disable shared libraries on
17897  # powerpc, because MkLinux only supported shared libraries with the
17898  # GNU dynamic linker.  Since this was broken with cross compilers,
17899  # most powerpc-linux boxes support dynamic linking these days and
17900  # people can always --disable-shared, the test was removed, and we
17901  # assume the GNU/Linux dynamic linker is in use.
17902  dynamic_linker='GNU/Linux ld.so'
17903  ;;
17904
17905knetbsd*-gnu)
17906  version_type=linux
17907  need_lib_prefix=no
17908  need_version=no
17909  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17910  soname_spec='${libname}${release}${shared_ext}$major'
17911  shlibpath_var=LD_LIBRARY_PATH
17912  shlibpath_overrides_runpath=no
17913  hardcode_into_libs=yes
17914  dynamic_linker='GNU ld.so'
17915  ;;
17916
17917netbsd*)
17918  version_type=sunos
17919  need_lib_prefix=no
17920  need_version=no
17921  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17922    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17923    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17924    dynamic_linker='NetBSD (a.out) ld.so'
17925  else
17926    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17927    soname_spec='${libname}${release}${shared_ext}$major'
17928    dynamic_linker='NetBSD ld.elf_so'
17929  fi
17930  shlibpath_var=LD_LIBRARY_PATH
17931  shlibpath_overrides_runpath=yes
17932  hardcode_into_libs=yes
17933  ;;
17934
17935newsos6)
17936  version_type=linux
17937  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17938  shlibpath_var=LD_LIBRARY_PATH
17939  shlibpath_overrides_runpath=yes
17940  ;;
17941
17942nto-qnx*)
17943  version_type=linux
17944  need_lib_prefix=no
17945  need_version=no
17946  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17947  soname_spec='${libname}${release}${shared_ext}$major'
17948  shlibpath_var=LD_LIBRARY_PATH
17949  shlibpath_overrides_runpath=yes
17950  ;;
17951
17952openbsd*)
17953  version_type=sunos
17954  sys_lib_dlsearch_path_spec="/usr/lib"
17955  need_lib_prefix=no
17956  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17957  case $host_os in
17958    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17959    *)                         need_version=no  ;;
17960  esac
17961  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17962  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17963  shlibpath_var=LD_LIBRARY_PATH
17964  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17965    case $host_os in
17966      openbsd2.[89] | openbsd2.[89].*)
17967	shlibpath_overrides_runpath=no
17968	;;
17969      *)
17970	shlibpath_overrides_runpath=yes
17971	;;
17972      esac
17973  else
17974    shlibpath_overrides_runpath=yes
17975  fi
17976  ;;
17977
17978os2*)
17979  libname_spec='$name'
17980  shrext_cmds=".dll"
17981  need_lib_prefix=no
17982  library_names_spec='$libname${shared_ext} $libname.a'
17983  dynamic_linker='OS/2 ld.exe'
17984  shlibpath_var=LIBPATH
17985  ;;
17986
17987osf3* | osf4* | osf5*)
17988  version_type=osf
17989  need_lib_prefix=no
17990  need_version=no
17991  soname_spec='${libname}${release}${shared_ext}$major'
17992  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17993  shlibpath_var=LD_LIBRARY_PATH
17994  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17995  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17996  ;;
17997
17998solaris*)
17999  version_type=linux
18000  need_lib_prefix=no
18001  need_version=no
18002  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18003  soname_spec='${libname}${release}${shared_ext}$major'
18004  shlibpath_var=LD_LIBRARY_PATH
18005  shlibpath_overrides_runpath=yes
18006  hardcode_into_libs=yes
18007  # ldd complains unless libraries are executable
18008  postinstall_cmds='chmod +x $lib'
18009  ;;
18010
18011sunos4*)
18012  version_type=sunos
18013  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18014  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18015  shlibpath_var=LD_LIBRARY_PATH
18016  shlibpath_overrides_runpath=yes
18017  if test "$with_gnu_ld" = yes; then
18018    need_lib_prefix=no
18019  fi
18020  need_version=yes
18021  ;;
18022
18023sysv4 | sysv4.3*)
18024  version_type=linux
18025  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18026  soname_spec='${libname}${release}${shared_ext}$major'
18027  shlibpath_var=LD_LIBRARY_PATH
18028  case $host_vendor in
18029    sni)
18030      shlibpath_overrides_runpath=no
18031      need_lib_prefix=no
18032      export_dynamic_flag_spec='${wl}-Blargedynsym'
18033      runpath_var=LD_RUN_PATH
18034      ;;
18035    siemens)
18036      need_lib_prefix=no
18037      ;;
18038    motorola)
18039      need_lib_prefix=no
18040      need_version=no
18041      shlibpath_overrides_runpath=no
18042      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18043      ;;
18044  esac
18045  ;;
18046
18047sysv4*MP*)
18048  if test -d /usr/nec ;then
18049    version_type=linux
18050    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18051    soname_spec='$libname${shared_ext}.$major'
18052    shlibpath_var=LD_LIBRARY_PATH
18053  fi
18054  ;;
18055
18056sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18057  version_type=freebsd-elf
18058  need_lib_prefix=no
18059  need_version=no
18060  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18061  soname_spec='${libname}${release}${shared_ext}$major'
18062  shlibpath_var=LD_LIBRARY_PATH
18063  hardcode_into_libs=yes
18064  if test "$with_gnu_ld" = yes; then
18065    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18066    shlibpath_overrides_runpath=no
18067  else
18068    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18069    shlibpath_overrides_runpath=yes
18070    case $host_os in
18071      sco3.2v5*)
18072        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18073	;;
18074    esac
18075  fi
18076  sys_lib_dlsearch_path_spec='/usr/lib'
18077  ;;
18078
18079uts4*)
18080  version_type=linux
18081  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18082  soname_spec='${libname}${release}${shared_ext}$major'
18083  shlibpath_var=LD_LIBRARY_PATH
18084  ;;
18085
18086*)
18087  dynamic_linker=no
18088  ;;
18089esac
18090echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18091echo "${ECHO_T}$dynamic_linker" >&6
18092test "$dynamic_linker" = no && can_build_shared=no
18093
18094variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18095if test "$GCC" = yes; then
18096  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18097fi
18098
18099echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18100echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18101hardcode_action_F77=
18102if test -n "$hardcode_libdir_flag_spec_F77" || \
18103   test -n "$runpath_var_F77" || \
18104   test "X$hardcode_automatic_F77" = "Xyes" ; then
18105
18106  # We can hardcode non-existant directories.
18107  if test "$hardcode_direct_F77" != no &&
18108     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18109     # have to relink, otherwise we might link with an installed library
18110     # when we should be linking with a yet-to-be-installed one
18111     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
18112     test "$hardcode_minus_L_F77" != no; then
18113    # Linking always hardcodes the temporary library directory.
18114    hardcode_action_F77=relink
18115  else
18116    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18117    hardcode_action_F77=immediate
18118  fi
18119else
18120  # We cannot hardcode anything, or else we can only hardcode existing
18121  # directories.
18122  hardcode_action_F77=unsupported
18123fi
18124echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
18125echo "${ECHO_T}$hardcode_action_F77" >&6
18126
18127if test "$hardcode_action_F77" = relink; then
18128  # Fast installation is not supported
18129  enable_fast_install=no
18130elif test "$shlibpath_overrides_runpath" = yes ||
18131     test "$enable_shared" = no; then
18132  # Fast installation is not necessary
18133  enable_fast_install=needless
18134fi
18135
18136
18137# The else clause should only fire when bootstrapping the
18138# libtool distribution, otherwise you forgot to ship ltmain.sh
18139# with your package, and you will get complaints that there are
18140# no rules to generate ltmain.sh.
18141if test -f "$ltmain"; then
18142  # See if we are running on zsh, and set the options which allow our commands through
18143  # without removal of \ escapes.
18144  if test -n "${ZSH_VERSION+set}" ; then
18145    setopt NO_GLOB_SUBST
18146  fi
18147  # Now quote all the things that may contain metacharacters while being
18148  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18149  # variables and quote the copies for generation of the libtool script.
18150  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18151    SED SHELL STRIP \
18152    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18153    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18154    deplibs_check_method reload_flag reload_cmds need_locks \
18155    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18156    lt_cv_sys_global_symbol_to_c_name_address \
18157    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18158    old_postinstall_cmds old_postuninstall_cmds \
18159    compiler_F77 \
18160    CC_F77 \
18161    LD_F77 \
18162    lt_prog_compiler_wl_F77 \
18163    lt_prog_compiler_pic_F77 \
18164    lt_prog_compiler_static_F77 \
18165    lt_prog_compiler_no_builtin_flag_F77 \
18166    export_dynamic_flag_spec_F77 \
18167    thread_safe_flag_spec_F77 \
18168    whole_archive_flag_spec_F77 \
18169    enable_shared_with_static_runtimes_F77 \
18170    old_archive_cmds_F77 \
18171    old_archive_from_new_cmds_F77 \
18172    predep_objects_F77 \
18173    postdep_objects_F77 \
18174    predeps_F77 \
18175    postdeps_F77 \
18176    compiler_lib_search_path_F77 \
18177    archive_cmds_F77 \
18178    archive_expsym_cmds_F77 \
18179    postinstall_cmds_F77 \
18180    postuninstall_cmds_F77 \
18181    old_archive_from_expsyms_cmds_F77 \
18182    allow_undefined_flag_F77 \
18183    no_undefined_flag_F77 \
18184    export_symbols_cmds_F77 \
18185    hardcode_libdir_flag_spec_F77 \
18186    hardcode_libdir_flag_spec_ld_F77 \
18187    hardcode_libdir_separator_F77 \
18188    hardcode_automatic_F77 \
18189    module_cmds_F77 \
18190    module_expsym_cmds_F77 \
18191    lt_cv_prog_compiler_c_o_F77 \
18192    exclude_expsyms_F77 \
18193    include_expsyms_F77; do
18194
18195    case $var in
18196    old_archive_cmds_F77 | \
18197    old_archive_from_new_cmds_F77 | \
18198    archive_cmds_F77 | \
18199    archive_expsym_cmds_F77 | \
18200    module_cmds_F77 | \
18201    module_expsym_cmds_F77 | \
18202    old_archive_from_expsyms_cmds_F77 | \
18203    export_symbols_cmds_F77 | \
18204    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18205    postinstall_cmds | postuninstall_cmds | \
18206    old_postinstall_cmds | old_postuninstall_cmds | \
18207    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18208      # Double-quote double-evaled strings.
18209      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18210      ;;
18211    *)
18212      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18213      ;;
18214    esac
18215  done
18216
18217  case $lt_echo in
18218  *'\$0 --fallback-echo"')
18219    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18220    ;;
18221  esac
18222
18223cfgfile="$ofile"
18224
18225  cat <<__EOF__ >> "$cfgfile"
18226# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18227
18228# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18229
18230# Shell to use when invoking shell scripts.
18231SHELL=$lt_SHELL
18232
18233# Whether or not to build shared libraries.
18234build_libtool_libs=$enable_shared
18235
18236# Whether or not to build static libraries.
18237build_old_libs=$enable_static
18238
18239# Whether or not to add -lc for building shared libraries.
18240build_libtool_need_lc=$archive_cmds_need_lc_F77
18241
18242# Whether or not to disallow shared libs when runtime libs are static
18243allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
18244
18245# Whether or not to optimize for fast installation.
18246fast_install=$enable_fast_install
18247
18248# The host system.
18249host_alias=$host_alias
18250host=$host
18251host_os=$host_os
18252
18253# The build system.
18254build_alias=$build_alias
18255build=$build
18256build_os=$build_os
18257
18258# An echo program that does not interpret backslashes.
18259echo=$lt_echo
18260
18261# The archiver.
18262AR=$lt_AR
18263AR_FLAGS=$lt_AR_FLAGS
18264
18265# A C compiler.
18266LTCC=$lt_LTCC
18267
18268# LTCC compiler flags.
18269LTCFLAGS=$lt_LTCFLAGS
18270
18271# A language-specific compiler.
18272CC=$lt_compiler_F77
18273
18274# Is the compiler the GNU C compiler?
18275with_gcc=$GCC_F77
18276
18277# An ERE matcher.
18278EGREP=$lt_EGREP
18279
18280# The linker used to build libraries.
18281LD=$lt_LD_F77
18282
18283# Whether we need hard or soft links.
18284LN_S=$lt_LN_S
18285
18286# A BSD-compatible nm program.
18287NM=$lt_NM
18288
18289# A symbol stripping program
18290STRIP=$lt_STRIP
18291
18292# Used to examine libraries when file_magic_cmd begins "file"
18293MAGIC_CMD=$MAGIC_CMD
18294
18295# Used on cygwin: DLL creation program.
18296DLLTOOL="$DLLTOOL"
18297
18298# Used on cygwin: object dumper.
18299OBJDUMP="$OBJDUMP"
18300
18301# Used on cygwin: assembler.
18302AS="$AS"
18303
18304# The name of the directory that contains temporary libtool files.
18305objdir=$objdir
18306
18307# How to create reloadable object files.
18308reload_flag=$lt_reload_flag
18309reload_cmds=$lt_reload_cmds
18310
18311# How to pass a linker flag through the compiler.
18312wl=$lt_lt_prog_compiler_wl_F77
18313
18314# Object file suffix (normally "o").
18315objext="$ac_objext"
18316
18317# Old archive suffix (normally "a").
18318libext="$libext"
18319
18320# Shared library suffix (normally ".so").
18321shrext_cmds='$shrext_cmds'
18322
18323# Executable file suffix (normally "").
18324exeext="$exeext"
18325
18326# Additional compiler flags for building library objects.
18327pic_flag=$lt_lt_prog_compiler_pic_F77
18328pic_mode=$pic_mode
18329
18330# What is the maximum length of a command?
18331max_cmd_len=$lt_cv_sys_max_cmd_len
18332
18333# Does compiler simultaneously support -c and -o options?
18334compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
18335
18336# Must we lock files when doing compilation?
18337need_locks=$lt_need_locks
18338
18339# Do we need the lib prefix for modules?
18340need_lib_prefix=$need_lib_prefix
18341
18342# Do we need a version for libraries?
18343need_version=$need_version
18344
18345# Whether dlopen is supported.
18346dlopen_support=$enable_dlopen
18347
18348# Whether dlopen of programs is supported.
18349dlopen_self=$enable_dlopen_self
18350
18351# Whether dlopen of statically linked programs is supported.
18352dlopen_self_static=$enable_dlopen_self_static
18353
18354# Compiler flag to prevent dynamic linking.
18355link_static_flag=$lt_lt_prog_compiler_static_F77
18356
18357# Compiler flag to turn off builtin functions.
18358no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
18359
18360# Compiler flag to allow reflexive dlopens.
18361export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
18362
18363# Compiler flag to generate shared objects directly from archives.
18364whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
18365
18366# Compiler flag to generate thread-safe objects.
18367thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
18368
18369# Library versioning type.
18370version_type=$version_type
18371
18372# Format of library name prefix.
18373libname_spec=$lt_libname_spec
18374
18375# List of archive names.  First name is the real one, the rest are links.
18376# The last name is the one that the linker finds with -lNAME.
18377library_names_spec=$lt_library_names_spec
18378
18379# The coded name of the library, if different from the real name.
18380soname_spec=$lt_soname_spec
18381
18382# Commands used to build and install an old-style archive.
18383RANLIB=$lt_RANLIB
18384old_archive_cmds=$lt_old_archive_cmds_F77
18385old_postinstall_cmds=$lt_old_postinstall_cmds
18386old_postuninstall_cmds=$lt_old_postuninstall_cmds
18387
18388# Create an old-style archive from a shared archive.
18389old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
18390
18391# Create a temporary old-style archive to link instead of a shared archive.
18392old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
18393
18394# Commands used to build and install a shared archive.
18395archive_cmds=$lt_archive_cmds_F77
18396archive_expsym_cmds=$lt_archive_expsym_cmds_F77
18397postinstall_cmds=$lt_postinstall_cmds
18398postuninstall_cmds=$lt_postuninstall_cmds
18399
18400# Commands used to build a loadable module (assumed same as above if empty)
18401module_cmds=$lt_module_cmds_F77
18402module_expsym_cmds=$lt_module_expsym_cmds_F77
18403
18404# Commands to strip libraries.
18405old_striplib=$lt_old_striplib
18406striplib=$lt_striplib
18407
18408# Dependencies to place before the objects being linked to create a
18409# shared library.
18410predep_objects=$lt_predep_objects_F77
18411
18412# Dependencies to place after the objects being linked to create a
18413# shared library.
18414postdep_objects=$lt_postdep_objects_F77
18415
18416# Dependencies to place before the objects being linked to create a
18417# shared library.
18418predeps=$lt_predeps_F77
18419
18420# Dependencies to place after the objects being linked to create a
18421# shared library.
18422postdeps=$lt_postdeps_F77
18423
18424# The library search path used internally by the compiler when linking
18425# a shared library.
18426compiler_lib_search_path=$lt_compiler_lib_search_path_F77
18427
18428# Method to check whether dependent libraries are shared objects.
18429deplibs_check_method=$lt_deplibs_check_method
18430
18431# Command to use when deplibs_check_method == file_magic.
18432file_magic_cmd=$lt_file_magic_cmd
18433
18434# Flag that allows shared libraries with undefined symbols to be built.
18435allow_undefined_flag=$lt_allow_undefined_flag_F77
18436
18437# Flag that forces no undefined symbols.
18438no_undefined_flag=$lt_no_undefined_flag_F77
18439
18440# Commands used to finish a libtool library installation in a directory.
18441finish_cmds=$lt_finish_cmds
18442
18443# Same as above, but a single script fragment to be evaled but not shown.
18444finish_eval=$lt_finish_eval
18445
18446# Take the output of nm and produce a listing of raw symbols and C names.
18447global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18448
18449# Transform the output of nm in a proper C declaration
18450global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18451
18452# Transform the output of nm in a C name address pair
18453global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18454
18455# This is the shared library runtime path variable.
18456runpath_var=$runpath_var
18457
18458# This is the shared library path variable.
18459shlibpath_var=$shlibpath_var
18460
18461# Is shlibpath searched before the hard-coded library search path?
18462shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18463
18464# How to hardcode a shared library path into an executable.
18465hardcode_action=$hardcode_action_F77
18466
18467# Whether we should hardcode library paths into libraries.
18468hardcode_into_libs=$hardcode_into_libs
18469
18470# Flag to hardcode \$libdir into a binary during linking.
18471# This must work even if \$libdir does not exist.
18472hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
18473
18474# If ld is used when linking, flag to hardcode \$libdir into
18475# a binary during linking. This must work even if \$libdir does
18476# not exist.
18477hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
18478
18479# Whether we need a single -rpath flag with a separated argument.
18480hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
18481
18482# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18483# resulting binary.
18484hardcode_direct=$hardcode_direct_F77
18485
18486# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18487# resulting binary.
18488hardcode_minus_L=$hardcode_minus_L_F77
18489
18490# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18491# the resulting binary.
18492hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
18493
18494# Set to yes if building a shared library automatically hardcodes DIR into the library
18495# and all subsequent libraries and executables linked against it.
18496hardcode_automatic=$hardcode_automatic_F77
18497
18498# Variables whose values should be saved in libtool wrapper scripts and
18499# restored at relink time.
18500variables_saved_for_relink="$variables_saved_for_relink"
18501
18502# Whether libtool must link a program against all its dependency libraries.
18503link_all_deplibs=$link_all_deplibs_F77
18504
18505# Compile-time system search path for libraries
18506sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18507
18508# Run-time system search path for libraries
18509sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18510
18511# Fix the shell variable \$srcfile for the compiler.
18512fix_srcfile_path="$fix_srcfile_path_F77"
18513
18514# Set to yes if exported symbols are required.
18515always_export_symbols=$always_export_symbols_F77
18516
18517# The commands to list exported symbols.
18518export_symbols_cmds=$lt_export_symbols_cmds_F77
18519
18520# The commands to extract the exported symbol list from a shared archive.
18521extract_expsyms_cmds=$lt_extract_expsyms_cmds
18522
18523# Symbols that should not be listed in the preloaded symbols.
18524exclude_expsyms=$lt_exclude_expsyms_F77
18525
18526# Symbols that must always be exported.
18527include_expsyms=$lt_include_expsyms_F77
18528
18529# ### END LIBTOOL TAG CONFIG: $tagname
18530
18531__EOF__
18532
18533
18534else
18535  # If there is no Makefile yet, we rely on a make rule to execute
18536  # `config.status --recheck' to rerun these tests and create the
18537  # libtool script then.
18538  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18539  if test -f "$ltmain_in"; then
18540    test -f Makefile && make "$ltmain"
18541  fi
18542fi
18543
18544
18545ac_ext=c
18546ac_cpp='$CPP $CPPFLAGS'
18547ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18548ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18549ac_compiler_gnu=$ac_cv_c_compiler_gnu
18550
18551CC="$lt_save_CC"
18552
18553	else
18554	  tagname=""
18555	fi
18556	;;
18557
18558      GCJ)
18559	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
18560
18561
18562
18563# Source file extension for Java test sources.
18564ac_ext=java
18565
18566# Object file extension for compiled Java test sources.
18567objext=o
18568objext_GCJ=$objext
18569
18570# Code to be used in simple compile tests
18571lt_simple_compile_test_code="class foo {}\n"
18572
18573# Code to be used in simple link tests
18574lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
18575
18576# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18577
18578# If no C compiler was specified, use CC.
18579LTCC=${LTCC-"$CC"}
18580
18581# If no C compiler flags were specified, use CFLAGS.
18582LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18583
18584# Allow CC to be a program name with arguments.
18585compiler=$CC
18586
18587
18588# save warnings/boilerplate of simple test code
18589ac_outfile=conftest.$ac_objext
18590printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18591eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18592_lt_compiler_boilerplate=`cat conftest.err`
18593$rm conftest*
18594
18595ac_outfile=conftest.$ac_objext
18596printf "$lt_simple_link_test_code" >conftest.$ac_ext
18597eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18598_lt_linker_boilerplate=`cat conftest.err`
18599$rm conftest*
18600
18601
18602# Allow CC to be a program name with arguments.
18603lt_save_CC="$CC"
18604CC=${GCJ-"gcj"}
18605compiler=$CC
18606compiler_GCJ=$CC
18607for cc_temp in $compiler""; do
18608  case $cc_temp in
18609    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18610    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18611    \-*) ;;
18612    *) break;;
18613  esac
18614done
18615cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18616
18617
18618# GCJ did not exist at the time GCC didn't implicitly link libc in.
18619archive_cmds_need_lc_GCJ=no
18620
18621old_archive_cmds_GCJ=$old_archive_cmds
18622
18623## CAVEAT EMPTOR:
18624## There is no encapsulation within the following macros, do not change
18625## the running order or otherwise move them around unless you know exactly
18626## what you are doing...
18627
18628lt_prog_compiler_no_builtin_flag_GCJ=
18629
18630if test "$GCC" = yes; then
18631  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
18632
18633
18634echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
18635echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
18636if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
18637  echo $ECHO_N "(cached) $ECHO_C" >&6
18638else
18639  lt_cv_prog_compiler_rtti_exceptions=no
18640  ac_outfile=conftest.$ac_objext
18641   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18642   lt_compiler_flag="-fno-rtti -fno-exceptions"
18643   # Insert the option either (1) after the last *FLAGS variable, or
18644   # (2) before a word containing "conftest.", or (3) at the end.
18645   # Note that $ac_compile itself does not contain backslashes and begins
18646   # with a dollar sign (not a hyphen), so the echo should work correctly.
18647   # The option is referenced via a variable to avoid confusing sed.
18648   lt_compile=`echo "$ac_compile" | $SED \
18649   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18650   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18651   -e 's:$: $lt_compiler_flag:'`
18652   (eval echo "\"\$as_me:18652: $lt_compile\"" >&5)
18653   (eval "$lt_compile" 2>conftest.err)
18654   ac_status=$?
18655   cat conftest.err >&5
18656   echo "$as_me:18656: \$? = $ac_status" >&5
18657   if (exit $ac_status) && test -s "$ac_outfile"; then
18658     # The compiler can only warn and ignore the option if not recognized
18659     # So say no if there are warnings other than the usual output.
18660     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18661     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18662     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18663       lt_cv_prog_compiler_rtti_exceptions=yes
18664     fi
18665   fi
18666   $rm conftest*
18667
18668fi
18669echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18670echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
18671
18672if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18673    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18674else
18675    :
18676fi
18677
18678fi
18679
18680lt_prog_compiler_wl_GCJ=
18681lt_prog_compiler_pic_GCJ=
18682lt_prog_compiler_static_GCJ=
18683
18684echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18685echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18686
18687  if test "$GCC" = yes; then
18688    lt_prog_compiler_wl_GCJ='-Wl,'
18689    lt_prog_compiler_static_GCJ='-static'
18690
18691    case $host_os in
18692      aix*)
18693      # All AIX code is PIC.
18694      if test "$host_cpu" = ia64; then
18695	# AIX 5 now supports IA64 processor
18696	lt_prog_compiler_static_GCJ='-Bstatic'
18697      fi
18698      ;;
18699
18700    amigaos*)
18701      # FIXME: we need at least 68020 code to build shared libraries, but
18702      # adding the `-m68020' flag to GCC prevents building anything better,
18703      # like `-m68040'.
18704      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18705      ;;
18706
18707    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18708      # PIC is the default for these OSes.
18709      ;;
18710
18711    mingw* | pw32* | os2*)
18712      # This hack is so that the source file can tell whether it is being
18713      # built for inclusion in a dll (and should export symbols for example).
18714      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18715      ;;
18716
18717    darwin* | rhapsody*)
18718      # PIC is the default on this platform
18719      # Common symbols not allowed in MH_DYLIB files
18720      lt_prog_compiler_pic_GCJ='-fno-common'
18721      ;;
18722
18723    interix3*)
18724      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18725      # Instead, we relocate shared libraries at runtime.
18726      ;;
18727
18728    msdosdjgpp*)
18729      # Just because we use GCC doesn't mean we suddenly get shared libraries
18730      # on systems that don't support them.
18731      lt_prog_compiler_can_build_shared_GCJ=no
18732      enable_shared=no
18733      ;;
18734
18735    sysv4*MP*)
18736      if test -d /usr/nec; then
18737	lt_prog_compiler_pic_GCJ=-Kconform_pic
18738      fi
18739      ;;
18740
18741    hpux*)
18742      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18743      # not for PA HP-UX.
18744      case $host_cpu in
18745      hppa*64*|ia64*)
18746	# +Z the default
18747	;;
18748      *)
18749	lt_prog_compiler_pic_GCJ='-fPIC'
18750	;;
18751      esac
18752      ;;
18753
18754    *)
18755      lt_prog_compiler_pic_GCJ='-fPIC'
18756      ;;
18757    esac
18758  else
18759    # PORTME Check for flag to pass linker flags through the system compiler.
18760    case $host_os in
18761    aix*)
18762      lt_prog_compiler_wl_GCJ='-Wl,'
18763      if test "$host_cpu" = ia64; then
18764	# AIX 5 now supports IA64 processor
18765	lt_prog_compiler_static_GCJ='-Bstatic'
18766      else
18767	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18768      fi
18769      ;;
18770      darwin*)
18771        # PIC is the default on this platform
18772        # Common symbols not allowed in MH_DYLIB files
18773       case $cc_basename in
18774         xlc*)
18775         lt_prog_compiler_pic_GCJ='-qnocommon'
18776         lt_prog_compiler_wl_GCJ='-Wl,'
18777         ;;
18778       esac
18779       ;;
18780
18781    mingw* | pw32* | os2*)
18782      # This hack is so that the source file can tell whether it is being
18783      # built for inclusion in a dll (and should export symbols for example).
18784      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18785      ;;
18786
18787    hpux9* | hpux10* | hpux11*)
18788      lt_prog_compiler_wl_GCJ='-Wl,'
18789      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18790      # not for PA HP-UX.
18791      case $host_cpu in
18792      hppa*64*|ia64*)
18793	# +Z the default
18794	;;
18795      *)
18796	lt_prog_compiler_pic_GCJ='+Z'
18797	;;
18798      esac
18799      # Is there a better lt_prog_compiler_static that works with the bundled CC?
18800      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18801      ;;
18802
18803    irix5* | irix6* | nonstopux*)
18804      lt_prog_compiler_wl_GCJ='-Wl,'
18805      # PIC (with -KPIC) is the default.
18806      lt_prog_compiler_static_GCJ='-non_shared'
18807      ;;
18808
18809    newsos6)
18810      lt_prog_compiler_pic_GCJ='-KPIC'
18811      lt_prog_compiler_static_GCJ='-Bstatic'
18812      ;;
18813
18814    linux*)
18815      case $cc_basename in
18816      icc* | ecc*)
18817	lt_prog_compiler_wl_GCJ='-Wl,'
18818	lt_prog_compiler_pic_GCJ='-KPIC'
18819	lt_prog_compiler_static_GCJ='-static'
18820        ;;
18821      pgcc* | pgf77* | pgf90* | pgf95*)
18822        # Portland Group compilers (*not* the Pentium gcc compiler,
18823	# which looks to be a dead project)
18824	lt_prog_compiler_wl_GCJ='-Wl,'
18825	lt_prog_compiler_pic_GCJ='-fpic'
18826	lt_prog_compiler_static_GCJ='-Bstatic'
18827        ;;
18828      ccc*)
18829        lt_prog_compiler_wl_GCJ='-Wl,'
18830        # All Alpha code is PIC.
18831        lt_prog_compiler_static_GCJ='-non_shared'
18832        ;;
18833      esac
18834      ;;
18835
18836    osf3* | osf4* | osf5*)
18837      lt_prog_compiler_wl_GCJ='-Wl,'
18838      # All OSF/1 code is PIC.
18839      lt_prog_compiler_static_GCJ='-non_shared'
18840      ;;
18841
18842    solaris*)
18843      lt_prog_compiler_pic_GCJ='-KPIC'
18844      lt_prog_compiler_static_GCJ='-Bstatic'
18845      case $cc_basename in
18846      f77* | f90* | f95*)
18847	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18848      *)
18849	lt_prog_compiler_wl_GCJ='-Wl,';;
18850      esac
18851      ;;
18852
18853    sunos4*)
18854      lt_prog_compiler_wl_GCJ='-Qoption ld '
18855      lt_prog_compiler_pic_GCJ='-PIC'
18856      lt_prog_compiler_static_GCJ='-Bstatic'
18857      ;;
18858
18859    sysv4 | sysv4.2uw2* | sysv4.3*)
18860      lt_prog_compiler_wl_GCJ='-Wl,'
18861      lt_prog_compiler_pic_GCJ='-KPIC'
18862      lt_prog_compiler_static_GCJ='-Bstatic'
18863      ;;
18864
18865    sysv4*MP*)
18866      if test -d /usr/nec ;then
18867	lt_prog_compiler_pic_GCJ='-Kconform_pic'
18868	lt_prog_compiler_static_GCJ='-Bstatic'
18869      fi
18870      ;;
18871
18872    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18873      lt_prog_compiler_wl_GCJ='-Wl,'
18874      lt_prog_compiler_pic_GCJ='-KPIC'
18875      lt_prog_compiler_static_GCJ='-Bstatic'
18876      ;;
18877
18878    unicos*)
18879      lt_prog_compiler_wl_GCJ='-Wl,'
18880      lt_prog_compiler_can_build_shared_GCJ=no
18881      ;;
18882
18883    uts4*)
18884      lt_prog_compiler_pic_GCJ='-pic'
18885      lt_prog_compiler_static_GCJ='-Bstatic'
18886      ;;
18887
18888    *)
18889      lt_prog_compiler_can_build_shared_GCJ=no
18890      ;;
18891    esac
18892  fi
18893
18894echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18895echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
18896
18897#
18898# Check to make sure the PIC flag actually works.
18899#
18900if test -n "$lt_prog_compiler_pic_GCJ"; then
18901
18902echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18903echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
18904if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
18905  echo $ECHO_N "(cached) $ECHO_C" >&6
18906else
18907  lt_prog_compiler_pic_works_GCJ=no
18908  ac_outfile=conftest.$ac_objext
18909   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18910   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18911   # Insert the option either (1) after the last *FLAGS variable, or
18912   # (2) before a word containing "conftest.", or (3) at the end.
18913   # Note that $ac_compile itself does not contain backslashes and begins
18914   # with a dollar sign (not a hyphen), so the echo should work correctly.
18915   # The option is referenced via a variable to avoid confusing sed.
18916   lt_compile=`echo "$ac_compile" | $SED \
18917   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18918   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18919   -e 's:$: $lt_compiler_flag:'`
18920   (eval echo "\"\$as_me:18920: $lt_compile\"" >&5)
18921   (eval "$lt_compile" 2>conftest.err)
18922   ac_status=$?
18923   cat conftest.err >&5
18924   echo "$as_me:18924: \$? = $ac_status" >&5
18925   if (exit $ac_status) && test -s "$ac_outfile"; then
18926     # The compiler can only warn and ignore the option if not recognized
18927     # So say no if there are warnings other than the usual output.
18928     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18929     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18930     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18931       lt_prog_compiler_pic_works_GCJ=yes
18932     fi
18933   fi
18934   $rm conftest*
18935
18936fi
18937echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
18938echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
18939
18940if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
18941    case $lt_prog_compiler_pic_GCJ in
18942     "" | " "*) ;;
18943     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18944     esac
18945else
18946    lt_prog_compiler_pic_GCJ=
18947     lt_prog_compiler_can_build_shared_GCJ=no
18948fi
18949
18950fi
18951case $host_os in
18952  # For platforms which do not support PIC, -DPIC is meaningless:
18953  *djgpp*)
18954    lt_prog_compiler_pic_GCJ=
18955    ;;
18956  *)
18957    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18958    ;;
18959esac
18960
18961#
18962# Check to make sure the static flag actually works.
18963#
18964wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
18965echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18966echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
18967if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
18968  echo $ECHO_N "(cached) $ECHO_C" >&6
18969else
18970  lt_prog_compiler_static_works_GCJ=no
18971   save_LDFLAGS="$LDFLAGS"
18972   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18973   printf "$lt_simple_link_test_code" > conftest.$ac_ext
18974   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18975     # The linker can only warn and ignore the option if not recognized
18976     # So say no if there are warnings
18977     if test -s conftest.err; then
18978       # Append any errors to the config.log.
18979       cat conftest.err 1>&5
18980       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18981       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18982       if diff conftest.exp conftest.er2 >/dev/null; then
18983         lt_prog_compiler_static_works_GCJ=yes
18984       fi
18985     else
18986       lt_prog_compiler_static_works_GCJ=yes
18987     fi
18988   fi
18989   $rm conftest*
18990   LDFLAGS="$save_LDFLAGS"
18991
18992fi
18993echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
18994echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
18995
18996if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
18997    :
18998else
18999    lt_prog_compiler_static_GCJ=
19000fi
19001
19002
19003echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19004echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
19005if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
19006  echo $ECHO_N "(cached) $ECHO_C" >&6
19007else
19008  lt_cv_prog_compiler_c_o_GCJ=no
19009   $rm -r conftest 2>/dev/null
19010   mkdir conftest
19011   cd conftest
19012   mkdir out
19013   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19014
19015   lt_compiler_flag="-o out/conftest2.$ac_objext"
19016   # Insert the option either (1) after the last *FLAGS variable, or
19017   # (2) before a word containing "conftest.", or (3) at the end.
19018   # Note that $ac_compile itself does not contain backslashes and begins
19019   # with a dollar sign (not a hyphen), so the echo should work correctly.
19020   lt_compile=`echo "$ac_compile" | $SED \
19021   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19022   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19023   -e 's:$: $lt_compiler_flag:'`
19024   (eval echo "\"\$as_me:19024: $lt_compile\"" >&5)
19025   (eval "$lt_compile" 2>out/conftest.err)
19026   ac_status=$?
19027   cat out/conftest.err >&5
19028   echo "$as_me:19028: \$? = $ac_status" >&5
19029   if (exit $ac_status) && test -s out/conftest2.$ac_objext
19030   then
19031     # The compiler can only warn and ignore the option if not recognized
19032     # So say no if there are warnings
19033     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19034     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19035     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19036       lt_cv_prog_compiler_c_o_GCJ=yes
19037     fi
19038   fi
19039   chmod u+w . 2>&5
19040   $rm conftest*
19041   # SGI C++ compiler will create directory out/ii_files/ for
19042   # template instantiation
19043   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19044   $rm out/* && rmdir out
19045   cd ..
19046   rmdir conftest
19047   $rm conftest*
19048
19049fi
19050echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
19051echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
19052
19053
19054hard_links="nottested"
19055if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
19056  # do not overwrite the value of need_locks provided by the user
19057  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19058echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19059  hard_links=yes
19060  $rm conftest*
19061  ln conftest.a conftest.b 2>/dev/null && hard_links=no
19062  touch conftest.a
19063  ln conftest.a conftest.b 2>&5 || hard_links=no
19064  ln conftest.a conftest.b 2>/dev/null && hard_links=no
19065  echo "$as_me:$LINENO: result: $hard_links" >&5
19066echo "${ECHO_T}$hard_links" >&6
19067  if test "$hard_links" = no; then
19068    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19069echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19070    need_locks=warn
19071  fi
19072else
19073  need_locks=no
19074fi
19075
19076echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19077echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19078
19079  runpath_var=
19080  allow_undefined_flag_GCJ=
19081  enable_shared_with_static_runtimes_GCJ=no
19082  archive_cmds_GCJ=
19083  archive_expsym_cmds_GCJ=
19084  old_archive_From_new_cmds_GCJ=
19085  old_archive_from_expsyms_cmds_GCJ=
19086  export_dynamic_flag_spec_GCJ=
19087  whole_archive_flag_spec_GCJ=
19088  thread_safe_flag_spec_GCJ=
19089  hardcode_libdir_flag_spec_GCJ=
19090  hardcode_libdir_flag_spec_ld_GCJ=
19091  hardcode_libdir_separator_GCJ=
19092  hardcode_direct_GCJ=no
19093  hardcode_minus_L_GCJ=no
19094  hardcode_shlibpath_var_GCJ=unsupported
19095  link_all_deplibs_GCJ=unknown
19096  hardcode_automatic_GCJ=no
19097  module_cmds_GCJ=
19098  module_expsym_cmds_GCJ=
19099  always_export_symbols_GCJ=no
19100  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19101  # include_expsyms should be a list of space-separated symbols to be *always*
19102  # included in the symbol list
19103  include_expsyms_GCJ=
19104  # exclude_expsyms can be an extended regexp of symbols to exclude
19105  # it will be wrapped by ` (' and `)$', so one must not match beginning or
19106  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19107  # as well as any symbol that contains `d'.
19108  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
19109  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19110  # platforms (ab)use it in PIC code, but their linkers get confused if
19111  # the symbol is explicitly referenced.  Since portable code cannot
19112  # rely on this symbol name, it's probably fine to never include it in
19113  # preloaded symbol tables.
19114  extract_expsyms_cmds=
19115  # Just being paranoid about ensuring that cc_basename is set.
19116  for cc_temp in $compiler""; do
19117  case $cc_temp in
19118    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19119    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19120    \-*) ;;
19121    *) break;;
19122  esac
19123done
19124cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19125
19126  case $host_os in
19127  cygwin* | mingw* | pw32*)
19128    # FIXME: the MSVC++ port hasn't been tested in a loooong time
19129    # When not using gcc, we currently assume that we are using
19130    # Microsoft Visual C++.
19131    if test "$GCC" != yes; then
19132      with_gnu_ld=no
19133    fi
19134    ;;
19135  interix*)
19136    # we just hope/assume this is gcc and not c89 (= MSVC++)
19137    with_gnu_ld=yes
19138    ;;
19139  openbsd*)
19140    with_gnu_ld=no
19141    ;;
19142  esac
19143
19144  ld_shlibs_GCJ=yes
19145  if test "$with_gnu_ld" = yes; then
19146    # If archive_cmds runs LD, not CC, wlarc should be empty
19147    wlarc='${wl}'
19148
19149    # Set some defaults for GNU ld with shared library support. These
19150    # are reset later if shared libraries are not supported. Putting them
19151    # here allows them to be overridden if necessary.
19152    runpath_var=LD_RUN_PATH
19153    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
19154    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
19155    # ancient GNU ld didn't support --whole-archive et. al.
19156    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19157	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19158      else
19159  	whole_archive_flag_spec_GCJ=
19160    fi
19161    supports_anon_versioning=no
19162    case `$LD -v 2>/dev/null` in
19163      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19164      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19165      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19166      *\ 2.11.*) ;; # other 2.11 versions
19167      *) supports_anon_versioning=yes ;;
19168    esac
19169
19170    # See if GNU ld supports shared libraries.
19171    case $host_os in
19172    aix3* | aix4* | aix5*)
19173      # On AIX/PPC, the GNU linker is very broken
19174      if test "$host_cpu" != ia64; then
19175	ld_shlibs_GCJ=no
19176	cat <<EOF 1>&2
19177
19178*** Warning: the GNU linker, at least up to release 2.9.1, is reported
19179*** to be unable to reliably create shared libraries on AIX.
19180*** Therefore, libtool is disabling shared libraries support.  If you
19181*** really care for shared libraries, you may want to modify your PATH
19182*** so that a non-GNU linker is found, and then restart.
19183
19184EOF
19185      fi
19186      ;;
19187
19188    amigaos*)
19189      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)'
19190      hardcode_libdir_flag_spec_GCJ='-L$libdir'
19191      hardcode_minus_L_GCJ=yes
19192
19193      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19194      # that the semantics of dynamic libraries on AmigaOS, at least up
19195      # to version 4, is to share data among multiple programs linked
19196      # with the same dynamic library.  Since this doesn't match the
19197      # behavior of shared libraries on other platforms, we can't use
19198      # them.
19199      ld_shlibs_GCJ=no
19200      ;;
19201
19202    beos*)
19203      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19204	allow_undefined_flag_GCJ=unsupported
19205	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19206	# support --undefined.  This deserves some investigation.  FIXME
19207	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19208      else
19209	ld_shlibs_GCJ=no
19210      fi
19211      ;;
19212
19213    cygwin* | mingw* | pw32*)
19214      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
19215      # as there is no search path for DLLs.
19216      hardcode_libdir_flag_spec_GCJ='-L$libdir'
19217      allow_undefined_flag_GCJ=unsupported
19218      always_export_symbols_GCJ=no
19219      enable_shared_with_static_runtimes_GCJ=yes
19220      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19221
19222      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19223        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19224	# If the export-symbols file already is a .def file (1st line
19225	# is EXPORTS), use it as is; otherwise, prepend...
19226	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19227	  cp $export_symbols $output_objdir/$soname.def;
19228	else
19229	  echo EXPORTS > $output_objdir/$soname.def;
19230	  cat $export_symbols >> $output_objdir/$soname.def;
19231	fi~
19232	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19233      else
19234	ld_shlibs_GCJ=no
19235      fi
19236      ;;
19237
19238    interix3*)
19239      hardcode_direct_GCJ=no
19240      hardcode_shlibpath_var_GCJ=no
19241      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19242      export_dynamic_flag_spec_GCJ='${wl}-E'
19243      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19244      # Instead, shared libraries are loaded at an image base (0x10000000 by
19245      # default) and relocated if they conflict, which is a slow very memory
19246      # consuming and fragmenting process.  To avoid this, we pick a random,
19247      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19248      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
19249      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'
19250      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'
19251      ;;
19252
19253    linux*)
19254      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19255	tmp_addflag=
19256	case $cc_basename,$host_cpu in
19257	pgcc*)				# Portland Group C compiler
19258	  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'
19259	  tmp_addflag=' $pic_flag'
19260	  ;;
19261	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
19262	  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'
19263	  tmp_addflag=' $pic_flag -Mnomain' ;;
19264	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
19265	  tmp_addflag=' -i_dynamic' ;;
19266	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
19267	  tmp_addflag=' -i_dynamic -nofor_main' ;;
19268	ifc* | ifort*)			# Intel Fortran compiler
19269	  tmp_addflag=' -nofor_main' ;;
19270	esac
19271	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19272
19273	if test $supports_anon_versioning = yes; then
19274	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
19275  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19276  $echo "local: *; };" >> $output_objdir/$libname.ver~
19277	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19278	fi
19279      else
19280	ld_shlibs_GCJ=no
19281      fi
19282      ;;
19283
19284    netbsd*)
19285      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19286	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19287	wlarc=
19288      else
19289	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19290	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19291      fi
19292      ;;
19293
19294    solaris*)
19295      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19296	ld_shlibs_GCJ=no
19297	cat <<EOF 1>&2
19298
19299*** Warning: The releases 2.8.* of the GNU linker cannot reliably
19300*** create shared libraries on Solaris systems.  Therefore, libtool
19301*** is disabling shared libraries support.  We urge you to upgrade GNU
19302*** binutils to release 2.9.1 or newer.  Another option is to modify
19303*** your PATH or compiler configuration so that the native linker is
19304*** used, and then restart.
19305
19306EOF
19307      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19308	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19309	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19310      else
19311	ld_shlibs_GCJ=no
19312      fi
19313      ;;
19314
19315    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
19316      case `$LD -v 2>&1` in
19317        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
19318	ld_shlibs_GCJ=no
19319	cat <<_LT_EOF 1>&2
19320
19321*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
19322*** reliably create shared libraries on SCO systems.  Therefore, libtool
19323*** is disabling shared libraries support.  We urge you to upgrade GNU
19324*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
19325*** your PATH or compiler configuration so that the native linker is
19326*** used, and then restart.
19327
19328_LT_EOF
19329	;;
19330	*)
19331	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19332	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
19333	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
19334	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
19335	  else
19336	    ld_shlibs_GCJ=no
19337	  fi
19338	;;
19339      esac
19340      ;;
19341
19342    sunos4*)
19343      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19344      wlarc=
19345      hardcode_direct_GCJ=yes
19346      hardcode_shlibpath_var_GCJ=no
19347      ;;
19348
19349    *)
19350      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19351	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19352	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19353      else
19354	ld_shlibs_GCJ=no
19355      fi
19356      ;;
19357    esac
19358
19359    if test "$ld_shlibs_GCJ" = no; then
19360      runpath_var=
19361      hardcode_libdir_flag_spec_GCJ=
19362      export_dynamic_flag_spec_GCJ=
19363      whole_archive_flag_spec_GCJ=
19364    fi
19365  else
19366    # PORTME fill in a description of your system's linker (not GNU ld)
19367    case $host_os in
19368    aix3*)
19369      allow_undefined_flag_GCJ=unsupported
19370      always_export_symbols_GCJ=yes
19371      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'
19372      # Note: this linker hardcodes the directories in LIBPATH if there
19373      # are no directories specified by -L.
19374      hardcode_minus_L_GCJ=yes
19375      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
19376	# Neither direct hardcoding nor static linking is supported with a
19377	# broken collect2.
19378	hardcode_direct_GCJ=unsupported
19379      fi
19380      ;;
19381
19382    aix4* | aix5*)
19383      if test "$host_cpu" = ia64; then
19384	# On IA64, the linker does run time linking by default, so we don't
19385	# have to do anything special.
19386	aix_use_runtimelinking=no
19387	exp_sym_flag='-Bexport'
19388	no_entry_flag=""
19389      else
19390	# If we're using GNU nm, then we don't want the "-C" option.
19391	# -C means demangle to AIX nm, but means don't demangle with GNU nm
19392	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19393	  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'
19394	else
19395	  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'
19396	fi
19397	aix_use_runtimelinking=no
19398
19399	# Test if we are trying to use run time linking or normal
19400	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
19401	# need to do runtime linking.
19402	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19403	  for ld_flag in $LDFLAGS; do
19404  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19405  	    aix_use_runtimelinking=yes
19406  	    break
19407  	  fi
19408	  done
19409	  ;;
19410	esac
19411
19412	exp_sym_flag='-bexport'
19413	no_entry_flag='-bnoentry'
19414      fi
19415
19416      # When large executables or shared objects are built, AIX ld can
19417      # have problems creating the table of contents.  If linking a library
19418      # or program results in "error TOC overflow" add -mminimal-toc to
19419      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
19420      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19421
19422      archive_cmds_GCJ=''
19423      hardcode_direct_GCJ=yes
19424      hardcode_libdir_separator_GCJ=':'
19425      link_all_deplibs_GCJ=yes
19426
19427      if test "$GCC" = yes; then
19428	case $host_os in aix4.[012]|aix4.[012].*)
19429	# We only want to do this on AIX 4.2 and lower, the check
19430	# below for broken collect2 doesn't work under 4.3+
19431	  collect2name=`${CC} -print-prog-name=collect2`
19432	  if test -f "$collect2name" && \
19433  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
19434	  then
19435  	  # We have reworked collect2
19436  	  hardcode_direct_GCJ=yes
19437	  else
19438  	  # We have old collect2
19439  	  hardcode_direct_GCJ=unsupported
19440  	  # It fails to find uninstalled libraries when the uninstalled
19441  	  # path is not listed in the libpath.  Setting hardcode_minus_L
19442  	  # to unsupported forces relinking
19443  	  hardcode_minus_L_GCJ=yes
19444  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
19445  	  hardcode_libdir_separator_GCJ=
19446	  fi
19447	  ;;
19448	esac
19449	shared_flag='-shared'
19450	if test "$aix_use_runtimelinking" = yes; then
19451	  shared_flag="$shared_flag "'${wl}-G'
19452	fi
19453      else
19454	# not using gcc
19455	if test "$host_cpu" = ia64; then
19456  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19457  	# chokes on -Wl,-G. The following line is correct:
19458	  shared_flag='-G'
19459	else
19460	  if test "$aix_use_runtimelinking" = yes; then
19461	    shared_flag='${wl}-G'
19462	  else
19463	    shared_flag='${wl}-bM:SRE'
19464	  fi
19465	fi
19466      fi
19467
19468      # It seems that -bexpall does not export symbols beginning with
19469      # underscore (_), so it is better to generate a list of symbols to export.
19470      always_export_symbols_GCJ=yes
19471      if test "$aix_use_runtimelinking" = yes; then
19472	# Warning - without using the other runtime loading flags (-brtl),
19473	# -berok will link without error, but may produce a broken library.
19474	allow_undefined_flag_GCJ='-berok'
19475       # Determine the default libpath from the value encoded in an empty executable.
19476       cat >conftest.$ac_ext <<_ACEOF
19477/* confdefs.h.  */
19478_ACEOF
19479cat confdefs.h >>conftest.$ac_ext
19480cat >>conftest.$ac_ext <<_ACEOF
19481/* end confdefs.h.  */
19482
19483#ifdef F77_DUMMY_MAIN
19484
19485#  ifdef __cplusplus
19486     extern "C"
19487#  endif
19488   int F77_DUMMY_MAIN() { return 1; }
19489
19490#endif
19491int
19492main ()
19493{
19494
19495  ;
19496  return 0;
19497}
19498_ACEOF
19499rm -f conftest.$ac_objext conftest$ac_exeext
19500if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19501  (eval $ac_link) 2>conftest.er1
19502  ac_status=$?
19503  grep -v '^ *+' conftest.er1 >conftest.err
19504  rm -f conftest.er1
19505  cat conftest.err >&5
19506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19507  (exit $ac_status); } &&
19508	 { ac_try='test -z "$ac_c_werror_flag"
19509			 || test ! -s conftest.err'
19510  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19511  (eval $ac_try) 2>&5
19512  ac_status=$?
19513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19514  (exit $ac_status); }; } &&
19515	 { ac_try='test -s conftest$ac_exeext'
19516  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19517  (eval $ac_try) 2>&5
19518  ac_status=$?
19519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19520  (exit $ac_status); }; }; then
19521
19522aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19523}'`
19524# Check for a 64-bit object if we didn't find anything.
19525if 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; }
19526}'`; fi
19527else
19528  echo "$as_me: failed program was:" >&5
19529sed 's/^/| /' conftest.$ac_ext >&5
19530
19531fi
19532rm -f conftest.err conftest.$ac_objext \
19533      conftest$ac_exeext conftest.$ac_ext
19534if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19535
19536       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19537	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"
19538       else
19539	if test "$host_cpu" = ia64; then
19540	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
19541	  allow_undefined_flag_GCJ="-z nodefs"
19542	  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"
19543	else
19544	 # Determine the default libpath from the value encoded in an empty executable.
19545	 cat >conftest.$ac_ext <<_ACEOF
19546/* confdefs.h.  */
19547_ACEOF
19548cat confdefs.h >>conftest.$ac_ext
19549cat >>conftest.$ac_ext <<_ACEOF
19550/* end confdefs.h.  */
19551
19552#ifdef F77_DUMMY_MAIN
19553
19554#  ifdef __cplusplus
19555     extern "C"
19556#  endif
19557   int F77_DUMMY_MAIN() { return 1; }
19558
19559#endif
19560int
19561main ()
19562{
19563
19564  ;
19565  return 0;
19566}
19567_ACEOF
19568rm -f conftest.$ac_objext conftest$ac_exeext
19569if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19570  (eval $ac_link) 2>conftest.er1
19571  ac_status=$?
19572  grep -v '^ *+' conftest.er1 >conftest.err
19573  rm -f conftest.er1
19574  cat conftest.err >&5
19575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19576  (exit $ac_status); } &&
19577	 { ac_try='test -z "$ac_c_werror_flag"
19578			 || test ! -s conftest.err'
19579  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19580  (eval $ac_try) 2>&5
19581  ac_status=$?
19582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19583  (exit $ac_status); }; } &&
19584	 { ac_try='test -s conftest$ac_exeext'
19585  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19586  (eval $ac_try) 2>&5
19587  ac_status=$?
19588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19589  (exit $ac_status); }; }; then
19590
19591aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19592}'`
19593# Check for a 64-bit object if we didn't find anything.
19594if 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; }
19595}'`; fi
19596else
19597  echo "$as_me: failed program was:" >&5
19598sed 's/^/| /' conftest.$ac_ext >&5
19599
19600fi
19601rm -f conftest.err conftest.$ac_objext \
19602      conftest$ac_exeext conftest.$ac_ext
19603if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19604
19605	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19606	  # Warning - without using the other run time loading flags,
19607	  # -berok will link without error, but may produce a broken library.
19608	  no_undefined_flag_GCJ=' ${wl}-bernotok'
19609	  allow_undefined_flag_GCJ=' ${wl}-berok'
19610	  # Exported symbols can be pulled into shared objects from archives
19611	  whole_archive_flag_spec_GCJ='$convenience'
19612	  archive_cmds_need_lc_GCJ=yes
19613	  # This is similar to how AIX traditionally builds its shared libraries.
19614	  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'
19615	fi
19616      fi
19617      ;;
19618
19619    amigaos*)
19620      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)'
19621      hardcode_libdir_flag_spec_GCJ='-L$libdir'
19622      hardcode_minus_L_GCJ=yes
19623      # see comment about different semantics on the GNU ld section
19624      ld_shlibs_GCJ=no
19625      ;;
19626
19627    bsdi[45]*)
19628      export_dynamic_flag_spec_GCJ=-rdynamic
19629      ;;
19630
19631    cygwin* | mingw* | pw32*)
19632      # When not using gcc, we currently assume that we are using
19633      # Microsoft Visual C++.
19634      # hardcode_libdir_flag_spec is actually meaningless, as there is
19635      # no search path for DLLs.
19636      hardcode_libdir_flag_spec_GCJ=' '
19637      allow_undefined_flag_GCJ=unsupported
19638      # Tell ltmain to make .lib files, not .a files.
19639      libext=lib
19640      # Tell ltmain to make .dll files, not .so files.
19641      shrext_cmds=".dll"
19642      # FIXME: Setting linknames here is a bad hack.
19643      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19644      # The linker will automatically build a .lib file if we build a DLL.
19645      old_archive_From_new_cmds_GCJ='true'
19646      # FIXME: Should let the user specify the lib program.
19647      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
19648      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
19649      enable_shared_with_static_runtimes_GCJ=yes
19650      ;;
19651
19652    darwin* | rhapsody*)
19653      case $host_os in
19654        rhapsody* | darwin1.[012])
19655         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
19656         ;;
19657       *) # Darwin 1.3 on
19658         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19659           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19660         else
19661           case ${MACOSX_DEPLOYMENT_TARGET} in
19662             10.[012])
19663               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19664               ;;
19665             10.*)
19666               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
19667               ;;
19668           esac
19669         fi
19670         ;;
19671      esac
19672      archive_cmds_need_lc_GCJ=no
19673      hardcode_direct_GCJ=no
19674      hardcode_automatic_GCJ=yes
19675      hardcode_shlibpath_var_GCJ=unsupported
19676      whole_archive_flag_spec_GCJ=''
19677      link_all_deplibs_GCJ=yes
19678    if test "$GCC" = yes ; then
19679    	output_verbose_link_cmd='echo'
19680        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19681      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19682      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19683      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}'
19684      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}'
19685    else
19686      case $cc_basename in
19687        xlc*)
19688         output_verbose_link_cmd='echo'
19689         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19690         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19691          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19692         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}'
19693          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}'
19694          ;;
19695       *)
19696         ld_shlibs_GCJ=no
19697          ;;
19698      esac
19699    fi
19700      ;;
19701
19702    dgux*)
19703      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19704      hardcode_libdir_flag_spec_GCJ='-L$libdir'
19705      hardcode_shlibpath_var_GCJ=no
19706      ;;
19707
19708    freebsd1*)
19709      ld_shlibs_GCJ=no
19710      ;;
19711
19712    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19713    # support.  Future versions do this automatically, but an explicit c++rt0.o
19714    # does not break anything, and helps significantly (at the cost of a little
19715    # extra space).
19716    freebsd2.2*)
19717      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19718      hardcode_libdir_flag_spec_GCJ='-R$libdir'
19719      hardcode_direct_GCJ=yes
19720      hardcode_shlibpath_var_GCJ=no
19721      ;;
19722
19723    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19724    freebsd2*)
19725      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19726      hardcode_direct_GCJ=yes
19727      hardcode_minus_L_GCJ=yes
19728      hardcode_shlibpath_var_GCJ=no
19729      ;;
19730
19731    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19732    freebsd* | kfreebsd*-gnu | dragonfly*)
19733      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19734      hardcode_libdir_flag_spec_GCJ='-R$libdir'
19735      hardcode_direct_GCJ=yes
19736      hardcode_shlibpath_var_GCJ=no
19737      ;;
19738
19739    hpux9*)
19740      if test "$GCC" = yes; then
19741	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'
19742      else
19743	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'
19744      fi
19745      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19746      hardcode_libdir_separator_GCJ=:
19747      hardcode_direct_GCJ=yes
19748
19749      # hardcode_minus_L: Not really in the search PATH,
19750      # but as the default location of the library.
19751      hardcode_minus_L_GCJ=yes
19752      export_dynamic_flag_spec_GCJ='${wl}-E'
19753      ;;
19754
19755    hpux10*)
19756      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19757	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19758      else
19759	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19760      fi
19761      if test "$with_gnu_ld" = no; then
19762	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19763	hardcode_libdir_separator_GCJ=:
19764
19765	hardcode_direct_GCJ=yes
19766	export_dynamic_flag_spec_GCJ='${wl}-E'
19767
19768	# hardcode_minus_L: Not really in the search PATH,
19769	# but as the default location of the library.
19770	hardcode_minus_L_GCJ=yes
19771      fi
19772      ;;
19773
19774    hpux11*)
19775      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19776	case $host_cpu in
19777	hppa*64*)
19778	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19779	  ;;
19780	ia64*)
19781	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19782	  ;;
19783	*)
19784	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19785	  ;;
19786	esac
19787      else
19788	case $host_cpu in
19789	hppa*64*)
19790	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19791	  ;;
19792	ia64*)
19793	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19794	  ;;
19795	*)
19796	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19797	  ;;
19798	esac
19799      fi
19800      if test "$with_gnu_ld" = no; then
19801	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19802	hardcode_libdir_separator_GCJ=:
19803
19804	case $host_cpu in
19805	hppa*64*|ia64*)
19806	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19807	  hardcode_direct_GCJ=no
19808	  hardcode_shlibpath_var_GCJ=no
19809	  ;;
19810	*)
19811	  hardcode_direct_GCJ=yes
19812	  export_dynamic_flag_spec_GCJ='${wl}-E'
19813
19814	  # hardcode_minus_L: Not really in the search PATH,
19815	  # but as the default location of the library.
19816	  hardcode_minus_L_GCJ=yes
19817	  ;;
19818	esac
19819      fi
19820      ;;
19821
19822    irix5* | irix6* | nonstopux*)
19823      if test "$GCC" = yes; then
19824	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'
19825      else
19826	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'
19827	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19828      fi
19829      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19830      hardcode_libdir_separator_GCJ=:
19831      link_all_deplibs_GCJ=yes
19832      ;;
19833
19834    netbsd*)
19835      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19836	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19837      else
19838	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19839      fi
19840      hardcode_libdir_flag_spec_GCJ='-R$libdir'
19841      hardcode_direct_GCJ=yes
19842      hardcode_shlibpath_var_GCJ=no
19843      ;;
19844
19845    newsos6)
19846      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19847      hardcode_direct_GCJ=yes
19848      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19849      hardcode_libdir_separator_GCJ=:
19850      hardcode_shlibpath_var_GCJ=no
19851      ;;
19852
19853    openbsd*)
19854      hardcode_direct_GCJ=yes
19855      hardcode_shlibpath_var_GCJ=no
19856      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19857	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19858	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19859	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19860	export_dynamic_flag_spec_GCJ='${wl}-E'
19861      else
19862       case $host_os in
19863	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19864	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19865	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
19866	   ;;
19867	 *)
19868	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19869	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19870	   ;;
19871       esac
19872      fi
19873      ;;
19874
19875    os2*)
19876      hardcode_libdir_flag_spec_GCJ='-L$libdir'
19877      hardcode_minus_L_GCJ=yes
19878      allow_undefined_flag_GCJ=unsupported
19879      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'
19880      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19881      ;;
19882
19883    osf3*)
19884      if test "$GCC" = yes; then
19885	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19886	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'
19887      else
19888	allow_undefined_flag_GCJ=' -expect_unresolved \*'
19889	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'
19890      fi
19891      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19892      hardcode_libdir_separator_GCJ=:
19893      ;;
19894
19895    osf4* | osf5*)	# as osf3* with the addition of -msym flag
19896      if test "$GCC" = yes; then
19897	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19898	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'
19899	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19900      else
19901	allow_undefined_flag_GCJ=' -expect_unresolved \*'
19902	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'
19903	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~
19904	$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'
19905
19906	# Both c and cxx compiler support -rpath directly
19907	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19908      fi
19909      hardcode_libdir_separator_GCJ=:
19910      ;;
19911
19912    solaris*)
19913      no_undefined_flag_GCJ=' -z text'
19914      if test "$GCC" = yes; then
19915	wlarc='${wl}'
19916	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19917	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19918	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19919      else
19920	wlarc=''
19921	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19922	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19923  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19924      fi
19925      hardcode_libdir_flag_spec_GCJ='-R$libdir'
19926      hardcode_shlibpath_var_GCJ=no
19927      case $host_os in
19928      solaris2.[0-5] | solaris2.[0-5].*) ;;
19929      *)
19930 	# The compiler driver will combine linker options so we
19931 	# cannot just pass the convience library names through
19932 	# without $wl, iff we do not link with $LD.
19933 	# Luckily, gcc supports the same syntax we need for Sun Studio.
19934 	# Supported since Solaris 2.6 (maybe 2.5.1?)
19935 	case $wlarc in
19936 	'')
19937 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
19938 	*)
19939 	  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' ;;
19940 	esac ;;
19941      esac
19942      link_all_deplibs_GCJ=yes
19943      ;;
19944
19945    sunos4*)
19946      if test "x$host_vendor" = xsequent; then
19947	# Use $CC to link under sequent, because it throws in some extra .o
19948	# files that make .init and .fini sections work.
19949	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19950      else
19951	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19952      fi
19953      hardcode_libdir_flag_spec_GCJ='-L$libdir'
19954      hardcode_direct_GCJ=yes
19955      hardcode_minus_L_GCJ=yes
19956      hardcode_shlibpath_var_GCJ=no
19957      ;;
19958
19959    sysv4)
19960      case $host_vendor in
19961	sni)
19962	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19963	  hardcode_direct_GCJ=yes # is this really true???
19964	;;
19965	siemens)
19966	  ## LD is ld it makes a PLAMLIB
19967	  ## CC just makes a GrossModule.
19968	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19969	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19970	  hardcode_direct_GCJ=no
19971        ;;
19972	motorola)
19973	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19974	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19975	;;
19976      esac
19977      runpath_var='LD_RUN_PATH'
19978      hardcode_shlibpath_var_GCJ=no
19979      ;;
19980
19981    sysv4.3*)
19982      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19983      hardcode_shlibpath_var_GCJ=no
19984      export_dynamic_flag_spec_GCJ='-Bexport'
19985      ;;
19986
19987    sysv4*MP*)
19988      if test -d /usr/nec; then
19989	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19990	hardcode_shlibpath_var_GCJ=no
19991	runpath_var=LD_RUN_PATH
19992	hardcode_runpath_var=yes
19993	ld_shlibs_GCJ=yes
19994      fi
19995      ;;
19996
19997    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
19998      no_undefined_flag_GCJ='${wl}-z,text'
19999      archive_cmds_need_lc_GCJ=no
20000      hardcode_shlibpath_var_GCJ=no
20001      runpath_var='LD_RUN_PATH'
20002
20003      if test "$GCC" = yes; then
20004	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20005	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20006      else
20007	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20008	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20009      fi
20010      ;;
20011
20012    sysv5* | sco3.2v5* | sco5v6*)
20013      # Note: We can NOT use -z defs as we might desire, because we do not
20014      # link with -lc, and that would cause any symbols used from libc to
20015      # always be unresolved, which means just about no library would
20016      # ever link correctly.  If we're not using GNU ld we use -z text
20017      # though, which does catch some bad symbols but isn't as heavy-handed
20018      # as -z defs.
20019      no_undefined_flag_GCJ='${wl}-z,text'
20020      allow_undefined_flag_GCJ='${wl}-z,nodefs'
20021      archive_cmds_need_lc_GCJ=no
20022      hardcode_shlibpath_var_GCJ=no
20023      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
20024      hardcode_libdir_separator_GCJ=':'
20025      link_all_deplibs_GCJ=yes
20026      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
20027      runpath_var='LD_RUN_PATH'
20028
20029      if test "$GCC" = yes; then
20030	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20031	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20032      else
20033	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20034	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20035      fi
20036      ;;
20037
20038    uts4*)
20039      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20040      hardcode_libdir_flag_spec_GCJ='-L$libdir'
20041      hardcode_shlibpath_var_GCJ=no
20042      ;;
20043
20044    *)
20045      ld_shlibs_GCJ=no
20046      ;;
20047    esac
20048  fi
20049
20050echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
20051echo "${ECHO_T}$ld_shlibs_GCJ" >&6
20052test "$ld_shlibs_GCJ" = no && can_build_shared=no
20053
20054#
20055# Do we need to explicitly link libc?
20056#
20057case "x$archive_cmds_need_lc_GCJ" in
20058x|xyes)
20059  # Assume -lc should be added
20060  archive_cmds_need_lc_GCJ=yes
20061
20062  if test "$enable_shared" = yes && test "$GCC" = yes; then
20063    case $archive_cmds_GCJ in
20064    *'~'*)
20065      # FIXME: we may have to deal with multi-command sequences.
20066      ;;
20067    '$CC '*)
20068      # Test whether the compiler implicitly links with -lc since on some
20069      # systems, -lgcc has to come before -lc. If gcc already passes -lc
20070      # to ld, don't add -lc before -lgcc.
20071      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20072echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
20073      $rm conftest*
20074      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20075
20076      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20077  (eval $ac_compile) 2>&5
20078  ac_status=$?
20079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20080  (exit $ac_status); } 2>conftest.err; then
20081        soname=conftest
20082        lib=conftest
20083        libobjs=conftest.$ac_objext
20084        deplibs=
20085        wl=$lt_prog_compiler_wl_GCJ
20086	pic_flag=$lt_prog_compiler_pic_GCJ
20087        compiler_flags=-v
20088        linker_flags=-v
20089        verstring=
20090        output_objdir=.
20091        libname=conftest
20092        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
20093        allow_undefined_flag_GCJ=
20094        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20095  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20096  ac_status=$?
20097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20098  (exit $ac_status); }
20099        then
20100	  archive_cmds_need_lc_GCJ=no
20101        else
20102	  archive_cmds_need_lc_GCJ=yes
20103        fi
20104        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
20105      else
20106        cat conftest.err 1>&5
20107      fi
20108      $rm conftest*
20109      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
20110echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
20111      ;;
20112    esac
20113  fi
20114  ;;
20115esac
20116
20117echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20118echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
20119library_names_spec=
20120libname_spec='lib$name'
20121soname_spec=
20122shrext_cmds=".so"
20123postinstall_cmds=
20124postuninstall_cmds=
20125finish_cmds=
20126finish_eval=
20127shlibpath_var=
20128shlibpath_overrides_runpath=unknown
20129version_type=none
20130dynamic_linker="$host_os ld.so"
20131sys_lib_dlsearch_path_spec="/lib /usr/lib"
20132if test "$GCC" = yes; then
20133  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20134  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20135    # if the path contains ";" then we assume it to be the separator
20136    # otherwise default to the standard path separator (i.e. ":") - it is
20137    # assumed that no part of a normal pathname contains ";" but that should
20138    # okay in the real world where ";" in dirpaths is itself problematic.
20139    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20140  else
20141    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20142  fi
20143else
20144  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20145fi
20146need_lib_prefix=unknown
20147hardcode_into_libs=no
20148
20149# when you set need_version to no, make sure it does not cause -set_version
20150# flags to be left without arguments
20151need_version=unknown
20152
20153case $host_os in
20154aix3*)
20155  version_type=linux
20156  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20157  shlibpath_var=LIBPATH
20158
20159  # AIX 3 has no versioning support, so we append a major version to the name.
20160  soname_spec='${libname}${release}${shared_ext}$major'
20161  ;;
20162
20163aix4* | aix5*)
20164  version_type=linux
20165  need_lib_prefix=no
20166  need_version=no
20167  hardcode_into_libs=yes
20168  if test "$host_cpu" = ia64; then
20169    # AIX 5 supports IA64
20170    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20171    shlibpath_var=LD_LIBRARY_PATH
20172  else
20173    # With GCC up to 2.95.x, collect2 would create an import file
20174    # for dependence libraries.  The import file would start with
20175    # the line `#! .'.  This would cause the generated library to
20176    # depend on `.', always an invalid library.  This was fixed in
20177    # development snapshots of GCC prior to 3.0.
20178    case $host_os in
20179      aix4 | aix4.[01] | aix4.[01].*)
20180      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20181	   echo ' yes '
20182	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20183	:
20184      else
20185	can_build_shared=no
20186      fi
20187      ;;
20188    esac
20189    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20190    # soname into executable. Probably we can add versioning support to
20191    # collect2, so additional links can be useful in future.
20192    if test "$aix_use_runtimelinking" = yes; then
20193      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20194      # instead of lib<name>.a to let people know that these are not
20195      # typical AIX shared libraries.
20196      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20197    else
20198      # We preserve .a as extension for shared libraries through AIX4.2
20199      # and later when we are not doing run time linking.
20200      library_names_spec='${libname}${release}.a $libname.a'
20201      soname_spec='${libname}${release}${shared_ext}$major'
20202    fi
20203    shlibpath_var=LIBPATH
20204  fi
20205  ;;
20206
20207amigaos*)
20208  library_names_spec='$libname.ixlibrary $libname.a'
20209  # Create ${libname}_ixlibrary.a entries in /sys/libs.
20210  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'
20211  ;;
20212
20213beos*)
20214  library_names_spec='${libname}${shared_ext}'
20215  dynamic_linker="$host_os ld.so"
20216  shlibpath_var=LIBRARY_PATH
20217  ;;
20218
20219bsdi[45]*)
20220  version_type=linux
20221  need_version=no
20222  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20223  soname_spec='${libname}${release}${shared_ext}$major'
20224  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20225  shlibpath_var=LD_LIBRARY_PATH
20226  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20227  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20228  # the default ld.so.conf also contains /usr/contrib/lib and
20229  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20230  # libtool to hard-code these into programs
20231  ;;
20232
20233cygwin* | mingw* | pw32*)
20234  version_type=windows
20235  shrext_cmds=".dll"
20236  need_version=no
20237  need_lib_prefix=no
20238
20239  case $GCC,$host_os in
20240  yes,cygwin* | yes,mingw* | yes,pw32*)
20241    library_names_spec='$libname.dll.a'
20242    # DLL is installed to $(libdir)/../bin by postinstall_cmds
20243    postinstall_cmds='base_file=`basename \${file}`~
20244      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20245      dldir=$destdir/`dirname \$dlpath`~
20246      test -d \$dldir || mkdir -p \$dldir~
20247      $install_prog $dir/$dlname \$dldir/$dlname~
20248      chmod a+x \$dldir/$dlname'
20249    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20250      dlpath=$dir/\$dldll~
20251       $rm \$dlpath'
20252    shlibpath_overrides_runpath=yes
20253
20254    case $host_os in
20255    cygwin*)
20256      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20257      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20258      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20259      ;;
20260    mingw*)
20261      # MinGW DLLs use traditional 'lib' prefix
20262      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20263      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20264      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20265        # It is most probably a Windows format PATH printed by
20266        # mingw gcc, but we are running on Cygwin. Gcc prints its search
20267        # path with ; separators, and with drive letters. We can handle the
20268        # drive letters (cygwin fileutils understands them), so leave them,
20269        # especially as we might pass files found there to a mingw objdump,
20270        # which wouldn't understand a cygwinified path. Ahh.
20271        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20272      else
20273        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20274      fi
20275      ;;
20276    pw32*)
20277      # pw32 DLLs use 'pw' prefix rather than 'lib'
20278      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20279      ;;
20280    esac
20281    ;;
20282
20283  *)
20284    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20285    ;;
20286  esac
20287  dynamic_linker='Win32 ld.exe'
20288  # FIXME: first we should search . and the directory the executable is in
20289  shlibpath_var=PATH
20290  ;;
20291
20292darwin* | rhapsody*)
20293  dynamic_linker="$host_os dyld"
20294  version_type=darwin
20295  need_lib_prefix=no
20296  need_version=no
20297  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20298  soname_spec='${libname}${release}${major}$shared_ext'
20299  shlibpath_overrides_runpath=yes
20300  shlibpath_var=DYLD_LIBRARY_PATH
20301  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20302  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20303  if test "$GCC" = yes; then
20304    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"`
20305  else
20306    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20307  fi
20308  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20309  ;;
20310
20311dgux*)
20312  version_type=linux
20313  need_lib_prefix=no
20314  need_version=no
20315  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20316  soname_spec='${libname}${release}${shared_ext}$major'
20317  shlibpath_var=LD_LIBRARY_PATH
20318  ;;
20319
20320freebsd1*)
20321  dynamic_linker=no
20322  ;;
20323
20324kfreebsd*-gnu)
20325  version_type=linux
20326  need_lib_prefix=no
20327  need_version=no
20328  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20329  soname_spec='${libname}${release}${shared_ext}$major'
20330  shlibpath_var=LD_LIBRARY_PATH
20331  shlibpath_overrides_runpath=no
20332  hardcode_into_libs=yes
20333  dynamic_linker='GNU ld.so'
20334  ;;
20335
20336freebsd* | dragonfly*)
20337  # DragonFly does not have aout.  When/if they implement a new
20338  # versioning mechanism, adjust this.
20339  if test -x /usr/bin/objformat; then
20340    objformat=`/usr/bin/objformat`
20341  else
20342    case $host_os in
20343    freebsd[123]*) objformat=aout ;;
20344    *) objformat=elf ;;
20345    esac
20346  fi
20347  version_type=freebsd-$objformat
20348  case $version_type in
20349    freebsd-elf*)
20350      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20351      need_version=no
20352      need_lib_prefix=no
20353      ;;
20354    freebsd-*)
20355      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20356      need_version=yes
20357      ;;
20358  esac
20359  shlibpath_var=LD_LIBRARY_PATH
20360  case $host_os in
20361  freebsd2*)
20362    shlibpath_overrides_runpath=yes
20363    ;;
20364  freebsd3.[01]* | freebsdelf3.[01]*)
20365    shlibpath_overrides_runpath=yes
20366    hardcode_into_libs=yes
20367    ;;
20368  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20369  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20370    shlibpath_overrides_runpath=no
20371    hardcode_into_libs=yes
20372    ;;
20373  freebsd*) # from 4.6 on
20374    shlibpath_overrides_runpath=yes
20375    hardcode_into_libs=yes
20376    ;;
20377  esac
20378  ;;
20379
20380gnu*)
20381  version_type=linux
20382  need_lib_prefix=no
20383  need_version=no
20384  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20385  soname_spec='${libname}${release}${shared_ext}$major'
20386  shlibpath_var=LD_LIBRARY_PATH
20387  hardcode_into_libs=yes
20388  ;;
20389
20390hpux9* | hpux10* | hpux11*)
20391  # Give a soname corresponding to the major version so that dld.sl refuses to
20392  # link against other versions.
20393  version_type=sunos
20394  need_lib_prefix=no
20395  need_version=no
20396  case $host_cpu in
20397  ia64*)
20398    shrext_cmds='.so'
20399    hardcode_into_libs=yes
20400    dynamic_linker="$host_os dld.so"
20401    shlibpath_var=LD_LIBRARY_PATH
20402    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20403    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20404    soname_spec='${libname}${release}${shared_ext}$major'
20405    if test "X$HPUX_IA64_MODE" = X32; then
20406      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20407    else
20408      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20409    fi
20410    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20411    ;;
20412   hppa*64*)
20413     shrext_cmds='.sl'
20414     hardcode_into_libs=yes
20415     dynamic_linker="$host_os dld.sl"
20416     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20417     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20418     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20419     soname_spec='${libname}${release}${shared_ext}$major'
20420     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20421     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20422     ;;
20423   *)
20424    shrext_cmds='.sl'
20425    dynamic_linker="$host_os dld.sl"
20426    shlibpath_var=SHLIB_PATH
20427    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20428    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20429    soname_spec='${libname}${release}${shared_ext}$major'
20430    ;;
20431  esac
20432  # HP-UX runs *really* slowly unless shared libraries are mode 555.
20433  postinstall_cmds='chmod 555 $lib'
20434  ;;
20435
20436interix3*)
20437  version_type=linux
20438  need_lib_prefix=no
20439  need_version=no
20440  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20441  soname_spec='${libname}${release}${shared_ext}$major'
20442  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20443  shlibpath_var=LD_LIBRARY_PATH
20444  shlibpath_overrides_runpath=no
20445  hardcode_into_libs=yes
20446  ;;
20447
20448irix5* | irix6* | nonstopux*)
20449  case $host_os in
20450    nonstopux*) version_type=nonstopux ;;
20451    *)
20452	if test "$lt_cv_prog_gnu_ld" = yes; then
20453		version_type=linux
20454	else
20455		version_type=irix
20456	fi ;;
20457  esac
20458  need_lib_prefix=no
20459  need_version=no
20460  soname_spec='${libname}${release}${shared_ext}$major'
20461  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20462  case $host_os in
20463  irix5* | nonstopux*)
20464    libsuff= shlibsuff=
20465    ;;
20466  *)
20467    case $LD in # libtool.m4 will add one of these switches to LD
20468    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20469      libsuff= shlibsuff= libmagic=32-bit;;
20470    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20471      libsuff=32 shlibsuff=N32 libmagic=N32;;
20472    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20473      libsuff=64 shlibsuff=64 libmagic=64-bit;;
20474    *) libsuff= shlibsuff= libmagic=never-match;;
20475    esac
20476    ;;
20477  esac
20478  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20479  shlibpath_overrides_runpath=no
20480  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20481  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20482  hardcode_into_libs=yes
20483  ;;
20484
20485# No shared lib support for Linux oldld, aout, or coff.
20486linux*oldld* | linux*aout* | linux*coff*)
20487  dynamic_linker=no
20488  ;;
20489
20490# This must be Linux ELF.
20491linux*)
20492  version_type=linux
20493  need_lib_prefix=no
20494  need_version=no
20495  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20496  soname_spec='${libname}${release}${shared_ext}$major'
20497  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20498  shlibpath_var=LD_LIBRARY_PATH
20499  shlibpath_overrides_runpath=no
20500  # This implies no fast_install, which is unacceptable.
20501  # Some rework will be needed to allow for fast_install
20502  # before this can be enabled.
20503  hardcode_into_libs=yes
20504
20505  # Append ld.so.conf contents to the search path
20506  if test -f /etc/ld.so.conf; then
20507    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' ' '`
20508    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20509  fi
20510
20511  # We used to test for /lib/ld.so.1 and disable shared libraries on
20512  # powerpc, because MkLinux only supported shared libraries with the
20513  # GNU dynamic linker.  Since this was broken with cross compilers,
20514  # most powerpc-linux boxes support dynamic linking these days and
20515  # people can always --disable-shared, the test was removed, and we
20516  # assume the GNU/Linux dynamic linker is in use.
20517  dynamic_linker='GNU/Linux ld.so'
20518  ;;
20519
20520knetbsd*-gnu)
20521  version_type=linux
20522  need_lib_prefix=no
20523  need_version=no
20524  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20525  soname_spec='${libname}${release}${shared_ext}$major'
20526  shlibpath_var=LD_LIBRARY_PATH
20527  shlibpath_overrides_runpath=no
20528  hardcode_into_libs=yes
20529  dynamic_linker='GNU ld.so'
20530  ;;
20531
20532netbsd*)
20533  version_type=sunos
20534  need_lib_prefix=no
20535  need_version=no
20536  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20537    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20538    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20539    dynamic_linker='NetBSD (a.out) ld.so'
20540  else
20541    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20542    soname_spec='${libname}${release}${shared_ext}$major'
20543    dynamic_linker='NetBSD ld.elf_so'
20544  fi
20545  shlibpath_var=LD_LIBRARY_PATH
20546  shlibpath_overrides_runpath=yes
20547  hardcode_into_libs=yes
20548  ;;
20549
20550newsos6)
20551  version_type=linux
20552  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20553  shlibpath_var=LD_LIBRARY_PATH
20554  shlibpath_overrides_runpath=yes
20555  ;;
20556
20557nto-qnx*)
20558  version_type=linux
20559  need_lib_prefix=no
20560  need_version=no
20561  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20562  soname_spec='${libname}${release}${shared_ext}$major'
20563  shlibpath_var=LD_LIBRARY_PATH
20564  shlibpath_overrides_runpath=yes
20565  ;;
20566
20567openbsd*)
20568  version_type=sunos
20569  sys_lib_dlsearch_path_spec="/usr/lib"
20570  need_lib_prefix=no
20571  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20572  case $host_os in
20573    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20574    *)                         need_version=no  ;;
20575  esac
20576  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20577  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20578  shlibpath_var=LD_LIBRARY_PATH
20579  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20580    case $host_os in
20581      openbsd2.[89] | openbsd2.[89].*)
20582	shlibpath_overrides_runpath=no
20583	;;
20584      *)
20585	shlibpath_overrides_runpath=yes
20586	;;
20587      esac
20588  else
20589    shlibpath_overrides_runpath=yes
20590  fi
20591  ;;
20592
20593os2*)
20594  libname_spec='$name'
20595  shrext_cmds=".dll"
20596  need_lib_prefix=no
20597  library_names_spec='$libname${shared_ext} $libname.a'
20598  dynamic_linker='OS/2 ld.exe'
20599  shlibpath_var=LIBPATH
20600  ;;
20601
20602osf3* | osf4* | osf5*)
20603  version_type=osf
20604  need_lib_prefix=no
20605  need_version=no
20606  soname_spec='${libname}${release}${shared_ext}$major'
20607  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20608  shlibpath_var=LD_LIBRARY_PATH
20609  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20610  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20611  ;;
20612
20613solaris*)
20614  version_type=linux
20615  need_lib_prefix=no
20616  need_version=no
20617  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20618  soname_spec='${libname}${release}${shared_ext}$major'
20619  shlibpath_var=LD_LIBRARY_PATH
20620  shlibpath_overrides_runpath=yes
20621  hardcode_into_libs=yes
20622  # ldd complains unless libraries are executable
20623  postinstall_cmds='chmod +x $lib'
20624  ;;
20625
20626sunos4*)
20627  version_type=sunos
20628  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20629  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20630  shlibpath_var=LD_LIBRARY_PATH
20631  shlibpath_overrides_runpath=yes
20632  if test "$with_gnu_ld" = yes; then
20633    need_lib_prefix=no
20634  fi
20635  need_version=yes
20636  ;;
20637
20638sysv4 | sysv4.3*)
20639  version_type=linux
20640  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20641  soname_spec='${libname}${release}${shared_ext}$major'
20642  shlibpath_var=LD_LIBRARY_PATH
20643  case $host_vendor in
20644    sni)
20645      shlibpath_overrides_runpath=no
20646      need_lib_prefix=no
20647      export_dynamic_flag_spec='${wl}-Blargedynsym'
20648      runpath_var=LD_RUN_PATH
20649      ;;
20650    siemens)
20651      need_lib_prefix=no
20652      ;;
20653    motorola)
20654      need_lib_prefix=no
20655      need_version=no
20656      shlibpath_overrides_runpath=no
20657      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20658      ;;
20659  esac
20660  ;;
20661
20662sysv4*MP*)
20663  if test -d /usr/nec ;then
20664    version_type=linux
20665    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20666    soname_spec='$libname${shared_ext}.$major'
20667    shlibpath_var=LD_LIBRARY_PATH
20668  fi
20669  ;;
20670
20671sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20672  version_type=freebsd-elf
20673  need_lib_prefix=no
20674  need_version=no
20675  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20676  soname_spec='${libname}${release}${shared_ext}$major'
20677  shlibpath_var=LD_LIBRARY_PATH
20678  hardcode_into_libs=yes
20679  if test "$with_gnu_ld" = yes; then
20680    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20681    shlibpath_overrides_runpath=no
20682  else
20683    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20684    shlibpath_overrides_runpath=yes
20685    case $host_os in
20686      sco3.2v5*)
20687        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20688	;;
20689    esac
20690  fi
20691  sys_lib_dlsearch_path_spec='/usr/lib'
20692  ;;
20693
20694uts4*)
20695  version_type=linux
20696  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20697  soname_spec='${libname}${release}${shared_ext}$major'
20698  shlibpath_var=LD_LIBRARY_PATH
20699  ;;
20700
20701*)
20702  dynamic_linker=no
20703  ;;
20704esac
20705echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20706echo "${ECHO_T}$dynamic_linker" >&6
20707test "$dynamic_linker" = no && can_build_shared=no
20708
20709variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20710if test "$GCC" = yes; then
20711  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20712fi
20713
20714echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20715echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20716hardcode_action_GCJ=
20717if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20718   test -n "$runpath_var_GCJ" || \
20719   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
20720
20721  # We can hardcode non-existant directories.
20722  if test "$hardcode_direct_GCJ" != no &&
20723     # If the only mechanism to avoid hardcoding is shlibpath_var, we
20724     # have to relink, otherwise we might link with an installed library
20725     # when we should be linking with a yet-to-be-installed one
20726     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20727     test "$hardcode_minus_L_GCJ" != no; then
20728    # Linking always hardcodes the temporary library directory.
20729    hardcode_action_GCJ=relink
20730  else
20731    # We can link without hardcoding, and we can hardcode nonexisting dirs.
20732    hardcode_action_GCJ=immediate
20733  fi
20734else
20735  # We cannot hardcode anything, or else we can only hardcode existing
20736  # directories.
20737  hardcode_action_GCJ=unsupported
20738fi
20739echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20740echo "${ECHO_T}$hardcode_action_GCJ" >&6
20741
20742if test "$hardcode_action_GCJ" = relink; then
20743  # Fast installation is not supported
20744  enable_fast_install=no
20745elif test "$shlibpath_overrides_runpath" = yes ||
20746     test "$enable_shared" = no; then
20747  # Fast installation is not necessary
20748  enable_fast_install=needless
20749fi
20750
20751
20752# The else clause should only fire when bootstrapping the
20753# libtool distribution, otherwise you forgot to ship ltmain.sh
20754# with your package, and you will get complaints that there are
20755# no rules to generate ltmain.sh.
20756if test -f "$ltmain"; then
20757  # See if we are running on zsh, and set the options which allow our commands through
20758  # without removal of \ escapes.
20759  if test -n "${ZSH_VERSION+set}" ; then
20760    setopt NO_GLOB_SUBST
20761  fi
20762  # Now quote all the things that may contain metacharacters while being
20763  # careful not to overquote the AC_SUBSTed values.  We take copies of the
20764  # variables and quote the copies for generation of the libtool script.
20765  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20766    SED SHELL STRIP \
20767    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20768    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20769    deplibs_check_method reload_flag reload_cmds need_locks \
20770    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20771    lt_cv_sys_global_symbol_to_c_name_address \
20772    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20773    old_postinstall_cmds old_postuninstall_cmds \
20774    compiler_GCJ \
20775    CC_GCJ \
20776    LD_GCJ \
20777    lt_prog_compiler_wl_GCJ \
20778    lt_prog_compiler_pic_GCJ \
20779    lt_prog_compiler_static_GCJ \
20780    lt_prog_compiler_no_builtin_flag_GCJ \
20781    export_dynamic_flag_spec_GCJ \
20782    thread_safe_flag_spec_GCJ \
20783    whole_archive_flag_spec_GCJ \
20784    enable_shared_with_static_runtimes_GCJ \
20785    old_archive_cmds_GCJ \
20786    old_archive_from_new_cmds_GCJ \
20787    predep_objects_GCJ \
20788    postdep_objects_GCJ \
20789    predeps_GCJ \
20790    postdeps_GCJ \
20791    compiler_lib_search_path_GCJ \
20792    archive_cmds_GCJ \
20793    archive_expsym_cmds_GCJ \
20794    postinstall_cmds_GCJ \
20795    postuninstall_cmds_GCJ \
20796    old_archive_from_expsyms_cmds_GCJ \
20797    allow_undefined_flag_GCJ \
20798    no_undefined_flag_GCJ \
20799    export_symbols_cmds_GCJ \
20800    hardcode_libdir_flag_spec_GCJ \
20801    hardcode_libdir_flag_spec_ld_GCJ \
20802    hardcode_libdir_separator_GCJ \
20803    hardcode_automatic_GCJ \
20804    module_cmds_GCJ \
20805    module_expsym_cmds_GCJ \
20806    lt_cv_prog_compiler_c_o_GCJ \
20807    exclude_expsyms_GCJ \
20808    include_expsyms_GCJ; do
20809
20810    case $var in
20811    old_archive_cmds_GCJ | \
20812    old_archive_from_new_cmds_GCJ | \
20813    archive_cmds_GCJ | \
20814    archive_expsym_cmds_GCJ | \
20815    module_cmds_GCJ | \
20816    module_expsym_cmds_GCJ | \
20817    old_archive_from_expsyms_cmds_GCJ | \
20818    export_symbols_cmds_GCJ | \
20819    extract_expsyms_cmds | reload_cmds | finish_cmds | \
20820    postinstall_cmds | postuninstall_cmds | \
20821    old_postinstall_cmds | old_postuninstall_cmds | \
20822    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20823      # Double-quote double-evaled strings.
20824      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20825      ;;
20826    *)
20827      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20828      ;;
20829    esac
20830  done
20831
20832  case $lt_echo in
20833  *'\$0 --fallback-echo"')
20834    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20835    ;;
20836  esac
20837
20838cfgfile="$ofile"
20839
20840  cat <<__EOF__ >> "$cfgfile"
20841# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20842
20843# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20844
20845# Shell to use when invoking shell scripts.
20846SHELL=$lt_SHELL
20847
20848# Whether or not to build shared libraries.
20849build_libtool_libs=$enable_shared
20850
20851# Whether or not to build static libraries.
20852build_old_libs=$enable_static
20853
20854# Whether or not to add -lc for building shared libraries.
20855build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20856
20857# Whether or not to disallow shared libs when runtime libs are static
20858allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20859
20860# Whether or not to optimize for fast installation.
20861fast_install=$enable_fast_install
20862
20863# The host system.
20864host_alias=$host_alias
20865host=$host
20866host_os=$host_os
20867
20868# The build system.
20869build_alias=$build_alias
20870build=$build
20871build_os=$build_os
20872
20873# An echo program that does not interpret backslashes.
20874echo=$lt_echo
20875
20876# The archiver.
20877AR=$lt_AR
20878AR_FLAGS=$lt_AR_FLAGS
20879
20880# A C compiler.
20881LTCC=$lt_LTCC
20882
20883# LTCC compiler flags.
20884LTCFLAGS=$lt_LTCFLAGS
20885
20886# A language-specific compiler.
20887CC=$lt_compiler_GCJ
20888
20889# Is the compiler the GNU C compiler?
20890with_gcc=$GCC_GCJ
20891
20892# An ERE matcher.
20893EGREP=$lt_EGREP
20894
20895# The linker used to build libraries.
20896LD=$lt_LD_GCJ
20897
20898# Whether we need hard or soft links.
20899LN_S=$lt_LN_S
20900
20901# A BSD-compatible nm program.
20902NM=$lt_NM
20903
20904# A symbol stripping program
20905STRIP=$lt_STRIP
20906
20907# Used to examine libraries when file_magic_cmd begins "file"
20908MAGIC_CMD=$MAGIC_CMD
20909
20910# Used on cygwin: DLL creation program.
20911DLLTOOL="$DLLTOOL"
20912
20913# Used on cygwin: object dumper.
20914OBJDUMP="$OBJDUMP"
20915
20916# Used on cygwin: assembler.
20917AS="$AS"
20918
20919# The name of the directory that contains temporary libtool files.
20920objdir=$objdir
20921
20922# How to create reloadable object files.
20923reload_flag=$lt_reload_flag
20924reload_cmds=$lt_reload_cmds
20925
20926# How to pass a linker flag through the compiler.
20927wl=$lt_lt_prog_compiler_wl_GCJ
20928
20929# Object file suffix (normally "o").
20930objext="$ac_objext"
20931
20932# Old archive suffix (normally "a").
20933libext="$libext"
20934
20935# Shared library suffix (normally ".so").
20936shrext_cmds='$shrext_cmds'
20937
20938# Executable file suffix (normally "").
20939exeext="$exeext"
20940
20941# Additional compiler flags for building library objects.
20942pic_flag=$lt_lt_prog_compiler_pic_GCJ
20943pic_mode=$pic_mode
20944
20945# What is the maximum length of a command?
20946max_cmd_len=$lt_cv_sys_max_cmd_len
20947
20948# Does compiler simultaneously support -c and -o options?
20949compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20950
20951# Must we lock files when doing compilation?
20952need_locks=$lt_need_locks
20953
20954# Do we need the lib prefix for modules?
20955need_lib_prefix=$need_lib_prefix
20956
20957# Do we need a version for libraries?
20958need_version=$need_version
20959
20960# Whether dlopen is supported.
20961dlopen_support=$enable_dlopen
20962
20963# Whether dlopen of programs is supported.
20964dlopen_self=$enable_dlopen_self
20965
20966# Whether dlopen of statically linked programs is supported.
20967dlopen_self_static=$enable_dlopen_self_static
20968
20969# Compiler flag to prevent dynamic linking.
20970link_static_flag=$lt_lt_prog_compiler_static_GCJ
20971
20972# Compiler flag to turn off builtin functions.
20973no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20974
20975# Compiler flag to allow reflexive dlopens.
20976export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20977
20978# Compiler flag to generate shared objects directly from archives.
20979whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20980
20981# Compiler flag to generate thread-safe objects.
20982thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20983
20984# Library versioning type.
20985version_type=$version_type
20986
20987# Format of library name prefix.
20988libname_spec=$lt_libname_spec
20989
20990# List of archive names.  First name is the real one, the rest are links.
20991# The last name is the one that the linker finds with -lNAME.
20992library_names_spec=$lt_library_names_spec
20993
20994# The coded name of the library, if different from the real name.
20995soname_spec=$lt_soname_spec
20996
20997# Commands used to build and install an old-style archive.
20998RANLIB=$lt_RANLIB
20999old_archive_cmds=$lt_old_archive_cmds_GCJ
21000old_postinstall_cmds=$lt_old_postinstall_cmds
21001old_postuninstall_cmds=$lt_old_postuninstall_cmds
21002
21003# Create an old-style archive from a shared archive.
21004old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
21005
21006# Create a temporary old-style archive to link instead of a shared archive.
21007old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
21008
21009# Commands used to build and install a shared archive.
21010archive_cmds=$lt_archive_cmds_GCJ
21011archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
21012postinstall_cmds=$lt_postinstall_cmds
21013postuninstall_cmds=$lt_postuninstall_cmds
21014
21015# Commands used to build a loadable module (assumed same as above if empty)
21016module_cmds=$lt_module_cmds_GCJ
21017module_expsym_cmds=$lt_module_expsym_cmds_GCJ
21018
21019# Commands to strip libraries.
21020old_striplib=$lt_old_striplib
21021striplib=$lt_striplib
21022
21023# Dependencies to place before the objects being linked to create a
21024# shared library.
21025predep_objects=$lt_predep_objects_GCJ
21026
21027# Dependencies to place after the objects being linked to create a
21028# shared library.
21029postdep_objects=$lt_postdep_objects_GCJ
21030
21031# Dependencies to place before the objects being linked to create a
21032# shared library.
21033predeps=$lt_predeps_GCJ
21034
21035# Dependencies to place after the objects being linked to create a
21036# shared library.
21037postdeps=$lt_postdeps_GCJ
21038
21039# The library search path used internally by the compiler when linking
21040# a shared library.
21041compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
21042
21043# Method to check whether dependent libraries are shared objects.
21044deplibs_check_method=$lt_deplibs_check_method
21045
21046# Command to use when deplibs_check_method == file_magic.
21047file_magic_cmd=$lt_file_magic_cmd
21048
21049# Flag that allows shared libraries with undefined symbols to be built.
21050allow_undefined_flag=$lt_allow_undefined_flag_GCJ
21051
21052# Flag that forces no undefined symbols.
21053no_undefined_flag=$lt_no_undefined_flag_GCJ
21054
21055# Commands used to finish a libtool library installation in a directory.
21056finish_cmds=$lt_finish_cmds
21057
21058# Same as above, but a single script fragment to be evaled but not shown.
21059finish_eval=$lt_finish_eval
21060
21061# Take the output of nm and produce a listing of raw symbols and C names.
21062global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21063
21064# Transform the output of nm in a proper C declaration
21065global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21066
21067# Transform the output of nm in a C name address pair
21068global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21069
21070# This is the shared library runtime path variable.
21071runpath_var=$runpath_var
21072
21073# This is the shared library path variable.
21074shlibpath_var=$shlibpath_var
21075
21076# Is shlibpath searched before the hard-coded library search path?
21077shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21078
21079# How to hardcode a shared library path into an executable.
21080hardcode_action=$hardcode_action_GCJ
21081
21082# Whether we should hardcode library paths into libraries.
21083hardcode_into_libs=$hardcode_into_libs
21084
21085# Flag to hardcode \$libdir into a binary during linking.
21086# This must work even if \$libdir does not exist.
21087hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
21088
21089# If ld is used when linking, flag to hardcode \$libdir into
21090# a binary during linking. This must work even if \$libdir does
21091# not exist.
21092hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
21093
21094# Whether we need a single -rpath flag with a separated argument.
21095hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
21096
21097# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21098# resulting binary.
21099hardcode_direct=$hardcode_direct_GCJ
21100
21101# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21102# resulting binary.
21103hardcode_minus_L=$hardcode_minus_L_GCJ
21104
21105# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21106# the resulting binary.
21107hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
21108
21109# Set to yes if building a shared library automatically hardcodes DIR into the library
21110# and all subsequent libraries and executables linked against it.
21111hardcode_automatic=$hardcode_automatic_GCJ
21112
21113# Variables whose values should be saved in libtool wrapper scripts and
21114# restored at relink time.
21115variables_saved_for_relink="$variables_saved_for_relink"
21116
21117# Whether libtool must link a program against all its dependency libraries.
21118link_all_deplibs=$link_all_deplibs_GCJ
21119
21120# Compile-time system search path for libraries
21121sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21122
21123# Run-time system search path for libraries
21124sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21125
21126# Fix the shell variable \$srcfile for the compiler.
21127fix_srcfile_path="$fix_srcfile_path_GCJ"
21128
21129# Set to yes if exported symbols are required.
21130always_export_symbols=$always_export_symbols_GCJ
21131
21132# The commands to list exported symbols.
21133export_symbols_cmds=$lt_export_symbols_cmds_GCJ
21134
21135# The commands to extract the exported symbol list from a shared archive.
21136extract_expsyms_cmds=$lt_extract_expsyms_cmds
21137
21138# Symbols that should not be listed in the preloaded symbols.
21139exclude_expsyms=$lt_exclude_expsyms_GCJ
21140
21141# Symbols that must always be exported.
21142include_expsyms=$lt_include_expsyms_GCJ
21143
21144# ### END LIBTOOL TAG CONFIG: $tagname
21145
21146__EOF__
21147
21148
21149else
21150  # If there is no Makefile yet, we rely on a make rule to execute
21151  # `config.status --recheck' to rerun these tests and create the
21152  # libtool script then.
21153  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21154  if test -f "$ltmain_in"; then
21155    test -f Makefile && make "$ltmain"
21156  fi
21157fi
21158
21159
21160ac_ext=c
21161ac_cpp='$CPP $CPPFLAGS'
21162ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21163ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21164ac_compiler_gnu=$ac_cv_c_compiler_gnu
21165
21166CC="$lt_save_CC"
21167
21168	else
21169	  tagname=""
21170	fi
21171	;;
21172
21173      RC)
21174
21175
21176
21177# Source file extension for RC test sources.
21178ac_ext=rc
21179
21180# Object file extension for compiled RC test sources.
21181objext=o
21182objext_RC=$objext
21183
21184# Code to be used in simple compile tests
21185lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
21186
21187# Code to be used in simple link tests
21188lt_simple_link_test_code="$lt_simple_compile_test_code"
21189
21190# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21191
21192# If no C compiler was specified, use CC.
21193LTCC=${LTCC-"$CC"}
21194
21195# If no C compiler flags were specified, use CFLAGS.
21196LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21197
21198# Allow CC to be a program name with arguments.
21199compiler=$CC
21200
21201
21202# save warnings/boilerplate of simple test code
21203ac_outfile=conftest.$ac_objext
21204printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21205eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21206_lt_compiler_boilerplate=`cat conftest.err`
21207$rm conftest*
21208
21209ac_outfile=conftest.$ac_objext
21210printf "$lt_simple_link_test_code" >conftest.$ac_ext
21211eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21212_lt_linker_boilerplate=`cat conftest.err`
21213$rm conftest*
21214
21215
21216# Allow CC to be a program name with arguments.
21217lt_save_CC="$CC"
21218CC=${RC-"windres"}
21219compiler=$CC
21220compiler_RC=$CC
21221for cc_temp in $compiler""; do
21222  case $cc_temp in
21223    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21224    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21225    \-*) ;;
21226    *) break;;
21227  esac
21228done
21229cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21230
21231lt_cv_prog_compiler_c_o_RC=yes
21232
21233# The else clause should only fire when bootstrapping the
21234# libtool distribution, otherwise you forgot to ship ltmain.sh
21235# with your package, and you will get complaints that there are
21236# no rules to generate ltmain.sh.
21237if test -f "$ltmain"; then
21238  # See if we are running on zsh, and set the options which allow our commands through
21239  # without removal of \ escapes.
21240  if test -n "${ZSH_VERSION+set}" ; then
21241    setopt NO_GLOB_SUBST
21242  fi
21243  # Now quote all the things that may contain metacharacters while being
21244  # careful not to overquote the AC_SUBSTed values.  We take copies of the
21245  # variables and quote the copies for generation of the libtool script.
21246  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
21247    SED SHELL STRIP \
21248    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21249    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21250    deplibs_check_method reload_flag reload_cmds need_locks \
21251    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21252    lt_cv_sys_global_symbol_to_c_name_address \
21253    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21254    old_postinstall_cmds old_postuninstall_cmds \
21255    compiler_RC \
21256    CC_RC \
21257    LD_RC \
21258    lt_prog_compiler_wl_RC \
21259    lt_prog_compiler_pic_RC \
21260    lt_prog_compiler_static_RC \
21261    lt_prog_compiler_no_builtin_flag_RC \
21262    export_dynamic_flag_spec_RC \
21263    thread_safe_flag_spec_RC \
21264    whole_archive_flag_spec_RC \
21265    enable_shared_with_static_runtimes_RC \
21266    old_archive_cmds_RC \
21267    old_archive_from_new_cmds_RC \
21268    predep_objects_RC \
21269    postdep_objects_RC \
21270    predeps_RC \
21271    postdeps_RC \
21272    compiler_lib_search_path_RC \
21273    archive_cmds_RC \
21274    archive_expsym_cmds_RC \
21275    postinstall_cmds_RC \
21276    postuninstall_cmds_RC \
21277    old_archive_from_expsyms_cmds_RC \
21278    allow_undefined_flag_RC \
21279    no_undefined_flag_RC \
21280    export_symbols_cmds_RC \
21281    hardcode_libdir_flag_spec_RC \
21282    hardcode_libdir_flag_spec_ld_RC \
21283    hardcode_libdir_separator_RC \
21284    hardcode_automatic_RC \
21285    module_cmds_RC \
21286    module_expsym_cmds_RC \
21287    lt_cv_prog_compiler_c_o_RC \
21288    exclude_expsyms_RC \
21289    include_expsyms_RC; do
21290
21291    case $var in
21292    old_archive_cmds_RC | \
21293    old_archive_from_new_cmds_RC | \
21294    archive_cmds_RC | \
21295    archive_expsym_cmds_RC | \
21296    module_cmds_RC | \
21297    module_expsym_cmds_RC | \
21298    old_archive_from_expsyms_cmds_RC | \
21299    export_symbols_cmds_RC | \
21300    extract_expsyms_cmds | reload_cmds | finish_cmds | \
21301    postinstall_cmds | postuninstall_cmds | \
21302    old_postinstall_cmds | old_postuninstall_cmds | \
21303    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21304      # Double-quote double-evaled strings.
21305      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21306      ;;
21307    *)
21308      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21309      ;;
21310    esac
21311  done
21312
21313  case $lt_echo in
21314  *'\$0 --fallback-echo"')
21315    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21316    ;;
21317  esac
21318
21319cfgfile="$ofile"
21320
21321  cat <<__EOF__ >> "$cfgfile"
21322# ### BEGIN LIBTOOL TAG CONFIG: $tagname
21323
21324# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21325
21326# Shell to use when invoking shell scripts.
21327SHELL=$lt_SHELL
21328
21329# Whether or not to build shared libraries.
21330build_libtool_libs=$enable_shared
21331
21332# Whether or not to build static libraries.
21333build_old_libs=$enable_static
21334
21335# Whether or not to add -lc for building shared libraries.
21336build_libtool_need_lc=$archive_cmds_need_lc_RC
21337
21338# Whether or not to disallow shared libs when runtime libs are static
21339allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
21340
21341# Whether or not to optimize for fast installation.
21342fast_install=$enable_fast_install
21343
21344# The host system.
21345host_alias=$host_alias
21346host=$host
21347host_os=$host_os
21348
21349# The build system.
21350build_alias=$build_alias
21351build=$build
21352build_os=$build_os
21353
21354# An echo program that does not interpret backslashes.
21355echo=$lt_echo
21356
21357# The archiver.
21358AR=$lt_AR
21359AR_FLAGS=$lt_AR_FLAGS
21360
21361# A C compiler.
21362LTCC=$lt_LTCC
21363
21364# LTCC compiler flags.
21365LTCFLAGS=$lt_LTCFLAGS
21366
21367# A language-specific compiler.
21368CC=$lt_compiler_RC
21369
21370# Is the compiler the GNU C compiler?
21371with_gcc=$GCC_RC
21372
21373# An ERE matcher.
21374EGREP=$lt_EGREP
21375
21376# The linker used to build libraries.
21377LD=$lt_LD_RC
21378
21379# Whether we need hard or soft links.
21380LN_S=$lt_LN_S
21381
21382# A BSD-compatible nm program.
21383NM=$lt_NM
21384
21385# A symbol stripping program
21386STRIP=$lt_STRIP
21387
21388# Used to examine libraries when file_magic_cmd begins "file"
21389MAGIC_CMD=$MAGIC_CMD
21390
21391# Used on cygwin: DLL creation program.
21392DLLTOOL="$DLLTOOL"
21393
21394# Used on cygwin: object dumper.
21395OBJDUMP="$OBJDUMP"
21396
21397# Used on cygwin: assembler.
21398AS="$AS"
21399
21400# The name of the directory that contains temporary libtool files.
21401objdir=$objdir
21402
21403# How to create reloadable object files.
21404reload_flag=$lt_reload_flag
21405reload_cmds=$lt_reload_cmds
21406
21407# How to pass a linker flag through the compiler.
21408wl=$lt_lt_prog_compiler_wl_RC
21409
21410# Object file suffix (normally "o").
21411objext="$ac_objext"
21412
21413# Old archive suffix (normally "a").
21414libext="$libext"
21415
21416# Shared library suffix (normally ".so").
21417shrext_cmds='$shrext_cmds'
21418
21419# Executable file suffix (normally "").
21420exeext="$exeext"
21421
21422# Additional compiler flags for building library objects.
21423pic_flag=$lt_lt_prog_compiler_pic_RC
21424pic_mode=$pic_mode
21425
21426# What is the maximum length of a command?
21427max_cmd_len=$lt_cv_sys_max_cmd_len
21428
21429# Does compiler simultaneously support -c and -o options?
21430compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
21431
21432# Must we lock files when doing compilation?
21433need_locks=$lt_need_locks
21434
21435# Do we need the lib prefix for modules?
21436need_lib_prefix=$need_lib_prefix
21437
21438# Do we need a version for libraries?
21439need_version=$need_version
21440
21441# Whether dlopen is supported.
21442dlopen_support=$enable_dlopen
21443
21444# Whether dlopen of programs is supported.
21445dlopen_self=$enable_dlopen_self
21446
21447# Whether dlopen of statically linked programs is supported.
21448dlopen_self_static=$enable_dlopen_self_static
21449
21450# Compiler flag to prevent dynamic linking.
21451link_static_flag=$lt_lt_prog_compiler_static_RC
21452
21453# Compiler flag to turn off builtin functions.
21454no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
21455
21456# Compiler flag to allow reflexive dlopens.
21457export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
21458
21459# Compiler flag to generate shared objects directly from archives.
21460whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
21461
21462# Compiler flag to generate thread-safe objects.
21463thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
21464
21465# Library versioning type.
21466version_type=$version_type
21467
21468# Format of library name prefix.
21469libname_spec=$lt_libname_spec
21470
21471# List of archive names.  First name is the real one, the rest are links.
21472# The last name is the one that the linker finds with -lNAME.
21473library_names_spec=$lt_library_names_spec
21474
21475# The coded name of the library, if different from the real name.
21476soname_spec=$lt_soname_spec
21477
21478# Commands used to build and install an old-style archive.
21479RANLIB=$lt_RANLIB
21480old_archive_cmds=$lt_old_archive_cmds_RC
21481old_postinstall_cmds=$lt_old_postinstall_cmds
21482old_postuninstall_cmds=$lt_old_postuninstall_cmds
21483
21484# Create an old-style archive from a shared archive.
21485old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
21486
21487# Create a temporary old-style archive to link instead of a shared archive.
21488old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
21489
21490# Commands used to build and install a shared archive.
21491archive_cmds=$lt_archive_cmds_RC
21492archive_expsym_cmds=$lt_archive_expsym_cmds_RC
21493postinstall_cmds=$lt_postinstall_cmds
21494postuninstall_cmds=$lt_postuninstall_cmds
21495
21496# Commands used to build a loadable module (assumed same as above if empty)
21497module_cmds=$lt_module_cmds_RC
21498module_expsym_cmds=$lt_module_expsym_cmds_RC
21499
21500# Commands to strip libraries.
21501old_striplib=$lt_old_striplib
21502striplib=$lt_striplib
21503
21504# Dependencies to place before the objects being linked to create a
21505# shared library.
21506predep_objects=$lt_predep_objects_RC
21507
21508# Dependencies to place after the objects being linked to create a
21509# shared library.
21510postdep_objects=$lt_postdep_objects_RC
21511
21512# Dependencies to place before the objects being linked to create a
21513# shared library.
21514predeps=$lt_predeps_RC
21515
21516# Dependencies to place after the objects being linked to create a
21517# shared library.
21518postdeps=$lt_postdeps_RC
21519
21520# The library search path used internally by the compiler when linking
21521# a shared library.
21522compiler_lib_search_path=$lt_compiler_lib_search_path_RC
21523
21524# Method to check whether dependent libraries are shared objects.
21525deplibs_check_method=$lt_deplibs_check_method
21526
21527# Command to use when deplibs_check_method == file_magic.
21528file_magic_cmd=$lt_file_magic_cmd
21529
21530# Flag that allows shared libraries with undefined symbols to be built.
21531allow_undefined_flag=$lt_allow_undefined_flag_RC
21532
21533# Flag that forces no undefined symbols.
21534no_undefined_flag=$lt_no_undefined_flag_RC
21535
21536# Commands used to finish a libtool library installation in a directory.
21537finish_cmds=$lt_finish_cmds
21538
21539# Same as above, but a single script fragment to be evaled but not shown.
21540finish_eval=$lt_finish_eval
21541
21542# Take the output of nm and produce a listing of raw symbols and C names.
21543global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21544
21545# Transform the output of nm in a proper C declaration
21546global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21547
21548# Transform the output of nm in a C name address pair
21549global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21550
21551# This is the shared library runtime path variable.
21552runpath_var=$runpath_var
21553
21554# This is the shared library path variable.
21555shlibpath_var=$shlibpath_var
21556
21557# Is shlibpath searched before the hard-coded library search path?
21558shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21559
21560# How to hardcode a shared library path into an executable.
21561hardcode_action=$hardcode_action_RC
21562
21563# Whether we should hardcode library paths into libraries.
21564hardcode_into_libs=$hardcode_into_libs
21565
21566# Flag to hardcode \$libdir into a binary during linking.
21567# This must work even if \$libdir does not exist.
21568hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
21569
21570# If ld is used when linking, flag to hardcode \$libdir into
21571# a binary during linking. This must work even if \$libdir does
21572# not exist.
21573hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
21574
21575# Whether we need a single -rpath flag with a separated argument.
21576hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
21577
21578# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21579# resulting binary.
21580hardcode_direct=$hardcode_direct_RC
21581
21582# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21583# resulting binary.
21584hardcode_minus_L=$hardcode_minus_L_RC
21585
21586# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21587# the resulting binary.
21588hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
21589
21590# Set to yes if building a shared library automatically hardcodes DIR into the library
21591# and all subsequent libraries and executables linked against it.
21592hardcode_automatic=$hardcode_automatic_RC
21593
21594# Variables whose values should be saved in libtool wrapper scripts and
21595# restored at relink time.
21596variables_saved_for_relink="$variables_saved_for_relink"
21597
21598# Whether libtool must link a program against all its dependency libraries.
21599link_all_deplibs=$link_all_deplibs_RC
21600
21601# Compile-time system search path for libraries
21602sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21603
21604# Run-time system search path for libraries
21605sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21606
21607# Fix the shell variable \$srcfile for the compiler.
21608fix_srcfile_path="$fix_srcfile_path_RC"
21609
21610# Set to yes if exported symbols are required.
21611always_export_symbols=$always_export_symbols_RC
21612
21613# The commands to list exported symbols.
21614export_symbols_cmds=$lt_export_symbols_cmds_RC
21615
21616# The commands to extract the exported symbol list from a shared archive.
21617extract_expsyms_cmds=$lt_extract_expsyms_cmds
21618
21619# Symbols that should not be listed in the preloaded symbols.
21620exclude_expsyms=$lt_exclude_expsyms_RC
21621
21622# Symbols that must always be exported.
21623include_expsyms=$lt_include_expsyms_RC
21624
21625# ### END LIBTOOL TAG CONFIG: $tagname
21626
21627__EOF__
21628
21629
21630else
21631  # If there is no Makefile yet, we rely on a make rule to execute
21632  # `config.status --recheck' to rerun these tests and create the
21633  # libtool script then.
21634  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21635  if test -f "$ltmain_in"; then
21636    test -f Makefile && make "$ltmain"
21637  fi
21638fi
21639
21640
21641ac_ext=c
21642ac_cpp='$CPP $CPPFLAGS'
21643ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21644ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21645ac_compiler_gnu=$ac_cv_c_compiler_gnu
21646
21647CC="$lt_save_CC"
21648
21649	;;
21650
21651      *)
21652	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21653echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21654   { (exit 1); exit 1; }; }
21655	;;
21656      esac
21657
21658      # Append the new tag name to the list of available tags.
21659      if test -n "$tagname" ; then
21660      available_tags="$available_tags $tagname"
21661    fi
21662    fi
21663  done
21664  IFS="$lt_save_ifs"
21665
21666  # Now substitute the updated list of available tags.
21667  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21668    mv "${ofile}T" "$ofile"
21669    chmod +x "$ofile"
21670  else
21671    rm -f "${ofile}T"
21672    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21673echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21674   { (exit 1); exit 1; }; }
21675  fi
21676fi
21677
21678
21679
21680# This can be used to rebuild libtool when needed
21681LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21682
21683# Always use our own libtool.
21684LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21685
21686# Prevent multiple expansion
21687
21688
21689
21690
21691
21692
21693
21694
21695
21696
21697
21698# No longer needed now that CPPFLAGS is correctly set -- lh, 061214 --
21699 # AC_REQUIRE([AC_COIN_DLFCN_H])
21700
21701# NEW: If libtool exists in the directory higher up, we use that one
21702#      instead of creating a new one
21703
21704# It turns out that the code for AC_PROG_LIBTOOL is somehow AC_REQUIRED
21705# out in front of this macro body. You'll notice that LIBTOOL is already
21706# defined here.  We'll have to count on this macro not being called if libtool
21707# already exists, or at least move the libtool fixes outside the conditional.
21708# AC_MSG_NOTICE([Entering coin_prog_libtool, LIBTOOL = "$LIBTOOL".])
21709# This test is therefore removed.  -- lh, 061214 --
21710# if test "x$LIBTOOL" = x; then
21711
21712# AC_MSG_NOTICE([Calling PROG_LIBTOOL.])
21713
21714
21715
21716
21717
21718
21719
21720
21721
21722# AC_MSG_NOTICE([Finished PROG_LIBTOOL.])
21723
21724
21725
21726  { echo "$as_me:$LINENO: Build is \"$build\"." >&5
21727echo "$as_me: Build is \"$build\"." >&6;}
21728  mydos2unix='| dos2unix'
21729  case $build in
21730    *-mingw*)
21731      CYGPATH_W=echo
21732      ;;
21733  esac
21734
21735  case $build in
21736    # Here we need to check if -m32 is specified.  If so, we need to correct
21737    # sys_lib_search_path_spec
21738    *-cygwin* | *-mingw*)
21739       case "$CXX" in
21740    clang* )
21741      # we assume that libtool patches for CLANG are the same as for GNU compiler - correct???
21742      { echo "$as_me:$LINENO: Applying patches to libtool for CLANG compiler" >&5
21743echo "$as_me: Applying patches to libtool for CLANG compiler" >&6;}
21744      sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
21745	  -e 's|"lib /OUT:\\$oldlib\\$oldobjs\\$old_deplibs"|"\\$AR \\$AR_FLAGS \\$oldlib\\$oldobjs\\$old_deplibs~\\$RANLIB \\$oldlib"|' \
21746	  -e 's|libext="lib"|libext="a"|' \
21747      libtool > conftest.bla
21748      ;;
21749    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
21750      { echo "$as_me:$LINENO: Applying patches to libtool for cl compiler" >&5
21751echo "$as_me: Applying patches to libtool for cl compiler" >&6;}
21752      sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
21753	  -e 's|fix_srcfile_path=\"\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
21754	  -e 's%compile_deplibs=\"\$dir/\$old_library \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$old_library | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \
21755	  -e 's%compile_deplibs=\"\$dir/\$linklib \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$linklib | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \
21756	  -e 's%lib /OUT:%lib -OUT:%' \
21757	  -e "s%cygpath -w%$CYGPATH_W%" \
21758	  -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%' \
21759	  -e 's%$AR t "$f_ex_an_ar_oldlib"%lib -nologo -list \$('"$CYGPATH_W \$1"') '"$mydos2unix"'%' \
21760	  -e 's%f_ex_an_ar_oldlib="\($?*1*\)"%f_ex_an_ar_oldlib='\`"$CYGPATH_W"' \1`%' \
21761	  -e 's%^archive_cmds=.*%archive_cmds="\\$CC -o \\$lib \\$libobjs \\$compiler_flags \\\\\\`echo \\\\\\"\\$deplibs\\\\\\" | \\$SED -e '"\'"'s/ -lc\\$//'"\'"'\\\\\\` -link -dll~linknames="%' \
21762	  -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"%' \
21763      libtool > conftest.bla
21764      ;;
21765    *)
21766      { echo "$as_me:$LINENO: Applying patches to libtool for GNU compiler" >&5
21767echo "$as_me: Applying patches to libtool for GNU compiler" >&6;}
21768      sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
21769	  -e 's|"lib /OUT:\\$oldlib\\$oldobjs\\$old_deplibs"|"\\$AR \\$AR_FLAGS \\$oldlib\\$oldobjs\\$old_deplibs~\\$RANLIB \\$oldlib"|' \
21770	  -e 's|libext="lib"|libext="a"|' \
21771      libtool > conftest.bla
21772      ;;
21773  esac
21774  mv conftest.bla libtool
21775  chmod 755 libtool
21776
21777      ;;
21778    *x86_64-*)
21779      if test "$GCC" = yes && (echo $CXXFLAGS $CFLAGS $FFLAGS | $EGREP 'm32' >& /dev/null); then
21780        { echo "$as_me:$LINENO: Applying patches to libtool for 32bit compilation" >&5
21781echo "$as_me: Applying patches to libtool for 32bit compilation" >&6;}
21782        sed -e 's|sys_lib_search_path_spec=".*"|sys_lib_search_path_spec="/lib /usr/lib"|' libtool > conftest.bla
21783        mv conftest.bla libtool
21784        chmod 755 libtool
21785      fi
21786      ;;
21787
21788    *-solaris*)
21789       if test "$GCC" = yes && \
21790     (echo $CXXFLAGS $CFLAGS $FFLAGS | $EGREP 'm64' >/dev/null 2>&1) ; then
21791    hdwisa=`isainfo | sed -e 's/\([^ ]*\) .*$/\1/'`
21792    if `$EGREP 'sys_lib_search_path_spec=' libtool | $EGREP -v $hdwisa >/dev/null 2>&1` ; then
21793      { echo "$as_me:$LINENO: Applying patches to libtool for 64-bit GCC compilation" >&5
21794echo "$as_me: Applying patches to libtool for 64-bit GCC compilation" >&6;}
21795      fixlibtmp=`$CC -m64 -print-search-dirs | $EGREP '^libraries:'`
21796      fixlibtmp=`echo $fixlibtmp | sed -e 's/libraries: =//' -e 's/:/ /g'`
21797      if `echo "$fixlibtmp" | $EGREP -v $hdwisa  >/dev/null 2>&1` ; then
21798	# AC_MSG_NOTICE(Compensating for broken gcc)
21799	for lib in $fixlibtmp ; do
21800	  if test -d "${lib}${hdwisa}" ; then
21801	    syslibpath64="$syslibpath64 ${lib}${hdwisa}/"
21802	  fi
21803	done
21804	syslibpath64="${syslibpath64} ${fixlibtmp}"
21805      else
21806	syslibpath64="$fixlibtmp"
21807      fi
21808      sed -e 's|sys_lib_search_path_spec=".*"|sys_lib_search_path_spec="'"$syslibpath64"'"|' libtool > conftest.bla
21809      mv conftest.bla libtool
21810      chmod 755 libtool
21811    fi
21812    # AC_MSG_NOTICE(Result is )
21813    # $EGREP 'sys_lib_search_path_spec=' libtool
21814  fi
21815      ;;
21816    # Cygwin. Ah, cygwin. Too big and ugly to inline; see the macro.
21817    *-darwin*)
21818      { echo "$as_me:$LINENO: Applying patches to libtool for Darwin" >&5
21819echo "$as_me: Applying patches to libtool for Darwin" >&6;}
21820      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"/' \
21821        -e 's/ -dynamiclib / -dynamiclib -single_module /g' \
21822      libtool > conftest.bla
21823
21824      mv conftest.bla libtool
21825      chmod 755 libtool
21826      ;;
21827  esac
21828# This fi matches the commented `if test "x$LIBTOOL" = x;' up at the head of
21829# the macro. -- lh, 061214 --
21830# fi
21831
21832# AC_MSG_NOTICE([End libtool initialisation.])
21833
21834# AC_MSG_NOTICE([Finished COIN_PROG_LIBTOOL.])
21835  # set RPATH_FLAGS to the compiler link flags required to hardcode location
21836  # of the shared objects
21837  RPATH_FLAGS=
21838
21839if test $enable_shared = yes; then
21840  case $build in
21841    *-linux-*)
21842      if test "$GXX" = "yes"; then
21843        RPATH_FLAGS=
21844        for dir in $abs_lib_dir; do
21845          RPATH_FLAGS="$RPATH_FLAGS -Wl,--rpath -Wl,$dir"
21846        done
21847      fi ;;
21848    *-darwin*)
21849        RPATH_FLAGS=nothing ;;
21850    *-ibm-*)
21851      case "$CXX" in
21852      xlC* | */xlC* | mpxlC* | */mpxlC*)
21853        RPATH_FLAGS=nothing ;;
21854      esac ;;
21855    *-hp-*)
21856        RPATH_FLAGS=nothing ;;
21857    *-mingw32)
21858        RPATH_FLAGS=nothing ;;
21859    *-*-solaris*)
21860        RPATH_FLAGS=
21861        for dir in $abs_lib_dir; do
21862          RPATH_FLAGS="$RPATH_FLAGS -R$dir"
21863        done
21864  esac
21865
21866  if test "$RPATH_FLAGS" = ""; then
21867    { 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
21868echo "$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;}
21869  fi
21870  if test "$RPATH_FLAGS" = "nothing"; then
21871    RPATH_FLAGS=
21872  fi
21873fi
21874
21875
21876
21877
21878else
21879
21880  { echo "$as_me:$LINENO: Using libtool script in directory $coin_config_dir" >&5
21881echo "$as_me: Using libtool script in directory $coin_config_dir" >&6;}
21882  # get all missing information from the config.log file
21883
21884  # output variables and defines
21885  as_save_IFS=$IFS
21886  IFS='
21887'
21888  for oneline in `cat $coin_config_dir/config.status`; do
21889    case "$oneline" in
21890         # First some automake conditionals
21891      s,@am__fastdep* | s,@AR@* | s,@CPP@*  | s,@CPPFLAGS@* | s,@CXXCPP@*  | \
21892      s,@RANLIB@* | s,@STRIP@* | s,@ac_ct_AR@* | s,@ac_ct_RANLIB@* | \
21893      s,@ac_ct_STRIP@* | s,@host* | s,@LN_S@* | s,@RPATH_FLAGS@* | \
21894      s,@ac_c_preproc_warn_flag@* |  s,@ac_cxx_preproc_warn_flag@* )
21895        command=`echo $oneline | sed -e 's/^s,@//' -e 's/@,/="/' -e 's/,;t t/"/'`
21896#        echo "$command"
21897        eval "$command"
21898        ;;
21899      s,@DEFS@* )
21900        command=`echo $oneline | sed -e 's/^s,@DEFS@,/defsline="/' -e 's/,;t t/"/'`
21901#        echo "$command"
21902        eval "$command"
21903        ;;
21904    esac
21905  done
21906  IFS=$as_save_IFS
21907
21908  # And some defines (assuming here that the packages base dir
21909  # doesn't have a config.h file
21910  for word in $defsline; do
21911#    echo word $word
21912    case $word in
21913      -DHAVE_[A-Z_]*_H=1 | -DSTDC_HEADERS=1 )
21914        i=`echo $word | sed -e 's/-D/#define /' -e 's/=/ /'`
21915#        echo dd $i
21916        echo $i >>confdefs.h
21917        ;;
21918    esac
21919  done
21920fi
21921
21922# AC_MSG_NOTICE([End of INIT_AUTO_TOOLS.])
21923
21924# Check whether --enable-dependency-linking or --disable-dependency-linking was given.
21925if test "${enable_dependency_linking+set}" = set; then
21926  enableval="$enable_dependency_linking"
21927  dependency_linking="$enableval"
21928else
21929  dependency_linking=auto
21930fi;
21931
21932if test "$dependency_linking" = auto; then
21933  # On Cygwin and AIX, building DLLs doesn't work
21934  dependency_linking=no
21935  if test x"$coin_disable_shared" = xno; then
21936    case $build in
21937      *-cygwin* | *-mingw*)
21938        case "$CC" in
21939          clang* )
21940            dependency_linking=yes
21941            ;;
21942          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
21943            dependency_linking=no
21944            ;;
21945          *gcc*)
21946            dependency_linking=yes
21947            ;;
21948          *)
21949            dependency_linking=yes
21950            ;;
21951        esac
21952        ;;
21953      *)
21954        dependency_linking=yes
21955        ;;
21956    esac
21957  fi
21958fi
21959
21960if test "$dependency_linking" = yes ;
21961then
21962  LT_LDFLAGS="-no-undefined"
21963else
21964  LT_LDFLAGS=
21965fi
21966
21967
21968
21969if test "$dependency_linking" = yes; then
21970  DEPENDENCY_LINKING_TRUE=
21971  DEPENDENCY_LINKING_FALSE='#'
21972else
21973  DEPENDENCY_LINKING_TRUE='#'
21974  DEPENDENCY_LINKING_FALSE=
21975fi
21976
21977
21978# Check if we want to set the library version
21979echo "$as_me:$LINENO: checking if library version is set" >&5
21980echo $ECHO_N "checking if library version is set... $ECHO_C" >&6
21981if test x"$coin_libversion" != x; then
21982  LT_LDFLAGS="$LT_LDFLAGS -version-info $coin_libversion"
21983  echo "$as_me:$LINENO: result: $coin_libversion" >&5
21984echo "${ECHO_T}$coin_libversion" >&6
21985else
21986  echo "$as_me:$LINENO: result: no" >&5
21987echo "${ECHO_T}no" >&6
21988fi
21989
21990
21991
21992#END
21993}
21994
21995############################################################################
21996#                   Stuff that we need for finite and isnan                #
21997############################################################################
21998
21999
22000
22001
22002ac_ext=cc
22003ac_cpp='$CXXCPP $CPPFLAGS'
22004ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22005ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22006ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22007
22008
22009ac_ext=cc
22010ac_cpp='$CXXCPP $CPPFLAGS'
22011ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22012ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22013ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22014
22015#if test x"" = x; then
22016#  hdr="#include <cmath>"
22017#else
22018#  hdr=""
22019#fi
22020#AC_CHECK_HEADERS([cmath],[],[],[$hdr])
22021
22022for ac_header in cmath
22023do
22024as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22025if eval "test \"\${$as_ac_Header+set}\" = set"; then
22026  echo "$as_me:$LINENO: checking for $ac_header" >&5
22027echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22028if eval "test \"\${$as_ac_Header+set}\" = set"; then
22029  echo $ECHO_N "(cached) $ECHO_C" >&6
22030fi
22031echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22032echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22033else
22034  # Is the header compilable?
22035echo "$as_me:$LINENO: checking $ac_header usability" >&5
22036echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22037cat >conftest.$ac_ext <<_ACEOF
22038/* confdefs.h.  */
22039_ACEOF
22040cat confdefs.h >>conftest.$ac_ext
22041cat >>conftest.$ac_ext <<_ACEOF
22042/* end confdefs.h.  */
22043$ac_includes_default
22044#include <$ac_header>
22045_ACEOF
22046rm -f conftest.$ac_objext
22047if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22048  (eval $ac_compile) 2>conftest.er1
22049  ac_status=$?
22050  grep -v '^ *+' conftest.er1 >conftest.err
22051  rm -f conftest.er1
22052  cat conftest.err >&5
22053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22054  (exit $ac_status); } &&
22055	 { ac_try='test -z "$ac_cxx_werror_flag"
22056			 || test ! -s conftest.err'
22057  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22058  (eval $ac_try) 2>&5
22059  ac_status=$?
22060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22061  (exit $ac_status); }; } &&
22062	 { ac_try='test -s conftest.$ac_objext'
22063  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22064  (eval $ac_try) 2>&5
22065  ac_status=$?
22066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22067  (exit $ac_status); }; }; then
22068  ac_header_compiler=yes
22069else
22070  echo "$as_me: failed program was:" >&5
22071sed 's/^/| /' conftest.$ac_ext >&5
22072
22073ac_header_compiler=no
22074fi
22075rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22076echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22077echo "${ECHO_T}$ac_header_compiler" >&6
22078
22079# Is the header present?
22080echo "$as_me:$LINENO: checking $ac_header presence" >&5
22081echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22082cat >conftest.$ac_ext <<_ACEOF
22083/* confdefs.h.  */
22084_ACEOF
22085cat confdefs.h >>conftest.$ac_ext
22086cat >>conftest.$ac_ext <<_ACEOF
22087/* end confdefs.h.  */
22088#include <$ac_header>
22089_ACEOF
22090if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22091  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22092  ac_status=$?
22093  grep -v '^ *+' conftest.er1 >conftest.err
22094  rm -f conftest.er1
22095  cat conftest.err >&5
22096  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22097  (exit $ac_status); } >/dev/null; then
22098  if test -s conftest.err; then
22099    ac_cpp_err=$ac_cxx_preproc_warn_flag
22100    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
22101  else
22102    ac_cpp_err=
22103  fi
22104else
22105  ac_cpp_err=yes
22106fi
22107if test -z "$ac_cpp_err"; then
22108  ac_header_preproc=yes
22109else
22110  echo "$as_me: failed program was:" >&5
22111sed 's/^/| /' conftest.$ac_ext >&5
22112
22113  ac_header_preproc=no
22114fi
22115rm -f conftest.err conftest.$ac_ext
22116echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22117echo "${ECHO_T}$ac_header_preproc" >&6
22118
22119# So?  What about this header?
22120case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22121  yes:no: )
22122    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22123echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22124    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22125echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22126    ac_header_preproc=yes
22127    ;;
22128  no:yes:* )
22129    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22130echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22131    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22132echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22133    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22134echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22135    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22136echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22137    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22138echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22139    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22140echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22141    (
22142      cat <<\_ASBOX
22143## ---------------------------------------------------- ##
22144## Report this to http://projects.coin-or.org/CoinUtils ##
22145## ---------------------------------------------------- ##
22146_ASBOX
22147    ) |
22148      sed "s/^/$as_me: WARNING:     /" >&2
22149    ;;
22150esac
22151echo "$as_me:$LINENO: checking for $ac_header" >&5
22152echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22153if eval "test \"\${$as_ac_Header+set}\" = set"; then
22154  echo $ECHO_N "(cached) $ECHO_C" >&6
22155else
22156  eval "$as_ac_Header=\$ac_header_preproc"
22157fi
22158echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22159echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22160
22161fi
22162if test `eval echo '${'$as_ac_Header'}'` = yes; then
22163  cat >>confdefs.h <<_ACEOF
22164#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22165_ACEOF
22166
22167fi
22168
22169done
22170
22171
22172if test "$ac_cv_header_cmath" != "yes"; then
22173  #if test x"" = x; then
22174#  hdr="#include <math.h>"
22175#else
22176#  hdr=""
22177#fi
22178#AC_CHECK_HEADERS([math.h],[],[],[$hdr])
22179
22180for ac_header in math.h
22181do
22182as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22183if eval "test \"\${$as_ac_Header+set}\" = set"; then
22184  echo "$as_me:$LINENO: checking for $ac_header" >&5
22185echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22186if eval "test \"\${$as_ac_Header+set}\" = set"; then
22187  echo $ECHO_N "(cached) $ECHO_C" >&6
22188fi
22189echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22190echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22191else
22192  # Is the header compilable?
22193echo "$as_me:$LINENO: checking $ac_header usability" >&5
22194echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22195cat >conftest.$ac_ext <<_ACEOF
22196/* confdefs.h.  */
22197_ACEOF
22198cat confdefs.h >>conftest.$ac_ext
22199cat >>conftest.$ac_ext <<_ACEOF
22200/* end confdefs.h.  */
22201$ac_includes_default
22202#include <$ac_header>
22203_ACEOF
22204rm -f conftest.$ac_objext
22205if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22206  (eval $ac_compile) 2>conftest.er1
22207  ac_status=$?
22208  grep -v '^ *+' conftest.er1 >conftest.err
22209  rm -f conftest.er1
22210  cat conftest.err >&5
22211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22212  (exit $ac_status); } &&
22213	 { ac_try='test -z "$ac_cxx_werror_flag"
22214			 || test ! -s conftest.err'
22215  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22216  (eval $ac_try) 2>&5
22217  ac_status=$?
22218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22219  (exit $ac_status); }; } &&
22220	 { ac_try='test -s conftest.$ac_objext'
22221  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22222  (eval $ac_try) 2>&5
22223  ac_status=$?
22224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22225  (exit $ac_status); }; }; then
22226  ac_header_compiler=yes
22227else
22228  echo "$as_me: failed program was:" >&5
22229sed 's/^/| /' conftest.$ac_ext >&5
22230
22231ac_header_compiler=no
22232fi
22233rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22234echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22235echo "${ECHO_T}$ac_header_compiler" >&6
22236
22237# Is the header present?
22238echo "$as_me:$LINENO: checking $ac_header presence" >&5
22239echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22240cat >conftest.$ac_ext <<_ACEOF
22241/* confdefs.h.  */
22242_ACEOF
22243cat confdefs.h >>conftest.$ac_ext
22244cat >>conftest.$ac_ext <<_ACEOF
22245/* end confdefs.h.  */
22246#include <$ac_header>
22247_ACEOF
22248if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22249  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22250  ac_status=$?
22251  grep -v '^ *+' conftest.er1 >conftest.err
22252  rm -f conftest.er1
22253  cat conftest.err >&5
22254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22255  (exit $ac_status); } >/dev/null; then
22256  if test -s conftest.err; then
22257    ac_cpp_err=$ac_cxx_preproc_warn_flag
22258    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
22259  else
22260    ac_cpp_err=
22261  fi
22262else
22263  ac_cpp_err=yes
22264fi
22265if test -z "$ac_cpp_err"; then
22266  ac_header_preproc=yes
22267else
22268  echo "$as_me: failed program was:" >&5
22269sed 's/^/| /' conftest.$ac_ext >&5
22270
22271  ac_header_preproc=no
22272fi
22273rm -f conftest.err conftest.$ac_ext
22274echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22275echo "${ECHO_T}$ac_header_preproc" >&6
22276
22277# So?  What about this header?
22278case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22279  yes:no: )
22280    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22281echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22282    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22283echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22284    ac_header_preproc=yes
22285    ;;
22286  no:yes:* )
22287    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22288echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22289    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22290echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22291    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22292echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22293    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22294echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22295    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22296echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22297    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22298echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22299    (
22300      cat <<\_ASBOX
22301## ---------------------------------------------------- ##
22302## Report this to http://projects.coin-or.org/CoinUtils ##
22303## ---------------------------------------------------- ##
22304_ASBOX
22305    ) |
22306      sed "s/^/$as_me: WARNING:     /" >&2
22307    ;;
22308esac
22309echo "$as_me:$LINENO: checking for $ac_header" >&5
22310echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22311if eval "test \"\${$as_ac_Header+set}\" = set"; then
22312  echo $ECHO_N "(cached) $ECHO_C" >&6
22313else
22314  eval "$as_ac_Header=\$ac_header_preproc"
22315fi
22316echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22317echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22318
22319fi
22320if test `eval echo '${'$as_ac_Header'}'` = yes; then
22321  cat >>confdefs.h <<_ACEOF
22322#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22323_ACEOF
22324
22325fi
22326
22327done
22328
22329
22330fi
22331ac_ext=cc
22332ac_cpp='$CXXCPP $CPPFLAGS'
22333ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22334ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22335ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22336
22337
22338ac_ext=cc
22339ac_cpp='$CXXCPP $CPPFLAGS'
22340ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22341ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22342ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22343
22344#if test x"" = x; then
22345#  hdr="#include <cfloat>"
22346#else
22347#  hdr=""
22348#fi
22349#AC_CHECK_HEADERS([cfloat],[],[],[$hdr])
22350
22351for ac_header in cfloat
22352do
22353as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22354if eval "test \"\${$as_ac_Header+set}\" = set"; then
22355  echo "$as_me:$LINENO: checking for $ac_header" >&5
22356echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22357if eval "test \"\${$as_ac_Header+set}\" = set"; then
22358  echo $ECHO_N "(cached) $ECHO_C" >&6
22359fi
22360echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22361echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22362else
22363  # Is the header compilable?
22364echo "$as_me:$LINENO: checking $ac_header usability" >&5
22365echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22366cat >conftest.$ac_ext <<_ACEOF
22367/* confdefs.h.  */
22368_ACEOF
22369cat confdefs.h >>conftest.$ac_ext
22370cat >>conftest.$ac_ext <<_ACEOF
22371/* end confdefs.h.  */
22372$ac_includes_default
22373#include <$ac_header>
22374_ACEOF
22375rm -f conftest.$ac_objext
22376if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22377  (eval $ac_compile) 2>conftest.er1
22378  ac_status=$?
22379  grep -v '^ *+' conftest.er1 >conftest.err
22380  rm -f conftest.er1
22381  cat conftest.err >&5
22382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22383  (exit $ac_status); } &&
22384	 { ac_try='test -z "$ac_cxx_werror_flag"
22385			 || test ! -s conftest.err'
22386  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22387  (eval $ac_try) 2>&5
22388  ac_status=$?
22389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22390  (exit $ac_status); }; } &&
22391	 { ac_try='test -s conftest.$ac_objext'
22392  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22393  (eval $ac_try) 2>&5
22394  ac_status=$?
22395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22396  (exit $ac_status); }; }; then
22397  ac_header_compiler=yes
22398else
22399  echo "$as_me: failed program was:" >&5
22400sed 's/^/| /' conftest.$ac_ext >&5
22401
22402ac_header_compiler=no
22403fi
22404rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22405echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22406echo "${ECHO_T}$ac_header_compiler" >&6
22407
22408# Is the header present?
22409echo "$as_me:$LINENO: checking $ac_header presence" >&5
22410echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22411cat >conftest.$ac_ext <<_ACEOF
22412/* confdefs.h.  */
22413_ACEOF
22414cat confdefs.h >>conftest.$ac_ext
22415cat >>conftest.$ac_ext <<_ACEOF
22416/* end confdefs.h.  */
22417#include <$ac_header>
22418_ACEOF
22419if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22420  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22421  ac_status=$?
22422  grep -v '^ *+' conftest.er1 >conftest.err
22423  rm -f conftest.er1
22424  cat conftest.err >&5
22425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22426  (exit $ac_status); } >/dev/null; then
22427  if test -s conftest.err; then
22428    ac_cpp_err=$ac_cxx_preproc_warn_flag
22429    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
22430  else
22431    ac_cpp_err=
22432  fi
22433else
22434  ac_cpp_err=yes
22435fi
22436if test -z "$ac_cpp_err"; then
22437  ac_header_preproc=yes
22438else
22439  echo "$as_me: failed program was:" >&5
22440sed 's/^/| /' conftest.$ac_ext >&5
22441
22442  ac_header_preproc=no
22443fi
22444rm -f conftest.err conftest.$ac_ext
22445echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22446echo "${ECHO_T}$ac_header_preproc" >&6
22447
22448# So?  What about this header?
22449case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22450  yes:no: )
22451    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22452echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22453    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22454echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22455    ac_header_preproc=yes
22456    ;;
22457  no:yes:* )
22458    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22459echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22460    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22461echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22462    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22463echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22464    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22465echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22466    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22467echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22468    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22469echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22470    (
22471      cat <<\_ASBOX
22472## ---------------------------------------------------- ##
22473## Report this to http://projects.coin-or.org/CoinUtils ##
22474## ---------------------------------------------------- ##
22475_ASBOX
22476    ) |
22477      sed "s/^/$as_me: WARNING:     /" >&2
22478    ;;
22479esac
22480echo "$as_me:$LINENO: checking for $ac_header" >&5
22481echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22482if eval "test \"\${$as_ac_Header+set}\" = set"; then
22483  echo $ECHO_N "(cached) $ECHO_C" >&6
22484else
22485  eval "$as_ac_Header=\$ac_header_preproc"
22486fi
22487echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22488echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22489
22490fi
22491if test `eval echo '${'$as_ac_Header'}'` = yes; then
22492  cat >>confdefs.h <<_ACEOF
22493#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22494_ACEOF
22495
22496fi
22497
22498done
22499
22500
22501if test "$ac_cv_header_cfloat" != "yes"; then
22502  #if test x"" = x; then
22503#  hdr="#include <float.h>"
22504#else
22505#  hdr=""
22506#fi
22507#AC_CHECK_HEADERS([float.h],[],[],[$hdr])
22508
22509for ac_header in float.h
22510do
22511as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22512if eval "test \"\${$as_ac_Header+set}\" = set"; then
22513  echo "$as_me:$LINENO: checking for $ac_header" >&5
22514echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22515if eval "test \"\${$as_ac_Header+set}\" = set"; then
22516  echo $ECHO_N "(cached) $ECHO_C" >&6
22517fi
22518echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22519echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22520else
22521  # Is the header compilable?
22522echo "$as_me:$LINENO: checking $ac_header usability" >&5
22523echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22524cat >conftest.$ac_ext <<_ACEOF
22525/* confdefs.h.  */
22526_ACEOF
22527cat confdefs.h >>conftest.$ac_ext
22528cat >>conftest.$ac_ext <<_ACEOF
22529/* end confdefs.h.  */
22530$ac_includes_default
22531#include <$ac_header>
22532_ACEOF
22533rm -f conftest.$ac_objext
22534if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22535  (eval $ac_compile) 2>conftest.er1
22536  ac_status=$?
22537  grep -v '^ *+' conftest.er1 >conftest.err
22538  rm -f conftest.er1
22539  cat conftest.err >&5
22540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22541  (exit $ac_status); } &&
22542	 { ac_try='test -z "$ac_cxx_werror_flag"
22543			 || test ! -s conftest.err'
22544  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22545  (eval $ac_try) 2>&5
22546  ac_status=$?
22547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22548  (exit $ac_status); }; } &&
22549	 { ac_try='test -s conftest.$ac_objext'
22550  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22551  (eval $ac_try) 2>&5
22552  ac_status=$?
22553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22554  (exit $ac_status); }; }; then
22555  ac_header_compiler=yes
22556else
22557  echo "$as_me: failed program was:" >&5
22558sed 's/^/| /' conftest.$ac_ext >&5
22559
22560ac_header_compiler=no
22561fi
22562rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22563echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22564echo "${ECHO_T}$ac_header_compiler" >&6
22565
22566# Is the header present?
22567echo "$as_me:$LINENO: checking $ac_header presence" >&5
22568echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22569cat >conftest.$ac_ext <<_ACEOF
22570/* confdefs.h.  */
22571_ACEOF
22572cat confdefs.h >>conftest.$ac_ext
22573cat >>conftest.$ac_ext <<_ACEOF
22574/* end confdefs.h.  */
22575#include <$ac_header>
22576_ACEOF
22577if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22578  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22579  ac_status=$?
22580  grep -v '^ *+' conftest.er1 >conftest.err
22581  rm -f conftest.er1
22582  cat conftest.err >&5
22583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22584  (exit $ac_status); } >/dev/null; then
22585  if test -s conftest.err; then
22586    ac_cpp_err=$ac_cxx_preproc_warn_flag
22587    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
22588  else
22589    ac_cpp_err=
22590  fi
22591else
22592  ac_cpp_err=yes
22593fi
22594if test -z "$ac_cpp_err"; then
22595  ac_header_preproc=yes
22596else
22597  echo "$as_me: failed program was:" >&5
22598sed 's/^/| /' conftest.$ac_ext >&5
22599
22600  ac_header_preproc=no
22601fi
22602rm -f conftest.err conftest.$ac_ext
22603echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22604echo "${ECHO_T}$ac_header_preproc" >&6
22605
22606# So?  What about this header?
22607case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22608  yes:no: )
22609    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22610echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22611    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22612echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22613    ac_header_preproc=yes
22614    ;;
22615  no:yes:* )
22616    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22617echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22618    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22619echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22620    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22621echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22622    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22623echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22624    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22625echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22626    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22627echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22628    (
22629      cat <<\_ASBOX
22630## ---------------------------------------------------- ##
22631## Report this to http://projects.coin-or.org/CoinUtils ##
22632## ---------------------------------------------------- ##
22633_ASBOX
22634    ) |
22635      sed "s/^/$as_me: WARNING:     /" >&2
22636    ;;
22637esac
22638echo "$as_me:$LINENO: checking for $ac_header" >&5
22639echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22640if eval "test \"\${$as_ac_Header+set}\" = set"; then
22641  echo $ECHO_N "(cached) $ECHO_C" >&6
22642else
22643  eval "$as_ac_Header=\$ac_header_preproc"
22644fi
22645echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22646echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22647
22648fi
22649if test `eval echo '${'$as_ac_Header'}'` = yes; then
22650  cat >>confdefs.h <<_ACEOF
22651#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22652_ACEOF
22653
22654fi
22655
22656done
22657
22658
22659fi
22660ac_ext=cc
22661ac_cpp='$CXXCPP $CPPFLAGS'
22662ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22663ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22664ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22665
22666
22667ac_ext=cc
22668ac_cpp='$CXXCPP $CPPFLAGS'
22669ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22670ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22671ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22672
22673#if test x"" = x; then
22674#  hdr="#include <cieeefp>"
22675#else
22676#  hdr=""
22677#fi
22678#AC_CHECK_HEADERS([cieeefp],[],[],[$hdr])
22679
22680for ac_header in cieeefp
22681do
22682as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22683if eval "test \"\${$as_ac_Header+set}\" = set"; then
22684  echo "$as_me:$LINENO: checking for $ac_header" >&5
22685echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22686if eval "test \"\${$as_ac_Header+set}\" = set"; then
22687  echo $ECHO_N "(cached) $ECHO_C" >&6
22688fi
22689echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22690echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22691else
22692  # Is the header compilable?
22693echo "$as_me:$LINENO: checking $ac_header usability" >&5
22694echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22695cat >conftest.$ac_ext <<_ACEOF
22696/* confdefs.h.  */
22697_ACEOF
22698cat confdefs.h >>conftest.$ac_ext
22699cat >>conftest.$ac_ext <<_ACEOF
22700/* end confdefs.h.  */
22701$ac_includes_default
22702#include <$ac_header>
22703_ACEOF
22704rm -f conftest.$ac_objext
22705if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22706  (eval $ac_compile) 2>conftest.er1
22707  ac_status=$?
22708  grep -v '^ *+' conftest.er1 >conftest.err
22709  rm -f conftest.er1
22710  cat conftest.err >&5
22711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22712  (exit $ac_status); } &&
22713	 { ac_try='test -z "$ac_cxx_werror_flag"
22714			 || test ! -s conftest.err'
22715  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22716  (eval $ac_try) 2>&5
22717  ac_status=$?
22718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22719  (exit $ac_status); }; } &&
22720	 { ac_try='test -s conftest.$ac_objext'
22721  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22722  (eval $ac_try) 2>&5
22723  ac_status=$?
22724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22725  (exit $ac_status); }; }; then
22726  ac_header_compiler=yes
22727else
22728  echo "$as_me: failed program was:" >&5
22729sed 's/^/| /' conftest.$ac_ext >&5
22730
22731ac_header_compiler=no
22732fi
22733rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22734echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22735echo "${ECHO_T}$ac_header_compiler" >&6
22736
22737# Is the header present?
22738echo "$as_me:$LINENO: checking $ac_header presence" >&5
22739echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22740cat >conftest.$ac_ext <<_ACEOF
22741/* confdefs.h.  */
22742_ACEOF
22743cat confdefs.h >>conftest.$ac_ext
22744cat >>conftest.$ac_ext <<_ACEOF
22745/* end confdefs.h.  */
22746#include <$ac_header>
22747_ACEOF
22748if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22749  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22750  ac_status=$?
22751  grep -v '^ *+' conftest.er1 >conftest.err
22752  rm -f conftest.er1
22753  cat conftest.err >&5
22754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22755  (exit $ac_status); } >/dev/null; then
22756  if test -s conftest.err; then
22757    ac_cpp_err=$ac_cxx_preproc_warn_flag
22758    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
22759  else
22760    ac_cpp_err=
22761  fi
22762else
22763  ac_cpp_err=yes
22764fi
22765if test -z "$ac_cpp_err"; then
22766  ac_header_preproc=yes
22767else
22768  echo "$as_me: failed program was:" >&5
22769sed 's/^/| /' conftest.$ac_ext >&5
22770
22771  ac_header_preproc=no
22772fi
22773rm -f conftest.err conftest.$ac_ext
22774echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22775echo "${ECHO_T}$ac_header_preproc" >&6
22776
22777# So?  What about this header?
22778case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22779  yes:no: )
22780    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22781echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22782    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22783echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22784    ac_header_preproc=yes
22785    ;;
22786  no:yes:* )
22787    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22788echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22789    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22790echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22791    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22792echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22793    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22794echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22795    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22796echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22797    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22798echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22799    (
22800      cat <<\_ASBOX
22801## ---------------------------------------------------- ##
22802## Report this to http://projects.coin-or.org/CoinUtils ##
22803## ---------------------------------------------------- ##
22804_ASBOX
22805    ) |
22806      sed "s/^/$as_me: WARNING:     /" >&2
22807    ;;
22808esac
22809echo "$as_me:$LINENO: checking for $ac_header" >&5
22810echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22811if eval "test \"\${$as_ac_Header+set}\" = set"; then
22812  echo $ECHO_N "(cached) $ECHO_C" >&6
22813else
22814  eval "$as_ac_Header=\$ac_header_preproc"
22815fi
22816echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22817echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22818
22819fi
22820if test `eval echo '${'$as_ac_Header'}'` = yes; then
22821  cat >>confdefs.h <<_ACEOF
22822#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22823_ACEOF
22824
22825fi
22826
22827done
22828
22829
22830if test "$ac_cv_header_cieeefp" != "yes"; then
22831  #if test x"" = x; then
22832#  hdr="#include <ieeefp.h>"
22833#else
22834#  hdr=""
22835#fi
22836#AC_CHECK_HEADERS([ieeefp.h],[],[],[$hdr])
22837
22838for ac_header in ieeefp.h
22839do
22840as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22841if eval "test \"\${$as_ac_Header+set}\" = set"; then
22842  echo "$as_me:$LINENO: checking for $ac_header" >&5
22843echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22844if eval "test \"\${$as_ac_Header+set}\" = set"; then
22845  echo $ECHO_N "(cached) $ECHO_C" >&6
22846fi
22847echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22848echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22849else
22850  # Is the header compilable?
22851echo "$as_me:$LINENO: checking $ac_header usability" >&5
22852echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22853cat >conftest.$ac_ext <<_ACEOF
22854/* confdefs.h.  */
22855_ACEOF
22856cat confdefs.h >>conftest.$ac_ext
22857cat >>conftest.$ac_ext <<_ACEOF
22858/* end confdefs.h.  */
22859$ac_includes_default
22860#include <$ac_header>
22861_ACEOF
22862rm -f conftest.$ac_objext
22863if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22864  (eval $ac_compile) 2>conftest.er1
22865  ac_status=$?
22866  grep -v '^ *+' conftest.er1 >conftest.err
22867  rm -f conftest.er1
22868  cat conftest.err >&5
22869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22870  (exit $ac_status); } &&
22871	 { ac_try='test -z "$ac_cxx_werror_flag"
22872			 || test ! -s conftest.err'
22873  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22874  (eval $ac_try) 2>&5
22875  ac_status=$?
22876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22877  (exit $ac_status); }; } &&
22878	 { ac_try='test -s conftest.$ac_objext'
22879  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22880  (eval $ac_try) 2>&5
22881  ac_status=$?
22882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22883  (exit $ac_status); }; }; then
22884  ac_header_compiler=yes
22885else
22886  echo "$as_me: failed program was:" >&5
22887sed 's/^/| /' conftest.$ac_ext >&5
22888
22889ac_header_compiler=no
22890fi
22891rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22892echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22893echo "${ECHO_T}$ac_header_compiler" >&6
22894
22895# Is the header present?
22896echo "$as_me:$LINENO: checking $ac_header presence" >&5
22897echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22898cat >conftest.$ac_ext <<_ACEOF
22899/* confdefs.h.  */
22900_ACEOF
22901cat confdefs.h >>conftest.$ac_ext
22902cat >>conftest.$ac_ext <<_ACEOF
22903/* end confdefs.h.  */
22904#include <$ac_header>
22905_ACEOF
22906if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22907  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22908  ac_status=$?
22909  grep -v '^ *+' conftest.er1 >conftest.err
22910  rm -f conftest.er1
22911  cat conftest.err >&5
22912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22913  (exit $ac_status); } >/dev/null; then
22914  if test -s conftest.err; then
22915    ac_cpp_err=$ac_cxx_preproc_warn_flag
22916    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
22917  else
22918    ac_cpp_err=
22919  fi
22920else
22921  ac_cpp_err=yes
22922fi
22923if test -z "$ac_cpp_err"; then
22924  ac_header_preproc=yes
22925else
22926  echo "$as_me: failed program was:" >&5
22927sed 's/^/| /' conftest.$ac_ext >&5
22928
22929  ac_header_preproc=no
22930fi
22931rm -f conftest.err conftest.$ac_ext
22932echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22933echo "${ECHO_T}$ac_header_preproc" >&6
22934
22935# So?  What about this header?
22936case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22937  yes:no: )
22938    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22939echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22940    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22941echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22942    ac_header_preproc=yes
22943    ;;
22944  no:yes:* )
22945    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22946echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22947    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22948echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22949    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22950echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22951    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22952echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22953    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22954echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22955    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22956echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22957    (
22958      cat <<\_ASBOX
22959## ---------------------------------------------------- ##
22960## Report this to http://projects.coin-or.org/CoinUtils ##
22961## ---------------------------------------------------- ##
22962_ASBOX
22963    ) |
22964      sed "s/^/$as_me: WARNING:     /" >&2
22965    ;;
22966esac
22967echo "$as_me:$LINENO: checking for $ac_header" >&5
22968echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22969if eval "test \"\${$as_ac_Header+set}\" = set"; then
22970  echo $ECHO_N "(cached) $ECHO_C" >&6
22971else
22972  eval "$as_ac_Header=\$ac_header_preproc"
22973fi
22974echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22975echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22976
22977fi
22978if test `eval echo '${'$as_ac_Header'}'` = yes; then
22979  cat >>confdefs.h <<_ACEOF
22980#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22981_ACEOF
22982
22983fi
22984
22985done
22986
22987
22988fi
22989ac_ext=cc
22990ac_cpp='$CXXCPP $CPPFLAGS'
22991ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22992ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22993ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22994
22995
22996
22997COIN_C_FINITE=
22998echo "$as_me:$LINENO: checking whether isfinite is declared" >&5
22999echo $ECHO_N "checking whether isfinite is declared... $ECHO_C" >&6
23000if test "${ac_cv_have_decl_isfinite+set}" = set; then
23001  echo $ECHO_N "(cached) $ECHO_C" >&6
23002else
23003  cat >conftest.$ac_ext <<_ACEOF
23004/* confdefs.h.  */
23005_ACEOF
23006cat confdefs.h >>conftest.$ac_ext
23007cat >>conftest.$ac_ext <<_ACEOF
23008/* end confdefs.h.  */
23009
23010#ifdef HAVE_CMATH
23011# include <cmath>
23012#else
23013# ifdef HAVE_MATH_H
23014#  include <math.h>
23015# endif
23016#endif
23017#ifdef HAVE_CFLOAT
23018# include <cfloat>
23019#else
23020# ifdef HAVE_FLOAT_H
23021#  include <float.h>
23022# endif
23023#endif
23024#ifdef HAVE_CIEEEFP
23025# include <cieeefp>
23026#else
23027# ifdef HAVE_IEEEFP_H
23028#  include <ieeefp.h>
23029# endif
23030#endif
23031
23032#ifdef F77_DUMMY_MAIN
23033
23034#  ifdef __cplusplus
23035     extern "C"
23036#  endif
23037   int F77_DUMMY_MAIN() { return 1; }
23038
23039#endif
23040int
23041main ()
23042{
23043#ifndef isfinite
23044  char *p = (char *) isfinite;
23045#endif
23046
23047  ;
23048  return 0;
23049}
23050_ACEOF
23051rm -f conftest.$ac_objext
23052if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23053  (eval $ac_compile) 2>conftest.er1
23054  ac_status=$?
23055  grep -v '^ *+' conftest.er1 >conftest.err
23056  rm -f conftest.er1
23057  cat conftest.err >&5
23058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23059  (exit $ac_status); } &&
23060	 { ac_try='test -z "$ac_cxx_werror_flag"
23061			 || test ! -s conftest.err'
23062  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23063  (eval $ac_try) 2>&5
23064  ac_status=$?
23065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23066  (exit $ac_status); }; } &&
23067	 { ac_try='test -s conftest.$ac_objext'
23068  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23069  (eval $ac_try) 2>&5
23070  ac_status=$?
23071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23072  (exit $ac_status); }; }; then
23073  ac_cv_have_decl_isfinite=yes
23074else
23075  echo "$as_me: failed program was:" >&5
23076sed 's/^/| /' conftest.$ac_ext >&5
23077
23078ac_cv_have_decl_isfinite=no
23079fi
23080rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23081fi
23082echo "$as_me:$LINENO: result: $ac_cv_have_decl_isfinite" >&5
23083echo "${ECHO_T}$ac_cv_have_decl_isfinite" >&6
23084if test $ac_cv_have_decl_isfinite = yes; then
23085  COIN_C_FINITE=isfinite
23086fi
23087
23088if test -z "$COIN_C_FINITE"; then
23089  echo "$as_me:$LINENO: checking whether finite is declared" >&5
23090echo $ECHO_N "checking whether finite is declared... $ECHO_C" >&6
23091if test "${ac_cv_have_decl_finite+set}" = set; then
23092  echo $ECHO_N "(cached) $ECHO_C" >&6
23093else
23094  cat >conftest.$ac_ext <<_ACEOF
23095/* confdefs.h.  */
23096_ACEOF
23097cat confdefs.h >>conftest.$ac_ext
23098cat >>conftest.$ac_ext <<_ACEOF
23099/* end confdefs.h.  */
23100
23101#ifdef HAVE_CMATH
23102# include <cmath>
23103#else
23104# ifdef HAVE_MATH_H
23105#  include <math.h>
23106# endif
23107#endif
23108#ifdef HAVE_CFLOAT
23109# include <cfloat>
23110#else
23111# ifdef HAVE_FLOAT_H
23112#  include <float.h>
23113# endif
23114#endif
23115#ifdef HAVE_CIEEEFP
23116# include <cieeefp>
23117#else
23118# ifdef HAVE_IEEEFP_H
23119#  include <ieeefp.h>
23120# endif
23121#endif
23122
23123#ifdef F77_DUMMY_MAIN
23124
23125#  ifdef __cplusplus
23126     extern "C"
23127#  endif
23128   int F77_DUMMY_MAIN() { return 1; }
23129
23130#endif
23131int
23132main ()
23133{
23134#ifndef finite
23135  char *p = (char *) finite;
23136#endif
23137
23138  ;
23139  return 0;
23140}
23141_ACEOF
23142rm -f conftest.$ac_objext
23143if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23144  (eval $ac_compile) 2>conftest.er1
23145  ac_status=$?
23146  grep -v '^ *+' conftest.er1 >conftest.err
23147  rm -f conftest.er1
23148  cat conftest.err >&5
23149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23150  (exit $ac_status); } &&
23151	 { ac_try='test -z "$ac_cxx_werror_flag"
23152			 || test ! -s conftest.err'
23153  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23154  (eval $ac_try) 2>&5
23155  ac_status=$?
23156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23157  (exit $ac_status); }; } &&
23158	 { ac_try='test -s conftest.$ac_objext'
23159  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23160  (eval $ac_try) 2>&5
23161  ac_status=$?
23162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23163  (exit $ac_status); }; }; then
23164  ac_cv_have_decl_finite=yes
23165else
23166  echo "$as_me: failed program was:" >&5
23167sed 's/^/| /' conftest.$ac_ext >&5
23168
23169ac_cv_have_decl_finite=no
23170fi
23171rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23172fi
23173echo "$as_me:$LINENO: result: $ac_cv_have_decl_finite" >&5
23174echo "${ECHO_T}$ac_cv_have_decl_finite" >&6
23175if test $ac_cv_have_decl_finite = yes; then
23176  COIN_C_FINITE=finite
23177fi
23178
23179  if test -z "$COIN_C_FINITE"; then
23180    echo "$as_me:$LINENO: checking whether _finite is declared" >&5
23181echo $ECHO_N "checking whether _finite is declared... $ECHO_C" >&6
23182if test "${ac_cv_have_decl__finite+set}" = set; then
23183  echo $ECHO_N "(cached) $ECHO_C" >&6
23184else
23185  cat >conftest.$ac_ext <<_ACEOF
23186/* confdefs.h.  */
23187_ACEOF
23188cat confdefs.h >>conftest.$ac_ext
23189cat >>conftest.$ac_ext <<_ACEOF
23190/* end confdefs.h.  */
23191
23192#ifdef HAVE_CMATH
23193# include <cmath>
23194#else
23195# ifdef HAVE_MATH_H
23196#  include <math.h>
23197# endif
23198#endif
23199#ifdef HAVE_CFLOAT
23200# include <cfloat>
23201#else
23202# ifdef HAVE_FLOAT_H
23203#  include <float.h>
23204# endif
23205#endif
23206#ifdef HAVE_CIEEEFP
23207# include <cieeefp>
23208#else
23209# ifdef HAVE_IEEEFP_H
23210#  include <ieeefp.h>
23211# endif
23212#endif
23213
23214#ifdef F77_DUMMY_MAIN
23215
23216#  ifdef __cplusplus
23217     extern "C"
23218#  endif
23219   int F77_DUMMY_MAIN() { return 1; }
23220
23221#endif
23222int
23223main ()
23224{
23225#ifndef _finite
23226  char *p = (char *) _finite;
23227#endif
23228
23229  ;
23230  return 0;
23231}
23232_ACEOF
23233rm -f conftest.$ac_objext
23234if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23235  (eval $ac_compile) 2>conftest.er1
23236  ac_status=$?
23237  grep -v '^ *+' conftest.er1 >conftest.err
23238  rm -f conftest.er1
23239  cat conftest.err >&5
23240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23241  (exit $ac_status); } &&
23242	 { ac_try='test -z "$ac_cxx_werror_flag"
23243			 || test ! -s conftest.err'
23244  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23245  (eval $ac_try) 2>&5
23246  ac_status=$?
23247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23248  (exit $ac_status); }; } &&
23249	 { ac_try='test -s conftest.$ac_objext'
23250  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23251  (eval $ac_try) 2>&5
23252  ac_status=$?
23253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23254  (exit $ac_status); }; }; then
23255  ac_cv_have_decl__finite=yes
23256else
23257  echo "$as_me: failed program was:" >&5
23258sed 's/^/| /' conftest.$ac_ext >&5
23259
23260ac_cv_have_decl__finite=no
23261fi
23262rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23263fi
23264echo "$as_me:$LINENO: result: $ac_cv_have_decl__finite" >&5
23265echo "${ECHO_T}$ac_cv_have_decl__finite" >&6
23266if test $ac_cv_have_decl__finite = yes; then
23267  COIN_C_FINITE=_finite
23268fi
23269
23270  fi
23271fi
23272if test -z "$COIN_C_FINITE"; then
23273  { echo "$as_me:$LINENO: WARNING: Cannot find C-function for checking Inf." >&5
23274echo "$as_me: WARNING: Cannot find C-function for checking Inf." >&2;}
23275else
23276
23277cat >>confdefs.h <<_ACEOF
23278#define COIN_C_FINITE $COIN_C_FINITE
23279_ACEOF
23280
23281fi
23282
23283ac_ext=c
23284ac_cpp='$CPP $CPPFLAGS'
23285ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23286ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23287ac_compiler_gnu=$ac_cv_c_compiler_gnu
23288
23289
23290
23291
23292ac_ext=cc
23293ac_cpp='$CXXCPP $CPPFLAGS'
23294ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23295ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23296ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23297
23298
23299ac_ext=cc
23300ac_cpp='$CXXCPP $CPPFLAGS'
23301ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23302ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23303ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23304
23305#if test x"" = x; then
23306#  hdr="#include <cmath>"
23307#else
23308#  hdr=""
23309#fi
23310#AC_CHECK_HEADERS([cmath],[],[],[$hdr])
23311
23312for ac_header in cmath
23313do
23314as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23315if eval "test \"\${$as_ac_Header+set}\" = set"; then
23316  echo "$as_me:$LINENO: checking for $ac_header" >&5
23317echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23318if eval "test \"\${$as_ac_Header+set}\" = set"; then
23319  echo $ECHO_N "(cached) $ECHO_C" >&6
23320fi
23321echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23322echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23323else
23324  # Is the header compilable?
23325echo "$as_me:$LINENO: checking $ac_header usability" >&5
23326echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23327cat >conftest.$ac_ext <<_ACEOF
23328/* confdefs.h.  */
23329_ACEOF
23330cat confdefs.h >>conftest.$ac_ext
23331cat >>conftest.$ac_ext <<_ACEOF
23332/* end confdefs.h.  */
23333$ac_includes_default
23334#include <$ac_header>
23335_ACEOF
23336rm -f conftest.$ac_objext
23337if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23338  (eval $ac_compile) 2>conftest.er1
23339  ac_status=$?
23340  grep -v '^ *+' conftest.er1 >conftest.err
23341  rm -f conftest.er1
23342  cat conftest.err >&5
23343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23344  (exit $ac_status); } &&
23345	 { ac_try='test -z "$ac_cxx_werror_flag"
23346			 || test ! -s conftest.err'
23347  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23348  (eval $ac_try) 2>&5
23349  ac_status=$?
23350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23351  (exit $ac_status); }; } &&
23352	 { ac_try='test -s conftest.$ac_objext'
23353  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23354  (eval $ac_try) 2>&5
23355  ac_status=$?
23356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23357  (exit $ac_status); }; }; then
23358  ac_header_compiler=yes
23359else
23360  echo "$as_me: failed program was:" >&5
23361sed 's/^/| /' conftest.$ac_ext >&5
23362
23363ac_header_compiler=no
23364fi
23365rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23366echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23367echo "${ECHO_T}$ac_header_compiler" >&6
23368
23369# Is the header present?
23370echo "$as_me:$LINENO: checking $ac_header presence" >&5
23371echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23372cat >conftest.$ac_ext <<_ACEOF
23373/* confdefs.h.  */
23374_ACEOF
23375cat confdefs.h >>conftest.$ac_ext
23376cat >>conftest.$ac_ext <<_ACEOF
23377/* end confdefs.h.  */
23378#include <$ac_header>
23379_ACEOF
23380if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23381  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23382  ac_status=$?
23383  grep -v '^ *+' conftest.er1 >conftest.err
23384  rm -f conftest.er1
23385  cat conftest.err >&5
23386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23387  (exit $ac_status); } >/dev/null; then
23388  if test -s conftest.err; then
23389    ac_cpp_err=$ac_cxx_preproc_warn_flag
23390    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
23391  else
23392    ac_cpp_err=
23393  fi
23394else
23395  ac_cpp_err=yes
23396fi
23397if test -z "$ac_cpp_err"; then
23398  ac_header_preproc=yes
23399else
23400  echo "$as_me: failed program was:" >&5
23401sed 's/^/| /' conftest.$ac_ext >&5
23402
23403  ac_header_preproc=no
23404fi
23405rm -f conftest.err conftest.$ac_ext
23406echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23407echo "${ECHO_T}$ac_header_preproc" >&6
23408
23409# So?  What about this header?
23410case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23411  yes:no: )
23412    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23413echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23414    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23415echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23416    ac_header_preproc=yes
23417    ;;
23418  no:yes:* )
23419    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23420echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23421    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23422echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23423    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23424echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23425    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23426echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23427    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23428echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23429    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23430echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23431    (
23432      cat <<\_ASBOX
23433## ---------------------------------------------------- ##
23434## Report this to http://projects.coin-or.org/CoinUtils ##
23435## ---------------------------------------------------- ##
23436_ASBOX
23437    ) |
23438      sed "s/^/$as_me: WARNING:     /" >&2
23439    ;;
23440esac
23441echo "$as_me:$LINENO: checking for $ac_header" >&5
23442echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23443if eval "test \"\${$as_ac_Header+set}\" = set"; then
23444  echo $ECHO_N "(cached) $ECHO_C" >&6
23445else
23446  eval "$as_ac_Header=\$ac_header_preproc"
23447fi
23448echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23449echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23450
23451fi
23452if test `eval echo '${'$as_ac_Header'}'` = yes; then
23453  cat >>confdefs.h <<_ACEOF
23454#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23455_ACEOF
23456
23457fi
23458
23459done
23460
23461
23462if test "$ac_cv_header_cmath" != "yes"; then
23463  #if test x"" = x; then
23464#  hdr="#include <math.h>"
23465#else
23466#  hdr=""
23467#fi
23468#AC_CHECK_HEADERS([math.h],[],[],[$hdr])
23469
23470for ac_header in math.h
23471do
23472as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23473if eval "test \"\${$as_ac_Header+set}\" = set"; then
23474  echo "$as_me:$LINENO: checking for $ac_header" >&5
23475echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23476if eval "test \"\${$as_ac_Header+set}\" = set"; then
23477  echo $ECHO_N "(cached) $ECHO_C" >&6
23478fi
23479echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23480echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23481else
23482  # Is the header compilable?
23483echo "$as_me:$LINENO: checking $ac_header usability" >&5
23484echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23485cat >conftest.$ac_ext <<_ACEOF
23486/* confdefs.h.  */
23487_ACEOF
23488cat confdefs.h >>conftest.$ac_ext
23489cat >>conftest.$ac_ext <<_ACEOF
23490/* end confdefs.h.  */
23491$ac_includes_default
23492#include <$ac_header>
23493_ACEOF
23494rm -f conftest.$ac_objext
23495if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23496  (eval $ac_compile) 2>conftest.er1
23497  ac_status=$?
23498  grep -v '^ *+' conftest.er1 >conftest.err
23499  rm -f conftest.er1
23500  cat conftest.err >&5
23501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23502  (exit $ac_status); } &&
23503	 { ac_try='test -z "$ac_cxx_werror_flag"
23504			 || test ! -s conftest.err'
23505  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23506  (eval $ac_try) 2>&5
23507  ac_status=$?
23508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23509  (exit $ac_status); }; } &&
23510	 { ac_try='test -s conftest.$ac_objext'
23511  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23512  (eval $ac_try) 2>&5
23513  ac_status=$?
23514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23515  (exit $ac_status); }; }; then
23516  ac_header_compiler=yes
23517else
23518  echo "$as_me: failed program was:" >&5
23519sed 's/^/| /' conftest.$ac_ext >&5
23520
23521ac_header_compiler=no
23522fi
23523rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23524echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23525echo "${ECHO_T}$ac_header_compiler" >&6
23526
23527# Is the header present?
23528echo "$as_me:$LINENO: checking $ac_header presence" >&5
23529echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23530cat >conftest.$ac_ext <<_ACEOF
23531/* confdefs.h.  */
23532_ACEOF
23533cat confdefs.h >>conftest.$ac_ext
23534cat >>conftest.$ac_ext <<_ACEOF
23535/* end confdefs.h.  */
23536#include <$ac_header>
23537_ACEOF
23538if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23539  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23540  ac_status=$?
23541  grep -v '^ *+' conftest.er1 >conftest.err
23542  rm -f conftest.er1
23543  cat conftest.err >&5
23544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23545  (exit $ac_status); } >/dev/null; then
23546  if test -s conftest.err; then
23547    ac_cpp_err=$ac_cxx_preproc_warn_flag
23548    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
23549  else
23550    ac_cpp_err=
23551  fi
23552else
23553  ac_cpp_err=yes
23554fi
23555if test -z "$ac_cpp_err"; then
23556  ac_header_preproc=yes
23557else
23558  echo "$as_me: failed program was:" >&5
23559sed 's/^/| /' conftest.$ac_ext >&5
23560
23561  ac_header_preproc=no
23562fi
23563rm -f conftest.err conftest.$ac_ext
23564echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23565echo "${ECHO_T}$ac_header_preproc" >&6
23566
23567# So?  What about this header?
23568case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23569  yes:no: )
23570    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23571echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23572    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23573echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23574    ac_header_preproc=yes
23575    ;;
23576  no:yes:* )
23577    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23578echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23579    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23580echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23581    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23582echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23583    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23584echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23585    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23586echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23587    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23588echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23589    (
23590      cat <<\_ASBOX
23591## ---------------------------------------------------- ##
23592## Report this to http://projects.coin-or.org/CoinUtils ##
23593## ---------------------------------------------------- ##
23594_ASBOX
23595    ) |
23596      sed "s/^/$as_me: WARNING:     /" >&2
23597    ;;
23598esac
23599echo "$as_me:$LINENO: checking for $ac_header" >&5
23600echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23601if eval "test \"\${$as_ac_Header+set}\" = set"; then
23602  echo $ECHO_N "(cached) $ECHO_C" >&6
23603else
23604  eval "$as_ac_Header=\$ac_header_preproc"
23605fi
23606echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23607echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23608
23609fi
23610if test `eval echo '${'$as_ac_Header'}'` = yes; then
23611  cat >>confdefs.h <<_ACEOF
23612#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23613_ACEOF
23614
23615fi
23616
23617done
23618
23619
23620fi
23621ac_ext=cc
23622ac_cpp='$CXXCPP $CPPFLAGS'
23623ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23624ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23625ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23626
23627
23628ac_ext=cc
23629ac_cpp='$CXXCPP $CPPFLAGS'
23630ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23631ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23632ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23633
23634#if test x"" = x; then
23635#  hdr="#include <cfloat>"
23636#else
23637#  hdr=""
23638#fi
23639#AC_CHECK_HEADERS([cfloat],[],[],[$hdr])
23640
23641for ac_header in cfloat
23642do
23643as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23644if eval "test \"\${$as_ac_Header+set}\" = set"; then
23645  echo "$as_me:$LINENO: checking for $ac_header" >&5
23646echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23647if eval "test \"\${$as_ac_Header+set}\" = set"; then
23648  echo $ECHO_N "(cached) $ECHO_C" >&6
23649fi
23650echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23651echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23652else
23653  # Is the header compilable?
23654echo "$as_me:$LINENO: checking $ac_header usability" >&5
23655echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23656cat >conftest.$ac_ext <<_ACEOF
23657/* confdefs.h.  */
23658_ACEOF
23659cat confdefs.h >>conftest.$ac_ext
23660cat >>conftest.$ac_ext <<_ACEOF
23661/* end confdefs.h.  */
23662$ac_includes_default
23663#include <$ac_header>
23664_ACEOF
23665rm -f conftest.$ac_objext
23666if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23667  (eval $ac_compile) 2>conftest.er1
23668  ac_status=$?
23669  grep -v '^ *+' conftest.er1 >conftest.err
23670  rm -f conftest.er1
23671  cat conftest.err >&5
23672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23673  (exit $ac_status); } &&
23674	 { ac_try='test -z "$ac_cxx_werror_flag"
23675			 || test ! -s conftest.err'
23676  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23677  (eval $ac_try) 2>&5
23678  ac_status=$?
23679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23680  (exit $ac_status); }; } &&
23681	 { ac_try='test -s conftest.$ac_objext'
23682  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23683  (eval $ac_try) 2>&5
23684  ac_status=$?
23685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23686  (exit $ac_status); }; }; then
23687  ac_header_compiler=yes
23688else
23689  echo "$as_me: failed program was:" >&5
23690sed 's/^/| /' conftest.$ac_ext >&5
23691
23692ac_header_compiler=no
23693fi
23694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23695echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23696echo "${ECHO_T}$ac_header_compiler" >&6
23697
23698# Is the header present?
23699echo "$as_me:$LINENO: checking $ac_header presence" >&5
23700echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23701cat >conftest.$ac_ext <<_ACEOF
23702/* confdefs.h.  */
23703_ACEOF
23704cat confdefs.h >>conftest.$ac_ext
23705cat >>conftest.$ac_ext <<_ACEOF
23706/* end confdefs.h.  */
23707#include <$ac_header>
23708_ACEOF
23709if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23710  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23711  ac_status=$?
23712  grep -v '^ *+' conftest.er1 >conftest.err
23713  rm -f conftest.er1
23714  cat conftest.err >&5
23715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23716  (exit $ac_status); } >/dev/null; then
23717  if test -s conftest.err; then
23718    ac_cpp_err=$ac_cxx_preproc_warn_flag
23719    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
23720  else
23721    ac_cpp_err=
23722  fi
23723else
23724  ac_cpp_err=yes
23725fi
23726if test -z "$ac_cpp_err"; then
23727  ac_header_preproc=yes
23728else
23729  echo "$as_me: failed program was:" >&5
23730sed 's/^/| /' conftest.$ac_ext >&5
23731
23732  ac_header_preproc=no
23733fi
23734rm -f conftest.err conftest.$ac_ext
23735echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23736echo "${ECHO_T}$ac_header_preproc" >&6
23737
23738# So?  What about this header?
23739case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23740  yes:no: )
23741    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23742echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23743    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23744echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23745    ac_header_preproc=yes
23746    ;;
23747  no:yes:* )
23748    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23749echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23750    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23751echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23752    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23753echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23754    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23755echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23756    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23757echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23758    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23759echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23760    (
23761      cat <<\_ASBOX
23762## ---------------------------------------------------- ##
23763## Report this to http://projects.coin-or.org/CoinUtils ##
23764## ---------------------------------------------------- ##
23765_ASBOX
23766    ) |
23767      sed "s/^/$as_me: WARNING:     /" >&2
23768    ;;
23769esac
23770echo "$as_me:$LINENO: checking for $ac_header" >&5
23771echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23772if eval "test \"\${$as_ac_Header+set}\" = set"; then
23773  echo $ECHO_N "(cached) $ECHO_C" >&6
23774else
23775  eval "$as_ac_Header=\$ac_header_preproc"
23776fi
23777echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23778echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23779
23780fi
23781if test `eval echo '${'$as_ac_Header'}'` = yes; then
23782  cat >>confdefs.h <<_ACEOF
23783#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23784_ACEOF
23785
23786fi
23787
23788done
23789
23790
23791if test "$ac_cv_header_cfloat" != "yes"; then
23792  #if test x"" = x; then
23793#  hdr="#include <float.h>"
23794#else
23795#  hdr=""
23796#fi
23797#AC_CHECK_HEADERS([float.h],[],[],[$hdr])
23798
23799for ac_header in float.h
23800do
23801as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23802if eval "test \"\${$as_ac_Header+set}\" = set"; then
23803  echo "$as_me:$LINENO: checking for $ac_header" >&5
23804echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23805if eval "test \"\${$as_ac_Header+set}\" = set"; then
23806  echo $ECHO_N "(cached) $ECHO_C" >&6
23807fi
23808echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23809echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23810else
23811  # Is the header compilable?
23812echo "$as_me:$LINENO: checking $ac_header usability" >&5
23813echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23814cat >conftest.$ac_ext <<_ACEOF
23815/* confdefs.h.  */
23816_ACEOF
23817cat confdefs.h >>conftest.$ac_ext
23818cat >>conftest.$ac_ext <<_ACEOF
23819/* end confdefs.h.  */
23820$ac_includes_default
23821#include <$ac_header>
23822_ACEOF
23823rm -f conftest.$ac_objext
23824if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23825  (eval $ac_compile) 2>conftest.er1
23826  ac_status=$?
23827  grep -v '^ *+' conftest.er1 >conftest.err
23828  rm -f conftest.er1
23829  cat conftest.err >&5
23830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23831  (exit $ac_status); } &&
23832	 { ac_try='test -z "$ac_cxx_werror_flag"
23833			 || test ! -s conftest.err'
23834  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23835  (eval $ac_try) 2>&5
23836  ac_status=$?
23837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23838  (exit $ac_status); }; } &&
23839	 { ac_try='test -s conftest.$ac_objext'
23840  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23841  (eval $ac_try) 2>&5
23842  ac_status=$?
23843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23844  (exit $ac_status); }; }; then
23845  ac_header_compiler=yes
23846else
23847  echo "$as_me: failed program was:" >&5
23848sed 's/^/| /' conftest.$ac_ext >&5
23849
23850ac_header_compiler=no
23851fi
23852rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23853echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23854echo "${ECHO_T}$ac_header_compiler" >&6
23855
23856# Is the header present?
23857echo "$as_me:$LINENO: checking $ac_header presence" >&5
23858echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23859cat >conftest.$ac_ext <<_ACEOF
23860/* confdefs.h.  */
23861_ACEOF
23862cat confdefs.h >>conftest.$ac_ext
23863cat >>conftest.$ac_ext <<_ACEOF
23864/* end confdefs.h.  */
23865#include <$ac_header>
23866_ACEOF
23867if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23868  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23869  ac_status=$?
23870  grep -v '^ *+' conftest.er1 >conftest.err
23871  rm -f conftest.er1
23872  cat conftest.err >&5
23873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23874  (exit $ac_status); } >/dev/null; then
23875  if test -s conftest.err; then
23876    ac_cpp_err=$ac_cxx_preproc_warn_flag
23877    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
23878  else
23879    ac_cpp_err=
23880  fi
23881else
23882  ac_cpp_err=yes
23883fi
23884if test -z "$ac_cpp_err"; then
23885  ac_header_preproc=yes
23886else
23887  echo "$as_me: failed program was:" >&5
23888sed 's/^/| /' conftest.$ac_ext >&5
23889
23890  ac_header_preproc=no
23891fi
23892rm -f conftest.err conftest.$ac_ext
23893echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23894echo "${ECHO_T}$ac_header_preproc" >&6
23895
23896# So?  What about this header?
23897case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23898  yes:no: )
23899    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23900echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23901    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23902echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23903    ac_header_preproc=yes
23904    ;;
23905  no:yes:* )
23906    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23907echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23908    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23909echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23910    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23911echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23912    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23913echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23914    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23915echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23916    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23917echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23918    (
23919      cat <<\_ASBOX
23920## ---------------------------------------------------- ##
23921## Report this to http://projects.coin-or.org/CoinUtils ##
23922## ---------------------------------------------------- ##
23923_ASBOX
23924    ) |
23925      sed "s/^/$as_me: WARNING:     /" >&2
23926    ;;
23927esac
23928echo "$as_me:$LINENO: checking for $ac_header" >&5
23929echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23930if eval "test \"\${$as_ac_Header+set}\" = set"; then
23931  echo $ECHO_N "(cached) $ECHO_C" >&6
23932else
23933  eval "$as_ac_Header=\$ac_header_preproc"
23934fi
23935echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23936echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23937
23938fi
23939if test `eval echo '${'$as_ac_Header'}'` = yes; then
23940  cat >>confdefs.h <<_ACEOF
23941#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23942_ACEOF
23943
23944fi
23945
23946done
23947
23948
23949fi
23950ac_ext=cc
23951ac_cpp='$CXXCPP $CPPFLAGS'
23952ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23953ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23954ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23955
23956
23957ac_ext=cc
23958ac_cpp='$CXXCPP $CPPFLAGS'
23959ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23960ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23961ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23962
23963#if test x"" = x; then
23964#  hdr="#include <cieeefp>"
23965#else
23966#  hdr=""
23967#fi
23968#AC_CHECK_HEADERS([cieeefp],[],[],[$hdr])
23969
23970for ac_header in cieeefp
23971do
23972as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23973if eval "test \"\${$as_ac_Header+set}\" = set"; then
23974  echo "$as_me:$LINENO: checking for $ac_header" >&5
23975echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23976if eval "test \"\${$as_ac_Header+set}\" = set"; then
23977  echo $ECHO_N "(cached) $ECHO_C" >&6
23978fi
23979echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23980echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23981else
23982  # Is the header compilable?
23983echo "$as_me:$LINENO: checking $ac_header usability" >&5
23984echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23985cat >conftest.$ac_ext <<_ACEOF
23986/* confdefs.h.  */
23987_ACEOF
23988cat confdefs.h >>conftest.$ac_ext
23989cat >>conftest.$ac_ext <<_ACEOF
23990/* end confdefs.h.  */
23991$ac_includes_default
23992#include <$ac_header>
23993_ACEOF
23994rm -f conftest.$ac_objext
23995if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23996  (eval $ac_compile) 2>conftest.er1
23997  ac_status=$?
23998  grep -v '^ *+' conftest.er1 >conftest.err
23999  rm -f conftest.er1
24000  cat conftest.err >&5
24001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24002  (exit $ac_status); } &&
24003	 { ac_try='test -z "$ac_cxx_werror_flag"
24004			 || test ! -s conftest.err'
24005  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24006  (eval $ac_try) 2>&5
24007  ac_status=$?
24008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24009  (exit $ac_status); }; } &&
24010	 { ac_try='test -s conftest.$ac_objext'
24011  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24012  (eval $ac_try) 2>&5
24013  ac_status=$?
24014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24015  (exit $ac_status); }; }; then
24016  ac_header_compiler=yes
24017else
24018  echo "$as_me: failed program was:" >&5
24019sed 's/^/| /' conftest.$ac_ext >&5
24020
24021ac_header_compiler=no
24022fi
24023rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24024echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24025echo "${ECHO_T}$ac_header_compiler" >&6
24026
24027# Is the header present?
24028echo "$as_me:$LINENO: checking $ac_header presence" >&5
24029echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24030cat >conftest.$ac_ext <<_ACEOF
24031/* confdefs.h.  */
24032_ACEOF
24033cat confdefs.h >>conftest.$ac_ext
24034cat >>conftest.$ac_ext <<_ACEOF
24035/* end confdefs.h.  */
24036#include <$ac_header>
24037_ACEOF
24038if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24039  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24040  ac_status=$?
24041  grep -v '^ *+' conftest.er1 >conftest.err
24042  rm -f conftest.er1
24043  cat conftest.err >&5
24044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24045  (exit $ac_status); } >/dev/null; then
24046  if test -s conftest.err; then
24047    ac_cpp_err=$ac_cxx_preproc_warn_flag
24048    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24049  else
24050    ac_cpp_err=
24051  fi
24052else
24053  ac_cpp_err=yes
24054fi
24055if test -z "$ac_cpp_err"; then
24056  ac_header_preproc=yes
24057else
24058  echo "$as_me: failed program was:" >&5
24059sed 's/^/| /' conftest.$ac_ext >&5
24060
24061  ac_header_preproc=no
24062fi
24063rm -f conftest.err conftest.$ac_ext
24064echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24065echo "${ECHO_T}$ac_header_preproc" >&6
24066
24067# So?  What about this header?
24068case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24069  yes:no: )
24070    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24071echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24072    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24073echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24074    ac_header_preproc=yes
24075    ;;
24076  no:yes:* )
24077    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24078echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24079    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24080echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24081    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24082echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24083    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24084echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24085    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24086echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24087    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24088echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24089    (
24090      cat <<\_ASBOX
24091## ---------------------------------------------------- ##
24092## Report this to http://projects.coin-or.org/CoinUtils ##
24093## ---------------------------------------------------- ##
24094_ASBOX
24095    ) |
24096      sed "s/^/$as_me: WARNING:     /" >&2
24097    ;;
24098esac
24099echo "$as_me:$LINENO: checking for $ac_header" >&5
24100echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24101if eval "test \"\${$as_ac_Header+set}\" = set"; then
24102  echo $ECHO_N "(cached) $ECHO_C" >&6
24103else
24104  eval "$as_ac_Header=\$ac_header_preproc"
24105fi
24106echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24107echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24108
24109fi
24110if test `eval echo '${'$as_ac_Header'}'` = yes; then
24111  cat >>confdefs.h <<_ACEOF
24112#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24113_ACEOF
24114
24115fi
24116
24117done
24118
24119
24120if test "$ac_cv_header_cieeefp" != "yes"; then
24121  #if test x"" = x; then
24122#  hdr="#include <ieeefp.h>"
24123#else
24124#  hdr=""
24125#fi
24126#AC_CHECK_HEADERS([ieeefp.h],[],[],[$hdr])
24127
24128for ac_header in ieeefp.h
24129do
24130as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24131if eval "test \"\${$as_ac_Header+set}\" = set"; then
24132  echo "$as_me:$LINENO: checking for $ac_header" >&5
24133echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24134if eval "test \"\${$as_ac_Header+set}\" = set"; then
24135  echo $ECHO_N "(cached) $ECHO_C" >&6
24136fi
24137echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24138echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24139else
24140  # Is the header compilable?
24141echo "$as_me:$LINENO: checking $ac_header usability" >&5
24142echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24143cat >conftest.$ac_ext <<_ACEOF
24144/* confdefs.h.  */
24145_ACEOF
24146cat confdefs.h >>conftest.$ac_ext
24147cat >>conftest.$ac_ext <<_ACEOF
24148/* end confdefs.h.  */
24149$ac_includes_default
24150#include <$ac_header>
24151_ACEOF
24152rm -f conftest.$ac_objext
24153if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24154  (eval $ac_compile) 2>conftest.er1
24155  ac_status=$?
24156  grep -v '^ *+' conftest.er1 >conftest.err
24157  rm -f conftest.er1
24158  cat conftest.err >&5
24159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24160  (exit $ac_status); } &&
24161	 { ac_try='test -z "$ac_cxx_werror_flag"
24162			 || test ! -s conftest.err'
24163  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24164  (eval $ac_try) 2>&5
24165  ac_status=$?
24166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24167  (exit $ac_status); }; } &&
24168	 { ac_try='test -s conftest.$ac_objext'
24169  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24170  (eval $ac_try) 2>&5
24171  ac_status=$?
24172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24173  (exit $ac_status); }; }; then
24174  ac_header_compiler=yes
24175else
24176  echo "$as_me: failed program was:" >&5
24177sed 's/^/| /' conftest.$ac_ext >&5
24178
24179ac_header_compiler=no
24180fi
24181rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24182echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24183echo "${ECHO_T}$ac_header_compiler" >&6
24184
24185# Is the header present?
24186echo "$as_me:$LINENO: checking $ac_header presence" >&5
24187echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24188cat >conftest.$ac_ext <<_ACEOF
24189/* confdefs.h.  */
24190_ACEOF
24191cat confdefs.h >>conftest.$ac_ext
24192cat >>conftest.$ac_ext <<_ACEOF
24193/* end confdefs.h.  */
24194#include <$ac_header>
24195_ACEOF
24196if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24197  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24198  ac_status=$?
24199  grep -v '^ *+' conftest.er1 >conftest.err
24200  rm -f conftest.er1
24201  cat conftest.err >&5
24202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24203  (exit $ac_status); } >/dev/null; then
24204  if test -s conftest.err; then
24205    ac_cpp_err=$ac_cxx_preproc_warn_flag
24206    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24207  else
24208    ac_cpp_err=
24209  fi
24210else
24211  ac_cpp_err=yes
24212fi
24213if test -z "$ac_cpp_err"; then
24214  ac_header_preproc=yes
24215else
24216  echo "$as_me: failed program was:" >&5
24217sed 's/^/| /' conftest.$ac_ext >&5
24218
24219  ac_header_preproc=no
24220fi
24221rm -f conftest.err conftest.$ac_ext
24222echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24223echo "${ECHO_T}$ac_header_preproc" >&6
24224
24225# So?  What about this header?
24226case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24227  yes:no: )
24228    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24229echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24230    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24231echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24232    ac_header_preproc=yes
24233    ;;
24234  no:yes:* )
24235    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24236echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24237    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24238echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24239    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24240echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24241    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24242echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24243    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24244echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24245    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24246echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24247    (
24248      cat <<\_ASBOX
24249## ---------------------------------------------------- ##
24250## Report this to http://projects.coin-or.org/CoinUtils ##
24251## ---------------------------------------------------- ##
24252_ASBOX
24253    ) |
24254      sed "s/^/$as_me: WARNING:     /" >&2
24255    ;;
24256esac
24257echo "$as_me:$LINENO: checking for $ac_header" >&5
24258echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24259if eval "test \"\${$as_ac_Header+set}\" = set"; then
24260  echo $ECHO_N "(cached) $ECHO_C" >&6
24261else
24262  eval "$as_ac_Header=\$ac_header_preproc"
24263fi
24264echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24265echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24266
24267fi
24268if test `eval echo '${'$as_ac_Header'}'` = yes; then
24269  cat >>confdefs.h <<_ACEOF
24270#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24271_ACEOF
24272
24273fi
24274
24275done
24276
24277
24278fi
24279ac_ext=cc
24280ac_cpp='$CXXCPP $CPPFLAGS'
24281ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24282ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24283ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24284
24285
24286
24287COIN_C_ISNAN=
24288echo "$as_me:$LINENO: checking whether isnan is declared" >&5
24289echo $ECHO_N "checking whether isnan is declared... $ECHO_C" >&6
24290if test "${ac_cv_have_decl_isnan+set}" = set; then
24291  echo $ECHO_N "(cached) $ECHO_C" >&6
24292else
24293  cat >conftest.$ac_ext <<_ACEOF
24294/* confdefs.h.  */
24295_ACEOF
24296cat confdefs.h >>conftest.$ac_ext
24297cat >>conftest.$ac_ext <<_ACEOF
24298/* end confdefs.h.  */
24299
24300#ifdef HAVE_CMATH
24301# include <cmath>
24302#else
24303# ifdef HAVE_MATH_H
24304#  include <math.h>
24305# endif
24306#endif
24307#ifdef HAVE_CFLOAT
24308# include <cfloat>
24309#else
24310# ifdef HAVE_FLOAT_H
24311#  include <float.h>
24312# endif
24313#endif
24314#ifdef HAVE_CIEEEFP
24315# include <cieeefp>
24316#else
24317# ifdef HAVE_IEEEFP_H
24318#  include <ieeefp.h>
24319# endif
24320#endif
24321
24322#ifdef F77_DUMMY_MAIN
24323
24324#  ifdef __cplusplus
24325     extern "C"
24326#  endif
24327   int F77_DUMMY_MAIN() { return 1; }
24328
24329#endif
24330int
24331main ()
24332{
24333#ifndef isnan
24334  char *p = (char *) isnan;
24335#endif
24336
24337  ;
24338  return 0;
24339}
24340_ACEOF
24341rm -f conftest.$ac_objext
24342if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24343  (eval $ac_compile) 2>conftest.er1
24344  ac_status=$?
24345  grep -v '^ *+' conftest.er1 >conftest.err
24346  rm -f conftest.er1
24347  cat conftest.err >&5
24348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24349  (exit $ac_status); } &&
24350	 { ac_try='test -z "$ac_cxx_werror_flag"
24351			 || test ! -s conftest.err'
24352  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24353  (eval $ac_try) 2>&5
24354  ac_status=$?
24355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24356  (exit $ac_status); }; } &&
24357	 { ac_try='test -s conftest.$ac_objext'
24358  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24359  (eval $ac_try) 2>&5
24360  ac_status=$?
24361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24362  (exit $ac_status); }; }; then
24363  ac_cv_have_decl_isnan=yes
24364else
24365  echo "$as_me: failed program was:" >&5
24366sed 's/^/| /' conftest.$ac_ext >&5
24367
24368ac_cv_have_decl_isnan=no
24369fi
24370rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24371fi
24372echo "$as_me:$LINENO: result: $ac_cv_have_decl_isnan" >&5
24373echo "${ECHO_T}$ac_cv_have_decl_isnan" >&6
24374if test $ac_cv_have_decl_isnan = yes; then
24375  COIN_C_ISNAN=isnan
24376fi
24377
24378
24379# It appears that for some systems (e.g., Mac OSX), cmath will provide only
24380# std::isnan, and bare isnan will be unavailable. Typically we need a parameter
24381# in the test to allow C++ to do overload resolution.
24382
24383if test -z "$COIN_C_ISNAN"; then
24384  echo "$as_me:$LINENO: checking whether std::isnan(42.42) is declared" >&5
24385echo $ECHO_N "checking whether std::isnan(42.42) is declared... $ECHO_C" >&6
24386if test "${ac_cv_have_decl_std__isnan_42_42_+set}" = set; then
24387  echo $ECHO_N "(cached) $ECHO_C" >&6
24388else
24389  cat >conftest.$ac_ext <<_ACEOF
24390/* confdefs.h.  */
24391_ACEOF
24392cat confdefs.h >>conftest.$ac_ext
24393cat >>conftest.$ac_ext <<_ACEOF
24394/* end confdefs.h.  */
24395
24396#ifdef HAVE_CMATH
24397# include <cmath>
24398#else
24399# ifdef HAVE_MATH_H
24400#  include <math.h>
24401# endif
24402#endif
24403#ifdef HAVE_CFLOAT
24404# include <cfloat>
24405#else
24406# ifdef HAVE_FLOAT_H
24407#  include <float.h>
24408# endif
24409#endif
24410#ifdef HAVE_CIEEEFP
24411# include <cieeefp>
24412#else
24413# ifdef HAVE_IEEEFP_H
24414#  include <ieeefp.h>
24415# endif
24416#endif
24417
24418#ifdef F77_DUMMY_MAIN
24419
24420#  ifdef __cplusplus
24421     extern "C"
24422#  endif
24423   int F77_DUMMY_MAIN() { return 1; }
24424
24425#endif
24426int
24427main ()
24428{
24429#ifndef std::isnan(42.42)
24430  char *p = (char *) std::isnan(42.42);
24431#endif
24432
24433  ;
24434  return 0;
24435}
24436_ACEOF
24437rm -f conftest.$ac_objext
24438if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24439  (eval $ac_compile) 2>conftest.er1
24440  ac_status=$?
24441  grep -v '^ *+' conftest.er1 >conftest.err
24442  rm -f conftest.er1
24443  cat conftest.err >&5
24444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24445  (exit $ac_status); } &&
24446	 { ac_try='test -z "$ac_cxx_werror_flag"
24447			 || test ! -s conftest.err'
24448  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24449  (eval $ac_try) 2>&5
24450  ac_status=$?
24451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24452  (exit $ac_status); }; } &&
24453	 { ac_try='test -s conftest.$ac_objext'
24454  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24455  (eval $ac_try) 2>&5
24456  ac_status=$?
24457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24458  (exit $ac_status); }; }; then
24459  ac_cv_have_decl_std__isnan_42_42_=yes
24460else
24461  echo "$as_me: failed program was:" >&5
24462sed 's/^/| /' conftest.$ac_ext >&5
24463
24464ac_cv_have_decl_std__isnan_42_42_=no
24465fi
24466rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24467fi
24468echo "$as_me:$LINENO: result: $ac_cv_have_decl_std__isnan_42_42_" >&5
24469echo "${ECHO_T}$ac_cv_have_decl_std__isnan_42_42_" >&6
24470if test $ac_cv_have_decl_std__isnan_42_42_ = yes; then
24471  COIN_C_ISNAN=std::isnan
24472fi
24473
24474fi
24475
24476if test -z "$COIN_C_ISNAN"; then
24477  echo "$as_me:$LINENO: checking whether _isnan is declared" >&5
24478echo $ECHO_N "checking whether _isnan is declared... $ECHO_C" >&6
24479if test "${ac_cv_have_decl__isnan+set}" = set; then
24480  echo $ECHO_N "(cached) $ECHO_C" >&6
24481else
24482  cat >conftest.$ac_ext <<_ACEOF
24483/* confdefs.h.  */
24484_ACEOF
24485cat confdefs.h >>conftest.$ac_ext
24486cat >>conftest.$ac_ext <<_ACEOF
24487/* end confdefs.h.  */
24488
24489#ifdef HAVE_CMATH
24490# include <cmath>
24491#else
24492# ifdef HAVE_MATH_H
24493#  include <math.h>
24494# endif
24495#endif
24496#ifdef HAVE_CFLOAT
24497# include <cfloat>
24498#else
24499# ifdef HAVE_FLOAT_H
24500#  include <float.h>
24501# endif
24502#endif
24503#ifdef HAVE_CIEEEFP
24504# include <cieeefp>
24505#else
24506# ifdef HAVE_IEEEFP_H
24507#  include <ieeefp.h>
24508# endif
24509#endif
24510
24511#ifdef F77_DUMMY_MAIN
24512
24513#  ifdef __cplusplus
24514     extern "C"
24515#  endif
24516   int F77_DUMMY_MAIN() { return 1; }
24517
24518#endif
24519int
24520main ()
24521{
24522#ifndef _isnan
24523  char *p = (char *) _isnan;
24524#endif
24525
24526  ;
24527  return 0;
24528}
24529_ACEOF
24530rm -f conftest.$ac_objext
24531if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24532  (eval $ac_compile) 2>conftest.er1
24533  ac_status=$?
24534  grep -v '^ *+' conftest.er1 >conftest.err
24535  rm -f conftest.er1
24536  cat conftest.err >&5
24537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24538  (exit $ac_status); } &&
24539	 { ac_try='test -z "$ac_cxx_werror_flag"
24540			 || test ! -s conftest.err'
24541  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24542  (eval $ac_try) 2>&5
24543  ac_status=$?
24544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24545  (exit $ac_status); }; } &&
24546	 { ac_try='test -s conftest.$ac_objext'
24547  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24548  (eval $ac_try) 2>&5
24549  ac_status=$?
24550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24551  (exit $ac_status); }; }; then
24552  ac_cv_have_decl__isnan=yes
24553else
24554  echo "$as_me: failed program was:" >&5
24555sed 's/^/| /' conftest.$ac_ext >&5
24556
24557ac_cv_have_decl__isnan=no
24558fi
24559rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24560fi
24561echo "$as_me:$LINENO: result: $ac_cv_have_decl__isnan" >&5
24562echo "${ECHO_T}$ac_cv_have_decl__isnan" >&6
24563if test $ac_cv_have_decl__isnan = yes; then
24564  COIN_C_ISNAN=_isnan
24565fi
24566
24567fi
24568if test -z "$COIN_C_ISNAN"; then
24569  echo "$as_me:$LINENO: checking whether isnand is declared" >&5
24570echo $ECHO_N "checking whether isnand is declared... $ECHO_C" >&6
24571if test "${ac_cv_have_decl_isnand+set}" = set; then
24572  echo $ECHO_N "(cached) $ECHO_C" >&6
24573else
24574  cat >conftest.$ac_ext <<_ACEOF
24575/* confdefs.h.  */
24576_ACEOF
24577cat confdefs.h >>conftest.$ac_ext
24578cat >>conftest.$ac_ext <<_ACEOF
24579/* end confdefs.h.  */
24580
24581#ifdef HAVE_CMATH
24582# include <cmath>
24583#else
24584# ifdef HAVE_MATH_H
24585#  include <math.h>
24586# endif
24587#endif
24588#ifdef HAVE_CFLOAT
24589# include <cfloat>
24590#else
24591# ifdef HAVE_FLOAT_H
24592#  include <float.h>
24593# endif
24594#endif
24595#ifdef HAVE_CIEEEFP
24596# include <cieeefp>
24597#else
24598# ifdef HAVE_IEEEFP_H
24599#  include <ieeefp.h>
24600# endif
24601#endif
24602
24603#ifdef F77_DUMMY_MAIN
24604
24605#  ifdef __cplusplus
24606     extern "C"
24607#  endif
24608   int F77_DUMMY_MAIN() { return 1; }
24609
24610#endif
24611int
24612main ()
24613{
24614#ifndef isnand
24615  char *p = (char *) isnand;
24616#endif
24617
24618  ;
24619  return 0;
24620}
24621_ACEOF
24622rm -f conftest.$ac_objext
24623if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24624  (eval $ac_compile) 2>conftest.er1
24625  ac_status=$?
24626  grep -v '^ *+' conftest.er1 >conftest.err
24627  rm -f conftest.er1
24628  cat conftest.err >&5
24629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24630  (exit $ac_status); } &&
24631	 { ac_try='test -z "$ac_cxx_werror_flag"
24632			 || test ! -s conftest.err'
24633  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24634  (eval $ac_try) 2>&5
24635  ac_status=$?
24636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24637  (exit $ac_status); }; } &&
24638	 { ac_try='test -s conftest.$ac_objext'
24639  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24640  (eval $ac_try) 2>&5
24641  ac_status=$?
24642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24643  (exit $ac_status); }; }; then
24644  ac_cv_have_decl_isnand=yes
24645else
24646  echo "$as_me: failed program was:" >&5
24647sed 's/^/| /' conftest.$ac_ext >&5
24648
24649ac_cv_have_decl_isnand=no
24650fi
24651rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24652fi
24653echo "$as_me:$LINENO: result: $ac_cv_have_decl_isnand" >&5
24654echo "${ECHO_T}$ac_cv_have_decl_isnand" >&6
24655if test $ac_cv_have_decl_isnand = yes; then
24656  COIN_C_ISNAN=isnand
24657fi
24658
24659fi
24660if test -z "$COIN_C_ISNAN"; then
24661  { echo "$as_me:$LINENO: WARNING: Cannot find C-function for checking NaN." >&5
24662echo "$as_me: WARNING: Cannot find C-function for checking NaN." >&2;}
24663else
24664
24665cat >>confdefs.h <<_ACEOF
24666#define COIN_C_ISNAN $COIN_C_ISNAN
24667_ACEOF
24668
24669fi
24670
24671ac_ext=c
24672ac_cpp='$CPP $CPPFLAGS'
24673ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24674ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24675ac_compiler_gnu=$ac_cv_c_compiler_gnu
24676
24677
24678
24679#############################################################################
24680#                         Thread configuration                              #
24681#############################################################################
24682
24683# Define new options:
24684#    --enable-coinutils-threads
24685#    --enable-coinutils-mempool-override-new
24686#    --enable-coinutils-mempool-maxpooled
24687
24688ac_ext=cc
24689ac_cpp='$CXXCPP $CPPFLAGS'
24690ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24691ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24692ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24693
24694
24695# Check whether --enable-coinutils-threads or --disable-coinutils-threads was given.
24696if test "${enable_coinutils_threads+set}" = set; then
24697  enableval="$enable_coinutils_threads"
24698
24699fi;
24700
24701if test "$enable_coinutils_threads" = yes; then
24702  # Define the preprocessor macro
24703
24704cat >>confdefs.h <<\_ACEOF
24705#define COINUTILS_PTHREADS 1
24706_ACEOF
24707
24708  echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
24709echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
24710if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
24711  echo $ECHO_N "(cached) $ECHO_C" >&6
24712else
24713  ac_check_lib_save_LIBS=$LIBS
24714LIBS="-lrt  $LIBS"
24715cat >conftest.$ac_ext <<_ACEOF
24716/* confdefs.h.  */
24717_ACEOF
24718cat confdefs.h >>conftest.$ac_ext
24719cat >>conftest.$ac_ext <<_ACEOF
24720/* end confdefs.h.  */
24721
24722/* Override any gcc2 internal prototype to avoid an error.  */
24723#ifdef __cplusplus
24724extern "C"
24725#endif
24726/* We use char because int might match the return type of a gcc2
24727   builtin and then its argument prototype would still apply.  */
24728char clock_gettime ();
24729#ifdef F77_DUMMY_MAIN
24730
24731#  ifdef __cplusplus
24732     extern "C"
24733#  endif
24734   int F77_DUMMY_MAIN() { return 1; }
24735
24736#endif
24737int
24738main ()
24739{
24740clock_gettime ();
24741  ;
24742  return 0;
24743}
24744_ACEOF
24745rm -f conftest.$ac_objext conftest$ac_exeext
24746if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24747  (eval $ac_link) 2>conftest.er1
24748  ac_status=$?
24749  grep -v '^ *+' conftest.er1 >conftest.err
24750  rm -f conftest.er1
24751  cat conftest.err >&5
24752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24753  (exit $ac_status); } &&
24754	 { ac_try='test -z "$ac_cxx_werror_flag"
24755			 || test ! -s conftest.err'
24756  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24757  (eval $ac_try) 2>&5
24758  ac_status=$?
24759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24760  (exit $ac_status); }; } &&
24761	 { ac_try='test -s conftest$ac_exeext'
24762  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24763  (eval $ac_try) 2>&5
24764  ac_status=$?
24765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24766  (exit $ac_status); }; }; then
24767  ac_cv_lib_rt_clock_gettime=yes
24768else
24769  echo "$as_me: failed program was:" >&5
24770sed 's/^/| /' conftest.$ac_ext >&5
24771
24772ac_cv_lib_rt_clock_gettime=no
24773fi
24774rm -f conftest.err conftest.$ac_objext \
24775      conftest$ac_exeext conftest.$ac_ext
24776LIBS=$ac_check_lib_save_LIBS
24777fi
24778echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
24779echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
24780if test $ac_cv_lib_rt_clock_gettime = yes; then
24781  COINUTILSLIB_LIBS="-lrt $COINUTILSLIB_LIBS"
24782                COINUTILSLIB_PCLIBS="-lrt $COINUTILSLIB_PCLIBS"
24783else
24784  { { echo "$as_me:$LINENO: error: --enable-coinutils-threads selected, but -lrt unavailable" >&5
24785echo "$as_me: error: --enable-coinutils-threads selected, but -lrt unavailable" >&2;}
24786   { (exit 1); exit 1; }; }
24787fi
24788
24789  echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
24790echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
24791if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
24792  echo $ECHO_N "(cached) $ECHO_C" >&6
24793else
24794  ac_check_lib_save_LIBS=$LIBS
24795LIBS="-lpthread  $LIBS"
24796cat >conftest.$ac_ext <<_ACEOF
24797/* confdefs.h.  */
24798_ACEOF
24799cat confdefs.h >>conftest.$ac_ext
24800cat >>conftest.$ac_ext <<_ACEOF
24801/* end confdefs.h.  */
24802
24803/* Override any gcc2 internal prototype to avoid an error.  */
24804#ifdef __cplusplus
24805extern "C"
24806#endif
24807/* We use char because int might match the return type of a gcc2
24808   builtin and then its argument prototype would still apply.  */
24809char pthread_create ();
24810#ifdef F77_DUMMY_MAIN
24811
24812#  ifdef __cplusplus
24813     extern "C"
24814#  endif
24815   int F77_DUMMY_MAIN() { return 1; }
24816
24817#endif
24818int
24819main ()
24820{
24821pthread_create ();
24822  ;
24823  return 0;
24824}
24825_ACEOF
24826rm -f conftest.$ac_objext conftest$ac_exeext
24827if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24828  (eval $ac_link) 2>conftest.er1
24829  ac_status=$?
24830  grep -v '^ *+' conftest.er1 >conftest.err
24831  rm -f conftest.er1
24832  cat conftest.err >&5
24833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24834  (exit $ac_status); } &&
24835	 { ac_try='test -z "$ac_cxx_werror_flag"
24836			 || test ! -s conftest.err'
24837  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24838  (eval $ac_try) 2>&5
24839  ac_status=$?
24840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24841  (exit $ac_status); }; } &&
24842	 { ac_try='test -s conftest$ac_exeext'
24843  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24844  (eval $ac_try) 2>&5
24845  ac_status=$?
24846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24847  (exit $ac_status); }; }; then
24848  ac_cv_lib_pthread_pthread_create=yes
24849else
24850  echo "$as_me: failed program was:" >&5
24851sed 's/^/| /' conftest.$ac_ext >&5
24852
24853ac_cv_lib_pthread_pthread_create=no
24854fi
24855rm -f conftest.err conftest.$ac_objext \
24856      conftest$ac_exeext conftest.$ac_ext
24857LIBS=$ac_check_lib_save_LIBS
24858fi
24859echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
24860echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
24861if test $ac_cv_lib_pthread_pthread_create = yes; then
24862  COINUTILSLIB_LIBS="-lpthread $COINUTILSLIB_LIBS"
24863                COINUTILSLIB_PCLIBS="-lpthread $COINUTILSLIB_PCLIBS"
24864else
24865  { { echo "$as_me:$LINENO: error: --enable-coinutils-threads selected, but -lpthreads unavailable" >&5
24866echo "$as_me: error: --enable-coinutils-threads selected, but -lpthreads unavailable" >&2;}
24867   { (exit 1); exit 1; }; }
24868fi
24869
24870fi
24871
24872# Check whether --enable-coinutils-mempool-override-new or --disable-coinutils-mempool-override-new was given.
24873if test "${enable_coinutils_mempool_override_new+set}" = set; then
24874  enableval="$enable_coinutils_mempool_override_new"
24875
24876fi;
24877
24878if test "$enable_coinutils_mempool_override_new" = yes; then
24879
24880cat >>confdefs.h <<\_ACEOF
24881#define COINUTILS_MEMPOOL_OVERRIDE_NEW 1
24882_ACEOF
24883
24884fi
24885
24886# Check whether --enable-coinutils-mempool-maxpooled or --disable-coinutils-mempool-maxpooled was given.
24887if test "${enable_coinutils_mempool_maxpooled+set}" = set; then
24888  enableval="$enable_coinutils_mempool_maxpooled"
24889
24890fi;
24891
24892if test "$enable_coinutils_mempool_maxpooled" = yes; then
24893
24894cat >>confdefs.h <<\_ACEOF
24895#define COINUTILS_MEMPOOL_MAXPOOLED 4096
24896_ACEOF
24897
24898elif test "$enable_coinutils_mempool_maxpooled" = no; then
24899
24900cat >>confdefs.h <<\_ACEOF
24901#define COINUTILS_MEMPOOL_MAXPOOLED -1
24902_ACEOF
24903
24904elif test x"$enable_coinutils_mempool_maxpooled" = x; then
24905
24906cat >>confdefs.h <<\_ACEOF
24907#define COINUTILS_MEMPOOL_MAXPOOLED -1
24908_ACEOF
24909
24910else
24911
24912cat >>confdefs.h <<_ACEOF
24913#define COINUTILS_MEMPOOL_MAXPOOLED ${enable_coinutils_mempool_maxpooled}
24914_ACEOF
24915
24916fi
24917
24918#############################################################################
24919#                       Finding certain integer types                       #
24920#############################################################################
24921
24922ac_ext=cc
24923ac_cpp='$CXXCPP $CPPFLAGS'
24924ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24925ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24926ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24927
24928#if test x"" = x; then
24929#  hdr="#include <cinttypes>"
24930#else
24931#  hdr=""
24932#fi
24933#AC_CHECK_HEADERS([cinttypes],[],[],[$hdr])
24934
24935for ac_header in cinttypes
24936do
24937as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24938if eval "test \"\${$as_ac_Header+set}\" = set"; then
24939  echo "$as_me:$LINENO: checking for $ac_header" >&5
24940echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24941if eval "test \"\${$as_ac_Header+set}\" = set"; then
24942  echo $ECHO_N "(cached) $ECHO_C" >&6
24943fi
24944echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24945echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24946else
24947  # Is the header compilable?
24948echo "$as_me:$LINENO: checking $ac_header usability" >&5
24949echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24950cat >conftest.$ac_ext <<_ACEOF
24951/* confdefs.h.  */
24952_ACEOF
24953cat confdefs.h >>conftest.$ac_ext
24954cat >>conftest.$ac_ext <<_ACEOF
24955/* end confdefs.h.  */
24956$ac_includes_default
24957#include <$ac_header>
24958_ACEOF
24959rm -f conftest.$ac_objext
24960if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24961  (eval $ac_compile) 2>conftest.er1
24962  ac_status=$?
24963  grep -v '^ *+' conftest.er1 >conftest.err
24964  rm -f conftest.er1
24965  cat conftest.err >&5
24966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24967  (exit $ac_status); } &&
24968	 { ac_try='test -z "$ac_cxx_werror_flag"
24969			 || test ! -s conftest.err'
24970  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24971  (eval $ac_try) 2>&5
24972  ac_status=$?
24973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24974  (exit $ac_status); }; } &&
24975	 { ac_try='test -s conftest.$ac_objext'
24976  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24977  (eval $ac_try) 2>&5
24978  ac_status=$?
24979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24980  (exit $ac_status); }; }; then
24981  ac_header_compiler=yes
24982else
24983  echo "$as_me: failed program was:" >&5
24984sed 's/^/| /' conftest.$ac_ext >&5
24985
24986ac_header_compiler=no
24987fi
24988rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24989echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24990echo "${ECHO_T}$ac_header_compiler" >&6
24991
24992# Is the header present?
24993echo "$as_me:$LINENO: checking $ac_header presence" >&5
24994echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24995cat >conftest.$ac_ext <<_ACEOF
24996/* confdefs.h.  */
24997_ACEOF
24998cat confdefs.h >>conftest.$ac_ext
24999cat >>conftest.$ac_ext <<_ACEOF
25000/* end confdefs.h.  */
25001#include <$ac_header>
25002_ACEOF
25003if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25004  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25005  ac_status=$?
25006  grep -v '^ *+' conftest.er1 >conftest.err
25007  rm -f conftest.er1
25008  cat conftest.err >&5
25009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25010  (exit $ac_status); } >/dev/null; then
25011  if test -s conftest.err; then
25012    ac_cpp_err=$ac_cxx_preproc_warn_flag
25013    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
25014  else
25015    ac_cpp_err=
25016  fi
25017else
25018  ac_cpp_err=yes
25019fi
25020if test -z "$ac_cpp_err"; then
25021  ac_header_preproc=yes
25022else
25023  echo "$as_me: failed program was:" >&5
25024sed 's/^/| /' conftest.$ac_ext >&5
25025
25026  ac_header_preproc=no
25027fi
25028rm -f conftest.err conftest.$ac_ext
25029echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25030echo "${ECHO_T}$ac_header_preproc" >&6
25031
25032# So?  What about this header?
25033case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25034  yes:no: )
25035    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25036echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25037    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25038echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25039    ac_header_preproc=yes
25040    ;;
25041  no:yes:* )
25042    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25043echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25044    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25045echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25046    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25047echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25048    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25049echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25050    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25051echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25052    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25053echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25054    (
25055      cat <<\_ASBOX
25056## ---------------------------------------------------- ##
25057## Report this to http://projects.coin-or.org/CoinUtils ##
25058## ---------------------------------------------------- ##
25059_ASBOX
25060    ) |
25061      sed "s/^/$as_me: WARNING:     /" >&2
25062    ;;
25063esac
25064echo "$as_me:$LINENO: checking for $ac_header" >&5
25065echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25066if eval "test \"\${$as_ac_Header+set}\" = set"; then
25067  echo $ECHO_N "(cached) $ECHO_C" >&6
25068else
25069  eval "$as_ac_Header=\$ac_header_preproc"
25070fi
25071echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25072echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25073
25074fi
25075if test `eval echo '${'$as_ac_Header'}'` = yes; then
25076  cat >>confdefs.h <<_ACEOF
25077#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25078_ACEOF
25079
25080fi
25081
25082done
25083
25084
25085if test "$ac_cv_header_cinttypes" != "yes"; then
25086  #if test x"" = x; then
25087#  hdr="#include <inttypes.h>"
25088#else
25089#  hdr=""
25090#fi
25091#AC_CHECK_HEADERS([inttypes.h],[],[],[$hdr])
25092
25093for ac_header in inttypes.h
25094do
25095as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25096if eval "test \"\${$as_ac_Header+set}\" = set"; then
25097  echo "$as_me:$LINENO: checking for $ac_header" >&5
25098echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25099if eval "test \"\${$as_ac_Header+set}\" = set"; then
25100  echo $ECHO_N "(cached) $ECHO_C" >&6
25101fi
25102echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25103echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25104else
25105  # Is the header compilable?
25106echo "$as_me:$LINENO: checking $ac_header usability" >&5
25107echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25108cat >conftest.$ac_ext <<_ACEOF
25109/* confdefs.h.  */
25110_ACEOF
25111cat confdefs.h >>conftest.$ac_ext
25112cat >>conftest.$ac_ext <<_ACEOF
25113/* end confdefs.h.  */
25114$ac_includes_default
25115#include <$ac_header>
25116_ACEOF
25117rm -f conftest.$ac_objext
25118if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25119  (eval $ac_compile) 2>conftest.er1
25120  ac_status=$?
25121  grep -v '^ *+' conftest.er1 >conftest.err
25122  rm -f conftest.er1
25123  cat conftest.err >&5
25124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25125  (exit $ac_status); } &&
25126	 { ac_try='test -z "$ac_cxx_werror_flag"
25127			 || test ! -s conftest.err'
25128  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25129  (eval $ac_try) 2>&5
25130  ac_status=$?
25131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25132  (exit $ac_status); }; } &&
25133	 { ac_try='test -s conftest.$ac_objext'
25134  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25135  (eval $ac_try) 2>&5
25136  ac_status=$?
25137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25138  (exit $ac_status); }; }; then
25139  ac_header_compiler=yes
25140else
25141  echo "$as_me: failed program was:" >&5
25142sed 's/^/| /' conftest.$ac_ext >&5
25143
25144ac_header_compiler=no
25145fi
25146rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25147echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25148echo "${ECHO_T}$ac_header_compiler" >&6
25149
25150# Is the header present?
25151echo "$as_me:$LINENO: checking $ac_header presence" >&5
25152echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25153cat >conftest.$ac_ext <<_ACEOF
25154/* confdefs.h.  */
25155_ACEOF
25156cat confdefs.h >>conftest.$ac_ext
25157cat >>conftest.$ac_ext <<_ACEOF
25158/* end confdefs.h.  */
25159#include <$ac_header>
25160_ACEOF
25161if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25162  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25163  ac_status=$?
25164  grep -v '^ *+' conftest.er1 >conftest.err
25165  rm -f conftest.er1
25166  cat conftest.err >&5
25167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25168  (exit $ac_status); } >/dev/null; then
25169  if test -s conftest.err; then
25170    ac_cpp_err=$ac_cxx_preproc_warn_flag
25171    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
25172  else
25173    ac_cpp_err=
25174  fi
25175else
25176  ac_cpp_err=yes
25177fi
25178if test -z "$ac_cpp_err"; then
25179  ac_header_preproc=yes
25180else
25181  echo "$as_me: failed program was:" >&5
25182sed 's/^/| /' conftest.$ac_ext >&5
25183
25184  ac_header_preproc=no
25185fi
25186rm -f conftest.err conftest.$ac_ext
25187echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25188echo "${ECHO_T}$ac_header_preproc" >&6
25189
25190# So?  What about this header?
25191case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25192  yes:no: )
25193    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25194echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25195    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25196echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25197    ac_header_preproc=yes
25198    ;;
25199  no:yes:* )
25200    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25201echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25202    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25203echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25204    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25205echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25206    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25207echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25208    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25209echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25210    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25211echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25212    (
25213      cat <<\_ASBOX
25214## ---------------------------------------------------- ##
25215## Report this to http://projects.coin-or.org/CoinUtils ##
25216## ---------------------------------------------------- ##
25217_ASBOX
25218    ) |
25219      sed "s/^/$as_me: WARNING:     /" >&2
25220    ;;
25221esac
25222echo "$as_me:$LINENO: checking for $ac_header" >&5
25223echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25224if eval "test \"\${$as_ac_Header+set}\" = set"; then
25225  echo $ECHO_N "(cached) $ECHO_C" >&6
25226else
25227  eval "$as_ac_Header=\$ac_header_preproc"
25228fi
25229echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25230echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25231
25232fi
25233if test `eval echo '${'$as_ac_Header'}'` = yes; then
25234  cat >>confdefs.h <<_ACEOF
25235#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25236_ACEOF
25237
25238fi
25239
25240done
25241
25242
25243fi
25244ac_ext=cc
25245ac_cpp='$CXXCPP $CPPFLAGS'
25246ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25247ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25248ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25249
25250
25251ac_ext=cc
25252ac_cpp='$CXXCPP $CPPFLAGS'
25253ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25254ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25255ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25256
25257#if test x"" = x; then
25258#  hdr="#include <cstdint>"
25259#else
25260#  hdr=""
25261#fi
25262#AC_CHECK_HEADERS([cstdint],[],[],[$hdr])
25263
25264for ac_header in cstdint
25265do
25266as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25267if eval "test \"\${$as_ac_Header+set}\" = set"; then
25268  echo "$as_me:$LINENO: checking for $ac_header" >&5
25269echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25270if eval "test \"\${$as_ac_Header+set}\" = set"; then
25271  echo $ECHO_N "(cached) $ECHO_C" >&6
25272fi
25273echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25274echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25275else
25276  # Is the header compilable?
25277echo "$as_me:$LINENO: checking $ac_header usability" >&5
25278echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25279cat >conftest.$ac_ext <<_ACEOF
25280/* confdefs.h.  */
25281_ACEOF
25282cat confdefs.h >>conftest.$ac_ext
25283cat >>conftest.$ac_ext <<_ACEOF
25284/* end confdefs.h.  */
25285$ac_includes_default
25286#include <$ac_header>
25287_ACEOF
25288rm -f conftest.$ac_objext
25289if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25290  (eval $ac_compile) 2>conftest.er1
25291  ac_status=$?
25292  grep -v '^ *+' conftest.er1 >conftest.err
25293  rm -f conftest.er1
25294  cat conftest.err >&5
25295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25296  (exit $ac_status); } &&
25297	 { ac_try='test -z "$ac_cxx_werror_flag"
25298			 || test ! -s conftest.err'
25299  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25300  (eval $ac_try) 2>&5
25301  ac_status=$?
25302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25303  (exit $ac_status); }; } &&
25304	 { ac_try='test -s conftest.$ac_objext'
25305  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25306  (eval $ac_try) 2>&5
25307  ac_status=$?
25308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25309  (exit $ac_status); }; }; then
25310  ac_header_compiler=yes
25311else
25312  echo "$as_me: failed program was:" >&5
25313sed 's/^/| /' conftest.$ac_ext >&5
25314
25315ac_header_compiler=no
25316fi
25317rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25318echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25319echo "${ECHO_T}$ac_header_compiler" >&6
25320
25321# Is the header present?
25322echo "$as_me:$LINENO: checking $ac_header presence" >&5
25323echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25324cat >conftest.$ac_ext <<_ACEOF
25325/* confdefs.h.  */
25326_ACEOF
25327cat confdefs.h >>conftest.$ac_ext
25328cat >>conftest.$ac_ext <<_ACEOF
25329/* end confdefs.h.  */
25330#include <$ac_header>
25331_ACEOF
25332if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25333  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25334  ac_status=$?
25335  grep -v '^ *+' conftest.er1 >conftest.err
25336  rm -f conftest.er1
25337  cat conftest.err >&5
25338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25339  (exit $ac_status); } >/dev/null; then
25340  if test -s conftest.err; then
25341    ac_cpp_err=$ac_cxx_preproc_warn_flag
25342    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
25343  else
25344    ac_cpp_err=
25345  fi
25346else
25347  ac_cpp_err=yes
25348fi
25349if test -z "$ac_cpp_err"; then
25350  ac_header_preproc=yes
25351else
25352  echo "$as_me: failed program was:" >&5
25353sed 's/^/| /' conftest.$ac_ext >&5
25354
25355  ac_header_preproc=no
25356fi
25357rm -f conftest.err conftest.$ac_ext
25358echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25359echo "${ECHO_T}$ac_header_preproc" >&6
25360
25361# So?  What about this header?
25362case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25363  yes:no: )
25364    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25365echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25366    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25367echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25368    ac_header_preproc=yes
25369    ;;
25370  no:yes:* )
25371    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25372echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25373    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25374echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25375    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25376echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25377    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25378echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25379    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25380echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25381    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25382echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25383    (
25384      cat <<\_ASBOX
25385## ---------------------------------------------------- ##
25386## Report this to http://projects.coin-or.org/CoinUtils ##
25387## ---------------------------------------------------- ##
25388_ASBOX
25389    ) |
25390      sed "s/^/$as_me: WARNING:     /" >&2
25391    ;;
25392esac
25393echo "$as_me:$LINENO: checking for $ac_header" >&5
25394echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25395if eval "test \"\${$as_ac_Header+set}\" = set"; then
25396  echo $ECHO_N "(cached) $ECHO_C" >&6
25397else
25398  eval "$as_ac_Header=\$ac_header_preproc"
25399fi
25400echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25401echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25402
25403fi
25404if test `eval echo '${'$as_ac_Header'}'` = yes; then
25405  cat >>confdefs.h <<_ACEOF
25406#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25407_ACEOF
25408
25409fi
25410
25411done
25412
25413
25414if test "$ac_cv_header_cstdint" != "yes"; then
25415  #if test x"" = x; then
25416#  hdr="#include <stdint.h>"
25417#else
25418#  hdr=""
25419#fi
25420#AC_CHECK_HEADERS([stdint.h],[],[],[$hdr])
25421
25422for ac_header in stdint.h
25423do
25424as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25425if eval "test \"\${$as_ac_Header+set}\" = set"; then
25426  echo "$as_me:$LINENO: checking for $ac_header" >&5
25427echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25428if eval "test \"\${$as_ac_Header+set}\" = set"; then
25429  echo $ECHO_N "(cached) $ECHO_C" >&6
25430fi
25431echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25432echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25433else
25434  # Is the header compilable?
25435echo "$as_me:$LINENO: checking $ac_header usability" >&5
25436echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25437cat >conftest.$ac_ext <<_ACEOF
25438/* confdefs.h.  */
25439_ACEOF
25440cat confdefs.h >>conftest.$ac_ext
25441cat >>conftest.$ac_ext <<_ACEOF
25442/* end confdefs.h.  */
25443$ac_includes_default
25444#include <$ac_header>
25445_ACEOF
25446rm -f conftest.$ac_objext
25447if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25448  (eval $ac_compile) 2>conftest.er1
25449  ac_status=$?
25450  grep -v '^ *+' conftest.er1 >conftest.err
25451  rm -f conftest.er1
25452  cat conftest.err >&5
25453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25454  (exit $ac_status); } &&
25455	 { ac_try='test -z "$ac_cxx_werror_flag"
25456			 || test ! -s conftest.err'
25457  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25458  (eval $ac_try) 2>&5
25459  ac_status=$?
25460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25461  (exit $ac_status); }; } &&
25462	 { ac_try='test -s conftest.$ac_objext'
25463  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25464  (eval $ac_try) 2>&5
25465  ac_status=$?
25466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25467  (exit $ac_status); }; }; then
25468  ac_header_compiler=yes
25469else
25470  echo "$as_me: failed program was:" >&5
25471sed 's/^/| /' conftest.$ac_ext >&5
25472
25473ac_header_compiler=no
25474fi
25475rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25476echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25477echo "${ECHO_T}$ac_header_compiler" >&6
25478
25479# Is the header present?
25480echo "$as_me:$LINENO: checking $ac_header presence" >&5
25481echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25482cat >conftest.$ac_ext <<_ACEOF
25483/* confdefs.h.  */
25484_ACEOF
25485cat confdefs.h >>conftest.$ac_ext
25486cat >>conftest.$ac_ext <<_ACEOF
25487/* end confdefs.h.  */
25488#include <$ac_header>
25489_ACEOF
25490if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25491  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25492  ac_status=$?
25493  grep -v '^ *+' conftest.er1 >conftest.err
25494  rm -f conftest.er1
25495  cat conftest.err >&5
25496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25497  (exit $ac_status); } >/dev/null; then
25498  if test -s conftest.err; then
25499    ac_cpp_err=$ac_cxx_preproc_warn_flag
25500    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
25501  else
25502    ac_cpp_err=
25503  fi
25504else
25505  ac_cpp_err=yes
25506fi
25507if test -z "$ac_cpp_err"; then
25508  ac_header_preproc=yes
25509else
25510  echo "$as_me: failed program was:" >&5
25511sed 's/^/| /' conftest.$ac_ext >&5
25512
25513  ac_header_preproc=no
25514fi
25515rm -f conftest.err conftest.$ac_ext
25516echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25517echo "${ECHO_T}$ac_header_preproc" >&6
25518
25519# So?  What about this header?
25520case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25521  yes:no: )
25522    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25523echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25524    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25525echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25526    ac_header_preproc=yes
25527    ;;
25528  no:yes:* )
25529    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25530echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25531    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25532echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25533    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25534echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25535    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25536echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25537    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25538echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25539    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25540echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25541    (
25542      cat <<\_ASBOX
25543## ---------------------------------------------------- ##
25544## Report this to http://projects.coin-or.org/CoinUtils ##
25545## ---------------------------------------------------- ##
25546_ASBOX
25547    ) |
25548      sed "s/^/$as_me: WARNING:     /" >&2
25549    ;;
25550esac
25551echo "$as_me:$LINENO: checking for $ac_header" >&5
25552echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25553if eval "test \"\${$as_ac_Header+set}\" = set"; then
25554  echo $ECHO_N "(cached) $ECHO_C" >&6
25555else
25556  eval "$as_ac_Header=\$ac_header_preproc"
25557fi
25558echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25559echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25560
25561fi
25562if test `eval echo '${'$as_ac_Header'}'` = yes; then
25563  cat >>confdefs.h <<_ACEOF
25564#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25565_ACEOF
25566
25567fi
25568
25569done
25570
25571
25572fi
25573ac_ext=cc
25574ac_cpp='$CXXCPP $CPPFLAGS'
25575ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25576ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25577ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25578
25579
25580
25581##### 64bit Integer types
25582# The problem here is that you can't extend `int64_t' to `unsigned int64_t'.
25583# So we need distinct CoinInt64 and CoinUInt64. It should be safe to assume
25584# uint64_t, given int64_t.
25585CoinInt64=
25586CoinUInt64=
25587
25588# try int64_t
25589echo "$as_me:$LINENO: checking for int64_t" >&5
25590echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
25591if test "${ac_cv_type_int64_t+set}" = set; then
25592  echo $ECHO_N "(cached) $ECHO_C" >&6
25593else
25594  cat >conftest.$ac_ext <<_ACEOF
25595/* confdefs.h.  */
25596_ACEOF
25597cat confdefs.h >>conftest.$ac_ext
25598cat >>conftest.$ac_ext <<_ACEOF
25599/* end confdefs.h.  */
25600
25601#ifdef HAVE_CINTTYPES
25602# include <cinttypes>
25603#else
25604# ifdef HAVE_INTTYPES_H
25605#  include <inttypes.h>
25606# endif
25607#endif
25608
25609
25610#ifdef F77_DUMMY_MAIN
25611
25612#  ifdef __cplusplus
25613     extern "C"
25614#  endif
25615   int F77_DUMMY_MAIN() { return 1; }
25616
25617#endif
25618int
25619main ()
25620{
25621if ((int64_t *) 0)
25622  return 0;
25623if (sizeof (int64_t))
25624  return 0;
25625  ;
25626  return 0;
25627}
25628_ACEOF
25629rm -f conftest.$ac_objext
25630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25631  (eval $ac_compile) 2>conftest.er1
25632  ac_status=$?
25633  grep -v '^ *+' conftest.er1 >conftest.err
25634  rm -f conftest.er1
25635  cat conftest.err >&5
25636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25637  (exit $ac_status); } &&
25638	 { ac_try='test -z "$ac_cxx_werror_flag"
25639			 || test ! -s conftest.err'
25640  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25641  (eval $ac_try) 2>&5
25642  ac_status=$?
25643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25644  (exit $ac_status); }; } &&
25645	 { ac_try='test -s conftest.$ac_objext'
25646  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25647  (eval $ac_try) 2>&5
25648  ac_status=$?
25649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25650  (exit $ac_status); }; }; then
25651  ac_cv_type_int64_t=yes
25652else
25653  echo "$as_me: failed program was:" >&5
25654sed 's/^/| /' conftest.$ac_ext >&5
25655
25656ac_cv_type_int64_t=no
25657fi
25658rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25659fi
25660echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
25661echo "${ECHO_T}$ac_cv_type_int64_t" >&6
25662if test $ac_cv_type_int64_t = yes; then
25663  CoinInt64=int64_t ; CoinUInt64=uint64_t
25664fi
25665
25666
25667# We need to use the C compiler in the AC_CHECK_SIZEOF since otherwise the
25668# MSCV compiler complains about redefinition of "exit". ac_cv_sizeof_<type>
25669# sometimes adds `^M' to the number, hence the check for `8?'.
25670ac_ext=c
25671ac_cpp='$CPP $CPPFLAGS'
25672ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25673ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25674ac_compiler_gnu=$ac_cv_c_compiler_gnu
25675
25676# try long long
25677if test x"$CoinInt64" = x; then
25678  echo "$as_me:$LINENO: checking for long long" >&5
25679echo $ECHO_N "checking for long long... $ECHO_C" >&6
25680if test "${ac_cv_type_long_long+set}" = set; then
25681  echo $ECHO_N "(cached) $ECHO_C" >&6
25682else
25683  cat >conftest.$ac_ext <<_ACEOF
25684/* confdefs.h.  */
25685_ACEOF
25686cat confdefs.h >>conftest.$ac_ext
25687cat >>conftest.$ac_ext <<_ACEOF
25688/* end confdefs.h.  */
25689$ac_includes_default
25690#ifdef F77_DUMMY_MAIN
25691
25692#  ifdef __cplusplus
25693     extern "C"
25694#  endif
25695   int F77_DUMMY_MAIN() { return 1; }
25696
25697#endif
25698int
25699main ()
25700{
25701if ((long long *) 0)
25702  return 0;
25703if (sizeof (long long))
25704  return 0;
25705  ;
25706  return 0;
25707}
25708_ACEOF
25709rm -f conftest.$ac_objext
25710if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25711  (eval $ac_compile) 2>conftest.er1
25712  ac_status=$?
25713  grep -v '^ *+' conftest.er1 >conftest.err
25714  rm -f conftest.er1
25715  cat conftest.err >&5
25716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25717  (exit $ac_status); } &&
25718	 { ac_try='test -z "$ac_c_werror_flag"
25719			 || test ! -s conftest.err'
25720  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25721  (eval $ac_try) 2>&5
25722  ac_status=$?
25723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25724  (exit $ac_status); }; } &&
25725	 { ac_try='test -s conftest.$ac_objext'
25726  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25727  (eval $ac_try) 2>&5
25728  ac_status=$?
25729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25730  (exit $ac_status); }; }; then
25731  ac_cv_type_long_long=yes
25732else
25733  echo "$as_me: failed program was:" >&5
25734sed 's/^/| /' conftest.$ac_ext >&5
25735
25736ac_cv_type_long_long=no
25737fi
25738rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25739fi
25740echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
25741echo "${ECHO_T}$ac_cv_type_long_long" >&6
25742
25743echo "$as_me:$LINENO: checking size of long long" >&5
25744echo $ECHO_N "checking size of long long... $ECHO_C" >&6
25745if test "${ac_cv_sizeof_long_long+set}" = set; then
25746  echo $ECHO_N "(cached) $ECHO_C" >&6
25747else
25748  if test "$ac_cv_type_long_long" = yes; then
25749  # The cast to unsigned long works around a bug in the HP C Compiler
25750  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25751  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25752  # This bug is HP SR number 8606223364.
25753  if test "$cross_compiling" = yes; then
25754  # Depending upon the size, compute the lo and hi bounds.
25755cat >conftest.$ac_ext <<_ACEOF
25756/* confdefs.h.  */
25757_ACEOF
25758cat confdefs.h >>conftest.$ac_ext
25759cat >>conftest.$ac_ext <<_ACEOF
25760/* end confdefs.h.  */
25761$ac_includes_default
25762#ifdef F77_DUMMY_MAIN
25763
25764#  ifdef __cplusplus
25765     extern "C"
25766#  endif
25767   int F77_DUMMY_MAIN() { return 1; }
25768
25769#endif
25770int
25771main ()
25772{
25773static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
25774test_array [0] = 0
25775
25776  ;
25777  return 0;
25778}
25779_ACEOF
25780rm -f conftest.$ac_objext
25781if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25782  (eval $ac_compile) 2>conftest.er1
25783  ac_status=$?
25784  grep -v '^ *+' conftest.er1 >conftest.err
25785  rm -f conftest.er1
25786  cat conftest.err >&5
25787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25788  (exit $ac_status); } &&
25789	 { ac_try='test -z "$ac_c_werror_flag"
25790			 || test ! -s conftest.err'
25791  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25792  (eval $ac_try) 2>&5
25793  ac_status=$?
25794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25795  (exit $ac_status); }; } &&
25796	 { ac_try='test -s conftest.$ac_objext'
25797  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25798  (eval $ac_try) 2>&5
25799  ac_status=$?
25800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25801  (exit $ac_status); }; }; then
25802  ac_lo=0 ac_mid=0
25803  while :; do
25804    cat >conftest.$ac_ext <<_ACEOF
25805/* confdefs.h.  */
25806_ACEOF
25807cat confdefs.h >>conftest.$ac_ext
25808cat >>conftest.$ac_ext <<_ACEOF
25809/* end confdefs.h.  */
25810$ac_includes_default
25811#ifdef F77_DUMMY_MAIN
25812
25813#  ifdef __cplusplus
25814     extern "C"
25815#  endif
25816   int F77_DUMMY_MAIN() { return 1; }
25817
25818#endif
25819int
25820main ()
25821{
25822static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
25823test_array [0] = 0
25824
25825  ;
25826  return 0;
25827}
25828_ACEOF
25829rm -f conftest.$ac_objext
25830if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25831  (eval $ac_compile) 2>conftest.er1
25832  ac_status=$?
25833  grep -v '^ *+' conftest.er1 >conftest.err
25834  rm -f conftest.er1
25835  cat conftest.err >&5
25836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25837  (exit $ac_status); } &&
25838	 { ac_try='test -z "$ac_c_werror_flag"
25839			 || test ! -s conftest.err'
25840  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25841  (eval $ac_try) 2>&5
25842  ac_status=$?
25843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25844  (exit $ac_status); }; } &&
25845	 { ac_try='test -s conftest.$ac_objext'
25846  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25847  (eval $ac_try) 2>&5
25848  ac_status=$?
25849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25850  (exit $ac_status); }; }; then
25851  ac_hi=$ac_mid; break
25852else
25853  echo "$as_me: failed program was:" >&5
25854sed 's/^/| /' conftest.$ac_ext >&5
25855
25856ac_lo=`expr $ac_mid + 1`
25857		    if test $ac_lo -le $ac_mid; then
25858		      ac_lo= ac_hi=
25859		      break
25860		    fi
25861		    ac_mid=`expr 2 '*' $ac_mid + 1`
25862fi
25863rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25864  done
25865else
25866  echo "$as_me: failed program was:" >&5
25867sed 's/^/| /' conftest.$ac_ext >&5
25868
25869cat >conftest.$ac_ext <<_ACEOF
25870/* confdefs.h.  */
25871_ACEOF
25872cat confdefs.h >>conftest.$ac_ext
25873cat >>conftest.$ac_ext <<_ACEOF
25874/* end confdefs.h.  */
25875$ac_includes_default
25876#ifdef F77_DUMMY_MAIN
25877
25878#  ifdef __cplusplus
25879     extern "C"
25880#  endif
25881   int F77_DUMMY_MAIN() { return 1; }
25882
25883#endif
25884int
25885main ()
25886{
25887static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
25888test_array [0] = 0
25889
25890  ;
25891  return 0;
25892}
25893_ACEOF
25894rm -f conftest.$ac_objext
25895if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25896  (eval $ac_compile) 2>conftest.er1
25897  ac_status=$?
25898  grep -v '^ *+' conftest.er1 >conftest.err
25899  rm -f conftest.er1
25900  cat conftest.err >&5
25901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25902  (exit $ac_status); } &&
25903	 { ac_try='test -z "$ac_c_werror_flag"
25904			 || test ! -s conftest.err'
25905  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25906  (eval $ac_try) 2>&5
25907  ac_status=$?
25908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25909  (exit $ac_status); }; } &&
25910	 { ac_try='test -s conftest.$ac_objext'
25911  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25912  (eval $ac_try) 2>&5
25913  ac_status=$?
25914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25915  (exit $ac_status); }; }; then
25916  ac_hi=-1 ac_mid=-1
25917  while :; do
25918    cat >conftest.$ac_ext <<_ACEOF
25919/* confdefs.h.  */
25920_ACEOF
25921cat confdefs.h >>conftest.$ac_ext
25922cat >>conftest.$ac_ext <<_ACEOF
25923/* end confdefs.h.  */
25924$ac_includes_default
25925#ifdef F77_DUMMY_MAIN
25926
25927#  ifdef __cplusplus
25928     extern "C"
25929#  endif
25930   int F77_DUMMY_MAIN() { return 1; }
25931
25932#endif
25933int
25934main ()
25935{
25936static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
25937test_array [0] = 0
25938
25939  ;
25940  return 0;
25941}
25942_ACEOF
25943rm -f conftest.$ac_objext
25944if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25945  (eval $ac_compile) 2>conftest.er1
25946  ac_status=$?
25947  grep -v '^ *+' conftest.er1 >conftest.err
25948  rm -f conftest.er1
25949  cat conftest.err >&5
25950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25951  (exit $ac_status); } &&
25952	 { ac_try='test -z "$ac_c_werror_flag"
25953			 || test ! -s conftest.err'
25954  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25955  (eval $ac_try) 2>&5
25956  ac_status=$?
25957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25958  (exit $ac_status); }; } &&
25959	 { ac_try='test -s conftest.$ac_objext'
25960  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25961  (eval $ac_try) 2>&5
25962  ac_status=$?
25963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25964  (exit $ac_status); }; }; then
25965  ac_lo=$ac_mid; break
25966else
25967  echo "$as_me: failed program was:" >&5
25968sed 's/^/| /' conftest.$ac_ext >&5
25969
25970ac_hi=`expr '(' $ac_mid ')' - 1`
25971		       if test $ac_mid -le $ac_hi; then
25972			 ac_lo= ac_hi=
25973			 break
25974		       fi
25975		       ac_mid=`expr 2 '*' $ac_mid`
25976fi
25977rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25978  done
25979else
25980  echo "$as_me: failed program was:" >&5
25981sed 's/^/| /' conftest.$ac_ext >&5
25982
25983ac_lo= ac_hi=
25984fi
25985rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25986fi
25987rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25988# Binary search between lo and hi bounds.
25989while test "x$ac_lo" != "x$ac_hi"; do
25990  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25991  cat >conftest.$ac_ext <<_ACEOF
25992/* confdefs.h.  */
25993_ACEOF
25994cat confdefs.h >>conftest.$ac_ext
25995cat >>conftest.$ac_ext <<_ACEOF
25996/* end confdefs.h.  */
25997$ac_includes_default
25998#ifdef F77_DUMMY_MAIN
25999
26000#  ifdef __cplusplus
26001     extern "C"
26002#  endif
26003   int F77_DUMMY_MAIN() { return 1; }
26004
26005#endif
26006int
26007main ()
26008{
26009static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
26010test_array [0] = 0
26011
26012  ;
26013  return 0;
26014}
26015_ACEOF
26016rm -f conftest.$ac_objext
26017if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26018  (eval $ac_compile) 2>conftest.er1
26019  ac_status=$?
26020  grep -v '^ *+' conftest.er1 >conftest.err
26021  rm -f conftest.er1
26022  cat conftest.err >&5
26023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26024  (exit $ac_status); } &&
26025	 { ac_try='test -z "$ac_c_werror_flag"
26026			 || test ! -s conftest.err'
26027  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26028  (eval $ac_try) 2>&5
26029  ac_status=$?
26030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26031  (exit $ac_status); }; } &&
26032	 { ac_try='test -s conftest.$ac_objext'
26033  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26034  (eval $ac_try) 2>&5
26035  ac_status=$?
26036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26037  (exit $ac_status); }; }; then
26038  ac_hi=$ac_mid
26039else
26040  echo "$as_me: failed program was:" >&5
26041sed 's/^/| /' conftest.$ac_ext >&5
26042
26043ac_lo=`expr '(' $ac_mid ')' + 1`
26044fi
26045rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26046done
26047case $ac_lo in
26048?*) ac_cv_sizeof_long_long=$ac_lo;;
26049'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
26050See \`config.log' for more details." >&5
26051echo "$as_me: error: cannot compute sizeof (long long), 77
26052See \`config.log' for more details." >&2;}
26053   { (exit 1); exit 1; }; } ;;
26054esac
26055else
26056  if test "$cross_compiling" = yes; then
26057  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
26058See \`config.log' for more details." >&5
26059echo "$as_me: error: cannot run test program while cross compiling
26060See \`config.log' for more details." >&2;}
26061   { (exit 1); exit 1; }; }
26062else
26063  cat >conftest.$ac_ext <<_ACEOF
26064/* confdefs.h.  */
26065_ACEOF
26066cat confdefs.h >>conftest.$ac_ext
26067cat >>conftest.$ac_ext <<_ACEOF
26068/* end confdefs.h.  */
26069$ac_includes_default
26070long longval () { return (long) (sizeof (long long)); }
26071unsigned long ulongval () { return (long) (sizeof (long long)); }
26072#include <stdio.h>
26073#include <stdlib.h>
26074#ifdef F77_DUMMY_MAIN
26075
26076#  ifdef __cplusplus
26077     extern "C"
26078#  endif
26079   int F77_DUMMY_MAIN() { return 1; }
26080
26081#endif
26082int
26083main ()
26084{
26085
26086  FILE *f = fopen ("conftest.val", "w");
26087  if (! f)
26088    exit (1);
26089  if (((long) (sizeof (long long))) < 0)
26090    {
26091      long i = longval ();
26092      if (i != ((long) (sizeof (long long))))
26093	exit (1);
26094      fprintf (f, "%ld\n", i);
26095    }
26096  else
26097    {
26098      unsigned long i = ulongval ();
26099      if (i != ((long) (sizeof (long long))))
26100	exit (1);
26101      fprintf (f, "%lu\n", i);
26102    }
26103  exit (ferror (f) || fclose (f) != 0);
26104
26105  ;
26106  return 0;
26107}
26108_ACEOF
26109rm -f conftest$ac_exeext
26110if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26111  (eval $ac_link) 2>&5
26112  ac_status=$?
26113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26114  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26115  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26116  (eval $ac_try) 2>&5
26117  ac_status=$?
26118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26119  (exit $ac_status); }; }; then
26120  ac_cv_sizeof_long_long=`cat conftest.val`
26121else
26122  echo "$as_me: program exited with status $ac_status" >&5
26123echo "$as_me: failed program was:" >&5
26124sed 's/^/| /' conftest.$ac_ext >&5
26125
26126( exit $ac_status )
26127{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
26128See \`config.log' for more details." >&5
26129echo "$as_me: error: cannot compute sizeof (long long), 77
26130See \`config.log' for more details." >&2;}
26131   { (exit 1); exit 1; }; }
26132fi
26133rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26134fi
26135fi
26136rm -f conftest.val
26137else
26138  ac_cv_sizeof_long_long=0
26139fi
26140fi
26141echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
26142echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
26143cat >>confdefs.h <<_ACEOF
26144#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
26145_ACEOF
26146
26147
26148  case $ac_cv_sizeof_long_long in
26149    8 | 8?) CoinInt64="long long"
26150    	    CoinUInt64="unsigned long long"
26151	    ;;
26152  esac
26153fi
26154
26155#try long
26156if test x"$CoinInt64" = x; then
26157  echo "$as_me:$LINENO: checking for long" >&5
26158echo $ECHO_N "checking for long... $ECHO_C" >&6
26159if test "${ac_cv_type_long+set}" = set; then
26160  echo $ECHO_N "(cached) $ECHO_C" >&6
26161else
26162  cat >conftest.$ac_ext <<_ACEOF
26163/* confdefs.h.  */
26164_ACEOF
26165cat confdefs.h >>conftest.$ac_ext
26166cat >>conftest.$ac_ext <<_ACEOF
26167/* end confdefs.h.  */
26168$ac_includes_default
26169#ifdef F77_DUMMY_MAIN
26170
26171#  ifdef __cplusplus
26172     extern "C"
26173#  endif
26174   int F77_DUMMY_MAIN() { return 1; }
26175
26176#endif
26177int
26178main ()
26179{
26180if ((long *) 0)
26181  return 0;
26182if (sizeof (long))
26183  return 0;
26184  ;
26185  return 0;
26186}
26187_ACEOF
26188rm -f conftest.$ac_objext
26189if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26190  (eval $ac_compile) 2>conftest.er1
26191  ac_status=$?
26192  grep -v '^ *+' conftest.er1 >conftest.err
26193  rm -f conftest.er1
26194  cat conftest.err >&5
26195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26196  (exit $ac_status); } &&
26197	 { ac_try='test -z "$ac_c_werror_flag"
26198			 || test ! -s conftest.err'
26199  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26200  (eval $ac_try) 2>&5
26201  ac_status=$?
26202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26203  (exit $ac_status); }; } &&
26204	 { ac_try='test -s conftest.$ac_objext'
26205  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26206  (eval $ac_try) 2>&5
26207  ac_status=$?
26208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26209  (exit $ac_status); }; }; then
26210  ac_cv_type_long=yes
26211else
26212  echo "$as_me: failed program was:" >&5
26213sed 's/^/| /' conftest.$ac_ext >&5
26214
26215ac_cv_type_long=no
26216fi
26217rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26218fi
26219echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
26220echo "${ECHO_T}$ac_cv_type_long" >&6
26221
26222echo "$as_me:$LINENO: checking size of long" >&5
26223echo $ECHO_N "checking size of long... $ECHO_C" >&6
26224if test "${ac_cv_sizeof_long+set}" = set; then
26225  echo $ECHO_N "(cached) $ECHO_C" >&6
26226else
26227  if test "$ac_cv_type_long" = yes; then
26228  # The cast to unsigned long works around a bug in the HP C Compiler
26229  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26230  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26231  # This bug is HP SR number 8606223364.
26232  if test "$cross_compiling" = yes; then
26233  # Depending upon the size, compute the lo and hi bounds.
26234cat >conftest.$ac_ext <<_ACEOF
26235/* confdefs.h.  */
26236_ACEOF
26237cat confdefs.h >>conftest.$ac_ext
26238cat >>conftest.$ac_ext <<_ACEOF
26239/* end confdefs.h.  */
26240$ac_includes_default
26241#ifdef F77_DUMMY_MAIN
26242
26243#  ifdef __cplusplus
26244     extern "C"
26245#  endif
26246   int F77_DUMMY_MAIN() { return 1; }
26247
26248#endif
26249int
26250main ()
26251{
26252static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
26253test_array [0] = 0
26254
26255  ;
26256  return 0;
26257}
26258_ACEOF
26259rm -f conftest.$ac_objext
26260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26261  (eval $ac_compile) 2>conftest.er1
26262  ac_status=$?
26263  grep -v '^ *+' conftest.er1 >conftest.err
26264  rm -f conftest.er1
26265  cat conftest.err >&5
26266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26267  (exit $ac_status); } &&
26268	 { ac_try='test -z "$ac_c_werror_flag"
26269			 || test ! -s conftest.err'
26270  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26271  (eval $ac_try) 2>&5
26272  ac_status=$?
26273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26274  (exit $ac_status); }; } &&
26275	 { ac_try='test -s conftest.$ac_objext'
26276  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26277  (eval $ac_try) 2>&5
26278  ac_status=$?
26279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26280  (exit $ac_status); }; }; then
26281  ac_lo=0 ac_mid=0
26282  while :; do
26283    cat >conftest.$ac_ext <<_ACEOF
26284/* confdefs.h.  */
26285_ACEOF
26286cat confdefs.h >>conftest.$ac_ext
26287cat >>conftest.$ac_ext <<_ACEOF
26288/* end confdefs.h.  */
26289$ac_includes_default
26290#ifdef F77_DUMMY_MAIN
26291
26292#  ifdef __cplusplus
26293     extern "C"
26294#  endif
26295   int F77_DUMMY_MAIN() { return 1; }
26296
26297#endif
26298int
26299main ()
26300{
26301static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
26302test_array [0] = 0
26303
26304  ;
26305  return 0;
26306}
26307_ACEOF
26308rm -f conftest.$ac_objext
26309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26310  (eval $ac_compile) 2>conftest.er1
26311  ac_status=$?
26312  grep -v '^ *+' conftest.er1 >conftest.err
26313  rm -f conftest.er1
26314  cat conftest.err >&5
26315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26316  (exit $ac_status); } &&
26317	 { ac_try='test -z "$ac_c_werror_flag"
26318			 || test ! -s conftest.err'
26319  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26320  (eval $ac_try) 2>&5
26321  ac_status=$?
26322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26323  (exit $ac_status); }; } &&
26324	 { ac_try='test -s conftest.$ac_objext'
26325  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26326  (eval $ac_try) 2>&5
26327  ac_status=$?
26328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26329  (exit $ac_status); }; }; then
26330  ac_hi=$ac_mid; break
26331else
26332  echo "$as_me: failed program was:" >&5
26333sed 's/^/| /' conftest.$ac_ext >&5
26334
26335ac_lo=`expr $ac_mid + 1`
26336		    if test $ac_lo -le $ac_mid; then
26337		      ac_lo= ac_hi=
26338		      break
26339		    fi
26340		    ac_mid=`expr 2 '*' $ac_mid + 1`
26341fi
26342rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26343  done
26344else
26345  echo "$as_me: failed program was:" >&5
26346sed 's/^/| /' conftest.$ac_ext >&5
26347
26348cat >conftest.$ac_ext <<_ACEOF
26349/* confdefs.h.  */
26350_ACEOF
26351cat confdefs.h >>conftest.$ac_ext
26352cat >>conftest.$ac_ext <<_ACEOF
26353/* end confdefs.h.  */
26354$ac_includes_default
26355#ifdef F77_DUMMY_MAIN
26356
26357#  ifdef __cplusplus
26358     extern "C"
26359#  endif
26360   int F77_DUMMY_MAIN() { return 1; }
26361
26362#endif
26363int
26364main ()
26365{
26366static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
26367test_array [0] = 0
26368
26369  ;
26370  return 0;
26371}
26372_ACEOF
26373rm -f conftest.$ac_objext
26374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26375  (eval $ac_compile) 2>conftest.er1
26376  ac_status=$?
26377  grep -v '^ *+' conftest.er1 >conftest.err
26378  rm -f conftest.er1
26379  cat conftest.err >&5
26380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26381  (exit $ac_status); } &&
26382	 { ac_try='test -z "$ac_c_werror_flag"
26383			 || test ! -s conftest.err'
26384  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26385  (eval $ac_try) 2>&5
26386  ac_status=$?
26387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26388  (exit $ac_status); }; } &&
26389	 { ac_try='test -s conftest.$ac_objext'
26390  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26391  (eval $ac_try) 2>&5
26392  ac_status=$?
26393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26394  (exit $ac_status); }; }; then
26395  ac_hi=-1 ac_mid=-1
26396  while :; do
26397    cat >conftest.$ac_ext <<_ACEOF
26398/* confdefs.h.  */
26399_ACEOF
26400cat confdefs.h >>conftest.$ac_ext
26401cat >>conftest.$ac_ext <<_ACEOF
26402/* end confdefs.h.  */
26403$ac_includes_default
26404#ifdef F77_DUMMY_MAIN
26405
26406#  ifdef __cplusplus
26407     extern "C"
26408#  endif
26409   int F77_DUMMY_MAIN() { return 1; }
26410
26411#endif
26412int
26413main ()
26414{
26415static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
26416test_array [0] = 0
26417
26418  ;
26419  return 0;
26420}
26421_ACEOF
26422rm -f conftest.$ac_objext
26423if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26424  (eval $ac_compile) 2>conftest.er1
26425  ac_status=$?
26426  grep -v '^ *+' conftest.er1 >conftest.err
26427  rm -f conftest.er1
26428  cat conftest.err >&5
26429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26430  (exit $ac_status); } &&
26431	 { ac_try='test -z "$ac_c_werror_flag"
26432			 || test ! -s conftest.err'
26433  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26434  (eval $ac_try) 2>&5
26435  ac_status=$?
26436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26437  (exit $ac_status); }; } &&
26438	 { ac_try='test -s conftest.$ac_objext'
26439  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26440  (eval $ac_try) 2>&5
26441  ac_status=$?
26442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26443  (exit $ac_status); }; }; then
26444  ac_lo=$ac_mid; break
26445else
26446  echo "$as_me: failed program was:" >&5
26447sed 's/^/| /' conftest.$ac_ext >&5
26448
26449ac_hi=`expr '(' $ac_mid ')' - 1`
26450		       if test $ac_mid -le $ac_hi; then
26451			 ac_lo= ac_hi=
26452			 break
26453		       fi
26454		       ac_mid=`expr 2 '*' $ac_mid`
26455fi
26456rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26457  done
26458else
26459  echo "$as_me: failed program was:" >&5
26460sed 's/^/| /' conftest.$ac_ext >&5
26461
26462ac_lo= ac_hi=
26463fi
26464rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26465fi
26466rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26467# Binary search between lo and hi bounds.
26468while test "x$ac_lo" != "x$ac_hi"; do
26469  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26470  cat >conftest.$ac_ext <<_ACEOF
26471/* confdefs.h.  */
26472_ACEOF
26473cat confdefs.h >>conftest.$ac_ext
26474cat >>conftest.$ac_ext <<_ACEOF
26475/* end confdefs.h.  */
26476$ac_includes_default
26477#ifdef F77_DUMMY_MAIN
26478
26479#  ifdef __cplusplus
26480     extern "C"
26481#  endif
26482   int F77_DUMMY_MAIN() { return 1; }
26483
26484#endif
26485int
26486main ()
26487{
26488static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
26489test_array [0] = 0
26490
26491  ;
26492  return 0;
26493}
26494_ACEOF
26495rm -f conftest.$ac_objext
26496if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26497  (eval $ac_compile) 2>conftest.er1
26498  ac_status=$?
26499  grep -v '^ *+' conftest.er1 >conftest.err
26500  rm -f conftest.er1
26501  cat conftest.err >&5
26502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26503  (exit $ac_status); } &&
26504	 { ac_try='test -z "$ac_c_werror_flag"
26505			 || test ! -s conftest.err'
26506  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26507  (eval $ac_try) 2>&5
26508  ac_status=$?
26509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26510  (exit $ac_status); }; } &&
26511	 { ac_try='test -s conftest.$ac_objext'
26512  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26513  (eval $ac_try) 2>&5
26514  ac_status=$?
26515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26516  (exit $ac_status); }; }; then
26517  ac_hi=$ac_mid
26518else
26519  echo "$as_me: failed program was:" >&5
26520sed 's/^/| /' conftest.$ac_ext >&5
26521
26522ac_lo=`expr '(' $ac_mid ')' + 1`
26523fi
26524rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26525done
26526case $ac_lo in
26527?*) ac_cv_sizeof_long=$ac_lo;;
26528'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
26529See \`config.log' for more details." >&5
26530echo "$as_me: error: cannot compute sizeof (long), 77
26531See \`config.log' for more details." >&2;}
26532   { (exit 1); exit 1; }; } ;;
26533esac
26534else
26535  if test "$cross_compiling" = yes; then
26536  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
26537See \`config.log' for more details." >&5
26538echo "$as_me: error: cannot run test program while cross compiling
26539See \`config.log' for more details." >&2;}
26540   { (exit 1); exit 1; }; }
26541else
26542  cat >conftest.$ac_ext <<_ACEOF
26543/* confdefs.h.  */
26544_ACEOF
26545cat confdefs.h >>conftest.$ac_ext
26546cat >>conftest.$ac_ext <<_ACEOF
26547/* end confdefs.h.  */
26548$ac_includes_default
26549long longval () { return (long) (sizeof (long)); }
26550unsigned long ulongval () { return (long) (sizeof (long)); }
26551#include <stdio.h>
26552#include <stdlib.h>
26553#ifdef F77_DUMMY_MAIN
26554
26555#  ifdef __cplusplus
26556     extern "C"
26557#  endif
26558   int F77_DUMMY_MAIN() { return 1; }
26559
26560#endif
26561int
26562main ()
26563{
26564
26565  FILE *f = fopen ("conftest.val", "w");
26566  if (! f)
26567    exit (1);
26568  if (((long) (sizeof (long))) < 0)
26569    {
26570      long i = longval ();
26571      if (i != ((long) (sizeof (long))))
26572	exit (1);
26573      fprintf (f, "%ld\n", i);
26574    }
26575  else
26576    {
26577      unsigned long i = ulongval ();
26578      if (i != ((long) (sizeof (long))))
26579	exit (1);
26580      fprintf (f, "%lu\n", i);
26581    }
26582  exit (ferror (f) || fclose (f) != 0);
26583
26584  ;
26585  return 0;
26586}
26587_ACEOF
26588rm -f conftest$ac_exeext
26589if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26590  (eval $ac_link) 2>&5
26591  ac_status=$?
26592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26593  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26594  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26595  (eval $ac_try) 2>&5
26596  ac_status=$?
26597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26598  (exit $ac_status); }; }; then
26599  ac_cv_sizeof_long=`cat conftest.val`
26600else
26601  echo "$as_me: program exited with status $ac_status" >&5
26602echo "$as_me: failed program was:" >&5
26603sed 's/^/| /' conftest.$ac_ext >&5
26604
26605( exit $ac_status )
26606{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
26607See \`config.log' for more details." >&5
26608echo "$as_me: error: cannot compute sizeof (long), 77
26609See \`config.log' for more details." >&2;}
26610   { (exit 1); exit 1; }; }
26611fi
26612rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26613fi
26614fi
26615rm -f conftest.val
26616else
26617  ac_cv_sizeof_long=0
26618fi
26619fi
26620echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
26621echo "${ECHO_T}$ac_cv_sizeof_long" >&6
26622cat >>confdefs.h <<_ACEOF
26623#define SIZEOF_LONG $ac_cv_sizeof_long
26624_ACEOF
26625
26626
26627  case $ac_cv_sizeof_long in
26628    8 | 8?) CoinInt64="long"
26629    	    CoinUInt64="unsigned long"
26630	    ;;
26631  esac
26632fi
26633
26634#try int
26635if test x"$CoinInt64" = x; then
26636  echo "$as_me:$LINENO: checking for int" >&5
26637echo $ECHO_N "checking for int... $ECHO_C" >&6
26638if test "${ac_cv_type_int+set}" = set; then
26639  echo $ECHO_N "(cached) $ECHO_C" >&6
26640else
26641  cat >conftest.$ac_ext <<_ACEOF
26642/* confdefs.h.  */
26643_ACEOF
26644cat confdefs.h >>conftest.$ac_ext
26645cat >>conftest.$ac_ext <<_ACEOF
26646/* end confdefs.h.  */
26647$ac_includes_default
26648#ifdef F77_DUMMY_MAIN
26649
26650#  ifdef __cplusplus
26651     extern "C"
26652#  endif
26653   int F77_DUMMY_MAIN() { return 1; }
26654
26655#endif
26656int
26657main ()
26658{
26659if ((int *) 0)
26660  return 0;
26661if (sizeof (int))
26662  return 0;
26663  ;
26664  return 0;
26665}
26666_ACEOF
26667rm -f conftest.$ac_objext
26668if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26669  (eval $ac_compile) 2>conftest.er1
26670  ac_status=$?
26671  grep -v '^ *+' conftest.er1 >conftest.err
26672  rm -f conftest.er1
26673  cat conftest.err >&5
26674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26675  (exit $ac_status); } &&
26676	 { ac_try='test -z "$ac_c_werror_flag"
26677			 || test ! -s conftest.err'
26678  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26679  (eval $ac_try) 2>&5
26680  ac_status=$?
26681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26682  (exit $ac_status); }; } &&
26683	 { ac_try='test -s conftest.$ac_objext'
26684  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26685  (eval $ac_try) 2>&5
26686  ac_status=$?
26687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26688  (exit $ac_status); }; }; then
26689  ac_cv_type_int=yes
26690else
26691  echo "$as_me: failed program was:" >&5
26692sed 's/^/| /' conftest.$ac_ext >&5
26693
26694ac_cv_type_int=no
26695fi
26696rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26697fi
26698echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
26699echo "${ECHO_T}$ac_cv_type_int" >&6
26700
26701echo "$as_me:$LINENO: checking size of int" >&5
26702echo $ECHO_N "checking size of int... $ECHO_C" >&6
26703if test "${ac_cv_sizeof_int+set}" = set; then
26704  echo $ECHO_N "(cached) $ECHO_C" >&6
26705else
26706  if test "$ac_cv_type_int" = yes; then
26707  # The cast to unsigned long works around a bug in the HP C Compiler
26708  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26709  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26710  # This bug is HP SR number 8606223364.
26711  if test "$cross_compiling" = yes; then
26712  # Depending upon the size, compute the lo and hi bounds.
26713cat >conftest.$ac_ext <<_ACEOF
26714/* confdefs.h.  */
26715_ACEOF
26716cat confdefs.h >>conftest.$ac_ext
26717cat >>conftest.$ac_ext <<_ACEOF
26718/* end confdefs.h.  */
26719$ac_includes_default
26720#ifdef F77_DUMMY_MAIN
26721
26722#  ifdef __cplusplus
26723     extern "C"
26724#  endif
26725   int F77_DUMMY_MAIN() { return 1; }
26726
26727#endif
26728int
26729main ()
26730{
26731static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
26732test_array [0] = 0
26733
26734  ;
26735  return 0;
26736}
26737_ACEOF
26738rm -f conftest.$ac_objext
26739if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26740  (eval $ac_compile) 2>conftest.er1
26741  ac_status=$?
26742  grep -v '^ *+' conftest.er1 >conftest.err
26743  rm -f conftest.er1
26744  cat conftest.err >&5
26745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26746  (exit $ac_status); } &&
26747	 { ac_try='test -z "$ac_c_werror_flag"
26748			 || test ! -s conftest.err'
26749  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26750  (eval $ac_try) 2>&5
26751  ac_status=$?
26752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26753  (exit $ac_status); }; } &&
26754	 { ac_try='test -s conftest.$ac_objext'
26755  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26756  (eval $ac_try) 2>&5
26757  ac_status=$?
26758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26759  (exit $ac_status); }; }; then
26760  ac_lo=0 ac_mid=0
26761  while :; do
26762    cat >conftest.$ac_ext <<_ACEOF
26763/* confdefs.h.  */
26764_ACEOF
26765cat confdefs.h >>conftest.$ac_ext
26766cat >>conftest.$ac_ext <<_ACEOF
26767/* end confdefs.h.  */
26768$ac_includes_default
26769#ifdef F77_DUMMY_MAIN
26770
26771#  ifdef __cplusplus
26772     extern "C"
26773#  endif
26774   int F77_DUMMY_MAIN() { return 1; }
26775
26776#endif
26777int
26778main ()
26779{
26780static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
26781test_array [0] = 0
26782
26783  ;
26784  return 0;
26785}
26786_ACEOF
26787rm -f conftest.$ac_objext
26788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26789  (eval $ac_compile) 2>conftest.er1
26790  ac_status=$?
26791  grep -v '^ *+' conftest.er1 >conftest.err
26792  rm -f conftest.er1
26793  cat conftest.err >&5
26794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26795  (exit $ac_status); } &&
26796	 { ac_try='test -z "$ac_c_werror_flag"
26797			 || test ! -s conftest.err'
26798  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26799  (eval $ac_try) 2>&5
26800  ac_status=$?
26801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26802  (exit $ac_status); }; } &&
26803	 { ac_try='test -s conftest.$ac_objext'
26804  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26805  (eval $ac_try) 2>&5
26806  ac_status=$?
26807  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26808  (exit $ac_status); }; }; then
26809  ac_hi=$ac_mid; break
26810else
26811  echo "$as_me: failed program was:" >&5
26812sed 's/^/| /' conftest.$ac_ext >&5
26813
26814ac_lo=`expr $ac_mid + 1`
26815		    if test $ac_lo -le $ac_mid; then
26816		      ac_lo= ac_hi=
26817		      break
26818		    fi
26819		    ac_mid=`expr 2 '*' $ac_mid + 1`
26820fi
26821rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26822  done
26823else
26824  echo "$as_me: failed program was:" >&5
26825sed 's/^/| /' conftest.$ac_ext >&5
26826
26827cat >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$ac_includes_default
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{
26845static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
26846test_array [0] = 0
26847
26848  ;
26849  return 0;
26850}
26851_ACEOF
26852rm -f conftest.$ac_objext
26853if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26854  (eval $ac_compile) 2>conftest.er1
26855  ac_status=$?
26856  grep -v '^ *+' conftest.er1 >conftest.err
26857  rm -f conftest.er1
26858  cat conftest.err >&5
26859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26860  (exit $ac_status); } &&
26861	 { ac_try='test -z "$ac_c_werror_flag"
26862			 || test ! -s conftest.err'
26863  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26864  (eval $ac_try) 2>&5
26865  ac_status=$?
26866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26867  (exit $ac_status); }; } &&
26868	 { ac_try='test -s conftest.$ac_objext'
26869  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26870  (eval $ac_try) 2>&5
26871  ac_status=$?
26872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26873  (exit $ac_status); }; }; then
26874  ac_hi=-1 ac_mid=-1
26875  while :; do
26876    cat >conftest.$ac_ext <<_ACEOF
26877/* confdefs.h.  */
26878_ACEOF
26879cat confdefs.h >>conftest.$ac_ext
26880cat >>conftest.$ac_ext <<_ACEOF
26881/* end confdefs.h.  */
26882$ac_includes_default
26883#ifdef F77_DUMMY_MAIN
26884
26885#  ifdef __cplusplus
26886     extern "C"
26887#  endif
26888   int F77_DUMMY_MAIN() { return 1; }
26889
26890#endif
26891int
26892main ()
26893{
26894static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
26895test_array [0] = 0
26896
26897  ;
26898  return 0;
26899}
26900_ACEOF
26901rm -f conftest.$ac_objext
26902if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26903  (eval $ac_compile) 2>conftest.er1
26904  ac_status=$?
26905  grep -v '^ *+' conftest.er1 >conftest.err
26906  rm -f conftest.er1
26907  cat conftest.err >&5
26908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26909  (exit $ac_status); } &&
26910	 { ac_try='test -z "$ac_c_werror_flag"
26911			 || test ! -s conftest.err'
26912  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26913  (eval $ac_try) 2>&5
26914  ac_status=$?
26915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26916  (exit $ac_status); }; } &&
26917	 { ac_try='test -s conftest.$ac_objext'
26918  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26919  (eval $ac_try) 2>&5
26920  ac_status=$?
26921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26922  (exit $ac_status); }; }; then
26923  ac_lo=$ac_mid; break
26924else
26925  echo "$as_me: failed program was:" >&5
26926sed 's/^/| /' conftest.$ac_ext >&5
26927
26928ac_hi=`expr '(' $ac_mid ')' - 1`
26929		       if test $ac_mid -le $ac_hi; then
26930			 ac_lo= ac_hi=
26931			 break
26932		       fi
26933		       ac_mid=`expr 2 '*' $ac_mid`
26934fi
26935rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26936  done
26937else
26938  echo "$as_me: failed program was:" >&5
26939sed 's/^/| /' conftest.$ac_ext >&5
26940
26941ac_lo= ac_hi=
26942fi
26943rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26944fi
26945rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26946# Binary search between lo and hi bounds.
26947while test "x$ac_lo" != "x$ac_hi"; do
26948  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26949  cat >conftest.$ac_ext <<_ACEOF
26950/* confdefs.h.  */
26951_ACEOF
26952cat confdefs.h >>conftest.$ac_ext
26953cat >>conftest.$ac_ext <<_ACEOF
26954/* end confdefs.h.  */
26955$ac_includes_default
26956#ifdef F77_DUMMY_MAIN
26957
26958#  ifdef __cplusplus
26959     extern "C"
26960#  endif
26961   int F77_DUMMY_MAIN() { return 1; }
26962
26963#endif
26964int
26965main ()
26966{
26967static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
26968test_array [0] = 0
26969
26970  ;
26971  return 0;
26972}
26973_ACEOF
26974rm -f conftest.$ac_objext
26975if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26976  (eval $ac_compile) 2>conftest.er1
26977  ac_status=$?
26978  grep -v '^ *+' conftest.er1 >conftest.err
26979  rm -f conftest.er1
26980  cat conftest.err >&5
26981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26982  (exit $ac_status); } &&
26983	 { ac_try='test -z "$ac_c_werror_flag"
26984			 || test ! -s conftest.err'
26985  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26986  (eval $ac_try) 2>&5
26987  ac_status=$?
26988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26989  (exit $ac_status); }; } &&
26990	 { ac_try='test -s conftest.$ac_objext'
26991  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26992  (eval $ac_try) 2>&5
26993  ac_status=$?
26994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26995  (exit $ac_status); }; }; then
26996  ac_hi=$ac_mid
26997else
26998  echo "$as_me: failed program was:" >&5
26999sed 's/^/| /' conftest.$ac_ext >&5
27000
27001ac_lo=`expr '(' $ac_mid ')' + 1`
27002fi
27003rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27004done
27005case $ac_lo in
27006?*) ac_cv_sizeof_int=$ac_lo;;
27007'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
27008See \`config.log' for more details." >&5
27009echo "$as_me: error: cannot compute sizeof (int), 77
27010See \`config.log' for more details." >&2;}
27011   { (exit 1); exit 1; }; } ;;
27012esac
27013else
27014  if test "$cross_compiling" = yes; then
27015  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
27016See \`config.log' for more details." >&5
27017echo "$as_me: error: cannot run test program while cross compiling
27018See \`config.log' for more details." >&2;}
27019   { (exit 1); exit 1; }; }
27020else
27021  cat >conftest.$ac_ext <<_ACEOF
27022/* confdefs.h.  */
27023_ACEOF
27024cat confdefs.h >>conftest.$ac_ext
27025cat >>conftest.$ac_ext <<_ACEOF
27026/* end confdefs.h.  */
27027$ac_includes_default
27028long longval () { return (long) (sizeof (int)); }
27029unsigned long ulongval () { return (long) (sizeof (int)); }
27030#include <stdio.h>
27031#include <stdlib.h>
27032#ifdef F77_DUMMY_MAIN
27033
27034#  ifdef __cplusplus
27035     extern "C"
27036#  endif
27037   int F77_DUMMY_MAIN() { return 1; }
27038
27039#endif
27040int
27041main ()
27042{
27043
27044  FILE *f = fopen ("conftest.val", "w");
27045  if (! f)
27046    exit (1);
27047  if (((long) (sizeof (int))) < 0)
27048    {
27049      long i = longval ();
27050      if (i != ((long) (sizeof (int))))
27051	exit (1);
27052      fprintf (f, "%ld\n", i);
27053    }
27054  else
27055    {
27056      unsigned long i = ulongval ();
27057      if (i != ((long) (sizeof (int))))
27058	exit (1);
27059      fprintf (f, "%lu\n", i);
27060    }
27061  exit (ferror (f) || fclose (f) != 0);
27062
27063  ;
27064  return 0;
27065}
27066_ACEOF
27067rm -f conftest$ac_exeext
27068if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27069  (eval $ac_link) 2>&5
27070  ac_status=$?
27071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27072  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27073  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27074  (eval $ac_try) 2>&5
27075  ac_status=$?
27076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27077  (exit $ac_status); }; }; then
27078  ac_cv_sizeof_int=`cat conftest.val`
27079else
27080  echo "$as_me: program exited with status $ac_status" >&5
27081echo "$as_me: failed program was:" >&5
27082sed 's/^/| /' conftest.$ac_ext >&5
27083
27084( exit $ac_status )
27085{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
27086See \`config.log' for more details." >&5
27087echo "$as_me: error: cannot compute sizeof (int), 77
27088See \`config.log' for more details." >&2;}
27089   { (exit 1); exit 1; }; }
27090fi
27091rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27092fi
27093fi
27094rm -f conftest.val
27095else
27096  ac_cv_sizeof_int=0
27097fi
27098fi
27099echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
27100echo "${ECHO_T}$ac_cv_sizeof_int" >&6
27101cat >>confdefs.h <<_ACEOF
27102#define SIZEOF_INT $ac_cv_sizeof_int
27103_ACEOF
27104
27105
27106  case $ac_cv_sizeof_int in
27107    8 | 8?) CoinInt64="int"
27108    	    CoinUInt64="unsigned int"
27109	    ;;
27110  esac
27111fi
27112ac_ext=cc
27113ac_cpp='$CXXCPP $CPPFLAGS'
27114ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27115ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27116ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27117
27118
27119if test x"$CoinInt64" = x; then
27120  { { echo "$as_me:$LINENO: error: Cannot find integer type with 64 bits" >&5
27121echo "$as_me: error: Cannot find integer type with 64 bits" >&2;}
27122   { (exit 1); exit 1; }; }
27123fi
27124
27125cat >>confdefs.h <<_ACEOF
27126#define COIN_INT64_T $CoinInt64
27127_ACEOF
27128
27129
27130cat >>confdefs.h <<_ACEOF
27131#define COIN_UINT64_T $CoinInt64
27132_ACEOF
27133
27134
27135
27136##### Integer type for Pointer
27137CoinIntPtr=
27138
27139# try intptr_t
27140echo "$as_me:$LINENO: checking for intptr_t" >&5
27141echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6
27142if test "${ac_cv_type_intptr_t+set}" = set; then
27143  echo $ECHO_N "(cached) $ECHO_C" >&6
27144else
27145  cat >conftest.$ac_ext <<_ACEOF
27146/* confdefs.h.  */
27147_ACEOF
27148cat confdefs.h >>conftest.$ac_ext
27149cat >>conftest.$ac_ext <<_ACEOF
27150/* end confdefs.h.  */
27151
27152#ifdef HAVE_CINTTYPES
27153# include <cinttypes>
27154#else
27155# ifdef HAVE_INTTYPES_H
27156#  include <inttypes.h>
27157# endif
27158#endif
27159
27160
27161#ifdef F77_DUMMY_MAIN
27162
27163#  ifdef __cplusplus
27164     extern "C"
27165#  endif
27166   int F77_DUMMY_MAIN() { return 1; }
27167
27168#endif
27169int
27170main ()
27171{
27172if ((intptr_t *) 0)
27173  return 0;
27174if (sizeof (intptr_t))
27175  return 0;
27176  ;
27177  return 0;
27178}
27179_ACEOF
27180rm -f conftest.$ac_objext
27181if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27182  (eval $ac_compile) 2>conftest.er1
27183  ac_status=$?
27184  grep -v '^ *+' conftest.er1 >conftest.err
27185  rm -f conftest.er1
27186  cat conftest.err >&5
27187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27188  (exit $ac_status); } &&
27189	 { ac_try='test -z "$ac_cxx_werror_flag"
27190			 || test ! -s conftest.err'
27191  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27192  (eval $ac_try) 2>&5
27193  ac_status=$?
27194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27195  (exit $ac_status); }; } &&
27196	 { ac_try='test -s conftest.$ac_objext'
27197  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27198  (eval $ac_try) 2>&5
27199  ac_status=$?
27200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27201  (exit $ac_status); }; }; then
27202  ac_cv_type_intptr_t=yes
27203else
27204  echo "$as_me: failed program was:" >&5
27205sed 's/^/| /' conftest.$ac_ext >&5
27206
27207ac_cv_type_intptr_t=no
27208fi
27209rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27210fi
27211echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
27212echo "${ECHO_T}$ac_cv_type_intptr_t" >&6
27213if test $ac_cv_type_intptr_t = yes; then
27214  CoinIntPtr=intptr_t
27215fi
27216
27217
27218ac_ext=c
27219ac_cpp='$CPP $CPPFLAGS'
27220ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27221ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27222ac_compiler_gnu=$ac_cv_c_compiler_gnu
27223
27224# try long long
27225if test x"$CoinIntPtr" = x; then
27226  echo "$as_me:$LINENO: checking for int *" >&5
27227echo $ECHO_N "checking for int *... $ECHO_C" >&6
27228if test "${ac_cv_type_int_p+set}" = set; then
27229  echo $ECHO_N "(cached) $ECHO_C" >&6
27230else
27231  cat >conftest.$ac_ext <<_ACEOF
27232/* confdefs.h.  */
27233_ACEOF
27234cat confdefs.h >>conftest.$ac_ext
27235cat >>conftest.$ac_ext <<_ACEOF
27236/* end confdefs.h.  */
27237$ac_includes_default
27238#ifdef F77_DUMMY_MAIN
27239
27240#  ifdef __cplusplus
27241     extern "C"
27242#  endif
27243   int F77_DUMMY_MAIN() { return 1; }
27244
27245#endif
27246int
27247main ()
27248{
27249if ((int * *) 0)
27250  return 0;
27251if (sizeof (int *))
27252  return 0;
27253  ;
27254  return 0;
27255}
27256_ACEOF
27257rm -f conftest.$ac_objext
27258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27259  (eval $ac_compile) 2>conftest.er1
27260  ac_status=$?
27261  grep -v '^ *+' conftest.er1 >conftest.err
27262  rm -f conftest.er1
27263  cat conftest.err >&5
27264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27265  (exit $ac_status); } &&
27266	 { ac_try='test -z "$ac_c_werror_flag"
27267			 || test ! -s conftest.err'
27268  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27269  (eval $ac_try) 2>&5
27270  ac_status=$?
27271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27272  (exit $ac_status); }; } &&
27273	 { ac_try='test -s conftest.$ac_objext'
27274  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27275  (eval $ac_try) 2>&5
27276  ac_status=$?
27277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27278  (exit $ac_status); }; }; then
27279  ac_cv_type_int_p=yes
27280else
27281  echo "$as_me: failed program was:" >&5
27282sed 's/^/| /' conftest.$ac_ext >&5
27283
27284ac_cv_type_int_p=no
27285fi
27286rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27287fi
27288echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
27289echo "${ECHO_T}$ac_cv_type_int_p" >&6
27290
27291echo "$as_me:$LINENO: checking size of int *" >&5
27292echo $ECHO_N "checking size of int *... $ECHO_C" >&6
27293if test "${ac_cv_sizeof_int_p+set}" = set; then
27294  echo $ECHO_N "(cached) $ECHO_C" >&6
27295else
27296  if test "$ac_cv_type_int_p" = yes; then
27297  # The cast to unsigned long works around a bug in the HP C Compiler
27298  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27299  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27300  # This bug is HP SR number 8606223364.
27301  if test "$cross_compiling" = yes; then
27302  # Depending upon the size, compute the lo and hi bounds.
27303cat >conftest.$ac_ext <<_ACEOF
27304/* confdefs.h.  */
27305_ACEOF
27306cat confdefs.h >>conftest.$ac_ext
27307cat >>conftest.$ac_ext <<_ACEOF
27308/* end confdefs.h.  */
27309$ac_includes_default
27310#ifdef F77_DUMMY_MAIN
27311
27312#  ifdef __cplusplus
27313     extern "C"
27314#  endif
27315   int F77_DUMMY_MAIN() { return 1; }
27316
27317#endif
27318int
27319main ()
27320{
27321static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
27322test_array [0] = 0
27323
27324  ;
27325  return 0;
27326}
27327_ACEOF
27328rm -f conftest.$ac_objext
27329if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27330  (eval $ac_compile) 2>conftest.er1
27331  ac_status=$?
27332  grep -v '^ *+' conftest.er1 >conftest.err
27333  rm -f conftest.er1
27334  cat conftest.err >&5
27335  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27336  (exit $ac_status); } &&
27337	 { ac_try='test -z "$ac_c_werror_flag"
27338			 || test ! -s conftest.err'
27339  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27340  (eval $ac_try) 2>&5
27341  ac_status=$?
27342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27343  (exit $ac_status); }; } &&
27344	 { ac_try='test -s conftest.$ac_objext'
27345  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27346  (eval $ac_try) 2>&5
27347  ac_status=$?
27348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27349  (exit $ac_status); }; }; then
27350  ac_lo=0 ac_mid=0
27351  while :; do
27352    cat >conftest.$ac_ext <<_ACEOF
27353/* confdefs.h.  */
27354_ACEOF
27355cat confdefs.h >>conftest.$ac_ext
27356cat >>conftest.$ac_ext <<_ACEOF
27357/* end confdefs.h.  */
27358$ac_includes_default
27359#ifdef F77_DUMMY_MAIN
27360
27361#  ifdef __cplusplus
27362     extern "C"
27363#  endif
27364   int F77_DUMMY_MAIN() { return 1; }
27365
27366#endif
27367int
27368main ()
27369{
27370static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
27371test_array [0] = 0
27372
27373  ;
27374  return 0;
27375}
27376_ACEOF
27377rm -f conftest.$ac_objext
27378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27379  (eval $ac_compile) 2>conftest.er1
27380  ac_status=$?
27381  grep -v '^ *+' conftest.er1 >conftest.err
27382  rm -f conftest.er1
27383  cat conftest.err >&5
27384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27385  (exit $ac_status); } &&
27386	 { ac_try='test -z "$ac_c_werror_flag"
27387			 || test ! -s conftest.err'
27388  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27389  (eval $ac_try) 2>&5
27390  ac_status=$?
27391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27392  (exit $ac_status); }; } &&
27393	 { ac_try='test -s conftest.$ac_objext'
27394  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27395  (eval $ac_try) 2>&5
27396  ac_status=$?
27397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27398  (exit $ac_status); }; }; then
27399  ac_hi=$ac_mid; break
27400else
27401  echo "$as_me: failed program was:" >&5
27402sed 's/^/| /' conftest.$ac_ext >&5
27403
27404ac_lo=`expr $ac_mid + 1`
27405		    if test $ac_lo -le $ac_mid; then
27406		      ac_lo= ac_hi=
27407		      break
27408		    fi
27409		    ac_mid=`expr 2 '*' $ac_mid + 1`
27410fi
27411rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27412  done
27413else
27414  echo "$as_me: failed program was:" >&5
27415sed 's/^/| /' conftest.$ac_ext >&5
27416
27417cat >conftest.$ac_ext <<_ACEOF
27418/* confdefs.h.  */
27419_ACEOF
27420cat confdefs.h >>conftest.$ac_ext
27421cat >>conftest.$ac_ext <<_ACEOF
27422/* end confdefs.h.  */
27423$ac_includes_default
27424#ifdef F77_DUMMY_MAIN
27425
27426#  ifdef __cplusplus
27427     extern "C"
27428#  endif
27429   int F77_DUMMY_MAIN() { return 1; }
27430
27431#endif
27432int
27433main ()
27434{
27435static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
27436test_array [0] = 0
27437
27438  ;
27439  return 0;
27440}
27441_ACEOF
27442rm -f conftest.$ac_objext
27443if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27444  (eval $ac_compile) 2>conftest.er1
27445  ac_status=$?
27446  grep -v '^ *+' conftest.er1 >conftest.err
27447  rm -f conftest.er1
27448  cat conftest.err >&5
27449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27450  (exit $ac_status); } &&
27451	 { ac_try='test -z "$ac_c_werror_flag"
27452			 || test ! -s conftest.err'
27453  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27454  (eval $ac_try) 2>&5
27455  ac_status=$?
27456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27457  (exit $ac_status); }; } &&
27458	 { ac_try='test -s conftest.$ac_objext'
27459  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27460  (eval $ac_try) 2>&5
27461  ac_status=$?
27462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27463  (exit $ac_status); }; }; then
27464  ac_hi=-1 ac_mid=-1
27465  while :; do
27466    cat >conftest.$ac_ext <<_ACEOF
27467/* confdefs.h.  */
27468_ACEOF
27469cat confdefs.h >>conftest.$ac_ext
27470cat >>conftest.$ac_ext <<_ACEOF
27471/* end confdefs.h.  */
27472$ac_includes_default
27473#ifdef F77_DUMMY_MAIN
27474
27475#  ifdef __cplusplus
27476     extern "C"
27477#  endif
27478   int F77_DUMMY_MAIN() { return 1; }
27479
27480#endif
27481int
27482main ()
27483{
27484static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
27485test_array [0] = 0
27486
27487  ;
27488  return 0;
27489}
27490_ACEOF
27491rm -f conftest.$ac_objext
27492if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27493  (eval $ac_compile) 2>conftest.er1
27494  ac_status=$?
27495  grep -v '^ *+' conftest.er1 >conftest.err
27496  rm -f conftest.er1
27497  cat conftest.err >&5
27498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27499  (exit $ac_status); } &&
27500	 { ac_try='test -z "$ac_c_werror_flag"
27501			 || test ! -s conftest.err'
27502  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27503  (eval $ac_try) 2>&5
27504  ac_status=$?
27505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27506  (exit $ac_status); }; } &&
27507	 { ac_try='test -s conftest.$ac_objext'
27508  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27509  (eval $ac_try) 2>&5
27510  ac_status=$?
27511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27512  (exit $ac_status); }; }; then
27513  ac_lo=$ac_mid; break
27514else
27515  echo "$as_me: failed program was:" >&5
27516sed 's/^/| /' conftest.$ac_ext >&5
27517
27518ac_hi=`expr '(' $ac_mid ')' - 1`
27519		       if test $ac_mid -le $ac_hi; then
27520			 ac_lo= ac_hi=
27521			 break
27522		       fi
27523		       ac_mid=`expr 2 '*' $ac_mid`
27524fi
27525rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27526  done
27527else
27528  echo "$as_me: failed program was:" >&5
27529sed 's/^/| /' conftest.$ac_ext >&5
27530
27531ac_lo= ac_hi=
27532fi
27533rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27534fi
27535rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27536# Binary search between lo and hi bounds.
27537while test "x$ac_lo" != "x$ac_hi"; do
27538  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27539  cat >conftest.$ac_ext <<_ACEOF
27540/* confdefs.h.  */
27541_ACEOF
27542cat confdefs.h >>conftest.$ac_ext
27543cat >>conftest.$ac_ext <<_ACEOF
27544/* end confdefs.h.  */
27545$ac_includes_default
27546#ifdef F77_DUMMY_MAIN
27547
27548#  ifdef __cplusplus
27549     extern "C"
27550#  endif
27551   int F77_DUMMY_MAIN() { return 1; }
27552
27553#endif
27554int
27555main ()
27556{
27557static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
27558test_array [0] = 0
27559
27560  ;
27561  return 0;
27562}
27563_ACEOF
27564rm -f conftest.$ac_objext
27565if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27566  (eval $ac_compile) 2>conftest.er1
27567  ac_status=$?
27568  grep -v '^ *+' conftest.er1 >conftest.err
27569  rm -f conftest.er1
27570  cat conftest.err >&5
27571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27572  (exit $ac_status); } &&
27573	 { ac_try='test -z "$ac_c_werror_flag"
27574			 || test ! -s conftest.err'
27575  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27576  (eval $ac_try) 2>&5
27577  ac_status=$?
27578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27579  (exit $ac_status); }; } &&
27580	 { ac_try='test -s conftest.$ac_objext'
27581  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27582  (eval $ac_try) 2>&5
27583  ac_status=$?
27584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27585  (exit $ac_status); }; }; then
27586  ac_hi=$ac_mid
27587else
27588  echo "$as_me: failed program was:" >&5
27589sed 's/^/| /' conftest.$ac_ext >&5
27590
27591ac_lo=`expr '(' $ac_mid ')' + 1`
27592fi
27593rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27594done
27595case $ac_lo in
27596?*) ac_cv_sizeof_int_p=$ac_lo;;
27597'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
27598See \`config.log' for more details." >&5
27599echo "$as_me: error: cannot compute sizeof (int *), 77
27600See \`config.log' for more details." >&2;}
27601   { (exit 1); exit 1; }; } ;;
27602esac
27603else
27604  if test "$cross_compiling" = yes; then
27605  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
27606See \`config.log' for more details." >&5
27607echo "$as_me: error: cannot run test program while cross compiling
27608See \`config.log' for more details." >&2;}
27609   { (exit 1); exit 1; }; }
27610else
27611  cat >conftest.$ac_ext <<_ACEOF
27612/* confdefs.h.  */
27613_ACEOF
27614cat confdefs.h >>conftest.$ac_ext
27615cat >>conftest.$ac_ext <<_ACEOF
27616/* end confdefs.h.  */
27617$ac_includes_default
27618long longval () { return (long) (sizeof (int *)); }
27619unsigned long ulongval () { return (long) (sizeof (int *)); }
27620#include <stdio.h>
27621#include <stdlib.h>
27622#ifdef F77_DUMMY_MAIN
27623
27624#  ifdef __cplusplus
27625     extern "C"
27626#  endif
27627   int F77_DUMMY_MAIN() { return 1; }
27628
27629#endif
27630int
27631main ()
27632{
27633
27634  FILE *f = fopen ("conftest.val", "w");
27635  if (! f)
27636    exit (1);
27637  if (((long) (sizeof (int *))) < 0)
27638    {
27639      long i = longval ();
27640      if (i != ((long) (sizeof (int *))))
27641	exit (1);
27642      fprintf (f, "%ld\n", i);
27643    }
27644  else
27645    {
27646      unsigned long i = ulongval ();
27647      if (i != ((long) (sizeof (int *))))
27648	exit (1);
27649      fprintf (f, "%lu\n", i);
27650    }
27651  exit (ferror (f) || fclose (f) != 0);
27652
27653  ;
27654  return 0;
27655}
27656_ACEOF
27657rm -f conftest$ac_exeext
27658if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27659  (eval $ac_link) 2>&5
27660  ac_status=$?
27661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27662  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27663  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27664  (eval $ac_try) 2>&5
27665  ac_status=$?
27666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27667  (exit $ac_status); }; }; then
27668  ac_cv_sizeof_int_p=`cat conftest.val`
27669else
27670  echo "$as_me: program exited with status $ac_status" >&5
27671echo "$as_me: failed program was:" >&5
27672sed 's/^/| /' conftest.$ac_ext >&5
27673
27674( exit $ac_status )
27675{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
27676See \`config.log' for more details." >&5
27677echo "$as_me: error: cannot compute sizeof (int *), 77
27678See \`config.log' for more details." >&2;}
27679   { (exit 1); exit 1; }; }
27680fi
27681rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27682fi
27683fi
27684rm -f conftest.val
27685else
27686  ac_cv_sizeof_int_p=0
27687fi
27688fi
27689echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
27690echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
27691cat >>confdefs.h <<_ACEOF
27692#define SIZEOF_INT_P $ac_cv_sizeof_int_p
27693_ACEOF
27694
27695
27696  echo "$as_me:$LINENO: checking for long long" >&5
27697echo $ECHO_N "checking for long long... $ECHO_C" >&6
27698if test "${ac_cv_type_long_long+set}" = set; then
27699  echo $ECHO_N "(cached) $ECHO_C" >&6
27700else
27701  cat >conftest.$ac_ext <<_ACEOF
27702/* confdefs.h.  */
27703_ACEOF
27704cat confdefs.h >>conftest.$ac_ext
27705cat >>conftest.$ac_ext <<_ACEOF
27706/* end confdefs.h.  */
27707$ac_includes_default
27708#ifdef F77_DUMMY_MAIN
27709
27710#  ifdef __cplusplus
27711     extern "C"
27712#  endif
27713   int F77_DUMMY_MAIN() { return 1; }
27714
27715#endif
27716int
27717main ()
27718{
27719if ((long long *) 0)
27720  return 0;
27721if (sizeof (long long))
27722  return 0;
27723  ;
27724  return 0;
27725}
27726_ACEOF
27727rm -f conftest.$ac_objext
27728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27729  (eval $ac_compile) 2>conftest.er1
27730  ac_status=$?
27731  grep -v '^ *+' conftest.er1 >conftest.err
27732  rm -f conftest.er1
27733  cat conftest.err >&5
27734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27735  (exit $ac_status); } &&
27736	 { ac_try='test -z "$ac_c_werror_flag"
27737			 || test ! -s conftest.err'
27738  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27739  (eval $ac_try) 2>&5
27740  ac_status=$?
27741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27742  (exit $ac_status); }; } &&
27743	 { ac_try='test -s conftest.$ac_objext'
27744  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27745  (eval $ac_try) 2>&5
27746  ac_status=$?
27747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27748  (exit $ac_status); }; }; then
27749  ac_cv_type_long_long=yes
27750else
27751  echo "$as_me: failed program was:" >&5
27752sed 's/^/| /' conftest.$ac_ext >&5
27753
27754ac_cv_type_long_long=no
27755fi
27756rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27757fi
27758echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
27759echo "${ECHO_T}$ac_cv_type_long_long" >&6
27760
27761echo "$as_me:$LINENO: checking size of long long" >&5
27762echo $ECHO_N "checking size of long long... $ECHO_C" >&6
27763if test "${ac_cv_sizeof_long_long+set}" = set; then
27764  echo $ECHO_N "(cached) $ECHO_C" >&6
27765else
27766  if test "$ac_cv_type_long_long" = yes; then
27767  # The cast to unsigned long works around a bug in the HP C Compiler
27768  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27769  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27770  # This bug is HP SR number 8606223364.
27771  if test "$cross_compiling" = yes; then
27772  # Depending upon the size, compute the lo and hi bounds.
27773cat >conftest.$ac_ext <<_ACEOF
27774/* confdefs.h.  */
27775_ACEOF
27776cat confdefs.h >>conftest.$ac_ext
27777cat >>conftest.$ac_ext <<_ACEOF
27778/* end confdefs.h.  */
27779$ac_includes_default
27780#ifdef F77_DUMMY_MAIN
27781
27782#  ifdef __cplusplus
27783     extern "C"
27784#  endif
27785   int F77_DUMMY_MAIN() { return 1; }
27786
27787#endif
27788int
27789main ()
27790{
27791static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
27792test_array [0] = 0
27793
27794  ;
27795  return 0;
27796}
27797_ACEOF
27798rm -f conftest.$ac_objext
27799if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27800  (eval $ac_compile) 2>conftest.er1
27801  ac_status=$?
27802  grep -v '^ *+' conftest.er1 >conftest.err
27803  rm -f conftest.er1
27804  cat conftest.err >&5
27805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27806  (exit $ac_status); } &&
27807	 { ac_try='test -z "$ac_c_werror_flag"
27808			 || test ! -s conftest.err'
27809  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27810  (eval $ac_try) 2>&5
27811  ac_status=$?
27812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27813  (exit $ac_status); }; } &&
27814	 { ac_try='test -s conftest.$ac_objext'
27815  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27816  (eval $ac_try) 2>&5
27817  ac_status=$?
27818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27819  (exit $ac_status); }; }; then
27820  ac_lo=0 ac_mid=0
27821  while :; do
27822    cat >conftest.$ac_ext <<_ACEOF
27823/* confdefs.h.  */
27824_ACEOF
27825cat confdefs.h >>conftest.$ac_ext
27826cat >>conftest.$ac_ext <<_ACEOF
27827/* end confdefs.h.  */
27828$ac_includes_default
27829#ifdef F77_DUMMY_MAIN
27830
27831#  ifdef __cplusplus
27832     extern "C"
27833#  endif
27834   int F77_DUMMY_MAIN() { return 1; }
27835
27836#endif
27837int
27838main ()
27839{
27840static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
27841test_array [0] = 0
27842
27843  ;
27844  return 0;
27845}
27846_ACEOF
27847rm -f conftest.$ac_objext
27848if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27849  (eval $ac_compile) 2>conftest.er1
27850  ac_status=$?
27851  grep -v '^ *+' conftest.er1 >conftest.err
27852  rm -f conftest.er1
27853  cat conftest.err >&5
27854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27855  (exit $ac_status); } &&
27856	 { ac_try='test -z "$ac_c_werror_flag"
27857			 || test ! -s conftest.err'
27858  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27859  (eval $ac_try) 2>&5
27860  ac_status=$?
27861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27862  (exit $ac_status); }; } &&
27863	 { ac_try='test -s conftest.$ac_objext'
27864  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27865  (eval $ac_try) 2>&5
27866  ac_status=$?
27867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27868  (exit $ac_status); }; }; then
27869  ac_hi=$ac_mid; break
27870else
27871  echo "$as_me: failed program was:" >&5
27872sed 's/^/| /' conftest.$ac_ext >&5
27873
27874ac_lo=`expr $ac_mid + 1`
27875		    if test $ac_lo -le $ac_mid; then
27876		      ac_lo= ac_hi=
27877		      break
27878		    fi
27879		    ac_mid=`expr 2 '*' $ac_mid + 1`
27880fi
27881rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27882  done
27883else
27884  echo "$as_me: failed program was:" >&5
27885sed 's/^/| /' conftest.$ac_ext >&5
27886
27887cat >conftest.$ac_ext <<_ACEOF
27888/* confdefs.h.  */
27889_ACEOF
27890cat confdefs.h >>conftest.$ac_ext
27891cat >>conftest.$ac_ext <<_ACEOF
27892/* end confdefs.h.  */
27893$ac_includes_default
27894#ifdef F77_DUMMY_MAIN
27895
27896#  ifdef __cplusplus
27897     extern "C"
27898#  endif
27899   int F77_DUMMY_MAIN() { return 1; }
27900
27901#endif
27902int
27903main ()
27904{
27905static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
27906test_array [0] = 0
27907
27908  ;
27909  return 0;
27910}
27911_ACEOF
27912rm -f conftest.$ac_objext
27913if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27914  (eval $ac_compile) 2>conftest.er1
27915  ac_status=$?
27916  grep -v '^ *+' conftest.er1 >conftest.err
27917  rm -f conftest.er1
27918  cat conftest.err >&5
27919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27920  (exit $ac_status); } &&
27921	 { ac_try='test -z "$ac_c_werror_flag"
27922			 || test ! -s conftest.err'
27923  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27924  (eval $ac_try) 2>&5
27925  ac_status=$?
27926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27927  (exit $ac_status); }; } &&
27928	 { ac_try='test -s conftest.$ac_objext'
27929  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27930  (eval $ac_try) 2>&5
27931  ac_status=$?
27932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27933  (exit $ac_status); }; }; then
27934  ac_hi=-1 ac_mid=-1
27935  while :; do
27936    cat >conftest.$ac_ext <<_ACEOF
27937/* confdefs.h.  */
27938_ACEOF
27939cat confdefs.h >>conftest.$ac_ext
27940cat >>conftest.$ac_ext <<_ACEOF
27941/* end confdefs.h.  */
27942$ac_includes_default
27943#ifdef F77_DUMMY_MAIN
27944
27945#  ifdef __cplusplus
27946     extern "C"
27947#  endif
27948   int F77_DUMMY_MAIN() { return 1; }
27949
27950#endif
27951int
27952main ()
27953{
27954static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
27955test_array [0] = 0
27956
27957  ;
27958  return 0;
27959}
27960_ACEOF
27961rm -f conftest.$ac_objext
27962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27963  (eval $ac_compile) 2>conftest.er1
27964  ac_status=$?
27965  grep -v '^ *+' conftest.er1 >conftest.err
27966  rm -f conftest.er1
27967  cat conftest.err >&5
27968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27969  (exit $ac_status); } &&
27970	 { ac_try='test -z "$ac_c_werror_flag"
27971			 || test ! -s conftest.err'
27972  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27973  (eval $ac_try) 2>&5
27974  ac_status=$?
27975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27976  (exit $ac_status); }; } &&
27977	 { ac_try='test -s conftest.$ac_objext'
27978  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27979  (eval $ac_try) 2>&5
27980  ac_status=$?
27981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27982  (exit $ac_status); }; }; then
27983  ac_lo=$ac_mid; break
27984else
27985  echo "$as_me: failed program was:" >&5
27986sed 's/^/| /' conftest.$ac_ext >&5
27987
27988ac_hi=`expr '(' $ac_mid ')' - 1`
27989		       if test $ac_mid -le $ac_hi; then
27990			 ac_lo= ac_hi=
27991			 break
27992		       fi
27993		       ac_mid=`expr 2 '*' $ac_mid`
27994fi
27995rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27996  done
27997else
27998  echo "$as_me: failed program was:" >&5
27999sed 's/^/| /' conftest.$ac_ext >&5
28000
28001ac_lo= ac_hi=
28002fi
28003rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28004fi
28005rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28006# Binary search between lo and hi bounds.
28007while test "x$ac_lo" != "x$ac_hi"; do
28008  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28009  cat >conftest.$ac_ext <<_ACEOF
28010/* confdefs.h.  */
28011_ACEOF
28012cat confdefs.h >>conftest.$ac_ext
28013cat >>conftest.$ac_ext <<_ACEOF
28014/* end confdefs.h.  */
28015$ac_includes_default
28016#ifdef F77_DUMMY_MAIN
28017
28018#  ifdef __cplusplus
28019     extern "C"
28020#  endif
28021   int F77_DUMMY_MAIN() { return 1; }
28022
28023#endif
28024int
28025main ()
28026{
28027static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
28028test_array [0] = 0
28029
28030  ;
28031  return 0;
28032}
28033_ACEOF
28034rm -f conftest.$ac_objext
28035if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28036  (eval $ac_compile) 2>conftest.er1
28037  ac_status=$?
28038  grep -v '^ *+' conftest.er1 >conftest.err
28039  rm -f conftest.er1
28040  cat conftest.err >&5
28041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28042  (exit $ac_status); } &&
28043	 { ac_try='test -z "$ac_c_werror_flag"
28044			 || test ! -s conftest.err'
28045  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28046  (eval $ac_try) 2>&5
28047  ac_status=$?
28048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28049  (exit $ac_status); }; } &&
28050	 { ac_try='test -s conftest.$ac_objext'
28051  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28052  (eval $ac_try) 2>&5
28053  ac_status=$?
28054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28055  (exit $ac_status); }; }; then
28056  ac_hi=$ac_mid
28057else
28058  echo "$as_me: failed program was:" >&5
28059sed 's/^/| /' conftest.$ac_ext >&5
28060
28061ac_lo=`expr '(' $ac_mid ')' + 1`
28062fi
28063rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28064done
28065case $ac_lo in
28066?*) ac_cv_sizeof_long_long=$ac_lo;;
28067'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
28068See \`config.log' for more details." >&5
28069echo "$as_me: error: cannot compute sizeof (long long), 77
28070See \`config.log' for more details." >&2;}
28071   { (exit 1); exit 1; }; } ;;
28072esac
28073else
28074  if test "$cross_compiling" = yes; then
28075  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
28076See \`config.log' for more details." >&5
28077echo "$as_me: error: cannot run test program while cross compiling
28078See \`config.log' for more details." >&2;}
28079   { (exit 1); exit 1; }; }
28080else
28081  cat >conftest.$ac_ext <<_ACEOF
28082/* confdefs.h.  */
28083_ACEOF
28084cat confdefs.h >>conftest.$ac_ext
28085cat >>conftest.$ac_ext <<_ACEOF
28086/* end confdefs.h.  */
28087$ac_includes_default
28088long longval () { return (long) (sizeof (long long)); }
28089unsigned long ulongval () { return (long) (sizeof (long long)); }
28090#include <stdio.h>
28091#include <stdlib.h>
28092#ifdef F77_DUMMY_MAIN
28093
28094#  ifdef __cplusplus
28095     extern "C"
28096#  endif
28097   int F77_DUMMY_MAIN() { return 1; }
28098
28099#endif
28100int
28101main ()
28102{
28103
28104  FILE *f = fopen ("conftest.val", "w");
28105  if (! f)
28106    exit (1);
28107  if (((long) (sizeof (long long))) < 0)
28108    {
28109      long i = longval ();
28110      if (i != ((long) (sizeof (long long))))
28111	exit (1);
28112      fprintf (f, "%ld\n", i);
28113    }
28114  else
28115    {
28116      unsigned long i = ulongval ();
28117      if (i != ((long) (sizeof (long long))))
28118	exit (1);
28119      fprintf (f, "%lu\n", i);
28120    }
28121  exit (ferror (f) || fclose (f) != 0);
28122
28123  ;
28124  return 0;
28125}
28126_ACEOF
28127rm -f conftest$ac_exeext
28128if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28129  (eval $ac_link) 2>&5
28130  ac_status=$?
28131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28132  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28133  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28134  (eval $ac_try) 2>&5
28135  ac_status=$?
28136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28137  (exit $ac_status); }; }; then
28138  ac_cv_sizeof_long_long=`cat conftest.val`
28139else
28140  echo "$as_me: program exited with status $ac_status" >&5
28141echo "$as_me: failed program was:" >&5
28142sed 's/^/| /' conftest.$ac_ext >&5
28143
28144( exit $ac_status )
28145{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
28146See \`config.log' for more details." >&5
28147echo "$as_me: error: cannot compute sizeof (long long), 77
28148See \`config.log' for more details." >&2;}
28149   { (exit 1); exit 1; }; }
28150fi
28151rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28152fi
28153fi
28154rm -f conftest.val
28155else
28156  ac_cv_sizeof_long_long=0
28157fi
28158fi
28159echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
28160echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
28161cat >>confdefs.h <<_ACEOF
28162#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
28163_ACEOF
28164
28165
28166  if test "$ac_cv_sizeof_long_long" = "$ac_cv_sizeof_int_p"; then
28167    CoinIntPtr="long long"
28168  fi
28169fi
28170
28171# try long
28172if test x"$CoinIntPtr" = x; then
28173  echo "$as_me:$LINENO: checking for long" >&5
28174echo $ECHO_N "checking for long... $ECHO_C" >&6
28175if test "${ac_cv_type_long+set}" = set; then
28176  echo $ECHO_N "(cached) $ECHO_C" >&6
28177else
28178  cat >conftest.$ac_ext <<_ACEOF
28179/* confdefs.h.  */
28180_ACEOF
28181cat confdefs.h >>conftest.$ac_ext
28182cat >>conftest.$ac_ext <<_ACEOF
28183/* end confdefs.h.  */
28184$ac_includes_default
28185#ifdef F77_DUMMY_MAIN
28186
28187#  ifdef __cplusplus
28188     extern "C"
28189#  endif
28190   int F77_DUMMY_MAIN() { return 1; }
28191
28192#endif
28193int
28194main ()
28195{
28196if ((long *) 0)
28197  return 0;
28198if (sizeof (long))
28199  return 0;
28200  ;
28201  return 0;
28202}
28203_ACEOF
28204rm -f conftest.$ac_objext
28205if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28206  (eval $ac_compile) 2>conftest.er1
28207  ac_status=$?
28208  grep -v '^ *+' conftest.er1 >conftest.err
28209  rm -f conftest.er1
28210  cat conftest.err >&5
28211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28212  (exit $ac_status); } &&
28213	 { ac_try='test -z "$ac_c_werror_flag"
28214			 || test ! -s conftest.err'
28215  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28216  (eval $ac_try) 2>&5
28217  ac_status=$?
28218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28219  (exit $ac_status); }; } &&
28220	 { ac_try='test -s conftest.$ac_objext'
28221  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28222  (eval $ac_try) 2>&5
28223  ac_status=$?
28224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28225  (exit $ac_status); }; }; then
28226  ac_cv_type_long=yes
28227else
28228  echo "$as_me: failed program was:" >&5
28229sed 's/^/| /' conftest.$ac_ext >&5
28230
28231ac_cv_type_long=no
28232fi
28233rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28234fi
28235echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
28236echo "${ECHO_T}$ac_cv_type_long" >&6
28237
28238echo "$as_me:$LINENO: checking size of long" >&5
28239echo $ECHO_N "checking size of long... $ECHO_C" >&6
28240if test "${ac_cv_sizeof_long+set}" = set; then
28241  echo $ECHO_N "(cached) $ECHO_C" >&6
28242else
28243  if test "$ac_cv_type_long" = yes; then
28244  # The cast to unsigned long works around a bug in the HP C Compiler
28245  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28246  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28247  # This bug is HP SR number 8606223364.
28248  if test "$cross_compiling" = yes; then
28249  # Depending upon the size, compute the lo and hi bounds.
28250cat >conftest.$ac_ext <<_ACEOF
28251/* confdefs.h.  */
28252_ACEOF
28253cat confdefs.h >>conftest.$ac_ext
28254cat >>conftest.$ac_ext <<_ACEOF
28255/* end confdefs.h.  */
28256$ac_includes_default
28257#ifdef F77_DUMMY_MAIN
28258
28259#  ifdef __cplusplus
28260     extern "C"
28261#  endif
28262   int F77_DUMMY_MAIN() { return 1; }
28263
28264#endif
28265int
28266main ()
28267{
28268static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
28269test_array [0] = 0
28270
28271  ;
28272  return 0;
28273}
28274_ACEOF
28275rm -f conftest.$ac_objext
28276if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28277  (eval $ac_compile) 2>conftest.er1
28278  ac_status=$?
28279  grep -v '^ *+' conftest.er1 >conftest.err
28280  rm -f conftest.er1
28281  cat conftest.err >&5
28282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28283  (exit $ac_status); } &&
28284	 { ac_try='test -z "$ac_c_werror_flag"
28285			 || test ! -s conftest.err'
28286  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28287  (eval $ac_try) 2>&5
28288  ac_status=$?
28289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28290  (exit $ac_status); }; } &&
28291	 { ac_try='test -s conftest.$ac_objext'
28292  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28293  (eval $ac_try) 2>&5
28294  ac_status=$?
28295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28296  (exit $ac_status); }; }; then
28297  ac_lo=0 ac_mid=0
28298  while :; do
28299    cat >conftest.$ac_ext <<_ACEOF
28300/* confdefs.h.  */
28301_ACEOF
28302cat confdefs.h >>conftest.$ac_ext
28303cat >>conftest.$ac_ext <<_ACEOF
28304/* end confdefs.h.  */
28305$ac_includes_default
28306#ifdef F77_DUMMY_MAIN
28307
28308#  ifdef __cplusplus
28309     extern "C"
28310#  endif
28311   int F77_DUMMY_MAIN() { return 1; }
28312
28313#endif
28314int
28315main ()
28316{
28317static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
28318test_array [0] = 0
28319
28320  ;
28321  return 0;
28322}
28323_ACEOF
28324rm -f conftest.$ac_objext
28325if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28326  (eval $ac_compile) 2>conftest.er1
28327  ac_status=$?
28328  grep -v '^ *+' conftest.er1 >conftest.err
28329  rm -f conftest.er1
28330  cat conftest.err >&5
28331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28332  (exit $ac_status); } &&
28333	 { ac_try='test -z "$ac_c_werror_flag"
28334			 || test ! -s conftest.err'
28335  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28336  (eval $ac_try) 2>&5
28337  ac_status=$?
28338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28339  (exit $ac_status); }; } &&
28340	 { ac_try='test -s conftest.$ac_objext'
28341  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28342  (eval $ac_try) 2>&5
28343  ac_status=$?
28344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28345  (exit $ac_status); }; }; then
28346  ac_hi=$ac_mid; break
28347else
28348  echo "$as_me: failed program was:" >&5
28349sed 's/^/| /' conftest.$ac_ext >&5
28350
28351ac_lo=`expr $ac_mid + 1`
28352		    if test $ac_lo -le $ac_mid; then
28353		      ac_lo= ac_hi=
28354		      break
28355		    fi
28356		    ac_mid=`expr 2 '*' $ac_mid + 1`
28357fi
28358rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28359  done
28360else
28361  echo "$as_me: failed program was:" >&5
28362sed 's/^/| /' conftest.$ac_ext >&5
28363
28364cat >conftest.$ac_ext <<_ACEOF
28365/* confdefs.h.  */
28366_ACEOF
28367cat confdefs.h >>conftest.$ac_ext
28368cat >>conftest.$ac_ext <<_ACEOF
28369/* end confdefs.h.  */
28370$ac_includes_default
28371#ifdef F77_DUMMY_MAIN
28372
28373#  ifdef __cplusplus
28374     extern "C"
28375#  endif
28376   int F77_DUMMY_MAIN() { return 1; }
28377
28378#endif
28379int
28380main ()
28381{
28382static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
28383test_array [0] = 0
28384
28385  ;
28386  return 0;
28387}
28388_ACEOF
28389rm -f conftest.$ac_objext
28390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28391  (eval $ac_compile) 2>conftest.er1
28392  ac_status=$?
28393  grep -v '^ *+' conftest.er1 >conftest.err
28394  rm -f conftest.er1
28395  cat conftest.err >&5
28396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28397  (exit $ac_status); } &&
28398	 { ac_try='test -z "$ac_c_werror_flag"
28399			 || test ! -s conftest.err'
28400  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28401  (eval $ac_try) 2>&5
28402  ac_status=$?
28403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28404  (exit $ac_status); }; } &&
28405	 { ac_try='test -s conftest.$ac_objext'
28406  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28407  (eval $ac_try) 2>&5
28408  ac_status=$?
28409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28410  (exit $ac_status); }; }; then
28411  ac_hi=-1 ac_mid=-1
28412  while :; do
28413    cat >conftest.$ac_ext <<_ACEOF
28414/* confdefs.h.  */
28415_ACEOF
28416cat confdefs.h >>conftest.$ac_ext
28417cat >>conftest.$ac_ext <<_ACEOF
28418/* end confdefs.h.  */
28419$ac_includes_default
28420#ifdef F77_DUMMY_MAIN
28421
28422#  ifdef __cplusplus
28423     extern "C"
28424#  endif
28425   int F77_DUMMY_MAIN() { return 1; }
28426
28427#endif
28428int
28429main ()
28430{
28431static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
28432test_array [0] = 0
28433
28434  ;
28435  return 0;
28436}
28437_ACEOF
28438rm -f conftest.$ac_objext
28439if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28440  (eval $ac_compile) 2>conftest.er1
28441  ac_status=$?
28442  grep -v '^ *+' conftest.er1 >conftest.err
28443  rm -f conftest.er1
28444  cat conftest.err >&5
28445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28446  (exit $ac_status); } &&
28447	 { ac_try='test -z "$ac_c_werror_flag"
28448			 || test ! -s conftest.err'
28449  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28450  (eval $ac_try) 2>&5
28451  ac_status=$?
28452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28453  (exit $ac_status); }; } &&
28454	 { ac_try='test -s conftest.$ac_objext'
28455  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28456  (eval $ac_try) 2>&5
28457  ac_status=$?
28458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28459  (exit $ac_status); }; }; then
28460  ac_lo=$ac_mid; break
28461else
28462  echo "$as_me: failed program was:" >&5
28463sed 's/^/| /' conftest.$ac_ext >&5
28464
28465ac_hi=`expr '(' $ac_mid ')' - 1`
28466		       if test $ac_mid -le $ac_hi; then
28467			 ac_lo= ac_hi=
28468			 break
28469		       fi
28470		       ac_mid=`expr 2 '*' $ac_mid`
28471fi
28472rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28473  done
28474else
28475  echo "$as_me: failed program was:" >&5
28476sed 's/^/| /' conftest.$ac_ext >&5
28477
28478ac_lo= ac_hi=
28479fi
28480rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28481fi
28482rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28483# Binary search between lo and hi bounds.
28484while test "x$ac_lo" != "x$ac_hi"; do
28485  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28486  cat >conftest.$ac_ext <<_ACEOF
28487/* confdefs.h.  */
28488_ACEOF
28489cat confdefs.h >>conftest.$ac_ext
28490cat >>conftest.$ac_ext <<_ACEOF
28491/* end confdefs.h.  */
28492$ac_includes_default
28493#ifdef F77_DUMMY_MAIN
28494
28495#  ifdef __cplusplus
28496     extern "C"
28497#  endif
28498   int F77_DUMMY_MAIN() { return 1; }
28499
28500#endif
28501int
28502main ()
28503{
28504static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
28505test_array [0] = 0
28506
28507  ;
28508  return 0;
28509}
28510_ACEOF
28511rm -f conftest.$ac_objext
28512if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28513  (eval $ac_compile) 2>conftest.er1
28514  ac_status=$?
28515  grep -v '^ *+' conftest.er1 >conftest.err
28516  rm -f conftest.er1
28517  cat conftest.err >&5
28518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28519  (exit $ac_status); } &&
28520	 { ac_try='test -z "$ac_c_werror_flag"
28521			 || test ! -s conftest.err'
28522  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28523  (eval $ac_try) 2>&5
28524  ac_status=$?
28525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28526  (exit $ac_status); }; } &&
28527	 { ac_try='test -s conftest.$ac_objext'
28528  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28529  (eval $ac_try) 2>&5
28530  ac_status=$?
28531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28532  (exit $ac_status); }; }; then
28533  ac_hi=$ac_mid
28534else
28535  echo "$as_me: failed program was:" >&5
28536sed 's/^/| /' conftest.$ac_ext >&5
28537
28538ac_lo=`expr '(' $ac_mid ')' + 1`
28539fi
28540rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28541done
28542case $ac_lo in
28543?*) ac_cv_sizeof_long=$ac_lo;;
28544'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
28545See \`config.log' for more details." >&5
28546echo "$as_me: error: cannot compute sizeof (long), 77
28547See \`config.log' for more details." >&2;}
28548   { (exit 1); exit 1; }; } ;;
28549esac
28550else
28551  if test "$cross_compiling" = yes; then
28552  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
28553See \`config.log' for more details." >&5
28554echo "$as_me: error: cannot run test program while cross compiling
28555See \`config.log' for more details." >&2;}
28556   { (exit 1); exit 1; }; }
28557else
28558  cat >conftest.$ac_ext <<_ACEOF
28559/* confdefs.h.  */
28560_ACEOF
28561cat confdefs.h >>conftest.$ac_ext
28562cat >>conftest.$ac_ext <<_ACEOF
28563/* end confdefs.h.  */
28564$ac_includes_default
28565long longval () { return (long) (sizeof (long)); }
28566unsigned long ulongval () { return (long) (sizeof (long)); }
28567#include <stdio.h>
28568#include <stdlib.h>
28569#ifdef F77_DUMMY_MAIN
28570
28571#  ifdef __cplusplus
28572     extern "C"
28573#  endif
28574   int F77_DUMMY_MAIN() { return 1; }
28575
28576#endif
28577int
28578main ()
28579{
28580
28581  FILE *f = fopen ("conftest.val", "w");
28582  if (! f)
28583    exit (1);
28584  if (((long) (sizeof (long))) < 0)
28585    {
28586      long i = longval ();
28587      if (i != ((long) (sizeof (long))))
28588	exit (1);
28589      fprintf (f, "%ld\n", i);
28590    }
28591  else
28592    {
28593      unsigned long i = ulongval ();
28594      if (i != ((long) (sizeof (long))))
28595	exit (1);
28596      fprintf (f, "%lu\n", i);
28597    }
28598  exit (ferror (f) || fclose (f) != 0);
28599
28600  ;
28601  return 0;
28602}
28603_ACEOF
28604rm -f conftest$ac_exeext
28605if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28606  (eval $ac_link) 2>&5
28607  ac_status=$?
28608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28609  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28610  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28611  (eval $ac_try) 2>&5
28612  ac_status=$?
28613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28614  (exit $ac_status); }; }; then
28615  ac_cv_sizeof_long=`cat conftest.val`
28616else
28617  echo "$as_me: program exited with status $ac_status" >&5
28618echo "$as_me: failed program was:" >&5
28619sed 's/^/| /' conftest.$ac_ext >&5
28620
28621( exit $ac_status )
28622{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
28623See \`config.log' for more details." >&5
28624echo "$as_me: error: cannot compute sizeof (long), 77
28625See \`config.log' for more details." >&2;}
28626   { (exit 1); exit 1; }; }
28627fi
28628rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28629fi
28630fi
28631rm -f conftest.val
28632else
28633  ac_cv_sizeof_long=0
28634fi
28635fi
28636echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
28637echo "${ECHO_T}$ac_cv_sizeof_long" >&6
28638cat >>confdefs.h <<_ACEOF
28639#define SIZEOF_LONG $ac_cv_sizeof_long
28640_ACEOF
28641
28642
28643  if test "$ac_cv_sizeof_long" = "$ac_cv_sizeof_int_p"; then
28644    CoinIntPtr="long"
28645  fi
28646fi
28647
28648# try int
28649if test x"$CoinIntPtr" = x; then
28650  echo "$as_me:$LINENO: checking for int" >&5
28651echo $ECHO_N "checking for int... $ECHO_C" >&6
28652if test "${ac_cv_type_int+set}" = set; then
28653  echo $ECHO_N "(cached) $ECHO_C" >&6
28654else
28655  cat >conftest.$ac_ext <<_ACEOF
28656/* confdefs.h.  */
28657_ACEOF
28658cat confdefs.h >>conftest.$ac_ext
28659cat >>conftest.$ac_ext <<_ACEOF
28660/* end confdefs.h.  */
28661$ac_includes_default
28662#ifdef F77_DUMMY_MAIN
28663
28664#  ifdef __cplusplus
28665     extern "C"
28666#  endif
28667   int F77_DUMMY_MAIN() { return 1; }
28668
28669#endif
28670int
28671main ()
28672{
28673if ((int *) 0)
28674  return 0;
28675if (sizeof (int))
28676  return 0;
28677  ;
28678  return 0;
28679}
28680_ACEOF
28681rm -f conftest.$ac_objext
28682if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28683  (eval $ac_compile) 2>conftest.er1
28684  ac_status=$?
28685  grep -v '^ *+' conftest.er1 >conftest.err
28686  rm -f conftest.er1
28687  cat conftest.err >&5
28688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28689  (exit $ac_status); } &&
28690	 { ac_try='test -z "$ac_c_werror_flag"
28691			 || test ! -s conftest.err'
28692  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28693  (eval $ac_try) 2>&5
28694  ac_status=$?
28695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28696  (exit $ac_status); }; } &&
28697	 { ac_try='test -s conftest.$ac_objext'
28698  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28699  (eval $ac_try) 2>&5
28700  ac_status=$?
28701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28702  (exit $ac_status); }; }; then
28703  ac_cv_type_int=yes
28704else
28705  echo "$as_me: failed program was:" >&5
28706sed 's/^/| /' conftest.$ac_ext >&5
28707
28708ac_cv_type_int=no
28709fi
28710rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28711fi
28712echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
28713echo "${ECHO_T}$ac_cv_type_int" >&6
28714
28715echo "$as_me:$LINENO: checking size of int" >&5
28716echo $ECHO_N "checking size of int... $ECHO_C" >&6
28717if test "${ac_cv_sizeof_int+set}" = set; then
28718  echo $ECHO_N "(cached) $ECHO_C" >&6
28719else
28720  if test "$ac_cv_type_int" = yes; then
28721  # The cast to unsigned long works around a bug in the HP C Compiler
28722  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28723  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28724  # This bug is HP SR number 8606223364.
28725  if test "$cross_compiling" = yes; then
28726  # Depending upon the size, compute the lo and hi bounds.
28727cat >conftest.$ac_ext <<_ACEOF
28728/* confdefs.h.  */
28729_ACEOF
28730cat confdefs.h >>conftest.$ac_ext
28731cat >>conftest.$ac_ext <<_ACEOF
28732/* end confdefs.h.  */
28733$ac_includes_default
28734#ifdef F77_DUMMY_MAIN
28735
28736#  ifdef __cplusplus
28737     extern "C"
28738#  endif
28739   int F77_DUMMY_MAIN() { return 1; }
28740
28741#endif
28742int
28743main ()
28744{
28745static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
28746test_array [0] = 0
28747
28748  ;
28749  return 0;
28750}
28751_ACEOF
28752rm -f conftest.$ac_objext
28753if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28754  (eval $ac_compile) 2>conftest.er1
28755  ac_status=$?
28756  grep -v '^ *+' conftest.er1 >conftest.err
28757  rm -f conftest.er1
28758  cat conftest.err >&5
28759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28760  (exit $ac_status); } &&
28761	 { ac_try='test -z "$ac_c_werror_flag"
28762			 || test ! -s conftest.err'
28763  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28764  (eval $ac_try) 2>&5
28765  ac_status=$?
28766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28767  (exit $ac_status); }; } &&
28768	 { ac_try='test -s conftest.$ac_objext'
28769  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28770  (eval $ac_try) 2>&5
28771  ac_status=$?
28772  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28773  (exit $ac_status); }; }; then
28774  ac_lo=0 ac_mid=0
28775  while :; do
28776    cat >conftest.$ac_ext <<_ACEOF
28777/* confdefs.h.  */
28778_ACEOF
28779cat confdefs.h >>conftest.$ac_ext
28780cat >>conftest.$ac_ext <<_ACEOF
28781/* end confdefs.h.  */
28782$ac_includes_default
28783#ifdef F77_DUMMY_MAIN
28784
28785#  ifdef __cplusplus
28786     extern "C"
28787#  endif
28788   int F77_DUMMY_MAIN() { return 1; }
28789
28790#endif
28791int
28792main ()
28793{
28794static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
28795test_array [0] = 0
28796
28797  ;
28798  return 0;
28799}
28800_ACEOF
28801rm -f conftest.$ac_objext
28802if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28803  (eval $ac_compile) 2>conftest.er1
28804  ac_status=$?
28805  grep -v '^ *+' conftest.er1 >conftest.err
28806  rm -f conftest.er1
28807  cat conftest.err >&5
28808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28809  (exit $ac_status); } &&
28810	 { ac_try='test -z "$ac_c_werror_flag"
28811			 || test ! -s conftest.err'
28812  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28813  (eval $ac_try) 2>&5
28814  ac_status=$?
28815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28816  (exit $ac_status); }; } &&
28817	 { ac_try='test -s conftest.$ac_objext'
28818  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28819  (eval $ac_try) 2>&5
28820  ac_status=$?
28821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28822  (exit $ac_status); }; }; then
28823  ac_hi=$ac_mid; break
28824else
28825  echo "$as_me: failed program was:" >&5
28826sed 's/^/| /' conftest.$ac_ext >&5
28827
28828ac_lo=`expr $ac_mid + 1`
28829		    if test $ac_lo -le $ac_mid; then
28830		      ac_lo= ac_hi=
28831		      break
28832		    fi
28833		    ac_mid=`expr 2 '*' $ac_mid + 1`
28834fi
28835rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28836  done
28837else
28838  echo "$as_me: failed program was:" >&5
28839sed 's/^/| /' conftest.$ac_ext >&5
28840
28841cat >conftest.$ac_ext <<_ACEOF
28842/* confdefs.h.  */
28843_ACEOF
28844cat confdefs.h >>conftest.$ac_ext
28845cat >>conftest.$ac_ext <<_ACEOF
28846/* end confdefs.h.  */
28847$ac_includes_default
28848#ifdef F77_DUMMY_MAIN
28849
28850#  ifdef __cplusplus
28851     extern "C"
28852#  endif
28853   int F77_DUMMY_MAIN() { return 1; }
28854
28855#endif
28856int
28857main ()
28858{
28859static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
28860test_array [0] = 0
28861
28862  ;
28863  return 0;
28864}
28865_ACEOF
28866rm -f conftest.$ac_objext
28867if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28868  (eval $ac_compile) 2>conftest.er1
28869  ac_status=$?
28870  grep -v '^ *+' conftest.er1 >conftest.err
28871  rm -f conftest.er1
28872  cat conftest.err >&5
28873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28874  (exit $ac_status); } &&
28875	 { ac_try='test -z "$ac_c_werror_flag"
28876			 || test ! -s conftest.err'
28877  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28878  (eval $ac_try) 2>&5
28879  ac_status=$?
28880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28881  (exit $ac_status); }; } &&
28882	 { ac_try='test -s conftest.$ac_objext'
28883  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28884  (eval $ac_try) 2>&5
28885  ac_status=$?
28886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28887  (exit $ac_status); }; }; then
28888  ac_hi=-1 ac_mid=-1
28889  while :; do
28890    cat >conftest.$ac_ext <<_ACEOF
28891/* confdefs.h.  */
28892_ACEOF
28893cat confdefs.h >>conftest.$ac_ext
28894cat >>conftest.$ac_ext <<_ACEOF
28895/* end confdefs.h.  */
28896$ac_includes_default
28897#ifdef F77_DUMMY_MAIN
28898
28899#  ifdef __cplusplus
28900     extern "C"
28901#  endif
28902   int F77_DUMMY_MAIN() { return 1; }
28903
28904#endif
28905int
28906main ()
28907{
28908static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
28909test_array [0] = 0
28910
28911  ;
28912  return 0;
28913}
28914_ACEOF
28915rm -f conftest.$ac_objext
28916if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28917  (eval $ac_compile) 2>conftest.er1
28918  ac_status=$?
28919  grep -v '^ *+' conftest.er1 >conftest.err
28920  rm -f conftest.er1
28921  cat conftest.err >&5
28922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28923  (exit $ac_status); } &&
28924	 { ac_try='test -z "$ac_c_werror_flag"
28925			 || test ! -s conftest.err'
28926  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28927  (eval $ac_try) 2>&5
28928  ac_status=$?
28929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28930  (exit $ac_status); }; } &&
28931	 { ac_try='test -s conftest.$ac_objext'
28932  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28933  (eval $ac_try) 2>&5
28934  ac_status=$?
28935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28936  (exit $ac_status); }; }; then
28937  ac_lo=$ac_mid; break
28938else
28939  echo "$as_me: failed program was:" >&5
28940sed 's/^/| /' conftest.$ac_ext >&5
28941
28942ac_hi=`expr '(' $ac_mid ')' - 1`
28943		       if test $ac_mid -le $ac_hi; then
28944			 ac_lo= ac_hi=
28945			 break
28946		       fi
28947		       ac_mid=`expr 2 '*' $ac_mid`
28948fi
28949rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28950  done
28951else
28952  echo "$as_me: failed program was:" >&5
28953sed 's/^/| /' conftest.$ac_ext >&5
28954
28955ac_lo= ac_hi=
28956fi
28957rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28958fi
28959rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28960# Binary search between lo and hi bounds.
28961while test "x$ac_lo" != "x$ac_hi"; do
28962  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28963  cat >conftest.$ac_ext <<_ACEOF
28964/* confdefs.h.  */
28965_ACEOF
28966cat confdefs.h >>conftest.$ac_ext
28967cat >>conftest.$ac_ext <<_ACEOF
28968/* end confdefs.h.  */
28969$ac_includes_default
28970#ifdef F77_DUMMY_MAIN
28971
28972#  ifdef __cplusplus
28973     extern "C"
28974#  endif
28975   int F77_DUMMY_MAIN() { return 1; }
28976
28977#endif
28978int
28979main ()
28980{
28981static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
28982test_array [0] = 0
28983
28984  ;
28985  return 0;
28986}
28987_ACEOF
28988rm -f conftest.$ac_objext
28989if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28990  (eval $ac_compile) 2>conftest.er1
28991  ac_status=$?
28992  grep -v '^ *+' conftest.er1 >conftest.err
28993  rm -f conftest.er1
28994  cat conftest.err >&5
28995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28996  (exit $ac_status); } &&
28997	 { ac_try='test -z "$ac_c_werror_flag"
28998			 || test ! -s conftest.err'
28999  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29000  (eval $ac_try) 2>&5
29001  ac_status=$?
29002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29003  (exit $ac_status); }; } &&
29004	 { ac_try='test -s conftest.$ac_objext'
29005  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29006  (eval $ac_try) 2>&5
29007  ac_status=$?
29008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29009  (exit $ac_status); }; }; then
29010  ac_hi=$ac_mid
29011else
29012  echo "$as_me: failed program was:" >&5
29013sed 's/^/| /' conftest.$ac_ext >&5
29014
29015ac_lo=`expr '(' $ac_mid ')' + 1`
29016fi
29017rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29018done
29019case $ac_lo in
29020?*) ac_cv_sizeof_int=$ac_lo;;
29021'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
29022See \`config.log' for more details." >&5
29023echo "$as_me: error: cannot compute sizeof (int), 77
29024See \`config.log' for more details." >&2;}
29025   { (exit 1); exit 1; }; } ;;
29026esac
29027else
29028  if test "$cross_compiling" = yes; then
29029  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
29030See \`config.log' for more details." >&5
29031echo "$as_me: error: cannot run test program while cross compiling
29032See \`config.log' for more details." >&2;}
29033   { (exit 1); exit 1; }; }
29034else
29035  cat >conftest.$ac_ext <<_ACEOF
29036/* confdefs.h.  */
29037_ACEOF
29038cat confdefs.h >>conftest.$ac_ext
29039cat >>conftest.$ac_ext <<_ACEOF
29040/* end confdefs.h.  */
29041$ac_includes_default
29042long longval () { return (long) (sizeof (int)); }
29043unsigned long ulongval () { return (long) (sizeof (int)); }
29044#include <stdio.h>
29045#include <stdlib.h>
29046#ifdef F77_DUMMY_MAIN
29047
29048#  ifdef __cplusplus
29049     extern "C"
29050#  endif
29051   int F77_DUMMY_MAIN() { return 1; }
29052
29053#endif
29054int
29055main ()
29056{
29057
29058  FILE *f = fopen ("conftest.val", "w");
29059  if (! f)
29060    exit (1);
29061  if (((long) (sizeof (int))) < 0)
29062    {
29063      long i = longval ();
29064      if (i != ((long) (sizeof (int))))
29065	exit (1);
29066      fprintf (f, "%ld\n", i);
29067    }
29068  else
29069    {
29070      unsigned long i = ulongval ();
29071      if (i != ((long) (sizeof (int))))
29072	exit (1);
29073      fprintf (f, "%lu\n", i);
29074    }
29075  exit (ferror (f) || fclose (f) != 0);
29076
29077  ;
29078  return 0;
29079}
29080_ACEOF
29081rm -f conftest$ac_exeext
29082if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29083  (eval $ac_link) 2>&5
29084  ac_status=$?
29085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29086  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29087  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29088  (eval $ac_try) 2>&5
29089  ac_status=$?
29090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29091  (exit $ac_status); }; }; then
29092  ac_cv_sizeof_int=`cat conftest.val`
29093else
29094  echo "$as_me: program exited with status $ac_status" >&5
29095echo "$as_me: failed program was:" >&5
29096sed 's/^/| /' conftest.$ac_ext >&5
29097
29098( exit $ac_status )
29099{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
29100See \`config.log' for more details." >&5
29101echo "$as_me: error: cannot compute sizeof (int), 77
29102See \`config.log' for more details." >&2;}
29103   { (exit 1); exit 1; }; }
29104fi
29105rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29106fi
29107fi
29108rm -f conftest.val
29109else
29110  ac_cv_sizeof_int=0
29111fi
29112fi
29113echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
29114echo "${ECHO_T}$ac_cv_sizeof_int" >&6
29115cat >>confdefs.h <<_ACEOF
29116#define SIZEOF_INT $ac_cv_sizeof_int
29117_ACEOF
29118
29119
29120  if test "$ac_cv_sizeof_int" = "$ac_cv_sizeof_int_p"; then
29121    CoinIntPtr="int"
29122  fi
29123fi
29124ac_ext=cc
29125ac_cpp='$CXXCPP $CPPFLAGS'
29126ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29127ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29128ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29129
29130
29131if test x"$CoinIntPtr" = x; then
29132  { { echo "$as_me:$LINENO: error: Cannot find integer type capturing pointer" >&5
29133echo "$as_me: error: Cannot find integer type capturing pointer" >&2;}
29134   { (exit 1); exit 1; }; }
29135fi
29136
29137cat >>confdefs.h <<_ACEOF
29138#define COIN_INTPTR_T $CoinIntPtr
29139_ACEOF
29140
29141
29142if test "x$ac_cv_header_stdint_h" = xyes ; then
29143
29144cat >>confdefs.h <<\_ACEOF
29145#define COINUTILS_HAS_STDINT_H 1
29146_ACEOF
29147
29148fi
29149
29150if test "x$ac_cv_header_cstdint" = xyes ; then
29151
29152cat >>confdefs.h <<\_ACEOF
29153#define COINUTILS_HAS_CSTDINT 1
29154_ACEOF
29155
29156fi
29157
29158#############################################################################
29159#                           Check whether we have windows.h                 #
29160#############################################################################
29161
29162for ac_header in windows.h
29163do
29164as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29165if eval "test \"\${$as_ac_Header+set}\" = set"; then
29166  echo "$as_me:$LINENO: checking for $ac_header" >&5
29167echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29168if eval "test \"\${$as_ac_Header+set}\" = set"; then
29169  echo $ECHO_N "(cached) $ECHO_C" >&6
29170fi
29171echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29172echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29173else
29174  # Is the header compilable?
29175echo "$as_me:$LINENO: checking $ac_header usability" >&5
29176echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29177cat >conftest.$ac_ext <<_ACEOF
29178/* confdefs.h.  */
29179_ACEOF
29180cat confdefs.h >>conftest.$ac_ext
29181cat >>conftest.$ac_ext <<_ACEOF
29182/* end confdefs.h.  */
29183$ac_includes_default
29184#include <$ac_header>
29185_ACEOF
29186rm -f conftest.$ac_objext
29187if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29188  (eval $ac_compile) 2>conftest.er1
29189  ac_status=$?
29190  grep -v '^ *+' conftest.er1 >conftest.err
29191  rm -f conftest.er1
29192  cat conftest.err >&5
29193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29194  (exit $ac_status); } &&
29195	 { ac_try='test -z "$ac_cxx_werror_flag"
29196			 || test ! -s conftest.err'
29197  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29198  (eval $ac_try) 2>&5
29199  ac_status=$?
29200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29201  (exit $ac_status); }; } &&
29202	 { ac_try='test -s conftest.$ac_objext'
29203  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29204  (eval $ac_try) 2>&5
29205  ac_status=$?
29206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29207  (exit $ac_status); }; }; then
29208  ac_header_compiler=yes
29209else
29210  echo "$as_me: failed program was:" >&5
29211sed 's/^/| /' conftest.$ac_ext >&5
29212
29213ac_header_compiler=no
29214fi
29215rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29216echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29217echo "${ECHO_T}$ac_header_compiler" >&6
29218
29219# Is the header present?
29220echo "$as_me:$LINENO: checking $ac_header presence" >&5
29221echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29222cat >conftest.$ac_ext <<_ACEOF
29223/* confdefs.h.  */
29224_ACEOF
29225cat confdefs.h >>conftest.$ac_ext
29226cat >>conftest.$ac_ext <<_ACEOF
29227/* end confdefs.h.  */
29228#include <$ac_header>
29229_ACEOF
29230if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29231  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29232  ac_status=$?
29233  grep -v '^ *+' conftest.er1 >conftest.err
29234  rm -f conftest.er1
29235  cat conftest.err >&5
29236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29237  (exit $ac_status); } >/dev/null; then
29238  if test -s conftest.err; then
29239    ac_cpp_err=$ac_cxx_preproc_warn_flag
29240    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
29241  else
29242    ac_cpp_err=
29243  fi
29244else
29245  ac_cpp_err=yes
29246fi
29247if test -z "$ac_cpp_err"; then
29248  ac_header_preproc=yes
29249else
29250  echo "$as_me: failed program was:" >&5
29251sed 's/^/| /' conftest.$ac_ext >&5
29252
29253  ac_header_preproc=no
29254fi
29255rm -f conftest.err conftest.$ac_ext
29256echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29257echo "${ECHO_T}$ac_header_preproc" >&6
29258
29259# So?  What about this header?
29260case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
29261  yes:no: )
29262    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29263echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29264    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29265echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29266    ac_header_preproc=yes
29267    ;;
29268  no:yes:* )
29269    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29270echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29271    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29272echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29273    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29274echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29275    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29276echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29277    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29278echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29279    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29280echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29281    (
29282      cat <<\_ASBOX
29283## ---------------------------------------------------- ##
29284## Report this to http://projects.coin-or.org/CoinUtils ##
29285## ---------------------------------------------------- ##
29286_ASBOX
29287    ) |
29288      sed "s/^/$as_me: WARNING:     /" >&2
29289    ;;
29290esac
29291echo "$as_me:$LINENO: checking for $ac_header" >&5
29292echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29293if eval "test \"\${$as_ac_Header+set}\" = set"; then
29294  echo $ECHO_N "(cached) $ECHO_C" >&6
29295else
29296  eval "$as_ac_Header=\$ac_header_preproc"
29297fi
29298echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29299echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29300
29301fi
29302if test `eval echo '${'$as_ac_Header'}'` = yes; then
29303  cat >>confdefs.h <<_ACEOF
29304#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29305_ACEOF
29306
29307fi
29308
29309done
29310
29311
29312#############################################################################
29313#                           Check whether we have endian.h                  #
29314#############################################################################
29315
29316for ac_header in endian.h
29317do
29318as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29319if eval "test \"\${$as_ac_Header+set}\" = set"; then
29320  echo "$as_me:$LINENO: checking for $ac_header" >&5
29321echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29322if eval "test \"\${$as_ac_Header+set}\" = set"; then
29323  echo $ECHO_N "(cached) $ECHO_C" >&6
29324fi
29325echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29326echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29327else
29328  # Is the header compilable?
29329echo "$as_me:$LINENO: checking $ac_header usability" >&5
29330echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29331cat >conftest.$ac_ext <<_ACEOF
29332/* confdefs.h.  */
29333_ACEOF
29334cat confdefs.h >>conftest.$ac_ext
29335cat >>conftest.$ac_ext <<_ACEOF
29336/* end confdefs.h.  */
29337$ac_includes_default
29338#include <$ac_header>
29339_ACEOF
29340rm -f conftest.$ac_objext
29341if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29342  (eval $ac_compile) 2>conftest.er1
29343  ac_status=$?
29344  grep -v '^ *+' conftest.er1 >conftest.err
29345  rm -f conftest.er1
29346  cat conftest.err >&5
29347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29348  (exit $ac_status); } &&
29349	 { ac_try='test -z "$ac_cxx_werror_flag"
29350			 || test ! -s conftest.err'
29351  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29352  (eval $ac_try) 2>&5
29353  ac_status=$?
29354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29355  (exit $ac_status); }; } &&
29356	 { ac_try='test -s conftest.$ac_objext'
29357  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29358  (eval $ac_try) 2>&5
29359  ac_status=$?
29360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29361  (exit $ac_status); }; }; then
29362  ac_header_compiler=yes
29363else
29364  echo "$as_me: failed program was:" >&5
29365sed 's/^/| /' conftest.$ac_ext >&5
29366
29367ac_header_compiler=no
29368fi
29369rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29370echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29371echo "${ECHO_T}$ac_header_compiler" >&6
29372
29373# Is the header present?
29374echo "$as_me:$LINENO: checking $ac_header presence" >&5
29375echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29376cat >conftest.$ac_ext <<_ACEOF
29377/* confdefs.h.  */
29378_ACEOF
29379cat confdefs.h >>conftest.$ac_ext
29380cat >>conftest.$ac_ext <<_ACEOF
29381/* end confdefs.h.  */
29382#include <$ac_header>
29383_ACEOF
29384if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29385  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29386  ac_status=$?
29387  grep -v '^ *+' conftest.er1 >conftest.err
29388  rm -f conftest.er1
29389  cat conftest.err >&5
29390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29391  (exit $ac_status); } >/dev/null; then
29392  if test -s conftest.err; then
29393    ac_cpp_err=$ac_cxx_preproc_warn_flag
29394    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
29395  else
29396    ac_cpp_err=
29397  fi
29398else
29399  ac_cpp_err=yes
29400fi
29401if test -z "$ac_cpp_err"; then
29402  ac_header_preproc=yes
29403else
29404  echo "$as_me: failed program was:" >&5
29405sed 's/^/| /' conftest.$ac_ext >&5
29406
29407  ac_header_preproc=no
29408fi
29409rm -f conftest.err conftest.$ac_ext
29410echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29411echo "${ECHO_T}$ac_header_preproc" >&6
29412
29413# So?  What about this header?
29414case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
29415  yes:no: )
29416    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29417echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29418    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29419echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29420    ac_header_preproc=yes
29421    ;;
29422  no:yes:* )
29423    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29424echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29425    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29426echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29427    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29428echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29429    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29430echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29431    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29432echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29433    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29434echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29435    (
29436      cat <<\_ASBOX
29437## ---------------------------------------------------- ##
29438## Report this to http://projects.coin-or.org/CoinUtils ##
29439## ---------------------------------------------------- ##
29440_ASBOX
29441    ) |
29442      sed "s/^/$as_me: WARNING:     /" >&2
29443    ;;
29444esac
29445echo "$as_me:$LINENO: checking for $ac_header" >&5
29446echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29447if eval "test \"\${$as_ac_Header+set}\" = set"; then
29448  echo $ECHO_N "(cached) $ECHO_C" >&6
29449else
29450  eval "$as_ac_Header=\$ac_header_preproc"
29451fi
29452echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29453echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29454
29455fi
29456if test `eval echo '${'$as_ac_Header'}'` = yes; then
29457  cat >>confdefs.h <<_ACEOF
29458#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29459_ACEOF
29460
29461fi
29462
29463done
29464
29465
29466#############################################################################
29467#                             COIN-OR components                            #
29468#############################################################################
29469
29470
29471
29472if test $coin_cc_is_cl != true ; then
29473
29474    COINUTILSLIB_LIBS="-lm $COINUTILSLIB_LIBS"
29475    COINUTILSLIB_PCLIBS="-lm $COINUTILSLIB_PCLIBS"
29476    COINUTILSLIB_LIBS_INSTALLED="-lm $COINUTILSLIB_LIBS_INSTALLED"
29477
29478fi
29479
29480
29481
29482
29483
29484# Check whether --enable-pkg-config or --disable-pkg-config was given.
29485if test "${enable_pkg_config+set}" = set; then
29486  enableval="$enable_pkg_config"
29487  use_pkgconfig="$enableval"
29488else
29489  if test x$coin_cc_is_cl = xtrue; then
29490     use_pkgconfig=no
29491   else
29492     use_pkgconfig=yes
29493   fi
29494fi;
29495
29496if test $use_pkgconfig = yes ; then
29497  if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
29498    if test -n "$ac_tool_prefix"; then
29499  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
29500set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
29501echo "$as_me:$LINENO: checking for $ac_word" >&5
29502echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29503if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
29504  echo $ECHO_N "(cached) $ECHO_C" >&6
29505else
29506  if test -n "$PKG_CONFIG"; then
29507  ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
29508else
29509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29510for as_dir in $PATH
29511do
29512  IFS=$as_save_IFS
29513  test -z "$as_dir" && as_dir=.
29514  for ac_exec_ext in '' $ac_executable_extensions; do
29515  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29516    ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
29517    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29518    break 2
29519  fi
29520done
29521done
29522
29523fi
29524fi
29525PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
29526if test -n "$PKG_CONFIG"; then
29527  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29528echo "${ECHO_T}$PKG_CONFIG" >&6
29529else
29530  echo "$as_me:$LINENO: result: no" >&5
29531echo "${ECHO_T}no" >&6
29532fi
29533
29534fi
29535if test -z "$ac_cv_prog_PKG_CONFIG"; then
29536  ac_ct_PKG_CONFIG=$PKG_CONFIG
29537  # Extract the first word of "pkg-config", so it can be a program name with args.
29538set dummy pkg-config; ac_word=$2
29539echo "$as_me:$LINENO: checking for $ac_word" >&5
29540echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29541if test "${ac_cv_prog_ac_ct_PKG_CONFIG+set}" = set; then
29542  echo $ECHO_N "(cached) $ECHO_C" >&6
29543else
29544  if test -n "$ac_ct_PKG_CONFIG"; then
29545  ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
29546else
29547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29548for as_dir in $PATH
29549do
29550  IFS=$as_save_IFS
29551  test -z "$as_dir" && as_dir=.
29552  for ac_exec_ext in '' $ac_executable_extensions; do
29553  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29554    ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
29555    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29556    break 2
29557  fi
29558done
29559done
29560
29561fi
29562fi
29563ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
29564if test -n "$ac_ct_PKG_CONFIG"; then
29565  echo "$as_me:$LINENO: result: $ac_ct_PKG_CONFIG" >&5
29566echo "${ECHO_T}$ac_ct_PKG_CONFIG" >&6
29567else
29568  echo "$as_me:$LINENO: result: no" >&5
29569echo "${ECHO_T}no" >&6
29570fi
29571
29572  PKG_CONFIG=$ac_ct_PKG_CONFIG
29573else
29574  PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
29575fi
29576
29577  fi
29578  if test -n "$PKG_CONFIG"; then
29579    _pkg_min_version=0.16.0
29580    echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
29581echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
29582    if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
29583      echo "$as_me:$LINENO: result: yes" >&5
29584echo "${ECHO_T}yes" >&6
29585    else
29586      echo "$as_me:$LINENO: result: no" >&5
29587echo "${ECHO_T}no" >&6
29588      PKG_CONFIG=""
29589    fi
29590  fi
29591
29592  # check if pkg-config supports the short-errors flag
29593  if test -n "$PKG_CONFIG" && \
29594    $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29595    pkg_short_errors=" --short-errors "
29596  else
29597    pkg_short_errors=""
29598  fi
29599fi
29600
29601
29602
29603if test -n "$PKG_CONFIG"; then
29604  COIN_HAS_PKGCONFIG_TRUE=
29605  COIN_HAS_PKGCONFIG_FALSE='#'
29606else
29607  COIN_HAS_PKGCONFIG_TRUE='#'
29608  COIN_HAS_PKGCONFIG_FALSE=
29609fi
29610
29611
29612
29613# assemble pkg-config search path for installed projects
29614COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
29615
29616# 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
29617# best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
29618# unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
29619if test "x${prefix}" = xNONE ; then
29620  COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib64/pkgconfig:${ac_default_prefix}/lib/pkgconfig:${ac_default_prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
29621else
29622  COIN_PKG_CONFIG_PATH="${prefix}/lib64/pkgconfig:${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
29623fi
29624
29625
29626# Check whether --with-coin-instdir or --without-coin-instdir was given.
29627if test "${with_coin_instdir+set}" = set; then
29628  withval="$with_coin_instdir"
29629  if test -d "$withval"; then : ; else
29630     { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
29631echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
29632   { (exit 1); exit 1; }; }
29633   fi
29634   COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:$withval/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
29635
29636fi;
29637
29638
29639
29640# assemble additional pkg-config search paths for uninstalled projects
29641if test x$coin_projectdir = xyes ; then
29642  # if we are in a project setup, then in a classic setup, we want to find uninstalled projects
29643  # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
29644  # unfortunately, if the user set prefix, then we do not know where the project base directory is located
29645  # 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)
29646  COIN_PKG_CONFIG_PATH_UNINSTALLED=
29647  if test -f ../coin_subdirs.txt ; then
29648    for i in `cat ../coin_subdirs.txt` ; do
29649      if test -d ../$i ; then
29650        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
29651      fi
29652      if test -d ../$i/pkgconfig ; then
29653        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
29654      fi
29655    done
29656  fi
29657
29658  if test -f ../../coin_subdirs.txt ; then
29659    for i in `cat ../../coin_subdirs.txt` ; do
29660      if test -d ../../$i ; then
29661        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
29662      fi
29663      if test -d ../../$i/pkgconfig ; then
29664        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
29665      fi
29666    done
29667  fi
29668
29669
29670fi
29671
29672if test -n "$PKG_CONFIG" && test x$coin_cc_is_cl = xtrue; then
29673  { 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
29674echo "$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;}
29675fi
29676
29677
29678
29679
29680# Check whether --with-blas or --without-blas was given.
29681if test "${with_blas+set}" = set; then
29682  withval="$with_blas"
29683  use_blas="$withval"
29684else
29685  use_blas=
29686fi;
29687
29688# if user specified --with-blas-lib, then we should give COIN_CHECK_PACKAGE
29689# preference
29690
29691# Check whether --with-blas-lib or --without-blas-lib was given.
29692if test "${with_blas_lib+set}" = set; then
29693  withval="$with_blas_lib"
29694  use_blas=BUILD
29695fi;
29696
29697# Check if user supplied option makes sense
29698if test x"$use_blas" != x; then
29699  if test "$use_blas" = "BUILD"; then
29700    # we come to this later
29701    :
29702  elif test "$use_blas" != "no"; then
29703    coin_save_LIBS="$LIBS"
29704    LIBS="$use_blas $LIBS"
29705    if test "$F77" != unavailable ; then
29706      coin_need_flibs=no
29707      echo "$as_me:$LINENO: checking whether user supplied BLASLIB=\"$use_blas\" works" >&5
29708echo $ECHO_N "checking whether user supplied BLASLIB=\"$use_blas\" works... $ECHO_C" >&6
29709      case $ac_ext in
29710  f)
29711    cat >conftest.$ac_ext <<_ACEOF
29712/* confdefs.h.  */
29713_ACEOF
29714cat confdefs.h >>conftest.$ac_ext
29715cat >>conftest.$ac_ext <<_ACEOF
29716/* end confdefs.h.  */
29717
29718#ifdef F77_DUMMY_MAIN
29719
29720#  ifdef __cplusplus
29721     extern "C"
29722#  endif
29723   int F77_DUMMY_MAIN() { return 1; }
29724
29725#endif
29726int
29727main ()
29728{
29729      call daxpy
29730  ;
29731  return 0;
29732}
29733_ACEOF
29734rm -f conftest.$ac_objext conftest$ac_exeext
29735if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29736  (eval $ac_link) 2>conftest.er1
29737  ac_status=$?
29738  grep -v '^ *+' conftest.er1 >conftest.err
29739  rm -f conftest.er1
29740  cat conftest.err >&5
29741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29742  (exit $ac_status); } &&
29743	 { ac_try='test -z "$ac_cxx_werror_flag"
29744			 || test ! -s conftest.err'
29745  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29746  (eval $ac_try) 2>&5
29747  ac_status=$?
29748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29749  (exit $ac_status); }; } &&
29750	 { ac_try='test -s conftest$ac_exeext'
29751  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29752  (eval $ac_try) 2>&5
29753  ac_status=$?
29754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29755  (exit $ac_status); }; }; then
29756  if test $coin_need_flibs = yes ; then
29757                           use_blas="$use_blas $FLIBS"
29758                         fi
29759                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
29760echo "${ECHO_T}yes: $use_blas" >&6
29761else
29762  echo "$as_me: failed program was:" >&5
29763sed 's/^/| /' conftest.$ac_ext >&5
29764
29765echo "$as_me:$LINENO: result: no" >&5
29766echo "${ECHO_T}no" >&6
29767                         { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
29768echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
29769   { (exit 1); exit 1; }; }
29770fi
29771rm -f conftest.err conftest.$ac_objext \
29772      conftest$ac_exeext conftest.$ac_ext
29773    ;;
29774  c)
29775    ac_ext=f
29776ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
29777ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29778ac_compiler_gnu=$ac_cv_f77_compiler_gnu
29779case $ac_cv_f77_mangling in
29780  upper*) ac_val="DAXPY" ;;
29781  lower*) ac_val="daxpy" ;;
29782  *)      ac_val="unknown" ;;
29783esac
29784case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
29785
29786cfuncdaxpy="$ac_val"
29787
29788ac_ext=cc
29789ac_cpp='$CXXCPP $CPPFLAGS'
29790ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29791ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29792ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29793
29794    if test x"$coin_need_flibs" = xyes; then
29795      flink_try=no;
29796    else
29797      cat >conftest.$ac_ext <<_ACEOF
29798/* confdefs.h.  */
29799_ACEOF
29800cat confdefs.h >>conftest.$ac_ext
29801cat >>conftest.$ac_ext <<_ACEOF
29802/* end confdefs.h.  */
29803void $cfuncdaxpy();
29804#ifdef F77_DUMMY_MAIN
29805
29806#  ifdef __cplusplus
29807     extern "C"
29808#  endif
29809   int F77_DUMMY_MAIN() { return 1; }
29810
29811#endif
29812int
29813main ()
29814{
29815$cfuncdaxpy()
29816  ;
29817  return 0;
29818}
29819_ACEOF
29820rm -f conftest.$ac_objext conftest$ac_exeext
29821if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29822  (eval $ac_link) 2>conftest.er1
29823  ac_status=$?
29824  grep -v '^ *+' conftest.er1 >conftest.err
29825  rm -f conftest.er1
29826  cat conftest.err >&5
29827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29828  (exit $ac_status); } &&
29829	 { ac_try='test -z "$ac_cxx_werror_flag"
29830			 || test ! -s conftest.err'
29831  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29832  (eval $ac_try) 2>&5
29833  ac_status=$?
29834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29835  (exit $ac_status); }; } &&
29836	 { ac_try='test -s conftest$ac_exeext'
29837  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29838  (eval $ac_try) 2>&5
29839  ac_status=$?
29840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29841  (exit $ac_status); }; }; then
29842  flink_try=yes
29843else
29844  echo "$as_me: failed program was:" >&5
29845sed 's/^/| /' conftest.$ac_ext >&5
29846
29847flink_try=no
29848fi
29849rm -f conftest.err conftest.$ac_objext \
29850      conftest$ac_exeext conftest.$ac_ext
29851    fi
29852    if test $flink_try = yes; then
29853      if test $coin_need_flibs = yes ; then
29854                           use_blas="$use_blas $FLIBS"
29855                         fi
29856                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
29857echo "${ECHO_T}yes: $use_blas" >&6
29858    else
29859      if test x"$FLIBS" != x; then
29860        flink_save_libs="$LIBS"
29861        LIBS="$LIBS $FLIBS"
29862        cat >conftest.$ac_ext <<_ACEOF
29863/* confdefs.h.  */
29864_ACEOF
29865cat confdefs.h >>conftest.$ac_ext
29866cat >>conftest.$ac_ext <<_ACEOF
29867/* end confdefs.h.  */
29868void $cfuncdaxpy();
29869#ifdef F77_DUMMY_MAIN
29870
29871#  ifdef __cplusplus
29872     extern "C"
29873#  endif
29874   int F77_DUMMY_MAIN() { return 1; }
29875
29876#endif
29877int
29878main ()
29879{
29880$cfuncdaxpy()
29881  ;
29882  return 0;
29883}
29884_ACEOF
29885rm -f conftest.$ac_objext conftest$ac_exeext
29886if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29887  (eval $ac_link) 2>conftest.er1
29888  ac_status=$?
29889  grep -v '^ *+' conftest.er1 >conftest.err
29890  rm -f conftest.er1
29891  cat conftest.err >&5
29892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29893  (exit $ac_status); } &&
29894	 { ac_try='test -z "$ac_cxx_werror_flag"
29895			 || test ! -s conftest.err'
29896  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29897  (eval $ac_try) 2>&5
29898  ac_status=$?
29899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29900  (exit $ac_status); }; } &&
29901	 { ac_try='test -s conftest$ac_exeext'
29902  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29903  (eval $ac_try) 2>&5
29904  ac_status=$?
29905  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29906  (exit $ac_status); }; }; then
29907  LIBS="$flink_save_libs"
29908                     coin_need_flibs=yes
29909                     if test $coin_need_flibs = yes ; then
29910                           use_blas="$use_blas $FLIBS"
29911                         fi
29912                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
29913echo "${ECHO_T}yes: $use_blas" >&6
29914
29915else
29916  echo "$as_me: failed program was:" >&5
29917sed 's/^/| /' conftest.$ac_ext >&5
29918
29919LIBS="$flink_save_libs"
29920                     echo "$as_me:$LINENO: result: no" >&5
29921echo "${ECHO_T}no" >&6
29922                         { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
29923echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
29924   { (exit 1); exit 1; }; }
29925fi
29926rm -f conftest.err conftest.$ac_objext \
29927      conftest$ac_exeext conftest.$ac_ext
29928      else
29929        echo "$as_me:$LINENO: result: no" >&5
29930echo "${ECHO_T}no" >&6
29931                         { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
29932echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
29933   { (exit 1); exit 1; }; }
29934      fi
29935    fi
29936    ;;
29937  cc|cpp)
29938    ac_ext=f
29939ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
29940ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29941ac_compiler_gnu=$ac_cv_f77_compiler_gnu
29942case $ac_cv_f77_mangling in
29943  upper*) ac_val="DAXPY" ;;
29944  lower*) ac_val="daxpy" ;;
29945  *)      ac_val="unknown" ;;
29946esac
29947case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
29948
29949cfuncdaxpy="$ac_val"
29950
29951ac_ext=cc
29952ac_cpp='$CXXCPP $CPPFLAGS'
29953ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29954ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29955ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29956
29957    if test x"$coin_need_flibs" = xyes; then
29958      flink_try=no;
29959    else
29960      cat >conftest.$ac_ext <<_ACEOF
29961/* confdefs.h.  */
29962_ACEOF
29963cat confdefs.h >>conftest.$ac_ext
29964cat >>conftest.$ac_ext <<_ACEOF
29965/* end confdefs.h.  */
29966extern "C" {void $cfuncdaxpy();}
29967#ifdef F77_DUMMY_MAIN
29968
29969#  ifdef __cplusplus
29970     extern "C"
29971#  endif
29972   int F77_DUMMY_MAIN() { return 1; }
29973
29974#endif
29975int
29976main ()
29977{
29978$cfuncdaxpy()
29979  ;
29980  return 0;
29981}
29982_ACEOF
29983rm -f conftest.$ac_objext conftest$ac_exeext
29984if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29985  (eval $ac_link) 2>conftest.er1
29986  ac_status=$?
29987  grep -v '^ *+' conftest.er1 >conftest.err
29988  rm -f conftest.er1
29989  cat conftest.err >&5
29990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29991  (exit $ac_status); } &&
29992	 { ac_try='test -z "$ac_cxx_werror_flag"
29993			 || test ! -s conftest.err'
29994  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29995  (eval $ac_try) 2>&5
29996  ac_status=$?
29997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29998  (exit $ac_status); }; } &&
29999	 { ac_try='test -s conftest$ac_exeext'
30000  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30001  (eval $ac_try) 2>&5
30002  ac_status=$?
30003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30004  (exit $ac_status); }; }; then
30005  flink_try=yes
30006else
30007  echo "$as_me: failed program was:" >&5
30008sed 's/^/| /' conftest.$ac_ext >&5
30009
30010flink_try=no
30011fi
30012rm -f conftest.err conftest.$ac_objext \
30013      conftest$ac_exeext conftest.$ac_ext
30014    fi
30015    if test $flink_try = yes; then
30016      if test $coin_need_flibs = yes ; then
30017                           use_blas="$use_blas $FLIBS"
30018                         fi
30019                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
30020echo "${ECHO_T}yes: $use_blas" >&6
30021    else
30022      if test x"$FLIBS" != x; then
30023        flink_save_libs="$LIBS"
30024        LIBS="$LIBS $FLIBS"
30025        cat >conftest.$ac_ext <<_ACEOF
30026/* confdefs.h.  */
30027_ACEOF
30028cat confdefs.h >>conftest.$ac_ext
30029cat >>conftest.$ac_ext <<_ACEOF
30030/* end confdefs.h.  */
30031extern "C" {void $cfuncdaxpy();}
30032#ifdef F77_DUMMY_MAIN
30033
30034#  ifdef __cplusplus
30035     extern "C"
30036#  endif
30037   int F77_DUMMY_MAIN() { return 1; }
30038
30039#endif
30040int
30041main ()
30042{
30043$cfuncdaxpy()
30044  ;
30045  return 0;
30046}
30047_ACEOF
30048rm -f conftest.$ac_objext conftest$ac_exeext
30049if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30050  (eval $ac_link) 2>conftest.er1
30051  ac_status=$?
30052  grep -v '^ *+' conftest.er1 >conftest.err
30053  rm -f conftest.er1
30054  cat conftest.err >&5
30055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30056  (exit $ac_status); } &&
30057	 { ac_try='test -z "$ac_cxx_werror_flag"
30058			 || test ! -s conftest.err'
30059  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30060  (eval $ac_try) 2>&5
30061  ac_status=$?
30062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30063  (exit $ac_status); }; } &&
30064	 { ac_try='test -s conftest$ac_exeext'
30065  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30066  (eval $ac_try) 2>&5
30067  ac_status=$?
30068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30069  (exit $ac_status); }; }; then
30070  LIBS="$flink_save_libs"
30071                     coin_need_flibs=yes
30072                     if test $coin_need_flibs = yes ; then
30073                           use_blas="$use_blas $FLIBS"
30074                         fi
30075                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
30076echo "${ECHO_T}yes: $use_blas" >&6
30077
30078else
30079  echo "$as_me: failed program was:" >&5
30080sed 's/^/| /' conftest.$ac_ext >&5
30081
30082LIBS="$flink_save_libs"
30083                     echo "$as_me:$LINENO: result: no" >&5
30084echo "${ECHO_T}no" >&6
30085                         { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
30086echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
30087   { (exit 1); exit 1; }; }
30088fi
30089rm -f conftest.err conftest.$ac_objext \
30090      conftest$ac_exeext conftest.$ac_ext
30091      else
30092        echo "$as_me:$LINENO: result: no" >&5
30093echo "${ECHO_T}no" >&6
30094                         { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
30095echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
30096   { (exit 1); exit 1; }; }
30097      fi
30098    fi
30099    ;;
30100esac
30101
30102      use_blas="$use_blas $FLIBS"
30103    else
30104      { echo "$as_me:$LINENO: checking whether user supplied BLASLIB=\"$use_blas\" works with C linkage" >&5
30105echo "$as_me: checking whether user supplied BLASLIB=\"$use_blas\" works with C linkage" >&6;}
30106      ac_ext=c
30107ac_cpp='$CPP $CPPFLAGS'
30108ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30109ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30110ac_compiler_gnu=$ac_cv_c_compiler_gnu
30111
30112      echo "$as_me:$LINENO: checking for daxpy" >&5
30113echo $ECHO_N "checking for daxpy... $ECHO_C" >&6
30114if test "${ac_cv_func_daxpy+set}" = set; then
30115  echo $ECHO_N "(cached) $ECHO_C" >&6
30116else
30117  cat >conftest.$ac_ext <<_ACEOF
30118/* confdefs.h.  */
30119_ACEOF
30120cat confdefs.h >>conftest.$ac_ext
30121cat >>conftest.$ac_ext <<_ACEOF
30122/* end confdefs.h.  */
30123/* Define daxpy to an innocuous variant, in case <limits.h> declares daxpy.
30124   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30125#define daxpy innocuous_daxpy
30126
30127/* System header to define __stub macros and hopefully few prototypes,
30128    which can conflict with char daxpy (); below.
30129    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30130    <limits.h> exists even on freestanding compilers.  */
30131
30132#ifdef __STDC__
30133# include <limits.h>
30134#else
30135# include <assert.h>
30136#endif
30137
30138#undef daxpy
30139
30140/* Override any gcc2 internal prototype to avoid an error.  */
30141#ifdef __cplusplus
30142extern "C"
30143{
30144#endif
30145/* We use char because int might match the return type of a gcc2
30146   builtin and then its argument prototype would still apply.  */
30147char daxpy ();
30148/* The GNU C library defines this for functions which it implements
30149    to always fail with ENOSYS.  Some functions are actually named
30150    something starting with __ and the normal name is an alias.  */
30151#if defined (__stub_daxpy) || defined (__stub___daxpy)
30152choke me
30153#else
30154char (*f) () = daxpy;
30155#endif
30156#ifdef __cplusplus
30157}
30158#endif
30159
30160#ifdef F77_DUMMY_MAIN
30161
30162#  ifdef __cplusplus
30163     extern "C"
30164#  endif
30165   int F77_DUMMY_MAIN() { return 1; }
30166
30167#endif
30168int
30169main ()
30170{
30171return f != daxpy;
30172  ;
30173  return 0;
30174}
30175_ACEOF
30176rm -f conftest.$ac_objext conftest$ac_exeext
30177if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30178  (eval $ac_link) 2>conftest.er1
30179  ac_status=$?
30180  grep -v '^ *+' conftest.er1 >conftest.err
30181  rm -f conftest.er1
30182  cat conftest.err >&5
30183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30184  (exit $ac_status); } &&
30185	 { ac_try='test -z "$ac_c_werror_flag"
30186			 || test ! -s conftest.err'
30187  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30188  (eval $ac_try) 2>&5
30189  ac_status=$?
30190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30191  (exit $ac_status); }; } &&
30192	 { ac_try='test -s conftest$ac_exeext'
30193  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30194  (eval $ac_try) 2>&5
30195  ac_status=$?
30196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30197  (exit $ac_status); }; }; then
30198  ac_cv_func_daxpy=yes
30199else
30200  echo "$as_me: failed program was:" >&5
30201sed 's/^/| /' conftest.$ac_ext >&5
30202
30203ac_cv_func_daxpy=no
30204fi
30205rm -f conftest.err conftest.$ac_objext \
30206      conftest$ac_exeext conftest.$ac_ext
30207fi
30208echo "$as_me:$LINENO: result: $ac_cv_func_daxpy" >&5
30209echo "${ECHO_T}$ac_cv_func_daxpy" >&6
30210if test $ac_cv_func_daxpy = yes; then
30211  :
30212else
30213  { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
30214echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
30215   { (exit 1); exit 1; }; }
30216fi
30217
30218      ac_ext=cc
30219ac_cpp='$CXXCPP $CPPFLAGS'
30220ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30221ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30222ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30223
30224    fi
30225    LIBS="$coin_save_LIBS"
30226  fi
30227else
30228# Try to autodetect the library for blas based on build system
30229  #AC_MSG_CHECKING([default locations for BLAS])
30230  case $build in
30231    *-sgi-*)
30232      echo "$as_me:$LINENO: checking whether -lcomplib.sgimath has BLAS" >&5
30233echo $ECHO_N "checking whether -lcomplib.sgimath has BLAS... $ECHO_C" >&6
30234      coin_need_flibs=no
30235      coin_save_LIBS="$LIBS"
30236      LIBS="-lcomplib.sgimath $LIBS"
30237      case $ac_ext in
30238  f)
30239    cat >conftest.$ac_ext <<_ACEOF
30240/* confdefs.h.  */
30241_ACEOF
30242cat confdefs.h >>conftest.$ac_ext
30243cat >>conftest.$ac_ext <<_ACEOF
30244/* end confdefs.h.  */
30245
30246#ifdef F77_DUMMY_MAIN
30247
30248#  ifdef __cplusplus
30249     extern "C"
30250#  endif
30251   int F77_DUMMY_MAIN() { return 1; }
30252
30253#endif
30254int
30255main ()
30256{
30257      call daxpy
30258  ;
30259  return 0;
30260}
30261_ACEOF
30262rm -f conftest.$ac_objext conftest$ac_exeext
30263if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30264  (eval $ac_link) 2>conftest.er1
30265  ac_status=$?
30266  grep -v '^ *+' conftest.er1 >conftest.err
30267  rm -f conftest.er1
30268  cat conftest.err >&5
30269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30270  (exit $ac_status); } &&
30271	 { ac_try='test -z "$ac_cxx_werror_flag"
30272			 || test ! -s conftest.err'
30273  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30274  (eval $ac_try) 2>&5
30275  ac_status=$?
30276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30277  (exit $ac_status); }; } &&
30278	 { ac_try='test -s conftest$ac_exeext'
30279  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30280  (eval $ac_try) 2>&5
30281  ac_status=$?
30282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30283  (exit $ac_status); }; }; then
30284  use_blas="-lcomplib.sgimath"
30285                         if test $coin_need_flibs = yes ; then
30286                           use_blas="$use_blas $FLIBS"
30287                         fi
30288                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
30289echo "${ECHO_T}yes: $use_blas" >&6
30290
30291else
30292  echo "$as_me: failed program was:" >&5
30293sed 's/^/| /' conftest.$ac_ext >&5
30294
30295echo "$as_me:$LINENO: result: no" >&5
30296echo "${ECHO_T}no" >&6
30297fi
30298rm -f conftest.err conftest.$ac_objext \
30299      conftest$ac_exeext conftest.$ac_ext
30300    ;;
30301  c)
30302    ac_ext=f
30303ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
30304ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30305ac_compiler_gnu=$ac_cv_f77_compiler_gnu
30306case $ac_cv_f77_mangling in
30307  upper*) ac_val="DAXPY" ;;
30308  lower*) ac_val="daxpy" ;;
30309  *)      ac_val="unknown" ;;
30310esac
30311case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
30312
30313cfuncdaxpy="$ac_val"
30314
30315ac_ext=cc
30316ac_cpp='$CXXCPP $CPPFLAGS'
30317ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30318ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30319ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30320
30321    if test x"$coin_need_flibs" = xyes; then
30322      flink_try=no;
30323    else
30324      cat >conftest.$ac_ext <<_ACEOF
30325/* confdefs.h.  */
30326_ACEOF
30327cat confdefs.h >>conftest.$ac_ext
30328cat >>conftest.$ac_ext <<_ACEOF
30329/* end confdefs.h.  */
30330void $cfuncdaxpy();
30331#ifdef F77_DUMMY_MAIN
30332
30333#  ifdef __cplusplus
30334     extern "C"
30335#  endif
30336   int F77_DUMMY_MAIN() { return 1; }
30337
30338#endif
30339int
30340main ()
30341{
30342$cfuncdaxpy()
30343  ;
30344  return 0;
30345}
30346_ACEOF
30347rm -f conftest.$ac_objext conftest$ac_exeext
30348if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30349  (eval $ac_link) 2>conftest.er1
30350  ac_status=$?
30351  grep -v '^ *+' conftest.er1 >conftest.err
30352  rm -f conftest.er1
30353  cat conftest.err >&5
30354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30355  (exit $ac_status); } &&
30356	 { ac_try='test -z "$ac_cxx_werror_flag"
30357			 || test ! -s conftest.err'
30358  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30359  (eval $ac_try) 2>&5
30360  ac_status=$?
30361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30362  (exit $ac_status); }; } &&
30363	 { ac_try='test -s conftest$ac_exeext'
30364  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30365  (eval $ac_try) 2>&5
30366  ac_status=$?
30367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30368  (exit $ac_status); }; }; then
30369  flink_try=yes
30370else
30371  echo "$as_me: failed program was:" >&5
30372sed 's/^/| /' conftest.$ac_ext >&5
30373
30374flink_try=no
30375fi
30376rm -f conftest.err conftest.$ac_objext \
30377      conftest$ac_exeext conftest.$ac_ext
30378    fi
30379    if test $flink_try = yes; then
30380      use_blas="-lcomplib.sgimath"
30381                         if test $coin_need_flibs = yes ; then
30382                           use_blas="$use_blas $FLIBS"
30383                         fi
30384                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
30385echo "${ECHO_T}yes: $use_blas" >&6
30386
30387    else
30388      if test x"$FLIBS" != x; then
30389        flink_save_libs="$LIBS"
30390        LIBS="$LIBS $FLIBS"
30391        cat >conftest.$ac_ext <<_ACEOF
30392/* confdefs.h.  */
30393_ACEOF
30394cat confdefs.h >>conftest.$ac_ext
30395cat >>conftest.$ac_ext <<_ACEOF
30396/* end confdefs.h.  */
30397void $cfuncdaxpy();
30398#ifdef F77_DUMMY_MAIN
30399
30400#  ifdef __cplusplus
30401     extern "C"
30402#  endif
30403   int F77_DUMMY_MAIN() { return 1; }
30404
30405#endif
30406int
30407main ()
30408{
30409$cfuncdaxpy()
30410  ;
30411  return 0;
30412}
30413_ACEOF
30414rm -f conftest.$ac_objext conftest$ac_exeext
30415if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30416  (eval $ac_link) 2>conftest.er1
30417  ac_status=$?
30418  grep -v '^ *+' conftest.er1 >conftest.err
30419  rm -f conftest.er1
30420  cat conftest.err >&5
30421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30422  (exit $ac_status); } &&
30423	 { ac_try='test -z "$ac_cxx_werror_flag"
30424			 || test ! -s conftest.err'
30425  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30426  (eval $ac_try) 2>&5
30427  ac_status=$?
30428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30429  (exit $ac_status); }; } &&
30430	 { ac_try='test -s conftest$ac_exeext'
30431  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30432  (eval $ac_try) 2>&5
30433  ac_status=$?
30434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30435  (exit $ac_status); }; }; then
30436  LIBS="$flink_save_libs"
30437                     coin_need_flibs=yes
30438                     use_blas="-lcomplib.sgimath"
30439                         if test $coin_need_flibs = yes ; then
30440                           use_blas="$use_blas $FLIBS"
30441                         fi
30442                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
30443echo "${ECHO_T}yes: $use_blas" >&6
30444
30445
30446else
30447  echo "$as_me: failed program was:" >&5
30448sed 's/^/| /' conftest.$ac_ext >&5
30449
30450LIBS="$flink_save_libs"
30451                     echo "$as_me:$LINENO: result: no" >&5
30452echo "${ECHO_T}no" >&6
30453fi
30454rm -f conftest.err conftest.$ac_objext \
30455      conftest$ac_exeext conftest.$ac_ext
30456      else
30457        echo "$as_me:$LINENO: result: no" >&5
30458echo "${ECHO_T}no" >&6
30459      fi
30460    fi
30461    ;;
30462  cc|cpp)
30463    ac_ext=f
30464ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
30465ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30466ac_compiler_gnu=$ac_cv_f77_compiler_gnu
30467case $ac_cv_f77_mangling in
30468  upper*) ac_val="DAXPY" ;;
30469  lower*) ac_val="daxpy" ;;
30470  *)      ac_val="unknown" ;;
30471esac
30472case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
30473
30474cfuncdaxpy="$ac_val"
30475
30476ac_ext=cc
30477ac_cpp='$CXXCPP $CPPFLAGS'
30478ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30479ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30480ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30481
30482    if test x"$coin_need_flibs" = xyes; then
30483      flink_try=no;
30484    else
30485      cat >conftest.$ac_ext <<_ACEOF
30486/* confdefs.h.  */
30487_ACEOF
30488cat confdefs.h >>conftest.$ac_ext
30489cat >>conftest.$ac_ext <<_ACEOF
30490/* end confdefs.h.  */
30491extern "C" {void $cfuncdaxpy();}
30492#ifdef F77_DUMMY_MAIN
30493
30494#  ifdef __cplusplus
30495     extern "C"
30496#  endif
30497   int F77_DUMMY_MAIN() { return 1; }
30498
30499#endif
30500int
30501main ()
30502{
30503$cfuncdaxpy()
30504  ;
30505  return 0;
30506}
30507_ACEOF
30508rm -f conftest.$ac_objext conftest$ac_exeext
30509if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30510  (eval $ac_link) 2>conftest.er1
30511  ac_status=$?
30512  grep -v '^ *+' conftest.er1 >conftest.err
30513  rm -f conftest.er1
30514  cat conftest.err >&5
30515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30516  (exit $ac_status); } &&
30517	 { ac_try='test -z "$ac_cxx_werror_flag"
30518			 || test ! -s conftest.err'
30519  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30520  (eval $ac_try) 2>&5
30521  ac_status=$?
30522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30523  (exit $ac_status); }; } &&
30524	 { ac_try='test -s conftest$ac_exeext'
30525  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30526  (eval $ac_try) 2>&5
30527  ac_status=$?
30528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30529  (exit $ac_status); }; }; then
30530  flink_try=yes
30531else
30532  echo "$as_me: failed program was:" >&5
30533sed 's/^/| /' conftest.$ac_ext >&5
30534
30535flink_try=no
30536fi
30537rm -f conftest.err conftest.$ac_objext \
30538      conftest$ac_exeext conftest.$ac_ext
30539    fi
30540    if test $flink_try = yes; then
30541      use_blas="-lcomplib.sgimath"
30542                         if test $coin_need_flibs = yes ; then
30543                           use_blas="$use_blas $FLIBS"
30544                         fi
30545                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
30546echo "${ECHO_T}yes: $use_blas" >&6
30547
30548    else
30549      if test x"$FLIBS" != x; then
30550        flink_save_libs="$LIBS"
30551        LIBS="$LIBS $FLIBS"
30552        cat >conftest.$ac_ext <<_ACEOF
30553/* confdefs.h.  */
30554_ACEOF
30555cat confdefs.h >>conftest.$ac_ext
30556cat >>conftest.$ac_ext <<_ACEOF
30557/* end confdefs.h.  */
30558extern "C" {void $cfuncdaxpy();}
30559#ifdef F77_DUMMY_MAIN
30560
30561#  ifdef __cplusplus
30562     extern "C"
30563#  endif
30564   int F77_DUMMY_MAIN() { return 1; }
30565
30566#endif
30567int
30568main ()
30569{
30570$cfuncdaxpy()
30571  ;
30572  return 0;
30573}
30574_ACEOF
30575rm -f conftest.$ac_objext conftest$ac_exeext
30576if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30577  (eval $ac_link) 2>conftest.er1
30578  ac_status=$?
30579  grep -v '^ *+' conftest.er1 >conftest.err
30580  rm -f conftest.er1
30581  cat conftest.err >&5
30582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30583  (exit $ac_status); } &&
30584	 { ac_try='test -z "$ac_cxx_werror_flag"
30585			 || test ! -s conftest.err'
30586  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30587  (eval $ac_try) 2>&5
30588  ac_status=$?
30589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30590  (exit $ac_status); }; } &&
30591	 { ac_try='test -s conftest$ac_exeext'
30592  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30593  (eval $ac_try) 2>&5
30594  ac_status=$?
30595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30596  (exit $ac_status); }; }; then
30597  LIBS="$flink_save_libs"
30598                     coin_need_flibs=yes
30599                     use_blas="-lcomplib.sgimath"
30600                         if test $coin_need_flibs = yes ; then
30601                           use_blas="$use_blas $FLIBS"
30602                         fi
30603                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
30604echo "${ECHO_T}yes: $use_blas" >&6
30605
30606
30607else
30608  echo "$as_me: failed program was:" >&5
30609sed 's/^/| /' conftest.$ac_ext >&5
30610
30611LIBS="$flink_save_libs"
30612                     echo "$as_me:$LINENO: result: no" >&5
30613echo "${ECHO_T}no" >&6
30614fi
30615rm -f conftest.err conftest.$ac_objext \
30616      conftest$ac_exeext conftest.$ac_ext
30617      else
30618        echo "$as_me:$LINENO: result: no" >&5
30619echo "${ECHO_T}no" >&6
30620      fi
30621    fi
30622    ;;
30623esac
30624
30625      LIBS="$coin_save_LIBS"
30626      ;;
30627
30628# Ideally, we'd use -library=sunperf, but it's an imperfect world. Studio
30629# cc doesn't recognise -library, it wants -xlic_lib. Studio 12 CC doesn't
30630# recognise -xlic_lib. Libtool doesn't like -xlic_lib anyway. Sun claims
30631# that CC and cc will understand -library in Studio 13. The main extra
30632# function of -xlic_lib and -library is to arrange for the Fortran run-time
30633# libraries to be linked for C++ and C. We can arrange that explicitly.
30634    *-*-solaris*)
30635      echo "$as_me:$LINENO: checking for BLAS in libsunperf" >&5
30636echo $ECHO_N "checking for BLAS in libsunperf... $ECHO_C" >&6
30637      coin_need_flibs=no
30638      coin_save_LIBS="$LIBS"
30639      LIBS="-lsunperf $FLIBS $LIBS"
30640      case $ac_ext in
30641  f)
30642    cat >conftest.$ac_ext <<_ACEOF
30643/* confdefs.h.  */
30644_ACEOF
30645cat confdefs.h >>conftest.$ac_ext
30646cat >>conftest.$ac_ext <<_ACEOF
30647/* end confdefs.h.  */
30648
30649#ifdef F77_DUMMY_MAIN
30650
30651#  ifdef __cplusplus
30652     extern "C"
30653#  endif
30654   int F77_DUMMY_MAIN() { return 1; }
30655
30656#endif
30657int
30658main ()
30659{
30660      call daxpy
30661  ;
30662  return 0;
30663}
30664_ACEOF
30665rm -f conftest.$ac_objext conftest$ac_exeext
30666if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30667  (eval $ac_link) 2>conftest.er1
30668  ac_status=$?
30669  grep -v '^ *+' conftest.er1 >conftest.err
30670  rm -f conftest.er1
30671  cat conftest.err >&5
30672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30673  (exit $ac_status); } &&
30674	 { ac_try='test -z "$ac_cxx_werror_flag"
30675			 || test ! -s conftest.err'
30676  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30677  (eval $ac_try) 2>&5
30678  ac_status=$?
30679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30680  (exit $ac_status); }; } &&
30681	 { ac_try='test -s conftest$ac_exeext'
30682  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30683  (eval $ac_try) 2>&5
30684  ac_status=$?
30685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30686  (exit $ac_status); }; }; then
30687  use_blas='-lsunperf'
30688                         if test $coin_need_flibs = yes ; then
30689                           use_blas="$use_blas $FLIBS"
30690                         fi
30691                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
30692echo "${ECHO_T}yes: $use_blas" >&6
30693
30694else
30695  echo "$as_me: failed program was:" >&5
30696sed 's/^/| /' conftest.$ac_ext >&5
30697
30698echo "$as_me:$LINENO: result: no" >&5
30699echo "${ECHO_T}no" >&6
30700fi
30701rm -f conftest.err conftest.$ac_objext \
30702      conftest$ac_exeext conftest.$ac_ext
30703    ;;
30704  c)
30705    ac_ext=f
30706ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
30707ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30708ac_compiler_gnu=$ac_cv_f77_compiler_gnu
30709case $ac_cv_f77_mangling in
30710  upper*) ac_val="DAXPY" ;;
30711  lower*) ac_val="daxpy" ;;
30712  *)      ac_val="unknown" ;;
30713esac
30714case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
30715
30716cfuncdaxpy="$ac_val"
30717
30718ac_ext=cc
30719ac_cpp='$CXXCPP $CPPFLAGS'
30720ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30721ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30722ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30723
30724    if test x"$coin_need_flibs" = xyes; then
30725      flink_try=no;
30726    else
30727      cat >conftest.$ac_ext <<_ACEOF
30728/* confdefs.h.  */
30729_ACEOF
30730cat confdefs.h >>conftest.$ac_ext
30731cat >>conftest.$ac_ext <<_ACEOF
30732/* end confdefs.h.  */
30733void $cfuncdaxpy();
30734#ifdef F77_DUMMY_MAIN
30735
30736#  ifdef __cplusplus
30737     extern "C"
30738#  endif
30739   int F77_DUMMY_MAIN() { return 1; }
30740
30741#endif
30742int
30743main ()
30744{
30745$cfuncdaxpy()
30746  ;
30747  return 0;
30748}
30749_ACEOF
30750rm -f conftest.$ac_objext conftest$ac_exeext
30751if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30752  (eval $ac_link) 2>conftest.er1
30753  ac_status=$?
30754  grep -v '^ *+' conftest.er1 >conftest.err
30755  rm -f conftest.er1
30756  cat conftest.err >&5
30757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30758  (exit $ac_status); } &&
30759	 { ac_try='test -z "$ac_cxx_werror_flag"
30760			 || test ! -s conftest.err'
30761  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30762  (eval $ac_try) 2>&5
30763  ac_status=$?
30764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30765  (exit $ac_status); }; } &&
30766	 { ac_try='test -s conftest$ac_exeext'
30767  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30768  (eval $ac_try) 2>&5
30769  ac_status=$?
30770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30771  (exit $ac_status); }; }; then
30772  flink_try=yes
30773else
30774  echo "$as_me: failed program was:" >&5
30775sed 's/^/| /' conftest.$ac_ext >&5
30776
30777flink_try=no
30778fi
30779rm -f conftest.err conftest.$ac_objext \
30780      conftest$ac_exeext conftest.$ac_ext
30781    fi
30782    if test $flink_try = yes; then
30783      use_blas='-lsunperf'
30784                         if test $coin_need_flibs = yes ; then
30785                           use_blas="$use_blas $FLIBS"
30786                         fi
30787                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
30788echo "${ECHO_T}yes: $use_blas" >&6
30789
30790    else
30791      if test x"$FLIBS" != x; then
30792        flink_save_libs="$LIBS"
30793        LIBS="$LIBS $FLIBS"
30794        cat >conftest.$ac_ext <<_ACEOF
30795/* confdefs.h.  */
30796_ACEOF
30797cat confdefs.h >>conftest.$ac_ext
30798cat >>conftest.$ac_ext <<_ACEOF
30799/* end confdefs.h.  */
30800void $cfuncdaxpy();
30801#ifdef F77_DUMMY_MAIN
30802
30803#  ifdef __cplusplus
30804     extern "C"
30805#  endif
30806   int F77_DUMMY_MAIN() { return 1; }
30807
30808#endif
30809int
30810main ()
30811{
30812$cfuncdaxpy()
30813  ;
30814  return 0;
30815}
30816_ACEOF
30817rm -f conftest.$ac_objext conftest$ac_exeext
30818if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30819  (eval $ac_link) 2>conftest.er1
30820  ac_status=$?
30821  grep -v '^ *+' conftest.er1 >conftest.err
30822  rm -f conftest.er1
30823  cat conftest.err >&5
30824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30825  (exit $ac_status); } &&
30826	 { ac_try='test -z "$ac_cxx_werror_flag"
30827			 || test ! -s conftest.err'
30828  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30829  (eval $ac_try) 2>&5
30830  ac_status=$?
30831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30832  (exit $ac_status); }; } &&
30833	 { ac_try='test -s conftest$ac_exeext'
30834  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30835  (eval $ac_try) 2>&5
30836  ac_status=$?
30837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30838  (exit $ac_status); }; }; then
30839  LIBS="$flink_save_libs"
30840                     coin_need_flibs=yes
30841                     use_blas='-lsunperf'
30842                         if test $coin_need_flibs = yes ; then
30843                           use_blas="$use_blas $FLIBS"
30844                         fi
30845                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
30846echo "${ECHO_T}yes: $use_blas" >&6
30847
30848
30849else
30850  echo "$as_me: failed program was:" >&5
30851sed 's/^/| /' conftest.$ac_ext >&5
30852
30853LIBS="$flink_save_libs"
30854                     echo "$as_me:$LINENO: result: no" >&5
30855echo "${ECHO_T}no" >&6
30856fi
30857rm -f conftest.err conftest.$ac_objext \
30858      conftest$ac_exeext conftest.$ac_ext
30859      else
30860        echo "$as_me:$LINENO: result: no" >&5
30861echo "${ECHO_T}no" >&6
30862      fi
30863    fi
30864    ;;
30865  cc|cpp)
30866    ac_ext=f
30867ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
30868ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30869ac_compiler_gnu=$ac_cv_f77_compiler_gnu
30870case $ac_cv_f77_mangling in
30871  upper*) ac_val="DAXPY" ;;
30872  lower*) ac_val="daxpy" ;;
30873  *)      ac_val="unknown" ;;
30874esac
30875case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
30876
30877cfuncdaxpy="$ac_val"
30878
30879ac_ext=cc
30880ac_cpp='$CXXCPP $CPPFLAGS'
30881ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30882ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30883ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30884
30885    if test x"$coin_need_flibs" = xyes; then
30886      flink_try=no;
30887    else
30888      cat >conftest.$ac_ext <<_ACEOF
30889/* confdefs.h.  */
30890_ACEOF
30891cat confdefs.h >>conftest.$ac_ext
30892cat >>conftest.$ac_ext <<_ACEOF
30893/* end confdefs.h.  */
30894extern "C" {void $cfuncdaxpy();}
30895#ifdef F77_DUMMY_MAIN
30896
30897#  ifdef __cplusplus
30898     extern "C"
30899#  endif
30900   int F77_DUMMY_MAIN() { return 1; }
30901
30902#endif
30903int
30904main ()
30905{
30906$cfuncdaxpy()
30907  ;
30908  return 0;
30909}
30910_ACEOF
30911rm -f conftest.$ac_objext conftest$ac_exeext
30912if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30913  (eval $ac_link) 2>conftest.er1
30914  ac_status=$?
30915  grep -v '^ *+' conftest.er1 >conftest.err
30916  rm -f conftest.er1
30917  cat conftest.err >&5
30918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30919  (exit $ac_status); } &&
30920	 { ac_try='test -z "$ac_cxx_werror_flag"
30921			 || test ! -s conftest.err'
30922  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30923  (eval $ac_try) 2>&5
30924  ac_status=$?
30925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30926  (exit $ac_status); }; } &&
30927	 { ac_try='test -s conftest$ac_exeext'
30928  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30929  (eval $ac_try) 2>&5
30930  ac_status=$?
30931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30932  (exit $ac_status); }; }; then
30933  flink_try=yes
30934else
30935  echo "$as_me: failed program was:" >&5
30936sed 's/^/| /' conftest.$ac_ext >&5
30937
30938flink_try=no
30939fi
30940rm -f conftest.err conftest.$ac_objext \
30941      conftest$ac_exeext conftest.$ac_ext
30942    fi
30943    if test $flink_try = yes; then
30944      use_blas='-lsunperf'
30945                         if test $coin_need_flibs = yes ; then
30946                           use_blas="$use_blas $FLIBS"
30947                         fi
30948                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
30949echo "${ECHO_T}yes: $use_blas" >&6
30950
30951    else
30952      if test x"$FLIBS" != x; then
30953        flink_save_libs="$LIBS"
30954        LIBS="$LIBS $FLIBS"
30955        cat >conftest.$ac_ext <<_ACEOF
30956/* confdefs.h.  */
30957_ACEOF
30958cat confdefs.h >>conftest.$ac_ext
30959cat >>conftest.$ac_ext <<_ACEOF
30960/* end confdefs.h.  */
30961extern "C" {void $cfuncdaxpy();}
30962#ifdef F77_DUMMY_MAIN
30963
30964#  ifdef __cplusplus
30965     extern "C"
30966#  endif
30967   int F77_DUMMY_MAIN() { return 1; }
30968
30969#endif
30970int
30971main ()
30972{
30973$cfuncdaxpy()
30974  ;
30975  return 0;
30976}
30977_ACEOF
30978rm -f conftest.$ac_objext conftest$ac_exeext
30979if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30980  (eval $ac_link) 2>conftest.er1
30981  ac_status=$?
30982  grep -v '^ *+' conftest.er1 >conftest.err
30983  rm -f conftest.er1
30984  cat conftest.err >&5
30985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30986  (exit $ac_status); } &&
30987	 { ac_try='test -z "$ac_cxx_werror_flag"
30988			 || test ! -s conftest.err'
30989  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30990  (eval $ac_try) 2>&5
30991  ac_status=$?
30992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30993  (exit $ac_status); }; } &&
30994	 { ac_try='test -s conftest$ac_exeext'
30995  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30996  (eval $ac_try) 2>&5
30997  ac_status=$?
30998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30999  (exit $ac_status); }; }; then
31000  LIBS="$flink_save_libs"
31001                     coin_need_flibs=yes
31002                     use_blas='-lsunperf'
31003                         if test $coin_need_flibs = yes ; then
31004                           use_blas="$use_blas $FLIBS"
31005                         fi
31006                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
31007echo "${ECHO_T}yes: $use_blas" >&6
31008
31009
31010else
31011  echo "$as_me: failed program was:" >&5
31012sed 's/^/| /' conftest.$ac_ext >&5
31013
31014LIBS="$flink_save_libs"
31015                     echo "$as_me:$LINENO: result: no" >&5
31016echo "${ECHO_T}no" >&6
31017fi
31018rm -f conftest.err conftest.$ac_objext \
31019      conftest$ac_exeext conftest.$ac_ext
31020      else
31021        echo "$as_me:$LINENO: result: no" >&5
31022echo "${ECHO_T}no" >&6
31023      fi
31024    fi
31025    ;;
31026esac
31027
31028      LIBS="$coin_save_LIBS"
31029      ;;
31030
31031    *-cygwin* | *-mingw*)
31032      case "$CC" in
31033        clang* ) ;;
31034        cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
31035          coin_save_LIBS="$LIBS"
31036          LIBS="mkl_intel_c.lib mkl_sequential.lib mkl_core.lib $LIBS"
31037          if test "$F77" != unavailable ; then
31038            echo "$as_me:$LINENO: checking for BLAS in MKL (32bit)" >&5
31039echo $ECHO_N "checking for BLAS in MKL (32bit)... $ECHO_C" >&6
31040            case $ac_ext in
31041  f)
31042    cat >conftest.$ac_ext <<_ACEOF
31043/* confdefs.h.  */
31044_ACEOF
31045cat confdefs.h >>conftest.$ac_ext
31046cat >>conftest.$ac_ext <<_ACEOF
31047/* end confdefs.h.  */
31048
31049#ifdef F77_DUMMY_MAIN
31050
31051#  ifdef __cplusplus
31052     extern "C"
31053#  endif
31054   int F77_DUMMY_MAIN() { return 1; }
31055
31056#endif
31057int
31058main ()
31059{
31060      call daxpy
31061  ;
31062  return 0;
31063}
31064_ACEOF
31065rm -f conftest.$ac_objext conftest$ac_exeext
31066if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31067  (eval $ac_link) 2>conftest.er1
31068  ac_status=$?
31069  grep -v '^ *+' conftest.er1 >conftest.err
31070  rm -f conftest.er1
31071  cat conftest.err >&5
31072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31073  (exit $ac_status); } &&
31074	 { ac_try='test -z "$ac_cxx_werror_flag"
31075			 || test ! -s conftest.err'
31076  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31077  (eval $ac_try) 2>&5
31078  ac_status=$?
31079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31080  (exit $ac_status); }; } &&
31081	 { ac_try='test -s conftest$ac_exeext'
31082  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31083  (eval $ac_try) 2>&5
31084  ac_status=$?
31085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31086  (exit $ac_status); }; }; then
31087  use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
31088                               echo "$as_me:$LINENO: result: yes: $use_blas" >&5
31089echo "${ECHO_T}yes: $use_blas" >&6
31090
31091else
31092  echo "$as_me: failed program was:" >&5
31093sed 's/^/| /' conftest.$ac_ext >&5
31094
31095echo "$as_me:$LINENO: result: no" >&5
31096echo "${ECHO_T}no" >&6
31097fi
31098rm -f conftest.err conftest.$ac_objext \
31099      conftest$ac_exeext conftest.$ac_ext
31100    ;;
31101  c)
31102    ac_ext=f
31103ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
31104ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31105ac_compiler_gnu=$ac_cv_f77_compiler_gnu
31106case $ac_cv_f77_mangling in
31107  upper*) ac_val="DAXPY" ;;
31108  lower*) ac_val="daxpy" ;;
31109  *)      ac_val="unknown" ;;
31110esac
31111case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
31112
31113cfuncdaxpy="$ac_val"
31114
31115ac_ext=cc
31116ac_cpp='$CXXCPP $CPPFLAGS'
31117ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31118ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31119ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31120
31121    if test x"$coin_need_flibs" = xyes; then
31122      flink_try=no;
31123    else
31124      cat >conftest.$ac_ext <<_ACEOF
31125/* confdefs.h.  */
31126_ACEOF
31127cat confdefs.h >>conftest.$ac_ext
31128cat >>conftest.$ac_ext <<_ACEOF
31129/* end confdefs.h.  */
31130void $cfuncdaxpy();
31131#ifdef F77_DUMMY_MAIN
31132
31133#  ifdef __cplusplus
31134     extern "C"
31135#  endif
31136   int F77_DUMMY_MAIN() { return 1; }
31137
31138#endif
31139int
31140main ()
31141{
31142$cfuncdaxpy()
31143  ;
31144  return 0;
31145}
31146_ACEOF
31147rm -f conftest.$ac_objext conftest$ac_exeext
31148if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31149  (eval $ac_link) 2>conftest.er1
31150  ac_status=$?
31151  grep -v '^ *+' conftest.er1 >conftest.err
31152  rm -f conftest.er1
31153  cat conftest.err >&5
31154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31155  (exit $ac_status); } &&
31156	 { ac_try='test -z "$ac_cxx_werror_flag"
31157			 || test ! -s conftest.err'
31158  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31159  (eval $ac_try) 2>&5
31160  ac_status=$?
31161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31162  (exit $ac_status); }; } &&
31163	 { ac_try='test -s conftest$ac_exeext'
31164  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31165  (eval $ac_try) 2>&5
31166  ac_status=$?
31167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31168  (exit $ac_status); }; }; then
31169  flink_try=yes
31170else
31171  echo "$as_me: failed program was:" >&5
31172sed 's/^/| /' conftest.$ac_ext >&5
31173
31174flink_try=no
31175fi
31176rm -f conftest.err conftest.$ac_objext \
31177      conftest$ac_exeext conftest.$ac_ext
31178    fi
31179    if test $flink_try = yes; then
31180      use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
31181                               echo "$as_me:$LINENO: result: yes: $use_blas" >&5
31182echo "${ECHO_T}yes: $use_blas" >&6
31183
31184    else
31185      if test x"$FLIBS" != x; then
31186        flink_save_libs="$LIBS"
31187        LIBS="$LIBS $FLIBS"
31188        cat >conftest.$ac_ext <<_ACEOF
31189/* confdefs.h.  */
31190_ACEOF
31191cat confdefs.h >>conftest.$ac_ext
31192cat >>conftest.$ac_ext <<_ACEOF
31193/* end confdefs.h.  */
31194void $cfuncdaxpy();
31195#ifdef F77_DUMMY_MAIN
31196
31197#  ifdef __cplusplus
31198     extern "C"
31199#  endif
31200   int F77_DUMMY_MAIN() { return 1; }
31201
31202#endif
31203int
31204main ()
31205{
31206$cfuncdaxpy()
31207  ;
31208  return 0;
31209}
31210_ACEOF
31211rm -f conftest.$ac_objext conftest$ac_exeext
31212if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31213  (eval $ac_link) 2>conftest.er1
31214  ac_status=$?
31215  grep -v '^ *+' conftest.er1 >conftest.err
31216  rm -f conftest.er1
31217  cat conftest.err >&5
31218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31219  (exit $ac_status); } &&
31220	 { ac_try='test -z "$ac_cxx_werror_flag"
31221			 || test ! -s conftest.err'
31222  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31223  (eval $ac_try) 2>&5
31224  ac_status=$?
31225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31226  (exit $ac_status); }; } &&
31227	 { ac_try='test -s conftest$ac_exeext'
31228  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31229  (eval $ac_try) 2>&5
31230  ac_status=$?
31231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31232  (exit $ac_status); }; }; then
31233  LIBS="$flink_save_libs"
31234                     coin_need_flibs=yes
31235                     use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
31236                               echo "$as_me:$LINENO: result: yes: $use_blas" >&5
31237echo "${ECHO_T}yes: $use_blas" >&6
31238
31239
31240else
31241  echo "$as_me: failed program was:" >&5
31242sed 's/^/| /' conftest.$ac_ext >&5
31243
31244LIBS="$flink_save_libs"
31245                     echo "$as_me:$LINENO: result: no" >&5
31246echo "${ECHO_T}no" >&6
31247fi
31248rm -f conftest.err conftest.$ac_objext \
31249      conftest$ac_exeext conftest.$ac_ext
31250      else
31251        echo "$as_me:$LINENO: result: no" >&5
31252echo "${ECHO_T}no" >&6
31253      fi
31254    fi
31255    ;;
31256  cc|cpp)
31257    ac_ext=f
31258ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
31259ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31260ac_compiler_gnu=$ac_cv_f77_compiler_gnu
31261case $ac_cv_f77_mangling in
31262  upper*) ac_val="DAXPY" ;;
31263  lower*) ac_val="daxpy" ;;
31264  *)      ac_val="unknown" ;;
31265esac
31266case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
31267
31268cfuncdaxpy="$ac_val"
31269
31270ac_ext=cc
31271ac_cpp='$CXXCPP $CPPFLAGS'
31272ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31273ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31274ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31275
31276    if test x"$coin_need_flibs" = xyes; then
31277      flink_try=no;
31278    else
31279      cat >conftest.$ac_ext <<_ACEOF
31280/* confdefs.h.  */
31281_ACEOF
31282cat confdefs.h >>conftest.$ac_ext
31283cat >>conftest.$ac_ext <<_ACEOF
31284/* end confdefs.h.  */
31285extern "C" {void $cfuncdaxpy();}
31286#ifdef F77_DUMMY_MAIN
31287
31288#  ifdef __cplusplus
31289     extern "C"
31290#  endif
31291   int F77_DUMMY_MAIN() { return 1; }
31292
31293#endif
31294int
31295main ()
31296{
31297$cfuncdaxpy()
31298  ;
31299  return 0;
31300}
31301_ACEOF
31302rm -f conftest.$ac_objext conftest$ac_exeext
31303if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31304  (eval $ac_link) 2>conftest.er1
31305  ac_status=$?
31306  grep -v '^ *+' conftest.er1 >conftest.err
31307  rm -f conftest.er1
31308  cat conftest.err >&5
31309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31310  (exit $ac_status); } &&
31311	 { ac_try='test -z "$ac_cxx_werror_flag"
31312			 || test ! -s conftest.err'
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); }; } &&
31318	 { ac_try='test -s conftest$ac_exeext'
31319  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31320  (eval $ac_try) 2>&5
31321  ac_status=$?
31322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31323  (exit $ac_status); }; }; then
31324  flink_try=yes
31325else
31326  echo "$as_me: failed program was:" >&5
31327sed 's/^/| /' conftest.$ac_ext >&5
31328
31329flink_try=no
31330fi
31331rm -f conftest.err conftest.$ac_objext \
31332      conftest$ac_exeext conftest.$ac_ext
31333    fi
31334    if test $flink_try = yes; then
31335      use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
31336                               echo "$as_me:$LINENO: result: yes: $use_blas" >&5
31337echo "${ECHO_T}yes: $use_blas" >&6
31338
31339    else
31340      if test x"$FLIBS" != x; then
31341        flink_save_libs="$LIBS"
31342        LIBS="$LIBS $FLIBS"
31343        cat >conftest.$ac_ext <<_ACEOF
31344/* confdefs.h.  */
31345_ACEOF
31346cat confdefs.h >>conftest.$ac_ext
31347cat >>conftest.$ac_ext <<_ACEOF
31348/* end confdefs.h.  */
31349extern "C" {void $cfuncdaxpy();}
31350#ifdef F77_DUMMY_MAIN
31351
31352#  ifdef __cplusplus
31353     extern "C"
31354#  endif
31355   int F77_DUMMY_MAIN() { return 1; }
31356
31357#endif
31358int
31359main ()
31360{
31361$cfuncdaxpy()
31362  ;
31363  return 0;
31364}
31365_ACEOF
31366rm -f conftest.$ac_objext conftest$ac_exeext
31367if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31368  (eval $ac_link) 2>conftest.er1
31369  ac_status=$?
31370  grep -v '^ *+' conftest.er1 >conftest.err
31371  rm -f conftest.er1
31372  cat conftest.err >&5
31373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31374  (exit $ac_status); } &&
31375	 { ac_try='test -z "$ac_cxx_werror_flag"
31376			 || test ! -s conftest.err'
31377  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31378  (eval $ac_try) 2>&5
31379  ac_status=$?
31380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31381  (exit $ac_status); }; } &&
31382	 { ac_try='test -s conftest$ac_exeext'
31383  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31384  (eval $ac_try) 2>&5
31385  ac_status=$?
31386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31387  (exit $ac_status); }; }; then
31388  LIBS="$flink_save_libs"
31389                     coin_need_flibs=yes
31390                     use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
31391                               echo "$as_me:$LINENO: result: yes: $use_blas" >&5
31392echo "${ECHO_T}yes: $use_blas" >&6
31393
31394
31395else
31396  echo "$as_me: failed program was:" >&5
31397sed 's/^/| /' conftest.$ac_ext >&5
31398
31399LIBS="$flink_save_libs"
31400                     echo "$as_me:$LINENO: result: no" >&5
31401echo "${ECHO_T}no" >&6
31402fi
31403rm -f conftest.err conftest.$ac_objext \
31404      conftest$ac_exeext conftest.$ac_ext
31405      else
31406        echo "$as_me:$LINENO: result: no" >&5
31407echo "${ECHO_T}no" >&6
31408      fi
31409    fi
31410    ;;
31411esac
31412
31413          else
31414            { echo "$as_me:$LINENO: for BLAS in MKL (32bit) using C linkage" >&5
31415echo "$as_me: for BLAS in MKL (32bit) using C linkage" >&6;}
31416            ac_ext=c
31417ac_cpp='$CPP $CPPFLAGS'
31418ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31419ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31420ac_compiler_gnu=$ac_cv_c_compiler_gnu
31421
31422            echo "$as_me:$LINENO: checking for daxpy" >&5
31423echo $ECHO_N "checking for daxpy... $ECHO_C" >&6
31424if test "${ac_cv_func_daxpy+set}" = set; then
31425  echo $ECHO_N "(cached) $ECHO_C" >&6
31426else
31427  cat >conftest.$ac_ext <<_ACEOF
31428/* confdefs.h.  */
31429_ACEOF
31430cat confdefs.h >>conftest.$ac_ext
31431cat >>conftest.$ac_ext <<_ACEOF
31432/* end confdefs.h.  */
31433/* Define daxpy to an innocuous variant, in case <limits.h> declares daxpy.
31434   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31435#define daxpy innocuous_daxpy
31436
31437/* System header to define __stub macros and hopefully few prototypes,
31438    which can conflict with char daxpy (); below.
31439    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31440    <limits.h> exists even on freestanding compilers.  */
31441
31442#ifdef __STDC__
31443# include <limits.h>
31444#else
31445# include <assert.h>
31446#endif
31447
31448#undef daxpy
31449
31450/* Override any gcc2 internal prototype to avoid an error.  */
31451#ifdef __cplusplus
31452extern "C"
31453{
31454#endif
31455/* We use char because int might match the return type of a gcc2
31456   builtin and then its argument prototype would still apply.  */
31457char daxpy ();
31458/* The GNU C library defines this for functions which it implements
31459    to always fail with ENOSYS.  Some functions are actually named
31460    something starting with __ and the normal name is an alias.  */
31461#if defined (__stub_daxpy) || defined (__stub___daxpy)
31462choke me
31463#else
31464char (*f) () = daxpy;
31465#endif
31466#ifdef __cplusplus
31467}
31468#endif
31469
31470#ifdef F77_DUMMY_MAIN
31471
31472#  ifdef __cplusplus
31473     extern "C"
31474#  endif
31475   int F77_DUMMY_MAIN() { return 1; }
31476
31477#endif
31478int
31479main ()
31480{
31481return f != daxpy;
31482  ;
31483  return 0;
31484}
31485_ACEOF
31486rm -f conftest.$ac_objext conftest$ac_exeext
31487if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31488  (eval $ac_link) 2>conftest.er1
31489  ac_status=$?
31490  grep -v '^ *+' conftest.er1 >conftest.err
31491  rm -f conftest.er1
31492  cat conftest.err >&5
31493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31494  (exit $ac_status); } &&
31495	 { ac_try='test -z "$ac_c_werror_flag"
31496			 || test ! -s conftest.err'
31497  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31498  (eval $ac_try) 2>&5
31499  ac_status=$?
31500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31501  (exit $ac_status); }; } &&
31502	 { ac_try='test -s conftest$ac_exeext'
31503  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31504  (eval $ac_try) 2>&5
31505  ac_status=$?
31506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31507  (exit $ac_status); }; }; then
31508  ac_cv_func_daxpy=yes
31509else
31510  echo "$as_me: failed program was:" >&5
31511sed 's/^/| /' conftest.$ac_ext >&5
31512
31513ac_cv_func_daxpy=no
31514fi
31515rm -f conftest.err conftest.$ac_objext \
31516      conftest$ac_exeext conftest.$ac_ext
31517fi
31518echo "$as_me:$LINENO: result: $ac_cv_func_daxpy" >&5
31519echo "${ECHO_T}$ac_cv_func_daxpy" >&6
31520if test $ac_cv_func_daxpy = yes; then
31521  use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
31522fi
31523
31524            ac_ext=cc
31525ac_cpp='$CXXCPP $CPPFLAGS'
31526ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31527ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31528ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31529
31530          fi
31531          LIBS="$coin_save_LIBS"
31532
31533          if test "x$use_blas" = x ; then
31534            LIBS="mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib $LIBS"
31535            if test "$F77" != unavailable ; then
31536              echo "$as_me:$LINENO: checking for BLAS in MKL (64bit)" >&5
31537echo $ECHO_N "checking for BLAS in MKL (64bit)... $ECHO_C" >&6
31538              case $ac_ext in
31539  f)
31540    cat >conftest.$ac_ext <<_ACEOF
31541/* confdefs.h.  */
31542_ACEOF
31543cat confdefs.h >>conftest.$ac_ext
31544cat >>conftest.$ac_ext <<_ACEOF
31545/* end confdefs.h.  */
31546
31547#ifdef F77_DUMMY_MAIN
31548
31549#  ifdef __cplusplus
31550     extern "C"
31551#  endif
31552   int F77_DUMMY_MAIN() { return 1; }
31553
31554#endif
31555int
31556main ()
31557{
31558      call daxpy
31559  ;
31560  return 0;
31561}
31562_ACEOF
31563rm -f conftest.$ac_objext conftest$ac_exeext
31564if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31565  (eval $ac_link) 2>conftest.er1
31566  ac_status=$?
31567  grep -v '^ *+' conftest.er1 >conftest.err
31568  rm -f conftest.er1
31569  cat conftest.err >&5
31570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31571  (exit $ac_status); } &&
31572	 { ac_try='test -z "$ac_cxx_werror_flag"
31573			 || test ! -s conftest.err'
31574  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31575  (eval $ac_try) 2>&5
31576  ac_status=$?
31577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31578  (exit $ac_status); }; } &&
31579	 { ac_try='test -s conftest$ac_exeext'
31580  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31581  (eval $ac_try) 2>&5
31582  ac_status=$?
31583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31584  (exit $ac_status); }; }; then
31585  use_blas='mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib'
31586                                 echo "$as_me:$LINENO: result: yes: $use_blas" >&5
31587echo "${ECHO_T}yes: $use_blas" >&6
31588
31589else
31590  echo "$as_me: failed program was:" >&5
31591sed 's/^/| /' conftest.$ac_ext >&5
31592
31593echo "$as_me:$LINENO: result: no" >&5
31594echo "${ECHO_T}no" >&6
31595fi
31596rm -f conftest.err conftest.$ac_objext \
31597      conftest$ac_exeext conftest.$ac_ext
31598    ;;
31599  c)
31600    ac_ext=f
31601ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
31602ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31603ac_compiler_gnu=$ac_cv_f77_compiler_gnu
31604case $ac_cv_f77_mangling in
31605  upper*) ac_val="DAXPY" ;;
31606  lower*) ac_val="daxpy" ;;
31607  *)      ac_val="unknown" ;;
31608esac
31609case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
31610
31611cfuncdaxpy="$ac_val"
31612
31613ac_ext=cc
31614ac_cpp='$CXXCPP $CPPFLAGS'
31615ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31616ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31617ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31618
31619    if test x"$coin_need_flibs" = xyes; then
31620      flink_try=no;
31621    else
31622      cat >conftest.$ac_ext <<_ACEOF
31623/* confdefs.h.  */
31624_ACEOF
31625cat confdefs.h >>conftest.$ac_ext
31626cat >>conftest.$ac_ext <<_ACEOF
31627/* end confdefs.h.  */
31628void $cfuncdaxpy();
31629#ifdef F77_DUMMY_MAIN
31630
31631#  ifdef __cplusplus
31632     extern "C"
31633#  endif
31634   int F77_DUMMY_MAIN() { return 1; }
31635
31636#endif
31637int
31638main ()
31639{
31640$cfuncdaxpy()
31641  ;
31642  return 0;
31643}
31644_ACEOF
31645rm -f conftest.$ac_objext conftest$ac_exeext
31646if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31647  (eval $ac_link) 2>conftest.er1
31648  ac_status=$?
31649  grep -v '^ *+' conftest.er1 >conftest.err
31650  rm -f conftest.er1
31651  cat conftest.err >&5
31652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31653  (exit $ac_status); } &&
31654	 { ac_try='test -z "$ac_cxx_werror_flag"
31655			 || test ! -s conftest.err'
31656  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31657  (eval $ac_try) 2>&5
31658  ac_status=$?
31659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31660  (exit $ac_status); }; } &&
31661	 { ac_try='test -s conftest$ac_exeext'
31662  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31663  (eval $ac_try) 2>&5
31664  ac_status=$?
31665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31666  (exit $ac_status); }; }; then
31667  flink_try=yes
31668else
31669  echo "$as_me: failed program was:" >&5
31670sed 's/^/| /' conftest.$ac_ext >&5
31671
31672flink_try=no
31673fi
31674rm -f conftest.err conftest.$ac_objext \
31675      conftest$ac_exeext conftest.$ac_ext
31676    fi
31677    if test $flink_try = yes; then
31678      use_blas='mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib'
31679                                 echo "$as_me:$LINENO: result: yes: $use_blas" >&5
31680echo "${ECHO_T}yes: $use_blas" >&6
31681
31682    else
31683      if test x"$FLIBS" != x; then
31684        flink_save_libs="$LIBS"
31685        LIBS="$LIBS $FLIBS"
31686        cat >conftest.$ac_ext <<_ACEOF
31687/* confdefs.h.  */
31688_ACEOF
31689cat confdefs.h >>conftest.$ac_ext
31690cat >>conftest.$ac_ext <<_ACEOF
31691/* end confdefs.h.  */
31692void $cfuncdaxpy();
31693#ifdef F77_DUMMY_MAIN
31694
31695#  ifdef __cplusplus
31696     extern "C"
31697#  endif
31698   int F77_DUMMY_MAIN() { return 1; }
31699
31700#endif
31701int
31702main ()
31703{
31704$cfuncdaxpy()
31705  ;
31706  return 0;
31707}
31708_ACEOF
31709rm -f conftest.$ac_objext conftest$ac_exeext
31710if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31711  (eval $ac_link) 2>conftest.er1
31712  ac_status=$?
31713  grep -v '^ *+' conftest.er1 >conftest.err
31714  rm -f conftest.er1
31715  cat conftest.err >&5
31716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31717  (exit $ac_status); } &&
31718	 { ac_try='test -z "$ac_cxx_werror_flag"
31719			 || test ! -s conftest.err'
31720  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31721  (eval $ac_try) 2>&5
31722  ac_status=$?
31723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31724  (exit $ac_status); }; } &&
31725	 { ac_try='test -s conftest$ac_exeext'
31726  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31727  (eval $ac_try) 2>&5
31728  ac_status=$?
31729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31730  (exit $ac_status); }; }; then
31731  LIBS="$flink_save_libs"
31732                     coin_need_flibs=yes
31733                     use_blas='mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib'
31734                                 echo "$as_me:$LINENO: result: yes: $use_blas" >&5
31735echo "${ECHO_T}yes: $use_blas" >&6
31736
31737
31738else
31739  echo "$as_me: failed program was:" >&5
31740sed 's/^/| /' conftest.$ac_ext >&5
31741
31742LIBS="$flink_save_libs"
31743                     echo "$as_me:$LINENO: result: no" >&5
31744echo "${ECHO_T}no" >&6
31745fi
31746rm -f conftest.err conftest.$ac_objext \
31747      conftest$ac_exeext conftest.$ac_ext
31748      else
31749        echo "$as_me:$LINENO: result: no" >&5
31750echo "${ECHO_T}no" >&6
31751      fi
31752    fi
31753    ;;
31754  cc|cpp)
31755    ac_ext=f
31756ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
31757ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31758ac_compiler_gnu=$ac_cv_f77_compiler_gnu
31759case $ac_cv_f77_mangling in
31760  upper*) ac_val="DAXPY" ;;
31761  lower*) ac_val="daxpy" ;;
31762  *)      ac_val="unknown" ;;
31763esac
31764case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
31765
31766cfuncdaxpy="$ac_val"
31767
31768ac_ext=cc
31769ac_cpp='$CXXCPP $CPPFLAGS'
31770ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31771ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31772ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31773
31774    if test x"$coin_need_flibs" = xyes; then
31775      flink_try=no;
31776    else
31777      cat >conftest.$ac_ext <<_ACEOF
31778/* confdefs.h.  */
31779_ACEOF
31780cat confdefs.h >>conftest.$ac_ext
31781cat >>conftest.$ac_ext <<_ACEOF
31782/* end confdefs.h.  */
31783extern "C" {void $cfuncdaxpy();}
31784#ifdef F77_DUMMY_MAIN
31785
31786#  ifdef __cplusplus
31787     extern "C"
31788#  endif
31789   int F77_DUMMY_MAIN() { return 1; }
31790
31791#endif
31792int
31793main ()
31794{
31795$cfuncdaxpy()
31796  ;
31797  return 0;
31798}
31799_ACEOF
31800rm -f conftest.$ac_objext conftest$ac_exeext
31801if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31802  (eval $ac_link) 2>conftest.er1
31803  ac_status=$?
31804  grep -v '^ *+' conftest.er1 >conftest.err
31805  rm -f conftest.er1
31806  cat conftest.err >&5
31807  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31808  (exit $ac_status); } &&
31809	 { ac_try='test -z "$ac_cxx_werror_flag"
31810			 || test ! -s conftest.err'
31811  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31812  (eval $ac_try) 2>&5
31813  ac_status=$?
31814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31815  (exit $ac_status); }; } &&
31816	 { ac_try='test -s conftest$ac_exeext'
31817  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31818  (eval $ac_try) 2>&5
31819  ac_status=$?
31820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31821  (exit $ac_status); }; }; then
31822  flink_try=yes
31823else
31824  echo "$as_me: failed program was:" >&5
31825sed 's/^/| /' conftest.$ac_ext >&5
31826
31827flink_try=no
31828fi
31829rm -f conftest.err conftest.$ac_objext \
31830      conftest$ac_exeext conftest.$ac_ext
31831    fi
31832    if test $flink_try = yes; then
31833      use_blas='mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib'
31834                                 echo "$as_me:$LINENO: result: yes: $use_blas" >&5
31835echo "${ECHO_T}yes: $use_blas" >&6
31836
31837    else
31838      if test x"$FLIBS" != x; then
31839        flink_save_libs="$LIBS"
31840        LIBS="$LIBS $FLIBS"
31841        cat >conftest.$ac_ext <<_ACEOF
31842/* confdefs.h.  */
31843_ACEOF
31844cat confdefs.h >>conftest.$ac_ext
31845cat >>conftest.$ac_ext <<_ACEOF
31846/* end confdefs.h.  */
31847extern "C" {void $cfuncdaxpy();}
31848#ifdef F77_DUMMY_MAIN
31849
31850#  ifdef __cplusplus
31851     extern "C"
31852#  endif
31853   int F77_DUMMY_MAIN() { return 1; }
31854
31855#endif
31856int
31857main ()
31858{
31859$cfuncdaxpy()
31860  ;
31861  return 0;
31862}
31863_ACEOF
31864rm -f conftest.$ac_objext conftest$ac_exeext
31865if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31866  (eval $ac_link) 2>conftest.er1
31867  ac_status=$?
31868  grep -v '^ *+' conftest.er1 >conftest.err
31869  rm -f conftest.er1
31870  cat conftest.err >&5
31871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31872  (exit $ac_status); } &&
31873	 { ac_try='test -z "$ac_cxx_werror_flag"
31874			 || test ! -s conftest.err'
31875  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31876  (eval $ac_try) 2>&5
31877  ac_status=$?
31878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31879  (exit $ac_status); }; } &&
31880	 { ac_try='test -s conftest$ac_exeext'
31881  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31882  (eval $ac_try) 2>&5
31883  ac_status=$?
31884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31885  (exit $ac_status); }; }; then
31886  LIBS="$flink_save_libs"
31887                     coin_need_flibs=yes
31888                     use_blas='mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib'
31889                                 echo "$as_me:$LINENO: result: yes: $use_blas" >&5
31890echo "${ECHO_T}yes: $use_blas" >&6
31891
31892
31893else
31894  echo "$as_me: failed program was:" >&5
31895sed 's/^/| /' conftest.$ac_ext >&5
31896
31897LIBS="$flink_save_libs"
31898                     echo "$as_me:$LINENO: result: no" >&5
31899echo "${ECHO_T}no" >&6
31900fi
31901rm -f conftest.err conftest.$ac_objext \
31902      conftest$ac_exeext conftest.$ac_ext
31903      else
31904        echo "$as_me:$LINENO: result: no" >&5
31905echo "${ECHO_T}no" >&6
31906      fi
31907    fi
31908    ;;
31909esac
31910
31911            else
31912              { echo "$as_me:$LINENO: for BLAS in MKL (64bit) using C linkage" >&5
31913echo "$as_me: for BLAS in MKL (64bit) using C linkage" >&6;}
31914              # unset cached outcome of test with 32bit MKL
31915              unset ac_cv_func_daxpy
31916              ac_ext=c
31917ac_cpp='$CPP $CPPFLAGS'
31918ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31919ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31920ac_compiler_gnu=$ac_cv_c_compiler_gnu
31921
31922              echo "$as_me:$LINENO: checking for daxpy" >&5
31923echo $ECHO_N "checking for daxpy... $ECHO_C" >&6
31924if test "${ac_cv_func_daxpy+set}" = set; then
31925  echo $ECHO_N "(cached) $ECHO_C" >&6
31926else
31927  cat >conftest.$ac_ext <<_ACEOF
31928/* confdefs.h.  */
31929_ACEOF
31930cat confdefs.h >>conftest.$ac_ext
31931cat >>conftest.$ac_ext <<_ACEOF
31932/* end confdefs.h.  */
31933/* Define daxpy to an innocuous variant, in case <limits.h> declares daxpy.
31934   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31935#define daxpy innocuous_daxpy
31936
31937/* System header to define __stub macros and hopefully few prototypes,
31938    which can conflict with char daxpy (); below.
31939    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31940    <limits.h> exists even on freestanding compilers.  */
31941
31942#ifdef __STDC__
31943# include <limits.h>
31944#else
31945# include <assert.h>
31946#endif
31947
31948#undef daxpy
31949
31950/* Override any gcc2 internal prototype to avoid an error.  */
31951#ifdef __cplusplus
31952extern "C"
31953{
31954#endif
31955/* We use char because int might match the return type of a gcc2
31956   builtin and then its argument prototype would still apply.  */
31957char daxpy ();
31958/* The GNU C library defines this for functions which it implements
31959    to always fail with ENOSYS.  Some functions are actually named
31960    something starting with __ and the normal name is an alias.  */
31961#if defined (__stub_daxpy) || defined (__stub___daxpy)
31962choke me
31963#else
31964char (*f) () = daxpy;
31965#endif
31966#ifdef __cplusplus
31967}
31968#endif
31969
31970#ifdef F77_DUMMY_MAIN
31971
31972#  ifdef __cplusplus
31973     extern "C"
31974#  endif
31975   int F77_DUMMY_MAIN() { return 1; }
31976
31977#endif
31978int
31979main ()
31980{
31981return f != daxpy;
31982  ;
31983  return 0;
31984}
31985_ACEOF
31986rm -f conftest.$ac_objext conftest$ac_exeext
31987if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31988  (eval $ac_link) 2>conftest.er1
31989  ac_status=$?
31990  grep -v '^ *+' conftest.er1 >conftest.err
31991  rm -f conftest.er1
31992  cat conftest.err >&5
31993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31994  (exit $ac_status); } &&
31995	 { ac_try='test -z "$ac_c_werror_flag"
31996			 || test ! -s conftest.err'
31997  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31998  (eval $ac_try) 2>&5
31999  ac_status=$?
32000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32001  (exit $ac_status); }; } &&
32002	 { ac_try='test -s conftest$ac_exeext'
32003  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32004  (eval $ac_try) 2>&5
32005  ac_status=$?
32006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32007  (exit $ac_status); }; }; then
32008  ac_cv_func_daxpy=yes
32009else
32010  echo "$as_me: failed program was:" >&5
32011sed 's/^/| /' conftest.$ac_ext >&5
32012
32013ac_cv_func_daxpy=no
32014fi
32015rm -f conftest.err conftest.$ac_objext \
32016      conftest$ac_exeext conftest.$ac_ext
32017fi
32018echo "$as_me:$LINENO: result: $ac_cv_func_daxpy" >&5
32019echo "${ECHO_T}$ac_cv_func_daxpy" >&6
32020if test $ac_cv_func_daxpy = yes; then
32021  use_blas='mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib'
32022fi
32023
32024              ac_ext=cc
32025ac_cpp='$CXXCPP $CPPFLAGS'
32026ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32027ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32028ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32029
32030            fi
32031            LIBS="$coin_save_LIBS"
32032          fi
32033          ;;
32034      esac
32035      ;;
32036
32037     *-darwin*)
32038      echo "$as_me:$LINENO: checking for BLAS in Veclib" >&5
32039echo $ECHO_N "checking for BLAS in Veclib... $ECHO_C" >&6
32040      coin_need_flibs=no
32041      coin_save_LIBS="$LIBS"
32042      LIBS="-framework Accelerate $LIBS"
32043      case $ac_ext in
32044  f)
32045    cat >conftest.$ac_ext <<_ACEOF
32046/* confdefs.h.  */
32047_ACEOF
32048cat confdefs.h >>conftest.$ac_ext
32049cat >>conftest.$ac_ext <<_ACEOF
32050/* end confdefs.h.  */
32051
32052#ifdef F77_DUMMY_MAIN
32053
32054#  ifdef __cplusplus
32055     extern "C"
32056#  endif
32057   int F77_DUMMY_MAIN() { return 1; }
32058
32059#endif
32060int
32061main ()
32062{
32063      call daxpy
32064  ;
32065  return 0;
32066}
32067_ACEOF
32068rm -f conftest.$ac_objext conftest$ac_exeext
32069if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32070  (eval $ac_link) 2>conftest.er1
32071  ac_status=$?
32072  grep -v '^ *+' conftest.er1 >conftest.err
32073  rm -f conftest.er1
32074  cat conftest.err >&5
32075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32076  (exit $ac_status); } &&
32077	 { ac_try='test -z "$ac_cxx_werror_flag"
32078			 || test ! -s conftest.err'
32079  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32080  (eval $ac_try) 2>&5
32081  ac_status=$?
32082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32083  (exit $ac_status); }; } &&
32084	 { ac_try='test -s conftest$ac_exeext'
32085  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32086  (eval $ac_try) 2>&5
32087  ac_status=$?
32088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32089  (exit $ac_status); }; }; then
32090  use_blas='-framework Accelerate'
32091                         if test $coin_need_flibs = yes ; then
32092                           use_blas="$use_blas $FLIBS"
32093                         fi
32094                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
32095echo "${ECHO_T}yes: $use_blas" >&6
32096
32097else
32098  echo "$as_me: failed program was:" >&5
32099sed 's/^/| /' conftest.$ac_ext >&5
32100
32101echo "$as_me:$LINENO: result: no" >&5
32102echo "${ECHO_T}no" >&6
32103fi
32104rm -f conftest.err conftest.$ac_objext \
32105      conftest$ac_exeext conftest.$ac_ext
32106    ;;
32107  c)
32108    ac_ext=f
32109ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
32110ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32111ac_compiler_gnu=$ac_cv_f77_compiler_gnu
32112case $ac_cv_f77_mangling in
32113  upper*) ac_val="DAXPY" ;;
32114  lower*) ac_val="daxpy" ;;
32115  *)      ac_val="unknown" ;;
32116esac
32117case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
32118
32119cfuncdaxpy="$ac_val"
32120
32121ac_ext=cc
32122ac_cpp='$CXXCPP $CPPFLAGS'
32123ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32124ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32125ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32126
32127    if test x"$coin_need_flibs" = xyes; then
32128      flink_try=no;
32129    else
32130      cat >conftest.$ac_ext <<_ACEOF
32131/* confdefs.h.  */
32132_ACEOF
32133cat confdefs.h >>conftest.$ac_ext
32134cat >>conftest.$ac_ext <<_ACEOF
32135/* end confdefs.h.  */
32136void $cfuncdaxpy();
32137#ifdef F77_DUMMY_MAIN
32138
32139#  ifdef __cplusplus
32140     extern "C"
32141#  endif
32142   int F77_DUMMY_MAIN() { return 1; }
32143
32144#endif
32145int
32146main ()
32147{
32148$cfuncdaxpy()
32149  ;
32150  return 0;
32151}
32152_ACEOF
32153rm -f conftest.$ac_objext conftest$ac_exeext
32154if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32155  (eval $ac_link) 2>conftest.er1
32156  ac_status=$?
32157  grep -v '^ *+' conftest.er1 >conftest.err
32158  rm -f conftest.er1
32159  cat conftest.err >&5
32160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32161  (exit $ac_status); } &&
32162	 { ac_try='test -z "$ac_cxx_werror_flag"
32163			 || test ! -s conftest.err'
32164  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32165  (eval $ac_try) 2>&5
32166  ac_status=$?
32167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32168  (exit $ac_status); }; } &&
32169	 { ac_try='test -s conftest$ac_exeext'
32170  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32171  (eval $ac_try) 2>&5
32172  ac_status=$?
32173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32174  (exit $ac_status); }; }; then
32175  flink_try=yes
32176else
32177  echo "$as_me: failed program was:" >&5
32178sed 's/^/| /' conftest.$ac_ext >&5
32179
32180flink_try=no
32181fi
32182rm -f conftest.err conftest.$ac_objext \
32183      conftest$ac_exeext conftest.$ac_ext
32184    fi
32185    if test $flink_try = yes; then
32186      use_blas='-framework Accelerate'
32187                         if test $coin_need_flibs = yes ; then
32188                           use_blas="$use_blas $FLIBS"
32189                         fi
32190                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
32191echo "${ECHO_T}yes: $use_blas" >&6
32192
32193    else
32194      if test x"$FLIBS" != x; then
32195        flink_save_libs="$LIBS"
32196        LIBS="$LIBS $FLIBS"
32197        cat >conftest.$ac_ext <<_ACEOF
32198/* confdefs.h.  */
32199_ACEOF
32200cat confdefs.h >>conftest.$ac_ext
32201cat >>conftest.$ac_ext <<_ACEOF
32202/* end confdefs.h.  */
32203void $cfuncdaxpy();
32204#ifdef F77_DUMMY_MAIN
32205
32206#  ifdef __cplusplus
32207     extern "C"
32208#  endif
32209   int F77_DUMMY_MAIN() { return 1; }
32210
32211#endif
32212int
32213main ()
32214{
32215$cfuncdaxpy()
32216  ;
32217  return 0;
32218}
32219_ACEOF
32220rm -f conftest.$ac_objext conftest$ac_exeext
32221if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32222  (eval $ac_link) 2>conftest.er1
32223  ac_status=$?
32224  grep -v '^ *+' conftest.er1 >conftest.err
32225  rm -f conftest.er1
32226  cat conftest.err >&5
32227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32228  (exit $ac_status); } &&
32229	 { ac_try='test -z "$ac_cxx_werror_flag"
32230			 || test ! -s conftest.err'
32231  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32232  (eval $ac_try) 2>&5
32233  ac_status=$?
32234  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32235  (exit $ac_status); }; } &&
32236	 { ac_try='test -s conftest$ac_exeext'
32237  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32238  (eval $ac_try) 2>&5
32239  ac_status=$?
32240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32241  (exit $ac_status); }; }; then
32242  LIBS="$flink_save_libs"
32243                     coin_need_flibs=yes
32244                     use_blas='-framework Accelerate'
32245                         if test $coin_need_flibs = yes ; then
32246                           use_blas="$use_blas $FLIBS"
32247                         fi
32248                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
32249echo "${ECHO_T}yes: $use_blas" >&6
32250
32251
32252else
32253  echo "$as_me: failed program was:" >&5
32254sed 's/^/| /' conftest.$ac_ext >&5
32255
32256LIBS="$flink_save_libs"
32257                     echo "$as_me:$LINENO: result: no" >&5
32258echo "${ECHO_T}no" >&6
32259fi
32260rm -f conftest.err conftest.$ac_objext \
32261      conftest$ac_exeext conftest.$ac_ext
32262      else
32263        echo "$as_me:$LINENO: result: no" >&5
32264echo "${ECHO_T}no" >&6
32265      fi
32266    fi
32267    ;;
32268  cc|cpp)
32269    ac_ext=f
32270ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
32271ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32272ac_compiler_gnu=$ac_cv_f77_compiler_gnu
32273case $ac_cv_f77_mangling in
32274  upper*) ac_val="DAXPY" ;;
32275  lower*) ac_val="daxpy" ;;
32276  *)      ac_val="unknown" ;;
32277esac
32278case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
32279
32280cfuncdaxpy="$ac_val"
32281
32282ac_ext=cc
32283ac_cpp='$CXXCPP $CPPFLAGS'
32284ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32285ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32286ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32287
32288    if test x"$coin_need_flibs" = xyes; then
32289      flink_try=no;
32290    else
32291      cat >conftest.$ac_ext <<_ACEOF
32292/* confdefs.h.  */
32293_ACEOF
32294cat confdefs.h >>conftest.$ac_ext
32295cat >>conftest.$ac_ext <<_ACEOF
32296/* end confdefs.h.  */
32297extern "C" {void $cfuncdaxpy();}
32298#ifdef F77_DUMMY_MAIN
32299
32300#  ifdef __cplusplus
32301     extern "C"
32302#  endif
32303   int F77_DUMMY_MAIN() { return 1; }
32304
32305#endif
32306int
32307main ()
32308{
32309$cfuncdaxpy()
32310  ;
32311  return 0;
32312}
32313_ACEOF
32314rm -f conftest.$ac_objext conftest$ac_exeext
32315if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32316  (eval $ac_link) 2>conftest.er1
32317  ac_status=$?
32318  grep -v '^ *+' conftest.er1 >conftest.err
32319  rm -f conftest.er1
32320  cat conftest.err >&5
32321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32322  (exit $ac_status); } &&
32323	 { ac_try='test -z "$ac_cxx_werror_flag"
32324			 || test ! -s conftest.err'
32325  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32326  (eval $ac_try) 2>&5
32327  ac_status=$?
32328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32329  (exit $ac_status); }; } &&
32330	 { ac_try='test -s conftest$ac_exeext'
32331  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32332  (eval $ac_try) 2>&5
32333  ac_status=$?
32334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32335  (exit $ac_status); }; }; then
32336  flink_try=yes
32337else
32338  echo "$as_me: failed program was:" >&5
32339sed 's/^/| /' conftest.$ac_ext >&5
32340
32341flink_try=no
32342fi
32343rm -f conftest.err conftest.$ac_objext \
32344      conftest$ac_exeext conftest.$ac_ext
32345    fi
32346    if test $flink_try = yes; then
32347      use_blas='-framework Accelerate'
32348                         if test $coin_need_flibs = yes ; then
32349                           use_blas="$use_blas $FLIBS"
32350                         fi
32351                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
32352echo "${ECHO_T}yes: $use_blas" >&6
32353
32354    else
32355      if test x"$FLIBS" != x; then
32356        flink_save_libs="$LIBS"
32357        LIBS="$LIBS $FLIBS"
32358        cat >conftest.$ac_ext <<_ACEOF
32359/* confdefs.h.  */
32360_ACEOF
32361cat confdefs.h >>conftest.$ac_ext
32362cat >>conftest.$ac_ext <<_ACEOF
32363/* end confdefs.h.  */
32364extern "C" {void $cfuncdaxpy();}
32365#ifdef F77_DUMMY_MAIN
32366
32367#  ifdef __cplusplus
32368     extern "C"
32369#  endif
32370   int F77_DUMMY_MAIN() { return 1; }
32371
32372#endif
32373int
32374main ()
32375{
32376$cfuncdaxpy()
32377  ;
32378  return 0;
32379}
32380_ACEOF
32381rm -f conftest.$ac_objext conftest$ac_exeext
32382if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32383  (eval $ac_link) 2>conftest.er1
32384  ac_status=$?
32385  grep -v '^ *+' conftest.er1 >conftest.err
32386  rm -f conftest.er1
32387  cat conftest.err >&5
32388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32389  (exit $ac_status); } &&
32390	 { ac_try='test -z "$ac_cxx_werror_flag"
32391			 || test ! -s conftest.err'
32392  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32393  (eval $ac_try) 2>&5
32394  ac_status=$?
32395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32396  (exit $ac_status); }; } &&
32397	 { ac_try='test -s conftest$ac_exeext'
32398  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32399  (eval $ac_try) 2>&5
32400  ac_status=$?
32401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32402  (exit $ac_status); }; }; then
32403  LIBS="$flink_save_libs"
32404                     coin_need_flibs=yes
32405                     use_blas='-framework Accelerate'
32406                         if test $coin_need_flibs = yes ; then
32407                           use_blas="$use_blas $FLIBS"
32408                         fi
32409                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
32410echo "${ECHO_T}yes: $use_blas" >&6
32411
32412
32413else
32414  echo "$as_me: failed program was:" >&5
32415sed 's/^/| /' conftest.$ac_ext >&5
32416
32417LIBS="$flink_save_libs"
32418                     echo "$as_me:$LINENO: result: no" >&5
32419echo "${ECHO_T}no" >&6
32420fi
32421rm -f conftest.err conftest.$ac_objext \
32422      conftest$ac_exeext conftest.$ac_ext
32423      else
32424        echo "$as_me:$LINENO: result: no" >&5
32425echo "${ECHO_T}no" >&6
32426      fi
32427    fi
32428    ;;
32429esac
32430
32431      LIBS="$coin_save_LIBS"
32432      ;;
32433  esac
32434
32435  if test -z "$use_blas" ; then
32436    echo "$as_me:$LINENO: checking whether -lblas has BLAS" >&5
32437echo $ECHO_N "checking whether -lblas has BLAS... $ECHO_C" >&6
32438    coin_need_flibs=no
32439    coin_save_LIBS="$LIBS"
32440    LIBS="-lblas $LIBS"
32441    case $ac_ext in
32442  f)
32443    cat >conftest.$ac_ext <<_ACEOF
32444/* confdefs.h.  */
32445_ACEOF
32446cat confdefs.h >>conftest.$ac_ext
32447cat >>conftest.$ac_ext <<_ACEOF
32448/* end confdefs.h.  */
32449
32450#ifdef F77_DUMMY_MAIN
32451
32452#  ifdef __cplusplus
32453     extern "C"
32454#  endif
32455   int F77_DUMMY_MAIN() { return 1; }
32456
32457#endif
32458int
32459main ()
32460{
32461      call daxpy
32462  ;
32463  return 0;
32464}
32465_ACEOF
32466rm -f conftest.$ac_objext conftest$ac_exeext
32467if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32468  (eval $ac_link) 2>conftest.er1
32469  ac_status=$?
32470  grep -v '^ *+' conftest.er1 >conftest.err
32471  rm -f conftest.er1
32472  cat conftest.err >&5
32473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32474  (exit $ac_status); } &&
32475	 { ac_try='test -z "$ac_cxx_werror_flag"
32476			 || test ! -s conftest.err'
32477  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32478  (eval $ac_try) 2>&5
32479  ac_status=$?
32480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32481  (exit $ac_status); }; } &&
32482	 { ac_try='test -s conftest$ac_exeext'
32483  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32484  (eval $ac_try) 2>&5
32485  ac_status=$?
32486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32487  (exit $ac_status); }; }; then
32488  use_blas='-lblas'
32489                       if test $coin_need_flibs = yes ; then
32490                         use_blas="$use_blas $FLIBS"
32491                       fi
32492                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
32493echo "${ECHO_T}yes: $use_blas" >&6
32494
32495else
32496  echo "$as_me: failed program was:" >&5
32497sed 's/^/| /' conftest.$ac_ext >&5
32498
32499echo "$as_me:$LINENO: result: no" >&5
32500echo "${ECHO_T}no" >&6
32501fi
32502rm -f conftest.err conftest.$ac_objext \
32503      conftest$ac_exeext conftest.$ac_ext
32504    ;;
32505  c)
32506    ac_ext=f
32507ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
32508ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32509ac_compiler_gnu=$ac_cv_f77_compiler_gnu
32510case $ac_cv_f77_mangling in
32511  upper*) ac_val="DAXPY" ;;
32512  lower*) ac_val="daxpy" ;;
32513  *)      ac_val="unknown" ;;
32514esac
32515case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
32516
32517cfuncdaxpy="$ac_val"
32518
32519ac_ext=cc
32520ac_cpp='$CXXCPP $CPPFLAGS'
32521ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32522ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32523ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32524
32525    if test x"$coin_need_flibs" = xyes; then
32526      flink_try=no;
32527    else
32528      cat >conftest.$ac_ext <<_ACEOF
32529/* confdefs.h.  */
32530_ACEOF
32531cat confdefs.h >>conftest.$ac_ext
32532cat >>conftest.$ac_ext <<_ACEOF
32533/* end confdefs.h.  */
32534void $cfuncdaxpy();
32535#ifdef F77_DUMMY_MAIN
32536
32537#  ifdef __cplusplus
32538     extern "C"
32539#  endif
32540   int F77_DUMMY_MAIN() { return 1; }
32541
32542#endif
32543int
32544main ()
32545{
32546$cfuncdaxpy()
32547  ;
32548  return 0;
32549}
32550_ACEOF
32551rm -f conftest.$ac_objext conftest$ac_exeext
32552if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32553  (eval $ac_link) 2>conftest.er1
32554  ac_status=$?
32555  grep -v '^ *+' conftest.er1 >conftest.err
32556  rm -f conftest.er1
32557  cat conftest.err >&5
32558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32559  (exit $ac_status); } &&
32560	 { ac_try='test -z "$ac_cxx_werror_flag"
32561			 || test ! -s conftest.err'
32562  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32563  (eval $ac_try) 2>&5
32564  ac_status=$?
32565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32566  (exit $ac_status); }; } &&
32567	 { ac_try='test -s conftest$ac_exeext'
32568  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32569  (eval $ac_try) 2>&5
32570  ac_status=$?
32571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32572  (exit $ac_status); }; }; then
32573  flink_try=yes
32574else
32575  echo "$as_me: failed program was:" >&5
32576sed 's/^/| /' conftest.$ac_ext >&5
32577
32578flink_try=no
32579fi
32580rm -f conftest.err conftest.$ac_objext \
32581      conftest$ac_exeext conftest.$ac_ext
32582    fi
32583    if test $flink_try = yes; then
32584      use_blas='-lblas'
32585                       if test $coin_need_flibs = yes ; then
32586                         use_blas="$use_blas $FLIBS"
32587                       fi
32588                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
32589echo "${ECHO_T}yes: $use_blas" >&6
32590
32591    else
32592      if test x"$FLIBS" != x; then
32593        flink_save_libs="$LIBS"
32594        LIBS="$LIBS $FLIBS"
32595        cat >conftest.$ac_ext <<_ACEOF
32596/* confdefs.h.  */
32597_ACEOF
32598cat confdefs.h >>conftest.$ac_ext
32599cat >>conftest.$ac_ext <<_ACEOF
32600/* end confdefs.h.  */
32601void $cfuncdaxpy();
32602#ifdef F77_DUMMY_MAIN
32603
32604#  ifdef __cplusplus
32605     extern "C"
32606#  endif
32607   int F77_DUMMY_MAIN() { return 1; }
32608
32609#endif
32610int
32611main ()
32612{
32613$cfuncdaxpy()
32614  ;
32615  return 0;
32616}
32617_ACEOF
32618rm -f conftest.$ac_objext conftest$ac_exeext
32619if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32620  (eval $ac_link) 2>conftest.er1
32621  ac_status=$?
32622  grep -v '^ *+' conftest.er1 >conftest.err
32623  rm -f conftest.er1
32624  cat conftest.err >&5
32625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32626  (exit $ac_status); } &&
32627	 { ac_try='test -z "$ac_cxx_werror_flag"
32628			 || test ! -s conftest.err'
32629  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32630  (eval $ac_try) 2>&5
32631  ac_status=$?
32632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32633  (exit $ac_status); }; } &&
32634	 { ac_try='test -s conftest$ac_exeext'
32635  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32636  (eval $ac_try) 2>&5
32637  ac_status=$?
32638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32639  (exit $ac_status); }; }; then
32640  LIBS="$flink_save_libs"
32641                     coin_need_flibs=yes
32642                     use_blas='-lblas'
32643                       if test $coin_need_flibs = yes ; then
32644                         use_blas="$use_blas $FLIBS"
32645                       fi
32646                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
32647echo "${ECHO_T}yes: $use_blas" >&6
32648
32649
32650else
32651  echo "$as_me: failed program was:" >&5
32652sed 's/^/| /' conftest.$ac_ext >&5
32653
32654LIBS="$flink_save_libs"
32655                     echo "$as_me:$LINENO: result: no" >&5
32656echo "${ECHO_T}no" >&6
32657fi
32658rm -f conftest.err conftest.$ac_objext \
32659      conftest$ac_exeext conftest.$ac_ext
32660      else
32661        echo "$as_me:$LINENO: result: no" >&5
32662echo "${ECHO_T}no" >&6
32663      fi
32664    fi
32665    ;;
32666  cc|cpp)
32667    ac_ext=f
32668ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
32669ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32670ac_compiler_gnu=$ac_cv_f77_compiler_gnu
32671case $ac_cv_f77_mangling in
32672  upper*) ac_val="DAXPY" ;;
32673  lower*) ac_val="daxpy" ;;
32674  *)      ac_val="unknown" ;;
32675esac
32676case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
32677
32678cfuncdaxpy="$ac_val"
32679
32680ac_ext=cc
32681ac_cpp='$CXXCPP $CPPFLAGS'
32682ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32683ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32684ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32685
32686    if test x"$coin_need_flibs" = xyes; then
32687      flink_try=no;
32688    else
32689      cat >conftest.$ac_ext <<_ACEOF
32690/* confdefs.h.  */
32691_ACEOF
32692cat confdefs.h >>conftest.$ac_ext
32693cat >>conftest.$ac_ext <<_ACEOF
32694/* end confdefs.h.  */
32695extern "C" {void $cfuncdaxpy();}
32696#ifdef F77_DUMMY_MAIN
32697
32698#  ifdef __cplusplus
32699     extern "C"
32700#  endif
32701   int F77_DUMMY_MAIN() { return 1; }
32702
32703#endif
32704int
32705main ()
32706{
32707$cfuncdaxpy()
32708  ;
32709  return 0;
32710}
32711_ACEOF
32712rm -f conftest.$ac_objext conftest$ac_exeext
32713if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32714  (eval $ac_link) 2>conftest.er1
32715  ac_status=$?
32716  grep -v '^ *+' conftest.er1 >conftest.err
32717  rm -f conftest.er1
32718  cat conftest.err >&5
32719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32720  (exit $ac_status); } &&
32721	 { ac_try='test -z "$ac_cxx_werror_flag"
32722			 || test ! -s conftest.err'
32723  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32724  (eval $ac_try) 2>&5
32725  ac_status=$?
32726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32727  (exit $ac_status); }; } &&
32728	 { ac_try='test -s conftest$ac_exeext'
32729  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32730  (eval $ac_try) 2>&5
32731  ac_status=$?
32732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32733  (exit $ac_status); }; }; then
32734  flink_try=yes
32735else
32736  echo "$as_me: failed program was:" >&5
32737sed 's/^/| /' conftest.$ac_ext >&5
32738
32739flink_try=no
32740fi
32741rm -f conftest.err conftest.$ac_objext \
32742      conftest$ac_exeext conftest.$ac_ext
32743    fi
32744    if test $flink_try = yes; then
32745      use_blas='-lblas'
32746                       if test $coin_need_flibs = yes ; then
32747                         use_blas="$use_blas $FLIBS"
32748                       fi
32749                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
32750echo "${ECHO_T}yes: $use_blas" >&6
32751
32752    else
32753      if test x"$FLIBS" != x; then
32754        flink_save_libs="$LIBS"
32755        LIBS="$LIBS $FLIBS"
32756        cat >conftest.$ac_ext <<_ACEOF
32757/* confdefs.h.  */
32758_ACEOF
32759cat confdefs.h >>conftest.$ac_ext
32760cat >>conftest.$ac_ext <<_ACEOF
32761/* end confdefs.h.  */
32762extern "C" {void $cfuncdaxpy();}
32763#ifdef F77_DUMMY_MAIN
32764
32765#  ifdef __cplusplus
32766     extern "C"
32767#  endif
32768   int F77_DUMMY_MAIN() { return 1; }
32769
32770#endif
32771int
32772main ()
32773{
32774$cfuncdaxpy()
32775  ;
32776  return 0;
32777}
32778_ACEOF
32779rm -f conftest.$ac_objext conftest$ac_exeext
32780if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32781  (eval $ac_link) 2>conftest.er1
32782  ac_status=$?
32783  grep -v '^ *+' conftest.er1 >conftest.err
32784  rm -f conftest.er1
32785  cat conftest.err >&5
32786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32787  (exit $ac_status); } &&
32788	 { ac_try='test -z "$ac_cxx_werror_flag"
32789			 || test ! -s conftest.err'
32790  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32791  (eval $ac_try) 2>&5
32792  ac_status=$?
32793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32794  (exit $ac_status); }; } &&
32795	 { ac_try='test -s conftest$ac_exeext'
32796  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32797  (eval $ac_try) 2>&5
32798  ac_status=$?
32799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32800  (exit $ac_status); }; }; then
32801  LIBS="$flink_save_libs"
32802                     coin_need_flibs=yes
32803                     use_blas='-lblas'
32804                       if test $coin_need_flibs = yes ; then
32805                         use_blas="$use_blas $FLIBS"
32806                       fi
32807                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
32808echo "${ECHO_T}yes: $use_blas" >&6
32809
32810
32811else
32812  echo "$as_me: failed program was:" >&5
32813sed 's/^/| /' conftest.$ac_ext >&5
32814
32815LIBS="$flink_save_libs"
32816                     echo "$as_me:$LINENO: result: no" >&5
32817echo "${ECHO_T}no" >&6
32818fi
32819rm -f conftest.err conftest.$ac_objext \
32820      conftest$ac_exeext conftest.$ac_ext
32821      else
32822        echo "$as_me:$LINENO: result: no" >&5
32823echo "${ECHO_T}no" >&6
32824      fi
32825    fi
32826    ;;
32827esac
32828
32829    LIBS="$coin_save_LIBS"
32830  fi
32831
32832  # If we have no other ideas, consider building BLAS.
32833  if test -z "$use_blas" ; then
32834    use_blas=BUILD
32835  fi
32836fi
32837
32838if test "x$use_blas" = xBUILD ; then
32839
32840echo "$as_me:$LINENO: checking for COIN-OR package Blas" >&5
32841echo $ECHO_N "checking for COIN-OR package Blas... $ECHO_C" >&6
32842
32843coin_has_blas=notGiven
32844
32845# check if user wants to skip package in any case
32846if test x"$COIN_SKIP_PROJECTS" != x; then
32847  for dir in $COIN_SKIP_PROJECTS; do
32848    if test $dir = "Blas"; then
32849      coin_has_blas=skipping
32850    fi
32851  done
32852fi
32853
32854if test "$coin_has_blas" != skipping; then
32855
32856# Check whether --with-m4_tolower(Blas) or --without-m4_tolower(Blas) was given.
32857if test "${with_blas+set}" = set; then
32858  withval="$with_blas"
32859  if test "$withval" = no ; then
32860       coin_has_blas=skipping
32861     fi
32862
32863fi;
32864fi
32865
32866BLAS_LIBS=
32867BLAS_CFLAGS=
32868BLAS_DATA=
32869BLAS_DEPENDENCIES=
32870BLAS_PCLIBS=
32871BLAS_PCREQUIRES=
32872
32873
32874
32875
32876
32877
32878
32879
32880
32881
32882
32883
32884
32885
32886
32887
32888
32889#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
32890if test $coin_has_blas != skipping; then
32891
32892# Check whether --with-m4_tolower(Blas)-lib or --without-m4_tolower(Blas)-lib was given.
32893if test "${with_blas_lib+set}" = set; then
32894  withval="$with_blas_lib"
32895  if test "$withval" = no ; then
32896       coin_has_blas=skipping
32897     else
32898       coin_has_blas=yes
32899       BLAS_LIBS="$withval"
32900       BLAS_PCLIBS="$withval"
32901
32902         COINUTILSLIB_PCLIBS="$withval $COINUTILSLIB_PCLIBS"
32903         COINUTILSLIB_LIBS="$withval $COINUTILSLIB_LIBS"
32904
32905       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
32906       if test -z "$PKG_CONFIG" ; then
32907         BLAS_LIBS_INSTALLED="$withval"
32908         COINUTILSLIB_LIBS_INSTALLED="$withval $COINUTILSLIB_LIBS_INSTALLED"
32909       fi
32910     fi
32911
32912fi;
32913fi
32914
32915if test $coin_has_blas != skipping; then
32916
32917# Check whether --with-m4_tolower(Blas)-incdir or --without-m4_tolower(Blas)-incdir was given.
32918if test "${with_blas_incdir+set}" = set; then
32919  withval="$with_blas_incdir"
32920  if test "$withval" = no ; then
32921       coin_has_blas=skipping
32922     else
32923       coin_has_blas=yes
32924       BLAS_CFLAGS="-I`${CYGPATH_W} $withval`"
32925       COINUTILSLIB_CFLAGS="-I`${CYGPATH_W} $withval` $COINUTILSLIB_CFLAGS"
32926       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
32927       if test -z "$PKG_CONFIG" ; then
32928         BLAS_CFLAGS_INSTALLED="$BLAS_CFLAGS"
32929         COINUTILSLIB_CFLAGS_INSTALLED="$BLAS_CFLAGS $COINUTILSLIB_CFLAGS_INSTALLED"
32930       fi
32931     fi
32932
32933fi;
32934fi
32935
32936if test $coin_has_blas != skipping; then
32937
32938# Check whether --with-m4_tolower(Blas)-datadir or --without-m4_tolower(Blas)-datadir was given.
32939if test "${with_blas_datadir+set}" = set; then
32940  withval="$with_blas_datadir"
32941  if test "$withval" = no ; then
32942       coin_has_blas=skipping
32943     else
32944       coin_has_blas=yes
32945       BLAS_DATA="$withval"
32946       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
32947       if test -z "$PKG_CONFIG" ; then
32948         BLAS_DATA_INSTALLED="$withval"
32949       fi
32950     fi
32951
32952fi;
32953fi
32954
32955if test $coin_has_blas = notGiven; then
32956  if test -n "$PKG_CONFIG" ; then
32957    # set search path for pkg-config
32958    # need to export variable to be sure that the following pkg-config gets these values
32959    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
32960    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
32961    export PKG_CONFIG_PATH
32962
32963    # let pkg-config do it's magic
32964
32965
32966
32967if test -n "$PKG_CONFIG" ; then
32968  if $PKG_CONFIG --exists "coinblas"; then
32969    BLAS_VERSIONS=`$PKG_CONFIG --modversion "coinblas" 2>/dev/null | tr '\n' ' '`
32970     cflags=`$PKG_CONFIG --cflags "coinblas" 2>/dev/null`
32971    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
32972	# thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
32973	# but only do this if is not trivial
32974    if test "$CYGPATH_W" != "echo" ; then
32975      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
32976      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
32977    fi
32978    BLAS_CFLAGS="$cflags"
32979    BLAS_LIBS=`$PKG_CONFIG --libs "coinblas" 2>/dev/null`
32980    BLAS_DATA=`$PKG_CONFIG --variable=datadir "coinblas" 2>/dev/null`
32981     coin_has_blas=yes
32982        echo "$as_me:$LINENO: result: yes: $BLAS_VERSIONS" >&5
32983echo "${ECHO_T}yes: $BLAS_VERSIONS" >&6
32984
32985        # adjust linker flags for (i)cl compiler
32986        # 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)
32987        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
32988        then
32989          BLAS_LIBS=`echo " $BLAS_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
32990        fi
32991        BLAS_PCREQUIRES="coinblas"
32992
32993        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in CoinUtilsLib
32994
32995          COINUTILSLIB_PCREQUIRES="coinblas $COINUTILSLIB_PCREQUIRES"
32996          COINUTILSLIB_CFLAGS="$BLAS_CFLAGS $COINUTILSLIB_CFLAGS"
32997          COINUTILSLIB_LIBS="$BLAS_LIBS $COINUTILSLIB_LIBS"
32998
32999
33000
33001  else
33002    BLAS_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "coinblas"`
33003      coin_has_blas=notGiven
33004        echo "$as_me:$LINENO: result: not given: $BLAS_PKG_ERRORS" >&5
33005echo "${ECHO_T}not given: $BLAS_PKG_ERRORS" >&6
33006
33007  fi
33008else
33009  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Blas without pkg-config\"" >&5
33010echo "$as_me: error: \"Cannot check for existance of module Blas without pkg-config\"" >&2;}
33011   { (exit 1); exit 1; }; }
33012fi
33013
33014
33015
33016
33017    # reset PKG_CONFIG_PATH variable
33018    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
33019    export PKG_CONFIG_PATH
33020
33021  else
33022    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
33023echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
33024
33025echo "$as_me:$LINENO: checking for COIN-OR package Blas (fallback)" >&5
33026echo $ECHO_N "checking for COIN-OR package Blas (fallback)... $ECHO_C" >&6
33027
33028coin_has_blas=notGiven
33029BLAS_LIBS=
33030BLAS_LIBS_INSTALLED=
33031BLAS_CFLAGS=
33032BLAS_CFLAGS_INSTALLED=
33033BLAS_DATA=
33034BLAS_DATA_INSTALLED=
33035BLAS_PCLIBS=
33036BLAS_PCREQUIRES=
33037
33038# initial list of dependencies is "coinblas", but we need to filter out version number specifications (= x, <= x, >= x, != x)
33039projtoprocess="coinblas"
33040
33041# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
33042# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
33043# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
33044# also, we setup the DATA variable
33045allproj=""
33046allpcfiles=""
33047allpcifiles=""
33048while test "x$projtoprocess" != x ; do
33049
33050  for proj in $projtoprocess ; do
33051    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
33052    pcfile=""
33053    save_IFS="$IFS"
33054    IFS=":"
33055    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
33056      # 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
33057      if test -r "$dir/${proj}-uninstalled.pc" ; then
33058        pcfile="$dir/$proj-uninstalled.pc"
33059        if test -r "$dir/${proj}.pc" ; then
33060          pcifile="$dir/${proj}.pc"
33061        else
33062          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
33063echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
33064          pcifile=
33065        fi
33066        break
33067      fi
33068    done
33069    IFS="$save_IFS"
33070
33071    if test "x$pcfile" != x ; then
33072      # read dependencies from $pcfile and filter it
33073      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ 	]\{0,\}[^ 	]\{1,\}//g'`
33074
33075      # add projrequires to the front of the list of projects that have to be processed next
33076      # at the same time, remove $proj from this list
33077      projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
33078
33079      # read DATA from $pcfile, if _DATA is still empty
33080      if test "x$BLAS_DATA" = x ; then
33081        projdatadir=
33082        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
33083        eval `sh -c "$pcfilemod"`
33084        BLAS_DATA="$projdatadir"
33085      fi
33086
33087      allproj="$allproj $proj"
33088      allpcfiles="$pcfile:$allpcfiles"
33089
33090    else
33091      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
33092echo "${ECHO_T}no, dependency $proj not available" >&6
33093      allproj=fail
33094      break 2
33095    fi
33096
33097    if test "x$pcifile" != x ; then
33098      allpcifiles="$pcifile:$allpcifiles"
33099
33100      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
33101      if test "x$BLAS_DATA_INSTALLED" = x ; then
33102        projdatadir=
33103        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
33104        eval `sh -c "$pcifilemod"`
33105        if test "${CYGPATH_W}" != "echo"; then
33106          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
33107        fi
33108        BLAS_DATA_INSTALLED="$projdatadir"
33109      fi
33110
33111    fi
33112
33113    break
33114  done
33115
33116  # remove spaces on begin of $projtoprocess
33117  projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
33118
33119done
33120
33121if test "$allproj" != fail ; then
33122
33123  # now go through the list of .pc files and assemble compiler and linker flags
33124  # important is here to obey the reverse order that has been setup before,
33125  # since then libraries that are required by several others should be after these other libraries
33126  pcfilesprocessed=""
33127
33128  save_IFS="$IFS"
33129  IFS=":"
33130  for pcfile in $allpcfiles ; do
33131
33132    # if $pcfile has been processed already, skip this round
33133    if test "x$pcfilesprocessed" != x ; then
33134      for pcfiledone in $pcfilesprocessed ; do
33135        if test "$pcfiledone" = "$pcfile" ; then
33136          continue 2
33137        fi
33138      done
33139    fi
33140
33141    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
33142    #   replace "Libs:" by "echo projlibs="
33143    #   replace "Cflags:" by "echo projcflags="
33144    #   remove every line starting with <some word>:
33145    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
33146
33147    # set projcflags and projlibs variables by running $pcfilemod
33148    # 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
33149    projcflags=
33150    projlibs=
33151    IFS="$save_IFS"
33152    eval `sh -c "$pcfilemod"`
33153    IFS=":"
33154
33155    # add CYGPATH_W cludge into include flags and set CFLAGS variable
33156    if test "${CYGPATH_W}" != "echo"; then
33157      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
33158    fi
33159    BLAS_CFLAGS="$projcflags $BLAS_CFLAGS"
33160
33161    # set LIBS variable
33162    BLAS_LIBS="$projlibs $BLAS_LIBS"
33163
33164    # remember that we have processed $pcfile
33165    pcfilesprocessed="$pcfilesprocessed:$pcfile"
33166
33167  done
33168  IFS="$save_IFS"
33169
33170
33171  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
33172  # important is here again to obey the reverse order that has been setup before,
33173  # since then libraries that are required by several others should be after these other libraries
33174  pcfilesprocessed=""
33175
33176  save_IFS="$IFS"
33177  IFS=":"
33178  for pcfile in $allpcifiles ; do
33179
33180    # if $pcfile has been processed already, skip this round
33181    if test "x$pcfilesprocessed" != x ; then
33182      for pcfiledone in $pcfilesprocessed ; do
33183        if test "$pcfiledone" = "$pcfile" ; then
33184          continue 2
33185        fi
33186      done
33187    fi
33188
33189    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
33190    #   replace "Libs:" by "echo projlibs="
33191    #   replace "Cflags:" by "echo projcflags="
33192    #   remove every line starting with <some word>:
33193    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
33194
33195    # set projcflags and projlibs variables by running $pcfilemod
33196    # 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
33197    projcflags=
33198    projlibs=
33199    IFS="$save_IFS"
33200    eval `sh -c "$pcfilemod"`
33201    IFS=":"
33202
33203    # add CYGPATH_W cludge into include flags and set CFLAGS variable
33204    if test "${CYGPATH_W}" != "echo"; then
33205      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
33206    fi
33207    BLAS_CFLAGS_INSTALLED="$projcflags $BLAS_CFLAGS_INSTALLED"
33208
33209    # set LIBS variable
33210    BLAS_LIBS_INSTALLED="$projlibs $BLAS_LIBS_INSTALLED"
33211
33212    # remember that we have processed $pcfile
33213    pcfilesprocessed="$pcfilesprocessed:$pcfile"
33214
33215  done
33216  IFS="$save_IFS"
33217
33218
33219  # finish up
33220  coin_has_blas=yes
33221  echo "$as_me:$LINENO: result: yes" >&5
33222echo "${ECHO_T}yes" >&6
33223
33224cat >>confdefs.h <<\_ACEOF
33225#define COIN_HAS_BLAS 1
33226_ACEOF
33227
33228
33229  # adjust linker flags for (i)cl compiler
33230  # 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),
33231  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
33232  #    everything of the form "-lname" by "libname.lib", and
33233  #    everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
33234  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
33235  then
33236    BLAS_LIBS=`echo " $BLAS_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
33237    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'`
33238  fi
33239
33240  BLAS_PCREQUIRES="coinblas"
33241
33242    COINUTILSLIB_PCREQUIRES="coinblas $COINUTILSLIB_PCREQUIRES"
33243    COINUTILSLIB_CFLAGS="$BLAS_CFLAGS $COINUTILSLIB_CFLAGS"
33244    COINUTILSLIB_LIBS="$BLAS_LIBS $COINUTILSLIB_LIBS"
33245    COINUTILSLIB_CFLAGS_INSTALLED="$BLAS_CFLAGS_INSTALLED $COINUTILSLIB_CFLAGS_INSTALLED"
33246    COINUTILSLIB_LIBS_INSTALLED="$BLAS_LIBS_INSTALLED $COINUTILSLIB_LIBS_INSTALLED"
33247
33248
33249fi
33250
33251
33252
33253if test $coin_has_blas != notGiven &&
33254                test $coin_has_blas != skipping; then
33255  COIN_HAS_BLAS_TRUE=
33256  COIN_HAS_BLAS_FALSE='#'
33257else
33258  COIN_HAS_BLAS_TRUE='#'
33259  COIN_HAS_BLAS_FALSE=
33260fi
33261
33262
33263
33264  fi
33265
33266else
33267  echo "$as_me:$LINENO: result: $coin_has_blas" >&5
33268echo "${ECHO_T}$coin_has_blas" >&6
33269fi
33270
33271if test $coin_has_blas != skipping &&
33272   test $coin_has_blas != notGiven ; then
33273
33274cat >>confdefs.h <<\_ACEOF
33275#define COIN_HAS_BLAS 1
33276_ACEOF
33277
33278
33279  # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
33280if test "${enable_interpackage_dependencies+set}" = set; then
33281  enableval="$enable_interpackage_dependencies"
33282
33283else
33284  enable_interpackage_dependencies=yes
33285fi;
33286
33287  if test $enable_interpackage_dependencies = yes ; then
33288     # construct dependencies variables from LIBS variables
33289     # we add an extra space in LIBS so we can substitute out everything starting with " -"
33290     # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows
33291     # then remove everything of the form -xxx
33292     # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
33293     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'`
33294
33295       COINUTILSLIB_DEPENDENCIES=`echo " $COINUTILSLIB_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
33296
33297  fi
33298
33299  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
33300    if test -n "$BLAS_CFLAGS" ; then
33301      { echo "$as_me:$LINENO: Blas CFLAGS are $BLAS_CFLAGS" >&5
33302echo "$as_me: Blas CFLAGS are $BLAS_CFLAGS" >&6;}
33303    fi
33304    if test -n "$BLAS_LIBS" ; then
33305      { echo "$as_me:$LINENO: Blas LIBS   are $BLAS_LIBS" >&5
33306echo "$as_me: Blas LIBS   are $BLAS_LIBS" >&6;}
33307    fi
33308    if test -n "$BLAS_DEPENDENCIES" ; then
33309      { echo "$as_me:$LINENO: Blas DEPENDENCIES are $BLAS_DEPENDENCIES" >&5
33310echo "$as_me: Blas DEPENDENCIES are $BLAS_DEPENDENCIES" >&6;}
33311    fi
33312    if test -n "$BLAS_DATA" ; then
33313      { echo "$as_me:$LINENO: Blas DATA   is  $BLAS_DATA" >&5
33314echo "$as_me: Blas DATA   is  $BLAS_DATA" >&6;}
33315    fi
33316    if test -n "$BLAS_PCLIBS" ; then
33317      { echo "$as_me:$LINENO: Blas PCLIBS are $BLAS_PCLIBS" >&5
33318echo "$as_me: Blas PCLIBS are $BLAS_PCLIBS" >&6;}
33319    fi
33320    if test -n "$BLAS_PCREQUIRES" ; then
33321      { echo "$as_me:$LINENO: Blas PCREQUIRES are $BLAS_PCREQUIRES" >&5
33322echo "$as_me: Blas PCREQUIRES are $BLAS_PCREQUIRES" >&6;}
33323    fi
33324
33325      { echo "$as_me:$LINENO: CoinUtilsLib CFLAGS are $COINUTILSLIB_CFLAGS" >&5
33326echo "$as_me: CoinUtilsLib CFLAGS are $COINUTILSLIB_CFLAGS" >&6;}
33327      { echo "$as_me:$LINENO: CoinUtilsLib LIBS   are $COINUTILSLIB_LIBS" >&5
33328echo "$as_me: CoinUtilsLib LIBS   are $COINUTILSLIB_LIBS" >&6;}
33329      { echo "$as_me:$LINENO: CoinUtilsLib DEPENDENCIES are $COINUTILSLIB_DEPENDENCIES" >&5
33330echo "$as_me: CoinUtilsLib DEPENDENCIES are $COINUTILSLIB_DEPENDENCIES" >&6;}
33331
33332  fi
33333fi
33334
33335# Define the Makefile conditional
33336
33337
33338if test $coin_has_blas != notGiven &&
33339                test $coin_has_blas != skipping; then
33340  COIN_HAS_BLAS_TRUE=
33341  COIN_HAS_BLAS_FALSE='#'
33342else
33343  COIN_HAS_BLAS_TRUE='#'
33344  COIN_HAS_BLAS_FALSE=
33345fi
33346
33347
33348
33349
33350elif test "x$use_blas" != x && test "$use_blas" != no; then
33351  coin_has_blas=yes
33352
33353
33354if test 0 = 0; then
33355  COIN_HAS_BLAS_TRUE=
33356  COIN_HAS_BLAS_FALSE='#'
33357else
33358  COIN_HAS_BLAS_TRUE='#'
33359  COIN_HAS_BLAS_FALSE=
33360fi
33361
33362
33363cat >>confdefs.h <<\_ACEOF
33364#define COIN_HAS_BLAS 1
33365_ACEOF
33366
33367  BLAS_LIBS="$use_blas"
33368  BLAS_CFLAGS=
33369  BLAS_DATA=
33370
33371
33372
33373
33374    COINUTILSLIB_PCLIBS="$BLAS_LIBS $COINUTILSLIB_PCLIBS"
33375    COINUTILSLIB_LIBS="$BLAS_LIBS $COINUTILSLIB_LIBS"
33376    COINUTILSLIB_LIBS_INSTALLED="$BLAS_LIBS $COINUTILSLIB_LIBS_INSTALLED"
33377
33378
33379else
33380  coin_has_blas=no
33381
33382
33383if test 0 = 1; then
33384  COIN_HAS_BLAS_TRUE=
33385  COIN_HAS_BLAS_FALSE='#'
33386else
33387  COIN_HAS_BLAS_TRUE='#'
33388  COIN_HAS_BLAS_FALSE=
33389fi
33390
33391fi
33392
33393
33394
33395
33396
33397
33398
33399
33400
33401
33402# Check whether --with-lapack or --without-lapack was given.
33403if test "${with_lapack+set}" = set; then
33404  withval="$with_lapack"
33405  use_lapack=$withval
33406else
33407  use_lapack=
33408fi;
33409
33410#if user specified --with-lapack-lib, then we should give COIN_HAS_PACKAGE preference
33411
33412# Check whether --with-lapack-lib or --without-lapack-lib was given.
33413if test "${with_lapack_lib+set}" = set; then
33414  withval="$with_lapack_lib"
33415  use_lapack=BUILD
33416fi;
33417
33418# Check if user supplied option makes sense
33419if test x"$use_lapack" != x; then
33420  if test "$use_lapack" = "BUILD"; then
33421    # we come to this later
33422    :
33423  elif test "$use_lapack" != no; then
33424    use_lapack="$use_lapack $BLAS_LIBS"
33425    coin_save_LIBS="$LIBS"
33426    LIBS="$use_lapack $LIBS"
33427    if test "$F77" != unavailable; then
33428      echo "$as_me:$LINENO: checking whether user supplied LAPACKLIB=\"$use_lapack\" works" >&5
33429echo $ECHO_N "checking whether user supplied LAPACKLIB=\"$use_lapack\" works... $ECHO_C" >&6
33430      coin_need_flibs=no
33431      case $ac_ext in
33432  f)
33433    cat >conftest.$ac_ext <<_ACEOF
33434/* confdefs.h.  */
33435_ACEOF
33436cat confdefs.h >>conftest.$ac_ext
33437cat >>conftest.$ac_ext <<_ACEOF
33438/* end confdefs.h.  */
33439
33440#ifdef F77_DUMMY_MAIN
33441
33442#  ifdef __cplusplus
33443     extern "C"
33444#  endif
33445   int F77_DUMMY_MAIN() { return 1; }
33446
33447#endif
33448int
33449main ()
33450{
33451      call dsyev
33452  ;
33453  return 0;
33454}
33455_ACEOF
33456rm -f conftest.$ac_objext conftest$ac_exeext
33457if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33458  (eval $ac_link) 2>conftest.er1
33459  ac_status=$?
33460  grep -v '^ *+' conftest.er1 >conftest.err
33461  rm -f conftest.er1
33462  cat conftest.err >&5
33463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33464  (exit $ac_status); } &&
33465	 { ac_try='test -z "$ac_cxx_werror_flag"
33466			 || test ! -s conftest.err'
33467  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33468  (eval $ac_try) 2>&5
33469  ac_status=$?
33470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33471  (exit $ac_status); }; } &&
33472	 { ac_try='test -s conftest$ac_exeext'
33473  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33474  (eval $ac_try) 2>&5
33475  ac_status=$?
33476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33477  (exit $ac_status); }; }; then
33478  if test $coin_need_flibs = yes ; then
33479                           use_lapack="$use_lapack $FLIBS"
33480                         fi
33481                         echo "$as_me:$LINENO: result: yes: $use_lapack" >&5
33482echo "${ECHO_T}yes: $use_lapack" >&6
33483
33484else
33485  echo "$as_me: failed program was:" >&5
33486sed 's/^/| /' conftest.$ac_ext >&5
33487
33488echo "$as_me:$LINENO: result: no" >&5
33489echo "${ECHO_T}no" >&6
33490                         { { echo "$as_me:$LINENO: error: user supplied LAPACK library \"$use_lapack\" does not work" >&5
33491echo "$as_me: error: user supplied LAPACK library \"$use_lapack\" does not work" >&2;}
33492   { (exit 1); exit 1; }; }
33493fi
33494rm -f conftest.err conftest.$ac_objext \
33495      conftest$ac_exeext conftest.$ac_ext
33496    ;;
33497  c)
33498    ac_ext=f
33499ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
33500ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33501ac_compiler_gnu=$ac_cv_f77_compiler_gnu
33502case $ac_cv_f77_mangling in
33503  upper*) ac_val="DSYEV" ;;
33504  lower*) ac_val="dsyev" ;;
33505  *)      ac_val="unknown" ;;
33506esac
33507case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
33508
33509cfuncdsyev="$ac_val"
33510
33511ac_ext=cc
33512ac_cpp='$CXXCPP $CPPFLAGS'
33513ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33514ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33515ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33516
33517    if test x"$coin_need_flibs" = xyes; then
33518      flink_try=no;
33519    else
33520      cat >conftest.$ac_ext <<_ACEOF
33521/* confdefs.h.  */
33522_ACEOF
33523cat confdefs.h >>conftest.$ac_ext
33524cat >>conftest.$ac_ext <<_ACEOF
33525/* end confdefs.h.  */
33526void $cfuncdsyev();
33527#ifdef F77_DUMMY_MAIN
33528
33529#  ifdef __cplusplus
33530     extern "C"
33531#  endif
33532   int F77_DUMMY_MAIN() { return 1; }
33533
33534#endif
33535int
33536main ()
33537{
33538$cfuncdsyev()
33539  ;
33540  return 0;
33541}
33542_ACEOF
33543rm -f conftest.$ac_objext conftest$ac_exeext
33544if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33545  (eval $ac_link) 2>conftest.er1
33546  ac_status=$?
33547  grep -v '^ *+' conftest.er1 >conftest.err
33548  rm -f conftest.er1
33549  cat conftest.err >&5
33550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33551  (exit $ac_status); } &&
33552	 { ac_try='test -z "$ac_cxx_werror_flag"
33553			 || test ! -s conftest.err'
33554  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33555  (eval $ac_try) 2>&5
33556  ac_status=$?
33557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33558  (exit $ac_status); }; } &&
33559	 { ac_try='test -s conftest$ac_exeext'
33560  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33561  (eval $ac_try) 2>&5
33562  ac_status=$?
33563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33564  (exit $ac_status); }; }; then
33565  flink_try=yes
33566else
33567  echo "$as_me: failed program was:" >&5
33568sed 's/^/| /' conftest.$ac_ext >&5
33569
33570flink_try=no
33571fi
33572rm -f conftest.err conftest.$ac_objext \
33573      conftest$ac_exeext conftest.$ac_ext
33574    fi
33575    if test $flink_try = yes; then
33576      if test $coin_need_flibs = yes ; then
33577                           use_lapack="$use_lapack $FLIBS"
33578                         fi
33579                         echo "$as_me:$LINENO: result: yes: $use_lapack" >&5
33580echo "${ECHO_T}yes: $use_lapack" >&6
33581
33582    else
33583      if test x"$FLIBS" != x; then
33584        flink_save_libs="$LIBS"
33585        LIBS="$LIBS $FLIBS"
33586        cat >conftest.$ac_ext <<_ACEOF
33587/* confdefs.h.  */
33588_ACEOF
33589cat confdefs.h >>conftest.$ac_ext
33590cat >>conftest.$ac_ext <<_ACEOF
33591/* end confdefs.h.  */
33592void $cfuncdsyev();
33593#ifdef F77_DUMMY_MAIN
33594
33595#  ifdef __cplusplus
33596     extern "C"
33597#  endif
33598   int F77_DUMMY_MAIN() { return 1; }
33599
33600#endif
33601int
33602main ()
33603{
33604$cfuncdsyev()
33605  ;
33606  return 0;
33607}
33608_ACEOF
33609rm -f conftest.$ac_objext conftest$ac_exeext
33610if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33611  (eval $ac_link) 2>conftest.er1
33612  ac_status=$?
33613  grep -v '^ *+' conftest.er1 >conftest.err
33614  rm -f conftest.er1
33615  cat conftest.err >&5
33616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33617  (exit $ac_status); } &&
33618	 { ac_try='test -z "$ac_cxx_werror_flag"
33619			 || test ! -s conftest.err'
33620  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33621  (eval $ac_try) 2>&5
33622  ac_status=$?
33623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33624  (exit $ac_status); }; } &&
33625	 { ac_try='test -s conftest$ac_exeext'
33626  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33627  (eval $ac_try) 2>&5
33628  ac_status=$?
33629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33630  (exit $ac_status); }; }; then
33631  LIBS="$flink_save_libs"
33632                     coin_need_flibs=yes
33633                     if test $coin_need_flibs = yes ; then
33634                           use_lapack="$use_lapack $FLIBS"
33635                         fi
33636                         echo "$as_me:$LINENO: result: yes: $use_lapack" >&5
33637echo "${ECHO_T}yes: $use_lapack" >&6
33638
33639
33640else
33641  echo "$as_me: failed program was:" >&5
33642sed 's/^/| /' conftest.$ac_ext >&5
33643
33644LIBS="$flink_save_libs"
33645                     echo "$as_me:$LINENO: result: no" >&5
33646echo "${ECHO_T}no" >&6
33647                         { { echo "$as_me:$LINENO: error: user supplied LAPACK library \"$use_lapack\" does not work" >&5
33648echo "$as_me: error: user supplied LAPACK library \"$use_lapack\" does not work" >&2;}
33649   { (exit 1); exit 1; }; }
33650fi
33651rm -f conftest.err conftest.$ac_objext \
33652      conftest$ac_exeext conftest.$ac_ext
33653      else
33654        echo "$as_me:$LINENO: result: no" >&5
33655echo "${ECHO_T}no" >&6
33656                         { { echo "$as_me:$LINENO: error: user supplied LAPACK library \"$use_lapack\" does not work" >&5
33657echo "$as_me: error: user supplied LAPACK library \"$use_lapack\" does not work" >&2;}
33658   { (exit 1); exit 1; }; }
33659      fi
33660    fi
33661    ;;
33662  cc|cpp)
33663    ac_ext=f
33664ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
33665ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33666ac_compiler_gnu=$ac_cv_f77_compiler_gnu
33667case $ac_cv_f77_mangling in
33668  upper*) ac_val="DSYEV" ;;
33669  lower*) ac_val="dsyev" ;;
33670  *)      ac_val="unknown" ;;
33671esac
33672case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
33673
33674cfuncdsyev="$ac_val"
33675
33676ac_ext=cc
33677ac_cpp='$CXXCPP $CPPFLAGS'
33678ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33679ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33680ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33681
33682    if test x"$coin_need_flibs" = xyes; then
33683      flink_try=no;
33684    else
33685      cat >conftest.$ac_ext <<_ACEOF
33686/* confdefs.h.  */
33687_ACEOF
33688cat confdefs.h >>conftest.$ac_ext
33689cat >>conftest.$ac_ext <<_ACEOF
33690/* end confdefs.h.  */
33691extern "C" {void $cfuncdsyev();}
33692#ifdef F77_DUMMY_MAIN
33693
33694#  ifdef __cplusplus
33695     extern "C"
33696#  endif
33697   int F77_DUMMY_MAIN() { return 1; }
33698
33699#endif
33700int
33701main ()
33702{
33703$cfuncdsyev()
33704  ;
33705  return 0;
33706}
33707_ACEOF
33708rm -f conftest.$ac_objext conftest$ac_exeext
33709if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33710  (eval $ac_link) 2>conftest.er1
33711  ac_status=$?
33712  grep -v '^ *+' conftest.er1 >conftest.err
33713  rm -f conftest.er1
33714  cat conftest.err >&5
33715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33716  (exit $ac_status); } &&
33717	 { ac_try='test -z "$ac_cxx_werror_flag"
33718			 || test ! -s conftest.err'
33719  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33720  (eval $ac_try) 2>&5
33721  ac_status=$?
33722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33723  (exit $ac_status); }; } &&
33724	 { ac_try='test -s conftest$ac_exeext'
33725  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33726  (eval $ac_try) 2>&5
33727  ac_status=$?
33728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33729  (exit $ac_status); }; }; then
33730  flink_try=yes
33731else
33732  echo "$as_me: failed program was:" >&5
33733sed 's/^/| /' conftest.$ac_ext >&5
33734
33735flink_try=no
33736fi
33737rm -f conftest.err conftest.$ac_objext \
33738      conftest$ac_exeext conftest.$ac_ext
33739    fi
33740    if test $flink_try = yes; then
33741      if test $coin_need_flibs = yes ; then
33742                           use_lapack="$use_lapack $FLIBS"
33743                         fi
33744                         echo "$as_me:$LINENO: result: yes: $use_lapack" >&5
33745echo "${ECHO_T}yes: $use_lapack" >&6
33746
33747    else
33748      if test x"$FLIBS" != x; then
33749        flink_save_libs="$LIBS"
33750        LIBS="$LIBS $FLIBS"
33751        cat >conftest.$ac_ext <<_ACEOF
33752/* confdefs.h.  */
33753_ACEOF
33754cat confdefs.h >>conftest.$ac_ext
33755cat >>conftest.$ac_ext <<_ACEOF
33756/* end confdefs.h.  */
33757extern "C" {void $cfuncdsyev();}
33758#ifdef F77_DUMMY_MAIN
33759
33760#  ifdef __cplusplus
33761     extern "C"
33762#  endif
33763   int F77_DUMMY_MAIN() { return 1; }
33764
33765#endif
33766int
33767main ()
33768{
33769$cfuncdsyev()
33770  ;
33771  return 0;
33772}
33773_ACEOF
33774rm -f conftest.$ac_objext conftest$ac_exeext
33775if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33776  (eval $ac_link) 2>conftest.er1
33777  ac_status=$?
33778  grep -v '^ *+' conftest.er1 >conftest.err
33779  rm -f conftest.er1
33780  cat conftest.err >&5
33781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33782  (exit $ac_status); } &&
33783	 { ac_try='test -z "$ac_cxx_werror_flag"
33784			 || test ! -s conftest.err'
33785  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33786  (eval $ac_try) 2>&5
33787  ac_status=$?
33788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33789  (exit $ac_status); }; } &&
33790	 { ac_try='test -s conftest$ac_exeext'
33791  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33792  (eval $ac_try) 2>&5
33793  ac_status=$?
33794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33795  (exit $ac_status); }; }; then
33796  LIBS="$flink_save_libs"
33797                     coin_need_flibs=yes
33798                     if test $coin_need_flibs = yes ; then
33799                           use_lapack="$use_lapack $FLIBS"
33800                         fi
33801                         echo "$as_me:$LINENO: result: yes: $use_lapack" >&5
33802echo "${ECHO_T}yes: $use_lapack" >&6
33803
33804
33805else
33806  echo "$as_me: failed program was:" >&5
33807sed 's/^/| /' conftest.$ac_ext >&5
33808
33809LIBS="$flink_save_libs"
33810                     echo "$as_me:$LINENO: result: no" >&5
33811echo "${ECHO_T}no" >&6
33812                         { { echo "$as_me:$LINENO: error: user supplied LAPACK library \"$use_lapack\" does not work" >&5
33813echo "$as_me: error: user supplied LAPACK library \"$use_lapack\" does not work" >&2;}
33814   { (exit 1); exit 1; }; }
33815fi
33816rm -f conftest.err conftest.$ac_objext \
33817      conftest$ac_exeext conftest.$ac_ext
33818      else
33819        echo "$as_me:$LINENO: result: no" >&5
33820echo "${ECHO_T}no" >&6
33821                         { { echo "$as_me:$LINENO: error: user supplied LAPACK library \"$use_lapack\" does not work" >&5
33822echo "$as_me: error: user supplied LAPACK library \"$use_lapack\" does not work" >&2;}
33823   { (exit 1); exit 1; }; }
33824      fi
33825    fi
33826    ;;
33827esac
33828
33829    else
33830      { echo "$as_me:$LINENO: whether user supplied LAPACKLIB=\"$use_lapack\" works with C linkage" >&5
33831echo "$as_me: whether user supplied LAPACKLIB=\"$use_lapack\" works with C linkage" >&6;}
33832      ac_ext=c
33833ac_cpp='$CPP $CPPFLAGS'
33834ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33835ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33836ac_compiler_gnu=$ac_cv_c_compiler_gnu
33837
33838      echo "$as_me:$LINENO: checking for dsyev" >&5
33839echo $ECHO_N "checking for dsyev... $ECHO_C" >&6
33840if test "${ac_cv_func_dsyev+set}" = set; then
33841  echo $ECHO_N "(cached) $ECHO_C" >&6
33842else
33843  cat >conftest.$ac_ext <<_ACEOF
33844/* confdefs.h.  */
33845_ACEOF
33846cat confdefs.h >>conftest.$ac_ext
33847cat >>conftest.$ac_ext <<_ACEOF
33848/* end confdefs.h.  */
33849/* Define dsyev to an innocuous variant, in case <limits.h> declares dsyev.
33850   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33851#define dsyev innocuous_dsyev
33852
33853/* System header to define __stub macros and hopefully few prototypes,
33854    which can conflict with char dsyev (); below.
33855    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33856    <limits.h> exists even on freestanding compilers.  */
33857
33858#ifdef __STDC__
33859# include <limits.h>
33860#else
33861# include <assert.h>
33862#endif
33863
33864#undef dsyev
33865
33866/* Override any gcc2 internal prototype to avoid an error.  */
33867#ifdef __cplusplus
33868extern "C"
33869{
33870#endif
33871/* We use char because int might match the return type of a gcc2
33872   builtin and then its argument prototype would still apply.  */
33873char dsyev ();
33874/* The GNU C library defines this for functions which it implements
33875    to always fail with ENOSYS.  Some functions are actually named
33876    something starting with __ and the normal name is an alias.  */
33877#if defined (__stub_dsyev) || defined (__stub___dsyev)
33878choke me
33879#else
33880char (*f) () = dsyev;
33881#endif
33882#ifdef __cplusplus
33883}
33884#endif
33885
33886#ifdef F77_DUMMY_MAIN
33887
33888#  ifdef __cplusplus
33889     extern "C"
33890#  endif
33891   int F77_DUMMY_MAIN() { return 1; }
33892
33893#endif
33894int
33895main ()
33896{
33897return f != dsyev;
33898  ;
33899  return 0;
33900}
33901_ACEOF
33902rm -f conftest.$ac_objext conftest$ac_exeext
33903if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33904  (eval $ac_link) 2>conftest.er1
33905  ac_status=$?
33906  grep -v '^ *+' conftest.er1 >conftest.err
33907  rm -f conftest.er1
33908  cat conftest.err >&5
33909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33910  (exit $ac_status); } &&
33911	 { ac_try='test -z "$ac_c_werror_flag"
33912			 || test ! -s conftest.err'
33913  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33914  (eval $ac_try) 2>&5
33915  ac_status=$?
33916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33917  (exit $ac_status); }; } &&
33918	 { ac_try='test -s conftest$ac_exeext'
33919  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33920  (eval $ac_try) 2>&5
33921  ac_status=$?
33922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33923  (exit $ac_status); }; }; then
33924  ac_cv_func_dsyev=yes
33925else
33926  echo "$as_me: failed program was:" >&5
33927sed 's/^/| /' conftest.$ac_ext >&5
33928
33929ac_cv_func_dsyev=no
33930fi
33931rm -f conftest.err conftest.$ac_objext \
33932      conftest$ac_exeext conftest.$ac_ext
33933fi
33934echo "$as_me:$LINENO: result: $ac_cv_func_dsyev" >&5
33935echo "${ECHO_T}$ac_cv_func_dsyev" >&6
33936if test $ac_cv_func_dsyev = yes; then
33937  :
33938else
33939  { { echo "$as_me:$LINENO: error: user supplied LAPACK library \"$use_lapack\" does not work" >&5
33940echo "$as_me: error: user supplied LAPACK library \"$use_lapack\" does not work" >&2;}
33941   { (exit 1); exit 1; }; }
33942fi
33943
33944      ac_ext=cc
33945ac_cpp='$CXXCPP $CPPFLAGS'
33946ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33947ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33948ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33949
33950    fi
33951    LIBS="$coin_save_LIBS"
33952  fi
33953else
33954  if test x$coin_has_blas = xyes; then
33955    # First try to see if LAPACK is already available with BLAS library
33956    coin_save_LIBS="$LIBS"
33957    LIBS="$BLAS_LIBS $LIBS"
33958    if test "$F77" != unavailable; then
33959      coin_need_flibs=no
33960      echo "$as_me:$LINENO: checking whether LAPACK is already available with BLAS library" >&5
33961echo $ECHO_N "checking whether LAPACK is already available with BLAS library... $ECHO_C" >&6
33962      case $ac_ext in
33963  f)
33964    cat >conftest.$ac_ext <<_ACEOF
33965/* confdefs.h.  */
33966_ACEOF
33967cat confdefs.h >>conftest.$ac_ext
33968cat >>conftest.$ac_ext <<_ACEOF
33969/* end confdefs.h.  */
33970
33971#ifdef F77_DUMMY_MAIN
33972
33973#  ifdef __cplusplus
33974     extern "C"
33975#  endif
33976   int F77_DUMMY_MAIN() { return 1; }
33977
33978#endif
33979int
33980main ()
33981{
33982      call dsyev
33983  ;
33984  return 0;
33985}
33986_ACEOF
33987rm -f conftest.$ac_objext conftest$ac_exeext
33988if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33989  (eval $ac_link) 2>conftest.er1
33990  ac_status=$?
33991  grep -v '^ *+' conftest.er1 >conftest.err
33992  rm -f conftest.er1
33993  cat conftest.err >&5
33994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33995  (exit $ac_status); } &&
33996	 { ac_try='test -z "$ac_cxx_werror_flag"
33997			 || test ! -s conftest.err'
33998  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33999  (eval $ac_try) 2>&5
34000  ac_status=$?
34001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34002  (exit $ac_status); }; } &&
34003	 { ac_try='test -s conftest$ac_exeext'
34004  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34005  (eval $ac_try) 2>&5
34006  ac_status=$?
34007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34008  (exit $ac_status); }; }; then
34009  use_lapack="$BLAS_LIBS"
34010                         if test $coin_need_flibs = yes ; then
34011                           use_lapack="$use_lapack $FLIBS"
34012                         fi
34013                         echo "$as_me:$LINENO: result: yes: $use_lapack" >&5
34014echo "${ECHO_T}yes: $use_lapack" >&6
34015
34016else
34017  echo "$as_me: failed program was:" >&5
34018sed 's/^/| /' conftest.$ac_ext >&5
34019
34020echo "$as_me:$LINENO: result: no" >&5
34021echo "${ECHO_T}no" >&6
34022fi
34023rm -f conftest.err conftest.$ac_objext \
34024      conftest$ac_exeext conftest.$ac_ext
34025    ;;
34026  c)
34027    ac_ext=f
34028ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
34029ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34030ac_compiler_gnu=$ac_cv_f77_compiler_gnu
34031case $ac_cv_f77_mangling in
34032  upper*) ac_val="DSYEV" ;;
34033  lower*) ac_val="dsyev" ;;
34034  *)      ac_val="unknown" ;;
34035esac
34036case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
34037
34038cfuncdsyev="$ac_val"
34039
34040ac_ext=cc
34041ac_cpp='$CXXCPP $CPPFLAGS'
34042ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34043ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34044ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34045
34046    if test x"$coin_need_flibs" = xyes; then
34047      flink_try=no;
34048    else
34049      cat >conftest.$ac_ext <<_ACEOF
34050/* confdefs.h.  */
34051_ACEOF
34052cat confdefs.h >>conftest.$ac_ext
34053cat >>conftest.$ac_ext <<_ACEOF
34054/* end confdefs.h.  */
34055void $cfuncdsyev();
34056#ifdef F77_DUMMY_MAIN
34057
34058#  ifdef __cplusplus
34059     extern "C"
34060#  endif
34061   int F77_DUMMY_MAIN() { return 1; }
34062
34063#endif
34064int
34065main ()
34066{
34067$cfuncdsyev()
34068  ;
34069  return 0;
34070}
34071_ACEOF
34072rm -f conftest.$ac_objext conftest$ac_exeext
34073if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34074  (eval $ac_link) 2>conftest.er1
34075  ac_status=$?
34076  grep -v '^ *+' conftest.er1 >conftest.err
34077  rm -f conftest.er1
34078  cat conftest.err >&5
34079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34080  (exit $ac_status); } &&
34081	 { ac_try='test -z "$ac_cxx_werror_flag"
34082			 || test ! -s conftest.err'
34083  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34084  (eval $ac_try) 2>&5
34085  ac_status=$?
34086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34087  (exit $ac_status); }; } &&
34088	 { ac_try='test -s conftest$ac_exeext'
34089  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34090  (eval $ac_try) 2>&5
34091  ac_status=$?
34092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34093  (exit $ac_status); }; }; then
34094  flink_try=yes
34095else
34096  echo "$as_me: failed program was:" >&5
34097sed 's/^/| /' conftest.$ac_ext >&5
34098
34099flink_try=no
34100fi
34101rm -f conftest.err conftest.$ac_objext \
34102      conftest$ac_exeext conftest.$ac_ext
34103    fi
34104    if test $flink_try = yes; then
34105      use_lapack="$BLAS_LIBS"
34106                         if test $coin_need_flibs = yes ; then
34107                           use_lapack="$use_lapack $FLIBS"
34108                         fi
34109                         echo "$as_me:$LINENO: result: yes: $use_lapack" >&5
34110echo "${ECHO_T}yes: $use_lapack" >&6
34111
34112    else
34113      if test x"$FLIBS" != x; then
34114        flink_save_libs="$LIBS"
34115        LIBS="$LIBS $FLIBS"
34116        cat >conftest.$ac_ext <<_ACEOF
34117/* confdefs.h.  */
34118_ACEOF
34119cat confdefs.h >>conftest.$ac_ext
34120cat >>conftest.$ac_ext <<_ACEOF
34121/* end confdefs.h.  */
34122void $cfuncdsyev();
34123#ifdef F77_DUMMY_MAIN
34124
34125#  ifdef __cplusplus
34126     extern "C"
34127#  endif
34128   int F77_DUMMY_MAIN() { return 1; }
34129
34130#endif
34131int
34132main ()
34133{
34134$cfuncdsyev()
34135  ;
34136  return 0;
34137}
34138_ACEOF
34139rm -f conftest.$ac_objext conftest$ac_exeext
34140if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34141  (eval $ac_link) 2>conftest.er1
34142  ac_status=$?
34143  grep -v '^ *+' conftest.er1 >conftest.err
34144  rm -f conftest.er1
34145  cat conftest.err >&5
34146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34147  (exit $ac_status); } &&
34148	 { ac_try='test -z "$ac_cxx_werror_flag"
34149			 || test ! -s conftest.err'
34150  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34151  (eval $ac_try) 2>&5
34152  ac_status=$?
34153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34154  (exit $ac_status); }; } &&
34155	 { ac_try='test -s conftest$ac_exeext'
34156  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34157  (eval $ac_try) 2>&5
34158  ac_status=$?
34159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34160  (exit $ac_status); }; }; then
34161  LIBS="$flink_save_libs"
34162                     coin_need_flibs=yes
34163                     use_lapack="$BLAS_LIBS"
34164                         if test $coin_need_flibs = yes ; then
34165                           use_lapack="$use_lapack $FLIBS"
34166                         fi
34167                         echo "$as_me:$LINENO: result: yes: $use_lapack" >&5
34168echo "${ECHO_T}yes: $use_lapack" >&6
34169
34170
34171else
34172  echo "$as_me: failed program was:" >&5
34173sed 's/^/| /' conftest.$ac_ext >&5
34174
34175LIBS="$flink_save_libs"
34176                     echo "$as_me:$LINENO: result: no" >&5
34177echo "${ECHO_T}no" >&6
34178fi
34179rm -f conftest.err conftest.$ac_objext \
34180      conftest$ac_exeext conftest.$ac_ext
34181      else
34182        echo "$as_me:$LINENO: result: no" >&5
34183echo "${ECHO_T}no" >&6
34184      fi
34185    fi
34186    ;;
34187  cc|cpp)
34188    ac_ext=f
34189ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
34190ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34191ac_compiler_gnu=$ac_cv_f77_compiler_gnu
34192case $ac_cv_f77_mangling in
34193  upper*) ac_val="DSYEV" ;;
34194  lower*) ac_val="dsyev" ;;
34195  *)      ac_val="unknown" ;;
34196esac
34197case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
34198
34199cfuncdsyev="$ac_val"
34200
34201ac_ext=cc
34202ac_cpp='$CXXCPP $CPPFLAGS'
34203ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34204ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34205ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34206
34207    if test x"$coin_need_flibs" = xyes; then
34208      flink_try=no;
34209    else
34210      cat >conftest.$ac_ext <<_ACEOF
34211/* confdefs.h.  */
34212_ACEOF
34213cat confdefs.h >>conftest.$ac_ext
34214cat >>conftest.$ac_ext <<_ACEOF
34215/* end confdefs.h.  */
34216extern "C" {void $cfuncdsyev();}
34217#ifdef F77_DUMMY_MAIN
34218
34219#  ifdef __cplusplus
34220     extern "C"
34221#  endif
34222   int F77_DUMMY_MAIN() { return 1; }
34223
34224#endif
34225int
34226main ()
34227{
34228$cfuncdsyev()
34229  ;
34230  return 0;
34231}
34232_ACEOF
34233rm -f conftest.$ac_objext conftest$ac_exeext
34234if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34235  (eval $ac_link) 2>conftest.er1
34236  ac_status=$?
34237  grep -v '^ *+' conftest.er1 >conftest.err
34238  rm -f conftest.er1
34239  cat conftest.err >&5
34240  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34241  (exit $ac_status); } &&
34242	 { ac_try='test -z "$ac_cxx_werror_flag"
34243			 || test ! -s conftest.err'
34244  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34245  (eval $ac_try) 2>&5
34246  ac_status=$?
34247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34248  (exit $ac_status); }; } &&
34249	 { ac_try='test -s conftest$ac_exeext'
34250  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34251  (eval $ac_try) 2>&5
34252  ac_status=$?
34253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34254  (exit $ac_status); }; }; then
34255  flink_try=yes
34256else
34257  echo "$as_me: failed program was:" >&5
34258sed 's/^/| /' conftest.$ac_ext >&5
34259
34260flink_try=no
34261fi
34262rm -f conftest.err conftest.$ac_objext \
34263      conftest$ac_exeext conftest.$ac_ext
34264    fi
34265    if test $flink_try = yes; then
34266      use_lapack="$BLAS_LIBS"
34267                         if test $coin_need_flibs = yes ; then
34268                           use_lapack="$use_lapack $FLIBS"
34269                         fi
34270                         echo "$as_me:$LINENO: result: yes: $use_lapack" >&5
34271echo "${ECHO_T}yes: $use_lapack" >&6
34272
34273    else
34274      if test x"$FLIBS" != x; then
34275        flink_save_libs="$LIBS"
34276        LIBS="$LIBS $FLIBS"
34277        cat >conftest.$ac_ext <<_ACEOF
34278/* confdefs.h.  */
34279_ACEOF
34280cat confdefs.h >>conftest.$ac_ext
34281cat >>conftest.$ac_ext <<_ACEOF
34282/* end confdefs.h.  */
34283extern "C" {void $cfuncdsyev();}
34284#ifdef F77_DUMMY_MAIN
34285
34286#  ifdef __cplusplus
34287     extern "C"
34288#  endif
34289   int F77_DUMMY_MAIN() { return 1; }
34290
34291#endif
34292int
34293main ()
34294{
34295$cfuncdsyev()
34296  ;
34297  return 0;
34298}
34299_ACEOF
34300rm -f conftest.$ac_objext conftest$ac_exeext
34301if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34302  (eval $ac_link) 2>conftest.er1
34303  ac_status=$?
34304  grep -v '^ *+' conftest.er1 >conftest.err
34305  rm -f conftest.er1
34306  cat conftest.err >&5
34307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34308  (exit $ac_status); } &&
34309	 { ac_try='test -z "$ac_cxx_werror_flag"
34310			 || test ! -s conftest.err'
34311  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34312  (eval $ac_try) 2>&5
34313  ac_status=$?
34314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34315  (exit $ac_status); }; } &&
34316	 { ac_try='test -s conftest$ac_exeext'
34317  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34318  (eval $ac_try) 2>&5
34319  ac_status=$?
34320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34321  (exit $ac_status); }; }; then
34322  LIBS="$flink_save_libs"
34323                     coin_need_flibs=yes
34324                     use_lapack="$BLAS_LIBS"
34325                         if test $coin_need_flibs = yes ; then
34326                           use_lapack="$use_lapack $FLIBS"
34327                         fi
34328                         echo "$as_me:$LINENO: result: yes: $use_lapack" >&5
34329echo "${ECHO_T}yes: $use_lapack" >&6
34330
34331
34332else
34333  echo "$as_me: failed program was:" >&5
34334sed 's/^/| /' conftest.$ac_ext >&5
34335
34336LIBS="$flink_save_libs"
34337                     echo "$as_me:$LINENO: result: no" >&5
34338echo "${ECHO_T}no" >&6
34339fi
34340rm -f conftest.err conftest.$ac_objext \
34341      conftest$ac_exeext conftest.$ac_ext
34342      else
34343        echo "$as_me:$LINENO: result: no" >&5
34344echo "${ECHO_T}no" >&6
34345      fi
34346    fi
34347    ;;
34348esac
34349
34350    else
34351      { echo "$as_me:$LINENO: checking whether LAPACK is already available with BLAS library" >&5
34352echo "$as_me: checking whether LAPACK is already available with BLAS library" >&6;}
34353      ac_ext=c
34354ac_cpp='$CPP $CPPFLAGS'
34355ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34356ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34357ac_compiler_gnu=$ac_cv_c_compiler_gnu
34358
34359      echo "$as_me:$LINENO: checking for dsyev" >&5
34360echo $ECHO_N "checking for dsyev... $ECHO_C" >&6
34361if test "${ac_cv_func_dsyev+set}" = set; then
34362  echo $ECHO_N "(cached) $ECHO_C" >&6
34363else
34364  cat >conftest.$ac_ext <<_ACEOF
34365/* confdefs.h.  */
34366_ACEOF
34367cat confdefs.h >>conftest.$ac_ext
34368cat >>conftest.$ac_ext <<_ACEOF
34369/* end confdefs.h.  */
34370/* Define dsyev to an innocuous variant, in case <limits.h> declares dsyev.
34371   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34372#define dsyev innocuous_dsyev
34373
34374/* System header to define __stub macros and hopefully few prototypes,
34375    which can conflict with char dsyev (); below.
34376    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34377    <limits.h> exists even on freestanding compilers.  */
34378
34379#ifdef __STDC__
34380# include <limits.h>
34381#else
34382# include <assert.h>
34383#endif
34384
34385#undef dsyev
34386
34387/* Override any gcc2 internal prototype to avoid an error.  */
34388#ifdef __cplusplus
34389extern "C"
34390{
34391#endif
34392/* We use char because int might match the return type of a gcc2
34393   builtin and then its argument prototype would still apply.  */
34394char dsyev ();
34395/* The GNU C library defines this for functions which it implements
34396    to always fail with ENOSYS.  Some functions are actually named
34397    something starting with __ and the normal name is an alias.  */
34398#if defined (__stub_dsyev) || defined (__stub___dsyev)
34399choke me
34400#else
34401char (*f) () = dsyev;
34402#endif
34403#ifdef __cplusplus
34404}
34405#endif
34406
34407#ifdef F77_DUMMY_MAIN
34408
34409#  ifdef __cplusplus
34410     extern "C"
34411#  endif
34412   int F77_DUMMY_MAIN() { return 1; }
34413
34414#endif
34415int
34416main ()
34417{
34418return f != dsyev;
34419  ;
34420  return 0;
34421}
34422_ACEOF
34423rm -f conftest.$ac_objext conftest$ac_exeext
34424if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34425  (eval $ac_link) 2>conftest.er1
34426  ac_status=$?
34427  grep -v '^ *+' conftest.er1 >conftest.err
34428  rm -f conftest.er1
34429  cat conftest.err >&5
34430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34431  (exit $ac_status); } &&
34432	 { ac_try='test -z "$ac_c_werror_flag"
34433			 || test ! -s conftest.err'
34434  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34435  (eval $ac_try) 2>&5
34436  ac_status=$?
34437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34438  (exit $ac_status); }; } &&
34439	 { ac_try='test -s conftest$ac_exeext'
34440  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34441  (eval $ac_try) 2>&5
34442  ac_status=$?
34443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34444  (exit $ac_status); }; }; then
34445  ac_cv_func_dsyev=yes
34446else
34447  echo "$as_me: failed program was:" >&5
34448sed 's/^/| /' conftest.$ac_ext >&5
34449
34450ac_cv_func_dsyev=no
34451fi
34452rm -f conftest.err conftest.$ac_objext \
34453      conftest$ac_exeext conftest.$ac_ext
34454fi
34455echo "$as_me:$LINENO: result: $ac_cv_func_dsyev" >&5
34456echo "${ECHO_T}$ac_cv_func_dsyev" >&6
34457if test $ac_cv_func_dsyev = yes; then
34458  use_lapack="$BLAS_LIBS"
34459fi
34460
34461      ac_ext=cc
34462ac_cpp='$CXXCPP $CPPFLAGS'
34463ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34464ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34465ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34466
34467    fi
34468    LIBS="$coin_save_LIBS"
34469  fi
34470  if test -z "$use_lapack"; then
34471    # Try to autodetect the library for lapack based on build system
34472    case $build in
34473      # TODO: Is this check actually needed here, since -lcomplib.sigmath should have been recognized as Blas library,
34474      #       and above it is checked whether the Blas library already contains Lapack
34475      *-sgi-*)
34476        echo "$as_me:$LINENO: checking whether -lcomplib.sgimath has LAPACK" >&5
34477echo $ECHO_N "checking whether -lcomplib.sgimath has LAPACK... $ECHO_C" >&6
34478        coin_save_LIBS="$LIBS"
34479        coin_need_flibs=no
34480        LIBS="-lcomplib.sgimath $BLAS_LIBS $LIBS"
34481        case $ac_ext in
34482  f)
34483    cat >conftest.$ac_ext <<_ACEOF
34484/* confdefs.h.  */
34485_ACEOF
34486cat confdefs.h >>conftest.$ac_ext
34487cat >>conftest.$ac_ext <<_ACEOF
34488/* end confdefs.h.  */
34489
34490#ifdef F77_DUMMY_MAIN
34491
34492#  ifdef __cplusplus
34493     extern "C"
34494#  endif
34495   int F77_DUMMY_MAIN() { return 1; }
34496
34497#endif
34498int
34499main ()
34500{
34501      call dsyev
34502  ;
34503  return 0;
34504}
34505_ACEOF
34506rm -f conftest.$ac_objext conftest$ac_exeext
34507if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34508  (eval $ac_link) 2>conftest.er1
34509  ac_status=$?
34510  grep -v '^ *+' conftest.er1 >conftest.err
34511  rm -f conftest.er1
34512  cat conftest.err >&5
34513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34514  (exit $ac_status); } &&
34515	 { ac_try='test -z "$ac_cxx_werror_flag"
34516			 || test ! -s conftest.err'
34517  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34518  (eval $ac_try) 2>&5
34519  ac_status=$?
34520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34521  (exit $ac_status); }; } &&
34522	 { ac_try='test -s conftest$ac_exeext'
34523  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34524  (eval $ac_try) 2>&5
34525  ac_status=$?
34526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34527  (exit $ac_status); }; }; then
34528  use_lapack="-lcomplib.sgimath $BLAS_LIBS"
34529                           if test $coin_need_flibs = yes ; then
34530                             use_lapack="$use_lapack $FLIBS"
34531                           fi
34532                           echo "$as_me:$LINENO: result: yes: $use_lapack" >&5
34533echo "${ECHO_T}yes: $use_lapack" >&6
34534
34535else
34536  echo "$as_me: failed program was:" >&5
34537sed 's/^/| /' conftest.$ac_ext >&5
34538
34539echo "$as_me:$LINENO: result: no" >&5
34540echo "${ECHO_T}no" >&6
34541fi
34542rm -f conftest.err conftest.$ac_objext \
34543      conftest$ac_exeext conftest.$ac_ext
34544    ;;
34545  c)
34546    ac_ext=f
34547ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
34548ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34549ac_compiler_gnu=$ac_cv_f77_compiler_gnu
34550case $ac_cv_f77_mangling in
34551  upper*) ac_val="DSYEV" ;;
34552  lower*) ac_val="dsyev" ;;
34553  *)      ac_val="unknown" ;;
34554esac
34555case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
34556
34557cfuncdsyev="$ac_val"
34558
34559ac_ext=cc
34560ac_cpp='$CXXCPP $CPPFLAGS'
34561ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34562ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34563ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34564
34565    if test x"$coin_need_flibs" = xyes; then
34566      flink_try=no;
34567    else
34568      cat >conftest.$ac_ext <<_ACEOF
34569/* confdefs.h.  */
34570_ACEOF
34571cat confdefs.h >>conftest.$ac_ext
34572cat >>conftest.$ac_ext <<_ACEOF
34573/* end confdefs.h.  */
34574void $cfuncdsyev();
34575#ifdef F77_DUMMY_MAIN
34576
34577#  ifdef __cplusplus
34578     extern "C"
34579#  endif
34580   int F77_DUMMY_MAIN() { return 1; }
34581
34582#endif
34583int
34584main ()
34585{
34586$cfuncdsyev()
34587  ;
34588  return 0;
34589}
34590_ACEOF
34591rm -f conftest.$ac_objext conftest$ac_exeext
34592if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34593  (eval $ac_link) 2>conftest.er1
34594  ac_status=$?
34595  grep -v '^ *+' conftest.er1 >conftest.err
34596  rm -f conftest.er1
34597  cat conftest.err >&5
34598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34599  (exit $ac_status); } &&
34600	 { ac_try='test -z "$ac_cxx_werror_flag"
34601			 || test ! -s conftest.err'
34602  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34603  (eval $ac_try) 2>&5
34604  ac_status=$?
34605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34606  (exit $ac_status); }; } &&
34607	 { ac_try='test -s conftest$ac_exeext'
34608  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34609  (eval $ac_try) 2>&5
34610  ac_status=$?
34611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34612  (exit $ac_status); }; }; then
34613  flink_try=yes
34614else
34615  echo "$as_me: failed program was:" >&5
34616sed 's/^/| /' conftest.$ac_ext >&5
34617
34618flink_try=no
34619fi
34620rm -f conftest.err conftest.$ac_objext \
34621      conftest$ac_exeext conftest.$ac_ext
34622    fi
34623    if test $flink_try = yes; then
34624      use_lapack="-lcomplib.sgimath $BLAS_LIBS"
34625                           if test $coin_need_flibs = yes ; then
34626                             use_lapack="$use_lapack $FLIBS"
34627                           fi
34628                           echo "$as_me:$LINENO: result: yes: $use_lapack" >&5
34629echo "${ECHO_T}yes: $use_lapack" >&6
34630
34631    else
34632      if test x"$FLIBS" != x; then
34633        flink_save_libs="$LIBS"
34634        LIBS="$LIBS $FLIBS"
34635        cat >conftest.$ac_ext <<_ACEOF
34636/* confdefs.h.  */
34637_ACEOF
34638cat confdefs.h >>conftest.$ac_ext
34639cat >>conftest.$ac_ext <<_ACEOF
34640/* end confdefs.h.  */
34641void $cfuncdsyev();
34642#ifdef F77_DUMMY_MAIN
34643
34644#  ifdef __cplusplus
34645     extern "C"
34646#  endif
34647   int F77_DUMMY_MAIN() { return 1; }
34648
34649#endif
34650int
34651main ()
34652{
34653$cfuncdsyev()
34654  ;
34655  return 0;
34656}
34657_ACEOF
34658rm -f conftest.$ac_objext conftest$ac_exeext
34659if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34660  (eval $ac_link) 2>conftest.er1
34661  ac_status=$?
34662  grep -v '^ *+' conftest.er1 >conftest.err
34663  rm -f conftest.er1
34664  cat conftest.err >&5
34665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34666  (exit $ac_status); } &&
34667	 { ac_try='test -z "$ac_cxx_werror_flag"
34668			 || test ! -s conftest.err'
34669  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34670  (eval $ac_try) 2>&5
34671  ac_status=$?
34672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34673  (exit $ac_status); }; } &&
34674	 { ac_try='test -s conftest$ac_exeext'
34675  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34676  (eval $ac_try) 2>&5
34677  ac_status=$?
34678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34679  (exit $ac_status); }; }; then
34680  LIBS="$flink_save_libs"
34681                     coin_need_flibs=yes
34682                     use_lapack="-lcomplib.sgimath $BLAS_LIBS"
34683                           if test $coin_need_flibs = yes ; then
34684                             use_lapack="$use_lapack $FLIBS"
34685                           fi
34686                           echo "$as_me:$LINENO: result: yes: $use_lapack" >&5
34687echo "${ECHO_T}yes: $use_lapack" >&6
34688
34689
34690else
34691  echo "$as_me: failed program was:" >&5
34692sed 's/^/| /' conftest.$ac_ext >&5
34693
34694LIBS="$flink_save_libs"
34695                     echo "$as_me:$LINENO: result: no" >&5
34696echo "${ECHO_T}no" >&6
34697fi
34698rm -f conftest.err conftest.$ac_objext \
34699      conftest$ac_exeext conftest.$ac_ext
34700      else
34701        echo "$as_me:$LINENO: result: no" >&5
34702echo "${ECHO_T}no" >&6
34703      fi
34704    fi
34705    ;;
34706  cc|cpp)
34707    ac_ext=f
34708ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
34709ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34710ac_compiler_gnu=$ac_cv_f77_compiler_gnu
34711case $ac_cv_f77_mangling in
34712  upper*) ac_val="DSYEV" ;;
34713  lower*) ac_val="dsyev" ;;
34714  *)      ac_val="unknown" ;;
34715esac
34716case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
34717
34718cfuncdsyev="$ac_val"
34719
34720ac_ext=cc
34721ac_cpp='$CXXCPP $CPPFLAGS'
34722ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34723ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34724ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34725
34726    if test x"$coin_need_flibs" = xyes; then
34727      flink_try=no;
34728    else
34729      cat >conftest.$ac_ext <<_ACEOF
34730/* confdefs.h.  */
34731_ACEOF
34732cat confdefs.h >>conftest.$ac_ext
34733cat >>conftest.$ac_ext <<_ACEOF
34734/* end confdefs.h.  */
34735extern "C" {void $cfuncdsyev();}
34736#ifdef F77_DUMMY_MAIN
34737
34738#  ifdef __cplusplus
34739     extern "C"
34740#  endif
34741   int F77_DUMMY_MAIN() { return 1; }
34742
34743#endif
34744int
34745main ()
34746{
34747$cfuncdsyev()
34748  ;
34749  return 0;
34750}
34751_ACEOF
34752rm -f conftest.$ac_objext conftest$ac_exeext
34753if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34754  (eval $ac_link) 2>conftest.er1
34755  ac_status=$?
34756  grep -v '^ *+' conftest.er1 >conftest.err
34757  rm -f conftest.er1
34758  cat conftest.err >&5
34759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34760  (exit $ac_status); } &&
34761	 { ac_try='test -z "$ac_cxx_werror_flag"
34762			 || test ! -s conftest.err'
34763  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34764  (eval $ac_try) 2>&5
34765  ac_status=$?
34766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34767  (exit $ac_status); }; } &&
34768	 { ac_try='test -s conftest$ac_exeext'
34769  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34770  (eval $ac_try) 2>&5
34771  ac_status=$?
34772  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34773  (exit $ac_status); }; }; then
34774  flink_try=yes
34775else
34776  echo "$as_me: failed program was:" >&5
34777sed 's/^/| /' conftest.$ac_ext >&5
34778
34779flink_try=no
34780fi
34781rm -f conftest.err conftest.$ac_objext \
34782      conftest$ac_exeext conftest.$ac_ext
34783    fi
34784    if test $flink_try = yes; then
34785      use_lapack="-lcomplib.sgimath $BLAS_LIBS"
34786                           if test $coin_need_flibs = yes ; then
34787                             use_lapack="$use_lapack $FLIBS"
34788                           fi
34789                           echo "$as_me:$LINENO: result: yes: $use_lapack" >&5
34790echo "${ECHO_T}yes: $use_lapack" >&6
34791
34792    else
34793      if test x"$FLIBS" != x; then
34794        flink_save_libs="$LIBS"
34795        LIBS="$LIBS $FLIBS"
34796        cat >conftest.$ac_ext <<_ACEOF
34797/* confdefs.h.  */
34798_ACEOF
34799cat confdefs.h >>conftest.$ac_ext
34800cat >>conftest.$ac_ext <<_ACEOF
34801/* end confdefs.h.  */
34802extern "C" {void $cfuncdsyev();}
34803#ifdef F77_DUMMY_MAIN
34804
34805#  ifdef __cplusplus
34806     extern "C"
34807#  endif
34808   int F77_DUMMY_MAIN() { return 1; }
34809
34810#endif
34811int
34812main ()
34813{
34814$cfuncdsyev()
34815  ;
34816  return 0;
34817}
34818_ACEOF
34819rm -f conftest.$ac_objext conftest$ac_exeext
34820if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34821  (eval $ac_link) 2>conftest.er1
34822  ac_status=$?
34823  grep -v '^ *+' conftest.er1 >conftest.err
34824  rm -f conftest.er1
34825  cat conftest.err >&5
34826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34827  (exit $ac_status); } &&
34828	 { ac_try='test -z "$ac_cxx_werror_flag"
34829			 || test ! -s conftest.err'
34830  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34831  (eval $ac_try) 2>&5
34832  ac_status=$?
34833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34834  (exit $ac_status); }; } &&
34835	 { ac_try='test -s conftest$ac_exeext'
34836  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34837  (eval $ac_try) 2>&5
34838  ac_status=$?
34839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34840  (exit $ac_status); }; }; then
34841  LIBS="$flink_save_libs"
34842                     coin_need_flibs=yes
34843                     use_lapack="-lcomplib.sgimath $BLAS_LIBS"
34844                           if test $coin_need_flibs = yes ; then
34845                             use_lapack="$use_lapack $FLIBS"
34846                           fi
34847                           echo "$as_me:$LINENO: result: yes: $use_lapack" >&5
34848echo "${ECHO_T}yes: $use_lapack" >&6
34849
34850
34851else
34852  echo "$as_me: failed program was:" >&5
34853sed 's/^/| /' conftest.$ac_ext >&5
34854
34855LIBS="$flink_save_libs"
34856                     echo "$as_me:$LINENO: result: no" >&5
34857echo "${ECHO_T}no" >&6
34858fi
34859rm -f conftest.err conftest.$ac_objext \
34860      conftest$ac_exeext conftest.$ac_ext
34861      else
34862        echo "$as_me:$LINENO: result: no" >&5
34863echo "${ECHO_T}no" >&6
34864      fi
34865    fi
34866    ;;
34867esac
34868
34869        LIBS="$coin_save_LIBS"
34870        ;;
34871
34872      # See comments in COIN_CHECK_PACKAGE_BLAS.
34873      # TODO: Is this check actually needed here, since -lsunperf should have been recognized as Blas library,
34874      #       and above it is checked whether the Blas library already contains Lapack
34875      *-*-solaris*)
34876        echo "$as_me:$LINENO: checking for LAPACK in libsunperf" >&5
34877echo $ECHO_N "checking for LAPACK in libsunperf... $ECHO_C" >&6
34878        coin_need_flibs=no
34879        coin_save_LIBS="$LIBS"
34880        LIBS="-lsunperf $BLAS_LIBS $FLIBS $LIBS"
34881        case $ac_ext in
34882  f)
34883    cat >conftest.$ac_ext <<_ACEOF
34884/* confdefs.h.  */
34885_ACEOF
34886cat confdefs.h >>conftest.$ac_ext
34887cat >>conftest.$ac_ext <<_ACEOF
34888/* end confdefs.h.  */
34889
34890#ifdef F77_DUMMY_MAIN
34891
34892#  ifdef __cplusplus
34893     extern "C"
34894#  endif
34895   int F77_DUMMY_MAIN() { return 1; }
34896
34897#endif
34898int
34899main ()
34900{
34901      call dsyev
34902  ;
34903  return 0;
34904}
34905_ACEOF
34906rm -f conftest.$ac_objext conftest$ac_exeext
34907if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34908  (eval $ac_link) 2>conftest.er1
34909  ac_status=$?
34910  grep -v '^ *+' conftest.er1 >conftest.err
34911  rm -f conftest.er1
34912  cat conftest.err >&5
34913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34914  (exit $ac_status); } &&
34915	 { ac_try='test -z "$ac_cxx_werror_flag"
34916			 || test ! -s conftest.err'
34917  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34918  (eval $ac_try) 2>&5
34919  ac_status=$?
34920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34921  (exit $ac_status); }; } &&
34922	 { ac_try='test -s conftest$ac_exeext'
34923  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34924  (eval $ac_try) 2>&5
34925  ac_status=$?
34926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34927  (exit $ac_status); }; }; then
34928  use_lapack='-lsunperf $BLAS_LIBS'
34929                           if test $coin_need_flibs = yes ; then
34930                             use_lapack="$use_lapack $FLIBS"
34931                           fi
34932                           echo "$as_me:$LINENO: result: yes: $use_lapack" >&5
34933echo "${ECHO_T}yes: $use_lapack" >&6
34934
34935else
34936  echo "$as_me: failed program was:" >&5
34937sed 's/^/| /' conftest.$ac_ext >&5
34938
34939echo "$as_me:$LINENO: result: no" >&5
34940echo "${ECHO_T}no" >&6
34941fi
34942rm -f conftest.err conftest.$ac_objext \
34943      conftest$ac_exeext conftest.$ac_ext
34944    ;;
34945  c)
34946    ac_ext=f
34947ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
34948ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34949ac_compiler_gnu=$ac_cv_f77_compiler_gnu
34950case $ac_cv_f77_mangling in
34951  upper*) ac_val="DSYEV" ;;
34952  lower*) ac_val="dsyev" ;;
34953  *)      ac_val="unknown" ;;
34954esac
34955case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
34956
34957cfuncdsyev="$ac_val"
34958
34959ac_ext=cc
34960ac_cpp='$CXXCPP $CPPFLAGS'
34961ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34962ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34963ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34964
34965    if test x"$coin_need_flibs" = xyes; then
34966      flink_try=no;
34967    else
34968      cat >conftest.$ac_ext <<_ACEOF
34969/* confdefs.h.  */
34970_ACEOF
34971cat confdefs.h >>conftest.$ac_ext
34972cat >>conftest.$ac_ext <<_ACEOF
34973/* end confdefs.h.  */
34974void $cfuncdsyev();
34975#ifdef F77_DUMMY_MAIN
34976
34977#  ifdef __cplusplus
34978     extern "C"
34979#  endif
34980   int F77_DUMMY_MAIN() { return 1; }
34981
34982#endif
34983int
34984main ()
34985{
34986$cfuncdsyev()
34987  ;
34988  return 0;
34989}
34990_ACEOF
34991rm -f conftest.$ac_objext conftest$ac_exeext
34992if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34993  (eval $ac_link) 2>conftest.er1
34994  ac_status=$?
34995  grep -v '^ *+' conftest.er1 >conftest.err
34996  rm -f conftest.er1
34997  cat conftest.err >&5
34998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34999  (exit $ac_status); } &&
35000	 { ac_try='test -z "$ac_cxx_werror_flag"
35001			 || test ! -s conftest.err'
35002  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35003  (eval $ac_try) 2>&5
35004  ac_status=$?
35005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35006  (exit $ac_status); }; } &&
35007	 { ac_try='test -s conftest$ac_exeext'
35008  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35009  (eval $ac_try) 2>&5
35010  ac_status=$?
35011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35012  (exit $ac_status); }; }; then
35013  flink_try=yes
35014else
35015  echo "$as_me: failed program was:" >&5
35016sed 's/^/| /' conftest.$ac_ext >&5
35017
35018flink_try=no
35019fi
35020rm -f conftest.err conftest.$ac_objext \
35021      conftest$ac_exeext conftest.$ac_ext
35022    fi
35023    if test $flink_try = yes; then
35024      use_lapack='-lsunperf $BLAS_LIBS'
35025                           if test $coin_need_flibs = yes ; then
35026                             use_lapack="$use_lapack $FLIBS"
35027                           fi
35028                           echo "$as_me:$LINENO: result: yes: $use_lapack" >&5
35029echo "${ECHO_T}yes: $use_lapack" >&6
35030
35031    else
35032      if test x"$FLIBS" != x; then
35033        flink_save_libs="$LIBS"
35034        LIBS="$LIBS $FLIBS"
35035        cat >conftest.$ac_ext <<_ACEOF
35036/* confdefs.h.  */
35037_ACEOF
35038cat confdefs.h >>conftest.$ac_ext
35039cat >>conftest.$ac_ext <<_ACEOF
35040/* end confdefs.h.  */
35041void $cfuncdsyev();
35042#ifdef F77_DUMMY_MAIN
35043
35044#  ifdef __cplusplus
35045     extern "C"
35046#  endif
35047   int F77_DUMMY_MAIN() { return 1; }
35048
35049#endif
35050int
35051main ()
35052{
35053$cfuncdsyev()
35054  ;
35055  return 0;
35056}
35057_ACEOF
35058rm -f conftest.$ac_objext conftest$ac_exeext
35059if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35060  (eval $ac_link) 2>conftest.er1
35061  ac_status=$?
35062  grep -v '^ *+' conftest.er1 >conftest.err
35063  rm -f conftest.er1
35064  cat conftest.err >&5
35065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35066  (exit $ac_status); } &&
35067	 { ac_try='test -z "$ac_cxx_werror_flag"
35068			 || test ! -s conftest.err'
35069  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35070  (eval $ac_try) 2>&5
35071  ac_status=$?
35072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35073  (exit $ac_status); }; } &&
35074	 { ac_try='test -s conftest$ac_exeext'
35075  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35076  (eval $ac_try) 2>&5
35077  ac_status=$?
35078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35079  (exit $ac_status); }; }; then
35080  LIBS="$flink_save_libs"
35081                     coin_need_flibs=yes
35082                     use_lapack='-lsunperf $BLAS_LIBS'
35083                           if test $coin_need_flibs = yes ; then
35084                             use_lapack="$use_lapack $FLIBS"
35085                           fi
35086                           echo "$as_me:$LINENO: result: yes: $use_lapack" >&5
35087echo "${ECHO_T}yes: $use_lapack" >&6
35088
35089
35090else
35091  echo "$as_me: failed program was:" >&5
35092sed 's/^/| /' conftest.$ac_ext >&5
35093
35094LIBS="$flink_save_libs"
35095                     echo "$as_me:$LINENO: result: no" >&5
35096echo "${ECHO_T}no" >&6
35097fi
35098rm -f conftest.err conftest.$ac_objext \
35099      conftest$ac_exeext conftest.$ac_ext
35100      else
35101        echo "$as_me:$LINENO: result: no" >&5
35102echo "${ECHO_T}no" >&6
35103      fi
35104    fi
35105    ;;
35106  cc|cpp)
35107    ac_ext=f
35108ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
35109ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35110ac_compiler_gnu=$ac_cv_f77_compiler_gnu
35111case $ac_cv_f77_mangling in
35112  upper*) ac_val="DSYEV" ;;
35113  lower*) ac_val="dsyev" ;;
35114  *)      ac_val="unknown" ;;
35115esac
35116case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
35117
35118cfuncdsyev="$ac_val"
35119
35120ac_ext=cc
35121ac_cpp='$CXXCPP $CPPFLAGS'
35122ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35123ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35124ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35125
35126    if test x"$coin_need_flibs" = xyes; then
35127      flink_try=no;
35128    else
35129      cat >conftest.$ac_ext <<_ACEOF
35130/* confdefs.h.  */
35131_ACEOF
35132cat confdefs.h >>conftest.$ac_ext
35133cat >>conftest.$ac_ext <<_ACEOF
35134/* end confdefs.h.  */
35135extern "C" {void $cfuncdsyev();}
35136#ifdef F77_DUMMY_MAIN
35137
35138#  ifdef __cplusplus
35139     extern "C"
35140#  endif
35141   int F77_DUMMY_MAIN() { return 1; }
35142
35143#endif
35144int
35145main ()
35146{
35147$cfuncdsyev()
35148  ;
35149  return 0;
35150}
35151_ACEOF
35152rm -f conftest.$ac_objext conftest$ac_exeext
35153if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35154  (eval $ac_link) 2>conftest.er1
35155  ac_status=$?
35156  grep -v '^ *+' conftest.er1 >conftest.err
35157  rm -f conftest.er1
35158  cat conftest.err >&5
35159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35160  (exit $ac_status); } &&
35161	 { ac_try='test -z "$ac_cxx_werror_flag"
35162			 || test ! -s conftest.err'
35163  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35164  (eval $ac_try) 2>&5
35165  ac_status=$?
35166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35167  (exit $ac_status); }; } &&
35168	 { ac_try='test -s conftest$ac_exeext'
35169  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35170  (eval $ac_try) 2>&5
35171  ac_status=$?
35172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35173  (exit $ac_status); }; }; then
35174  flink_try=yes
35175else
35176  echo "$as_me: failed program was:" >&5
35177sed 's/^/| /' conftest.$ac_ext >&5
35178
35179flink_try=no
35180fi
35181rm -f conftest.err conftest.$ac_objext \
35182      conftest$ac_exeext conftest.$ac_ext
35183    fi
35184    if test $flink_try = yes; then
35185      use_lapack='-lsunperf $BLAS_LIBS'
35186                           if test $coin_need_flibs = yes ; then
35187                             use_lapack="$use_lapack $FLIBS"
35188                           fi
35189                           echo "$as_me:$LINENO: result: yes: $use_lapack" >&5
35190echo "${ECHO_T}yes: $use_lapack" >&6
35191
35192    else
35193      if test x"$FLIBS" != x; then
35194        flink_save_libs="$LIBS"
35195        LIBS="$LIBS $FLIBS"
35196        cat >conftest.$ac_ext <<_ACEOF
35197/* confdefs.h.  */
35198_ACEOF
35199cat confdefs.h >>conftest.$ac_ext
35200cat >>conftest.$ac_ext <<_ACEOF
35201/* end confdefs.h.  */
35202extern "C" {void $cfuncdsyev();}
35203#ifdef F77_DUMMY_MAIN
35204
35205#  ifdef __cplusplus
35206     extern "C"
35207#  endif
35208   int F77_DUMMY_MAIN() { return 1; }
35209
35210#endif
35211int
35212main ()
35213{
35214$cfuncdsyev()
35215  ;
35216  return 0;
35217}
35218_ACEOF
35219rm -f conftest.$ac_objext conftest$ac_exeext
35220if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35221  (eval $ac_link) 2>conftest.er1
35222  ac_status=$?
35223  grep -v '^ *+' conftest.er1 >conftest.err
35224  rm -f conftest.er1
35225  cat conftest.err >&5
35226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35227  (exit $ac_status); } &&
35228	 { ac_try='test -z "$ac_cxx_werror_flag"
35229			 || test ! -s conftest.err'
35230  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35231  (eval $ac_try) 2>&5
35232  ac_status=$?
35233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35234  (exit $ac_status); }; } &&
35235	 { ac_try='test -s conftest$ac_exeext'
35236  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35237  (eval $ac_try) 2>&5
35238  ac_status=$?
35239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35240  (exit $ac_status); }; }; then
35241  LIBS="$flink_save_libs"
35242                     coin_need_flibs=yes
35243                     use_lapack='-lsunperf $BLAS_LIBS'
35244                           if test $coin_need_flibs = yes ; then
35245                             use_lapack="$use_lapack $FLIBS"
35246                           fi
35247                           echo "$as_me:$LINENO: result: yes: $use_lapack" >&5
35248echo "${ECHO_T}yes: $use_lapack" >&6
35249
35250
35251else
35252  echo "$as_me: failed program was:" >&5
35253sed 's/^/| /' conftest.$ac_ext >&5
35254
35255LIBS="$flink_save_libs"
35256                     echo "$as_me:$LINENO: result: no" >&5
35257echo "${ECHO_T}no" >&6
35258fi
35259rm -f conftest.err conftest.$ac_objext \
35260      conftest$ac_exeext conftest.$ac_ext
35261      else
35262        echo "$as_me:$LINENO: result: no" >&5
35263echo "${ECHO_T}no" >&6
35264      fi
35265    fi
35266    ;;
35267esac
35268
35269        LIBS="$coin_save_LIBS"
35270        ;;
35271        # On cygwin, do this check only if doscompile is disabled. The prebuilt library
35272        # will want to link with cygwin, hence won't run standalone in DOS.
35273    esac
35274  fi
35275
35276  if test -z "$use_lapack" ; then
35277    echo "$as_me:$LINENO: checking whether -llapack has LAPACK" >&5
35278echo $ECHO_N "checking whether -llapack has LAPACK... $ECHO_C" >&6
35279    coin_need_flibs=no
35280    coin_save_LIBS="$LIBS"
35281    LIBS="-llapack $BLAS_LIBS $LIBS"
35282    case $ac_ext in
35283  f)
35284    cat >conftest.$ac_ext <<_ACEOF
35285/* confdefs.h.  */
35286_ACEOF
35287cat confdefs.h >>conftest.$ac_ext
35288cat >>conftest.$ac_ext <<_ACEOF
35289/* end confdefs.h.  */
35290
35291#ifdef F77_DUMMY_MAIN
35292
35293#  ifdef __cplusplus
35294     extern "C"
35295#  endif
35296   int F77_DUMMY_MAIN() { return 1; }
35297
35298#endif
35299int
35300main ()
35301{
35302      call dsyev
35303  ;
35304  return 0;
35305}
35306_ACEOF
35307rm -f conftest.$ac_objext conftest$ac_exeext
35308if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35309  (eval $ac_link) 2>conftest.er1
35310  ac_status=$?
35311  grep -v '^ *+' conftest.er1 >conftest.err
35312  rm -f conftest.er1
35313  cat conftest.err >&5
35314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35315  (exit $ac_status); } &&
35316	 { ac_try='test -z "$ac_cxx_werror_flag"
35317			 || test ! -s conftest.err'
35318  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35319  (eval $ac_try) 2>&5
35320  ac_status=$?
35321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35322  (exit $ac_status); }; } &&
35323	 { ac_try='test -s conftest$ac_exeext'
35324  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35325  (eval $ac_try) 2>&5
35326  ac_status=$?
35327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35328  (exit $ac_status); }; }; then
35329  use_lapack='-llapack'
35330                       if test $coin_need_flibs = yes ; then
35331                         use_lapack="$use_lapack $FLIBS"
35332                       fi
35333                       echo "$as_me:$LINENO: result: yes: $use_lapack" >&5
35334echo "${ECHO_T}yes: $use_lapack" >&6
35335
35336else
35337  echo "$as_me: failed program was:" >&5
35338sed 's/^/| /' conftest.$ac_ext >&5
35339
35340echo "$as_me:$LINENO: result: no" >&5
35341echo "${ECHO_T}no" >&6
35342fi
35343rm -f conftest.err conftest.$ac_objext \
35344      conftest$ac_exeext conftest.$ac_ext
35345    ;;
35346  c)
35347    ac_ext=f
35348ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
35349ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35350ac_compiler_gnu=$ac_cv_f77_compiler_gnu
35351case $ac_cv_f77_mangling in
35352  upper*) ac_val="DSYEV" ;;
35353  lower*) ac_val="dsyev" ;;
35354  *)      ac_val="unknown" ;;
35355esac
35356case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
35357
35358cfuncdsyev="$ac_val"
35359
35360ac_ext=cc
35361ac_cpp='$CXXCPP $CPPFLAGS'
35362ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35363ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35364ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35365
35366    if test x"$coin_need_flibs" = xyes; then
35367      flink_try=no;
35368    else
35369      cat >conftest.$ac_ext <<_ACEOF
35370/* confdefs.h.  */
35371_ACEOF
35372cat confdefs.h >>conftest.$ac_ext
35373cat >>conftest.$ac_ext <<_ACEOF
35374/* end confdefs.h.  */
35375void $cfuncdsyev();
35376#ifdef F77_DUMMY_MAIN
35377
35378#  ifdef __cplusplus
35379     extern "C"
35380#  endif
35381   int F77_DUMMY_MAIN() { return 1; }
35382
35383#endif
35384int
35385main ()
35386{
35387$cfuncdsyev()
35388  ;
35389  return 0;
35390}
35391_ACEOF
35392rm -f conftest.$ac_objext conftest$ac_exeext
35393if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35394  (eval $ac_link) 2>conftest.er1
35395  ac_status=$?
35396  grep -v '^ *+' conftest.er1 >conftest.err
35397  rm -f conftest.er1
35398  cat conftest.err >&5
35399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35400  (exit $ac_status); } &&
35401	 { ac_try='test -z "$ac_cxx_werror_flag"
35402			 || test ! -s conftest.err'
35403  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35404  (eval $ac_try) 2>&5
35405  ac_status=$?
35406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35407  (exit $ac_status); }; } &&
35408	 { ac_try='test -s conftest$ac_exeext'
35409  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35410  (eval $ac_try) 2>&5
35411  ac_status=$?
35412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35413  (exit $ac_status); }; }; then
35414  flink_try=yes
35415else
35416  echo "$as_me: failed program was:" >&5
35417sed 's/^/| /' conftest.$ac_ext >&5
35418
35419flink_try=no
35420fi
35421rm -f conftest.err conftest.$ac_objext \
35422      conftest$ac_exeext conftest.$ac_ext
35423    fi
35424    if test $flink_try = yes; then
35425      use_lapack='-llapack'
35426                       if test $coin_need_flibs = yes ; then
35427                         use_lapack="$use_lapack $FLIBS"
35428                       fi
35429                       echo "$as_me:$LINENO: result: yes: $use_lapack" >&5
35430echo "${ECHO_T}yes: $use_lapack" >&6
35431
35432    else
35433      if test x"$FLIBS" != x; then
35434        flink_save_libs="$LIBS"
35435        LIBS="$LIBS $FLIBS"
35436        cat >conftest.$ac_ext <<_ACEOF
35437/* confdefs.h.  */
35438_ACEOF
35439cat confdefs.h >>conftest.$ac_ext
35440cat >>conftest.$ac_ext <<_ACEOF
35441/* end confdefs.h.  */
35442void $cfuncdsyev();
35443#ifdef F77_DUMMY_MAIN
35444
35445#  ifdef __cplusplus
35446     extern "C"
35447#  endif
35448   int F77_DUMMY_MAIN() { return 1; }
35449
35450#endif
35451int
35452main ()
35453{
35454$cfuncdsyev()
35455  ;
35456  return 0;
35457}
35458_ACEOF
35459rm -f conftest.$ac_objext conftest$ac_exeext
35460if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35461  (eval $ac_link) 2>conftest.er1
35462  ac_status=$?
35463  grep -v '^ *+' conftest.er1 >conftest.err
35464  rm -f conftest.er1
35465  cat conftest.err >&5
35466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35467  (exit $ac_status); } &&
35468	 { ac_try='test -z "$ac_cxx_werror_flag"
35469			 || test ! -s conftest.err'
35470  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35471  (eval $ac_try) 2>&5
35472  ac_status=$?
35473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35474  (exit $ac_status); }; } &&
35475	 { ac_try='test -s conftest$ac_exeext'
35476  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35477  (eval $ac_try) 2>&5
35478  ac_status=$?
35479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35480  (exit $ac_status); }; }; then
35481  LIBS="$flink_save_libs"
35482                     coin_need_flibs=yes
35483                     use_lapack='-llapack'
35484                       if test $coin_need_flibs = yes ; then
35485                         use_lapack="$use_lapack $FLIBS"
35486                       fi
35487                       echo "$as_me:$LINENO: result: yes: $use_lapack" >&5
35488echo "${ECHO_T}yes: $use_lapack" >&6
35489
35490
35491else
35492  echo "$as_me: failed program was:" >&5
35493sed 's/^/| /' conftest.$ac_ext >&5
35494
35495LIBS="$flink_save_libs"
35496                     echo "$as_me:$LINENO: result: no" >&5
35497echo "${ECHO_T}no" >&6
35498fi
35499rm -f conftest.err conftest.$ac_objext \
35500      conftest$ac_exeext conftest.$ac_ext
35501      else
35502        echo "$as_me:$LINENO: result: no" >&5
35503echo "${ECHO_T}no" >&6
35504      fi
35505    fi
35506    ;;
35507  cc|cpp)
35508    ac_ext=f
35509ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
35510ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35511ac_compiler_gnu=$ac_cv_f77_compiler_gnu
35512case $ac_cv_f77_mangling in
35513  upper*) ac_val="DSYEV" ;;
35514  lower*) ac_val="dsyev" ;;
35515  *)      ac_val="unknown" ;;
35516esac
35517case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
35518
35519cfuncdsyev="$ac_val"
35520
35521ac_ext=cc
35522ac_cpp='$CXXCPP $CPPFLAGS'
35523ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35524ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35525ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35526
35527    if test x"$coin_need_flibs" = xyes; then
35528      flink_try=no;
35529    else
35530      cat >conftest.$ac_ext <<_ACEOF
35531/* confdefs.h.  */
35532_ACEOF
35533cat confdefs.h >>conftest.$ac_ext
35534cat >>conftest.$ac_ext <<_ACEOF
35535/* end confdefs.h.  */
35536extern "C" {void $cfuncdsyev();}
35537#ifdef F77_DUMMY_MAIN
35538
35539#  ifdef __cplusplus
35540     extern "C"
35541#  endif
35542   int F77_DUMMY_MAIN() { return 1; }
35543
35544#endif
35545int
35546main ()
35547{
35548$cfuncdsyev()
35549  ;
35550  return 0;
35551}
35552_ACEOF
35553rm -f conftest.$ac_objext conftest$ac_exeext
35554if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35555  (eval $ac_link) 2>conftest.er1
35556  ac_status=$?
35557  grep -v '^ *+' conftest.er1 >conftest.err
35558  rm -f conftest.er1
35559  cat conftest.err >&5
35560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35561  (exit $ac_status); } &&
35562	 { ac_try='test -z "$ac_cxx_werror_flag"
35563			 || test ! -s conftest.err'
35564  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35565  (eval $ac_try) 2>&5
35566  ac_status=$?
35567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35568  (exit $ac_status); }; } &&
35569	 { ac_try='test -s conftest$ac_exeext'
35570  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35571  (eval $ac_try) 2>&5
35572  ac_status=$?
35573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35574  (exit $ac_status); }; }; then
35575  flink_try=yes
35576else
35577  echo "$as_me: failed program was:" >&5
35578sed 's/^/| /' conftest.$ac_ext >&5
35579
35580flink_try=no
35581fi
35582rm -f conftest.err conftest.$ac_objext \
35583      conftest$ac_exeext conftest.$ac_ext
35584    fi
35585    if test $flink_try = yes; then
35586      use_lapack='-llapack'
35587                       if test $coin_need_flibs = yes ; then
35588                         use_lapack="$use_lapack $FLIBS"
35589                       fi
35590                       echo "$as_me:$LINENO: result: yes: $use_lapack" >&5
35591echo "${ECHO_T}yes: $use_lapack" >&6
35592
35593    else
35594      if test x"$FLIBS" != x; then
35595        flink_save_libs="$LIBS"
35596        LIBS="$LIBS $FLIBS"
35597        cat >conftest.$ac_ext <<_ACEOF
35598/* confdefs.h.  */
35599_ACEOF
35600cat confdefs.h >>conftest.$ac_ext
35601cat >>conftest.$ac_ext <<_ACEOF
35602/* end confdefs.h.  */
35603extern "C" {void $cfuncdsyev();}
35604#ifdef F77_DUMMY_MAIN
35605
35606#  ifdef __cplusplus
35607     extern "C"
35608#  endif
35609   int F77_DUMMY_MAIN() { return 1; }
35610
35611#endif
35612int
35613main ()
35614{
35615$cfuncdsyev()
35616  ;
35617  return 0;
35618}
35619_ACEOF
35620rm -f conftest.$ac_objext conftest$ac_exeext
35621if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35622  (eval $ac_link) 2>conftest.er1
35623  ac_status=$?
35624  grep -v '^ *+' conftest.er1 >conftest.err
35625  rm -f conftest.er1
35626  cat conftest.err >&5
35627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35628  (exit $ac_status); } &&
35629	 { ac_try='test -z "$ac_cxx_werror_flag"
35630			 || test ! -s conftest.err'
35631  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35632  (eval $ac_try) 2>&5
35633  ac_status=$?
35634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35635  (exit $ac_status); }; } &&
35636	 { ac_try='test -s conftest$ac_exeext'
35637  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35638  (eval $ac_try) 2>&5
35639  ac_status=$?
35640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35641  (exit $ac_status); }; }; then
35642  LIBS="$flink_save_libs"
35643                     coin_need_flibs=yes
35644                     use_lapack='-llapack'
35645                       if test $coin_need_flibs = yes ; then
35646                         use_lapack="$use_lapack $FLIBS"
35647                       fi
35648                       echo "$as_me:$LINENO: result: yes: $use_lapack" >&5
35649echo "${ECHO_T}yes: $use_lapack" >&6
35650
35651
35652else
35653  echo "$as_me: failed program was:" >&5
35654sed 's/^/| /' conftest.$ac_ext >&5
35655
35656LIBS="$flink_save_libs"
35657                     echo "$as_me:$LINENO: result: no" >&5
35658echo "${ECHO_T}no" >&6
35659fi
35660rm -f conftest.err conftest.$ac_objext \
35661      conftest$ac_exeext conftest.$ac_ext
35662      else
35663        echo "$as_me:$LINENO: result: no" >&5
35664echo "${ECHO_T}no" >&6
35665      fi
35666    fi
35667    ;;
35668esac
35669
35670    LIBS="$coin_save_LIBS"
35671  fi
35672
35673  # If we have no other ideas, consider building LAPACK.
35674  if test -z "$use_lapack" ; then
35675    use_lapack=BUILD
35676  fi
35677fi
35678
35679if test "x$use_lapack" = xBUILD ; then
35680
35681echo "$as_me:$LINENO: checking for COIN-OR package Lapack" >&5
35682echo $ECHO_N "checking for COIN-OR package Lapack... $ECHO_C" >&6
35683
35684coin_has_lapack=notGiven
35685
35686# check if user wants to skip package in any case
35687if test x"$COIN_SKIP_PROJECTS" != x; then
35688  for dir in $COIN_SKIP_PROJECTS; do
35689    if test $dir = "Lapack"; then
35690      coin_has_lapack=skipping
35691    fi
35692  done
35693fi
35694
35695if test "$coin_has_lapack" != skipping; then
35696
35697# Check whether --with-m4_tolower(Lapack) or --without-m4_tolower(Lapack) was given.
35698if test "${with_lapack+set}" = set; then
35699  withval="$with_lapack"
35700  if test "$withval" = no ; then
35701       coin_has_lapack=skipping
35702     fi
35703
35704fi;
35705fi
35706
35707LAPACK_LIBS=
35708LAPACK_CFLAGS=
35709LAPACK_DATA=
35710LAPACK_DEPENDENCIES=
35711LAPACK_PCLIBS=
35712LAPACK_PCREQUIRES=
35713
35714
35715
35716
35717
35718
35719
35720
35721
35722
35723
35724
35725
35726
35727
35728
35729
35730#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
35731if test $coin_has_lapack != skipping; then
35732
35733# Check whether --with-m4_tolower(Lapack)-lib or --without-m4_tolower(Lapack)-lib was given.
35734if test "${with_lapack_lib+set}" = set; then
35735  withval="$with_lapack_lib"
35736  if test "$withval" = no ; then
35737       coin_has_lapack=skipping
35738     else
35739       coin_has_lapack=yes
35740       LAPACK_LIBS="$withval"
35741       LAPACK_PCLIBS="$withval"
35742
35743         COINUTILSLIB_PCLIBS="$withval $COINUTILSLIB_PCLIBS"
35744         COINUTILSLIB_LIBS="$withval $COINUTILSLIB_LIBS"
35745
35746       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
35747       if test -z "$PKG_CONFIG" ; then
35748         LAPACK_LIBS_INSTALLED="$withval"
35749         COINUTILSLIB_LIBS_INSTALLED="$withval $COINUTILSLIB_LIBS_INSTALLED"
35750       fi
35751     fi
35752
35753fi;
35754fi
35755
35756if test $coin_has_lapack != skipping; then
35757
35758# Check whether --with-m4_tolower(Lapack)-incdir or --without-m4_tolower(Lapack)-incdir was given.
35759if test "${with_lapack_incdir+set}" = set; then
35760  withval="$with_lapack_incdir"
35761  if test "$withval" = no ; then
35762       coin_has_lapack=skipping
35763     else
35764       coin_has_lapack=yes
35765       LAPACK_CFLAGS="-I`${CYGPATH_W} $withval`"
35766       COINUTILSLIB_CFLAGS="-I`${CYGPATH_W} $withval` $COINUTILSLIB_CFLAGS"
35767       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
35768       if test -z "$PKG_CONFIG" ; then
35769         LAPACK_CFLAGS_INSTALLED="$LAPACK_CFLAGS"
35770         COINUTILSLIB_CFLAGS_INSTALLED="$LAPACK_CFLAGS $COINUTILSLIB_CFLAGS_INSTALLED"
35771       fi
35772     fi
35773
35774fi;
35775fi
35776
35777if test $coin_has_lapack != skipping; then
35778
35779# Check whether --with-m4_tolower(Lapack)-datadir or --without-m4_tolower(Lapack)-datadir was given.
35780if test "${with_lapack_datadir+set}" = set; then
35781  withval="$with_lapack_datadir"
35782  if test "$withval" = no ; then
35783       coin_has_lapack=skipping
35784     else
35785       coin_has_lapack=yes
35786       LAPACK_DATA="$withval"
35787       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
35788       if test -z "$PKG_CONFIG" ; then
35789         LAPACK_DATA_INSTALLED="$withval"
35790       fi
35791     fi
35792
35793fi;
35794fi
35795
35796if test $coin_has_lapack = notGiven; then
35797  if test -n "$PKG_CONFIG" ; then
35798    # set search path for pkg-config
35799    # need to export variable to be sure that the following pkg-config gets these values
35800    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
35801    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
35802    export PKG_CONFIG_PATH
35803
35804    # let pkg-config do it's magic
35805
35806
35807
35808if test -n "$PKG_CONFIG" ; then
35809  if $PKG_CONFIG --exists "coinlapack"; then
35810    LAPACK_VERSIONS=`$PKG_CONFIG --modversion "coinlapack" 2>/dev/null | tr '\n' ' '`
35811     cflags=`$PKG_CONFIG --cflags "coinlapack" 2>/dev/null`
35812    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
35813	# thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
35814	# but only do this if is not trivial
35815    if test "$CYGPATH_W" != "echo" ; then
35816      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
35817      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
35818    fi
35819    LAPACK_CFLAGS="$cflags"
35820    LAPACK_LIBS=`$PKG_CONFIG --libs "coinlapack" 2>/dev/null`
35821    LAPACK_DATA=`$PKG_CONFIG --variable=datadir "coinlapack" 2>/dev/null`
35822     coin_has_lapack=yes
35823        echo "$as_me:$LINENO: result: yes: $LAPACK_VERSIONS" >&5
35824echo "${ECHO_T}yes: $LAPACK_VERSIONS" >&6
35825
35826        # adjust linker flags for (i)cl compiler
35827        # 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)
35828        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
35829        then
35830          LAPACK_LIBS=`echo " $LAPACK_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
35831        fi
35832        LAPACK_PCREQUIRES="coinlapack"
35833
35834        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in CoinUtilsLib
35835
35836          COINUTILSLIB_PCREQUIRES="coinlapack $COINUTILSLIB_PCREQUIRES"
35837          COINUTILSLIB_CFLAGS="$LAPACK_CFLAGS $COINUTILSLIB_CFLAGS"
35838          COINUTILSLIB_LIBS="$LAPACK_LIBS $COINUTILSLIB_LIBS"
35839
35840
35841
35842  else
35843    LAPACK_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "coinlapack"`
35844      coin_has_lapack=notGiven
35845        echo "$as_me:$LINENO: result: not given: $LAPACK_PKG_ERRORS" >&5
35846echo "${ECHO_T}not given: $LAPACK_PKG_ERRORS" >&6
35847
35848  fi
35849else
35850  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Lapack without pkg-config\"" >&5
35851echo "$as_me: error: \"Cannot check for existance of module Lapack without pkg-config\"" >&2;}
35852   { (exit 1); exit 1; }; }
35853fi
35854
35855
35856
35857
35858    # reset PKG_CONFIG_PATH variable
35859    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
35860    export PKG_CONFIG_PATH
35861
35862  else
35863    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
35864echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
35865
35866echo "$as_me:$LINENO: checking for COIN-OR package Lapack (fallback)" >&5
35867echo $ECHO_N "checking for COIN-OR package Lapack (fallback)... $ECHO_C" >&6
35868
35869coin_has_lapack=notGiven
35870LAPACK_LIBS=
35871LAPACK_LIBS_INSTALLED=
35872LAPACK_CFLAGS=
35873LAPACK_CFLAGS_INSTALLED=
35874LAPACK_DATA=
35875LAPACK_DATA_INSTALLED=
35876LAPACK_PCLIBS=
35877LAPACK_PCREQUIRES=
35878
35879# initial list of dependencies is "coinlapack", but we need to filter out version number specifications (= x, <= x, >= x, != x)
35880projtoprocess="coinlapack"
35881
35882# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
35883# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
35884# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
35885# also, we setup the DATA variable
35886allproj=""
35887allpcfiles=""
35888allpcifiles=""
35889while test "x$projtoprocess" != x ; do
35890
35891  for proj in $projtoprocess ; do
35892    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
35893    pcfile=""
35894    save_IFS="$IFS"
35895    IFS=":"
35896    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
35897      # 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
35898      if test -r "$dir/${proj}-uninstalled.pc" ; then
35899        pcfile="$dir/$proj-uninstalled.pc"
35900        if test -r "$dir/${proj}.pc" ; then
35901          pcifile="$dir/${proj}.pc"
35902        else
35903          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
35904echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
35905          pcifile=
35906        fi
35907        break
35908      fi
35909    done
35910    IFS="$save_IFS"
35911
35912    if test "x$pcfile" != x ; then
35913      # read dependencies from $pcfile and filter it
35914      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ 	]\{0,\}[^ 	]\{1,\}//g'`
35915
35916      # add projrequires to the front of the list of projects that have to be processed next
35917      # at the same time, remove $proj from this list
35918      projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
35919
35920      # read DATA from $pcfile, if _DATA is still empty
35921      if test "x$LAPACK_DATA" = x ; then
35922        projdatadir=
35923        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
35924        eval `sh -c "$pcfilemod"`
35925        LAPACK_DATA="$projdatadir"
35926      fi
35927
35928      allproj="$allproj $proj"
35929      allpcfiles="$pcfile:$allpcfiles"
35930
35931    else
35932      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
35933echo "${ECHO_T}no, dependency $proj not available" >&6
35934      allproj=fail
35935      break 2
35936    fi
35937
35938    if test "x$pcifile" != x ; then
35939      allpcifiles="$pcifile:$allpcifiles"
35940
35941      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
35942      if test "x$LAPACK_DATA_INSTALLED" = x ; then
35943        projdatadir=
35944        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
35945        eval `sh -c "$pcifilemod"`
35946        if test "${CYGPATH_W}" != "echo"; then
35947          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
35948        fi
35949        LAPACK_DATA_INSTALLED="$projdatadir"
35950      fi
35951
35952    fi
35953
35954    break
35955  done
35956
35957  # remove spaces on begin of $projtoprocess
35958  projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
35959
35960done
35961
35962if test "$allproj" != fail ; then
35963
35964  # now go through the list of .pc files and assemble compiler and linker flags
35965  # important is here to obey the reverse order that has been setup before,
35966  # since then libraries that are required by several others should be after these other libraries
35967  pcfilesprocessed=""
35968
35969  save_IFS="$IFS"
35970  IFS=":"
35971  for pcfile in $allpcfiles ; do
35972
35973    # if $pcfile has been processed already, skip this round
35974    if test "x$pcfilesprocessed" != x ; then
35975      for pcfiledone in $pcfilesprocessed ; do
35976        if test "$pcfiledone" = "$pcfile" ; then
35977          continue 2
35978        fi
35979      done
35980    fi
35981
35982    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
35983    #   replace "Libs:" by "echo projlibs="
35984    #   replace "Cflags:" by "echo projcflags="
35985    #   remove every line starting with <some word>:
35986    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
35987
35988    # set projcflags and projlibs variables by running $pcfilemod
35989    # 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
35990    projcflags=
35991    projlibs=
35992    IFS="$save_IFS"
35993    eval `sh -c "$pcfilemod"`
35994    IFS=":"
35995
35996    # add CYGPATH_W cludge into include flags and set CFLAGS variable
35997    if test "${CYGPATH_W}" != "echo"; then
35998      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
35999    fi
36000    LAPACK_CFLAGS="$projcflags $LAPACK_CFLAGS"
36001
36002    # set LIBS variable
36003    LAPACK_LIBS="$projlibs $LAPACK_LIBS"
36004
36005    # remember that we have processed $pcfile
36006    pcfilesprocessed="$pcfilesprocessed:$pcfile"
36007
36008  done
36009  IFS="$save_IFS"
36010
36011
36012  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
36013  # important is here again to obey the reverse order that has been setup before,
36014  # since then libraries that are required by several others should be after these other libraries
36015  pcfilesprocessed=""
36016
36017  save_IFS="$IFS"
36018  IFS=":"
36019  for pcfile in $allpcifiles ; do
36020
36021    # if $pcfile has been processed already, skip this round
36022    if test "x$pcfilesprocessed" != x ; then
36023      for pcfiledone in $pcfilesprocessed ; do
36024        if test "$pcfiledone" = "$pcfile" ; then
36025          continue 2
36026        fi
36027      done
36028    fi
36029
36030    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
36031    #   replace "Libs:" by "echo projlibs="
36032    #   replace "Cflags:" by "echo projcflags="
36033    #   remove every line starting with <some word>:
36034    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
36035
36036    # set projcflags and projlibs variables by running $pcfilemod
36037    # 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
36038    projcflags=
36039    projlibs=
36040    IFS="$save_IFS"
36041    eval `sh -c "$pcfilemod"`
36042    IFS=":"
36043
36044    # add CYGPATH_W cludge into include flags and set CFLAGS variable
36045    if test "${CYGPATH_W}" != "echo"; then
36046      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
36047    fi
36048    LAPACK_CFLAGS_INSTALLED="$projcflags $LAPACK_CFLAGS_INSTALLED"
36049
36050    # set LIBS variable
36051    LAPACK_LIBS_INSTALLED="$projlibs $LAPACK_LIBS_INSTALLED"
36052
36053    # remember that we have processed $pcfile
36054    pcfilesprocessed="$pcfilesprocessed:$pcfile"
36055
36056  done
36057  IFS="$save_IFS"
36058
36059
36060  # finish up
36061  coin_has_lapack=yes
36062  echo "$as_me:$LINENO: result: yes" >&5
36063echo "${ECHO_T}yes" >&6
36064
36065cat >>confdefs.h <<\_ACEOF
36066#define COIN_HAS_LAPACK 1
36067_ACEOF
36068
36069
36070  # adjust linker flags for (i)cl compiler
36071  # 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),
36072  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
36073  #    everything of the form "-lname" by "libname.lib", and
36074  #    everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
36075  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
36076  then
36077    LAPACK_LIBS=`echo " $LAPACK_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
36078    LAPACK_LIBS_INSTALLED=`echo " $LAPACK_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'`
36079  fi
36080
36081  LAPACK_PCREQUIRES="coinlapack"
36082
36083    COINUTILSLIB_PCREQUIRES="coinlapack $COINUTILSLIB_PCREQUIRES"
36084    COINUTILSLIB_CFLAGS="$LAPACK_CFLAGS $COINUTILSLIB_CFLAGS"
36085    COINUTILSLIB_LIBS="$LAPACK_LIBS $COINUTILSLIB_LIBS"
36086    COINUTILSLIB_CFLAGS_INSTALLED="$LAPACK_CFLAGS_INSTALLED $COINUTILSLIB_CFLAGS_INSTALLED"
36087    COINUTILSLIB_LIBS_INSTALLED="$LAPACK_LIBS_INSTALLED $COINUTILSLIB_LIBS_INSTALLED"
36088
36089
36090fi
36091
36092
36093
36094if test $coin_has_lapack != notGiven &&
36095                test $coin_has_lapack != skipping; then
36096  COIN_HAS_LAPACK_TRUE=
36097  COIN_HAS_LAPACK_FALSE='#'
36098else
36099  COIN_HAS_LAPACK_TRUE='#'
36100  COIN_HAS_LAPACK_FALSE=
36101fi
36102
36103
36104
36105  fi
36106
36107else
36108  echo "$as_me:$LINENO: result: $coin_has_lapack" >&5
36109echo "${ECHO_T}$coin_has_lapack" >&6
36110fi
36111
36112if test $coin_has_lapack != skipping &&
36113   test $coin_has_lapack != notGiven ; then
36114
36115cat >>confdefs.h <<\_ACEOF
36116#define COIN_HAS_LAPACK 1
36117_ACEOF
36118
36119
36120  # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
36121if test "${enable_interpackage_dependencies+set}" = set; then
36122  enableval="$enable_interpackage_dependencies"
36123
36124else
36125  enable_interpackage_dependencies=yes
36126fi;
36127
36128  if test $enable_interpackage_dependencies = yes ; then
36129     # construct dependencies variables from LIBS variables
36130     # we add an extra space in LIBS so we can substitute out everything starting with " -"
36131     # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows
36132     # then remove everything of the form -xxx
36133     # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
36134     LAPACK_DEPENDENCIES=`echo " $LAPACK_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
36135
36136       COINUTILSLIB_DEPENDENCIES=`echo " $COINUTILSLIB_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
36137
36138  fi
36139
36140  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
36141    if test -n "$LAPACK_CFLAGS" ; then
36142      { echo "$as_me:$LINENO: Lapack CFLAGS are $LAPACK_CFLAGS" >&5
36143echo "$as_me: Lapack CFLAGS are $LAPACK_CFLAGS" >&6;}
36144    fi
36145    if test -n "$LAPACK_LIBS" ; then
36146      { echo "$as_me:$LINENO: Lapack LIBS   are $LAPACK_LIBS" >&5
36147echo "$as_me: Lapack LIBS   are $LAPACK_LIBS" >&6;}
36148    fi
36149    if test -n "$LAPACK_DEPENDENCIES" ; then
36150      { echo "$as_me:$LINENO: Lapack DEPENDENCIES are $LAPACK_DEPENDENCIES" >&5
36151echo "$as_me: Lapack DEPENDENCIES are $LAPACK_DEPENDENCIES" >&6;}
36152    fi
36153    if test -n "$LAPACK_DATA" ; then
36154      { echo "$as_me:$LINENO: Lapack DATA   is  $LAPACK_DATA" >&5
36155echo "$as_me: Lapack DATA   is  $LAPACK_DATA" >&6;}
36156    fi
36157    if test -n "$LAPACK_PCLIBS" ; then
36158      { echo "$as_me:$LINENO: Lapack PCLIBS are $LAPACK_PCLIBS" >&5
36159echo "$as_me: Lapack PCLIBS are $LAPACK_PCLIBS" >&6;}
36160    fi
36161    if test -n "$LAPACK_PCREQUIRES" ; then
36162      { echo "$as_me:$LINENO: Lapack PCREQUIRES are $LAPACK_PCREQUIRES" >&5
36163echo "$as_me: Lapack PCREQUIRES are $LAPACK_PCREQUIRES" >&6;}
36164    fi
36165
36166      { echo "$as_me:$LINENO: CoinUtilsLib CFLAGS are $COINUTILSLIB_CFLAGS" >&5
36167echo "$as_me: CoinUtilsLib CFLAGS are $COINUTILSLIB_CFLAGS" >&6;}
36168      { echo "$as_me:$LINENO: CoinUtilsLib LIBS   are $COINUTILSLIB_LIBS" >&5
36169echo "$as_me: CoinUtilsLib LIBS   are $COINUTILSLIB_LIBS" >&6;}
36170      { echo "$as_me:$LINENO: CoinUtilsLib DEPENDENCIES are $COINUTILSLIB_DEPENDENCIES" >&5
36171echo "$as_me: CoinUtilsLib DEPENDENCIES are $COINUTILSLIB_DEPENDENCIES" >&6;}
36172
36173  fi
36174fi
36175
36176# Define the Makefile conditional
36177
36178
36179if test $coin_has_lapack != notGiven &&
36180                test $coin_has_lapack != skipping; then
36181  COIN_HAS_LAPACK_TRUE=
36182  COIN_HAS_LAPACK_FALSE='#'
36183else
36184  COIN_HAS_LAPACK_TRUE='#'
36185  COIN_HAS_LAPACK_FALSE=
36186fi
36187
36188
36189
36190
36191elif test "x$use_lapack" != x && test "$use_lapack" != no; then
36192  coin_has_lapack=yes
36193
36194
36195if test 0 = 0; then
36196  COIN_HAS_LAPACK_TRUE=
36197  COIN_HAS_LAPACK_FALSE='#'
36198else
36199  COIN_HAS_LAPACK_TRUE='#'
36200  COIN_HAS_LAPACK_FALSE=
36201fi
36202
36203
36204cat >>confdefs.h <<\_ACEOF
36205#define COIN_HAS_LAPACK 1
36206_ACEOF
36207
36208  LAPACK_LIBS="$use_lapack"
36209  LAPACK_CFLAGS=
36210  LAPACK_DATA=
36211
36212
36213
36214
36215    COINUTILSLIB_PCLIBS="$LAPACK_LIBS $COINUTILSLIB_PCLIBS"
36216    COINUTILSLIB_LIBS="$LAPACK_LIBS $COINUTILSLIB_LIBS"
36217    COINUTILSLIB_LIBS_INSTALLED="$LAPACK_LIBS $COINUTILSLIB_LIBS_INSTALLED"
36218
36219
36220else
36221  coin_has_lapack=no
36222
36223
36224if test 0 = 1; then
36225  COIN_HAS_LAPACK_TRUE=
36226  COIN_HAS_LAPACK_FALSE='#'
36227else
36228  COIN_HAS_LAPACK_TRUE='#'
36229  COIN_HAS_LAPACK_FALSE=
36230fi
36231
36232fi
36233
36234
36235
36236
36237
36238
36239
36240
36241
36242echo "$as_me:$LINENO: checking for COIN-OR package Glpk" >&5
36243echo $ECHO_N "checking for COIN-OR package Glpk... $ECHO_C" >&6
36244
36245coin_has_glpk=notGiven
36246
36247# check if user wants to skip package in any case
36248if test x"$COIN_SKIP_PROJECTS" != x; then
36249  for dir in $COIN_SKIP_PROJECTS; do
36250    if test $dir = "Glpk"; then
36251      coin_has_glpk=skipping
36252    fi
36253  done
36254fi
36255
36256if test "$coin_has_glpk" != skipping; then
36257
36258# Check whether --with-m4_tolower(Glpk) or --without-m4_tolower(Glpk) was given.
36259if test "${with_glpk+set}" = set; then
36260  withval="$with_glpk"
36261  if test "$withval" = no ; then
36262       coin_has_glpk=skipping
36263     fi
36264
36265fi;
36266fi
36267
36268GLPK_LIBS=
36269GLPK_CFLAGS=
36270GLPK_DATA=
36271GLPK_DEPENDENCIES=
36272GLPK_PCLIBS=
36273GLPK_PCREQUIRES=
36274
36275
36276
36277
36278
36279
36280
36281
36282
36283
36284
36285
36286
36287
36288
36289
36290
36291#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
36292if test $coin_has_glpk != skipping; then
36293
36294# Check whether --with-m4_tolower(Glpk)-lib or --without-m4_tolower(Glpk)-lib was given.
36295if test "${with_glpk_lib+set}" = set; then
36296  withval="$with_glpk_lib"
36297  if test "$withval" = no ; then
36298       coin_has_glpk=skipping
36299     else
36300       coin_has_glpk=yes
36301       GLPK_LIBS="$withval"
36302       GLPK_PCLIBS="$withval"
36303
36304         COINUTILSLIB_PCLIBS="$withval $COINUTILSLIB_PCLIBS"
36305         COINUTILSLIB_LIBS="$withval $COINUTILSLIB_LIBS"
36306
36307       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
36308       if test -z "$PKG_CONFIG" ; then
36309         GLPK_LIBS_INSTALLED="$withval"
36310         COINUTILSLIB_LIBS_INSTALLED="$withval $COINUTILSLIB_LIBS_INSTALLED"
36311       fi
36312     fi
36313
36314fi;
36315fi
36316
36317if test $coin_has_glpk != skipping; then
36318
36319# Check whether --with-m4_tolower(Glpk)-incdir or --without-m4_tolower(Glpk)-incdir was given.
36320if test "${with_glpk_incdir+set}" = set; then
36321  withval="$with_glpk_incdir"
36322  if test "$withval" = no ; then
36323       coin_has_glpk=skipping
36324     else
36325       coin_has_glpk=yes
36326       GLPK_CFLAGS="-I`${CYGPATH_W} $withval`"
36327       COINUTILSLIB_CFLAGS="-I`${CYGPATH_W} $withval` $COINUTILSLIB_CFLAGS"
36328       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
36329       if test -z "$PKG_CONFIG" ; then
36330         GLPK_CFLAGS_INSTALLED="$GLPK_CFLAGS"
36331         COINUTILSLIB_CFLAGS_INSTALLED="$GLPK_CFLAGS $COINUTILSLIB_CFLAGS_INSTALLED"
36332       fi
36333     fi
36334
36335fi;
36336fi
36337
36338if test $coin_has_glpk != skipping; then
36339
36340# Check whether --with-m4_tolower(Glpk)-datadir or --without-m4_tolower(Glpk)-datadir was given.
36341if test "${with_glpk_datadir+set}" = set; then
36342  withval="$with_glpk_datadir"
36343  if test "$withval" = no ; then
36344       coin_has_glpk=skipping
36345     else
36346       coin_has_glpk=yes
36347       GLPK_DATA="$withval"
36348       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
36349       if test -z "$PKG_CONFIG" ; then
36350         GLPK_DATA_INSTALLED="$withval"
36351       fi
36352     fi
36353
36354fi;
36355fi
36356
36357if test $coin_has_glpk = notGiven; then
36358  if test -n "$PKG_CONFIG" ; then
36359    # set search path for pkg-config
36360    # need to export variable to be sure that the following pkg-config gets these values
36361    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
36362    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
36363    export PKG_CONFIG_PATH
36364
36365    # let pkg-config do it's magic
36366
36367
36368
36369if test -n "$PKG_CONFIG" ; then
36370  if $PKG_CONFIG --exists "coinglpk"; then
36371    GLPK_VERSIONS=`$PKG_CONFIG --modversion "coinglpk" 2>/dev/null | tr '\n' ' '`
36372     cflags=`$PKG_CONFIG --cflags "coinglpk" 2>/dev/null`
36373    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
36374	# thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
36375	# but only do this if is not trivial
36376    if test "$CYGPATH_W" != "echo" ; then
36377      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
36378      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
36379    fi
36380    GLPK_CFLAGS="$cflags"
36381    GLPK_LIBS=`$PKG_CONFIG --libs "coinglpk" 2>/dev/null`
36382    GLPK_DATA=`$PKG_CONFIG --variable=datadir "coinglpk" 2>/dev/null`
36383     coin_has_glpk=yes
36384        echo "$as_me:$LINENO: result: yes: $GLPK_VERSIONS" >&5
36385echo "${ECHO_T}yes: $GLPK_VERSIONS" >&6
36386
36387        # adjust linker flags for (i)cl compiler
36388        # 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)
36389        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
36390        then
36391          GLPK_LIBS=`echo " $GLPK_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
36392        fi
36393        GLPK_PCREQUIRES="coinglpk"
36394
36395        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in CoinUtilsLib
36396
36397          COINUTILSLIB_PCREQUIRES="coinglpk $COINUTILSLIB_PCREQUIRES"
36398          COINUTILSLIB_CFLAGS="$GLPK_CFLAGS $COINUTILSLIB_CFLAGS"
36399          COINUTILSLIB_LIBS="$GLPK_LIBS $COINUTILSLIB_LIBS"
36400
36401
36402
36403  else
36404    GLPK_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "coinglpk"`
36405      coin_has_glpk=notGiven
36406        echo "$as_me:$LINENO: result: not given: $GLPK_PKG_ERRORS" >&5
36407echo "${ECHO_T}not given: $GLPK_PKG_ERRORS" >&6
36408
36409  fi
36410else
36411  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Glpk without pkg-config\"" >&5
36412echo "$as_me: error: \"Cannot check for existance of module Glpk without pkg-config\"" >&2;}
36413   { (exit 1); exit 1; }; }
36414fi
36415
36416
36417
36418
36419    # reset PKG_CONFIG_PATH variable
36420    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
36421    export PKG_CONFIG_PATH
36422
36423  else
36424    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
36425echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
36426
36427echo "$as_me:$LINENO: checking for COIN-OR package Glpk (fallback)" >&5
36428echo $ECHO_N "checking for COIN-OR package Glpk (fallback)... $ECHO_C" >&6
36429
36430coin_has_glpk=notGiven
36431GLPK_LIBS=
36432GLPK_LIBS_INSTALLED=
36433GLPK_CFLAGS=
36434GLPK_CFLAGS_INSTALLED=
36435GLPK_DATA=
36436GLPK_DATA_INSTALLED=
36437GLPK_PCLIBS=
36438GLPK_PCREQUIRES=
36439
36440# initial list of dependencies is "coinglpk", but we need to filter out version number specifications (= x, <= x, >= x, != x)
36441projtoprocess="coinglpk"
36442
36443# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
36444# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
36445# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
36446# also, we setup the DATA variable
36447allproj=""
36448allpcfiles=""
36449allpcifiles=""
36450while test "x$projtoprocess" != x ; do
36451
36452  for proj in $projtoprocess ; do
36453    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
36454    pcfile=""
36455    save_IFS="$IFS"
36456    IFS=":"
36457    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
36458      # 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
36459      if test -r "$dir/${proj}-uninstalled.pc" ; then
36460        pcfile="$dir/$proj-uninstalled.pc"
36461        if test -r "$dir/${proj}.pc" ; then
36462          pcifile="$dir/${proj}.pc"
36463        else
36464          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
36465echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
36466          pcifile=
36467        fi
36468        break
36469      fi
36470    done
36471    IFS="$save_IFS"
36472
36473    if test "x$pcfile" != x ; then
36474      # read dependencies from $pcfile and filter it
36475      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ 	]\{0,\}[^ 	]\{1,\}//g'`
36476
36477      # add projrequires to the front of the list of projects that have to be processed next
36478      # at the same time, remove $proj from this list
36479      projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
36480
36481      # read DATA from $pcfile, if _DATA is still empty
36482      if test "x$GLPK_DATA" = x ; then
36483        projdatadir=
36484        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
36485        eval `sh -c "$pcfilemod"`
36486        GLPK_DATA="$projdatadir"
36487      fi
36488
36489      allproj="$allproj $proj"
36490      allpcfiles="$pcfile:$allpcfiles"
36491
36492    else
36493      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
36494echo "${ECHO_T}no, dependency $proj not available" >&6
36495      allproj=fail
36496      break 2
36497    fi
36498
36499    if test "x$pcifile" != x ; then
36500      allpcifiles="$pcifile:$allpcifiles"
36501
36502      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
36503      if test "x$GLPK_DATA_INSTALLED" = x ; then
36504        projdatadir=
36505        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
36506        eval `sh -c "$pcifilemod"`
36507        if test "${CYGPATH_W}" != "echo"; then
36508          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
36509        fi
36510        GLPK_DATA_INSTALLED="$projdatadir"
36511      fi
36512
36513    fi
36514
36515    break
36516  done
36517
36518  # remove spaces on begin of $projtoprocess
36519  projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
36520
36521done
36522
36523if test "$allproj" != fail ; then
36524
36525  # now go through the list of .pc files and assemble compiler and linker flags
36526  # important is here to obey the reverse order that has been setup before,
36527  # since then libraries that are required by several others should be after these other libraries
36528  pcfilesprocessed=""
36529
36530  save_IFS="$IFS"
36531  IFS=":"
36532  for pcfile in $allpcfiles ; do
36533
36534    # if $pcfile has been processed already, skip this round
36535    if test "x$pcfilesprocessed" != x ; then
36536      for pcfiledone in $pcfilesprocessed ; do
36537        if test "$pcfiledone" = "$pcfile" ; then
36538          continue 2
36539        fi
36540      done
36541    fi
36542
36543    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
36544    #   replace "Libs:" by "echo projlibs="
36545    #   replace "Cflags:" by "echo projcflags="
36546    #   remove every line starting with <some word>:
36547    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
36548
36549    # set projcflags and projlibs variables by running $pcfilemod
36550    # 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
36551    projcflags=
36552    projlibs=
36553    IFS="$save_IFS"
36554    eval `sh -c "$pcfilemod"`
36555    IFS=":"
36556
36557    # add CYGPATH_W cludge into include flags and set CFLAGS variable
36558    if test "${CYGPATH_W}" != "echo"; then
36559      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
36560    fi
36561    GLPK_CFLAGS="$projcflags $GLPK_CFLAGS"
36562
36563    # set LIBS variable
36564    GLPK_LIBS="$projlibs $GLPK_LIBS"
36565
36566    # remember that we have processed $pcfile
36567    pcfilesprocessed="$pcfilesprocessed:$pcfile"
36568
36569  done
36570  IFS="$save_IFS"
36571
36572
36573  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
36574  # important is here again to obey the reverse order that has been setup before,
36575  # since then libraries that are required by several others should be after these other libraries
36576  pcfilesprocessed=""
36577
36578  save_IFS="$IFS"
36579  IFS=":"
36580  for pcfile in $allpcifiles ; do
36581
36582    # if $pcfile has been processed already, skip this round
36583    if test "x$pcfilesprocessed" != x ; then
36584      for pcfiledone in $pcfilesprocessed ; do
36585        if test "$pcfiledone" = "$pcfile" ; then
36586          continue 2
36587        fi
36588      done
36589    fi
36590
36591    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
36592    #   replace "Libs:" by "echo projlibs="
36593    #   replace "Cflags:" by "echo projcflags="
36594    #   remove every line starting with <some word>:
36595    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
36596
36597    # set projcflags and projlibs variables by running $pcfilemod
36598    # 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
36599    projcflags=
36600    projlibs=
36601    IFS="$save_IFS"
36602    eval `sh -c "$pcfilemod"`
36603    IFS=":"
36604
36605    # add CYGPATH_W cludge into include flags and set CFLAGS variable
36606    if test "${CYGPATH_W}" != "echo"; then
36607      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
36608    fi
36609    GLPK_CFLAGS_INSTALLED="$projcflags $GLPK_CFLAGS_INSTALLED"
36610
36611    # set LIBS variable
36612    GLPK_LIBS_INSTALLED="$projlibs $GLPK_LIBS_INSTALLED"
36613
36614    # remember that we have processed $pcfile
36615    pcfilesprocessed="$pcfilesprocessed:$pcfile"
36616
36617  done
36618  IFS="$save_IFS"
36619
36620
36621  # finish up
36622  coin_has_glpk=yes
36623  echo "$as_me:$LINENO: result: yes" >&5
36624echo "${ECHO_T}yes" >&6
36625
36626cat >>confdefs.h <<\_ACEOF
36627#define COIN_HAS_GLPK 1
36628_ACEOF
36629
36630
36631  # adjust linker flags for (i)cl compiler
36632  # 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),
36633  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
36634  #    everything of the form "-lname" by "libname.lib", and
36635  #    everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
36636  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
36637  then
36638    GLPK_LIBS=`echo " $GLPK_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
36639    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'`
36640  fi
36641
36642  GLPK_PCREQUIRES="coinglpk"
36643
36644    COINUTILSLIB_PCREQUIRES="coinglpk $COINUTILSLIB_PCREQUIRES"
36645    COINUTILSLIB_CFLAGS="$GLPK_CFLAGS $COINUTILSLIB_CFLAGS"
36646    COINUTILSLIB_LIBS="$GLPK_LIBS $COINUTILSLIB_LIBS"
36647    COINUTILSLIB_CFLAGS_INSTALLED="$GLPK_CFLAGS_INSTALLED $COINUTILSLIB_CFLAGS_INSTALLED"
36648    COINUTILSLIB_LIBS_INSTALLED="$GLPK_LIBS_INSTALLED $COINUTILSLIB_LIBS_INSTALLED"
36649
36650
36651fi
36652
36653
36654
36655if test $coin_has_glpk != notGiven &&
36656                test $coin_has_glpk != skipping; then
36657  COIN_HAS_GLPK_TRUE=
36658  COIN_HAS_GLPK_FALSE='#'
36659else
36660  COIN_HAS_GLPK_TRUE='#'
36661  COIN_HAS_GLPK_FALSE=
36662fi
36663
36664
36665
36666  fi
36667
36668else
36669  echo "$as_me:$LINENO: result: $coin_has_glpk" >&5
36670echo "${ECHO_T}$coin_has_glpk" >&6
36671fi
36672
36673if test $coin_has_glpk != skipping &&
36674   test $coin_has_glpk != notGiven ; then
36675
36676cat >>confdefs.h <<\_ACEOF
36677#define COIN_HAS_GLPK 1
36678_ACEOF
36679
36680
36681  # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
36682if test "${enable_interpackage_dependencies+set}" = set; then
36683  enableval="$enable_interpackage_dependencies"
36684
36685else
36686  enable_interpackage_dependencies=yes
36687fi;
36688
36689  if test $enable_interpackage_dependencies = yes ; then
36690     # construct dependencies variables from LIBS variables
36691     # we add an extra space in LIBS so we can substitute out everything starting with " -"
36692     # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows
36693     # then remove everything of the form -xxx
36694     # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
36695     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'`
36696
36697       COINUTILSLIB_DEPENDENCIES=`echo " $COINUTILSLIB_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ libiomp5[^ ]*//g' -e 's/ wsock32[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
36698
36699  fi
36700
36701  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
36702    if test -n "$GLPK_CFLAGS" ; then
36703      { echo "$as_me:$LINENO: Glpk CFLAGS are $GLPK_CFLAGS" >&5
36704echo "$as_me: Glpk CFLAGS are $GLPK_CFLAGS" >&6;}
36705    fi
36706    if test -n "$GLPK_LIBS" ; then
36707      { echo "$as_me:$LINENO: Glpk LIBS   are $GLPK_LIBS" >&5
36708echo "$as_me: Glpk LIBS   are $GLPK_LIBS" >&6;}
36709    fi
36710    if test -n "$GLPK_DEPENDENCIES" ; then
36711      { echo "$as_me:$LINENO: Glpk DEPENDENCIES are $GLPK_DEPENDENCIES" >&5
36712echo "$as_me: Glpk DEPENDENCIES are $GLPK_DEPENDENCIES" >&6;}
36713    fi
36714    if test -n "$GLPK_DATA" ; then
36715      { echo "$as_me:$LINENO: Glpk DATA   is  $GLPK_DATA" >&5
36716echo "$as_me: Glpk DATA   is  $GLPK_DATA" >&6;}
36717    fi
36718    if test -n "$GLPK_PCLIBS" ; then
36719      { echo "$as_me:$LINENO: Glpk PCLIBS are $GLPK_PCLIBS" >&5
36720echo "$as_me: Glpk PCLIBS are $GLPK_PCLIBS" >&6;}
36721    fi
36722    if test -n "$GLPK_PCREQUIRES" ; then
36723      { echo "$as_me:$LINENO: Glpk PCREQUIRES are $GLPK_PCREQUIRES" >&5
36724echo "$as_me: Glpk PCREQUIRES are $GLPK_PCREQUIRES" >&6;}
36725    fi
36726
36727      { echo "$as_me:$LINENO: CoinUtilsLib CFLAGS are $COINUTILSLIB_CFLAGS" >&5
36728echo "$as_me: CoinUtilsLib CFLAGS are $COINUTILSLIB_CFLAGS" >&6;}
36729      { echo "$as_me:$LINENO: CoinUtilsLib LIBS   are $COINUTILSLIB_LIBS" >&5
36730echo "$as_me: CoinUtilsLib LIBS   are $COINUTILSLIB_LIBS" >&6;}
36731      { echo "$as_me:$LINENO: CoinUtilsLib DEPENDENCIES are $COINUTILSLIB_DEPENDENCIES" >&5
36732echo "$as_me: CoinUtilsLib DEPENDENCIES are $COINUTILSLIB_DEPENDENCIES" >&6;}
36733
36734  fi
36735fi
36736
36737# Define the Makefile conditional
36738
36739
36740if test $coin_has_glpk != notGiven &&
36741                test $coin_has_glpk != skipping; then
36742  COIN_HAS_GLPK_TRUE=
36743  COIN_HAS_GLPK_FALSE='#'
36744else
36745  COIN_HAS_GLPK_TRUE='#'
36746  COIN_HAS_GLPK_FALSE=
36747fi
36748
36749
36750
36751
36752echo "$as_me:$LINENO: checking for COIN-OR package Sample" >&5
36753echo $ECHO_N "checking for COIN-OR package Sample... $ECHO_C" >&6
36754
36755coin_has_sample=notGiven
36756
36757# check if user wants to skip package in any case
36758if test x"$COIN_SKIP_PROJECTS" != x; then
36759  for dir in $COIN_SKIP_PROJECTS; do
36760    if test $dir = "Sample"; then
36761      coin_has_sample=skipping
36762    fi
36763  done
36764fi
36765
36766if test "$coin_has_sample" != skipping; then
36767
36768# Check whether --with-m4_tolower(Sample) or --without-m4_tolower(Sample) was given.
36769if test "${with_sample+set}" = set; then
36770  withval="$with_sample"
36771  if test "$withval" = no ; then
36772       coin_has_sample=skipping
36773     fi
36774
36775fi;
36776fi
36777
36778SAMPLE_LIBS=
36779SAMPLE_CFLAGS=
36780SAMPLE_DATA=
36781SAMPLE_DEPENDENCIES=
36782SAMPLE_PCLIBS=
36783SAMPLE_PCREQUIRES=
36784
36785
36786
36787
36788
36789
36790
36791
36792
36793#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
36794if test $coin_has_sample != skipping; then
36795
36796# Check whether --with-m4_tolower(Sample)-lib or --without-m4_tolower(Sample)-lib was given.
36797if test "${with_sample_lib+set}" = set; then
36798  withval="$with_sample_lib"
36799  if test "$withval" = no ; then
36800       coin_has_sample=skipping
36801     else
36802       coin_has_sample=yes
36803       SAMPLE_LIBS="$withval"
36804       SAMPLE_PCLIBS="$withval"
36805
36806       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
36807       if test -z "$PKG_CONFIG" ; then
36808         SAMPLE_LIBS_INSTALLED="$withval"
36809
36810       fi
36811     fi
36812
36813fi;
36814fi
36815
36816if test $coin_has_sample != skipping; then
36817
36818# Check whether --with-m4_tolower(Sample)-incdir or --without-m4_tolower(Sample)-incdir was given.
36819if test "${with_sample_incdir+set}" = set; then
36820  withval="$with_sample_incdir"
36821  if test "$withval" = no ; then
36822       coin_has_sample=skipping
36823     else
36824       coin_has_sample=yes
36825       SAMPLE_CFLAGS="-I`${CYGPATH_W} $withval`"
36826
36827       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
36828       if test -z "$PKG_CONFIG" ; then
36829         SAMPLE_CFLAGS_INSTALLED="$SAMPLE_CFLAGS"
36830
36831       fi
36832     fi
36833
36834fi;
36835fi
36836
36837if test $coin_has_sample != skipping; then
36838
36839# Check whether --with-m4_tolower(Sample)-datadir or --without-m4_tolower(Sample)-datadir was given.
36840if test "${with_sample_datadir+set}" = set; then
36841  withval="$with_sample_datadir"
36842  if test "$withval" = no ; then
36843       coin_has_sample=skipping
36844     else
36845       coin_has_sample=yes
36846       SAMPLE_DATA="$withval"
36847       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
36848       if test -z "$PKG_CONFIG" ; then
36849         SAMPLE_DATA_INSTALLED="$withval"
36850       fi
36851     fi
36852
36853fi;
36854fi
36855
36856if test $coin_has_sample = notGiven; then
36857  if test -n "$PKG_CONFIG" ; then
36858    # set search path for pkg-config
36859    # need to export variable to be sure that the following pkg-config gets these values
36860    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
36861    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
36862    export PKG_CONFIG_PATH
36863
36864    # let pkg-config do it's magic
36865
36866
36867
36868if test -n "$PKG_CONFIG" ; then
36869  if $PKG_CONFIG --exists "coindatasample"; then
36870    SAMPLE_VERSIONS=`$PKG_CONFIG --modversion "coindatasample" 2>/dev/null | tr '\n' ' '`
36871     cflags=`$PKG_CONFIG --cflags "coindatasample" 2>/dev/null`
36872    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
36873	# thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
36874	# but only do this if is not trivial
36875    if test "$CYGPATH_W" != "echo" ; then
36876      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
36877      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
36878    fi
36879    SAMPLE_CFLAGS="$cflags"
36880    SAMPLE_LIBS=`$PKG_CONFIG --libs "coindatasample" 2>/dev/null`
36881    SAMPLE_DATA=`$PKG_CONFIG --variable=datadir "coindatasample" 2>/dev/null`
36882     coin_has_sample=yes
36883        echo "$as_me:$LINENO: result: yes: $SAMPLE_VERSIONS" >&5
36884echo "${ECHO_T}yes: $SAMPLE_VERSIONS" >&6
36885
36886        # adjust linker flags for (i)cl compiler
36887        # 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)
36888        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
36889        then
36890          SAMPLE_LIBS=`echo " $SAMPLE_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
36891        fi
36892        SAMPLE_PCREQUIRES="coindatasample"
36893
36894        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in
36895
36896
36897
36898  else
36899    SAMPLE_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "coindatasample"`
36900      coin_has_sample=notGiven
36901        echo "$as_me:$LINENO: result: not given: $SAMPLE_PKG_ERRORS" >&5
36902echo "${ECHO_T}not given: $SAMPLE_PKG_ERRORS" >&6
36903
36904  fi
36905else
36906  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Sample without pkg-config\"" >&5
36907echo "$as_me: error: \"Cannot check for existance of module Sample without pkg-config\"" >&2;}
36908   { (exit 1); exit 1; }; }
36909fi
36910
36911
36912
36913
36914    # reset PKG_CONFIG_PATH variable
36915    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
36916    export PKG_CONFIG_PATH
36917
36918  else
36919    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
36920echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
36921
36922echo "$as_me:$LINENO: checking for COIN-OR package Sample (fallback)" >&5
36923echo $ECHO_N "checking for COIN-OR package Sample (fallback)... $ECHO_C" >&6
36924
36925coin_has_sample=notGiven
36926SAMPLE_LIBS=
36927SAMPLE_LIBS_INSTALLED=
36928SAMPLE_CFLAGS=
36929SAMPLE_CFLAGS_INSTALLED=
36930SAMPLE_DATA=
36931SAMPLE_DATA_INSTALLED=
36932SAMPLE_PCLIBS=
36933SAMPLE_PCREQUIRES=
36934
36935# initial list of dependencies is "coindatasample", but we need to filter out version number specifications (= x, <= x, >= x, != x)
36936projtoprocess="coindatasample"
36937
36938# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
36939# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
36940# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
36941# also, we setup the DATA variable
36942allproj=""
36943allpcfiles=""
36944allpcifiles=""
36945while test "x$projtoprocess" != x ; do
36946
36947  for proj in $projtoprocess ; do
36948    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
36949    pcfile=""
36950    save_IFS="$IFS"
36951    IFS=":"
36952    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
36953      # 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
36954      if test -r "$dir/${proj}-uninstalled.pc" ; then
36955        pcfile="$dir/$proj-uninstalled.pc"
36956        if test -r "$dir/${proj}.pc" ; then
36957          pcifile="$dir/${proj}.pc"
36958        else
36959          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
36960echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
36961          pcifile=
36962        fi
36963        break
36964      fi
36965    done
36966    IFS="$save_IFS"
36967
36968    if test "x$pcfile" != x ; then
36969      # read dependencies from $pcfile and filter it
36970      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ 	]\{0,\}[^ 	]\{1,\}//g'`
36971
36972      # add projrequires to the front of the list of projects that have to be processed next
36973      # at the same time, remove $proj from this list
36974      projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
36975
36976      # read DATA from $pcfile, if _DATA is still empty
36977      if test "x$SAMPLE_DATA" = x ; then
36978        projdatadir=
36979        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
36980        eval `sh -c "$pcfilemod"`
36981        SAMPLE_DATA="$projdatadir"
36982      fi
36983
36984      allproj="$allproj $proj"
36985      allpcfiles="$pcfile:$allpcfiles"
36986
36987    else
36988      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
36989echo "${ECHO_T}no, dependency $proj not available" >&6
36990      allproj=fail
36991      break 2
36992    fi
36993
36994    if test "x$pcifile" != x ; then
36995      allpcifiles="$pcifile:$allpcifiles"
36996
36997      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
36998      if test "x$SAMPLE_DATA_INSTALLED" = x ; then
36999        projdatadir=
37000        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
37001        eval `sh -c "$pcifilemod"`
37002        if test "${CYGPATH_W}" != "echo"; then
37003          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
37004        fi
37005        SAMPLE_DATA_INSTALLED="$projdatadir"
37006      fi
37007
37008    fi
37009
37010    break
37011  done
37012
37013  # remove spaces on begin of $projtoprocess
37014  projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
37015
37016done
37017
37018if test "$allproj" != fail ; then
37019
37020  # now go through the list of .pc files and assemble compiler and linker flags
37021  # important is here to obey the reverse order that has been setup before,
37022  # since then libraries that are required by several others should be after these other libraries
37023  pcfilesprocessed=""
37024
37025  save_IFS="$IFS"
37026  IFS=":"
37027  for pcfile in $allpcfiles ; do
37028
37029    # if $pcfile has been processed already, skip this round
37030    if test "x$pcfilesprocessed" != x ; then
37031      for pcfiledone in $pcfilesprocessed ; do
37032        if test "$pcfiledone" = "$pcfile" ; then
37033          continue 2
37034        fi
37035      done
37036    fi
37037
37038    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
37039    #   replace "Libs:" by "echo projlibs="
37040    #   replace "Cflags:" by "echo projcflags="
37041    #   remove every line starting with <some word>:
37042    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
37043
37044    # set projcflags and projlibs variables by running $pcfilemod
37045    # 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
37046    projcflags=
37047    projlibs=
37048    IFS="$save_IFS"
37049    eval `sh -c "$pcfilemod"`
37050    IFS=":"
37051
37052    # add CYGPATH_W cludge into include flags and set CFLAGS variable
37053    if test "${CYGPATH_W}" != "echo"; then
37054      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
37055    fi
37056    SAMPLE_CFLAGS="$projcflags $SAMPLE_CFLAGS"
37057
37058    # set LIBS variable
37059    SAMPLE_LIBS="$projlibs $SAMPLE_LIBS"
37060
37061    # remember that we have processed $pcfile
37062    pcfilesprocessed="$pcfilesprocessed:$pcfile"
37063
37064  done
37065  IFS="$save_IFS"
37066
37067
37068  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
37069  # important is here again to obey the reverse order that has been setup before,
37070  # since then libraries that are required by several others should be after these other libraries
37071  pcfilesprocessed=""
37072
37073  save_IFS="$IFS"
37074  IFS=":"
37075  for pcfile in $allpcifiles ; do
37076
37077    # if $pcfile has been processed already, skip this round
37078    if test "x$pcfilesprocessed" != x ; then
37079      for pcfiledone in $pcfilesprocessed ; do
37080        if test "$pcfiledone" = "$pcfile" ; then
37081          continue 2
37082        fi
37083      done
37084    fi
37085
37086    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
37087    #   replace "Libs:" by "echo projlibs="
37088    #   replace "Cflags:" by "echo projcflags="
37089    #   remove every line starting with <some word>:
37090    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
37091
37092    # set projcflags and projlibs variables by running $pcfilemod
37093    # 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
37094    projcflags=
37095    projlibs=
37096    IFS="$save_IFS"
37097    eval `sh -c "$pcfilemod"`
37098    IFS=":"
37099
37100    # add CYGPATH_W cludge into include flags and set CFLAGS variable
37101    if test "${CYGPATH_W}" != "echo"; then
37102      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
37103    fi
37104    SAMPLE_CFLAGS_INSTALLED="$projcflags $SAMPLE_CFLAGS_INSTALLED"
37105
37106    # set LIBS variable
37107    SAMPLE_LIBS_INSTALLED="$projlibs $SAMPLE_LIBS_INSTALLED"
37108
37109    # remember that we have processed $pcfile
37110    pcfilesprocessed="$pcfilesprocessed:$pcfile"
37111
37112  done
37113  IFS="$save_IFS"
37114
37115
37116  # finish up
37117  coin_has_sample=yes
37118  echo "$as_me:$LINENO: result: yes" >&5
37119echo "${ECHO_T}yes" >&6
37120
37121cat >>confdefs.h <<\_ACEOF
37122#define COIN_HAS_SAMPLE 1
37123_ACEOF
37124
37125
37126  # adjust linker flags for (i)cl compiler
37127  # 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),
37128  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
37129  #    everything of the form "-lname" by "libname.lib", and
37130  #    everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
37131  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
37132  then
37133    SAMPLE_LIBS=`echo " $SAMPLE_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
37134    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'`
37135  fi
37136
37137  SAMPLE_PCREQUIRES="coindatasample"
37138
37139
37140fi
37141
37142
37143
37144if test $coin_has_sample != notGiven &&
37145                test $coin_has_sample != skipping; then
37146  COIN_HAS_SAMPLE_TRUE=
37147  COIN_HAS_SAMPLE_FALSE='#'
37148else
37149  COIN_HAS_SAMPLE_TRUE='#'
37150  COIN_HAS_SAMPLE_FALSE=
37151fi
37152
37153
37154
37155  fi
37156
37157else
37158  echo "$as_me:$LINENO: result: $coin_has_sample" >&5
37159echo "${ECHO_T}$coin_has_sample" >&6
37160fi
37161
37162if test $coin_has_sample != skipping &&
37163   test $coin_has_sample != notGiven ; then
37164
37165cat >>confdefs.h <<\_ACEOF
37166#define COIN_HAS_SAMPLE 1
37167_ACEOF
37168
37169
37170  # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
37171if test "${enable_interpackage_dependencies+set}" = set; then
37172  enableval="$enable_interpackage_dependencies"
37173
37174else
37175  enable_interpackage_dependencies=yes
37176fi;
37177
37178  if test $enable_interpackage_dependencies = yes ; then
37179     # construct dependencies variables from LIBS variables
37180     # we add an extra space in LIBS so we can substitute out everything starting with " -"
37181     # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows
37182     # then remove everything of the form -xxx
37183     # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
37184     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'`
37185
37186  fi
37187
37188  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
37189    if test -n "$SAMPLE_CFLAGS" ; then
37190      { echo "$as_me:$LINENO: Sample CFLAGS are $SAMPLE_CFLAGS" >&5
37191echo "$as_me: Sample CFLAGS are $SAMPLE_CFLAGS" >&6;}
37192    fi
37193    if test -n "$SAMPLE_LIBS" ; then
37194      { echo "$as_me:$LINENO: Sample LIBS   are $SAMPLE_LIBS" >&5
37195echo "$as_me: Sample LIBS   are $SAMPLE_LIBS" >&6;}
37196    fi
37197    if test -n "$SAMPLE_DEPENDENCIES" ; then
37198      { echo "$as_me:$LINENO: Sample DEPENDENCIES are $SAMPLE_DEPENDENCIES" >&5
37199echo "$as_me: Sample DEPENDENCIES are $SAMPLE_DEPENDENCIES" >&6;}
37200    fi
37201    if test -n "$SAMPLE_DATA" ; then
37202      { echo "$as_me:$LINENO: Sample DATA   is  $SAMPLE_DATA" >&5
37203echo "$as_me: Sample DATA   is  $SAMPLE_DATA" >&6;}
37204    fi
37205    if test -n "$SAMPLE_PCLIBS" ; then
37206      { echo "$as_me:$LINENO: Sample PCLIBS are $SAMPLE_PCLIBS" >&5
37207echo "$as_me: Sample PCLIBS are $SAMPLE_PCLIBS" >&6;}
37208    fi
37209    if test -n "$SAMPLE_PCREQUIRES" ; then
37210      { echo "$as_me:$LINENO: Sample PCREQUIRES are $SAMPLE_PCREQUIRES" >&5
37211echo "$as_me: Sample PCREQUIRES are $SAMPLE_PCREQUIRES" >&6;}
37212    fi
37213
37214  fi
37215fi
37216
37217# Define the Makefile conditional
37218
37219
37220if test $coin_has_sample != notGiven &&
37221                test $coin_has_sample != skipping; then
37222  COIN_HAS_SAMPLE_TRUE=
37223  COIN_HAS_SAMPLE_FALSE='#'
37224else
37225  COIN_HAS_SAMPLE_TRUE='#'
37226  COIN_HAS_SAMPLE_FALSE=
37227fi
37228
37229
37230
37231
37232echo "$as_me:$LINENO: checking for COIN-OR package Netlib" >&5
37233echo $ECHO_N "checking for COIN-OR package Netlib... $ECHO_C" >&6
37234
37235coin_has_netlib=notGiven
37236
37237# check if user wants to skip package in any case
37238if test x"$COIN_SKIP_PROJECTS" != x; then
37239  for dir in $COIN_SKIP_PROJECTS; do
37240    if test $dir = "Netlib"; then
37241      coin_has_netlib=skipping
37242    fi
37243  done
37244fi
37245
37246if test "$coin_has_netlib" != skipping; then
37247
37248# Check whether --with-m4_tolower(Netlib) or --without-m4_tolower(Netlib) was given.
37249if test "${with_netlib+set}" = set; then
37250  withval="$with_netlib"
37251  if test "$withval" = no ; then
37252       coin_has_netlib=skipping
37253     fi
37254
37255fi;
37256fi
37257
37258NETLIB_LIBS=
37259NETLIB_CFLAGS=
37260NETLIB_DATA=
37261NETLIB_DEPENDENCIES=
37262NETLIB_PCLIBS=
37263NETLIB_PCREQUIRES=
37264
37265
37266
37267
37268
37269
37270
37271
37272
37273#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
37274if test $coin_has_netlib != skipping; then
37275
37276# Check whether --with-m4_tolower(Netlib)-lib or --without-m4_tolower(Netlib)-lib was given.
37277if test "${with_netlib_lib+set}" = set; then
37278  withval="$with_netlib_lib"
37279  if test "$withval" = no ; then
37280       coin_has_netlib=skipping
37281     else
37282       coin_has_netlib=yes
37283       NETLIB_LIBS="$withval"
37284       NETLIB_PCLIBS="$withval"
37285
37286       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
37287       if test -z "$PKG_CONFIG" ; then
37288         NETLIB_LIBS_INSTALLED="$withval"
37289
37290       fi
37291     fi
37292
37293fi;
37294fi
37295
37296if test $coin_has_netlib != skipping; then
37297
37298# Check whether --with-m4_tolower(Netlib)-incdir or --without-m4_tolower(Netlib)-incdir was given.
37299if test "${with_netlib_incdir+set}" = set; then
37300  withval="$with_netlib_incdir"
37301  if test "$withval" = no ; then
37302       coin_has_netlib=skipping
37303     else
37304       coin_has_netlib=yes
37305       NETLIB_CFLAGS="-I`${CYGPATH_W} $withval`"
37306
37307       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
37308       if test -z "$PKG_CONFIG" ; then
37309         NETLIB_CFLAGS_INSTALLED="$NETLIB_CFLAGS"
37310
37311       fi
37312     fi
37313
37314fi;
37315fi
37316
37317if test $coin_has_netlib != skipping; then
37318
37319# Check whether --with-m4_tolower(Netlib)-datadir or --without-m4_tolower(Netlib)-datadir was given.
37320if test "${with_netlib_datadir+set}" = set; then
37321  withval="$with_netlib_datadir"
37322  if test "$withval" = no ; then
37323       coin_has_netlib=skipping
37324     else
37325       coin_has_netlib=yes
37326       NETLIB_DATA="$withval"
37327       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
37328       if test -z "$PKG_CONFIG" ; then
37329         NETLIB_DATA_INSTALLED="$withval"
37330       fi
37331     fi
37332
37333fi;
37334fi
37335
37336if test $coin_has_netlib = notGiven; then
37337  if test -n "$PKG_CONFIG" ; then
37338    # set search path for pkg-config
37339    # need to export variable to be sure that the following pkg-config gets these values
37340    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
37341    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
37342    export PKG_CONFIG_PATH
37343
37344    # let pkg-config do it's magic
37345
37346
37347
37348if test -n "$PKG_CONFIG" ; then
37349  if $PKG_CONFIG --exists "coindatanetlib"; then
37350    NETLIB_VERSIONS=`$PKG_CONFIG --modversion "coindatanetlib" 2>/dev/null | tr '\n' ' '`
37351     cflags=`$PKG_CONFIG --cflags "coindatanetlib" 2>/dev/null`
37352    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
37353	# thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
37354	# but only do this if is not trivial
37355    if test "$CYGPATH_W" != "echo" ; then
37356      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
37357      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
37358    fi
37359    NETLIB_CFLAGS="$cflags"
37360    NETLIB_LIBS=`$PKG_CONFIG --libs "coindatanetlib" 2>/dev/null`
37361    NETLIB_DATA=`$PKG_CONFIG --variable=datadir "coindatanetlib" 2>/dev/null`
37362     coin_has_netlib=yes
37363        echo "$as_me:$LINENO: result: yes: $NETLIB_VERSIONS" >&5
37364echo "${ECHO_T}yes: $NETLIB_VERSIONS" >&6
37365
37366        # adjust linker flags for (i)cl compiler
37367        # 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)
37368        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
37369        then
37370          NETLIB_LIBS=`echo " $NETLIB_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
37371        fi
37372        NETLIB_PCREQUIRES="coindatanetlib"
37373
37374        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in
37375
37376
37377
37378  else
37379    NETLIB_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "coindatanetlib"`
37380      coin_has_netlib=notGiven
37381        echo "$as_me:$LINENO: result: not given: $NETLIB_PKG_ERRORS" >&5
37382echo "${ECHO_T}not given: $NETLIB_PKG_ERRORS" >&6
37383
37384  fi
37385else
37386  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Netlib without pkg-config\"" >&5
37387echo "$as_me: error: \"Cannot check for existance of module Netlib without pkg-config\"" >&2;}
37388   { (exit 1); exit 1; }; }
37389fi
37390
37391
37392
37393
37394    # reset PKG_CONFIG_PATH variable
37395    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
37396    export PKG_CONFIG_PATH
37397
37398  else
37399    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
37400echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
37401
37402echo "$as_me:$LINENO: checking for COIN-OR package Netlib (fallback)" >&5
37403echo $ECHO_N "checking for COIN-OR package Netlib (fallback)... $ECHO_C" >&6
37404
37405coin_has_netlib=notGiven
37406NETLIB_LIBS=
37407NETLIB_LIBS_INSTALLED=
37408NETLIB_CFLAGS=
37409NETLIB_CFLAGS_INSTALLED=
37410NETLIB_DATA=
37411NETLIB_DATA_INSTALLED=
37412NETLIB_PCLIBS=
37413NETLIB_PCREQUIRES=
37414
37415# initial list of dependencies is "coindatanetlib", but we need to filter out version number specifications (= x, <= x, >= x, != x)
37416projtoprocess="coindatanetlib"
37417
37418# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
37419# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
37420# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
37421# also, we setup the DATA variable
37422allproj=""
37423allpcfiles=""
37424allpcifiles=""
37425while test "x$projtoprocess" != x ; do
37426
37427  for proj in $projtoprocess ; do
37428    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
37429    pcfile=""
37430    save_IFS="$IFS"
37431    IFS=":"
37432    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
37433      # 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
37434      if test -r "$dir/${proj}-uninstalled.pc" ; then
37435        pcfile="$dir/$proj-uninstalled.pc"
37436        if test -r "$dir/${proj}.pc" ; then
37437          pcifile="$dir/${proj}.pc"
37438        else
37439          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
37440echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
37441          pcifile=
37442        fi
37443        break
37444      fi
37445    done
37446    IFS="$save_IFS"
37447
37448    if test "x$pcfile" != x ; then
37449      # read dependencies from $pcfile and filter it
37450      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ 	]\{0,\}[^ 	]\{1,\}//g'`
37451
37452      # add projrequires to the front of the list of projects that have to be processed next
37453      # at the same time, remove $proj from this list
37454      projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
37455
37456      # read DATA from $pcfile, if _DATA is still empty
37457      if test "x$NETLIB_DATA" = x ; then
37458        projdatadir=
37459        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
37460        eval `sh -c "$pcfilemod"`
37461        NETLIB_DATA="$projdatadir"
37462      fi
37463
37464      allproj="$allproj $proj"
37465      allpcfiles="$pcfile:$allpcfiles"
37466
37467    else
37468      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
37469echo "${ECHO_T}no, dependency $proj not available" >&6
37470      allproj=fail
37471      break 2
37472    fi
37473
37474    if test "x$pcifile" != x ; then
37475      allpcifiles="$pcifile:$allpcifiles"
37476
37477      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
37478      if test "x$NETLIB_DATA_INSTALLED" = x ; then
37479        projdatadir=
37480        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
37481        eval `sh -c "$pcifilemod"`
37482        if test "${CYGPATH_W}" != "echo"; then
37483          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
37484        fi
37485        NETLIB_DATA_INSTALLED="$projdatadir"
37486      fi
37487
37488    fi
37489
37490    break
37491  done
37492
37493  # remove spaces on begin of $projtoprocess
37494  projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
37495
37496done
37497
37498if test "$allproj" != fail ; then
37499
37500  # now go through the list of .pc files and assemble compiler and linker flags
37501  # important is here to obey the reverse order that has been setup before,
37502  # since then libraries that are required by several others should be after these other libraries
37503  pcfilesprocessed=""
37504
37505  save_IFS="$IFS"
37506  IFS=":"
37507  for pcfile in $allpcfiles ; do
37508
37509    # if $pcfile has been processed already, skip this round
37510    if test "x$pcfilesprocessed" != x ; then
37511      for pcfiledone in $pcfilesprocessed ; do
37512        if test "$pcfiledone" = "$pcfile" ; then
37513          continue 2
37514        fi
37515      done
37516    fi
37517
37518    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
37519    #   replace "Libs:" by "echo projlibs="
37520    #   replace "Cflags:" by "echo projcflags="
37521    #   remove every line starting with <some word>:
37522    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
37523
37524    # set projcflags and projlibs variables by running $pcfilemod
37525    # 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
37526    projcflags=
37527    projlibs=
37528    IFS="$save_IFS"
37529    eval `sh -c "$pcfilemod"`
37530    IFS=":"
37531
37532    # add CYGPATH_W cludge into include flags and set CFLAGS variable
37533    if test "${CYGPATH_W}" != "echo"; then
37534      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
37535    fi
37536    NETLIB_CFLAGS="$projcflags $NETLIB_CFLAGS"
37537
37538    # set LIBS variable
37539    NETLIB_LIBS="$projlibs $NETLIB_LIBS"
37540
37541    # remember that we have processed $pcfile
37542    pcfilesprocessed="$pcfilesprocessed:$pcfile"
37543
37544  done
37545  IFS="$save_IFS"
37546
37547
37548  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
37549  # important is here again to obey the reverse order that has been setup before,
37550  # since then libraries that are required by several others should be after these other libraries
37551  pcfilesprocessed=""
37552
37553  save_IFS="$IFS"
37554  IFS=":"
37555  for pcfile in $allpcifiles ; do
37556
37557    # if $pcfile has been processed already, skip this round
37558    if test "x$pcfilesprocessed" != x ; then
37559      for pcfiledone in $pcfilesprocessed ; do
37560        if test "$pcfiledone" = "$pcfile" ; then
37561          continue 2
37562        fi
37563      done
37564    fi
37565
37566    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
37567    #   replace "Libs:" by "echo projlibs="
37568    #   replace "Cflags:" by "echo projcflags="
37569    #   remove every line starting with <some word>:
37570    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
37571
37572    # set projcflags and projlibs variables by running $pcfilemod
37573    # 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
37574    projcflags=
37575    projlibs=
37576    IFS="$save_IFS"
37577    eval `sh -c "$pcfilemod"`
37578    IFS=":"
37579
37580    # add CYGPATH_W cludge into include flags and set CFLAGS variable
37581    if test "${CYGPATH_W}" != "echo"; then
37582      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
37583    fi
37584    NETLIB_CFLAGS_INSTALLED="$projcflags $NETLIB_CFLAGS_INSTALLED"
37585
37586    # set LIBS variable
37587    NETLIB_LIBS_INSTALLED="$projlibs $NETLIB_LIBS_INSTALLED"
37588
37589    # remember that we have processed $pcfile
37590    pcfilesprocessed="$pcfilesprocessed:$pcfile"
37591
37592  done
37593  IFS="$save_IFS"
37594
37595
37596  # finish up
37597  coin_has_netlib=yes
37598  echo "$as_me:$LINENO: result: yes" >&5
37599echo "${ECHO_T}yes" >&6
37600
37601cat >>confdefs.h <<\_ACEOF
37602#define COIN_HAS_NETLIB 1
37603_ACEOF
37604
37605
37606  # adjust linker flags for (i)cl compiler
37607  # 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),
37608  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
37609  #    everything of the form "-lname" by "libname.lib", and
37610  #    everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
37611  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
37612  then
37613    NETLIB_LIBS=`echo " $NETLIB_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
37614    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'`
37615  fi
37616
37617  NETLIB_PCREQUIRES="coindatanetlib"
37618
37619
37620fi
37621
37622
37623
37624if test $coin_has_netlib != notGiven &&
37625                test $coin_has_netlib != skipping; then
37626  COIN_HAS_NETLIB_TRUE=
37627  COIN_HAS_NETLIB_FALSE='#'
37628else
37629  COIN_HAS_NETLIB_TRUE='#'
37630  COIN_HAS_NETLIB_FALSE=
37631fi
37632
37633
37634
37635  fi
37636
37637else
37638  echo "$as_me:$LINENO: result: $coin_has_netlib" >&5
37639echo "${ECHO_T}$coin_has_netlib" >&6
37640fi
37641
37642if test $coin_has_netlib != skipping &&
37643   test $coin_has_netlib != notGiven ; then
37644
37645cat >>confdefs.h <<\_ACEOF
37646#define COIN_HAS_NETLIB 1
37647_ACEOF
37648
37649
37650  # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
37651if test "${enable_interpackage_dependencies+set}" = set; then
37652  enableval="$enable_interpackage_dependencies"
37653
37654else
37655  enable_interpackage_dependencies=yes
37656fi;
37657
37658  if test $enable_interpackage_dependencies = yes ; then
37659     # construct dependencies variables from LIBS variables
37660     # we add an extra space in LIBS so we can substitute out everything starting with " -"
37661     # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows
37662     # then remove everything of the form -xxx
37663     # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
37664     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'`
37665
37666  fi
37667
37668  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
37669    if test -n "$NETLIB_CFLAGS" ; then
37670      { echo "$as_me:$LINENO: Netlib CFLAGS are $NETLIB_CFLAGS" >&5
37671echo "$as_me: Netlib CFLAGS are $NETLIB_CFLAGS" >&6;}
37672    fi
37673    if test -n "$NETLIB_LIBS" ; then
37674      { echo "$as_me:$LINENO: Netlib LIBS   are $NETLIB_LIBS" >&5
37675echo "$as_me: Netlib LIBS   are $NETLIB_LIBS" >&6;}
37676    fi
37677    if test -n "$NETLIB_DEPENDENCIES" ; then
37678      { echo "$as_me:$LINENO: Netlib DEPENDENCIES are $NETLIB_DEPENDENCIES" >&5
37679echo "$as_me: Netlib DEPENDENCIES are $NETLIB_DEPENDENCIES" >&6;}
37680    fi
37681    if test -n "$NETLIB_DATA" ; then
37682      { echo "$as_me:$LINENO: Netlib DATA   is  $NETLIB_DATA" >&5
37683echo "$as_me: Netlib DATA   is  $NETLIB_DATA" >&6;}
37684    fi
37685    if test -n "$NETLIB_PCLIBS" ; then
37686      { echo "$as_me:$LINENO: Netlib PCLIBS are $NETLIB_PCLIBS" >&5
37687echo "$as_me: Netlib PCLIBS are $NETLIB_PCLIBS" >&6;}
37688    fi
37689    if test -n "$NETLIB_PCREQUIRES" ; then
37690      { echo "$as_me:$LINENO: Netlib PCREQUIRES are $NETLIB_PCREQUIRES" >&5
37691echo "$as_me: Netlib PCREQUIRES are $NETLIB_PCREQUIRES" >&6;}
37692    fi
37693
37694  fi
37695fi
37696
37697# Define the Makefile conditional
37698
37699
37700if test $coin_has_netlib != notGiven &&
37701                test $coin_has_netlib != skipping; then
37702  COIN_HAS_NETLIB_TRUE=
37703  COIN_HAS_NETLIB_FALSE='#'
37704else
37705  COIN_HAS_NETLIB_TRUE='#'
37706  COIN_HAS_NETLIB_FALSE=
37707fi
37708
37709
37710
37711
37712
37713
37714
37715
37716
37717
37718coin_has_zlib=no
37719
37720# Check whether --enable-zlib or --disable-zlib was given.
37721if test "${enable_zlib+set}" = set; then
37722  enableval="$enable_zlib"
37723  coin_enable_zlib=$enableval
37724else
37725  coin_enable_zlib=yes
37726fi;
37727
37728if test $coin_enable_zlib = yes; then
37729  #if test x"" = x; then
37730#  hdr="#include <zlib.h>"
37731#else
37732#  hdr=""
37733#fi
37734#AC_CHECK_HEADERS([zlib.h],[coin_has_zlib=yes],[],[$hdr])
37735
37736for ac_header in zlib.h
37737do
37738as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37739if eval "test \"\${$as_ac_Header+set}\" = set"; then
37740  echo "$as_me:$LINENO: checking for $ac_header" >&5
37741echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37742if eval "test \"\${$as_ac_Header+set}\" = set"; then
37743  echo $ECHO_N "(cached) $ECHO_C" >&6
37744fi
37745echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37746echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37747else
37748  # Is the header compilable?
37749echo "$as_me:$LINENO: checking $ac_header usability" >&5
37750echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37751cat >conftest.$ac_ext <<_ACEOF
37752/* confdefs.h.  */
37753_ACEOF
37754cat confdefs.h >>conftest.$ac_ext
37755cat >>conftest.$ac_ext <<_ACEOF
37756/* end confdefs.h.  */
37757$ac_includes_default
37758#include <$ac_header>
37759_ACEOF
37760rm -f conftest.$ac_objext
37761if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37762  (eval $ac_compile) 2>conftest.er1
37763  ac_status=$?
37764  grep -v '^ *+' conftest.er1 >conftest.err
37765  rm -f conftest.er1
37766  cat conftest.err >&5
37767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37768  (exit $ac_status); } &&
37769	 { ac_try='test -z "$ac_cxx_werror_flag"
37770			 || test ! -s conftest.err'
37771  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37772  (eval $ac_try) 2>&5
37773  ac_status=$?
37774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37775  (exit $ac_status); }; } &&
37776	 { ac_try='test -s conftest.$ac_objext'
37777  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37778  (eval $ac_try) 2>&5
37779  ac_status=$?
37780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37781  (exit $ac_status); }; }; then
37782  ac_header_compiler=yes
37783else
37784  echo "$as_me: failed program was:" >&5
37785sed 's/^/| /' conftest.$ac_ext >&5
37786
37787ac_header_compiler=no
37788fi
37789rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37790echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37791echo "${ECHO_T}$ac_header_compiler" >&6
37792
37793# Is the header present?
37794echo "$as_me:$LINENO: checking $ac_header presence" >&5
37795echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37796cat >conftest.$ac_ext <<_ACEOF
37797/* confdefs.h.  */
37798_ACEOF
37799cat confdefs.h >>conftest.$ac_ext
37800cat >>conftest.$ac_ext <<_ACEOF
37801/* end confdefs.h.  */
37802#include <$ac_header>
37803_ACEOF
37804if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37805  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37806  ac_status=$?
37807  grep -v '^ *+' conftest.er1 >conftest.err
37808  rm -f conftest.er1
37809  cat conftest.err >&5
37810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37811  (exit $ac_status); } >/dev/null; then
37812  if test -s conftest.err; then
37813    ac_cpp_err=$ac_cxx_preproc_warn_flag
37814    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
37815  else
37816    ac_cpp_err=
37817  fi
37818else
37819  ac_cpp_err=yes
37820fi
37821if test -z "$ac_cpp_err"; then
37822  ac_header_preproc=yes
37823else
37824  echo "$as_me: failed program was:" >&5
37825sed 's/^/| /' conftest.$ac_ext >&5
37826
37827  ac_header_preproc=no
37828fi
37829rm -f conftest.err conftest.$ac_ext
37830echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37831echo "${ECHO_T}$ac_header_preproc" >&6
37832
37833# So?  What about this header?
37834case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
37835  yes:no: )
37836    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37837echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37838    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37839echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37840    ac_header_preproc=yes
37841    ;;
37842  no:yes:* )
37843    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37844echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37845    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37846echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37847    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37848echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37849    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37850echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37851    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37852echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37853    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37854echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37855    (
37856      cat <<\_ASBOX
37857## ---------------------------------------------------- ##
37858## Report this to http://projects.coin-or.org/CoinUtils ##
37859## ---------------------------------------------------- ##
37860_ASBOX
37861    ) |
37862      sed "s/^/$as_me: WARNING:     /" >&2
37863    ;;
37864esac
37865echo "$as_me:$LINENO: checking for $ac_header" >&5
37866echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37867if eval "test \"\${$as_ac_Header+set}\" = set"; then
37868  echo $ECHO_N "(cached) $ECHO_C" >&6
37869else
37870  eval "$as_ac_Header=\$ac_header_preproc"
37871fi
37872echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37873echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37874
37875fi
37876if test `eval echo '${'$as_ac_Header'}'` = yes; then
37877  cat >>confdefs.h <<_ACEOF
37878#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37879_ACEOF
37880 coin_has_zlib=yes
37881fi
37882
37883done
37884
37885
37886
37887  if test $coin_has_zlib = yes; then
37888    echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
37889echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6
37890if test "${ac_cv_lib_z_gzopen+set}" = set; then
37891  echo $ECHO_N "(cached) $ECHO_C" >&6
37892else
37893  ac_check_lib_save_LIBS=$LIBS
37894LIBS="-lz  $LIBS"
37895cat >conftest.$ac_ext <<_ACEOF
37896/* confdefs.h.  */
37897_ACEOF
37898cat confdefs.h >>conftest.$ac_ext
37899cat >>conftest.$ac_ext <<_ACEOF
37900/* end confdefs.h.  */
37901
37902/* Override any gcc2 internal prototype to avoid an error.  */
37903#ifdef __cplusplus
37904extern "C"
37905#endif
37906/* We use char because int might match the return type of a gcc2
37907   builtin and then its argument prototype would still apply.  */
37908char gzopen ();
37909#ifdef F77_DUMMY_MAIN
37910
37911#  ifdef __cplusplus
37912     extern "C"
37913#  endif
37914   int F77_DUMMY_MAIN() { return 1; }
37915
37916#endif
37917int
37918main ()
37919{
37920gzopen ();
37921  ;
37922  return 0;
37923}
37924_ACEOF
37925rm -f conftest.$ac_objext conftest$ac_exeext
37926if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37927  (eval $ac_link) 2>conftest.er1
37928  ac_status=$?
37929  grep -v '^ *+' conftest.er1 >conftest.err
37930  rm -f conftest.er1
37931  cat conftest.err >&5
37932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37933  (exit $ac_status); } &&
37934	 { ac_try='test -z "$ac_cxx_werror_flag"
37935			 || test ! -s conftest.err'
37936  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37937  (eval $ac_try) 2>&5
37938  ac_status=$?
37939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37940  (exit $ac_status); }; } &&
37941	 { ac_try='test -s conftest$ac_exeext'
37942  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37943  (eval $ac_try) 2>&5
37944  ac_status=$?
37945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37946  (exit $ac_status); }; }; then
37947  ac_cv_lib_z_gzopen=yes
37948else
37949  echo "$as_me: failed program was:" >&5
37950sed 's/^/| /' conftest.$ac_ext >&5
37951
37952ac_cv_lib_z_gzopen=no
37953fi
37954rm -f conftest.err conftest.$ac_objext \
37955      conftest$ac_exeext conftest.$ac_ext
37956LIBS=$ac_check_lib_save_LIBS
37957fi
37958echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
37959echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6
37960if test $ac_cv_lib_z_gzopen = yes; then
37961  :
37962else
37963  coin_has_zlib=no
37964fi
37965
37966  fi
37967
37968  if test $coin_has_zlib = yes; then
37969
37970                    COINUTILSLIB_LIBS="-lz $COINUTILSLIB_LIBS"
37971                    COINUTILSLIB_PCLIBS="-lz $COINUTILSLIB_PCLIBS"
37972                    COINUTILSLIB_LIBS_INSTALLED="-lz $COINUTILSLIB_LIBS_INSTALLED"
37973
37974
37975cat >>confdefs.h <<\_ACEOF
37976#define COIN_HAS_ZLIB 1
37977_ACEOF
37978
37979  fi
37980fi
37981
37982
37983
37984if test x$coin_has_zlib = xyes; then
37985  COIN_HAS_ZLIB_TRUE=
37986  COIN_HAS_ZLIB_FALSE='#'
37987else
37988  COIN_HAS_ZLIB_TRUE='#'
37989  COIN_HAS_ZLIB_FALSE=
37990fi
37991
37992
37993
37994
37995
37996
37997
37998
37999# Check whether --enable-bzlib or --disable-bzlib was given.
38000if test "${enable_bzlib+set}" = set; then
38001  enableval="$enable_bzlib"
38002  coin_enable_bzlib=$enableval
38003else
38004  coin_enable_bzlib=yes
38005fi;
38006
38007coin_has_bzlib=no
38008if test $coin_enable_bzlib = yes; then
38009  #if test x"" = x; then
38010#  hdr="#include <bzlib.h>"
38011#else
38012#  hdr=""
38013#fi
38014#AC_CHECK_HEADERS([bzlib.h],[coin_has_bzlib=yes],[],[$hdr])
38015
38016for ac_header in bzlib.h
38017do
38018as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38019if eval "test \"\${$as_ac_Header+set}\" = set"; then
38020  echo "$as_me:$LINENO: checking for $ac_header" >&5
38021echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38022if eval "test \"\${$as_ac_Header+set}\" = set"; then
38023  echo $ECHO_N "(cached) $ECHO_C" >&6
38024fi
38025echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38026echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38027else
38028  # Is the header compilable?
38029echo "$as_me:$LINENO: checking $ac_header usability" >&5
38030echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38031cat >conftest.$ac_ext <<_ACEOF
38032/* confdefs.h.  */
38033_ACEOF
38034cat confdefs.h >>conftest.$ac_ext
38035cat >>conftest.$ac_ext <<_ACEOF
38036/* end confdefs.h.  */
38037$ac_includes_default
38038#include <$ac_header>
38039_ACEOF
38040rm -f conftest.$ac_objext
38041if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38042  (eval $ac_compile) 2>conftest.er1
38043  ac_status=$?
38044  grep -v '^ *+' conftest.er1 >conftest.err
38045  rm -f conftest.er1
38046  cat conftest.err >&5
38047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38048  (exit $ac_status); } &&
38049	 { ac_try='test -z "$ac_cxx_werror_flag"
38050			 || test ! -s conftest.err'
38051  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38052  (eval $ac_try) 2>&5
38053  ac_status=$?
38054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38055  (exit $ac_status); }; } &&
38056	 { ac_try='test -s conftest.$ac_objext'
38057  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38058  (eval $ac_try) 2>&5
38059  ac_status=$?
38060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38061  (exit $ac_status); }; }; then
38062  ac_header_compiler=yes
38063else
38064  echo "$as_me: failed program was:" >&5
38065sed 's/^/| /' conftest.$ac_ext >&5
38066
38067ac_header_compiler=no
38068fi
38069rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38070echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38071echo "${ECHO_T}$ac_header_compiler" >&6
38072
38073# Is the header present?
38074echo "$as_me:$LINENO: checking $ac_header presence" >&5
38075echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38076cat >conftest.$ac_ext <<_ACEOF
38077/* confdefs.h.  */
38078_ACEOF
38079cat confdefs.h >>conftest.$ac_ext
38080cat >>conftest.$ac_ext <<_ACEOF
38081/* end confdefs.h.  */
38082#include <$ac_header>
38083_ACEOF
38084if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38085  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38086  ac_status=$?
38087  grep -v '^ *+' conftest.er1 >conftest.err
38088  rm -f conftest.er1
38089  cat conftest.err >&5
38090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38091  (exit $ac_status); } >/dev/null; then
38092  if test -s conftest.err; then
38093    ac_cpp_err=$ac_cxx_preproc_warn_flag
38094    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
38095  else
38096    ac_cpp_err=
38097  fi
38098else
38099  ac_cpp_err=yes
38100fi
38101if test -z "$ac_cpp_err"; then
38102  ac_header_preproc=yes
38103else
38104  echo "$as_me: failed program was:" >&5
38105sed 's/^/| /' conftest.$ac_ext >&5
38106
38107  ac_header_preproc=no
38108fi
38109rm -f conftest.err conftest.$ac_ext
38110echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38111echo "${ECHO_T}$ac_header_preproc" >&6
38112
38113# So?  What about this header?
38114case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
38115  yes:no: )
38116    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38117echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38118    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38119echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38120    ac_header_preproc=yes
38121    ;;
38122  no:yes:* )
38123    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38124echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38125    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
38126echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
38127    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38128echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38129    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
38130echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
38131    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38132echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38133    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38134echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38135    (
38136      cat <<\_ASBOX
38137## ---------------------------------------------------- ##
38138## Report this to http://projects.coin-or.org/CoinUtils ##
38139## ---------------------------------------------------- ##
38140_ASBOX
38141    ) |
38142      sed "s/^/$as_me: WARNING:     /" >&2
38143    ;;
38144esac
38145echo "$as_me:$LINENO: checking for $ac_header" >&5
38146echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38147if eval "test \"\${$as_ac_Header+set}\" = set"; then
38148  echo $ECHO_N "(cached) $ECHO_C" >&6
38149else
38150  eval "$as_ac_Header=\$ac_header_preproc"
38151fi
38152echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38153echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38154
38155fi
38156if test `eval echo '${'$as_ac_Header'}'` = yes; then
38157  cat >>confdefs.h <<_ACEOF
38158#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38159_ACEOF
38160 coin_has_bzlib=yes
38161fi
38162
38163done
38164
38165
38166
38167  if test $coin_has_bzlib = yes; then
38168    echo "$as_me:$LINENO: checking for BZ2_bzReadOpen in -lbz2" >&5
38169echo $ECHO_N "checking for BZ2_bzReadOpen in -lbz2... $ECHO_C" >&6
38170if test "${ac_cv_lib_bz2_BZ2_bzReadOpen+set}" = set; then
38171  echo $ECHO_N "(cached) $ECHO_C" >&6
38172else
38173  ac_check_lib_save_LIBS=$LIBS
38174LIBS="-lbz2  $LIBS"
38175cat >conftest.$ac_ext <<_ACEOF
38176/* confdefs.h.  */
38177_ACEOF
38178cat confdefs.h >>conftest.$ac_ext
38179cat >>conftest.$ac_ext <<_ACEOF
38180/* end confdefs.h.  */
38181
38182/* Override any gcc2 internal prototype to avoid an error.  */
38183#ifdef __cplusplus
38184extern "C"
38185#endif
38186/* We use char because int might match the return type of a gcc2
38187   builtin and then its argument prototype would still apply.  */
38188char BZ2_bzReadOpen ();
38189#ifdef F77_DUMMY_MAIN
38190
38191#  ifdef __cplusplus
38192     extern "C"
38193#  endif
38194   int F77_DUMMY_MAIN() { return 1; }
38195
38196#endif
38197int
38198main ()
38199{
38200BZ2_bzReadOpen ();
38201  ;
38202  return 0;
38203}
38204_ACEOF
38205rm -f conftest.$ac_objext conftest$ac_exeext
38206if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38207  (eval $ac_link) 2>conftest.er1
38208  ac_status=$?
38209  grep -v '^ *+' conftest.er1 >conftest.err
38210  rm -f conftest.er1
38211  cat conftest.err >&5
38212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38213  (exit $ac_status); } &&
38214	 { ac_try='test -z "$ac_cxx_werror_flag"
38215			 || test ! -s conftest.err'
38216  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38217  (eval $ac_try) 2>&5
38218  ac_status=$?
38219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38220  (exit $ac_status); }; } &&
38221	 { ac_try='test -s conftest$ac_exeext'
38222  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38223  (eval $ac_try) 2>&5
38224  ac_status=$?
38225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38226  (exit $ac_status); }; }; then
38227  ac_cv_lib_bz2_BZ2_bzReadOpen=yes
38228else
38229  echo "$as_me: failed program was:" >&5
38230sed 's/^/| /' conftest.$ac_ext >&5
38231
38232ac_cv_lib_bz2_BZ2_bzReadOpen=no
38233fi
38234rm -f conftest.err conftest.$ac_objext \
38235      conftest$ac_exeext conftest.$ac_ext
38236LIBS=$ac_check_lib_save_LIBS
38237fi
38238echo "$as_me:$LINENO: result: $ac_cv_lib_bz2_BZ2_bzReadOpen" >&5
38239echo "${ECHO_T}$ac_cv_lib_bz2_BZ2_bzReadOpen" >&6
38240if test $ac_cv_lib_bz2_BZ2_bzReadOpen = yes; then
38241  :
38242else
38243  coin_has_bzlib=no
38244fi
38245
38246  fi
38247
38248  if test $coin_has_bzlib = yes; then
38249
38250                    COINUTILSLIB_LIBS="-lbz2 $COINUTILSLIB_LIBS"
38251                    COINUTILSLIB_PCLIBS="-lbz2 $COINUTILSLIB_PCLIBS"
38252                    COINUTILSLIB_LIBS_INSTALLED="-lbz2 $COINUTILSLIB_LIBS_INSTALLED"
38253
38254
38255cat >>confdefs.h <<\_ACEOF
38256#define COIN_HAS_BZLIB 1
38257_ACEOF
38258
38259  fi
38260fi
38261
38262# Check whether --enable-gnu-packages or --disable-gnu-packages was given.
38263if test "${enable_gnu_packages+set}" = set; then
38264  enableval="$enable_gnu_packages"
38265  coin_enable_gnu=$enableval
38266else
38267  coin_enable_gnu=no
38268fi;
38269
38270
38271
38272
38273
38274
38275
38276coin_has_readline=no
38277if test $coin_enable_gnu = yes; then
38278  #if test x"#include <stdio.h>" = x; then
38279#  hdr="#include <readline/readline.h>"
38280#else
38281#  hdr="#include <stdio.h>"
38282#fi
38283#AC_CHECK_HEADERS([readline/readline.h],[coin_has_readline=yes],[],[$hdr])
38284
38285for ac_header in readline/readline.h
38286do
38287as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38288echo "$as_me:$LINENO: checking for $ac_header" >&5
38289echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38290if eval "test \"\${$as_ac_Header+set}\" = set"; then
38291  echo $ECHO_N "(cached) $ECHO_C" >&6
38292else
38293  cat >conftest.$ac_ext <<_ACEOF
38294/* confdefs.h.  */
38295_ACEOF
38296cat confdefs.h >>conftest.$ac_ext
38297cat >>conftest.$ac_ext <<_ACEOF
38298/* end confdefs.h.  */
38299#include <stdio.h>
38300
38301#include <$ac_header>
38302_ACEOF
38303rm -f conftest.$ac_objext
38304if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38305  (eval $ac_compile) 2>conftest.er1
38306  ac_status=$?
38307  grep -v '^ *+' conftest.er1 >conftest.err
38308  rm -f conftest.er1
38309  cat conftest.err >&5
38310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38311  (exit $ac_status); } &&
38312	 { ac_try='test -z "$ac_cxx_werror_flag"
38313			 || test ! -s conftest.err'
38314  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38315  (eval $ac_try) 2>&5
38316  ac_status=$?
38317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38318  (exit $ac_status); }; } &&
38319	 { ac_try='test -s conftest.$ac_objext'
38320  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38321  (eval $ac_try) 2>&5
38322  ac_status=$?
38323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38324  (exit $ac_status); }; }; then
38325  eval "$as_ac_Header=yes"
38326else
38327  echo "$as_me: failed program was:" >&5
38328sed 's/^/| /' conftest.$ac_ext >&5
38329
38330eval "$as_ac_Header=no"
38331fi
38332rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38333fi
38334echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38335echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38336if test `eval echo '${'$as_ac_Header'}'` = yes; then
38337  cat >>confdefs.h <<_ACEOF
38338#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38339_ACEOF
38340 coin_has_readline=yes
38341fi
38342
38343done
38344
38345
38346
38347  coin_save_LIBS="$LIBS"
38348  LIBS=
38349  # First we check if tputs and friends are available
38350  if test $coin_has_readline = yes; then
38351    echo "$as_me:$LINENO: checking for library containing tputs" >&5
38352echo $ECHO_N "checking for library containing tputs... $ECHO_C" >&6
38353if test "${ac_cv_search_tputs+set}" = set; then
38354  echo $ECHO_N "(cached) $ECHO_C" >&6
38355else
38356  ac_func_search_save_LIBS=$LIBS
38357ac_cv_search_tputs=no
38358cat >conftest.$ac_ext <<_ACEOF
38359/* confdefs.h.  */
38360_ACEOF
38361cat confdefs.h >>conftest.$ac_ext
38362cat >>conftest.$ac_ext <<_ACEOF
38363/* end confdefs.h.  */
38364
38365/* Override any gcc2 internal prototype to avoid an error.  */
38366#ifdef __cplusplus
38367extern "C"
38368#endif
38369/* We use char because int might match the return type of a gcc2
38370   builtin and then its argument prototype would still apply.  */
38371char tputs ();
38372#ifdef F77_DUMMY_MAIN
38373
38374#  ifdef __cplusplus
38375     extern "C"
38376#  endif
38377   int F77_DUMMY_MAIN() { return 1; }
38378
38379#endif
38380int
38381main ()
38382{
38383tputs ();
38384  ;
38385  return 0;
38386}
38387_ACEOF
38388rm -f conftest.$ac_objext conftest$ac_exeext
38389if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38390  (eval $ac_link) 2>conftest.er1
38391  ac_status=$?
38392  grep -v '^ *+' conftest.er1 >conftest.err
38393  rm -f conftest.er1
38394  cat conftest.err >&5
38395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38396  (exit $ac_status); } &&
38397	 { ac_try='test -z "$ac_cxx_werror_flag"
38398			 || test ! -s conftest.err'
38399  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38400  (eval $ac_try) 2>&5
38401  ac_status=$?
38402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38403  (exit $ac_status); }; } &&
38404	 { ac_try='test -s conftest$ac_exeext'
38405  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38406  (eval $ac_try) 2>&5
38407  ac_status=$?
38408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38409  (exit $ac_status); }; }; then
38410  ac_cv_search_tputs="none required"
38411else
38412  echo "$as_me: failed program was:" >&5
38413sed 's/^/| /' conftest.$ac_ext >&5
38414
38415fi
38416rm -f conftest.err conftest.$ac_objext \
38417      conftest$ac_exeext conftest.$ac_ext
38418if test "$ac_cv_search_tputs" = no; then
38419  for ac_lib in ncurses termcap curses; do
38420    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
38421    cat >conftest.$ac_ext <<_ACEOF
38422/* confdefs.h.  */
38423_ACEOF
38424cat confdefs.h >>conftest.$ac_ext
38425cat >>conftest.$ac_ext <<_ACEOF
38426/* end confdefs.h.  */
38427
38428/* Override any gcc2 internal prototype to avoid an error.  */
38429#ifdef __cplusplus
38430extern "C"
38431#endif
38432/* We use char because int might match the return type of a gcc2
38433   builtin and then its argument prototype would still apply.  */
38434char tputs ();
38435#ifdef F77_DUMMY_MAIN
38436
38437#  ifdef __cplusplus
38438     extern "C"
38439#  endif
38440   int F77_DUMMY_MAIN() { return 1; }
38441
38442#endif
38443int
38444main ()
38445{
38446tputs ();
38447  ;
38448  return 0;
38449}
38450_ACEOF
38451rm -f conftest.$ac_objext conftest$ac_exeext
38452if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38453  (eval $ac_link) 2>conftest.er1
38454  ac_status=$?
38455  grep -v '^ *+' conftest.er1 >conftest.err
38456  rm -f conftest.er1
38457  cat conftest.err >&5
38458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38459  (exit $ac_status); } &&
38460	 { ac_try='test -z "$ac_cxx_werror_flag"
38461			 || test ! -s conftest.err'
38462  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38463  (eval $ac_try) 2>&5
38464  ac_status=$?
38465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38466  (exit $ac_status); }; } &&
38467	 { ac_try='test -s conftest$ac_exeext'
38468  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38469  (eval $ac_try) 2>&5
38470  ac_status=$?
38471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38472  (exit $ac_status); }; }; then
38473  ac_cv_search_tputs="-l$ac_lib"
38474break
38475else
38476  echo "$as_me: failed program was:" >&5
38477sed 's/^/| /' conftest.$ac_ext >&5
38478
38479fi
38480rm -f conftest.err conftest.$ac_objext \
38481      conftest$ac_exeext conftest.$ac_ext
38482  done
38483fi
38484LIBS=$ac_func_search_save_LIBS
38485fi
38486echo "$as_me:$LINENO: result: $ac_cv_search_tputs" >&5
38487echo "${ECHO_T}$ac_cv_search_tputs" >&6
38488if test "$ac_cv_search_tputs" != no; then
38489  test "$ac_cv_search_tputs" = "none required" || LIBS="$ac_cv_search_tputs $LIBS"
38490
38491else
38492  coin_has_readline=no
38493fi
38494
38495  fi
38496
38497  # Now we check for readline
38498  if test $coin_has_readline = yes; then
38499    echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
38500echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
38501if test "${ac_cv_lib_readline_readline+set}" = set; then
38502  echo $ECHO_N "(cached) $ECHO_C" >&6
38503else
38504  ac_check_lib_save_LIBS=$LIBS
38505LIBS="-lreadline  $LIBS"
38506cat >conftest.$ac_ext <<_ACEOF
38507/* confdefs.h.  */
38508_ACEOF
38509cat confdefs.h >>conftest.$ac_ext
38510cat >>conftest.$ac_ext <<_ACEOF
38511/* end confdefs.h.  */
38512
38513/* Override any gcc2 internal prototype to avoid an error.  */
38514#ifdef __cplusplus
38515extern "C"
38516#endif
38517/* We use char because int might match the return type of a gcc2
38518   builtin and then its argument prototype would still apply.  */
38519char readline ();
38520#ifdef F77_DUMMY_MAIN
38521
38522#  ifdef __cplusplus
38523     extern "C"
38524#  endif
38525   int F77_DUMMY_MAIN() { return 1; }
38526
38527#endif
38528int
38529main ()
38530{
38531readline ();
38532  ;
38533  return 0;
38534}
38535_ACEOF
38536rm -f conftest.$ac_objext conftest$ac_exeext
38537if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38538  (eval $ac_link) 2>conftest.er1
38539  ac_status=$?
38540  grep -v '^ *+' conftest.er1 >conftest.err
38541  rm -f conftest.er1
38542  cat conftest.err >&5
38543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38544  (exit $ac_status); } &&
38545	 { ac_try='test -z "$ac_cxx_werror_flag"
38546			 || test ! -s conftest.err'
38547  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38548  (eval $ac_try) 2>&5
38549  ac_status=$?
38550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38551  (exit $ac_status); }; } &&
38552	 { ac_try='test -s conftest$ac_exeext'
38553  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38554  (eval $ac_try) 2>&5
38555  ac_status=$?
38556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38557  (exit $ac_status); }; }; then
38558  ac_cv_lib_readline_readline=yes
38559else
38560  echo "$as_me: failed program was:" >&5
38561sed 's/^/| /' conftest.$ac_ext >&5
38562
38563ac_cv_lib_readline_readline=no
38564fi
38565rm -f conftest.err conftest.$ac_objext \
38566      conftest$ac_exeext conftest.$ac_ext
38567LIBS=$ac_check_lib_save_LIBS
38568fi
38569echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
38570echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
38571if test $ac_cv_lib_readline_readline = yes; then
38572  :
38573else
38574  coin_has_readline=no
38575fi
38576
38577  fi
38578
38579  if test $coin_has_readline = yes; then
38580
38581                    COINUTILSLIB_LIBS="-lreadline $LIBS $COINUTILSLIB_LIBS"
38582                    COINUTILSLIB_PCLIBS="-lreadline $LIBS $COINUTILSLIB_PCLIBS"
38583                    COINUTILSLIB_LIBS_INSTALLED="-lreadline $LIBS $COINUTILSLIB_LIBS_INSTALLED"
38584
38585
38586cat >>confdefs.h <<\_ACEOF
38587#define COIN_HAS_READLINE 1
38588_ACEOF
38589
38590  fi
38591
38592  LIBS="$coin_save_LIBS"
38593fi
38594
38595
38596
38597echo "$as_me:$LINENO: checking whether this is a VPATH configuration" >&5
38598echo $ECHO_N "checking whether this is a VPATH configuration... $ECHO_C" >&6
38599if test `cd $srcdir; pwd` != `pwd`; then
38600  coin_vpath_config=yes;
38601else
38602  coin_vpath_config=no;
38603fi
38604echo "$as_me:$LINENO: result: $coin_vpath_config" >&5
38605echo "${ECHO_T}$coin_vpath_config" >&6
38606
38607
38608
38609# Allow for newlines in the parameter
38610if test $coin_vpath_config = yes; then
38611  cvl_tmp="test/plan.mod"
38612  for file in $cvl_tmp ; do
38613    coin_vpath_link_files="$coin_vpath_link_files $file"
38614  done
38615fi
38616
38617
38618#############################################################################
38619#                  Check for doxygen                                        #
38620#############################################################################
38621
38622
38623
38624{ echo "$as_me:$LINENO: configuring doxygen documentation options" >&5
38625echo "$as_me: configuring doxygen documentation options" >&6;}
38626
38627# Check to see if doxygen is available.
38628
38629# Extract the first word of "doxygen", so it can be a program name with args.
38630set dummy doxygen; ac_word=$2
38631echo "$as_me:$LINENO: checking for $ac_word" >&5
38632echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38633if test "${ac_cv_prog_coin_have_doxygen+set}" = set; then
38634  echo $ECHO_N "(cached) $ECHO_C" >&6
38635else
38636  if test -n "$coin_have_doxygen"; then
38637  ac_cv_prog_coin_have_doxygen="$coin_have_doxygen" # Let the user override the test.
38638else
38639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38640for as_dir in $PATH
38641do
38642  IFS=$as_save_IFS
38643  test -z "$as_dir" && as_dir=.
38644  for ac_exec_ext in '' $ac_executable_extensions; do
38645  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38646    ac_cv_prog_coin_have_doxygen="yes"
38647    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38648    break 2
38649  fi
38650done
38651done
38652
38653  test -z "$ac_cv_prog_coin_have_doxygen" && ac_cv_prog_coin_have_doxygen="no"
38654fi
38655fi
38656coin_have_doxygen=$ac_cv_prog_coin_have_doxygen
38657if test -n "$coin_have_doxygen"; then
38658  echo "$as_me:$LINENO: result: $coin_have_doxygen" >&5
38659echo "${ECHO_T}$coin_have_doxygen" >&6
38660else
38661  echo "$as_me:$LINENO: result: no" >&5
38662echo "${ECHO_T}no" >&6
38663fi
38664
38665# Extract the first word of "latex", so it can be a program name with args.
38666set dummy latex; ac_word=$2
38667echo "$as_me:$LINENO: checking for $ac_word" >&5
38668echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38669if test "${ac_cv_prog_coin_have_latex+set}" = set; then
38670  echo $ECHO_N "(cached) $ECHO_C" >&6
38671else
38672  if test -n "$coin_have_latex"; then
38673  ac_cv_prog_coin_have_latex="$coin_have_latex" # Let the user override the test.
38674else
38675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38676for as_dir in $PATH
38677do
38678  IFS=$as_save_IFS
38679  test -z "$as_dir" && as_dir=.
38680  for ac_exec_ext in '' $ac_executable_extensions; do
38681  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38682    ac_cv_prog_coin_have_latex="yes"
38683    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38684    break 2
38685  fi
38686done
38687done
38688
38689  test -z "$ac_cv_prog_coin_have_latex" && ac_cv_prog_coin_have_latex="no"
38690fi
38691fi
38692coin_have_latex=$ac_cv_prog_coin_have_latex
38693if test -n "$coin_have_latex"; then
38694  echo "$as_me:$LINENO: result: $coin_have_latex" >&5
38695echo "${ECHO_T}$coin_have_latex" >&6
38696else
38697  echo "$as_me:$LINENO: result: no" >&5
38698echo "${ECHO_T}no" >&6
38699fi
38700
38701
38702# Look for the dot tool from the graphviz package, unless the user has
38703# disabled it.
38704
38705
38706# Check whether --with-dot or --without-dot was given.
38707if test "${with_dot+set}" = set; then
38708  withval="$with_dot"
38709
38710else
38711  withval=yes
38712fi;
38713if test x"$withval" = xno ; then
38714  coin_doxy_usedot=NO
38715  echo "$as_me:$LINENO: checking for dot " >&5
38716echo $ECHO_N "checking for dot ... $ECHO_C" >&6
38717  echo "$as_me:$LINENO: result: disabled" >&5
38718echo "${ECHO_T}disabled" >&6
38719else
38720  # Extract the first word of "dot", so it can be a program name with args.
38721set dummy dot; ac_word=$2
38722echo "$as_me:$LINENO: checking for $ac_word" >&5
38723echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38724if test "${ac_cv_prog_coin_doxy_usedot+set}" = set; then
38725  echo $ECHO_N "(cached) $ECHO_C" >&6
38726else
38727  if test -n "$coin_doxy_usedot"; then
38728  ac_cv_prog_coin_doxy_usedot="$coin_doxy_usedot" # Let the user override the test.
38729else
38730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38731for as_dir in $PATH
38732do
38733  IFS=$as_save_IFS
38734  test -z "$as_dir" && as_dir=.
38735  for ac_exec_ext in '' $ac_executable_extensions; do
38736  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38737    ac_cv_prog_coin_doxy_usedot="YES"
38738    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38739    break 2
38740  fi
38741done
38742done
38743
38744  test -z "$ac_cv_prog_coin_doxy_usedot" && ac_cv_prog_coin_doxy_usedot="NO"
38745fi
38746fi
38747coin_doxy_usedot=$ac_cv_prog_coin_doxy_usedot
38748if test -n "$coin_doxy_usedot"; then
38749  echo "$as_me:$LINENO: result: $coin_doxy_usedot" >&5
38750echo "${ECHO_T}$coin_doxy_usedot" >&6
38751else
38752  echo "$as_me:$LINENO: result: no" >&5
38753echo "${ECHO_T}no" >&6
38754fi
38755
38756fi
38757
38758# Generate a tag file name and a log file name
38759
38760coin_doxy_tagname=doxydoc/${PACKAGE}_doxy.tag
38761
38762coin_doxy_logname=doxydoc/${PACKAGE}_doxy.log
38763
38764
38765
38766if test $coin_have_doxygen = yes; then
38767  COIN_HAS_DOXYGEN_TRUE=
38768  COIN_HAS_DOXYGEN_FALSE='#'
38769else
38770  COIN_HAS_DOXYGEN_TRUE='#'
38771  COIN_HAS_DOXYGEN_FALSE=
38772fi
38773
38774
38775
38776if test $coin_have_latex = yes; then
38777  COIN_HAS_LATEX_TRUE=
38778  COIN_HAS_LATEX_FALSE='#'
38779else
38780  COIN_HAS_LATEX_TRUE='#'
38781  COIN_HAS_LATEX_FALSE=
38782fi
38783
38784
38785# Process the list of project names and massage them into possible doxygen
38786# doc'n directories. Prefer 1) classic external, source processed using
38787# a project-specific doxygen.conf, we use the tag file; 2) classic
38788# external, source processed using package doxygen.conf; 3) installed
38789# doxydoc. Alternatives 1) and 2) are only possible if the directory will be
38790# configured, which we can't know unless this is the package base configure,
38791# since coin_subdirs is only set there. Hence it's sufficient to check for
38792# membership. If we use a tag file from a classic external, exclude the
38793# source from doxygen processing when doxygen runs in the base directory.
38794
38795coin_doxy_tagfiles=
38796coin_doxy_excludes=
38797tmp=""
38798for proj in $tmp ; do
38799  lc_proj=`echo $proj | tr [A-Z] [a-z]`
38800  echo "$as_me:$LINENO: checking for doxygen doc'n for $proj " >&5
38801echo $ECHO_N "checking for doxygen doc'n for $proj ... $ECHO_C" >&6
38802  doxytag=${lc_proj}_doxy.tag
38803  doxyfound=no
38804  # proj will be configured, hence doxydoc present in build tree
38805  doxysrcdir="${srcdir}/../${proj}"
38806  # AC_MSG_NOTICE([Considering $doxysrcdir (base)])
38807  if test -d "$doxysrcdir" ; then
38808    # with a doxydoc directory?
38809    doxydir="$doxysrcdir/doxydoc"
38810    # AC_MSG_NOTICE([Considering $doxydir (base)])
38811    # AC_MSG_NOTICE([Subdirs: $coin_subdirs)])
38812    if test -d "$doxydir" ; then
38813      # use tag file; don't process source
38814      doxydir="../${proj}/doxydoc"
38815      coin_doxy_tagfiles="$coin_doxy_tagfiles $doxydir/$doxytag=../../$doxydir/html"
38816      echo "$as_me:$LINENO: result: $doxydir (tag)" >&5
38817echo "${ECHO_T}$doxydir (tag)" >&6
38818      coin_doxy_excludes="$coin_doxy_excludes */${proj}"
38819    else
38820      # will process the source -- nothing further to be done here
38821      echo "$as_me:$LINENO: result: $doxysrcdir (src)" >&5
38822echo "${ECHO_T}$doxysrcdir (src)" >&6
38823    fi
38824    doxyfound=yes
38825  fi
38826  # Not built, fall back to installed tag file
38827  if test $doxyfound = no ; then
38828    eval doxydir="${datadir}/coin/doc/${proj}/doxydoc"
38829    # AC_MSG_NOTICE([Considering $doxydir (install)])
38830    # AC_MSG_NOTICE([Subdirs: $coin_subdirs)])
38831    coin_doxy_tagfiles="$coin_doxy_tagfiles $doxydir/$doxytag=$doxydir/html"
38832    echo "$as_me:$LINENO: result: $doxydir (tag)" >&5
38833echo "${ECHO_T}$doxydir (tag)" >&6
38834  fi
38835done
38836
38837
38838
38839
38840
38841##############################################################################
38842#                   Finishing up by writing all the output                   #
38843##############################################################################
38844
38845# Here list all the files that configure should create (except for the
38846# configuration header file)
38847                                                  ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile coinutils.pc coinutils-uninstalled.pc"
38848
38849          ac_config_files="$ac_config_files doxydoc/doxygen.conf"
38850
38851
38852# Here put the location and name of the configuration header file
38853                    ac_config_headers="$ac_config_headers src/config.h src/config_coinutils.h"
38854
38855
38856# Finally, we let configure write all the output...
38857
38858
38859
38860
38861echo "$as_me:$LINENO: checking which command should be used to link input files" >&5
38862echo $ECHO_N "checking which command should be used to link input files... $ECHO_C" >&6
38863coin_link_input_cmd="$LN_S"
38864case "$CC" in
38865  clang* ) ;;
38866  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
38867    coin_link_input_cmd=cp ;;
38868esac
38869echo "$as_me:$LINENO: result: $coin_link_input_cmd" >&5
38870echo "${ECHO_T}$coin_link_input_cmd" >&6
38871
38872
38873
38874if test x$coin_skip_ac_output != xyes; then
38875
38876  # library extension
38877
38878  case "$CC" in
38879    clang* )
38880         LIBEXT=a ;;
38881    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
38882         LIBEXT=lib ;;
38883      *) LIBEXT=a ;;
38884  esac
38885
38886  # Define VPATH_DISTCLEANFILES to be everything that needs to be
38887  # cleaned for distclean in a vpath configuration
38888
38889  VPATH_DISTCLEANFILES="$coin_vpath_link_files"
38890
38891  # Take out subdirectories if their configuration concluded that they
38892  # don't need to be compiled
38893  if test x"$coin_ac_skip_subdirs" != x; then
38894    new_subdirs=
38895    for i in $subdirs; do
38896      skipme=no
38897      for j in $coin_ac_skip_subdirs; do
38898        if test $i = $j; then
38899          skipme=yes;
38900        fi
38901      done
38902      if test $skipme = no; then
38903        new_subdirs="$new_subdirs $i"
38904      fi
38905    done
38906    subdirs="$new_subdirs"
38907  fi
38908
38909  # need to come before AC_OUTPUT
38910  if test x$coin_projectdir != xyes; then
38911    # write coin_subdirs to a file so that project configuration knows where to find uninstalled projects
38912    echo $coin_subdirs > coin_subdirs.txt
38913  else
38914    # substitute for OBJDIR, needed to setup .pc file for uninstalled project
38915    ABSBUILDDIR="`pwd`"
38916
38917  fi
38918
38919  cat >confcache <<\_ACEOF
38920# This file is a shell script that caches the results of configure
38921# tests run on this system so they can be shared between configure
38922# scripts and configure runs, see configure's option --config-cache.
38923# It is not useful on other systems.  If it contains results you don't
38924# want to keep, you may remove or edit it.
38925#
38926# config.status only pays attention to the cache file if you give it
38927# the --recheck option to rerun configure.
38928#
38929# `ac_cv_env_foo' variables (set or unset) will be overridden when
38930# loading this file, other *unset* `ac_cv_foo' will be assigned the
38931# following values.
38932
38933_ACEOF
38934
38935# The following way of writing the cache mishandles newlines in values,
38936# but we know of no workaround that is simple, portable, and efficient.
38937# So, don't put newlines in cache variables' values.
38938# Ultrix sh set writes to stderr and can't be redirected directly,
38939# and sets the high bit in the cache file unless we assign to the vars.
38940{
38941  (set) 2>&1 |
38942    case `(ac_space=' '; set | grep ac_space) 2>&1` in
38943    *ac_space=\ *)
38944      # `set' does not quote correctly, so add quotes (double-quote
38945      # substitution turns \\\\ into \\, and sed turns \\ into \).
38946      sed -n \
38947	"s/'/'\\\\''/g;
38948	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
38949      ;;
38950    *)
38951      # `set' quotes correctly as required by POSIX, so do not add quotes.
38952      sed -n \
38953	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
38954      ;;
38955    esac;
38956} |
38957  sed '
38958     t clear
38959     : clear
38960     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
38961     t end
38962     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
38963     : end' >>confcache
38964if diff $cache_file confcache >/dev/null 2>&1; then :; else
38965  if test -w $cache_file; then
38966    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
38967    cat confcache >$cache_file
38968  else
38969    echo "not updating unwritable cache $cache_file"
38970  fi
38971fi
38972rm -f confcache
38973
38974test "x$prefix" = xNONE && prefix=$ac_default_prefix
38975# Let make expand exec_prefix.
38976test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
38977
38978# VPATH may cause trouble with some makes, so we remove $(srcdir),
38979# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
38980# trailing colons and then remove the whole line if VPATH becomes empty
38981# (actually we leave an empty line to preserve line numbers).
38982if test "x$srcdir" = x.; then
38983  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
38984s/:*\$(srcdir):*/:/;
38985s/:*\${srcdir}:*/:/;
38986s/:*@srcdir@:*/:/;
38987s/^\([^=]*=[	 ]*\):*/\1/;
38988s/:*$//;
38989s/^[^=]*=[	 ]*$//;
38990}'
38991fi
38992
38993DEFS=-DHAVE_CONFIG_H
38994
38995ac_libobjs=
38996ac_ltlibobjs=
38997for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
38998  # 1. Remove the extension, and $U if already installed.
38999  ac_i=`echo "$ac_i" |
39000	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
39001  # 2. Add them.
39002  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
39003  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
39004done
39005LIBOBJS=$ac_libobjs
39006
39007LTLIBOBJS=$ac_ltlibobjs
39008
39009
39010if test -z "${ALWAYS_FALSE_TRUE}" && test -z "${ALWAYS_FALSE_FALSE}"; then
39011  { { echo "$as_me:$LINENO: error: conditional \"ALWAYS_FALSE\" was never defined.
39012Usually this means the macro was only invoked conditionally." >&5
39013echo "$as_me: error: conditional \"ALWAYS_FALSE\" was never defined.
39014Usually this means the macro was only invoked conditionally." >&2;}
39015   { (exit 1); exit 1; }; }
39016fi
39017if test -z "${COIN_CC_IS_CL_TRUE}" && test -z "${COIN_CC_IS_CL_FALSE}"; then
39018  { { echo "$as_me:$LINENO: error: conditional \"COIN_CC_IS_CL\" was never defined.
39019Usually this means the macro was only invoked conditionally." >&5
39020echo "$as_me: error: conditional \"COIN_CC_IS_CL\" was never defined.
39021Usually this means the macro was only invoked conditionally." >&2;}
39022   { (exit 1); exit 1; }; }
39023fi
39024if test -z "${COIN_CXX_IS_CL_TRUE}" && test -z "${COIN_CXX_IS_CL_FALSE}"; then
39025  { { echo "$as_me:$LINENO: error: conditional \"COIN_CXX_IS_CL\" was never defined.
39026Usually this means the macro was only invoked conditionally." >&5
39027echo "$as_me: error: conditional \"COIN_CXX_IS_CL\" was never defined.
39028Usually this means the macro was only invoked conditionally." >&2;}
39029   { (exit 1); exit 1; }; }
39030fi
39031if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
39032  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
39033Usually this means the macro was only invoked conditionally." >&5
39034echo "$as_me: error: conditional \"AMDEP\" was never defined.
39035Usually this means the macro was only invoked conditionally." >&2;}
39036   { (exit 1); exit 1; }; }
39037fi
39038if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
39039  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
39040Usually this means the macro was only invoked conditionally." >&5
39041echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
39042Usually this means the macro was only invoked conditionally." >&2;}
39043   { (exit 1); exit 1; }; }
39044fi
39045if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
39046  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
39047Usually this means the macro was only invoked conditionally." >&5
39048echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
39049Usually this means the macro was only invoked conditionally." >&2;}
39050   { (exit 1); exit 1; }; }
39051fi
39052if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
39053  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
39054Usually this means the macro was only invoked conditionally." >&5
39055echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
39056Usually this means the macro was only invoked conditionally." >&2;}
39057   { (exit 1); exit 1; }; }
39058fi
39059if test -z "${HAVE_EXTERNALS_TRUE}" && test -z "${HAVE_EXTERNALS_FALSE}"; then
39060  { { echo "$as_me:$LINENO: error: conditional \"HAVE_EXTERNALS\" was never defined.
39061Usually this means the macro was only invoked conditionally." >&5
39062echo "$as_me: error: conditional \"HAVE_EXTERNALS\" was never defined.
39063Usually this means the macro was only invoked conditionally." >&2;}
39064   { (exit 1); exit 1; }; }
39065fi
39066if test -z "${DEPENDENCY_LINKING_TRUE}" && test -z "${DEPENDENCY_LINKING_FALSE}"; then
39067  { { echo "$as_me:$LINENO: error: conditional \"DEPENDENCY_LINKING\" was never defined.
39068Usually this means the macro was only invoked conditionally." >&5
39069echo "$as_me: error: conditional \"DEPENDENCY_LINKING\" was never defined.
39070Usually this means the macro was only invoked conditionally." >&2;}
39071   { (exit 1); exit 1; }; }
39072fi
39073if test -z "${COIN_HAS_PKGCONFIG_TRUE}" && test -z "${COIN_HAS_PKGCONFIG_FALSE}"; then
39074  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_PKGCONFIG\" was never defined.
39075Usually this means the macro was only invoked conditionally." >&5
39076echo "$as_me: error: conditional \"COIN_HAS_PKGCONFIG\" was never defined.
39077Usually this means the macro was only invoked conditionally." >&2;}
39078   { (exit 1); exit 1; }; }
39079fi
39080if test -z "${COIN_HAS_BLAS_TRUE}" && test -z "${COIN_HAS_BLAS_FALSE}"; then
39081  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_BLAS\" was never defined.
39082Usually this means the macro was only invoked conditionally." >&5
39083echo "$as_me: error: conditional \"COIN_HAS_BLAS\" was never defined.
39084Usually this means the macro was only invoked conditionally." >&2;}
39085   { (exit 1); exit 1; }; }
39086fi
39087if test -z "${COIN_HAS_BLAS_TRUE}" && test -z "${COIN_HAS_BLAS_FALSE}"; then
39088  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_BLAS\" was never defined.
39089Usually this means the macro was only invoked conditionally." >&5
39090echo "$as_me: error: conditional \"COIN_HAS_BLAS\" was never defined.
39091Usually this means the macro was only invoked conditionally." >&2;}
39092   { (exit 1); exit 1; }; }
39093fi
39094if test -z "${COIN_HAS_BLAS_TRUE}" && test -z "${COIN_HAS_BLAS_FALSE}"; then
39095  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_BLAS\" was never defined.
39096Usually this means the macro was only invoked conditionally." >&5
39097echo "$as_me: error: conditional \"COIN_HAS_BLAS\" was never defined.
39098Usually this means the macro was only invoked conditionally." >&2;}
39099   { (exit 1); exit 1; }; }
39100fi
39101if test -z "${COIN_HAS_BLAS_TRUE}" && test -z "${COIN_HAS_BLAS_FALSE}"; then
39102  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_BLAS\" was never defined.
39103Usually this means the macro was only invoked conditionally." >&5
39104echo "$as_me: error: conditional \"COIN_HAS_BLAS\" was never defined.
39105Usually this means the macro was only invoked conditionally." >&2;}
39106   { (exit 1); exit 1; }; }
39107fi
39108if test -z "${COIN_HAS_LAPACK_TRUE}" && test -z "${COIN_HAS_LAPACK_FALSE}"; then
39109  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_LAPACK\" was never defined.
39110Usually this means the macro was only invoked conditionally." >&5
39111echo "$as_me: error: conditional \"COIN_HAS_LAPACK\" was never defined.
39112Usually this means the macro was only invoked conditionally." >&2;}
39113   { (exit 1); exit 1; }; }
39114fi
39115if test -z "${COIN_HAS_LAPACK_TRUE}" && test -z "${COIN_HAS_LAPACK_FALSE}"; then
39116  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_LAPACK\" was never defined.
39117Usually this means the macro was only invoked conditionally." >&5
39118echo "$as_me: error: conditional \"COIN_HAS_LAPACK\" was never defined.
39119Usually this means the macro was only invoked conditionally." >&2;}
39120   { (exit 1); exit 1; }; }
39121fi
39122if test -z "${COIN_HAS_LAPACK_TRUE}" && test -z "${COIN_HAS_LAPACK_FALSE}"; then
39123  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_LAPACK\" was never defined.
39124Usually this means the macro was only invoked conditionally." >&5
39125echo "$as_me: error: conditional \"COIN_HAS_LAPACK\" was never defined.
39126Usually this means the macro was only invoked conditionally." >&2;}
39127   { (exit 1); exit 1; }; }
39128fi
39129if test -z "${COIN_HAS_LAPACK_TRUE}" && test -z "${COIN_HAS_LAPACK_FALSE}"; then
39130  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_LAPACK\" was never defined.
39131Usually this means the macro was only invoked conditionally." >&5
39132echo "$as_me: error: conditional \"COIN_HAS_LAPACK\" was never defined.
39133Usually this means the macro was only invoked conditionally." >&2;}
39134   { (exit 1); exit 1; }; }
39135fi
39136if test -z "${COIN_HAS_GLPK_TRUE}" && test -z "${COIN_HAS_GLPK_FALSE}"; then
39137  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_GLPK\" was never defined.
39138Usually this means the macro was only invoked conditionally." >&5
39139echo "$as_me: error: conditional \"COIN_HAS_GLPK\" was never defined.
39140Usually this means the macro was only invoked conditionally." >&2;}
39141   { (exit 1); exit 1; }; }
39142fi
39143if test -z "${COIN_HAS_GLPK_TRUE}" && test -z "${COIN_HAS_GLPK_FALSE}"; then
39144  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_GLPK\" was never defined.
39145Usually this means the macro was only invoked conditionally." >&5
39146echo "$as_me: error: conditional \"COIN_HAS_GLPK\" was never defined.
39147Usually this means the macro was only invoked conditionally." >&2;}
39148   { (exit 1); exit 1; }; }
39149fi
39150if test -z "${COIN_HAS_SAMPLE_TRUE}" && test -z "${COIN_HAS_SAMPLE_FALSE}"; then
39151  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_SAMPLE\" was never defined.
39152Usually this means the macro was only invoked conditionally." >&5
39153echo "$as_me: error: conditional \"COIN_HAS_SAMPLE\" was never defined.
39154Usually this means the macro was only invoked conditionally." >&2;}
39155   { (exit 1); exit 1; }; }
39156fi
39157if test -z "${COIN_HAS_SAMPLE_TRUE}" && test -z "${COIN_HAS_SAMPLE_FALSE}"; then
39158  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_SAMPLE\" was never defined.
39159Usually this means the macro was only invoked conditionally." >&5
39160echo "$as_me: error: conditional \"COIN_HAS_SAMPLE\" was never defined.
39161Usually this means the macro was only invoked conditionally." >&2;}
39162   { (exit 1); exit 1; }; }
39163fi
39164if test -z "${COIN_HAS_NETLIB_TRUE}" && test -z "${COIN_HAS_NETLIB_FALSE}"; then
39165  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_NETLIB\" was never defined.
39166Usually this means the macro was only invoked conditionally." >&5
39167echo "$as_me: error: conditional \"COIN_HAS_NETLIB\" was never defined.
39168Usually this means the macro was only invoked conditionally." >&2;}
39169   { (exit 1); exit 1; }; }
39170fi
39171if test -z "${COIN_HAS_NETLIB_TRUE}" && test -z "${COIN_HAS_NETLIB_FALSE}"; then
39172  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_NETLIB\" was never defined.
39173Usually this means the macro was only invoked conditionally." >&5
39174echo "$as_me: error: conditional \"COIN_HAS_NETLIB\" was never defined.
39175Usually this means the macro was only invoked conditionally." >&2;}
39176   { (exit 1); exit 1; }; }
39177fi
39178if test -z "${COIN_HAS_ZLIB_TRUE}" && test -z "${COIN_HAS_ZLIB_FALSE}"; then
39179  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_ZLIB\" was never defined.
39180Usually this means the macro was only invoked conditionally." >&5
39181echo "$as_me: error: conditional \"COIN_HAS_ZLIB\" was never defined.
39182Usually this means the macro was only invoked conditionally." >&2;}
39183   { (exit 1); exit 1; }; }
39184fi
39185if test -z "${COIN_HAS_DOXYGEN_TRUE}" && test -z "${COIN_HAS_DOXYGEN_FALSE}"; then
39186  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_DOXYGEN\" was never defined.
39187Usually this means the macro was only invoked conditionally." >&5
39188echo "$as_me: error: conditional \"COIN_HAS_DOXYGEN\" was never defined.
39189Usually this means the macro was only invoked conditionally." >&2;}
39190   { (exit 1); exit 1; }; }
39191fi
39192if test -z "${COIN_HAS_LATEX_TRUE}" && test -z "${COIN_HAS_LATEX_FALSE}"; then
39193  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_LATEX\" was never defined.
39194Usually this means the macro was only invoked conditionally." >&5
39195echo "$as_me: error: conditional \"COIN_HAS_LATEX\" was never defined.
39196Usually this means the macro was only invoked conditionally." >&2;}
39197   { (exit 1); exit 1; }; }
39198fi
39199
39200: ${CONFIG_STATUS=./config.status}
39201ac_clean_files_save=$ac_clean_files
39202ac_clean_files="$ac_clean_files $CONFIG_STATUS"
39203{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
39204echo "$as_me: creating $CONFIG_STATUS" >&6;}
39205cat >$CONFIG_STATUS <<_ACEOF
39206#! $SHELL
39207# Generated by $as_me.
39208# Run this file to recreate the current configuration.
39209# Compiler output produced by configure, useful for debugging
39210# configure, is in config.log if it exists.
39211
39212debug=false
39213ac_cs_recheck=false
39214ac_cs_silent=false
39215SHELL=\${CONFIG_SHELL-$SHELL}
39216_ACEOF
39217
39218cat >>$CONFIG_STATUS <<\_ACEOF
39219## --------------------- ##
39220## M4sh Initialization.  ##
39221## --------------------- ##
39222
39223# Be Bourne compatible
39224if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
39225  emulate sh
39226  NULLCMD=:
39227  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
39228  # is contrary to our usage.  Disable this feature.
39229  alias -g '${1+"$@"}'='"$@"'
39230elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
39231  set -o posix
39232fi
39233DUALCASE=1; export DUALCASE # for MKS sh
39234
39235# Support unset when possible.
39236if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
39237  as_unset=unset
39238else
39239  as_unset=false
39240fi
39241
39242
39243# Work around bugs in pre-3.0 UWIN ksh.
39244$as_unset ENV MAIL MAILPATH
39245PS1='$ '
39246PS2='> '
39247PS4='+ '
39248
39249# NLS nuisances.
39250for as_var in \
39251  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
39252  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
39253  LC_TELEPHONE LC_TIME
39254do
39255  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
39256    eval $as_var=C; export $as_var
39257  else
39258    $as_unset $as_var
39259  fi
39260done
39261
39262# Required to use basename.
39263if expr a : '\(a\)' >/dev/null 2>&1; then
39264  as_expr=expr
39265else
39266  as_expr=false
39267fi
39268
39269if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
39270  as_basename=basename
39271else
39272  as_basename=false
39273fi
39274
39275
39276# Name of the executable.
39277as_me=`$as_basename "$0" ||
39278$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
39279	 X"$0" : 'X\(//\)$' \| \
39280	 X"$0" : 'X\(/\)$' \| \
39281	 .     : '\(.\)' 2>/dev/null ||
39282echo X/"$0" |
39283    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
39284  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
39285  	  /^X\/\(\/\).*/{ s//\1/; q; }
39286  	  s/.*/./; q'`
39287
39288
39289# PATH needs CR, and LINENO needs CR and PATH.
39290# Avoid depending upon Character Ranges.
39291as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39292as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39293as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39294as_cr_digits='0123456789'
39295as_cr_alnum=$as_cr_Letters$as_cr_digits
39296
39297# The user is always right.
39298if test "${PATH_SEPARATOR+set}" != set; then
39299  echo "#! /bin/sh" >conf$$.sh
39300  echo  "exit 0"   >>conf$$.sh
39301  chmod +x conf$$.sh
39302  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
39303    PATH_SEPARATOR=';'
39304  else
39305    PATH_SEPARATOR=:
39306  fi
39307  rm -f conf$$.sh
39308fi
39309
39310
39311  as_lineno_1=$LINENO
39312  as_lineno_2=$LINENO
39313  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
39314  test "x$as_lineno_1" != "x$as_lineno_2" &&
39315  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
39316  # Find who we are.  Look in the path if we contain no path at all
39317  # relative or not.
39318  case $0 in
39319    *[\\/]* ) as_myself=$0 ;;
39320    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39321for as_dir in $PATH
39322do
39323  IFS=$as_save_IFS
39324  test -z "$as_dir" && as_dir=.
39325  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
39326done
39327
39328       ;;
39329  esac
39330  # We did not find ourselves, most probably we were run as `sh COMMAND'
39331  # in which case we are not to be found in the path.
39332  if test "x$as_myself" = x; then
39333    as_myself=$0
39334  fi
39335  if test ! -f "$as_myself"; then
39336    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
39337echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
39338   { (exit 1); exit 1; }; }
39339  fi
39340  case $CONFIG_SHELL in
39341  '')
39342    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39343for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
39344do
39345  IFS=$as_save_IFS
39346  test -z "$as_dir" && as_dir=.
39347  for as_base in sh bash ksh sh5; do
39348	 case $as_dir in
39349	 /*)
39350	   if ("$as_dir/$as_base" -c '
39351  as_lineno_1=$LINENO
39352  as_lineno_2=$LINENO
39353  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
39354  test "x$as_lineno_1" != "x$as_lineno_2" &&
39355  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
39356	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
39357	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
39358	     CONFIG_SHELL=$as_dir/$as_base
39359	     export CONFIG_SHELL
39360	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
39361	   fi;;
39362	 esac
39363       done
39364done
39365;;
39366  esac
39367
39368  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
39369  # uniformly replaced by the line number.  The first 'sed' inserts a
39370  # line-number line before each line; the second 'sed' does the real
39371  # work.  The second script uses 'N' to pair each line-number line
39372  # with the numbered line, and appends trailing '-' during
39373  # substitution so that $LINENO is not a special case at line end.
39374  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
39375  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
39376  sed '=' <$as_myself |
39377    sed '
39378      N
39379      s,$,-,
39380      : loop
39381      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
39382      t loop
39383      s,-$,,
39384      s,^['$as_cr_digits']*\n,,
39385    ' >$as_me.lineno &&
39386  chmod +x $as_me.lineno ||
39387    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
39388echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
39389   { (exit 1); exit 1; }; }
39390
39391  # Don't try to exec as it changes $[0], causing all sort of problems
39392  # (the dirname of $[0] is not the place where we might find the
39393  # original and so on.  Autoconf is especially sensible to this).
39394  . ./$as_me.lineno
39395  # Exit status is that of the last command.
39396  exit
39397}
39398
39399
39400case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
39401  *c*,-n*) ECHO_N= ECHO_C='
39402' ECHO_T='	' ;;
39403  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
39404  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
39405esac
39406
39407if expr a : '\(a\)' >/dev/null 2>&1; then
39408  as_expr=expr
39409else
39410  as_expr=false
39411fi
39412
39413rm -f conf$$ conf$$.exe conf$$.file
39414echo >conf$$.file
39415if ln -s conf$$.file conf$$ 2>/dev/null; then
39416  # We could just check for DJGPP; but this test a) works b) is more generic
39417  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
39418  if test -f conf$$.exe; then
39419    # Don't use ln at all; we don't have any links
39420    as_ln_s='cp -p'
39421  else
39422    as_ln_s='ln -s'
39423  fi
39424elif ln conf$$.file conf$$ 2>/dev/null; then
39425  as_ln_s=ln
39426else
39427  as_ln_s='cp -p'
39428fi
39429rm -f conf$$ conf$$.exe conf$$.file
39430
39431if mkdir -p . 2>/dev/null; then
39432  as_mkdir_p=:
39433else
39434  test -d ./-p && rmdir ./-p
39435  as_mkdir_p=false
39436fi
39437
39438as_executable_p="test -f"
39439
39440# Sed expression to map a string onto a valid CPP name.
39441as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
39442
39443# Sed expression to map a string onto a valid variable name.
39444as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
39445
39446
39447# IFS
39448# We need space, tab and new line, in precisely that order.
39449as_nl='
39450'
39451IFS=" 	$as_nl"
39452
39453# CDPATH.
39454$as_unset CDPATH
39455
39456exec 6>&1
39457
39458# Open the log real soon, to keep \$[0] and so on meaningful, and to
39459# report actual input values of CONFIG_FILES etc. instead of their
39460# values after options handling.  Logging --version etc. is OK.
39461exec 5>>config.log
39462{
39463  echo
39464  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
39465## Running $as_me. ##
39466_ASBOX
39467} >&5
39468cat >&5 <<_CSEOF
39469
39470This file was extended by CoinUtils $as_me 2.11.2, which was
39471generated by GNU Autoconf 2.59.  Invocation command line was
39472
39473  CONFIG_FILES    = $CONFIG_FILES
39474  CONFIG_HEADERS  = $CONFIG_HEADERS
39475  CONFIG_LINKS    = $CONFIG_LINKS
39476  CONFIG_COMMANDS = $CONFIG_COMMANDS
39477  $ $0 $@
39478
39479_CSEOF
39480echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
39481echo >&5
39482_ACEOF
39483
39484# Files that config.status was made for.
39485if test -n "$ac_config_files"; then
39486  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
39487fi
39488
39489if test -n "$ac_config_headers"; then
39490  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
39491fi
39492
39493if test -n "$ac_config_links"; then
39494  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
39495fi
39496
39497if test -n "$ac_config_commands"; then
39498  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
39499fi
39500
39501cat >>$CONFIG_STATUS <<\_ACEOF
39502
39503ac_cs_usage="\
39504\`$as_me' instantiates files from templates according to the
39505current configuration.
39506
39507Usage: $0 [OPTIONS] [FILE]...
39508
39509  -h, --help       print this help, then exit
39510  -V, --version    print version number, then exit
39511  -q, --quiet      do not print progress messages
39512  -d, --debug      don't remove temporary files
39513      --recheck    update $as_me by reconfiguring in the same conditions
39514  --file=FILE[:TEMPLATE]
39515		   instantiate the configuration file FILE
39516  --header=FILE[:TEMPLATE]
39517		   instantiate the configuration header FILE
39518
39519Configuration files:
39520$config_files
39521
39522Configuration headers:
39523$config_headers
39524
39525Configuration commands:
39526$config_commands
39527
39528Report bugs to <bug-autoconf@gnu.org>."
39529_ACEOF
39530
39531cat >>$CONFIG_STATUS <<_ACEOF
39532ac_cs_version="\\
39533CoinUtils config.status 2.11.2
39534configured by $0, generated by GNU Autoconf 2.59,
39535  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
39536
39537Copyright (C) 2003 Free Software Foundation, Inc.
39538This config.status script is free software; the Free Software Foundation
39539gives unlimited permission to copy, distribute and modify it."
39540srcdir=$srcdir
39541INSTALL="$INSTALL"
39542_ACEOF
39543
39544cat >>$CONFIG_STATUS <<\_ACEOF
39545# If no file are specified by the user, then we need to provide default
39546# value.  By we need to know if files were specified by the user.
39547ac_need_defaults=:
39548while test $# != 0
39549do
39550  case $1 in
39551  --*=*)
39552    ac_option=`expr "x$1" : 'x\([^=]*\)='`
39553    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
39554    ac_shift=:
39555    ;;
39556  -*)
39557    ac_option=$1
39558    ac_optarg=$2
39559    ac_shift=shift
39560    ;;
39561  *) # This is not an option, so the user has probably given explicit
39562     # arguments.
39563     ac_option=$1
39564     ac_need_defaults=false;;
39565  esac
39566
39567  case $ac_option in
39568  # Handling of the options.
39569_ACEOF
39570cat >>$CONFIG_STATUS <<\_ACEOF
39571  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
39572    ac_cs_recheck=: ;;
39573  --version | --vers* | -V )
39574    echo "$ac_cs_version"; exit 0 ;;
39575  --he | --h)
39576    # Conflict between --help and --header
39577    { { echo "$as_me:$LINENO: error: ambiguous option: $1
39578Try \`$0 --help' for more information." >&5
39579echo "$as_me: error: ambiguous option: $1
39580Try \`$0 --help' for more information." >&2;}
39581   { (exit 1); exit 1; }; };;
39582  --help | --hel | -h )
39583    echo "$ac_cs_usage"; exit 0 ;;
39584  --debug | --d* | -d )
39585    debug=: ;;
39586  --file | --fil | --fi | --f )
39587    $ac_shift
39588    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
39589    ac_need_defaults=false;;
39590  --header | --heade | --head | --hea )
39591    $ac_shift
39592    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
39593    ac_need_defaults=false;;
39594  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
39595  | -silent | --silent | --silen | --sile | --sil | --si | --s)
39596    ac_cs_silent=: ;;
39597
39598  # This is an error.
39599  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
39600Try \`$0 --help' for more information." >&5
39601echo "$as_me: error: unrecognized option: $1
39602Try \`$0 --help' for more information." >&2;}
39603   { (exit 1); exit 1; }; } ;;
39604
39605  *) ac_config_targets="$ac_config_targets $1" ;;
39606
39607  esac
39608  shift
39609done
39610
39611ac_configure_extra_args=
39612
39613if $ac_cs_silent; then
39614  exec 6>/dev/null
39615  ac_configure_extra_args="$ac_configure_extra_args --silent"
39616fi
39617
39618_ACEOF
39619cat >>$CONFIG_STATUS <<_ACEOF
39620if \$ac_cs_recheck; then
39621  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
39622  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
39623fi
39624
39625_ACEOF
39626
39627cat >>$CONFIG_STATUS <<_ACEOF
39628#
39629# INIT-COMMANDS section.
39630#
39631
39632AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
39633
39634_ACEOF
39635
39636
39637
39638cat >>$CONFIG_STATUS <<\_ACEOF
39639for ac_config_target in $ac_config_targets
39640do
39641  case "$ac_config_target" in
39642  # Handling of arguments.
39643  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
39644  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
39645  "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
39646  "coinutils.pc" ) CONFIG_FILES="$CONFIG_FILES coinutils.pc" ;;
39647  "coinutils-uninstalled.pc" ) CONFIG_FILES="$CONFIG_FILES coinutils-uninstalled.pc" ;;
39648  "doxydoc/doxygen.conf" ) CONFIG_FILES="$CONFIG_FILES doxydoc/doxygen.conf" ;;
39649  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
39650  "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
39651  "src/config_coinutils.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config_coinutils.h" ;;
39652  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
39653echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
39654   { (exit 1); exit 1; }; };;
39655  esac
39656done
39657
39658# If the user did not use the arguments to specify the items to instantiate,
39659# then the envvar interface is used.  Set only those that are not.
39660# We use the long form for the default assignment because of an extremely
39661# bizarre bug on SunOS 4.1.3.
39662if $ac_need_defaults; then
39663  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
39664  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
39665  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
39666fi
39667
39668# Have a temporary directory for convenience.  Make it in the build tree
39669# simply because there is no reason to put it here, and in addition,
39670# creating and moving files from /tmp can sometimes cause problems.
39671# Create a temporary directory, and hook for its removal unless debugging.
39672$debug ||
39673{
39674  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
39675  trap '{ (exit 1); exit 1; }' 1 2 13 15
39676}
39677
39678# Create a (secure) tmp directory for tmp files.
39679
39680{
39681  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
39682  test -n "$tmp" && test -d "$tmp"
39683}  ||
39684{
39685  tmp=./confstat$$-$RANDOM
39686  (umask 077 && mkdir $tmp)
39687} ||
39688{
39689   echo "$me: cannot create a temporary directory in ." >&2
39690   { (exit 1); exit 1; }
39691}
39692
39693_ACEOF
39694
39695cat >>$CONFIG_STATUS <<_ACEOF
39696
39697#
39698# CONFIG_FILES section.
39699#
39700
39701# No need to generate the scripts if there are no CONFIG_FILES.
39702# This happens for instance when ./config.status config.h
39703if test -n "\$CONFIG_FILES"; then
39704  # Protect against being on the right side of a sed subst in config.status.
39705  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
39706   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
39707s,@SHELL@,$SHELL,;t t
39708s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
39709s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
39710s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
39711s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
39712s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
39713s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
39714s,@exec_prefix@,$exec_prefix,;t t
39715s,@prefix@,$prefix,;t t
39716s,@program_transform_name@,$program_transform_name,;t t
39717s,@bindir@,$bindir,;t t
39718s,@sbindir@,$sbindir,;t t
39719s,@libexecdir@,$libexecdir,;t t
39720s,@datadir@,$datadir,;t t
39721s,@sysconfdir@,$sysconfdir,;t t
39722s,@sharedstatedir@,$sharedstatedir,;t t
39723s,@localstatedir@,$localstatedir,;t t
39724s,@libdir@,$libdir,;t t
39725s,@includedir@,$includedir,;t t
39726s,@oldincludedir@,$oldincludedir,;t t
39727s,@infodir@,$infodir,;t t
39728s,@mandir@,$mandir,;t t
39729s,@build_alias@,$build_alias,;t t
39730s,@host_alias@,$host_alias,;t t
39731s,@target_alias@,$target_alias,;t t
39732s,@DEFS@,$DEFS,;t t
39733s,@ECHO_C@,$ECHO_C,;t t
39734s,@ECHO_N@,$ECHO_N,;t t
39735s,@ECHO_T@,$ECHO_T,;t t
39736s,@LIBS@,$LIBS,;t t
39737s,@build@,$build,;t t
39738s,@build_cpu@,$build_cpu,;t t
39739s,@build_vendor@,$build_vendor,;t t
39740s,@build_os@,$build_os,;t t
39741s,@ALWAYS_FALSE_TRUE@,$ALWAYS_FALSE_TRUE,;t t
39742s,@ALWAYS_FALSE_FALSE@,$ALWAYS_FALSE_FALSE,;t t
39743s,@have_svnversion@,$have_svnversion,;t t
39744s,@COINUTILS_SVN_REV@,$COINUTILS_SVN_REV,;t t
39745s,@CDEFS@,$CDEFS,;t t
39746s,@ADD_CFLAGS@,$ADD_CFLAGS,;t t
39747s,@DBG_CFLAGS@,$DBG_CFLAGS,;t t
39748s,@OPT_CFLAGS@,$OPT_CFLAGS,;t t
39749s,@sol_cc_compiler@,$sol_cc_compiler,;t t
39750s,@CC@,$CC,;t t
39751s,@CFLAGS@,$CFLAGS,;t t
39752s,@LDFLAGS@,$LDFLAGS,;t t
39753s,@CPPFLAGS@,$CPPFLAGS,;t t
39754s,@ac_ct_CC@,$ac_ct_CC,;t t
39755s,@EXEEXT@,$EXEEXT,;t t
39756s,@OBJEXT@,$OBJEXT,;t t
39757s,@COIN_CC_IS_CL_TRUE@,$COIN_CC_IS_CL_TRUE,;t t
39758s,@COIN_CC_IS_CL_FALSE@,$COIN_CC_IS_CL_FALSE,;t t
39759s,@MPICC@,$MPICC,;t t
39760s,@CXXDEFS@,$CXXDEFS,;t t
39761s,@ADD_CXXFLAGS@,$ADD_CXXFLAGS,;t t
39762s,@DBG_CXXFLAGS@,$DBG_CXXFLAGS,;t t
39763s,@OPT_CXXFLAGS@,$OPT_CXXFLAGS,;t t
39764s,@CXX@,$CXX,;t t
39765s,@CXXFLAGS@,$CXXFLAGS,;t t
39766s,@ac_ct_CXX@,$ac_ct_CXX,;t t
39767s,@COIN_CXX_IS_CL_TRUE@,$COIN_CXX_IS_CL_TRUE,;t t
39768s,@COIN_CXX_IS_CL_FALSE@,$COIN_CXX_IS_CL_FALSE,;t t
39769s,@MPICXX@,$MPICXX,;t t
39770s,@ADD_FFLAGS@,$ADD_FFLAGS,;t t
39771s,@DBG_FFLAGS@,$DBG_FFLAGS,;t t
39772s,@OPT_FFLAGS@,$OPT_FFLAGS,;t t
39773s,@F77@,$F77,;t t
39774s,@ac_ct_F77@,$ac_ct_F77,;t t
39775s,@FFLAGS@,$FFLAGS,;t t
39776s,@MPIF77@,$MPIF77,;t t
39777s,@FLIBS@,$FLIBS,;t t
39778s,@EGREP@,$EGREP,;t t
39779s,@LN_S@,$LN_S,;t t
39780s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
39781s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
39782s,@INSTALL_DATA@,$INSTALL_DATA,;t t
39783s,@CYGPATH_W@,$CYGPATH_W,;t t
39784s,@PACKAGE@,$PACKAGE,;t t
39785s,@VERSION@,$VERSION,;t t
39786s,@ACLOCAL@,$ACLOCAL,;t t
39787s,@AUTOCONF@,$AUTOCONF,;t t
39788s,@AUTOMAKE@,$AUTOMAKE,;t t
39789s,@AUTOHEADER@,$AUTOHEADER,;t t
39790s,@MAKEINFO@,$MAKEINFO,;t t
39791s,@install_sh@,$install_sh,;t t
39792s,@STRIP@,$STRIP,;t t
39793s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
39794s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
39795s,@mkdir_p@,$mkdir_p,;t t
39796s,@AWK@,$AWK,;t t
39797s,@SET_MAKE@,$SET_MAKE,;t t
39798s,@am__leading_dot@,$am__leading_dot,;t t
39799s,@AMTAR@,$AMTAR,;t t
39800s,@am__tar@,$am__tar,;t t
39801s,@am__untar@,$am__untar,;t t
39802s,@DEPDIR@,$DEPDIR,;t t
39803s,@am__include@,$am__include,;t t
39804s,@am__quote@,$am__quote,;t t
39805s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
39806s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
39807s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
39808s,@CCDEPMODE@,$CCDEPMODE,;t t
39809s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
39810s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
39811s,@CXXDEPMODE@,$CXXDEPMODE,;t t
39812s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
39813s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
39814s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
39815s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
39816s,@MAINT@,$MAINT,;t t
39817s,@LIBTOOLM4@,$LIBTOOLM4,;t t
39818s,@have_autoconf@,$have_autoconf,;t t
39819s,@have_automake@,$have_automake,;t t
39820s,@have_svn@,$have_svn,;t t
39821s,@BUILDTOOLSDIR@,$BUILDTOOLSDIR,;t t
39822s,@AUX_DIR@,$AUX_DIR,;t t
39823s,@abs_source_dir@,$abs_source_dir,;t t
39824s,@abs_lib_dir@,$abs_lib_dir,;t t
39825s,@abs_include_dir@,$abs_include_dir,;t t
39826s,@abs_bin_dir@,$abs_bin_dir,;t t
39827s,@HAVE_EXTERNALS_TRUE@,$HAVE_EXTERNALS_TRUE,;t t
39828s,@HAVE_EXTERNALS_FALSE@,$HAVE_EXTERNALS_FALSE,;t t
39829s,@host@,$host,;t t
39830s,@host_cpu@,$host_cpu,;t t
39831s,@host_vendor@,$host_vendor,;t t
39832s,@host_os@,$host_os,;t t
39833s,@ECHO@,$ECHO,;t t
39834s,@AR@,$AR,;t t
39835s,@ac_ct_AR@,$ac_ct_AR,;t t
39836s,@RANLIB@,$RANLIB,;t t
39837s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
39838s,@CPP@,$CPP,;t t
39839s,@CXXCPP@,$CXXCPP,;t t
39840s,@LIBTOOL@,$LIBTOOL,;t t
39841s,@ac_c_preproc_warn_flag@,$ac_c_preproc_warn_flag,;t t
39842s,@ac_cxx_preproc_warn_flag@,$ac_cxx_preproc_warn_flag,;t t
39843s,@RPATH_FLAGS@,$RPATH_FLAGS,;t t
39844s,@DEPENDENCY_LINKING_TRUE@,$DEPENDENCY_LINKING_TRUE,;t t
39845s,@DEPENDENCY_LINKING_FALSE@,$DEPENDENCY_LINKING_FALSE,;t t
39846s,@LT_LDFLAGS@,$LT_LDFLAGS,;t t
39847s,@PKG_CONFIG@,$PKG_CONFIG,;t t
39848s,@ac_ct_PKG_CONFIG@,$ac_ct_PKG_CONFIG,;t t
39849s,@COIN_HAS_PKGCONFIG_TRUE@,$COIN_HAS_PKGCONFIG_TRUE,;t t
39850s,@COIN_HAS_PKGCONFIG_FALSE@,$COIN_HAS_PKGCONFIG_FALSE,;t t
39851s,@COIN_PKG_CONFIG_PATH@,$COIN_PKG_CONFIG_PATH,;t t
39852s,@COIN_PKG_CONFIG_PATH_UNINSTALLED@,$COIN_PKG_CONFIG_PATH_UNINSTALLED,;t t
39853s,@BLAS_LIBS@,$BLAS_LIBS,;t t
39854s,@BLAS_CFLAGS@,$BLAS_CFLAGS,;t t
39855s,@BLAS_DATA@,$BLAS_DATA,;t t
39856s,@BLAS_DEPENDENCIES@,$BLAS_DEPENDENCIES,;t t
39857s,@BLAS_LIBS_INSTALLED@,$BLAS_LIBS_INSTALLED,;t t
39858s,@BLAS_CFLAGS_INSTALLED@,$BLAS_CFLAGS_INSTALLED,;t t
39859s,@BLAS_DATA_INSTALLED@,$BLAS_DATA_INSTALLED,;t t
39860s,@COINUTILSLIB_CFLAGS@,$COINUTILSLIB_CFLAGS,;t t
39861s,@COINUTILSLIB_LIBS@,$COINUTILSLIB_LIBS,;t t
39862s,@COINUTILSLIB_PCLIBS@,$COINUTILSLIB_PCLIBS,;t t
39863s,@COINUTILSLIB_PCREQUIRES@,$COINUTILSLIB_PCREQUIRES,;t t
39864s,@COINUTILSLIB_DEPENDENCIES@,$COINUTILSLIB_DEPENDENCIES,;t t
39865s,@COINUTILSLIB_CFLAGS_INSTALLED@,$COINUTILSLIB_CFLAGS_INSTALLED,;t t
39866s,@COINUTILSLIB_LIBS_INSTALLED@,$COINUTILSLIB_LIBS_INSTALLED,;t t
39867s,@COIN_HAS_BLAS_TRUE@,$COIN_HAS_BLAS_TRUE,;t t
39868s,@COIN_HAS_BLAS_FALSE@,$COIN_HAS_BLAS_FALSE,;t t
39869s,@LAPACK_LIBS@,$LAPACK_LIBS,;t t
39870s,@LAPACK_CFLAGS@,$LAPACK_CFLAGS,;t t
39871s,@LAPACK_DATA@,$LAPACK_DATA,;t t
39872s,@LAPACK_DEPENDENCIES@,$LAPACK_DEPENDENCIES,;t t
39873s,@LAPACK_LIBS_INSTALLED@,$LAPACK_LIBS_INSTALLED,;t t
39874s,@LAPACK_CFLAGS_INSTALLED@,$LAPACK_CFLAGS_INSTALLED,;t t
39875s,@LAPACK_DATA_INSTALLED@,$LAPACK_DATA_INSTALLED,;t t
39876s,@COIN_HAS_LAPACK_TRUE@,$COIN_HAS_LAPACK_TRUE,;t t
39877s,@COIN_HAS_LAPACK_FALSE@,$COIN_HAS_LAPACK_FALSE,;t t
39878s,@GLPK_LIBS@,$GLPK_LIBS,;t t
39879s,@GLPK_CFLAGS@,$GLPK_CFLAGS,;t t
39880s,@GLPK_DATA@,$GLPK_DATA,;t t
39881s,@GLPK_DEPENDENCIES@,$GLPK_DEPENDENCIES,;t t
39882s,@GLPK_LIBS_INSTALLED@,$GLPK_LIBS_INSTALLED,;t t
39883s,@GLPK_CFLAGS_INSTALLED@,$GLPK_CFLAGS_INSTALLED,;t t
39884s,@GLPK_DATA_INSTALLED@,$GLPK_DATA_INSTALLED,;t t
39885s,@COIN_HAS_GLPK_TRUE@,$COIN_HAS_GLPK_TRUE,;t t
39886s,@COIN_HAS_GLPK_FALSE@,$COIN_HAS_GLPK_FALSE,;t t
39887s,@SAMPLE_LIBS@,$SAMPLE_LIBS,;t t
39888s,@SAMPLE_CFLAGS@,$SAMPLE_CFLAGS,;t t
39889s,@SAMPLE_DATA@,$SAMPLE_DATA,;t t
39890s,@SAMPLE_DEPENDENCIES@,$SAMPLE_DEPENDENCIES,;t t
39891s,@SAMPLE_LIBS_INSTALLED@,$SAMPLE_LIBS_INSTALLED,;t t
39892s,@SAMPLE_CFLAGS_INSTALLED@,$SAMPLE_CFLAGS_INSTALLED,;t t
39893s,@SAMPLE_DATA_INSTALLED@,$SAMPLE_DATA_INSTALLED,;t t
39894s,@COIN_HAS_SAMPLE_TRUE@,$COIN_HAS_SAMPLE_TRUE,;t t
39895s,@COIN_HAS_SAMPLE_FALSE@,$COIN_HAS_SAMPLE_FALSE,;t t
39896s,@NETLIB_LIBS@,$NETLIB_LIBS,;t t
39897s,@NETLIB_CFLAGS@,$NETLIB_CFLAGS,;t t
39898s,@NETLIB_DATA@,$NETLIB_DATA,;t t
39899s,@NETLIB_DEPENDENCIES@,$NETLIB_DEPENDENCIES,;t t
39900s,@NETLIB_LIBS_INSTALLED@,$NETLIB_LIBS_INSTALLED,;t t
39901s,@NETLIB_CFLAGS_INSTALLED@,$NETLIB_CFLAGS_INSTALLED,;t t
39902s,@NETLIB_DATA_INSTALLED@,$NETLIB_DATA_INSTALLED,;t t
39903s,@COIN_HAS_NETLIB_TRUE@,$COIN_HAS_NETLIB_TRUE,;t t
39904s,@COIN_HAS_NETLIB_FALSE@,$COIN_HAS_NETLIB_FALSE,;t t
39905s,@COIN_HAS_ZLIB_TRUE@,$COIN_HAS_ZLIB_TRUE,;t t
39906s,@COIN_HAS_ZLIB_FALSE@,$COIN_HAS_ZLIB_FALSE,;t t
39907s,@coin_have_doxygen@,$coin_have_doxygen,;t t
39908s,@coin_have_latex@,$coin_have_latex,;t t
39909s,@coin_doxy_usedot@,$coin_doxy_usedot,;t t
39910s,@coin_doxy_tagname@,$coin_doxy_tagname,;t t
39911s,@coin_doxy_logname@,$coin_doxy_logname,;t t
39912s,@COIN_HAS_DOXYGEN_TRUE@,$COIN_HAS_DOXYGEN_TRUE,;t t
39913s,@COIN_HAS_DOXYGEN_FALSE@,$COIN_HAS_DOXYGEN_FALSE,;t t
39914s,@COIN_HAS_LATEX_TRUE@,$COIN_HAS_LATEX_TRUE,;t t
39915s,@COIN_HAS_LATEX_FALSE@,$COIN_HAS_LATEX_FALSE,;t t
39916s,@coin_doxy_tagfiles@,$coin_doxy_tagfiles,;t t
39917s,@coin_doxy_excludes@,$coin_doxy_excludes,;t t
39918s,@LIBEXT@,$LIBEXT,;t t
39919s,@VPATH_DISTCLEANFILES@,$VPATH_DISTCLEANFILES,;t t
39920s,@ABSBUILDDIR@,$ABSBUILDDIR,;t t
39921s,@LIBOBJS@,$LIBOBJS,;t t
39922s,@LTLIBOBJS@,$LTLIBOBJS,;t t
39923CEOF
39924
39925_ACEOF
39926
39927  cat >>$CONFIG_STATUS <<\_ACEOF
39928  # Split the substitutions into bite-sized pieces for seds with
39929  # small command number limits, like on Digital OSF/1 and HP-UX.
39930  ac_max_sed_lines=48
39931  ac_sed_frag=1 # Number of current file.
39932  ac_beg=1 # First line for current file.
39933  ac_end=$ac_max_sed_lines # Line after last line for current file.
39934  ac_more_lines=:
39935  ac_sed_cmds=
39936  while $ac_more_lines; do
39937    if test $ac_beg -gt 1; then
39938      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
39939    else
39940      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
39941    fi
39942    if test ! -s $tmp/subs.frag; then
39943      ac_more_lines=false
39944    else
39945      # The purpose of the label and of the branching condition is to
39946      # speed up the sed processing (if there are no `@' at all, there
39947      # is no need to browse any of the substitutions).
39948      # These are the two extra sed commands mentioned above.
39949      (echo ':t
39950  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
39951      if test -z "$ac_sed_cmds"; then
39952	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
39953      else
39954	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
39955      fi
39956      ac_sed_frag=`expr $ac_sed_frag + 1`
39957      ac_beg=$ac_end
39958      ac_end=`expr $ac_end + $ac_max_sed_lines`
39959    fi
39960  done
39961  if test -z "$ac_sed_cmds"; then
39962    ac_sed_cmds=cat
39963  fi
39964fi # test -n "$CONFIG_FILES"
39965
39966_ACEOF
39967cat >>$CONFIG_STATUS <<\_ACEOF
39968for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
39969  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
39970  case $ac_file in
39971  - | *:- | *:-:* ) # input from stdin
39972	cat >$tmp/stdin
39973	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
39974	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
39975  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
39976	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
39977  * )   ac_file_in=$ac_file.in ;;
39978  esac
39979
39980  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
39981  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
39982$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39983	 X"$ac_file" : 'X\(//\)[^/]' \| \
39984	 X"$ac_file" : 'X\(//\)$' \| \
39985	 X"$ac_file" : 'X\(/\)' \| \
39986	 .     : '\(.\)' 2>/dev/null ||
39987echo X"$ac_file" |
39988    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
39989  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
39990  	  /^X\(\/\/\)$/{ s//\1/; q; }
39991  	  /^X\(\/\).*/{ s//\1/; q; }
39992  	  s/.*/./; q'`
39993  { if $as_mkdir_p; then
39994    mkdir -p "$ac_dir"
39995  else
39996    as_dir="$ac_dir"
39997    as_dirs=
39998    while test ! -d "$as_dir"; do
39999      as_dirs="$as_dir $as_dirs"
40000      as_dir=`(dirname "$as_dir") 2>/dev/null ||
40001$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40002	 X"$as_dir" : 'X\(//\)[^/]' \| \
40003	 X"$as_dir" : 'X\(//\)$' \| \
40004	 X"$as_dir" : 'X\(/\)' \| \
40005	 .     : '\(.\)' 2>/dev/null ||
40006echo X"$as_dir" |
40007    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40008  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40009  	  /^X\(\/\/\)$/{ s//\1/; q; }
40010  	  /^X\(\/\).*/{ s//\1/; q; }
40011  	  s/.*/./; q'`
40012    done
40013    test ! -n "$as_dirs" || mkdir $as_dirs
40014  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
40015echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
40016   { (exit 1); exit 1; }; }; }
40017
40018  ac_builddir=.
40019
40020if test "$ac_dir" != .; then
40021  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
40022  # A "../" for each directory in $ac_dir_suffix.
40023  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
40024else
40025  ac_dir_suffix= ac_top_builddir=
40026fi
40027
40028case $srcdir in
40029  .)  # No --srcdir option.  We are building in place.
40030    ac_srcdir=.
40031    if test -z "$ac_top_builddir"; then
40032       ac_top_srcdir=.
40033    else
40034       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
40035    fi ;;
40036  [\\/]* | ?:[\\/]* )  # Absolute path.
40037    ac_srcdir=$srcdir$ac_dir_suffix;
40038    ac_top_srcdir=$srcdir ;;
40039  *) # Relative path.
40040    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
40041    ac_top_srcdir=$ac_top_builddir$srcdir ;;
40042esac
40043
40044# Do not use `cd foo && pwd` to compute absolute paths, because
40045# the directories may not exist.
40046case `pwd` in
40047.) ac_abs_builddir="$ac_dir";;
40048*)
40049  case "$ac_dir" in
40050  .) ac_abs_builddir=`pwd`;;
40051  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
40052  *) ac_abs_builddir=`pwd`/"$ac_dir";;
40053  esac;;
40054esac
40055case $ac_abs_builddir in
40056.) ac_abs_top_builddir=${ac_top_builddir}.;;
40057*)
40058  case ${ac_top_builddir}. in
40059  .) ac_abs_top_builddir=$ac_abs_builddir;;
40060  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
40061  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
40062  esac;;
40063esac
40064case $ac_abs_builddir in
40065.) ac_abs_srcdir=$ac_srcdir;;
40066*)
40067  case $ac_srcdir in
40068  .) ac_abs_srcdir=$ac_abs_builddir;;
40069  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
40070  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
40071  esac;;
40072esac
40073case $ac_abs_builddir in
40074.) ac_abs_top_srcdir=$ac_top_srcdir;;
40075*)
40076  case $ac_top_srcdir in
40077  .) ac_abs_top_srcdir=$ac_abs_builddir;;
40078  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
40079  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
40080  esac;;
40081esac
40082
40083
40084  case $INSTALL in
40085  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
40086  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
40087  esac
40088
40089  if test x"$ac_file" != x-; then
40090    { echo "$as_me:$LINENO: creating $ac_file" >&5
40091echo "$as_me: creating $ac_file" >&6;}
40092    rm -f "$ac_file"
40093  fi
40094  # Let's still pretend it is `configure' which instantiates (i.e., don't
40095  # use $as_me), people would be surprised to read:
40096  #    /* config.h.  Generated by config.status.  */
40097  if test x"$ac_file" = x-; then
40098    configure_input=
40099  else
40100    configure_input="$ac_file.  "
40101  fi
40102  configure_input=$configure_input"Generated from `echo $ac_file_in |
40103				     sed 's,.*/,,'` by configure."
40104
40105  # First look for the input files in the build tree, otherwise in the
40106  # src tree.
40107  ac_file_inputs=`IFS=:
40108    for f in $ac_file_in; do
40109      case $f in
40110      -) echo $tmp/stdin ;;
40111      [\\/$]*)
40112	 # Absolute (can't be DOS-style, as IFS=:)
40113	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
40114echo "$as_me: error: cannot find input file: $f" >&2;}
40115   { (exit 1); exit 1; }; }
40116	 echo "$f";;
40117      *) # Relative
40118	 if test -f "$f"; then
40119	   # Build tree
40120	   echo "$f"
40121	 elif test -f "$srcdir/$f"; then
40122	   # Source tree
40123	   echo "$srcdir/$f"
40124	 else
40125	   # /dev/null tree
40126	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
40127echo "$as_me: error: cannot find input file: $f" >&2;}
40128   { (exit 1); exit 1; }; }
40129	 fi;;
40130      esac
40131    done` || { (exit 1); exit 1; }
40132_ACEOF
40133cat >>$CONFIG_STATUS <<_ACEOF
40134  sed "$ac_vpsub
40135$extrasub
40136_ACEOF
40137cat >>$CONFIG_STATUS <<\_ACEOF
40138:t
40139/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
40140s,@configure_input@,$configure_input,;t t
40141s,@srcdir@,$ac_srcdir,;t t
40142s,@abs_srcdir@,$ac_abs_srcdir,;t t
40143s,@top_srcdir@,$ac_top_srcdir,;t t
40144s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
40145s,@builddir@,$ac_builddir,;t t
40146s,@abs_builddir@,$ac_abs_builddir,;t t
40147s,@top_builddir@,$ac_top_builddir,;t t
40148s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
40149s,@INSTALL@,$ac_INSTALL,;t t
40150" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
40151  rm -f $tmp/stdin
40152  if test x"$ac_file" != x-; then
40153    mv $tmp/out $ac_file
40154  else
40155    cat $tmp/out
40156    rm -f $tmp/out
40157  fi
40158
40159done
40160_ACEOF
40161cat >>$CONFIG_STATUS <<\_ACEOF
40162
40163#
40164# CONFIG_HEADER section.
40165#
40166
40167# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
40168# NAME is the cpp macro being defined and VALUE is the value it is being given.
40169#
40170# ac_d sets the value in "#define NAME VALUE" lines.
40171ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
40172ac_dB='[	 ].*$,\1#\2'
40173ac_dC=' '
40174ac_dD=',;t'
40175# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
40176ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
40177ac_uB='$,\1#\2define\3'
40178ac_uC=' '
40179ac_uD=',;t'
40180
40181for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
40182  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
40183  case $ac_file in
40184  - | *:- | *:-:* ) # input from stdin
40185	cat >$tmp/stdin
40186	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
40187	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
40188  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
40189	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
40190  * )   ac_file_in=$ac_file.in ;;
40191  esac
40192
40193  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
40194echo "$as_me: creating $ac_file" >&6;}
40195
40196  # First look for the input files in the build tree, otherwise in the
40197  # src tree.
40198  ac_file_inputs=`IFS=:
40199    for f in $ac_file_in; do
40200      case $f in
40201      -) echo $tmp/stdin ;;
40202      [\\/$]*)
40203	 # Absolute (can't be DOS-style, as IFS=:)
40204	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
40205echo "$as_me: error: cannot find input file: $f" >&2;}
40206   { (exit 1); exit 1; }; }
40207	 # Do quote $f, to prevent DOS paths from being IFS'd.
40208	 echo "$f";;
40209      *) # Relative
40210	 if test -f "$f"; then
40211	   # Build tree
40212	   echo "$f"
40213	 elif test -f "$srcdir/$f"; then
40214	   # Source tree
40215	   echo "$srcdir/$f"
40216	 else
40217	   # /dev/null tree
40218	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
40219echo "$as_me: error: cannot find input file: $f" >&2;}
40220   { (exit 1); exit 1; }; }
40221	 fi;;
40222      esac
40223    done` || { (exit 1); exit 1; }
40224  # Remove the trailing spaces.
40225  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
40226
40227_ACEOF
40228
40229# Transform confdefs.h into two sed scripts, `conftest.defines' and
40230# `conftest.undefs', that substitutes the proper values into
40231# config.h.in to produce config.h.  The first handles `#define'
40232# templates, and the second `#undef' templates.
40233# And first: Protect against being on the right side of a sed subst in
40234# config.status.  Protect against being in an unquoted here document
40235# in config.status.
40236rm -f conftest.defines conftest.undefs
40237# Using a here document instead of a string reduces the quoting nightmare.
40238# Putting comments in sed scripts is not portable.
40239#
40240# `end' is used to avoid that the second main sed command (meant for
40241# 0-ary CPP macros) applies to n-ary macro definitions.
40242# See the Autoconf documentation for `clear'.
40243cat >confdef2sed.sed <<\_ACEOF
40244s/[\\&,]/\\&/g
40245s,[\\$`],\\&,g
40246t clear
40247: clear
40248s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
40249t end
40250s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
40251: end
40252_ACEOF
40253# If some macros were called several times there might be several times
40254# the same #defines, which is useless.  Nevertheless, we may not want to
40255# sort them, since we want the *last* AC-DEFINE to be honored.
40256uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
40257sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
40258rm -f confdef2sed.sed
40259
40260# This sed command replaces #undef with comments.  This is necessary, for
40261# example, in the case of _POSIX_SOURCE, which is predefined and required
40262# on some systems where configure will not decide to define it.
40263cat >>conftest.undefs <<\_ACEOF
40264s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
40265_ACEOF
40266
40267# Break up conftest.defines because some shells have a limit on the size
40268# of here documents, and old seds have small limits too (100 cmds).
40269echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
40270echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
40271echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
40272echo '  :' >>$CONFIG_STATUS
40273rm -f conftest.tail
40274while grep . conftest.defines >/dev/null
40275do
40276  # Write a limited-size here document to $tmp/defines.sed.
40277  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
40278  # Speed up: don't consider the non `#define' lines.
40279  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
40280  # Work around the forget-to-reset-the-flag bug.
40281  echo 't clr' >>$CONFIG_STATUS
40282  echo ': clr' >>$CONFIG_STATUS
40283  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
40284  echo 'CEOF
40285  sed -f $tmp/defines.sed $tmp/in >$tmp/out
40286  rm -f $tmp/in
40287  mv $tmp/out $tmp/in
40288' >>$CONFIG_STATUS
40289  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
40290  rm -f conftest.defines
40291  mv conftest.tail conftest.defines
40292done
40293rm -f conftest.defines
40294echo '  fi # grep' >>$CONFIG_STATUS
40295echo >>$CONFIG_STATUS
40296
40297# Break up conftest.undefs because some shells have a limit on the size
40298# of here documents, and old seds have small limits too (100 cmds).
40299echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
40300rm -f conftest.tail
40301while grep . conftest.undefs >/dev/null
40302do
40303  # Write a limited-size here document to $tmp/undefs.sed.
40304  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
40305  # Speed up: don't consider the non `#undef'
40306  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
40307  # Work around the forget-to-reset-the-flag bug.
40308  echo 't clr' >>$CONFIG_STATUS
40309  echo ': clr' >>$CONFIG_STATUS
40310  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
40311  echo 'CEOF
40312  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
40313  rm -f $tmp/in
40314  mv $tmp/out $tmp/in
40315' >>$CONFIG_STATUS
40316  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
40317  rm -f conftest.undefs
40318  mv conftest.tail conftest.undefs
40319done
40320rm -f conftest.undefs
40321
40322cat >>$CONFIG_STATUS <<\_ACEOF
40323  # Let's still pretend it is `configure' which instantiates (i.e., don't
40324  # use $as_me), people would be surprised to read:
40325  #    /* config.h.  Generated by config.status.  */
40326  if test x"$ac_file" = x-; then
40327    echo "/* Generated by configure.  */" >$tmp/config.h
40328  else
40329    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
40330  fi
40331  cat $tmp/in >>$tmp/config.h
40332  rm -f $tmp/in
40333  if test x"$ac_file" != x-; then
40334    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
40335      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
40336echo "$as_me: $ac_file is unchanged" >&6;}
40337    else
40338      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
40339$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40340	 X"$ac_file" : 'X\(//\)[^/]' \| \
40341	 X"$ac_file" : 'X\(//\)$' \| \
40342	 X"$ac_file" : 'X\(/\)' \| \
40343	 .     : '\(.\)' 2>/dev/null ||
40344echo X"$ac_file" |
40345    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40346  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40347  	  /^X\(\/\/\)$/{ s//\1/; q; }
40348  	  /^X\(\/\).*/{ s//\1/; q; }
40349  	  s/.*/./; q'`
40350      { if $as_mkdir_p; then
40351    mkdir -p "$ac_dir"
40352  else
40353    as_dir="$ac_dir"
40354    as_dirs=
40355    while test ! -d "$as_dir"; do
40356      as_dirs="$as_dir $as_dirs"
40357      as_dir=`(dirname "$as_dir") 2>/dev/null ||
40358$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40359	 X"$as_dir" : 'X\(//\)[^/]' \| \
40360	 X"$as_dir" : 'X\(//\)$' \| \
40361	 X"$as_dir" : 'X\(/\)' \| \
40362	 .     : '\(.\)' 2>/dev/null ||
40363echo X"$as_dir" |
40364    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40365  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40366  	  /^X\(\/\/\)$/{ s//\1/; q; }
40367  	  /^X\(\/\).*/{ s//\1/; q; }
40368  	  s/.*/./; q'`
40369    done
40370    test ! -n "$as_dirs" || mkdir $as_dirs
40371  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
40372echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
40373   { (exit 1); exit 1; }; }; }
40374
40375      rm -f $ac_file
40376      mv $tmp/config.h $ac_file
40377    fi
40378  else
40379    cat $tmp/config.h
40380    rm -f $tmp/config.h
40381  fi
40382# Compute $ac_file's index in $config_headers.
40383_am_stamp_count=1
40384for _am_header in $config_headers :; do
40385  case $_am_header in
40386    $ac_file | $ac_file:* )
40387      break ;;
40388    * )
40389      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
40390  esac
40391done
40392echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
40393$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40394	 X$ac_file : 'X\(//\)[^/]' \| \
40395	 X$ac_file : 'X\(//\)$' \| \
40396	 X$ac_file : 'X\(/\)' \| \
40397	 .     : '\(.\)' 2>/dev/null ||
40398echo X$ac_file |
40399    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40400  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40401  	  /^X\(\/\/\)$/{ s//\1/; q; }
40402  	  /^X\(\/\).*/{ s//\1/; q; }
40403  	  s/.*/./; q'`/stamp-h$_am_stamp_count
40404done
40405_ACEOF
40406cat >>$CONFIG_STATUS <<\_ACEOF
40407
40408#
40409# CONFIG_COMMANDS section.
40410#
40411for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
40412  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
40413  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
40414  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
40415$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40416	 X"$ac_dest" : 'X\(//\)[^/]' \| \
40417	 X"$ac_dest" : 'X\(//\)$' \| \
40418	 X"$ac_dest" : 'X\(/\)' \| \
40419	 .     : '\(.\)' 2>/dev/null ||
40420echo X"$ac_dest" |
40421    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40422  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40423  	  /^X\(\/\/\)$/{ s//\1/; q; }
40424  	  /^X\(\/\).*/{ s//\1/; q; }
40425  	  s/.*/./; q'`
40426  { if $as_mkdir_p; then
40427    mkdir -p "$ac_dir"
40428  else
40429    as_dir="$ac_dir"
40430    as_dirs=
40431    while test ! -d "$as_dir"; do
40432      as_dirs="$as_dir $as_dirs"
40433      as_dir=`(dirname "$as_dir") 2>/dev/null ||
40434$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40435	 X"$as_dir" : 'X\(//\)[^/]' \| \
40436	 X"$as_dir" : 'X\(//\)$' \| \
40437	 X"$as_dir" : 'X\(/\)' \| \
40438	 .     : '\(.\)' 2>/dev/null ||
40439echo X"$as_dir" |
40440    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40441  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40442  	  /^X\(\/\/\)$/{ s//\1/; q; }
40443  	  /^X\(\/\).*/{ s//\1/; q; }
40444  	  s/.*/./; q'`
40445    done
40446    test ! -n "$as_dirs" || mkdir $as_dirs
40447  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
40448echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
40449   { (exit 1); exit 1; }; }; }
40450
40451  ac_builddir=.
40452
40453if test "$ac_dir" != .; then
40454  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
40455  # A "../" for each directory in $ac_dir_suffix.
40456  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
40457else
40458  ac_dir_suffix= ac_top_builddir=
40459fi
40460
40461case $srcdir in
40462  .)  # No --srcdir option.  We are building in place.
40463    ac_srcdir=.
40464    if test -z "$ac_top_builddir"; then
40465       ac_top_srcdir=.
40466    else
40467       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
40468    fi ;;
40469  [\\/]* | ?:[\\/]* )  # Absolute path.
40470    ac_srcdir=$srcdir$ac_dir_suffix;
40471    ac_top_srcdir=$srcdir ;;
40472  *) # Relative path.
40473    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
40474    ac_top_srcdir=$ac_top_builddir$srcdir ;;
40475esac
40476
40477# Do not use `cd foo && pwd` to compute absolute paths, because
40478# the directories may not exist.
40479case `pwd` in
40480.) ac_abs_builddir="$ac_dir";;
40481*)
40482  case "$ac_dir" in
40483  .) ac_abs_builddir=`pwd`;;
40484  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
40485  *) ac_abs_builddir=`pwd`/"$ac_dir";;
40486  esac;;
40487esac
40488case $ac_abs_builddir in
40489.) ac_abs_top_builddir=${ac_top_builddir}.;;
40490*)
40491  case ${ac_top_builddir}. in
40492  .) ac_abs_top_builddir=$ac_abs_builddir;;
40493  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
40494  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
40495  esac;;
40496esac
40497case $ac_abs_builddir in
40498.) ac_abs_srcdir=$ac_srcdir;;
40499*)
40500  case $ac_srcdir in
40501  .) ac_abs_srcdir=$ac_abs_builddir;;
40502  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
40503  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
40504  esac;;
40505esac
40506case $ac_abs_builddir in
40507.) ac_abs_top_srcdir=$ac_top_srcdir;;
40508*)
40509  case $ac_top_srcdir in
40510  .) ac_abs_top_srcdir=$ac_abs_builddir;;
40511  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
40512  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
40513  esac;;
40514esac
40515
40516
40517  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
40518echo "$as_me: executing $ac_dest commands" >&6;}
40519  case $ac_dest in
40520    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
40521  # Strip MF so we end up with the name of the file.
40522  mf=`echo "$mf" | sed -e 's/:.*$//'`
40523  # Check whether this is an Automake generated Makefile or not.
40524  # We used to match only the files named `Makefile.in', but
40525  # some people rename them; so instead we look at the file content.
40526  # Grep'ing the first line is not enough: some people post-process
40527  # each Makefile.in and add a new line on top of each file to say so.
40528  # So let's grep whole file.
40529  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
40530    dirpart=`(dirname "$mf") 2>/dev/null ||
40531$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40532	 X"$mf" : 'X\(//\)[^/]' \| \
40533	 X"$mf" : 'X\(//\)$' \| \
40534	 X"$mf" : 'X\(/\)' \| \
40535	 .     : '\(.\)' 2>/dev/null ||
40536echo X"$mf" |
40537    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40538  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40539  	  /^X\(\/\/\)$/{ s//\1/; q; }
40540  	  /^X\(\/\).*/{ s//\1/; q; }
40541  	  s/.*/./; q'`
40542  else
40543    continue
40544  fi
40545  # Extract the definition of DEPDIR, am__include, and am__quote
40546  # from the Makefile without running `make'.
40547  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
40548  test -z "$DEPDIR" && continue
40549  am__include=`sed -n 's/^am__include = //p' < "$mf"`
40550  test -z "am__include" && continue
40551  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
40552  # When using ansi2knr, U may be empty or an underscore; expand it
40553  U=`sed -n 's/^U = //p' < "$mf"`
40554  # Find all dependency output files, they are included files with
40555  # $(DEPDIR) in their names.  We invoke sed twice because it is the
40556  # simplest approach to changing $(DEPDIR) to its actual value in the
40557  # expansion.
40558  for file in `sed -n "
40559    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
40560       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
40561    # Make sure the directory exists.
40562    test -f "$dirpart/$file" && continue
40563    fdir=`(dirname "$file") 2>/dev/null ||
40564$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40565	 X"$file" : 'X\(//\)[^/]' \| \
40566	 X"$file" : 'X\(//\)$' \| \
40567	 X"$file" : 'X\(/\)' \| \
40568	 .     : '\(.\)' 2>/dev/null ||
40569echo X"$file" |
40570    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40571  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40572  	  /^X\(\/\/\)$/{ s//\1/; q; }
40573  	  /^X\(\/\).*/{ s//\1/; q; }
40574  	  s/.*/./; q'`
40575    { if $as_mkdir_p; then
40576    mkdir -p $dirpart/$fdir
40577  else
40578    as_dir=$dirpart/$fdir
40579    as_dirs=
40580    while test ! -d "$as_dir"; do
40581      as_dirs="$as_dir $as_dirs"
40582      as_dir=`(dirname "$as_dir") 2>/dev/null ||
40583$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40584	 X"$as_dir" : 'X\(//\)[^/]' \| \
40585	 X"$as_dir" : 'X\(//\)$' \| \
40586	 X"$as_dir" : 'X\(/\)' \| \
40587	 .     : '\(.\)' 2>/dev/null ||
40588echo X"$as_dir" |
40589    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40590  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40591  	  /^X\(\/\/\)$/{ s//\1/; q; }
40592  	  /^X\(\/\).*/{ s//\1/; q; }
40593  	  s/.*/./; q'`
40594    done
40595    test ! -n "$as_dirs" || mkdir $as_dirs
40596  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
40597echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
40598   { (exit 1); exit 1; }; }; }
40599
40600    # echo "creating $dirpart/$file"
40601    echo '# dummy' > "$dirpart/$file"
40602  done
40603done
40604 ;;
40605  esac
40606done
40607_ACEOF
40608
40609cat >>$CONFIG_STATUS <<\_ACEOF
40610
40611{ (exit 0); exit 0; }
40612_ACEOF
40613chmod +x $CONFIG_STATUS
40614ac_clean_files=$ac_clean_files_save
40615
40616
40617# configure is writing to config.log, and then calls config.status.
40618# config.status does its own redirection, appending to config.log.
40619# Unfortunately, on DOS this fails, as config.log is still kept open
40620# by configure, so config.status won't be able to write to it; its
40621# output is simply discarded.  So we exec the FD to /dev/null,
40622# effectively closing config.log, so it can be properly (re)opened and
40623# appended to by config.status.  When coming back to configure, we
40624# need to make the FD available again.
40625if test "$no_create" != yes; then
40626  ac_cs_success=:
40627  ac_config_status_args=
40628  test "$silent" = yes &&
40629    ac_config_status_args="$ac_config_status_args --quiet"
40630  exec 5>/dev/null
40631  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
40632  exec 5>>config.log
40633  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
40634  # would make configure fail if this is the last instruction.
40635  $ac_cs_success || { (exit 1); exit 1; }
40636fi
40637
40638
40639  if test x"$coin_vpath_link_files" = x; then : ; else
40640    lnkcmd="$coin_link_input_cmd"
40641    if test "$lnkcmd" = cp; then
40642      { echo "$as_me:$LINENO: Copying data files for VPATH configuration" >&5
40643echo "$as_me: Copying data files for VPATH configuration" >&6;}
40644    else
40645      { echo "$as_me:$LINENO: Creating VPATH links for data files" >&5
40646echo "$as_me: Creating VPATH links for data files" >&6;}
40647    fi
40648    for file in $coin_vpath_link_files; do
40649      dir=`(dirname "./$file") 2>/dev/null ||
40650$as_expr X"./$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40651	 X"./$file" : 'X\(//\)[^/]' \| \
40652	 X"./$file" : 'X\(//\)$' \| \
40653	 X"./$file" : 'X\(/\)' \| \
40654	 .     : '\(.\)' 2>/dev/null ||
40655echo X"./$file" |
40656    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40657  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40658  	  /^X\(\/\/\)$/{ s//\1/; q; }
40659  	  /^X\(\/\).*/{ s//\1/; q; }
40660  	  s/.*/./; q'`
40661      if test -d $dir; then : ; else
40662        { if $as_mkdir_p; then
40663    mkdir -p $dir
40664  else
40665    as_dir=$dir
40666    as_dirs=
40667    while test ! -d "$as_dir"; do
40668      as_dirs="$as_dir $as_dirs"
40669      as_dir=`(dirname "$as_dir") 2>/dev/null ||
40670$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40671	 X"$as_dir" : 'X\(//\)[^/]' \| \
40672	 X"$as_dir" : 'X\(//\)$' \| \
40673	 X"$as_dir" : 'X\(/\)' \| \
40674	 .     : '\(.\)' 2>/dev/null ||
40675echo X"$as_dir" |
40676    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40677  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40678  	  /^X\(\/\/\)$/{ s//\1/; q; }
40679  	  /^X\(\/\).*/{ s//\1/; q; }
40680  	  s/.*/./; q'`
40681    done
40682    test ! -n "$as_dirs" || mkdir $as_dirs
40683  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dir" >&5
40684echo "$as_me: error: cannot create directory $dir" >&2;}
40685   { (exit 1); exit 1; }; }; }
40686
40687      fi
40688      rm -f $file
40689      $lnkcmd $abs_source_dir/$file $file
40690    done
40691  fi
40692
40693  { echo "$as_me:$LINENO: In case of trouble, first consult the troubleshooting page at https://projects.coin-or.org/BuildTools/wiki/user-troubleshooting" >&5
40694echo "$as_me: In case of trouble, first consult the troubleshooting page at https://projects.coin-or.org/BuildTools/wiki/user-troubleshooting" >&6;}
40695  if test x$coin_projectdir = xyes; then
40696    { echo "$as_me:$LINENO: Configuration of $PACKAGE_NAME successful" >&5
40697echo "$as_me: Configuration of $PACKAGE_NAME successful" >&6;}
40698  else
40699    { echo "$as_me:$LINENO: Main configuration of $PACKAGE_NAME successful" >&5
40700echo "$as_me: Main configuration of $PACKAGE_NAME successful" >&6;}
40701  fi
40702else
40703  { echo "$as_me:$LINENO: No configuration of $PACKAGE_NAME necessary" >&5
40704echo "$as_me: No configuration of $PACKAGE_NAME necessary" >&6;}
40705fi
40706
40707
40708