1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for CoinUtils 2.11.4.
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.4'
433PACKAGE_STRING='CoinUtils 2.11.4'
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 dos2unix 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.4 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.4:";;
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.4
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.4, 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:4:11
1854
1855
1856
1857# Check if user wants to produce debugging code
1858
1859echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1860echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1861
1862# Check whether --enable-debug or --disable-debug was given.
1863if test "${enable_debug+set}" = set; then
1864  enableval="$enable_debug"
1865  case "${enableval}" in
1866   yes) coin_debug_compile=true
1867        if test "${enable_shared+set}" = set; then :; else
1868          enable_shared=no
1869        fi
1870        ;;
1871   no)  coin_debug_compile=false
1872        ;;
1873   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1874echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1875   { (exit 1); exit 1; }; }
1876        ;;
1877esac
1878else
1879  coin_debug_compile=false
1880fi;
1881
1882# Check whether --enable-debug-coinutils or --disable-debug-coinutils was given.
1883if test "${enable_debug_coinutils+set}" = set; then
1884  enableval="$enable_debug_coinutils"
1885  case "${enableval}" in
1886    yes) coin_debug_compile=true
1887         ;;
1888    no)  coin_debug_compile=false
1889         ;;
1890    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-coinutils" >&5
1891echo "$as_me: error: bad value ${enableval} for --enable-debug-coinutils" >&2;}
1892   { (exit 1); exit 1; }; }
1893         ;;
1894 esac
1895else
1896  :
1897fi;
1898
1899 # m4_ifvaln([CoinUtils],
1900
1901if test $coin_debug_compile = true; then
1902  echo "$as_me:$LINENO: result: yes" >&5
1903echo "${ECHO_T}yes" >&6
1904else
1905  echo "$as_me:$LINENO: result: no" >&5
1906echo "${ECHO_T}no" >&6
1907fi
1908
1909
1910# Check whether --with-coinutils-verbosity or --without-coinutils-verbosity was given.
1911if test "${with_coinutils_verbosity+set}" = set; then
1912  withval="$with_coinutils_verbosity"
1913  if test "$withval" = yes; then
1914                withval=1
1915              fi
1916              coin_coinutils_verbosity=$withval
1917else
1918  coin_coinutils_verbosity=0
1919fi;
1920
1921cat >>confdefs.h <<_ACEOF
1922#define COIN_COINUTILS_VERBOSITY $coin_coinutils_verbosity
1923_ACEOF
1924
1925
1926
1927# Check whether --with-coinutils-checklevel or --without-coinutils-checklevel was given.
1928if test "${with_coinutils_checklevel+set}" = set; then
1929  withval="$with_coinutils_checklevel"
1930  if test "$withval" = yes; then
1931                withval=1
1932              fi
1933              coin_coinutils_checklevel=$withval
1934else
1935  coin_coinutils_checklevel=0
1936fi;
1937
1938cat >>confdefs.h <<_ACEOF
1939#define COIN_COINUTILS_CHECKLEVEL $coin_coinutils_checklevel
1940_ACEOF
1941
1942
1943 # m4_ifvaln([CoinUtils],
1944
1945
1946
1947# Get the name of the C++ compiler and appropriate compiler options
1948
1949
1950  # for backward compatibility
1951  # Check whether --enable-doscompile or --disable-doscompile was given.
1952if test "${enable_doscompile+set}" = set; then
1953  enableval="$enable_doscompile"
1954  enable_doscompile=$enableval
1955else
1956  enable_doscompile=no
1957fi;
1958
1959  # Check whether --enable-msvc or --disable-msvc was given.
1960if test "${enable_msvc+set}" = set; then
1961  enableval="$enable_msvc"
1962  enable_msvc=$enableval
1963else
1964  enable_msvc=no
1965     if test "$enable_doscompile" = msvc ; then
1966       enable_msvc=yes
1967     elif test "$enable_doscompile" != no ; then
1968       { { echo "$as_me:$LINENO: error: --enable-doscompile=$enable_doscompile not supported anymore." >&5
1969echo "$as_me: error: --enable-doscompile=$enable_doscompile not supported anymore." >&2;}
1970   { (exit 1); exit 1; }; }
1971     fi
1972
1973fi;
1974
1975  if test "$enable_msvc" = MD; then
1976    enable_shared=yes
1977    enable_msvc=yes
1978  fi
1979
1980  if test "$enable_msvc" = yes; then
1981    case $build in
1982      *-cygwin* | *-mingw*) ;;
1983      *) { { echo "$as_me:$LINENO: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&5
1984echo "$as_me: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&2;}
1985   { (exit 1); exit 1; }; } ;;
1986    esac
1987  fi
1988
1989
1990
1991ac_ext=c
1992ac_cpp='$CPP $CPPFLAGS'
1993ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1994ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1995ac_compiler_gnu=$ac_cv_c_compiler_gnu
1996
1997
1998# For consistency, we set the C compiler to the same value of the C++
1999# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
2000if test x"$CXX" != x; then
2001  case "$CXX" in
2002    clang* ) ;;
2003    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2004      if test x"$CC" = x; then
2005        CC="$CXX"
2006        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
2007echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
2008      fi
2009      ;;
2010  esac
2011fi
2012
2013
2014
2015
2016
2017
2018coin_has_cc=yes
2019
2020save_cflags="$CFLAGS"
2021
2022# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
2023# Depending on the user's PATH, when Studio/Workshop cc is not present we may
2024# find /usr/ucb/cc, which is almost certainly not a good choice for the C
2025# compiler. In this case, put cc after gcc.
2026
2027case $build in
2028  *-cygwin* | *-mingw*)
2029  	     if test "$enable_msvc" = yes ; then
2030	       comps="icl cl gcc"
2031	     else
2032	       comps="gcc icl cl"
2033	     fi ;;
2034  *-*-solaris*)
2035	     # Extract the first word of "cc", so it can be a program name with args.
2036set dummy cc; ac_word=$2
2037echo "$as_me:$LINENO: checking for $ac_word" >&5
2038echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2039if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
2040  echo $ECHO_N "(cached) $ECHO_C" >&6
2041else
2042  if test -n "$sol_cc_compiler"; then
2043  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
2044else
2045  ac_prog_rejected=no
2046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2047for as_dir in $PATH
2048do
2049  IFS=$as_save_IFS
2050  test -z "$as_dir" && as_dir=.
2051  for ac_exec_ext in '' $ac_executable_extensions; do
2052  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2053    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2054       ac_prog_rejected=yes
2055       continue
2056     fi
2057    ac_cv_prog_sol_cc_compiler="cc"
2058    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2059    break 2
2060  fi
2061done
2062done
2063
2064if test $ac_prog_rejected = yes; then
2065  # We found a bogon in the path, so make sure we never use it.
2066  set dummy $ac_cv_prog_sol_cc_compiler
2067  shift
2068  if test $# != 0; then
2069    # We chose a different compiler from the bogus one.
2070    # However, it has the same basename, so the bogon will be chosen
2071    # first if we set sol_cc_compiler to just the basename; use the full file name.
2072    shift
2073    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2074  fi
2075fi
2076fi
2077fi
2078sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2079if test -n "$sol_cc_compiler"; then
2080  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2081echo "${ECHO_T}$sol_cc_compiler" >&6
2082else
2083  echo "$as_me:$LINENO: result: no" >&5
2084echo "${ECHO_T}no" >&6
2085fi
2086
2087	     if test "$sol_cc_compiler" = "cc" ; then
2088	       comps="cc xlc gcc pgcc icc"
2089	     else
2090	       comps="xlc gcc pgcc icc cc"
2091	     fi
2092	     ;;
2093  *-*-darwin*) comps="clang gcc cc" ;;
2094  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2095  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2096  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2097esac
2098
2099# We delete the cached value, since the test might not have been
2100# performed with our choice of compilers earlier
2101$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2102# AC_MSG_NOTICE([C compiler candidates: $comps])
2103ac_ext=c
2104ac_cpp='$CPP $CPPFLAGS'
2105ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2106ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2107ac_compiler_gnu=$ac_cv_c_compiler_gnu
2108if test -n "$ac_tool_prefix"; then
2109  for ac_prog in $comps
2110  do
2111    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2112set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2113echo "$as_me:$LINENO: checking for $ac_word" >&5
2114echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2115if test "${ac_cv_prog_CC+set}" = set; then
2116  echo $ECHO_N "(cached) $ECHO_C" >&6
2117else
2118  if test -n "$CC"; then
2119  ac_cv_prog_CC="$CC" # Let the user override the test.
2120else
2121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2122for as_dir in $PATH
2123do
2124  IFS=$as_save_IFS
2125  test -z "$as_dir" && as_dir=.
2126  for ac_exec_ext in '' $ac_executable_extensions; do
2127  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2128    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2129    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2130    break 2
2131  fi
2132done
2133done
2134
2135fi
2136fi
2137CC=$ac_cv_prog_CC
2138if test -n "$CC"; then
2139  echo "$as_me:$LINENO: result: $CC" >&5
2140echo "${ECHO_T}$CC" >&6
2141else
2142  echo "$as_me:$LINENO: result: no" >&5
2143echo "${ECHO_T}no" >&6
2144fi
2145
2146    test -n "$CC" && break
2147  done
2148fi
2149if test -z "$CC"; then
2150  ac_ct_CC=$CC
2151  for ac_prog in $comps
2152do
2153  # Extract the first word of "$ac_prog", so it can be a program name with args.
2154set dummy $ac_prog; ac_word=$2
2155echo "$as_me:$LINENO: checking for $ac_word" >&5
2156echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2157if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2158  echo $ECHO_N "(cached) $ECHO_C" >&6
2159else
2160  if test -n "$ac_ct_CC"; then
2161  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2162else
2163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2164for as_dir in $PATH
2165do
2166  IFS=$as_save_IFS
2167  test -z "$as_dir" && as_dir=.
2168  for ac_exec_ext in '' $ac_executable_extensions; do
2169  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2170    ac_cv_prog_ac_ct_CC="$ac_prog"
2171    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2172    break 2
2173  fi
2174done
2175done
2176
2177fi
2178fi
2179ac_ct_CC=$ac_cv_prog_ac_ct_CC
2180if test -n "$ac_ct_CC"; then
2181  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2182echo "${ECHO_T}$ac_ct_CC" >&6
2183else
2184  echo "$as_me:$LINENO: result: no" >&5
2185echo "${ECHO_T}no" >&6
2186fi
2187
2188  test -n "$ac_ct_CC" && break
2189done
2190
2191  CC=$ac_ct_CC
2192fi
2193
2194
2195test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2196See \`config.log' for more details." >&5
2197echo "$as_me: error: no acceptable C compiler found in \$PATH
2198See \`config.log' for more details." >&2;}
2199   { (exit 1); exit 1; }; }
2200
2201# Provide some information about the compiler.
2202echo "$as_me:$LINENO:" \
2203     "checking for C compiler version" >&5
2204ac_compiler=`set X $ac_compile; echo $2`
2205{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2206  (eval $ac_compiler --version </dev/null >&5) 2>&5
2207  ac_status=$?
2208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209  (exit $ac_status); }
2210{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2211  (eval $ac_compiler -v </dev/null >&5) 2>&5
2212  ac_status=$?
2213  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214  (exit $ac_status); }
2215{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2216  (eval $ac_compiler -V </dev/null >&5) 2>&5
2217  ac_status=$?
2218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219  (exit $ac_status); }
2220
2221cat >conftest.$ac_ext <<_ACEOF
2222/* confdefs.h.  */
2223_ACEOF
2224cat confdefs.h >>conftest.$ac_ext
2225cat >>conftest.$ac_ext <<_ACEOF
2226/* end confdefs.h.  */
2227
2228int
2229main ()
2230{
2231
2232  ;
2233  return 0;
2234}
2235_ACEOF
2236ac_clean_files_save=$ac_clean_files
2237ac_clean_files="$ac_clean_files a.out a.exe b.out"
2238# Try to create an executable without -o first, disregard a.out.
2239# It will help us diagnose broken compilers, and finding out an intuition
2240# of exeext.
2241echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2242echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2243ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2244if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2245  (eval $ac_link_default) 2>&5
2246  ac_status=$?
2247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248  (exit $ac_status); }; then
2249  # Find the output, starting from the most likely.  This scheme is
2250# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2251# resort.
2252
2253# Be careful to initialize this variable, since it used to be cached.
2254# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2255ac_cv_exeext=
2256# b.out is created by i960 compilers.
2257for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2258do
2259  test -f "$ac_file" || continue
2260  case $ac_file in
2261    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2262	;;
2263    conftest.$ac_ext )
2264	# This is the source file.
2265	;;
2266    [ab].out )
2267	# We found the default executable, but exeext='' is most
2268	# certainly right.
2269	break;;
2270    *.* )
2271	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2272	# FIXME: I believe we export ac_cv_exeext for Libtool,
2273	# but it would be cool to find out if it's true.  Does anybody
2274	# maintain Libtool? --akim.
2275	export ac_cv_exeext
2276	break;;
2277    * )
2278	break;;
2279  esac
2280done
2281else
2282  echo "$as_me: failed program was:" >&5
2283sed 's/^/| /' conftest.$ac_ext >&5
2284
2285{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2286See \`config.log' for more details." >&5
2287echo "$as_me: error: C compiler cannot create executables
2288See \`config.log' for more details." >&2;}
2289   { (exit 77); exit 77; }; }
2290fi
2291
2292ac_exeext=$ac_cv_exeext
2293echo "$as_me:$LINENO: result: $ac_file" >&5
2294echo "${ECHO_T}$ac_file" >&6
2295
2296# Check the compiler produces executables we can run.  If not, either
2297# the compiler is broken, or we cross compile.
2298echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2299echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2300# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2301# If not cross compiling, check that we can run a simple program.
2302if test "$cross_compiling" != yes; then
2303  if { ac_try='./$ac_file'
2304  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2305  (eval $ac_try) 2>&5
2306  ac_status=$?
2307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2308  (exit $ac_status); }; }; then
2309    cross_compiling=no
2310  else
2311    if test "$cross_compiling" = maybe; then
2312	cross_compiling=yes
2313    else
2314	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2315If you meant to cross compile, use \`--host'.
2316See \`config.log' for more details." >&5
2317echo "$as_me: error: cannot run C compiled programs.
2318If you meant to cross compile, use \`--host'.
2319See \`config.log' for more details." >&2;}
2320   { (exit 1); exit 1; }; }
2321    fi
2322  fi
2323fi
2324echo "$as_me:$LINENO: result: yes" >&5
2325echo "${ECHO_T}yes" >&6
2326
2327rm -f a.out a.exe conftest$ac_cv_exeext b.out
2328ac_clean_files=$ac_clean_files_save
2329# Check the compiler produces executables we can run.  If not, either
2330# the compiler is broken, or we cross compile.
2331echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2332echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2333echo "$as_me:$LINENO: result: $cross_compiling" >&5
2334echo "${ECHO_T}$cross_compiling" >&6
2335
2336echo "$as_me:$LINENO: checking for suffix of executables" >&5
2337echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2338if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2339  (eval $ac_link) 2>&5
2340  ac_status=$?
2341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342  (exit $ac_status); }; then
2343  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2344# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2345# work properly (i.e., refer to `conftest.exe'), while it won't with
2346# `rm'.
2347for ac_file in conftest.exe conftest conftest.*; do
2348  test -f "$ac_file" || continue
2349  case $ac_file in
2350    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2351    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2352	  export ac_cv_exeext
2353	  break;;
2354    * ) break;;
2355  esac
2356done
2357else
2358  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2359See \`config.log' for more details." >&5
2360echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2361See \`config.log' for more details." >&2;}
2362   { (exit 1); exit 1; }; }
2363fi
2364
2365rm -f conftest$ac_cv_exeext
2366echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2367echo "${ECHO_T}$ac_cv_exeext" >&6
2368
2369rm -f conftest.$ac_ext
2370EXEEXT=$ac_cv_exeext
2371ac_exeext=$EXEEXT
2372echo "$as_me:$LINENO: checking for suffix of object files" >&5
2373echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2374if test "${ac_cv_objext+set}" = set; then
2375  echo $ECHO_N "(cached) $ECHO_C" >&6
2376else
2377  cat >conftest.$ac_ext <<_ACEOF
2378/* confdefs.h.  */
2379_ACEOF
2380cat confdefs.h >>conftest.$ac_ext
2381cat >>conftest.$ac_ext <<_ACEOF
2382/* end confdefs.h.  */
2383
2384int
2385main ()
2386{
2387
2388  ;
2389  return 0;
2390}
2391_ACEOF
2392rm -f conftest.o conftest.obj
2393if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2394  (eval $ac_compile) 2>&5
2395  ac_status=$?
2396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397  (exit $ac_status); }; then
2398  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2399  case $ac_file in
2400    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2401    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2402       break;;
2403  esac
2404done
2405else
2406  echo "$as_me: failed program was:" >&5
2407sed 's/^/| /' conftest.$ac_ext >&5
2408
2409{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2410See \`config.log' for more details." >&5
2411echo "$as_me: error: cannot compute suffix of object files: cannot compile
2412See \`config.log' for more details." >&2;}
2413   { (exit 1); exit 1; }; }
2414fi
2415
2416rm -f conftest.$ac_cv_objext conftest.$ac_ext
2417fi
2418echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2419echo "${ECHO_T}$ac_cv_objext" >&6
2420OBJEXT=$ac_cv_objext
2421ac_objext=$OBJEXT
2422echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2423echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2424if test "${ac_cv_c_compiler_gnu+set}" = set; then
2425  echo $ECHO_N "(cached) $ECHO_C" >&6
2426else
2427  cat >conftest.$ac_ext <<_ACEOF
2428/* confdefs.h.  */
2429_ACEOF
2430cat confdefs.h >>conftest.$ac_ext
2431cat >>conftest.$ac_ext <<_ACEOF
2432/* end confdefs.h.  */
2433
2434int
2435main ()
2436{
2437#ifndef __GNUC__
2438       choke me
2439#endif
2440
2441  ;
2442  return 0;
2443}
2444_ACEOF
2445rm -f conftest.$ac_objext
2446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2447  (eval $ac_compile) 2>conftest.er1
2448  ac_status=$?
2449  grep -v '^ *+' conftest.er1 >conftest.err
2450  rm -f conftest.er1
2451  cat conftest.err >&5
2452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453  (exit $ac_status); } &&
2454	 { ac_try='test -z "$ac_c_werror_flag"
2455			 || test ! -s conftest.err'
2456  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2457  (eval $ac_try) 2>&5
2458  ac_status=$?
2459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460  (exit $ac_status); }; } &&
2461	 { ac_try='test -s conftest.$ac_objext'
2462  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2463  (eval $ac_try) 2>&5
2464  ac_status=$?
2465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466  (exit $ac_status); }; }; then
2467  ac_compiler_gnu=yes
2468else
2469  echo "$as_me: failed program was:" >&5
2470sed 's/^/| /' conftest.$ac_ext >&5
2471
2472ac_compiler_gnu=no
2473fi
2474rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2475ac_cv_c_compiler_gnu=$ac_compiler_gnu
2476
2477fi
2478echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2479echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2480GCC=`test $ac_compiler_gnu = yes && echo yes`
2481ac_test_CFLAGS=${CFLAGS+set}
2482ac_save_CFLAGS=$CFLAGS
2483CFLAGS="-g"
2484echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2485echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2486if test "${ac_cv_prog_cc_g+set}" = set; then
2487  echo $ECHO_N "(cached) $ECHO_C" >&6
2488else
2489  cat >conftest.$ac_ext <<_ACEOF
2490/* confdefs.h.  */
2491_ACEOF
2492cat confdefs.h >>conftest.$ac_ext
2493cat >>conftest.$ac_ext <<_ACEOF
2494/* end confdefs.h.  */
2495
2496int
2497main ()
2498{
2499
2500  ;
2501  return 0;
2502}
2503_ACEOF
2504rm -f conftest.$ac_objext
2505if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2506  (eval $ac_compile) 2>conftest.er1
2507  ac_status=$?
2508  grep -v '^ *+' conftest.er1 >conftest.err
2509  rm -f conftest.er1
2510  cat conftest.err >&5
2511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512  (exit $ac_status); } &&
2513	 { ac_try='test -z "$ac_c_werror_flag"
2514			 || test ! -s conftest.err'
2515  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2516  (eval $ac_try) 2>&5
2517  ac_status=$?
2518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519  (exit $ac_status); }; } &&
2520	 { ac_try='test -s conftest.$ac_objext'
2521  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2522  (eval $ac_try) 2>&5
2523  ac_status=$?
2524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525  (exit $ac_status); }; }; then
2526  ac_cv_prog_cc_g=yes
2527else
2528  echo "$as_me: failed program was:" >&5
2529sed 's/^/| /' conftest.$ac_ext >&5
2530
2531ac_cv_prog_cc_g=no
2532fi
2533rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2534fi
2535echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2536echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2537if test "$ac_test_CFLAGS" = set; then
2538  CFLAGS=$ac_save_CFLAGS
2539elif test $ac_cv_prog_cc_g = yes; then
2540  if test "$GCC" = yes; then
2541    CFLAGS="-g -O2"
2542  else
2543    CFLAGS="-g"
2544  fi
2545else
2546  if test "$GCC" = yes; then
2547    CFLAGS="-O2"
2548  else
2549    CFLAGS=
2550  fi
2551fi
2552echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2553echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2554if test "${ac_cv_prog_cc_stdc+set}" = set; then
2555  echo $ECHO_N "(cached) $ECHO_C" >&6
2556else
2557  ac_cv_prog_cc_stdc=no
2558ac_save_CC=$CC
2559cat >conftest.$ac_ext <<_ACEOF
2560/* confdefs.h.  */
2561_ACEOF
2562cat confdefs.h >>conftest.$ac_ext
2563cat >>conftest.$ac_ext <<_ACEOF
2564/* end confdefs.h.  */
2565#include <stdarg.h>
2566#include <stdio.h>
2567#include <sys/types.h>
2568#include <sys/stat.h>
2569/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2570struct buf { int x; };
2571FILE * (*rcsopen) (struct buf *, struct stat *, int);
2572static char *e (p, i)
2573     char **p;
2574     int i;
2575{
2576  return p[i];
2577}
2578static char *f (char * (*g) (char **, int), char **p, ...)
2579{
2580  char *s;
2581  va_list v;
2582  va_start (v,p);
2583  s = g (p, va_arg (v,int));
2584  va_end (v);
2585  return s;
2586}
2587
2588/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2589   function prototypes and stuff, but not '\xHH' hex character constants.
2590   These don't provoke an error unfortunately, instead are silently treated
2591   as 'x'.  The following induces an error, until -std1 is added to get
2592   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2593   array size at least.  It's necessary to write '\x00'==0 to get something
2594   that's true only with -std1.  */
2595int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2596
2597int test (int i, double x);
2598struct s1 {int (*f) (int a);};
2599struct s2 {int (*f) (double a);};
2600int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2601int argc;
2602char **argv;
2603int
2604main ()
2605{
2606return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2607  ;
2608  return 0;
2609}
2610_ACEOF
2611# Don't try gcc -ansi; that turns off useful extensions and
2612# breaks some systems' header files.
2613# AIX			-qlanglvl=ansi
2614# Ultrix and OSF/1	-std1
2615# HP-UX 10.20 and later	-Ae
2616# HP-UX older versions	-Aa -D_HPUX_SOURCE
2617# SVR4			-Xc -D__EXTENSIONS__
2618for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2619do
2620  CC="$ac_save_CC $ac_arg"
2621  rm -f conftest.$ac_objext
2622if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2623  (eval $ac_compile) 2>conftest.er1
2624  ac_status=$?
2625  grep -v '^ *+' conftest.er1 >conftest.err
2626  rm -f conftest.er1
2627  cat conftest.err >&5
2628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629  (exit $ac_status); } &&
2630	 { ac_try='test -z "$ac_c_werror_flag"
2631			 || test ! -s conftest.err'
2632  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2633  (eval $ac_try) 2>&5
2634  ac_status=$?
2635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636  (exit $ac_status); }; } &&
2637	 { ac_try='test -s conftest.$ac_objext'
2638  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2639  (eval $ac_try) 2>&5
2640  ac_status=$?
2641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642  (exit $ac_status); }; }; then
2643  ac_cv_prog_cc_stdc=$ac_arg
2644break
2645else
2646  echo "$as_me: failed program was:" >&5
2647sed 's/^/| /' conftest.$ac_ext >&5
2648
2649fi
2650rm -f conftest.err conftest.$ac_objext
2651done
2652rm -f conftest.$ac_ext conftest.$ac_objext
2653CC=$ac_save_CC
2654
2655fi
2656
2657case "x$ac_cv_prog_cc_stdc" in
2658  x|xno)
2659    echo "$as_me:$LINENO: result: none needed" >&5
2660echo "${ECHO_T}none needed" >&6 ;;
2661  *)
2662    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2663echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2664    CC="$CC $ac_cv_prog_cc_stdc" ;;
2665esac
2666
2667# Some people use a C++ compiler to compile C.  Since we use `exit',
2668# in C++ we need to declare it.  In case someone uses the same compiler
2669# for both compiling C and C++ we need to have the C++ compiler decide
2670# the declaration of exit, since it's the most demanding environment.
2671cat >conftest.$ac_ext <<_ACEOF
2672#ifndef __cplusplus
2673  choke me
2674#endif
2675_ACEOF
2676rm -f conftest.$ac_objext
2677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2678  (eval $ac_compile) 2>conftest.er1
2679  ac_status=$?
2680  grep -v '^ *+' conftest.er1 >conftest.err
2681  rm -f conftest.er1
2682  cat conftest.err >&5
2683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684  (exit $ac_status); } &&
2685	 { ac_try='test -z "$ac_c_werror_flag"
2686			 || test ! -s conftest.err'
2687  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2688  (eval $ac_try) 2>&5
2689  ac_status=$?
2690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691  (exit $ac_status); }; } &&
2692	 { ac_try='test -s conftest.$ac_objext'
2693  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2694  (eval $ac_try) 2>&5
2695  ac_status=$?
2696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697  (exit $ac_status); }; }; then
2698  for ac_declaration in \
2699   '' \
2700   'extern "C" void std::exit (int) throw (); using std::exit;' \
2701   'extern "C" void std::exit (int); using std::exit;' \
2702   'extern "C" void exit (int) throw ();' \
2703   'extern "C" void exit (int);' \
2704   'void exit (int);'
2705do
2706  cat >conftest.$ac_ext <<_ACEOF
2707/* confdefs.h.  */
2708_ACEOF
2709cat confdefs.h >>conftest.$ac_ext
2710cat >>conftest.$ac_ext <<_ACEOF
2711/* end confdefs.h.  */
2712$ac_declaration
2713#include <stdlib.h>
2714int
2715main ()
2716{
2717exit (42);
2718  ;
2719  return 0;
2720}
2721_ACEOF
2722rm -f conftest.$ac_objext
2723if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2724  (eval $ac_compile) 2>conftest.er1
2725  ac_status=$?
2726  grep -v '^ *+' conftest.er1 >conftest.err
2727  rm -f conftest.er1
2728  cat conftest.err >&5
2729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730  (exit $ac_status); } &&
2731	 { ac_try='test -z "$ac_c_werror_flag"
2732			 || test ! -s conftest.err'
2733  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2734  (eval $ac_try) 2>&5
2735  ac_status=$?
2736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737  (exit $ac_status); }; } &&
2738	 { ac_try='test -s conftest.$ac_objext'
2739  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2740  (eval $ac_try) 2>&5
2741  ac_status=$?
2742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743  (exit $ac_status); }; }; then
2744  :
2745else
2746  echo "$as_me: failed program was:" >&5
2747sed 's/^/| /' conftest.$ac_ext >&5
2748
2749continue
2750fi
2751rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2752  cat >conftest.$ac_ext <<_ACEOF
2753/* confdefs.h.  */
2754_ACEOF
2755cat confdefs.h >>conftest.$ac_ext
2756cat >>conftest.$ac_ext <<_ACEOF
2757/* end confdefs.h.  */
2758$ac_declaration
2759int
2760main ()
2761{
2762exit (42);
2763  ;
2764  return 0;
2765}
2766_ACEOF
2767rm -f conftest.$ac_objext
2768if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2769  (eval $ac_compile) 2>conftest.er1
2770  ac_status=$?
2771  grep -v '^ *+' conftest.er1 >conftest.err
2772  rm -f conftest.er1
2773  cat conftest.err >&5
2774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2775  (exit $ac_status); } &&
2776	 { ac_try='test -z "$ac_c_werror_flag"
2777			 || test ! -s conftest.err'
2778  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2779  (eval $ac_try) 2>&5
2780  ac_status=$?
2781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782  (exit $ac_status); }; } &&
2783	 { ac_try='test -s conftest.$ac_objext'
2784  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2785  (eval $ac_try) 2>&5
2786  ac_status=$?
2787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788  (exit $ac_status); }; }; then
2789  break
2790else
2791  echo "$as_me: failed program was:" >&5
2792sed 's/^/| /' conftest.$ac_ext >&5
2793
2794fi
2795rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2796done
2797rm -f conftest*
2798if test -n "$ac_declaration"; then
2799  echo '#ifdef __cplusplus' >>confdefs.h
2800  echo $ac_declaration      >>confdefs.h
2801  echo '#endif'             >>confdefs.h
2802fi
2803
2804else
2805  echo "$as_me: failed program was:" >&5
2806sed 's/^/| /' conftest.$ac_ext >&5
2807
2808fi
2809rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2810ac_ext=c
2811ac_cpp='$CPP $CPPFLAGS'
2812ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2813ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2814ac_compiler_gnu=$ac_cv_c_compiler_gnu
2815
2816if test -z "$CC" ; then
2817  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2818echo "$as_me: error: Failed to find a C compiler!" >&2;}
2819   { (exit 1); exit 1; }; }
2820fi
2821# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2822case "$CC" in
2823  clang* ) ;;
2824  cl* | */cl* | CL* | */CL* )
2825    if test "$ac_cv_prog_cc_g" = yes ; then
2826      ac_cv_prog_cc_g=no
2827      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2828echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2829    fi ;;
2830  * )
2831    if test x"$CYGPATH_W" = x ; then
2832      CYGPATH_W=echo
2833    fi
2834    ;;
2835esac
2836CFLAGS="$save_cflags"
2837
2838# add automake conditional so we can recognize cl compiler in makefile
2839coin_cc_is_cl=false
2840case "$CC" in
2841  clang* ) ;;
2842  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2843    coin_cc_is_cl=true
2844    ;;
2845esac
2846
2847
2848if test $coin_cc_is_cl = true; then
2849  COIN_CC_IS_CL_TRUE=
2850  COIN_CC_IS_CL_FALSE='#'
2851else
2852  COIN_CC_IS_CL_TRUE='#'
2853  COIN_CC_IS_CL_FALSE=
2854fi
2855
2856
2857# Check if a project specific CFLAGS variable has been set
2858if test x$COIN_PRJCT != x; then
2859  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2860  if test x$coin_tmp = xset; then
2861    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2862  fi
2863fi
2864
2865if test x"$CFLAGS" = x; then
2866
2867  coin_add_cflags=
2868  coin_opt_cflags=
2869  coin_dbg_cflags=
2870  coin_warn_cflags=
2871
2872  if test "$GCC" = "yes"; then
2873    case "$CC" in
2874      icc* | */icc*)
2875        ;;
2876      *)
2877        coin_opt_cflags="-O3"
2878        coin_add_cflags="-pipe"
2879        coin_dbg_cflags="-g -O0"
2880        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2881    esac
2882  fi
2883  if test -z "$coin_opt_cflags"; then
2884    case $build in
2885      *-cygwin* | *-mingw*)
2886        case "$CC" in
2887          clang* ) ;;
2888          cl* | */cl* | CL* | */CL*)
2889            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2890              coin_opt_cflags='-MD -O2'
2891              coin_dbg_cflags='-MDd'
2892            else
2893              coin_opt_cflags='-MT -O2'
2894              coin_dbg_cflags='-MTd'
2895            fi
2896            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2897            ;;
2898          icl* | */icl* | ICL* | */ICL*)
2899            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2900              coin_opt_cflags='-MD -Ox'
2901              coin_dbg_cflags='-MDd -debug'
2902            else
2903              coin_opt_cflags='-MT -Ox'
2904              coin_dbg_cflags='-MTd -debug'
2905            fi
2906            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2907            ;;
2908        esac
2909        ;;
2910      *-linux-*)
2911        case "$CC" in
2912          icc* | */icc*)
2913            coin_opt_cflags="-O3 -ip -mp1"
2914            coin_add_cflags=""
2915            coin_dbg_cflags="-g"
2916            # Check if -i_dynamic is necessary (for new glibc library)
2917            CFLAGS=
2918            cat >conftest.$ac_ext <<_ACEOF
2919/* confdefs.h.  */
2920_ACEOF
2921cat confdefs.h >>conftest.$ac_ext
2922cat >>conftest.$ac_ext <<_ACEOF
2923/* end confdefs.h.  */
2924
2925int
2926main ()
2927{
2928int i=0; i++;
2929  ;
2930  return 0;
2931}
2932_ACEOF
2933rm -f conftest.$ac_objext conftest$ac_exeext
2934if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2935  (eval $ac_link) 2>conftest.er1
2936  ac_status=$?
2937  grep -v '^ *+' conftest.er1 >conftest.err
2938  rm -f conftest.er1
2939  cat conftest.err >&5
2940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941  (exit $ac_status); } &&
2942	 { ac_try='test -z "$ac_c_werror_flag"
2943			 || test ! -s conftest.err'
2944  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2945  (eval $ac_try) 2>&5
2946  ac_status=$?
2947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948  (exit $ac_status); }; } &&
2949	 { ac_try='test -s conftest$ac_exeext'
2950  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2951  (eval $ac_try) 2>&5
2952  ac_status=$?
2953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954  (exit $ac_status); }; }; then
2955  :
2956else
2957  echo "$as_me: failed program was:" >&5
2958sed 's/^/| /' conftest.$ac_ext >&5
2959
2960coin_add_cflags="-i_dynamic $coin_add_cflags"
2961fi
2962rm -f conftest.err conftest.$ac_objext \
2963      conftest$ac_exeext conftest.$ac_ext
2964            ;;
2965          pgcc* | */pgcc*)
2966            coin_opt_cflags="-fast"
2967            coin_add_cflags="-Kieee -pc 64"
2968            coin_dbg_cflags="-g"
2969            ;;
2970        esac
2971        ;;
2972      *-ibm-*)
2973        case "$CC" in
2974          xlc* | */xlc* | mpxlc* | */mpxlc*)
2975            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2976            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2977            coin_dbg_cflags="-g"
2978          ;;
2979        esac
2980        ;;
2981      *-hp-*)
2982        coin_opt_cflags="-O"
2983        coin_add_cflags="-Ae"
2984        coin_dbg_cflags="-g"
2985        ;;
2986      *-*-solaris*)
2987        coin_opt_cflags="-xO4"
2988        coin_dbg_cflags="-g"
2989        ;;
2990      *-sgi-*)
2991        coin_opt_cflags="-O -OPT:Olimit=0"
2992        coin_dbg_cflags="-g"
2993        ;;
2994    esac
2995  fi
2996
2997  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2998    coin_dbg_cflags="-g"
2999  fi
3000
3001  if test -z "$coin_opt_cflags"; then
3002    # Try if -O option works if nothing else is set
3003    CFLAGS="-O"
3004    cat >conftest.$ac_ext <<_ACEOF
3005/* confdefs.h.  */
3006_ACEOF
3007cat confdefs.h >>conftest.$ac_ext
3008cat >>conftest.$ac_ext <<_ACEOF
3009/* end confdefs.h.  */
3010
3011int
3012main ()
3013{
3014int i=0; i++;
3015  ;
3016  return 0;
3017}
3018_ACEOF
3019rm -f conftest.$ac_objext conftest$ac_exeext
3020if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3021  (eval $ac_link) 2>conftest.er1
3022  ac_status=$?
3023  grep -v '^ *+' conftest.er1 >conftest.err
3024  rm -f conftest.er1
3025  cat conftest.err >&5
3026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027  (exit $ac_status); } &&
3028	 { ac_try='test -z "$ac_c_werror_flag"
3029			 || test ! -s conftest.err'
3030  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3031  (eval $ac_try) 2>&5
3032  ac_status=$?
3033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034  (exit $ac_status); }; } &&
3035	 { ac_try='test -s conftest$ac_exeext'
3036  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3037  (eval $ac_try) 2>&5
3038  ac_status=$?
3039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040  (exit $ac_status); }; }; then
3041  coin_opt_cflags="-O"
3042else
3043  echo "$as_me: failed program was:" >&5
3044sed 's/^/| /' conftest.$ac_ext >&5
3045
3046fi
3047rm -f conftest.err conftest.$ac_objext \
3048      conftest$ac_exeext conftest.$ac_ext
3049  fi
3050
3051  # if PM doesn't want the warning messages, take them out
3052  if test x"$coin_skip_warn_cflags" = xyes; then
3053    coin_warn_cflags=
3054  fi
3055
3056  if test x${DBG_CFLAGS+set} != xset; then
3057    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3058  fi
3059  if test x${OPT_CFLAGS+set} != xset; then
3060    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3061  fi
3062
3063  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3064  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3065
3066  if test "$coin_debug_compile" = "true"; then
3067    CFLAGS="$DBG_CFLAGS"
3068  else
3069    CFLAGS="$OPT_CFLAGS"
3070  fi
3071else
3072  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3073  if test x${DBG_CFLAGS+set} != xset; then
3074    DBG_CFLAGS="$CFLAGS"
3075  fi
3076  if test x${OPT_CFLAGS+set} != xset; then
3077    OPT_CFLAGS="$CFLAGS"
3078  fi
3079fi
3080
3081# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3082if test x$COIN_PRJCT != x; then
3083  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3084fi
3085
3086# Try if CFLAGS works
3087save_CFLAGS="$CFLAGS"
3088cat >conftest.$ac_ext <<_ACEOF
3089/* confdefs.h.  */
3090_ACEOF
3091cat confdefs.h >>conftest.$ac_ext
3092cat >>conftest.$ac_ext <<_ACEOF
3093/* end confdefs.h.  */
3094
3095int
3096main ()
3097{
3098int i=0; i++;
3099  ;
3100  return 0;
3101}
3102_ACEOF
3103rm -f conftest.$ac_objext conftest$ac_exeext
3104if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3105  (eval $ac_link) 2>conftest.er1
3106  ac_status=$?
3107  grep -v '^ *+' conftest.er1 >conftest.err
3108  rm -f conftest.er1
3109  cat conftest.err >&5
3110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111  (exit $ac_status); } &&
3112	 { ac_try='test -z "$ac_c_werror_flag"
3113			 || test ! -s conftest.err'
3114  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3115  (eval $ac_try) 2>&5
3116  ac_status=$?
3117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118  (exit $ac_status); }; } &&
3119	 { ac_try='test -s conftest$ac_exeext'
3120  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3121  (eval $ac_try) 2>&5
3122  ac_status=$?
3123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124  (exit $ac_status); }; }; then
3125  :
3126else
3127  echo "$as_me: failed program was:" >&5
3128sed 's/^/| /' conftest.$ac_ext >&5
3129
3130CFLAGS=
3131fi
3132rm -f conftest.err conftest.$ac_objext \
3133      conftest$ac_exeext conftest.$ac_ext
3134if test -z "$CFLAGS"; then
3135  { 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
3136echo "$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;}
3137  CFLAGS='-O'
3138  cat >conftest.$ac_ext <<_ACEOF
3139/* confdefs.h.  */
3140_ACEOF
3141cat confdefs.h >>conftest.$ac_ext
3142cat >>conftest.$ac_ext <<_ACEOF
3143/* end confdefs.h.  */
3144
3145int
3146main ()
3147{
3148int i=0; i++;
3149  ;
3150  return 0;
3151}
3152_ACEOF
3153rm -f conftest.$ac_objext conftest$ac_exeext
3154if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3155  (eval $ac_link) 2>conftest.er1
3156  ac_status=$?
3157  grep -v '^ *+' conftest.er1 >conftest.err
3158  rm -f conftest.er1
3159  cat conftest.err >&5
3160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161  (exit $ac_status); } &&
3162	 { ac_try='test -z "$ac_c_werror_flag"
3163			 || test ! -s conftest.err'
3164  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3165  (eval $ac_try) 2>&5
3166  ac_status=$?
3167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168  (exit $ac_status); }; } &&
3169	 { ac_try='test -s conftest$ac_exeext'
3170  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3171  (eval $ac_try) 2>&5
3172  ac_status=$?
3173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174  (exit $ac_status); }; }; then
3175  :
3176else
3177  echo "$as_me: failed program was:" >&5
3178sed 's/^/| /' conftest.$ac_ext >&5
3179
3180CFLAGS=
3181fi
3182rm -f conftest.err conftest.$ac_objext \
3183      conftest$ac_exeext conftest.$ac_ext
3184  if test -z "$CFLAGS"; then
3185    { 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
3186echo "$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;}
3187  fi
3188fi
3189
3190{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3191echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3192
3193
3194if test x"$MPICC" = x; then :; else
3195  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3196echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3197  CC="$MPICC"
3198fi
3199
3200# Correct the LD variable if we are using the MS or Intel-windows compiler
3201case "$CC" in
3202  clang* ) ;;
3203  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3204    LD=link
3205    ;;
3206esac
3207
3208ac_ext=c
3209ac_cpp='$CPP $CPPFLAGS'
3210ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3211ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3212ac_compiler_gnu=$ac_cv_c_compiler_gnu
3213
3214
3215
3216 #Let's try if that overcomes configuration problem with VC++ 6.0
3217
3218ac_ext=cc
3219ac_cpp='$CXXCPP $CPPFLAGS'
3220ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3221ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3222ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3223
3224
3225
3226
3227
3228
3229
3230coin_has_cxx=yes
3231
3232save_cxxflags="$CXXFLAGS"
3233# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3234case $build in
3235  *-cygwin* | *-mingw*)
3236      if test "$enable_msvc" = yes ; then
3237         comps="icl cl g++"
3238      else
3239         comps="g++ icl cl"
3240      fi ;;
3241  *-*-solaris*)
3242  	     comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3243  *-darwin*) comps="clang++ g++ c++ CC" ;;
3244  *-linux-gnu*)
3245             comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;;
3246          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3247esac
3248
3249# We delete the cached value, since the test might not have been
3250# performed with our choice of compilers earlier
3251$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3252# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3253ac_ext=cc
3254ac_cpp='$CXXCPP $CPPFLAGS'
3255ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3256ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3257ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3258if test -n "$ac_tool_prefix"; then
3259  for ac_prog in $CCC $comps
3260  do
3261    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3262set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3263echo "$as_me:$LINENO: checking for $ac_word" >&5
3264echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3265if test "${ac_cv_prog_CXX+set}" = set; then
3266  echo $ECHO_N "(cached) $ECHO_C" >&6
3267else
3268  if test -n "$CXX"; then
3269  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3270else
3271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3272for as_dir in $PATH
3273do
3274  IFS=$as_save_IFS
3275  test -z "$as_dir" && as_dir=.
3276  for ac_exec_ext in '' $ac_executable_extensions; do
3277  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3278    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3279    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3280    break 2
3281  fi
3282done
3283done
3284
3285fi
3286fi
3287CXX=$ac_cv_prog_CXX
3288if test -n "$CXX"; then
3289  echo "$as_me:$LINENO: result: $CXX" >&5
3290echo "${ECHO_T}$CXX" >&6
3291else
3292  echo "$as_me:$LINENO: result: no" >&5
3293echo "${ECHO_T}no" >&6
3294fi
3295
3296    test -n "$CXX" && break
3297  done
3298fi
3299if test -z "$CXX"; then
3300  ac_ct_CXX=$CXX
3301  for ac_prog in $CCC $comps
3302do
3303  # Extract the first word of "$ac_prog", so it can be a program name with args.
3304set dummy $ac_prog; ac_word=$2
3305echo "$as_me:$LINENO: checking for $ac_word" >&5
3306echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3307if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3308  echo $ECHO_N "(cached) $ECHO_C" >&6
3309else
3310  if test -n "$ac_ct_CXX"; then
3311  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3312else
3313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3314for as_dir in $PATH
3315do
3316  IFS=$as_save_IFS
3317  test -z "$as_dir" && as_dir=.
3318  for ac_exec_ext in '' $ac_executable_extensions; do
3319  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3320    ac_cv_prog_ac_ct_CXX="$ac_prog"
3321    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3322    break 2
3323  fi
3324done
3325done
3326
3327fi
3328fi
3329ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3330if test -n "$ac_ct_CXX"; then
3331  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3332echo "${ECHO_T}$ac_ct_CXX" >&6
3333else
3334  echo "$as_me:$LINENO: result: no" >&5
3335echo "${ECHO_T}no" >&6
3336fi
3337
3338  test -n "$ac_ct_CXX" && break
3339done
3340test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3341
3342  CXX=$ac_ct_CXX
3343fi
3344
3345
3346# Provide some information about the compiler.
3347echo "$as_me:$LINENO:" \
3348     "checking for C++ compiler version" >&5
3349ac_compiler=`set X $ac_compile; echo $2`
3350{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3351  (eval $ac_compiler --version </dev/null >&5) 2>&5
3352  ac_status=$?
3353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354  (exit $ac_status); }
3355{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3356  (eval $ac_compiler -v </dev/null >&5) 2>&5
3357  ac_status=$?
3358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359  (exit $ac_status); }
3360{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3361  (eval $ac_compiler -V </dev/null >&5) 2>&5
3362  ac_status=$?
3363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3364  (exit $ac_status); }
3365
3366echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3367echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3368if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3369  echo $ECHO_N "(cached) $ECHO_C" >&6
3370else
3371  cat >conftest.$ac_ext <<_ACEOF
3372/* confdefs.h.  */
3373_ACEOF
3374cat confdefs.h >>conftest.$ac_ext
3375cat >>conftest.$ac_ext <<_ACEOF
3376/* end confdefs.h.  */
3377
3378int
3379main ()
3380{
3381#ifndef __GNUC__
3382       choke me
3383#endif
3384
3385  ;
3386  return 0;
3387}
3388_ACEOF
3389rm -f conftest.$ac_objext
3390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3391  (eval $ac_compile) 2>conftest.er1
3392  ac_status=$?
3393  grep -v '^ *+' conftest.er1 >conftest.err
3394  rm -f conftest.er1
3395  cat conftest.err >&5
3396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397  (exit $ac_status); } &&
3398	 { ac_try='test -z "$ac_cxx_werror_flag"
3399			 || test ! -s conftest.err'
3400  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3401  (eval $ac_try) 2>&5
3402  ac_status=$?
3403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404  (exit $ac_status); }; } &&
3405	 { ac_try='test -s conftest.$ac_objext'
3406  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3407  (eval $ac_try) 2>&5
3408  ac_status=$?
3409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410  (exit $ac_status); }; }; then
3411  ac_compiler_gnu=yes
3412else
3413  echo "$as_me: failed program was:" >&5
3414sed 's/^/| /' conftest.$ac_ext >&5
3415
3416ac_compiler_gnu=no
3417fi
3418rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3419ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3420
3421fi
3422echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3423echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3424GXX=`test $ac_compiler_gnu = yes && echo yes`
3425ac_test_CXXFLAGS=${CXXFLAGS+set}
3426ac_save_CXXFLAGS=$CXXFLAGS
3427CXXFLAGS="-g"
3428echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3429echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3430if test "${ac_cv_prog_cxx_g+set}" = set; then
3431  echo $ECHO_N "(cached) $ECHO_C" >&6
3432else
3433  cat >conftest.$ac_ext <<_ACEOF
3434/* confdefs.h.  */
3435_ACEOF
3436cat confdefs.h >>conftest.$ac_ext
3437cat >>conftest.$ac_ext <<_ACEOF
3438/* end confdefs.h.  */
3439
3440int
3441main ()
3442{
3443
3444  ;
3445  return 0;
3446}
3447_ACEOF
3448rm -f conftest.$ac_objext
3449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3450  (eval $ac_compile) 2>conftest.er1
3451  ac_status=$?
3452  grep -v '^ *+' conftest.er1 >conftest.err
3453  rm -f conftest.er1
3454  cat conftest.err >&5
3455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456  (exit $ac_status); } &&
3457	 { ac_try='test -z "$ac_cxx_werror_flag"
3458			 || test ! -s conftest.err'
3459  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3460  (eval $ac_try) 2>&5
3461  ac_status=$?
3462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463  (exit $ac_status); }; } &&
3464	 { ac_try='test -s conftest.$ac_objext'
3465  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3466  (eval $ac_try) 2>&5
3467  ac_status=$?
3468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469  (exit $ac_status); }; }; then
3470  ac_cv_prog_cxx_g=yes
3471else
3472  echo "$as_me: failed program was:" >&5
3473sed 's/^/| /' conftest.$ac_ext >&5
3474
3475ac_cv_prog_cxx_g=no
3476fi
3477rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3478fi
3479echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3480echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3481if test "$ac_test_CXXFLAGS" = set; then
3482  CXXFLAGS=$ac_save_CXXFLAGS
3483elif test $ac_cv_prog_cxx_g = yes; then
3484  if test "$GXX" = yes; then
3485    CXXFLAGS="-g -O2"
3486  else
3487    CXXFLAGS="-g"
3488  fi
3489else
3490  if test "$GXX" = yes; then
3491    CXXFLAGS="-O2"
3492  else
3493    CXXFLAGS=
3494  fi
3495fi
3496for ac_declaration in \
3497   '' \
3498   'extern "C" void std::exit (int) throw (); using std::exit;' \
3499   'extern "C" void std::exit (int); using std::exit;' \
3500   'extern "C" void exit (int) throw ();' \
3501   'extern "C" void exit (int);' \
3502   'void exit (int);'
3503do
3504  cat >conftest.$ac_ext <<_ACEOF
3505/* confdefs.h.  */
3506_ACEOF
3507cat confdefs.h >>conftest.$ac_ext
3508cat >>conftest.$ac_ext <<_ACEOF
3509/* end confdefs.h.  */
3510$ac_declaration
3511#include <stdlib.h>
3512int
3513main ()
3514{
3515exit (42);
3516  ;
3517  return 0;
3518}
3519_ACEOF
3520rm -f conftest.$ac_objext
3521if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3522  (eval $ac_compile) 2>conftest.er1
3523  ac_status=$?
3524  grep -v '^ *+' conftest.er1 >conftest.err
3525  rm -f conftest.er1
3526  cat conftest.err >&5
3527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528  (exit $ac_status); } &&
3529	 { ac_try='test -z "$ac_cxx_werror_flag"
3530			 || test ! -s conftest.err'
3531  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3532  (eval $ac_try) 2>&5
3533  ac_status=$?
3534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535  (exit $ac_status); }; } &&
3536	 { ac_try='test -s conftest.$ac_objext'
3537  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3538  (eval $ac_try) 2>&5
3539  ac_status=$?
3540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541  (exit $ac_status); }; }; then
3542  :
3543else
3544  echo "$as_me: failed program was:" >&5
3545sed 's/^/| /' conftest.$ac_ext >&5
3546
3547continue
3548fi
3549rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3550  cat >conftest.$ac_ext <<_ACEOF
3551/* confdefs.h.  */
3552_ACEOF
3553cat confdefs.h >>conftest.$ac_ext
3554cat >>conftest.$ac_ext <<_ACEOF
3555/* end confdefs.h.  */
3556$ac_declaration
3557int
3558main ()
3559{
3560exit (42);
3561  ;
3562  return 0;
3563}
3564_ACEOF
3565rm -f conftest.$ac_objext
3566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3567  (eval $ac_compile) 2>conftest.er1
3568  ac_status=$?
3569  grep -v '^ *+' conftest.er1 >conftest.err
3570  rm -f conftest.er1
3571  cat conftest.err >&5
3572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573  (exit $ac_status); } &&
3574	 { ac_try='test -z "$ac_cxx_werror_flag"
3575			 || test ! -s conftest.err'
3576  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3577  (eval $ac_try) 2>&5
3578  ac_status=$?
3579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580  (exit $ac_status); }; } &&
3581	 { ac_try='test -s conftest.$ac_objext'
3582  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3583  (eval $ac_try) 2>&5
3584  ac_status=$?
3585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586  (exit $ac_status); }; }; then
3587  break
3588else
3589  echo "$as_me: failed program was:" >&5
3590sed 's/^/| /' conftest.$ac_ext >&5
3591
3592fi
3593rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3594done
3595rm -f conftest*
3596if test -n "$ac_declaration"; then
3597  echo '#ifdef __cplusplus' >>confdefs.h
3598  echo $ac_declaration      >>confdefs.h
3599  echo '#endif'             >>confdefs.h
3600fi
3601
3602ac_ext=cc
3603ac_cpp='$CXXCPP $CPPFLAGS'
3604ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3605ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3606ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3607
3608
3609#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3610#thus, we test here whether $CXX is actually working
3611ac_ext=cc
3612ac_cpp='$CXXCPP $CPPFLAGS'
3613ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3614ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3615ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3616
3617echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3618echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3619cat >conftest.$ac_ext <<_ACEOF
3620/* confdefs.h.  */
3621_ACEOF
3622cat confdefs.h >>conftest.$ac_ext
3623cat >>conftest.$ac_ext <<_ACEOF
3624/* end confdefs.h.  */
3625
3626int
3627main ()
3628{
3629int i=0;
3630  ;
3631  return 0;
3632}
3633_ACEOF
3634rm -f conftest.$ac_objext
3635if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3636  (eval $ac_compile) 2>conftest.er1
3637  ac_status=$?
3638  grep -v '^ *+' conftest.er1 >conftest.err
3639  rm -f conftest.er1
3640  cat conftest.err >&5
3641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642  (exit $ac_status); } &&
3643	 { ac_try='test -z "$ac_cxx_werror_flag"
3644			 || test ! -s conftest.err'
3645  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3646  (eval $ac_try) 2>&5
3647  ac_status=$?
3648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649  (exit $ac_status); }; } &&
3650	 { ac_try='test -s conftest.$ac_objext'
3651  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3652  (eval $ac_try) 2>&5
3653  ac_status=$?
3654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655  (exit $ac_status); }; }; then
3656  echo "$as_me:$LINENO: result: yes" >&5
3657echo "${ECHO_T}yes" >&6
3658else
3659  echo "$as_me: failed program was:" >&5
3660sed 's/^/| /' conftest.$ac_ext >&5
3661
3662echo "$as_me:$LINENO: result: no" >&5
3663echo "${ECHO_T}no" >&6
3664   { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3665echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3666   { (exit 1); exit 1; }; }
3667
3668fi
3669rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3670ac_ext=cc
3671ac_cpp='$CXXCPP $CPPFLAGS'
3672ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3673ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3674ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3675
3676
3677coin_cxx_is_cl=false
3678# It seems that we need to cleanup something here for the Windows
3679case "$CXX" in
3680  clang* | */clang*) ;;
3681  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3682    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3683    mv confdefs.hh confdefs.h
3684    coin_cxx_is_cl=true
3685    ;;
3686esac
3687
3688# add automake conditional so we can recognize cl compiler in makefile
3689
3690
3691if test $coin_cxx_is_cl = true; then
3692  COIN_CXX_IS_CL_TRUE=
3693  COIN_CXX_IS_CL_FALSE='#'
3694else
3695  COIN_CXX_IS_CL_TRUE='#'
3696  COIN_CXX_IS_CL_FALSE=
3697fi
3698
3699
3700# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3701case "$CXX" in
3702  clang* ) ;;
3703  cl* | */cl* | CL* | */CL* )
3704    if test "$ac_cv_prog_cxx_g" = yes ; then
3705      ac_cv_prog_cxx_g=no
3706      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3707echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3708    fi ;;
3709  * )
3710    if test x"$CYGPATH_W" = x ; then
3711      CYGPATH_W=echo
3712    fi
3713    ;;
3714esac
3715CXXFLAGS="$save_cxxflags"
3716
3717# Check if a project specific CXXFLAGS variable has been set
3718if test x$COIN_PRJCT != x; then
3719  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3720  if test x$coin_tmp = xset; then
3721    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3722  fi
3723fi
3724
3725if test x"$CXXFLAGS" = x; then
3726
3727# ToDo decide whether we want -DNDEBUG for optimization
3728  coin_add_cxxflags=
3729  coin_opt_cxxflags=
3730  coin_dbg_cxxflags=
3731  coin_warn_cxxflags=
3732
3733  if test "$GXX" = "yes"; then
3734    case "$CXX" in
3735      icpc* | */icpc*)
3736        ;;
3737      *)
3738# ToDo decide about unroll-loops
3739        coin_opt_cxxflags="-O3"
3740        coin_add_cxxflags="-pipe"
3741        coin_dbg_cxxflags="-g -O0"
3742        coin_warn_cxxflags="-Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long"
3743    esac
3744  fi
3745
3746# Note that we do not need to cover GCC in the following tests.
3747
3748  if test -z "$coin_opt_cxxflags"; then
3749    case $build in
3750      *-cygwin* | *-mingw*)
3751        case "$CXX" in
3752          clang* ) ;;
3753          cl* | */cl* | CL* | */CL*)
3754            # The MT and MTd options are mutually exclusive
3755            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3756               coin_opt_cxxflags='-MD -O2'
3757               coin_dbg_cxxflags='-MDd'
3758            else
3759               coin_opt_cxxflags='-MT -O2'
3760               coin_dbg_cxxflags='-MTd'
3761            fi
3762            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3763            ;;
3764          icl* | */icl* | ICL* | */ICL*)
3765          # The MT and MTd options are mutually exclusive
3766            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3767              coin_opt_cxxflags='-MD -Ox'
3768              coin_dbg_cxxflags='-MDd -debug'
3769            else
3770              coin_opt_cxxflags='-MT -Ox'
3771              coin_dbg_cxxflags='-MTd -debug'
3772            fi
3773            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3774            ;;
3775        esac
3776        ;;
3777      *-linux-*)
3778        case "$CXX" in
3779          icpc* | */icpc*)
3780            coin_opt_cxxflags="-O3 -ip -mp1"
3781            coin_add_cxxflags=""
3782            coin_dbg_cxxflags="-g"
3783            # Check if -i_dynamic is necessary (for new glibc library)
3784            CXXFLAGS=
3785            cat >conftest.$ac_ext <<_ACEOF
3786/* confdefs.h.  */
3787_ACEOF
3788cat confdefs.h >>conftest.$ac_ext
3789cat >>conftest.$ac_ext <<_ACEOF
3790/* end confdefs.h.  */
3791
3792int
3793main ()
3794{
3795int i=0; i++;
3796  ;
3797  return 0;
3798}
3799_ACEOF
3800rm -f conftest.$ac_objext conftest$ac_exeext
3801if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3802  (eval $ac_link) 2>conftest.er1
3803  ac_status=$?
3804  grep -v '^ *+' conftest.er1 >conftest.err
3805  rm -f conftest.er1
3806  cat conftest.err >&5
3807  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808  (exit $ac_status); } &&
3809	 { ac_try='test -z "$ac_cxx_werror_flag"
3810			 || test ! -s conftest.err'
3811  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3812  (eval $ac_try) 2>&5
3813  ac_status=$?
3814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815  (exit $ac_status); }; } &&
3816	 { ac_try='test -s conftest$ac_exeext'
3817  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3818  (eval $ac_try) 2>&5
3819  ac_status=$?
3820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821  (exit $ac_status); }; }; then
3822  :
3823else
3824  echo "$as_me: failed program was:" >&5
3825sed 's/^/| /' conftest.$ac_ext >&5
3826
3827coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3828fi
3829rm -f conftest.err conftest.$ac_objext \
3830      conftest$ac_exeext conftest.$ac_ext
3831            ;;
3832          pgCC* | */pgCC*)
3833            coin_opt_cxxflags="-fast"
3834            coin_add_cxxflags="-Kieee -pc 64"
3835            coin_dbg_cxxflags="-g"
3836            ;;
3837        esac
3838        ;;
3839      *-ibm-*)
3840        case "$CXX" in
3841          xlC* | */xlC* | mpxlC* | */mpxlC*)
3842            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3843            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3844            coin_dbg_cxxflags="-g"
3845            ;;
3846        esac
3847        ;;
3848      *-hp-*)
3849        case "$CXX" in
3850          aCC* | */aCC* )
3851            coin_opt_cxxflags="-O"
3852            coin_add_cxxflags="-AA"
3853            coin_dbg_cxxflags="-g"
3854            ;;
3855        esac
3856        ;;
3857      *-*-solaris*)
3858          coin_opt_cxxflags="-O4"
3859          coin_dbg_cxxflags="-g"
3860        ;;
3861    esac
3862  fi
3863
3864# Generic flag settings. If these don't work, add a case above.
3865
3866  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3867    coin_dbg_cxxflags="-g"
3868  fi
3869
3870  if test -z "$coin_opt_cxxflags"; then
3871    # Try if -O option works if nothing else is set
3872    CXXFLAGS=-O
3873    cat >conftest.$ac_ext <<_ACEOF
3874/* confdefs.h.  */
3875_ACEOF
3876cat confdefs.h >>conftest.$ac_ext
3877cat >>conftest.$ac_ext <<_ACEOF
3878/* end confdefs.h.  */
3879
3880int
3881main ()
3882{
3883int i=0; i++;
3884  ;
3885  return 0;
3886}
3887_ACEOF
3888rm -f conftest.$ac_objext conftest$ac_exeext
3889if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3890  (eval $ac_link) 2>conftest.er1
3891  ac_status=$?
3892  grep -v '^ *+' conftest.er1 >conftest.err
3893  rm -f conftest.er1
3894  cat conftest.err >&5
3895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896  (exit $ac_status); } &&
3897	 { ac_try='test -z "$ac_cxx_werror_flag"
3898			 || test ! -s conftest.err'
3899  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3900  (eval $ac_try) 2>&5
3901  ac_status=$?
3902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3903  (exit $ac_status); }; } &&
3904	 { ac_try='test -s conftest$ac_exeext'
3905  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3906  (eval $ac_try) 2>&5
3907  ac_status=$?
3908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3909  (exit $ac_status); }; }; then
3910  coin_opt_cxxflags="-O"
3911else
3912  echo "$as_me: failed program was:" >&5
3913sed 's/^/| /' conftest.$ac_ext >&5
3914
3915fi
3916rm -f conftest.err conftest.$ac_objext \
3917      conftest$ac_exeext conftest.$ac_ext
3918  fi
3919
3920  # if PM doesn't want the warning messages, take them out
3921  if test x"$coin_skip_warn_cxxflags" = xyes; then
3922    coin_warn_cxxflags=
3923  fi
3924
3925# Do final setup of flags based on values determined above.
3926
3927  if test x${DBG_CXXFLAGS+set} != xset; then
3928    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3929  fi
3930  if test x${OPT_CXXFLAGS+set} != xset; then
3931    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
3932  fi
3933
3934  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3935  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3936
3937  if test "$coin_debug_compile" = "true"; then
3938    CXXFLAGS="$DBG_CXXFLAGS"
3939  else
3940    CXXFLAGS="$OPT_CXXFLAGS"
3941  fi
3942
3943# Handle the case where CXXFLAGS was set externally.
3944else
3945  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3946  if test x${DBG_CXXFLAGS+set} != xset; then
3947    DBG_CXXFLAGS="$CXXFLAGS"
3948  fi
3949  if test x${OPT_CXXFLAGS+set} != xset; then
3950    OPT_CXXFLAGS="$CXXFLAGS"
3951  fi
3952fi
3953
3954# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3955if test x$COIN_PRJCT != x; then
3956  CXXFLAGS="$CXXFLAGS -D${COIN_PRJCT}_BUILD"
3957fi
3958
3959# Try if CXXFLAGS works
3960save_CXXFLAGS="$CXXFLAGS"
3961cat >conftest.$ac_ext <<_ACEOF
3962/* confdefs.h.  */
3963_ACEOF
3964cat confdefs.h >>conftest.$ac_ext
3965cat >>conftest.$ac_ext <<_ACEOF
3966/* end confdefs.h.  */
3967
3968int
3969main ()
3970{
3971int i=0; i++;
3972  ;
3973  return 0;
3974}
3975_ACEOF
3976rm -f conftest.$ac_objext conftest$ac_exeext
3977if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3978  (eval $ac_link) 2>conftest.er1
3979  ac_status=$?
3980  grep -v '^ *+' conftest.er1 >conftest.err
3981  rm -f conftest.er1
3982  cat conftest.err >&5
3983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984  (exit $ac_status); } &&
3985	 { ac_try='test -z "$ac_cxx_werror_flag"
3986			 || test ! -s conftest.err'
3987  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3988  (eval $ac_try) 2>&5
3989  ac_status=$?
3990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991  (exit $ac_status); }; } &&
3992	 { ac_try='test -s conftest$ac_exeext'
3993  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3994  (eval $ac_try) 2>&5
3995  ac_status=$?
3996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997  (exit $ac_status); }; }; then
3998  :
3999else
4000  echo "$as_me: failed program was:" >&5
4001sed 's/^/| /' conftest.$ac_ext >&5
4002
4003CXXFLAGS=
4004fi
4005rm -f conftest.err conftest.$ac_objext \
4006      conftest$ac_exeext conftest.$ac_ext
4007if test -z "$CXXFLAGS"; then
4008  { 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
4009echo "$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;}
4010  CXXFLAGS='-O'
4011  cat >conftest.$ac_ext <<_ACEOF
4012/* confdefs.h.  */
4013_ACEOF
4014cat confdefs.h >>conftest.$ac_ext
4015cat >>conftest.$ac_ext <<_ACEOF
4016/* end confdefs.h.  */
4017
4018int
4019main ()
4020{
4021int i=0; i++;
4022  ;
4023  return 0;
4024}
4025_ACEOF
4026rm -f conftest.$ac_objext conftest$ac_exeext
4027if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4028  (eval $ac_link) 2>conftest.er1
4029  ac_status=$?
4030  grep -v '^ *+' conftest.er1 >conftest.err
4031  rm -f conftest.er1
4032  cat conftest.err >&5
4033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034  (exit $ac_status); } &&
4035	 { ac_try='test -z "$ac_cxx_werror_flag"
4036			 || test ! -s conftest.err'
4037  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4038  (eval $ac_try) 2>&5
4039  ac_status=$?
4040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041  (exit $ac_status); }; } &&
4042	 { ac_try='test -s conftest$ac_exeext'
4043  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4044  (eval $ac_try) 2>&5
4045  ac_status=$?
4046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047  (exit $ac_status); }; }; then
4048  :
4049else
4050  echo "$as_me: failed program was:" >&5
4051sed 's/^/| /' conftest.$ac_ext >&5
4052
4053CXXFLAGS=
4054fi
4055rm -f conftest.err conftest.$ac_objext \
4056      conftest$ac_exeext conftest.$ac_ext
4057  if test -z "$CXXFLAGS"; then
4058    { 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
4059echo "$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;}
4060  fi
4061fi
4062
4063{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
4064echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
4065
4066
4067if test x"$MPICXX" = x; then :; else
4068  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
4069echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
4070  CXX="$MPICXX"
4071fi
4072
4073# correct the LD variable in a build with MS or Intel-windows compiler
4074case "$CXX" in
4075  clang* ) ;;
4076  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4077    LD=link
4078    ;;
4079esac
4080
4081ac_ext=c
4082ac_cpp='$CPP $CPPFLAGS'
4083ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4084ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4085ac_compiler_gnu=$ac_cv_c_compiler_gnu
4086
4087
4088
4089# Get the name of the Fortran compiler and appropriate compiler options
4090case $build in
4091  *-cygwin* | *-mingw*)
4092     if test "$enable_msvc" = yes ; then
4093       coin_f77_comps="ifort fl32 compile_f2c"
4094     else
4095       coin_f77_comps="gfortran ifort g95 g77 fl32 compile_f2c"
4096     fi ;;
4097  *-*-solaris*)
4098     coin_f77_comps="f95 f90 g95 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
4099  *-linux-gnu*)
4100     coin_f77_comps="gfortran ifort g95 fort77 f77 g77 pgf90 pgf77 ifc frt af77 xlf_r" ;;
4101  *) coin_f77_comps="xlf_r fort77 gfortran ifort g95 f77 g77 pgf90 pgf77 ifc frt af77" ;;
4102 esac
4103
4104
4105
4106
4107
4108ac_ext=f
4109ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4110ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4111ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4112
4113
4114
4115
4116
4117
4118coin_has_f77=yes
4119
4120save_fflags="$FFLAGS"
4121
4122# We delete the cached value, since the test might not have been
4123# performed with our choice of compilers earlier
4124$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
4125
4126# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
4127# coin_f77_comps to see if there's a program that matches one of the names.
4128# If there's no such program, F77 = unavailable. If we match the name,
4129# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
4130# compiler.
4131# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
4132
4133
4134{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
4135echo "$as_me: Trying to determine Fortran compiler name" >&6;}
4136if test -n "$ac_tool_prefix"; then
4137  for ac_prog in $coin_f77_comps
4138  do
4139    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4140set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4141echo "$as_me:$LINENO: checking for $ac_word" >&5
4142echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4143if test "${ac_cv_prog_F77+set}" = set; then
4144  echo $ECHO_N "(cached) $ECHO_C" >&6
4145else
4146  if test -n "$F77"; then
4147  ac_cv_prog_F77="$F77" # Let the user override the test.
4148else
4149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4150for as_dir in $PATH
4151do
4152  IFS=$as_save_IFS
4153  test -z "$as_dir" && as_dir=.
4154  for ac_exec_ext in '' $ac_executable_extensions; do
4155  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4156    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4157    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4158    break 2
4159  fi
4160done
4161done
4162
4163fi
4164fi
4165F77=$ac_cv_prog_F77
4166if test -n "$F77"; then
4167  echo "$as_me:$LINENO: result: $F77" >&5
4168echo "${ECHO_T}$F77" >&6
4169else
4170  echo "$as_me:$LINENO: result: no" >&5
4171echo "${ECHO_T}no" >&6
4172fi
4173
4174    test -n "$F77" && break
4175  done
4176fi
4177if test -z "$F77"; then
4178  ac_ct_F77=$F77
4179  for ac_prog in $coin_f77_comps
4180do
4181  # Extract the first word of "$ac_prog", so it can be a program name with args.
4182set dummy $ac_prog; ac_word=$2
4183echo "$as_me:$LINENO: checking for $ac_word" >&5
4184echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4185if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4186  echo $ECHO_N "(cached) $ECHO_C" >&6
4187else
4188  if test -n "$ac_ct_F77"; then
4189  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4190else
4191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4192for as_dir in $PATH
4193do
4194  IFS=$as_save_IFS
4195  test -z "$as_dir" && as_dir=.
4196  for ac_exec_ext in '' $ac_executable_extensions; do
4197  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4198    ac_cv_prog_ac_ct_F77="$ac_prog"
4199    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4200    break 2
4201  fi
4202done
4203done
4204
4205fi
4206fi
4207ac_ct_F77=$ac_cv_prog_ac_ct_F77
4208if test -n "$ac_ct_F77"; then
4209  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4210echo "${ECHO_T}$ac_ct_F77" >&6
4211else
4212  echo "$as_me:$LINENO: result: no" >&5
4213echo "${ECHO_T}no" >&6
4214fi
4215
4216  test -n "$ac_ct_F77" && break
4217done
4218test -n "$ac_ct_F77" || ac_ct_F77="unavailable"
4219
4220  F77=$ac_ct_F77
4221fi
4222
4223
4224if test "$F77" != "unavailable" ; then
4225  ac_ext=f
4226ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4227ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4228ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4229if test -n "$ac_tool_prefix"; then
4230  for ac_prog in $coin_f77_comps
4231  do
4232    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4233set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4234echo "$as_me:$LINENO: checking for $ac_word" >&5
4235echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4236if test "${ac_cv_prog_F77+set}" = set; then
4237  echo $ECHO_N "(cached) $ECHO_C" >&6
4238else
4239  if test -n "$F77"; then
4240  ac_cv_prog_F77="$F77" # Let the user override the test.
4241else
4242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4243for as_dir in $PATH
4244do
4245  IFS=$as_save_IFS
4246  test -z "$as_dir" && as_dir=.
4247  for ac_exec_ext in '' $ac_executable_extensions; do
4248  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4249    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4250    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4251    break 2
4252  fi
4253done
4254done
4255
4256fi
4257fi
4258F77=$ac_cv_prog_F77
4259if test -n "$F77"; then
4260  echo "$as_me:$LINENO: result: $F77" >&5
4261echo "${ECHO_T}$F77" >&6
4262else
4263  echo "$as_me:$LINENO: result: no" >&5
4264echo "${ECHO_T}no" >&6
4265fi
4266
4267    test -n "$F77" && break
4268  done
4269fi
4270if test -z "$F77"; then
4271  ac_ct_F77=$F77
4272  for ac_prog in $coin_f77_comps
4273do
4274  # Extract the first word of "$ac_prog", so it can be a program name with args.
4275set dummy $ac_prog; ac_word=$2
4276echo "$as_me:$LINENO: checking for $ac_word" >&5
4277echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4278if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4279  echo $ECHO_N "(cached) $ECHO_C" >&6
4280else
4281  if test -n "$ac_ct_F77"; then
4282  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4283else
4284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4285for as_dir in $PATH
4286do
4287  IFS=$as_save_IFS
4288  test -z "$as_dir" && as_dir=.
4289  for ac_exec_ext in '' $ac_executable_extensions; do
4290  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4291    ac_cv_prog_ac_ct_F77="$ac_prog"
4292    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4293    break 2
4294  fi
4295done
4296done
4297
4298fi
4299fi
4300ac_ct_F77=$ac_cv_prog_ac_ct_F77
4301if test -n "$ac_ct_F77"; then
4302  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4303echo "${ECHO_T}$ac_ct_F77" >&6
4304else
4305  echo "$as_me:$LINENO: result: no" >&5
4306echo "${ECHO_T}no" >&6
4307fi
4308
4309  test -n "$ac_ct_F77" && break
4310done
4311
4312  F77=$ac_ct_F77
4313fi
4314
4315
4316# Provide some information about the compiler.
4317echo "$as_me:4317:" \
4318     "checking for Fortran 77 compiler version" >&5
4319ac_compiler=`set X $ac_compile; echo $2`
4320{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4321  (eval $ac_compiler --version </dev/null >&5) 2>&5
4322  ac_status=$?
4323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324  (exit $ac_status); }
4325{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4326  (eval $ac_compiler -v </dev/null >&5) 2>&5
4327  ac_status=$?
4328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4329  (exit $ac_status); }
4330{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4331  (eval $ac_compiler -V </dev/null >&5) 2>&5
4332  ac_status=$?
4333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334  (exit $ac_status); }
4335rm -f a.out
4336
4337# If we don't use `.F' as extension, the preprocessor is not run on the
4338# input file.  (Note that this only needs to work for GNU compilers.)
4339ac_save_ext=$ac_ext
4340ac_ext=F
4341echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4342echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4343if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4344  echo $ECHO_N "(cached) $ECHO_C" >&6
4345else
4346  cat >conftest.$ac_ext <<_ACEOF
4347      program main
4348#ifndef __GNUC__
4349       choke me
4350#endif
4351
4352      end
4353_ACEOF
4354rm -f conftest.$ac_objext
4355if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4356  (eval $ac_compile) 2>conftest.er1
4357  ac_status=$?
4358  grep -v '^ *+' conftest.er1 >conftest.err
4359  rm -f conftest.er1
4360  cat conftest.err >&5
4361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4362  (exit $ac_status); } &&
4363	 { ac_try='test -z "$ac_f77_werror_flag"
4364			 || test ! -s conftest.err'
4365  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4366  (eval $ac_try) 2>&5
4367  ac_status=$?
4368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369  (exit $ac_status); }; } &&
4370	 { ac_try='test -s conftest.$ac_objext'
4371  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4372  (eval $ac_try) 2>&5
4373  ac_status=$?
4374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375  (exit $ac_status); }; }; then
4376  ac_compiler_gnu=yes
4377else
4378  echo "$as_me: failed program was:" >&5
4379sed 's/^/| /' conftest.$ac_ext >&5
4380
4381ac_compiler_gnu=no
4382fi
4383rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4384ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4385
4386fi
4387echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4388echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4389ac_ext=$ac_save_ext
4390ac_test_FFLAGS=${FFLAGS+set}
4391ac_save_FFLAGS=$FFLAGS
4392FFLAGS=
4393echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4394echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4395if test "${ac_cv_prog_f77_g+set}" = set; then
4396  echo $ECHO_N "(cached) $ECHO_C" >&6
4397else
4398  FFLAGS=-g
4399cat >conftest.$ac_ext <<_ACEOF
4400      program main
4401
4402      end
4403_ACEOF
4404rm -f conftest.$ac_objext
4405if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4406  (eval $ac_compile) 2>conftest.er1
4407  ac_status=$?
4408  grep -v '^ *+' conftest.er1 >conftest.err
4409  rm -f conftest.er1
4410  cat conftest.err >&5
4411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412  (exit $ac_status); } &&
4413	 { ac_try='test -z "$ac_f77_werror_flag"
4414			 || test ! -s conftest.err'
4415  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4416  (eval $ac_try) 2>&5
4417  ac_status=$?
4418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4419  (exit $ac_status); }; } &&
4420	 { ac_try='test -s conftest.$ac_objext'
4421  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4422  (eval $ac_try) 2>&5
4423  ac_status=$?
4424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425  (exit $ac_status); }; }; then
4426  ac_cv_prog_f77_g=yes
4427else
4428  echo "$as_me: failed program was:" >&5
4429sed 's/^/| /' conftest.$ac_ext >&5
4430
4431ac_cv_prog_f77_g=no
4432fi
4433rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4434
4435fi
4436echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4437echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4438if test "$ac_test_FFLAGS" = set; then
4439  FFLAGS=$ac_save_FFLAGS
4440elif test $ac_cv_prog_f77_g = yes; then
4441  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4442    FFLAGS="-g -O2"
4443  else
4444    FFLAGS="-g"
4445  fi
4446else
4447  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4448    FFLAGS="-O2"
4449  else
4450    FFLAGS=
4451  fi
4452fi
4453
4454G77=`test $ac_compiler_gnu = yes && echo yes`
4455ac_ext=f
4456ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4457ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4458ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4459
4460else
4461  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
4462echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
4463fi
4464
4465FFLAGS="$save_fflags"
4466
4467# Check if a project specific FFLAGS variable has been set
4468if test x$COIN_PRJCT != x; then
4469  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
4470  if test x$coin_tmp = xset; then
4471    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
4472  fi
4473fi
4474
4475if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
4476
4477  coin_add_fflags=
4478  coin_opt_fflags=
4479  coin_dbg_fflags=
4480  coin_warn_fflags=
4481
4482  if test "$G77" = "yes"; then
4483    coin_opt_fflags="-O3"
4484    coin_add_fflags="-pipe"
4485    coin_dbg_fflags="-g -O0"
4486  else
4487    case $build in
4488      *-cygwin* | *-mingw*)
4489        case $F77 in
4490          ifort* | */ifort* | IFORT* | */IFORT* )
4491            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
4492              coin_opt_fflags='-MD -O3'
4493              coin_dbg_fflags='-MDd -debug'
4494            else
4495              coin_opt_fflags='-MT -O3'
4496              coin_dbg_fflags='-MTd -debug'
4497            fi
4498            coin_add_fflags='-fpp -nologo'
4499          ;;
4500          compile_f2c*)
4501            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
4502              coin_opt_fflags='-MD -O2'
4503              coin_dbg_fflags='-MDd'
4504            else
4505              coin_opt_fflags='-MT -O2'
4506              coin_dbg_fflags='-MTd'
4507            fi
4508            coin_add_fflags='-nologo -wd4996'
4509          ;;
4510        esac
4511        ;;
4512      *-linux-*)
4513        case $F77 in
4514          ifc* | */ifc* | ifort* | */ifort*)
4515            coin_opt_fflags="-O3 -ip"
4516            coin_add_fflags="-cm -w90 -w95"
4517            coin_dbg_fflags="-g -CA -CB -CS"
4518            # Check if -i_dynamic is necessary (for new glibc library)
4519            FFLAGS=
4520            cat >conftest.$ac_ext <<_ACEOF
4521      program main
4522      write(*,*) 'Hello world'
4523      end
4524_ACEOF
4525rm -f conftest.$ac_objext conftest$ac_exeext
4526if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4527  (eval $ac_link) 2>conftest.er1
4528  ac_status=$?
4529  grep -v '^ *+' conftest.er1 >conftest.err
4530  rm -f conftest.er1
4531  cat conftest.err >&5
4532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533  (exit $ac_status); } &&
4534	 { ac_try='test -z "$ac_f77_werror_flag"
4535			 || test ! -s conftest.err'
4536  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4537  (eval $ac_try) 2>&5
4538  ac_status=$?
4539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540  (exit $ac_status); }; } &&
4541	 { ac_try='test -s conftest$ac_exeext'
4542  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4543  (eval $ac_try) 2>&5
4544  ac_status=$?
4545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546  (exit $ac_status); }; }; then
4547  :
4548else
4549  echo "$as_me: failed program was:" >&5
4550sed 's/^/| /' conftest.$ac_ext >&5
4551
4552coin_add_fflags="-i_dynamic $coin_add_fflags"
4553fi
4554rm -f conftest.err conftest.$ac_objext \
4555      conftest$ac_exeext conftest.$ac_ext
4556            ;;
4557          pgf77* | */pgf77* | pgf90* | */pgf90*)
4558            coin_opt_fflags="-fast"
4559            coin_add_fflags="-Kieee -pc 64"
4560            coin_dbg_fflags="-g"
4561          ;;
4562        esac
4563        ;;
4564      *-ibm-*)
4565        case "$F77" in
4566          xlf* | */xlf* | mpxlf* | */mpxlf* )
4567            coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
4568            coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
4569            coin_dbg_fflags="-g -C"
4570            ;;
4571        esac
4572        ;;
4573      *-hp-*)
4574        coin_opt_fflags="+O3"
4575        coin_add_fflags="+U77"
4576        coin_dbg_fflags="-C -g"
4577        ;;
4578      *-*-solaris*)
4579        coin_opt_fflags="-O4"
4580        coin_dbg_fflags="-g"
4581        ;;
4582      *-sgi-*)
4583        coin_opt_fflags="-O5 -OPT:Olimit=0"
4584        coin_dbg_fflags="-g"
4585        ;;
4586    esac
4587  fi
4588
4589  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
4590    coin_dbg_fflags="-g"
4591  fi
4592
4593  if test -z "$coin_opt_fflags"; then
4594    # Try if -O option works if nothing else is set
4595    FFLAGS=-O
4596    cat >conftest.$ac_ext <<_ACEOF
4597      program main
4598      integer i
4599      end
4600_ACEOF
4601rm -f conftest.$ac_objext conftest$ac_exeext
4602if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4603  (eval $ac_link) 2>conftest.er1
4604  ac_status=$?
4605  grep -v '^ *+' conftest.er1 >conftest.err
4606  rm -f conftest.er1
4607  cat conftest.err >&5
4608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609  (exit $ac_status); } &&
4610	 { ac_try='test -z "$ac_f77_werror_flag"
4611			 || test ! -s conftest.err'
4612  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4613  (eval $ac_try) 2>&5
4614  ac_status=$?
4615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616  (exit $ac_status); }; } &&
4617	 { ac_try='test -s conftest$ac_exeext'
4618  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4619  (eval $ac_try) 2>&5
4620  ac_status=$?
4621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622  (exit $ac_status); }; }; then
4623  coin_opt_fflags="-O"
4624else
4625  echo "$as_me: failed program was:" >&5
4626sed 's/^/| /' conftest.$ac_ext >&5
4627
4628fi
4629rm -f conftest.err conftest.$ac_objext \
4630      conftest$ac_exeext conftest.$ac_ext
4631  fi
4632
4633  # if PM doesn't want the warning messages, take them out
4634  if test x"$coin_skip_warn_fflags" = xyes; then
4635    coin_warn_fflags=
4636  fi
4637
4638  if test x${DBG_FFLAGS+set} != xset; then
4639    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
4640  fi
4641  if test x${OPT_FFLAGS+set} != xset; then
4642    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
4643  fi
4644
4645  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
4646  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
4647
4648  if test "$coin_debug_compile" = "true"; then
4649    FFLAGS="$DBG_FFLAGS"
4650  else
4651    FFLAGS="$OPT_FFLAGS"
4652  fi
4653else
4654  FFLAGS="$FFLAGS $ADD_FFLAGS"
4655  if test x${DBG_FFLAGS+set} != xset; then
4656    DBG_FFLAGS="$FFLAGS"
4657  fi
4658  if test x${OPT_FFLAGS+set} != xset; then
4659    OPT_FFLAGS="$FFLAGS"
4660  fi
4661fi
4662
4663# Try if FFLAGS works
4664if test "$F77" != "unavailable" ; then
4665  orig_FFLAGS="FFLAGS"
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=\"$orig_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=\"$orig_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: The flags FFLAGS=-O do not work. I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&5
4744echo "$as_me: WARNING: The flags FFLAGS=-O do 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.4'
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  elif test -r $srcdir/../BuildTools/coin.m4; then
6828    BUILDTOOLSDIR=$srcdir/../BuildTools
6829  elif test -r $srcdir/../../BuildTools/coin.m4; then
6830    BUILDTOOLSDIR=$srcdir/../../BuildTools
6831  elif 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
6839
6840  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
6841  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
6842    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
6843  fi
6844
6845  # The following variable is set to the name of the directory where
6846  # the autotool scripts are located
6847
6848  AUX_DIR=$ac_aux_dir
6849fi
6850
6851# helpful variable for the base directory of this package
6852abs_source_dir=`cd $srcdir; pwd`
6853
6854
6855# Stuff for example Makefiles
6856if test x$prefix = xNONE; then
6857  full_prefix=$ac_default_prefix
6858else
6859  full_prefix=$prefix
6860fi
6861
6862
6863abs_lib_dir=$full_prefix/lib
6864
6865abs_include_dir=$full_prefix/include
6866
6867abs_bin_dir=$full_prefix/bin
6868
6869
6870
6871if test $coin_have_externals = yes && test x$have_svn = xyes; then
6872  HAVE_EXTERNALS_TRUE=
6873  HAVE_EXTERNALS_FALSE='#'
6874else
6875  HAVE_EXTERNALS_TRUE='#'
6876  HAVE_EXTERNALS_FALSE=
6877fi
6878
6879
6880# AC_MSG_NOTICE([End automake initialisation.])
6881
6882
6883
6884LIBTOOL=
6885if test -f ../libtool; then
6886  coin_config_dir=..
6887  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
6888fi
6889if test "x$LIBTOOL" = x; then
6890  if test -f ../../libtool; then
6891    coin_config_dir=../..
6892    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
6893  fi
6894fi
6895
6896if test "x$LIBTOOL" = x; then
6897# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
6898  # Stuff for libtool
6899  # Check whether --enable-shared or --disable-shared was given.
6900if test "${enable_shared+set}" = set; then
6901  enableval="$enable_shared"
6902  p=${PACKAGE-default}
6903    case $enableval in
6904    yes) enable_shared=yes ;;
6905    no) enable_shared=no ;;
6906    *)
6907      enable_shared=no
6908      # Look at the argument we got.  We use all the common list separators.
6909      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6910      for pkg in $enableval; do
6911	IFS="$lt_save_ifs"
6912	if test "X$pkg" = "X$p"; then
6913	  enable_shared=yes
6914	fi
6915      done
6916      IFS="$lt_save_ifs"
6917      ;;
6918    esac
6919else
6920  enable_shared=yes
6921fi;
6922
6923# Check whether --enable-fast-install or --disable-fast-install was given.
6924if test "${enable_fast_install+set}" = set; then
6925  enableval="$enable_fast_install"
6926  p=${PACKAGE-default}
6927    case $enableval in
6928    yes) enable_fast_install=yes ;;
6929    no) enable_fast_install=no ;;
6930    *)
6931      enable_fast_install=no
6932      # Look at the argument we got.  We use all the common list separators.
6933      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6934      for pkg in $enableval; do
6935	IFS="$lt_save_ifs"
6936	if test "X$pkg" = "X$p"; then
6937	  enable_fast_install=yes
6938	fi
6939      done
6940      IFS="$lt_save_ifs"
6941      ;;
6942    esac
6943else
6944  enable_fast_install=yes
6945fi;
6946
6947echo "$as_me:$LINENO: checking host system type" >&5
6948echo $ECHO_N "checking host system type... $ECHO_C" >&6
6949if test "${ac_cv_host+set}" = set; then
6950  echo $ECHO_N "(cached) $ECHO_C" >&6
6951else
6952  ac_cv_host_alias=$host_alias
6953test -z "$ac_cv_host_alias" &&
6954  ac_cv_host_alias=$ac_cv_build_alias
6955ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
6956  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6957echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6958   { (exit 1); exit 1; }; }
6959
6960fi
6961echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6962echo "${ECHO_T}$ac_cv_host" >&6
6963host=$ac_cv_host
6964host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6965host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6966host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6967
6968
6969echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6970echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
6971if test "${lt_cv_path_SED+set}" = set; then
6972  echo $ECHO_N "(cached) $ECHO_C" >&6
6973else
6974  # Loop through the user's path and test for sed and gsed.
6975# Then use that list of sed's as ones to test for truncation.
6976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6977for as_dir in $PATH
6978do
6979  IFS=$as_save_IFS
6980  test -z "$as_dir" && as_dir=.
6981  for lt_ac_prog in sed gsed; do
6982    for ac_exec_ext in '' $ac_executable_extensions; do
6983      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6984        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6985      fi
6986    done
6987  done
6988done
6989lt_ac_max=0
6990lt_ac_count=0
6991# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6992# along with /bin/sed that truncates output.
6993for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6994  test ! -f $lt_ac_sed && continue
6995  cat /dev/null > conftest.in
6996  lt_ac_count=0
6997  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6998  # Check for GNU sed and select it if it is found.
6999  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
7000    lt_cv_path_SED=$lt_ac_sed
7001    break
7002  fi
7003  while true; do
7004    cat conftest.in conftest.in >conftest.tmp
7005    mv conftest.tmp conftest.in
7006    cp conftest.in conftest.nl
7007    echo >>conftest.nl
7008    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
7009    cmp -s conftest.out conftest.nl || break
7010    # 10000 chars as input seems more than enough
7011    test $lt_ac_count -gt 10 && break
7012    lt_ac_count=`expr $lt_ac_count + 1`
7013    if test $lt_ac_count -gt $lt_ac_max; then
7014      lt_ac_max=$lt_ac_count
7015      lt_cv_path_SED=$lt_ac_sed
7016    fi
7017  done
7018done
7019
7020fi
7021
7022SED=$lt_cv_path_SED
7023echo "$as_me:$LINENO: result: $SED" >&5
7024echo "${ECHO_T}$SED" >&6
7025
7026
7027# Check whether --with-gnu-ld or --without-gnu-ld was given.
7028if test "${with_gnu_ld+set}" = set; then
7029  withval="$with_gnu_ld"
7030  test "$withval" = no || with_gnu_ld=yes
7031else
7032  with_gnu_ld=no
7033fi;
7034ac_prog=ld
7035if test "$GCC" = yes; then
7036  # Check if gcc -print-prog-name=ld gives a path.
7037  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
7038echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
7039  case $host in
7040  *-*-mingw*)
7041    # gcc leaves a trailing carriage return which upsets mingw
7042    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7043  *)
7044    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7045  esac
7046  case $ac_prog in
7047    # Accept absolute paths.
7048    [\\/]* | ?:[\\/]*)
7049      re_direlt='/[^/][^/]*/\.\./'
7050      # Canonicalize the pathname of ld
7051      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
7052      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7053	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
7054      done
7055      test -z "$LD" && LD="$ac_prog"
7056      ;;
7057  "")
7058    # If it fails, then pretend we aren't using GCC.
7059    ac_prog=ld
7060    ;;
7061  *)
7062    # If it is relative, then search for the first ld in PATH.
7063    with_gnu_ld=unknown
7064    ;;
7065  esac
7066elif test "$with_gnu_ld" = yes; then
7067  echo "$as_me:$LINENO: checking for GNU ld" >&5
7068echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
7069else
7070  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7071echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
7072fi
7073if test "${lt_cv_path_LD+set}" = set; then
7074  echo $ECHO_N "(cached) $ECHO_C" >&6
7075else
7076  if test -z "$LD"; then
7077  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7078  for ac_dir in $PATH; do
7079    IFS="$lt_save_ifs"
7080    test -z "$ac_dir" && ac_dir=.
7081    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7082      lt_cv_path_LD="$ac_dir/$ac_prog"
7083      # Check to see if the program is GNU ld.  I'd rather use --version,
7084      # but apparently some variants of GNU ld only accept -v.
7085      # Break only if it was the GNU/non-GNU ld that we prefer.
7086      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7087      *GNU* | *'with BFD'*)
7088	test "$with_gnu_ld" != no && break
7089	;;
7090      *)
7091	test "$with_gnu_ld" != yes && break
7092	;;
7093      esac
7094    fi
7095  done
7096  IFS="$lt_save_ifs"
7097else
7098  lt_cv_path_LD="$LD" # Let the user override the test with a path.
7099fi
7100fi
7101
7102LD="$lt_cv_path_LD"
7103if test -n "$LD"; then
7104  echo "$as_me:$LINENO: result: $LD" >&5
7105echo "${ECHO_T}$LD" >&6
7106else
7107  echo "$as_me:$LINENO: result: no" >&5
7108echo "${ECHO_T}no" >&6
7109fi
7110test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7111echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7112   { (exit 1); exit 1; }; }
7113echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7114echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
7115if test "${lt_cv_prog_gnu_ld+set}" = set; then
7116  echo $ECHO_N "(cached) $ECHO_C" >&6
7117else
7118  # I'd rather use --version here, but apparently some GNU lds only accept -v.
7119case `$LD -v 2>&1 </dev/null` in
7120*GNU* | *'with BFD'*)
7121  lt_cv_prog_gnu_ld=yes
7122  ;;
7123*)
7124  lt_cv_prog_gnu_ld=no
7125  ;;
7126esac
7127fi
7128echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
7129echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
7130with_gnu_ld=$lt_cv_prog_gnu_ld
7131
7132
7133echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
7134echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
7135if test "${lt_cv_ld_reload_flag+set}" = set; then
7136  echo $ECHO_N "(cached) $ECHO_C" >&6
7137else
7138  lt_cv_ld_reload_flag='-r'
7139fi
7140echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
7141echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
7142reload_flag=$lt_cv_ld_reload_flag
7143case $reload_flag in
7144"" | " "*) ;;
7145*) reload_flag=" $reload_flag" ;;
7146esac
7147reload_cmds='$LD$reload_flag -o $output$reload_objs'
7148case $host_os in
7149  darwin*)
7150    if test "$GCC" = yes; then
7151      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7152    else
7153      reload_cmds='$LD$reload_flag -o $output$reload_objs'
7154    fi
7155    ;;
7156esac
7157
7158echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7159echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7160if test "${lt_cv_path_NM+set}" = set; then
7161  echo $ECHO_N "(cached) $ECHO_C" >&6
7162else
7163  if test -n "$NM"; then
7164  # Let the user override the test.
7165  lt_cv_path_NM="$NM"
7166else
7167  lt_nm_to_check="${ac_tool_prefix}nm"
7168  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7169    lt_nm_to_check="$lt_nm_to_check nm"
7170  fi
7171  for lt_tmp_nm in $lt_nm_to_check; do
7172    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7173    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7174      IFS="$lt_save_ifs"
7175      test -z "$ac_dir" && ac_dir=.
7176      tmp_nm="$ac_dir/$lt_tmp_nm"
7177      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7178	# Check to see if the nm accepts a BSD-compat flag.
7179	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
7180	#   nm: unknown option "B" ignored
7181	# Tru64's nm complains that /dev/null is an invalid object file
7182	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7183	*/dev/null* | *'Invalid file or object type'*)
7184	  lt_cv_path_NM="$tmp_nm -B"
7185	  break
7186	  ;;
7187	*)
7188	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7189	  */dev/null*)
7190	    lt_cv_path_NM="$tmp_nm -p"
7191	    break
7192	    ;;
7193	  *)
7194	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7195	    continue # so that we can try to find one that supports BSD flags
7196	    ;;
7197	  esac
7198	  ;;
7199	esac
7200      fi
7201    done
7202    IFS="$lt_save_ifs"
7203  done
7204  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7205fi
7206fi
7207echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7208echo "${ECHO_T}$lt_cv_path_NM" >&6
7209NM="$lt_cv_path_NM"
7210
7211echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
7212echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
7213if test "${lt_cv_deplibs_check_method+set}" = set; then
7214  echo $ECHO_N "(cached) $ECHO_C" >&6
7215else
7216  lt_cv_file_magic_cmd='$MAGIC_CMD'
7217lt_cv_file_magic_test_file=
7218lt_cv_deplibs_check_method='unknown'
7219# Need to set the preceding variable on all platforms that support
7220# interlibrary dependencies.
7221# 'none' -- dependencies not supported.
7222# `unknown' -- same as none, but documents that we really don't know.
7223# 'pass_all' -- all dependencies passed with no checks.
7224# 'test_compile' -- check by making test program.
7225# 'file_magic [[regex]]' -- check by looking for files in library path
7226# which responds to the $file_magic_cmd with a given extended regex.
7227# If you have `file' or equivalent on your system and you're not sure
7228# whether `pass_all' will *always* work, you probably want this one.
7229
7230case $host_os in
7231aix4* | aix5*)
7232  lt_cv_deplibs_check_method=pass_all
7233  ;;
7234
7235beos*)
7236  lt_cv_deplibs_check_method=pass_all
7237  ;;
7238
7239bsdi[45]*)
7240  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7241  lt_cv_file_magic_cmd='/usr/bin/file -L'
7242  lt_cv_file_magic_test_file=/shlib/libc.so
7243  ;;
7244
7245cygwin*)
7246  # func_win32_libid is a shell function defined in ltmain.sh
7247  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7248  lt_cv_file_magic_cmd='func_win32_libid'
7249  ;;
7250
7251mingw* | pw32*)
7252  # Base MSYS/MinGW do not provide the 'file' command needed by
7253  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
7254  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7255  lt_cv_file_magic_cmd='$OBJDUMP -f'
7256  ;;
7257
7258darwin* | rhapsody*)
7259  lt_cv_deplibs_check_method=pass_all
7260  ;;
7261
7262freebsd* | kfreebsd*-gnu | dragonfly*)
7263  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7264    case $host_cpu in
7265    i*86 )
7266      # Not sure whether the presence of OpenBSD here was a mistake.
7267      # Let's accept both of them until this is cleared up.
7268      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7269      lt_cv_file_magic_cmd=/usr/bin/file
7270      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7271      ;;
7272    esac
7273  else
7274    lt_cv_deplibs_check_method=pass_all
7275  fi
7276  ;;
7277
7278gnu*)
7279  lt_cv_deplibs_check_method=pass_all
7280  ;;
7281
7282hpux10.20* | hpux11*)
7283  lt_cv_file_magic_cmd=/usr/bin/file
7284  case $host_cpu in
7285  ia64*)
7286    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7287    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7288    ;;
7289  hppa*64*)
7290    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]'
7291    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7292    ;;
7293  *)
7294    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7295    lt_cv_file_magic_test_file=/usr/lib/libc.sl
7296    ;;
7297  esac
7298  ;;
7299
7300interix3*)
7301  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7302  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7303  ;;
7304
7305irix5* | irix6* | nonstopux*)
7306  case $LD in
7307  *-32|*"-32 ") libmagic=32-bit;;
7308  *-n32|*"-n32 ") libmagic=N32;;
7309  *-64|*"-64 ") libmagic=64-bit;;
7310  *) libmagic=never-match;;
7311  esac
7312  lt_cv_deplibs_check_method=pass_all
7313  ;;
7314
7315# This must be Linux ELF.
7316linux*)
7317  lt_cv_deplibs_check_method=pass_all
7318  ;;
7319
7320netbsd*)
7321  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
7322    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7323  else
7324    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7325  fi
7326  ;;
7327
7328newos6*)
7329  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7330  lt_cv_file_magic_cmd=/usr/bin/file
7331  lt_cv_file_magic_test_file=/usr/lib/libnls.so
7332  ;;
7333
7334nto-qnx*)
7335  lt_cv_deplibs_check_method=unknown
7336  ;;
7337
7338openbsd*)
7339  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7340    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7341  else
7342    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7343  fi
7344  ;;
7345
7346osf3* | osf4* | osf5*)
7347  lt_cv_deplibs_check_method=pass_all
7348  ;;
7349
7350solaris*)
7351  lt_cv_deplibs_check_method=pass_all
7352  ;;
7353
7354sysv4 | sysv4.3*)
7355  case $host_vendor in
7356  motorola)
7357    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]'
7358    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7359    ;;
7360  ncr)
7361    lt_cv_deplibs_check_method=pass_all
7362    ;;
7363  sequent)
7364    lt_cv_file_magic_cmd='/bin/file'
7365    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7366    ;;
7367  sni)
7368    lt_cv_file_magic_cmd='/bin/file'
7369    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7370    lt_cv_file_magic_test_file=/lib/libc.so
7371    ;;
7372  siemens)
7373    lt_cv_deplibs_check_method=pass_all
7374    ;;
7375  pc)
7376    lt_cv_deplibs_check_method=pass_all
7377    ;;
7378  esac
7379  ;;
7380
7381sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7382  lt_cv_deplibs_check_method=pass_all
7383  ;;
7384esac
7385
7386fi
7387echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
7388echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
7389file_magic_cmd=$lt_cv_file_magic_cmd
7390deplibs_check_method=$lt_cv_deplibs_check_method
7391test -z "$deplibs_check_method" && deplibs_check_method=unknown
7392
7393
7394
7395
7396# If no C compiler was specified, use CC.
7397LTCC=${LTCC-"$CC"}
7398
7399# If no C compiler flags were specified, use CFLAGS.
7400LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7401
7402# Allow CC to be a program name with arguments.
7403compiler=$CC
7404
7405# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7406if test "${enable_libtool_lock+set}" = set; then
7407  enableval="$enable_libtool_lock"
7408
7409fi;
7410test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7411
7412# Some flags need to be propagated to the compiler or linker for good
7413# libtool support.
7414case $host in
7415ia64-*-hpux*)
7416  # Find out which ABI we are using.
7417  echo 'int i;' > conftest.$ac_ext
7418  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7419  (eval $ac_compile) 2>&5
7420  ac_status=$?
7421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422  (exit $ac_status); }; then
7423    case `/usr/bin/file conftest.$ac_objext` in
7424    *ELF-32*)
7425      HPUX_IA64_MODE="32"
7426      ;;
7427    *ELF-64*)
7428      HPUX_IA64_MODE="64"
7429      ;;
7430    esac
7431  fi
7432  rm -rf conftest*
7433  ;;
7434*-*-irix6*)
7435  # Find out which ABI we are using.
7436  echo '#line 7436 "configure"' > conftest.$ac_ext
7437  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7438  (eval $ac_compile) 2>&5
7439  ac_status=$?
7440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7441  (exit $ac_status); }; then
7442   if test "$lt_cv_prog_gnu_ld" = yes; then
7443    case `/usr/bin/file conftest.$ac_objext` in
7444    *32-bit*)
7445      LD="${LD-ld} -melf32bsmip"
7446      ;;
7447    *N32*)
7448      LD="${LD-ld} -melf32bmipn32"
7449      ;;
7450    *64-bit*)
7451      LD="${LD-ld} -melf64bmip"
7452      ;;
7453    esac
7454   else
7455    case `/usr/bin/file conftest.$ac_objext` in
7456    *32-bit*)
7457      LD="${LD-ld} -32"
7458      ;;
7459    *N32*)
7460      LD="${LD-ld} -n32"
7461      ;;
7462    *64-bit*)
7463      LD="${LD-ld} -64"
7464      ;;
7465    esac
7466   fi
7467  fi
7468  rm -rf conftest*
7469  ;;
7470
7471x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
7472  # Find out which ABI we are using.
7473  echo 'int i;' > conftest.$ac_ext
7474  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7475  (eval $ac_compile) 2>&5
7476  ac_status=$?
7477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7478  (exit $ac_status); }; then
7479    case `/usr/bin/file conftest.o` in
7480    *32-bit*)
7481      case $host in
7482        x86_64-*linux*)
7483          LD="${LD-ld} -m elf_i386"
7484          ;;
7485        ppc64-*linux*|powerpc64-*linux*)
7486          LD="${LD-ld} -m elf32ppclinux"
7487          ;;
7488        s390x-*linux*)
7489          LD="${LD-ld} -m elf_s390"
7490          ;;
7491        sparc64-*linux*)
7492          LD="${LD-ld} -m elf32_sparc"
7493          ;;
7494      esac
7495      ;;
7496    *64-bit*)
7497      case $host in
7498        x86_64-*linux*)
7499          LD="${LD-ld} -m elf_x86_64"
7500          ;;
7501        ppc*-*linux*|powerpc*-*linux*)
7502          LD="${LD-ld} -m elf64ppc"
7503          ;;
7504        s390*-*linux*)
7505          LD="${LD-ld} -m elf64_s390"
7506          ;;
7507        sparc*-*linux*)
7508          LD="${LD-ld} -m elf64_sparc"
7509          ;;
7510      esac
7511      ;;
7512    esac
7513  fi
7514  rm -rf conftest*
7515  ;;
7516
7517*-*-sco3.2v5*)
7518  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7519  SAVE_CFLAGS="$CFLAGS"
7520  CFLAGS="$CFLAGS -belf"
7521  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7522echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
7523if test "${lt_cv_cc_needs_belf+set}" = set; then
7524  echo $ECHO_N "(cached) $ECHO_C" >&6
7525else
7526  ac_ext=c
7527ac_cpp='$CPP $CPPFLAGS'
7528ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7529ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7530ac_compiler_gnu=$ac_cv_c_compiler_gnu
7531
7532     cat >conftest.$ac_ext <<_ACEOF
7533/* confdefs.h.  */
7534_ACEOF
7535cat confdefs.h >>conftest.$ac_ext
7536cat >>conftest.$ac_ext <<_ACEOF
7537/* end confdefs.h.  */
7538
7539#ifdef F77_DUMMY_MAIN
7540
7541#  ifdef __cplusplus
7542     extern "C"
7543#  endif
7544   int F77_DUMMY_MAIN() { return 1; }
7545
7546#endif
7547int
7548main ()
7549{
7550
7551  ;
7552  return 0;
7553}
7554_ACEOF
7555rm -f conftest.$ac_objext conftest$ac_exeext
7556if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7557  (eval $ac_link) 2>conftest.er1
7558  ac_status=$?
7559  grep -v '^ *+' conftest.er1 >conftest.err
7560  rm -f conftest.er1
7561  cat conftest.err >&5
7562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7563  (exit $ac_status); } &&
7564	 { ac_try='test -z "$ac_c_werror_flag"
7565			 || test ! -s conftest.err'
7566  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7567  (eval $ac_try) 2>&5
7568  ac_status=$?
7569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7570  (exit $ac_status); }; } &&
7571	 { ac_try='test -s conftest$ac_exeext'
7572  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7573  (eval $ac_try) 2>&5
7574  ac_status=$?
7575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576  (exit $ac_status); }; }; then
7577  lt_cv_cc_needs_belf=yes
7578else
7579  echo "$as_me: failed program was:" >&5
7580sed 's/^/| /' conftest.$ac_ext >&5
7581
7582lt_cv_cc_needs_belf=no
7583fi
7584rm -f conftest.err conftest.$ac_objext \
7585      conftest$ac_exeext conftest.$ac_ext
7586     ac_ext=c
7587ac_cpp='$CPP $CPPFLAGS'
7588ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7589ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7590ac_compiler_gnu=$ac_cv_c_compiler_gnu
7591
7592fi
7593echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7594echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
7595  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7596    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7597    CFLAGS="$SAVE_CFLAGS"
7598  fi
7599  ;;
7600sparc*-*solaris*)
7601  # Find out which ABI we are using.
7602  echo 'int i;' > conftest.$ac_ext
7603  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7604  (eval $ac_compile) 2>&5
7605  ac_status=$?
7606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7607  (exit $ac_status); }; then
7608    case `/usr/bin/file conftest.o` in
7609    *64-bit*)
7610      case $lt_cv_prog_gnu_ld in
7611      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7612      *)    LD="${LD-ld} -64" ;;
7613      esac
7614      ;;
7615    esac
7616  fi
7617  rm -rf conftest*
7618  ;;
7619
7620
7621esac
7622
7623need_locks="$enable_libtool_lock"
7624
7625
7626ac_ext=c
7627ac_cpp='$CPP $CPPFLAGS'
7628ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7629ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7630ac_compiler_gnu=$ac_cv_c_compiler_gnu
7631echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7632echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
7633# On Suns, sometimes $CPP names a directory.
7634if test -n "$CPP" && test -d "$CPP"; then
7635  CPP=
7636fi
7637if test -z "$CPP"; then
7638  if test "${ac_cv_prog_CPP+set}" = set; then
7639  echo $ECHO_N "(cached) $ECHO_C" >&6
7640else
7641      # Double quotes because CPP needs to be expanded
7642    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7643    do
7644      ac_preproc_ok=false
7645for ac_c_preproc_warn_flag in '' yes
7646do
7647  # Use a header file that comes with gcc, so configuring glibc
7648  # with a fresh cross-compiler works.
7649  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7650  # <limits.h> exists even on freestanding compilers.
7651  # On the NeXT, cc -E runs the code through the compiler's parser,
7652  # not just through cpp. "Syntax error" is here to catch this case.
7653  cat >conftest.$ac_ext <<_ACEOF
7654/* confdefs.h.  */
7655_ACEOF
7656cat confdefs.h >>conftest.$ac_ext
7657cat >>conftest.$ac_ext <<_ACEOF
7658/* end confdefs.h.  */
7659#ifdef __STDC__
7660# include <limits.h>
7661#else
7662# include <assert.h>
7663#endif
7664		     Syntax error
7665_ACEOF
7666if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7667  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7668  ac_status=$?
7669  grep -v '^ *+' conftest.er1 >conftest.err
7670  rm -f conftest.er1
7671  cat conftest.err >&5
7672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7673  (exit $ac_status); } >/dev/null; then
7674  if test -s conftest.err; then
7675    ac_cpp_err=$ac_c_preproc_warn_flag
7676    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7677  else
7678    ac_cpp_err=
7679  fi
7680else
7681  ac_cpp_err=yes
7682fi
7683if test -z "$ac_cpp_err"; then
7684  :
7685else
7686  echo "$as_me: failed program was:" >&5
7687sed 's/^/| /' conftest.$ac_ext >&5
7688
7689  # Broken: fails on valid input.
7690continue
7691fi
7692rm -f conftest.err conftest.$ac_ext
7693
7694  # OK, works on sane cases.  Now check whether non-existent headers
7695  # can be detected and how.
7696  cat >conftest.$ac_ext <<_ACEOF
7697/* confdefs.h.  */
7698_ACEOF
7699cat confdefs.h >>conftest.$ac_ext
7700cat >>conftest.$ac_ext <<_ACEOF
7701/* end confdefs.h.  */
7702#include <ac_nonexistent.h>
7703_ACEOF
7704if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7705  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7706  ac_status=$?
7707  grep -v '^ *+' conftest.er1 >conftest.err
7708  rm -f conftest.er1
7709  cat conftest.err >&5
7710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711  (exit $ac_status); } >/dev/null; then
7712  if test -s conftest.err; then
7713    ac_cpp_err=$ac_c_preproc_warn_flag
7714    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7715  else
7716    ac_cpp_err=
7717  fi
7718else
7719  ac_cpp_err=yes
7720fi
7721if test -z "$ac_cpp_err"; then
7722  # Broken: success on invalid input.
7723continue
7724else
7725  echo "$as_me: failed program was:" >&5
7726sed 's/^/| /' conftest.$ac_ext >&5
7727
7728  # Passes both tests.
7729ac_preproc_ok=:
7730break
7731fi
7732rm -f conftest.err conftest.$ac_ext
7733
7734done
7735# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7736rm -f conftest.err conftest.$ac_ext
7737if $ac_preproc_ok; then
7738  break
7739fi
7740
7741    done
7742    ac_cv_prog_CPP=$CPP
7743
7744fi
7745  CPP=$ac_cv_prog_CPP
7746else
7747  ac_cv_prog_CPP=$CPP
7748fi
7749echo "$as_me:$LINENO: result: $CPP" >&5
7750echo "${ECHO_T}$CPP" >&6
7751ac_preproc_ok=false
7752for ac_c_preproc_warn_flag in '' yes
7753do
7754  # Use a header file that comes with gcc, so configuring glibc
7755  # with a fresh cross-compiler works.
7756  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7757  # <limits.h> exists even on freestanding compilers.
7758  # On the NeXT, cc -E runs the code through the compiler's parser,
7759  # not just through cpp. "Syntax error" is here to catch this case.
7760  cat >conftest.$ac_ext <<_ACEOF
7761/* confdefs.h.  */
7762_ACEOF
7763cat confdefs.h >>conftest.$ac_ext
7764cat >>conftest.$ac_ext <<_ACEOF
7765/* end confdefs.h.  */
7766#ifdef __STDC__
7767# include <limits.h>
7768#else
7769# include <assert.h>
7770#endif
7771		     Syntax error
7772_ACEOF
7773if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7774  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7775  ac_status=$?
7776  grep -v '^ *+' conftest.er1 >conftest.err
7777  rm -f conftest.er1
7778  cat conftest.err >&5
7779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780  (exit $ac_status); } >/dev/null; then
7781  if test -s conftest.err; then
7782    ac_cpp_err=$ac_c_preproc_warn_flag
7783    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7784  else
7785    ac_cpp_err=
7786  fi
7787else
7788  ac_cpp_err=yes
7789fi
7790if test -z "$ac_cpp_err"; then
7791  :
7792else
7793  echo "$as_me: failed program was:" >&5
7794sed 's/^/| /' conftest.$ac_ext >&5
7795
7796  # Broken: fails on valid input.
7797continue
7798fi
7799rm -f conftest.err conftest.$ac_ext
7800
7801  # OK, works on sane cases.  Now check whether non-existent headers
7802  # can be detected and how.
7803  cat >conftest.$ac_ext <<_ACEOF
7804/* confdefs.h.  */
7805_ACEOF
7806cat confdefs.h >>conftest.$ac_ext
7807cat >>conftest.$ac_ext <<_ACEOF
7808/* end confdefs.h.  */
7809#include <ac_nonexistent.h>
7810_ACEOF
7811if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7812  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7813  ac_status=$?
7814  grep -v '^ *+' conftest.er1 >conftest.err
7815  rm -f conftest.er1
7816  cat conftest.err >&5
7817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7818  (exit $ac_status); } >/dev/null; then
7819  if test -s conftest.err; then
7820    ac_cpp_err=$ac_c_preproc_warn_flag
7821    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7822  else
7823    ac_cpp_err=
7824  fi
7825else
7826  ac_cpp_err=yes
7827fi
7828if test -z "$ac_cpp_err"; then
7829  # Broken: success on invalid input.
7830continue
7831else
7832  echo "$as_me: failed program was:" >&5
7833sed 's/^/| /' conftest.$ac_ext >&5
7834
7835  # Passes both tests.
7836ac_preproc_ok=:
7837break
7838fi
7839rm -f conftest.err conftest.$ac_ext
7840
7841done
7842# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7843rm -f conftest.err conftest.$ac_ext
7844if $ac_preproc_ok; then
7845  :
7846else
7847  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7848See \`config.log' for more details." >&5
7849echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7850See \`config.log' for more details." >&2;}
7851   { (exit 1); exit 1; }; }
7852fi
7853
7854ac_ext=c
7855ac_cpp='$CPP $CPPFLAGS'
7856ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7857ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7858ac_compiler_gnu=$ac_cv_c_compiler_gnu
7859
7860
7861echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7862echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7863if test "${ac_cv_header_stdc+set}" = set; then
7864  echo $ECHO_N "(cached) $ECHO_C" >&6
7865else
7866  cat >conftest.$ac_ext <<_ACEOF
7867/* confdefs.h.  */
7868_ACEOF
7869cat confdefs.h >>conftest.$ac_ext
7870cat >>conftest.$ac_ext <<_ACEOF
7871/* end confdefs.h.  */
7872#include <stdlib.h>
7873#include <stdarg.h>
7874#include <string.h>
7875#include <float.h>
7876
7877#ifdef F77_DUMMY_MAIN
7878
7879#  ifdef __cplusplus
7880     extern "C"
7881#  endif
7882   int F77_DUMMY_MAIN() { return 1; }
7883
7884#endif
7885int
7886main ()
7887{
7888
7889  ;
7890  return 0;
7891}
7892_ACEOF
7893rm -f conftest.$ac_objext
7894if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7895  (eval $ac_compile) 2>conftest.er1
7896  ac_status=$?
7897  grep -v '^ *+' conftest.er1 >conftest.err
7898  rm -f conftest.er1
7899  cat conftest.err >&5
7900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901  (exit $ac_status); } &&
7902	 { ac_try='test -z "$ac_c_werror_flag"
7903			 || test ! -s conftest.err'
7904  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7905  (eval $ac_try) 2>&5
7906  ac_status=$?
7907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7908  (exit $ac_status); }; } &&
7909	 { ac_try='test -s conftest.$ac_objext'
7910  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7911  (eval $ac_try) 2>&5
7912  ac_status=$?
7913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914  (exit $ac_status); }; }; then
7915  ac_cv_header_stdc=yes
7916else
7917  echo "$as_me: failed program was:" >&5
7918sed 's/^/| /' conftest.$ac_ext >&5
7919
7920ac_cv_header_stdc=no
7921fi
7922rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7923
7924if test $ac_cv_header_stdc = yes; then
7925  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7926  cat >conftest.$ac_ext <<_ACEOF
7927/* confdefs.h.  */
7928_ACEOF
7929cat confdefs.h >>conftest.$ac_ext
7930cat >>conftest.$ac_ext <<_ACEOF
7931/* end confdefs.h.  */
7932#include <string.h>
7933
7934_ACEOF
7935if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7936  $EGREP "memchr" >/dev/null 2>&1; then
7937  :
7938else
7939  ac_cv_header_stdc=no
7940fi
7941rm -f conftest*
7942
7943fi
7944
7945if test $ac_cv_header_stdc = yes; then
7946  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7947  cat >conftest.$ac_ext <<_ACEOF
7948/* confdefs.h.  */
7949_ACEOF
7950cat confdefs.h >>conftest.$ac_ext
7951cat >>conftest.$ac_ext <<_ACEOF
7952/* end confdefs.h.  */
7953#include <stdlib.h>
7954
7955_ACEOF
7956if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7957  $EGREP "free" >/dev/null 2>&1; then
7958  :
7959else
7960  ac_cv_header_stdc=no
7961fi
7962rm -f conftest*
7963
7964fi
7965
7966if test $ac_cv_header_stdc = yes; then
7967  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7968  if test "$cross_compiling" = yes; then
7969  :
7970else
7971  cat >conftest.$ac_ext <<_ACEOF
7972/* confdefs.h.  */
7973_ACEOF
7974cat confdefs.h >>conftest.$ac_ext
7975cat >>conftest.$ac_ext <<_ACEOF
7976/* end confdefs.h.  */
7977#include <ctype.h>
7978#if ((' ' & 0x0FF) == 0x020)
7979# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7980# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7981#else
7982# define ISLOWER(c) \
7983		   (('a' <= (c) && (c) <= 'i') \
7984		     || ('j' <= (c) && (c) <= 'r') \
7985		     || ('s' <= (c) && (c) <= 'z'))
7986# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7987#endif
7988
7989#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7990int
7991main ()
7992{
7993  int i;
7994  for (i = 0; i < 256; i++)
7995    if (XOR (islower (i), ISLOWER (i))
7996	|| toupper (i) != TOUPPER (i))
7997      exit(2);
7998  exit (0);
7999}
8000_ACEOF
8001rm -f conftest$ac_exeext
8002if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8003  (eval $ac_link) 2>&5
8004  ac_status=$?
8005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8007  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8008  (eval $ac_try) 2>&5
8009  ac_status=$?
8010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8011  (exit $ac_status); }; }; then
8012  :
8013else
8014  echo "$as_me: program exited with status $ac_status" >&5
8015echo "$as_me: failed program was:" >&5
8016sed 's/^/| /' conftest.$ac_ext >&5
8017
8018( exit $ac_status )
8019ac_cv_header_stdc=no
8020fi
8021rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8022fi
8023fi
8024fi
8025echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8026echo "${ECHO_T}$ac_cv_header_stdc" >&6
8027if test $ac_cv_header_stdc = yes; then
8028
8029cat >>confdefs.h <<\_ACEOF
8030#define STDC_HEADERS 1
8031_ACEOF
8032
8033fi
8034
8035# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8046		  inttypes.h stdint.h unistd.h
8047do
8048as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8049echo "$as_me:$LINENO: checking for $ac_header" >&5
8050echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8051if eval "test \"\${$as_ac_Header+set}\" = set"; then
8052  echo $ECHO_N "(cached) $ECHO_C" >&6
8053else
8054  cat >conftest.$ac_ext <<_ACEOF
8055/* confdefs.h.  */
8056_ACEOF
8057cat confdefs.h >>conftest.$ac_ext
8058cat >>conftest.$ac_ext <<_ACEOF
8059/* end confdefs.h.  */
8060$ac_includes_default
8061
8062#include <$ac_header>
8063_ACEOF
8064rm -f conftest.$ac_objext
8065if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8066  (eval $ac_compile) 2>conftest.er1
8067  ac_status=$?
8068  grep -v '^ *+' conftest.er1 >conftest.err
8069  rm -f conftest.er1
8070  cat conftest.err >&5
8071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8072  (exit $ac_status); } &&
8073	 { ac_try='test -z "$ac_c_werror_flag"
8074			 || test ! -s conftest.err'
8075  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8076  (eval $ac_try) 2>&5
8077  ac_status=$?
8078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8079  (exit $ac_status); }; } &&
8080	 { ac_try='test -s conftest.$ac_objext'
8081  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8082  (eval $ac_try) 2>&5
8083  ac_status=$?
8084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085  (exit $ac_status); }; }; then
8086  eval "$as_ac_Header=yes"
8087else
8088  echo "$as_me: failed program was:" >&5
8089sed 's/^/| /' conftest.$ac_ext >&5
8090
8091eval "$as_ac_Header=no"
8092fi
8093rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8094fi
8095echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8096echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8097if test `eval echo '${'$as_ac_Header'}'` = yes; then
8098  cat >>confdefs.h <<_ACEOF
8099#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8100_ACEOF
8101
8102fi
8103
8104done
8105
8106
8107
8108for ac_header in dlfcn.h
8109do
8110as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8111if eval "test \"\${$as_ac_Header+set}\" = set"; then
8112  echo "$as_me:$LINENO: checking for $ac_header" >&5
8113echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8114if eval "test \"\${$as_ac_Header+set}\" = set"; then
8115  echo $ECHO_N "(cached) $ECHO_C" >&6
8116fi
8117echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8118echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8119else
8120  # Is the header compilable?
8121echo "$as_me:$LINENO: checking $ac_header usability" >&5
8122echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8123cat >conftest.$ac_ext <<_ACEOF
8124/* confdefs.h.  */
8125_ACEOF
8126cat confdefs.h >>conftest.$ac_ext
8127cat >>conftest.$ac_ext <<_ACEOF
8128/* end confdefs.h.  */
8129$ac_includes_default
8130#include <$ac_header>
8131_ACEOF
8132rm -f conftest.$ac_objext
8133if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8134  (eval $ac_compile) 2>conftest.er1
8135  ac_status=$?
8136  grep -v '^ *+' conftest.er1 >conftest.err
8137  rm -f conftest.er1
8138  cat conftest.err >&5
8139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140  (exit $ac_status); } &&
8141	 { ac_try='test -z "$ac_c_werror_flag"
8142			 || test ! -s conftest.err'
8143  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8144  (eval $ac_try) 2>&5
8145  ac_status=$?
8146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8147  (exit $ac_status); }; } &&
8148	 { ac_try='test -s conftest.$ac_objext'
8149  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8150  (eval $ac_try) 2>&5
8151  ac_status=$?
8152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153  (exit $ac_status); }; }; then
8154  ac_header_compiler=yes
8155else
8156  echo "$as_me: failed program was:" >&5
8157sed 's/^/| /' conftest.$ac_ext >&5
8158
8159ac_header_compiler=no
8160fi
8161rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8162echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8163echo "${ECHO_T}$ac_header_compiler" >&6
8164
8165# Is the header present?
8166echo "$as_me:$LINENO: checking $ac_header presence" >&5
8167echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8168cat >conftest.$ac_ext <<_ACEOF
8169/* confdefs.h.  */
8170_ACEOF
8171cat confdefs.h >>conftest.$ac_ext
8172cat >>conftest.$ac_ext <<_ACEOF
8173/* end confdefs.h.  */
8174#include <$ac_header>
8175_ACEOF
8176if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8177  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8178  ac_status=$?
8179  grep -v '^ *+' conftest.er1 >conftest.err
8180  rm -f conftest.er1
8181  cat conftest.err >&5
8182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183  (exit $ac_status); } >/dev/null; then
8184  if test -s conftest.err; then
8185    ac_cpp_err=$ac_c_preproc_warn_flag
8186    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8187  else
8188    ac_cpp_err=
8189  fi
8190else
8191  ac_cpp_err=yes
8192fi
8193if test -z "$ac_cpp_err"; then
8194  ac_header_preproc=yes
8195else
8196  echo "$as_me: failed program was:" >&5
8197sed 's/^/| /' conftest.$ac_ext >&5
8198
8199  ac_header_preproc=no
8200fi
8201rm -f conftest.err conftest.$ac_ext
8202echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8203echo "${ECHO_T}$ac_header_preproc" >&6
8204
8205# So?  What about this header?
8206case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8207  yes:no: )
8208    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8209echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8210    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8211echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8212    ac_header_preproc=yes
8213    ;;
8214  no:yes:* )
8215    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8216echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8217    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8218echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8219    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8220echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8221    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8222echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8223    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8224echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8225    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8226echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8227    (
8228      cat <<\_ASBOX
8229## ---------------------------------------------------- ##
8230## Report this to http://projects.coin-or.org/CoinUtils ##
8231## ---------------------------------------------------- ##
8232_ASBOX
8233    ) |
8234      sed "s/^/$as_me: WARNING:     /" >&2
8235    ;;
8236esac
8237echo "$as_me:$LINENO: checking for $ac_header" >&5
8238echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8239if eval "test \"\${$as_ac_Header+set}\" = set"; then
8240  echo $ECHO_N "(cached) $ECHO_C" >&6
8241else
8242  eval "$as_ac_Header=\$ac_header_preproc"
8243fi
8244echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8245echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8246
8247fi
8248if test `eval echo '${'$as_ac_Header'}'` = yes; then
8249  cat >>confdefs.h <<_ACEOF
8250#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8251_ACEOF
8252
8253fi
8254
8255done
8256
8257
8258
8259if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8260    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8261    (test "X$CXX" != "Xg++"))) ; then
8262  ac_ext=cc
8263ac_cpp='$CXXCPP $CPPFLAGS'
8264ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8265ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8266ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8267echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8268echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
8269if test -z "$CXXCPP"; then
8270  if test "${ac_cv_prog_CXXCPP+set}" = set; then
8271  echo $ECHO_N "(cached) $ECHO_C" >&6
8272else
8273      # Double quotes because CXXCPP needs to be expanded
8274    for CXXCPP in "$CXX -E" "/lib/cpp"
8275    do
8276      ac_preproc_ok=false
8277for ac_cxx_preproc_warn_flag in '' yes
8278do
8279  # Use a header file that comes with gcc, so configuring glibc
8280  # with a fresh cross-compiler works.
8281  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8282  # <limits.h> exists even on freestanding compilers.
8283  # On the NeXT, cc -E runs the code through the compiler's parser,
8284  # not just through cpp. "Syntax error" is here to catch this case.
8285  cat >conftest.$ac_ext <<_ACEOF
8286/* confdefs.h.  */
8287_ACEOF
8288cat confdefs.h >>conftest.$ac_ext
8289cat >>conftest.$ac_ext <<_ACEOF
8290/* end confdefs.h.  */
8291#ifdef __STDC__
8292# include <limits.h>
8293#else
8294# include <assert.h>
8295#endif
8296		     Syntax error
8297_ACEOF
8298if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8299  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8300  ac_status=$?
8301  grep -v '^ *+' conftest.er1 >conftest.err
8302  rm -f conftest.er1
8303  cat conftest.err >&5
8304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305  (exit $ac_status); } >/dev/null; then
8306  if test -s conftest.err; then
8307    ac_cpp_err=$ac_cxx_preproc_warn_flag
8308    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8309  else
8310    ac_cpp_err=
8311  fi
8312else
8313  ac_cpp_err=yes
8314fi
8315if test -z "$ac_cpp_err"; then
8316  :
8317else
8318  echo "$as_me: failed program was:" >&5
8319sed 's/^/| /' conftest.$ac_ext >&5
8320
8321  # Broken: fails on valid input.
8322continue
8323fi
8324rm -f conftest.err conftest.$ac_ext
8325
8326  # OK, works on sane cases.  Now check whether non-existent headers
8327  # can be detected and how.
8328  cat >conftest.$ac_ext <<_ACEOF
8329/* confdefs.h.  */
8330_ACEOF
8331cat confdefs.h >>conftest.$ac_ext
8332cat >>conftest.$ac_ext <<_ACEOF
8333/* end confdefs.h.  */
8334#include <ac_nonexistent.h>
8335_ACEOF
8336if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8337  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8338  ac_status=$?
8339  grep -v '^ *+' conftest.er1 >conftest.err
8340  rm -f conftest.er1
8341  cat conftest.err >&5
8342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343  (exit $ac_status); } >/dev/null; then
8344  if test -s conftest.err; then
8345    ac_cpp_err=$ac_cxx_preproc_warn_flag
8346    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8347  else
8348    ac_cpp_err=
8349  fi
8350else
8351  ac_cpp_err=yes
8352fi
8353if test -z "$ac_cpp_err"; then
8354  # Broken: success on invalid input.
8355continue
8356else
8357  echo "$as_me: failed program was:" >&5
8358sed 's/^/| /' conftest.$ac_ext >&5
8359
8360  # Passes both tests.
8361ac_preproc_ok=:
8362break
8363fi
8364rm -f conftest.err conftest.$ac_ext
8365
8366done
8367# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8368rm -f conftest.err conftest.$ac_ext
8369if $ac_preproc_ok; then
8370  break
8371fi
8372
8373    done
8374    ac_cv_prog_CXXCPP=$CXXCPP
8375
8376fi
8377  CXXCPP=$ac_cv_prog_CXXCPP
8378else
8379  ac_cv_prog_CXXCPP=$CXXCPP
8380fi
8381echo "$as_me:$LINENO: result: $CXXCPP" >&5
8382echo "${ECHO_T}$CXXCPP" >&6
8383ac_preproc_ok=false
8384for ac_cxx_preproc_warn_flag in '' yes
8385do
8386  # Use a header file that comes with gcc, so configuring glibc
8387  # with a fresh cross-compiler works.
8388  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8389  # <limits.h> exists even on freestanding compilers.
8390  # On the NeXT, cc -E runs the code through the compiler's parser,
8391  # not just through cpp. "Syntax error" is here to catch this case.
8392  cat >conftest.$ac_ext <<_ACEOF
8393/* confdefs.h.  */
8394_ACEOF
8395cat confdefs.h >>conftest.$ac_ext
8396cat >>conftest.$ac_ext <<_ACEOF
8397/* end confdefs.h.  */
8398#ifdef __STDC__
8399# include <limits.h>
8400#else
8401# include <assert.h>
8402#endif
8403		     Syntax error
8404_ACEOF
8405if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8406  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8407  ac_status=$?
8408  grep -v '^ *+' conftest.er1 >conftest.err
8409  rm -f conftest.er1
8410  cat conftest.err >&5
8411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412  (exit $ac_status); } >/dev/null; then
8413  if test -s conftest.err; then
8414    ac_cpp_err=$ac_cxx_preproc_warn_flag
8415    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8416  else
8417    ac_cpp_err=
8418  fi
8419else
8420  ac_cpp_err=yes
8421fi
8422if test -z "$ac_cpp_err"; then
8423  :
8424else
8425  echo "$as_me: failed program was:" >&5
8426sed 's/^/| /' conftest.$ac_ext >&5
8427
8428  # Broken: fails on valid input.
8429continue
8430fi
8431rm -f conftest.err conftest.$ac_ext
8432
8433  # OK, works on sane cases.  Now check whether non-existent headers
8434  # can be detected and how.
8435  cat >conftest.$ac_ext <<_ACEOF
8436/* confdefs.h.  */
8437_ACEOF
8438cat confdefs.h >>conftest.$ac_ext
8439cat >>conftest.$ac_ext <<_ACEOF
8440/* end confdefs.h.  */
8441#include <ac_nonexistent.h>
8442_ACEOF
8443if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8444  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8445  ac_status=$?
8446  grep -v '^ *+' conftest.er1 >conftest.err
8447  rm -f conftest.er1
8448  cat conftest.err >&5
8449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450  (exit $ac_status); } >/dev/null; then
8451  if test -s conftest.err; then
8452    ac_cpp_err=$ac_cxx_preproc_warn_flag
8453    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8454  else
8455    ac_cpp_err=
8456  fi
8457else
8458  ac_cpp_err=yes
8459fi
8460if test -z "$ac_cpp_err"; then
8461  # Broken: success on invalid input.
8462continue
8463else
8464  echo "$as_me: failed program was:" >&5
8465sed 's/^/| /' conftest.$ac_ext >&5
8466
8467  # Passes both tests.
8468ac_preproc_ok=:
8469break
8470fi
8471rm -f conftest.err conftest.$ac_ext
8472
8473done
8474# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8475rm -f conftest.err conftest.$ac_ext
8476if $ac_preproc_ok; then
8477  :
8478else
8479  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8480See \`config.log' for more details." >&5
8481echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8482See \`config.log' for more details." >&2;}
8483   { (exit 1); exit 1; }; }
8484fi
8485
8486ac_ext=cc
8487ac_cpp='$CXXCPP $CPPFLAGS'
8488ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8489ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8490ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8491
8492fi
8493
8494
8495# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
8496
8497# find the maximum length of command line arguments
8498echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
8499echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
8500if test "${lt_cv_sys_max_cmd_len+set}" = set; then
8501  echo $ECHO_N "(cached) $ECHO_C" >&6
8502else
8503    i=0
8504  teststring="ABCD"
8505
8506  case $build_os in
8507  msdosdjgpp*)
8508    # On DJGPP, this test can blow up pretty badly due to problems in libc
8509    # (any single argument exceeding 2000 bytes causes a buffer overrun
8510    # during glob expansion).  Even if it were fixed, the result of this
8511    # check would be larger than it should be.
8512    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8513    ;;
8514
8515  gnu*)
8516    # Under GNU Hurd, this test is not required because there is
8517    # no limit to the length of command line arguments.
8518    # Libtool will interpret -1 as no limit whatsoever
8519    lt_cv_sys_max_cmd_len=-1;
8520    ;;
8521
8522  cygwin* | mingw*)
8523    # On Win9x/ME, this test blows up -- it succeeds, but takes
8524    # about 5 minutes as the teststring grows exponentially.
8525    # Worse, since 9x/ME are not pre-emptively multitasking,
8526    # you end up with a "frozen" computer, even though with patience
8527    # the test eventually succeeds (with a max line length of 256k).
8528    # Instead, let's just punt: use the minimum linelength reported by
8529    # all of the supported platforms: 8192 (on NT/2K/XP).
8530    lt_cv_sys_max_cmd_len=8192;
8531    ;;
8532
8533  amigaos*)
8534    # On AmigaOS with pdksh, this test takes hours, literally.
8535    # So we just punt and use a minimum line length of 8192.
8536    lt_cv_sys_max_cmd_len=8192;
8537    ;;
8538
8539  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8540    # This has been around since 386BSD, at least.  Likely further.
8541    if test -x /sbin/sysctl; then
8542      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8543    elif test -x /usr/sbin/sysctl; then
8544      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8545    else
8546      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
8547    fi
8548    # And add a safety zone
8549    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8550    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8551    ;;
8552
8553  interix*)
8554    # We know the value 262144 and hardcode it with a safety zone (like BSD)
8555    lt_cv_sys_max_cmd_len=196608
8556    ;;
8557
8558  osf*)
8559    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8560    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8561    # nice to cause kernel panics so lets avoid the loop below.
8562    # First set a reasonable default.
8563    lt_cv_sys_max_cmd_len=16384
8564    #
8565    if test -x /sbin/sysconfig; then
8566      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8567        *1*) lt_cv_sys_max_cmd_len=-1 ;;
8568      esac
8569    fi
8570    ;;
8571  sco3.2v5*)
8572    lt_cv_sys_max_cmd_len=102400
8573    ;;
8574  sysv5* | sco5v6* | sysv4.2uw2*)
8575    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8576    if test -n "$kargmax"; then
8577      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
8578    else
8579      lt_cv_sys_max_cmd_len=32768
8580    fi
8581    ;;
8582  *)
8583    # If test is not a shell built-in, we'll probably end up computing a
8584    # maximum length that is only half of the actual maximum length, but
8585    # we can't tell.
8586    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8587    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
8588	       = "XX$teststring") >/dev/null 2>&1 &&
8589	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
8590	    lt_cv_sys_max_cmd_len=$new_result &&
8591	    test $i != 17 # 1/2 MB should be enough
8592    do
8593      i=`expr $i + 1`
8594      teststring=$teststring$teststring
8595    done
8596    teststring=
8597    # Add a significant safety factor because C++ compilers can tack on massive
8598    # amounts of additional arguments before passing them to the linker.
8599    # It appears as though 1/2 is a usable value.
8600    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8601    ;;
8602  esac
8603
8604fi
8605
8606if test -n $lt_cv_sys_max_cmd_len ; then
8607  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
8608echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
8609else
8610  echo "$as_me:$LINENO: result: none" >&5
8611echo "${ECHO_T}none" >&6
8612fi
8613
8614
8615
8616
8617# Check for command to grab the raw symbol name followed by C symbol from nm.
8618echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8619echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
8620if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8621  echo $ECHO_N "(cached) $ECHO_C" >&6
8622else
8623
8624# These are sane defaults that work on at least a few old systems.
8625# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8626
8627# Character class describing NM global symbol codes.
8628symcode='[BCDEGRST]'
8629
8630# Regexp to match symbols that can be accessed directly from C.
8631sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8632
8633# Transform an extracted symbol line into a proper C declaration
8634lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8635
8636# Transform an extracted symbol line into symbol name and symbol address
8637lt_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'"
8638
8639# Define system-specific variables.
8640case $host_os in
8641aix*)
8642  symcode='[BCDT]'
8643  ;;
8644cygwin* | mingw* | pw32*)
8645  symcode='[ABCDGISTW]'
8646  ;;
8647hpux*) # Its linker distinguishes data from code symbols
8648  if test "$host_cpu" = ia64; then
8649    symcode='[ABCDEGRST]'
8650  fi
8651  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8652  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'"
8653  ;;
8654linux*)
8655  if test "$host_cpu" = ia64; then
8656    symcode='[ABCDGIRSTW]'
8657    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8658    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'"
8659  fi
8660  ;;
8661irix* | nonstopux*)
8662  symcode='[BCDEGRST]'
8663  ;;
8664osf*)
8665  symcode='[BCDEGQRST]'
8666  ;;
8667solaris*)
8668  symcode='[BDRT]'
8669  ;;
8670sco3.2v5*)
8671  symcode='[DT]'
8672  ;;
8673sysv4.2uw2*)
8674  symcode='[DT]'
8675  ;;
8676sysv5* | sco5v6* | unixware* | OpenUNIX*)
8677  symcode='[ABDT]'
8678  ;;
8679sysv4)
8680  symcode='[DFNSTU]'
8681  ;;
8682esac
8683
8684# Handle CRLF in mingw tool chain
8685opt_cr=
8686case $build_os in
8687mingw*)
8688  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8689  ;;
8690esac
8691
8692# If we're using GNU nm, then use its standard symbol codes.
8693case `$NM -V 2>&1` in
8694*GNU* | *'with BFD'*)
8695  symcode='[ABCDGIRSTW]' ;;
8696esac
8697
8698# Try without a prefix undercore, then with it.
8699for ac_symprfx in "" "_"; do
8700
8701  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8702  symxfrm="\\1 $ac_symprfx\\2 \\2"
8703
8704  # Write the raw and C identifiers.
8705  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8706
8707  # Check to see that the pipe works correctly.
8708  pipe_works=no
8709
8710  rm -f conftest*
8711  cat > conftest.$ac_ext <<EOF
8712#ifdef __cplusplus
8713extern "C" {
8714#endif
8715char nm_test_var;
8716void nm_test_func(){}
8717#ifdef __cplusplus
8718}
8719#endif
8720int main(){nm_test_var='a';nm_test_func();return(0);}
8721EOF
8722
8723  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8724  (eval $ac_compile) 2>&5
8725  ac_status=$?
8726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727  (exit $ac_status); }; then
8728    # Now try to grab the symbols.
8729    nlist=conftest.nm
8730    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8731  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8732  ac_status=$?
8733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8734  (exit $ac_status); } && test -s "$nlist"; then
8735      # Try sorting and uniquifying the output.
8736      if sort "$nlist" | uniq > "$nlist"T; then
8737	mv -f "$nlist"T "$nlist"
8738      else
8739	rm -f "$nlist"T
8740      fi
8741
8742      # Make sure that we snagged all the symbols we need.
8743      if grep ' nm_test_var$' "$nlist" >/dev/null; then
8744	if grep ' nm_test_func$' "$nlist" >/dev/null; then
8745	  cat <<EOF > conftest.$ac_ext
8746#ifdef __cplusplus
8747extern "C" {
8748#endif
8749
8750EOF
8751	  # Now generate the symbol file.
8752	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8753
8754	  cat <<EOF >> conftest.$ac_ext
8755#if defined (__STDC__) && __STDC__
8756# define lt_ptr_t void *
8757#else
8758# define lt_ptr_t char *
8759# define const
8760#endif
8761
8762/* The mapping between symbol names and symbols. */
8763const struct {
8764  const char *name;
8765  lt_ptr_t address;
8766}
8767lt_preloaded_symbols[] =
8768{
8769EOF
8770	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8771	  cat <<\EOF >> conftest.$ac_ext
8772  {0, (lt_ptr_t) 0}
8773};
8774
8775#ifdef __cplusplus
8776}
8777#endif
8778EOF
8779	  # Now try linking the two files.
8780	  mv conftest.$ac_objext conftstm.$ac_objext
8781	  lt_save_LIBS="$LIBS"
8782	  lt_save_CFLAGS="$CFLAGS"
8783	  LIBS="conftstm.$ac_objext"
8784	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8785	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8786  (eval $ac_link) 2>&5
8787  ac_status=$?
8788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8789  (exit $ac_status); } && test -s conftest${ac_exeext}; then
8790	    pipe_works=yes
8791	  fi
8792	  LIBS="$lt_save_LIBS"
8793	  CFLAGS="$lt_save_CFLAGS"
8794	else
8795	  echo "cannot find nm_test_func in $nlist" >&5
8796	fi
8797      else
8798	echo "cannot find nm_test_var in $nlist" >&5
8799      fi
8800    else
8801      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8802    fi
8803  else
8804    echo "$progname: failed program was:" >&5
8805    cat conftest.$ac_ext >&5
8806  fi
8807  rm -f conftest* conftst*
8808
8809  # Do not use the global_symbol_pipe unless it works.
8810  if test "$pipe_works" = yes; then
8811    break
8812  else
8813    lt_cv_sys_global_symbol_pipe=
8814  fi
8815done
8816
8817fi
8818
8819if test -z "$lt_cv_sys_global_symbol_pipe"; then
8820  lt_cv_sys_global_symbol_to_cdecl=
8821fi
8822if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8823  echo "$as_me:$LINENO: result: failed" >&5
8824echo "${ECHO_T}failed" >&6
8825else
8826  echo "$as_me:$LINENO: result: ok" >&5
8827echo "${ECHO_T}ok" >&6
8828fi
8829
8830echo "$as_me:$LINENO: checking for objdir" >&5
8831echo $ECHO_N "checking for objdir... $ECHO_C" >&6
8832if test "${lt_cv_objdir+set}" = set; then
8833  echo $ECHO_N "(cached) $ECHO_C" >&6
8834else
8835  rm -f .libs 2>/dev/null
8836mkdir .libs 2>/dev/null
8837if test -d .libs; then
8838  lt_cv_objdir=.libs
8839else
8840  # MS-DOS does not allow filenames that begin with a dot.
8841  lt_cv_objdir=_libs
8842fi
8843rmdir .libs 2>/dev/null
8844fi
8845echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8846echo "${ECHO_T}$lt_cv_objdir" >&6
8847objdir=$lt_cv_objdir
8848
8849
8850
8851
8852
8853case $host_os in
8854aix3*)
8855  # AIX sometimes has problems with the GCC collect2 program.  For some
8856  # reason, if we set the COLLECT_NAMES environment variable, the problems
8857  # vanish in a puff of smoke.
8858  if test "X${COLLECT_NAMES+set}" != Xset; then
8859    COLLECT_NAMES=
8860    export COLLECT_NAMES
8861  fi
8862  ;;
8863esac
8864
8865# Sed substitution that helps us do robust quoting.  It backslashifies
8866# metacharacters that are still active within double-quoted strings.
8867Xsed='sed -e 1s/^X//'
8868sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8869
8870# Same as above, but do not quote variable references.
8871double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8872
8873# Sed substitution to delay expansion of an escaped shell variable in a
8874# double_quote_subst'ed string.
8875delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8876
8877# Sed substitution to avoid accidental globbing in evaled expressions
8878no_glob_subst='s/\*/\\\*/g'
8879
8880# Constants:
8881rm="rm -f"
8882
8883# Global variables:
8884default_ofile=libtool
8885can_build_shared=yes
8886
8887# All known linkers require a `.a' archive for static linking (except MSVC,
8888# which needs '.lib').
8889libext=a
8890ltmain="$ac_aux_dir/ltmain.sh"
8891ofile="$default_ofile"
8892with_gnu_ld="$lt_cv_prog_gnu_ld"
8893
8894if test -n "$ac_tool_prefix"; then
8895  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8896set dummy ${ac_tool_prefix}ar; ac_word=$2
8897echo "$as_me:$LINENO: checking for $ac_word" >&5
8898echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8899if test "${ac_cv_prog_AR+set}" = set; then
8900  echo $ECHO_N "(cached) $ECHO_C" >&6
8901else
8902  if test -n "$AR"; then
8903  ac_cv_prog_AR="$AR" # Let the user override the test.
8904else
8905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8906for as_dir in $PATH
8907do
8908  IFS=$as_save_IFS
8909  test -z "$as_dir" && as_dir=.
8910  for ac_exec_ext in '' $ac_executable_extensions; do
8911  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8912    ac_cv_prog_AR="${ac_tool_prefix}ar"
8913    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8914    break 2
8915  fi
8916done
8917done
8918
8919fi
8920fi
8921AR=$ac_cv_prog_AR
8922if test -n "$AR"; then
8923  echo "$as_me:$LINENO: result: $AR" >&5
8924echo "${ECHO_T}$AR" >&6
8925else
8926  echo "$as_me:$LINENO: result: no" >&5
8927echo "${ECHO_T}no" >&6
8928fi
8929
8930fi
8931if test -z "$ac_cv_prog_AR"; then
8932  ac_ct_AR=$AR
8933  # Extract the first word of "ar", so it can be a program name with args.
8934set dummy ar; ac_word=$2
8935echo "$as_me:$LINENO: checking for $ac_word" >&5
8936echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8937if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8938  echo $ECHO_N "(cached) $ECHO_C" >&6
8939else
8940  if test -n "$ac_ct_AR"; then
8941  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8942else
8943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8944for as_dir in $PATH
8945do
8946  IFS=$as_save_IFS
8947  test -z "$as_dir" && as_dir=.
8948  for ac_exec_ext in '' $ac_executable_extensions; do
8949  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8950    ac_cv_prog_ac_ct_AR="ar"
8951    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8952    break 2
8953  fi
8954done
8955done
8956
8957  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
8958fi
8959fi
8960ac_ct_AR=$ac_cv_prog_ac_ct_AR
8961if test -n "$ac_ct_AR"; then
8962  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8963echo "${ECHO_T}$ac_ct_AR" >&6
8964else
8965  echo "$as_me:$LINENO: result: no" >&5
8966echo "${ECHO_T}no" >&6
8967fi
8968
8969  AR=$ac_ct_AR
8970else
8971  AR="$ac_cv_prog_AR"
8972fi
8973
8974if test -n "$ac_tool_prefix"; then
8975  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8976set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8977echo "$as_me:$LINENO: checking for $ac_word" >&5
8978echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8979if test "${ac_cv_prog_RANLIB+set}" = set; then
8980  echo $ECHO_N "(cached) $ECHO_C" >&6
8981else
8982  if test -n "$RANLIB"; then
8983  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8984else
8985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8986for as_dir in $PATH
8987do
8988  IFS=$as_save_IFS
8989  test -z "$as_dir" && as_dir=.
8990  for ac_exec_ext in '' $ac_executable_extensions; do
8991  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8992    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8993    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8994    break 2
8995  fi
8996done
8997done
8998
8999fi
9000fi
9001RANLIB=$ac_cv_prog_RANLIB
9002if test -n "$RANLIB"; then
9003  echo "$as_me:$LINENO: result: $RANLIB" >&5
9004echo "${ECHO_T}$RANLIB" >&6
9005else
9006  echo "$as_me:$LINENO: result: no" >&5
9007echo "${ECHO_T}no" >&6
9008fi
9009
9010fi
9011if test -z "$ac_cv_prog_RANLIB"; then
9012  ac_ct_RANLIB=$RANLIB
9013  # Extract the first word of "ranlib", so it can be a program name with args.
9014set dummy ranlib; ac_word=$2
9015echo "$as_me:$LINENO: checking for $ac_word" >&5
9016echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9017if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
9018  echo $ECHO_N "(cached) $ECHO_C" >&6
9019else
9020  if test -n "$ac_ct_RANLIB"; then
9021  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9022else
9023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9024for as_dir in $PATH
9025do
9026  IFS=$as_save_IFS
9027  test -z "$as_dir" && as_dir=.
9028  for ac_exec_ext in '' $ac_executable_extensions; do
9029  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9030    ac_cv_prog_ac_ct_RANLIB="ranlib"
9031    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9032    break 2
9033  fi
9034done
9035done
9036
9037  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
9038fi
9039fi
9040ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9041if test -n "$ac_ct_RANLIB"; then
9042  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
9043echo "${ECHO_T}$ac_ct_RANLIB" >&6
9044else
9045  echo "$as_me:$LINENO: result: no" >&5
9046echo "${ECHO_T}no" >&6
9047fi
9048
9049  RANLIB=$ac_ct_RANLIB
9050else
9051  RANLIB="$ac_cv_prog_RANLIB"
9052fi
9053
9054if test -n "$ac_tool_prefix"; then
9055  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9056set dummy ${ac_tool_prefix}strip; ac_word=$2
9057echo "$as_me:$LINENO: checking for $ac_word" >&5
9058echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9059if test "${ac_cv_prog_STRIP+set}" = set; then
9060  echo $ECHO_N "(cached) $ECHO_C" >&6
9061else
9062  if test -n "$STRIP"; then
9063  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9064else
9065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9066for as_dir in $PATH
9067do
9068  IFS=$as_save_IFS
9069  test -z "$as_dir" && as_dir=.
9070  for ac_exec_ext in '' $ac_executable_extensions; do
9071  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9072    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9073    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9074    break 2
9075  fi
9076done
9077done
9078
9079fi
9080fi
9081STRIP=$ac_cv_prog_STRIP
9082if test -n "$STRIP"; then
9083  echo "$as_me:$LINENO: result: $STRIP" >&5
9084echo "${ECHO_T}$STRIP" >&6
9085else
9086  echo "$as_me:$LINENO: result: no" >&5
9087echo "${ECHO_T}no" >&6
9088fi
9089
9090fi
9091if test -z "$ac_cv_prog_STRIP"; then
9092  ac_ct_STRIP=$STRIP
9093  # Extract the first word of "strip", so it can be a program name with args.
9094set dummy strip; ac_word=$2
9095echo "$as_me:$LINENO: checking for $ac_word" >&5
9096echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9097if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
9098  echo $ECHO_N "(cached) $ECHO_C" >&6
9099else
9100  if test -n "$ac_ct_STRIP"; then
9101  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9102else
9103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9104for as_dir in $PATH
9105do
9106  IFS=$as_save_IFS
9107  test -z "$as_dir" && as_dir=.
9108  for ac_exec_ext in '' $ac_executable_extensions; do
9109  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9110    ac_cv_prog_ac_ct_STRIP="strip"
9111    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9112    break 2
9113  fi
9114done
9115done
9116
9117  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
9118fi
9119fi
9120ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9121if test -n "$ac_ct_STRIP"; then
9122  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
9123echo "${ECHO_T}$ac_ct_STRIP" >&6
9124else
9125  echo "$as_me:$LINENO: result: no" >&5
9126echo "${ECHO_T}no" >&6
9127fi
9128
9129  STRIP=$ac_ct_STRIP
9130else
9131  STRIP="$ac_cv_prog_STRIP"
9132fi
9133
9134
9135old_CC="$CC"
9136old_CFLAGS="$CFLAGS"
9137
9138# Set sane defaults for various variables
9139test -z "$AR" && AR=ar
9140test -z "$AR_FLAGS" && AR_FLAGS=cru
9141test -z "$AS" && AS=as
9142test -z "$CC" && CC=cc
9143test -z "$LTCC" && LTCC=$CC
9144test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9145test -z "$DLLTOOL" && DLLTOOL=dlltool
9146test -z "$LD" && LD=ld
9147test -z "$LN_S" && LN_S="ln -s"
9148test -z "$MAGIC_CMD" && MAGIC_CMD=file
9149test -z "$NM" && NM=nm
9150test -z "$SED" && SED=sed
9151test -z "$OBJDUMP" && OBJDUMP=objdump
9152test -z "$RANLIB" && RANLIB=:
9153test -z "$STRIP" && STRIP=:
9154test -z "$ac_objext" && ac_objext=o
9155
9156# Determine commands to create old-style static archives.
9157old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
9158old_postinstall_cmds='chmod 644 $oldlib'
9159old_postuninstall_cmds=
9160
9161if test -n "$RANLIB"; then
9162  case $host_os in
9163  openbsd*)
9164    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
9165    ;;
9166  *)
9167    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
9168    ;;
9169  esac
9170  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9171fi
9172
9173for cc_temp in $compiler""; do
9174  case $cc_temp in
9175    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9176    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9177    \-*) ;;
9178    *) break;;
9179  esac
9180done
9181cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9182
9183
9184# Only perform the check for file, if the check method requires it
9185case $deplibs_check_method in
9186file_magic*)
9187  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9188    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9189echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
9190if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9191  echo $ECHO_N "(cached) $ECHO_C" >&6
9192else
9193  case $MAGIC_CMD in
9194[\\/*] |  ?:[\\/]*)
9195  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9196  ;;
9197*)
9198  lt_save_MAGIC_CMD="$MAGIC_CMD"
9199  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9200  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9201  for ac_dir in $ac_dummy; do
9202    IFS="$lt_save_ifs"
9203    test -z "$ac_dir" && ac_dir=.
9204    if test -f $ac_dir/${ac_tool_prefix}file; then
9205      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9206      if test -n "$file_magic_test_file"; then
9207	case $deplibs_check_method in
9208	"file_magic "*)
9209	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9210	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9211	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9212	    $EGREP "$file_magic_regex" > /dev/null; then
9213	    :
9214	  else
9215	    cat <<EOF 1>&2
9216
9217*** Warning: the command libtool uses to detect shared libraries,
9218*** $file_magic_cmd, produces output that libtool cannot recognize.
9219*** The result is that libtool may fail to recognize shared libraries
9220*** as such.  This will affect the creation of libtool libraries that
9221*** depend on shared libraries, but programs linked with such libtool
9222*** libraries will work regardless of this problem.  Nevertheless, you
9223*** may want to report the problem to your system manager and/or to
9224*** bug-libtool@gnu.org
9225
9226EOF
9227	  fi ;;
9228	esac
9229      fi
9230      break
9231    fi
9232  done
9233  IFS="$lt_save_ifs"
9234  MAGIC_CMD="$lt_save_MAGIC_CMD"
9235  ;;
9236esac
9237fi
9238
9239MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9240if test -n "$MAGIC_CMD"; then
9241  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9242echo "${ECHO_T}$MAGIC_CMD" >&6
9243else
9244  echo "$as_me:$LINENO: result: no" >&5
9245echo "${ECHO_T}no" >&6
9246fi
9247
9248if test -z "$lt_cv_path_MAGIC_CMD"; then
9249  if test -n "$ac_tool_prefix"; then
9250    echo "$as_me:$LINENO: checking for file" >&5
9251echo $ECHO_N "checking for file... $ECHO_C" >&6
9252if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9253  echo $ECHO_N "(cached) $ECHO_C" >&6
9254else
9255  case $MAGIC_CMD in
9256[\\/*] |  ?:[\\/]*)
9257  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9258  ;;
9259*)
9260  lt_save_MAGIC_CMD="$MAGIC_CMD"
9261  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9262  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9263  for ac_dir in $ac_dummy; do
9264    IFS="$lt_save_ifs"
9265    test -z "$ac_dir" && ac_dir=.
9266    if test -f $ac_dir/file; then
9267      lt_cv_path_MAGIC_CMD="$ac_dir/file"
9268      if test -n "$file_magic_test_file"; then
9269	case $deplibs_check_method in
9270	"file_magic "*)
9271	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9272	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9273	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9274	    $EGREP "$file_magic_regex" > /dev/null; then
9275	    :
9276	  else
9277	    cat <<EOF 1>&2
9278
9279*** Warning: the command libtool uses to detect shared libraries,
9280*** $file_magic_cmd, produces output that libtool cannot recognize.
9281*** The result is that libtool may fail to recognize shared libraries
9282*** as such.  This will affect the creation of libtool libraries that
9283*** depend on shared libraries, but programs linked with such libtool
9284*** libraries will work regardless of this problem.  Nevertheless, you
9285*** may want to report the problem to your system manager and/or to
9286*** bug-libtool@gnu.org
9287
9288EOF
9289	  fi ;;
9290	esac
9291      fi
9292      break
9293    fi
9294  done
9295  IFS="$lt_save_ifs"
9296  MAGIC_CMD="$lt_save_MAGIC_CMD"
9297  ;;
9298esac
9299fi
9300
9301MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9302if test -n "$MAGIC_CMD"; then
9303  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9304echo "${ECHO_T}$MAGIC_CMD" >&6
9305else
9306  echo "$as_me:$LINENO: result: no" >&5
9307echo "${ECHO_T}no" >&6
9308fi
9309
9310  else
9311    MAGIC_CMD=:
9312  fi
9313fi
9314
9315  fi
9316  ;;
9317esac
9318
9319enable_dlopen=no
9320enable_win32_dll=no
9321
9322# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
9323if test "${enable_libtool_lock+set}" = set; then
9324  enableval="$enable_libtool_lock"
9325
9326fi;
9327test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9328
9329
9330# Check whether --with-pic or --without-pic was given.
9331if test "${with_pic+set}" = set; then
9332  withval="$with_pic"
9333  pic_mode="$withval"
9334else
9335  pic_mode=default
9336fi;
9337test -z "$pic_mode" && pic_mode=default
9338
9339# Use C for the default configuration in the libtool script
9340tagname=
9341lt_save_CC="$CC"
9342ac_ext=c
9343ac_cpp='$CPP $CPPFLAGS'
9344ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9345ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9346ac_compiler_gnu=$ac_cv_c_compiler_gnu
9347
9348
9349# Source file extension for C test sources.
9350ac_ext=c
9351
9352# Object file extension for compiled C test sources.
9353objext=o
9354objext=$objext
9355
9356# Code to be used in simple compile tests
9357lt_simple_compile_test_code="int some_variable = 0;\n"
9358
9359# Code to be used in simple link tests
9360lt_simple_link_test_code='int main(){return(0);}\n'
9361
9362
9363# If no C compiler was specified, use CC.
9364LTCC=${LTCC-"$CC"}
9365
9366# If no C compiler flags were specified, use CFLAGS.
9367LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9368
9369# Allow CC to be a program name with arguments.
9370compiler=$CC
9371
9372
9373# save warnings/boilerplate of simple test code
9374ac_outfile=conftest.$ac_objext
9375printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9376eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9377_lt_compiler_boilerplate=`cat conftest.err`
9378$rm conftest*
9379
9380ac_outfile=conftest.$ac_objext
9381printf "$lt_simple_link_test_code" >conftest.$ac_ext
9382eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9383_lt_linker_boilerplate=`cat conftest.err`
9384$rm conftest*
9385
9386
9387## CAVEAT EMPTOR:
9388## There is no encapsulation within the following macros, do not change
9389## the running order or otherwise move them around unless you know exactly
9390## what you are doing...
9391
9392lt_prog_compiler_no_builtin_flag=
9393
9394if test "$GCC" = yes; then
9395  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9396
9397
9398echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9399echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
9400if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9401  echo $ECHO_N "(cached) $ECHO_C" >&6
9402else
9403  lt_cv_prog_compiler_rtti_exceptions=no
9404  ac_outfile=conftest.$ac_objext
9405   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9406   lt_compiler_flag="-fno-rtti -fno-exceptions"
9407   # Insert the option either (1) after the last *FLAGS variable, or
9408   # (2) before a word containing "conftest.", or (3) at the end.
9409   # Note that $ac_compile itself does not contain backslashes and begins
9410   # with a dollar sign (not a hyphen), so the echo should work correctly.
9411   # The option is referenced via a variable to avoid confusing sed.
9412   lt_compile=`echo "$ac_compile" | $SED \
9413   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9414   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9415   -e 's:$: $lt_compiler_flag:'`
9416   (eval echo "\"\$as_me:9416: $lt_compile\"" >&5)
9417   (eval "$lt_compile" 2>conftest.err)
9418   ac_status=$?
9419   cat conftest.err >&5
9420   echo "$as_me:9420: \$? = $ac_status" >&5
9421   if (exit $ac_status) && test -s "$ac_outfile"; then
9422     # The compiler can only warn and ignore the option if not recognized
9423     # So say no if there are warnings other than the usual output.
9424     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9425     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9426     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9427       lt_cv_prog_compiler_rtti_exceptions=yes
9428     fi
9429   fi
9430   $rm conftest*
9431
9432fi
9433echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9434echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
9435
9436if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9437    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9438else
9439    :
9440fi
9441
9442fi
9443
9444lt_prog_compiler_wl=
9445lt_prog_compiler_pic=
9446lt_prog_compiler_static=
9447
9448echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9449echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
9450
9451  if test "$GCC" = yes; then
9452    lt_prog_compiler_wl='-Wl,'
9453    lt_prog_compiler_static='-static'
9454
9455    case $host_os in
9456      aix*)
9457      # All AIX code is PIC.
9458      if test "$host_cpu" = ia64; then
9459	# AIX 5 now supports IA64 processor
9460	lt_prog_compiler_static='-Bstatic'
9461      fi
9462      ;;
9463
9464    amigaos*)
9465      # FIXME: we need at least 68020 code to build shared libraries, but
9466      # adding the `-m68020' flag to GCC prevents building anything better,
9467      # like `-m68040'.
9468      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9469      ;;
9470
9471    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9472      # PIC is the default for these OSes.
9473      ;;
9474
9475    mingw* | pw32* | os2*)
9476      # This hack is so that the source file can tell whether it is being
9477      # built for inclusion in a dll (and should export symbols for example).
9478      lt_prog_compiler_pic='-DDLL_EXPORT'
9479      ;;
9480
9481    darwin* | rhapsody*)
9482      # PIC is the default on this platform
9483      # Common symbols not allowed in MH_DYLIB files
9484      lt_prog_compiler_pic='-fno-common'
9485      ;;
9486
9487    interix3*)
9488      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9489      # Instead, we relocate shared libraries at runtime.
9490      ;;
9491
9492    msdosdjgpp*)
9493      # Just because we use GCC doesn't mean we suddenly get shared libraries
9494      # on systems that don't support them.
9495      lt_prog_compiler_can_build_shared=no
9496      enable_shared=no
9497      ;;
9498
9499    sysv4*MP*)
9500      if test -d /usr/nec; then
9501	lt_prog_compiler_pic=-Kconform_pic
9502      fi
9503      ;;
9504
9505    hpux*)
9506      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9507      # not for PA HP-UX.
9508      case $host_cpu in
9509      hppa*64*|ia64*)
9510	# +Z the default
9511	;;
9512      *)
9513	lt_prog_compiler_pic='-fPIC'
9514	;;
9515      esac
9516      ;;
9517
9518    *)
9519      lt_prog_compiler_pic='-fPIC'
9520      ;;
9521    esac
9522  else
9523    # PORTME Check for flag to pass linker flags through the system compiler.
9524    case $host_os in
9525    aix*)
9526      lt_prog_compiler_wl='-Wl,'
9527      if test "$host_cpu" = ia64; then
9528	# AIX 5 now supports IA64 processor
9529	lt_prog_compiler_static='-Bstatic'
9530      else
9531	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9532      fi
9533      ;;
9534      darwin*)
9535        # PIC is the default on this platform
9536        # Common symbols not allowed in MH_DYLIB files
9537       case $cc_basename in
9538         xlc*)
9539         lt_prog_compiler_pic='-qnocommon'
9540         lt_prog_compiler_wl='-Wl,'
9541         ;;
9542       esac
9543       ;;
9544
9545    mingw* | pw32* | os2*)
9546      # This hack is so that the source file can tell whether it is being
9547      # built for inclusion in a dll (and should export symbols for example).
9548      lt_prog_compiler_pic='-DDLL_EXPORT'
9549      ;;
9550
9551    hpux9* | hpux10* | hpux11*)
9552      lt_prog_compiler_wl='-Wl,'
9553      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9554      # not for PA HP-UX.
9555      case $host_cpu in
9556      hppa*64*|ia64*)
9557	# +Z the default
9558	;;
9559      *)
9560	lt_prog_compiler_pic='+Z'
9561	;;
9562      esac
9563      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9564      lt_prog_compiler_static='${wl}-a ${wl}archive'
9565      ;;
9566
9567    irix5* | irix6* | nonstopux*)
9568      lt_prog_compiler_wl='-Wl,'
9569      # PIC (with -KPIC) is the default.
9570      lt_prog_compiler_static='-non_shared'
9571      ;;
9572
9573    newsos6)
9574      lt_prog_compiler_pic='-KPIC'
9575      lt_prog_compiler_static='-Bstatic'
9576      ;;
9577
9578    linux*)
9579      case $cc_basename in
9580      icc* | ecc*)
9581	lt_prog_compiler_wl='-Wl,'
9582	lt_prog_compiler_pic='-KPIC'
9583	lt_prog_compiler_static='-static'
9584        ;;
9585      pgcc* | pgf77* | pgf90* | pgf95*)
9586        # Portland Group compilers (*not* the Pentium gcc compiler,
9587	# which looks to be a dead project)
9588	lt_prog_compiler_wl='-Wl,'
9589	lt_prog_compiler_pic='-fpic'
9590	lt_prog_compiler_static='-Bstatic'
9591        ;;
9592      ccc*)
9593        lt_prog_compiler_wl='-Wl,'
9594        # All Alpha code is PIC.
9595        lt_prog_compiler_static='-non_shared'
9596        ;;
9597      esac
9598      ;;
9599
9600    osf3* | osf4* | osf5*)
9601      lt_prog_compiler_wl='-Wl,'
9602      # All OSF/1 code is PIC.
9603      lt_prog_compiler_static='-non_shared'
9604      ;;
9605
9606    solaris*)
9607      lt_prog_compiler_pic='-KPIC'
9608      lt_prog_compiler_static='-Bstatic'
9609      case $cc_basename in
9610      f77* | f90* | f95*)
9611	lt_prog_compiler_wl='-Qoption ld ';;
9612      *)
9613	lt_prog_compiler_wl='-Wl,';;
9614      esac
9615      ;;
9616
9617    sunos4*)
9618      lt_prog_compiler_wl='-Qoption ld '
9619      lt_prog_compiler_pic='-PIC'
9620      lt_prog_compiler_static='-Bstatic'
9621      ;;
9622
9623    sysv4 | sysv4.2uw2* | sysv4.3*)
9624      lt_prog_compiler_wl='-Wl,'
9625      lt_prog_compiler_pic='-KPIC'
9626      lt_prog_compiler_static='-Bstatic'
9627      ;;
9628
9629    sysv4*MP*)
9630      if test -d /usr/nec ;then
9631	lt_prog_compiler_pic='-Kconform_pic'
9632	lt_prog_compiler_static='-Bstatic'
9633      fi
9634      ;;
9635
9636    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9637      lt_prog_compiler_wl='-Wl,'
9638      lt_prog_compiler_pic='-KPIC'
9639      lt_prog_compiler_static='-Bstatic'
9640      ;;
9641
9642    unicos*)
9643      lt_prog_compiler_wl='-Wl,'
9644      lt_prog_compiler_can_build_shared=no
9645      ;;
9646
9647    uts4*)
9648      lt_prog_compiler_pic='-pic'
9649      lt_prog_compiler_static='-Bstatic'
9650      ;;
9651
9652    *)
9653      lt_prog_compiler_can_build_shared=no
9654      ;;
9655    esac
9656  fi
9657
9658echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9659echo "${ECHO_T}$lt_prog_compiler_pic" >&6
9660
9661#
9662# Check to make sure the PIC flag actually works.
9663#
9664if test -n "$lt_prog_compiler_pic"; then
9665
9666echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9667echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
9668if test "${lt_prog_compiler_pic_works+set}" = set; then
9669  echo $ECHO_N "(cached) $ECHO_C" >&6
9670else
9671  lt_prog_compiler_pic_works=no
9672  ac_outfile=conftest.$ac_objext
9673   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9674   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9675   # Insert the option either (1) after the last *FLAGS variable, or
9676   # (2) before a word containing "conftest.", or (3) at the end.
9677   # Note that $ac_compile itself does not contain backslashes and begins
9678   # with a dollar sign (not a hyphen), so the echo should work correctly.
9679   # The option is referenced via a variable to avoid confusing sed.
9680   lt_compile=`echo "$ac_compile" | $SED \
9681   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9682   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9683   -e 's:$: $lt_compiler_flag:'`
9684   (eval echo "\"\$as_me:9684: $lt_compile\"" >&5)
9685   (eval "$lt_compile" 2>conftest.err)
9686   ac_status=$?
9687   cat conftest.err >&5
9688   echo "$as_me:9688: \$? = $ac_status" >&5
9689   if (exit $ac_status) && test -s "$ac_outfile"; then
9690     # The compiler can only warn and ignore the option if not recognized
9691     # So say no if there are warnings other than the usual output.
9692     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9693     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9694     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9695       lt_prog_compiler_pic_works=yes
9696     fi
9697   fi
9698   $rm conftest*
9699
9700fi
9701echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9702echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
9703
9704if test x"$lt_prog_compiler_pic_works" = xyes; then
9705    case $lt_prog_compiler_pic in
9706     "" | " "*) ;;
9707     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9708     esac
9709else
9710    lt_prog_compiler_pic=
9711     lt_prog_compiler_can_build_shared=no
9712fi
9713
9714fi
9715case $host_os in
9716  # For platforms which do not support PIC, -DPIC is meaningless:
9717  *djgpp*)
9718    lt_prog_compiler_pic=
9719    ;;
9720  *)
9721    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9722    ;;
9723esac
9724
9725#
9726# Check to make sure the static flag actually works.
9727#
9728wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9729echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9730echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
9731if test "${lt_prog_compiler_static_works+set}" = set; then
9732  echo $ECHO_N "(cached) $ECHO_C" >&6
9733else
9734  lt_prog_compiler_static_works=no
9735   save_LDFLAGS="$LDFLAGS"
9736   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9737   printf "$lt_simple_link_test_code" > conftest.$ac_ext
9738   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9739     # The linker can only warn and ignore the option if not recognized
9740     # So say no if there are warnings
9741     if test -s conftest.err; then
9742       # Append any errors to the config.log.
9743       cat conftest.err 1>&5
9744       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9745       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9746       if diff conftest.exp conftest.er2 >/dev/null; then
9747         lt_prog_compiler_static_works=yes
9748       fi
9749     else
9750       lt_prog_compiler_static_works=yes
9751     fi
9752   fi
9753   $rm conftest*
9754   LDFLAGS="$save_LDFLAGS"
9755
9756fi
9757echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9758echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
9759
9760if test x"$lt_prog_compiler_static_works" = xyes; then
9761    :
9762else
9763    lt_prog_compiler_static=
9764fi
9765
9766
9767echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9768echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
9769if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9770  echo $ECHO_N "(cached) $ECHO_C" >&6
9771else
9772  lt_cv_prog_compiler_c_o=no
9773   $rm -r conftest 2>/dev/null
9774   mkdir conftest
9775   cd conftest
9776   mkdir out
9777   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9778
9779   lt_compiler_flag="-o out/conftest2.$ac_objext"
9780   # Insert the option either (1) after the last *FLAGS variable, or
9781   # (2) before a word containing "conftest.", or (3) at the end.
9782   # Note that $ac_compile itself does not contain backslashes and begins
9783   # with a dollar sign (not a hyphen), so the echo should work correctly.
9784   lt_compile=`echo "$ac_compile" | $SED \
9785   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9786   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9787   -e 's:$: $lt_compiler_flag:'`
9788   (eval echo "\"\$as_me:9788: $lt_compile\"" >&5)
9789   (eval "$lt_compile" 2>out/conftest.err)
9790   ac_status=$?
9791   cat out/conftest.err >&5
9792   echo "$as_me:9792: \$? = $ac_status" >&5
9793   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9794   then
9795     # The compiler can only warn and ignore the option if not recognized
9796     # So say no if there are warnings
9797     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9798     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9799     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9800       lt_cv_prog_compiler_c_o=yes
9801     fi
9802   fi
9803   chmod u+w . 2>&5
9804   $rm conftest*
9805   # SGI C++ compiler will create directory out/ii_files/ for
9806   # template instantiation
9807   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9808   $rm out/* && rmdir out
9809   cd ..
9810   rmdir conftest
9811   $rm conftest*
9812
9813fi
9814echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9815echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
9816
9817
9818hard_links="nottested"
9819if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9820  # do not overwrite the value of need_locks provided by the user
9821  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9822echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
9823  hard_links=yes
9824  $rm conftest*
9825  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9826  touch conftest.a
9827  ln conftest.a conftest.b 2>&5 || hard_links=no
9828  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9829  echo "$as_me:$LINENO: result: $hard_links" >&5
9830echo "${ECHO_T}$hard_links" >&6
9831  if test "$hard_links" = no; then
9832    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9833echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9834    need_locks=warn
9835  fi
9836else
9837  need_locks=no
9838fi
9839
9840echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9841echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9842
9843  runpath_var=
9844  allow_undefined_flag=
9845  enable_shared_with_static_runtimes=no
9846  archive_cmds=
9847  archive_expsym_cmds=
9848  old_archive_From_new_cmds=
9849  old_archive_from_expsyms_cmds=
9850  export_dynamic_flag_spec=
9851  whole_archive_flag_spec=
9852  thread_safe_flag_spec=
9853  hardcode_libdir_flag_spec=
9854  hardcode_libdir_flag_spec_ld=
9855  hardcode_libdir_separator=
9856  hardcode_direct=no
9857  hardcode_minus_L=no
9858  hardcode_shlibpath_var=unsupported
9859  link_all_deplibs=unknown
9860  hardcode_automatic=no
9861  module_cmds=
9862  module_expsym_cmds=
9863  always_export_symbols=no
9864  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9865  # include_expsyms should be a list of space-separated symbols to be *always*
9866  # included in the symbol list
9867  include_expsyms=
9868  # exclude_expsyms can be an extended regexp of symbols to exclude
9869  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9870  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9871  # as well as any symbol that contains `d'.
9872  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9873  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9874  # platforms (ab)use it in PIC code, but their linkers get confused if
9875  # the symbol is explicitly referenced.  Since portable code cannot
9876  # rely on this symbol name, it's probably fine to never include it in
9877  # preloaded symbol tables.
9878  extract_expsyms_cmds=
9879  # Just being paranoid about ensuring that cc_basename is set.
9880  for cc_temp in $compiler""; do
9881  case $cc_temp in
9882    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9883    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9884    \-*) ;;
9885    *) break;;
9886  esac
9887done
9888cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9889
9890  case $host_os in
9891  cygwin* | mingw* | pw32*)
9892    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9893    # When not using gcc, we currently assume that we are using
9894    # Microsoft Visual C++.
9895    if test "$GCC" != yes; then
9896      with_gnu_ld=no
9897    fi
9898    ;;
9899  interix*)
9900    # we just hope/assume this is gcc and not c89 (= MSVC++)
9901    with_gnu_ld=yes
9902    ;;
9903  openbsd*)
9904    with_gnu_ld=no
9905    ;;
9906  esac
9907
9908  ld_shlibs=yes
9909  if test "$with_gnu_ld" = yes; then
9910    # If archive_cmds runs LD, not CC, wlarc should be empty
9911    wlarc='${wl}'
9912
9913    # Set some defaults for GNU ld with shared library support. These
9914    # are reset later if shared libraries are not supported. Putting them
9915    # here allows them to be overridden if necessary.
9916    runpath_var=LD_RUN_PATH
9917    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9918    export_dynamic_flag_spec='${wl}--export-dynamic'
9919    # ancient GNU ld didn't support --whole-archive et. al.
9920    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9921	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9922      else
9923  	whole_archive_flag_spec=
9924    fi
9925    supports_anon_versioning=no
9926    case `$LD -v 2>/dev/null` in
9927      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9928      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9929      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9930      *\ 2.11.*) ;; # other 2.11 versions
9931      *) supports_anon_versioning=yes ;;
9932    esac
9933
9934    # See if GNU ld supports shared libraries.
9935    case $host_os in
9936    aix3* | aix4* | aix5*)
9937      # On AIX/PPC, the GNU linker is very broken
9938      if test "$host_cpu" != ia64; then
9939	ld_shlibs=no
9940	cat <<EOF 1>&2
9941
9942*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9943*** to be unable to reliably create shared libraries on AIX.
9944*** Therefore, libtool is disabling shared libraries support.  If you
9945*** really care for shared libraries, you may want to modify your PATH
9946*** so that a non-GNU linker is found, and then restart.
9947
9948EOF
9949      fi
9950      ;;
9951
9952    amigaos*)
9953      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)'
9954      hardcode_libdir_flag_spec='-L$libdir'
9955      hardcode_minus_L=yes
9956
9957      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9958      # that the semantics of dynamic libraries on AmigaOS, at least up
9959      # to version 4, is to share data among multiple programs linked
9960      # with the same dynamic library.  Since this doesn't match the
9961      # behavior of shared libraries on other platforms, we can't use
9962      # them.
9963      ld_shlibs=no
9964      ;;
9965
9966    beos*)
9967      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9968	allow_undefined_flag=unsupported
9969	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9970	# support --undefined.  This deserves some investigation.  FIXME
9971	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9972      else
9973	ld_shlibs=no
9974      fi
9975      ;;
9976
9977    cygwin* | mingw* | pw32*)
9978      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9979      # as there is no search path for DLLs.
9980      hardcode_libdir_flag_spec='-L$libdir'
9981      allow_undefined_flag=unsupported
9982      always_export_symbols=no
9983      enable_shared_with_static_runtimes=yes
9984      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9985
9986      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9987        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9988	# If the export-symbols file already is a .def file (1st line
9989	# is EXPORTS), use it as is; otherwise, prepend...
9990	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9991	  cp $export_symbols $output_objdir/$soname.def;
9992	else
9993	  echo EXPORTS > $output_objdir/$soname.def;
9994	  cat $export_symbols >> $output_objdir/$soname.def;
9995	fi~
9996	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9997      else
9998	ld_shlibs=no
9999      fi
10000      ;;
10001
10002    interix3*)
10003      hardcode_direct=no
10004      hardcode_shlibpath_var=no
10005      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10006      export_dynamic_flag_spec='${wl}-E'
10007      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10008      # Instead, shared libraries are loaded at an image base (0x10000000 by
10009      # default) and relocated if they conflict, which is a slow very memory
10010      # consuming and fragmenting process.  To avoid this, we pick a random,
10011      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10012      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10013      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10014      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'
10015      ;;
10016
10017    linux*)
10018      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10019	tmp_addflag=
10020	case $cc_basename,$host_cpu in
10021	pgcc*)				# Portland Group C compiler
10022	  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'
10023	  tmp_addflag=' $pic_flag'
10024	  ;;
10025	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
10026	  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'
10027	  tmp_addflag=' $pic_flag -Mnomain' ;;
10028	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
10029	  tmp_addflag=' -i_dynamic' ;;
10030	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10031	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10032	ifc* | ifort*)			# Intel Fortran compiler
10033	  tmp_addflag=' -nofor_main' ;;
10034	esac
10035	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10036
10037	if test $supports_anon_versioning = yes; then
10038	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
10039  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10040  $echo "local: *; };" >> $output_objdir/$libname.ver~
10041	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10042	fi
10043      else
10044	ld_shlibs=no
10045      fi
10046      ;;
10047
10048    netbsd*)
10049      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10050	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10051	wlarc=
10052      else
10053	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10054	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10055      fi
10056      ;;
10057
10058    solaris*)
10059      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
10060	ld_shlibs=no
10061	cat <<EOF 1>&2
10062
10063*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10064*** create shared libraries on Solaris systems.  Therefore, libtool
10065*** is disabling shared libraries support.  We urge you to upgrade GNU
10066*** binutils to release 2.9.1 or newer.  Another option is to modify
10067*** your PATH or compiler configuration so that the native linker is
10068*** used, and then restart.
10069
10070EOF
10071      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10072	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10073	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10074      else
10075	ld_shlibs=no
10076      fi
10077      ;;
10078
10079    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10080      case `$LD -v 2>&1` in
10081        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10082	ld_shlibs=no
10083	cat <<_LT_EOF 1>&2
10084
10085*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10086*** reliably create shared libraries on SCO systems.  Therefore, libtool
10087*** is disabling shared libraries support.  We urge you to upgrade GNU
10088*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10089*** your PATH or compiler configuration so that the native linker is
10090*** used, and then restart.
10091
10092_LT_EOF
10093	;;
10094	*)
10095	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10096	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
10097	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
10098	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
10099	  else
10100	    ld_shlibs=no
10101	  fi
10102	;;
10103      esac
10104      ;;
10105
10106    sunos4*)
10107      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10108      wlarc=
10109      hardcode_direct=yes
10110      hardcode_shlibpath_var=no
10111      ;;
10112
10113    *)
10114      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10115	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10116	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10117      else
10118	ld_shlibs=no
10119      fi
10120      ;;
10121    esac
10122
10123    if test "$ld_shlibs" = no; then
10124      runpath_var=
10125      hardcode_libdir_flag_spec=
10126      export_dynamic_flag_spec=
10127      whole_archive_flag_spec=
10128    fi
10129  else
10130    # PORTME fill in a description of your system's linker (not GNU ld)
10131    case $host_os in
10132    aix3*)
10133      allow_undefined_flag=unsupported
10134      always_export_symbols=yes
10135      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'
10136      # Note: this linker hardcodes the directories in LIBPATH if there
10137      # are no directories specified by -L.
10138      hardcode_minus_L=yes
10139      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10140	# Neither direct hardcoding nor static linking is supported with a
10141	# broken collect2.
10142	hardcode_direct=unsupported
10143      fi
10144      ;;
10145
10146    aix4* | aix5*)
10147      if test "$host_cpu" = ia64; then
10148	# On IA64, the linker does run time linking by default, so we don't
10149	# have to do anything special.
10150	aix_use_runtimelinking=no
10151	exp_sym_flag='-Bexport'
10152	no_entry_flag=""
10153      else
10154	# If we're using GNU nm, then we don't want the "-C" option.
10155	# -C means demangle to AIX nm, but means don't demangle with GNU nm
10156	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10157	  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'
10158	else
10159	  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'
10160	fi
10161	aix_use_runtimelinking=no
10162
10163	# Test if we are trying to use run time linking or normal
10164	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10165	# need to do runtime linking.
10166	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10167	  for ld_flag in $LDFLAGS; do
10168  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10169  	    aix_use_runtimelinking=yes
10170  	    break
10171  	  fi
10172	  done
10173	  ;;
10174	esac
10175
10176	exp_sym_flag='-bexport'
10177	no_entry_flag='-bnoentry'
10178      fi
10179
10180      # When large executables or shared objects are built, AIX ld can
10181      # have problems creating the table of contents.  If linking a library
10182      # or program results in "error TOC overflow" add -mminimal-toc to
10183      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10184      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10185
10186      archive_cmds=''
10187      hardcode_direct=yes
10188      hardcode_libdir_separator=':'
10189      link_all_deplibs=yes
10190
10191      if test "$GCC" = yes; then
10192	case $host_os in aix4.[012]|aix4.[012].*)
10193	# We only want to do this on AIX 4.2 and lower, the check
10194	# below for broken collect2 doesn't work under 4.3+
10195	  collect2name=`${CC} -print-prog-name=collect2`
10196	  if test -f "$collect2name" && \
10197  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
10198	  then
10199  	  # We have reworked collect2
10200  	  hardcode_direct=yes
10201	  else
10202  	  # We have old collect2
10203  	  hardcode_direct=unsupported
10204  	  # It fails to find uninstalled libraries when the uninstalled
10205  	  # path is not listed in the libpath.  Setting hardcode_minus_L
10206  	  # to unsupported forces relinking
10207  	  hardcode_minus_L=yes
10208  	  hardcode_libdir_flag_spec='-L$libdir'
10209  	  hardcode_libdir_separator=
10210	  fi
10211	  ;;
10212	esac
10213	shared_flag='-shared'
10214	if test "$aix_use_runtimelinking" = yes; then
10215	  shared_flag="$shared_flag "'${wl}-G'
10216	fi
10217      else
10218	# not using gcc
10219	if test "$host_cpu" = ia64; then
10220  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10221  	# chokes on -Wl,-G. The following line is correct:
10222	  shared_flag='-G'
10223	else
10224	  if test "$aix_use_runtimelinking" = yes; then
10225	    shared_flag='${wl}-G'
10226	  else
10227	    shared_flag='${wl}-bM:SRE'
10228	  fi
10229	fi
10230      fi
10231
10232      # It seems that -bexpall does not export symbols beginning with
10233      # underscore (_), so it is better to generate a list of symbols to export.
10234      always_export_symbols=yes
10235      if test "$aix_use_runtimelinking" = yes; then
10236	# Warning - without using the other runtime loading flags (-brtl),
10237	# -berok will link without error, but may produce a broken library.
10238	allow_undefined_flag='-berok'
10239       # Determine the default libpath from the value encoded in an empty executable.
10240       cat >conftest.$ac_ext <<_ACEOF
10241/* confdefs.h.  */
10242_ACEOF
10243cat confdefs.h >>conftest.$ac_ext
10244cat >>conftest.$ac_ext <<_ACEOF
10245/* end confdefs.h.  */
10246
10247#ifdef F77_DUMMY_MAIN
10248
10249#  ifdef __cplusplus
10250     extern "C"
10251#  endif
10252   int F77_DUMMY_MAIN() { return 1; }
10253
10254#endif
10255int
10256main ()
10257{
10258
10259  ;
10260  return 0;
10261}
10262_ACEOF
10263rm -f conftest.$ac_objext conftest$ac_exeext
10264if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10265  (eval $ac_link) 2>conftest.er1
10266  ac_status=$?
10267  grep -v '^ *+' conftest.er1 >conftest.err
10268  rm -f conftest.er1
10269  cat conftest.err >&5
10270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271  (exit $ac_status); } &&
10272	 { ac_try='test -z "$ac_c_werror_flag"
10273			 || test ! -s conftest.err'
10274  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10275  (eval $ac_try) 2>&5
10276  ac_status=$?
10277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278  (exit $ac_status); }; } &&
10279	 { ac_try='test -s conftest$ac_exeext'
10280  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10281  (eval $ac_try) 2>&5
10282  ac_status=$?
10283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10284  (exit $ac_status); }; }; then
10285
10286aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10287}'`
10288# Check for a 64-bit object if we didn't find anything.
10289if 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; }
10290}'`; fi
10291else
10292  echo "$as_me: failed program was:" >&5
10293sed 's/^/| /' conftest.$ac_ext >&5
10294
10295fi
10296rm -f conftest.err conftest.$ac_objext \
10297      conftest$ac_exeext conftest.$ac_ext
10298if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10299
10300       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10301	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"
10302       else
10303	if test "$host_cpu" = ia64; then
10304	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10305	  allow_undefined_flag="-z nodefs"
10306	  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"
10307	else
10308	 # Determine the default libpath from the value encoded in an empty executable.
10309	 cat >conftest.$ac_ext <<_ACEOF
10310/* confdefs.h.  */
10311_ACEOF
10312cat confdefs.h >>conftest.$ac_ext
10313cat >>conftest.$ac_ext <<_ACEOF
10314/* end confdefs.h.  */
10315
10316#ifdef F77_DUMMY_MAIN
10317
10318#  ifdef __cplusplus
10319     extern "C"
10320#  endif
10321   int F77_DUMMY_MAIN() { return 1; }
10322
10323#endif
10324int
10325main ()
10326{
10327
10328  ;
10329  return 0;
10330}
10331_ACEOF
10332rm -f conftest.$ac_objext conftest$ac_exeext
10333if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10334  (eval $ac_link) 2>conftest.er1
10335  ac_status=$?
10336  grep -v '^ *+' conftest.er1 >conftest.err
10337  rm -f conftest.er1
10338  cat conftest.err >&5
10339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10340  (exit $ac_status); } &&
10341	 { ac_try='test -z "$ac_c_werror_flag"
10342			 || test ! -s conftest.err'
10343  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10344  (eval $ac_try) 2>&5
10345  ac_status=$?
10346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10347  (exit $ac_status); }; } &&
10348	 { ac_try='test -s conftest$ac_exeext'
10349  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10350  (eval $ac_try) 2>&5
10351  ac_status=$?
10352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10353  (exit $ac_status); }; }; then
10354
10355aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10356}'`
10357# Check for a 64-bit object if we didn't find anything.
10358if 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; }
10359}'`; fi
10360else
10361  echo "$as_me: failed program was:" >&5
10362sed 's/^/| /' conftest.$ac_ext >&5
10363
10364fi
10365rm -f conftest.err conftest.$ac_objext \
10366      conftest$ac_exeext conftest.$ac_ext
10367if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10368
10369	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10370	  # Warning - without using the other run time loading flags,
10371	  # -berok will link without error, but may produce a broken library.
10372	  no_undefined_flag=' ${wl}-bernotok'
10373	  allow_undefined_flag=' ${wl}-berok'
10374	  # Exported symbols can be pulled into shared objects from archives
10375	  whole_archive_flag_spec='$convenience'
10376	  archive_cmds_need_lc=yes
10377	  # This is similar to how AIX traditionally builds its shared libraries.
10378	  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'
10379	fi
10380      fi
10381      ;;
10382
10383    amigaos*)
10384      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)'
10385      hardcode_libdir_flag_spec='-L$libdir'
10386      hardcode_minus_L=yes
10387      # see comment about different semantics on the GNU ld section
10388      ld_shlibs=no
10389      ;;
10390
10391    bsdi[45]*)
10392      export_dynamic_flag_spec=-rdynamic
10393      ;;
10394
10395    cygwin* | mingw* | pw32*)
10396      # When not using gcc, we currently assume that we are using
10397      # Microsoft Visual C++.
10398      # hardcode_libdir_flag_spec is actually meaningless, as there is
10399      # no search path for DLLs.
10400      hardcode_libdir_flag_spec=' '
10401      allow_undefined_flag=unsupported
10402      # Tell ltmain to make .lib files, not .a files.
10403      libext=lib
10404      # Tell ltmain to make .dll files, not .so files.
10405      shrext_cmds=".dll"
10406      # FIXME: Setting linknames here is a bad hack.
10407      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
10408      # The linker will automatically build a .lib file if we build a DLL.
10409      old_archive_From_new_cmds='true'
10410      # FIXME: Should let the user specify the lib program.
10411      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
10412      fix_srcfile_path='`cygpath -w "$srcfile"`'
10413      enable_shared_with_static_runtimes=yes
10414      ;;
10415
10416    darwin* | rhapsody*)
10417      case $host_os in
10418        rhapsody* | darwin1.[012])
10419         allow_undefined_flag='${wl}-undefined ${wl}suppress'
10420         ;;
10421       *) # Darwin 1.3 on
10422         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10423           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10424         else
10425           case ${MACOSX_DEPLOYMENT_TARGET} in
10426             10.[012])
10427               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10428               ;;
10429             10.*)
10430               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
10431               ;;
10432           esac
10433         fi
10434         ;;
10435      esac
10436      archive_cmds_need_lc=no
10437      hardcode_direct=no
10438      hardcode_automatic=yes
10439      hardcode_shlibpath_var=unsupported
10440      whole_archive_flag_spec=''
10441      link_all_deplibs=yes
10442    if test "$GCC" = yes ; then
10443    	output_verbose_link_cmd='echo'
10444        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10445      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10446      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10447      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}'
10448      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}'
10449    else
10450      case $cc_basename in
10451        xlc*)
10452         output_verbose_link_cmd='echo'
10453         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10454         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10455          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10456         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}'
10457          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}'
10458          ;;
10459       *)
10460         ld_shlibs=no
10461          ;;
10462      esac
10463    fi
10464      ;;
10465
10466    dgux*)
10467      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10468      hardcode_libdir_flag_spec='-L$libdir'
10469      hardcode_shlibpath_var=no
10470      ;;
10471
10472    freebsd1*)
10473      ld_shlibs=no
10474      ;;
10475
10476    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10477    # support.  Future versions do this automatically, but an explicit c++rt0.o
10478    # does not break anything, and helps significantly (at the cost of a little
10479    # extra space).
10480    freebsd2.2*)
10481      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10482      hardcode_libdir_flag_spec='-R$libdir'
10483      hardcode_direct=yes
10484      hardcode_shlibpath_var=no
10485      ;;
10486
10487    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10488    freebsd2*)
10489      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10490      hardcode_direct=yes
10491      hardcode_minus_L=yes
10492      hardcode_shlibpath_var=no
10493      ;;
10494
10495    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10496    freebsd* | kfreebsd*-gnu | dragonfly*)
10497      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10498      hardcode_libdir_flag_spec='-R$libdir'
10499      hardcode_direct=yes
10500      hardcode_shlibpath_var=no
10501      ;;
10502
10503    hpux9*)
10504      if test "$GCC" = yes; then
10505	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'
10506      else
10507	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'
10508      fi
10509      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10510      hardcode_libdir_separator=:
10511      hardcode_direct=yes
10512
10513      # hardcode_minus_L: Not really in the search PATH,
10514      # but as the default location of the library.
10515      hardcode_minus_L=yes
10516      export_dynamic_flag_spec='${wl}-E'
10517      ;;
10518
10519    hpux10*)
10520      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10521	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10522      else
10523	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10524      fi
10525      if test "$with_gnu_ld" = no; then
10526	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10527	hardcode_libdir_separator=:
10528
10529	hardcode_direct=yes
10530	export_dynamic_flag_spec='${wl}-E'
10531
10532	# hardcode_minus_L: Not really in the search PATH,
10533	# but as the default location of the library.
10534	hardcode_minus_L=yes
10535      fi
10536      ;;
10537
10538    hpux11*)
10539      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10540	case $host_cpu in
10541	hppa*64*)
10542	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10543	  ;;
10544	ia64*)
10545	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10546	  ;;
10547	*)
10548	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10549	  ;;
10550	esac
10551      else
10552	case $host_cpu in
10553	hppa*64*)
10554	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10555	  ;;
10556	ia64*)
10557	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10558	  ;;
10559	*)
10560	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10561	  ;;
10562	esac
10563      fi
10564      if test "$with_gnu_ld" = no; then
10565	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10566	hardcode_libdir_separator=:
10567
10568	case $host_cpu in
10569	hppa*64*|ia64*)
10570	  hardcode_libdir_flag_spec_ld='+b $libdir'
10571	  hardcode_direct=no
10572	  hardcode_shlibpath_var=no
10573	  ;;
10574	*)
10575	  hardcode_direct=yes
10576	  export_dynamic_flag_spec='${wl}-E'
10577
10578	  # hardcode_minus_L: Not really in the search PATH,
10579	  # but as the default location of the library.
10580	  hardcode_minus_L=yes
10581	  ;;
10582	esac
10583      fi
10584      ;;
10585
10586    irix5* | irix6* | nonstopux*)
10587      if test "$GCC" = yes; then
10588	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'
10589      else
10590	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'
10591	hardcode_libdir_flag_spec_ld='-rpath $libdir'
10592      fi
10593      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10594      hardcode_libdir_separator=:
10595      link_all_deplibs=yes
10596      ;;
10597
10598    netbsd*)
10599      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10600	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10601      else
10602	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10603      fi
10604      hardcode_libdir_flag_spec='-R$libdir'
10605      hardcode_direct=yes
10606      hardcode_shlibpath_var=no
10607      ;;
10608
10609    newsos6)
10610      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10611      hardcode_direct=yes
10612      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10613      hardcode_libdir_separator=:
10614      hardcode_shlibpath_var=no
10615      ;;
10616
10617    openbsd*)
10618      hardcode_direct=yes
10619      hardcode_shlibpath_var=no
10620      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10621	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10622	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10623	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10624	export_dynamic_flag_spec='${wl}-E'
10625      else
10626       case $host_os in
10627	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10628	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10629	   hardcode_libdir_flag_spec='-R$libdir'
10630	   ;;
10631	 *)
10632	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10633	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10634	   ;;
10635       esac
10636      fi
10637      ;;
10638
10639    os2*)
10640      hardcode_libdir_flag_spec='-L$libdir'
10641      hardcode_minus_L=yes
10642      allow_undefined_flag=unsupported
10643      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'
10644      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10645      ;;
10646
10647    osf3*)
10648      if test "$GCC" = yes; then
10649	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10650	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'
10651      else
10652	allow_undefined_flag=' -expect_unresolved \*'
10653	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'
10654      fi
10655      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10656      hardcode_libdir_separator=:
10657      ;;
10658
10659    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10660      if test "$GCC" = yes; then
10661	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10662	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'
10663	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10664      else
10665	allow_undefined_flag=' -expect_unresolved \*'
10666	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'
10667	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10668	$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'
10669
10670	# Both c and cxx compiler support -rpath directly
10671	hardcode_libdir_flag_spec='-rpath $libdir'
10672      fi
10673      hardcode_libdir_separator=:
10674      ;;
10675
10676    solaris*)
10677      no_undefined_flag=' -z text'
10678      if test "$GCC" = yes; then
10679	wlarc='${wl}'
10680	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10681	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10682	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10683      else
10684	wlarc=''
10685	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10686	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10687  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10688      fi
10689      hardcode_libdir_flag_spec='-R$libdir'
10690      hardcode_shlibpath_var=no
10691      case $host_os in
10692      solaris2.[0-5] | solaris2.[0-5].*) ;;
10693      *)
10694 	# The compiler driver will combine linker options so we
10695 	# cannot just pass the convience library names through
10696 	# without $wl, iff we do not link with $LD.
10697 	# Luckily, gcc supports the same syntax we need for Sun Studio.
10698 	# Supported since Solaris 2.6 (maybe 2.5.1?)
10699 	case $wlarc in
10700 	'')
10701 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
10702 	*)
10703 	  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' ;;
10704 	esac ;;
10705      esac
10706      link_all_deplibs=yes
10707      ;;
10708
10709    sunos4*)
10710      if test "x$host_vendor" = xsequent; then
10711	# Use $CC to link under sequent, because it throws in some extra .o
10712	# files that make .init and .fini sections work.
10713	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10714      else
10715	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10716      fi
10717      hardcode_libdir_flag_spec='-L$libdir'
10718      hardcode_direct=yes
10719      hardcode_minus_L=yes
10720      hardcode_shlibpath_var=no
10721      ;;
10722
10723    sysv4)
10724      case $host_vendor in
10725	sni)
10726	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10727	  hardcode_direct=yes # is this really true???
10728	;;
10729	siemens)
10730	  ## LD is ld it makes a PLAMLIB
10731	  ## CC just makes a GrossModule.
10732	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10733	  reload_cmds='$CC -r -o $output$reload_objs'
10734	  hardcode_direct=no
10735        ;;
10736	motorola)
10737	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10738	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10739	;;
10740      esac
10741      runpath_var='LD_RUN_PATH'
10742      hardcode_shlibpath_var=no
10743      ;;
10744
10745    sysv4.3*)
10746      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10747      hardcode_shlibpath_var=no
10748      export_dynamic_flag_spec='-Bexport'
10749      ;;
10750
10751    sysv4*MP*)
10752      if test -d /usr/nec; then
10753	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10754	hardcode_shlibpath_var=no
10755	runpath_var=LD_RUN_PATH
10756	hardcode_runpath_var=yes
10757	ld_shlibs=yes
10758      fi
10759      ;;
10760
10761    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
10762      no_undefined_flag='${wl}-z,text'
10763      archive_cmds_need_lc=no
10764      hardcode_shlibpath_var=no
10765      runpath_var='LD_RUN_PATH'
10766
10767      if test "$GCC" = yes; then
10768	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10769	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10770      else
10771	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10772	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10773      fi
10774      ;;
10775
10776    sysv5* | sco3.2v5* | sco5v6*)
10777      # Note: We can NOT use -z defs as we might desire, because we do not
10778      # link with -lc, and that would cause any symbols used from libc to
10779      # always be unresolved, which means just about no library would
10780      # ever link correctly.  If we're not using GNU ld we use -z text
10781      # though, which does catch some bad symbols but isn't as heavy-handed
10782      # as -z defs.
10783      no_undefined_flag='${wl}-z,text'
10784      allow_undefined_flag='${wl}-z,nodefs'
10785      archive_cmds_need_lc=no
10786      hardcode_shlibpath_var=no
10787      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10788      hardcode_libdir_separator=':'
10789      link_all_deplibs=yes
10790      export_dynamic_flag_spec='${wl}-Bexport'
10791      runpath_var='LD_RUN_PATH'
10792
10793      if test "$GCC" = yes; then
10794	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10795	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10796      else
10797	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10798	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10799      fi
10800      ;;
10801
10802    uts4*)
10803      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10804      hardcode_libdir_flag_spec='-L$libdir'
10805      hardcode_shlibpath_var=no
10806      ;;
10807
10808    *)
10809      ld_shlibs=no
10810      ;;
10811    esac
10812  fi
10813
10814echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10815echo "${ECHO_T}$ld_shlibs" >&6
10816test "$ld_shlibs" = no && can_build_shared=no
10817
10818#
10819# Do we need to explicitly link libc?
10820#
10821case "x$archive_cmds_need_lc" in
10822x|xyes)
10823  # Assume -lc should be added
10824  archive_cmds_need_lc=yes
10825
10826  if test "$enable_shared" = yes && test "$GCC" = yes; then
10827    case $archive_cmds in
10828    *'~'*)
10829      # FIXME: we may have to deal with multi-command sequences.
10830      ;;
10831    '$CC '*)
10832      # Test whether the compiler implicitly links with -lc since on some
10833      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10834      # to ld, don't add -lc before -lgcc.
10835      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10836echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10837      $rm conftest*
10838      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10839
10840      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10841  (eval $ac_compile) 2>&5
10842  ac_status=$?
10843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10844  (exit $ac_status); } 2>conftest.err; then
10845        soname=conftest
10846        lib=conftest
10847        libobjs=conftest.$ac_objext
10848        deplibs=
10849        wl=$lt_prog_compiler_wl
10850	pic_flag=$lt_prog_compiler_pic
10851        compiler_flags=-v
10852        linker_flags=-v
10853        verstring=
10854        output_objdir=.
10855        libname=conftest
10856        lt_save_allow_undefined_flag=$allow_undefined_flag
10857        allow_undefined_flag=
10858        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10859  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10860  ac_status=$?
10861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10862  (exit $ac_status); }
10863        then
10864	  archive_cmds_need_lc=no
10865        else
10866	  archive_cmds_need_lc=yes
10867        fi
10868        allow_undefined_flag=$lt_save_allow_undefined_flag
10869      else
10870        cat conftest.err 1>&5
10871      fi
10872      $rm conftest*
10873      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10874echo "${ECHO_T}$archive_cmds_need_lc" >&6
10875      ;;
10876    esac
10877  fi
10878  ;;
10879esac
10880
10881echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10882echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10883library_names_spec=
10884libname_spec='lib$name'
10885soname_spec=
10886shrext_cmds=".so"
10887postinstall_cmds=
10888postuninstall_cmds=
10889finish_cmds=
10890finish_eval=
10891shlibpath_var=
10892shlibpath_overrides_runpath=unknown
10893version_type=none
10894dynamic_linker="$host_os ld.so"
10895sys_lib_dlsearch_path_spec="/lib /usr/lib"
10896if test "$GCC" = yes; then
10897  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10898  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10899    # if the path contains ";" then we assume it to be the separator
10900    # otherwise default to the standard path separator (i.e. ":") - it is
10901    # assumed that no part of a normal pathname contains ";" but that should
10902    # okay in the real world where ";" in dirpaths is itself problematic.
10903    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10904  else
10905    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10906  fi
10907else
10908  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10909fi
10910need_lib_prefix=unknown
10911hardcode_into_libs=no
10912
10913# when you set need_version to no, make sure it does not cause -set_version
10914# flags to be left without arguments
10915need_version=unknown
10916
10917case $host_os in
10918aix3*)
10919  version_type=linux
10920  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10921  shlibpath_var=LIBPATH
10922
10923  # AIX 3 has no versioning support, so we append a major version to the name.
10924  soname_spec='${libname}${release}${shared_ext}$major'
10925  ;;
10926
10927aix4* | aix5*)
10928  version_type=linux
10929  need_lib_prefix=no
10930  need_version=no
10931  hardcode_into_libs=yes
10932  if test "$host_cpu" = ia64; then
10933    # AIX 5 supports IA64
10934    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10935    shlibpath_var=LD_LIBRARY_PATH
10936  else
10937    # With GCC up to 2.95.x, collect2 would create an import file
10938    # for dependence libraries.  The import file would start with
10939    # the line `#! .'.  This would cause the generated library to
10940    # depend on `.', always an invalid library.  This was fixed in
10941    # development snapshots of GCC prior to 3.0.
10942    case $host_os in
10943      aix4 | aix4.[01] | aix4.[01].*)
10944      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10945	   echo ' yes '
10946	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10947	:
10948      else
10949	can_build_shared=no
10950      fi
10951      ;;
10952    esac
10953    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10954    # soname into executable. Probably we can add versioning support to
10955    # collect2, so additional links can be useful in future.
10956    if test "$aix_use_runtimelinking" = yes; then
10957      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10958      # instead of lib<name>.a to let people know that these are not
10959      # typical AIX shared libraries.
10960      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10961    else
10962      # We preserve .a as extension for shared libraries through AIX4.2
10963      # and later when we are not doing run time linking.
10964      library_names_spec='${libname}${release}.a $libname.a'
10965      soname_spec='${libname}${release}${shared_ext}$major'
10966    fi
10967    shlibpath_var=LIBPATH
10968  fi
10969  ;;
10970
10971amigaos*)
10972  library_names_spec='$libname.ixlibrary $libname.a'
10973  # Create ${libname}_ixlibrary.a entries in /sys/libs.
10974  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'
10975  ;;
10976
10977beos*)
10978  library_names_spec='${libname}${shared_ext}'
10979  dynamic_linker="$host_os ld.so"
10980  shlibpath_var=LIBRARY_PATH
10981  ;;
10982
10983bsdi[45]*)
10984  version_type=linux
10985  need_version=no
10986  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10987  soname_spec='${libname}${release}${shared_ext}$major'
10988  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10989  shlibpath_var=LD_LIBRARY_PATH
10990  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10991  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10992  # the default ld.so.conf also contains /usr/contrib/lib and
10993  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10994  # libtool to hard-code these into programs
10995  ;;
10996
10997cygwin* | mingw* | pw32*)
10998  version_type=windows
10999  shrext_cmds=".dll"
11000  need_version=no
11001  need_lib_prefix=no
11002
11003  case $GCC,$host_os in
11004  yes,cygwin* | yes,mingw* | yes,pw32*)
11005    library_names_spec='$libname.dll.a'
11006    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11007    postinstall_cmds='base_file=`basename \${file}`~
11008      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11009      dldir=$destdir/`dirname \$dlpath`~
11010      test -d \$dldir || mkdir -p \$dldir~
11011      $install_prog $dir/$dlname \$dldir/$dlname~
11012      chmod a+x \$dldir/$dlname'
11013    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11014      dlpath=$dir/\$dldll~
11015       $rm \$dlpath'
11016    shlibpath_overrides_runpath=yes
11017
11018    case $host_os in
11019    cygwin*)
11020      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11021      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11022      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11023      ;;
11024    mingw*)
11025      # MinGW DLLs use traditional 'lib' prefix
11026      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11027      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11028      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11029        # It is most probably a Windows format PATH printed by
11030        # mingw gcc, but we are running on Cygwin. Gcc prints its search
11031        # path with ; separators, and with drive letters. We can handle the
11032        # drive letters (cygwin fileutils understands them), so leave them,
11033        # especially as we might pass files found there to a mingw objdump,
11034        # which wouldn't understand a cygwinified path. Ahh.
11035        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11036      else
11037        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11038      fi
11039      ;;
11040    pw32*)
11041      # pw32 DLLs use 'pw' prefix rather than 'lib'
11042      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11043      ;;
11044    esac
11045    ;;
11046
11047  *)
11048    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11049    ;;
11050  esac
11051  dynamic_linker='Win32 ld.exe'
11052  # FIXME: first we should search . and the directory the executable is in
11053  shlibpath_var=PATH
11054  ;;
11055
11056darwin* | rhapsody*)
11057  dynamic_linker="$host_os dyld"
11058  version_type=darwin
11059  need_lib_prefix=no
11060  need_version=no
11061  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11062  soname_spec='${libname}${release}${major}$shared_ext'
11063  shlibpath_overrides_runpath=yes
11064  shlibpath_var=DYLD_LIBRARY_PATH
11065  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11066  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11067  if test "$GCC" = yes; then
11068    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"`
11069  else
11070    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11071  fi
11072  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11073  ;;
11074
11075dgux*)
11076  version_type=linux
11077  need_lib_prefix=no
11078  need_version=no
11079  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11080  soname_spec='${libname}${release}${shared_ext}$major'
11081  shlibpath_var=LD_LIBRARY_PATH
11082  ;;
11083
11084freebsd1*)
11085  dynamic_linker=no
11086  ;;
11087
11088kfreebsd*-gnu)
11089  version_type=linux
11090  need_lib_prefix=no
11091  need_version=no
11092  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11093  soname_spec='${libname}${release}${shared_ext}$major'
11094  shlibpath_var=LD_LIBRARY_PATH
11095  shlibpath_overrides_runpath=no
11096  hardcode_into_libs=yes
11097  dynamic_linker='GNU ld.so'
11098  ;;
11099
11100freebsd* | dragonfly*)
11101  # DragonFly does not have aout.  When/if they implement a new
11102  # versioning mechanism, adjust this.
11103  if test -x /usr/bin/objformat; then
11104    objformat=`/usr/bin/objformat`
11105  else
11106    case $host_os in
11107    freebsd[123]*) objformat=aout ;;
11108    *) objformat=elf ;;
11109    esac
11110  fi
11111  version_type=freebsd-$objformat
11112  case $version_type in
11113    freebsd-elf*)
11114      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11115      need_version=no
11116      need_lib_prefix=no
11117      ;;
11118    freebsd-*)
11119      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11120      need_version=yes
11121      ;;
11122  esac
11123  shlibpath_var=LD_LIBRARY_PATH
11124  case $host_os in
11125  freebsd2*)
11126    shlibpath_overrides_runpath=yes
11127    ;;
11128  freebsd3.[01]* | freebsdelf3.[01]*)
11129    shlibpath_overrides_runpath=yes
11130    hardcode_into_libs=yes
11131    ;;
11132  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11133  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11134    shlibpath_overrides_runpath=no
11135    hardcode_into_libs=yes
11136    ;;
11137  freebsd*) # from 4.6 on
11138    shlibpath_overrides_runpath=yes
11139    hardcode_into_libs=yes
11140    ;;
11141  esac
11142  ;;
11143
11144gnu*)
11145  version_type=linux
11146  need_lib_prefix=no
11147  need_version=no
11148  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11149  soname_spec='${libname}${release}${shared_ext}$major'
11150  shlibpath_var=LD_LIBRARY_PATH
11151  hardcode_into_libs=yes
11152  ;;
11153
11154hpux9* | hpux10* | hpux11*)
11155  # Give a soname corresponding to the major version so that dld.sl refuses to
11156  # link against other versions.
11157  version_type=sunos
11158  need_lib_prefix=no
11159  need_version=no
11160  case $host_cpu in
11161  ia64*)
11162    shrext_cmds='.so'
11163    hardcode_into_libs=yes
11164    dynamic_linker="$host_os dld.so"
11165    shlibpath_var=LD_LIBRARY_PATH
11166    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11167    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11168    soname_spec='${libname}${release}${shared_ext}$major'
11169    if test "X$HPUX_IA64_MODE" = X32; then
11170      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11171    else
11172      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11173    fi
11174    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11175    ;;
11176   hppa*64*)
11177     shrext_cmds='.sl'
11178     hardcode_into_libs=yes
11179     dynamic_linker="$host_os dld.sl"
11180     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11181     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11182     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11183     soname_spec='${libname}${release}${shared_ext}$major'
11184     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11185     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11186     ;;
11187   *)
11188    shrext_cmds='.sl'
11189    dynamic_linker="$host_os dld.sl"
11190    shlibpath_var=SHLIB_PATH
11191    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11192    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11193    soname_spec='${libname}${release}${shared_ext}$major'
11194    ;;
11195  esac
11196  # HP-UX runs *really* slowly unless shared libraries are mode 555.
11197  postinstall_cmds='chmod 555 $lib'
11198  ;;
11199
11200interix3*)
11201  version_type=linux
11202  need_lib_prefix=no
11203  need_version=no
11204  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11205  soname_spec='${libname}${release}${shared_ext}$major'
11206  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11207  shlibpath_var=LD_LIBRARY_PATH
11208  shlibpath_overrides_runpath=no
11209  hardcode_into_libs=yes
11210  ;;
11211
11212irix5* | irix6* | nonstopux*)
11213  case $host_os in
11214    nonstopux*) version_type=nonstopux ;;
11215    *)
11216	if test "$lt_cv_prog_gnu_ld" = yes; then
11217		version_type=linux
11218	else
11219		version_type=irix
11220	fi ;;
11221  esac
11222  need_lib_prefix=no
11223  need_version=no
11224  soname_spec='${libname}${release}${shared_ext}$major'
11225  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11226  case $host_os in
11227  irix5* | nonstopux*)
11228    libsuff= shlibsuff=
11229    ;;
11230  *)
11231    case $LD in # libtool.m4 will add one of these switches to LD
11232    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11233      libsuff= shlibsuff= libmagic=32-bit;;
11234    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11235      libsuff=32 shlibsuff=N32 libmagic=N32;;
11236    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11237      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11238    *) libsuff= shlibsuff= libmagic=never-match;;
11239    esac
11240    ;;
11241  esac
11242  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11243  shlibpath_overrides_runpath=no
11244  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11245  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11246  hardcode_into_libs=yes
11247  ;;
11248
11249# No shared lib support for Linux oldld, aout, or coff.
11250linux*oldld* | linux*aout* | linux*coff*)
11251  dynamic_linker=no
11252  ;;
11253
11254# This must be Linux ELF.
11255linux*)
11256  version_type=linux
11257  need_lib_prefix=no
11258  need_version=no
11259  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11260  soname_spec='${libname}${release}${shared_ext}$major'
11261  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11262  shlibpath_var=LD_LIBRARY_PATH
11263  shlibpath_overrides_runpath=no
11264  # This implies no fast_install, which is unacceptable.
11265  # Some rework will be needed to allow for fast_install
11266  # before this can be enabled.
11267  hardcode_into_libs=yes
11268
11269  # Append ld.so.conf contents to the search path
11270  if test -f /etc/ld.so.conf; then
11271    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' ' '`
11272    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11273  fi
11274
11275  # We used to test for /lib/ld.so.1 and disable shared libraries on
11276  # powerpc, because MkLinux only supported shared libraries with the
11277  # GNU dynamic linker.  Since this was broken with cross compilers,
11278  # most powerpc-linux boxes support dynamic linking these days and
11279  # people can always --disable-shared, the test was removed, and we
11280  # assume the GNU/Linux dynamic linker is in use.
11281  dynamic_linker='GNU/Linux ld.so'
11282  ;;
11283
11284knetbsd*-gnu)
11285  version_type=linux
11286  need_lib_prefix=no
11287  need_version=no
11288  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11289  soname_spec='${libname}${release}${shared_ext}$major'
11290  shlibpath_var=LD_LIBRARY_PATH
11291  shlibpath_overrides_runpath=no
11292  hardcode_into_libs=yes
11293  dynamic_linker='GNU ld.so'
11294  ;;
11295
11296netbsd*)
11297  version_type=sunos
11298  need_lib_prefix=no
11299  need_version=no
11300  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11301    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11302    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11303    dynamic_linker='NetBSD (a.out) ld.so'
11304  else
11305    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11306    soname_spec='${libname}${release}${shared_ext}$major'
11307    dynamic_linker='NetBSD ld.elf_so'
11308  fi
11309  shlibpath_var=LD_LIBRARY_PATH
11310  shlibpath_overrides_runpath=yes
11311  hardcode_into_libs=yes
11312  ;;
11313
11314newsos6)
11315  version_type=linux
11316  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11317  shlibpath_var=LD_LIBRARY_PATH
11318  shlibpath_overrides_runpath=yes
11319  ;;
11320
11321nto-qnx*)
11322  version_type=linux
11323  need_lib_prefix=no
11324  need_version=no
11325  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11326  soname_spec='${libname}${release}${shared_ext}$major'
11327  shlibpath_var=LD_LIBRARY_PATH
11328  shlibpath_overrides_runpath=yes
11329  ;;
11330
11331openbsd*)
11332  version_type=sunos
11333  sys_lib_dlsearch_path_spec="/usr/lib"
11334  need_lib_prefix=no
11335  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11336  case $host_os in
11337    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11338    *)                         need_version=no  ;;
11339  esac
11340  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11341  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11342  shlibpath_var=LD_LIBRARY_PATH
11343  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11344    case $host_os in
11345      openbsd2.[89] | openbsd2.[89].*)
11346	shlibpath_overrides_runpath=no
11347	;;
11348      *)
11349	shlibpath_overrides_runpath=yes
11350	;;
11351      esac
11352  else
11353    shlibpath_overrides_runpath=yes
11354  fi
11355  ;;
11356
11357os2*)
11358  libname_spec='$name'
11359  shrext_cmds=".dll"
11360  need_lib_prefix=no
11361  library_names_spec='$libname${shared_ext} $libname.a'
11362  dynamic_linker='OS/2 ld.exe'
11363  shlibpath_var=LIBPATH
11364  ;;
11365
11366osf3* | osf4* | osf5*)
11367  version_type=osf
11368  need_lib_prefix=no
11369  need_version=no
11370  soname_spec='${libname}${release}${shared_ext}$major'
11371  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11372  shlibpath_var=LD_LIBRARY_PATH
11373  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11374  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11375  ;;
11376
11377solaris*)
11378  version_type=linux
11379  need_lib_prefix=no
11380  need_version=no
11381  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11382  soname_spec='${libname}${release}${shared_ext}$major'
11383  shlibpath_var=LD_LIBRARY_PATH
11384  shlibpath_overrides_runpath=yes
11385  hardcode_into_libs=yes
11386  # ldd complains unless libraries are executable
11387  postinstall_cmds='chmod +x $lib'
11388  ;;
11389
11390sunos4*)
11391  version_type=sunos
11392  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11393  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11394  shlibpath_var=LD_LIBRARY_PATH
11395  shlibpath_overrides_runpath=yes
11396  if test "$with_gnu_ld" = yes; then
11397    need_lib_prefix=no
11398  fi
11399  need_version=yes
11400  ;;
11401
11402sysv4 | sysv4.3*)
11403  version_type=linux
11404  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11405  soname_spec='${libname}${release}${shared_ext}$major'
11406  shlibpath_var=LD_LIBRARY_PATH
11407  case $host_vendor in
11408    sni)
11409      shlibpath_overrides_runpath=no
11410      need_lib_prefix=no
11411      export_dynamic_flag_spec='${wl}-Blargedynsym'
11412      runpath_var=LD_RUN_PATH
11413      ;;
11414    siemens)
11415      need_lib_prefix=no
11416      ;;
11417    motorola)
11418      need_lib_prefix=no
11419      need_version=no
11420      shlibpath_overrides_runpath=no
11421      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11422      ;;
11423  esac
11424  ;;
11425
11426sysv4*MP*)
11427  if test -d /usr/nec ;then
11428    version_type=linux
11429    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11430    soname_spec='$libname${shared_ext}.$major'
11431    shlibpath_var=LD_LIBRARY_PATH
11432  fi
11433  ;;
11434
11435sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11436  version_type=freebsd-elf
11437  need_lib_prefix=no
11438  need_version=no
11439  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11440  soname_spec='${libname}${release}${shared_ext}$major'
11441  shlibpath_var=LD_LIBRARY_PATH
11442  hardcode_into_libs=yes
11443  if test "$with_gnu_ld" = yes; then
11444    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11445    shlibpath_overrides_runpath=no
11446  else
11447    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11448    shlibpath_overrides_runpath=yes
11449    case $host_os in
11450      sco3.2v5*)
11451        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11452	;;
11453    esac
11454  fi
11455  sys_lib_dlsearch_path_spec='/usr/lib'
11456  ;;
11457
11458uts4*)
11459  version_type=linux
11460  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11461  soname_spec='${libname}${release}${shared_ext}$major'
11462  shlibpath_var=LD_LIBRARY_PATH
11463  ;;
11464
11465*)
11466  dynamic_linker=no
11467  ;;
11468esac
11469echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11470echo "${ECHO_T}$dynamic_linker" >&6
11471test "$dynamic_linker" = no && can_build_shared=no
11472
11473variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11474if test "$GCC" = yes; then
11475  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11476fi
11477
11478echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11479echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11480hardcode_action=
11481if test -n "$hardcode_libdir_flag_spec" || \
11482   test -n "$runpath_var" || \
11483   test "X$hardcode_automatic" = "Xyes" ; then
11484
11485  # We can hardcode non-existant directories.
11486  if test "$hardcode_direct" != no &&
11487     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11488     # have to relink, otherwise we might link with an installed library
11489     # when we should be linking with a yet-to-be-installed one
11490     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
11491     test "$hardcode_minus_L" != no; then
11492    # Linking always hardcodes the temporary library directory.
11493    hardcode_action=relink
11494  else
11495    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11496    hardcode_action=immediate
11497  fi
11498else
11499  # We cannot hardcode anything, or else we can only hardcode existing
11500  # directories.
11501  hardcode_action=unsupported
11502fi
11503echo "$as_me:$LINENO: result: $hardcode_action" >&5
11504echo "${ECHO_T}$hardcode_action" >&6
11505
11506if test "$hardcode_action" = relink; then
11507  # Fast installation is not supported
11508  enable_fast_install=no
11509elif test "$shlibpath_overrides_runpath" = yes ||
11510     test "$enable_shared" = no; then
11511  # Fast installation is not necessary
11512  enable_fast_install=needless
11513fi
11514
11515striplib=
11516old_striplib=
11517echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11518echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11519if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11520  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11521  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11522  echo "$as_me:$LINENO: result: yes" >&5
11523echo "${ECHO_T}yes" >&6
11524else
11525# FIXME - insert some real tests, host_os isn't really good enough
11526  case $host_os in
11527   darwin*)
11528       if test -n "$STRIP" ; then
11529         striplib="$STRIP -x"
11530         echo "$as_me:$LINENO: result: yes" >&5
11531echo "${ECHO_T}yes" >&6
11532       else
11533  echo "$as_me:$LINENO: result: no" >&5
11534echo "${ECHO_T}no" >&6
11535fi
11536       ;;
11537   *)
11538  echo "$as_me:$LINENO: result: no" >&5
11539echo "${ECHO_T}no" >&6
11540    ;;
11541  esac
11542fi
11543
11544if test "x$enable_dlopen" != xyes; then
11545  enable_dlopen=unknown
11546  enable_dlopen_self=unknown
11547  enable_dlopen_self_static=unknown
11548else
11549  lt_cv_dlopen=no
11550  lt_cv_dlopen_libs=
11551
11552  case $host_os in
11553  beos*)
11554    lt_cv_dlopen="load_add_on"
11555    lt_cv_dlopen_libs=
11556    lt_cv_dlopen_self=yes
11557    ;;
11558
11559  mingw* | pw32*)
11560    lt_cv_dlopen="LoadLibrary"
11561    lt_cv_dlopen_libs=
11562   ;;
11563
11564  cygwin*)
11565    lt_cv_dlopen="dlopen"
11566    lt_cv_dlopen_libs=
11567   ;;
11568
11569  darwin*)
11570  # if libdl is installed we need to link against it
11571    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11572echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11573if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11574  echo $ECHO_N "(cached) $ECHO_C" >&6
11575else
11576  ac_check_lib_save_LIBS=$LIBS
11577LIBS="-ldl  $LIBS"
11578cat >conftest.$ac_ext <<_ACEOF
11579/* confdefs.h.  */
11580_ACEOF
11581cat confdefs.h >>conftest.$ac_ext
11582cat >>conftest.$ac_ext <<_ACEOF
11583/* end confdefs.h.  */
11584
11585/* Override any gcc2 internal prototype to avoid an error.  */
11586#ifdef __cplusplus
11587extern "C"
11588#endif
11589/* We use char because int might match the return type of a gcc2
11590   builtin and then its argument prototype would still apply.  */
11591char dlopen ();
11592#ifdef F77_DUMMY_MAIN
11593
11594#  ifdef __cplusplus
11595     extern "C"
11596#  endif
11597   int F77_DUMMY_MAIN() { return 1; }
11598
11599#endif
11600int
11601main ()
11602{
11603dlopen ();
11604  ;
11605  return 0;
11606}
11607_ACEOF
11608rm -f conftest.$ac_objext conftest$ac_exeext
11609if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11610  (eval $ac_link) 2>conftest.er1
11611  ac_status=$?
11612  grep -v '^ *+' conftest.er1 >conftest.err
11613  rm -f conftest.er1
11614  cat conftest.err >&5
11615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11616  (exit $ac_status); } &&
11617	 { ac_try='test -z "$ac_c_werror_flag"
11618			 || test ! -s conftest.err'
11619  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11620  (eval $ac_try) 2>&5
11621  ac_status=$?
11622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11623  (exit $ac_status); }; } &&
11624	 { ac_try='test -s conftest$ac_exeext'
11625  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11626  (eval $ac_try) 2>&5
11627  ac_status=$?
11628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629  (exit $ac_status); }; }; then
11630  ac_cv_lib_dl_dlopen=yes
11631else
11632  echo "$as_me: failed program was:" >&5
11633sed 's/^/| /' conftest.$ac_ext >&5
11634
11635ac_cv_lib_dl_dlopen=no
11636fi
11637rm -f conftest.err conftest.$ac_objext \
11638      conftest$ac_exeext conftest.$ac_ext
11639LIBS=$ac_check_lib_save_LIBS
11640fi
11641echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11642echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11643if test $ac_cv_lib_dl_dlopen = yes; then
11644  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11645else
11646
11647    lt_cv_dlopen="dyld"
11648    lt_cv_dlopen_libs=
11649    lt_cv_dlopen_self=yes
11650
11651fi
11652
11653   ;;
11654
11655  *)
11656    echo "$as_me:$LINENO: checking for shl_load" >&5
11657echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11658if test "${ac_cv_func_shl_load+set}" = set; then
11659  echo $ECHO_N "(cached) $ECHO_C" >&6
11660else
11661  cat >conftest.$ac_ext <<_ACEOF
11662/* confdefs.h.  */
11663_ACEOF
11664cat confdefs.h >>conftest.$ac_ext
11665cat >>conftest.$ac_ext <<_ACEOF
11666/* end confdefs.h.  */
11667/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11668   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11669#define shl_load innocuous_shl_load
11670
11671/* System header to define __stub macros and hopefully few prototypes,
11672    which can conflict with char shl_load (); below.
11673    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11674    <limits.h> exists even on freestanding compilers.  */
11675
11676#ifdef __STDC__
11677# include <limits.h>
11678#else
11679# include <assert.h>
11680#endif
11681
11682#undef shl_load
11683
11684/* Override any gcc2 internal prototype to avoid an error.  */
11685#ifdef __cplusplus
11686extern "C"
11687{
11688#endif
11689/* We use char because int might match the return type of a gcc2
11690   builtin and then its argument prototype would still apply.  */
11691char shl_load ();
11692/* The GNU C library defines this for functions which it implements
11693    to always fail with ENOSYS.  Some functions are actually named
11694    something starting with __ and the normal name is an alias.  */
11695#if defined (__stub_shl_load) || defined (__stub___shl_load)
11696choke me
11697#else
11698char (*f) () = shl_load;
11699#endif
11700#ifdef __cplusplus
11701}
11702#endif
11703
11704#ifdef F77_DUMMY_MAIN
11705
11706#  ifdef __cplusplus
11707     extern "C"
11708#  endif
11709   int F77_DUMMY_MAIN() { return 1; }
11710
11711#endif
11712int
11713main ()
11714{
11715return f != shl_load;
11716  ;
11717  return 0;
11718}
11719_ACEOF
11720rm -f conftest.$ac_objext conftest$ac_exeext
11721if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11722  (eval $ac_link) 2>conftest.er1
11723  ac_status=$?
11724  grep -v '^ *+' conftest.er1 >conftest.err
11725  rm -f conftest.er1
11726  cat conftest.err >&5
11727  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728  (exit $ac_status); } &&
11729	 { ac_try='test -z "$ac_c_werror_flag"
11730			 || test ! -s conftest.err'
11731  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11732  (eval $ac_try) 2>&5
11733  ac_status=$?
11734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735  (exit $ac_status); }; } &&
11736	 { ac_try='test -s conftest$ac_exeext'
11737  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11738  (eval $ac_try) 2>&5
11739  ac_status=$?
11740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11741  (exit $ac_status); }; }; then
11742  ac_cv_func_shl_load=yes
11743else
11744  echo "$as_me: failed program was:" >&5
11745sed 's/^/| /' conftest.$ac_ext >&5
11746
11747ac_cv_func_shl_load=no
11748fi
11749rm -f conftest.err conftest.$ac_objext \
11750      conftest$ac_exeext conftest.$ac_ext
11751fi
11752echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11753echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11754if test $ac_cv_func_shl_load = yes; then
11755  lt_cv_dlopen="shl_load"
11756else
11757  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11758echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11759if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11760  echo $ECHO_N "(cached) $ECHO_C" >&6
11761else
11762  ac_check_lib_save_LIBS=$LIBS
11763LIBS="-ldld  $LIBS"
11764cat >conftest.$ac_ext <<_ACEOF
11765/* confdefs.h.  */
11766_ACEOF
11767cat confdefs.h >>conftest.$ac_ext
11768cat >>conftest.$ac_ext <<_ACEOF
11769/* end confdefs.h.  */
11770
11771/* Override any gcc2 internal prototype to avoid an error.  */
11772#ifdef __cplusplus
11773extern "C"
11774#endif
11775/* We use char because int might match the return type of a gcc2
11776   builtin and then its argument prototype would still apply.  */
11777char shl_load ();
11778#ifdef F77_DUMMY_MAIN
11779
11780#  ifdef __cplusplus
11781     extern "C"
11782#  endif
11783   int F77_DUMMY_MAIN() { return 1; }
11784
11785#endif
11786int
11787main ()
11788{
11789shl_load ();
11790  ;
11791  return 0;
11792}
11793_ACEOF
11794rm -f conftest.$ac_objext conftest$ac_exeext
11795if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11796  (eval $ac_link) 2>conftest.er1
11797  ac_status=$?
11798  grep -v '^ *+' conftest.er1 >conftest.err
11799  rm -f conftest.er1
11800  cat conftest.err >&5
11801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11802  (exit $ac_status); } &&
11803	 { ac_try='test -z "$ac_c_werror_flag"
11804			 || test ! -s conftest.err'
11805  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11806  (eval $ac_try) 2>&5
11807  ac_status=$?
11808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11809  (exit $ac_status); }; } &&
11810	 { ac_try='test -s conftest$ac_exeext'
11811  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11812  (eval $ac_try) 2>&5
11813  ac_status=$?
11814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815  (exit $ac_status); }; }; then
11816  ac_cv_lib_dld_shl_load=yes
11817else
11818  echo "$as_me: failed program was:" >&5
11819sed 's/^/| /' conftest.$ac_ext >&5
11820
11821ac_cv_lib_dld_shl_load=no
11822fi
11823rm -f conftest.err conftest.$ac_objext \
11824      conftest$ac_exeext conftest.$ac_ext
11825LIBS=$ac_check_lib_save_LIBS
11826fi
11827echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11828echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11829if test $ac_cv_lib_dld_shl_load = yes; then
11830  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11831else
11832  echo "$as_me:$LINENO: checking for dlopen" >&5
11833echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11834if test "${ac_cv_func_dlopen+set}" = set; then
11835  echo $ECHO_N "(cached) $ECHO_C" >&6
11836else
11837  cat >conftest.$ac_ext <<_ACEOF
11838/* confdefs.h.  */
11839_ACEOF
11840cat confdefs.h >>conftest.$ac_ext
11841cat >>conftest.$ac_ext <<_ACEOF
11842/* end confdefs.h.  */
11843/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11844   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11845#define dlopen innocuous_dlopen
11846
11847/* System header to define __stub macros and hopefully few prototypes,
11848    which can conflict with char dlopen (); below.
11849    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11850    <limits.h> exists even on freestanding compilers.  */
11851
11852#ifdef __STDC__
11853# include <limits.h>
11854#else
11855# include <assert.h>
11856#endif
11857
11858#undef dlopen
11859
11860/* Override any gcc2 internal prototype to avoid an error.  */
11861#ifdef __cplusplus
11862extern "C"
11863{
11864#endif
11865/* We use char because int might match the return type of a gcc2
11866   builtin and then its argument prototype would still apply.  */
11867char dlopen ();
11868/* The GNU C library defines this for functions which it implements
11869    to always fail with ENOSYS.  Some functions are actually named
11870    something starting with __ and the normal name is an alias.  */
11871#if defined (__stub_dlopen) || defined (__stub___dlopen)
11872choke me
11873#else
11874char (*f) () = dlopen;
11875#endif
11876#ifdef __cplusplus
11877}
11878#endif
11879
11880#ifdef F77_DUMMY_MAIN
11881
11882#  ifdef __cplusplus
11883     extern "C"
11884#  endif
11885   int F77_DUMMY_MAIN() { return 1; }
11886
11887#endif
11888int
11889main ()
11890{
11891return f != dlopen;
11892  ;
11893  return 0;
11894}
11895_ACEOF
11896rm -f conftest.$ac_objext conftest$ac_exeext
11897if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11898  (eval $ac_link) 2>conftest.er1
11899  ac_status=$?
11900  grep -v '^ *+' conftest.er1 >conftest.err
11901  rm -f conftest.er1
11902  cat conftest.err >&5
11903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904  (exit $ac_status); } &&
11905	 { ac_try='test -z "$ac_c_werror_flag"
11906			 || test ! -s conftest.err'
11907  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11908  (eval $ac_try) 2>&5
11909  ac_status=$?
11910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911  (exit $ac_status); }; } &&
11912	 { ac_try='test -s conftest$ac_exeext'
11913  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11914  (eval $ac_try) 2>&5
11915  ac_status=$?
11916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917  (exit $ac_status); }; }; then
11918  ac_cv_func_dlopen=yes
11919else
11920  echo "$as_me: failed program was:" >&5
11921sed 's/^/| /' conftest.$ac_ext >&5
11922
11923ac_cv_func_dlopen=no
11924fi
11925rm -f conftest.err conftest.$ac_objext \
11926      conftest$ac_exeext conftest.$ac_ext
11927fi
11928echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11929echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11930if test $ac_cv_func_dlopen = yes; then
11931  lt_cv_dlopen="dlopen"
11932else
11933  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11934echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11935if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11936  echo $ECHO_N "(cached) $ECHO_C" >&6
11937else
11938  ac_check_lib_save_LIBS=$LIBS
11939LIBS="-ldl  $LIBS"
11940cat >conftest.$ac_ext <<_ACEOF
11941/* confdefs.h.  */
11942_ACEOF
11943cat confdefs.h >>conftest.$ac_ext
11944cat >>conftest.$ac_ext <<_ACEOF
11945/* end confdefs.h.  */
11946
11947/* Override any gcc2 internal prototype to avoid an error.  */
11948#ifdef __cplusplus
11949extern "C"
11950#endif
11951/* We use char because int might match the return type of a gcc2
11952   builtin and then its argument prototype would still apply.  */
11953char dlopen ();
11954#ifdef F77_DUMMY_MAIN
11955
11956#  ifdef __cplusplus
11957     extern "C"
11958#  endif
11959   int F77_DUMMY_MAIN() { return 1; }
11960
11961#endif
11962int
11963main ()
11964{
11965dlopen ();
11966  ;
11967  return 0;
11968}
11969_ACEOF
11970rm -f conftest.$ac_objext conftest$ac_exeext
11971if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11972  (eval $ac_link) 2>conftest.er1
11973  ac_status=$?
11974  grep -v '^ *+' conftest.er1 >conftest.err
11975  rm -f conftest.er1
11976  cat conftest.err >&5
11977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978  (exit $ac_status); } &&
11979	 { ac_try='test -z "$ac_c_werror_flag"
11980			 || test ! -s conftest.err'
11981  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11982  (eval $ac_try) 2>&5
11983  ac_status=$?
11984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985  (exit $ac_status); }; } &&
11986	 { ac_try='test -s conftest$ac_exeext'
11987  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11988  (eval $ac_try) 2>&5
11989  ac_status=$?
11990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11991  (exit $ac_status); }; }; then
11992  ac_cv_lib_dl_dlopen=yes
11993else
11994  echo "$as_me: failed program was:" >&5
11995sed 's/^/| /' conftest.$ac_ext >&5
11996
11997ac_cv_lib_dl_dlopen=no
11998fi
11999rm -f conftest.err conftest.$ac_objext \
12000      conftest$ac_exeext conftest.$ac_ext
12001LIBS=$ac_check_lib_save_LIBS
12002fi
12003echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12004echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12005if test $ac_cv_lib_dl_dlopen = yes; then
12006  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12007else
12008  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12009echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12010if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12011  echo $ECHO_N "(cached) $ECHO_C" >&6
12012else
12013  ac_check_lib_save_LIBS=$LIBS
12014LIBS="-lsvld  $LIBS"
12015cat >conftest.$ac_ext <<_ACEOF
12016/* confdefs.h.  */
12017_ACEOF
12018cat confdefs.h >>conftest.$ac_ext
12019cat >>conftest.$ac_ext <<_ACEOF
12020/* end confdefs.h.  */
12021
12022/* Override any gcc2 internal prototype to avoid an error.  */
12023#ifdef __cplusplus
12024extern "C"
12025#endif
12026/* We use char because int might match the return type of a gcc2
12027   builtin and then its argument prototype would still apply.  */
12028char dlopen ();
12029#ifdef F77_DUMMY_MAIN
12030
12031#  ifdef __cplusplus
12032     extern "C"
12033#  endif
12034   int F77_DUMMY_MAIN() { return 1; }
12035
12036#endif
12037int
12038main ()
12039{
12040dlopen ();
12041  ;
12042  return 0;
12043}
12044_ACEOF
12045rm -f conftest.$ac_objext conftest$ac_exeext
12046if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12047  (eval $ac_link) 2>conftest.er1
12048  ac_status=$?
12049  grep -v '^ *+' conftest.er1 >conftest.err
12050  rm -f conftest.er1
12051  cat conftest.err >&5
12052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053  (exit $ac_status); } &&
12054	 { ac_try='test -z "$ac_c_werror_flag"
12055			 || test ! -s conftest.err'
12056  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12057  (eval $ac_try) 2>&5
12058  ac_status=$?
12059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060  (exit $ac_status); }; } &&
12061	 { ac_try='test -s conftest$ac_exeext'
12062  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12063  (eval $ac_try) 2>&5
12064  ac_status=$?
12065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066  (exit $ac_status); }; }; then
12067  ac_cv_lib_svld_dlopen=yes
12068else
12069  echo "$as_me: failed program was:" >&5
12070sed 's/^/| /' conftest.$ac_ext >&5
12071
12072ac_cv_lib_svld_dlopen=no
12073fi
12074rm -f conftest.err conftest.$ac_objext \
12075      conftest$ac_exeext conftest.$ac_ext
12076LIBS=$ac_check_lib_save_LIBS
12077fi
12078echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12079echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12080if test $ac_cv_lib_svld_dlopen = yes; then
12081  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12082else
12083  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12084echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12085if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12086  echo $ECHO_N "(cached) $ECHO_C" >&6
12087else
12088  ac_check_lib_save_LIBS=$LIBS
12089LIBS="-ldld  $LIBS"
12090cat >conftest.$ac_ext <<_ACEOF
12091/* confdefs.h.  */
12092_ACEOF
12093cat confdefs.h >>conftest.$ac_ext
12094cat >>conftest.$ac_ext <<_ACEOF
12095/* end confdefs.h.  */
12096
12097/* Override any gcc2 internal prototype to avoid an error.  */
12098#ifdef __cplusplus
12099extern "C"
12100#endif
12101/* We use char because int might match the return type of a gcc2
12102   builtin and then its argument prototype would still apply.  */
12103char dld_link ();
12104#ifdef F77_DUMMY_MAIN
12105
12106#  ifdef __cplusplus
12107     extern "C"
12108#  endif
12109   int F77_DUMMY_MAIN() { return 1; }
12110
12111#endif
12112int
12113main ()
12114{
12115dld_link ();
12116  ;
12117  return 0;
12118}
12119_ACEOF
12120rm -f conftest.$ac_objext conftest$ac_exeext
12121if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12122  (eval $ac_link) 2>conftest.er1
12123  ac_status=$?
12124  grep -v '^ *+' conftest.er1 >conftest.err
12125  rm -f conftest.er1
12126  cat conftest.err >&5
12127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128  (exit $ac_status); } &&
12129	 { ac_try='test -z "$ac_c_werror_flag"
12130			 || test ! -s conftest.err'
12131  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12132  (eval $ac_try) 2>&5
12133  ac_status=$?
12134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12135  (exit $ac_status); }; } &&
12136	 { ac_try='test -s conftest$ac_exeext'
12137  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12138  (eval $ac_try) 2>&5
12139  ac_status=$?
12140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12141  (exit $ac_status); }; }; then
12142  ac_cv_lib_dld_dld_link=yes
12143else
12144  echo "$as_me: failed program was:" >&5
12145sed 's/^/| /' conftest.$ac_ext >&5
12146
12147ac_cv_lib_dld_dld_link=no
12148fi
12149rm -f conftest.err conftest.$ac_objext \
12150      conftest$ac_exeext conftest.$ac_ext
12151LIBS=$ac_check_lib_save_LIBS
12152fi
12153echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12154echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12155if test $ac_cv_lib_dld_dld_link = yes; then
12156  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12157fi
12158
12159
12160fi
12161
12162
12163fi
12164
12165
12166fi
12167
12168
12169fi
12170
12171
12172fi
12173
12174    ;;
12175  esac
12176
12177  if test "x$lt_cv_dlopen" != xno; then
12178    enable_dlopen=yes
12179  else
12180    enable_dlopen=no
12181  fi
12182
12183  case $lt_cv_dlopen in
12184  dlopen)
12185    save_CPPFLAGS="$CPPFLAGS"
12186    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12187
12188    save_LDFLAGS="$LDFLAGS"
12189    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12190
12191    save_LIBS="$LIBS"
12192    LIBS="$lt_cv_dlopen_libs $LIBS"
12193
12194    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12195echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12196if test "${lt_cv_dlopen_self+set}" = set; then
12197  echo $ECHO_N "(cached) $ECHO_C" >&6
12198else
12199  	  if test "$cross_compiling" = yes; then :
12200  lt_cv_dlopen_self=cross
12201else
12202  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12203  lt_status=$lt_dlunknown
12204  cat > conftest.$ac_ext <<EOF
12205#line 12205 "configure"
12206#include "confdefs.h"
12207
12208#if HAVE_DLFCN_H
12209#include <dlfcn.h>
12210#endif
12211
12212#include <stdio.h>
12213
12214#ifdef RTLD_GLOBAL
12215#  define LT_DLGLOBAL		RTLD_GLOBAL
12216#else
12217#  ifdef DL_GLOBAL
12218#    define LT_DLGLOBAL		DL_GLOBAL
12219#  else
12220#    define LT_DLGLOBAL		0
12221#  endif
12222#endif
12223
12224/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12225   find out it does not work in some platform. */
12226#ifndef LT_DLLAZY_OR_NOW
12227#  ifdef RTLD_LAZY
12228#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12229#  else
12230#    ifdef DL_LAZY
12231#      define LT_DLLAZY_OR_NOW		DL_LAZY
12232#    else
12233#      ifdef RTLD_NOW
12234#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12235#      else
12236#        ifdef DL_NOW
12237#          define LT_DLLAZY_OR_NOW	DL_NOW
12238#        else
12239#          define LT_DLLAZY_OR_NOW	0
12240#        endif
12241#      endif
12242#    endif
12243#  endif
12244#endif
12245
12246#ifdef __cplusplus
12247extern "C" void exit (int);
12248#endif
12249
12250void fnord() { int i=42;}
12251int main ()
12252{
12253  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12254  int status = $lt_dlunknown;
12255
12256  if (self)
12257    {
12258      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12259      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12260      /* dlclose (self); */
12261    }
12262  else
12263    puts (dlerror ());
12264
12265    exit (status);
12266}
12267EOF
12268  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12269  (eval $ac_link) 2>&5
12270  ac_status=$?
12271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12272  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12273    (./conftest; exit; ) >&5 2>/dev/null
12274    lt_status=$?
12275    case x$lt_status in
12276      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12277      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12278      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12279    esac
12280  else :
12281    # compilation failed
12282    lt_cv_dlopen_self=no
12283  fi
12284fi
12285rm -fr conftest*
12286
12287
12288fi
12289echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12290echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12291
12292    if test "x$lt_cv_dlopen_self" = xyes; then
12293      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12294      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12295echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12296if test "${lt_cv_dlopen_self_static+set}" = set; then
12297  echo $ECHO_N "(cached) $ECHO_C" >&6
12298else
12299  	  if test "$cross_compiling" = yes; then :
12300  lt_cv_dlopen_self_static=cross
12301else
12302  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12303  lt_status=$lt_dlunknown
12304  cat > conftest.$ac_ext <<EOF
12305#line 12305 "configure"
12306#include "confdefs.h"
12307
12308#if HAVE_DLFCN_H
12309#include <dlfcn.h>
12310#endif
12311
12312#include <stdio.h>
12313
12314#ifdef RTLD_GLOBAL
12315#  define LT_DLGLOBAL		RTLD_GLOBAL
12316#else
12317#  ifdef DL_GLOBAL
12318#    define LT_DLGLOBAL		DL_GLOBAL
12319#  else
12320#    define LT_DLGLOBAL		0
12321#  endif
12322#endif
12323
12324/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12325   find out it does not work in some platform. */
12326#ifndef LT_DLLAZY_OR_NOW
12327#  ifdef RTLD_LAZY
12328#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12329#  else
12330#    ifdef DL_LAZY
12331#      define LT_DLLAZY_OR_NOW		DL_LAZY
12332#    else
12333#      ifdef RTLD_NOW
12334#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12335#      else
12336#        ifdef DL_NOW
12337#          define LT_DLLAZY_OR_NOW	DL_NOW
12338#        else
12339#          define LT_DLLAZY_OR_NOW	0
12340#        endif
12341#      endif
12342#    endif
12343#  endif
12344#endif
12345
12346#ifdef __cplusplus
12347extern "C" void exit (int);
12348#endif
12349
12350void fnord() { int i=42;}
12351int main ()
12352{
12353  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12354  int status = $lt_dlunknown;
12355
12356  if (self)
12357    {
12358      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12359      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12360      /* dlclose (self); */
12361    }
12362  else
12363    puts (dlerror ());
12364
12365    exit (status);
12366}
12367EOF
12368  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12369  (eval $ac_link) 2>&5
12370  ac_status=$?
12371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12372  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12373    (./conftest; exit; ) >&5 2>/dev/null
12374    lt_status=$?
12375    case x$lt_status in
12376      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12377      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12378      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12379    esac
12380  else :
12381    # compilation failed
12382    lt_cv_dlopen_self_static=no
12383  fi
12384fi
12385rm -fr conftest*
12386
12387
12388fi
12389echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12390echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12391    fi
12392
12393    CPPFLAGS="$save_CPPFLAGS"
12394    LDFLAGS="$save_LDFLAGS"
12395    LIBS="$save_LIBS"
12396    ;;
12397  esac
12398
12399  case $lt_cv_dlopen_self in
12400  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12401  *) enable_dlopen_self=unknown ;;
12402  esac
12403
12404  case $lt_cv_dlopen_self_static in
12405  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12406  *) enable_dlopen_self_static=unknown ;;
12407  esac
12408fi
12409
12410
12411# Report which library types will actually be built
12412echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12413echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12414echo "$as_me:$LINENO: result: $can_build_shared" >&5
12415echo "${ECHO_T}$can_build_shared" >&6
12416
12417echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12418echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12419test "$can_build_shared" = "no" && enable_shared=no
12420
12421# On AIX, shared libraries and static libraries use the same namespace, and
12422# are all built from PIC.
12423case $host_os in
12424aix3*)
12425  test "$enable_shared" = yes && enable_static=no
12426  if test -n "$RANLIB"; then
12427    archive_cmds="$archive_cmds~\$RANLIB \$lib"
12428    postinstall_cmds='$RANLIB $lib'
12429  fi
12430  ;;
12431
12432aix4* | aix5*)
12433  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12434    test "$enable_shared" = yes && enable_static=no
12435  fi
12436    ;;
12437esac
12438echo "$as_me:$LINENO: result: $enable_shared" >&5
12439echo "${ECHO_T}$enable_shared" >&6
12440
12441echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12442echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12443# Make sure either enable_shared or enable_static is yes.
12444test "$enable_shared" = yes || enable_static=yes
12445echo "$as_me:$LINENO: result: $enable_static" >&5
12446echo "${ECHO_T}$enable_static" >&6
12447
12448# The else clause should only fire when bootstrapping the
12449# libtool distribution, otherwise you forgot to ship ltmain.sh
12450# with your package, and you will get complaints that there are
12451# no rules to generate ltmain.sh.
12452if test -f "$ltmain"; then
12453  # See if we are running on zsh, and set the options which allow our commands through
12454  # without removal of \ escapes.
12455  if test -n "${ZSH_VERSION+set}" ; then
12456    setopt NO_GLOB_SUBST
12457  fi
12458  # Now quote all the things that may contain metacharacters while being
12459  # careful not to overquote the AC_SUBSTed values.  We take copies of the
12460  # variables and quote the copies for generation of the libtool script.
12461  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12462    SED SHELL STRIP \
12463    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12464    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12465    deplibs_check_method reload_flag reload_cmds need_locks \
12466    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12467    lt_cv_sys_global_symbol_to_c_name_address \
12468    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12469    old_postinstall_cmds old_postuninstall_cmds \
12470    compiler \
12471    CC \
12472    LD \
12473    lt_prog_compiler_wl \
12474    lt_prog_compiler_pic \
12475    lt_prog_compiler_static \
12476    lt_prog_compiler_no_builtin_flag \
12477    export_dynamic_flag_spec \
12478    thread_safe_flag_spec \
12479    whole_archive_flag_spec \
12480    enable_shared_with_static_runtimes \
12481    old_archive_cmds \
12482    old_archive_from_new_cmds \
12483    predep_objects \
12484    postdep_objects \
12485    predeps \
12486    postdeps \
12487    compiler_lib_search_path \
12488    archive_cmds \
12489    archive_expsym_cmds \
12490    postinstall_cmds \
12491    postuninstall_cmds \
12492    old_archive_from_expsyms_cmds \
12493    allow_undefined_flag \
12494    no_undefined_flag \
12495    export_symbols_cmds \
12496    hardcode_libdir_flag_spec \
12497    hardcode_libdir_flag_spec_ld \
12498    hardcode_libdir_separator \
12499    hardcode_automatic \
12500    module_cmds \
12501    module_expsym_cmds \
12502    lt_cv_prog_compiler_c_o \
12503    exclude_expsyms \
12504    include_expsyms; do
12505
12506    case $var in
12507    old_archive_cmds | \
12508    old_archive_from_new_cmds | \
12509    archive_cmds | \
12510    archive_expsym_cmds | \
12511    module_cmds | \
12512    module_expsym_cmds | \
12513    old_archive_from_expsyms_cmds | \
12514    export_symbols_cmds | \
12515    extract_expsyms_cmds | reload_cmds | finish_cmds | \
12516    postinstall_cmds | postuninstall_cmds | \
12517    old_postinstall_cmds | old_postuninstall_cmds | \
12518    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12519      # Double-quote double-evaled strings.
12520      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12521      ;;
12522    *)
12523      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12524      ;;
12525    esac
12526  done
12527
12528  case $lt_echo in
12529  *'\$0 --fallback-echo"')
12530    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12531    ;;
12532  esac
12533
12534cfgfile="${ofile}T"
12535  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
12536  $rm -f "$cfgfile"
12537  { echo "$as_me:$LINENO: creating $ofile" >&5
12538echo "$as_me: creating $ofile" >&6;}
12539
12540  cat <<__EOF__ >> "$cfgfile"
12541#! $SHELL
12542
12543# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12544# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
12545# NOTE: Changes made to this file will be lost: look at ltmain.sh.
12546#
12547# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
12548# Free Software Foundation, Inc.
12549#
12550# This file is part of GNU Libtool:
12551# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
12552#
12553# This program is free software; you can redistribute it and/or modify
12554# it under the terms of the GNU General Public License as published by
12555# the Free Software Foundation; either version 2 of the License, or
12556# (at your option) any later version.
12557#
12558# This program is distributed in the hope that it will be useful, but
12559# WITHOUT ANY WARRANTY; without even the implied warranty of
12560# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12561# General Public License for more details.
12562#
12563# You should have received a copy of the GNU General Public License
12564# along with this program; if not, write to the Free Software
12565# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12566#
12567# As a special exception to the GNU General Public License, if you
12568# distribute this file as part of a program that contains a
12569# configuration script generated by Autoconf, you may include it under
12570# the same distribution terms that you use for the rest of that program.
12571
12572# A sed program that does not truncate output.
12573SED=$lt_SED
12574
12575# Sed that helps us avoid accidentally triggering echo(1) options like -n.
12576Xsed="$SED -e 1s/^X//"
12577
12578# The HP-UX ksh and POSIX shell print the target directory to stdout
12579# if CDPATH is set.
12580(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12581
12582# The names of the tagged configurations supported by this script.
12583available_tags=
12584
12585# ### BEGIN LIBTOOL CONFIG
12586
12587# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12588
12589# Shell to use when invoking shell scripts.
12590SHELL=$lt_SHELL
12591
12592# Whether or not to build shared libraries.
12593build_libtool_libs=$enable_shared
12594
12595# Whether or not to build static libraries.
12596build_old_libs=$enable_static
12597
12598# Whether or not to add -lc for building shared libraries.
12599build_libtool_need_lc=$archive_cmds_need_lc
12600
12601# Whether or not to disallow shared libs when runtime libs are static
12602allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12603
12604# Whether or not to optimize for fast installation.
12605fast_install=$enable_fast_install
12606
12607# The host system.
12608host_alias=$host_alias
12609host=$host
12610host_os=$host_os
12611
12612# The build system.
12613build_alias=$build_alias
12614build=$build
12615build_os=$build_os
12616
12617# An echo program that does not interpret backslashes.
12618echo=$lt_echo
12619
12620# The archiver.
12621AR=$lt_AR
12622AR_FLAGS=$lt_AR_FLAGS
12623
12624# A C compiler.
12625LTCC=$lt_LTCC
12626
12627# LTCC compiler flags.
12628LTCFLAGS=$lt_LTCFLAGS
12629
12630# A language-specific compiler.
12631CC=$lt_compiler
12632
12633# Is the compiler the GNU C compiler?
12634with_gcc=$GCC
12635
12636# An ERE matcher.
12637EGREP=$lt_EGREP
12638
12639# The linker used to build libraries.
12640LD=$lt_LD
12641
12642# Whether we need hard or soft links.
12643LN_S=$lt_LN_S
12644
12645# A BSD-compatible nm program.
12646NM=$lt_NM
12647
12648# A symbol stripping program
12649STRIP=$lt_STRIP
12650
12651# Used to examine libraries when file_magic_cmd begins "file"
12652MAGIC_CMD=$MAGIC_CMD
12653
12654# Used on cygwin: DLL creation program.
12655DLLTOOL="$DLLTOOL"
12656
12657# Used on cygwin: object dumper.
12658OBJDUMP="$OBJDUMP"
12659
12660# Used on cygwin: assembler.
12661AS="$AS"
12662
12663# The name of the directory that contains temporary libtool files.
12664objdir=$objdir
12665
12666# How to create reloadable object files.
12667reload_flag=$lt_reload_flag
12668reload_cmds=$lt_reload_cmds
12669
12670# How to pass a linker flag through the compiler.
12671wl=$lt_lt_prog_compiler_wl
12672
12673# Object file suffix (normally "o").
12674objext="$ac_objext"
12675
12676# Old archive suffix (normally "a").
12677libext="$libext"
12678
12679# Shared library suffix (normally ".so").
12680shrext_cmds='$shrext_cmds'
12681
12682# Executable file suffix (normally "").
12683exeext="$exeext"
12684
12685# Additional compiler flags for building library objects.
12686pic_flag=$lt_lt_prog_compiler_pic
12687pic_mode=$pic_mode
12688
12689# What is the maximum length of a command?
12690max_cmd_len=$lt_cv_sys_max_cmd_len
12691
12692# Does compiler simultaneously support -c and -o options?
12693compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12694
12695# Must we lock files when doing compilation?
12696need_locks=$lt_need_locks
12697
12698# Do we need the lib prefix for modules?
12699need_lib_prefix=$need_lib_prefix
12700
12701# Do we need a version for libraries?
12702need_version=$need_version
12703
12704# Whether dlopen is supported.
12705dlopen_support=$enable_dlopen
12706
12707# Whether dlopen of programs is supported.
12708dlopen_self=$enable_dlopen_self
12709
12710# Whether dlopen of statically linked programs is supported.
12711dlopen_self_static=$enable_dlopen_self_static
12712
12713# Compiler flag to prevent dynamic linking.
12714link_static_flag=$lt_lt_prog_compiler_static
12715
12716# Compiler flag to turn off builtin functions.
12717no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12718
12719# Compiler flag to allow reflexive dlopens.
12720export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12721
12722# Compiler flag to generate shared objects directly from archives.
12723whole_archive_flag_spec=$lt_whole_archive_flag_spec
12724
12725# Compiler flag to generate thread-safe objects.
12726thread_safe_flag_spec=$lt_thread_safe_flag_spec
12727
12728# Library versioning type.
12729version_type=$version_type
12730
12731# Format of library name prefix.
12732libname_spec=$lt_libname_spec
12733
12734# List of archive names.  First name is the real one, the rest are links.
12735# The last name is the one that the linker finds with -lNAME.
12736library_names_spec=$lt_library_names_spec
12737
12738# The coded name of the library, if different from the real name.
12739soname_spec=$lt_soname_spec
12740
12741# Commands used to build and install an old-style archive.
12742RANLIB=$lt_RANLIB
12743old_archive_cmds=$lt_old_archive_cmds
12744old_postinstall_cmds=$lt_old_postinstall_cmds
12745old_postuninstall_cmds=$lt_old_postuninstall_cmds
12746
12747# Create an old-style archive from a shared archive.
12748old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12749
12750# Create a temporary old-style archive to link instead of a shared archive.
12751old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12752
12753# Commands used to build and install a shared archive.
12754archive_cmds=$lt_archive_cmds
12755archive_expsym_cmds=$lt_archive_expsym_cmds
12756postinstall_cmds=$lt_postinstall_cmds
12757postuninstall_cmds=$lt_postuninstall_cmds
12758
12759# Commands used to build a loadable module (assumed same as above if empty)
12760module_cmds=$lt_module_cmds
12761module_expsym_cmds=$lt_module_expsym_cmds
12762
12763# Commands to strip libraries.
12764old_striplib=$lt_old_striplib
12765striplib=$lt_striplib
12766
12767# Dependencies to place before the objects being linked to create a
12768# shared library.
12769predep_objects=$lt_predep_objects
12770
12771# Dependencies to place after the objects being linked to create a
12772# shared library.
12773postdep_objects=$lt_postdep_objects
12774
12775# Dependencies to place before the objects being linked to create a
12776# shared library.
12777predeps=$lt_predeps
12778
12779# Dependencies to place after the objects being linked to create a
12780# shared library.
12781postdeps=$lt_postdeps
12782
12783# The library search path used internally by the compiler when linking
12784# a shared library.
12785compiler_lib_search_path=$lt_compiler_lib_search_path
12786
12787# Method to check whether dependent libraries are shared objects.
12788deplibs_check_method=$lt_deplibs_check_method
12789
12790# Command to use when deplibs_check_method == file_magic.
12791file_magic_cmd=$lt_file_magic_cmd
12792
12793# Flag that allows shared libraries with undefined symbols to be built.
12794allow_undefined_flag=$lt_allow_undefined_flag
12795
12796# Flag that forces no undefined symbols.
12797no_undefined_flag=$lt_no_undefined_flag
12798
12799# Commands used to finish a libtool library installation in a directory.
12800finish_cmds=$lt_finish_cmds
12801
12802# Same as above, but a single script fragment to be evaled but not shown.
12803finish_eval=$lt_finish_eval
12804
12805# Take the output of nm and produce a listing of raw symbols and C names.
12806global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12807
12808# Transform the output of nm in a proper C declaration
12809global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12810
12811# Transform the output of nm in a C name address pair
12812global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12813
12814# This is the shared library runtime path variable.
12815runpath_var=$runpath_var
12816
12817# This is the shared library path variable.
12818shlibpath_var=$shlibpath_var
12819
12820# Is shlibpath searched before the hard-coded library search path?
12821shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12822
12823# How to hardcode a shared library path into an executable.
12824hardcode_action=$hardcode_action
12825
12826# Whether we should hardcode library paths into libraries.
12827hardcode_into_libs=$hardcode_into_libs
12828
12829# Flag to hardcode \$libdir into a binary during linking.
12830# This must work even if \$libdir does not exist.
12831hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12832
12833# If ld is used when linking, flag to hardcode \$libdir into
12834# a binary during linking. This must work even if \$libdir does
12835# not exist.
12836hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12837
12838# Whether we need a single -rpath flag with a separated argument.
12839hardcode_libdir_separator=$lt_hardcode_libdir_separator
12840
12841# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12842# resulting binary.
12843hardcode_direct=$hardcode_direct
12844
12845# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12846# resulting binary.
12847hardcode_minus_L=$hardcode_minus_L
12848
12849# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12850# the resulting binary.
12851hardcode_shlibpath_var=$hardcode_shlibpath_var
12852
12853# Set to yes if building a shared library automatically hardcodes DIR into the library
12854# and all subsequent libraries and executables linked against it.
12855hardcode_automatic=$hardcode_automatic
12856
12857# Variables whose values should be saved in libtool wrapper scripts and
12858# restored at relink time.
12859variables_saved_for_relink="$variables_saved_for_relink"
12860
12861# Whether libtool must link a program against all its dependency libraries.
12862link_all_deplibs=$link_all_deplibs
12863
12864# Compile-time system search path for libraries
12865sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12866
12867# Run-time system search path for libraries
12868sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12869
12870# Fix the shell variable \$srcfile for the compiler.
12871fix_srcfile_path="$fix_srcfile_path"
12872
12873# Set to yes if exported symbols are required.
12874always_export_symbols=$always_export_symbols
12875
12876# The commands to list exported symbols.
12877export_symbols_cmds=$lt_export_symbols_cmds
12878
12879# The commands to extract the exported symbol list from a shared archive.
12880extract_expsyms_cmds=$lt_extract_expsyms_cmds
12881
12882# Symbols that should not be listed in the preloaded symbols.
12883exclude_expsyms=$lt_exclude_expsyms
12884
12885# Symbols that must always be exported.
12886include_expsyms=$lt_include_expsyms
12887
12888# ### END LIBTOOL CONFIG
12889
12890__EOF__
12891
12892
12893  case $host_os in
12894  aix3*)
12895    cat <<\EOF >> "$cfgfile"
12896
12897# AIX sometimes has problems with the GCC collect2 program.  For some
12898# reason, if we set the COLLECT_NAMES environment variable, the problems
12899# vanish in a puff of smoke.
12900if test "X${COLLECT_NAMES+set}" != Xset; then
12901  COLLECT_NAMES=
12902  export COLLECT_NAMES
12903fi
12904EOF
12905    ;;
12906  esac
12907
12908  # We use sed instead of cat because bash on DJGPP gets confused if
12909  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
12910  # text mode, it properly converts lines to CR/LF.  This bash problem
12911  # is reportedly fixed, but why not run on old versions too?
12912  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
12913
12914  mv -f "$cfgfile" "$ofile" || \
12915    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
12916  chmod +x "$ofile"
12917
12918else
12919  # If there is no Makefile yet, we rely on a make rule to execute
12920  # `config.status --recheck' to rerun these tests and create the
12921  # libtool script then.
12922  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12923  if test -f "$ltmain_in"; then
12924    test -f Makefile && make "$ltmain"
12925  fi
12926fi
12927
12928
12929ac_ext=c
12930ac_cpp='$CPP $CPPFLAGS'
12931ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12932ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12933ac_compiler_gnu=$ac_cv_c_compiler_gnu
12934
12935CC="$lt_save_CC"
12936
12937
12938# Check whether --with-tags or --without-tags was given.
12939if test "${with_tags+set}" = set; then
12940  withval="$with_tags"
12941  tagnames="$withval"
12942fi;
12943
12944if test -f "$ltmain" && test -n "$tagnames"; then
12945  if test ! -f "${ofile}"; then
12946    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
12947echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
12948  fi
12949
12950  if test -z "$LTCC"; then
12951    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
12952    if test -z "$LTCC"; then
12953      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
12954echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
12955    else
12956      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
12957echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
12958    fi
12959  fi
12960  if test -z "$LTCFLAGS"; then
12961    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
12962  fi
12963
12964  # Extract list of available tagged configurations in $ofile.
12965  # Note that this assumes the entire list is on one line.
12966  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
12967
12968  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12969  for tagname in $tagnames; do
12970    IFS="$lt_save_ifs"
12971    # Check whether tagname contains only valid characters
12972    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12973    "") ;;
12974    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12975echo "$as_me: error: invalid tag name: $tagname" >&2;}
12976   { (exit 1); exit 1; }; }
12977	;;
12978    esac
12979
12980    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12981    then
12982      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12983echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12984   { (exit 1); exit 1; }; }
12985    fi
12986
12987    # Update the list of available tags.
12988    if test -n "$tagname"; then
12989      echo appending configuration tag \"$tagname\" to $ofile
12990
12991      case $tagname in
12992      CXX)
12993	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12994	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12995	    (test "X$CXX" != "Xg++"))) ; then
12996	  ac_ext=cc
12997ac_cpp='$CXXCPP $CPPFLAGS'
12998ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12999ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13000ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13001
13002
13003
13004
13005archive_cmds_need_lc_CXX=no
13006allow_undefined_flag_CXX=
13007always_export_symbols_CXX=no
13008archive_expsym_cmds_CXX=
13009export_dynamic_flag_spec_CXX=
13010hardcode_direct_CXX=no
13011hardcode_libdir_flag_spec_CXX=
13012hardcode_libdir_flag_spec_ld_CXX=
13013hardcode_libdir_separator_CXX=
13014hardcode_minus_L_CXX=no
13015hardcode_shlibpath_var_CXX=unsupported
13016hardcode_automatic_CXX=no
13017module_cmds_CXX=
13018module_expsym_cmds_CXX=
13019link_all_deplibs_CXX=unknown
13020old_archive_cmds_CXX=$old_archive_cmds
13021no_undefined_flag_CXX=
13022whole_archive_flag_spec_CXX=
13023enable_shared_with_static_runtimes_CXX=no
13024
13025# Dependencies to place before and after the object being linked:
13026predep_objects_CXX=
13027postdep_objects_CXX=
13028predeps_CXX=
13029postdeps_CXX=
13030compiler_lib_search_path_CXX=
13031
13032# Source file extension for C++ test sources.
13033ac_ext=cpp
13034
13035# Object file extension for compiled C++ test sources.
13036objext=o
13037objext_CXX=$objext
13038
13039# Code to be used in simple compile tests
13040lt_simple_compile_test_code="int some_variable = 0;\n"
13041
13042# Code to be used in simple link tests
13043lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
13044
13045# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13046
13047# If no C compiler was specified, use CC.
13048LTCC=${LTCC-"$CC"}
13049
13050# If no C compiler flags were specified, use CFLAGS.
13051LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13052
13053# Allow CC to be a program name with arguments.
13054compiler=$CC
13055
13056
13057# save warnings/boilerplate of simple test code
13058ac_outfile=conftest.$ac_objext
13059printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13060eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13061_lt_compiler_boilerplate=`cat conftest.err`
13062$rm conftest*
13063
13064ac_outfile=conftest.$ac_objext
13065printf "$lt_simple_link_test_code" >conftest.$ac_ext
13066eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13067_lt_linker_boilerplate=`cat conftest.err`
13068$rm conftest*
13069
13070
13071# Allow CC to be a program name with arguments.
13072lt_save_CC=$CC
13073lt_save_LD=$LD
13074lt_save_GCC=$GCC
13075GCC=$GXX
13076lt_save_with_gnu_ld=$with_gnu_ld
13077lt_save_path_LD=$lt_cv_path_LD
13078if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13079  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13080else
13081  $as_unset lt_cv_prog_gnu_ld
13082fi
13083if test -n "${lt_cv_path_LDCXX+set}"; then
13084  lt_cv_path_LD=$lt_cv_path_LDCXX
13085else
13086  $as_unset lt_cv_path_LD
13087fi
13088test -z "${LDCXX+set}" || LD=$LDCXX
13089CC=${CXX-"c++"}
13090compiler=$CC
13091compiler_CXX=$CC
13092for cc_temp in $compiler""; do
13093  case $cc_temp in
13094    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13095    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13096    \-*) ;;
13097    *) break;;
13098  esac
13099done
13100cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13101
13102
13103# We don't want -fno-exception wen compiling C++ code, so set the
13104# no_builtin_flag separately
13105if test "$GXX" = yes; then
13106  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13107else
13108  lt_prog_compiler_no_builtin_flag_CXX=
13109fi
13110
13111if test "$GXX" = yes; then
13112  # Set up default GNU C++ configuration
13113
13114
13115# Check whether --with-gnu-ld or --without-gnu-ld was given.
13116if test "${with_gnu_ld+set}" = set; then
13117  withval="$with_gnu_ld"
13118  test "$withval" = no || with_gnu_ld=yes
13119else
13120  with_gnu_ld=no
13121fi;
13122ac_prog=ld
13123if test "$GCC" = yes; then
13124  # Check if gcc -print-prog-name=ld gives a path.
13125  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13126echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
13127  case $host in
13128  *-*-mingw*)
13129    # gcc leaves a trailing carriage return which upsets mingw
13130    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13131  *)
13132    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13133  esac
13134  case $ac_prog in
13135    # Accept absolute paths.
13136    [\\/]* | ?:[\\/]*)
13137      re_direlt='/[^/][^/]*/\.\./'
13138      # Canonicalize the pathname of ld
13139      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
13140      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13141	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
13142      done
13143      test -z "$LD" && LD="$ac_prog"
13144      ;;
13145  "")
13146    # If it fails, then pretend we aren't using GCC.
13147    ac_prog=ld
13148    ;;
13149  *)
13150    # If it is relative, then search for the first ld in PATH.
13151    with_gnu_ld=unknown
13152    ;;
13153  esac
13154elif test "$with_gnu_ld" = yes; then
13155  echo "$as_me:$LINENO: checking for GNU ld" >&5
13156echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
13157else
13158  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13159echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
13160fi
13161if test "${lt_cv_path_LD+set}" = set; then
13162  echo $ECHO_N "(cached) $ECHO_C" >&6
13163else
13164  if test -z "$LD"; then
13165  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13166  for ac_dir in $PATH; do
13167    IFS="$lt_save_ifs"
13168    test -z "$ac_dir" && ac_dir=.
13169    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13170      lt_cv_path_LD="$ac_dir/$ac_prog"
13171      # Check to see if the program is GNU ld.  I'd rather use --version,
13172      # but apparently some variants of GNU ld only accept -v.
13173      # Break only if it was the GNU/non-GNU ld that we prefer.
13174      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13175      *GNU* | *'with BFD'*)
13176	test "$with_gnu_ld" != no && break
13177	;;
13178      *)
13179	test "$with_gnu_ld" != yes && break
13180	;;
13181      esac
13182    fi
13183  done
13184  IFS="$lt_save_ifs"
13185else
13186  lt_cv_path_LD="$LD" # Let the user override the test with a path.
13187fi
13188fi
13189
13190LD="$lt_cv_path_LD"
13191if test -n "$LD"; then
13192  echo "$as_me:$LINENO: result: $LD" >&5
13193echo "${ECHO_T}$LD" >&6
13194else
13195  echo "$as_me:$LINENO: result: no" >&5
13196echo "${ECHO_T}no" >&6
13197fi
13198test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13199echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13200   { (exit 1); exit 1; }; }
13201echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13202echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
13203if test "${lt_cv_prog_gnu_ld+set}" = set; then
13204  echo $ECHO_N "(cached) $ECHO_C" >&6
13205else
13206  # I'd rather use --version here, but apparently some GNU lds only accept -v.
13207case `$LD -v 2>&1 </dev/null` in
13208*GNU* | *'with BFD'*)
13209  lt_cv_prog_gnu_ld=yes
13210  ;;
13211*)
13212  lt_cv_prog_gnu_ld=no
13213  ;;
13214esac
13215fi
13216echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13217echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
13218with_gnu_ld=$lt_cv_prog_gnu_ld
13219
13220
13221
13222  # Check if GNU C++ uses GNU ld as the underlying linker, since the
13223  # archiving commands below assume that GNU ld is being used.
13224  if test "$with_gnu_ld" = yes; then
13225    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13226    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'
13227
13228    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13229    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13230
13231    # If archive_cmds runs LD, not CC, wlarc should be empty
13232    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13233    #     investigate it a little bit more. (MM)
13234    wlarc='${wl}'
13235
13236    # ancient GNU ld didn't support --whole-archive et. al.
13237    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
13238	grep 'no-whole-archive' > /dev/null; then
13239      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13240    else
13241      whole_archive_flag_spec_CXX=
13242    fi
13243  else
13244    with_gnu_ld=no
13245    wlarc=
13246
13247    # A generic and very simple default shared library creation
13248    # command for GNU C++ for the case where it uses the native
13249    # linker, instead of GNU ld.  If possible, this setting should
13250    # overridden to take advantage of the native linker features on
13251    # the platform it is being used on.
13252    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13253  fi
13254
13255  # Commands to make compiler produce verbose output that lists
13256  # what "hidden" libraries, object files and flags are used when
13257  # linking a shared library.
13258  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13259
13260else
13261  GXX=no
13262  with_gnu_ld=no
13263  wlarc=
13264fi
13265
13266# PORTME: fill in a description of your system's C++ link characteristics
13267echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13268echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13269ld_shlibs_CXX=yes
13270case $host_os in
13271  aix3*)
13272    # FIXME: insert proper C++ library support
13273    ld_shlibs_CXX=no
13274    ;;
13275  aix4* | aix5*)
13276    if test "$host_cpu" = ia64; then
13277      # On IA64, the linker does run time linking by default, so we don't
13278      # have to do anything special.
13279      aix_use_runtimelinking=no
13280      exp_sym_flag='-Bexport'
13281      no_entry_flag=""
13282    else
13283      aix_use_runtimelinking=no
13284
13285      # Test if we are trying to use run time linking or normal
13286      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13287      # need to do runtime linking.
13288      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13289	for ld_flag in $LDFLAGS; do
13290	  case $ld_flag in
13291	  *-brtl*)
13292	    aix_use_runtimelinking=yes
13293	    break
13294	    ;;
13295	  esac
13296	done
13297	;;
13298      esac
13299
13300      exp_sym_flag='-bexport'
13301      no_entry_flag='-bnoentry'
13302    fi
13303
13304    # When large executables or shared objects are built, AIX ld can
13305    # have problems creating the table of contents.  If linking a library
13306    # or program results in "error TOC overflow" add -mminimal-toc to
13307    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13308    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13309
13310    archive_cmds_CXX=''
13311    hardcode_direct_CXX=yes
13312    hardcode_libdir_separator_CXX=':'
13313    link_all_deplibs_CXX=yes
13314
13315    if test "$GXX" = yes; then
13316      case $host_os in aix4.[012]|aix4.[012].*)
13317      # We only want to do this on AIX 4.2 and lower, the check
13318      # below for broken collect2 doesn't work under 4.3+
13319	collect2name=`${CC} -print-prog-name=collect2`
13320	if test -f "$collect2name" && \
13321	   strings "$collect2name" | grep resolve_lib_name >/dev/null
13322	then
13323	  # We have reworked collect2
13324	  hardcode_direct_CXX=yes
13325	else
13326	  # We have old collect2
13327	  hardcode_direct_CXX=unsupported
13328	  # It fails to find uninstalled libraries when the uninstalled
13329	  # path is not listed in the libpath.  Setting hardcode_minus_L
13330	  # to unsupported forces relinking
13331	  hardcode_minus_L_CXX=yes
13332	  hardcode_libdir_flag_spec_CXX='-L$libdir'
13333	  hardcode_libdir_separator_CXX=
13334	fi
13335	;;
13336      esac
13337      shared_flag='-shared'
13338      if test "$aix_use_runtimelinking" = yes; then
13339	shared_flag="$shared_flag "'${wl}-G'
13340      fi
13341    else
13342      # not using gcc
13343      if test "$host_cpu" = ia64; then
13344	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13345	# chokes on -Wl,-G. The following line is correct:
13346	shared_flag='-G'
13347      else
13348	if test "$aix_use_runtimelinking" = yes; then
13349	  shared_flag='${wl}-G'
13350	else
13351	  shared_flag='${wl}-bM:SRE'
13352	fi
13353      fi
13354    fi
13355
13356    # It seems that -bexpall does not export symbols beginning with
13357    # underscore (_), so it is better to generate a list of symbols to export.
13358    always_export_symbols_CXX=yes
13359    if test "$aix_use_runtimelinking" = yes; then
13360      # Warning - without using the other runtime loading flags (-brtl),
13361      # -berok will link without error, but may produce a broken library.
13362      allow_undefined_flag_CXX='-berok'
13363      # Determine the default libpath from the value encoded in an empty executable.
13364      cat >conftest.$ac_ext <<_ACEOF
13365/* confdefs.h.  */
13366_ACEOF
13367cat confdefs.h >>conftest.$ac_ext
13368cat >>conftest.$ac_ext <<_ACEOF
13369/* end confdefs.h.  */
13370
13371#ifdef F77_DUMMY_MAIN
13372
13373#  ifdef __cplusplus
13374     extern "C"
13375#  endif
13376   int F77_DUMMY_MAIN() { return 1; }
13377
13378#endif
13379int
13380main ()
13381{
13382
13383  ;
13384  return 0;
13385}
13386_ACEOF
13387rm -f conftest.$ac_objext conftest$ac_exeext
13388if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13389  (eval $ac_link) 2>conftest.er1
13390  ac_status=$?
13391  grep -v '^ *+' conftest.er1 >conftest.err
13392  rm -f conftest.er1
13393  cat conftest.err >&5
13394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13395  (exit $ac_status); } &&
13396	 { ac_try='test -z "$ac_cxx_werror_flag"
13397			 || test ! -s conftest.err'
13398  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13399  (eval $ac_try) 2>&5
13400  ac_status=$?
13401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13402  (exit $ac_status); }; } &&
13403	 { ac_try='test -s conftest$ac_exeext'
13404  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13405  (eval $ac_try) 2>&5
13406  ac_status=$?
13407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13408  (exit $ac_status); }; }; then
13409
13410aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13411}'`
13412# Check for a 64-bit object if we didn't find anything.
13413if 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; }
13414}'`; fi
13415else
13416  echo "$as_me: failed program was:" >&5
13417sed 's/^/| /' conftest.$ac_ext >&5
13418
13419fi
13420rm -f conftest.err conftest.$ac_objext \
13421      conftest$ac_exeext conftest.$ac_ext
13422if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13423
13424      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13425
13426      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"
13427     else
13428      if test "$host_cpu" = ia64; then
13429	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13430	allow_undefined_flag_CXX="-z nodefs"
13431	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"
13432      else
13433	# Determine the default libpath from the value encoded in an empty executable.
13434	cat >conftest.$ac_ext <<_ACEOF
13435/* confdefs.h.  */
13436_ACEOF
13437cat confdefs.h >>conftest.$ac_ext
13438cat >>conftest.$ac_ext <<_ACEOF
13439/* end confdefs.h.  */
13440
13441#ifdef F77_DUMMY_MAIN
13442
13443#  ifdef __cplusplus
13444     extern "C"
13445#  endif
13446   int F77_DUMMY_MAIN() { return 1; }
13447
13448#endif
13449int
13450main ()
13451{
13452
13453  ;
13454  return 0;
13455}
13456_ACEOF
13457rm -f conftest.$ac_objext conftest$ac_exeext
13458if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13459  (eval $ac_link) 2>conftest.er1
13460  ac_status=$?
13461  grep -v '^ *+' conftest.er1 >conftest.err
13462  rm -f conftest.er1
13463  cat conftest.err >&5
13464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13465  (exit $ac_status); } &&
13466	 { ac_try='test -z "$ac_cxx_werror_flag"
13467			 || test ! -s conftest.err'
13468  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13469  (eval $ac_try) 2>&5
13470  ac_status=$?
13471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472  (exit $ac_status); }; } &&
13473	 { ac_try='test -s conftest$ac_exeext'
13474  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13475  (eval $ac_try) 2>&5
13476  ac_status=$?
13477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478  (exit $ac_status); }; }; then
13479
13480aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13481}'`
13482# Check for a 64-bit object if we didn't find anything.
13483if 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; }
13484}'`; fi
13485else
13486  echo "$as_me: failed program was:" >&5
13487sed 's/^/| /' conftest.$ac_ext >&5
13488
13489fi
13490rm -f conftest.err conftest.$ac_objext \
13491      conftest$ac_exeext conftest.$ac_ext
13492if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13493
13494	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13495	# Warning - without using the other run time loading flags,
13496	# -berok will link without error, but may produce a broken library.
13497	no_undefined_flag_CXX=' ${wl}-bernotok'
13498	allow_undefined_flag_CXX=' ${wl}-berok'
13499	# Exported symbols can be pulled into shared objects from archives
13500	whole_archive_flag_spec_CXX='$convenience'
13501	archive_cmds_need_lc_CXX=yes
13502	# This is similar to how AIX traditionally builds its shared libraries.
13503	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'
13504      fi
13505    fi
13506    ;;
13507
13508  beos*)
13509    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13510      allow_undefined_flag_CXX=unsupported
13511      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13512      # support --undefined.  This deserves some investigation.  FIXME
13513      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13514    else
13515      ld_shlibs_CXX=no
13516    fi
13517    ;;
13518
13519  chorus*)
13520    case $cc_basename in
13521      *)
13522	# FIXME: insert proper C++ library support
13523	ld_shlibs_CXX=no
13524	;;
13525    esac
13526    ;;
13527
13528  cygwin* | mingw* | pw32*)
13529    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13530    # as there is no search path for DLLs.
13531    hardcode_libdir_flag_spec_CXX='-L$libdir'
13532    allow_undefined_flag_CXX=unsupported
13533    always_export_symbols_CXX=no
13534    enable_shared_with_static_runtimes_CXX=yes
13535
13536    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13537      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'
13538      # If the export-symbols file already is a .def file (1st line
13539      # is EXPORTS), use it as is; otherwise, prepend...
13540      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13541	cp $export_symbols $output_objdir/$soname.def;
13542      else
13543	echo EXPORTS > $output_objdir/$soname.def;
13544	cat $export_symbols >> $output_objdir/$soname.def;
13545      fi~
13546      $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'
13547    else
13548      ld_shlibs_CXX=no
13549    fi
13550  ;;
13551      darwin* | rhapsody*)
13552        case $host_os in
13553        rhapsody* | darwin1.[012])
13554         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
13555         ;;
13556       *) # Darwin 1.3 on
13557         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13558           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13559         else
13560           case ${MACOSX_DEPLOYMENT_TARGET} in
13561             10.[012])
13562               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13563               ;;
13564             10.*)
13565               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
13566               ;;
13567           esac
13568         fi
13569         ;;
13570        esac
13571      archive_cmds_need_lc_CXX=no
13572      hardcode_direct_CXX=no
13573      hardcode_automatic_CXX=yes
13574      hardcode_shlibpath_var_CXX=unsupported
13575      whole_archive_flag_spec_CXX=''
13576      link_all_deplibs_CXX=yes
13577
13578    if test "$GXX" = yes ; then
13579      lt_int_apple_cc_single_mod=no
13580      output_verbose_link_cmd='echo'
13581      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
13582       lt_int_apple_cc_single_mod=yes
13583      fi
13584      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13585       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13586      else
13587          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'
13588        fi
13589        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13590        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13591          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13592            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}'
13593          else
13594            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}'
13595          fi
13596            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}'
13597      else
13598      case $cc_basename in
13599        xlc*)
13600         output_verbose_link_cmd='echo'
13601          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'
13602          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13603          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13604          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}'
13605          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}'
13606          ;;
13607       *)
13608         ld_shlibs_CXX=no
13609          ;;
13610      esac
13611      fi
13612        ;;
13613
13614  dgux*)
13615    case $cc_basename in
13616      ec++*)
13617	# FIXME: insert proper C++ library support
13618	ld_shlibs_CXX=no
13619	;;
13620      ghcx*)
13621	# Green Hills C++ Compiler
13622	# FIXME: insert proper C++ library support
13623	ld_shlibs_CXX=no
13624	;;
13625      *)
13626	# FIXME: insert proper C++ library support
13627	ld_shlibs_CXX=no
13628	;;
13629    esac
13630    ;;
13631  freebsd[12]*)
13632    # C++ shared libraries reported to be fairly broken before switch to ELF
13633    ld_shlibs_CXX=no
13634    ;;
13635  freebsd-elf*)
13636    archive_cmds_need_lc_CXX=no
13637    ;;
13638  freebsd* | kfreebsd*-gnu | dragonfly*)
13639    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13640    # conventions
13641    ld_shlibs_CXX=yes
13642    ;;
13643  gnu*)
13644    ;;
13645  hpux9*)
13646    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13647    hardcode_libdir_separator_CXX=:
13648    export_dynamic_flag_spec_CXX='${wl}-E'
13649    hardcode_direct_CXX=yes
13650    hardcode_minus_L_CXX=yes # Not in the search PATH,
13651				# but as the default
13652				# location of the library.
13653
13654    case $cc_basename in
13655    CC*)
13656      # FIXME: insert proper C++ library support
13657      ld_shlibs_CXX=no
13658      ;;
13659    aCC*)
13660      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'
13661      # Commands to make compiler produce verbose output that lists
13662      # what "hidden" libraries, object files and flags are used when
13663      # linking a shared library.
13664      #
13665      # There doesn't appear to be a way to prevent this compiler from
13666      # explicitly linking system object files so we need to strip them
13667      # from the output so that they don't get included in the library
13668      # dependencies.
13669      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'
13670      ;;
13671    *)
13672      if test "$GXX" = yes; then
13673        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'
13674      else
13675        # FIXME: insert proper C++ library support
13676        ld_shlibs_CXX=no
13677      fi
13678      ;;
13679    esac
13680    ;;
13681  hpux10*|hpux11*)
13682    if test $with_gnu_ld = no; then
13683      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13684      hardcode_libdir_separator_CXX=:
13685
13686      case $host_cpu in
13687      hppa*64*|ia64*)
13688	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
13689        ;;
13690      *)
13691	export_dynamic_flag_spec_CXX='${wl}-E'
13692        ;;
13693      esac
13694    fi
13695    case $host_cpu in
13696    hppa*64*|ia64*)
13697      hardcode_direct_CXX=no
13698      hardcode_shlibpath_var_CXX=no
13699      ;;
13700    *)
13701      hardcode_direct_CXX=yes
13702      hardcode_minus_L_CXX=yes # Not in the search PATH,
13703					      # but as the default
13704					      # location of the library.
13705      ;;
13706    esac
13707
13708    case $cc_basename in
13709      CC*)
13710	# FIXME: insert proper C++ library support
13711	ld_shlibs_CXX=no
13712	;;
13713      aCC*)
13714	case $host_cpu in
13715	hppa*64*)
13716	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13717	  ;;
13718	ia64*)
13719	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13720	  ;;
13721	*)
13722	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13723	  ;;
13724	esac
13725	# Commands to make compiler produce verbose output that lists
13726	# what "hidden" libraries, object files and flags are used when
13727	# linking a shared library.
13728	#
13729	# There doesn't appear to be a way to prevent this compiler from
13730	# explicitly linking system object files so we need to strip them
13731	# from the output so that they don't get included in the library
13732	# dependencies.
13733	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'
13734	;;
13735      *)
13736	if test "$GXX" = yes; then
13737	  if test $with_gnu_ld = no; then
13738	    case $host_cpu in
13739	    hppa*64*)
13740	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13741	      ;;
13742	    ia64*)
13743	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13744	      ;;
13745	    *)
13746	      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'
13747	      ;;
13748	    esac
13749	  fi
13750	else
13751	  # FIXME: insert proper C++ library support
13752	  ld_shlibs_CXX=no
13753	fi
13754	;;
13755    esac
13756    ;;
13757  interix3*)
13758    hardcode_direct_CXX=no
13759    hardcode_shlibpath_var_CXX=no
13760    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13761    export_dynamic_flag_spec_CXX='${wl}-E'
13762    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13763    # Instead, shared libraries are loaded at an image base (0x10000000 by
13764    # default) and relocated if they conflict, which is a slow very memory
13765    # consuming and fragmenting process.  To avoid this, we pick a random,
13766    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13767    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13768    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'
13769    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'
13770    ;;
13771  irix5* | irix6*)
13772    case $cc_basename in
13773      CC*)
13774	# SGI C++
13775	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'
13776
13777	# Archives containing C++ object files must be created using
13778	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13779	# necessary to make sure instantiated templates are included
13780	# in the archive.
13781	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13782	;;
13783      *)
13784	if test "$GXX" = yes; then
13785	  if test "$with_gnu_ld" = no; then
13786	    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'
13787	  else
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` -o $lib'
13789	  fi
13790	fi
13791	link_all_deplibs_CXX=yes
13792	;;
13793    esac
13794    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13795    hardcode_libdir_separator_CXX=:
13796    ;;
13797  linux*)
13798    case $cc_basename in
13799      KCC*)
13800	# Kuck and Associates, Inc. (KAI) C++ Compiler
13801
13802	# KCC will only create a shared library if the output file
13803	# ends with ".so" (or ".sl" for HP-UX), so rename the library
13804	# to its proper name (with version) after linking.
13805	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'
13806	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'
13807	# Commands to make compiler produce verbose output that lists
13808	# what "hidden" libraries, object files and flags are used when
13809	# linking a shared library.
13810	#
13811	# There doesn't appear to be a way to prevent this compiler from
13812	# explicitly linking system object files so we need to strip them
13813	# from the output so that they don't get included in the library
13814	# dependencies.
13815	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'
13816
13817	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
13818	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13819
13820	# Archives containing C++ object files must be created using
13821	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
13822	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13823	;;
13824      icpc*)
13825	# Intel C++
13826	with_gnu_ld=yes
13827	# version 8.0 and above of icpc choke on multiply defined symbols
13828	# if we add $predep_objects and $postdep_objects, however 7.1 and
13829	# earlier do not add the objects themselves.
13830	case `$CC -V 2>&1` in
13831	*"Version 7."*)
13832  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13833  	  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'
13834	  ;;
13835	*)  # Version 8.0 or newer
13836	  tmp_idyn=
13837	  case $host_cpu in
13838	    ia64*) tmp_idyn=' -i_dynamic';;
13839	  esac
13840  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13841	  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'
13842	  ;;
13843	esac
13844	archive_cmds_need_lc_CXX=no
13845	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13846	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13847	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13848	;;
13849      pgCC*)
13850        # Portland Group C++ compiler
13851	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13852  	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'
13853
13854	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13855	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13856	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'
13857        ;;
13858      cxx*)
13859	# Compaq C++
13860	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13861	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'
13862
13863	runpath_var=LD_RUN_PATH
13864	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13865	hardcode_libdir_separator_CXX=:
13866
13867	# Commands to make compiler produce verbose output that lists
13868	# what "hidden" libraries, object files and flags are used when
13869	# linking a shared library.
13870	#
13871	# There doesn't appear to be a way to prevent this compiler from
13872	# explicitly linking system object files so we need to strip them
13873	# from the output so that they don't get included in the library
13874	# dependencies.
13875	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'
13876	;;
13877    esac
13878    ;;
13879  lynxos*)
13880    # FIXME: insert proper C++ library support
13881    ld_shlibs_CXX=no
13882    ;;
13883  m88k*)
13884    # FIXME: insert proper C++ library support
13885    ld_shlibs_CXX=no
13886    ;;
13887  mvs*)
13888    case $cc_basename in
13889      cxx*)
13890	# FIXME: insert proper C++ library support
13891	ld_shlibs_CXX=no
13892	;;
13893      *)
13894	# FIXME: insert proper C++ library support
13895	ld_shlibs_CXX=no
13896	;;
13897    esac
13898    ;;
13899  netbsd*)
13900    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13901      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13902      wlarc=
13903      hardcode_libdir_flag_spec_CXX='-R$libdir'
13904      hardcode_direct_CXX=yes
13905      hardcode_shlibpath_var_CXX=no
13906    fi
13907    # Workaround some broken pre-1.5 toolchains
13908    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13909    ;;
13910  openbsd2*)
13911    # C++ shared libraries are fairly broken
13912    ld_shlibs_CXX=no
13913    ;;
13914  openbsd*)
13915    hardcode_direct_CXX=yes
13916    hardcode_shlibpath_var_CXX=no
13917    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13918    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13919    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13920      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13921      export_dynamic_flag_spec_CXX='${wl}-E'
13922      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13923    fi
13924    output_verbose_link_cmd='echo'
13925    ;;
13926  osf3*)
13927    case $cc_basename in
13928      KCC*)
13929	# Kuck and Associates, Inc. (KAI) C++ Compiler
13930
13931	# KCC will only create a shared library if the output file
13932	# ends with ".so" (or ".sl" for HP-UX), so rename the library
13933	# to its proper name (with version) after linking.
13934	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'
13935
13936	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13937	hardcode_libdir_separator_CXX=:
13938
13939	# Archives containing C++ object files must be created using
13940	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
13941	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13942
13943	;;
13944      RCC*)
13945	# Rational C++ 2.4.1
13946	# FIXME: insert proper C++ library support
13947	ld_shlibs_CXX=no
13948	;;
13949      cxx*)
13950	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13951	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'
13952
13953	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13954	hardcode_libdir_separator_CXX=:
13955
13956	# Commands to make compiler produce verbose output that lists
13957	# what "hidden" libraries, object files and flags are used when
13958	# linking a shared library.
13959	#
13960	# There doesn't appear to be a way to prevent this compiler from
13961	# explicitly linking system object files so we need to strip them
13962	# from the output so that they don't get included in the library
13963	# dependencies.
13964	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'
13965	;;
13966      *)
13967	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13968	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13969	  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'
13970
13971	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13972	  hardcode_libdir_separator_CXX=:
13973
13974	  # Commands to make compiler produce verbose output that lists
13975	  # what "hidden" libraries, object files and flags are used when
13976	  # linking a shared library.
13977	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13978
13979	else
13980	  # FIXME: insert proper C++ library support
13981	  ld_shlibs_CXX=no
13982	fi
13983	;;
13984    esac
13985    ;;
13986  osf4* | osf5*)
13987    case $cc_basename in
13988      KCC*)
13989	# Kuck and Associates, Inc. (KAI) C++ Compiler
13990
13991	# KCC will only create a shared library if the output file
13992	# ends with ".so" (or ".sl" for HP-UX), so rename the library
13993	# to its proper name (with version) after linking.
13994	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'
13995
13996	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13997	hardcode_libdir_separator_CXX=:
13998
13999	# Archives containing C++ object files must be created using
14000	# the KAI C++ compiler.
14001	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
14002	;;
14003      RCC*)
14004	# Rational C++ 2.4.1
14005	# FIXME: insert proper C++ library support
14006	ld_shlibs_CXX=no
14007	;;
14008      cxx*)
14009	allow_undefined_flag_CXX=' -expect_unresolved \*'
14010	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'
14011	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14012	  echo "-hidden">> $lib.exp~
14013	  $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~
14014	  $rm $lib.exp'
14015
14016	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14017	hardcode_libdir_separator_CXX=:
14018
14019	# Commands to make compiler produce verbose output that lists
14020	# what "hidden" libraries, object files and flags are used when
14021	# linking a shared library.
14022	#
14023	# There doesn't appear to be a way to prevent this compiler from
14024	# explicitly linking system object files so we need to strip them
14025	# from the output so that they don't get included in the library
14026	# dependencies.
14027	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'
14028	;;
14029      *)
14030	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14031	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14032	 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'
14033
14034	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14035	  hardcode_libdir_separator_CXX=:
14036
14037	  # Commands to make compiler produce verbose output that lists
14038	  # what "hidden" libraries, object files and flags are used when
14039	  # linking a shared library.
14040	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
14041
14042	else
14043	  # FIXME: insert proper C++ library support
14044	  ld_shlibs_CXX=no
14045	fi
14046	;;
14047    esac
14048    ;;
14049  psos*)
14050    # FIXME: insert proper C++ library support
14051    ld_shlibs_CXX=no
14052    ;;
14053  sunos4*)
14054    case $cc_basename in
14055      CC*)
14056	# Sun C++ 4.x
14057	# FIXME: insert proper C++ library support
14058	ld_shlibs_CXX=no
14059	;;
14060      lcc*)
14061	# Lucid
14062	# FIXME: insert proper C++ library support
14063	ld_shlibs_CXX=no
14064	;;
14065      *)
14066	# FIXME: insert proper C++ library support
14067	ld_shlibs_CXX=no
14068	;;
14069    esac
14070    ;;
14071  solaris*)
14072    case $cc_basename in
14073      CC*)
14074	# Sun C++ 4.2, 5.x and Centerline C++
14075        archive_cmds_need_lc_CXX=yes
14076	no_undefined_flag_CXX=' -zdefs'
14077	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14078	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14079	$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'
14080
14081	hardcode_libdir_flag_spec_CXX='-R$libdir'
14082	hardcode_shlibpath_var_CXX=no
14083	case $host_os in
14084	  solaris2.[0-5] | solaris2.[0-5].*) ;;
14085	  *)
14086	    # The C++ compiler is used as linker so we must use $wl
14087	    # flag to pass the commands to the underlying system
14088	    # linker. We must also pass each convience library through
14089	    # to the system linker between allextract/defaultextract.
14090	    # The C++ compiler will combine linker options so we
14091	    # cannot just pass the convience library names through
14092	    # without $wl.
14093	    # Supported since Solaris 2.6 (maybe 2.5.1?)
14094	    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'
14095	    ;;
14096	esac
14097	link_all_deplibs_CXX=yes
14098
14099	output_verbose_link_cmd='echo'
14100
14101	# Archives containing C++ object files must be created using
14102	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
14103	# necessary to make sure instantiated templates are included
14104	# in the archive.
14105	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14106	;;
14107      gcx*)
14108	# Green Hills C++ Compiler
14109	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14110
14111	# The C++ compiler must be used to create the archive.
14112	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14113	;;
14114      *)
14115	# GNU C++ compiler with Solaris linker
14116	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14117	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14118	  if $CC --version | grep -v '^2\.7' > /dev/null; then
14119	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14120	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14121		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
14122
14123	    # Commands to make compiler produce verbose output that lists
14124	    # what "hidden" libraries, object files and flags are used when
14125	    # linking a shared library.
14126	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
14127	  else
14128	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
14129	    # platform.
14130	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14131	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14132		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
14133
14134	    # Commands to make compiler produce verbose output that lists
14135	    # what "hidden" libraries, object files and flags are used when
14136	    # linking a shared library.
14137	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
14138	  fi
14139
14140	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14141	fi
14142	;;
14143    esac
14144    ;;
14145  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14146    no_undefined_flag_CXX='${wl}-z,text'
14147    archive_cmds_need_lc_CXX=no
14148    hardcode_shlibpath_var_CXX=no
14149    runpath_var='LD_RUN_PATH'
14150
14151    case $cc_basename in
14152      CC*)
14153	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14154	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14155	;;
14156      *)
14157	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14158	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14159	;;
14160    esac
14161    ;;
14162  sysv5* | sco3.2v5* | sco5v6*)
14163    # Note: We can NOT use -z defs as we might desire, because we do not
14164    # link with -lc, and that would cause any symbols used from libc to
14165    # always be unresolved, which means just about no library would
14166    # ever link correctly.  If we're not using GNU ld we use -z text
14167    # though, which does catch some bad symbols but isn't as heavy-handed
14168    # as -z defs.
14169    # For security reasons, it is highly recommended that you always
14170    # use absolute paths for naming shared libraries, and exclude the
14171    # DT_RUNPATH tag from executables and libraries.  But doing so
14172    # requires that you compile everything twice, which is a pain.
14173    # So that behaviour is only enabled if SCOABSPATH is set to a
14174    # non-empty value in the environment.  Most likely only useful for
14175    # creating official distributions of packages.
14176    # This is a hack until libtool officially supports absolute path
14177    # names for shared libraries.
14178    no_undefined_flag_CXX='${wl}-z,text'
14179    allow_undefined_flag_CXX='${wl}-z,nodefs'
14180    archive_cmds_need_lc_CXX=no
14181    hardcode_shlibpath_var_CXX=no
14182    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14183    hardcode_libdir_separator_CXX=':'
14184    link_all_deplibs_CXX=yes
14185    export_dynamic_flag_spec_CXX='${wl}-Bexport'
14186    runpath_var='LD_RUN_PATH'
14187
14188    case $cc_basename in
14189      CC*)
14190	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14191	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14192	;;
14193      *)
14194	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14195	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14196	;;
14197    esac
14198    ;;
14199  tandem*)
14200    case $cc_basename in
14201      NCC*)
14202	# NonStop-UX NCC 3.20
14203	# FIXME: insert proper C++ library support
14204	ld_shlibs_CXX=no
14205	;;
14206      *)
14207	# FIXME: insert proper C++ library support
14208	ld_shlibs_CXX=no
14209	;;
14210    esac
14211    ;;
14212  vxworks*)
14213    # FIXME: insert proper C++ library support
14214    ld_shlibs_CXX=no
14215    ;;
14216  *)
14217    # FIXME: insert proper C++ library support
14218    ld_shlibs_CXX=no
14219    ;;
14220esac
14221echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14222echo "${ECHO_T}$ld_shlibs_CXX" >&6
14223test "$ld_shlibs_CXX" = no && can_build_shared=no
14224
14225GCC_CXX="$GXX"
14226LD_CXX="$LD"
14227
14228## CAVEAT EMPTOR:
14229## There is no encapsulation within the following macros, do not change
14230## the running order or otherwise move them around unless you know exactly
14231## what you are doing...
14232
14233cat > conftest.$ac_ext <<EOF
14234class Foo
14235{
14236public:
14237  Foo (void) { a = 0; }
14238private:
14239  int a;
14240};
14241EOF
14242
14243if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14244  (eval $ac_compile) 2>&5
14245  ac_status=$?
14246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14247  (exit $ac_status); }; then
14248  # Parse the compiler output and extract the necessary
14249  # objects, libraries and library flags.
14250
14251  # Sentinel used to keep track of whether or not we are before
14252  # the conftest object file.
14253  pre_test_object_deps_done=no
14254
14255  # The `*' in the case matches for architectures that use `case' in
14256  # $output_verbose_cmd can trigger glob expansion during the loop
14257  # eval without this substitution.
14258  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
14259
14260  for p in `eval $output_verbose_link_cmd`; do
14261    case $p in
14262
14263    -L* | -R* | -l*)
14264       # Some compilers place space between "-{L,R}" and the path.
14265       # Remove the space.
14266       if test $p = "-L" \
14267	  || test $p = "-R"; then
14268	 prev=$p
14269	 continue
14270       else
14271	 prev=
14272       fi
14273
14274       if test "$pre_test_object_deps_done" = no; then
14275	 case $p in
14276	 -L* | -R*)
14277	   # Internal compiler library paths should come after those
14278	   # provided the user.  The postdeps already come after the
14279	   # user supplied libs so there is no need to process them.
14280	   if test -z "$compiler_lib_search_path_CXX"; then
14281	     compiler_lib_search_path_CXX="${prev}${p}"
14282	   else
14283	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14284	   fi
14285	   ;;
14286	 # The "-l" case would never come before the object being
14287	 # linked, so don't bother handling this case.
14288	 esac
14289       else
14290	 if test -z "$postdeps_CXX"; then
14291	   postdeps_CXX="${prev}${p}"
14292	 else
14293	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14294	 fi
14295       fi
14296       ;;
14297
14298    *.$objext)
14299       # This assumes that the test object file only shows up
14300       # once in the compiler output.
14301       if test "$p" = "conftest.$objext"; then
14302	 pre_test_object_deps_done=yes
14303	 continue
14304       fi
14305
14306       if test "$pre_test_object_deps_done" = no; then
14307	 if test -z "$predep_objects_CXX"; then
14308	   predep_objects_CXX="$p"
14309	 else
14310	   predep_objects_CXX="$predep_objects_CXX $p"
14311	 fi
14312       else
14313	 if test -z "$postdep_objects_CXX"; then
14314	   postdep_objects_CXX="$p"
14315	 else
14316	   postdep_objects_CXX="$postdep_objects_CXX $p"
14317	 fi
14318       fi
14319       ;;
14320
14321    *) ;; # Ignore the rest.
14322
14323    esac
14324  done
14325
14326  # Clean up.
14327  rm -f a.out a.exe
14328else
14329  echo "libtool.m4: error: problem compiling CXX test program"
14330fi
14331
14332$rm -f confest.$objext
14333
14334# PORTME: override above test on systems where it is broken
14335case $host_os in
14336interix3*)
14337  # Interix 3.5 installs completely hosed .la files for C++, so rather than
14338  # hack all around it, let's just trust "g++" to DTRT.
14339  predep_objects_CXX=
14340  postdep_objects_CXX=
14341  postdeps_CXX=
14342  ;;
14343
14344solaris*)
14345  case $cc_basename in
14346  CC*)
14347    # Adding this requires a known-good setup of shared libraries for
14348    # Sun compiler versions before 5.6, else PIC objects from an old
14349    # archive will be linked into the output, leading to subtle bugs.
14350    postdeps_CXX='-lCstd -lCrun'
14351    ;;
14352  esac
14353  ;;
14354esac
14355
14356
14357case " $postdeps_CXX " in
14358*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14359esac
14360
14361lt_prog_compiler_wl_CXX=
14362lt_prog_compiler_pic_CXX=
14363lt_prog_compiler_static_CXX=
14364
14365echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14366echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14367
14368  # C++ specific cases for pic, static, wl, etc.
14369  if test "$GXX" = yes; then
14370    lt_prog_compiler_wl_CXX='-Wl,'
14371    lt_prog_compiler_static_CXX='-static'
14372
14373    case $host_os in
14374    aix*)
14375      # All AIX code is PIC.
14376      if test "$host_cpu" = ia64; then
14377	# AIX 5 now supports IA64 processor
14378	lt_prog_compiler_static_CXX='-Bstatic'
14379      fi
14380      ;;
14381    amigaos*)
14382      # FIXME: we need at least 68020 code to build shared libraries, but
14383      # adding the `-m68020' flag to GCC prevents building anything better,
14384      # like `-m68040'.
14385      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14386      ;;
14387    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14388      # PIC is the default for these OSes.
14389      ;;
14390    mingw* | os2* | pw32*)
14391      # This hack is so that the source file can tell whether it is being
14392      # built for inclusion in a dll (and should export symbols for example).
14393      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14394      ;;
14395    darwin* | rhapsody*)
14396      # PIC is the default on this platform
14397      # Common symbols not allowed in MH_DYLIB files
14398      lt_prog_compiler_pic_CXX='-fno-common'
14399      ;;
14400    *djgpp*)
14401      # DJGPP does not support shared libraries at all
14402      lt_prog_compiler_pic_CXX=
14403      ;;
14404    interix3*)
14405      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14406      # Instead, we relocate shared libraries at runtime.
14407      ;;
14408    sysv4*MP*)
14409      if test -d /usr/nec; then
14410	lt_prog_compiler_pic_CXX=-Kconform_pic
14411      fi
14412      ;;
14413    hpux*)
14414      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14415      # not for PA HP-UX.
14416      case $host_cpu in
14417      hppa*64*|ia64*)
14418	;;
14419      *)
14420	lt_prog_compiler_pic_CXX='-fPIC'
14421	;;
14422      esac
14423      ;;
14424    *)
14425      lt_prog_compiler_pic_CXX='-fPIC'
14426      ;;
14427    esac
14428  else
14429    case $host_os in
14430      aix4* | aix5*)
14431	# All AIX code is PIC.
14432	if test "$host_cpu" = ia64; then
14433	  # AIX 5 now supports IA64 processor
14434	  lt_prog_compiler_static_CXX='-Bstatic'
14435	else
14436	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14437	fi
14438	;;
14439      chorus*)
14440	case $cc_basename in
14441	cxch68*)
14442	  # Green Hills C++ Compiler
14443	  # _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"
14444	  ;;
14445	esac
14446	;;
14447       darwin*)
14448         # PIC is the default on this platform
14449         # Common symbols not allowed in MH_DYLIB files
14450         case $cc_basename in
14451           xlc*)
14452           lt_prog_compiler_pic_CXX='-qnocommon'
14453           lt_prog_compiler_wl_CXX='-Wl,'
14454           ;;
14455         esac
14456       ;;
14457      dgux*)
14458	case $cc_basename in
14459	  ec++*)
14460	    lt_prog_compiler_pic_CXX='-KPIC'
14461	    ;;
14462	  ghcx*)
14463	    # Green Hills C++ Compiler
14464	    lt_prog_compiler_pic_CXX='-pic'
14465	    ;;
14466	  *)
14467	    ;;
14468	esac
14469	;;
14470      freebsd* | kfreebsd*-gnu | dragonfly*)
14471	# FreeBSD uses GNU C++
14472	;;
14473      hpux9* | hpux10* | hpux11*)
14474	case $cc_basename in
14475	  CC*)
14476	    lt_prog_compiler_wl_CXX='-Wl,'
14477	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14478	    if test "$host_cpu" != ia64; then
14479	      lt_prog_compiler_pic_CXX='+Z'
14480	    fi
14481	    ;;
14482	  aCC*)
14483	    lt_prog_compiler_wl_CXX='-Wl,'
14484	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14485	    case $host_cpu in
14486	    hppa*64*|ia64*)
14487	      # +Z the default
14488	      ;;
14489	    *)
14490	      lt_prog_compiler_pic_CXX='+Z'
14491	      ;;
14492	    esac
14493	    ;;
14494	  *)
14495	    ;;
14496	esac
14497	;;
14498      interix*)
14499	# This is c89, which is MS Visual C++ (no shared libs)
14500	# Anyone wants to do a port?
14501	;;
14502      irix5* | irix6* | nonstopux*)
14503	case $cc_basename in
14504	  CC*)
14505	    lt_prog_compiler_wl_CXX='-Wl,'
14506	    lt_prog_compiler_static_CXX='-non_shared'
14507	    # CC pic flag -KPIC is the default.
14508	    ;;
14509	  *)
14510	    ;;
14511	esac
14512	;;
14513      linux*)
14514	case $cc_basename in
14515	  KCC*)
14516	    # KAI C++ Compiler
14517	    lt_prog_compiler_wl_CXX='--backend -Wl,'
14518	    lt_prog_compiler_pic_CXX='-fPIC'
14519	    ;;
14520	  icpc* | ecpc*)
14521	    # Intel C++
14522	    lt_prog_compiler_wl_CXX='-Wl,'
14523	    lt_prog_compiler_pic_CXX='-KPIC'
14524	    lt_prog_compiler_static_CXX='-static'
14525	    ;;
14526	  pgCC*)
14527	    # Portland Group C++ compiler.
14528	    lt_prog_compiler_wl_CXX='-Wl,'
14529	    lt_prog_compiler_pic_CXX='-fpic'
14530	    lt_prog_compiler_static_CXX='-Bstatic'
14531	    ;;
14532	  cxx*)
14533	    # Compaq C++
14534	    # Make sure the PIC flag is empty.  It appears that all Alpha
14535	    # Linux and Compaq Tru64 Unix objects are PIC.
14536	    lt_prog_compiler_pic_CXX=
14537	    lt_prog_compiler_static_CXX='-non_shared'
14538	    ;;
14539	  *)
14540	    ;;
14541	esac
14542	;;
14543      lynxos*)
14544	;;
14545      m88k*)
14546	;;
14547      mvs*)
14548	case $cc_basename in
14549	  cxx*)
14550	    lt_prog_compiler_pic_CXX='-W c,exportall'
14551	    ;;
14552	  *)
14553	    ;;
14554	esac
14555	;;
14556      netbsd*)
14557	;;
14558      osf3* | osf4* | osf5*)
14559	case $cc_basename in
14560	  KCC*)
14561	    lt_prog_compiler_wl_CXX='--backend -Wl,'
14562	    ;;
14563	  RCC*)
14564	    # Rational C++ 2.4.1
14565	    lt_prog_compiler_pic_CXX='-pic'
14566	    ;;
14567	  cxx*)
14568	    # Digital/Compaq C++
14569	    lt_prog_compiler_wl_CXX='-Wl,'
14570	    # Make sure the PIC flag is empty.  It appears that all Alpha
14571	    # Linux and Compaq Tru64 Unix objects are PIC.
14572	    lt_prog_compiler_pic_CXX=
14573	    lt_prog_compiler_static_CXX='-non_shared'
14574	    ;;
14575	  *)
14576	    ;;
14577	esac
14578	;;
14579      psos*)
14580	;;
14581      solaris*)
14582	case $cc_basename in
14583	  CC*)
14584	    # Sun C++ 4.2, 5.x and Centerline C++
14585	    lt_prog_compiler_pic_CXX='-KPIC'
14586	    lt_prog_compiler_static_CXX='-Bstatic'
14587	    lt_prog_compiler_wl_CXX='-Qoption ld '
14588	    ;;
14589	  gcx*)
14590	    # Green Hills C++ Compiler
14591	    lt_prog_compiler_pic_CXX='-PIC'
14592	    ;;
14593	  *)
14594	    ;;
14595	esac
14596	;;
14597      sunos4*)
14598	case $cc_basename in
14599	  CC*)
14600	    # Sun C++ 4.x
14601	    lt_prog_compiler_pic_CXX='-pic'
14602	    lt_prog_compiler_static_CXX='-Bstatic'
14603	    ;;
14604	  lcc*)
14605	    # Lucid
14606	    lt_prog_compiler_pic_CXX='-pic'
14607	    ;;
14608	  *)
14609	    ;;
14610	esac
14611	;;
14612      tandem*)
14613	case $cc_basename in
14614	  NCC*)
14615	    # NonStop-UX NCC 3.20
14616	    lt_prog_compiler_pic_CXX='-KPIC'
14617	    ;;
14618	  *)
14619	    ;;
14620	esac
14621	;;
14622      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14623	case $cc_basename in
14624	  CC*)
14625	    lt_prog_compiler_wl_CXX='-Wl,'
14626	    lt_prog_compiler_pic_CXX='-KPIC'
14627	    lt_prog_compiler_static_CXX='-Bstatic'
14628	    ;;
14629	esac
14630	;;
14631      vxworks*)
14632	;;
14633      *)
14634	lt_prog_compiler_can_build_shared_CXX=no
14635	;;
14636    esac
14637  fi
14638
14639echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14640echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
14641
14642#
14643# Check to make sure the PIC flag actually works.
14644#
14645if test -n "$lt_prog_compiler_pic_CXX"; then
14646
14647echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14648echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
14649if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
14650  echo $ECHO_N "(cached) $ECHO_C" >&6
14651else
14652  lt_prog_compiler_pic_works_CXX=no
14653  ac_outfile=conftest.$ac_objext
14654   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14655   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14656   # Insert the option either (1) after the last *FLAGS variable, or
14657   # (2) before a word containing "conftest.", or (3) at the end.
14658   # Note that $ac_compile itself does not contain backslashes and begins
14659   # with a dollar sign (not a hyphen), so the echo should work correctly.
14660   # The option is referenced via a variable to avoid confusing sed.
14661   lt_compile=`echo "$ac_compile" | $SED \
14662   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14663   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14664   -e 's:$: $lt_compiler_flag:'`
14665   (eval echo "\"\$as_me:14665: $lt_compile\"" >&5)
14666   (eval "$lt_compile" 2>conftest.err)
14667   ac_status=$?
14668   cat conftest.err >&5
14669   echo "$as_me:14669: \$? = $ac_status" >&5
14670   if (exit $ac_status) && test -s "$ac_outfile"; then
14671     # The compiler can only warn and ignore the option if not recognized
14672     # So say no if there are warnings other than the usual output.
14673     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14674     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14675     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14676       lt_prog_compiler_pic_works_CXX=yes
14677     fi
14678   fi
14679   $rm conftest*
14680
14681fi
14682echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
14683echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
14684
14685if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
14686    case $lt_prog_compiler_pic_CXX in
14687     "" | " "*) ;;
14688     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14689     esac
14690else
14691    lt_prog_compiler_pic_CXX=
14692     lt_prog_compiler_can_build_shared_CXX=no
14693fi
14694
14695fi
14696case $host_os in
14697  # For platforms which do not support PIC, -DPIC is meaningless:
14698  *djgpp*)
14699    lt_prog_compiler_pic_CXX=
14700    ;;
14701  *)
14702    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14703    ;;
14704esac
14705
14706#
14707# Check to make sure the static flag actually works.
14708#
14709wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14710echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14711echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
14712if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
14713  echo $ECHO_N "(cached) $ECHO_C" >&6
14714else
14715  lt_prog_compiler_static_works_CXX=no
14716   save_LDFLAGS="$LDFLAGS"
14717   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14718   printf "$lt_simple_link_test_code" > conftest.$ac_ext
14719   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14720     # The linker can only warn and ignore the option if not recognized
14721     # So say no if there are warnings
14722     if test -s conftest.err; then
14723       # Append any errors to the config.log.
14724       cat conftest.err 1>&5
14725       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14726       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14727       if diff conftest.exp conftest.er2 >/dev/null; then
14728         lt_prog_compiler_static_works_CXX=yes
14729       fi
14730     else
14731       lt_prog_compiler_static_works_CXX=yes
14732     fi
14733   fi
14734   $rm conftest*
14735   LDFLAGS="$save_LDFLAGS"
14736
14737fi
14738echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
14739echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
14740
14741if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
14742    :
14743else
14744    lt_prog_compiler_static_CXX=
14745fi
14746
14747
14748echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14749echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14750if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14751  echo $ECHO_N "(cached) $ECHO_C" >&6
14752else
14753  lt_cv_prog_compiler_c_o_CXX=no
14754   $rm -r conftest 2>/dev/null
14755   mkdir conftest
14756   cd conftest
14757   mkdir out
14758   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14759
14760   lt_compiler_flag="-o out/conftest2.$ac_objext"
14761   # Insert the option either (1) after the last *FLAGS variable, or
14762   # (2) before a word containing "conftest.", or (3) at the end.
14763   # Note that $ac_compile itself does not contain backslashes and begins
14764   # with a dollar sign (not a hyphen), so the echo should work correctly.
14765   lt_compile=`echo "$ac_compile" | $SED \
14766   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14767   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14768   -e 's:$: $lt_compiler_flag:'`
14769   (eval echo "\"\$as_me:14769: $lt_compile\"" >&5)
14770   (eval "$lt_compile" 2>out/conftest.err)
14771   ac_status=$?
14772   cat out/conftest.err >&5
14773   echo "$as_me:14773: \$? = $ac_status" >&5
14774   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14775   then
14776     # The compiler can only warn and ignore the option if not recognized
14777     # So say no if there are warnings
14778     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14779     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14780     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14781       lt_cv_prog_compiler_c_o_CXX=yes
14782     fi
14783   fi
14784   chmod u+w . 2>&5
14785   $rm conftest*
14786   # SGI C++ compiler will create directory out/ii_files/ for
14787   # template instantiation
14788   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14789   $rm out/* && rmdir out
14790   cd ..
14791   rmdir conftest
14792   $rm conftest*
14793
14794fi
14795echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14796echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
14797
14798
14799hard_links="nottested"
14800if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14801  # do not overwrite the value of need_locks provided by the user
14802  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14803echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14804  hard_links=yes
14805  $rm conftest*
14806  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14807  touch conftest.a
14808  ln conftest.a conftest.b 2>&5 || hard_links=no
14809  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14810  echo "$as_me:$LINENO: result: $hard_links" >&5
14811echo "${ECHO_T}$hard_links" >&6
14812  if test "$hard_links" = no; then
14813    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14814echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14815    need_locks=warn
14816  fi
14817else
14818  need_locks=no
14819fi
14820
14821echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14822echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14823
14824  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14825  case $host_os in
14826  aix4* | aix5*)
14827    # If we're using GNU nm, then we don't want the "-C" option.
14828    # -C means demangle to AIX nm, but means don't demangle with GNU nm
14829    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14830      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'
14831    else
14832      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'
14833    fi
14834    ;;
14835  pw32*)
14836    export_symbols_cmds_CXX="$ltdll_cmds"
14837  ;;
14838  cygwin* | mingw*)
14839    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'
14840  ;;
14841  *)
14842    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14843  ;;
14844  esac
14845
14846echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14847echo "${ECHO_T}$ld_shlibs_CXX" >&6
14848test "$ld_shlibs_CXX" = no && can_build_shared=no
14849
14850#
14851# Do we need to explicitly link libc?
14852#
14853case "x$archive_cmds_need_lc_CXX" in
14854x|xyes)
14855  # Assume -lc should be added
14856  archive_cmds_need_lc_CXX=yes
14857
14858  if test "$enable_shared" = yes && test "$GCC" = yes; then
14859    case $archive_cmds_CXX in
14860    *'~'*)
14861      # FIXME: we may have to deal with multi-command sequences.
14862      ;;
14863    '$CC '*)
14864      # Test whether the compiler implicitly links with -lc since on some
14865      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14866      # to ld, don't add -lc before -lgcc.
14867      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14868echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14869      $rm conftest*
14870      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14871
14872      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14873  (eval $ac_compile) 2>&5
14874  ac_status=$?
14875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14876  (exit $ac_status); } 2>conftest.err; then
14877        soname=conftest
14878        lib=conftest
14879        libobjs=conftest.$ac_objext
14880        deplibs=
14881        wl=$lt_prog_compiler_wl_CXX
14882	pic_flag=$lt_prog_compiler_pic_CXX
14883        compiler_flags=-v
14884        linker_flags=-v
14885        verstring=
14886        output_objdir=.
14887        libname=conftest
14888        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14889        allow_undefined_flag_CXX=
14890        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14891  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14892  ac_status=$?
14893  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14894  (exit $ac_status); }
14895        then
14896	  archive_cmds_need_lc_CXX=no
14897        else
14898	  archive_cmds_need_lc_CXX=yes
14899        fi
14900        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14901      else
14902        cat conftest.err 1>&5
14903      fi
14904      $rm conftest*
14905      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14906echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
14907      ;;
14908    esac
14909  fi
14910  ;;
14911esac
14912
14913echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14914echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14915library_names_spec=
14916libname_spec='lib$name'
14917soname_spec=
14918shrext_cmds=".so"
14919postinstall_cmds=
14920postuninstall_cmds=
14921finish_cmds=
14922finish_eval=
14923shlibpath_var=
14924shlibpath_overrides_runpath=unknown
14925version_type=none
14926dynamic_linker="$host_os ld.so"
14927sys_lib_dlsearch_path_spec="/lib /usr/lib"
14928if test "$GCC" = yes; then
14929  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14930  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14931    # if the path contains ";" then we assume it to be the separator
14932    # otherwise default to the standard path separator (i.e. ":") - it is
14933    # assumed that no part of a normal pathname contains ";" but that should
14934    # okay in the real world where ";" in dirpaths is itself problematic.
14935    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14936  else
14937    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14938  fi
14939else
14940  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14941fi
14942need_lib_prefix=unknown
14943hardcode_into_libs=no
14944
14945# when you set need_version to no, make sure it does not cause -set_version
14946# flags to be left without arguments
14947need_version=unknown
14948
14949case $host_os in
14950aix3*)
14951  version_type=linux
14952  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14953  shlibpath_var=LIBPATH
14954
14955  # AIX 3 has no versioning support, so we append a major version to the name.
14956  soname_spec='${libname}${release}${shared_ext}$major'
14957  ;;
14958
14959aix4* | aix5*)
14960  version_type=linux
14961  need_lib_prefix=no
14962  need_version=no
14963  hardcode_into_libs=yes
14964  if test "$host_cpu" = ia64; then
14965    # AIX 5 supports IA64
14966    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14967    shlibpath_var=LD_LIBRARY_PATH
14968  else
14969    # With GCC up to 2.95.x, collect2 would create an import file
14970    # for dependence libraries.  The import file would start with
14971    # the line `#! .'.  This would cause the generated library to
14972    # depend on `.', always an invalid library.  This was fixed in
14973    # development snapshots of GCC prior to 3.0.
14974    case $host_os in
14975      aix4 | aix4.[01] | aix4.[01].*)
14976      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14977	   echo ' yes '
14978	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14979	:
14980      else
14981	can_build_shared=no
14982      fi
14983      ;;
14984    esac
14985    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14986    # soname into executable. Probably we can add versioning support to
14987    # collect2, so additional links can be useful in future.
14988    if test "$aix_use_runtimelinking" = yes; then
14989      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14990      # instead of lib<name>.a to let people know that these are not
14991      # typical AIX shared libraries.
14992      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14993    else
14994      # We preserve .a as extension for shared libraries through AIX4.2
14995      # and later when we are not doing run time linking.
14996      library_names_spec='${libname}${release}.a $libname.a'
14997      soname_spec='${libname}${release}${shared_ext}$major'
14998    fi
14999    shlibpath_var=LIBPATH
15000  fi
15001  ;;
15002
15003amigaos*)
15004  library_names_spec='$libname.ixlibrary $libname.a'
15005  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15006  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'
15007  ;;
15008
15009beos*)
15010  library_names_spec='${libname}${shared_ext}'
15011  dynamic_linker="$host_os ld.so"
15012  shlibpath_var=LIBRARY_PATH
15013  ;;
15014
15015bsdi[45]*)
15016  version_type=linux
15017  need_version=no
15018  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15019  soname_spec='${libname}${release}${shared_ext}$major'
15020  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15021  shlibpath_var=LD_LIBRARY_PATH
15022  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15023  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15024  # the default ld.so.conf also contains /usr/contrib/lib and
15025  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15026  # libtool to hard-code these into programs
15027  ;;
15028
15029cygwin* | mingw* | pw32*)
15030  version_type=windows
15031  shrext_cmds=".dll"
15032  need_version=no
15033  need_lib_prefix=no
15034
15035  case $GCC,$host_os in
15036  yes,cygwin* | yes,mingw* | yes,pw32*)
15037    library_names_spec='$libname.dll.a'
15038    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15039    postinstall_cmds='base_file=`basename \${file}`~
15040      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15041      dldir=$destdir/`dirname \$dlpath`~
15042      test -d \$dldir || mkdir -p \$dldir~
15043      $install_prog $dir/$dlname \$dldir/$dlname~
15044      chmod a+x \$dldir/$dlname'
15045    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15046      dlpath=$dir/\$dldll~
15047       $rm \$dlpath'
15048    shlibpath_overrides_runpath=yes
15049
15050    case $host_os in
15051    cygwin*)
15052      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15053      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15054      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15055      ;;
15056    mingw*)
15057      # MinGW DLLs use traditional 'lib' prefix
15058      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15059      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15060      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15061        # It is most probably a Windows format PATH printed by
15062        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15063        # path with ; separators, and with drive letters. We can handle the
15064        # drive letters (cygwin fileutils understands them), so leave them,
15065        # especially as we might pass files found there to a mingw objdump,
15066        # which wouldn't understand a cygwinified path. Ahh.
15067        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15068      else
15069        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15070      fi
15071      ;;
15072    pw32*)
15073      # pw32 DLLs use 'pw' prefix rather than 'lib'
15074      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15075      ;;
15076    esac
15077    ;;
15078
15079  *)
15080    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15081    ;;
15082  esac
15083  dynamic_linker='Win32 ld.exe'
15084  # FIXME: first we should search . and the directory the executable is in
15085  shlibpath_var=PATH
15086  ;;
15087
15088darwin* | rhapsody*)
15089  dynamic_linker="$host_os dyld"
15090  version_type=darwin
15091  need_lib_prefix=no
15092  need_version=no
15093  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15094  soname_spec='${libname}${release}${major}$shared_ext'
15095  shlibpath_overrides_runpath=yes
15096  shlibpath_var=DYLD_LIBRARY_PATH
15097  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15098  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15099  if test "$GCC" = yes; then
15100    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"`
15101  else
15102    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15103  fi
15104  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15105  ;;
15106
15107dgux*)
15108  version_type=linux
15109  need_lib_prefix=no
15110  need_version=no
15111  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15112  soname_spec='${libname}${release}${shared_ext}$major'
15113  shlibpath_var=LD_LIBRARY_PATH
15114  ;;
15115
15116freebsd1*)
15117  dynamic_linker=no
15118  ;;
15119
15120kfreebsd*-gnu)
15121  version_type=linux
15122  need_lib_prefix=no
15123  need_version=no
15124  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15125  soname_spec='${libname}${release}${shared_ext}$major'
15126  shlibpath_var=LD_LIBRARY_PATH
15127  shlibpath_overrides_runpath=no
15128  hardcode_into_libs=yes
15129  dynamic_linker='GNU ld.so'
15130  ;;
15131
15132freebsd* | dragonfly*)
15133  # DragonFly does not have aout.  When/if they implement a new
15134  # versioning mechanism, adjust this.
15135  if test -x /usr/bin/objformat; then
15136    objformat=`/usr/bin/objformat`
15137  else
15138    case $host_os in
15139    freebsd[123]*) objformat=aout ;;
15140    *) objformat=elf ;;
15141    esac
15142  fi
15143  version_type=freebsd-$objformat
15144  case $version_type in
15145    freebsd-elf*)
15146      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15147      need_version=no
15148      need_lib_prefix=no
15149      ;;
15150    freebsd-*)
15151      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15152      need_version=yes
15153      ;;
15154  esac
15155  shlibpath_var=LD_LIBRARY_PATH
15156  case $host_os in
15157  freebsd2*)
15158    shlibpath_overrides_runpath=yes
15159    ;;
15160  freebsd3.[01]* | freebsdelf3.[01]*)
15161    shlibpath_overrides_runpath=yes
15162    hardcode_into_libs=yes
15163    ;;
15164  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15165  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15166    shlibpath_overrides_runpath=no
15167    hardcode_into_libs=yes
15168    ;;
15169  freebsd*) # from 4.6 on
15170    shlibpath_overrides_runpath=yes
15171    hardcode_into_libs=yes
15172    ;;
15173  esac
15174  ;;
15175
15176gnu*)
15177  version_type=linux
15178  need_lib_prefix=no
15179  need_version=no
15180  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15181  soname_spec='${libname}${release}${shared_ext}$major'
15182  shlibpath_var=LD_LIBRARY_PATH
15183  hardcode_into_libs=yes
15184  ;;
15185
15186hpux9* | hpux10* | hpux11*)
15187  # Give a soname corresponding to the major version so that dld.sl refuses to
15188  # link against other versions.
15189  version_type=sunos
15190  need_lib_prefix=no
15191  need_version=no
15192  case $host_cpu in
15193  ia64*)
15194    shrext_cmds='.so'
15195    hardcode_into_libs=yes
15196    dynamic_linker="$host_os dld.so"
15197    shlibpath_var=LD_LIBRARY_PATH
15198    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15199    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15200    soname_spec='${libname}${release}${shared_ext}$major'
15201    if test "X$HPUX_IA64_MODE" = X32; then
15202      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15203    else
15204      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15205    fi
15206    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15207    ;;
15208   hppa*64*)
15209     shrext_cmds='.sl'
15210     hardcode_into_libs=yes
15211     dynamic_linker="$host_os dld.sl"
15212     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15213     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15214     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15215     soname_spec='${libname}${release}${shared_ext}$major'
15216     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15217     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15218     ;;
15219   *)
15220    shrext_cmds='.sl'
15221    dynamic_linker="$host_os dld.sl"
15222    shlibpath_var=SHLIB_PATH
15223    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15224    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15225    soname_spec='${libname}${release}${shared_ext}$major'
15226    ;;
15227  esac
15228  # HP-UX runs *really* slowly unless shared libraries are mode 555.
15229  postinstall_cmds='chmod 555 $lib'
15230  ;;
15231
15232interix3*)
15233  version_type=linux
15234  need_lib_prefix=no
15235  need_version=no
15236  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15237  soname_spec='${libname}${release}${shared_ext}$major'
15238  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15239  shlibpath_var=LD_LIBRARY_PATH
15240  shlibpath_overrides_runpath=no
15241  hardcode_into_libs=yes
15242  ;;
15243
15244irix5* | irix6* | nonstopux*)
15245  case $host_os in
15246    nonstopux*) version_type=nonstopux ;;
15247    *)
15248	if test "$lt_cv_prog_gnu_ld" = yes; then
15249		version_type=linux
15250	else
15251		version_type=irix
15252	fi ;;
15253  esac
15254  need_lib_prefix=no
15255  need_version=no
15256  soname_spec='${libname}${release}${shared_ext}$major'
15257  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15258  case $host_os in
15259  irix5* | nonstopux*)
15260    libsuff= shlibsuff=
15261    ;;
15262  *)
15263    case $LD in # libtool.m4 will add one of these switches to LD
15264    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15265      libsuff= shlibsuff= libmagic=32-bit;;
15266    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15267      libsuff=32 shlibsuff=N32 libmagic=N32;;
15268    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15269      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15270    *) libsuff= shlibsuff= libmagic=never-match;;
15271    esac
15272    ;;
15273  esac
15274  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15275  shlibpath_overrides_runpath=no
15276  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15277  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15278  hardcode_into_libs=yes
15279  ;;
15280
15281# No shared lib support for Linux oldld, aout, or coff.
15282linux*oldld* | linux*aout* | linux*coff*)
15283  dynamic_linker=no
15284  ;;
15285
15286# This must be Linux ELF.
15287linux*)
15288  version_type=linux
15289  need_lib_prefix=no
15290  need_version=no
15291  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15292  soname_spec='${libname}${release}${shared_ext}$major'
15293  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15294  shlibpath_var=LD_LIBRARY_PATH
15295  shlibpath_overrides_runpath=no
15296  # This implies no fast_install, which is unacceptable.
15297  # Some rework will be needed to allow for fast_install
15298  # before this can be enabled.
15299  hardcode_into_libs=yes
15300
15301  # Append ld.so.conf contents to the search path
15302  if test -f /etc/ld.so.conf; then
15303    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' ' '`
15304    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15305  fi
15306
15307  # We used to test for /lib/ld.so.1 and disable shared libraries on
15308  # powerpc, because MkLinux only supported shared libraries with the
15309  # GNU dynamic linker.  Since this was broken with cross compilers,
15310  # most powerpc-linux boxes support dynamic linking these days and
15311  # people can always --disable-shared, the test was removed, and we
15312  # assume the GNU/Linux dynamic linker is in use.
15313  dynamic_linker='GNU/Linux ld.so'
15314  ;;
15315
15316knetbsd*-gnu)
15317  version_type=linux
15318  need_lib_prefix=no
15319  need_version=no
15320  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15321  soname_spec='${libname}${release}${shared_ext}$major'
15322  shlibpath_var=LD_LIBRARY_PATH
15323  shlibpath_overrides_runpath=no
15324  hardcode_into_libs=yes
15325  dynamic_linker='GNU ld.so'
15326  ;;
15327
15328netbsd*)
15329  version_type=sunos
15330  need_lib_prefix=no
15331  need_version=no
15332  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15333    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15334    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15335    dynamic_linker='NetBSD (a.out) ld.so'
15336  else
15337    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15338    soname_spec='${libname}${release}${shared_ext}$major'
15339    dynamic_linker='NetBSD ld.elf_so'
15340  fi
15341  shlibpath_var=LD_LIBRARY_PATH
15342  shlibpath_overrides_runpath=yes
15343  hardcode_into_libs=yes
15344  ;;
15345
15346newsos6)
15347  version_type=linux
15348  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15349  shlibpath_var=LD_LIBRARY_PATH
15350  shlibpath_overrides_runpath=yes
15351  ;;
15352
15353nto-qnx*)
15354  version_type=linux
15355  need_lib_prefix=no
15356  need_version=no
15357  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15358  soname_spec='${libname}${release}${shared_ext}$major'
15359  shlibpath_var=LD_LIBRARY_PATH
15360  shlibpath_overrides_runpath=yes
15361  ;;
15362
15363openbsd*)
15364  version_type=sunos
15365  sys_lib_dlsearch_path_spec="/usr/lib"
15366  need_lib_prefix=no
15367  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15368  case $host_os in
15369    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15370    *)                         need_version=no  ;;
15371  esac
15372  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15373  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15374  shlibpath_var=LD_LIBRARY_PATH
15375  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15376    case $host_os in
15377      openbsd2.[89] | openbsd2.[89].*)
15378	shlibpath_overrides_runpath=no
15379	;;
15380      *)
15381	shlibpath_overrides_runpath=yes
15382	;;
15383      esac
15384  else
15385    shlibpath_overrides_runpath=yes
15386  fi
15387  ;;
15388
15389os2*)
15390  libname_spec='$name'
15391  shrext_cmds=".dll"
15392  need_lib_prefix=no
15393  library_names_spec='$libname${shared_ext} $libname.a'
15394  dynamic_linker='OS/2 ld.exe'
15395  shlibpath_var=LIBPATH
15396  ;;
15397
15398osf3* | osf4* | osf5*)
15399  version_type=osf
15400  need_lib_prefix=no
15401  need_version=no
15402  soname_spec='${libname}${release}${shared_ext}$major'
15403  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15404  shlibpath_var=LD_LIBRARY_PATH
15405  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15406  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15407  ;;
15408
15409solaris*)
15410  version_type=linux
15411  need_lib_prefix=no
15412  need_version=no
15413  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15414  soname_spec='${libname}${release}${shared_ext}$major'
15415  shlibpath_var=LD_LIBRARY_PATH
15416  shlibpath_overrides_runpath=yes
15417  hardcode_into_libs=yes
15418  # ldd complains unless libraries are executable
15419  postinstall_cmds='chmod +x $lib'
15420  ;;
15421
15422sunos4*)
15423  version_type=sunos
15424  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15425  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15426  shlibpath_var=LD_LIBRARY_PATH
15427  shlibpath_overrides_runpath=yes
15428  if test "$with_gnu_ld" = yes; then
15429    need_lib_prefix=no
15430  fi
15431  need_version=yes
15432  ;;
15433
15434sysv4 | sysv4.3*)
15435  version_type=linux
15436  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15437  soname_spec='${libname}${release}${shared_ext}$major'
15438  shlibpath_var=LD_LIBRARY_PATH
15439  case $host_vendor in
15440    sni)
15441      shlibpath_overrides_runpath=no
15442      need_lib_prefix=no
15443      export_dynamic_flag_spec='${wl}-Blargedynsym'
15444      runpath_var=LD_RUN_PATH
15445      ;;
15446    siemens)
15447      need_lib_prefix=no
15448      ;;
15449    motorola)
15450      need_lib_prefix=no
15451      need_version=no
15452      shlibpath_overrides_runpath=no
15453      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15454      ;;
15455  esac
15456  ;;
15457
15458sysv4*MP*)
15459  if test -d /usr/nec ;then
15460    version_type=linux
15461    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15462    soname_spec='$libname${shared_ext}.$major'
15463    shlibpath_var=LD_LIBRARY_PATH
15464  fi
15465  ;;
15466
15467sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15468  version_type=freebsd-elf
15469  need_lib_prefix=no
15470  need_version=no
15471  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15472  soname_spec='${libname}${release}${shared_ext}$major'
15473  shlibpath_var=LD_LIBRARY_PATH
15474  hardcode_into_libs=yes
15475  if test "$with_gnu_ld" = yes; then
15476    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15477    shlibpath_overrides_runpath=no
15478  else
15479    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15480    shlibpath_overrides_runpath=yes
15481    case $host_os in
15482      sco3.2v5*)
15483        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15484	;;
15485    esac
15486  fi
15487  sys_lib_dlsearch_path_spec='/usr/lib'
15488  ;;
15489
15490uts4*)
15491  version_type=linux
15492  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15493  soname_spec='${libname}${release}${shared_ext}$major'
15494  shlibpath_var=LD_LIBRARY_PATH
15495  ;;
15496
15497*)
15498  dynamic_linker=no
15499  ;;
15500esac
15501echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15502echo "${ECHO_T}$dynamic_linker" >&6
15503test "$dynamic_linker" = no && can_build_shared=no
15504
15505variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15506if test "$GCC" = yes; then
15507  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15508fi
15509
15510echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15511echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15512hardcode_action_CXX=
15513if test -n "$hardcode_libdir_flag_spec_CXX" || \
15514   test -n "$runpath_var_CXX" || \
15515   test "X$hardcode_automatic_CXX" = "Xyes" ; then
15516
15517  # We can hardcode non-existant directories.
15518  if test "$hardcode_direct_CXX" != no &&
15519     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15520     # have to relink, otherwise we might link with an installed library
15521     # when we should be linking with a yet-to-be-installed one
15522     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15523     test "$hardcode_minus_L_CXX" != no; then
15524    # Linking always hardcodes the temporary library directory.
15525    hardcode_action_CXX=relink
15526  else
15527    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15528    hardcode_action_CXX=immediate
15529  fi
15530else
15531  # We cannot hardcode anything, or else we can only hardcode existing
15532  # directories.
15533  hardcode_action_CXX=unsupported
15534fi
15535echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15536echo "${ECHO_T}$hardcode_action_CXX" >&6
15537
15538if test "$hardcode_action_CXX" = relink; then
15539  # Fast installation is not supported
15540  enable_fast_install=no
15541elif test "$shlibpath_overrides_runpath" = yes ||
15542     test "$enable_shared" = no; then
15543  # Fast installation is not necessary
15544  enable_fast_install=needless
15545fi
15546
15547
15548# The else clause should only fire when bootstrapping the
15549# libtool distribution, otherwise you forgot to ship ltmain.sh
15550# with your package, and you will get complaints that there are
15551# no rules to generate ltmain.sh.
15552if test -f "$ltmain"; then
15553  # See if we are running on zsh, and set the options which allow our commands through
15554  # without removal of \ escapes.
15555  if test -n "${ZSH_VERSION+set}" ; then
15556    setopt NO_GLOB_SUBST
15557  fi
15558  # Now quote all the things that may contain metacharacters while being
15559  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15560  # variables and quote the copies for generation of the libtool script.
15561  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15562    SED SHELL STRIP \
15563    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15564    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15565    deplibs_check_method reload_flag reload_cmds need_locks \
15566    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15567    lt_cv_sys_global_symbol_to_c_name_address \
15568    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15569    old_postinstall_cmds old_postuninstall_cmds \
15570    compiler_CXX \
15571    CC_CXX \
15572    LD_CXX \
15573    lt_prog_compiler_wl_CXX \
15574    lt_prog_compiler_pic_CXX \
15575    lt_prog_compiler_static_CXX \
15576    lt_prog_compiler_no_builtin_flag_CXX \
15577    export_dynamic_flag_spec_CXX \
15578    thread_safe_flag_spec_CXX \
15579    whole_archive_flag_spec_CXX \
15580    enable_shared_with_static_runtimes_CXX \
15581    old_archive_cmds_CXX \
15582    old_archive_from_new_cmds_CXX \
15583    predep_objects_CXX \
15584    postdep_objects_CXX \
15585    predeps_CXX \
15586    postdeps_CXX \
15587    compiler_lib_search_path_CXX \
15588    archive_cmds_CXX \
15589    archive_expsym_cmds_CXX \
15590    postinstall_cmds_CXX \
15591    postuninstall_cmds_CXX \
15592    old_archive_from_expsyms_cmds_CXX \
15593    allow_undefined_flag_CXX \
15594    no_undefined_flag_CXX \
15595    export_symbols_cmds_CXX \
15596    hardcode_libdir_flag_spec_CXX \
15597    hardcode_libdir_flag_spec_ld_CXX \
15598    hardcode_libdir_separator_CXX \
15599    hardcode_automatic_CXX \
15600    module_cmds_CXX \
15601    module_expsym_cmds_CXX \
15602    lt_cv_prog_compiler_c_o_CXX \
15603    exclude_expsyms_CXX \
15604    include_expsyms_CXX; do
15605
15606    case $var in
15607    old_archive_cmds_CXX | \
15608    old_archive_from_new_cmds_CXX | \
15609    archive_cmds_CXX | \
15610    archive_expsym_cmds_CXX | \
15611    module_cmds_CXX | \
15612    module_expsym_cmds_CXX | \
15613    old_archive_from_expsyms_cmds_CXX | \
15614    export_symbols_cmds_CXX | \
15615    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15616    postinstall_cmds | postuninstall_cmds | \
15617    old_postinstall_cmds | old_postuninstall_cmds | \
15618    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15619      # Double-quote double-evaled strings.
15620      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15621      ;;
15622    *)
15623      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15624      ;;
15625    esac
15626  done
15627
15628  case $lt_echo in
15629  *'\$0 --fallback-echo"')
15630    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15631    ;;
15632  esac
15633
15634cfgfile="$ofile"
15635
15636  cat <<__EOF__ >> "$cfgfile"
15637# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15638
15639# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15640
15641# Shell to use when invoking shell scripts.
15642SHELL=$lt_SHELL
15643
15644# Whether or not to build shared libraries.
15645build_libtool_libs=$enable_shared
15646
15647# Whether or not to build static libraries.
15648build_old_libs=$enable_static
15649
15650# Whether or not to add -lc for building shared libraries.
15651build_libtool_need_lc=$archive_cmds_need_lc_CXX
15652
15653# Whether or not to disallow shared libs when runtime libs are static
15654allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
15655
15656# Whether or not to optimize for fast installation.
15657fast_install=$enable_fast_install
15658
15659# The host system.
15660host_alias=$host_alias
15661host=$host
15662host_os=$host_os
15663
15664# The build system.
15665build_alias=$build_alias
15666build=$build
15667build_os=$build_os
15668
15669# An echo program that does not interpret backslashes.
15670echo=$lt_echo
15671
15672# The archiver.
15673AR=$lt_AR
15674AR_FLAGS=$lt_AR_FLAGS
15675
15676# A C compiler.
15677LTCC=$lt_LTCC
15678
15679# LTCC compiler flags.
15680LTCFLAGS=$lt_LTCFLAGS
15681
15682# A language-specific compiler.
15683CC=$lt_compiler_CXX
15684
15685# Is the compiler the GNU C compiler?
15686with_gcc=$GCC_CXX
15687
15688# An ERE matcher.
15689EGREP=$lt_EGREP
15690
15691# The linker used to build libraries.
15692LD=$lt_LD_CXX
15693
15694# Whether we need hard or soft links.
15695LN_S=$lt_LN_S
15696
15697# A BSD-compatible nm program.
15698NM=$lt_NM
15699
15700# A symbol stripping program
15701STRIP=$lt_STRIP
15702
15703# Used to examine libraries when file_magic_cmd begins "file"
15704MAGIC_CMD=$MAGIC_CMD
15705
15706# Used on cygwin: DLL creation program.
15707DLLTOOL="$DLLTOOL"
15708
15709# Used on cygwin: object dumper.
15710OBJDUMP="$OBJDUMP"
15711
15712# Used on cygwin: assembler.
15713AS="$AS"
15714
15715# The name of the directory that contains temporary libtool files.
15716objdir=$objdir
15717
15718# How to create reloadable object files.
15719reload_flag=$lt_reload_flag
15720reload_cmds=$lt_reload_cmds
15721
15722# How to pass a linker flag through the compiler.
15723wl=$lt_lt_prog_compiler_wl_CXX
15724
15725# Object file suffix (normally "o").
15726objext="$ac_objext"
15727
15728# Old archive suffix (normally "a").
15729libext="$libext"
15730
15731# Shared library suffix (normally ".so").
15732shrext_cmds='$shrext_cmds'
15733
15734# Executable file suffix (normally "").
15735exeext="$exeext"
15736
15737# Additional compiler flags for building library objects.
15738pic_flag=$lt_lt_prog_compiler_pic_CXX
15739pic_mode=$pic_mode
15740
15741# What is the maximum length of a command?
15742max_cmd_len=$lt_cv_sys_max_cmd_len
15743
15744# Does compiler simultaneously support -c and -o options?
15745compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15746
15747# Must we lock files when doing compilation?
15748need_locks=$lt_need_locks
15749
15750# Do we need the lib prefix for modules?
15751need_lib_prefix=$need_lib_prefix
15752
15753# Do we need a version for libraries?
15754need_version=$need_version
15755
15756# Whether dlopen is supported.
15757dlopen_support=$enable_dlopen
15758
15759# Whether dlopen of programs is supported.
15760dlopen_self=$enable_dlopen_self
15761
15762# Whether dlopen of statically linked programs is supported.
15763dlopen_self_static=$enable_dlopen_self_static
15764
15765# Compiler flag to prevent dynamic linking.
15766link_static_flag=$lt_lt_prog_compiler_static_CXX
15767
15768# Compiler flag to turn off builtin functions.
15769no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15770
15771# Compiler flag to allow reflexive dlopens.
15772export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15773
15774# Compiler flag to generate shared objects directly from archives.
15775whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15776
15777# Compiler flag to generate thread-safe objects.
15778thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15779
15780# Library versioning type.
15781version_type=$version_type
15782
15783# Format of library name prefix.
15784libname_spec=$lt_libname_spec
15785
15786# List of archive names.  First name is the real one, the rest are links.
15787# The last name is the one that the linker finds with -lNAME.
15788library_names_spec=$lt_library_names_spec
15789
15790# The coded name of the library, if different from the real name.
15791soname_spec=$lt_soname_spec
15792
15793# Commands used to build and install an old-style archive.
15794RANLIB=$lt_RANLIB
15795old_archive_cmds=$lt_old_archive_cmds_CXX
15796old_postinstall_cmds=$lt_old_postinstall_cmds
15797old_postuninstall_cmds=$lt_old_postuninstall_cmds
15798
15799# Create an old-style archive from a shared archive.
15800old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15801
15802# Create a temporary old-style archive to link instead of a shared archive.
15803old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15804
15805# Commands used to build and install a shared archive.
15806archive_cmds=$lt_archive_cmds_CXX
15807archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15808postinstall_cmds=$lt_postinstall_cmds
15809postuninstall_cmds=$lt_postuninstall_cmds
15810
15811# Commands used to build a loadable module (assumed same as above if empty)
15812module_cmds=$lt_module_cmds_CXX
15813module_expsym_cmds=$lt_module_expsym_cmds_CXX
15814
15815# Commands to strip libraries.
15816old_striplib=$lt_old_striplib
15817striplib=$lt_striplib
15818
15819# Dependencies to place before the objects being linked to create a
15820# shared library.
15821predep_objects=$lt_predep_objects_CXX
15822
15823# Dependencies to place after the objects being linked to create a
15824# shared library.
15825postdep_objects=$lt_postdep_objects_CXX
15826
15827# Dependencies to place before the objects being linked to create a
15828# shared library.
15829predeps=$lt_predeps_CXX
15830
15831# Dependencies to place after the objects being linked to create a
15832# shared library.
15833postdeps=$lt_postdeps_CXX
15834
15835# The library search path used internally by the compiler when linking
15836# a shared library.
15837compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15838
15839# Method to check whether dependent libraries are shared objects.
15840deplibs_check_method=$lt_deplibs_check_method
15841
15842# Command to use when deplibs_check_method == file_magic.
15843file_magic_cmd=$lt_file_magic_cmd
15844
15845# Flag that allows shared libraries with undefined symbols to be built.
15846allow_undefined_flag=$lt_allow_undefined_flag_CXX
15847
15848# Flag that forces no undefined symbols.
15849no_undefined_flag=$lt_no_undefined_flag_CXX
15850
15851# Commands used to finish a libtool library installation in a directory.
15852finish_cmds=$lt_finish_cmds
15853
15854# Same as above, but a single script fragment to be evaled but not shown.
15855finish_eval=$lt_finish_eval
15856
15857# Take the output of nm and produce a listing of raw symbols and C names.
15858global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15859
15860# Transform the output of nm in a proper C declaration
15861global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15862
15863# Transform the output of nm in a C name address pair
15864global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15865
15866# This is the shared library runtime path variable.
15867runpath_var=$runpath_var
15868
15869# This is the shared library path variable.
15870shlibpath_var=$shlibpath_var
15871
15872# Is shlibpath searched before the hard-coded library search path?
15873shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15874
15875# How to hardcode a shared library path into an executable.
15876hardcode_action=$hardcode_action_CXX
15877
15878# Whether we should hardcode library paths into libraries.
15879hardcode_into_libs=$hardcode_into_libs
15880
15881# Flag to hardcode \$libdir into a binary during linking.
15882# This must work even if \$libdir does not exist.
15883hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15884
15885# If ld is used when linking, flag to hardcode \$libdir into
15886# a binary during linking. This must work even if \$libdir does
15887# not exist.
15888hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15889
15890# Whether we need a single -rpath flag with a separated argument.
15891hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15892
15893# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15894# resulting binary.
15895hardcode_direct=$hardcode_direct_CXX
15896
15897# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15898# resulting binary.
15899hardcode_minus_L=$hardcode_minus_L_CXX
15900
15901# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15902# the resulting binary.
15903hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15904
15905# Set to yes if building a shared library automatically hardcodes DIR into the library
15906# and all subsequent libraries and executables linked against it.
15907hardcode_automatic=$hardcode_automatic_CXX
15908
15909# Variables whose values should be saved in libtool wrapper scripts and
15910# restored at relink time.
15911variables_saved_for_relink="$variables_saved_for_relink"
15912
15913# Whether libtool must link a program against all its dependency libraries.
15914link_all_deplibs=$link_all_deplibs_CXX
15915
15916# Compile-time system search path for libraries
15917sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15918
15919# Run-time system search path for libraries
15920sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15921
15922# Fix the shell variable \$srcfile for the compiler.
15923fix_srcfile_path="$fix_srcfile_path_CXX"
15924
15925# Set to yes if exported symbols are required.
15926always_export_symbols=$always_export_symbols_CXX
15927
15928# The commands to list exported symbols.
15929export_symbols_cmds=$lt_export_symbols_cmds_CXX
15930
15931# The commands to extract the exported symbol list from a shared archive.
15932extract_expsyms_cmds=$lt_extract_expsyms_cmds
15933
15934# Symbols that should not be listed in the preloaded symbols.
15935exclude_expsyms=$lt_exclude_expsyms_CXX
15936
15937# Symbols that must always be exported.
15938include_expsyms=$lt_include_expsyms_CXX
15939
15940# ### END LIBTOOL TAG CONFIG: $tagname
15941
15942__EOF__
15943
15944
15945else
15946  # If there is no Makefile yet, we rely on a make rule to execute
15947  # `config.status --recheck' to rerun these tests and create the
15948  # libtool script then.
15949  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15950  if test -f "$ltmain_in"; then
15951    test -f Makefile && make "$ltmain"
15952  fi
15953fi
15954
15955
15956ac_ext=c
15957ac_cpp='$CPP $CPPFLAGS'
15958ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15959ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15960ac_compiler_gnu=$ac_cv_c_compiler_gnu
15961
15962CC=$lt_save_CC
15963LDCXX=$LD
15964LD=$lt_save_LD
15965GCC=$lt_save_GCC
15966with_gnu_ldcxx=$with_gnu_ld
15967with_gnu_ld=$lt_save_with_gnu_ld
15968lt_cv_path_LDCXX=$lt_cv_path_LD
15969lt_cv_path_LD=$lt_save_path_LD
15970lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15971lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15972
15973	else
15974	  tagname=""
15975	fi
15976	;;
15977
15978      F77)
15979	if test -n "$F77" && test "X$F77" != "Xno"; then
15980
15981ac_ext=f
15982ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15983ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15984ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15985
15986
15987archive_cmds_need_lc_F77=no
15988allow_undefined_flag_F77=
15989always_export_symbols_F77=no
15990archive_expsym_cmds_F77=
15991export_dynamic_flag_spec_F77=
15992hardcode_direct_F77=no
15993hardcode_libdir_flag_spec_F77=
15994hardcode_libdir_flag_spec_ld_F77=
15995hardcode_libdir_separator_F77=
15996hardcode_minus_L_F77=no
15997hardcode_automatic_F77=no
15998module_cmds_F77=
15999module_expsym_cmds_F77=
16000link_all_deplibs_F77=unknown
16001old_archive_cmds_F77=$old_archive_cmds
16002no_undefined_flag_F77=
16003whole_archive_flag_spec_F77=
16004enable_shared_with_static_runtimes_F77=no
16005
16006# Source file extension for f77 test sources.
16007ac_ext=f
16008
16009# Object file extension for compiled f77 test sources.
16010objext=o
16011objext_F77=$objext
16012
16013# Code to be used in simple compile tests
16014lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
16015
16016# Code to be used in simple link tests
16017lt_simple_link_test_code="      program t\n      end\n"
16018
16019# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16020
16021# If no C compiler was specified, use CC.
16022LTCC=${LTCC-"$CC"}
16023
16024# If no C compiler flags were specified, use CFLAGS.
16025LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16026
16027# Allow CC to be a program name with arguments.
16028compiler=$CC
16029
16030
16031# save warnings/boilerplate of simple test code
16032ac_outfile=conftest.$ac_objext
16033printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16034eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16035_lt_compiler_boilerplate=`cat conftest.err`
16036$rm conftest*
16037
16038ac_outfile=conftest.$ac_objext
16039printf "$lt_simple_link_test_code" >conftest.$ac_ext
16040eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16041_lt_linker_boilerplate=`cat conftest.err`
16042$rm conftest*
16043
16044
16045# Allow CC to be a program name with arguments.
16046lt_save_CC="$CC"
16047CC=${F77-"f77"}
16048compiler=$CC
16049compiler_F77=$CC
16050for cc_temp in $compiler""; do
16051  case $cc_temp in
16052    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16053    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16054    \-*) ;;
16055    *) break;;
16056  esac
16057done
16058cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16059
16060
16061echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
16062echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
16063echo "$as_me:$LINENO: result: $can_build_shared" >&5
16064echo "${ECHO_T}$can_build_shared" >&6
16065
16066echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
16067echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
16068test "$can_build_shared" = "no" && enable_shared=no
16069
16070# On AIX, shared libraries and static libraries use the same namespace, and
16071# are all built from PIC.
16072case $host_os in
16073aix3*)
16074  test "$enable_shared" = yes && enable_static=no
16075  if test -n "$RANLIB"; then
16076    archive_cmds="$archive_cmds~\$RANLIB \$lib"
16077    postinstall_cmds='$RANLIB $lib'
16078  fi
16079  ;;
16080aix4* | aix5*)
16081  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16082    test "$enable_shared" = yes && enable_static=no
16083  fi
16084  ;;
16085esac
16086echo "$as_me:$LINENO: result: $enable_shared" >&5
16087echo "${ECHO_T}$enable_shared" >&6
16088
16089echo "$as_me:$LINENO: checking whether to build static libraries" >&5
16090echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
16091# Make sure either enable_shared or enable_static is yes.
16092test "$enable_shared" = yes || enable_static=yes
16093echo "$as_me:$LINENO: result: $enable_static" >&5
16094echo "${ECHO_T}$enable_static" >&6
16095
16096GCC_F77="$G77"
16097LD_F77="$LD"
16098
16099lt_prog_compiler_wl_F77=
16100lt_prog_compiler_pic_F77=
16101lt_prog_compiler_static_F77=
16102
16103echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16104echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16105
16106  if test "$GCC" = yes; then
16107    lt_prog_compiler_wl_F77='-Wl,'
16108    lt_prog_compiler_static_F77='-static'
16109
16110    case $host_os in
16111      aix*)
16112      # All AIX code is PIC.
16113      if test "$host_cpu" = ia64; then
16114	# AIX 5 now supports IA64 processor
16115	lt_prog_compiler_static_F77='-Bstatic'
16116      fi
16117      ;;
16118
16119    amigaos*)
16120      # FIXME: we need at least 68020 code to build shared libraries, but
16121      # adding the `-m68020' flag to GCC prevents building anything better,
16122      # like `-m68040'.
16123      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
16124      ;;
16125
16126    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16127      # PIC is the default for these OSes.
16128      ;;
16129
16130    mingw* | pw32* | os2*)
16131      # This hack is so that the source file can tell whether it is being
16132      # built for inclusion in a dll (and should export symbols for example).
16133      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
16134      ;;
16135
16136    darwin* | rhapsody*)
16137      # PIC is the default on this platform
16138      # Common symbols not allowed in MH_DYLIB files
16139      lt_prog_compiler_pic_F77='-fno-common'
16140      ;;
16141
16142    interix3*)
16143      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16144      # Instead, we relocate shared libraries at runtime.
16145      ;;
16146
16147    msdosdjgpp*)
16148      # Just because we use GCC doesn't mean we suddenly get shared libraries
16149      # on systems that don't support them.
16150      lt_prog_compiler_can_build_shared_F77=no
16151      enable_shared=no
16152      ;;
16153
16154    sysv4*MP*)
16155      if test -d /usr/nec; then
16156	lt_prog_compiler_pic_F77=-Kconform_pic
16157      fi
16158      ;;
16159
16160    hpux*)
16161      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16162      # not for PA HP-UX.
16163      case $host_cpu in
16164      hppa*64*|ia64*)
16165	# +Z the default
16166	;;
16167      *)
16168	lt_prog_compiler_pic_F77='-fPIC'
16169	;;
16170      esac
16171      ;;
16172
16173    *)
16174      lt_prog_compiler_pic_F77='-fPIC'
16175      ;;
16176    esac
16177  else
16178    # PORTME Check for flag to pass linker flags through the system compiler.
16179    case $host_os in
16180    aix*)
16181      lt_prog_compiler_wl_F77='-Wl,'
16182      if test "$host_cpu" = ia64; then
16183	# AIX 5 now supports IA64 processor
16184	lt_prog_compiler_static_F77='-Bstatic'
16185      else
16186	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
16187      fi
16188      ;;
16189      darwin*)
16190        # PIC is the default on this platform
16191        # Common symbols not allowed in MH_DYLIB files
16192       case $cc_basename in
16193         xlc*)
16194         lt_prog_compiler_pic_F77='-qnocommon'
16195         lt_prog_compiler_wl_F77='-Wl,'
16196         ;;
16197       esac
16198       ;;
16199
16200    mingw* | pw32* | os2*)
16201      # This hack is so that the source file can tell whether it is being
16202      # built for inclusion in a dll (and should export symbols for example).
16203      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
16204      ;;
16205
16206    hpux9* | hpux10* | hpux11*)
16207      lt_prog_compiler_wl_F77='-Wl,'
16208      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16209      # not for PA HP-UX.
16210      case $host_cpu in
16211      hppa*64*|ia64*)
16212	# +Z the default
16213	;;
16214      *)
16215	lt_prog_compiler_pic_F77='+Z'
16216	;;
16217      esac
16218      # Is there a better lt_prog_compiler_static that works with the bundled CC?
16219      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
16220      ;;
16221
16222    irix5* | irix6* | nonstopux*)
16223      lt_prog_compiler_wl_F77='-Wl,'
16224      # PIC (with -KPIC) is the default.
16225      lt_prog_compiler_static_F77='-non_shared'
16226      ;;
16227
16228    newsos6)
16229      lt_prog_compiler_pic_F77='-KPIC'
16230      lt_prog_compiler_static_F77='-Bstatic'
16231      ;;
16232
16233    linux*)
16234      case $cc_basename in
16235      icc* | ecc*)
16236	lt_prog_compiler_wl_F77='-Wl,'
16237	lt_prog_compiler_pic_F77='-KPIC'
16238	lt_prog_compiler_static_F77='-static'
16239        ;;
16240      pgcc* | pgf77* | pgf90* | pgf95*)
16241        # Portland Group compilers (*not* the Pentium gcc compiler,
16242	# which looks to be a dead project)
16243	lt_prog_compiler_wl_F77='-Wl,'
16244	lt_prog_compiler_pic_F77='-fpic'
16245	lt_prog_compiler_static_F77='-Bstatic'
16246        ;;
16247      ccc*)
16248        lt_prog_compiler_wl_F77='-Wl,'
16249        # All Alpha code is PIC.
16250        lt_prog_compiler_static_F77='-non_shared'
16251        ;;
16252      esac
16253      ;;
16254
16255    osf3* | osf4* | osf5*)
16256      lt_prog_compiler_wl_F77='-Wl,'
16257      # All OSF/1 code is PIC.
16258      lt_prog_compiler_static_F77='-non_shared'
16259      ;;
16260
16261    solaris*)
16262      lt_prog_compiler_pic_F77='-KPIC'
16263      lt_prog_compiler_static_F77='-Bstatic'
16264      case $cc_basename in
16265      f77* | f90* | f95*)
16266	lt_prog_compiler_wl_F77='-Qoption ld ';;
16267      *)
16268	lt_prog_compiler_wl_F77='-Wl,';;
16269      esac
16270      ;;
16271
16272    sunos4*)
16273      lt_prog_compiler_wl_F77='-Qoption ld '
16274      lt_prog_compiler_pic_F77='-PIC'
16275      lt_prog_compiler_static_F77='-Bstatic'
16276      ;;
16277
16278    sysv4 | sysv4.2uw2* | sysv4.3*)
16279      lt_prog_compiler_wl_F77='-Wl,'
16280      lt_prog_compiler_pic_F77='-KPIC'
16281      lt_prog_compiler_static_F77='-Bstatic'
16282      ;;
16283
16284    sysv4*MP*)
16285      if test -d /usr/nec ;then
16286	lt_prog_compiler_pic_F77='-Kconform_pic'
16287	lt_prog_compiler_static_F77='-Bstatic'
16288      fi
16289      ;;
16290
16291    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16292      lt_prog_compiler_wl_F77='-Wl,'
16293      lt_prog_compiler_pic_F77='-KPIC'
16294      lt_prog_compiler_static_F77='-Bstatic'
16295      ;;
16296
16297    unicos*)
16298      lt_prog_compiler_wl_F77='-Wl,'
16299      lt_prog_compiler_can_build_shared_F77=no
16300      ;;
16301
16302    uts4*)
16303      lt_prog_compiler_pic_F77='-pic'
16304      lt_prog_compiler_static_F77='-Bstatic'
16305      ;;
16306
16307    *)
16308      lt_prog_compiler_can_build_shared_F77=no
16309      ;;
16310    esac
16311  fi
16312
16313echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
16314echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
16315
16316#
16317# Check to make sure the PIC flag actually works.
16318#
16319if test -n "$lt_prog_compiler_pic_F77"; then
16320
16321echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
16322echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
16323if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
16324  echo $ECHO_N "(cached) $ECHO_C" >&6
16325else
16326  lt_prog_compiler_pic_works_F77=no
16327  ac_outfile=conftest.$ac_objext
16328   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16329   lt_compiler_flag="$lt_prog_compiler_pic_F77"
16330   # Insert the option either (1) after the last *FLAGS variable, or
16331   # (2) before a word containing "conftest.", or (3) at the end.
16332   # Note that $ac_compile itself does not contain backslashes and begins
16333   # with a dollar sign (not a hyphen), so the echo should work correctly.
16334   # The option is referenced via a variable to avoid confusing sed.
16335   lt_compile=`echo "$ac_compile" | $SED \
16336   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16337   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16338   -e 's:$: $lt_compiler_flag:'`
16339   (eval echo "\"\$as_me:16339: $lt_compile\"" >&5)
16340   (eval "$lt_compile" 2>conftest.err)
16341   ac_status=$?
16342   cat conftest.err >&5
16343   echo "$as_me:16343: \$? = $ac_status" >&5
16344   if (exit $ac_status) && test -s "$ac_outfile"; then
16345     # The compiler can only warn and ignore the option if not recognized
16346     # So say no if there are warnings other than the usual output.
16347     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16348     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16349     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16350       lt_prog_compiler_pic_works_F77=yes
16351     fi
16352   fi
16353   $rm conftest*
16354
16355fi
16356echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
16357echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
16358
16359if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
16360    case $lt_prog_compiler_pic_F77 in
16361     "" | " "*) ;;
16362     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
16363     esac
16364else
16365    lt_prog_compiler_pic_F77=
16366     lt_prog_compiler_can_build_shared_F77=no
16367fi
16368
16369fi
16370case $host_os in
16371  # For platforms which do not support PIC, -DPIC is meaningless:
16372  *djgpp*)
16373    lt_prog_compiler_pic_F77=
16374    ;;
16375  *)
16376    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
16377    ;;
16378esac
16379
16380#
16381# Check to make sure the static flag actually works.
16382#
16383wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
16384echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16385echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16386if test "${lt_prog_compiler_static_works_F77+set}" = set; then
16387  echo $ECHO_N "(cached) $ECHO_C" >&6
16388else
16389  lt_prog_compiler_static_works_F77=no
16390   save_LDFLAGS="$LDFLAGS"
16391   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16392   printf "$lt_simple_link_test_code" > conftest.$ac_ext
16393   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16394     # The linker can only warn and ignore the option if not recognized
16395     # So say no if there are warnings
16396     if test -s conftest.err; then
16397       # Append any errors to the config.log.
16398       cat conftest.err 1>&5
16399       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16400       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16401       if diff conftest.exp conftest.er2 >/dev/null; then
16402         lt_prog_compiler_static_works_F77=yes
16403       fi
16404     else
16405       lt_prog_compiler_static_works_F77=yes
16406     fi
16407   fi
16408   $rm conftest*
16409   LDFLAGS="$save_LDFLAGS"
16410
16411fi
16412echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
16413echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
16414
16415if test x"$lt_prog_compiler_static_works_F77" = xyes; then
16416    :
16417else
16418    lt_prog_compiler_static_F77=
16419fi
16420
16421
16422echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16423echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16424if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
16425  echo $ECHO_N "(cached) $ECHO_C" >&6
16426else
16427  lt_cv_prog_compiler_c_o_F77=no
16428   $rm -r conftest 2>/dev/null
16429   mkdir conftest
16430   cd conftest
16431   mkdir out
16432   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16433
16434   lt_compiler_flag="-o out/conftest2.$ac_objext"
16435   # Insert the option either (1) after the last *FLAGS variable, or
16436   # (2) before a word containing "conftest.", or (3) at the end.
16437   # Note that $ac_compile itself does not contain backslashes and begins
16438   # with a dollar sign (not a hyphen), so the echo should work correctly.
16439   lt_compile=`echo "$ac_compile" | $SED \
16440   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16441   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16442   -e 's:$: $lt_compiler_flag:'`
16443   (eval echo "\"\$as_me:16443: $lt_compile\"" >&5)
16444   (eval "$lt_compile" 2>out/conftest.err)
16445   ac_status=$?
16446   cat out/conftest.err >&5
16447   echo "$as_me:16447: \$? = $ac_status" >&5
16448   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16449   then
16450     # The compiler can only warn and ignore the option if not recognized
16451     # So say no if there are warnings
16452     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16453     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16454     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16455       lt_cv_prog_compiler_c_o_F77=yes
16456     fi
16457   fi
16458   chmod u+w . 2>&5
16459   $rm conftest*
16460   # SGI C++ compiler will create directory out/ii_files/ for
16461   # template instantiation
16462   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16463   $rm out/* && rmdir out
16464   cd ..
16465   rmdir conftest
16466   $rm conftest*
16467
16468fi
16469echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
16470echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
16471
16472
16473hard_links="nottested"
16474if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
16475  # do not overwrite the value of need_locks provided by the user
16476  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16477echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16478  hard_links=yes
16479  $rm conftest*
16480  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16481  touch conftest.a
16482  ln conftest.a conftest.b 2>&5 || hard_links=no
16483  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16484  echo "$as_me:$LINENO: result: $hard_links" >&5
16485echo "${ECHO_T}$hard_links" >&6
16486  if test "$hard_links" = no; then
16487    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16488echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16489    need_locks=warn
16490  fi
16491else
16492  need_locks=no
16493fi
16494
16495echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16496echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16497
16498  runpath_var=
16499  allow_undefined_flag_F77=
16500  enable_shared_with_static_runtimes_F77=no
16501  archive_cmds_F77=
16502  archive_expsym_cmds_F77=
16503  old_archive_From_new_cmds_F77=
16504  old_archive_from_expsyms_cmds_F77=
16505  export_dynamic_flag_spec_F77=
16506  whole_archive_flag_spec_F77=
16507  thread_safe_flag_spec_F77=
16508  hardcode_libdir_flag_spec_F77=
16509  hardcode_libdir_flag_spec_ld_F77=
16510  hardcode_libdir_separator_F77=
16511  hardcode_direct_F77=no
16512  hardcode_minus_L_F77=no
16513  hardcode_shlibpath_var_F77=unsupported
16514  link_all_deplibs_F77=unknown
16515  hardcode_automatic_F77=no
16516  module_cmds_F77=
16517  module_expsym_cmds_F77=
16518  always_export_symbols_F77=no
16519  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16520  # include_expsyms should be a list of space-separated symbols to be *always*
16521  # included in the symbol list
16522  include_expsyms_F77=
16523  # exclude_expsyms can be an extended regexp of symbols to exclude
16524  # it will be wrapped by ` (' and `)$', so one must not match beginning or
16525  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16526  # as well as any symbol that contains `d'.
16527  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
16528  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16529  # platforms (ab)use it in PIC code, but their linkers get confused if
16530  # the symbol is explicitly referenced.  Since portable code cannot
16531  # rely on this symbol name, it's probably fine to never include it in
16532  # preloaded symbol tables.
16533  extract_expsyms_cmds=
16534  # Just being paranoid about ensuring that cc_basename is set.
16535  for cc_temp in $compiler""; do
16536  case $cc_temp in
16537    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16538    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16539    \-*) ;;
16540    *) break;;
16541  esac
16542done
16543cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16544
16545  case $host_os in
16546  cygwin* | mingw* | pw32*)
16547    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16548    # When not using gcc, we currently assume that we are using
16549    # Microsoft Visual C++.
16550    if test "$GCC" != yes; then
16551      with_gnu_ld=no
16552    fi
16553    ;;
16554  interix*)
16555    # we just hope/assume this is gcc and not c89 (= MSVC++)
16556    with_gnu_ld=yes
16557    ;;
16558  openbsd*)
16559    with_gnu_ld=no
16560    ;;
16561  esac
16562
16563  ld_shlibs_F77=yes
16564  if test "$with_gnu_ld" = yes; then
16565    # If archive_cmds runs LD, not CC, wlarc should be empty
16566    wlarc='${wl}'
16567
16568    # Set some defaults for GNU ld with shared library support. These
16569    # are reset later if shared libraries are not supported. Putting them
16570    # here allows them to be overridden if necessary.
16571    runpath_var=LD_RUN_PATH
16572    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
16573    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
16574    # ancient GNU ld didn't support --whole-archive et. al.
16575    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16576	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16577      else
16578  	whole_archive_flag_spec_F77=
16579    fi
16580    supports_anon_versioning=no
16581    case `$LD -v 2>/dev/null` in
16582      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16583      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16584      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16585      *\ 2.11.*) ;; # other 2.11 versions
16586      *) supports_anon_versioning=yes ;;
16587    esac
16588
16589    # See if GNU ld supports shared libraries.
16590    case $host_os in
16591    aix3* | aix4* | aix5*)
16592      # On AIX/PPC, the GNU linker is very broken
16593      if test "$host_cpu" != ia64; then
16594	ld_shlibs_F77=no
16595	cat <<EOF 1>&2
16596
16597*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16598*** to be unable to reliably create shared libraries on AIX.
16599*** Therefore, libtool is disabling shared libraries support.  If you
16600*** really care for shared libraries, you may want to modify your PATH
16601*** so that a non-GNU linker is found, and then restart.
16602
16603EOF
16604      fi
16605      ;;
16606
16607    amigaos*)
16608      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)'
16609      hardcode_libdir_flag_spec_F77='-L$libdir'
16610      hardcode_minus_L_F77=yes
16611
16612      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16613      # that the semantics of dynamic libraries on AmigaOS, at least up
16614      # to version 4, is to share data among multiple programs linked
16615      # with the same dynamic library.  Since this doesn't match the
16616      # behavior of shared libraries on other platforms, we can't use
16617      # them.
16618      ld_shlibs_F77=no
16619      ;;
16620
16621    beos*)
16622      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16623	allow_undefined_flag_F77=unsupported
16624	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16625	# support --undefined.  This deserves some investigation.  FIXME
16626	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16627      else
16628	ld_shlibs_F77=no
16629      fi
16630      ;;
16631
16632    cygwin* | mingw* | pw32*)
16633      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
16634      # as there is no search path for DLLs.
16635      hardcode_libdir_flag_spec_F77='-L$libdir'
16636      allow_undefined_flag_F77=unsupported
16637      always_export_symbols_F77=no
16638      enable_shared_with_static_runtimes_F77=yes
16639      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16640
16641      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16642        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16643	# If the export-symbols file already is a .def file (1st line
16644	# is EXPORTS), use it as is; otherwise, prepend...
16645	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16646	  cp $export_symbols $output_objdir/$soname.def;
16647	else
16648	  echo EXPORTS > $output_objdir/$soname.def;
16649	  cat $export_symbols >> $output_objdir/$soname.def;
16650	fi~
16651	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16652      else
16653	ld_shlibs_F77=no
16654      fi
16655      ;;
16656
16657    interix3*)
16658      hardcode_direct_F77=no
16659      hardcode_shlibpath_var_F77=no
16660      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16661      export_dynamic_flag_spec_F77='${wl}-E'
16662      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16663      # Instead, shared libraries are loaded at an image base (0x10000000 by
16664      # default) and relocated if they conflict, which is a slow very memory
16665      # consuming and fragmenting process.  To avoid this, we pick a random,
16666      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16667      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16668      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'
16669      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'
16670      ;;
16671
16672    linux*)
16673      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16674	tmp_addflag=
16675	case $cc_basename,$host_cpu in
16676	pgcc*)				# Portland Group C compiler
16677	  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'
16678	  tmp_addflag=' $pic_flag'
16679	  ;;
16680	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
16681	  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'
16682	  tmp_addflag=' $pic_flag -Mnomain' ;;
16683	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
16684	  tmp_addflag=' -i_dynamic' ;;
16685	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
16686	  tmp_addflag=' -i_dynamic -nofor_main' ;;
16687	ifc* | ifort*)			# Intel Fortran compiler
16688	  tmp_addflag=' -nofor_main' ;;
16689	esac
16690	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16691
16692	if test $supports_anon_versioning = yes; then
16693	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
16694  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16695  $echo "local: *; };" >> $output_objdir/$libname.ver~
16696	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16697	fi
16698      else
16699	ld_shlibs_F77=no
16700      fi
16701      ;;
16702
16703    netbsd*)
16704      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16705	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16706	wlarc=
16707      else
16708	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16709	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16710      fi
16711      ;;
16712
16713    solaris*)
16714      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16715	ld_shlibs_F77=no
16716	cat <<EOF 1>&2
16717
16718*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16719*** create shared libraries on Solaris systems.  Therefore, libtool
16720*** is disabling shared libraries support.  We urge you to upgrade GNU
16721*** binutils to release 2.9.1 or newer.  Another option is to modify
16722*** your PATH or compiler configuration so that the native linker is
16723*** used, and then restart.
16724
16725EOF
16726      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16727	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16728	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16729      else
16730	ld_shlibs_F77=no
16731      fi
16732      ;;
16733
16734    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16735      case `$LD -v 2>&1` in
16736        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16737	ld_shlibs_F77=no
16738	cat <<_LT_EOF 1>&2
16739
16740*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16741*** reliably create shared libraries on SCO systems.  Therefore, libtool
16742*** is disabling shared libraries support.  We urge you to upgrade GNU
16743*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16744*** your PATH or compiler configuration so that the native linker is
16745*** used, and then restart.
16746
16747_LT_EOF
16748	;;
16749	*)
16750	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16751	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16752	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16753	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16754	  else
16755	    ld_shlibs_F77=no
16756	  fi
16757	;;
16758      esac
16759      ;;
16760
16761    sunos4*)
16762      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16763      wlarc=
16764      hardcode_direct_F77=yes
16765      hardcode_shlibpath_var_F77=no
16766      ;;
16767
16768    *)
16769      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16770	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16771	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16772      else
16773	ld_shlibs_F77=no
16774      fi
16775      ;;
16776    esac
16777
16778    if test "$ld_shlibs_F77" = no; then
16779      runpath_var=
16780      hardcode_libdir_flag_spec_F77=
16781      export_dynamic_flag_spec_F77=
16782      whole_archive_flag_spec_F77=
16783    fi
16784  else
16785    # PORTME fill in a description of your system's linker (not GNU ld)
16786    case $host_os in
16787    aix3*)
16788      allow_undefined_flag_F77=unsupported
16789      always_export_symbols_F77=yes
16790      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'
16791      # Note: this linker hardcodes the directories in LIBPATH if there
16792      # are no directories specified by -L.
16793      hardcode_minus_L_F77=yes
16794      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16795	# Neither direct hardcoding nor static linking is supported with a
16796	# broken collect2.
16797	hardcode_direct_F77=unsupported
16798      fi
16799      ;;
16800
16801    aix4* | aix5*)
16802      if test "$host_cpu" = ia64; then
16803	# On IA64, the linker does run time linking by default, so we don't
16804	# have to do anything special.
16805	aix_use_runtimelinking=no
16806	exp_sym_flag='-Bexport'
16807	no_entry_flag=""
16808      else
16809	# If we're using GNU nm, then we don't want the "-C" option.
16810	# -C means demangle to AIX nm, but means don't demangle with GNU nm
16811	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16812	  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'
16813	else
16814	  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'
16815	fi
16816	aix_use_runtimelinking=no
16817
16818	# Test if we are trying to use run time linking or normal
16819	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16820	# need to do runtime linking.
16821	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16822	  for ld_flag in $LDFLAGS; do
16823  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16824  	    aix_use_runtimelinking=yes
16825  	    break
16826  	  fi
16827	  done
16828	  ;;
16829	esac
16830
16831	exp_sym_flag='-bexport'
16832	no_entry_flag='-bnoentry'
16833      fi
16834
16835      # When large executables or shared objects are built, AIX ld can
16836      # have problems creating the table of contents.  If linking a library
16837      # or program results in "error TOC overflow" add -mminimal-toc to
16838      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16839      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16840
16841      archive_cmds_F77=''
16842      hardcode_direct_F77=yes
16843      hardcode_libdir_separator_F77=':'
16844      link_all_deplibs_F77=yes
16845
16846      if test "$GCC" = yes; then
16847	case $host_os in aix4.[012]|aix4.[012].*)
16848	# We only want to do this on AIX 4.2 and lower, the check
16849	# below for broken collect2 doesn't work under 4.3+
16850	  collect2name=`${CC} -print-prog-name=collect2`
16851	  if test -f "$collect2name" && \
16852  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
16853	  then
16854  	  # We have reworked collect2
16855  	  hardcode_direct_F77=yes
16856	  else
16857  	  # We have old collect2
16858  	  hardcode_direct_F77=unsupported
16859  	  # It fails to find uninstalled libraries when the uninstalled
16860  	  # path is not listed in the libpath.  Setting hardcode_minus_L
16861  	  # to unsupported forces relinking
16862  	  hardcode_minus_L_F77=yes
16863  	  hardcode_libdir_flag_spec_F77='-L$libdir'
16864  	  hardcode_libdir_separator_F77=
16865	  fi
16866	  ;;
16867	esac
16868	shared_flag='-shared'
16869	if test "$aix_use_runtimelinking" = yes; then
16870	  shared_flag="$shared_flag "'${wl}-G'
16871	fi
16872      else
16873	# not using gcc
16874	if test "$host_cpu" = ia64; then
16875  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16876  	# chokes on -Wl,-G. The following line is correct:
16877	  shared_flag='-G'
16878	else
16879	  if test "$aix_use_runtimelinking" = yes; then
16880	    shared_flag='${wl}-G'
16881	  else
16882	    shared_flag='${wl}-bM:SRE'
16883	  fi
16884	fi
16885      fi
16886
16887      # It seems that -bexpall does not export symbols beginning with
16888      # underscore (_), so it is better to generate a list of symbols to export.
16889      always_export_symbols_F77=yes
16890      if test "$aix_use_runtimelinking" = yes; then
16891	# Warning - without using the other runtime loading flags (-brtl),
16892	# -berok will link without error, but may produce a broken library.
16893	allow_undefined_flag_F77='-berok'
16894       # Determine the default libpath from the value encoded in an empty executable.
16895       cat >conftest.$ac_ext <<_ACEOF
16896      program main
16897
16898      end
16899_ACEOF
16900rm -f conftest.$ac_objext conftest$ac_exeext
16901if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16902  (eval $ac_link) 2>conftest.er1
16903  ac_status=$?
16904  grep -v '^ *+' conftest.er1 >conftest.err
16905  rm -f conftest.er1
16906  cat conftest.err >&5
16907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16908  (exit $ac_status); } &&
16909	 { ac_try='test -z "$ac_f77_werror_flag"
16910			 || test ! -s conftest.err'
16911  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16912  (eval $ac_try) 2>&5
16913  ac_status=$?
16914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16915  (exit $ac_status); }; } &&
16916	 { ac_try='test -s conftest$ac_exeext'
16917  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16918  (eval $ac_try) 2>&5
16919  ac_status=$?
16920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16921  (exit $ac_status); }; }; then
16922
16923aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16924}'`
16925# Check for a 64-bit object if we didn't find anything.
16926if 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; }
16927}'`; fi
16928else
16929  echo "$as_me: failed program was:" >&5
16930sed 's/^/| /' conftest.$ac_ext >&5
16931
16932fi
16933rm -f conftest.err conftest.$ac_objext \
16934      conftest$ac_exeext conftest.$ac_ext
16935if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16936
16937       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16938	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"
16939       else
16940	if test "$host_cpu" = ia64; then
16941	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16942	  allow_undefined_flag_F77="-z nodefs"
16943	  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"
16944	else
16945	 # Determine the default libpath from the value encoded in an empty executable.
16946	 cat >conftest.$ac_ext <<_ACEOF
16947      program main
16948
16949      end
16950_ACEOF
16951rm -f conftest.$ac_objext conftest$ac_exeext
16952if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16953  (eval $ac_link) 2>conftest.er1
16954  ac_status=$?
16955  grep -v '^ *+' conftest.er1 >conftest.err
16956  rm -f conftest.er1
16957  cat conftest.err >&5
16958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16959  (exit $ac_status); } &&
16960	 { ac_try='test -z "$ac_f77_werror_flag"
16961			 || test ! -s conftest.err'
16962  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16963  (eval $ac_try) 2>&5
16964  ac_status=$?
16965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16966  (exit $ac_status); }; } &&
16967	 { ac_try='test -s conftest$ac_exeext'
16968  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16969  (eval $ac_try) 2>&5
16970  ac_status=$?
16971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16972  (exit $ac_status); }; }; then
16973
16974aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16975}'`
16976# Check for a 64-bit object if we didn't find anything.
16977if 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; }
16978}'`; fi
16979else
16980  echo "$as_me: failed program was:" >&5
16981sed 's/^/| /' conftest.$ac_ext >&5
16982
16983fi
16984rm -f conftest.err conftest.$ac_objext \
16985      conftest$ac_exeext conftest.$ac_ext
16986if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16987
16988	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16989	  # Warning - without using the other run time loading flags,
16990	  # -berok will link without error, but may produce a broken library.
16991	  no_undefined_flag_F77=' ${wl}-bernotok'
16992	  allow_undefined_flag_F77=' ${wl}-berok'
16993	  # Exported symbols can be pulled into shared objects from archives
16994	  whole_archive_flag_spec_F77='$convenience'
16995	  archive_cmds_need_lc_F77=yes
16996	  # This is similar to how AIX traditionally builds its shared libraries.
16997	  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'
16998	fi
16999      fi
17000      ;;
17001
17002    amigaos*)
17003      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)'
17004      hardcode_libdir_flag_spec_F77='-L$libdir'
17005      hardcode_minus_L_F77=yes
17006      # see comment about different semantics on the GNU ld section
17007      ld_shlibs_F77=no
17008      ;;
17009
17010    bsdi[45]*)
17011      export_dynamic_flag_spec_F77=-rdynamic
17012      ;;
17013
17014    cygwin* | mingw* | pw32*)
17015      # When not using gcc, we currently assume that we are using
17016      # Microsoft Visual C++.
17017      # hardcode_libdir_flag_spec is actually meaningless, as there is
17018      # no search path for DLLs.
17019      hardcode_libdir_flag_spec_F77=' '
17020      allow_undefined_flag_F77=unsupported
17021      # Tell ltmain to make .lib files, not .a files.
17022      libext=lib
17023      # Tell ltmain to make .dll files, not .so files.
17024      shrext_cmds=".dll"
17025      # FIXME: Setting linknames here is a bad hack.
17026      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17027      # The linker will automatically build a .lib file if we build a DLL.
17028      old_archive_From_new_cmds_F77='true'
17029      # FIXME: Should let the user specify the lib program.
17030      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
17031      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
17032      enable_shared_with_static_runtimes_F77=yes
17033      ;;
17034
17035    darwin* | rhapsody*)
17036      case $host_os in
17037        rhapsody* | darwin1.[012])
17038         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
17039         ;;
17040       *) # Darwin 1.3 on
17041         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17042           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17043         else
17044           case ${MACOSX_DEPLOYMENT_TARGET} in
17045             10.[012])
17046               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17047               ;;
17048             10.*)
17049               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
17050               ;;
17051           esac
17052         fi
17053         ;;
17054      esac
17055      archive_cmds_need_lc_F77=no
17056      hardcode_direct_F77=no
17057      hardcode_automatic_F77=yes
17058      hardcode_shlibpath_var_F77=unsupported
17059      whole_archive_flag_spec_F77=''
17060      link_all_deplibs_F77=yes
17061    if test "$GCC" = yes ; then
17062    	output_verbose_link_cmd='echo'
17063        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17064      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17065      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17066      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}'
17067      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}'
17068    else
17069      case $cc_basename in
17070        xlc*)
17071         output_verbose_link_cmd='echo'
17072         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17073         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17074          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17075         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}'
17076          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}'
17077          ;;
17078       *)
17079         ld_shlibs_F77=no
17080          ;;
17081      esac
17082    fi
17083      ;;
17084
17085    dgux*)
17086      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17087      hardcode_libdir_flag_spec_F77='-L$libdir'
17088      hardcode_shlibpath_var_F77=no
17089      ;;
17090
17091    freebsd1*)
17092      ld_shlibs_F77=no
17093      ;;
17094
17095    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17096    # support.  Future versions do this automatically, but an explicit c++rt0.o
17097    # does not break anything, and helps significantly (at the cost of a little
17098    # extra space).
17099    freebsd2.2*)
17100      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17101      hardcode_libdir_flag_spec_F77='-R$libdir'
17102      hardcode_direct_F77=yes
17103      hardcode_shlibpath_var_F77=no
17104      ;;
17105
17106    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17107    freebsd2*)
17108      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17109      hardcode_direct_F77=yes
17110      hardcode_minus_L_F77=yes
17111      hardcode_shlibpath_var_F77=no
17112      ;;
17113
17114    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17115    freebsd* | kfreebsd*-gnu | dragonfly*)
17116      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17117      hardcode_libdir_flag_spec_F77='-R$libdir'
17118      hardcode_direct_F77=yes
17119      hardcode_shlibpath_var_F77=no
17120      ;;
17121
17122    hpux9*)
17123      if test "$GCC" = yes; then
17124	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'
17125      else
17126	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'
17127      fi
17128      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17129      hardcode_libdir_separator_F77=:
17130      hardcode_direct_F77=yes
17131
17132      # hardcode_minus_L: Not really in the search PATH,
17133      # but as the default location of the library.
17134      hardcode_minus_L_F77=yes
17135      export_dynamic_flag_spec_F77='${wl}-E'
17136      ;;
17137
17138    hpux10*)
17139      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17140	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17141      else
17142	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17143      fi
17144      if test "$with_gnu_ld" = no; then
17145	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17146	hardcode_libdir_separator_F77=:
17147
17148	hardcode_direct_F77=yes
17149	export_dynamic_flag_spec_F77='${wl}-E'
17150
17151	# hardcode_minus_L: Not really in the search PATH,
17152	# but as the default location of the library.
17153	hardcode_minus_L_F77=yes
17154      fi
17155      ;;
17156
17157    hpux11*)
17158      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17159	case $host_cpu in
17160	hppa*64*)
17161	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17162	  ;;
17163	ia64*)
17164	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17165	  ;;
17166	*)
17167	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17168	  ;;
17169	esac
17170      else
17171	case $host_cpu in
17172	hppa*64*)
17173	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17174	  ;;
17175	ia64*)
17176	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17177	  ;;
17178	*)
17179	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17180	  ;;
17181	esac
17182      fi
17183      if test "$with_gnu_ld" = no; then
17184	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17185	hardcode_libdir_separator_F77=:
17186
17187	case $host_cpu in
17188	hppa*64*|ia64*)
17189	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
17190	  hardcode_direct_F77=no
17191	  hardcode_shlibpath_var_F77=no
17192	  ;;
17193	*)
17194	  hardcode_direct_F77=yes
17195	  export_dynamic_flag_spec_F77='${wl}-E'
17196
17197	  # hardcode_minus_L: Not really in the search PATH,
17198	  # but as the default location of the library.
17199	  hardcode_minus_L_F77=yes
17200	  ;;
17201	esac
17202      fi
17203      ;;
17204
17205    irix5* | irix6* | nonstopux*)
17206      if test "$GCC" = yes; then
17207	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'
17208      else
17209	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'
17210	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
17211      fi
17212      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17213      hardcode_libdir_separator_F77=:
17214      link_all_deplibs_F77=yes
17215      ;;
17216
17217    netbsd*)
17218      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17219	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17220      else
17221	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17222      fi
17223      hardcode_libdir_flag_spec_F77='-R$libdir'
17224      hardcode_direct_F77=yes
17225      hardcode_shlibpath_var_F77=no
17226      ;;
17227
17228    newsos6)
17229      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17230      hardcode_direct_F77=yes
17231      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17232      hardcode_libdir_separator_F77=:
17233      hardcode_shlibpath_var_F77=no
17234      ;;
17235
17236    openbsd*)
17237      hardcode_direct_F77=yes
17238      hardcode_shlibpath_var_F77=no
17239      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17240	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17241	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17242	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
17243	export_dynamic_flag_spec_F77='${wl}-E'
17244      else
17245       case $host_os in
17246	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17247	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17248	   hardcode_libdir_flag_spec_F77='-R$libdir'
17249	   ;;
17250	 *)
17251	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17252	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
17253	   ;;
17254       esac
17255      fi
17256      ;;
17257
17258    os2*)
17259      hardcode_libdir_flag_spec_F77='-L$libdir'
17260      hardcode_minus_L_F77=yes
17261      allow_undefined_flag_F77=unsupported
17262      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'
17263      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17264      ;;
17265
17266    osf3*)
17267      if test "$GCC" = yes; then
17268	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
17269	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'
17270      else
17271	allow_undefined_flag_F77=' -expect_unresolved \*'
17272	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'
17273      fi
17274      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17275      hardcode_libdir_separator_F77=:
17276      ;;
17277
17278    osf4* | osf5*)	# as osf3* with the addition of -msym flag
17279      if test "$GCC" = yes; then
17280	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
17281	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'
17282	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17283      else
17284	allow_undefined_flag_F77=' -expect_unresolved \*'
17285	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'
17286	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~
17287	$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'
17288
17289	# Both c and cxx compiler support -rpath directly
17290	hardcode_libdir_flag_spec_F77='-rpath $libdir'
17291      fi
17292      hardcode_libdir_separator_F77=:
17293      ;;
17294
17295    solaris*)
17296      no_undefined_flag_F77=' -z text'
17297      if test "$GCC" = yes; then
17298	wlarc='${wl}'
17299	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17300	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17301	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17302      else
17303	wlarc=''
17304	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17305	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17306  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17307      fi
17308      hardcode_libdir_flag_spec_F77='-R$libdir'
17309      hardcode_shlibpath_var_F77=no
17310      case $host_os in
17311      solaris2.[0-5] | solaris2.[0-5].*) ;;
17312      *)
17313 	# The compiler driver will combine linker options so we
17314 	# cannot just pass the convience library names through
17315 	# without $wl, iff we do not link with $LD.
17316 	# Luckily, gcc supports the same syntax we need for Sun Studio.
17317 	# Supported since Solaris 2.6 (maybe 2.5.1?)
17318 	case $wlarc in
17319 	'')
17320 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
17321 	*)
17322 	  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' ;;
17323 	esac ;;
17324      esac
17325      link_all_deplibs_F77=yes
17326      ;;
17327
17328    sunos4*)
17329      if test "x$host_vendor" = xsequent; then
17330	# Use $CC to link under sequent, because it throws in some extra .o
17331	# files that make .init and .fini sections work.
17332	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17333      else
17334	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17335      fi
17336      hardcode_libdir_flag_spec_F77='-L$libdir'
17337      hardcode_direct_F77=yes
17338      hardcode_minus_L_F77=yes
17339      hardcode_shlibpath_var_F77=no
17340      ;;
17341
17342    sysv4)
17343      case $host_vendor in
17344	sni)
17345	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17346	  hardcode_direct_F77=yes # is this really true???
17347	;;
17348	siemens)
17349	  ## LD is ld it makes a PLAMLIB
17350	  ## CC just makes a GrossModule.
17351	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17352	  reload_cmds_F77='$CC -r -o $output$reload_objs'
17353	  hardcode_direct_F77=no
17354        ;;
17355	motorola)
17356	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17357	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
17358	;;
17359      esac
17360      runpath_var='LD_RUN_PATH'
17361      hardcode_shlibpath_var_F77=no
17362      ;;
17363
17364    sysv4.3*)
17365      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17366      hardcode_shlibpath_var_F77=no
17367      export_dynamic_flag_spec_F77='-Bexport'
17368      ;;
17369
17370    sysv4*MP*)
17371      if test -d /usr/nec; then
17372	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17373	hardcode_shlibpath_var_F77=no
17374	runpath_var=LD_RUN_PATH
17375	hardcode_runpath_var=yes
17376	ld_shlibs_F77=yes
17377      fi
17378      ;;
17379
17380    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17381      no_undefined_flag_F77='${wl}-z,text'
17382      archive_cmds_need_lc_F77=no
17383      hardcode_shlibpath_var_F77=no
17384      runpath_var='LD_RUN_PATH'
17385
17386      if test "$GCC" = yes; then
17387	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17388	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17389      else
17390	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17391	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17392      fi
17393      ;;
17394
17395    sysv5* | sco3.2v5* | sco5v6*)
17396      # Note: We can NOT use -z defs as we might desire, because we do not
17397      # link with -lc, and that would cause any symbols used from libc to
17398      # always be unresolved, which means just about no library would
17399      # ever link correctly.  If we're not using GNU ld we use -z text
17400      # though, which does catch some bad symbols but isn't as heavy-handed
17401      # as -z defs.
17402      no_undefined_flag_F77='${wl}-z,text'
17403      allow_undefined_flag_F77='${wl}-z,nodefs'
17404      archive_cmds_need_lc_F77=no
17405      hardcode_shlibpath_var_F77=no
17406      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17407      hardcode_libdir_separator_F77=':'
17408      link_all_deplibs_F77=yes
17409      export_dynamic_flag_spec_F77='${wl}-Bexport'
17410      runpath_var='LD_RUN_PATH'
17411
17412      if test "$GCC" = yes; then
17413	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17414	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17415      else
17416	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17417	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17418      fi
17419      ;;
17420
17421    uts4*)
17422      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17423      hardcode_libdir_flag_spec_F77='-L$libdir'
17424      hardcode_shlibpath_var_F77=no
17425      ;;
17426
17427    *)
17428      ld_shlibs_F77=no
17429      ;;
17430    esac
17431  fi
17432
17433echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
17434echo "${ECHO_T}$ld_shlibs_F77" >&6
17435test "$ld_shlibs_F77" = no && can_build_shared=no
17436
17437#
17438# Do we need to explicitly link libc?
17439#
17440case "x$archive_cmds_need_lc_F77" in
17441x|xyes)
17442  # Assume -lc should be added
17443  archive_cmds_need_lc_F77=yes
17444
17445  if test "$enable_shared" = yes && test "$GCC" = yes; then
17446    case $archive_cmds_F77 in
17447    *'~'*)
17448      # FIXME: we may have to deal with multi-command sequences.
17449      ;;
17450    '$CC '*)
17451      # Test whether the compiler implicitly links with -lc since on some
17452      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17453      # to ld, don't add -lc before -lgcc.
17454      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17455echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17456      $rm conftest*
17457      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17458
17459      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17460  (eval $ac_compile) 2>&5
17461  ac_status=$?
17462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17463  (exit $ac_status); } 2>conftest.err; then
17464        soname=conftest
17465        lib=conftest
17466        libobjs=conftest.$ac_objext
17467        deplibs=
17468        wl=$lt_prog_compiler_wl_F77
17469	pic_flag=$lt_prog_compiler_pic_F77
17470        compiler_flags=-v
17471        linker_flags=-v
17472        verstring=
17473        output_objdir=.
17474        libname=conftest
17475        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
17476        allow_undefined_flag_F77=
17477        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17478  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17479  ac_status=$?
17480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17481  (exit $ac_status); }
17482        then
17483	  archive_cmds_need_lc_F77=no
17484        else
17485	  archive_cmds_need_lc_F77=yes
17486        fi
17487        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
17488      else
17489        cat conftest.err 1>&5
17490      fi
17491      $rm conftest*
17492      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
17493echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
17494      ;;
17495    esac
17496  fi
17497  ;;
17498esac
17499
17500echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17501echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17502library_names_spec=
17503libname_spec='lib$name'
17504soname_spec=
17505shrext_cmds=".so"
17506postinstall_cmds=
17507postuninstall_cmds=
17508finish_cmds=
17509finish_eval=
17510shlibpath_var=
17511shlibpath_overrides_runpath=unknown
17512version_type=none
17513dynamic_linker="$host_os ld.so"
17514sys_lib_dlsearch_path_spec="/lib /usr/lib"
17515if test "$GCC" = yes; then
17516  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17517  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17518    # if the path contains ";" then we assume it to be the separator
17519    # otherwise default to the standard path separator (i.e. ":") - it is
17520    # assumed that no part of a normal pathname contains ";" but that should
17521    # okay in the real world where ";" in dirpaths is itself problematic.
17522    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17523  else
17524    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17525  fi
17526else
17527  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17528fi
17529need_lib_prefix=unknown
17530hardcode_into_libs=no
17531
17532# when you set need_version to no, make sure it does not cause -set_version
17533# flags to be left without arguments
17534need_version=unknown
17535
17536case $host_os in
17537aix3*)
17538  version_type=linux
17539  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17540  shlibpath_var=LIBPATH
17541
17542  # AIX 3 has no versioning support, so we append a major version to the name.
17543  soname_spec='${libname}${release}${shared_ext}$major'
17544  ;;
17545
17546aix4* | aix5*)
17547  version_type=linux
17548  need_lib_prefix=no
17549  need_version=no
17550  hardcode_into_libs=yes
17551  if test "$host_cpu" = ia64; then
17552    # AIX 5 supports IA64
17553    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17554    shlibpath_var=LD_LIBRARY_PATH
17555  else
17556    # With GCC up to 2.95.x, collect2 would create an import file
17557    # for dependence libraries.  The import file would start with
17558    # the line `#! .'.  This would cause the generated library to
17559    # depend on `.', always an invalid library.  This was fixed in
17560    # development snapshots of GCC prior to 3.0.
17561    case $host_os in
17562      aix4 | aix4.[01] | aix4.[01].*)
17563      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17564	   echo ' yes '
17565	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17566	:
17567      else
17568	can_build_shared=no
17569      fi
17570      ;;
17571    esac
17572    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17573    # soname into executable. Probably we can add versioning support to
17574    # collect2, so additional links can be useful in future.
17575    if test "$aix_use_runtimelinking" = yes; then
17576      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17577      # instead of lib<name>.a to let people know that these are not
17578      # typical AIX shared libraries.
17579      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17580    else
17581      # We preserve .a as extension for shared libraries through AIX4.2
17582      # and later when we are not doing run time linking.
17583      library_names_spec='${libname}${release}.a $libname.a'
17584      soname_spec='${libname}${release}${shared_ext}$major'
17585    fi
17586    shlibpath_var=LIBPATH
17587  fi
17588  ;;
17589
17590amigaos*)
17591  library_names_spec='$libname.ixlibrary $libname.a'
17592  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17593  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'
17594  ;;
17595
17596beos*)
17597  library_names_spec='${libname}${shared_ext}'
17598  dynamic_linker="$host_os ld.so"
17599  shlibpath_var=LIBRARY_PATH
17600  ;;
17601
17602bsdi[45]*)
17603  version_type=linux
17604  need_version=no
17605  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17606  soname_spec='${libname}${release}${shared_ext}$major'
17607  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17608  shlibpath_var=LD_LIBRARY_PATH
17609  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17610  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17611  # the default ld.so.conf also contains /usr/contrib/lib and
17612  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17613  # libtool to hard-code these into programs
17614  ;;
17615
17616cygwin* | mingw* | pw32*)
17617  version_type=windows
17618  shrext_cmds=".dll"
17619  need_version=no
17620  need_lib_prefix=no
17621
17622  case $GCC,$host_os in
17623  yes,cygwin* | yes,mingw* | yes,pw32*)
17624    library_names_spec='$libname.dll.a'
17625    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17626    postinstall_cmds='base_file=`basename \${file}`~
17627      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17628      dldir=$destdir/`dirname \$dlpath`~
17629      test -d \$dldir || mkdir -p \$dldir~
17630      $install_prog $dir/$dlname \$dldir/$dlname~
17631      chmod a+x \$dldir/$dlname'
17632    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17633      dlpath=$dir/\$dldll~
17634       $rm \$dlpath'
17635    shlibpath_overrides_runpath=yes
17636
17637    case $host_os in
17638    cygwin*)
17639      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17640      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17641      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17642      ;;
17643    mingw*)
17644      # MinGW DLLs use traditional 'lib' prefix
17645      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17646      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17647      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17648        # It is most probably a Windows format PATH printed by
17649        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17650        # path with ; separators, and with drive letters. We can handle the
17651        # drive letters (cygwin fileutils understands them), so leave them,
17652        # especially as we might pass files found there to a mingw objdump,
17653        # which wouldn't understand a cygwinified path. Ahh.
17654        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17655      else
17656        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17657      fi
17658      ;;
17659    pw32*)
17660      # pw32 DLLs use 'pw' prefix rather than 'lib'
17661      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17662      ;;
17663    esac
17664    ;;
17665
17666  *)
17667    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17668    ;;
17669  esac
17670  dynamic_linker='Win32 ld.exe'
17671  # FIXME: first we should search . and the directory the executable is in
17672  shlibpath_var=PATH
17673  ;;
17674
17675darwin* | rhapsody*)
17676  dynamic_linker="$host_os dyld"
17677  version_type=darwin
17678  need_lib_prefix=no
17679  need_version=no
17680  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17681  soname_spec='${libname}${release}${major}$shared_ext'
17682  shlibpath_overrides_runpath=yes
17683  shlibpath_var=DYLD_LIBRARY_PATH
17684  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17685  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17686  if test "$GCC" = yes; then
17687    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"`
17688  else
17689    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17690  fi
17691  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17692  ;;
17693
17694dgux*)
17695  version_type=linux
17696  need_lib_prefix=no
17697  need_version=no
17698  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17699  soname_spec='${libname}${release}${shared_ext}$major'
17700  shlibpath_var=LD_LIBRARY_PATH
17701  ;;
17702
17703freebsd1*)
17704  dynamic_linker=no
17705  ;;
17706
17707kfreebsd*-gnu)
17708  version_type=linux
17709  need_lib_prefix=no
17710  need_version=no
17711  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17712  soname_spec='${libname}${release}${shared_ext}$major'
17713  shlibpath_var=LD_LIBRARY_PATH
17714  shlibpath_overrides_runpath=no
17715  hardcode_into_libs=yes
17716  dynamic_linker='GNU ld.so'
17717  ;;
17718
17719freebsd* | dragonfly*)
17720  # DragonFly does not have aout.  When/if they implement a new
17721  # versioning mechanism, adjust this.
17722  if test -x /usr/bin/objformat; then
17723    objformat=`/usr/bin/objformat`
17724  else
17725    case $host_os in
17726    freebsd[123]*) objformat=aout ;;
17727    *) objformat=elf ;;
17728    esac
17729  fi
17730  version_type=freebsd-$objformat
17731  case $version_type in
17732    freebsd-elf*)
17733      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17734      need_version=no
17735      need_lib_prefix=no
17736      ;;
17737    freebsd-*)
17738      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17739      need_version=yes
17740      ;;
17741  esac
17742  shlibpath_var=LD_LIBRARY_PATH
17743  case $host_os in
17744  freebsd2*)
17745    shlibpath_overrides_runpath=yes
17746    ;;
17747  freebsd3.[01]* | freebsdelf3.[01]*)
17748    shlibpath_overrides_runpath=yes
17749    hardcode_into_libs=yes
17750    ;;
17751  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17752  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17753    shlibpath_overrides_runpath=no
17754    hardcode_into_libs=yes
17755    ;;
17756  freebsd*) # from 4.6 on
17757    shlibpath_overrides_runpath=yes
17758    hardcode_into_libs=yes
17759    ;;
17760  esac
17761  ;;
17762
17763gnu*)
17764  version_type=linux
17765  need_lib_prefix=no
17766  need_version=no
17767  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17768  soname_spec='${libname}${release}${shared_ext}$major'
17769  shlibpath_var=LD_LIBRARY_PATH
17770  hardcode_into_libs=yes
17771  ;;
17772
17773hpux9* | hpux10* | hpux11*)
17774  # Give a soname corresponding to the major version so that dld.sl refuses to
17775  # link against other versions.
17776  version_type=sunos
17777  need_lib_prefix=no
17778  need_version=no
17779  case $host_cpu in
17780  ia64*)
17781    shrext_cmds='.so'
17782    hardcode_into_libs=yes
17783    dynamic_linker="$host_os dld.so"
17784    shlibpath_var=LD_LIBRARY_PATH
17785    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17786    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17787    soname_spec='${libname}${release}${shared_ext}$major'
17788    if test "X$HPUX_IA64_MODE" = X32; then
17789      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17790    else
17791      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17792    fi
17793    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17794    ;;
17795   hppa*64*)
17796     shrext_cmds='.sl'
17797     hardcode_into_libs=yes
17798     dynamic_linker="$host_os dld.sl"
17799     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17800     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17801     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17802     soname_spec='${libname}${release}${shared_ext}$major'
17803     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17804     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17805     ;;
17806   *)
17807    shrext_cmds='.sl'
17808    dynamic_linker="$host_os dld.sl"
17809    shlibpath_var=SHLIB_PATH
17810    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17811    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17812    soname_spec='${libname}${release}${shared_ext}$major'
17813    ;;
17814  esac
17815  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17816  postinstall_cmds='chmod 555 $lib'
17817  ;;
17818
17819interix3*)
17820  version_type=linux
17821  need_lib_prefix=no
17822  need_version=no
17823  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17824  soname_spec='${libname}${release}${shared_ext}$major'
17825  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17826  shlibpath_var=LD_LIBRARY_PATH
17827  shlibpath_overrides_runpath=no
17828  hardcode_into_libs=yes
17829  ;;
17830
17831irix5* | irix6* | nonstopux*)
17832  case $host_os in
17833    nonstopux*) version_type=nonstopux ;;
17834    *)
17835	if test "$lt_cv_prog_gnu_ld" = yes; then
17836		version_type=linux
17837	else
17838		version_type=irix
17839	fi ;;
17840  esac
17841  need_lib_prefix=no
17842  need_version=no
17843  soname_spec='${libname}${release}${shared_ext}$major'
17844  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17845  case $host_os in
17846  irix5* | nonstopux*)
17847    libsuff= shlibsuff=
17848    ;;
17849  *)
17850    case $LD in # libtool.m4 will add one of these switches to LD
17851    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17852      libsuff= shlibsuff= libmagic=32-bit;;
17853    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17854      libsuff=32 shlibsuff=N32 libmagic=N32;;
17855    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17856      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17857    *) libsuff= shlibsuff= libmagic=never-match;;
17858    esac
17859    ;;
17860  esac
17861  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17862  shlibpath_overrides_runpath=no
17863  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17864  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17865  hardcode_into_libs=yes
17866  ;;
17867
17868# No shared lib support for Linux oldld, aout, or coff.
17869linux*oldld* | linux*aout* | linux*coff*)
17870  dynamic_linker=no
17871  ;;
17872
17873# This must be Linux ELF.
17874linux*)
17875  version_type=linux
17876  need_lib_prefix=no
17877  need_version=no
17878  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17879  soname_spec='${libname}${release}${shared_ext}$major'
17880  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17881  shlibpath_var=LD_LIBRARY_PATH
17882  shlibpath_overrides_runpath=no
17883  # This implies no fast_install, which is unacceptable.
17884  # Some rework will be needed to allow for fast_install
17885  # before this can be enabled.
17886  hardcode_into_libs=yes
17887
17888  # Append ld.so.conf contents to the search path
17889  if test -f /etc/ld.so.conf; then
17890    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' ' '`
17891    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17892  fi
17893
17894  # We used to test for /lib/ld.so.1 and disable shared libraries on
17895  # powerpc, because MkLinux only supported shared libraries with the
17896  # GNU dynamic linker.  Since this was broken with cross compilers,
17897  # most powerpc-linux boxes support dynamic linking these days and
17898  # people can always --disable-shared, the test was removed, and we
17899  # assume the GNU/Linux dynamic linker is in use.
17900  dynamic_linker='GNU/Linux ld.so'
17901  ;;
17902
17903knetbsd*-gnu)
17904  version_type=linux
17905  need_lib_prefix=no
17906  need_version=no
17907  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17908  soname_spec='${libname}${release}${shared_ext}$major'
17909  shlibpath_var=LD_LIBRARY_PATH
17910  shlibpath_overrides_runpath=no
17911  hardcode_into_libs=yes
17912  dynamic_linker='GNU ld.so'
17913  ;;
17914
17915netbsd*)
17916  version_type=sunos
17917  need_lib_prefix=no
17918  need_version=no
17919  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17920    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17921    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17922    dynamic_linker='NetBSD (a.out) ld.so'
17923  else
17924    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17925    soname_spec='${libname}${release}${shared_ext}$major'
17926    dynamic_linker='NetBSD ld.elf_so'
17927  fi
17928  shlibpath_var=LD_LIBRARY_PATH
17929  shlibpath_overrides_runpath=yes
17930  hardcode_into_libs=yes
17931  ;;
17932
17933newsos6)
17934  version_type=linux
17935  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17936  shlibpath_var=LD_LIBRARY_PATH
17937  shlibpath_overrides_runpath=yes
17938  ;;
17939
17940nto-qnx*)
17941  version_type=linux
17942  need_lib_prefix=no
17943  need_version=no
17944  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17945  soname_spec='${libname}${release}${shared_ext}$major'
17946  shlibpath_var=LD_LIBRARY_PATH
17947  shlibpath_overrides_runpath=yes
17948  ;;
17949
17950openbsd*)
17951  version_type=sunos
17952  sys_lib_dlsearch_path_spec="/usr/lib"
17953  need_lib_prefix=no
17954  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17955  case $host_os in
17956    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17957    *)                         need_version=no  ;;
17958  esac
17959  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17960  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17961  shlibpath_var=LD_LIBRARY_PATH
17962  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17963    case $host_os in
17964      openbsd2.[89] | openbsd2.[89].*)
17965	shlibpath_overrides_runpath=no
17966	;;
17967      *)
17968	shlibpath_overrides_runpath=yes
17969	;;
17970      esac
17971  else
17972    shlibpath_overrides_runpath=yes
17973  fi
17974  ;;
17975
17976os2*)
17977  libname_spec='$name'
17978  shrext_cmds=".dll"
17979  need_lib_prefix=no
17980  library_names_spec='$libname${shared_ext} $libname.a'
17981  dynamic_linker='OS/2 ld.exe'
17982  shlibpath_var=LIBPATH
17983  ;;
17984
17985osf3* | osf4* | osf5*)
17986  version_type=osf
17987  need_lib_prefix=no
17988  need_version=no
17989  soname_spec='${libname}${release}${shared_ext}$major'
17990  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17991  shlibpath_var=LD_LIBRARY_PATH
17992  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17993  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17994  ;;
17995
17996solaris*)
17997  version_type=linux
17998  need_lib_prefix=no
17999  need_version=no
18000  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18001  soname_spec='${libname}${release}${shared_ext}$major'
18002  shlibpath_var=LD_LIBRARY_PATH
18003  shlibpath_overrides_runpath=yes
18004  hardcode_into_libs=yes
18005  # ldd complains unless libraries are executable
18006  postinstall_cmds='chmod +x $lib'
18007  ;;
18008
18009sunos4*)
18010  version_type=sunos
18011  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18012  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18013  shlibpath_var=LD_LIBRARY_PATH
18014  shlibpath_overrides_runpath=yes
18015  if test "$with_gnu_ld" = yes; then
18016    need_lib_prefix=no
18017  fi
18018  need_version=yes
18019  ;;
18020
18021sysv4 | sysv4.3*)
18022  version_type=linux
18023  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18024  soname_spec='${libname}${release}${shared_ext}$major'
18025  shlibpath_var=LD_LIBRARY_PATH
18026  case $host_vendor in
18027    sni)
18028      shlibpath_overrides_runpath=no
18029      need_lib_prefix=no
18030      export_dynamic_flag_spec='${wl}-Blargedynsym'
18031      runpath_var=LD_RUN_PATH
18032      ;;
18033    siemens)
18034      need_lib_prefix=no
18035      ;;
18036    motorola)
18037      need_lib_prefix=no
18038      need_version=no
18039      shlibpath_overrides_runpath=no
18040      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18041      ;;
18042  esac
18043  ;;
18044
18045sysv4*MP*)
18046  if test -d /usr/nec ;then
18047    version_type=linux
18048    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18049    soname_spec='$libname${shared_ext}.$major'
18050    shlibpath_var=LD_LIBRARY_PATH
18051  fi
18052  ;;
18053
18054sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18055  version_type=freebsd-elf
18056  need_lib_prefix=no
18057  need_version=no
18058  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18059  soname_spec='${libname}${release}${shared_ext}$major'
18060  shlibpath_var=LD_LIBRARY_PATH
18061  hardcode_into_libs=yes
18062  if test "$with_gnu_ld" = yes; then
18063    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18064    shlibpath_overrides_runpath=no
18065  else
18066    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18067    shlibpath_overrides_runpath=yes
18068    case $host_os in
18069      sco3.2v5*)
18070        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18071	;;
18072    esac
18073  fi
18074  sys_lib_dlsearch_path_spec='/usr/lib'
18075  ;;
18076
18077uts4*)
18078  version_type=linux
18079  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18080  soname_spec='${libname}${release}${shared_ext}$major'
18081  shlibpath_var=LD_LIBRARY_PATH
18082  ;;
18083
18084*)
18085  dynamic_linker=no
18086  ;;
18087esac
18088echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18089echo "${ECHO_T}$dynamic_linker" >&6
18090test "$dynamic_linker" = no && can_build_shared=no
18091
18092variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18093if test "$GCC" = yes; then
18094  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18095fi
18096
18097echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18098echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18099hardcode_action_F77=
18100if test -n "$hardcode_libdir_flag_spec_F77" || \
18101   test -n "$runpath_var_F77" || \
18102   test "X$hardcode_automatic_F77" = "Xyes" ; then
18103
18104  # We can hardcode non-existant directories.
18105  if test "$hardcode_direct_F77" != no &&
18106     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18107     # have to relink, otherwise we might link with an installed library
18108     # when we should be linking with a yet-to-be-installed one
18109     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
18110     test "$hardcode_minus_L_F77" != no; then
18111    # Linking always hardcodes the temporary library directory.
18112    hardcode_action_F77=relink
18113  else
18114    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18115    hardcode_action_F77=immediate
18116  fi
18117else
18118  # We cannot hardcode anything, or else we can only hardcode existing
18119  # directories.
18120  hardcode_action_F77=unsupported
18121fi
18122echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
18123echo "${ECHO_T}$hardcode_action_F77" >&6
18124
18125if test "$hardcode_action_F77" = relink; then
18126  # Fast installation is not supported
18127  enable_fast_install=no
18128elif test "$shlibpath_overrides_runpath" = yes ||
18129     test "$enable_shared" = no; then
18130  # Fast installation is not necessary
18131  enable_fast_install=needless
18132fi
18133
18134
18135# The else clause should only fire when bootstrapping the
18136# libtool distribution, otherwise you forgot to ship ltmain.sh
18137# with your package, and you will get complaints that there are
18138# no rules to generate ltmain.sh.
18139if test -f "$ltmain"; then
18140  # See if we are running on zsh, and set the options which allow our commands through
18141  # without removal of \ escapes.
18142  if test -n "${ZSH_VERSION+set}" ; then
18143    setopt NO_GLOB_SUBST
18144  fi
18145  # Now quote all the things that may contain metacharacters while being
18146  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18147  # variables and quote the copies for generation of the libtool script.
18148  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18149    SED SHELL STRIP \
18150    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18151    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18152    deplibs_check_method reload_flag reload_cmds need_locks \
18153    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18154    lt_cv_sys_global_symbol_to_c_name_address \
18155    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18156    old_postinstall_cmds old_postuninstall_cmds \
18157    compiler_F77 \
18158    CC_F77 \
18159    LD_F77 \
18160    lt_prog_compiler_wl_F77 \
18161    lt_prog_compiler_pic_F77 \
18162    lt_prog_compiler_static_F77 \
18163    lt_prog_compiler_no_builtin_flag_F77 \
18164    export_dynamic_flag_spec_F77 \
18165    thread_safe_flag_spec_F77 \
18166    whole_archive_flag_spec_F77 \
18167    enable_shared_with_static_runtimes_F77 \
18168    old_archive_cmds_F77 \
18169    old_archive_from_new_cmds_F77 \
18170    predep_objects_F77 \
18171    postdep_objects_F77 \
18172    predeps_F77 \
18173    postdeps_F77 \
18174    compiler_lib_search_path_F77 \
18175    archive_cmds_F77 \
18176    archive_expsym_cmds_F77 \
18177    postinstall_cmds_F77 \
18178    postuninstall_cmds_F77 \
18179    old_archive_from_expsyms_cmds_F77 \
18180    allow_undefined_flag_F77 \
18181    no_undefined_flag_F77 \
18182    export_symbols_cmds_F77 \
18183    hardcode_libdir_flag_spec_F77 \
18184    hardcode_libdir_flag_spec_ld_F77 \
18185    hardcode_libdir_separator_F77 \
18186    hardcode_automatic_F77 \
18187    module_cmds_F77 \
18188    module_expsym_cmds_F77 \
18189    lt_cv_prog_compiler_c_o_F77 \
18190    exclude_expsyms_F77 \
18191    include_expsyms_F77; do
18192
18193    case $var in
18194    old_archive_cmds_F77 | \
18195    old_archive_from_new_cmds_F77 | \
18196    archive_cmds_F77 | \
18197    archive_expsym_cmds_F77 | \
18198    module_cmds_F77 | \
18199    module_expsym_cmds_F77 | \
18200    old_archive_from_expsyms_cmds_F77 | \
18201    export_symbols_cmds_F77 | \
18202    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18203    postinstall_cmds | postuninstall_cmds | \
18204    old_postinstall_cmds | old_postuninstall_cmds | \
18205    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18206      # Double-quote double-evaled strings.
18207      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18208      ;;
18209    *)
18210      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18211      ;;
18212    esac
18213  done
18214
18215  case $lt_echo in
18216  *'\$0 --fallback-echo"')
18217    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18218    ;;
18219  esac
18220
18221cfgfile="$ofile"
18222
18223  cat <<__EOF__ >> "$cfgfile"
18224# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18225
18226# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18227
18228# Shell to use when invoking shell scripts.
18229SHELL=$lt_SHELL
18230
18231# Whether or not to build shared libraries.
18232build_libtool_libs=$enable_shared
18233
18234# Whether or not to build static libraries.
18235build_old_libs=$enable_static
18236
18237# Whether or not to add -lc for building shared libraries.
18238build_libtool_need_lc=$archive_cmds_need_lc_F77
18239
18240# Whether or not to disallow shared libs when runtime libs are static
18241allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
18242
18243# Whether or not to optimize for fast installation.
18244fast_install=$enable_fast_install
18245
18246# The host system.
18247host_alias=$host_alias
18248host=$host
18249host_os=$host_os
18250
18251# The build system.
18252build_alias=$build_alias
18253build=$build
18254build_os=$build_os
18255
18256# An echo program that does not interpret backslashes.
18257echo=$lt_echo
18258
18259# The archiver.
18260AR=$lt_AR
18261AR_FLAGS=$lt_AR_FLAGS
18262
18263# A C compiler.
18264LTCC=$lt_LTCC
18265
18266# LTCC compiler flags.
18267LTCFLAGS=$lt_LTCFLAGS
18268
18269# A language-specific compiler.
18270CC=$lt_compiler_F77
18271
18272# Is the compiler the GNU C compiler?
18273with_gcc=$GCC_F77
18274
18275# An ERE matcher.
18276EGREP=$lt_EGREP
18277
18278# The linker used to build libraries.
18279LD=$lt_LD_F77
18280
18281# Whether we need hard or soft links.
18282LN_S=$lt_LN_S
18283
18284# A BSD-compatible nm program.
18285NM=$lt_NM
18286
18287# A symbol stripping program
18288STRIP=$lt_STRIP
18289
18290# Used to examine libraries when file_magic_cmd begins "file"
18291MAGIC_CMD=$MAGIC_CMD
18292
18293# Used on cygwin: DLL creation program.
18294DLLTOOL="$DLLTOOL"
18295
18296# Used on cygwin: object dumper.
18297OBJDUMP="$OBJDUMP"
18298
18299# Used on cygwin: assembler.
18300AS="$AS"
18301
18302# The name of the directory that contains temporary libtool files.
18303objdir=$objdir
18304
18305# How to create reloadable object files.
18306reload_flag=$lt_reload_flag
18307reload_cmds=$lt_reload_cmds
18308
18309# How to pass a linker flag through the compiler.
18310wl=$lt_lt_prog_compiler_wl_F77
18311
18312# Object file suffix (normally "o").
18313objext="$ac_objext"
18314
18315# Old archive suffix (normally "a").
18316libext="$libext"
18317
18318# Shared library suffix (normally ".so").
18319shrext_cmds='$shrext_cmds'
18320
18321# Executable file suffix (normally "").
18322exeext="$exeext"
18323
18324# Additional compiler flags for building library objects.
18325pic_flag=$lt_lt_prog_compiler_pic_F77
18326pic_mode=$pic_mode
18327
18328# What is the maximum length of a command?
18329max_cmd_len=$lt_cv_sys_max_cmd_len
18330
18331# Does compiler simultaneously support -c and -o options?
18332compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
18333
18334# Must we lock files when doing compilation?
18335need_locks=$lt_need_locks
18336
18337# Do we need the lib prefix for modules?
18338need_lib_prefix=$need_lib_prefix
18339
18340# Do we need a version for libraries?
18341need_version=$need_version
18342
18343# Whether dlopen is supported.
18344dlopen_support=$enable_dlopen
18345
18346# Whether dlopen of programs is supported.
18347dlopen_self=$enable_dlopen_self
18348
18349# Whether dlopen of statically linked programs is supported.
18350dlopen_self_static=$enable_dlopen_self_static
18351
18352# Compiler flag to prevent dynamic linking.
18353link_static_flag=$lt_lt_prog_compiler_static_F77
18354
18355# Compiler flag to turn off builtin functions.
18356no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
18357
18358# Compiler flag to allow reflexive dlopens.
18359export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
18360
18361# Compiler flag to generate shared objects directly from archives.
18362whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
18363
18364# Compiler flag to generate thread-safe objects.
18365thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
18366
18367# Library versioning type.
18368version_type=$version_type
18369
18370# Format of library name prefix.
18371libname_spec=$lt_libname_spec
18372
18373# List of archive names.  First name is the real one, the rest are links.
18374# The last name is the one that the linker finds with -lNAME.
18375library_names_spec=$lt_library_names_spec
18376
18377# The coded name of the library, if different from the real name.
18378soname_spec=$lt_soname_spec
18379
18380# Commands used to build and install an old-style archive.
18381RANLIB=$lt_RANLIB
18382old_archive_cmds=$lt_old_archive_cmds_F77
18383old_postinstall_cmds=$lt_old_postinstall_cmds
18384old_postuninstall_cmds=$lt_old_postuninstall_cmds
18385
18386# Create an old-style archive from a shared archive.
18387old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
18388
18389# Create a temporary old-style archive to link instead of a shared archive.
18390old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
18391
18392# Commands used to build and install a shared archive.
18393archive_cmds=$lt_archive_cmds_F77
18394archive_expsym_cmds=$lt_archive_expsym_cmds_F77
18395postinstall_cmds=$lt_postinstall_cmds
18396postuninstall_cmds=$lt_postuninstall_cmds
18397
18398# Commands used to build a loadable module (assumed same as above if empty)
18399module_cmds=$lt_module_cmds_F77
18400module_expsym_cmds=$lt_module_expsym_cmds_F77
18401
18402# Commands to strip libraries.
18403old_striplib=$lt_old_striplib
18404striplib=$lt_striplib
18405
18406# Dependencies to place before the objects being linked to create a
18407# shared library.
18408predep_objects=$lt_predep_objects_F77
18409
18410# Dependencies to place after the objects being linked to create a
18411# shared library.
18412postdep_objects=$lt_postdep_objects_F77
18413
18414# Dependencies to place before the objects being linked to create a
18415# shared library.
18416predeps=$lt_predeps_F77
18417
18418# Dependencies to place after the objects being linked to create a
18419# shared library.
18420postdeps=$lt_postdeps_F77
18421
18422# The library search path used internally by the compiler when linking
18423# a shared library.
18424compiler_lib_search_path=$lt_compiler_lib_search_path_F77
18425
18426# Method to check whether dependent libraries are shared objects.
18427deplibs_check_method=$lt_deplibs_check_method
18428
18429# Command to use when deplibs_check_method == file_magic.
18430file_magic_cmd=$lt_file_magic_cmd
18431
18432# Flag that allows shared libraries with undefined symbols to be built.
18433allow_undefined_flag=$lt_allow_undefined_flag_F77
18434
18435# Flag that forces no undefined symbols.
18436no_undefined_flag=$lt_no_undefined_flag_F77
18437
18438# Commands used to finish a libtool library installation in a directory.
18439finish_cmds=$lt_finish_cmds
18440
18441# Same as above, but a single script fragment to be evaled but not shown.
18442finish_eval=$lt_finish_eval
18443
18444# Take the output of nm and produce a listing of raw symbols and C names.
18445global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18446
18447# Transform the output of nm in a proper C declaration
18448global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18449
18450# Transform the output of nm in a C name address pair
18451global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18452
18453# This is the shared library runtime path variable.
18454runpath_var=$runpath_var
18455
18456# This is the shared library path variable.
18457shlibpath_var=$shlibpath_var
18458
18459# Is shlibpath searched before the hard-coded library search path?
18460shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18461
18462# How to hardcode a shared library path into an executable.
18463hardcode_action=$hardcode_action_F77
18464
18465# Whether we should hardcode library paths into libraries.
18466hardcode_into_libs=$hardcode_into_libs
18467
18468# Flag to hardcode \$libdir into a binary during linking.
18469# This must work even if \$libdir does not exist.
18470hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
18471
18472# If ld is used when linking, flag to hardcode \$libdir into
18473# a binary during linking. This must work even if \$libdir does
18474# not exist.
18475hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
18476
18477# Whether we need a single -rpath flag with a separated argument.
18478hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
18479
18480# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18481# resulting binary.
18482hardcode_direct=$hardcode_direct_F77
18483
18484# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18485# resulting binary.
18486hardcode_minus_L=$hardcode_minus_L_F77
18487
18488# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18489# the resulting binary.
18490hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
18491
18492# Set to yes if building a shared library automatically hardcodes DIR into the library
18493# and all subsequent libraries and executables linked against it.
18494hardcode_automatic=$hardcode_automatic_F77
18495
18496# Variables whose values should be saved in libtool wrapper scripts and
18497# restored at relink time.
18498variables_saved_for_relink="$variables_saved_for_relink"
18499
18500# Whether libtool must link a program against all its dependency libraries.
18501link_all_deplibs=$link_all_deplibs_F77
18502
18503# Compile-time system search path for libraries
18504sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18505
18506# Run-time system search path for libraries
18507sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18508
18509# Fix the shell variable \$srcfile for the compiler.
18510fix_srcfile_path="$fix_srcfile_path_F77"
18511
18512# Set to yes if exported symbols are required.
18513always_export_symbols=$always_export_symbols_F77
18514
18515# The commands to list exported symbols.
18516export_symbols_cmds=$lt_export_symbols_cmds_F77
18517
18518# The commands to extract the exported symbol list from a shared archive.
18519extract_expsyms_cmds=$lt_extract_expsyms_cmds
18520
18521# Symbols that should not be listed in the preloaded symbols.
18522exclude_expsyms=$lt_exclude_expsyms_F77
18523
18524# Symbols that must always be exported.
18525include_expsyms=$lt_include_expsyms_F77
18526
18527# ### END LIBTOOL TAG CONFIG: $tagname
18528
18529__EOF__
18530
18531
18532else
18533  # If there is no Makefile yet, we rely on a make rule to execute
18534  # `config.status --recheck' to rerun these tests and create the
18535  # libtool script then.
18536  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18537  if test -f "$ltmain_in"; then
18538    test -f Makefile && make "$ltmain"
18539  fi
18540fi
18541
18542
18543ac_ext=c
18544ac_cpp='$CPP $CPPFLAGS'
18545ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18546ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18547ac_compiler_gnu=$ac_cv_c_compiler_gnu
18548
18549CC="$lt_save_CC"
18550
18551	else
18552	  tagname=""
18553	fi
18554	;;
18555
18556      GCJ)
18557	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
18558
18559
18560
18561# Source file extension for Java test sources.
18562ac_ext=java
18563
18564# Object file extension for compiled Java test sources.
18565objext=o
18566objext_GCJ=$objext
18567
18568# Code to be used in simple compile tests
18569lt_simple_compile_test_code="class foo {}\n"
18570
18571# Code to be used in simple link tests
18572lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
18573
18574# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18575
18576# If no C compiler was specified, use CC.
18577LTCC=${LTCC-"$CC"}
18578
18579# If no C compiler flags were specified, use CFLAGS.
18580LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18581
18582# Allow CC to be a program name with arguments.
18583compiler=$CC
18584
18585
18586# save warnings/boilerplate of simple test code
18587ac_outfile=conftest.$ac_objext
18588printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18589eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18590_lt_compiler_boilerplate=`cat conftest.err`
18591$rm conftest*
18592
18593ac_outfile=conftest.$ac_objext
18594printf "$lt_simple_link_test_code" >conftest.$ac_ext
18595eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18596_lt_linker_boilerplate=`cat conftest.err`
18597$rm conftest*
18598
18599
18600# Allow CC to be a program name with arguments.
18601lt_save_CC="$CC"
18602CC=${GCJ-"gcj"}
18603compiler=$CC
18604compiler_GCJ=$CC
18605for cc_temp in $compiler""; do
18606  case $cc_temp in
18607    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18608    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18609    \-*) ;;
18610    *) break;;
18611  esac
18612done
18613cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18614
18615
18616# GCJ did not exist at the time GCC didn't implicitly link libc in.
18617archive_cmds_need_lc_GCJ=no
18618
18619old_archive_cmds_GCJ=$old_archive_cmds
18620
18621## CAVEAT EMPTOR:
18622## There is no encapsulation within the following macros, do not change
18623## the running order or otherwise move them around unless you know exactly
18624## what you are doing...
18625
18626lt_prog_compiler_no_builtin_flag_GCJ=
18627
18628if test "$GCC" = yes; then
18629  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
18630
18631
18632echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
18633echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
18634if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
18635  echo $ECHO_N "(cached) $ECHO_C" >&6
18636else
18637  lt_cv_prog_compiler_rtti_exceptions=no
18638  ac_outfile=conftest.$ac_objext
18639   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18640   lt_compiler_flag="-fno-rtti -fno-exceptions"
18641   # Insert the option either (1) after the last *FLAGS variable, or
18642   # (2) before a word containing "conftest.", or (3) at the end.
18643   # Note that $ac_compile itself does not contain backslashes and begins
18644   # with a dollar sign (not a hyphen), so the echo should work correctly.
18645   # The option is referenced via a variable to avoid confusing sed.
18646   lt_compile=`echo "$ac_compile" | $SED \
18647   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18648   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18649   -e 's:$: $lt_compiler_flag:'`
18650   (eval echo "\"\$as_me:18650: $lt_compile\"" >&5)
18651   (eval "$lt_compile" 2>conftest.err)
18652   ac_status=$?
18653   cat conftest.err >&5
18654   echo "$as_me:18654: \$? = $ac_status" >&5
18655   if (exit $ac_status) && test -s "$ac_outfile"; then
18656     # The compiler can only warn and ignore the option if not recognized
18657     # So say no if there are warnings other than the usual output.
18658     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18659     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18660     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18661       lt_cv_prog_compiler_rtti_exceptions=yes
18662     fi
18663   fi
18664   $rm conftest*
18665
18666fi
18667echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18668echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
18669
18670if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18671    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18672else
18673    :
18674fi
18675
18676fi
18677
18678lt_prog_compiler_wl_GCJ=
18679lt_prog_compiler_pic_GCJ=
18680lt_prog_compiler_static_GCJ=
18681
18682echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18683echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18684
18685  if test "$GCC" = yes; then
18686    lt_prog_compiler_wl_GCJ='-Wl,'
18687    lt_prog_compiler_static_GCJ='-static'
18688
18689    case $host_os in
18690      aix*)
18691      # All AIX code is PIC.
18692      if test "$host_cpu" = ia64; then
18693	# AIX 5 now supports IA64 processor
18694	lt_prog_compiler_static_GCJ='-Bstatic'
18695      fi
18696      ;;
18697
18698    amigaos*)
18699      # FIXME: we need at least 68020 code to build shared libraries, but
18700      # adding the `-m68020' flag to GCC prevents building anything better,
18701      # like `-m68040'.
18702      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18703      ;;
18704
18705    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18706      # PIC is the default for these OSes.
18707      ;;
18708
18709    mingw* | pw32* | os2*)
18710      # This hack is so that the source file can tell whether it is being
18711      # built for inclusion in a dll (and should export symbols for example).
18712      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18713      ;;
18714
18715    darwin* | rhapsody*)
18716      # PIC is the default on this platform
18717      # Common symbols not allowed in MH_DYLIB files
18718      lt_prog_compiler_pic_GCJ='-fno-common'
18719      ;;
18720
18721    interix3*)
18722      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18723      # Instead, we relocate shared libraries at runtime.
18724      ;;
18725
18726    msdosdjgpp*)
18727      # Just because we use GCC doesn't mean we suddenly get shared libraries
18728      # on systems that don't support them.
18729      lt_prog_compiler_can_build_shared_GCJ=no
18730      enable_shared=no
18731      ;;
18732
18733    sysv4*MP*)
18734      if test -d /usr/nec; then
18735	lt_prog_compiler_pic_GCJ=-Kconform_pic
18736      fi
18737      ;;
18738
18739    hpux*)
18740      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18741      # not for PA HP-UX.
18742      case $host_cpu in
18743      hppa*64*|ia64*)
18744	# +Z the default
18745	;;
18746      *)
18747	lt_prog_compiler_pic_GCJ='-fPIC'
18748	;;
18749      esac
18750      ;;
18751
18752    *)
18753      lt_prog_compiler_pic_GCJ='-fPIC'
18754      ;;
18755    esac
18756  else
18757    # PORTME Check for flag to pass linker flags through the system compiler.
18758    case $host_os in
18759    aix*)
18760      lt_prog_compiler_wl_GCJ='-Wl,'
18761      if test "$host_cpu" = ia64; then
18762	# AIX 5 now supports IA64 processor
18763	lt_prog_compiler_static_GCJ='-Bstatic'
18764      else
18765	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18766      fi
18767      ;;
18768      darwin*)
18769        # PIC is the default on this platform
18770        # Common symbols not allowed in MH_DYLIB files
18771       case $cc_basename in
18772         xlc*)
18773         lt_prog_compiler_pic_GCJ='-qnocommon'
18774         lt_prog_compiler_wl_GCJ='-Wl,'
18775         ;;
18776       esac
18777       ;;
18778
18779    mingw* | pw32* | os2*)
18780      # This hack is so that the source file can tell whether it is being
18781      # built for inclusion in a dll (and should export symbols for example).
18782      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18783      ;;
18784
18785    hpux9* | hpux10* | hpux11*)
18786      lt_prog_compiler_wl_GCJ='-Wl,'
18787      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18788      # not for PA HP-UX.
18789      case $host_cpu in
18790      hppa*64*|ia64*)
18791	# +Z the default
18792	;;
18793      *)
18794	lt_prog_compiler_pic_GCJ='+Z'
18795	;;
18796      esac
18797      # Is there a better lt_prog_compiler_static that works with the bundled CC?
18798      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18799      ;;
18800
18801    irix5* | irix6* | nonstopux*)
18802      lt_prog_compiler_wl_GCJ='-Wl,'
18803      # PIC (with -KPIC) is the default.
18804      lt_prog_compiler_static_GCJ='-non_shared'
18805      ;;
18806
18807    newsos6)
18808      lt_prog_compiler_pic_GCJ='-KPIC'
18809      lt_prog_compiler_static_GCJ='-Bstatic'
18810      ;;
18811
18812    linux*)
18813      case $cc_basename in
18814      icc* | ecc*)
18815	lt_prog_compiler_wl_GCJ='-Wl,'
18816	lt_prog_compiler_pic_GCJ='-KPIC'
18817	lt_prog_compiler_static_GCJ='-static'
18818        ;;
18819      pgcc* | pgf77* | pgf90* | pgf95*)
18820        # Portland Group compilers (*not* the Pentium gcc compiler,
18821	# which looks to be a dead project)
18822	lt_prog_compiler_wl_GCJ='-Wl,'
18823	lt_prog_compiler_pic_GCJ='-fpic'
18824	lt_prog_compiler_static_GCJ='-Bstatic'
18825        ;;
18826      ccc*)
18827        lt_prog_compiler_wl_GCJ='-Wl,'
18828        # All Alpha code is PIC.
18829        lt_prog_compiler_static_GCJ='-non_shared'
18830        ;;
18831      esac
18832      ;;
18833
18834    osf3* | osf4* | osf5*)
18835      lt_prog_compiler_wl_GCJ='-Wl,'
18836      # All OSF/1 code is PIC.
18837      lt_prog_compiler_static_GCJ='-non_shared'
18838      ;;
18839
18840    solaris*)
18841      lt_prog_compiler_pic_GCJ='-KPIC'
18842      lt_prog_compiler_static_GCJ='-Bstatic'
18843      case $cc_basename in
18844      f77* | f90* | f95*)
18845	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18846      *)
18847	lt_prog_compiler_wl_GCJ='-Wl,';;
18848      esac
18849      ;;
18850
18851    sunos4*)
18852      lt_prog_compiler_wl_GCJ='-Qoption ld '
18853      lt_prog_compiler_pic_GCJ='-PIC'
18854      lt_prog_compiler_static_GCJ='-Bstatic'
18855      ;;
18856
18857    sysv4 | sysv4.2uw2* | sysv4.3*)
18858      lt_prog_compiler_wl_GCJ='-Wl,'
18859      lt_prog_compiler_pic_GCJ='-KPIC'
18860      lt_prog_compiler_static_GCJ='-Bstatic'
18861      ;;
18862
18863    sysv4*MP*)
18864      if test -d /usr/nec ;then
18865	lt_prog_compiler_pic_GCJ='-Kconform_pic'
18866	lt_prog_compiler_static_GCJ='-Bstatic'
18867      fi
18868      ;;
18869
18870    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18871      lt_prog_compiler_wl_GCJ='-Wl,'
18872      lt_prog_compiler_pic_GCJ='-KPIC'
18873      lt_prog_compiler_static_GCJ='-Bstatic'
18874      ;;
18875
18876    unicos*)
18877      lt_prog_compiler_wl_GCJ='-Wl,'
18878      lt_prog_compiler_can_build_shared_GCJ=no
18879      ;;
18880
18881    uts4*)
18882      lt_prog_compiler_pic_GCJ='-pic'
18883      lt_prog_compiler_static_GCJ='-Bstatic'
18884      ;;
18885
18886    *)
18887      lt_prog_compiler_can_build_shared_GCJ=no
18888      ;;
18889    esac
18890  fi
18891
18892echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18893echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
18894
18895#
18896# Check to make sure the PIC flag actually works.
18897#
18898if test -n "$lt_prog_compiler_pic_GCJ"; then
18899
18900echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18901echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
18902if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
18903  echo $ECHO_N "(cached) $ECHO_C" >&6
18904else
18905  lt_prog_compiler_pic_works_GCJ=no
18906  ac_outfile=conftest.$ac_objext
18907   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18908   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18909   # Insert the option either (1) after the last *FLAGS variable, or
18910   # (2) before a word containing "conftest.", or (3) at the end.
18911   # Note that $ac_compile itself does not contain backslashes and begins
18912   # with a dollar sign (not a hyphen), so the echo should work correctly.
18913   # The option is referenced via a variable to avoid confusing sed.
18914   lt_compile=`echo "$ac_compile" | $SED \
18915   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18916   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18917   -e 's:$: $lt_compiler_flag:'`
18918   (eval echo "\"\$as_me:18918: $lt_compile\"" >&5)
18919   (eval "$lt_compile" 2>conftest.err)
18920   ac_status=$?
18921   cat conftest.err >&5
18922   echo "$as_me:18922: \$? = $ac_status" >&5
18923   if (exit $ac_status) && test -s "$ac_outfile"; then
18924     # The compiler can only warn and ignore the option if not recognized
18925     # So say no if there are warnings other than the usual output.
18926     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18927     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18928     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18929       lt_prog_compiler_pic_works_GCJ=yes
18930     fi
18931   fi
18932   $rm conftest*
18933
18934fi
18935echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
18936echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
18937
18938if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
18939    case $lt_prog_compiler_pic_GCJ in
18940     "" | " "*) ;;
18941     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18942     esac
18943else
18944    lt_prog_compiler_pic_GCJ=
18945     lt_prog_compiler_can_build_shared_GCJ=no
18946fi
18947
18948fi
18949case $host_os in
18950  # For platforms which do not support PIC, -DPIC is meaningless:
18951  *djgpp*)
18952    lt_prog_compiler_pic_GCJ=
18953    ;;
18954  *)
18955    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18956    ;;
18957esac
18958
18959#
18960# Check to make sure the static flag actually works.
18961#
18962wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
18963echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18964echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
18965if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
18966  echo $ECHO_N "(cached) $ECHO_C" >&6
18967else
18968  lt_prog_compiler_static_works_GCJ=no
18969   save_LDFLAGS="$LDFLAGS"
18970   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18971   printf "$lt_simple_link_test_code" > conftest.$ac_ext
18972   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18973     # The linker can only warn and ignore the option if not recognized
18974     # So say no if there are warnings
18975     if test -s conftest.err; then
18976       # Append any errors to the config.log.
18977       cat conftest.err 1>&5
18978       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18979       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18980       if diff conftest.exp conftest.er2 >/dev/null; then
18981         lt_prog_compiler_static_works_GCJ=yes
18982       fi
18983     else
18984       lt_prog_compiler_static_works_GCJ=yes
18985     fi
18986   fi
18987   $rm conftest*
18988   LDFLAGS="$save_LDFLAGS"
18989
18990fi
18991echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
18992echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
18993
18994if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
18995    :
18996else
18997    lt_prog_compiler_static_GCJ=
18998fi
18999
19000
19001echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19002echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
19003if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
19004  echo $ECHO_N "(cached) $ECHO_C" >&6
19005else
19006  lt_cv_prog_compiler_c_o_GCJ=no
19007   $rm -r conftest 2>/dev/null
19008   mkdir conftest
19009   cd conftest
19010   mkdir out
19011   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19012
19013   lt_compiler_flag="-o out/conftest2.$ac_objext"
19014   # Insert the option either (1) after the last *FLAGS variable, or
19015   # (2) before a word containing "conftest.", or (3) at the end.
19016   # Note that $ac_compile itself does not contain backslashes and begins
19017   # with a dollar sign (not a hyphen), so the echo should work correctly.
19018   lt_compile=`echo "$ac_compile" | $SED \
19019   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19020   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19021   -e 's:$: $lt_compiler_flag:'`
19022   (eval echo "\"\$as_me:19022: $lt_compile\"" >&5)
19023   (eval "$lt_compile" 2>out/conftest.err)
19024   ac_status=$?
19025   cat out/conftest.err >&5
19026   echo "$as_me:19026: \$? = $ac_status" >&5
19027   if (exit $ac_status) && test -s out/conftest2.$ac_objext
19028   then
19029     # The compiler can only warn and ignore the option if not recognized
19030     # So say no if there are warnings
19031     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
19032     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19033     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19034       lt_cv_prog_compiler_c_o_GCJ=yes
19035     fi
19036   fi
19037   chmod u+w . 2>&5
19038   $rm conftest*
19039   # SGI C++ compiler will create directory out/ii_files/ for
19040   # template instantiation
19041   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19042   $rm out/* && rmdir out
19043   cd ..
19044   rmdir conftest
19045   $rm conftest*
19046
19047fi
19048echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
19049echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
19050
19051
19052hard_links="nottested"
19053if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
19054  # do not overwrite the value of need_locks provided by the user
19055  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19056echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19057  hard_links=yes
19058  $rm conftest*
19059  ln conftest.a conftest.b 2>/dev/null && hard_links=no
19060  touch conftest.a
19061  ln conftest.a conftest.b 2>&5 || hard_links=no
19062  ln conftest.a conftest.b 2>/dev/null && hard_links=no
19063  echo "$as_me:$LINENO: result: $hard_links" >&5
19064echo "${ECHO_T}$hard_links" >&6
19065  if test "$hard_links" = no; then
19066    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19067echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19068    need_locks=warn
19069  fi
19070else
19071  need_locks=no
19072fi
19073
19074echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19075echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19076
19077  runpath_var=
19078  allow_undefined_flag_GCJ=
19079  enable_shared_with_static_runtimes_GCJ=no
19080  archive_cmds_GCJ=
19081  archive_expsym_cmds_GCJ=
19082  old_archive_From_new_cmds_GCJ=
19083  old_archive_from_expsyms_cmds_GCJ=
19084  export_dynamic_flag_spec_GCJ=
19085  whole_archive_flag_spec_GCJ=
19086  thread_safe_flag_spec_GCJ=
19087  hardcode_libdir_flag_spec_GCJ=
19088  hardcode_libdir_flag_spec_ld_GCJ=
19089  hardcode_libdir_separator_GCJ=
19090  hardcode_direct_GCJ=no
19091  hardcode_minus_L_GCJ=no
19092  hardcode_shlibpath_var_GCJ=unsupported
19093  link_all_deplibs_GCJ=unknown
19094  hardcode_automatic_GCJ=no
19095  module_cmds_GCJ=
19096  module_expsym_cmds_GCJ=
19097  always_export_symbols_GCJ=no
19098  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19099  # include_expsyms should be a list of space-separated symbols to be *always*
19100  # included in the symbol list
19101  include_expsyms_GCJ=
19102  # exclude_expsyms can be an extended regexp of symbols to exclude
19103  # it will be wrapped by ` (' and `)$', so one must not match beginning or
19104  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19105  # as well as any symbol that contains `d'.
19106  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
19107  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19108  # platforms (ab)use it in PIC code, but their linkers get confused if
19109  # the symbol is explicitly referenced.  Since portable code cannot
19110  # rely on this symbol name, it's probably fine to never include it in
19111  # preloaded symbol tables.
19112  extract_expsyms_cmds=
19113  # Just being paranoid about ensuring that cc_basename is set.
19114  for cc_temp in $compiler""; do
19115  case $cc_temp in
19116    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19117    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19118    \-*) ;;
19119    *) break;;
19120  esac
19121done
19122cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19123
19124  case $host_os in
19125  cygwin* | mingw* | pw32*)
19126    # FIXME: the MSVC++ port hasn't been tested in a loooong time
19127    # When not using gcc, we currently assume that we are using
19128    # Microsoft Visual C++.
19129    if test "$GCC" != yes; then
19130      with_gnu_ld=no
19131    fi
19132    ;;
19133  interix*)
19134    # we just hope/assume this is gcc and not c89 (= MSVC++)
19135    with_gnu_ld=yes
19136    ;;
19137  openbsd*)
19138    with_gnu_ld=no
19139    ;;
19140  esac
19141
19142  ld_shlibs_GCJ=yes
19143  if test "$with_gnu_ld" = yes; then
19144    # If archive_cmds runs LD, not CC, wlarc should be empty
19145    wlarc='${wl}'
19146
19147    # Set some defaults for GNU ld with shared library support. These
19148    # are reset later if shared libraries are not supported. Putting them
19149    # here allows them to be overridden if necessary.
19150    runpath_var=LD_RUN_PATH
19151    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
19152    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
19153    # ancient GNU ld didn't support --whole-archive et. al.
19154    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19155	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19156      else
19157  	whole_archive_flag_spec_GCJ=
19158    fi
19159    supports_anon_versioning=no
19160    case `$LD -v 2>/dev/null` in
19161      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19162      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19163      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19164      *\ 2.11.*) ;; # other 2.11 versions
19165      *) supports_anon_versioning=yes ;;
19166    esac
19167
19168    # See if GNU ld supports shared libraries.
19169    case $host_os in
19170    aix3* | aix4* | aix5*)
19171      # On AIX/PPC, the GNU linker is very broken
19172      if test "$host_cpu" != ia64; then
19173	ld_shlibs_GCJ=no
19174	cat <<EOF 1>&2
19175
19176*** Warning: the GNU linker, at least up to release 2.9.1, is reported
19177*** to be unable to reliably create shared libraries on AIX.
19178*** Therefore, libtool is disabling shared libraries support.  If you
19179*** really care for shared libraries, you may want to modify your PATH
19180*** so that a non-GNU linker is found, and then restart.
19181
19182EOF
19183      fi
19184      ;;
19185
19186    amigaos*)
19187      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)'
19188      hardcode_libdir_flag_spec_GCJ='-L$libdir'
19189      hardcode_minus_L_GCJ=yes
19190
19191      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19192      # that the semantics of dynamic libraries on AmigaOS, at least up
19193      # to version 4, is to share data among multiple programs linked
19194      # with the same dynamic library.  Since this doesn't match the
19195      # behavior of shared libraries on other platforms, we can't use
19196      # them.
19197      ld_shlibs_GCJ=no
19198      ;;
19199
19200    beos*)
19201      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19202	allow_undefined_flag_GCJ=unsupported
19203	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19204	# support --undefined.  This deserves some investigation.  FIXME
19205	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19206      else
19207	ld_shlibs_GCJ=no
19208      fi
19209      ;;
19210
19211    cygwin* | mingw* | pw32*)
19212      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
19213      # as there is no search path for DLLs.
19214      hardcode_libdir_flag_spec_GCJ='-L$libdir'
19215      allow_undefined_flag_GCJ=unsupported
19216      always_export_symbols_GCJ=no
19217      enable_shared_with_static_runtimes_GCJ=yes
19218      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19219
19220      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19221        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19222	# If the export-symbols file already is a .def file (1st line
19223	# is EXPORTS), use it as is; otherwise, prepend...
19224	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19225	  cp $export_symbols $output_objdir/$soname.def;
19226	else
19227	  echo EXPORTS > $output_objdir/$soname.def;
19228	  cat $export_symbols >> $output_objdir/$soname.def;
19229	fi~
19230	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19231      else
19232	ld_shlibs_GCJ=no
19233      fi
19234      ;;
19235
19236    interix3*)
19237      hardcode_direct_GCJ=no
19238      hardcode_shlibpath_var_GCJ=no
19239      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19240      export_dynamic_flag_spec_GCJ='${wl}-E'
19241      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19242      # Instead, shared libraries are loaded at an image base (0x10000000 by
19243      # default) and relocated if they conflict, which is a slow very memory
19244      # consuming and fragmenting process.  To avoid this, we pick a random,
19245      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19246      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
19247      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'
19248      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'
19249      ;;
19250
19251    linux*)
19252      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19253	tmp_addflag=
19254	case $cc_basename,$host_cpu in
19255	pgcc*)				# Portland Group C compiler
19256	  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'
19257	  tmp_addflag=' $pic_flag'
19258	  ;;
19259	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
19260	  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'
19261	  tmp_addflag=' $pic_flag -Mnomain' ;;
19262	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
19263	  tmp_addflag=' -i_dynamic' ;;
19264	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
19265	  tmp_addflag=' -i_dynamic -nofor_main' ;;
19266	ifc* | ifort*)			# Intel Fortran compiler
19267	  tmp_addflag=' -nofor_main' ;;
19268	esac
19269	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19270
19271	if test $supports_anon_versioning = yes; then
19272	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
19273  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19274  $echo "local: *; };" >> $output_objdir/$libname.ver~
19275	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19276	fi
19277      else
19278	ld_shlibs_GCJ=no
19279      fi
19280      ;;
19281
19282    netbsd*)
19283      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19284	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19285	wlarc=
19286      else
19287	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19288	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19289      fi
19290      ;;
19291
19292    solaris*)
19293      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19294	ld_shlibs_GCJ=no
19295	cat <<EOF 1>&2
19296
19297*** Warning: The releases 2.8.* of the GNU linker cannot reliably
19298*** create shared libraries on Solaris systems.  Therefore, libtool
19299*** is disabling shared libraries support.  We urge you to upgrade GNU
19300*** binutils to release 2.9.1 or newer.  Another option is to modify
19301*** your PATH or compiler configuration so that the native linker is
19302*** used, and then restart.
19303
19304EOF
19305      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19306	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19307	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19308      else
19309	ld_shlibs_GCJ=no
19310      fi
19311      ;;
19312
19313    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
19314      case `$LD -v 2>&1` in
19315        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
19316	ld_shlibs_GCJ=no
19317	cat <<_LT_EOF 1>&2
19318
19319*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
19320*** reliably create shared libraries on SCO systems.  Therefore, libtool
19321*** is disabling shared libraries support.  We urge you to upgrade GNU
19322*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
19323*** your PATH or compiler configuration so that the native linker is
19324*** used, and then restart.
19325
19326_LT_EOF
19327	;;
19328	*)
19329	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19330	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
19331	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
19332	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
19333	  else
19334	    ld_shlibs_GCJ=no
19335	  fi
19336	;;
19337      esac
19338      ;;
19339
19340    sunos4*)
19341      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19342      wlarc=
19343      hardcode_direct_GCJ=yes
19344      hardcode_shlibpath_var_GCJ=no
19345      ;;
19346
19347    *)
19348      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19349	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19350	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19351      else
19352	ld_shlibs_GCJ=no
19353      fi
19354      ;;
19355    esac
19356
19357    if test "$ld_shlibs_GCJ" = no; then
19358      runpath_var=
19359      hardcode_libdir_flag_spec_GCJ=
19360      export_dynamic_flag_spec_GCJ=
19361      whole_archive_flag_spec_GCJ=
19362    fi
19363  else
19364    # PORTME fill in a description of your system's linker (not GNU ld)
19365    case $host_os in
19366    aix3*)
19367      allow_undefined_flag_GCJ=unsupported
19368      always_export_symbols_GCJ=yes
19369      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'
19370      # Note: this linker hardcodes the directories in LIBPATH if there
19371      # are no directories specified by -L.
19372      hardcode_minus_L_GCJ=yes
19373      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
19374	# Neither direct hardcoding nor static linking is supported with a
19375	# broken collect2.
19376	hardcode_direct_GCJ=unsupported
19377      fi
19378      ;;
19379
19380    aix4* | aix5*)
19381      if test "$host_cpu" = ia64; then
19382	# On IA64, the linker does run time linking by default, so we don't
19383	# have to do anything special.
19384	aix_use_runtimelinking=no
19385	exp_sym_flag='-Bexport'
19386	no_entry_flag=""
19387      else
19388	# If we're using GNU nm, then we don't want the "-C" option.
19389	# -C means demangle to AIX nm, but means don't demangle with GNU nm
19390	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19391	  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'
19392	else
19393	  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'
19394	fi
19395	aix_use_runtimelinking=no
19396
19397	# Test if we are trying to use run time linking or normal
19398	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
19399	# need to do runtime linking.
19400	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19401	  for ld_flag in $LDFLAGS; do
19402  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19403  	    aix_use_runtimelinking=yes
19404  	    break
19405  	  fi
19406	  done
19407	  ;;
19408	esac
19409
19410	exp_sym_flag='-bexport'
19411	no_entry_flag='-bnoentry'
19412      fi
19413
19414      # When large executables or shared objects are built, AIX ld can
19415      # have problems creating the table of contents.  If linking a library
19416      # or program results in "error TOC overflow" add -mminimal-toc to
19417      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
19418      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19419
19420      archive_cmds_GCJ=''
19421      hardcode_direct_GCJ=yes
19422      hardcode_libdir_separator_GCJ=':'
19423      link_all_deplibs_GCJ=yes
19424
19425      if test "$GCC" = yes; then
19426	case $host_os in aix4.[012]|aix4.[012].*)
19427	# We only want to do this on AIX 4.2 and lower, the check
19428	# below for broken collect2 doesn't work under 4.3+
19429	  collect2name=`${CC} -print-prog-name=collect2`
19430	  if test -f "$collect2name" && \
19431  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
19432	  then
19433  	  # We have reworked collect2
19434  	  hardcode_direct_GCJ=yes
19435	  else
19436  	  # We have old collect2
19437  	  hardcode_direct_GCJ=unsupported
19438  	  # It fails to find uninstalled libraries when the uninstalled
19439  	  # path is not listed in the libpath.  Setting hardcode_minus_L
19440  	  # to unsupported forces relinking
19441  	  hardcode_minus_L_GCJ=yes
19442  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
19443  	  hardcode_libdir_separator_GCJ=
19444	  fi
19445	  ;;
19446	esac
19447	shared_flag='-shared'
19448	if test "$aix_use_runtimelinking" = yes; then
19449	  shared_flag="$shared_flag "'${wl}-G'
19450	fi
19451      else
19452	# not using gcc
19453	if test "$host_cpu" = ia64; then
19454  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19455  	# chokes on -Wl,-G. The following line is correct:
19456	  shared_flag='-G'
19457	else
19458	  if test "$aix_use_runtimelinking" = yes; then
19459	    shared_flag='${wl}-G'
19460	  else
19461	    shared_flag='${wl}-bM:SRE'
19462	  fi
19463	fi
19464      fi
19465
19466      # It seems that -bexpall does not export symbols beginning with
19467      # underscore (_), so it is better to generate a list of symbols to export.
19468      always_export_symbols_GCJ=yes
19469      if test "$aix_use_runtimelinking" = yes; then
19470	# Warning - without using the other runtime loading flags (-brtl),
19471	# -berok will link without error, but may produce a broken library.
19472	allow_undefined_flag_GCJ='-berok'
19473       # Determine the default libpath from the value encoded in an empty executable.
19474       cat >conftest.$ac_ext <<_ACEOF
19475/* confdefs.h.  */
19476_ACEOF
19477cat confdefs.h >>conftest.$ac_ext
19478cat >>conftest.$ac_ext <<_ACEOF
19479/* end confdefs.h.  */
19480
19481#ifdef F77_DUMMY_MAIN
19482
19483#  ifdef __cplusplus
19484     extern "C"
19485#  endif
19486   int F77_DUMMY_MAIN() { return 1; }
19487
19488#endif
19489int
19490main ()
19491{
19492
19493  ;
19494  return 0;
19495}
19496_ACEOF
19497rm -f conftest.$ac_objext conftest$ac_exeext
19498if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19499  (eval $ac_link) 2>conftest.er1
19500  ac_status=$?
19501  grep -v '^ *+' conftest.er1 >conftest.err
19502  rm -f conftest.er1
19503  cat conftest.err >&5
19504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19505  (exit $ac_status); } &&
19506	 { ac_try='test -z "$ac_c_werror_flag"
19507			 || test ! -s conftest.err'
19508  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19509  (eval $ac_try) 2>&5
19510  ac_status=$?
19511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19512  (exit $ac_status); }; } &&
19513	 { ac_try='test -s conftest$ac_exeext'
19514  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19515  (eval $ac_try) 2>&5
19516  ac_status=$?
19517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19518  (exit $ac_status); }; }; then
19519
19520aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19521}'`
19522# Check for a 64-bit object if we didn't find anything.
19523if 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; }
19524}'`; fi
19525else
19526  echo "$as_me: failed program was:" >&5
19527sed 's/^/| /' conftest.$ac_ext >&5
19528
19529fi
19530rm -f conftest.err conftest.$ac_objext \
19531      conftest$ac_exeext conftest.$ac_ext
19532if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19533
19534       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19535	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"
19536       else
19537	if test "$host_cpu" = ia64; then
19538	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
19539	  allow_undefined_flag_GCJ="-z nodefs"
19540	  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"
19541	else
19542	 # Determine the default libpath from the value encoded in an empty executable.
19543	 cat >conftest.$ac_ext <<_ACEOF
19544/* confdefs.h.  */
19545_ACEOF
19546cat confdefs.h >>conftest.$ac_ext
19547cat >>conftest.$ac_ext <<_ACEOF
19548/* end confdefs.h.  */
19549
19550#ifdef F77_DUMMY_MAIN
19551
19552#  ifdef __cplusplus
19553     extern "C"
19554#  endif
19555   int F77_DUMMY_MAIN() { return 1; }
19556
19557#endif
19558int
19559main ()
19560{
19561
19562  ;
19563  return 0;
19564}
19565_ACEOF
19566rm -f conftest.$ac_objext conftest$ac_exeext
19567if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19568  (eval $ac_link) 2>conftest.er1
19569  ac_status=$?
19570  grep -v '^ *+' conftest.er1 >conftest.err
19571  rm -f conftest.er1
19572  cat conftest.err >&5
19573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19574  (exit $ac_status); } &&
19575	 { ac_try='test -z "$ac_c_werror_flag"
19576			 || test ! -s conftest.err'
19577  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19578  (eval $ac_try) 2>&5
19579  ac_status=$?
19580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19581  (exit $ac_status); }; } &&
19582	 { ac_try='test -s conftest$ac_exeext'
19583  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19584  (eval $ac_try) 2>&5
19585  ac_status=$?
19586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19587  (exit $ac_status); }; }; then
19588
19589aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
19590}'`
19591# Check for a 64-bit object if we didn't find anything.
19592if 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; }
19593}'`; fi
19594else
19595  echo "$as_me: failed program was:" >&5
19596sed 's/^/| /' conftest.$ac_ext >&5
19597
19598fi
19599rm -f conftest.err conftest.$ac_objext \
19600      conftest$ac_exeext conftest.$ac_ext
19601if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19602
19603	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19604	  # Warning - without using the other run time loading flags,
19605	  # -berok will link without error, but may produce a broken library.
19606	  no_undefined_flag_GCJ=' ${wl}-bernotok'
19607	  allow_undefined_flag_GCJ=' ${wl}-berok'
19608	  # Exported symbols can be pulled into shared objects from archives
19609	  whole_archive_flag_spec_GCJ='$convenience'
19610	  archive_cmds_need_lc_GCJ=yes
19611	  # This is similar to how AIX traditionally builds its shared libraries.
19612	  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'
19613	fi
19614      fi
19615      ;;
19616
19617    amigaos*)
19618      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)'
19619      hardcode_libdir_flag_spec_GCJ='-L$libdir'
19620      hardcode_minus_L_GCJ=yes
19621      # see comment about different semantics on the GNU ld section
19622      ld_shlibs_GCJ=no
19623      ;;
19624
19625    bsdi[45]*)
19626      export_dynamic_flag_spec_GCJ=-rdynamic
19627      ;;
19628
19629    cygwin* | mingw* | pw32*)
19630      # When not using gcc, we currently assume that we are using
19631      # Microsoft Visual C++.
19632      # hardcode_libdir_flag_spec is actually meaningless, as there is
19633      # no search path for DLLs.
19634      hardcode_libdir_flag_spec_GCJ=' '
19635      allow_undefined_flag_GCJ=unsupported
19636      # Tell ltmain to make .lib files, not .a files.
19637      libext=lib
19638      # Tell ltmain to make .dll files, not .so files.
19639      shrext_cmds=".dll"
19640      # FIXME: Setting linknames here is a bad hack.
19641      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19642      # The linker will automatically build a .lib file if we build a DLL.
19643      old_archive_From_new_cmds_GCJ='true'
19644      # FIXME: Should let the user specify the lib program.
19645      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
19646      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
19647      enable_shared_with_static_runtimes_GCJ=yes
19648      ;;
19649
19650    darwin* | rhapsody*)
19651      case $host_os in
19652        rhapsody* | darwin1.[012])
19653         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
19654         ;;
19655       *) # Darwin 1.3 on
19656         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19657           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19658         else
19659           case ${MACOSX_DEPLOYMENT_TARGET} in
19660             10.[012])
19661               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19662               ;;
19663             10.*)
19664               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
19665               ;;
19666           esac
19667         fi
19668         ;;
19669      esac
19670      archive_cmds_need_lc_GCJ=no
19671      hardcode_direct_GCJ=no
19672      hardcode_automatic_GCJ=yes
19673      hardcode_shlibpath_var_GCJ=unsupported
19674      whole_archive_flag_spec_GCJ=''
19675      link_all_deplibs_GCJ=yes
19676    if test "$GCC" = yes ; then
19677    	output_verbose_link_cmd='echo'
19678        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19679      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19680      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19681      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}'
19682      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}'
19683    else
19684      case $cc_basename in
19685        xlc*)
19686         output_verbose_link_cmd='echo'
19687         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19688         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19689          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19690         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}'
19691          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}'
19692          ;;
19693       *)
19694         ld_shlibs_GCJ=no
19695          ;;
19696      esac
19697    fi
19698      ;;
19699
19700    dgux*)
19701      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19702      hardcode_libdir_flag_spec_GCJ='-L$libdir'
19703      hardcode_shlibpath_var_GCJ=no
19704      ;;
19705
19706    freebsd1*)
19707      ld_shlibs_GCJ=no
19708      ;;
19709
19710    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19711    # support.  Future versions do this automatically, but an explicit c++rt0.o
19712    # does not break anything, and helps significantly (at the cost of a little
19713    # extra space).
19714    freebsd2.2*)
19715      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19716      hardcode_libdir_flag_spec_GCJ='-R$libdir'
19717      hardcode_direct_GCJ=yes
19718      hardcode_shlibpath_var_GCJ=no
19719      ;;
19720
19721    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19722    freebsd2*)
19723      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19724      hardcode_direct_GCJ=yes
19725      hardcode_minus_L_GCJ=yes
19726      hardcode_shlibpath_var_GCJ=no
19727      ;;
19728
19729    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19730    freebsd* | kfreebsd*-gnu | dragonfly*)
19731      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19732      hardcode_libdir_flag_spec_GCJ='-R$libdir'
19733      hardcode_direct_GCJ=yes
19734      hardcode_shlibpath_var_GCJ=no
19735      ;;
19736
19737    hpux9*)
19738      if test "$GCC" = yes; then
19739	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'
19740      else
19741	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'
19742      fi
19743      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19744      hardcode_libdir_separator_GCJ=:
19745      hardcode_direct_GCJ=yes
19746
19747      # hardcode_minus_L: Not really in the search PATH,
19748      # but as the default location of the library.
19749      hardcode_minus_L_GCJ=yes
19750      export_dynamic_flag_spec_GCJ='${wl}-E'
19751      ;;
19752
19753    hpux10*)
19754      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19755	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19756      else
19757	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19758      fi
19759      if test "$with_gnu_ld" = no; then
19760	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19761	hardcode_libdir_separator_GCJ=:
19762
19763	hardcode_direct_GCJ=yes
19764	export_dynamic_flag_spec_GCJ='${wl}-E'
19765
19766	# hardcode_minus_L: Not really in the search PATH,
19767	# but as the default location of the library.
19768	hardcode_minus_L_GCJ=yes
19769      fi
19770      ;;
19771
19772    hpux11*)
19773      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19774	case $host_cpu in
19775	hppa*64*)
19776	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19777	  ;;
19778	ia64*)
19779	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19780	  ;;
19781	*)
19782	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19783	  ;;
19784	esac
19785      else
19786	case $host_cpu in
19787	hppa*64*)
19788	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19789	  ;;
19790	ia64*)
19791	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19792	  ;;
19793	*)
19794	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19795	  ;;
19796	esac
19797      fi
19798      if test "$with_gnu_ld" = no; then
19799	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19800	hardcode_libdir_separator_GCJ=:
19801
19802	case $host_cpu in
19803	hppa*64*|ia64*)
19804	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19805	  hardcode_direct_GCJ=no
19806	  hardcode_shlibpath_var_GCJ=no
19807	  ;;
19808	*)
19809	  hardcode_direct_GCJ=yes
19810	  export_dynamic_flag_spec_GCJ='${wl}-E'
19811
19812	  # hardcode_minus_L: Not really in the search PATH,
19813	  # but as the default location of the library.
19814	  hardcode_minus_L_GCJ=yes
19815	  ;;
19816	esac
19817      fi
19818      ;;
19819
19820    irix5* | irix6* | nonstopux*)
19821      if test "$GCC" = yes; then
19822	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'
19823      else
19824	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'
19825	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19826      fi
19827      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19828      hardcode_libdir_separator_GCJ=:
19829      link_all_deplibs_GCJ=yes
19830      ;;
19831
19832    netbsd*)
19833      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19834	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19835      else
19836	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19837      fi
19838      hardcode_libdir_flag_spec_GCJ='-R$libdir'
19839      hardcode_direct_GCJ=yes
19840      hardcode_shlibpath_var_GCJ=no
19841      ;;
19842
19843    newsos6)
19844      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19845      hardcode_direct_GCJ=yes
19846      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19847      hardcode_libdir_separator_GCJ=:
19848      hardcode_shlibpath_var_GCJ=no
19849      ;;
19850
19851    openbsd*)
19852      hardcode_direct_GCJ=yes
19853      hardcode_shlibpath_var_GCJ=no
19854      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19855	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19856	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19857	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19858	export_dynamic_flag_spec_GCJ='${wl}-E'
19859      else
19860       case $host_os in
19861	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19862	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19863	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
19864	   ;;
19865	 *)
19866	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19867	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19868	   ;;
19869       esac
19870      fi
19871      ;;
19872
19873    os2*)
19874      hardcode_libdir_flag_spec_GCJ='-L$libdir'
19875      hardcode_minus_L_GCJ=yes
19876      allow_undefined_flag_GCJ=unsupported
19877      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'
19878      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19879      ;;
19880
19881    osf3*)
19882      if test "$GCC" = yes; then
19883	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19884	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'
19885      else
19886	allow_undefined_flag_GCJ=' -expect_unresolved \*'
19887	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'
19888      fi
19889      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19890      hardcode_libdir_separator_GCJ=:
19891      ;;
19892
19893    osf4* | osf5*)	# as osf3* with the addition of -msym flag
19894      if test "$GCC" = yes; then
19895	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19896	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'
19897	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19898      else
19899	allow_undefined_flag_GCJ=' -expect_unresolved \*'
19900	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'
19901	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~
19902	$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'
19903
19904	# Both c and cxx compiler support -rpath directly
19905	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19906      fi
19907      hardcode_libdir_separator_GCJ=:
19908      ;;
19909
19910    solaris*)
19911      no_undefined_flag_GCJ=' -z text'
19912      if test "$GCC" = yes; then
19913	wlarc='${wl}'
19914	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19915	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19916	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19917      else
19918	wlarc=''
19919	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19920	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19921  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19922      fi
19923      hardcode_libdir_flag_spec_GCJ='-R$libdir'
19924      hardcode_shlibpath_var_GCJ=no
19925      case $host_os in
19926      solaris2.[0-5] | solaris2.[0-5].*) ;;
19927      *)
19928 	# The compiler driver will combine linker options so we
19929 	# cannot just pass the convience library names through
19930 	# without $wl, iff we do not link with $LD.
19931 	# Luckily, gcc supports the same syntax we need for Sun Studio.
19932 	# Supported since Solaris 2.6 (maybe 2.5.1?)
19933 	case $wlarc in
19934 	'')
19935 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
19936 	*)
19937 	  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' ;;
19938 	esac ;;
19939      esac
19940      link_all_deplibs_GCJ=yes
19941      ;;
19942
19943    sunos4*)
19944      if test "x$host_vendor" = xsequent; then
19945	# Use $CC to link under sequent, because it throws in some extra .o
19946	# files that make .init and .fini sections work.
19947	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19948      else
19949	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19950      fi
19951      hardcode_libdir_flag_spec_GCJ='-L$libdir'
19952      hardcode_direct_GCJ=yes
19953      hardcode_minus_L_GCJ=yes
19954      hardcode_shlibpath_var_GCJ=no
19955      ;;
19956
19957    sysv4)
19958      case $host_vendor in
19959	sni)
19960	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19961	  hardcode_direct_GCJ=yes # is this really true???
19962	;;
19963	siemens)
19964	  ## LD is ld it makes a PLAMLIB
19965	  ## CC just makes a GrossModule.
19966	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19967	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19968	  hardcode_direct_GCJ=no
19969        ;;
19970	motorola)
19971	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19972	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19973	;;
19974      esac
19975      runpath_var='LD_RUN_PATH'
19976      hardcode_shlibpath_var_GCJ=no
19977      ;;
19978
19979    sysv4.3*)
19980      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19981      hardcode_shlibpath_var_GCJ=no
19982      export_dynamic_flag_spec_GCJ='-Bexport'
19983      ;;
19984
19985    sysv4*MP*)
19986      if test -d /usr/nec; then
19987	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19988	hardcode_shlibpath_var_GCJ=no
19989	runpath_var=LD_RUN_PATH
19990	hardcode_runpath_var=yes
19991	ld_shlibs_GCJ=yes
19992      fi
19993      ;;
19994
19995    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
19996      no_undefined_flag_GCJ='${wl}-z,text'
19997      archive_cmds_need_lc_GCJ=no
19998      hardcode_shlibpath_var_GCJ=no
19999      runpath_var='LD_RUN_PATH'
20000
20001      if test "$GCC" = yes; then
20002	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20003	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20004      else
20005	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20006	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20007      fi
20008      ;;
20009
20010    sysv5* | sco3.2v5* | sco5v6*)
20011      # Note: We can NOT use -z defs as we might desire, because we do not
20012      # link with -lc, and that would cause any symbols used from libc to
20013      # always be unresolved, which means just about no library would
20014      # ever link correctly.  If we're not using GNU ld we use -z text
20015      # though, which does catch some bad symbols but isn't as heavy-handed
20016      # as -z defs.
20017      no_undefined_flag_GCJ='${wl}-z,text'
20018      allow_undefined_flag_GCJ='${wl}-z,nodefs'
20019      archive_cmds_need_lc_GCJ=no
20020      hardcode_shlibpath_var_GCJ=no
20021      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
20022      hardcode_libdir_separator_GCJ=':'
20023      link_all_deplibs_GCJ=yes
20024      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
20025      runpath_var='LD_RUN_PATH'
20026
20027      if test "$GCC" = yes; then
20028	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20029	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20030      else
20031	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20032	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20033      fi
20034      ;;
20035
20036    uts4*)
20037      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20038      hardcode_libdir_flag_spec_GCJ='-L$libdir'
20039      hardcode_shlibpath_var_GCJ=no
20040      ;;
20041
20042    *)
20043      ld_shlibs_GCJ=no
20044      ;;
20045    esac
20046  fi
20047
20048echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
20049echo "${ECHO_T}$ld_shlibs_GCJ" >&6
20050test "$ld_shlibs_GCJ" = no && can_build_shared=no
20051
20052#
20053# Do we need to explicitly link libc?
20054#
20055case "x$archive_cmds_need_lc_GCJ" in
20056x|xyes)
20057  # Assume -lc should be added
20058  archive_cmds_need_lc_GCJ=yes
20059
20060  if test "$enable_shared" = yes && test "$GCC" = yes; then
20061    case $archive_cmds_GCJ in
20062    *'~'*)
20063      # FIXME: we may have to deal with multi-command sequences.
20064      ;;
20065    '$CC '*)
20066      # Test whether the compiler implicitly links with -lc since on some
20067      # systems, -lgcc has to come before -lc. If gcc already passes -lc
20068      # to ld, don't add -lc before -lgcc.
20069      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20070echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
20071      $rm conftest*
20072      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20073
20074      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20075  (eval $ac_compile) 2>&5
20076  ac_status=$?
20077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20078  (exit $ac_status); } 2>conftest.err; then
20079        soname=conftest
20080        lib=conftest
20081        libobjs=conftest.$ac_objext
20082        deplibs=
20083        wl=$lt_prog_compiler_wl_GCJ
20084	pic_flag=$lt_prog_compiler_pic_GCJ
20085        compiler_flags=-v
20086        linker_flags=-v
20087        verstring=
20088        output_objdir=.
20089        libname=conftest
20090        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
20091        allow_undefined_flag_GCJ=
20092        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20093  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20094  ac_status=$?
20095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20096  (exit $ac_status); }
20097        then
20098	  archive_cmds_need_lc_GCJ=no
20099        else
20100	  archive_cmds_need_lc_GCJ=yes
20101        fi
20102        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
20103      else
20104        cat conftest.err 1>&5
20105      fi
20106      $rm conftest*
20107      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
20108echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
20109      ;;
20110    esac
20111  fi
20112  ;;
20113esac
20114
20115echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20116echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
20117library_names_spec=
20118libname_spec='lib$name'
20119soname_spec=
20120shrext_cmds=".so"
20121postinstall_cmds=
20122postuninstall_cmds=
20123finish_cmds=
20124finish_eval=
20125shlibpath_var=
20126shlibpath_overrides_runpath=unknown
20127version_type=none
20128dynamic_linker="$host_os ld.so"
20129sys_lib_dlsearch_path_spec="/lib /usr/lib"
20130if test "$GCC" = yes; then
20131  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20132  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20133    # if the path contains ";" then we assume it to be the separator
20134    # otherwise default to the standard path separator (i.e. ":") - it is
20135    # assumed that no part of a normal pathname contains ";" but that should
20136    # okay in the real world where ";" in dirpaths is itself problematic.
20137    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20138  else
20139    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20140  fi
20141else
20142  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20143fi
20144need_lib_prefix=unknown
20145hardcode_into_libs=no
20146
20147# when you set need_version to no, make sure it does not cause -set_version
20148# flags to be left without arguments
20149need_version=unknown
20150
20151case $host_os in
20152aix3*)
20153  version_type=linux
20154  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20155  shlibpath_var=LIBPATH
20156
20157  # AIX 3 has no versioning support, so we append a major version to the name.
20158  soname_spec='${libname}${release}${shared_ext}$major'
20159  ;;
20160
20161aix4* | aix5*)
20162  version_type=linux
20163  need_lib_prefix=no
20164  need_version=no
20165  hardcode_into_libs=yes
20166  if test "$host_cpu" = ia64; then
20167    # AIX 5 supports IA64
20168    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20169    shlibpath_var=LD_LIBRARY_PATH
20170  else
20171    # With GCC up to 2.95.x, collect2 would create an import file
20172    # for dependence libraries.  The import file would start with
20173    # the line `#! .'.  This would cause the generated library to
20174    # depend on `.', always an invalid library.  This was fixed in
20175    # development snapshots of GCC prior to 3.0.
20176    case $host_os in
20177      aix4 | aix4.[01] | aix4.[01].*)
20178      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20179	   echo ' yes '
20180	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20181	:
20182      else
20183	can_build_shared=no
20184      fi
20185      ;;
20186    esac
20187    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20188    # soname into executable. Probably we can add versioning support to
20189    # collect2, so additional links can be useful in future.
20190    if test "$aix_use_runtimelinking" = yes; then
20191      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20192      # instead of lib<name>.a to let people know that these are not
20193      # typical AIX shared libraries.
20194      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20195    else
20196      # We preserve .a as extension for shared libraries through AIX4.2
20197      # and later when we are not doing run time linking.
20198      library_names_spec='${libname}${release}.a $libname.a'
20199      soname_spec='${libname}${release}${shared_ext}$major'
20200    fi
20201    shlibpath_var=LIBPATH
20202  fi
20203  ;;
20204
20205amigaos*)
20206  library_names_spec='$libname.ixlibrary $libname.a'
20207  # Create ${libname}_ixlibrary.a entries in /sys/libs.
20208  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'
20209  ;;
20210
20211beos*)
20212  library_names_spec='${libname}${shared_ext}'
20213  dynamic_linker="$host_os ld.so"
20214  shlibpath_var=LIBRARY_PATH
20215  ;;
20216
20217bsdi[45]*)
20218  version_type=linux
20219  need_version=no
20220  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20221  soname_spec='${libname}${release}${shared_ext}$major'
20222  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20223  shlibpath_var=LD_LIBRARY_PATH
20224  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20225  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20226  # the default ld.so.conf also contains /usr/contrib/lib and
20227  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20228  # libtool to hard-code these into programs
20229  ;;
20230
20231cygwin* | mingw* | pw32*)
20232  version_type=windows
20233  shrext_cmds=".dll"
20234  need_version=no
20235  need_lib_prefix=no
20236
20237  case $GCC,$host_os in
20238  yes,cygwin* | yes,mingw* | yes,pw32*)
20239    library_names_spec='$libname.dll.a'
20240    # DLL is installed to $(libdir)/../bin by postinstall_cmds
20241    postinstall_cmds='base_file=`basename \${file}`~
20242      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20243      dldir=$destdir/`dirname \$dlpath`~
20244      test -d \$dldir || mkdir -p \$dldir~
20245      $install_prog $dir/$dlname \$dldir/$dlname~
20246      chmod a+x \$dldir/$dlname'
20247    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20248      dlpath=$dir/\$dldll~
20249       $rm \$dlpath'
20250    shlibpath_overrides_runpath=yes
20251
20252    case $host_os in
20253    cygwin*)
20254      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20255      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20256      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20257      ;;
20258    mingw*)
20259      # MinGW DLLs use traditional 'lib' prefix
20260      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20261      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20262      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20263        # It is most probably a Windows format PATH printed by
20264        # mingw gcc, but we are running on Cygwin. Gcc prints its search
20265        # path with ; separators, and with drive letters. We can handle the
20266        # drive letters (cygwin fileutils understands them), so leave them,
20267        # especially as we might pass files found there to a mingw objdump,
20268        # which wouldn't understand a cygwinified path. Ahh.
20269        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20270      else
20271        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20272      fi
20273      ;;
20274    pw32*)
20275      # pw32 DLLs use 'pw' prefix rather than 'lib'
20276      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20277      ;;
20278    esac
20279    ;;
20280
20281  *)
20282    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20283    ;;
20284  esac
20285  dynamic_linker='Win32 ld.exe'
20286  # FIXME: first we should search . and the directory the executable is in
20287  shlibpath_var=PATH
20288  ;;
20289
20290darwin* | rhapsody*)
20291  dynamic_linker="$host_os dyld"
20292  version_type=darwin
20293  need_lib_prefix=no
20294  need_version=no
20295  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20296  soname_spec='${libname}${release}${major}$shared_ext'
20297  shlibpath_overrides_runpath=yes
20298  shlibpath_var=DYLD_LIBRARY_PATH
20299  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20300  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20301  if test "$GCC" = yes; then
20302    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"`
20303  else
20304    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20305  fi
20306  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20307  ;;
20308
20309dgux*)
20310  version_type=linux
20311  need_lib_prefix=no
20312  need_version=no
20313  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20314  soname_spec='${libname}${release}${shared_ext}$major'
20315  shlibpath_var=LD_LIBRARY_PATH
20316  ;;
20317
20318freebsd1*)
20319  dynamic_linker=no
20320  ;;
20321
20322kfreebsd*-gnu)
20323  version_type=linux
20324  need_lib_prefix=no
20325  need_version=no
20326  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20327  soname_spec='${libname}${release}${shared_ext}$major'
20328  shlibpath_var=LD_LIBRARY_PATH
20329  shlibpath_overrides_runpath=no
20330  hardcode_into_libs=yes
20331  dynamic_linker='GNU ld.so'
20332  ;;
20333
20334freebsd* | dragonfly*)
20335  # DragonFly does not have aout.  When/if they implement a new
20336  # versioning mechanism, adjust this.
20337  if test -x /usr/bin/objformat; then
20338    objformat=`/usr/bin/objformat`
20339  else
20340    case $host_os in
20341    freebsd[123]*) objformat=aout ;;
20342    *) objformat=elf ;;
20343    esac
20344  fi
20345  version_type=freebsd-$objformat
20346  case $version_type in
20347    freebsd-elf*)
20348      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20349      need_version=no
20350      need_lib_prefix=no
20351      ;;
20352    freebsd-*)
20353      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20354      need_version=yes
20355      ;;
20356  esac
20357  shlibpath_var=LD_LIBRARY_PATH
20358  case $host_os in
20359  freebsd2*)
20360    shlibpath_overrides_runpath=yes
20361    ;;
20362  freebsd3.[01]* | freebsdelf3.[01]*)
20363    shlibpath_overrides_runpath=yes
20364    hardcode_into_libs=yes
20365    ;;
20366  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20367  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20368    shlibpath_overrides_runpath=no
20369    hardcode_into_libs=yes
20370    ;;
20371  freebsd*) # from 4.6 on
20372    shlibpath_overrides_runpath=yes
20373    hardcode_into_libs=yes
20374    ;;
20375  esac
20376  ;;
20377
20378gnu*)
20379  version_type=linux
20380  need_lib_prefix=no
20381  need_version=no
20382  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20383  soname_spec='${libname}${release}${shared_ext}$major'
20384  shlibpath_var=LD_LIBRARY_PATH
20385  hardcode_into_libs=yes
20386  ;;
20387
20388hpux9* | hpux10* | hpux11*)
20389  # Give a soname corresponding to the major version so that dld.sl refuses to
20390  # link against other versions.
20391  version_type=sunos
20392  need_lib_prefix=no
20393  need_version=no
20394  case $host_cpu in
20395  ia64*)
20396    shrext_cmds='.so'
20397    hardcode_into_libs=yes
20398    dynamic_linker="$host_os dld.so"
20399    shlibpath_var=LD_LIBRARY_PATH
20400    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20401    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20402    soname_spec='${libname}${release}${shared_ext}$major'
20403    if test "X$HPUX_IA64_MODE" = X32; then
20404      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20405    else
20406      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20407    fi
20408    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20409    ;;
20410   hppa*64*)
20411     shrext_cmds='.sl'
20412     hardcode_into_libs=yes
20413     dynamic_linker="$host_os dld.sl"
20414     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20415     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20416     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20417     soname_spec='${libname}${release}${shared_ext}$major'
20418     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20419     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20420     ;;
20421   *)
20422    shrext_cmds='.sl'
20423    dynamic_linker="$host_os dld.sl"
20424    shlibpath_var=SHLIB_PATH
20425    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20426    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20427    soname_spec='${libname}${release}${shared_ext}$major'
20428    ;;
20429  esac
20430  # HP-UX runs *really* slowly unless shared libraries are mode 555.
20431  postinstall_cmds='chmod 555 $lib'
20432  ;;
20433
20434interix3*)
20435  version_type=linux
20436  need_lib_prefix=no
20437  need_version=no
20438  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20439  soname_spec='${libname}${release}${shared_ext}$major'
20440  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20441  shlibpath_var=LD_LIBRARY_PATH
20442  shlibpath_overrides_runpath=no
20443  hardcode_into_libs=yes
20444  ;;
20445
20446irix5* | irix6* | nonstopux*)
20447  case $host_os in
20448    nonstopux*) version_type=nonstopux ;;
20449    *)
20450	if test "$lt_cv_prog_gnu_ld" = yes; then
20451		version_type=linux
20452	else
20453		version_type=irix
20454	fi ;;
20455  esac
20456  need_lib_prefix=no
20457  need_version=no
20458  soname_spec='${libname}${release}${shared_ext}$major'
20459  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20460  case $host_os in
20461  irix5* | nonstopux*)
20462    libsuff= shlibsuff=
20463    ;;
20464  *)
20465    case $LD in # libtool.m4 will add one of these switches to LD
20466    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20467      libsuff= shlibsuff= libmagic=32-bit;;
20468    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20469      libsuff=32 shlibsuff=N32 libmagic=N32;;
20470    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20471      libsuff=64 shlibsuff=64 libmagic=64-bit;;
20472    *) libsuff= shlibsuff= libmagic=never-match;;
20473    esac
20474    ;;
20475  esac
20476  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20477  shlibpath_overrides_runpath=no
20478  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20479  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20480  hardcode_into_libs=yes
20481  ;;
20482
20483# No shared lib support for Linux oldld, aout, or coff.
20484linux*oldld* | linux*aout* | linux*coff*)
20485  dynamic_linker=no
20486  ;;
20487
20488# This must be Linux ELF.
20489linux*)
20490  version_type=linux
20491  need_lib_prefix=no
20492  need_version=no
20493  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20494  soname_spec='${libname}${release}${shared_ext}$major'
20495  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20496  shlibpath_var=LD_LIBRARY_PATH
20497  shlibpath_overrides_runpath=no
20498  # This implies no fast_install, which is unacceptable.
20499  # Some rework will be needed to allow for fast_install
20500  # before this can be enabled.
20501  hardcode_into_libs=yes
20502
20503  # Append ld.so.conf contents to the search path
20504  if test -f /etc/ld.so.conf; then
20505    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' ' '`
20506    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20507  fi
20508
20509  # We used to test for /lib/ld.so.1 and disable shared libraries on
20510  # powerpc, because MkLinux only supported shared libraries with the
20511  # GNU dynamic linker.  Since this was broken with cross compilers,
20512  # most powerpc-linux boxes support dynamic linking these days and
20513  # people can always --disable-shared, the test was removed, and we
20514  # assume the GNU/Linux dynamic linker is in use.
20515  dynamic_linker='GNU/Linux ld.so'
20516  ;;
20517
20518knetbsd*-gnu)
20519  version_type=linux
20520  need_lib_prefix=no
20521  need_version=no
20522  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20523  soname_spec='${libname}${release}${shared_ext}$major'
20524  shlibpath_var=LD_LIBRARY_PATH
20525  shlibpath_overrides_runpath=no
20526  hardcode_into_libs=yes
20527  dynamic_linker='GNU ld.so'
20528  ;;
20529
20530netbsd*)
20531  version_type=sunos
20532  need_lib_prefix=no
20533  need_version=no
20534  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20535    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20536    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20537    dynamic_linker='NetBSD (a.out) ld.so'
20538  else
20539    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20540    soname_spec='${libname}${release}${shared_ext}$major'
20541    dynamic_linker='NetBSD ld.elf_so'
20542  fi
20543  shlibpath_var=LD_LIBRARY_PATH
20544  shlibpath_overrides_runpath=yes
20545  hardcode_into_libs=yes
20546  ;;
20547
20548newsos6)
20549  version_type=linux
20550  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20551  shlibpath_var=LD_LIBRARY_PATH
20552  shlibpath_overrides_runpath=yes
20553  ;;
20554
20555nto-qnx*)
20556  version_type=linux
20557  need_lib_prefix=no
20558  need_version=no
20559  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20560  soname_spec='${libname}${release}${shared_ext}$major'
20561  shlibpath_var=LD_LIBRARY_PATH
20562  shlibpath_overrides_runpath=yes
20563  ;;
20564
20565openbsd*)
20566  version_type=sunos
20567  sys_lib_dlsearch_path_spec="/usr/lib"
20568  need_lib_prefix=no
20569  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20570  case $host_os in
20571    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20572    *)                         need_version=no  ;;
20573  esac
20574  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20575  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20576  shlibpath_var=LD_LIBRARY_PATH
20577  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20578    case $host_os in
20579      openbsd2.[89] | openbsd2.[89].*)
20580	shlibpath_overrides_runpath=no
20581	;;
20582      *)
20583	shlibpath_overrides_runpath=yes
20584	;;
20585      esac
20586  else
20587    shlibpath_overrides_runpath=yes
20588  fi
20589  ;;
20590
20591os2*)
20592  libname_spec='$name'
20593  shrext_cmds=".dll"
20594  need_lib_prefix=no
20595  library_names_spec='$libname${shared_ext} $libname.a'
20596  dynamic_linker='OS/2 ld.exe'
20597  shlibpath_var=LIBPATH
20598  ;;
20599
20600osf3* | osf4* | osf5*)
20601  version_type=osf
20602  need_lib_prefix=no
20603  need_version=no
20604  soname_spec='${libname}${release}${shared_ext}$major'
20605  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20606  shlibpath_var=LD_LIBRARY_PATH
20607  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20608  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20609  ;;
20610
20611solaris*)
20612  version_type=linux
20613  need_lib_prefix=no
20614  need_version=no
20615  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20616  soname_spec='${libname}${release}${shared_ext}$major'
20617  shlibpath_var=LD_LIBRARY_PATH
20618  shlibpath_overrides_runpath=yes
20619  hardcode_into_libs=yes
20620  # ldd complains unless libraries are executable
20621  postinstall_cmds='chmod +x $lib'
20622  ;;
20623
20624sunos4*)
20625  version_type=sunos
20626  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20627  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20628  shlibpath_var=LD_LIBRARY_PATH
20629  shlibpath_overrides_runpath=yes
20630  if test "$with_gnu_ld" = yes; then
20631    need_lib_prefix=no
20632  fi
20633  need_version=yes
20634  ;;
20635
20636sysv4 | sysv4.3*)
20637  version_type=linux
20638  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20639  soname_spec='${libname}${release}${shared_ext}$major'
20640  shlibpath_var=LD_LIBRARY_PATH
20641  case $host_vendor in
20642    sni)
20643      shlibpath_overrides_runpath=no
20644      need_lib_prefix=no
20645      export_dynamic_flag_spec='${wl}-Blargedynsym'
20646      runpath_var=LD_RUN_PATH
20647      ;;
20648    siemens)
20649      need_lib_prefix=no
20650      ;;
20651    motorola)
20652      need_lib_prefix=no
20653      need_version=no
20654      shlibpath_overrides_runpath=no
20655      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20656      ;;
20657  esac
20658  ;;
20659
20660sysv4*MP*)
20661  if test -d /usr/nec ;then
20662    version_type=linux
20663    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20664    soname_spec='$libname${shared_ext}.$major'
20665    shlibpath_var=LD_LIBRARY_PATH
20666  fi
20667  ;;
20668
20669sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20670  version_type=freebsd-elf
20671  need_lib_prefix=no
20672  need_version=no
20673  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20674  soname_spec='${libname}${release}${shared_ext}$major'
20675  shlibpath_var=LD_LIBRARY_PATH
20676  hardcode_into_libs=yes
20677  if test "$with_gnu_ld" = yes; then
20678    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20679    shlibpath_overrides_runpath=no
20680  else
20681    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20682    shlibpath_overrides_runpath=yes
20683    case $host_os in
20684      sco3.2v5*)
20685        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20686	;;
20687    esac
20688  fi
20689  sys_lib_dlsearch_path_spec='/usr/lib'
20690  ;;
20691
20692uts4*)
20693  version_type=linux
20694  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20695  soname_spec='${libname}${release}${shared_ext}$major'
20696  shlibpath_var=LD_LIBRARY_PATH
20697  ;;
20698
20699*)
20700  dynamic_linker=no
20701  ;;
20702esac
20703echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20704echo "${ECHO_T}$dynamic_linker" >&6
20705test "$dynamic_linker" = no && can_build_shared=no
20706
20707variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20708if test "$GCC" = yes; then
20709  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20710fi
20711
20712echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20713echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20714hardcode_action_GCJ=
20715if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20716   test -n "$runpath_var_GCJ" || \
20717   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
20718
20719  # We can hardcode non-existant directories.
20720  if test "$hardcode_direct_GCJ" != no &&
20721     # If the only mechanism to avoid hardcoding is shlibpath_var, we
20722     # have to relink, otherwise we might link with an installed library
20723     # when we should be linking with a yet-to-be-installed one
20724     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20725     test "$hardcode_minus_L_GCJ" != no; then
20726    # Linking always hardcodes the temporary library directory.
20727    hardcode_action_GCJ=relink
20728  else
20729    # We can link without hardcoding, and we can hardcode nonexisting dirs.
20730    hardcode_action_GCJ=immediate
20731  fi
20732else
20733  # We cannot hardcode anything, or else we can only hardcode existing
20734  # directories.
20735  hardcode_action_GCJ=unsupported
20736fi
20737echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20738echo "${ECHO_T}$hardcode_action_GCJ" >&6
20739
20740if test "$hardcode_action_GCJ" = relink; then
20741  # Fast installation is not supported
20742  enable_fast_install=no
20743elif test "$shlibpath_overrides_runpath" = yes ||
20744     test "$enable_shared" = no; then
20745  # Fast installation is not necessary
20746  enable_fast_install=needless
20747fi
20748
20749
20750# The else clause should only fire when bootstrapping the
20751# libtool distribution, otherwise you forgot to ship ltmain.sh
20752# with your package, and you will get complaints that there are
20753# no rules to generate ltmain.sh.
20754if test -f "$ltmain"; then
20755  # See if we are running on zsh, and set the options which allow our commands through
20756  # without removal of \ escapes.
20757  if test -n "${ZSH_VERSION+set}" ; then
20758    setopt NO_GLOB_SUBST
20759  fi
20760  # Now quote all the things that may contain metacharacters while being
20761  # careful not to overquote the AC_SUBSTed values.  We take copies of the
20762  # variables and quote the copies for generation of the libtool script.
20763  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20764    SED SHELL STRIP \
20765    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20766    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20767    deplibs_check_method reload_flag reload_cmds need_locks \
20768    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20769    lt_cv_sys_global_symbol_to_c_name_address \
20770    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20771    old_postinstall_cmds old_postuninstall_cmds \
20772    compiler_GCJ \
20773    CC_GCJ \
20774    LD_GCJ \
20775    lt_prog_compiler_wl_GCJ \
20776    lt_prog_compiler_pic_GCJ \
20777    lt_prog_compiler_static_GCJ \
20778    lt_prog_compiler_no_builtin_flag_GCJ \
20779    export_dynamic_flag_spec_GCJ \
20780    thread_safe_flag_spec_GCJ \
20781    whole_archive_flag_spec_GCJ \
20782    enable_shared_with_static_runtimes_GCJ \
20783    old_archive_cmds_GCJ \
20784    old_archive_from_new_cmds_GCJ \
20785    predep_objects_GCJ \
20786    postdep_objects_GCJ \
20787    predeps_GCJ \
20788    postdeps_GCJ \
20789    compiler_lib_search_path_GCJ \
20790    archive_cmds_GCJ \
20791    archive_expsym_cmds_GCJ \
20792    postinstall_cmds_GCJ \
20793    postuninstall_cmds_GCJ \
20794    old_archive_from_expsyms_cmds_GCJ \
20795    allow_undefined_flag_GCJ \
20796    no_undefined_flag_GCJ \
20797    export_symbols_cmds_GCJ \
20798    hardcode_libdir_flag_spec_GCJ \
20799    hardcode_libdir_flag_spec_ld_GCJ \
20800    hardcode_libdir_separator_GCJ \
20801    hardcode_automatic_GCJ \
20802    module_cmds_GCJ \
20803    module_expsym_cmds_GCJ \
20804    lt_cv_prog_compiler_c_o_GCJ \
20805    exclude_expsyms_GCJ \
20806    include_expsyms_GCJ; do
20807
20808    case $var in
20809    old_archive_cmds_GCJ | \
20810    old_archive_from_new_cmds_GCJ | \
20811    archive_cmds_GCJ | \
20812    archive_expsym_cmds_GCJ | \
20813    module_cmds_GCJ | \
20814    module_expsym_cmds_GCJ | \
20815    old_archive_from_expsyms_cmds_GCJ | \
20816    export_symbols_cmds_GCJ | \
20817    extract_expsyms_cmds | reload_cmds | finish_cmds | \
20818    postinstall_cmds | postuninstall_cmds | \
20819    old_postinstall_cmds | old_postuninstall_cmds | \
20820    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20821      # Double-quote double-evaled strings.
20822      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20823      ;;
20824    *)
20825      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20826      ;;
20827    esac
20828  done
20829
20830  case $lt_echo in
20831  *'\$0 --fallback-echo"')
20832    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20833    ;;
20834  esac
20835
20836cfgfile="$ofile"
20837
20838  cat <<__EOF__ >> "$cfgfile"
20839# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20840
20841# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20842
20843# Shell to use when invoking shell scripts.
20844SHELL=$lt_SHELL
20845
20846# Whether or not to build shared libraries.
20847build_libtool_libs=$enable_shared
20848
20849# Whether or not to build static libraries.
20850build_old_libs=$enable_static
20851
20852# Whether or not to add -lc for building shared libraries.
20853build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20854
20855# Whether or not to disallow shared libs when runtime libs are static
20856allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20857
20858# Whether or not to optimize for fast installation.
20859fast_install=$enable_fast_install
20860
20861# The host system.
20862host_alias=$host_alias
20863host=$host
20864host_os=$host_os
20865
20866# The build system.
20867build_alias=$build_alias
20868build=$build
20869build_os=$build_os
20870
20871# An echo program that does not interpret backslashes.
20872echo=$lt_echo
20873
20874# The archiver.
20875AR=$lt_AR
20876AR_FLAGS=$lt_AR_FLAGS
20877
20878# A C compiler.
20879LTCC=$lt_LTCC
20880
20881# LTCC compiler flags.
20882LTCFLAGS=$lt_LTCFLAGS
20883
20884# A language-specific compiler.
20885CC=$lt_compiler_GCJ
20886
20887# Is the compiler the GNU C compiler?
20888with_gcc=$GCC_GCJ
20889
20890# An ERE matcher.
20891EGREP=$lt_EGREP
20892
20893# The linker used to build libraries.
20894LD=$lt_LD_GCJ
20895
20896# Whether we need hard or soft links.
20897LN_S=$lt_LN_S
20898
20899# A BSD-compatible nm program.
20900NM=$lt_NM
20901
20902# A symbol stripping program
20903STRIP=$lt_STRIP
20904
20905# Used to examine libraries when file_magic_cmd begins "file"
20906MAGIC_CMD=$MAGIC_CMD
20907
20908# Used on cygwin: DLL creation program.
20909DLLTOOL="$DLLTOOL"
20910
20911# Used on cygwin: object dumper.
20912OBJDUMP="$OBJDUMP"
20913
20914# Used on cygwin: assembler.
20915AS="$AS"
20916
20917# The name of the directory that contains temporary libtool files.
20918objdir=$objdir
20919
20920# How to create reloadable object files.
20921reload_flag=$lt_reload_flag
20922reload_cmds=$lt_reload_cmds
20923
20924# How to pass a linker flag through the compiler.
20925wl=$lt_lt_prog_compiler_wl_GCJ
20926
20927# Object file suffix (normally "o").
20928objext="$ac_objext"
20929
20930# Old archive suffix (normally "a").
20931libext="$libext"
20932
20933# Shared library suffix (normally ".so").
20934shrext_cmds='$shrext_cmds'
20935
20936# Executable file suffix (normally "").
20937exeext="$exeext"
20938
20939# Additional compiler flags for building library objects.
20940pic_flag=$lt_lt_prog_compiler_pic_GCJ
20941pic_mode=$pic_mode
20942
20943# What is the maximum length of a command?
20944max_cmd_len=$lt_cv_sys_max_cmd_len
20945
20946# Does compiler simultaneously support -c and -o options?
20947compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20948
20949# Must we lock files when doing compilation?
20950need_locks=$lt_need_locks
20951
20952# Do we need the lib prefix for modules?
20953need_lib_prefix=$need_lib_prefix
20954
20955# Do we need a version for libraries?
20956need_version=$need_version
20957
20958# Whether dlopen is supported.
20959dlopen_support=$enable_dlopen
20960
20961# Whether dlopen of programs is supported.
20962dlopen_self=$enable_dlopen_self
20963
20964# Whether dlopen of statically linked programs is supported.
20965dlopen_self_static=$enable_dlopen_self_static
20966
20967# Compiler flag to prevent dynamic linking.
20968link_static_flag=$lt_lt_prog_compiler_static_GCJ
20969
20970# Compiler flag to turn off builtin functions.
20971no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20972
20973# Compiler flag to allow reflexive dlopens.
20974export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20975
20976# Compiler flag to generate shared objects directly from archives.
20977whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20978
20979# Compiler flag to generate thread-safe objects.
20980thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20981
20982# Library versioning type.
20983version_type=$version_type
20984
20985# Format of library name prefix.
20986libname_spec=$lt_libname_spec
20987
20988# List of archive names.  First name is the real one, the rest are links.
20989# The last name is the one that the linker finds with -lNAME.
20990library_names_spec=$lt_library_names_spec
20991
20992# The coded name of the library, if different from the real name.
20993soname_spec=$lt_soname_spec
20994
20995# Commands used to build and install an old-style archive.
20996RANLIB=$lt_RANLIB
20997old_archive_cmds=$lt_old_archive_cmds_GCJ
20998old_postinstall_cmds=$lt_old_postinstall_cmds
20999old_postuninstall_cmds=$lt_old_postuninstall_cmds
21000
21001# Create an old-style archive from a shared archive.
21002old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
21003
21004# Create a temporary old-style archive to link instead of a shared archive.
21005old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
21006
21007# Commands used to build and install a shared archive.
21008archive_cmds=$lt_archive_cmds_GCJ
21009archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
21010postinstall_cmds=$lt_postinstall_cmds
21011postuninstall_cmds=$lt_postuninstall_cmds
21012
21013# Commands used to build a loadable module (assumed same as above if empty)
21014module_cmds=$lt_module_cmds_GCJ
21015module_expsym_cmds=$lt_module_expsym_cmds_GCJ
21016
21017# Commands to strip libraries.
21018old_striplib=$lt_old_striplib
21019striplib=$lt_striplib
21020
21021# Dependencies to place before the objects being linked to create a
21022# shared library.
21023predep_objects=$lt_predep_objects_GCJ
21024
21025# Dependencies to place after the objects being linked to create a
21026# shared library.
21027postdep_objects=$lt_postdep_objects_GCJ
21028
21029# Dependencies to place before the objects being linked to create a
21030# shared library.
21031predeps=$lt_predeps_GCJ
21032
21033# Dependencies to place after the objects being linked to create a
21034# shared library.
21035postdeps=$lt_postdeps_GCJ
21036
21037# The library search path used internally by the compiler when linking
21038# a shared library.
21039compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
21040
21041# Method to check whether dependent libraries are shared objects.
21042deplibs_check_method=$lt_deplibs_check_method
21043
21044# Command to use when deplibs_check_method == file_magic.
21045file_magic_cmd=$lt_file_magic_cmd
21046
21047# Flag that allows shared libraries with undefined symbols to be built.
21048allow_undefined_flag=$lt_allow_undefined_flag_GCJ
21049
21050# Flag that forces no undefined symbols.
21051no_undefined_flag=$lt_no_undefined_flag_GCJ
21052
21053# Commands used to finish a libtool library installation in a directory.
21054finish_cmds=$lt_finish_cmds
21055
21056# Same as above, but a single script fragment to be evaled but not shown.
21057finish_eval=$lt_finish_eval
21058
21059# Take the output of nm and produce a listing of raw symbols and C names.
21060global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21061
21062# Transform the output of nm in a proper C declaration
21063global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21064
21065# Transform the output of nm in a C name address pair
21066global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21067
21068# This is the shared library runtime path variable.
21069runpath_var=$runpath_var
21070
21071# This is the shared library path variable.
21072shlibpath_var=$shlibpath_var
21073
21074# Is shlibpath searched before the hard-coded library search path?
21075shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21076
21077# How to hardcode a shared library path into an executable.
21078hardcode_action=$hardcode_action_GCJ
21079
21080# Whether we should hardcode library paths into libraries.
21081hardcode_into_libs=$hardcode_into_libs
21082
21083# Flag to hardcode \$libdir into a binary during linking.
21084# This must work even if \$libdir does not exist.
21085hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
21086
21087# If ld is used when linking, flag to hardcode \$libdir into
21088# a binary during linking. This must work even if \$libdir does
21089# not exist.
21090hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
21091
21092# Whether we need a single -rpath flag with a separated argument.
21093hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
21094
21095# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21096# resulting binary.
21097hardcode_direct=$hardcode_direct_GCJ
21098
21099# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21100# resulting binary.
21101hardcode_minus_L=$hardcode_minus_L_GCJ
21102
21103# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21104# the resulting binary.
21105hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
21106
21107# Set to yes if building a shared library automatically hardcodes DIR into the library
21108# and all subsequent libraries and executables linked against it.
21109hardcode_automatic=$hardcode_automatic_GCJ
21110
21111# Variables whose values should be saved in libtool wrapper scripts and
21112# restored at relink time.
21113variables_saved_for_relink="$variables_saved_for_relink"
21114
21115# Whether libtool must link a program against all its dependency libraries.
21116link_all_deplibs=$link_all_deplibs_GCJ
21117
21118# Compile-time system search path for libraries
21119sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21120
21121# Run-time system search path for libraries
21122sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21123
21124# Fix the shell variable \$srcfile for the compiler.
21125fix_srcfile_path="$fix_srcfile_path_GCJ"
21126
21127# Set to yes if exported symbols are required.
21128always_export_symbols=$always_export_symbols_GCJ
21129
21130# The commands to list exported symbols.
21131export_symbols_cmds=$lt_export_symbols_cmds_GCJ
21132
21133# The commands to extract the exported symbol list from a shared archive.
21134extract_expsyms_cmds=$lt_extract_expsyms_cmds
21135
21136# Symbols that should not be listed in the preloaded symbols.
21137exclude_expsyms=$lt_exclude_expsyms_GCJ
21138
21139# Symbols that must always be exported.
21140include_expsyms=$lt_include_expsyms_GCJ
21141
21142# ### END LIBTOOL TAG CONFIG: $tagname
21143
21144__EOF__
21145
21146
21147else
21148  # If there is no Makefile yet, we rely on a make rule to execute
21149  # `config.status --recheck' to rerun these tests and create the
21150  # libtool script then.
21151  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21152  if test -f "$ltmain_in"; then
21153    test -f Makefile && make "$ltmain"
21154  fi
21155fi
21156
21157
21158ac_ext=c
21159ac_cpp='$CPP $CPPFLAGS'
21160ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21161ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21162ac_compiler_gnu=$ac_cv_c_compiler_gnu
21163
21164CC="$lt_save_CC"
21165
21166	else
21167	  tagname=""
21168	fi
21169	;;
21170
21171      RC)
21172
21173
21174
21175# Source file extension for RC test sources.
21176ac_ext=rc
21177
21178# Object file extension for compiled RC test sources.
21179objext=o
21180objext_RC=$objext
21181
21182# Code to be used in simple compile tests
21183lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
21184
21185# Code to be used in simple link tests
21186lt_simple_link_test_code="$lt_simple_compile_test_code"
21187
21188# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21189
21190# If no C compiler was specified, use CC.
21191LTCC=${LTCC-"$CC"}
21192
21193# If no C compiler flags were specified, use CFLAGS.
21194LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21195
21196# Allow CC to be a program name with arguments.
21197compiler=$CC
21198
21199
21200# save warnings/boilerplate of simple test code
21201ac_outfile=conftest.$ac_objext
21202printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21203eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21204_lt_compiler_boilerplate=`cat conftest.err`
21205$rm conftest*
21206
21207ac_outfile=conftest.$ac_objext
21208printf "$lt_simple_link_test_code" >conftest.$ac_ext
21209eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21210_lt_linker_boilerplate=`cat conftest.err`
21211$rm conftest*
21212
21213
21214# Allow CC to be a program name with arguments.
21215lt_save_CC="$CC"
21216CC=${RC-"windres"}
21217compiler=$CC
21218compiler_RC=$CC
21219for cc_temp in $compiler""; do
21220  case $cc_temp in
21221    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21222    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21223    \-*) ;;
21224    *) break;;
21225  esac
21226done
21227cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21228
21229lt_cv_prog_compiler_c_o_RC=yes
21230
21231# The else clause should only fire when bootstrapping the
21232# libtool distribution, otherwise you forgot to ship ltmain.sh
21233# with your package, and you will get complaints that there are
21234# no rules to generate ltmain.sh.
21235if test -f "$ltmain"; then
21236  # See if we are running on zsh, and set the options which allow our commands through
21237  # without removal of \ escapes.
21238  if test -n "${ZSH_VERSION+set}" ; then
21239    setopt NO_GLOB_SUBST
21240  fi
21241  # Now quote all the things that may contain metacharacters while being
21242  # careful not to overquote the AC_SUBSTed values.  We take copies of the
21243  # variables and quote the copies for generation of the libtool script.
21244  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
21245    SED SHELL STRIP \
21246    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21247    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21248    deplibs_check_method reload_flag reload_cmds need_locks \
21249    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21250    lt_cv_sys_global_symbol_to_c_name_address \
21251    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21252    old_postinstall_cmds old_postuninstall_cmds \
21253    compiler_RC \
21254    CC_RC \
21255    LD_RC \
21256    lt_prog_compiler_wl_RC \
21257    lt_prog_compiler_pic_RC \
21258    lt_prog_compiler_static_RC \
21259    lt_prog_compiler_no_builtin_flag_RC \
21260    export_dynamic_flag_spec_RC \
21261    thread_safe_flag_spec_RC \
21262    whole_archive_flag_spec_RC \
21263    enable_shared_with_static_runtimes_RC \
21264    old_archive_cmds_RC \
21265    old_archive_from_new_cmds_RC \
21266    predep_objects_RC \
21267    postdep_objects_RC \
21268    predeps_RC \
21269    postdeps_RC \
21270    compiler_lib_search_path_RC \
21271    archive_cmds_RC \
21272    archive_expsym_cmds_RC \
21273    postinstall_cmds_RC \
21274    postuninstall_cmds_RC \
21275    old_archive_from_expsyms_cmds_RC \
21276    allow_undefined_flag_RC \
21277    no_undefined_flag_RC \
21278    export_symbols_cmds_RC \
21279    hardcode_libdir_flag_spec_RC \
21280    hardcode_libdir_flag_spec_ld_RC \
21281    hardcode_libdir_separator_RC \
21282    hardcode_automatic_RC \
21283    module_cmds_RC \
21284    module_expsym_cmds_RC \
21285    lt_cv_prog_compiler_c_o_RC \
21286    exclude_expsyms_RC \
21287    include_expsyms_RC; do
21288
21289    case $var in
21290    old_archive_cmds_RC | \
21291    old_archive_from_new_cmds_RC | \
21292    archive_cmds_RC | \
21293    archive_expsym_cmds_RC | \
21294    module_cmds_RC | \
21295    module_expsym_cmds_RC | \
21296    old_archive_from_expsyms_cmds_RC | \
21297    export_symbols_cmds_RC | \
21298    extract_expsyms_cmds | reload_cmds | finish_cmds | \
21299    postinstall_cmds | postuninstall_cmds | \
21300    old_postinstall_cmds | old_postuninstall_cmds | \
21301    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21302      # Double-quote double-evaled strings.
21303      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21304      ;;
21305    *)
21306      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21307      ;;
21308    esac
21309  done
21310
21311  case $lt_echo in
21312  *'\$0 --fallback-echo"')
21313    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21314    ;;
21315  esac
21316
21317cfgfile="$ofile"
21318
21319  cat <<__EOF__ >> "$cfgfile"
21320# ### BEGIN LIBTOOL TAG CONFIG: $tagname
21321
21322# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21323
21324# Shell to use when invoking shell scripts.
21325SHELL=$lt_SHELL
21326
21327# Whether or not to build shared libraries.
21328build_libtool_libs=$enable_shared
21329
21330# Whether or not to build static libraries.
21331build_old_libs=$enable_static
21332
21333# Whether or not to add -lc for building shared libraries.
21334build_libtool_need_lc=$archive_cmds_need_lc_RC
21335
21336# Whether or not to disallow shared libs when runtime libs are static
21337allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
21338
21339# Whether or not to optimize for fast installation.
21340fast_install=$enable_fast_install
21341
21342# The host system.
21343host_alias=$host_alias
21344host=$host
21345host_os=$host_os
21346
21347# The build system.
21348build_alias=$build_alias
21349build=$build
21350build_os=$build_os
21351
21352# An echo program that does not interpret backslashes.
21353echo=$lt_echo
21354
21355# The archiver.
21356AR=$lt_AR
21357AR_FLAGS=$lt_AR_FLAGS
21358
21359# A C compiler.
21360LTCC=$lt_LTCC
21361
21362# LTCC compiler flags.
21363LTCFLAGS=$lt_LTCFLAGS
21364
21365# A language-specific compiler.
21366CC=$lt_compiler_RC
21367
21368# Is the compiler the GNU C compiler?
21369with_gcc=$GCC_RC
21370
21371# An ERE matcher.
21372EGREP=$lt_EGREP
21373
21374# The linker used to build libraries.
21375LD=$lt_LD_RC
21376
21377# Whether we need hard or soft links.
21378LN_S=$lt_LN_S
21379
21380# A BSD-compatible nm program.
21381NM=$lt_NM
21382
21383# A symbol stripping program
21384STRIP=$lt_STRIP
21385
21386# Used to examine libraries when file_magic_cmd begins "file"
21387MAGIC_CMD=$MAGIC_CMD
21388
21389# Used on cygwin: DLL creation program.
21390DLLTOOL="$DLLTOOL"
21391
21392# Used on cygwin: object dumper.
21393OBJDUMP="$OBJDUMP"
21394
21395# Used on cygwin: assembler.
21396AS="$AS"
21397
21398# The name of the directory that contains temporary libtool files.
21399objdir=$objdir
21400
21401# How to create reloadable object files.
21402reload_flag=$lt_reload_flag
21403reload_cmds=$lt_reload_cmds
21404
21405# How to pass a linker flag through the compiler.
21406wl=$lt_lt_prog_compiler_wl_RC
21407
21408# Object file suffix (normally "o").
21409objext="$ac_objext"
21410
21411# Old archive suffix (normally "a").
21412libext="$libext"
21413
21414# Shared library suffix (normally ".so").
21415shrext_cmds='$shrext_cmds'
21416
21417# Executable file suffix (normally "").
21418exeext="$exeext"
21419
21420# Additional compiler flags for building library objects.
21421pic_flag=$lt_lt_prog_compiler_pic_RC
21422pic_mode=$pic_mode
21423
21424# What is the maximum length of a command?
21425max_cmd_len=$lt_cv_sys_max_cmd_len
21426
21427# Does compiler simultaneously support -c and -o options?
21428compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
21429
21430# Must we lock files when doing compilation?
21431need_locks=$lt_need_locks
21432
21433# Do we need the lib prefix for modules?
21434need_lib_prefix=$need_lib_prefix
21435
21436# Do we need a version for libraries?
21437need_version=$need_version
21438
21439# Whether dlopen is supported.
21440dlopen_support=$enable_dlopen
21441
21442# Whether dlopen of programs is supported.
21443dlopen_self=$enable_dlopen_self
21444
21445# Whether dlopen of statically linked programs is supported.
21446dlopen_self_static=$enable_dlopen_self_static
21447
21448# Compiler flag to prevent dynamic linking.
21449link_static_flag=$lt_lt_prog_compiler_static_RC
21450
21451# Compiler flag to turn off builtin functions.
21452no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
21453
21454# Compiler flag to allow reflexive dlopens.
21455export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
21456
21457# Compiler flag to generate shared objects directly from archives.
21458whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
21459
21460# Compiler flag to generate thread-safe objects.
21461thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
21462
21463# Library versioning type.
21464version_type=$version_type
21465
21466# Format of library name prefix.
21467libname_spec=$lt_libname_spec
21468
21469# List of archive names.  First name is the real one, the rest are links.
21470# The last name is the one that the linker finds with -lNAME.
21471library_names_spec=$lt_library_names_spec
21472
21473# The coded name of the library, if different from the real name.
21474soname_spec=$lt_soname_spec
21475
21476# Commands used to build and install an old-style archive.
21477RANLIB=$lt_RANLIB
21478old_archive_cmds=$lt_old_archive_cmds_RC
21479old_postinstall_cmds=$lt_old_postinstall_cmds
21480old_postuninstall_cmds=$lt_old_postuninstall_cmds
21481
21482# Create an old-style archive from a shared archive.
21483old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
21484
21485# Create a temporary old-style archive to link instead of a shared archive.
21486old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
21487
21488# Commands used to build and install a shared archive.
21489archive_cmds=$lt_archive_cmds_RC
21490archive_expsym_cmds=$lt_archive_expsym_cmds_RC
21491postinstall_cmds=$lt_postinstall_cmds
21492postuninstall_cmds=$lt_postuninstall_cmds
21493
21494# Commands used to build a loadable module (assumed same as above if empty)
21495module_cmds=$lt_module_cmds_RC
21496module_expsym_cmds=$lt_module_expsym_cmds_RC
21497
21498# Commands to strip libraries.
21499old_striplib=$lt_old_striplib
21500striplib=$lt_striplib
21501
21502# Dependencies to place before the objects being linked to create a
21503# shared library.
21504predep_objects=$lt_predep_objects_RC
21505
21506# Dependencies to place after the objects being linked to create a
21507# shared library.
21508postdep_objects=$lt_postdep_objects_RC
21509
21510# Dependencies to place before the objects being linked to create a
21511# shared library.
21512predeps=$lt_predeps_RC
21513
21514# Dependencies to place after the objects being linked to create a
21515# shared library.
21516postdeps=$lt_postdeps_RC
21517
21518# The library search path used internally by the compiler when linking
21519# a shared library.
21520compiler_lib_search_path=$lt_compiler_lib_search_path_RC
21521
21522# Method to check whether dependent libraries are shared objects.
21523deplibs_check_method=$lt_deplibs_check_method
21524
21525# Command to use when deplibs_check_method == file_magic.
21526file_magic_cmd=$lt_file_magic_cmd
21527
21528# Flag that allows shared libraries with undefined symbols to be built.
21529allow_undefined_flag=$lt_allow_undefined_flag_RC
21530
21531# Flag that forces no undefined symbols.
21532no_undefined_flag=$lt_no_undefined_flag_RC
21533
21534# Commands used to finish a libtool library installation in a directory.
21535finish_cmds=$lt_finish_cmds
21536
21537# Same as above, but a single script fragment to be evaled but not shown.
21538finish_eval=$lt_finish_eval
21539
21540# Take the output of nm and produce a listing of raw symbols and C names.
21541global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21542
21543# Transform the output of nm in a proper C declaration
21544global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21545
21546# Transform the output of nm in a C name address pair
21547global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21548
21549# This is the shared library runtime path variable.
21550runpath_var=$runpath_var
21551
21552# This is the shared library path variable.
21553shlibpath_var=$shlibpath_var
21554
21555# Is shlibpath searched before the hard-coded library search path?
21556shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21557
21558# How to hardcode a shared library path into an executable.
21559hardcode_action=$hardcode_action_RC
21560
21561# Whether we should hardcode library paths into libraries.
21562hardcode_into_libs=$hardcode_into_libs
21563
21564# Flag to hardcode \$libdir into a binary during linking.
21565# This must work even if \$libdir does not exist.
21566hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
21567
21568# If ld is used when linking, flag to hardcode \$libdir into
21569# a binary during linking. This must work even if \$libdir does
21570# not exist.
21571hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
21572
21573# Whether we need a single -rpath flag with a separated argument.
21574hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
21575
21576# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21577# resulting binary.
21578hardcode_direct=$hardcode_direct_RC
21579
21580# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21581# resulting binary.
21582hardcode_minus_L=$hardcode_minus_L_RC
21583
21584# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21585# the resulting binary.
21586hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
21587
21588# Set to yes if building a shared library automatically hardcodes DIR into the library
21589# and all subsequent libraries and executables linked against it.
21590hardcode_automatic=$hardcode_automatic_RC
21591
21592# Variables whose values should be saved in libtool wrapper scripts and
21593# restored at relink time.
21594variables_saved_for_relink="$variables_saved_for_relink"
21595
21596# Whether libtool must link a program against all its dependency libraries.
21597link_all_deplibs=$link_all_deplibs_RC
21598
21599# Compile-time system search path for libraries
21600sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21601
21602# Run-time system search path for libraries
21603sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21604
21605# Fix the shell variable \$srcfile for the compiler.
21606fix_srcfile_path="$fix_srcfile_path_RC"
21607
21608# Set to yes if exported symbols are required.
21609always_export_symbols=$always_export_symbols_RC
21610
21611# The commands to list exported symbols.
21612export_symbols_cmds=$lt_export_symbols_cmds_RC
21613
21614# The commands to extract the exported symbol list from a shared archive.
21615extract_expsyms_cmds=$lt_extract_expsyms_cmds
21616
21617# Symbols that should not be listed in the preloaded symbols.
21618exclude_expsyms=$lt_exclude_expsyms_RC
21619
21620# Symbols that must always be exported.
21621include_expsyms=$lt_include_expsyms_RC
21622
21623# ### END LIBTOOL TAG CONFIG: $tagname
21624
21625__EOF__
21626
21627
21628else
21629  # If there is no Makefile yet, we rely on a make rule to execute
21630  # `config.status --recheck' to rerun these tests and create the
21631  # libtool script then.
21632  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21633  if test -f "$ltmain_in"; then
21634    test -f Makefile && make "$ltmain"
21635  fi
21636fi
21637
21638
21639ac_ext=c
21640ac_cpp='$CPP $CPPFLAGS'
21641ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21642ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21643ac_compiler_gnu=$ac_cv_c_compiler_gnu
21644
21645CC="$lt_save_CC"
21646
21647	;;
21648
21649      *)
21650	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21651echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21652   { (exit 1); exit 1; }; }
21653	;;
21654      esac
21655
21656      # Append the new tag name to the list of available tags.
21657      if test -n "$tagname" ; then
21658      available_tags="$available_tags $tagname"
21659    fi
21660    fi
21661  done
21662  IFS="$lt_save_ifs"
21663
21664  # Now substitute the updated list of available tags.
21665  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21666    mv "${ofile}T" "$ofile"
21667    chmod +x "$ofile"
21668  else
21669    rm -f "${ofile}T"
21670    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21671echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21672   { (exit 1); exit 1; }; }
21673  fi
21674fi
21675
21676
21677
21678# This can be used to rebuild libtool when needed
21679LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21680
21681# Always use our own libtool.
21682LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21683
21684# Prevent multiple expansion
21685
21686
21687
21688
21689
21690
21691
21692
21693
21694
21695
21696# No longer needed now that CPPFLAGS is correctly set -- lh, 061214 --
21697 # AC_REQUIRE([AC_COIN_DLFCN_H])
21698
21699# NEW: If libtool exists in the directory higher up, we use that one
21700#      instead of creating a new one
21701
21702# It turns out that the code for AC_PROG_LIBTOOL is somehow AC_REQUIRED
21703# out in front of this macro body. You'll notice that LIBTOOL is already
21704# defined here.  We'll have to count on this macro not being called if libtool
21705# already exists, or at least move the libtool fixes outside the conditional.
21706# AC_MSG_NOTICE([Entering coin_prog_libtool, LIBTOOL = "$LIBTOOL".])
21707# This test is therefore removed.  -- lh, 061214 --
21708# if test "x$LIBTOOL" = x; then
21709
21710# AC_MSG_NOTICE([Calling PROG_LIBTOOL.])
21711
21712
21713
21714
21715
21716
21717
21718
21719
21720# AC_MSG_NOTICE([Finished PROG_LIBTOOL.])
21721
21722
21723
21724  { echo "$as_me:$LINENO: Build is \"$build\"." >&5
21725echo "$as_me: Build is \"$build\"." >&6;}
21726  # Extract the first word of "dos2unix", so it can be a program name with args.
21727set dummy dos2unix; ac_word=$2
21728echo "$as_me:$LINENO: checking for $ac_word" >&5
21729echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21730if test "${ac_cv_prog_dos2unix+set}" = set; then
21731  echo $ECHO_N "(cached) $ECHO_C" >&6
21732else
21733  if test -n "$dos2unix"; then
21734  ac_cv_prog_dos2unix="$dos2unix" # Let the user override the test.
21735else
21736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21737for as_dir in $PATH
21738do
21739  IFS=$as_save_IFS
21740  test -z "$as_dir" && as_dir=.
21741  for ac_exec_ext in '' $ac_executable_extensions; do
21742  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21743    ac_cv_prog_dos2unix="dos2unix"
21744    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21745    break 2
21746  fi
21747done
21748done
21749
21750fi
21751fi
21752dos2unix=$ac_cv_prog_dos2unix
21753if test -n "$dos2unix"; then
21754  echo "$as_me:$LINENO: result: $dos2unix" >&5
21755echo "${ECHO_T}$dos2unix" >&6
21756else
21757  echo "$as_me:$LINENO: result: no" >&5
21758echo "${ECHO_T}no" >&6
21759fi
21760
21761  if test "$dos2unix" = dos2unix ; then
21762    mydos2unix="| dos2unix"
21763  fi
21764  case $build in
21765    *-mingw*)
21766      CYGPATH_W=echo
21767      ;;
21768  esac
21769
21770  case $build in
21771    # Here we need to check if -m32 is specified.  If so, we need to correct
21772    # sys_lib_search_path_spec
21773    *-cygwin* | *-mingw*)
21774       case "$CXX" in
21775    clang* )
21776      # we assume that libtool patches for CLANG are the same as for GNU compiler - correct???
21777      { echo "$as_me:$LINENO: Applying patches to libtool for CLANG compiler" >&5
21778echo "$as_me: Applying patches to libtool for CLANG compiler" >&6;}
21779      sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
21780	  -e 's|"lib /OUT:\\$oldlib\\$oldobjs\\$old_deplibs"|"\\$AR \\$AR_FLAGS \\$oldlib\\$oldobjs\\$old_deplibs~\\$RANLIB \\$oldlib"|' \
21781	  -e 's|libext="lib"|libext="a"|' \
21782      libtool > conftest.bla
21783      ;;
21784    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
21785      { echo "$as_me:$LINENO: Applying patches to libtool for cl compiler" >&5
21786echo "$as_me: Applying patches to libtool for cl compiler" >&6;}
21787      sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
21788	  -e 's|fix_srcfile_path=\"\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
21789	  -e 's%compile_deplibs=\"\$dir/\$old_library \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$old_library | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \
21790	  -e 's%compile_deplibs=\"\$dir/\$linklib \$compile_deplibs\"%compile_deplibs="'\`"$CYGPATH_W"' \$dir/\$linklib | sed -e '"'"'sY\\\\\\\\Y/Yg'"'"\`' \$compile_deplibs\"'% \
21791	  -e 's%lib /OUT:%lib -OUT:%' \
21792	  -e "s%cygpath -w%$CYGPATH_W%" \
21793	  -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%' \
21794	  -e 's%$AR t "$f_ex_an_ar_oldlib"%lib -nologo -list \$('"$CYGPATH_W \$1"') '"$mydos2unix"'%' \
21795	  -e 's%f_ex_an_ar_oldlib="\($?*1*\)"%f_ex_an_ar_oldlib='\`"$CYGPATH_W"' \1`%' \
21796	  -e 's%^archive_cmds=.*%archive_cmds="\\$CC -o \\$lib \\$libobjs \\$compiler_flags \\\\\\`echo \\\\\\"\\$deplibs\\\\\\" | \\$SED -e '"\'"'s/ -lc\\$//'"\'"'\\\\\\` -link -dll~linknames="%' \
21797	  -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"%' \
21798      libtool > conftest.bla
21799      ;;
21800    *)
21801      { echo "$as_me:$LINENO: Applying patches to libtool for GNU compiler" >&5
21802echo "$as_me: Applying patches to libtool for GNU compiler" >&6;}
21803      sed -e 's|fix_srcfile_path=\"`cygpath -w \"\$srcfile\"`\"|fix_srcfile_path=\"\\\`'"$CYGPATH_W"' \\\"\\$srcfile\\\"\\\`\"|' \
21804	  -e 's|"lib /OUT:\\$oldlib\\$oldobjs\\$old_deplibs"|"\\$AR \\$AR_FLAGS \\$oldlib\\$oldobjs\\$old_deplibs~\\$RANLIB \\$oldlib"|' \
21805	  -e 's|libext="lib"|libext="a"|' \
21806      libtool > conftest.bla
21807      ;;
21808  esac
21809  mv conftest.bla libtool
21810  chmod 755 libtool
21811
21812      ;;
21813    *x86_64-*)
21814      if test "$GCC" = yes && (echo $CXXFLAGS $CFLAGS $FFLAGS | $EGREP 'm32' >& /dev/null); then
21815        { echo "$as_me:$LINENO: Applying patches to libtool for 32bit compilation" >&5
21816echo "$as_me: Applying patches to libtool for 32bit compilation" >&6;}
21817        sed -e 's|sys_lib_search_path_spec=".*"|sys_lib_search_path_spec="/lib /usr/lib"|' libtool > conftest.bla
21818        mv conftest.bla libtool
21819        chmod 755 libtool
21820      fi
21821      ;;
21822
21823    *-solaris*)
21824       if test "$GCC" = yes && \
21825     (echo $CXXFLAGS $CFLAGS $FFLAGS | $EGREP 'm64' >/dev/null 2>&1) ; then
21826    hdwisa=`isainfo | sed -e 's/\([^ ]*\) .*$/\1/'`
21827    if `$EGREP 'sys_lib_search_path_spec=' libtool | $EGREP -v $hdwisa >/dev/null 2>&1` ; then
21828      { echo "$as_me:$LINENO: Applying patches to libtool for 64-bit GCC compilation" >&5
21829echo "$as_me: Applying patches to libtool for 64-bit GCC compilation" >&6;}
21830      fixlibtmp=`$CC -m64 -print-search-dirs | $EGREP '^libraries:'`
21831      fixlibtmp=`echo $fixlibtmp | sed -e 's/libraries: =//' -e 's/:/ /g'`
21832      if `echo "$fixlibtmp" | $EGREP -v $hdwisa  >/dev/null 2>&1` ; then
21833	# AC_MSG_NOTICE(Compensating for broken gcc)
21834	for lib in $fixlibtmp ; do
21835	  if test -d "${lib}${hdwisa}" ; then
21836	    syslibpath64="$syslibpath64 ${lib}${hdwisa}/"
21837	  fi
21838	done
21839	syslibpath64="${syslibpath64} ${fixlibtmp}"
21840      else
21841	syslibpath64="$fixlibtmp"
21842      fi
21843      sed -e 's|sys_lib_search_path_spec=".*"|sys_lib_search_path_spec="'"$syslibpath64"'"|' libtool > conftest.bla
21844      mv conftest.bla libtool
21845      chmod 755 libtool
21846    fi
21847    # AC_MSG_NOTICE(Result is )
21848    # $EGREP 'sys_lib_search_path_spec=' libtool
21849  fi
21850      ;;
21851    # Cygwin. Ah, cygwin. Too big and ugly to inline; see the macro.
21852    *-darwin*)
21853      { echo "$as_me:$LINENO: Applying patches to libtool for Darwin" >&5
21854echo "$as_me: Applying patches to libtool for Darwin" >&6;}
21855      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"/' \
21856        -e 's/ -dynamiclib / -dynamiclib -single_module /g' \
21857      libtool > conftest.bla
21858
21859      mv conftest.bla libtool
21860      chmod 755 libtool
21861      ;;
21862  esac
21863# This fi matches the commented `if test "x$LIBTOOL" = x;' up at the head of
21864# the macro. -- lh, 061214 --
21865# fi
21866
21867# AC_MSG_NOTICE([End libtool initialisation.])
21868
21869# AC_MSG_NOTICE([Finished COIN_PROG_LIBTOOL.])
21870  # set RPATH_FLAGS to the compiler link flags required to hardcode location
21871  # of the shared objects
21872  RPATH_FLAGS=
21873
21874if test $enable_shared = yes; then
21875  case $build in
21876    *-linux-*)
21877      if test "$GXX" = "yes"; then
21878        RPATH_FLAGS=
21879        for dir in $abs_lib_dir; do
21880          RPATH_FLAGS="$RPATH_FLAGS -Wl,--rpath -Wl,$dir"
21881        done
21882      fi ;;
21883    *-darwin*)
21884        RPATH_FLAGS=nothing ;;
21885    *-ibm-*)
21886      case "$CXX" in
21887      xlC* | */xlC* | mpxlC* | */mpxlC*)
21888        RPATH_FLAGS=nothing ;;
21889      esac ;;
21890    *-hp-*)
21891        RPATH_FLAGS=nothing ;;
21892    *-mingw32)
21893        RPATH_FLAGS=nothing ;;
21894    *-*-solaris*)
21895        RPATH_FLAGS=
21896        for dir in $abs_lib_dir; do
21897          RPATH_FLAGS="$RPATH_FLAGS -R$dir"
21898        done
21899  esac
21900
21901  if test "$RPATH_FLAGS" = ""; then
21902    { 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
21903echo "$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;}
21904  fi
21905  if test "$RPATH_FLAGS" = "nothing"; then
21906    RPATH_FLAGS=
21907  fi
21908fi
21909
21910
21911
21912
21913else
21914
21915  { echo "$as_me:$LINENO: Using libtool script in directory $coin_config_dir" >&5
21916echo "$as_me: Using libtool script in directory $coin_config_dir" >&6;}
21917  # get all missing information from the config.log file
21918
21919  # output variables and defines
21920  as_save_IFS=$IFS
21921  IFS='
21922'
21923  for oneline in `cat $coin_config_dir/config.status`; do
21924    case "$oneline" in
21925         # First some automake conditionals
21926      s,@am__fastdep* | s,@AR@* | s,@CPP@*  | s,@CPPFLAGS@* | s,@CXXCPP@*  | \
21927      s,@RANLIB@* | s,@STRIP@* | s,@ac_ct_AR@* | s,@ac_ct_RANLIB@* | \
21928      s,@ac_ct_STRIP@* | s,@host* | s,@LN_S@* | s,@RPATH_FLAGS@* | \
21929      s,@ac_c_preproc_warn_flag@* |  s,@ac_cxx_preproc_warn_flag@* )
21930        command=`echo $oneline | sed -e 's/^s,@//' -e 's/@,/="/' -e 's/,;t t/"/'`
21931#        echo "$command"
21932        eval "$command"
21933        ;;
21934      s,@DEFS@* )
21935        command=`echo $oneline | sed -e 's/^s,@DEFS@,/defsline="/' -e 's/,;t t/"/'`
21936#        echo "$command"
21937        eval "$command"
21938        ;;
21939    esac
21940  done
21941  IFS=$as_save_IFS
21942
21943  # And some defines (assuming here that the packages base dir
21944  # doesn't have a config.h file
21945  for word in $defsline; do
21946#    echo word $word
21947    case $word in
21948      -DHAVE_[A-Z_]*_H=1 | -DSTDC_HEADERS=1 )
21949        i=`echo $word | sed -e 's/-D/#define /' -e 's/=/ /'`
21950#        echo dd $i
21951        echo $i >>confdefs.h
21952        ;;
21953    esac
21954  done
21955fi
21956
21957# AC_MSG_NOTICE([End of INIT_AUTO_TOOLS.])
21958
21959# Check whether --enable-dependency-linking or --disable-dependency-linking was given.
21960if test "${enable_dependency_linking+set}" = set; then
21961  enableval="$enable_dependency_linking"
21962  dependency_linking="$enableval"
21963else
21964  dependency_linking=auto
21965fi;
21966
21967if test "$dependency_linking" = auto; then
21968  # On Cygwin and AIX, building DLLs doesn't work
21969  dependency_linking=no
21970  if test x"$coin_disable_shared" = xno; then
21971    case $build in
21972      *-cygwin* | *-mingw*)
21973        case "$CC" in
21974          clang* )
21975            dependency_linking=yes
21976            ;;
21977          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
21978            dependency_linking=no
21979            ;;
21980          *gcc*)
21981            dependency_linking=yes
21982            ;;
21983          *)
21984            dependency_linking=yes
21985            ;;
21986        esac
21987        ;;
21988      *)
21989        dependency_linking=yes
21990        ;;
21991    esac
21992  fi
21993fi
21994
21995if test "$dependency_linking" = yes ;
21996then
21997  LT_LDFLAGS="-no-undefined"
21998else
21999  LT_LDFLAGS=
22000fi
22001
22002
22003
22004if test "$dependency_linking" = yes; then
22005  DEPENDENCY_LINKING_TRUE=
22006  DEPENDENCY_LINKING_FALSE='#'
22007else
22008  DEPENDENCY_LINKING_TRUE='#'
22009  DEPENDENCY_LINKING_FALSE=
22010fi
22011
22012
22013# Check if we want to set the library version
22014echo "$as_me:$LINENO: checking if library version is set" >&5
22015echo $ECHO_N "checking if library version is set... $ECHO_C" >&6
22016if test x"$coin_libversion" != x; then
22017  LT_LDFLAGS="$LT_LDFLAGS -version-info $coin_libversion"
22018  echo "$as_me:$LINENO: result: $coin_libversion" >&5
22019echo "${ECHO_T}$coin_libversion" >&6
22020else
22021  echo "$as_me:$LINENO: result: no" >&5
22022echo "${ECHO_T}no" >&6
22023fi
22024
22025
22026
22027#END
22028}
22029
22030############################################################################
22031#                   Stuff that we need for finite and isnan                #
22032############################################################################
22033
22034
22035
22036
22037ac_ext=cc
22038ac_cpp='$CXXCPP $CPPFLAGS'
22039ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22040ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22041ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22042
22043
22044ac_ext=cc
22045ac_cpp='$CXXCPP $CPPFLAGS'
22046ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22047ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22048ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22049
22050#if test x"" = x; then
22051#  hdr="#include <cmath>"
22052#else
22053#  hdr=""
22054#fi
22055#AC_CHECK_HEADERS([cmath],[],[],[$hdr])
22056
22057for ac_header in cmath
22058do
22059as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22060if eval "test \"\${$as_ac_Header+set}\" = set"; then
22061  echo "$as_me:$LINENO: checking for $ac_header" >&5
22062echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22063if eval "test \"\${$as_ac_Header+set}\" = set"; then
22064  echo $ECHO_N "(cached) $ECHO_C" >&6
22065fi
22066echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22067echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22068else
22069  # Is the header compilable?
22070echo "$as_me:$LINENO: checking $ac_header usability" >&5
22071echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22072cat >conftest.$ac_ext <<_ACEOF
22073/* confdefs.h.  */
22074_ACEOF
22075cat confdefs.h >>conftest.$ac_ext
22076cat >>conftest.$ac_ext <<_ACEOF
22077/* end confdefs.h.  */
22078$ac_includes_default
22079#include <$ac_header>
22080_ACEOF
22081rm -f conftest.$ac_objext
22082if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22083  (eval $ac_compile) 2>conftest.er1
22084  ac_status=$?
22085  grep -v '^ *+' conftest.er1 >conftest.err
22086  rm -f conftest.er1
22087  cat conftest.err >&5
22088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22089  (exit $ac_status); } &&
22090	 { ac_try='test -z "$ac_cxx_werror_flag"
22091			 || test ! -s conftest.err'
22092  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22093  (eval $ac_try) 2>&5
22094  ac_status=$?
22095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22096  (exit $ac_status); }; } &&
22097	 { ac_try='test -s conftest.$ac_objext'
22098  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22099  (eval $ac_try) 2>&5
22100  ac_status=$?
22101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22102  (exit $ac_status); }; }; then
22103  ac_header_compiler=yes
22104else
22105  echo "$as_me: failed program was:" >&5
22106sed 's/^/| /' conftest.$ac_ext >&5
22107
22108ac_header_compiler=no
22109fi
22110rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22111echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22112echo "${ECHO_T}$ac_header_compiler" >&6
22113
22114# Is the header present?
22115echo "$as_me:$LINENO: checking $ac_header presence" >&5
22116echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22117cat >conftest.$ac_ext <<_ACEOF
22118/* confdefs.h.  */
22119_ACEOF
22120cat confdefs.h >>conftest.$ac_ext
22121cat >>conftest.$ac_ext <<_ACEOF
22122/* end confdefs.h.  */
22123#include <$ac_header>
22124_ACEOF
22125if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22126  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22127  ac_status=$?
22128  grep -v '^ *+' conftest.er1 >conftest.err
22129  rm -f conftest.er1
22130  cat conftest.err >&5
22131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22132  (exit $ac_status); } >/dev/null; then
22133  if test -s conftest.err; then
22134    ac_cpp_err=$ac_cxx_preproc_warn_flag
22135    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
22136  else
22137    ac_cpp_err=
22138  fi
22139else
22140  ac_cpp_err=yes
22141fi
22142if test -z "$ac_cpp_err"; then
22143  ac_header_preproc=yes
22144else
22145  echo "$as_me: failed program was:" >&5
22146sed 's/^/| /' conftest.$ac_ext >&5
22147
22148  ac_header_preproc=no
22149fi
22150rm -f conftest.err conftest.$ac_ext
22151echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22152echo "${ECHO_T}$ac_header_preproc" >&6
22153
22154# So?  What about this header?
22155case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22156  yes:no: )
22157    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22158echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22159    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22160echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22161    ac_header_preproc=yes
22162    ;;
22163  no:yes:* )
22164    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22165echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22166    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22167echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22168    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22169echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22170    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22171echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22172    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22173echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22174    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22175echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22176    (
22177      cat <<\_ASBOX
22178## ---------------------------------------------------- ##
22179## Report this to http://projects.coin-or.org/CoinUtils ##
22180## ---------------------------------------------------- ##
22181_ASBOX
22182    ) |
22183      sed "s/^/$as_me: WARNING:     /" >&2
22184    ;;
22185esac
22186echo "$as_me:$LINENO: checking for $ac_header" >&5
22187echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22188if eval "test \"\${$as_ac_Header+set}\" = set"; then
22189  echo $ECHO_N "(cached) $ECHO_C" >&6
22190else
22191  eval "$as_ac_Header=\$ac_header_preproc"
22192fi
22193echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22194echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22195
22196fi
22197if test `eval echo '${'$as_ac_Header'}'` = yes; then
22198  cat >>confdefs.h <<_ACEOF
22199#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22200_ACEOF
22201
22202fi
22203
22204done
22205
22206
22207if test "$ac_cv_header_cmath" != "yes"; then
22208  #if test x"" = x; then
22209#  hdr="#include <math.h>"
22210#else
22211#  hdr=""
22212#fi
22213#AC_CHECK_HEADERS([math.h],[],[],[$hdr])
22214
22215for ac_header in math.h
22216do
22217as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22218if eval "test \"\${$as_ac_Header+set}\" = set"; then
22219  echo "$as_me:$LINENO: checking for $ac_header" >&5
22220echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22221if eval "test \"\${$as_ac_Header+set}\" = set"; then
22222  echo $ECHO_N "(cached) $ECHO_C" >&6
22223fi
22224echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22225echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22226else
22227  # Is the header compilable?
22228echo "$as_me:$LINENO: checking $ac_header usability" >&5
22229echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22230cat >conftest.$ac_ext <<_ACEOF
22231/* confdefs.h.  */
22232_ACEOF
22233cat confdefs.h >>conftest.$ac_ext
22234cat >>conftest.$ac_ext <<_ACEOF
22235/* end confdefs.h.  */
22236$ac_includes_default
22237#include <$ac_header>
22238_ACEOF
22239rm -f conftest.$ac_objext
22240if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22241  (eval $ac_compile) 2>conftest.er1
22242  ac_status=$?
22243  grep -v '^ *+' conftest.er1 >conftest.err
22244  rm -f conftest.er1
22245  cat conftest.err >&5
22246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22247  (exit $ac_status); } &&
22248	 { ac_try='test -z "$ac_cxx_werror_flag"
22249			 || test ! -s conftest.err'
22250  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22251  (eval $ac_try) 2>&5
22252  ac_status=$?
22253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22254  (exit $ac_status); }; } &&
22255	 { ac_try='test -s conftest.$ac_objext'
22256  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22257  (eval $ac_try) 2>&5
22258  ac_status=$?
22259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22260  (exit $ac_status); }; }; then
22261  ac_header_compiler=yes
22262else
22263  echo "$as_me: failed program was:" >&5
22264sed 's/^/| /' conftest.$ac_ext >&5
22265
22266ac_header_compiler=no
22267fi
22268rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22269echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22270echo "${ECHO_T}$ac_header_compiler" >&6
22271
22272# Is the header present?
22273echo "$as_me:$LINENO: checking $ac_header presence" >&5
22274echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22275cat >conftest.$ac_ext <<_ACEOF
22276/* confdefs.h.  */
22277_ACEOF
22278cat confdefs.h >>conftest.$ac_ext
22279cat >>conftest.$ac_ext <<_ACEOF
22280/* end confdefs.h.  */
22281#include <$ac_header>
22282_ACEOF
22283if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22284  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22285  ac_status=$?
22286  grep -v '^ *+' conftest.er1 >conftest.err
22287  rm -f conftest.er1
22288  cat conftest.err >&5
22289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22290  (exit $ac_status); } >/dev/null; then
22291  if test -s conftest.err; then
22292    ac_cpp_err=$ac_cxx_preproc_warn_flag
22293    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
22294  else
22295    ac_cpp_err=
22296  fi
22297else
22298  ac_cpp_err=yes
22299fi
22300if test -z "$ac_cpp_err"; then
22301  ac_header_preproc=yes
22302else
22303  echo "$as_me: failed program was:" >&5
22304sed 's/^/| /' conftest.$ac_ext >&5
22305
22306  ac_header_preproc=no
22307fi
22308rm -f conftest.err conftest.$ac_ext
22309echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22310echo "${ECHO_T}$ac_header_preproc" >&6
22311
22312# So?  What about this header?
22313case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22314  yes:no: )
22315    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22316echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22317    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22318echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22319    ac_header_preproc=yes
22320    ;;
22321  no:yes:* )
22322    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22323echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22324    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22325echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22326    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22327echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22328    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22329echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22330    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22331echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22332    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22333echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22334    (
22335      cat <<\_ASBOX
22336## ---------------------------------------------------- ##
22337## Report this to http://projects.coin-or.org/CoinUtils ##
22338## ---------------------------------------------------- ##
22339_ASBOX
22340    ) |
22341      sed "s/^/$as_me: WARNING:     /" >&2
22342    ;;
22343esac
22344echo "$as_me:$LINENO: checking for $ac_header" >&5
22345echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22346if eval "test \"\${$as_ac_Header+set}\" = set"; then
22347  echo $ECHO_N "(cached) $ECHO_C" >&6
22348else
22349  eval "$as_ac_Header=\$ac_header_preproc"
22350fi
22351echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22352echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22353
22354fi
22355if test `eval echo '${'$as_ac_Header'}'` = yes; then
22356  cat >>confdefs.h <<_ACEOF
22357#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22358_ACEOF
22359
22360fi
22361
22362done
22363
22364
22365fi
22366ac_ext=cc
22367ac_cpp='$CXXCPP $CPPFLAGS'
22368ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22369ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22370ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22371
22372
22373ac_ext=cc
22374ac_cpp='$CXXCPP $CPPFLAGS'
22375ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22376ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22377ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22378
22379#if test x"" = x; then
22380#  hdr="#include <cfloat>"
22381#else
22382#  hdr=""
22383#fi
22384#AC_CHECK_HEADERS([cfloat],[],[],[$hdr])
22385
22386for ac_header in cfloat
22387do
22388as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22389if eval "test \"\${$as_ac_Header+set}\" = set"; then
22390  echo "$as_me:$LINENO: checking for $ac_header" >&5
22391echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22392if eval "test \"\${$as_ac_Header+set}\" = set"; then
22393  echo $ECHO_N "(cached) $ECHO_C" >&6
22394fi
22395echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22396echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22397else
22398  # Is the header compilable?
22399echo "$as_me:$LINENO: checking $ac_header usability" >&5
22400echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22401cat >conftest.$ac_ext <<_ACEOF
22402/* confdefs.h.  */
22403_ACEOF
22404cat confdefs.h >>conftest.$ac_ext
22405cat >>conftest.$ac_ext <<_ACEOF
22406/* end confdefs.h.  */
22407$ac_includes_default
22408#include <$ac_header>
22409_ACEOF
22410rm -f conftest.$ac_objext
22411if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22412  (eval $ac_compile) 2>conftest.er1
22413  ac_status=$?
22414  grep -v '^ *+' conftest.er1 >conftest.err
22415  rm -f conftest.er1
22416  cat conftest.err >&5
22417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22418  (exit $ac_status); } &&
22419	 { ac_try='test -z "$ac_cxx_werror_flag"
22420			 || test ! -s conftest.err'
22421  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22422  (eval $ac_try) 2>&5
22423  ac_status=$?
22424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22425  (exit $ac_status); }; } &&
22426	 { ac_try='test -s conftest.$ac_objext'
22427  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22428  (eval $ac_try) 2>&5
22429  ac_status=$?
22430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22431  (exit $ac_status); }; }; then
22432  ac_header_compiler=yes
22433else
22434  echo "$as_me: failed program was:" >&5
22435sed 's/^/| /' conftest.$ac_ext >&5
22436
22437ac_header_compiler=no
22438fi
22439rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22440echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22441echo "${ECHO_T}$ac_header_compiler" >&6
22442
22443# Is the header present?
22444echo "$as_me:$LINENO: checking $ac_header presence" >&5
22445echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22446cat >conftest.$ac_ext <<_ACEOF
22447/* confdefs.h.  */
22448_ACEOF
22449cat confdefs.h >>conftest.$ac_ext
22450cat >>conftest.$ac_ext <<_ACEOF
22451/* end confdefs.h.  */
22452#include <$ac_header>
22453_ACEOF
22454if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22455  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22456  ac_status=$?
22457  grep -v '^ *+' conftest.er1 >conftest.err
22458  rm -f conftest.er1
22459  cat conftest.err >&5
22460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22461  (exit $ac_status); } >/dev/null; then
22462  if test -s conftest.err; then
22463    ac_cpp_err=$ac_cxx_preproc_warn_flag
22464    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
22465  else
22466    ac_cpp_err=
22467  fi
22468else
22469  ac_cpp_err=yes
22470fi
22471if test -z "$ac_cpp_err"; then
22472  ac_header_preproc=yes
22473else
22474  echo "$as_me: failed program was:" >&5
22475sed 's/^/| /' conftest.$ac_ext >&5
22476
22477  ac_header_preproc=no
22478fi
22479rm -f conftest.err conftest.$ac_ext
22480echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22481echo "${ECHO_T}$ac_header_preproc" >&6
22482
22483# So?  What about this header?
22484case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22485  yes:no: )
22486    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22487echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22488    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22489echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22490    ac_header_preproc=yes
22491    ;;
22492  no:yes:* )
22493    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22494echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22495    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22496echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22497    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22498echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22499    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22500echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22501    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22502echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22503    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22504echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22505    (
22506      cat <<\_ASBOX
22507## ---------------------------------------------------- ##
22508## Report this to http://projects.coin-or.org/CoinUtils ##
22509## ---------------------------------------------------- ##
22510_ASBOX
22511    ) |
22512      sed "s/^/$as_me: WARNING:     /" >&2
22513    ;;
22514esac
22515echo "$as_me:$LINENO: checking for $ac_header" >&5
22516echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22517if eval "test \"\${$as_ac_Header+set}\" = set"; then
22518  echo $ECHO_N "(cached) $ECHO_C" >&6
22519else
22520  eval "$as_ac_Header=\$ac_header_preproc"
22521fi
22522echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22523echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22524
22525fi
22526if test `eval echo '${'$as_ac_Header'}'` = yes; then
22527  cat >>confdefs.h <<_ACEOF
22528#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22529_ACEOF
22530
22531fi
22532
22533done
22534
22535
22536if test "$ac_cv_header_cfloat" != "yes"; then
22537  #if test x"" = x; then
22538#  hdr="#include <float.h>"
22539#else
22540#  hdr=""
22541#fi
22542#AC_CHECK_HEADERS([float.h],[],[],[$hdr])
22543
22544for ac_header in float.h
22545do
22546as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22547if eval "test \"\${$as_ac_Header+set}\" = set"; then
22548  echo "$as_me:$LINENO: checking for $ac_header" >&5
22549echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22550if eval "test \"\${$as_ac_Header+set}\" = set"; then
22551  echo $ECHO_N "(cached) $ECHO_C" >&6
22552fi
22553echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22554echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22555else
22556  # Is the header compilable?
22557echo "$as_me:$LINENO: checking $ac_header usability" >&5
22558echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22559cat >conftest.$ac_ext <<_ACEOF
22560/* confdefs.h.  */
22561_ACEOF
22562cat confdefs.h >>conftest.$ac_ext
22563cat >>conftest.$ac_ext <<_ACEOF
22564/* end confdefs.h.  */
22565$ac_includes_default
22566#include <$ac_header>
22567_ACEOF
22568rm -f conftest.$ac_objext
22569if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22570  (eval $ac_compile) 2>conftest.er1
22571  ac_status=$?
22572  grep -v '^ *+' conftest.er1 >conftest.err
22573  rm -f conftest.er1
22574  cat conftest.err >&5
22575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22576  (exit $ac_status); } &&
22577	 { ac_try='test -z "$ac_cxx_werror_flag"
22578			 || test ! -s conftest.err'
22579  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22580  (eval $ac_try) 2>&5
22581  ac_status=$?
22582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22583  (exit $ac_status); }; } &&
22584	 { ac_try='test -s conftest.$ac_objext'
22585  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22586  (eval $ac_try) 2>&5
22587  ac_status=$?
22588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22589  (exit $ac_status); }; }; then
22590  ac_header_compiler=yes
22591else
22592  echo "$as_me: failed program was:" >&5
22593sed 's/^/| /' conftest.$ac_ext >&5
22594
22595ac_header_compiler=no
22596fi
22597rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22598echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22599echo "${ECHO_T}$ac_header_compiler" >&6
22600
22601# Is the header present?
22602echo "$as_me:$LINENO: checking $ac_header presence" >&5
22603echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22604cat >conftest.$ac_ext <<_ACEOF
22605/* confdefs.h.  */
22606_ACEOF
22607cat confdefs.h >>conftest.$ac_ext
22608cat >>conftest.$ac_ext <<_ACEOF
22609/* end confdefs.h.  */
22610#include <$ac_header>
22611_ACEOF
22612if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22613  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22614  ac_status=$?
22615  grep -v '^ *+' conftest.er1 >conftest.err
22616  rm -f conftest.er1
22617  cat conftest.err >&5
22618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22619  (exit $ac_status); } >/dev/null; then
22620  if test -s conftest.err; then
22621    ac_cpp_err=$ac_cxx_preproc_warn_flag
22622    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
22623  else
22624    ac_cpp_err=
22625  fi
22626else
22627  ac_cpp_err=yes
22628fi
22629if test -z "$ac_cpp_err"; then
22630  ac_header_preproc=yes
22631else
22632  echo "$as_me: failed program was:" >&5
22633sed 's/^/| /' conftest.$ac_ext >&5
22634
22635  ac_header_preproc=no
22636fi
22637rm -f conftest.err conftest.$ac_ext
22638echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22639echo "${ECHO_T}$ac_header_preproc" >&6
22640
22641# So?  What about this header?
22642case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22643  yes:no: )
22644    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22645echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22646    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22647echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22648    ac_header_preproc=yes
22649    ;;
22650  no:yes:* )
22651    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22652echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22653    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22654echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22655    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22656echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22657    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22658echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22659    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22660echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22661    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22662echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22663    (
22664      cat <<\_ASBOX
22665## ---------------------------------------------------- ##
22666## Report this to http://projects.coin-or.org/CoinUtils ##
22667## ---------------------------------------------------- ##
22668_ASBOX
22669    ) |
22670      sed "s/^/$as_me: WARNING:     /" >&2
22671    ;;
22672esac
22673echo "$as_me:$LINENO: checking for $ac_header" >&5
22674echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22675if eval "test \"\${$as_ac_Header+set}\" = set"; then
22676  echo $ECHO_N "(cached) $ECHO_C" >&6
22677else
22678  eval "$as_ac_Header=\$ac_header_preproc"
22679fi
22680echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22681echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22682
22683fi
22684if test `eval echo '${'$as_ac_Header'}'` = yes; then
22685  cat >>confdefs.h <<_ACEOF
22686#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22687_ACEOF
22688
22689fi
22690
22691done
22692
22693
22694fi
22695ac_ext=cc
22696ac_cpp='$CXXCPP $CPPFLAGS'
22697ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22698ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22699ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22700
22701
22702ac_ext=cc
22703ac_cpp='$CXXCPP $CPPFLAGS'
22704ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22705ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22706ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22707
22708#if test x"" = x; then
22709#  hdr="#include <cieeefp>"
22710#else
22711#  hdr=""
22712#fi
22713#AC_CHECK_HEADERS([cieeefp],[],[],[$hdr])
22714
22715for ac_header in cieeefp
22716do
22717as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22718if eval "test \"\${$as_ac_Header+set}\" = set"; then
22719  echo "$as_me:$LINENO: checking for $ac_header" >&5
22720echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22721if eval "test \"\${$as_ac_Header+set}\" = set"; then
22722  echo $ECHO_N "(cached) $ECHO_C" >&6
22723fi
22724echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22725echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22726else
22727  # Is the header compilable?
22728echo "$as_me:$LINENO: checking $ac_header usability" >&5
22729echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22730cat >conftest.$ac_ext <<_ACEOF
22731/* confdefs.h.  */
22732_ACEOF
22733cat confdefs.h >>conftest.$ac_ext
22734cat >>conftest.$ac_ext <<_ACEOF
22735/* end confdefs.h.  */
22736$ac_includes_default
22737#include <$ac_header>
22738_ACEOF
22739rm -f conftest.$ac_objext
22740if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22741  (eval $ac_compile) 2>conftest.er1
22742  ac_status=$?
22743  grep -v '^ *+' conftest.er1 >conftest.err
22744  rm -f conftest.er1
22745  cat conftest.err >&5
22746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22747  (exit $ac_status); } &&
22748	 { ac_try='test -z "$ac_cxx_werror_flag"
22749			 || test ! -s conftest.err'
22750  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22751  (eval $ac_try) 2>&5
22752  ac_status=$?
22753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22754  (exit $ac_status); }; } &&
22755	 { ac_try='test -s conftest.$ac_objext'
22756  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22757  (eval $ac_try) 2>&5
22758  ac_status=$?
22759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22760  (exit $ac_status); }; }; then
22761  ac_header_compiler=yes
22762else
22763  echo "$as_me: failed program was:" >&5
22764sed 's/^/| /' conftest.$ac_ext >&5
22765
22766ac_header_compiler=no
22767fi
22768rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22769echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22770echo "${ECHO_T}$ac_header_compiler" >&6
22771
22772# Is the header present?
22773echo "$as_me:$LINENO: checking $ac_header presence" >&5
22774echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22775cat >conftest.$ac_ext <<_ACEOF
22776/* confdefs.h.  */
22777_ACEOF
22778cat confdefs.h >>conftest.$ac_ext
22779cat >>conftest.$ac_ext <<_ACEOF
22780/* end confdefs.h.  */
22781#include <$ac_header>
22782_ACEOF
22783if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22784  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22785  ac_status=$?
22786  grep -v '^ *+' conftest.er1 >conftest.err
22787  rm -f conftest.er1
22788  cat conftest.err >&5
22789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22790  (exit $ac_status); } >/dev/null; then
22791  if test -s conftest.err; then
22792    ac_cpp_err=$ac_cxx_preproc_warn_flag
22793    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
22794  else
22795    ac_cpp_err=
22796  fi
22797else
22798  ac_cpp_err=yes
22799fi
22800if test -z "$ac_cpp_err"; then
22801  ac_header_preproc=yes
22802else
22803  echo "$as_me: failed program was:" >&5
22804sed 's/^/| /' conftest.$ac_ext >&5
22805
22806  ac_header_preproc=no
22807fi
22808rm -f conftest.err conftest.$ac_ext
22809echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22810echo "${ECHO_T}$ac_header_preproc" >&6
22811
22812# So?  What about this header?
22813case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22814  yes:no: )
22815    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22816echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22817    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22818echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22819    ac_header_preproc=yes
22820    ;;
22821  no:yes:* )
22822    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22823echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22824    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22825echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22826    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22827echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22828    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22829echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22830    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22831echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22832    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22833echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22834    (
22835      cat <<\_ASBOX
22836## ---------------------------------------------------- ##
22837## Report this to http://projects.coin-or.org/CoinUtils ##
22838## ---------------------------------------------------- ##
22839_ASBOX
22840    ) |
22841      sed "s/^/$as_me: WARNING:     /" >&2
22842    ;;
22843esac
22844echo "$as_me:$LINENO: checking for $ac_header" >&5
22845echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22846if eval "test \"\${$as_ac_Header+set}\" = set"; then
22847  echo $ECHO_N "(cached) $ECHO_C" >&6
22848else
22849  eval "$as_ac_Header=\$ac_header_preproc"
22850fi
22851echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22852echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22853
22854fi
22855if test `eval echo '${'$as_ac_Header'}'` = yes; then
22856  cat >>confdefs.h <<_ACEOF
22857#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22858_ACEOF
22859
22860fi
22861
22862done
22863
22864
22865if test "$ac_cv_header_cieeefp" != "yes"; then
22866  #if test x"" = x; then
22867#  hdr="#include <ieeefp.h>"
22868#else
22869#  hdr=""
22870#fi
22871#AC_CHECK_HEADERS([ieeefp.h],[],[],[$hdr])
22872
22873for ac_header in ieeefp.h
22874do
22875as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22876if eval "test \"\${$as_ac_Header+set}\" = set"; then
22877  echo "$as_me:$LINENO: checking for $ac_header" >&5
22878echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22879if eval "test \"\${$as_ac_Header+set}\" = set"; then
22880  echo $ECHO_N "(cached) $ECHO_C" >&6
22881fi
22882echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22883echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22884else
22885  # Is the header compilable?
22886echo "$as_me:$LINENO: checking $ac_header usability" >&5
22887echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22888cat >conftest.$ac_ext <<_ACEOF
22889/* confdefs.h.  */
22890_ACEOF
22891cat confdefs.h >>conftest.$ac_ext
22892cat >>conftest.$ac_ext <<_ACEOF
22893/* end confdefs.h.  */
22894$ac_includes_default
22895#include <$ac_header>
22896_ACEOF
22897rm -f conftest.$ac_objext
22898if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22899  (eval $ac_compile) 2>conftest.er1
22900  ac_status=$?
22901  grep -v '^ *+' conftest.er1 >conftest.err
22902  rm -f conftest.er1
22903  cat conftest.err >&5
22904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22905  (exit $ac_status); } &&
22906	 { ac_try='test -z "$ac_cxx_werror_flag"
22907			 || test ! -s conftest.err'
22908  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22909  (eval $ac_try) 2>&5
22910  ac_status=$?
22911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22912  (exit $ac_status); }; } &&
22913	 { ac_try='test -s conftest.$ac_objext'
22914  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22915  (eval $ac_try) 2>&5
22916  ac_status=$?
22917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22918  (exit $ac_status); }; }; then
22919  ac_header_compiler=yes
22920else
22921  echo "$as_me: failed program was:" >&5
22922sed 's/^/| /' conftest.$ac_ext >&5
22923
22924ac_header_compiler=no
22925fi
22926rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22927echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22928echo "${ECHO_T}$ac_header_compiler" >&6
22929
22930# Is the header present?
22931echo "$as_me:$LINENO: checking $ac_header presence" >&5
22932echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22933cat >conftest.$ac_ext <<_ACEOF
22934/* confdefs.h.  */
22935_ACEOF
22936cat confdefs.h >>conftest.$ac_ext
22937cat >>conftest.$ac_ext <<_ACEOF
22938/* end confdefs.h.  */
22939#include <$ac_header>
22940_ACEOF
22941if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22942  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22943  ac_status=$?
22944  grep -v '^ *+' conftest.er1 >conftest.err
22945  rm -f conftest.er1
22946  cat conftest.err >&5
22947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22948  (exit $ac_status); } >/dev/null; then
22949  if test -s conftest.err; then
22950    ac_cpp_err=$ac_cxx_preproc_warn_flag
22951    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
22952  else
22953    ac_cpp_err=
22954  fi
22955else
22956  ac_cpp_err=yes
22957fi
22958if test -z "$ac_cpp_err"; then
22959  ac_header_preproc=yes
22960else
22961  echo "$as_me: failed program was:" >&5
22962sed 's/^/| /' conftest.$ac_ext >&5
22963
22964  ac_header_preproc=no
22965fi
22966rm -f conftest.err conftest.$ac_ext
22967echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22968echo "${ECHO_T}$ac_header_preproc" >&6
22969
22970# So?  What about this header?
22971case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22972  yes:no: )
22973    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22974echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22975    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22976echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22977    ac_header_preproc=yes
22978    ;;
22979  no:yes:* )
22980    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22981echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22982    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22983echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22984    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22985echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22986    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22987echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22988    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22989echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22990    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22991echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22992    (
22993      cat <<\_ASBOX
22994## ---------------------------------------------------- ##
22995## Report this to http://projects.coin-or.org/CoinUtils ##
22996## ---------------------------------------------------- ##
22997_ASBOX
22998    ) |
22999      sed "s/^/$as_me: WARNING:     /" >&2
23000    ;;
23001esac
23002echo "$as_me:$LINENO: checking for $ac_header" >&5
23003echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23004if eval "test \"\${$as_ac_Header+set}\" = set"; then
23005  echo $ECHO_N "(cached) $ECHO_C" >&6
23006else
23007  eval "$as_ac_Header=\$ac_header_preproc"
23008fi
23009echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23010echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23011
23012fi
23013if test `eval echo '${'$as_ac_Header'}'` = yes; then
23014  cat >>confdefs.h <<_ACEOF
23015#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23016_ACEOF
23017
23018fi
23019
23020done
23021
23022
23023fi
23024ac_ext=cc
23025ac_cpp='$CXXCPP $CPPFLAGS'
23026ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23027ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23028ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23029
23030
23031
23032COIN_C_FINITE=
23033echo "$as_me:$LINENO: checking whether isfinite is declared" >&5
23034echo $ECHO_N "checking whether isfinite is declared... $ECHO_C" >&6
23035if test "${ac_cv_have_decl_isfinite+set}" = set; then
23036  echo $ECHO_N "(cached) $ECHO_C" >&6
23037else
23038  cat >conftest.$ac_ext <<_ACEOF
23039/* confdefs.h.  */
23040_ACEOF
23041cat confdefs.h >>conftest.$ac_ext
23042cat >>conftest.$ac_ext <<_ACEOF
23043/* end confdefs.h.  */
23044
23045#ifdef HAVE_CMATH
23046# include <cmath>
23047#else
23048# ifdef HAVE_MATH_H
23049#  include <math.h>
23050# endif
23051#endif
23052#ifdef HAVE_CFLOAT
23053# include <cfloat>
23054#else
23055# ifdef HAVE_FLOAT_H
23056#  include <float.h>
23057# endif
23058#endif
23059#ifdef HAVE_CIEEEFP
23060# include <cieeefp>
23061#else
23062# ifdef HAVE_IEEEFP_H
23063#  include <ieeefp.h>
23064# endif
23065#endif
23066
23067#ifdef F77_DUMMY_MAIN
23068
23069#  ifdef __cplusplus
23070     extern "C"
23071#  endif
23072   int F77_DUMMY_MAIN() { return 1; }
23073
23074#endif
23075int
23076main ()
23077{
23078#ifndef isfinite
23079  char *p = (char *) isfinite;
23080#endif
23081
23082  ;
23083  return 0;
23084}
23085_ACEOF
23086rm -f conftest.$ac_objext
23087if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23088  (eval $ac_compile) 2>conftest.er1
23089  ac_status=$?
23090  grep -v '^ *+' conftest.er1 >conftest.err
23091  rm -f conftest.er1
23092  cat conftest.err >&5
23093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23094  (exit $ac_status); } &&
23095	 { ac_try='test -z "$ac_cxx_werror_flag"
23096			 || test ! -s conftest.err'
23097  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23098  (eval $ac_try) 2>&5
23099  ac_status=$?
23100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23101  (exit $ac_status); }; } &&
23102	 { ac_try='test -s conftest.$ac_objext'
23103  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23104  (eval $ac_try) 2>&5
23105  ac_status=$?
23106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23107  (exit $ac_status); }; }; then
23108  ac_cv_have_decl_isfinite=yes
23109else
23110  echo "$as_me: failed program was:" >&5
23111sed 's/^/| /' conftest.$ac_ext >&5
23112
23113ac_cv_have_decl_isfinite=no
23114fi
23115rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23116fi
23117echo "$as_me:$LINENO: result: $ac_cv_have_decl_isfinite" >&5
23118echo "${ECHO_T}$ac_cv_have_decl_isfinite" >&6
23119if test $ac_cv_have_decl_isfinite = yes; then
23120  COIN_C_FINITE=isfinite
23121fi
23122
23123if test -z "$COIN_C_FINITE"; then
23124  echo "$as_me:$LINENO: checking whether finite is declared" >&5
23125echo $ECHO_N "checking whether finite is declared... $ECHO_C" >&6
23126if test "${ac_cv_have_decl_finite+set}" = set; then
23127  echo $ECHO_N "(cached) $ECHO_C" >&6
23128else
23129  cat >conftest.$ac_ext <<_ACEOF
23130/* confdefs.h.  */
23131_ACEOF
23132cat confdefs.h >>conftest.$ac_ext
23133cat >>conftest.$ac_ext <<_ACEOF
23134/* end confdefs.h.  */
23135
23136#ifdef HAVE_CMATH
23137# include <cmath>
23138#else
23139# ifdef HAVE_MATH_H
23140#  include <math.h>
23141# endif
23142#endif
23143#ifdef HAVE_CFLOAT
23144# include <cfloat>
23145#else
23146# ifdef HAVE_FLOAT_H
23147#  include <float.h>
23148# endif
23149#endif
23150#ifdef HAVE_CIEEEFP
23151# include <cieeefp>
23152#else
23153# ifdef HAVE_IEEEFP_H
23154#  include <ieeefp.h>
23155# endif
23156#endif
23157
23158#ifdef F77_DUMMY_MAIN
23159
23160#  ifdef __cplusplus
23161     extern "C"
23162#  endif
23163   int F77_DUMMY_MAIN() { return 1; }
23164
23165#endif
23166int
23167main ()
23168{
23169#ifndef finite
23170  char *p = (char *) finite;
23171#endif
23172
23173  ;
23174  return 0;
23175}
23176_ACEOF
23177rm -f conftest.$ac_objext
23178if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23179  (eval $ac_compile) 2>conftest.er1
23180  ac_status=$?
23181  grep -v '^ *+' conftest.er1 >conftest.err
23182  rm -f conftest.er1
23183  cat conftest.err >&5
23184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23185  (exit $ac_status); } &&
23186	 { ac_try='test -z "$ac_cxx_werror_flag"
23187			 || test ! -s conftest.err'
23188  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23189  (eval $ac_try) 2>&5
23190  ac_status=$?
23191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23192  (exit $ac_status); }; } &&
23193	 { ac_try='test -s conftest.$ac_objext'
23194  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23195  (eval $ac_try) 2>&5
23196  ac_status=$?
23197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23198  (exit $ac_status); }; }; then
23199  ac_cv_have_decl_finite=yes
23200else
23201  echo "$as_me: failed program was:" >&5
23202sed 's/^/| /' conftest.$ac_ext >&5
23203
23204ac_cv_have_decl_finite=no
23205fi
23206rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23207fi
23208echo "$as_me:$LINENO: result: $ac_cv_have_decl_finite" >&5
23209echo "${ECHO_T}$ac_cv_have_decl_finite" >&6
23210if test $ac_cv_have_decl_finite = yes; then
23211  COIN_C_FINITE=finite
23212fi
23213
23214  if test -z "$COIN_C_FINITE"; then
23215    echo "$as_me:$LINENO: checking whether _finite is declared" >&5
23216echo $ECHO_N "checking whether _finite is declared... $ECHO_C" >&6
23217if test "${ac_cv_have_decl__finite+set}" = set; then
23218  echo $ECHO_N "(cached) $ECHO_C" >&6
23219else
23220  cat >conftest.$ac_ext <<_ACEOF
23221/* confdefs.h.  */
23222_ACEOF
23223cat confdefs.h >>conftest.$ac_ext
23224cat >>conftest.$ac_ext <<_ACEOF
23225/* end confdefs.h.  */
23226
23227#ifdef HAVE_CMATH
23228# include <cmath>
23229#else
23230# ifdef HAVE_MATH_H
23231#  include <math.h>
23232# endif
23233#endif
23234#ifdef HAVE_CFLOAT
23235# include <cfloat>
23236#else
23237# ifdef HAVE_FLOAT_H
23238#  include <float.h>
23239# endif
23240#endif
23241#ifdef HAVE_CIEEEFP
23242# include <cieeefp>
23243#else
23244# ifdef HAVE_IEEEFP_H
23245#  include <ieeefp.h>
23246# endif
23247#endif
23248
23249#ifdef F77_DUMMY_MAIN
23250
23251#  ifdef __cplusplus
23252     extern "C"
23253#  endif
23254   int F77_DUMMY_MAIN() { return 1; }
23255
23256#endif
23257int
23258main ()
23259{
23260#ifndef _finite
23261  char *p = (char *) _finite;
23262#endif
23263
23264  ;
23265  return 0;
23266}
23267_ACEOF
23268rm -f conftest.$ac_objext
23269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23270  (eval $ac_compile) 2>conftest.er1
23271  ac_status=$?
23272  grep -v '^ *+' conftest.er1 >conftest.err
23273  rm -f conftest.er1
23274  cat conftest.err >&5
23275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23276  (exit $ac_status); } &&
23277	 { ac_try='test -z "$ac_cxx_werror_flag"
23278			 || test ! -s conftest.err'
23279  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23280  (eval $ac_try) 2>&5
23281  ac_status=$?
23282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23283  (exit $ac_status); }; } &&
23284	 { ac_try='test -s conftest.$ac_objext'
23285  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23286  (eval $ac_try) 2>&5
23287  ac_status=$?
23288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23289  (exit $ac_status); }; }; then
23290  ac_cv_have_decl__finite=yes
23291else
23292  echo "$as_me: failed program was:" >&5
23293sed 's/^/| /' conftest.$ac_ext >&5
23294
23295ac_cv_have_decl__finite=no
23296fi
23297rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23298fi
23299echo "$as_me:$LINENO: result: $ac_cv_have_decl__finite" >&5
23300echo "${ECHO_T}$ac_cv_have_decl__finite" >&6
23301if test $ac_cv_have_decl__finite = yes; then
23302  COIN_C_FINITE=_finite
23303fi
23304
23305  fi
23306fi
23307if test -z "$COIN_C_FINITE"; then
23308  { echo "$as_me:$LINENO: WARNING: Cannot find C-function for checking Inf." >&5
23309echo "$as_me: WARNING: Cannot find C-function for checking Inf." >&2;}
23310else
23311
23312cat >>confdefs.h <<_ACEOF
23313#define COIN_C_FINITE $COIN_C_FINITE
23314_ACEOF
23315
23316fi
23317
23318ac_ext=c
23319ac_cpp='$CPP $CPPFLAGS'
23320ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23321ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23322ac_compiler_gnu=$ac_cv_c_compiler_gnu
23323
23324
23325
23326
23327ac_ext=cc
23328ac_cpp='$CXXCPP $CPPFLAGS'
23329ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23330ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23331ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23332
23333
23334ac_ext=cc
23335ac_cpp='$CXXCPP $CPPFLAGS'
23336ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23337ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23338ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23339
23340#if test x"" = x; then
23341#  hdr="#include <cmath>"
23342#else
23343#  hdr=""
23344#fi
23345#AC_CHECK_HEADERS([cmath],[],[],[$hdr])
23346
23347for ac_header in cmath
23348do
23349as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23350if eval "test \"\${$as_ac_Header+set}\" = set"; then
23351  echo "$as_me:$LINENO: checking for $ac_header" >&5
23352echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23353if eval "test \"\${$as_ac_Header+set}\" = set"; then
23354  echo $ECHO_N "(cached) $ECHO_C" >&6
23355fi
23356echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23357echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23358else
23359  # Is the header compilable?
23360echo "$as_me:$LINENO: checking $ac_header usability" >&5
23361echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23362cat >conftest.$ac_ext <<_ACEOF
23363/* confdefs.h.  */
23364_ACEOF
23365cat confdefs.h >>conftest.$ac_ext
23366cat >>conftest.$ac_ext <<_ACEOF
23367/* end confdefs.h.  */
23368$ac_includes_default
23369#include <$ac_header>
23370_ACEOF
23371rm -f conftest.$ac_objext
23372if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23373  (eval $ac_compile) 2>conftest.er1
23374  ac_status=$?
23375  grep -v '^ *+' conftest.er1 >conftest.err
23376  rm -f conftest.er1
23377  cat conftest.err >&5
23378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23379  (exit $ac_status); } &&
23380	 { ac_try='test -z "$ac_cxx_werror_flag"
23381			 || test ! -s conftest.err'
23382  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23383  (eval $ac_try) 2>&5
23384  ac_status=$?
23385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23386  (exit $ac_status); }; } &&
23387	 { ac_try='test -s conftest.$ac_objext'
23388  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23389  (eval $ac_try) 2>&5
23390  ac_status=$?
23391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23392  (exit $ac_status); }; }; then
23393  ac_header_compiler=yes
23394else
23395  echo "$as_me: failed program was:" >&5
23396sed 's/^/| /' conftest.$ac_ext >&5
23397
23398ac_header_compiler=no
23399fi
23400rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23401echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23402echo "${ECHO_T}$ac_header_compiler" >&6
23403
23404# Is the header present?
23405echo "$as_me:$LINENO: checking $ac_header presence" >&5
23406echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23407cat >conftest.$ac_ext <<_ACEOF
23408/* confdefs.h.  */
23409_ACEOF
23410cat confdefs.h >>conftest.$ac_ext
23411cat >>conftest.$ac_ext <<_ACEOF
23412/* end confdefs.h.  */
23413#include <$ac_header>
23414_ACEOF
23415if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23416  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23417  ac_status=$?
23418  grep -v '^ *+' conftest.er1 >conftest.err
23419  rm -f conftest.er1
23420  cat conftest.err >&5
23421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23422  (exit $ac_status); } >/dev/null; then
23423  if test -s conftest.err; then
23424    ac_cpp_err=$ac_cxx_preproc_warn_flag
23425    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
23426  else
23427    ac_cpp_err=
23428  fi
23429else
23430  ac_cpp_err=yes
23431fi
23432if test -z "$ac_cpp_err"; then
23433  ac_header_preproc=yes
23434else
23435  echo "$as_me: failed program was:" >&5
23436sed 's/^/| /' conftest.$ac_ext >&5
23437
23438  ac_header_preproc=no
23439fi
23440rm -f conftest.err conftest.$ac_ext
23441echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23442echo "${ECHO_T}$ac_header_preproc" >&6
23443
23444# So?  What about this header?
23445case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23446  yes:no: )
23447    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23448echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23449    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23450echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23451    ac_header_preproc=yes
23452    ;;
23453  no:yes:* )
23454    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23455echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23456    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23457echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23458    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23459echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23460    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23461echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23462    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23463echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23464    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23465echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23466    (
23467      cat <<\_ASBOX
23468## ---------------------------------------------------- ##
23469## Report this to http://projects.coin-or.org/CoinUtils ##
23470## ---------------------------------------------------- ##
23471_ASBOX
23472    ) |
23473      sed "s/^/$as_me: WARNING:     /" >&2
23474    ;;
23475esac
23476echo "$as_me:$LINENO: checking for $ac_header" >&5
23477echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23478if eval "test \"\${$as_ac_Header+set}\" = set"; then
23479  echo $ECHO_N "(cached) $ECHO_C" >&6
23480else
23481  eval "$as_ac_Header=\$ac_header_preproc"
23482fi
23483echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23484echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23485
23486fi
23487if test `eval echo '${'$as_ac_Header'}'` = yes; then
23488  cat >>confdefs.h <<_ACEOF
23489#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23490_ACEOF
23491
23492fi
23493
23494done
23495
23496
23497if test "$ac_cv_header_cmath" != "yes"; then
23498  #if test x"" = x; then
23499#  hdr="#include <math.h>"
23500#else
23501#  hdr=""
23502#fi
23503#AC_CHECK_HEADERS([math.h],[],[],[$hdr])
23504
23505for ac_header in math.h
23506do
23507as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23508if eval "test \"\${$as_ac_Header+set}\" = set"; then
23509  echo "$as_me:$LINENO: checking for $ac_header" >&5
23510echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23511if eval "test \"\${$as_ac_Header+set}\" = set"; then
23512  echo $ECHO_N "(cached) $ECHO_C" >&6
23513fi
23514echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23515echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23516else
23517  # Is the header compilable?
23518echo "$as_me:$LINENO: checking $ac_header usability" >&5
23519echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23520cat >conftest.$ac_ext <<_ACEOF
23521/* confdefs.h.  */
23522_ACEOF
23523cat confdefs.h >>conftest.$ac_ext
23524cat >>conftest.$ac_ext <<_ACEOF
23525/* end confdefs.h.  */
23526$ac_includes_default
23527#include <$ac_header>
23528_ACEOF
23529rm -f conftest.$ac_objext
23530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23531  (eval $ac_compile) 2>conftest.er1
23532  ac_status=$?
23533  grep -v '^ *+' conftest.er1 >conftest.err
23534  rm -f conftest.er1
23535  cat conftest.err >&5
23536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23537  (exit $ac_status); } &&
23538	 { ac_try='test -z "$ac_cxx_werror_flag"
23539			 || test ! -s conftest.err'
23540  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23541  (eval $ac_try) 2>&5
23542  ac_status=$?
23543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23544  (exit $ac_status); }; } &&
23545	 { ac_try='test -s conftest.$ac_objext'
23546  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23547  (eval $ac_try) 2>&5
23548  ac_status=$?
23549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23550  (exit $ac_status); }; }; then
23551  ac_header_compiler=yes
23552else
23553  echo "$as_me: failed program was:" >&5
23554sed 's/^/| /' conftest.$ac_ext >&5
23555
23556ac_header_compiler=no
23557fi
23558rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23559echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23560echo "${ECHO_T}$ac_header_compiler" >&6
23561
23562# Is the header present?
23563echo "$as_me:$LINENO: checking $ac_header presence" >&5
23564echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23565cat >conftest.$ac_ext <<_ACEOF
23566/* confdefs.h.  */
23567_ACEOF
23568cat confdefs.h >>conftest.$ac_ext
23569cat >>conftest.$ac_ext <<_ACEOF
23570/* end confdefs.h.  */
23571#include <$ac_header>
23572_ACEOF
23573if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23574  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23575  ac_status=$?
23576  grep -v '^ *+' conftest.er1 >conftest.err
23577  rm -f conftest.er1
23578  cat conftest.err >&5
23579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23580  (exit $ac_status); } >/dev/null; then
23581  if test -s conftest.err; then
23582    ac_cpp_err=$ac_cxx_preproc_warn_flag
23583    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
23584  else
23585    ac_cpp_err=
23586  fi
23587else
23588  ac_cpp_err=yes
23589fi
23590if test -z "$ac_cpp_err"; then
23591  ac_header_preproc=yes
23592else
23593  echo "$as_me: failed program was:" >&5
23594sed 's/^/| /' conftest.$ac_ext >&5
23595
23596  ac_header_preproc=no
23597fi
23598rm -f conftest.err conftest.$ac_ext
23599echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23600echo "${ECHO_T}$ac_header_preproc" >&6
23601
23602# So?  What about this header?
23603case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23604  yes:no: )
23605    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23606echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23607    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23608echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23609    ac_header_preproc=yes
23610    ;;
23611  no:yes:* )
23612    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23613echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23614    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23615echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23616    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23617echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23618    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23619echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23620    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23621echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23622    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23623echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23624    (
23625      cat <<\_ASBOX
23626## ---------------------------------------------------- ##
23627## Report this to http://projects.coin-or.org/CoinUtils ##
23628## ---------------------------------------------------- ##
23629_ASBOX
23630    ) |
23631      sed "s/^/$as_me: WARNING:     /" >&2
23632    ;;
23633esac
23634echo "$as_me:$LINENO: checking for $ac_header" >&5
23635echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23636if eval "test \"\${$as_ac_Header+set}\" = set"; then
23637  echo $ECHO_N "(cached) $ECHO_C" >&6
23638else
23639  eval "$as_ac_Header=\$ac_header_preproc"
23640fi
23641echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23642echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23643
23644fi
23645if test `eval echo '${'$as_ac_Header'}'` = yes; then
23646  cat >>confdefs.h <<_ACEOF
23647#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23648_ACEOF
23649
23650fi
23651
23652done
23653
23654
23655fi
23656ac_ext=cc
23657ac_cpp='$CXXCPP $CPPFLAGS'
23658ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23659ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23660ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23661
23662
23663ac_ext=cc
23664ac_cpp='$CXXCPP $CPPFLAGS'
23665ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23666ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23667ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23668
23669#if test x"" = x; then
23670#  hdr="#include <cfloat>"
23671#else
23672#  hdr=""
23673#fi
23674#AC_CHECK_HEADERS([cfloat],[],[],[$hdr])
23675
23676for ac_header in cfloat
23677do
23678as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23679if eval "test \"\${$as_ac_Header+set}\" = set"; then
23680  echo "$as_me:$LINENO: checking for $ac_header" >&5
23681echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23682if eval "test \"\${$as_ac_Header+set}\" = set"; then
23683  echo $ECHO_N "(cached) $ECHO_C" >&6
23684fi
23685echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23686echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23687else
23688  # Is the header compilable?
23689echo "$as_me:$LINENO: checking $ac_header usability" >&5
23690echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23691cat >conftest.$ac_ext <<_ACEOF
23692/* confdefs.h.  */
23693_ACEOF
23694cat confdefs.h >>conftest.$ac_ext
23695cat >>conftest.$ac_ext <<_ACEOF
23696/* end confdefs.h.  */
23697$ac_includes_default
23698#include <$ac_header>
23699_ACEOF
23700rm -f conftest.$ac_objext
23701if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23702  (eval $ac_compile) 2>conftest.er1
23703  ac_status=$?
23704  grep -v '^ *+' conftest.er1 >conftest.err
23705  rm -f conftest.er1
23706  cat conftest.err >&5
23707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23708  (exit $ac_status); } &&
23709	 { ac_try='test -z "$ac_cxx_werror_flag"
23710			 || test ! -s conftest.err'
23711  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23712  (eval $ac_try) 2>&5
23713  ac_status=$?
23714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23715  (exit $ac_status); }; } &&
23716	 { ac_try='test -s conftest.$ac_objext'
23717  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23718  (eval $ac_try) 2>&5
23719  ac_status=$?
23720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23721  (exit $ac_status); }; }; then
23722  ac_header_compiler=yes
23723else
23724  echo "$as_me: failed program was:" >&5
23725sed 's/^/| /' conftest.$ac_ext >&5
23726
23727ac_header_compiler=no
23728fi
23729rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23730echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23731echo "${ECHO_T}$ac_header_compiler" >&6
23732
23733# Is the header present?
23734echo "$as_me:$LINENO: checking $ac_header presence" >&5
23735echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23736cat >conftest.$ac_ext <<_ACEOF
23737/* confdefs.h.  */
23738_ACEOF
23739cat confdefs.h >>conftest.$ac_ext
23740cat >>conftest.$ac_ext <<_ACEOF
23741/* end confdefs.h.  */
23742#include <$ac_header>
23743_ACEOF
23744if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23745  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23746  ac_status=$?
23747  grep -v '^ *+' conftest.er1 >conftest.err
23748  rm -f conftest.er1
23749  cat conftest.err >&5
23750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23751  (exit $ac_status); } >/dev/null; then
23752  if test -s conftest.err; then
23753    ac_cpp_err=$ac_cxx_preproc_warn_flag
23754    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
23755  else
23756    ac_cpp_err=
23757  fi
23758else
23759  ac_cpp_err=yes
23760fi
23761if test -z "$ac_cpp_err"; then
23762  ac_header_preproc=yes
23763else
23764  echo "$as_me: failed program was:" >&5
23765sed 's/^/| /' conftest.$ac_ext >&5
23766
23767  ac_header_preproc=no
23768fi
23769rm -f conftest.err conftest.$ac_ext
23770echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23771echo "${ECHO_T}$ac_header_preproc" >&6
23772
23773# So?  What about this header?
23774case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23775  yes:no: )
23776    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23777echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23778    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23779echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23780    ac_header_preproc=yes
23781    ;;
23782  no:yes:* )
23783    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23784echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23785    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23786echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23787    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23788echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23789    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23790echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23791    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23792echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23793    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23794echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23795    (
23796      cat <<\_ASBOX
23797## ---------------------------------------------------- ##
23798## Report this to http://projects.coin-or.org/CoinUtils ##
23799## ---------------------------------------------------- ##
23800_ASBOX
23801    ) |
23802      sed "s/^/$as_me: WARNING:     /" >&2
23803    ;;
23804esac
23805echo "$as_me:$LINENO: checking for $ac_header" >&5
23806echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23807if eval "test \"\${$as_ac_Header+set}\" = set"; then
23808  echo $ECHO_N "(cached) $ECHO_C" >&6
23809else
23810  eval "$as_ac_Header=\$ac_header_preproc"
23811fi
23812echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23813echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23814
23815fi
23816if test `eval echo '${'$as_ac_Header'}'` = yes; then
23817  cat >>confdefs.h <<_ACEOF
23818#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23819_ACEOF
23820
23821fi
23822
23823done
23824
23825
23826if test "$ac_cv_header_cfloat" != "yes"; then
23827  #if test x"" = x; then
23828#  hdr="#include <float.h>"
23829#else
23830#  hdr=""
23831#fi
23832#AC_CHECK_HEADERS([float.h],[],[],[$hdr])
23833
23834for ac_header in float.h
23835do
23836as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23837if eval "test \"\${$as_ac_Header+set}\" = set"; then
23838  echo "$as_me:$LINENO: checking for $ac_header" >&5
23839echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23840if eval "test \"\${$as_ac_Header+set}\" = set"; then
23841  echo $ECHO_N "(cached) $ECHO_C" >&6
23842fi
23843echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23844echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23845else
23846  # Is the header compilable?
23847echo "$as_me:$LINENO: checking $ac_header usability" >&5
23848echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23849cat >conftest.$ac_ext <<_ACEOF
23850/* confdefs.h.  */
23851_ACEOF
23852cat confdefs.h >>conftest.$ac_ext
23853cat >>conftest.$ac_ext <<_ACEOF
23854/* end confdefs.h.  */
23855$ac_includes_default
23856#include <$ac_header>
23857_ACEOF
23858rm -f conftest.$ac_objext
23859if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23860  (eval $ac_compile) 2>conftest.er1
23861  ac_status=$?
23862  grep -v '^ *+' conftest.er1 >conftest.err
23863  rm -f conftest.er1
23864  cat conftest.err >&5
23865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23866  (exit $ac_status); } &&
23867	 { ac_try='test -z "$ac_cxx_werror_flag"
23868			 || test ! -s conftest.err'
23869  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23870  (eval $ac_try) 2>&5
23871  ac_status=$?
23872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23873  (exit $ac_status); }; } &&
23874	 { ac_try='test -s conftest.$ac_objext'
23875  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23876  (eval $ac_try) 2>&5
23877  ac_status=$?
23878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23879  (exit $ac_status); }; }; then
23880  ac_header_compiler=yes
23881else
23882  echo "$as_me: failed program was:" >&5
23883sed 's/^/| /' conftest.$ac_ext >&5
23884
23885ac_header_compiler=no
23886fi
23887rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23888echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23889echo "${ECHO_T}$ac_header_compiler" >&6
23890
23891# Is the header present?
23892echo "$as_me:$LINENO: checking $ac_header presence" >&5
23893echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23894cat >conftest.$ac_ext <<_ACEOF
23895/* confdefs.h.  */
23896_ACEOF
23897cat confdefs.h >>conftest.$ac_ext
23898cat >>conftest.$ac_ext <<_ACEOF
23899/* end confdefs.h.  */
23900#include <$ac_header>
23901_ACEOF
23902if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23903  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23904  ac_status=$?
23905  grep -v '^ *+' conftest.er1 >conftest.err
23906  rm -f conftest.er1
23907  cat conftest.err >&5
23908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23909  (exit $ac_status); } >/dev/null; then
23910  if test -s conftest.err; then
23911    ac_cpp_err=$ac_cxx_preproc_warn_flag
23912    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
23913  else
23914    ac_cpp_err=
23915  fi
23916else
23917  ac_cpp_err=yes
23918fi
23919if test -z "$ac_cpp_err"; then
23920  ac_header_preproc=yes
23921else
23922  echo "$as_me: failed program was:" >&5
23923sed 's/^/| /' conftest.$ac_ext >&5
23924
23925  ac_header_preproc=no
23926fi
23927rm -f conftest.err conftest.$ac_ext
23928echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23929echo "${ECHO_T}$ac_header_preproc" >&6
23930
23931# So?  What about this header?
23932case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23933  yes:no: )
23934    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23935echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23936    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23937echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23938    ac_header_preproc=yes
23939    ;;
23940  no:yes:* )
23941    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23942echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23943    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23944echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23945    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23946echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23947    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23948echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23949    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23950echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23951    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23952echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23953    (
23954      cat <<\_ASBOX
23955## ---------------------------------------------------- ##
23956## Report this to http://projects.coin-or.org/CoinUtils ##
23957## ---------------------------------------------------- ##
23958_ASBOX
23959    ) |
23960      sed "s/^/$as_me: WARNING:     /" >&2
23961    ;;
23962esac
23963echo "$as_me:$LINENO: checking for $ac_header" >&5
23964echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23965if eval "test \"\${$as_ac_Header+set}\" = set"; then
23966  echo $ECHO_N "(cached) $ECHO_C" >&6
23967else
23968  eval "$as_ac_Header=\$ac_header_preproc"
23969fi
23970echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23971echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23972
23973fi
23974if test `eval echo '${'$as_ac_Header'}'` = yes; then
23975  cat >>confdefs.h <<_ACEOF
23976#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23977_ACEOF
23978
23979fi
23980
23981done
23982
23983
23984fi
23985ac_ext=cc
23986ac_cpp='$CXXCPP $CPPFLAGS'
23987ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23988ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23989ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23990
23991
23992ac_ext=cc
23993ac_cpp='$CXXCPP $CPPFLAGS'
23994ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23995ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23996ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23997
23998#if test x"" = x; then
23999#  hdr="#include <cieeefp>"
24000#else
24001#  hdr=""
24002#fi
24003#AC_CHECK_HEADERS([cieeefp],[],[],[$hdr])
24004
24005for ac_header in cieeefp
24006do
24007as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24008if eval "test \"\${$as_ac_Header+set}\" = set"; then
24009  echo "$as_me:$LINENO: checking for $ac_header" >&5
24010echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24011if eval "test \"\${$as_ac_Header+set}\" = set"; then
24012  echo $ECHO_N "(cached) $ECHO_C" >&6
24013fi
24014echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24015echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24016else
24017  # Is the header compilable?
24018echo "$as_me:$LINENO: checking $ac_header usability" >&5
24019echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24020cat >conftest.$ac_ext <<_ACEOF
24021/* confdefs.h.  */
24022_ACEOF
24023cat confdefs.h >>conftest.$ac_ext
24024cat >>conftest.$ac_ext <<_ACEOF
24025/* end confdefs.h.  */
24026$ac_includes_default
24027#include <$ac_header>
24028_ACEOF
24029rm -f conftest.$ac_objext
24030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24031  (eval $ac_compile) 2>conftest.er1
24032  ac_status=$?
24033  grep -v '^ *+' conftest.er1 >conftest.err
24034  rm -f conftest.er1
24035  cat conftest.err >&5
24036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24037  (exit $ac_status); } &&
24038	 { ac_try='test -z "$ac_cxx_werror_flag"
24039			 || test ! -s conftest.err'
24040  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24041  (eval $ac_try) 2>&5
24042  ac_status=$?
24043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24044  (exit $ac_status); }; } &&
24045	 { ac_try='test -s conftest.$ac_objext'
24046  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24047  (eval $ac_try) 2>&5
24048  ac_status=$?
24049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24050  (exit $ac_status); }; }; then
24051  ac_header_compiler=yes
24052else
24053  echo "$as_me: failed program was:" >&5
24054sed 's/^/| /' conftest.$ac_ext >&5
24055
24056ac_header_compiler=no
24057fi
24058rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24059echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24060echo "${ECHO_T}$ac_header_compiler" >&6
24061
24062# Is the header present?
24063echo "$as_me:$LINENO: checking $ac_header presence" >&5
24064echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24065cat >conftest.$ac_ext <<_ACEOF
24066/* confdefs.h.  */
24067_ACEOF
24068cat confdefs.h >>conftest.$ac_ext
24069cat >>conftest.$ac_ext <<_ACEOF
24070/* end confdefs.h.  */
24071#include <$ac_header>
24072_ACEOF
24073if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24074  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24075  ac_status=$?
24076  grep -v '^ *+' conftest.er1 >conftest.err
24077  rm -f conftest.er1
24078  cat conftest.err >&5
24079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24080  (exit $ac_status); } >/dev/null; then
24081  if test -s conftest.err; then
24082    ac_cpp_err=$ac_cxx_preproc_warn_flag
24083    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24084  else
24085    ac_cpp_err=
24086  fi
24087else
24088  ac_cpp_err=yes
24089fi
24090if test -z "$ac_cpp_err"; then
24091  ac_header_preproc=yes
24092else
24093  echo "$as_me: failed program was:" >&5
24094sed 's/^/| /' conftest.$ac_ext >&5
24095
24096  ac_header_preproc=no
24097fi
24098rm -f conftest.err conftest.$ac_ext
24099echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24100echo "${ECHO_T}$ac_header_preproc" >&6
24101
24102# So?  What about this header?
24103case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24104  yes:no: )
24105    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24106echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24107    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24108echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24109    ac_header_preproc=yes
24110    ;;
24111  no:yes:* )
24112    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24113echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24114    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24115echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24116    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24117echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24118    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24119echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24120    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24121echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24122    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24123echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24124    (
24125      cat <<\_ASBOX
24126## ---------------------------------------------------- ##
24127## Report this to http://projects.coin-or.org/CoinUtils ##
24128## ---------------------------------------------------- ##
24129_ASBOX
24130    ) |
24131      sed "s/^/$as_me: WARNING:     /" >&2
24132    ;;
24133esac
24134echo "$as_me:$LINENO: checking for $ac_header" >&5
24135echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24136if eval "test \"\${$as_ac_Header+set}\" = set"; then
24137  echo $ECHO_N "(cached) $ECHO_C" >&6
24138else
24139  eval "$as_ac_Header=\$ac_header_preproc"
24140fi
24141echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24142echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24143
24144fi
24145if test `eval echo '${'$as_ac_Header'}'` = yes; then
24146  cat >>confdefs.h <<_ACEOF
24147#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24148_ACEOF
24149
24150fi
24151
24152done
24153
24154
24155if test "$ac_cv_header_cieeefp" != "yes"; then
24156  #if test x"" = x; then
24157#  hdr="#include <ieeefp.h>"
24158#else
24159#  hdr=""
24160#fi
24161#AC_CHECK_HEADERS([ieeefp.h],[],[],[$hdr])
24162
24163for ac_header in ieeefp.h
24164do
24165as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24166if eval "test \"\${$as_ac_Header+set}\" = set"; then
24167  echo "$as_me:$LINENO: checking for $ac_header" >&5
24168echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24169if eval "test \"\${$as_ac_Header+set}\" = set"; then
24170  echo $ECHO_N "(cached) $ECHO_C" >&6
24171fi
24172echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24173echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24174else
24175  # Is the header compilable?
24176echo "$as_me:$LINENO: checking $ac_header usability" >&5
24177echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24178cat >conftest.$ac_ext <<_ACEOF
24179/* confdefs.h.  */
24180_ACEOF
24181cat confdefs.h >>conftest.$ac_ext
24182cat >>conftest.$ac_ext <<_ACEOF
24183/* end confdefs.h.  */
24184$ac_includes_default
24185#include <$ac_header>
24186_ACEOF
24187rm -f conftest.$ac_objext
24188if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24189  (eval $ac_compile) 2>conftest.er1
24190  ac_status=$?
24191  grep -v '^ *+' conftest.er1 >conftest.err
24192  rm -f conftest.er1
24193  cat conftest.err >&5
24194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24195  (exit $ac_status); } &&
24196	 { ac_try='test -z "$ac_cxx_werror_flag"
24197			 || test ! -s conftest.err'
24198  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24199  (eval $ac_try) 2>&5
24200  ac_status=$?
24201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24202  (exit $ac_status); }; } &&
24203	 { ac_try='test -s conftest.$ac_objext'
24204  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24205  (eval $ac_try) 2>&5
24206  ac_status=$?
24207  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24208  (exit $ac_status); }; }; then
24209  ac_header_compiler=yes
24210else
24211  echo "$as_me: failed program was:" >&5
24212sed 's/^/| /' conftest.$ac_ext >&5
24213
24214ac_header_compiler=no
24215fi
24216rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24217echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24218echo "${ECHO_T}$ac_header_compiler" >&6
24219
24220# Is the header present?
24221echo "$as_me:$LINENO: checking $ac_header presence" >&5
24222echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24223cat >conftest.$ac_ext <<_ACEOF
24224/* confdefs.h.  */
24225_ACEOF
24226cat confdefs.h >>conftest.$ac_ext
24227cat >>conftest.$ac_ext <<_ACEOF
24228/* end confdefs.h.  */
24229#include <$ac_header>
24230_ACEOF
24231if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24232  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24233  ac_status=$?
24234  grep -v '^ *+' conftest.er1 >conftest.err
24235  rm -f conftest.er1
24236  cat conftest.err >&5
24237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24238  (exit $ac_status); } >/dev/null; then
24239  if test -s conftest.err; then
24240    ac_cpp_err=$ac_cxx_preproc_warn_flag
24241    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24242  else
24243    ac_cpp_err=
24244  fi
24245else
24246  ac_cpp_err=yes
24247fi
24248if test -z "$ac_cpp_err"; then
24249  ac_header_preproc=yes
24250else
24251  echo "$as_me: failed program was:" >&5
24252sed 's/^/| /' conftest.$ac_ext >&5
24253
24254  ac_header_preproc=no
24255fi
24256rm -f conftest.err conftest.$ac_ext
24257echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24258echo "${ECHO_T}$ac_header_preproc" >&6
24259
24260# So?  What about this header?
24261case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24262  yes:no: )
24263    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24264echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24265    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24266echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24267    ac_header_preproc=yes
24268    ;;
24269  no:yes:* )
24270    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24271echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24272    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24273echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24274    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24275echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24276    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24277echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24278    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24279echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24280    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24281echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24282    (
24283      cat <<\_ASBOX
24284## ---------------------------------------------------- ##
24285## Report this to http://projects.coin-or.org/CoinUtils ##
24286## ---------------------------------------------------- ##
24287_ASBOX
24288    ) |
24289      sed "s/^/$as_me: WARNING:     /" >&2
24290    ;;
24291esac
24292echo "$as_me:$LINENO: checking for $ac_header" >&5
24293echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24294if eval "test \"\${$as_ac_Header+set}\" = set"; then
24295  echo $ECHO_N "(cached) $ECHO_C" >&6
24296else
24297  eval "$as_ac_Header=\$ac_header_preproc"
24298fi
24299echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24300echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24301
24302fi
24303if test `eval echo '${'$as_ac_Header'}'` = yes; then
24304  cat >>confdefs.h <<_ACEOF
24305#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24306_ACEOF
24307
24308fi
24309
24310done
24311
24312
24313fi
24314ac_ext=cc
24315ac_cpp='$CXXCPP $CPPFLAGS'
24316ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24317ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24318ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24319
24320
24321
24322COIN_C_ISNAN=
24323echo "$as_me:$LINENO: checking whether isnan is declared" >&5
24324echo $ECHO_N "checking whether isnan is declared... $ECHO_C" >&6
24325if test "${ac_cv_have_decl_isnan+set}" = set; then
24326  echo $ECHO_N "(cached) $ECHO_C" >&6
24327else
24328  cat >conftest.$ac_ext <<_ACEOF
24329/* confdefs.h.  */
24330_ACEOF
24331cat confdefs.h >>conftest.$ac_ext
24332cat >>conftest.$ac_ext <<_ACEOF
24333/* end confdefs.h.  */
24334
24335#ifdef HAVE_CMATH
24336# include <cmath>
24337#else
24338# ifdef HAVE_MATH_H
24339#  include <math.h>
24340# endif
24341#endif
24342#ifdef HAVE_CFLOAT
24343# include <cfloat>
24344#else
24345# ifdef HAVE_FLOAT_H
24346#  include <float.h>
24347# endif
24348#endif
24349#ifdef HAVE_CIEEEFP
24350# include <cieeefp>
24351#else
24352# ifdef HAVE_IEEEFP_H
24353#  include <ieeefp.h>
24354# endif
24355#endif
24356
24357#ifdef F77_DUMMY_MAIN
24358
24359#  ifdef __cplusplus
24360     extern "C"
24361#  endif
24362   int F77_DUMMY_MAIN() { return 1; }
24363
24364#endif
24365int
24366main ()
24367{
24368#ifndef isnan
24369  char *p = (char *) isnan;
24370#endif
24371
24372  ;
24373  return 0;
24374}
24375_ACEOF
24376rm -f conftest.$ac_objext
24377if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24378  (eval $ac_compile) 2>conftest.er1
24379  ac_status=$?
24380  grep -v '^ *+' conftest.er1 >conftest.err
24381  rm -f conftest.er1
24382  cat conftest.err >&5
24383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24384  (exit $ac_status); } &&
24385	 { ac_try='test -z "$ac_cxx_werror_flag"
24386			 || test ! -s conftest.err'
24387  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24388  (eval $ac_try) 2>&5
24389  ac_status=$?
24390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24391  (exit $ac_status); }; } &&
24392	 { ac_try='test -s conftest.$ac_objext'
24393  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24394  (eval $ac_try) 2>&5
24395  ac_status=$?
24396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24397  (exit $ac_status); }; }; then
24398  ac_cv_have_decl_isnan=yes
24399else
24400  echo "$as_me: failed program was:" >&5
24401sed 's/^/| /' conftest.$ac_ext >&5
24402
24403ac_cv_have_decl_isnan=no
24404fi
24405rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24406fi
24407echo "$as_me:$LINENO: result: $ac_cv_have_decl_isnan" >&5
24408echo "${ECHO_T}$ac_cv_have_decl_isnan" >&6
24409if test $ac_cv_have_decl_isnan = yes; then
24410  COIN_C_ISNAN=isnan
24411fi
24412
24413
24414# It appears that for some systems (e.g., Mac OSX), cmath will provide only
24415# std::isnan, and bare isnan will be unavailable. Typically we need a parameter
24416# in the test to allow C++ to do overload resolution.
24417
24418if test -z "$COIN_C_ISNAN"; then
24419  echo "$as_me:$LINENO: checking whether std::isnan(42.42) is declared" >&5
24420echo $ECHO_N "checking whether std::isnan(42.42) is declared... $ECHO_C" >&6
24421if test "${ac_cv_have_decl_std__isnan_42_42_+set}" = set; then
24422  echo $ECHO_N "(cached) $ECHO_C" >&6
24423else
24424  cat >conftest.$ac_ext <<_ACEOF
24425/* confdefs.h.  */
24426_ACEOF
24427cat confdefs.h >>conftest.$ac_ext
24428cat >>conftest.$ac_ext <<_ACEOF
24429/* end confdefs.h.  */
24430
24431#ifdef HAVE_CMATH
24432# include <cmath>
24433#else
24434# ifdef HAVE_MATH_H
24435#  include <math.h>
24436# endif
24437#endif
24438#ifdef HAVE_CFLOAT
24439# include <cfloat>
24440#else
24441# ifdef HAVE_FLOAT_H
24442#  include <float.h>
24443# endif
24444#endif
24445#ifdef HAVE_CIEEEFP
24446# include <cieeefp>
24447#else
24448# ifdef HAVE_IEEEFP_H
24449#  include <ieeefp.h>
24450# endif
24451#endif
24452
24453#ifdef F77_DUMMY_MAIN
24454
24455#  ifdef __cplusplus
24456     extern "C"
24457#  endif
24458   int F77_DUMMY_MAIN() { return 1; }
24459
24460#endif
24461int
24462main ()
24463{
24464#ifndef std::isnan(42.42)
24465  char *p = (char *) std::isnan(42.42);
24466#endif
24467
24468  ;
24469  return 0;
24470}
24471_ACEOF
24472rm -f conftest.$ac_objext
24473if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24474  (eval $ac_compile) 2>conftest.er1
24475  ac_status=$?
24476  grep -v '^ *+' conftest.er1 >conftest.err
24477  rm -f conftest.er1
24478  cat conftest.err >&5
24479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24480  (exit $ac_status); } &&
24481	 { ac_try='test -z "$ac_cxx_werror_flag"
24482			 || test ! -s conftest.err'
24483  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24484  (eval $ac_try) 2>&5
24485  ac_status=$?
24486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24487  (exit $ac_status); }; } &&
24488	 { ac_try='test -s conftest.$ac_objext'
24489  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24490  (eval $ac_try) 2>&5
24491  ac_status=$?
24492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24493  (exit $ac_status); }; }; then
24494  ac_cv_have_decl_std__isnan_42_42_=yes
24495else
24496  echo "$as_me: failed program was:" >&5
24497sed 's/^/| /' conftest.$ac_ext >&5
24498
24499ac_cv_have_decl_std__isnan_42_42_=no
24500fi
24501rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24502fi
24503echo "$as_me:$LINENO: result: $ac_cv_have_decl_std__isnan_42_42_" >&5
24504echo "${ECHO_T}$ac_cv_have_decl_std__isnan_42_42_" >&6
24505if test $ac_cv_have_decl_std__isnan_42_42_ = yes; then
24506  COIN_C_ISNAN=std::isnan
24507fi
24508
24509fi
24510
24511if test -z "$COIN_C_ISNAN"; then
24512  echo "$as_me:$LINENO: checking whether _isnan is declared" >&5
24513echo $ECHO_N "checking whether _isnan is declared... $ECHO_C" >&6
24514if test "${ac_cv_have_decl__isnan+set}" = set; then
24515  echo $ECHO_N "(cached) $ECHO_C" >&6
24516else
24517  cat >conftest.$ac_ext <<_ACEOF
24518/* confdefs.h.  */
24519_ACEOF
24520cat confdefs.h >>conftest.$ac_ext
24521cat >>conftest.$ac_ext <<_ACEOF
24522/* end confdefs.h.  */
24523
24524#ifdef HAVE_CMATH
24525# include <cmath>
24526#else
24527# ifdef HAVE_MATH_H
24528#  include <math.h>
24529# endif
24530#endif
24531#ifdef HAVE_CFLOAT
24532# include <cfloat>
24533#else
24534# ifdef HAVE_FLOAT_H
24535#  include <float.h>
24536# endif
24537#endif
24538#ifdef HAVE_CIEEEFP
24539# include <cieeefp>
24540#else
24541# ifdef HAVE_IEEEFP_H
24542#  include <ieeefp.h>
24543# endif
24544#endif
24545
24546#ifdef F77_DUMMY_MAIN
24547
24548#  ifdef __cplusplus
24549     extern "C"
24550#  endif
24551   int F77_DUMMY_MAIN() { return 1; }
24552
24553#endif
24554int
24555main ()
24556{
24557#ifndef _isnan
24558  char *p = (char *) _isnan;
24559#endif
24560
24561  ;
24562  return 0;
24563}
24564_ACEOF
24565rm -f conftest.$ac_objext
24566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24567  (eval $ac_compile) 2>conftest.er1
24568  ac_status=$?
24569  grep -v '^ *+' conftest.er1 >conftest.err
24570  rm -f conftest.er1
24571  cat conftest.err >&5
24572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24573  (exit $ac_status); } &&
24574	 { ac_try='test -z "$ac_cxx_werror_flag"
24575			 || test ! -s conftest.err'
24576  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24577  (eval $ac_try) 2>&5
24578  ac_status=$?
24579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24580  (exit $ac_status); }; } &&
24581	 { ac_try='test -s conftest.$ac_objext'
24582  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24583  (eval $ac_try) 2>&5
24584  ac_status=$?
24585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24586  (exit $ac_status); }; }; then
24587  ac_cv_have_decl__isnan=yes
24588else
24589  echo "$as_me: failed program was:" >&5
24590sed 's/^/| /' conftest.$ac_ext >&5
24591
24592ac_cv_have_decl__isnan=no
24593fi
24594rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24595fi
24596echo "$as_me:$LINENO: result: $ac_cv_have_decl__isnan" >&5
24597echo "${ECHO_T}$ac_cv_have_decl__isnan" >&6
24598if test $ac_cv_have_decl__isnan = yes; then
24599  COIN_C_ISNAN=_isnan
24600fi
24601
24602fi
24603if test -z "$COIN_C_ISNAN"; then
24604  echo "$as_me:$LINENO: checking whether isnand is declared" >&5
24605echo $ECHO_N "checking whether isnand is declared... $ECHO_C" >&6
24606if test "${ac_cv_have_decl_isnand+set}" = set; then
24607  echo $ECHO_N "(cached) $ECHO_C" >&6
24608else
24609  cat >conftest.$ac_ext <<_ACEOF
24610/* confdefs.h.  */
24611_ACEOF
24612cat confdefs.h >>conftest.$ac_ext
24613cat >>conftest.$ac_ext <<_ACEOF
24614/* end confdefs.h.  */
24615
24616#ifdef HAVE_CMATH
24617# include <cmath>
24618#else
24619# ifdef HAVE_MATH_H
24620#  include <math.h>
24621# endif
24622#endif
24623#ifdef HAVE_CFLOAT
24624# include <cfloat>
24625#else
24626# ifdef HAVE_FLOAT_H
24627#  include <float.h>
24628# endif
24629#endif
24630#ifdef HAVE_CIEEEFP
24631# include <cieeefp>
24632#else
24633# ifdef HAVE_IEEEFP_H
24634#  include <ieeefp.h>
24635# endif
24636#endif
24637
24638#ifdef F77_DUMMY_MAIN
24639
24640#  ifdef __cplusplus
24641     extern "C"
24642#  endif
24643   int F77_DUMMY_MAIN() { return 1; }
24644
24645#endif
24646int
24647main ()
24648{
24649#ifndef isnand
24650  char *p = (char *) isnand;
24651#endif
24652
24653  ;
24654  return 0;
24655}
24656_ACEOF
24657rm -f conftest.$ac_objext
24658if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24659  (eval $ac_compile) 2>conftest.er1
24660  ac_status=$?
24661  grep -v '^ *+' conftest.er1 >conftest.err
24662  rm -f conftest.er1
24663  cat conftest.err >&5
24664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24665  (exit $ac_status); } &&
24666	 { ac_try='test -z "$ac_cxx_werror_flag"
24667			 || test ! -s conftest.err'
24668  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24669  (eval $ac_try) 2>&5
24670  ac_status=$?
24671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24672  (exit $ac_status); }; } &&
24673	 { ac_try='test -s conftest.$ac_objext'
24674  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24675  (eval $ac_try) 2>&5
24676  ac_status=$?
24677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24678  (exit $ac_status); }; }; then
24679  ac_cv_have_decl_isnand=yes
24680else
24681  echo "$as_me: failed program was:" >&5
24682sed 's/^/| /' conftest.$ac_ext >&5
24683
24684ac_cv_have_decl_isnand=no
24685fi
24686rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24687fi
24688echo "$as_me:$LINENO: result: $ac_cv_have_decl_isnand" >&5
24689echo "${ECHO_T}$ac_cv_have_decl_isnand" >&6
24690if test $ac_cv_have_decl_isnand = yes; then
24691  COIN_C_ISNAN=isnand
24692fi
24693
24694fi
24695if test -z "$COIN_C_ISNAN"; then
24696  { echo "$as_me:$LINENO: WARNING: Cannot find C-function for checking NaN." >&5
24697echo "$as_me: WARNING: Cannot find C-function for checking NaN." >&2;}
24698else
24699
24700cat >>confdefs.h <<_ACEOF
24701#define COIN_C_ISNAN $COIN_C_ISNAN
24702_ACEOF
24703
24704fi
24705
24706ac_ext=c
24707ac_cpp='$CPP $CPPFLAGS'
24708ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24709ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24710ac_compiler_gnu=$ac_cv_c_compiler_gnu
24711
24712
24713
24714#############################################################################
24715#                         Thread configuration                              #
24716#############################################################################
24717
24718# Define new options:
24719#    --enable-coinutils-threads
24720#    --enable-coinutils-mempool-override-new
24721#    --enable-coinutils-mempool-maxpooled
24722
24723ac_ext=cc
24724ac_cpp='$CXXCPP $CPPFLAGS'
24725ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24726ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24727ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24728
24729
24730# Check whether --enable-coinutils-threads or --disable-coinutils-threads was given.
24731if test "${enable_coinutils_threads+set}" = set; then
24732  enableval="$enable_coinutils_threads"
24733
24734fi;
24735
24736if test "$enable_coinutils_threads" = yes; then
24737  # Define the preprocessor macro
24738
24739cat >>confdefs.h <<\_ACEOF
24740#define COINUTILS_PTHREADS 1
24741_ACEOF
24742
24743  echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
24744echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
24745if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
24746  echo $ECHO_N "(cached) $ECHO_C" >&6
24747else
24748  ac_check_lib_save_LIBS=$LIBS
24749LIBS="-lrt  $LIBS"
24750cat >conftest.$ac_ext <<_ACEOF
24751/* confdefs.h.  */
24752_ACEOF
24753cat confdefs.h >>conftest.$ac_ext
24754cat >>conftest.$ac_ext <<_ACEOF
24755/* end confdefs.h.  */
24756
24757/* Override any gcc2 internal prototype to avoid an error.  */
24758#ifdef __cplusplus
24759extern "C"
24760#endif
24761/* We use char because int might match the return type of a gcc2
24762   builtin and then its argument prototype would still apply.  */
24763char clock_gettime ();
24764#ifdef F77_DUMMY_MAIN
24765
24766#  ifdef __cplusplus
24767     extern "C"
24768#  endif
24769   int F77_DUMMY_MAIN() { return 1; }
24770
24771#endif
24772int
24773main ()
24774{
24775clock_gettime ();
24776  ;
24777  return 0;
24778}
24779_ACEOF
24780rm -f conftest.$ac_objext conftest$ac_exeext
24781if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24782  (eval $ac_link) 2>conftest.er1
24783  ac_status=$?
24784  grep -v '^ *+' conftest.er1 >conftest.err
24785  rm -f conftest.er1
24786  cat conftest.err >&5
24787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24788  (exit $ac_status); } &&
24789	 { ac_try='test -z "$ac_cxx_werror_flag"
24790			 || test ! -s conftest.err'
24791  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24792  (eval $ac_try) 2>&5
24793  ac_status=$?
24794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24795  (exit $ac_status); }; } &&
24796	 { ac_try='test -s conftest$ac_exeext'
24797  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24798  (eval $ac_try) 2>&5
24799  ac_status=$?
24800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24801  (exit $ac_status); }; }; then
24802  ac_cv_lib_rt_clock_gettime=yes
24803else
24804  echo "$as_me: failed program was:" >&5
24805sed 's/^/| /' conftest.$ac_ext >&5
24806
24807ac_cv_lib_rt_clock_gettime=no
24808fi
24809rm -f conftest.err conftest.$ac_objext \
24810      conftest$ac_exeext conftest.$ac_ext
24811LIBS=$ac_check_lib_save_LIBS
24812fi
24813echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
24814echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
24815if test $ac_cv_lib_rt_clock_gettime = yes; then
24816  COINUTILSLIB_LIBS="-lrt $COINUTILSLIB_LIBS"
24817                COINUTILSLIB_PCLIBS="-lrt $COINUTILSLIB_PCLIBS"
24818else
24819  { { echo "$as_me:$LINENO: error: --enable-coinutils-threads selected, but -lrt unavailable" >&5
24820echo "$as_me: error: --enable-coinutils-threads selected, but -lrt unavailable" >&2;}
24821   { (exit 1); exit 1; }; }
24822fi
24823
24824  echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
24825echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
24826if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
24827  echo $ECHO_N "(cached) $ECHO_C" >&6
24828else
24829  ac_check_lib_save_LIBS=$LIBS
24830LIBS="-lpthread  $LIBS"
24831cat >conftest.$ac_ext <<_ACEOF
24832/* confdefs.h.  */
24833_ACEOF
24834cat confdefs.h >>conftest.$ac_ext
24835cat >>conftest.$ac_ext <<_ACEOF
24836/* end confdefs.h.  */
24837
24838/* Override any gcc2 internal prototype to avoid an error.  */
24839#ifdef __cplusplus
24840extern "C"
24841#endif
24842/* We use char because int might match the return type of a gcc2
24843   builtin and then its argument prototype would still apply.  */
24844char pthread_create ();
24845#ifdef F77_DUMMY_MAIN
24846
24847#  ifdef __cplusplus
24848     extern "C"
24849#  endif
24850   int F77_DUMMY_MAIN() { return 1; }
24851
24852#endif
24853int
24854main ()
24855{
24856pthread_create ();
24857  ;
24858  return 0;
24859}
24860_ACEOF
24861rm -f conftest.$ac_objext conftest$ac_exeext
24862if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24863  (eval $ac_link) 2>conftest.er1
24864  ac_status=$?
24865  grep -v '^ *+' conftest.er1 >conftest.err
24866  rm -f conftest.er1
24867  cat conftest.err >&5
24868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24869  (exit $ac_status); } &&
24870	 { ac_try='test -z "$ac_cxx_werror_flag"
24871			 || test ! -s conftest.err'
24872  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24873  (eval $ac_try) 2>&5
24874  ac_status=$?
24875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24876  (exit $ac_status); }; } &&
24877	 { ac_try='test -s conftest$ac_exeext'
24878  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24879  (eval $ac_try) 2>&5
24880  ac_status=$?
24881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24882  (exit $ac_status); }; }; then
24883  ac_cv_lib_pthread_pthread_create=yes
24884else
24885  echo "$as_me: failed program was:" >&5
24886sed 's/^/| /' conftest.$ac_ext >&5
24887
24888ac_cv_lib_pthread_pthread_create=no
24889fi
24890rm -f conftest.err conftest.$ac_objext \
24891      conftest$ac_exeext conftest.$ac_ext
24892LIBS=$ac_check_lib_save_LIBS
24893fi
24894echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
24895echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
24896if test $ac_cv_lib_pthread_pthread_create = yes; then
24897  COINUTILSLIB_LIBS="-lpthread $COINUTILSLIB_LIBS"
24898                COINUTILSLIB_PCLIBS="-lpthread $COINUTILSLIB_PCLIBS"
24899else
24900  { { echo "$as_me:$LINENO: error: --enable-coinutils-threads selected, but -lpthreads unavailable" >&5
24901echo "$as_me: error: --enable-coinutils-threads selected, but -lpthreads unavailable" >&2;}
24902   { (exit 1); exit 1; }; }
24903fi
24904
24905fi
24906
24907# Check whether --enable-coinutils-mempool-override-new or --disable-coinutils-mempool-override-new was given.
24908if test "${enable_coinutils_mempool_override_new+set}" = set; then
24909  enableval="$enable_coinutils_mempool_override_new"
24910
24911fi;
24912
24913if test "$enable_coinutils_mempool_override_new" = yes; then
24914
24915cat >>confdefs.h <<\_ACEOF
24916#define COINUTILS_MEMPOOL_OVERRIDE_NEW 1
24917_ACEOF
24918
24919fi
24920
24921# Check whether --enable-coinutils-mempool-maxpooled or --disable-coinutils-mempool-maxpooled was given.
24922if test "${enable_coinutils_mempool_maxpooled+set}" = set; then
24923  enableval="$enable_coinutils_mempool_maxpooled"
24924
24925fi;
24926
24927if test "$enable_coinutils_mempool_maxpooled" = yes; then
24928
24929cat >>confdefs.h <<\_ACEOF
24930#define COINUTILS_MEMPOOL_MAXPOOLED 4096
24931_ACEOF
24932
24933elif test "$enable_coinutils_mempool_maxpooled" = no; then
24934
24935cat >>confdefs.h <<\_ACEOF
24936#define COINUTILS_MEMPOOL_MAXPOOLED -1
24937_ACEOF
24938
24939elif test x"$enable_coinutils_mempool_maxpooled" = x; then
24940
24941cat >>confdefs.h <<\_ACEOF
24942#define COINUTILS_MEMPOOL_MAXPOOLED -1
24943_ACEOF
24944
24945else
24946
24947cat >>confdefs.h <<_ACEOF
24948#define COINUTILS_MEMPOOL_MAXPOOLED ${enable_coinutils_mempool_maxpooled}
24949_ACEOF
24950
24951fi
24952
24953#############################################################################
24954#                       Finding certain integer types                       #
24955#############################################################################
24956
24957ac_ext=cc
24958ac_cpp='$CXXCPP $CPPFLAGS'
24959ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24960ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24961ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24962
24963#if test x"" = x; then
24964#  hdr="#include <cinttypes>"
24965#else
24966#  hdr=""
24967#fi
24968#AC_CHECK_HEADERS([cinttypes],[],[],[$hdr])
24969
24970for ac_header in cinttypes
24971do
24972as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24973if eval "test \"\${$as_ac_Header+set}\" = set"; then
24974  echo "$as_me:$LINENO: checking for $ac_header" >&5
24975echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24976if eval "test \"\${$as_ac_Header+set}\" = set"; then
24977  echo $ECHO_N "(cached) $ECHO_C" >&6
24978fi
24979echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24980echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24981else
24982  # Is the header compilable?
24983echo "$as_me:$LINENO: checking $ac_header usability" >&5
24984echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24985cat >conftest.$ac_ext <<_ACEOF
24986/* confdefs.h.  */
24987_ACEOF
24988cat confdefs.h >>conftest.$ac_ext
24989cat >>conftest.$ac_ext <<_ACEOF
24990/* end confdefs.h.  */
24991$ac_includes_default
24992#include <$ac_header>
24993_ACEOF
24994rm -f conftest.$ac_objext
24995if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24996  (eval $ac_compile) 2>conftest.er1
24997  ac_status=$?
24998  grep -v '^ *+' conftest.er1 >conftest.err
24999  rm -f conftest.er1
25000  cat conftest.err >&5
25001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25002  (exit $ac_status); } &&
25003	 { ac_try='test -z "$ac_cxx_werror_flag"
25004			 || test ! -s conftest.err'
25005  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25006  (eval $ac_try) 2>&5
25007  ac_status=$?
25008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25009  (exit $ac_status); }; } &&
25010	 { ac_try='test -s conftest.$ac_objext'
25011  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25012  (eval $ac_try) 2>&5
25013  ac_status=$?
25014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25015  (exit $ac_status); }; }; then
25016  ac_header_compiler=yes
25017else
25018  echo "$as_me: failed program was:" >&5
25019sed 's/^/| /' conftest.$ac_ext >&5
25020
25021ac_header_compiler=no
25022fi
25023rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25024echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25025echo "${ECHO_T}$ac_header_compiler" >&6
25026
25027# Is the header present?
25028echo "$as_me:$LINENO: checking $ac_header presence" >&5
25029echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25030cat >conftest.$ac_ext <<_ACEOF
25031/* confdefs.h.  */
25032_ACEOF
25033cat confdefs.h >>conftest.$ac_ext
25034cat >>conftest.$ac_ext <<_ACEOF
25035/* end confdefs.h.  */
25036#include <$ac_header>
25037_ACEOF
25038if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25039  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25040  ac_status=$?
25041  grep -v '^ *+' conftest.er1 >conftest.err
25042  rm -f conftest.er1
25043  cat conftest.err >&5
25044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25045  (exit $ac_status); } >/dev/null; then
25046  if test -s conftest.err; then
25047    ac_cpp_err=$ac_cxx_preproc_warn_flag
25048    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
25049  else
25050    ac_cpp_err=
25051  fi
25052else
25053  ac_cpp_err=yes
25054fi
25055if test -z "$ac_cpp_err"; then
25056  ac_header_preproc=yes
25057else
25058  echo "$as_me: failed program was:" >&5
25059sed 's/^/| /' conftest.$ac_ext >&5
25060
25061  ac_header_preproc=no
25062fi
25063rm -f conftest.err conftest.$ac_ext
25064echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25065echo "${ECHO_T}$ac_header_preproc" >&6
25066
25067# So?  What about this header?
25068case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25069  yes:no: )
25070    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25071echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25072    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25073echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25074    ac_header_preproc=yes
25075    ;;
25076  no:yes:* )
25077    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25078echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25079    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25080echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25081    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25082echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25083    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25084echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25085    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25086echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25087    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25088echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25089    (
25090      cat <<\_ASBOX
25091## ---------------------------------------------------- ##
25092## Report this to http://projects.coin-or.org/CoinUtils ##
25093## ---------------------------------------------------- ##
25094_ASBOX
25095    ) |
25096      sed "s/^/$as_me: WARNING:     /" >&2
25097    ;;
25098esac
25099echo "$as_me:$LINENO: checking for $ac_header" >&5
25100echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25101if eval "test \"\${$as_ac_Header+set}\" = set"; then
25102  echo $ECHO_N "(cached) $ECHO_C" >&6
25103else
25104  eval "$as_ac_Header=\$ac_header_preproc"
25105fi
25106echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25107echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25108
25109fi
25110if test `eval echo '${'$as_ac_Header'}'` = yes; then
25111  cat >>confdefs.h <<_ACEOF
25112#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25113_ACEOF
25114
25115fi
25116
25117done
25118
25119
25120if test "$ac_cv_header_cinttypes" != "yes"; then
25121  #if test x"" = x; then
25122#  hdr="#include <inttypes.h>"
25123#else
25124#  hdr=""
25125#fi
25126#AC_CHECK_HEADERS([inttypes.h],[],[],[$hdr])
25127
25128for ac_header in inttypes.h
25129do
25130as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25131if eval "test \"\${$as_ac_Header+set}\" = set"; then
25132  echo "$as_me:$LINENO: checking for $ac_header" >&5
25133echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25134if eval "test \"\${$as_ac_Header+set}\" = set"; then
25135  echo $ECHO_N "(cached) $ECHO_C" >&6
25136fi
25137echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25138echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25139else
25140  # Is the header compilable?
25141echo "$as_me:$LINENO: checking $ac_header usability" >&5
25142echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25143cat >conftest.$ac_ext <<_ACEOF
25144/* confdefs.h.  */
25145_ACEOF
25146cat confdefs.h >>conftest.$ac_ext
25147cat >>conftest.$ac_ext <<_ACEOF
25148/* end confdefs.h.  */
25149$ac_includes_default
25150#include <$ac_header>
25151_ACEOF
25152rm -f conftest.$ac_objext
25153if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25154  (eval $ac_compile) 2>conftest.er1
25155  ac_status=$?
25156  grep -v '^ *+' conftest.er1 >conftest.err
25157  rm -f conftest.er1
25158  cat conftest.err >&5
25159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25160  (exit $ac_status); } &&
25161	 { ac_try='test -z "$ac_cxx_werror_flag"
25162			 || test ! -s conftest.err'
25163  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25164  (eval $ac_try) 2>&5
25165  ac_status=$?
25166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25167  (exit $ac_status); }; } &&
25168	 { ac_try='test -s conftest.$ac_objext'
25169  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25170  (eval $ac_try) 2>&5
25171  ac_status=$?
25172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25173  (exit $ac_status); }; }; then
25174  ac_header_compiler=yes
25175else
25176  echo "$as_me: failed program was:" >&5
25177sed 's/^/| /' conftest.$ac_ext >&5
25178
25179ac_header_compiler=no
25180fi
25181rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25182echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25183echo "${ECHO_T}$ac_header_compiler" >&6
25184
25185# Is the header present?
25186echo "$as_me:$LINENO: checking $ac_header presence" >&5
25187echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25188cat >conftest.$ac_ext <<_ACEOF
25189/* confdefs.h.  */
25190_ACEOF
25191cat confdefs.h >>conftest.$ac_ext
25192cat >>conftest.$ac_ext <<_ACEOF
25193/* end confdefs.h.  */
25194#include <$ac_header>
25195_ACEOF
25196if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25197  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25198  ac_status=$?
25199  grep -v '^ *+' conftest.er1 >conftest.err
25200  rm -f conftest.er1
25201  cat conftest.err >&5
25202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25203  (exit $ac_status); } >/dev/null; then
25204  if test -s conftest.err; then
25205    ac_cpp_err=$ac_cxx_preproc_warn_flag
25206    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
25207  else
25208    ac_cpp_err=
25209  fi
25210else
25211  ac_cpp_err=yes
25212fi
25213if test -z "$ac_cpp_err"; then
25214  ac_header_preproc=yes
25215else
25216  echo "$as_me: failed program was:" >&5
25217sed 's/^/| /' conftest.$ac_ext >&5
25218
25219  ac_header_preproc=no
25220fi
25221rm -f conftest.err conftest.$ac_ext
25222echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25223echo "${ECHO_T}$ac_header_preproc" >&6
25224
25225# So?  What about this header?
25226case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25227  yes:no: )
25228    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25229echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25230    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25231echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25232    ac_header_preproc=yes
25233    ;;
25234  no:yes:* )
25235    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25236echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25237    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25238echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25239    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25240echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25241    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25242echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25243    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25244echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25245    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25246echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25247    (
25248      cat <<\_ASBOX
25249## ---------------------------------------------------- ##
25250## Report this to http://projects.coin-or.org/CoinUtils ##
25251## ---------------------------------------------------- ##
25252_ASBOX
25253    ) |
25254      sed "s/^/$as_me: WARNING:     /" >&2
25255    ;;
25256esac
25257echo "$as_me:$LINENO: checking for $ac_header" >&5
25258echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25259if eval "test \"\${$as_ac_Header+set}\" = set"; then
25260  echo $ECHO_N "(cached) $ECHO_C" >&6
25261else
25262  eval "$as_ac_Header=\$ac_header_preproc"
25263fi
25264echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25265echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25266
25267fi
25268if test `eval echo '${'$as_ac_Header'}'` = yes; then
25269  cat >>confdefs.h <<_ACEOF
25270#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25271_ACEOF
25272
25273fi
25274
25275done
25276
25277
25278fi
25279ac_ext=cc
25280ac_cpp='$CXXCPP $CPPFLAGS'
25281ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25282ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25283ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25284
25285
25286ac_ext=cc
25287ac_cpp='$CXXCPP $CPPFLAGS'
25288ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25289ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25290ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25291
25292#if test x"" = x; then
25293#  hdr="#include <cstdint>"
25294#else
25295#  hdr=""
25296#fi
25297#AC_CHECK_HEADERS([cstdint],[],[],[$hdr])
25298
25299for ac_header in cstdint
25300do
25301as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25302if eval "test \"\${$as_ac_Header+set}\" = set"; then
25303  echo "$as_me:$LINENO: checking for $ac_header" >&5
25304echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25305if eval "test \"\${$as_ac_Header+set}\" = set"; then
25306  echo $ECHO_N "(cached) $ECHO_C" >&6
25307fi
25308echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25309echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25310else
25311  # Is the header compilable?
25312echo "$as_me:$LINENO: checking $ac_header usability" >&5
25313echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25314cat >conftest.$ac_ext <<_ACEOF
25315/* confdefs.h.  */
25316_ACEOF
25317cat confdefs.h >>conftest.$ac_ext
25318cat >>conftest.$ac_ext <<_ACEOF
25319/* end confdefs.h.  */
25320$ac_includes_default
25321#include <$ac_header>
25322_ACEOF
25323rm -f conftest.$ac_objext
25324if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25325  (eval $ac_compile) 2>conftest.er1
25326  ac_status=$?
25327  grep -v '^ *+' conftest.er1 >conftest.err
25328  rm -f conftest.er1
25329  cat conftest.err >&5
25330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25331  (exit $ac_status); } &&
25332	 { ac_try='test -z "$ac_cxx_werror_flag"
25333			 || test ! -s conftest.err'
25334  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25335  (eval $ac_try) 2>&5
25336  ac_status=$?
25337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25338  (exit $ac_status); }; } &&
25339	 { ac_try='test -s conftest.$ac_objext'
25340  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25341  (eval $ac_try) 2>&5
25342  ac_status=$?
25343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25344  (exit $ac_status); }; }; then
25345  ac_header_compiler=yes
25346else
25347  echo "$as_me: failed program was:" >&5
25348sed 's/^/| /' conftest.$ac_ext >&5
25349
25350ac_header_compiler=no
25351fi
25352rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25353echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25354echo "${ECHO_T}$ac_header_compiler" >&6
25355
25356# Is the header present?
25357echo "$as_me:$LINENO: checking $ac_header presence" >&5
25358echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25359cat >conftest.$ac_ext <<_ACEOF
25360/* confdefs.h.  */
25361_ACEOF
25362cat confdefs.h >>conftest.$ac_ext
25363cat >>conftest.$ac_ext <<_ACEOF
25364/* end confdefs.h.  */
25365#include <$ac_header>
25366_ACEOF
25367if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25368  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25369  ac_status=$?
25370  grep -v '^ *+' conftest.er1 >conftest.err
25371  rm -f conftest.er1
25372  cat conftest.err >&5
25373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25374  (exit $ac_status); } >/dev/null; then
25375  if test -s conftest.err; then
25376    ac_cpp_err=$ac_cxx_preproc_warn_flag
25377    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
25378  else
25379    ac_cpp_err=
25380  fi
25381else
25382  ac_cpp_err=yes
25383fi
25384if test -z "$ac_cpp_err"; then
25385  ac_header_preproc=yes
25386else
25387  echo "$as_me: failed program was:" >&5
25388sed 's/^/| /' conftest.$ac_ext >&5
25389
25390  ac_header_preproc=no
25391fi
25392rm -f conftest.err conftest.$ac_ext
25393echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25394echo "${ECHO_T}$ac_header_preproc" >&6
25395
25396# So?  What about this header?
25397case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25398  yes:no: )
25399    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25400echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25401    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25402echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25403    ac_header_preproc=yes
25404    ;;
25405  no:yes:* )
25406    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25407echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25408    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25409echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25410    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25411echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25412    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25413echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25414    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25415echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25416    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25417echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25418    (
25419      cat <<\_ASBOX
25420## ---------------------------------------------------- ##
25421## Report this to http://projects.coin-or.org/CoinUtils ##
25422## ---------------------------------------------------- ##
25423_ASBOX
25424    ) |
25425      sed "s/^/$as_me: WARNING:     /" >&2
25426    ;;
25427esac
25428echo "$as_me:$LINENO: checking for $ac_header" >&5
25429echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25430if eval "test \"\${$as_ac_Header+set}\" = set"; then
25431  echo $ECHO_N "(cached) $ECHO_C" >&6
25432else
25433  eval "$as_ac_Header=\$ac_header_preproc"
25434fi
25435echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25436echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25437
25438fi
25439if test `eval echo '${'$as_ac_Header'}'` = yes; then
25440  cat >>confdefs.h <<_ACEOF
25441#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25442_ACEOF
25443
25444fi
25445
25446done
25447
25448
25449if test "$ac_cv_header_cstdint" != "yes"; then
25450  #if test x"" = x; then
25451#  hdr="#include <stdint.h>"
25452#else
25453#  hdr=""
25454#fi
25455#AC_CHECK_HEADERS([stdint.h],[],[],[$hdr])
25456
25457for ac_header in stdint.h
25458do
25459as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25460if eval "test \"\${$as_ac_Header+set}\" = set"; then
25461  echo "$as_me:$LINENO: checking for $ac_header" >&5
25462echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25463if eval "test \"\${$as_ac_Header+set}\" = set"; then
25464  echo $ECHO_N "(cached) $ECHO_C" >&6
25465fi
25466echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25467echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25468else
25469  # Is the header compilable?
25470echo "$as_me:$LINENO: checking $ac_header usability" >&5
25471echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25472cat >conftest.$ac_ext <<_ACEOF
25473/* confdefs.h.  */
25474_ACEOF
25475cat confdefs.h >>conftest.$ac_ext
25476cat >>conftest.$ac_ext <<_ACEOF
25477/* end confdefs.h.  */
25478$ac_includes_default
25479#include <$ac_header>
25480_ACEOF
25481rm -f conftest.$ac_objext
25482if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25483  (eval $ac_compile) 2>conftest.er1
25484  ac_status=$?
25485  grep -v '^ *+' conftest.er1 >conftest.err
25486  rm -f conftest.er1
25487  cat conftest.err >&5
25488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25489  (exit $ac_status); } &&
25490	 { ac_try='test -z "$ac_cxx_werror_flag"
25491			 || test ! -s conftest.err'
25492  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25493  (eval $ac_try) 2>&5
25494  ac_status=$?
25495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25496  (exit $ac_status); }; } &&
25497	 { ac_try='test -s conftest.$ac_objext'
25498  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25499  (eval $ac_try) 2>&5
25500  ac_status=$?
25501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25502  (exit $ac_status); }; }; then
25503  ac_header_compiler=yes
25504else
25505  echo "$as_me: failed program was:" >&5
25506sed 's/^/| /' conftest.$ac_ext >&5
25507
25508ac_header_compiler=no
25509fi
25510rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25511echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25512echo "${ECHO_T}$ac_header_compiler" >&6
25513
25514# Is the header present?
25515echo "$as_me:$LINENO: checking $ac_header presence" >&5
25516echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25517cat >conftest.$ac_ext <<_ACEOF
25518/* confdefs.h.  */
25519_ACEOF
25520cat confdefs.h >>conftest.$ac_ext
25521cat >>conftest.$ac_ext <<_ACEOF
25522/* end confdefs.h.  */
25523#include <$ac_header>
25524_ACEOF
25525if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25526  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25527  ac_status=$?
25528  grep -v '^ *+' conftest.er1 >conftest.err
25529  rm -f conftest.er1
25530  cat conftest.err >&5
25531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25532  (exit $ac_status); } >/dev/null; then
25533  if test -s conftest.err; then
25534    ac_cpp_err=$ac_cxx_preproc_warn_flag
25535    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
25536  else
25537    ac_cpp_err=
25538  fi
25539else
25540  ac_cpp_err=yes
25541fi
25542if test -z "$ac_cpp_err"; then
25543  ac_header_preproc=yes
25544else
25545  echo "$as_me: failed program was:" >&5
25546sed 's/^/| /' conftest.$ac_ext >&5
25547
25548  ac_header_preproc=no
25549fi
25550rm -f conftest.err conftest.$ac_ext
25551echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25552echo "${ECHO_T}$ac_header_preproc" >&6
25553
25554# So?  What about this header?
25555case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25556  yes:no: )
25557    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25558echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25559    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25560echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25561    ac_header_preproc=yes
25562    ;;
25563  no:yes:* )
25564    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25565echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25566    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25567echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25568    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25569echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25570    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25571echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25572    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25573echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25574    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25575echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25576    (
25577      cat <<\_ASBOX
25578## ---------------------------------------------------- ##
25579## Report this to http://projects.coin-or.org/CoinUtils ##
25580## ---------------------------------------------------- ##
25581_ASBOX
25582    ) |
25583      sed "s/^/$as_me: WARNING:     /" >&2
25584    ;;
25585esac
25586echo "$as_me:$LINENO: checking for $ac_header" >&5
25587echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25588if eval "test \"\${$as_ac_Header+set}\" = set"; then
25589  echo $ECHO_N "(cached) $ECHO_C" >&6
25590else
25591  eval "$as_ac_Header=\$ac_header_preproc"
25592fi
25593echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25594echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25595
25596fi
25597if test `eval echo '${'$as_ac_Header'}'` = yes; then
25598  cat >>confdefs.h <<_ACEOF
25599#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25600_ACEOF
25601
25602fi
25603
25604done
25605
25606
25607fi
25608ac_ext=cc
25609ac_cpp='$CXXCPP $CPPFLAGS'
25610ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25611ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25612ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25613
25614
25615
25616##### 64bit Integer types
25617# The problem here is that you can't extend `int64_t' to `unsigned int64_t'.
25618# So we need distinct CoinInt64 and CoinUInt64. It should be safe to assume
25619# uint64_t, given int64_t.
25620CoinInt64=
25621CoinUInt64=
25622
25623# try int64_t
25624echo "$as_me:$LINENO: checking for int64_t" >&5
25625echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
25626if test "${ac_cv_type_int64_t+set}" = set; then
25627  echo $ECHO_N "(cached) $ECHO_C" >&6
25628else
25629  cat >conftest.$ac_ext <<_ACEOF
25630/* confdefs.h.  */
25631_ACEOF
25632cat confdefs.h >>conftest.$ac_ext
25633cat >>conftest.$ac_ext <<_ACEOF
25634/* end confdefs.h.  */
25635
25636#ifdef HAVE_CINTTYPES
25637# include <cinttypes>
25638#else
25639# ifdef HAVE_INTTYPES_H
25640#  include <inttypes.h>
25641# endif
25642#endif
25643
25644
25645#ifdef F77_DUMMY_MAIN
25646
25647#  ifdef __cplusplus
25648     extern "C"
25649#  endif
25650   int F77_DUMMY_MAIN() { return 1; }
25651
25652#endif
25653int
25654main ()
25655{
25656if ((int64_t *) 0)
25657  return 0;
25658if (sizeof (int64_t))
25659  return 0;
25660  ;
25661  return 0;
25662}
25663_ACEOF
25664rm -f conftest.$ac_objext
25665if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25666  (eval $ac_compile) 2>conftest.er1
25667  ac_status=$?
25668  grep -v '^ *+' conftest.er1 >conftest.err
25669  rm -f conftest.er1
25670  cat conftest.err >&5
25671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25672  (exit $ac_status); } &&
25673	 { ac_try='test -z "$ac_cxx_werror_flag"
25674			 || test ! -s conftest.err'
25675  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25676  (eval $ac_try) 2>&5
25677  ac_status=$?
25678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25679  (exit $ac_status); }; } &&
25680	 { ac_try='test -s conftest.$ac_objext'
25681  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25682  (eval $ac_try) 2>&5
25683  ac_status=$?
25684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25685  (exit $ac_status); }; }; then
25686  ac_cv_type_int64_t=yes
25687else
25688  echo "$as_me: failed program was:" >&5
25689sed 's/^/| /' conftest.$ac_ext >&5
25690
25691ac_cv_type_int64_t=no
25692fi
25693rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25694fi
25695echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
25696echo "${ECHO_T}$ac_cv_type_int64_t" >&6
25697if test $ac_cv_type_int64_t = yes; then
25698  CoinInt64=int64_t ; CoinUInt64=uint64_t
25699fi
25700
25701
25702# We need to use the C compiler in the AC_CHECK_SIZEOF since otherwise the
25703# MSCV compiler complains about redefinition of "exit". ac_cv_sizeof_<type>
25704# sometimes adds `^M' to the number, hence the check for `8?'.
25705ac_ext=c
25706ac_cpp='$CPP $CPPFLAGS'
25707ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25708ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25709ac_compiler_gnu=$ac_cv_c_compiler_gnu
25710
25711# try long long
25712if test x"$CoinInt64" = x; then
25713  echo "$as_me:$LINENO: checking for long long" >&5
25714echo $ECHO_N "checking for long long... $ECHO_C" >&6
25715if test "${ac_cv_type_long_long+set}" = set; then
25716  echo $ECHO_N "(cached) $ECHO_C" >&6
25717else
25718  cat >conftest.$ac_ext <<_ACEOF
25719/* confdefs.h.  */
25720_ACEOF
25721cat confdefs.h >>conftest.$ac_ext
25722cat >>conftest.$ac_ext <<_ACEOF
25723/* end confdefs.h.  */
25724$ac_includes_default
25725#ifdef F77_DUMMY_MAIN
25726
25727#  ifdef __cplusplus
25728     extern "C"
25729#  endif
25730   int F77_DUMMY_MAIN() { return 1; }
25731
25732#endif
25733int
25734main ()
25735{
25736if ((long long *) 0)
25737  return 0;
25738if (sizeof (long long))
25739  return 0;
25740  ;
25741  return 0;
25742}
25743_ACEOF
25744rm -f conftest.$ac_objext
25745if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25746  (eval $ac_compile) 2>conftest.er1
25747  ac_status=$?
25748  grep -v '^ *+' conftest.er1 >conftest.err
25749  rm -f conftest.er1
25750  cat conftest.err >&5
25751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25752  (exit $ac_status); } &&
25753	 { ac_try='test -z "$ac_c_werror_flag"
25754			 || test ! -s conftest.err'
25755  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25756  (eval $ac_try) 2>&5
25757  ac_status=$?
25758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25759  (exit $ac_status); }; } &&
25760	 { ac_try='test -s conftest.$ac_objext'
25761  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25762  (eval $ac_try) 2>&5
25763  ac_status=$?
25764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25765  (exit $ac_status); }; }; then
25766  ac_cv_type_long_long=yes
25767else
25768  echo "$as_me: failed program was:" >&5
25769sed 's/^/| /' conftest.$ac_ext >&5
25770
25771ac_cv_type_long_long=no
25772fi
25773rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25774fi
25775echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
25776echo "${ECHO_T}$ac_cv_type_long_long" >&6
25777
25778echo "$as_me:$LINENO: checking size of long long" >&5
25779echo $ECHO_N "checking size of long long... $ECHO_C" >&6
25780if test "${ac_cv_sizeof_long_long+set}" = set; then
25781  echo $ECHO_N "(cached) $ECHO_C" >&6
25782else
25783  if test "$ac_cv_type_long_long" = yes; then
25784  # The cast to unsigned long works around a bug in the HP C Compiler
25785  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25786  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25787  # This bug is HP SR number 8606223364.
25788  if test "$cross_compiling" = yes; then
25789  # Depending upon the size, compute the lo and hi bounds.
25790cat >conftest.$ac_ext <<_ACEOF
25791/* confdefs.h.  */
25792_ACEOF
25793cat confdefs.h >>conftest.$ac_ext
25794cat >>conftest.$ac_ext <<_ACEOF
25795/* end confdefs.h.  */
25796$ac_includes_default
25797#ifdef F77_DUMMY_MAIN
25798
25799#  ifdef __cplusplus
25800     extern "C"
25801#  endif
25802   int F77_DUMMY_MAIN() { return 1; }
25803
25804#endif
25805int
25806main ()
25807{
25808static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
25809test_array [0] = 0
25810
25811  ;
25812  return 0;
25813}
25814_ACEOF
25815rm -f conftest.$ac_objext
25816if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25817  (eval $ac_compile) 2>conftest.er1
25818  ac_status=$?
25819  grep -v '^ *+' conftest.er1 >conftest.err
25820  rm -f conftest.er1
25821  cat conftest.err >&5
25822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25823  (exit $ac_status); } &&
25824	 { ac_try='test -z "$ac_c_werror_flag"
25825			 || test ! -s conftest.err'
25826  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25827  (eval $ac_try) 2>&5
25828  ac_status=$?
25829  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25830  (exit $ac_status); }; } &&
25831	 { ac_try='test -s conftest.$ac_objext'
25832  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25833  (eval $ac_try) 2>&5
25834  ac_status=$?
25835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25836  (exit $ac_status); }; }; then
25837  ac_lo=0 ac_mid=0
25838  while :; do
25839    cat >conftest.$ac_ext <<_ACEOF
25840/* confdefs.h.  */
25841_ACEOF
25842cat confdefs.h >>conftest.$ac_ext
25843cat >>conftest.$ac_ext <<_ACEOF
25844/* end confdefs.h.  */
25845$ac_includes_default
25846#ifdef F77_DUMMY_MAIN
25847
25848#  ifdef __cplusplus
25849     extern "C"
25850#  endif
25851   int F77_DUMMY_MAIN() { return 1; }
25852
25853#endif
25854int
25855main ()
25856{
25857static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
25858test_array [0] = 0
25859
25860  ;
25861  return 0;
25862}
25863_ACEOF
25864rm -f conftest.$ac_objext
25865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25866  (eval $ac_compile) 2>conftest.er1
25867  ac_status=$?
25868  grep -v '^ *+' conftest.er1 >conftest.err
25869  rm -f conftest.er1
25870  cat conftest.err >&5
25871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25872  (exit $ac_status); } &&
25873	 { ac_try='test -z "$ac_c_werror_flag"
25874			 || test ! -s conftest.err'
25875  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25876  (eval $ac_try) 2>&5
25877  ac_status=$?
25878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25879  (exit $ac_status); }; } &&
25880	 { ac_try='test -s conftest.$ac_objext'
25881  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25882  (eval $ac_try) 2>&5
25883  ac_status=$?
25884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25885  (exit $ac_status); }; }; then
25886  ac_hi=$ac_mid; break
25887else
25888  echo "$as_me: failed program was:" >&5
25889sed 's/^/| /' conftest.$ac_ext >&5
25890
25891ac_lo=`expr $ac_mid + 1`
25892		    if test $ac_lo -le $ac_mid; then
25893		      ac_lo= ac_hi=
25894		      break
25895		    fi
25896		    ac_mid=`expr 2 '*' $ac_mid + 1`
25897fi
25898rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25899  done
25900else
25901  echo "$as_me: failed program was:" >&5
25902sed 's/^/| /' conftest.$ac_ext >&5
25903
25904cat >conftest.$ac_ext <<_ACEOF
25905/* confdefs.h.  */
25906_ACEOF
25907cat confdefs.h >>conftest.$ac_ext
25908cat >>conftest.$ac_ext <<_ACEOF
25909/* end confdefs.h.  */
25910$ac_includes_default
25911#ifdef F77_DUMMY_MAIN
25912
25913#  ifdef __cplusplus
25914     extern "C"
25915#  endif
25916   int F77_DUMMY_MAIN() { return 1; }
25917
25918#endif
25919int
25920main ()
25921{
25922static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
25923test_array [0] = 0
25924
25925  ;
25926  return 0;
25927}
25928_ACEOF
25929rm -f conftest.$ac_objext
25930if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25931  (eval $ac_compile) 2>conftest.er1
25932  ac_status=$?
25933  grep -v '^ *+' conftest.er1 >conftest.err
25934  rm -f conftest.er1
25935  cat conftest.err >&5
25936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25937  (exit $ac_status); } &&
25938	 { ac_try='test -z "$ac_c_werror_flag"
25939			 || test ! -s conftest.err'
25940  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25941  (eval $ac_try) 2>&5
25942  ac_status=$?
25943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25944  (exit $ac_status); }; } &&
25945	 { ac_try='test -s conftest.$ac_objext'
25946  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25947  (eval $ac_try) 2>&5
25948  ac_status=$?
25949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25950  (exit $ac_status); }; }; then
25951  ac_hi=-1 ac_mid=-1
25952  while :; do
25953    cat >conftest.$ac_ext <<_ACEOF
25954/* confdefs.h.  */
25955_ACEOF
25956cat confdefs.h >>conftest.$ac_ext
25957cat >>conftest.$ac_ext <<_ACEOF
25958/* end confdefs.h.  */
25959$ac_includes_default
25960#ifdef F77_DUMMY_MAIN
25961
25962#  ifdef __cplusplus
25963     extern "C"
25964#  endif
25965   int F77_DUMMY_MAIN() { return 1; }
25966
25967#endif
25968int
25969main ()
25970{
25971static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
25972test_array [0] = 0
25973
25974  ;
25975  return 0;
25976}
25977_ACEOF
25978rm -f conftest.$ac_objext
25979if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25980  (eval $ac_compile) 2>conftest.er1
25981  ac_status=$?
25982  grep -v '^ *+' conftest.er1 >conftest.err
25983  rm -f conftest.er1
25984  cat conftest.err >&5
25985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25986  (exit $ac_status); } &&
25987	 { ac_try='test -z "$ac_c_werror_flag"
25988			 || test ! -s conftest.err'
25989  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25990  (eval $ac_try) 2>&5
25991  ac_status=$?
25992  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25993  (exit $ac_status); }; } &&
25994	 { ac_try='test -s conftest.$ac_objext'
25995  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25996  (eval $ac_try) 2>&5
25997  ac_status=$?
25998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25999  (exit $ac_status); }; }; then
26000  ac_lo=$ac_mid; break
26001else
26002  echo "$as_me: failed program was:" >&5
26003sed 's/^/| /' conftest.$ac_ext >&5
26004
26005ac_hi=`expr '(' $ac_mid ')' - 1`
26006		       if test $ac_mid -le $ac_hi; then
26007			 ac_lo= ac_hi=
26008			 break
26009		       fi
26010		       ac_mid=`expr 2 '*' $ac_mid`
26011fi
26012rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26013  done
26014else
26015  echo "$as_me: failed program was:" >&5
26016sed 's/^/| /' conftest.$ac_ext >&5
26017
26018ac_lo= ac_hi=
26019fi
26020rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26021fi
26022rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26023# Binary search between lo and hi bounds.
26024while test "x$ac_lo" != "x$ac_hi"; do
26025  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26026  cat >conftest.$ac_ext <<_ACEOF
26027/* confdefs.h.  */
26028_ACEOF
26029cat confdefs.h >>conftest.$ac_ext
26030cat >>conftest.$ac_ext <<_ACEOF
26031/* end confdefs.h.  */
26032$ac_includes_default
26033#ifdef F77_DUMMY_MAIN
26034
26035#  ifdef __cplusplus
26036     extern "C"
26037#  endif
26038   int F77_DUMMY_MAIN() { return 1; }
26039
26040#endif
26041int
26042main ()
26043{
26044static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
26045test_array [0] = 0
26046
26047  ;
26048  return 0;
26049}
26050_ACEOF
26051rm -f conftest.$ac_objext
26052if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26053  (eval $ac_compile) 2>conftest.er1
26054  ac_status=$?
26055  grep -v '^ *+' conftest.er1 >conftest.err
26056  rm -f conftest.er1
26057  cat conftest.err >&5
26058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26059  (exit $ac_status); } &&
26060	 { ac_try='test -z "$ac_c_werror_flag"
26061			 || test ! -s conftest.err'
26062  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26063  (eval $ac_try) 2>&5
26064  ac_status=$?
26065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26066  (exit $ac_status); }; } &&
26067	 { ac_try='test -s conftest.$ac_objext'
26068  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26069  (eval $ac_try) 2>&5
26070  ac_status=$?
26071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26072  (exit $ac_status); }; }; then
26073  ac_hi=$ac_mid
26074else
26075  echo "$as_me: failed program was:" >&5
26076sed 's/^/| /' conftest.$ac_ext >&5
26077
26078ac_lo=`expr '(' $ac_mid ')' + 1`
26079fi
26080rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26081done
26082case $ac_lo in
26083?*) ac_cv_sizeof_long_long=$ac_lo;;
26084'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
26085See \`config.log' for more details." >&5
26086echo "$as_me: error: cannot compute sizeof (long long), 77
26087See \`config.log' for more details." >&2;}
26088   { (exit 1); exit 1; }; } ;;
26089esac
26090else
26091  if test "$cross_compiling" = yes; then
26092  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
26093See \`config.log' for more details." >&5
26094echo "$as_me: error: cannot run test program while cross compiling
26095See \`config.log' for more details." >&2;}
26096   { (exit 1); exit 1; }; }
26097else
26098  cat >conftest.$ac_ext <<_ACEOF
26099/* confdefs.h.  */
26100_ACEOF
26101cat confdefs.h >>conftest.$ac_ext
26102cat >>conftest.$ac_ext <<_ACEOF
26103/* end confdefs.h.  */
26104$ac_includes_default
26105long longval () { return (long) (sizeof (long long)); }
26106unsigned long ulongval () { return (long) (sizeof (long long)); }
26107#include <stdio.h>
26108#include <stdlib.h>
26109#ifdef F77_DUMMY_MAIN
26110
26111#  ifdef __cplusplus
26112     extern "C"
26113#  endif
26114   int F77_DUMMY_MAIN() { return 1; }
26115
26116#endif
26117int
26118main ()
26119{
26120
26121  FILE *f = fopen ("conftest.val", "w");
26122  if (! f)
26123    exit (1);
26124  if (((long) (sizeof (long long))) < 0)
26125    {
26126      long i = longval ();
26127      if (i != ((long) (sizeof (long long))))
26128	exit (1);
26129      fprintf (f, "%ld\n", i);
26130    }
26131  else
26132    {
26133      unsigned long i = ulongval ();
26134      if (i != ((long) (sizeof (long long))))
26135	exit (1);
26136      fprintf (f, "%lu\n", i);
26137    }
26138  exit (ferror (f) || fclose (f) != 0);
26139
26140  ;
26141  return 0;
26142}
26143_ACEOF
26144rm -f conftest$ac_exeext
26145if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26146  (eval $ac_link) 2>&5
26147  ac_status=$?
26148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26149  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26150  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26151  (eval $ac_try) 2>&5
26152  ac_status=$?
26153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26154  (exit $ac_status); }; }; then
26155  ac_cv_sizeof_long_long=`cat conftest.val`
26156else
26157  echo "$as_me: program exited with status $ac_status" >&5
26158echo "$as_me: failed program was:" >&5
26159sed 's/^/| /' conftest.$ac_ext >&5
26160
26161( exit $ac_status )
26162{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
26163See \`config.log' for more details." >&5
26164echo "$as_me: error: cannot compute sizeof (long long), 77
26165See \`config.log' for more details." >&2;}
26166   { (exit 1); exit 1; }; }
26167fi
26168rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26169fi
26170fi
26171rm -f conftest.val
26172else
26173  ac_cv_sizeof_long_long=0
26174fi
26175fi
26176echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
26177echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
26178cat >>confdefs.h <<_ACEOF
26179#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
26180_ACEOF
26181
26182
26183  case $ac_cv_sizeof_long_long in
26184    8 | 8?) CoinInt64="long long"
26185    	    CoinUInt64="unsigned long long"
26186	    ;;
26187  esac
26188fi
26189
26190#try long
26191if test x"$CoinInt64" = x; then
26192  echo "$as_me:$LINENO: checking for long" >&5
26193echo $ECHO_N "checking for long... $ECHO_C" >&6
26194if test "${ac_cv_type_long+set}" = set; then
26195  echo $ECHO_N "(cached) $ECHO_C" >&6
26196else
26197  cat >conftest.$ac_ext <<_ACEOF
26198/* confdefs.h.  */
26199_ACEOF
26200cat confdefs.h >>conftest.$ac_ext
26201cat >>conftest.$ac_ext <<_ACEOF
26202/* end confdefs.h.  */
26203$ac_includes_default
26204#ifdef F77_DUMMY_MAIN
26205
26206#  ifdef __cplusplus
26207     extern "C"
26208#  endif
26209   int F77_DUMMY_MAIN() { return 1; }
26210
26211#endif
26212int
26213main ()
26214{
26215if ((long *) 0)
26216  return 0;
26217if (sizeof (long))
26218  return 0;
26219  ;
26220  return 0;
26221}
26222_ACEOF
26223rm -f conftest.$ac_objext
26224if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26225  (eval $ac_compile) 2>conftest.er1
26226  ac_status=$?
26227  grep -v '^ *+' conftest.er1 >conftest.err
26228  rm -f conftest.er1
26229  cat conftest.err >&5
26230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26231  (exit $ac_status); } &&
26232	 { ac_try='test -z "$ac_c_werror_flag"
26233			 || test ! -s conftest.err'
26234  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26235  (eval $ac_try) 2>&5
26236  ac_status=$?
26237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26238  (exit $ac_status); }; } &&
26239	 { ac_try='test -s conftest.$ac_objext'
26240  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26241  (eval $ac_try) 2>&5
26242  ac_status=$?
26243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26244  (exit $ac_status); }; }; then
26245  ac_cv_type_long=yes
26246else
26247  echo "$as_me: failed program was:" >&5
26248sed 's/^/| /' conftest.$ac_ext >&5
26249
26250ac_cv_type_long=no
26251fi
26252rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26253fi
26254echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
26255echo "${ECHO_T}$ac_cv_type_long" >&6
26256
26257echo "$as_me:$LINENO: checking size of long" >&5
26258echo $ECHO_N "checking size of long... $ECHO_C" >&6
26259if test "${ac_cv_sizeof_long+set}" = set; then
26260  echo $ECHO_N "(cached) $ECHO_C" >&6
26261else
26262  if test "$ac_cv_type_long" = yes; then
26263  # The cast to unsigned long works around a bug in the HP C Compiler
26264  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26265  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26266  # This bug is HP SR number 8606223364.
26267  if test "$cross_compiling" = yes; then
26268  # Depending upon the size, compute the lo and hi bounds.
26269cat >conftest.$ac_ext <<_ACEOF
26270/* confdefs.h.  */
26271_ACEOF
26272cat confdefs.h >>conftest.$ac_ext
26273cat >>conftest.$ac_ext <<_ACEOF
26274/* end confdefs.h.  */
26275$ac_includes_default
26276#ifdef F77_DUMMY_MAIN
26277
26278#  ifdef __cplusplus
26279     extern "C"
26280#  endif
26281   int F77_DUMMY_MAIN() { return 1; }
26282
26283#endif
26284int
26285main ()
26286{
26287static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
26288test_array [0] = 0
26289
26290  ;
26291  return 0;
26292}
26293_ACEOF
26294rm -f conftest.$ac_objext
26295if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26296  (eval $ac_compile) 2>conftest.er1
26297  ac_status=$?
26298  grep -v '^ *+' conftest.er1 >conftest.err
26299  rm -f conftest.er1
26300  cat conftest.err >&5
26301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26302  (exit $ac_status); } &&
26303	 { ac_try='test -z "$ac_c_werror_flag"
26304			 || test ! -s conftest.err'
26305  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26306  (eval $ac_try) 2>&5
26307  ac_status=$?
26308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26309  (exit $ac_status); }; } &&
26310	 { ac_try='test -s conftest.$ac_objext'
26311  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26312  (eval $ac_try) 2>&5
26313  ac_status=$?
26314  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26315  (exit $ac_status); }; }; then
26316  ac_lo=0 ac_mid=0
26317  while :; do
26318    cat >conftest.$ac_ext <<_ACEOF
26319/* confdefs.h.  */
26320_ACEOF
26321cat confdefs.h >>conftest.$ac_ext
26322cat >>conftest.$ac_ext <<_ACEOF
26323/* end confdefs.h.  */
26324$ac_includes_default
26325#ifdef F77_DUMMY_MAIN
26326
26327#  ifdef __cplusplus
26328     extern "C"
26329#  endif
26330   int F77_DUMMY_MAIN() { return 1; }
26331
26332#endif
26333int
26334main ()
26335{
26336static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
26337test_array [0] = 0
26338
26339  ;
26340  return 0;
26341}
26342_ACEOF
26343rm -f conftest.$ac_objext
26344if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26345  (eval $ac_compile) 2>conftest.er1
26346  ac_status=$?
26347  grep -v '^ *+' conftest.er1 >conftest.err
26348  rm -f conftest.er1
26349  cat conftest.err >&5
26350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26351  (exit $ac_status); } &&
26352	 { ac_try='test -z "$ac_c_werror_flag"
26353			 || test ! -s conftest.err'
26354  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26355  (eval $ac_try) 2>&5
26356  ac_status=$?
26357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26358  (exit $ac_status); }; } &&
26359	 { ac_try='test -s conftest.$ac_objext'
26360  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26361  (eval $ac_try) 2>&5
26362  ac_status=$?
26363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26364  (exit $ac_status); }; }; then
26365  ac_hi=$ac_mid; break
26366else
26367  echo "$as_me: failed program was:" >&5
26368sed 's/^/| /' conftest.$ac_ext >&5
26369
26370ac_lo=`expr $ac_mid + 1`
26371		    if test $ac_lo -le $ac_mid; then
26372		      ac_lo= ac_hi=
26373		      break
26374		    fi
26375		    ac_mid=`expr 2 '*' $ac_mid + 1`
26376fi
26377rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26378  done
26379else
26380  echo "$as_me: failed program was:" >&5
26381sed 's/^/| /' conftest.$ac_ext >&5
26382
26383cat >conftest.$ac_ext <<_ACEOF
26384/* confdefs.h.  */
26385_ACEOF
26386cat confdefs.h >>conftest.$ac_ext
26387cat >>conftest.$ac_ext <<_ACEOF
26388/* end confdefs.h.  */
26389$ac_includes_default
26390#ifdef F77_DUMMY_MAIN
26391
26392#  ifdef __cplusplus
26393     extern "C"
26394#  endif
26395   int F77_DUMMY_MAIN() { return 1; }
26396
26397#endif
26398int
26399main ()
26400{
26401static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
26402test_array [0] = 0
26403
26404  ;
26405  return 0;
26406}
26407_ACEOF
26408rm -f conftest.$ac_objext
26409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26410  (eval $ac_compile) 2>conftest.er1
26411  ac_status=$?
26412  grep -v '^ *+' conftest.er1 >conftest.err
26413  rm -f conftest.er1
26414  cat conftest.err >&5
26415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26416  (exit $ac_status); } &&
26417	 { ac_try='test -z "$ac_c_werror_flag"
26418			 || test ! -s conftest.err'
26419  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26420  (eval $ac_try) 2>&5
26421  ac_status=$?
26422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26423  (exit $ac_status); }; } &&
26424	 { ac_try='test -s conftest.$ac_objext'
26425  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26426  (eval $ac_try) 2>&5
26427  ac_status=$?
26428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26429  (exit $ac_status); }; }; then
26430  ac_hi=-1 ac_mid=-1
26431  while :; do
26432    cat >conftest.$ac_ext <<_ACEOF
26433/* confdefs.h.  */
26434_ACEOF
26435cat confdefs.h >>conftest.$ac_ext
26436cat >>conftest.$ac_ext <<_ACEOF
26437/* end confdefs.h.  */
26438$ac_includes_default
26439#ifdef F77_DUMMY_MAIN
26440
26441#  ifdef __cplusplus
26442     extern "C"
26443#  endif
26444   int F77_DUMMY_MAIN() { return 1; }
26445
26446#endif
26447int
26448main ()
26449{
26450static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
26451test_array [0] = 0
26452
26453  ;
26454  return 0;
26455}
26456_ACEOF
26457rm -f conftest.$ac_objext
26458if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26459  (eval $ac_compile) 2>conftest.er1
26460  ac_status=$?
26461  grep -v '^ *+' conftest.er1 >conftest.err
26462  rm -f conftest.er1
26463  cat conftest.err >&5
26464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26465  (exit $ac_status); } &&
26466	 { ac_try='test -z "$ac_c_werror_flag"
26467			 || test ! -s conftest.err'
26468  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26469  (eval $ac_try) 2>&5
26470  ac_status=$?
26471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26472  (exit $ac_status); }; } &&
26473	 { ac_try='test -s conftest.$ac_objext'
26474  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26475  (eval $ac_try) 2>&5
26476  ac_status=$?
26477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26478  (exit $ac_status); }; }; then
26479  ac_lo=$ac_mid; break
26480else
26481  echo "$as_me: failed program was:" >&5
26482sed 's/^/| /' conftest.$ac_ext >&5
26483
26484ac_hi=`expr '(' $ac_mid ')' - 1`
26485		       if test $ac_mid -le $ac_hi; then
26486			 ac_lo= ac_hi=
26487			 break
26488		       fi
26489		       ac_mid=`expr 2 '*' $ac_mid`
26490fi
26491rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26492  done
26493else
26494  echo "$as_me: failed program was:" >&5
26495sed 's/^/| /' conftest.$ac_ext >&5
26496
26497ac_lo= ac_hi=
26498fi
26499rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26500fi
26501rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26502# Binary search between lo and hi bounds.
26503while test "x$ac_lo" != "x$ac_hi"; do
26504  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26505  cat >conftest.$ac_ext <<_ACEOF
26506/* confdefs.h.  */
26507_ACEOF
26508cat confdefs.h >>conftest.$ac_ext
26509cat >>conftest.$ac_ext <<_ACEOF
26510/* end confdefs.h.  */
26511$ac_includes_default
26512#ifdef F77_DUMMY_MAIN
26513
26514#  ifdef __cplusplus
26515     extern "C"
26516#  endif
26517   int F77_DUMMY_MAIN() { return 1; }
26518
26519#endif
26520int
26521main ()
26522{
26523static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
26524test_array [0] = 0
26525
26526  ;
26527  return 0;
26528}
26529_ACEOF
26530rm -f conftest.$ac_objext
26531if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26532  (eval $ac_compile) 2>conftest.er1
26533  ac_status=$?
26534  grep -v '^ *+' conftest.er1 >conftest.err
26535  rm -f conftest.er1
26536  cat conftest.err >&5
26537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26538  (exit $ac_status); } &&
26539	 { ac_try='test -z "$ac_c_werror_flag"
26540			 || test ! -s conftest.err'
26541  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26542  (eval $ac_try) 2>&5
26543  ac_status=$?
26544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26545  (exit $ac_status); }; } &&
26546	 { ac_try='test -s conftest.$ac_objext'
26547  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26548  (eval $ac_try) 2>&5
26549  ac_status=$?
26550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26551  (exit $ac_status); }; }; then
26552  ac_hi=$ac_mid
26553else
26554  echo "$as_me: failed program was:" >&5
26555sed 's/^/| /' conftest.$ac_ext >&5
26556
26557ac_lo=`expr '(' $ac_mid ')' + 1`
26558fi
26559rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26560done
26561case $ac_lo in
26562?*) ac_cv_sizeof_long=$ac_lo;;
26563'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
26564See \`config.log' for more details." >&5
26565echo "$as_me: error: cannot compute sizeof (long), 77
26566See \`config.log' for more details." >&2;}
26567   { (exit 1); exit 1; }; } ;;
26568esac
26569else
26570  if test "$cross_compiling" = yes; then
26571  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
26572See \`config.log' for more details." >&5
26573echo "$as_me: error: cannot run test program while cross compiling
26574See \`config.log' for more details." >&2;}
26575   { (exit 1); exit 1; }; }
26576else
26577  cat >conftest.$ac_ext <<_ACEOF
26578/* confdefs.h.  */
26579_ACEOF
26580cat confdefs.h >>conftest.$ac_ext
26581cat >>conftest.$ac_ext <<_ACEOF
26582/* end confdefs.h.  */
26583$ac_includes_default
26584long longval () { return (long) (sizeof (long)); }
26585unsigned long ulongval () { return (long) (sizeof (long)); }
26586#include <stdio.h>
26587#include <stdlib.h>
26588#ifdef F77_DUMMY_MAIN
26589
26590#  ifdef __cplusplus
26591     extern "C"
26592#  endif
26593   int F77_DUMMY_MAIN() { return 1; }
26594
26595#endif
26596int
26597main ()
26598{
26599
26600  FILE *f = fopen ("conftest.val", "w");
26601  if (! f)
26602    exit (1);
26603  if (((long) (sizeof (long))) < 0)
26604    {
26605      long i = longval ();
26606      if (i != ((long) (sizeof (long))))
26607	exit (1);
26608      fprintf (f, "%ld\n", i);
26609    }
26610  else
26611    {
26612      unsigned long i = ulongval ();
26613      if (i != ((long) (sizeof (long))))
26614	exit (1);
26615      fprintf (f, "%lu\n", i);
26616    }
26617  exit (ferror (f) || fclose (f) != 0);
26618
26619  ;
26620  return 0;
26621}
26622_ACEOF
26623rm -f conftest$ac_exeext
26624if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26625  (eval $ac_link) 2>&5
26626  ac_status=$?
26627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26628  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26629  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26630  (eval $ac_try) 2>&5
26631  ac_status=$?
26632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26633  (exit $ac_status); }; }; then
26634  ac_cv_sizeof_long=`cat conftest.val`
26635else
26636  echo "$as_me: program exited with status $ac_status" >&5
26637echo "$as_me: failed program was:" >&5
26638sed 's/^/| /' conftest.$ac_ext >&5
26639
26640( exit $ac_status )
26641{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
26642See \`config.log' for more details." >&5
26643echo "$as_me: error: cannot compute sizeof (long), 77
26644See \`config.log' for more details." >&2;}
26645   { (exit 1); exit 1; }; }
26646fi
26647rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26648fi
26649fi
26650rm -f conftest.val
26651else
26652  ac_cv_sizeof_long=0
26653fi
26654fi
26655echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
26656echo "${ECHO_T}$ac_cv_sizeof_long" >&6
26657cat >>confdefs.h <<_ACEOF
26658#define SIZEOF_LONG $ac_cv_sizeof_long
26659_ACEOF
26660
26661
26662  case $ac_cv_sizeof_long in
26663    8 | 8?) CoinInt64="long"
26664    	    CoinUInt64="unsigned long"
26665	    ;;
26666  esac
26667fi
26668
26669#try int
26670if test x"$CoinInt64" = x; then
26671  echo "$as_me:$LINENO: checking for int" >&5
26672echo $ECHO_N "checking for int... $ECHO_C" >&6
26673if test "${ac_cv_type_int+set}" = set; then
26674  echo $ECHO_N "(cached) $ECHO_C" >&6
26675else
26676  cat >conftest.$ac_ext <<_ACEOF
26677/* confdefs.h.  */
26678_ACEOF
26679cat confdefs.h >>conftest.$ac_ext
26680cat >>conftest.$ac_ext <<_ACEOF
26681/* end confdefs.h.  */
26682$ac_includes_default
26683#ifdef F77_DUMMY_MAIN
26684
26685#  ifdef __cplusplus
26686     extern "C"
26687#  endif
26688   int F77_DUMMY_MAIN() { return 1; }
26689
26690#endif
26691int
26692main ()
26693{
26694if ((int *) 0)
26695  return 0;
26696if (sizeof (int))
26697  return 0;
26698  ;
26699  return 0;
26700}
26701_ACEOF
26702rm -f conftest.$ac_objext
26703if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26704  (eval $ac_compile) 2>conftest.er1
26705  ac_status=$?
26706  grep -v '^ *+' conftest.er1 >conftest.err
26707  rm -f conftest.er1
26708  cat conftest.err >&5
26709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26710  (exit $ac_status); } &&
26711	 { ac_try='test -z "$ac_c_werror_flag"
26712			 || test ! -s conftest.err'
26713  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26714  (eval $ac_try) 2>&5
26715  ac_status=$?
26716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26717  (exit $ac_status); }; } &&
26718	 { ac_try='test -s conftest.$ac_objext'
26719  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26720  (eval $ac_try) 2>&5
26721  ac_status=$?
26722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26723  (exit $ac_status); }; }; then
26724  ac_cv_type_int=yes
26725else
26726  echo "$as_me: failed program was:" >&5
26727sed 's/^/| /' conftest.$ac_ext >&5
26728
26729ac_cv_type_int=no
26730fi
26731rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26732fi
26733echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
26734echo "${ECHO_T}$ac_cv_type_int" >&6
26735
26736echo "$as_me:$LINENO: checking size of int" >&5
26737echo $ECHO_N "checking size of int... $ECHO_C" >&6
26738if test "${ac_cv_sizeof_int+set}" = set; then
26739  echo $ECHO_N "(cached) $ECHO_C" >&6
26740else
26741  if test "$ac_cv_type_int" = yes; then
26742  # The cast to unsigned long works around a bug in the HP C Compiler
26743  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26744  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26745  # This bug is HP SR number 8606223364.
26746  if test "$cross_compiling" = yes; then
26747  # Depending upon the size, compute the lo and hi bounds.
26748cat >conftest.$ac_ext <<_ACEOF
26749/* confdefs.h.  */
26750_ACEOF
26751cat confdefs.h >>conftest.$ac_ext
26752cat >>conftest.$ac_ext <<_ACEOF
26753/* end confdefs.h.  */
26754$ac_includes_default
26755#ifdef F77_DUMMY_MAIN
26756
26757#  ifdef __cplusplus
26758     extern "C"
26759#  endif
26760   int F77_DUMMY_MAIN() { return 1; }
26761
26762#endif
26763int
26764main ()
26765{
26766static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
26767test_array [0] = 0
26768
26769  ;
26770  return 0;
26771}
26772_ACEOF
26773rm -f conftest.$ac_objext
26774if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26775  (eval $ac_compile) 2>conftest.er1
26776  ac_status=$?
26777  grep -v '^ *+' conftest.er1 >conftest.err
26778  rm -f conftest.er1
26779  cat conftest.err >&5
26780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26781  (exit $ac_status); } &&
26782	 { ac_try='test -z "$ac_c_werror_flag"
26783			 || test ! -s conftest.err'
26784  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26785  (eval $ac_try) 2>&5
26786  ac_status=$?
26787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26788  (exit $ac_status); }; } &&
26789	 { ac_try='test -s conftest.$ac_objext'
26790  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26791  (eval $ac_try) 2>&5
26792  ac_status=$?
26793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26794  (exit $ac_status); }; }; then
26795  ac_lo=0 ac_mid=0
26796  while :; do
26797    cat >conftest.$ac_ext <<_ACEOF
26798/* confdefs.h.  */
26799_ACEOF
26800cat confdefs.h >>conftest.$ac_ext
26801cat >>conftest.$ac_ext <<_ACEOF
26802/* end confdefs.h.  */
26803$ac_includes_default
26804#ifdef F77_DUMMY_MAIN
26805
26806#  ifdef __cplusplus
26807     extern "C"
26808#  endif
26809   int F77_DUMMY_MAIN() { return 1; }
26810
26811#endif
26812int
26813main ()
26814{
26815static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
26816test_array [0] = 0
26817
26818  ;
26819  return 0;
26820}
26821_ACEOF
26822rm -f conftest.$ac_objext
26823if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26824  (eval $ac_compile) 2>conftest.er1
26825  ac_status=$?
26826  grep -v '^ *+' conftest.er1 >conftest.err
26827  rm -f conftest.er1
26828  cat conftest.err >&5
26829  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26830  (exit $ac_status); } &&
26831	 { ac_try='test -z "$ac_c_werror_flag"
26832			 || test ! -s conftest.err'
26833  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26834  (eval $ac_try) 2>&5
26835  ac_status=$?
26836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26837  (exit $ac_status); }; } &&
26838	 { ac_try='test -s conftest.$ac_objext'
26839  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26840  (eval $ac_try) 2>&5
26841  ac_status=$?
26842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26843  (exit $ac_status); }; }; then
26844  ac_hi=$ac_mid; break
26845else
26846  echo "$as_me: failed program was:" >&5
26847sed 's/^/| /' conftest.$ac_ext >&5
26848
26849ac_lo=`expr $ac_mid + 1`
26850		    if test $ac_lo -le $ac_mid; then
26851		      ac_lo= ac_hi=
26852		      break
26853		    fi
26854		    ac_mid=`expr 2 '*' $ac_mid + 1`
26855fi
26856rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26857  done
26858else
26859  echo "$as_me: failed program was:" >&5
26860sed 's/^/| /' conftest.$ac_ext >&5
26861
26862cat >conftest.$ac_ext <<_ACEOF
26863/* confdefs.h.  */
26864_ACEOF
26865cat confdefs.h >>conftest.$ac_ext
26866cat >>conftest.$ac_ext <<_ACEOF
26867/* end confdefs.h.  */
26868$ac_includes_default
26869#ifdef F77_DUMMY_MAIN
26870
26871#  ifdef __cplusplus
26872     extern "C"
26873#  endif
26874   int F77_DUMMY_MAIN() { return 1; }
26875
26876#endif
26877int
26878main ()
26879{
26880static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
26881test_array [0] = 0
26882
26883  ;
26884  return 0;
26885}
26886_ACEOF
26887rm -f conftest.$ac_objext
26888if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26889  (eval $ac_compile) 2>conftest.er1
26890  ac_status=$?
26891  grep -v '^ *+' conftest.er1 >conftest.err
26892  rm -f conftest.er1
26893  cat conftest.err >&5
26894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26895  (exit $ac_status); } &&
26896	 { ac_try='test -z "$ac_c_werror_flag"
26897			 || test ! -s conftest.err'
26898  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26899  (eval $ac_try) 2>&5
26900  ac_status=$?
26901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26902  (exit $ac_status); }; } &&
26903	 { ac_try='test -s conftest.$ac_objext'
26904  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26905  (eval $ac_try) 2>&5
26906  ac_status=$?
26907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26908  (exit $ac_status); }; }; then
26909  ac_hi=-1 ac_mid=-1
26910  while :; do
26911    cat >conftest.$ac_ext <<_ACEOF
26912/* confdefs.h.  */
26913_ACEOF
26914cat confdefs.h >>conftest.$ac_ext
26915cat >>conftest.$ac_ext <<_ACEOF
26916/* end confdefs.h.  */
26917$ac_includes_default
26918#ifdef F77_DUMMY_MAIN
26919
26920#  ifdef __cplusplus
26921     extern "C"
26922#  endif
26923   int F77_DUMMY_MAIN() { return 1; }
26924
26925#endif
26926int
26927main ()
26928{
26929static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
26930test_array [0] = 0
26931
26932  ;
26933  return 0;
26934}
26935_ACEOF
26936rm -f conftest.$ac_objext
26937if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26938  (eval $ac_compile) 2>conftest.er1
26939  ac_status=$?
26940  grep -v '^ *+' conftest.er1 >conftest.err
26941  rm -f conftest.er1
26942  cat conftest.err >&5
26943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26944  (exit $ac_status); } &&
26945	 { ac_try='test -z "$ac_c_werror_flag"
26946			 || test ! -s conftest.err'
26947  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26948  (eval $ac_try) 2>&5
26949  ac_status=$?
26950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26951  (exit $ac_status); }; } &&
26952	 { ac_try='test -s conftest.$ac_objext'
26953  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26954  (eval $ac_try) 2>&5
26955  ac_status=$?
26956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26957  (exit $ac_status); }; }; then
26958  ac_lo=$ac_mid; break
26959else
26960  echo "$as_me: failed program was:" >&5
26961sed 's/^/| /' conftest.$ac_ext >&5
26962
26963ac_hi=`expr '(' $ac_mid ')' - 1`
26964		       if test $ac_mid -le $ac_hi; then
26965			 ac_lo= ac_hi=
26966			 break
26967		       fi
26968		       ac_mid=`expr 2 '*' $ac_mid`
26969fi
26970rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26971  done
26972else
26973  echo "$as_me: failed program was:" >&5
26974sed 's/^/| /' conftest.$ac_ext >&5
26975
26976ac_lo= ac_hi=
26977fi
26978rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26979fi
26980rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26981# Binary search between lo and hi bounds.
26982while test "x$ac_lo" != "x$ac_hi"; do
26983  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26984  cat >conftest.$ac_ext <<_ACEOF
26985/* confdefs.h.  */
26986_ACEOF
26987cat confdefs.h >>conftest.$ac_ext
26988cat >>conftest.$ac_ext <<_ACEOF
26989/* end confdefs.h.  */
26990$ac_includes_default
26991#ifdef F77_DUMMY_MAIN
26992
26993#  ifdef __cplusplus
26994     extern "C"
26995#  endif
26996   int F77_DUMMY_MAIN() { return 1; }
26997
26998#endif
26999int
27000main ()
27001{
27002static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
27003test_array [0] = 0
27004
27005  ;
27006  return 0;
27007}
27008_ACEOF
27009rm -f conftest.$ac_objext
27010if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27011  (eval $ac_compile) 2>conftest.er1
27012  ac_status=$?
27013  grep -v '^ *+' conftest.er1 >conftest.err
27014  rm -f conftest.er1
27015  cat conftest.err >&5
27016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27017  (exit $ac_status); } &&
27018	 { ac_try='test -z "$ac_c_werror_flag"
27019			 || test ! -s conftest.err'
27020  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27021  (eval $ac_try) 2>&5
27022  ac_status=$?
27023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27024  (exit $ac_status); }; } &&
27025	 { ac_try='test -s conftest.$ac_objext'
27026  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27027  (eval $ac_try) 2>&5
27028  ac_status=$?
27029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27030  (exit $ac_status); }; }; then
27031  ac_hi=$ac_mid
27032else
27033  echo "$as_me: failed program was:" >&5
27034sed 's/^/| /' conftest.$ac_ext >&5
27035
27036ac_lo=`expr '(' $ac_mid ')' + 1`
27037fi
27038rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27039done
27040case $ac_lo in
27041?*) ac_cv_sizeof_int=$ac_lo;;
27042'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
27043See \`config.log' for more details." >&5
27044echo "$as_me: error: cannot compute sizeof (int), 77
27045See \`config.log' for more details." >&2;}
27046   { (exit 1); exit 1; }; } ;;
27047esac
27048else
27049  if test "$cross_compiling" = yes; then
27050  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
27051See \`config.log' for more details." >&5
27052echo "$as_me: error: cannot run test program while cross compiling
27053See \`config.log' for more details." >&2;}
27054   { (exit 1); exit 1; }; }
27055else
27056  cat >conftest.$ac_ext <<_ACEOF
27057/* confdefs.h.  */
27058_ACEOF
27059cat confdefs.h >>conftest.$ac_ext
27060cat >>conftest.$ac_ext <<_ACEOF
27061/* end confdefs.h.  */
27062$ac_includes_default
27063long longval () { return (long) (sizeof (int)); }
27064unsigned long ulongval () { return (long) (sizeof (int)); }
27065#include <stdio.h>
27066#include <stdlib.h>
27067#ifdef F77_DUMMY_MAIN
27068
27069#  ifdef __cplusplus
27070     extern "C"
27071#  endif
27072   int F77_DUMMY_MAIN() { return 1; }
27073
27074#endif
27075int
27076main ()
27077{
27078
27079  FILE *f = fopen ("conftest.val", "w");
27080  if (! f)
27081    exit (1);
27082  if (((long) (sizeof (int))) < 0)
27083    {
27084      long i = longval ();
27085      if (i != ((long) (sizeof (int))))
27086	exit (1);
27087      fprintf (f, "%ld\n", i);
27088    }
27089  else
27090    {
27091      unsigned long i = ulongval ();
27092      if (i != ((long) (sizeof (int))))
27093	exit (1);
27094      fprintf (f, "%lu\n", i);
27095    }
27096  exit (ferror (f) || fclose (f) != 0);
27097
27098  ;
27099  return 0;
27100}
27101_ACEOF
27102rm -f conftest$ac_exeext
27103if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27104  (eval $ac_link) 2>&5
27105  ac_status=$?
27106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27107  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27108  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27109  (eval $ac_try) 2>&5
27110  ac_status=$?
27111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27112  (exit $ac_status); }; }; then
27113  ac_cv_sizeof_int=`cat conftest.val`
27114else
27115  echo "$as_me: program exited with status $ac_status" >&5
27116echo "$as_me: failed program was:" >&5
27117sed 's/^/| /' conftest.$ac_ext >&5
27118
27119( exit $ac_status )
27120{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
27121See \`config.log' for more details." >&5
27122echo "$as_me: error: cannot compute sizeof (int), 77
27123See \`config.log' for more details." >&2;}
27124   { (exit 1); exit 1; }; }
27125fi
27126rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27127fi
27128fi
27129rm -f conftest.val
27130else
27131  ac_cv_sizeof_int=0
27132fi
27133fi
27134echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
27135echo "${ECHO_T}$ac_cv_sizeof_int" >&6
27136cat >>confdefs.h <<_ACEOF
27137#define SIZEOF_INT $ac_cv_sizeof_int
27138_ACEOF
27139
27140
27141  case $ac_cv_sizeof_int in
27142    8 | 8?) CoinInt64="int"
27143    	    CoinUInt64="unsigned int"
27144	    ;;
27145  esac
27146fi
27147ac_ext=cc
27148ac_cpp='$CXXCPP $CPPFLAGS'
27149ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27150ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27151ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27152
27153
27154if test x"$CoinInt64" = x; then
27155  { { echo "$as_me:$LINENO: error: Cannot find integer type with 64 bits" >&5
27156echo "$as_me: error: Cannot find integer type with 64 bits" >&2;}
27157   { (exit 1); exit 1; }; }
27158fi
27159
27160cat >>confdefs.h <<_ACEOF
27161#define COIN_INT64_T $CoinInt64
27162_ACEOF
27163
27164
27165cat >>confdefs.h <<_ACEOF
27166#define COIN_UINT64_T $CoinInt64
27167_ACEOF
27168
27169
27170
27171##### Integer type for Pointer
27172CoinIntPtr=
27173
27174# try intptr_t
27175echo "$as_me:$LINENO: checking for intptr_t" >&5
27176echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6
27177if test "${ac_cv_type_intptr_t+set}" = set; then
27178  echo $ECHO_N "(cached) $ECHO_C" >&6
27179else
27180  cat >conftest.$ac_ext <<_ACEOF
27181/* confdefs.h.  */
27182_ACEOF
27183cat confdefs.h >>conftest.$ac_ext
27184cat >>conftest.$ac_ext <<_ACEOF
27185/* end confdefs.h.  */
27186
27187#ifdef HAVE_CINTTYPES
27188# include <cinttypes>
27189#else
27190# ifdef HAVE_INTTYPES_H
27191#  include <inttypes.h>
27192# endif
27193#endif
27194
27195
27196#ifdef F77_DUMMY_MAIN
27197
27198#  ifdef __cplusplus
27199     extern "C"
27200#  endif
27201   int F77_DUMMY_MAIN() { return 1; }
27202
27203#endif
27204int
27205main ()
27206{
27207if ((intptr_t *) 0)
27208  return 0;
27209if (sizeof (intptr_t))
27210  return 0;
27211  ;
27212  return 0;
27213}
27214_ACEOF
27215rm -f conftest.$ac_objext
27216if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27217  (eval $ac_compile) 2>conftest.er1
27218  ac_status=$?
27219  grep -v '^ *+' conftest.er1 >conftest.err
27220  rm -f conftest.er1
27221  cat conftest.err >&5
27222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27223  (exit $ac_status); } &&
27224	 { ac_try='test -z "$ac_cxx_werror_flag"
27225			 || test ! -s conftest.err'
27226  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27227  (eval $ac_try) 2>&5
27228  ac_status=$?
27229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27230  (exit $ac_status); }; } &&
27231	 { ac_try='test -s conftest.$ac_objext'
27232  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27233  (eval $ac_try) 2>&5
27234  ac_status=$?
27235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27236  (exit $ac_status); }; }; then
27237  ac_cv_type_intptr_t=yes
27238else
27239  echo "$as_me: failed program was:" >&5
27240sed 's/^/| /' conftest.$ac_ext >&5
27241
27242ac_cv_type_intptr_t=no
27243fi
27244rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27245fi
27246echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
27247echo "${ECHO_T}$ac_cv_type_intptr_t" >&6
27248if test $ac_cv_type_intptr_t = yes; then
27249  CoinIntPtr=intptr_t
27250fi
27251
27252
27253ac_ext=c
27254ac_cpp='$CPP $CPPFLAGS'
27255ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27256ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27257ac_compiler_gnu=$ac_cv_c_compiler_gnu
27258
27259# try long long
27260if test x"$CoinIntPtr" = x; then
27261  echo "$as_me:$LINENO: checking for int *" >&5
27262echo $ECHO_N "checking for int *... $ECHO_C" >&6
27263if test "${ac_cv_type_int_p+set}" = set; then
27264  echo $ECHO_N "(cached) $ECHO_C" >&6
27265else
27266  cat >conftest.$ac_ext <<_ACEOF
27267/* confdefs.h.  */
27268_ACEOF
27269cat confdefs.h >>conftest.$ac_ext
27270cat >>conftest.$ac_ext <<_ACEOF
27271/* end confdefs.h.  */
27272$ac_includes_default
27273#ifdef F77_DUMMY_MAIN
27274
27275#  ifdef __cplusplus
27276     extern "C"
27277#  endif
27278   int F77_DUMMY_MAIN() { return 1; }
27279
27280#endif
27281int
27282main ()
27283{
27284if ((int * *) 0)
27285  return 0;
27286if (sizeof (int *))
27287  return 0;
27288  ;
27289  return 0;
27290}
27291_ACEOF
27292rm -f conftest.$ac_objext
27293if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27294  (eval $ac_compile) 2>conftest.er1
27295  ac_status=$?
27296  grep -v '^ *+' conftest.er1 >conftest.err
27297  rm -f conftest.er1
27298  cat conftest.err >&5
27299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27300  (exit $ac_status); } &&
27301	 { ac_try='test -z "$ac_c_werror_flag"
27302			 || test ! -s conftest.err'
27303  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27304  (eval $ac_try) 2>&5
27305  ac_status=$?
27306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27307  (exit $ac_status); }; } &&
27308	 { ac_try='test -s conftest.$ac_objext'
27309  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27310  (eval $ac_try) 2>&5
27311  ac_status=$?
27312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27313  (exit $ac_status); }; }; then
27314  ac_cv_type_int_p=yes
27315else
27316  echo "$as_me: failed program was:" >&5
27317sed 's/^/| /' conftest.$ac_ext >&5
27318
27319ac_cv_type_int_p=no
27320fi
27321rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27322fi
27323echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
27324echo "${ECHO_T}$ac_cv_type_int_p" >&6
27325
27326echo "$as_me:$LINENO: checking size of int *" >&5
27327echo $ECHO_N "checking size of int *... $ECHO_C" >&6
27328if test "${ac_cv_sizeof_int_p+set}" = set; then
27329  echo $ECHO_N "(cached) $ECHO_C" >&6
27330else
27331  if test "$ac_cv_type_int_p" = yes; then
27332  # The cast to unsigned long works around a bug in the HP C Compiler
27333  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27334  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27335  # This bug is HP SR number 8606223364.
27336  if test "$cross_compiling" = yes; then
27337  # Depending upon the size, compute the lo and hi bounds.
27338cat >conftest.$ac_ext <<_ACEOF
27339/* confdefs.h.  */
27340_ACEOF
27341cat confdefs.h >>conftest.$ac_ext
27342cat >>conftest.$ac_ext <<_ACEOF
27343/* end confdefs.h.  */
27344$ac_includes_default
27345#ifdef F77_DUMMY_MAIN
27346
27347#  ifdef __cplusplus
27348     extern "C"
27349#  endif
27350   int F77_DUMMY_MAIN() { return 1; }
27351
27352#endif
27353int
27354main ()
27355{
27356static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
27357test_array [0] = 0
27358
27359  ;
27360  return 0;
27361}
27362_ACEOF
27363rm -f conftest.$ac_objext
27364if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27365  (eval $ac_compile) 2>conftest.er1
27366  ac_status=$?
27367  grep -v '^ *+' conftest.er1 >conftest.err
27368  rm -f conftest.er1
27369  cat conftest.err >&5
27370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27371  (exit $ac_status); } &&
27372	 { ac_try='test -z "$ac_c_werror_flag"
27373			 || test ! -s conftest.err'
27374  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27375  (eval $ac_try) 2>&5
27376  ac_status=$?
27377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27378  (exit $ac_status); }; } &&
27379	 { ac_try='test -s conftest.$ac_objext'
27380  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27381  (eval $ac_try) 2>&5
27382  ac_status=$?
27383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27384  (exit $ac_status); }; }; then
27385  ac_lo=0 ac_mid=0
27386  while :; do
27387    cat >conftest.$ac_ext <<_ACEOF
27388/* confdefs.h.  */
27389_ACEOF
27390cat confdefs.h >>conftest.$ac_ext
27391cat >>conftest.$ac_ext <<_ACEOF
27392/* end confdefs.h.  */
27393$ac_includes_default
27394#ifdef F77_DUMMY_MAIN
27395
27396#  ifdef __cplusplus
27397     extern "C"
27398#  endif
27399   int F77_DUMMY_MAIN() { return 1; }
27400
27401#endif
27402int
27403main ()
27404{
27405static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
27406test_array [0] = 0
27407
27408  ;
27409  return 0;
27410}
27411_ACEOF
27412rm -f conftest.$ac_objext
27413if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27414  (eval $ac_compile) 2>conftest.er1
27415  ac_status=$?
27416  grep -v '^ *+' conftest.er1 >conftest.err
27417  rm -f conftest.er1
27418  cat conftest.err >&5
27419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27420  (exit $ac_status); } &&
27421	 { ac_try='test -z "$ac_c_werror_flag"
27422			 || test ! -s conftest.err'
27423  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27424  (eval $ac_try) 2>&5
27425  ac_status=$?
27426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27427  (exit $ac_status); }; } &&
27428	 { ac_try='test -s conftest.$ac_objext'
27429  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27430  (eval $ac_try) 2>&5
27431  ac_status=$?
27432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27433  (exit $ac_status); }; }; then
27434  ac_hi=$ac_mid; break
27435else
27436  echo "$as_me: failed program was:" >&5
27437sed 's/^/| /' conftest.$ac_ext >&5
27438
27439ac_lo=`expr $ac_mid + 1`
27440		    if test $ac_lo -le $ac_mid; then
27441		      ac_lo= ac_hi=
27442		      break
27443		    fi
27444		    ac_mid=`expr 2 '*' $ac_mid + 1`
27445fi
27446rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27447  done
27448else
27449  echo "$as_me: failed program was:" >&5
27450sed 's/^/| /' conftest.$ac_ext >&5
27451
27452cat >conftest.$ac_ext <<_ACEOF
27453/* confdefs.h.  */
27454_ACEOF
27455cat confdefs.h >>conftest.$ac_ext
27456cat >>conftest.$ac_ext <<_ACEOF
27457/* end confdefs.h.  */
27458$ac_includes_default
27459#ifdef F77_DUMMY_MAIN
27460
27461#  ifdef __cplusplus
27462     extern "C"
27463#  endif
27464   int F77_DUMMY_MAIN() { return 1; }
27465
27466#endif
27467int
27468main ()
27469{
27470static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
27471test_array [0] = 0
27472
27473  ;
27474  return 0;
27475}
27476_ACEOF
27477rm -f conftest.$ac_objext
27478if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27479  (eval $ac_compile) 2>conftest.er1
27480  ac_status=$?
27481  grep -v '^ *+' conftest.er1 >conftest.err
27482  rm -f conftest.er1
27483  cat conftest.err >&5
27484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27485  (exit $ac_status); } &&
27486	 { ac_try='test -z "$ac_c_werror_flag"
27487			 || test ! -s conftest.err'
27488  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27489  (eval $ac_try) 2>&5
27490  ac_status=$?
27491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27492  (exit $ac_status); }; } &&
27493	 { ac_try='test -s conftest.$ac_objext'
27494  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27495  (eval $ac_try) 2>&5
27496  ac_status=$?
27497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27498  (exit $ac_status); }; }; then
27499  ac_hi=-1 ac_mid=-1
27500  while :; do
27501    cat >conftest.$ac_ext <<_ACEOF
27502/* confdefs.h.  */
27503_ACEOF
27504cat confdefs.h >>conftest.$ac_ext
27505cat >>conftest.$ac_ext <<_ACEOF
27506/* end confdefs.h.  */
27507$ac_includes_default
27508#ifdef F77_DUMMY_MAIN
27509
27510#  ifdef __cplusplus
27511     extern "C"
27512#  endif
27513   int F77_DUMMY_MAIN() { return 1; }
27514
27515#endif
27516int
27517main ()
27518{
27519static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
27520test_array [0] = 0
27521
27522  ;
27523  return 0;
27524}
27525_ACEOF
27526rm -f conftest.$ac_objext
27527if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27528  (eval $ac_compile) 2>conftest.er1
27529  ac_status=$?
27530  grep -v '^ *+' conftest.er1 >conftest.err
27531  rm -f conftest.er1
27532  cat conftest.err >&5
27533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27534  (exit $ac_status); } &&
27535	 { ac_try='test -z "$ac_c_werror_flag"
27536			 || test ! -s conftest.err'
27537  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27538  (eval $ac_try) 2>&5
27539  ac_status=$?
27540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27541  (exit $ac_status); }; } &&
27542	 { ac_try='test -s conftest.$ac_objext'
27543  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27544  (eval $ac_try) 2>&5
27545  ac_status=$?
27546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27547  (exit $ac_status); }; }; then
27548  ac_lo=$ac_mid; break
27549else
27550  echo "$as_me: failed program was:" >&5
27551sed 's/^/| /' conftest.$ac_ext >&5
27552
27553ac_hi=`expr '(' $ac_mid ')' - 1`
27554		       if test $ac_mid -le $ac_hi; then
27555			 ac_lo= ac_hi=
27556			 break
27557		       fi
27558		       ac_mid=`expr 2 '*' $ac_mid`
27559fi
27560rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27561  done
27562else
27563  echo "$as_me: failed program was:" >&5
27564sed 's/^/| /' conftest.$ac_ext >&5
27565
27566ac_lo= ac_hi=
27567fi
27568rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27569fi
27570rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27571# Binary search between lo and hi bounds.
27572while test "x$ac_lo" != "x$ac_hi"; do
27573  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27574  cat >conftest.$ac_ext <<_ACEOF
27575/* confdefs.h.  */
27576_ACEOF
27577cat confdefs.h >>conftest.$ac_ext
27578cat >>conftest.$ac_ext <<_ACEOF
27579/* end confdefs.h.  */
27580$ac_includes_default
27581#ifdef F77_DUMMY_MAIN
27582
27583#  ifdef __cplusplus
27584     extern "C"
27585#  endif
27586   int F77_DUMMY_MAIN() { return 1; }
27587
27588#endif
27589int
27590main ()
27591{
27592static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
27593test_array [0] = 0
27594
27595  ;
27596  return 0;
27597}
27598_ACEOF
27599rm -f conftest.$ac_objext
27600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27601  (eval $ac_compile) 2>conftest.er1
27602  ac_status=$?
27603  grep -v '^ *+' conftest.er1 >conftest.err
27604  rm -f conftest.er1
27605  cat conftest.err >&5
27606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27607  (exit $ac_status); } &&
27608	 { ac_try='test -z "$ac_c_werror_flag"
27609			 || test ! -s conftest.err'
27610  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27611  (eval $ac_try) 2>&5
27612  ac_status=$?
27613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27614  (exit $ac_status); }; } &&
27615	 { ac_try='test -s conftest.$ac_objext'
27616  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27617  (eval $ac_try) 2>&5
27618  ac_status=$?
27619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27620  (exit $ac_status); }; }; then
27621  ac_hi=$ac_mid
27622else
27623  echo "$as_me: failed program was:" >&5
27624sed 's/^/| /' conftest.$ac_ext >&5
27625
27626ac_lo=`expr '(' $ac_mid ')' + 1`
27627fi
27628rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27629done
27630case $ac_lo in
27631?*) ac_cv_sizeof_int_p=$ac_lo;;
27632'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
27633See \`config.log' for more details." >&5
27634echo "$as_me: error: cannot compute sizeof (int *), 77
27635See \`config.log' for more details." >&2;}
27636   { (exit 1); exit 1; }; } ;;
27637esac
27638else
27639  if test "$cross_compiling" = yes; then
27640  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
27641See \`config.log' for more details." >&5
27642echo "$as_me: error: cannot run test program while cross compiling
27643See \`config.log' for more details." >&2;}
27644   { (exit 1); exit 1; }; }
27645else
27646  cat >conftest.$ac_ext <<_ACEOF
27647/* confdefs.h.  */
27648_ACEOF
27649cat confdefs.h >>conftest.$ac_ext
27650cat >>conftest.$ac_ext <<_ACEOF
27651/* end confdefs.h.  */
27652$ac_includes_default
27653long longval () { return (long) (sizeof (int *)); }
27654unsigned long ulongval () { return (long) (sizeof (int *)); }
27655#include <stdio.h>
27656#include <stdlib.h>
27657#ifdef F77_DUMMY_MAIN
27658
27659#  ifdef __cplusplus
27660     extern "C"
27661#  endif
27662   int F77_DUMMY_MAIN() { return 1; }
27663
27664#endif
27665int
27666main ()
27667{
27668
27669  FILE *f = fopen ("conftest.val", "w");
27670  if (! f)
27671    exit (1);
27672  if (((long) (sizeof (int *))) < 0)
27673    {
27674      long i = longval ();
27675      if (i != ((long) (sizeof (int *))))
27676	exit (1);
27677      fprintf (f, "%ld\n", i);
27678    }
27679  else
27680    {
27681      unsigned long i = ulongval ();
27682      if (i != ((long) (sizeof (int *))))
27683	exit (1);
27684      fprintf (f, "%lu\n", i);
27685    }
27686  exit (ferror (f) || fclose (f) != 0);
27687
27688  ;
27689  return 0;
27690}
27691_ACEOF
27692rm -f conftest$ac_exeext
27693if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27694  (eval $ac_link) 2>&5
27695  ac_status=$?
27696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27697  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27698  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27699  (eval $ac_try) 2>&5
27700  ac_status=$?
27701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27702  (exit $ac_status); }; }; then
27703  ac_cv_sizeof_int_p=`cat conftest.val`
27704else
27705  echo "$as_me: program exited with status $ac_status" >&5
27706echo "$as_me: failed program was:" >&5
27707sed 's/^/| /' conftest.$ac_ext >&5
27708
27709( exit $ac_status )
27710{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
27711See \`config.log' for more details." >&5
27712echo "$as_me: error: cannot compute sizeof (int *), 77
27713See \`config.log' for more details." >&2;}
27714   { (exit 1); exit 1; }; }
27715fi
27716rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27717fi
27718fi
27719rm -f conftest.val
27720else
27721  ac_cv_sizeof_int_p=0
27722fi
27723fi
27724echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
27725echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
27726cat >>confdefs.h <<_ACEOF
27727#define SIZEOF_INT_P $ac_cv_sizeof_int_p
27728_ACEOF
27729
27730
27731  echo "$as_me:$LINENO: checking for long long" >&5
27732echo $ECHO_N "checking for long long... $ECHO_C" >&6
27733if test "${ac_cv_type_long_long+set}" = set; then
27734  echo $ECHO_N "(cached) $ECHO_C" >&6
27735else
27736  cat >conftest.$ac_ext <<_ACEOF
27737/* confdefs.h.  */
27738_ACEOF
27739cat confdefs.h >>conftest.$ac_ext
27740cat >>conftest.$ac_ext <<_ACEOF
27741/* end confdefs.h.  */
27742$ac_includes_default
27743#ifdef F77_DUMMY_MAIN
27744
27745#  ifdef __cplusplus
27746     extern "C"
27747#  endif
27748   int F77_DUMMY_MAIN() { return 1; }
27749
27750#endif
27751int
27752main ()
27753{
27754if ((long long *) 0)
27755  return 0;
27756if (sizeof (long long))
27757  return 0;
27758  ;
27759  return 0;
27760}
27761_ACEOF
27762rm -f conftest.$ac_objext
27763if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27764  (eval $ac_compile) 2>conftest.er1
27765  ac_status=$?
27766  grep -v '^ *+' conftest.er1 >conftest.err
27767  rm -f conftest.er1
27768  cat conftest.err >&5
27769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27770  (exit $ac_status); } &&
27771	 { ac_try='test -z "$ac_c_werror_flag"
27772			 || test ! -s conftest.err'
27773  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27774  (eval $ac_try) 2>&5
27775  ac_status=$?
27776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27777  (exit $ac_status); }; } &&
27778	 { ac_try='test -s conftest.$ac_objext'
27779  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27780  (eval $ac_try) 2>&5
27781  ac_status=$?
27782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27783  (exit $ac_status); }; }; then
27784  ac_cv_type_long_long=yes
27785else
27786  echo "$as_me: failed program was:" >&5
27787sed 's/^/| /' conftest.$ac_ext >&5
27788
27789ac_cv_type_long_long=no
27790fi
27791rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27792fi
27793echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
27794echo "${ECHO_T}$ac_cv_type_long_long" >&6
27795
27796echo "$as_me:$LINENO: checking size of long long" >&5
27797echo $ECHO_N "checking size of long long... $ECHO_C" >&6
27798if test "${ac_cv_sizeof_long_long+set}" = set; then
27799  echo $ECHO_N "(cached) $ECHO_C" >&6
27800else
27801  if test "$ac_cv_type_long_long" = yes; then
27802  # The cast to unsigned long works around a bug in the HP C Compiler
27803  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27804  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27805  # This bug is HP SR number 8606223364.
27806  if test "$cross_compiling" = yes; then
27807  # Depending upon the size, compute the lo and hi bounds.
27808cat >conftest.$ac_ext <<_ACEOF
27809/* confdefs.h.  */
27810_ACEOF
27811cat confdefs.h >>conftest.$ac_ext
27812cat >>conftest.$ac_ext <<_ACEOF
27813/* end confdefs.h.  */
27814$ac_includes_default
27815#ifdef F77_DUMMY_MAIN
27816
27817#  ifdef __cplusplus
27818     extern "C"
27819#  endif
27820   int F77_DUMMY_MAIN() { return 1; }
27821
27822#endif
27823int
27824main ()
27825{
27826static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
27827test_array [0] = 0
27828
27829  ;
27830  return 0;
27831}
27832_ACEOF
27833rm -f conftest.$ac_objext
27834if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27835  (eval $ac_compile) 2>conftest.er1
27836  ac_status=$?
27837  grep -v '^ *+' conftest.er1 >conftest.err
27838  rm -f conftest.er1
27839  cat conftest.err >&5
27840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27841  (exit $ac_status); } &&
27842	 { ac_try='test -z "$ac_c_werror_flag"
27843			 || test ! -s conftest.err'
27844  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27845  (eval $ac_try) 2>&5
27846  ac_status=$?
27847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27848  (exit $ac_status); }; } &&
27849	 { ac_try='test -s conftest.$ac_objext'
27850  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27851  (eval $ac_try) 2>&5
27852  ac_status=$?
27853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27854  (exit $ac_status); }; }; then
27855  ac_lo=0 ac_mid=0
27856  while :; do
27857    cat >conftest.$ac_ext <<_ACEOF
27858/* confdefs.h.  */
27859_ACEOF
27860cat confdefs.h >>conftest.$ac_ext
27861cat >>conftest.$ac_ext <<_ACEOF
27862/* end confdefs.h.  */
27863$ac_includes_default
27864#ifdef F77_DUMMY_MAIN
27865
27866#  ifdef __cplusplus
27867     extern "C"
27868#  endif
27869   int F77_DUMMY_MAIN() { return 1; }
27870
27871#endif
27872int
27873main ()
27874{
27875static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
27876test_array [0] = 0
27877
27878  ;
27879  return 0;
27880}
27881_ACEOF
27882rm -f conftest.$ac_objext
27883if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27884  (eval $ac_compile) 2>conftest.er1
27885  ac_status=$?
27886  grep -v '^ *+' conftest.er1 >conftest.err
27887  rm -f conftest.er1
27888  cat conftest.err >&5
27889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27890  (exit $ac_status); } &&
27891	 { ac_try='test -z "$ac_c_werror_flag"
27892			 || test ! -s conftest.err'
27893  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27894  (eval $ac_try) 2>&5
27895  ac_status=$?
27896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27897  (exit $ac_status); }; } &&
27898	 { ac_try='test -s conftest.$ac_objext'
27899  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27900  (eval $ac_try) 2>&5
27901  ac_status=$?
27902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27903  (exit $ac_status); }; }; then
27904  ac_hi=$ac_mid; break
27905else
27906  echo "$as_me: failed program was:" >&5
27907sed 's/^/| /' conftest.$ac_ext >&5
27908
27909ac_lo=`expr $ac_mid + 1`
27910		    if test $ac_lo -le $ac_mid; then
27911		      ac_lo= ac_hi=
27912		      break
27913		    fi
27914		    ac_mid=`expr 2 '*' $ac_mid + 1`
27915fi
27916rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27917  done
27918else
27919  echo "$as_me: failed program was:" >&5
27920sed 's/^/| /' conftest.$ac_ext >&5
27921
27922cat >conftest.$ac_ext <<_ACEOF
27923/* confdefs.h.  */
27924_ACEOF
27925cat confdefs.h >>conftest.$ac_ext
27926cat >>conftest.$ac_ext <<_ACEOF
27927/* end confdefs.h.  */
27928$ac_includes_default
27929#ifdef F77_DUMMY_MAIN
27930
27931#  ifdef __cplusplus
27932     extern "C"
27933#  endif
27934   int F77_DUMMY_MAIN() { return 1; }
27935
27936#endif
27937int
27938main ()
27939{
27940static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
27941test_array [0] = 0
27942
27943  ;
27944  return 0;
27945}
27946_ACEOF
27947rm -f conftest.$ac_objext
27948if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27949  (eval $ac_compile) 2>conftest.er1
27950  ac_status=$?
27951  grep -v '^ *+' conftest.er1 >conftest.err
27952  rm -f conftest.er1
27953  cat conftest.err >&5
27954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27955  (exit $ac_status); } &&
27956	 { ac_try='test -z "$ac_c_werror_flag"
27957			 || test ! -s conftest.err'
27958  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27959  (eval $ac_try) 2>&5
27960  ac_status=$?
27961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27962  (exit $ac_status); }; } &&
27963	 { ac_try='test -s conftest.$ac_objext'
27964  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27965  (eval $ac_try) 2>&5
27966  ac_status=$?
27967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27968  (exit $ac_status); }; }; then
27969  ac_hi=-1 ac_mid=-1
27970  while :; do
27971    cat >conftest.$ac_ext <<_ACEOF
27972/* confdefs.h.  */
27973_ACEOF
27974cat confdefs.h >>conftest.$ac_ext
27975cat >>conftest.$ac_ext <<_ACEOF
27976/* end confdefs.h.  */
27977$ac_includes_default
27978#ifdef F77_DUMMY_MAIN
27979
27980#  ifdef __cplusplus
27981     extern "C"
27982#  endif
27983   int F77_DUMMY_MAIN() { return 1; }
27984
27985#endif
27986int
27987main ()
27988{
27989static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
27990test_array [0] = 0
27991
27992  ;
27993  return 0;
27994}
27995_ACEOF
27996rm -f conftest.$ac_objext
27997if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27998  (eval $ac_compile) 2>conftest.er1
27999  ac_status=$?
28000  grep -v '^ *+' conftest.er1 >conftest.err
28001  rm -f conftest.er1
28002  cat conftest.err >&5
28003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28004  (exit $ac_status); } &&
28005	 { ac_try='test -z "$ac_c_werror_flag"
28006			 || test ! -s conftest.err'
28007  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28008  (eval $ac_try) 2>&5
28009  ac_status=$?
28010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28011  (exit $ac_status); }; } &&
28012	 { ac_try='test -s conftest.$ac_objext'
28013  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28014  (eval $ac_try) 2>&5
28015  ac_status=$?
28016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28017  (exit $ac_status); }; }; then
28018  ac_lo=$ac_mid; break
28019else
28020  echo "$as_me: failed program was:" >&5
28021sed 's/^/| /' conftest.$ac_ext >&5
28022
28023ac_hi=`expr '(' $ac_mid ')' - 1`
28024		       if test $ac_mid -le $ac_hi; then
28025			 ac_lo= ac_hi=
28026			 break
28027		       fi
28028		       ac_mid=`expr 2 '*' $ac_mid`
28029fi
28030rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28031  done
28032else
28033  echo "$as_me: failed program was:" >&5
28034sed 's/^/| /' conftest.$ac_ext >&5
28035
28036ac_lo= ac_hi=
28037fi
28038rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28039fi
28040rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28041# Binary search between lo and hi bounds.
28042while test "x$ac_lo" != "x$ac_hi"; do
28043  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28044  cat >conftest.$ac_ext <<_ACEOF
28045/* confdefs.h.  */
28046_ACEOF
28047cat confdefs.h >>conftest.$ac_ext
28048cat >>conftest.$ac_ext <<_ACEOF
28049/* end confdefs.h.  */
28050$ac_includes_default
28051#ifdef F77_DUMMY_MAIN
28052
28053#  ifdef __cplusplus
28054     extern "C"
28055#  endif
28056   int F77_DUMMY_MAIN() { return 1; }
28057
28058#endif
28059int
28060main ()
28061{
28062static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
28063test_array [0] = 0
28064
28065  ;
28066  return 0;
28067}
28068_ACEOF
28069rm -f conftest.$ac_objext
28070if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28071  (eval $ac_compile) 2>conftest.er1
28072  ac_status=$?
28073  grep -v '^ *+' conftest.er1 >conftest.err
28074  rm -f conftest.er1
28075  cat conftest.err >&5
28076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28077  (exit $ac_status); } &&
28078	 { ac_try='test -z "$ac_c_werror_flag"
28079			 || test ! -s conftest.err'
28080  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28081  (eval $ac_try) 2>&5
28082  ac_status=$?
28083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28084  (exit $ac_status); }; } &&
28085	 { ac_try='test -s conftest.$ac_objext'
28086  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28087  (eval $ac_try) 2>&5
28088  ac_status=$?
28089  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28090  (exit $ac_status); }; }; then
28091  ac_hi=$ac_mid
28092else
28093  echo "$as_me: failed program was:" >&5
28094sed 's/^/| /' conftest.$ac_ext >&5
28095
28096ac_lo=`expr '(' $ac_mid ')' + 1`
28097fi
28098rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28099done
28100case $ac_lo in
28101?*) ac_cv_sizeof_long_long=$ac_lo;;
28102'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
28103See \`config.log' for more details." >&5
28104echo "$as_me: error: cannot compute sizeof (long long), 77
28105See \`config.log' for more details." >&2;}
28106   { (exit 1); exit 1; }; } ;;
28107esac
28108else
28109  if test "$cross_compiling" = yes; then
28110  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
28111See \`config.log' for more details." >&5
28112echo "$as_me: error: cannot run test program while cross compiling
28113See \`config.log' for more details." >&2;}
28114   { (exit 1); exit 1; }; }
28115else
28116  cat >conftest.$ac_ext <<_ACEOF
28117/* confdefs.h.  */
28118_ACEOF
28119cat confdefs.h >>conftest.$ac_ext
28120cat >>conftest.$ac_ext <<_ACEOF
28121/* end confdefs.h.  */
28122$ac_includes_default
28123long longval () { return (long) (sizeof (long long)); }
28124unsigned long ulongval () { return (long) (sizeof (long long)); }
28125#include <stdio.h>
28126#include <stdlib.h>
28127#ifdef F77_DUMMY_MAIN
28128
28129#  ifdef __cplusplus
28130     extern "C"
28131#  endif
28132   int F77_DUMMY_MAIN() { return 1; }
28133
28134#endif
28135int
28136main ()
28137{
28138
28139  FILE *f = fopen ("conftest.val", "w");
28140  if (! f)
28141    exit (1);
28142  if (((long) (sizeof (long long))) < 0)
28143    {
28144      long i = longval ();
28145      if (i != ((long) (sizeof (long long))))
28146	exit (1);
28147      fprintf (f, "%ld\n", i);
28148    }
28149  else
28150    {
28151      unsigned long i = ulongval ();
28152      if (i != ((long) (sizeof (long long))))
28153	exit (1);
28154      fprintf (f, "%lu\n", i);
28155    }
28156  exit (ferror (f) || fclose (f) != 0);
28157
28158  ;
28159  return 0;
28160}
28161_ACEOF
28162rm -f conftest$ac_exeext
28163if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28164  (eval $ac_link) 2>&5
28165  ac_status=$?
28166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28167  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28168  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28169  (eval $ac_try) 2>&5
28170  ac_status=$?
28171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28172  (exit $ac_status); }; }; then
28173  ac_cv_sizeof_long_long=`cat conftest.val`
28174else
28175  echo "$as_me: program exited with status $ac_status" >&5
28176echo "$as_me: failed program was:" >&5
28177sed 's/^/| /' conftest.$ac_ext >&5
28178
28179( exit $ac_status )
28180{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
28181See \`config.log' for more details." >&5
28182echo "$as_me: error: cannot compute sizeof (long long), 77
28183See \`config.log' for more details." >&2;}
28184   { (exit 1); exit 1; }; }
28185fi
28186rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28187fi
28188fi
28189rm -f conftest.val
28190else
28191  ac_cv_sizeof_long_long=0
28192fi
28193fi
28194echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
28195echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
28196cat >>confdefs.h <<_ACEOF
28197#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
28198_ACEOF
28199
28200
28201  if test "$ac_cv_sizeof_long_long" = "$ac_cv_sizeof_int_p"; then
28202    CoinIntPtr="long long"
28203  fi
28204fi
28205
28206# try long
28207if test x"$CoinIntPtr" = x; then
28208  echo "$as_me:$LINENO: checking for long" >&5
28209echo $ECHO_N "checking for long... $ECHO_C" >&6
28210if test "${ac_cv_type_long+set}" = set; then
28211  echo $ECHO_N "(cached) $ECHO_C" >&6
28212else
28213  cat >conftest.$ac_ext <<_ACEOF
28214/* confdefs.h.  */
28215_ACEOF
28216cat confdefs.h >>conftest.$ac_ext
28217cat >>conftest.$ac_ext <<_ACEOF
28218/* end confdefs.h.  */
28219$ac_includes_default
28220#ifdef F77_DUMMY_MAIN
28221
28222#  ifdef __cplusplus
28223     extern "C"
28224#  endif
28225   int F77_DUMMY_MAIN() { return 1; }
28226
28227#endif
28228int
28229main ()
28230{
28231if ((long *) 0)
28232  return 0;
28233if (sizeof (long))
28234  return 0;
28235  ;
28236  return 0;
28237}
28238_ACEOF
28239rm -f conftest.$ac_objext
28240if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28241  (eval $ac_compile) 2>conftest.er1
28242  ac_status=$?
28243  grep -v '^ *+' conftest.er1 >conftest.err
28244  rm -f conftest.er1
28245  cat conftest.err >&5
28246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28247  (exit $ac_status); } &&
28248	 { ac_try='test -z "$ac_c_werror_flag"
28249			 || test ! -s conftest.err'
28250  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28251  (eval $ac_try) 2>&5
28252  ac_status=$?
28253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28254  (exit $ac_status); }; } &&
28255	 { ac_try='test -s conftest.$ac_objext'
28256  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28257  (eval $ac_try) 2>&5
28258  ac_status=$?
28259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28260  (exit $ac_status); }; }; then
28261  ac_cv_type_long=yes
28262else
28263  echo "$as_me: failed program was:" >&5
28264sed 's/^/| /' conftest.$ac_ext >&5
28265
28266ac_cv_type_long=no
28267fi
28268rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28269fi
28270echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
28271echo "${ECHO_T}$ac_cv_type_long" >&6
28272
28273echo "$as_me:$LINENO: checking size of long" >&5
28274echo $ECHO_N "checking size of long... $ECHO_C" >&6
28275if test "${ac_cv_sizeof_long+set}" = set; then
28276  echo $ECHO_N "(cached) $ECHO_C" >&6
28277else
28278  if test "$ac_cv_type_long" = yes; then
28279  # The cast to unsigned long works around a bug in the HP C Compiler
28280  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28281  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28282  # This bug is HP SR number 8606223364.
28283  if test "$cross_compiling" = yes; then
28284  # Depending upon the size, compute the lo and hi bounds.
28285cat >conftest.$ac_ext <<_ACEOF
28286/* confdefs.h.  */
28287_ACEOF
28288cat confdefs.h >>conftest.$ac_ext
28289cat >>conftest.$ac_ext <<_ACEOF
28290/* end confdefs.h.  */
28291$ac_includes_default
28292#ifdef F77_DUMMY_MAIN
28293
28294#  ifdef __cplusplus
28295     extern "C"
28296#  endif
28297   int F77_DUMMY_MAIN() { return 1; }
28298
28299#endif
28300int
28301main ()
28302{
28303static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
28304test_array [0] = 0
28305
28306  ;
28307  return 0;
28308}
28309_ACEOF
28310rm -f conftest.$ac_objext
28311if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28312  (eval $ac_compile) 2>conftest.er1
28313  ac_status=$?
28314  grep -v '^ *+' conftest.er1 >conftest.err
28315  rm -f conftest.er1
28316  cat conftest.err >&5
28317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28318  (exit $ac_status); } &&
28319	 { ac_try='test -z "$ac_c_werror_flag"
28320			 || test ! -s conftest.err'
28321  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28322  (eval $ac_try) 2>&5
28323  ac_status=$?
28324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28325  (exit $ac_status); }; } &&
28326	 { ac_try='test -s conftest.$ac_objext'
28327  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28328  (eval $ac_try) 2>&5
28329  ac_status=$?
28330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28331  (exit $ac_status); }; }; then
28332  ac_lo=0 ac_mid=0
28333  while :; do
28334    cat >conftest.$ac_ext <<_ACEOF
28335/* confdefs.h.  */
28336_ACEOF
28337cat confdefs.h >>conftest.$ac_ext
28338cat >>conftest.$ac_ext <<_ACEOF
28339/* end confdefs.h.  */
28340$ac_includes_default
28341#ifdef F77_DUMMY_MAIN
28342
28343#  ifdef __cplusplus
28344     extern "C"
28345#  endif
28346   int F77_DUMMY_MAIN() { return 1; }
28347
28348#endif
28349int
28350main ()
28351{
28352static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
28353test_array [0] = 0
28354
28355  ;
28356  return 0;
28357}
28358_ACEOF
28359rm -f conftest.$ac_objext
28360if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28361  (eval $ac_compile) 2>conftest.er1
28362  ac_status=$?
28363  grep -v '^ *+' conftest.er1 >conftest.err
28364  rm -f conftest.er1
28365  cat conftest.err >&5
28366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28367  (exit $ac_status); } &&
28368	 { ac_try='test -z "$ac_c_werror_flag"
28369			 || test ! -s conftest.err'
28370  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28371  (eval $ac_try) 2>&5
28372  ac_status=$?
28373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28374  (exit $ac_status); }; } &&
28375	 { ac_try='test -s conftest.$ac_objext'
28376  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28377  (eval $ac_try) 2>&5
28378  ac_status=$?
28379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28380  (exit $ac_status); }; }; then
28381  ac_hi=$ac_mid; break
28382else
28383  echo "$as_me: failed program was:" >&5
28384sed 's/^/| /' conftest.$ac_ext >&5
28385
28386ac_lo=`expr $ac_mid + 1`
28387		    if test $ac_lo -le $ac_mid; then
28388		      ac_lo= ac_hi=
28389		      break
28390		    fi
28391		    ac_mid=`expr 2 '*' $ac_mid + 1`
28392fi
28393rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28394  done
28395else
28396  echo "$as_me: failed program was:" >&5
28397sed 's/^/| /' conftest.$ac_ext >&5
28398
28399cat >conftest.$ac_ext <<_ACEOF
28400/* confdefs.h.  */
28401_ACEOF
28402cat confdefs.h >>conftest.$ac_ext
28403cat >>conftest.$ac_ext <<_ACEOF
28404/* end confdefs.h.  */
28405$ac_includes_default
28406#ifdef F77_DUMMY_MAIN
28407
28408#  ifdef __cplusplus
28409     extern "C"
28410#  endif
28411   int F77_DUMMY_MAIN() { return 1; }
28412
28413#endif
28414int
28415main ()
28416{
28417static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
28418test_array [0] = 0
28419
28420  ;
28421  return 0;
28422}
28423_ACEOF
28424rm -f conftest.$ac_objext
28425if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28426  (eval $ac_compile) 2>conftest.er1
28427  ac_status=$?
28428  grep -v '^ *+' conftest.er1 >conftest.err
28429  rm -f conftest.er1
28430  cat conftest.err >&5
28431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28432  (exit $ac_status); } &&
28433	 { ac_try='test -z "$ac_c_werror_flag"
28434			 || test ! -s conftest.err'
28435  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28436  (eval $ac_try) 2>&5
28437  ac_status=$?
28438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28439  (exit $ac_status); }; } &&
28440	 { ac_try='test -s conftest.$ac_objext'
28441  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28442  (eval $ac_try) 2>&5
28443  ac_status=$?
28444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28445  (exit $ac_status); }; }; then
28446  ac_hi=-1 ac_mid=-1
28447  while :; do
28448    cat >conftest.$ac_ext <<_ACEOF
28449/* confdefs.h.  */
28450_ACEOF
28451cat confdefs.h >>conftest.$ac_ext
28452cat >>conftest.$ac_ext <<_ACEOF
28453/* end confdefs.h.  */
28454$ac_includes_default
28455#ifdef F77_DUMMY_MAIN
28456
28457#  ifdef __cplusplus
28458     extern "C"
28459#  endif
28460   int F77_DUMMY_MAIN() { return 1; }
28461
28462#endif
28463int
28464main ()
28465{
28466static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
28467test_array [0] = 0
28468
28469  ;
28470  return 0;
28471}
28472_ACEOF
28473rm -f conftest.$ac_objext
28474if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28475  (eval $ac_compile) 2>conftest.er1
28476  ac_status=$?
28477  grep -v '^ *+' conftest.er1 >conftest.err
28478  rm -f conftest.er1
28479  cat conftest.err >&5
28480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28481  (exit $ac_status); } &&
28482	 { ac_try='test -z "$ac_c_werror_flag"
28483			 || test ! -s conftest.err'
28484  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28485  (eval $ac_try) 2>&5
28486  ac_status=$?
28487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28488  (exit $ac_status); }; } &&
28489	 { ac_try='test -s conftest.$ac_objext'
28490  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28491  (eval $ac_try) 2>&5
28492  ac_status=$?
28493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28494  (exit $ac_status); }; }; then
28495  ac_lo=$ac_mid; break
28496else
28497  echo "$as_me: failed program was:" >&5
28498sed 's/^/| /' conftest.$ac_ext >&5
28499
28500ac_hi=`expr '(' $ac_mid ')' - 1`
28501		       if test $ac_mid -le $ac_hi; then
28502			 ac_lo= ac_hi=
28503			 break
28504		       fi
28505		       ac_mid=`expr 2 '*' $ac_mid`
28506fi
28507rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28508  done
28509else
28510  echo "$as_me: failed program was:" >&5
28511sed 's/^/| /' conftest.$ac_ext >&5
28512
28513ac_lo= ac_hi=
28514fi
28515rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28516fi
28517rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28518# Binary search between lo and hi bounds.
28519while test "x$ac_lo" != "x$ac_hi"; do
28520  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28521  cat >conftest.$ac_ext <<_ACEOF
28522/* confdefs.h.  */
28523_ACEOF
28524cat confdefs.h >>conftest.$ac_ext
28525cat >>conftest.$ac_ext <<_ACEOF
28526/* end confdefs.h.  */
28527$ac_includes_default
28528#ifdef F77_DUMMY_MAIN
28529
28530#  ifdef __cplusplus
28531     extern "C"
28532#  endif
28533   int F77_DUMMY_MAIN() { return 1; }
28534
28535#endif
28536int
28537main ()
28538{
28539static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
28540test_array [0] = 0
28541
28542  ;
28543  return 0;
28544}
28545_ACEOF
28546rm -f conftest.$ac_objext
28547if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28548  (eval $ac_compile) 2>conftest.er1
28549  ac_status=$?
28550  grep -v '^ *+' conftest.er1 >conftest.err
28551  rm -f conftest.er1
28552  cat conftest.err >&5
28553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28554  (exit $ac_status); } &&
28555	 { ac_try='test -z "$ac_c_werror_flag"
28556			 || test ! -s conftest.err'
28557  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28558  (eval $ac_try) 2>&5
28559  ac_status=$?
28560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28561  (exit $ac_status); }; } &&
28562	 { ac_try='test -s conftest.$ac_objext'
28563  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28564  (eval $ac_try) 2>&5
28565  ac_status=$?
28566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28567  (exit $ac_status); }; }; then
28568  ac_hi=$ac_mid
28569else
28570  echo "$as_me: failed program was:" >&5
28571sed 's/^/| /' conftest.$ac_ext >&5
28572
28573ac_lo=`expr '(' $ac_mid ')' + 1`
28574fi
28575rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28576done
28577case $ac_lo in
28578?*) ac_cv_sizeof_long=$ac_lo;;
28579'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
28580See \`config.log' for more details." >&5
28581echo "$as_me: error: cannot compute sizeof (long), 77
28582See \`config.log' for more details." >&2;}
28583   { (exit 1); exit 1; }; } ;;
28584esac
28585else
28586  if test "$cross_compiling" = yes; then
28587  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
28588See \`config.log' for more details." >&5
28589echo "$as_me: error: cannot run test program while cross compiling
28590See \`config.log' for more details." >&2;}
28591   { (exit 1); exit 1; }; }
28592else
28593  cat >conftest.$ac_ext <<_ACEOF
28594/* confdefs.h.  */
28595_ACEOF
28596cat confdefs.h >>conftest.$ac_ext
28597cat >>conftest.$ac_ext <<_ACEOF
28598/* end confdefs.h.  */
28599$ac_includes_default
28600long longval () { return (long) (sizeof (long)); }
28601unsigned long ulongval () { return (long) (sizeof (long)); }
28602#include <stdio.h>
28603#include <stdlib.h>
28604#ifdef F77_DUMMY_MAIN
28605
28606#  ifdef __cplusplus
28607     extern "C"
28608#  endif
28609   int F77_DUMMY_MAIN() { return 1; }
28610
28611#endif
28612int
28613main ()
28614{
28615
28616  FILE *f = fopen ("conftest.val", "w");
28617  if (! f)
28618    exit (1);
28619  if (((long) (sizeof (long))) < 0)
28620    {
28621      long i = longval ();
28622      if (i != ((long) (sizeof (long))))
28623	exit (1);
28624      fprintf (f, "%ld\n", i);
28625    }
28626  else
28627    {
28628      unsigned long i = ulongval ();
28629      if (i != ((long) (sizeof (long))))
28630	exit (1);
28631      fprintf (f, "%lu\n", i);
28632    }
28633  exit (ferror (f) || fclose (f) != 0);
28634
28635  ;
28636  return 0;
28637}
28638_ACEOF
28639rm -f conftest$ac_exeext
28640if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28641  (eval $ac_link) 2>&5
28642  ac_status=$?
28643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28644  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28645  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28646  (eval $ac_try) 2>&5
28647  ac_status=$?
28648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28649  (exit $ac_status); }; }; then
28650  ac_cv_sizeof_long=`cat conftest.val`
28651else
28652  echo "$as_me: program exited with status $ac_status" >&5
28653echo "$as_me: failed program was:" >&5
28654sed 's/^/| /' conftest.$ac_ext >&5
28655
28656( exit $ac_status )
28657{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
28658See \`config.log' for more details." >&5
28659echo "$as_me: error: cannot compute sizeof (long), 77
28660See \`config.log' for more details." >&2;}
28661   { (exit 1); exit 1; }; }
28662fi
28663rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28664fi
28665fi
28666rm -f conftest.val
28667else
28668  ac_cv_sizeof_long=0
28669fi
28670fi
28671echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
28672echo "${ECHO_T}$ac_cv_sizeof_long" >&6
28673cat >>confdefs.h <<_ACEOF
28674#define SIZEOF_LONG $ac_cv_sizeof_long
28675_ACEOF
28676
28677
28678  if test "$ac_cv_sizeof_long" = "$ac_cv_sizeof_int_p"; then
28679    CoinIntPtr="long"
28680  fi
28681fi
28682
28683# try int
28684if test x"$CoinIntPtr" = x; then
28685  echo "$as_me:$LINENO: checking for int" >&5
28686echo $ECHO_N "checking for int... $ECHO_C" >&6
28687if test "${ac_cv_type_int+set}" = set; then
28688  echo $ECHO_N "(cached) $ECHO_C" >&6
28689else
28690  cat >conftest.$ac_ext <<_ACEOF
28691/* confdefs.h.  */
28692_ACEOF
28693cat confdefs.h >>conftest.$ac_ext
28694cat >>conftest.$ac_ext <<_ACEOF
28695/* end confdefs.h.  */
28696$ac_includes_default
28697#ifdef F77_DUMMY_MAIN
28698
28699#  ifdef __cplusplus
28700     extern "C"
28701#  endif
28702   int F77_DUMMY_MAIN() { return 1; }
28703
28704#endif
28705int
28706main ()
28707{
28708if ((int *) 0)
28709  return 0;
28710if (sizeof (int))
28711  return 0;
28712  ;
28713  return 0;
28714}
28715_ACEOF
28716rm -f conftest.$ac_objext
28717if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28718  (eval $ac_compile) 2>conftest.er1
28719  ac_status=$?
28720  grep -v '^ *+' conftest.er1 >conftest.err
28721  rm -f conftest.er1
28722  cat conftest.err >&5
28723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28724  (exit $ac_status); } &&
28725	 { ac_try='test -z "$ac_c_werror_flag"
28726			 || test ! -s conftest.err'
28727  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28728  (eval $ac_try) 2>&5
28729  ac_status=$?
28730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28731  (exit $ac_status); }; } &&
28732	 { ac_try='test -s conftest.$ac_objext'
28733  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28734  (eval $ac_try) 2>&5
28735  ac_status=$?
28736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28737  (exit $ac_status); }; }; then
28738  ac_cv_type_int=yes
28739else
28740  echo "$as_me: failed program was:" >&5
28741sed 's/^/| /' conftest.$ac_ext >&5
28742
28743ac_cv_type_int=no
28744fi
28745rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28746fi
28747echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
28748echo "${ECHO_T}$ac_cv_type_int" >&6
28749
28750echo "$as_me:$LINENO: checking size of int" >&5
28751echo $ECHO_N "checking size of int... $ECHO_C" >&6
28752if test "${ac_cv_sizeof_int+set}" = set; then
28753  echo $ECHO_N "(cached) $ECHO_C" >&6
28754else
28755  if test "$ac_cv_type_int" = yes; then
28756  # The cast to unsigned long works around a bug in the HP C Compiler
28757  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28758  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28759  # This bug is HP SR number 8606223364.
28760  if test "$cross_compiling" = yes; then
28761  # Depending upon the size, compute the lo and hi bounds.
28762cat >conftest.$ac_ext <<_ACEOF
28763/* confdefs.h.  */
28764_ACEOF
28765cat confdefs.h >>conftest.$ac_ext
28766cat >>conftest.$ac_ext <<_ACEOF
28767/* end confdefs.h.  */
28768$ac_includes_default
28769#ifdef F77_DUMMY_MAIN
28770
28771#  ifdef __cplusplus
28772     extern "C"
28773#  endif
28774   int F77_DUMMY_MAIN() { return 1; }
28775
28776#endif
28777int
28778main ()
28779{
28780static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
28781test_array [0] = 0
28782
28783  ;
28784  return 0;
28785}
28786_ACEOF
28787rm -f conftest.$ac_objext
28788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28789  (eval $ac_compile) 2>conftest.er1
28790  ac_status=$?
28791  grep -v '^ *+' conftest.er1 >conftest.err
28792  rm -f conftest.er1
28793  cat conftest.err >&5
28794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28795  (exit $ac_status); } &&
28796	 { ac_try='test -z "$ac_c_werror_flag"
28797			 || test ! -s conftest.err'
28798  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28799  (eval $ac_try) 2>&5
28800  ac_status=$?
28801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28802  (exit $ac_status); }; } &&
28803	 { ac_try='test -s conftest.$ac_objext'
28804  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28805  (eval $ac_try) 2>&5
28806  ac_status=$?
28807  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28808  (exit $ac_status); }; }; then
28809  ac_lo=0 ac_mid=0
28810  while :; do
28811    cat >conftest.$ac_ext <<_ACEOF
28812/* confdefs.h.  */
28813_ACEOF
28814cat confdefs.h >>conftest.$ac_ext
28815cat >>conftest.$ac_ext <<_ACEOF
28816/* end confdefs.h.  */
28817$ac_includes_default
28818#ifdef F77_DUMMY_MAIN
28819
28820#  ifdef __cplusplus
28821     extern "C"
28822#  endif
28823   int F77_DUMMY_MAIN() { return 1; }
28824
28825#endif
28826int
28827main ()
28828{
28829static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
28830test_array [0] = 0
28831
28832  ;
28833  return 0;
28834}
28835_ACEOF
28836rm -f conftest.$ac_objext
28837if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28838  (eval $ac_compile) 2>conftest.er1
28839  ac_status=$?
28840  grep -v '^ *+' conftest.er1 >conftest.err
28841  rm -f conftest.er1
28842  cat conftest.err >&5
28843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28844  (exit $ac_status); } &&
28845	 { ac_try='test -z "$ac_c_werror_flag"
28846			 || test ! -s conftest.err'
28847  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28848  (eval $ac_try) 2>&5
28849  ac_status=$?
28850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28851  (exit $ac_status); }; } &&
28852	 { ac_try='test -s conftest.$ac_objext'
28853  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28854  (eval $ac_try) 2>&5
28855  ac_status=$?
28856  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28857  (exit $ac_status); }; }; then
28858  ac_hi=$ac_mid; break
28859else
28860  echo "$as_me: failed program was:" >&5
28861sed 's/^/| /' conftest.$ac_ext >&5
28862
28863ac_lo=`expr $ac_mid + 1`
28864		    if test $ac_lo -le $ac_mid; then
28865		      ac_lo= ac_hi=
28866		      break
28867		    fi
28868		    ac_mid=`expr 2 '*' $ac_mid + 1`
28869fi
28870rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28871  done
28872else
28873  echo "$as_me: failed program was:" >&5
28874sed 's/^/| /' conftest.$ac_ext >&5
28875
28876cat >conftest.$ac_ext <<_ACEOF
28877/* confdefs.h.  */
28878_ACEOF
28879cat confdefs.h >>conftest.$ac_ext
28880cat >>conftest.$ac_ext <<_ACEOF
28881/* end confdefs.h.  */
28882$ac_includes_default
28883#ifdef F77_DUMMY_MAIN
28884
28885#  ifdef __cplusplus
28886     extern "C"
28887#  endif
28888   int F77_DUMMY_MAIN() { return 1; }
28889
28890#endif
28891int
28892main ()
28893{
28894static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
28895test_array [0] = 0
28896
28897  ;
28898  return 0;
28899}
28900_ACEOF
28901rm -f conftest.$ac_objext
28902if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28903  (eval $ac_compile) 2>conftest.er1
28904  ac_status=$?
28905  grep -v '^ *+' conftest.er1 >conftest.err
28906  rm -f conftest.er1
28907  cat conftest.err >&5
28908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28909  (exit $ac_status); } &&
28910	 { ac_try='test -z "$ac_c_werror_flag"
28911			 || test ! -s conftest.err'
28912  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28913  (eval $ac_try) 2>&5
28914  ac_status=$?
28915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28916  (exit $ac_status); }; } &&
28917	 { ac_try='test -s conftest.$ac_objext'
28918  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28919  (eval $ac_try) 2>&5
28920  ac_status=$?
28921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28922  (exit $ac_status); }; }; then
28923  ac_hi=-1 ac_mid=-1
28924  while :; do
28925    cat >conftest.$ac_ext <<_ACEOF
28926/* confdefs.h.  */
28927_ACEOF
28928cat confdefs.h >>conftest.$ac_ext
28929cat >>conftest.$ac_ext <<_ACEOF
28930/* end confdefs.h.  */
28931$ac_includes_default
28932#ifdef F77_DUMMY_MAIN
28933
28934#  ifdef __cplusplus
28935     extern "C"
28936#  endif
28937   int F77_DUMMY_MAIN() { return 1; }
28938
28939#endif
28940int
28941main ()
28942{
28943static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
28944test_array [0] = 0
28945
28946  ;
28947  return 0;
28948}
28949_ACEOF
28950rm -f conftest.$ac_objext
28951if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28952  (eval $ac_compile) 2>conftest.er1
28953  ac_status=$?
28954  grep -v '^ *+' conftest.er1 >conftest.err
28955  rm -f conftest.er1
28956  cat conftest.err >&5
28957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28958  (exit $ac_status); } &&
28959	 { ac_try='test -z "$ac_c_werror_flag"
28960			 || test ! -s conftest.err'
28961  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28962  (eval $ac_try) 2>&5
28963  ac_status=$?
28964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28965  (exit $ac_status); }; } &&
28966	 { ac_try='test -s conftest.$ac_objext'
28967  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28968  (eval $ac_try) 2>&5
28969  ac_status=$?
28970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28971  (exit $ac_status); }; }; then
28972  ac_lo=$ac_mid; break
28973else
28974  echo "$as_me: failed program was:" >&5
28975sed 's/^/| /' conftest.$ac_ext >&5
28976
28977ac_hi=`expr '(' $ac_mid ')' - 1`
28978		       if test $ac_mid -le $ac_hi; then
28979			 ac_lo= ac_hi=
28980			 break
28981		       fi
28982		       ac_mid=`expr 2 '*' $ac_mid`
28983fi
28984rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28985  done
28986else
28987  echo "$as_me: failed program was:" >&5
28988sed 's/^/| /' conftest.$ac_ext >&5
28989
28990ac_lo= ac_hi=
28991fi
28992rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28993fi
28994rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28995# Binary search between lo and hi bounds.
28996while test "x$ac_lo" != "x$ac_hi"; do
28997  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28998  cat >conftest.$ac_ext <<_ACEOF
28999/* confdefs.h.  */
29000_ACEOF
29001cat confdefs.h >>conftest.$ac_ext
29002cat >>conftest.$ac_ext <<_ACEOF
29003/* end confdefs.h.  */
29004$ac_includes_default
29005#ifdef F77_DUMMY_MAIN
29006
29007#  ifdef __cplusplus
29008     extern "C"
29009#  endif
29010   int F77_DUMMY_MAIN() { return 1; }
29011
29012#endif
29013int
29014main ()
29015{
29016static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
29017test_array [0] = 0
29018
29019  ;
29020  return 0;
29021}
29022_ACEOF
29023rm -f conftest.$ac_objext
29024if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29025  (eval $ac_compile) 2>conftest.er1
29026  ac_status=$?
29027  grep -v '^ *+' conftest.er1 >conftest.err
29028  rm -f conftest.er1
29029  cat conftest.err >&5
29030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29031  (exit $ac_status); } &&
29032	 { ac_try='test -z "$ac_c_werror_flag"
29033			 || test ! -s conftest.err'
29034  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29035  (eval $ac_try) 2>&5
29036  ac_status=$?
29037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29038  (exit $ac_status); }; } &&
29039	 { ac_try='test -s conftest.$ac_objext'
29040  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29041  (eval $ac_try) 2>&5
29042  ac_status=$?
29043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29044  (exit $ac_status); }; }; then
29045  ac_hi=$ac_mid
29046else
29047  echo "$as_me: failed program was:" >&5
29048sed 's/^/| /' conftest.$ac_ext >&5
29049
29050ac_lo=`expr '(' $ac_mid ')' + 1`
29051fi
29052rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29053done
29054case $ac_lo in
29055?*) ac_cv_sizeof_int=$ac_lo;;
29056'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
29057See \`config.log' for more details." >&5
29058echo "$as_me: error: cannot compute sizeof (int), 77
29059See \`config.log' for more details." >&2;}
29060   { (exit 1); exit 1; }; } ;;
29061esac
29062else
29063  if test "$cross_compiling" = yes; then
29064  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
29065See \`config.log' for more details." >&5
29066echo "$as_me: error: cannot run test program while cross compiling
29067See \`config.log' for more details." >&2;}
29068   { (exit 1); exit 1; }; }
29069else
29070  cat >conftest.$ac_ext <<_ACEOF
29071/* confdefs.h.  */
29072_ACEOF
29073cat confdefs.h >>conftest.$ac_ext
29074cat >>conftest.$ac_ext <<_ACEOF
29075/* end confdefs.h.  */
29076$ac_includes_default
29077long longval () { return (long) (sizeof (int)); }
29078unsigned long ulongval () { return (long) (sizeof (int)); }
29079#include <stdio.h>
29080#include <stdlib.h>
29081#ifdef F77_DUMMY_MAIN
29082
29083#  ifdef __cplusplus
29084     extern "C"
29085#  endif
29086   int F77_DUMMY_MAIN() { return 1; }
29087
29088#endif
29089int
29090main ()
29091{
29092
29093  FILE *f = fopen ("conftest.val", "w");
29094  if (! f)
29095    exit (1);
29096  if (((long) (sizeof (int))) < 0)
29097    {
29098      long i = longval ();
29099      if (i != ((long) (sizeof (int))))
29100	exit (1);
29101      fprintf (f, "%ld\n", i);
29102    }
29103  else
29104    {
29105      unsigned long i = ulongval ();
29106      if (i != ((long) (sizeof (int))))
29107	exit (1);
29108      fprintf (f, "%lu\n", i);
29109    }
29110  exit (ferror (f) || fclose (f) != 0);
29111
29112  ;
29113  return 0;
29114}
29115_ACEOF
29116rm -f conftest$ac_exeext
29117if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29118  (eval $ac_link) 2>&5
29119  ac_status=$?
29120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29121  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29122  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29123  (eval $ac_try) 2>&5
29124  ac_status=$?
29125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29126  (exit $ac_status); }; }; then
29127  ac_cv_sizeof_int=`cat conftest.val`
29128else
29129  echo "$as_me: program exited with status $ac_status" >&5
29130echo "$as_me: failed program was:" >&5
29131sed 's/^/| /' conftest.$ac_ext >&5
29132
29133( exit $ac_status )
29134{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
29135See \`config.log' for more details." >&5
29136echo "$as_me: error: cannot compute sizeof (int), 77
29137See \`config.log' for more details." >&2;}
29138   { (exit 1); exit 1; }; }
29139fi
29140rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29141fi
29142fi
29143rm -f conftest.val
29144else
29145  ac_cv_sizeof_int=0
29146fi
29147fi
29148echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
29149echo "${ECHO_T}$ac_cv_sizeof_int" >&6
29150cat >>confdefs.h <<_ACEOF
29151#define SIZEOF_INT $ac_cv_sizeof_int
29152_ACEOF
29153
29154
29155  if test "$ac_cv_sizeof_int" = "$ac_cv_sizeof_int_p"; then
29156    CoinIntPtr="int"
29157  fi
29158fi
29159ac_ext=cc
29160ac_cpp='$CXXCPP $CPPFLAGS'
29161ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29162ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29163ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29164
29165
29166if test x"$CoinIntPtr" = x; then
29167  { { echo "$as_me:$LINENO: error: Cannot find integer type capturing pointer" >&5
29168echo "$as_me: error: Cannot find integer type capturing pointer" >&2;}
29169   { (exit 1); exit 1; }; }
29170fi
29171
29172cat >>confdefs.h <<_ACEOF
29173#define COIN_INTPTR_T $CoinIntPtr
29174_ACEOF
29175
29176
29177if test "x$ac_cv_header_stdint_h" = xyes ; then
29178
29179cat >>confdefs.h <<\_ACEOF
29180#define COINUTILS_HAS_STDINT_H 1
29181_ACEOF
29182
29183fi
29184
29185if test "x$ac_cv_header_cstdint" = xyes ; then
29186
29187cat >>confdefs.h <<\_ACEOF
29188#define COINUTILS_HAS_CSTDINT 1
29189_ACEOF
29190
29191fi
29192
29193#############################################################################
29194#                           Check whether we have windows.h                 #
29195#############################################################################
29196
29197for ac_header in windows.h
29198do
29199as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29200if eval "test \"\${$as_ac_Header+set}\" = set"; then
29201  echo "$as_me:$LINENO: checking for $ac_header" >&5
29202echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29203if eval "test \"\${$as_ac_Header+set}\" = set"; then
29204  echo $ECHO_N "(cached) $ECHO_C" >&6
29205fi
29206echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29207echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29208else
29209  # Is the header compilable?
29210echo "$as_me:$LINENO: checking $ac_header usability" >&5
29211echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29212cat >conftest.$ac_ext <<_ACEOF
29213/* confdefs.h.  */
29214_ACEOF
29215cat confdefs.h >>conftest.$ac_ext
29216cat >>conftest.$ac_ext <<_ACEOF
29217/* end confdefs.h.  */
29218$ac_includes_default
29219#include <$ac_header>
29220_ACEOF
29221rm -f conftest.$ac_objext
29222if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29223  (eval $ac_compile) 2>conftest.er1
29224  ac_status=$?
29225  grep -v '^ *+' conftest.er1 >conftest.err
29226  rm -f conftest.er1
29227  cat conftest.err >&5
29228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29229  (exit $ac_status); } &&
29230	 { ac_try='test -z "$ac_cxx_werror_flag"
29231			 || test ! -s conftest.err'
29232  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29233  (eval $ac_try) 2>&5
29234  ac_status=$?
29235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29236  (exit $ac_status); }; } &&
29237	 { ac_try='test -s conftest.$ac_objext'
29238  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29239  (eval $ac_try) 2>&5
29240  ac_status=$?
29241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29242  (exit $ac_status); }; }; then
29243  ac_header_compiler=yes
29244else
29245  echo "$as_me: failed program was:" >&5
29246sed 's/^/| /' conftest.$ac_ext >&5
29247
29248ac_header_compiler=no
29249fi
29250rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29251echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29252echo "${ECHO_T}$ac_header_compiler" >&6
29253
29254# Is the header present?
29255echo "$as_me:$LINENO: checking $ac_header presence" >&5
29256echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29257cat >conftest.$ac_ext <<_ACEOF
29258/* confdefs.h.  */
29259_ACEOF
29260cat confdefs.h >>conftest.$ac_ext
29261cat >>conftest.$ac_ext <<_ACEOF
29262/* end confdefs.h.  */
29263#include <$ac_header>
29264_ACEOF
29265if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29266  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29267  ac_status=$?
29268  grep -v '^ *+' conftest.er1 >conftest.err
29269  rm -f conftest.er1
29270  cat conftest.err >&5
29271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29272  (exit $ac_status); } >/dev/null; then
29273  if test -s conftest.err; then
29274    ac_cpp_err=$ac_cxx_preproc_warn_flag
29275    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
29276  else
29277    ac_cpp_err=
29278  fi
29279else
29280  ac_cpp_err=yes
29281fi
29282if test -z "$ac_cpp_err"; then
29283  ac_header_preproc=yes
29284else
29285  echo "$as_me: failed program was:" >&5
29286sed 's/^/| /' conftest.$ac_ext >&5
29287
29288  ac_header_preproc=no
29289fi
29290rm -f conftest.err conftest.$ac_ext
29291echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29292echo "${ECHO_T}$ac_header_preproc" >&6
29293
29294# So?  What about this header?
29295case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
29296  yes:no: )
29297    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29298echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29299    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29300echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29301    ac_header_preproc=yes
29302    ;;
29303  no:yes:* )
29304    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29305echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29306    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29307echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29308    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29309echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29310    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29311echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29312    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29313echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29314    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29315echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29316    (
29317      cat <<\_ASBOX
29318## ---------------------------------------------------- ##
29319## Report this to http://projects.coin-or.org/CoinUtils ##
29320## ---------------------------------------------------- ##
29321_ASBOX
29322    ) |
29323      sed "s/^/$as_me: WARNING:     /" >&2
29324    ;;
29325esac
29326echo "$as_me:$LINENO: checking for $ac_header" >&5
29327echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29328if eval "test \"\${$as_ac_Header+set}\" = set"; then
29329  echo $ECHO_N "(cached) $ECHO_C" >&6
29330else
29331  eval "$as_ac_Header=\$ac_header_preproc"
29332fi
29333echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29334echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29335
29336fi
29337if test `eval echo '${'$as_ac_Header'}'` = yes; then
29338  cat >>confdefs.h <<_ACEOF
29339#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29340_ACEOF
29341
29342fi
29343
29344done
29345
29346
29347#############################################################################
29348#                           Check whether we have endian.h                  #
29349#############################################################################
29350
29351for ac_header in endian.h
29352do
29353as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29354if eval "test \"\${$as_ac_Header+set}\" = set"; then
29355  echo "$as_me:$LINENO: checking for $ac_header" >&5
29356echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29357if eval "test \"\${$as_ac_Header+set}\" = set"; then
29358  echo $ECHO_N "(cached) $ECHO_C" >&6
29359fi
29360echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29361echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29362else
29363  # Is the header compilable?
29364echo "$as_me:$LINENO: checking $ac_header usability" >&5
29365echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29366cat >conftest.$ac_ext <<_ACEOF
29367/* confdefs.h.  */
29368_ACEOF
29369cat confdefs.h >>conftest.$ac_ext
29370cat >>conftest.$ac_ext <<_ACEOF
29371/* end confdefs.h.  */
29372$ac_includes_default
29373#include <$ac_header>
29374_ACEOF
29375rm -f conftest.$ac_objext
29376if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29377  (eval $ac_compile) 2>conftest.er1
29378  ac_status=$?
29379  grep -v '^ *+' conftest.er1 >conftest.err
29380  rm -f conftest.er1
29381  cat conftest.err >&5
29382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29383  (exit $ac_status); } &&
29384	 { ac_try='test -z "$ac_cxx_werror_flag"
29385			 || test ! -s conftest.err'
29386  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29387  (eval $ac_try) 2>&5
29388  ac_status=$?
29389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29390  (exit $ac_status); }; } &&
29391	 { ac_try='test -s conftest.$ac_objext'
29392  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29393  (eval $ac_try) 2>&5
29394  ac_status=$?
29395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29396  (exit $ac_status); }; }; then
29397  ac_header_compiler=yes
29398else
29399  echo "$as_me: failed program was:" >&5
29400sed 's/^/| /' conftest.$ac_ext >&5
29401
29402ac_header_compiler=no
29403fi
29404rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29405echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29406echo "${ECHO_T}$ac_header_compiler" >&6
29407
29408# Is the header present?
29409echo "$as_me:$LINENO: checking $ac_header presence" >&5
29410echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29411cat >conftest.$ac_ext <<_ACEOF
29412/* confdefs.h.  */
29413_ACEOF
29414cat confdefs.h >>conftest.$ac_ext
29415cat >>conftest.$ac_ext <<_ACEOF
29416/* end confdefs.h.  */
29417#include <$ac_header>
29418_ACEOF
29419if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29420  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29421  ac_status=$?
29422  grep -v '^ *+' conftest.er1 >conftest.err
29423  rm -f conftest.er1
29424  cat conftest.err >&5
29425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29426  (exit $ac_status); } >/dev/null; then
29427  if test -s conftest.err; then
29428    ac_cpp_err=$ac_cxx_preproc_warn_flag
29429    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
29430  else
29431    ac_cpp_err=
29432  fi
29433else
29434  ac_cpp_err=yes
29435fi
29436if test -z "$ac_cpp_err"; then
29437  ac_header_preproc=yes
29438else
29439  echo "$as_me: failed program was:" >&5
29440sed 's/^/| /' conftest.$ac_ext >&5
29441
29442  ac_header_preproc=no
29443fi
29444rm -f conftest.err conftest.$ac_ext
29445echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29446echo "${ECHO_T}$ac_header_preproc" >&6
29447
29448# So?  What about this header?
29449case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
29450  yes:no: )
29451    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29452echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29453    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29454echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29455    ac_header_preproc=yes
29456    ;;
29457  no:yes:* )
29458    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29459echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29460    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29461echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29462    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29463echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29464    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29465echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29466    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29467echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29468    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29469echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29470    (
29471      cat <<\_ASBOX
29472## ---------------------------------------------------- ##
29473## Report this to http://projects.coin-or.org/CoinUtils ##
29474## ---------------------------------------------------- ##
29475_ASBOX
29476    ) |
29477      sed "s/^/$as_me: WARNING:     /" >&2
29478    ;;
29479esac
29480echo "$as_me:$LINENO: checking for $ac_header" >&5
29481echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29482if eval "test \"\${$as_ac_Header+set}\" = set"; then
29483  echo $ECHO_N "(cached) $ECHO_C" >&6
29484else
29485  eval "$as_ac_Header=\$ac_header_preproc"
29486fi
29487echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29488echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29489
29490fi
29491if test `eval echo '${'$as_ac_Header'}'` = yes; then
29492  cat >>confdefs.h <<_ACEOF
29493#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29494_ACEOF
29495
29496fi
29497
29498done
29499
29500
29501#############################################################################
29502#                             COIN-OR components                            #
29503#############################################################################
29504
29505
29506
29507if test $coin_cc_is_cl != true ; then
29508
29509    COINUTILSLIB_LIBS="-lm $COINUTILSLIB_LIBS"
29510    COINUTILSLIB_PCLIBS="-lm $COINUTILSLIB_PCLIBS"
29511    COINUTILSLIB_LIBS_INSTALLED="-lm $COINUTILSLIB_LIBS_INSTALLED"
29512
29513fi
29514
29515
29516
29517
29518
29519# Check whether --enable-pkg-config or --disable-pkg-config was given.
29520if test "${enable_pkg_config+set}" = set; then
29521  enableval="$enable_pkg_config"
29522  use_pkgconfig="$enableval"
29523else
29524  if test x$coin_cc_is_cl = xtrue; then
29525     use_pkgconfig=no
29526   else
29527     use_pkgconfig=yes
29528   fi
29529fi;
29530
29531if test $use_pkgconfig = yes ; then
29532  if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
29533    if test -n "$ac_tool_prefix"; then
29534  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
29535set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
29536echo "$as_me:$LINENO: checking for $ac_word" >&5
29537echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29538if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
29539  echo $ECHO_N "(cached) $ECHO_C" >&6
29540else
29541  if test -n "$PKG_CONFIG"; then
29542  ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
29543else
29544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29545for as_dir in $PATH
29546do
29547  IFS=$as_save_IFS
29548  test -z "$as_dir" && as_dir=.
29549  for ac_exec_ext in '' $ac_executable_extensions; do
29550  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29551    ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config"
29552    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29553    break 2
29554  fi
29555done
29556done
29557
29558fi
29559fi
29560PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
29561if test -n "$PKG_CONFIG"; then
29562  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29563echo "${ECHO_T}$PKG_CONFIG" >&6
29564else
29565  echo "$as_me:$LINENO: result: no" >&5
29566echo "${ECHO_T}no" >&6
29567fi
29568
29569fi
29570if test -z "$ac_cv_prog_PKG_CONFIG"; then
29571  ac_ct_PKG_CONFIG=$PKG_CONFIG
29572  # Extract the first word of "pkg-config", so it can be a program name with args.
29573set dummy pkg-config; ac_word=$2
29574echo "$as_me:$LINENO: checking for $ac_word" >&5
29575echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29576if test "${ac_cv_prog_ac_ct_PKG_CONFIG+set}" = set; then
29577  echo $ECHO_N "(cached) $ECHO_C" >&6
29578else
29579  if test -n "$ac_ct_PKG_CONFIG"; then
29580  ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test.
29581else
29582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29583for as_dir in $PATH
29584do
29585  IFS=$as_save_IFS
29586  test -z "$as_dir" && as_dir=.
29587  for ac_exec_ext in '' $ac_executable_extensions; do
29588  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29589    ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config"
29590    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29591    break 2
29592  fi
29593done
29594done
29595
29596fi
29597fi
29598ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG
29599if test -n "$ac_ct_PKG_CONFIG"; then
29600  echo "$as_me:$LINENO: result: $ac_ct_PKG_CONFIG" >&5
29601echo "${ECHO_T}$ac_ct_PKG_CONFIG" >&6
29602else
29603  echo "$as_me:$LINENO: result: no" >&5
29604echo "${ECHO_T}no" >&6
29605fi
29606
29607  PKG_CONFIG=$ac_ct_PKG_CONFIG
29608else
29609  PKG_CONFIG="$ac_cv_prog_PKG_CONFIG"
29610fi
29611
29612  fi
29613  if test -n "$PKG_CONFIG"; then
29614    _pkg_min_version=0.16.0
29615    echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
29616echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
29617    if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
29618      echo "$as_me:$LINENO: result: yes" >&5
29619echo "${ECHO_T}yes" >&6
29620    else
29621      echo "$as_me:$LINENO: result: no" >&5
29622echo "${ECHO_T}no" >&6
29623      PKG_CONFIG=""
29624    fi
29625  fi
29626
29627  # check if pkg-config supports the short-errors flag
29628  if test -n "$PKG_CONFIG" && \
29629    $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29630    pkg_short_errors=" --short-errors "
29631  else
29632    pkg_short_errors=""
29633  fi
29634fi
29635
29636
29637
29638if test -n "$PKG_CONFIG"; then
29639  COIN_HAS_PKGCONFIG_TRUE=
29640  COIN_HAS_PKGCONFIG_FALSE='#'
29641else
29642  COIN_HAS_PKGCONFIG_TRUE='#'
29643  COIN_HAS_PKGCONFIG_FALSE=
29644fi
29645
29646
29647
29648# assemble pkg-config search path for installed projects
29649COIN_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
29650
29651# 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
29652# best would actually to use ${libdir}, since .pc files get installed into ${libdir}/pkgconfig,
29653# unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
29654if test "x${prefix}" = xNONE ; then
29655  COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib64/pkgconfig:${ac_default_prefix}/lib/pkgconfig:${ac_default_prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
29656else
29657  COIN_PKG_CONFIG_PATH="${prefix}/lib64/pkgconfig:${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
29658fi
29659
29660
29661# Check whether --with-coin-instdir or --without-coin-instdir was given.
29662if test "${with_coin_instdir+set}" = set; then
29663  withval="$with_coin_instdir"
29664  if test -d "$withval"; then : ; else
29665     { { echo "$as_me:$LINENO: error: argument for --with-coin-instdir not a directory" >&5
29666echo "$as_me: error: argument for --with-coin-instdir not a directory" >&2;}
29667   { (exit 1); exit 1; }; }
29668   fi
29669   COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:$withval/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
29670
29671fi;
29672
29673
29674
29675# assemble additional pkg-config search paths for uninstalled projects
29676if test x$coin_projectdir = xyes ; then
29677  # if we are in a project setup, then in a classic setup, we want to find uninstalled projects
29678  # their (relative) location is written to coin_subdirs.txt by the configure in the project base directory
29679  # unfortunately, if the user set prefix, then we do not know where the project base directory is located
29680  # 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)
29681  COIN_PKG_CONFIG_PATH_UNINSTALLED=
29682  if test -f ../coin_subdirs.txt ; then
29683    for i in `cat ../coin_subdirs.txt` ; do
29684      if test -d ../$i ; then
29685        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
29686      fi
29687      if test -d ../$i/pkgconfig ; then
29688        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
29689      fi
29690    done
29691  fi
29692
29693  if test -f ../../coin_subdirs.txt ; then
29694    for i in `cat ../../coin_subdirs.txt` ; do
29695      if test -d ../../$i ; then
29696        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
29697      fi
29698      if test -d ../../$i/pkgconfig ; then
29699        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
29700      fi
29701    done
29702  fi
29703
29704  if test -f ../../../coin_subdirs.txt ; then
29705    for i in `cat ../../../coin_subdirs.txt` ; do
29706      if test -d ../../../$i ; then
29707        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../../$i; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
29708      fi
29709      if test -d ../../../$i/pkgconfig ; then
29710        COIN_PKG_CONFIG_PATH_UNINSTALLED="`cd ../../../$i/pkgconfig; pwd`:${COIN_PKG_CONFIG_PATH_UNINSTALLED}"
29711      fi
29712    done
29713  fi
29714
29715
29716fi
29717
29718if test -n "$PKG_CONFIG" && test x$coin_cc_is_cl = xtrue; then
29719  { 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
29720echo "$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;}
29721fi
29722
29723
29724
29725
29726# Check whether --with-blas or --without-blas was given.
29727if test "${with_blas+set}" = set; then
29728  withval="$with_blas"
29729  use_blas="$withval"
29730else
29731  use_blas=
29732fi;
29733
29734# if user specified --with-blas-lib, then we should give COIN_CHECK_PACKAGE
29735# preference
29736
29737# Check whether --with-blas-lib or --without-blas-lib was given.
29738if test "${with_blas_lib+set}" = set; then
29739  withval="$with_blas_lib"
29740  use_blas=BUILD
29741fi;
29742
29743# Check if user supplied option makes sense
29744if test x"$use_blas" != x; then
29745  if test "$use_blas" = "BUILD"; then
29746    # we come to this later
29747    :
29748  elif test "$use_blas" != "no"; then
29749    coin_save_LIBS="$LIBS"
29750    LIBS="$use_blas $LIBS"
29751    if test "$F77" != unavailable ; then
29752      coin_need_flibs=no
29753      echo "$as_me:$LINENO: checking whether user supplied BLASLIB=\"$use_blas\" works" >&5
29754echo $ECHO_N "checking whether user supplied BLASLIB=\"$use_blas\" works... $ECHO_C" >&6
29755      case $ac_ext in
29756  f)
29757    cat >conftest.$ac_ext <<_ACEOF
29758/* confdefs.h.  */
29759_ACEOF
29760cat confdefs.h >>conftest.$ac_ext
29761cat >>conftest.$ac_ext <<_ACEOF
29762/* end confdefs.h.  */
29763
29764#ifdef F77_DUMMY_MAIN
29765
29766#  ifdef __cplusplus
29767     extern "C"
29768#  endif
29769   int F77_DUMMY_MAIN() { return 1; }
29770
29771#endif
29772int
29773main ()
29774{
29775      call daxpy
29776  ;
29777  return 0;
29778}
29779_ACEOF
29780rm -f conftest.$ac_objext conftest$ac_exeext
29781if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29782  (eval $ac_link) 2>conftest.er1
29783  ac_status=$?
29784  grep -v '^ *+' conftest.er1 >conftest.err
29785  rm -f conftest.er1
29786  cat conftest.err >&5
29787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29788  (exit $ac_status); } &&
29789	 { ac_try='test -z "$ac_cxx_werror_flag"
29790			 || test ! -s conftest.err'
29791  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29792  (eval $ac_try) 2>&5
29793  ac_status=$?
29794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29795  (exit $ac_status); }; } &&
29796	 { ac_try='test -s conftest$ac_exeext'
29797  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29798  (eval $ac_try) 2>&5
29799  ac_status=$?
29800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29801  (exit $ac_status); }; }; then
29802  if test $coin_need_flibs = yes ; then
29803                           use_blas="$use_blas $FLIBS"
29804                         fi
29805                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
29806echo "${ECHO_T}yes: $use_blas" >&6
29807else
29808  echo "$as_me: failed program was:" >&5
29809sed 's/^/| /' conftest.$ac_ext >&5
29810
29811echo "$as_me:$LINENO: result: no" >&5
29812echo "${ECHO_T}no" >&6
29813                         { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
29814echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
29815   { (exit 1); exit 1; }; }
29816fi
29817rm -f conftest.err conftest.$ac_objext \
29818      conftest$ac_exeext conftest.$ac_ext
29819    ;;
29820  c)
29821    ac_ext=f
29822ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
29823ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29824ac_compiler_gnu=$ac_cv_f77_compiler_gnu
29825case $ac_cv_f77_mangling in
29826  upper*) ac_val="DAXPY" ;;
29827  lower*) ac_val="daxpy" ;;
29828  *)      ac_val="unknown" ;;
29829esac
29830case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
29831
29832cfuncdaxpy="$ac_val"
29833
29834ac_ext=cc
29835ac_cpp='$CXXCPP $CPPFLAGS'
29836ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29837ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29838ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29839
29840    if test x"$coin_need_flibs" = xyes; then
29841      flink_try=no;
29842    else
29843      cat >conftest.$ac_ext <<_ACEOF
29844/* confdefs.h.  */
29845_ACEOF
29846cat confdefs.h >>conftest.$ac_ext
29847cat >>conftest.$ac_ext <<_ACEOF
29848/* end confdefs.h.  */
29849void $cfuncdaxpy();
29850#ifdef F77_DUMMY_MAIN
29851
29852#  ifdef __cplusplus
29853     extern "C"
29854#  endif
29855   int F77_DUMMY_MAIN() { return 1; }
29856
29857#endif
29858int
29859main ()
29860{
29861$cfuncdaxpy()
29862  ;
29863  return 0;
29864}
29865_ACEOF
29866rm -f conftest.$ac_objext conftest$ac_exeext
29867if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29868  (eval $ac_link) 2>conftest.er1
29869  ac_status=$?
29870  grep -v '^ *+' conftest.er1 >conftest.err
29871  rm -f conftest.er1
29872  cat conftest.err >&5
29873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29874  (exit $ac_status); } &&
29875	 { ac_try='test -z "$ac_cxx_werror_flag"
29876			 || test ! -s conftest.err'
29877  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29878  (eval $ac_try) 2>&5
29879  ac_status=$?
29880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29881  (exit $ac_status); }; } &&
29882	 { ac_try='test -s conftest$ac_exeext'
29883  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29884  (eval $ac_try) 2>&5
29885  ac_status=$?
29886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29887  (exit $ac_status); }; }; then
29888  flink_try=yes
29889else
29890  echo "$as_me: failed program was:" >&5
29891sed 's/^/| /' conftest.$ac_ext >&5
29892
29893flink_try=no
29894fi
29895rm -f conftest.err conftest.$ac_objext \
29896      conftest$ac_exeext conftest.$ac_ext
29897    fi
29898    if test $flink_try = yes; then
29899      if test $coin_need_flibs = yes ; then
29900                           use_blas="$use_blas $FLIBS"
29901                         fi
29902                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
29903echo "${ECHO_T}yes: $use_blas" >&6
29904    else
29905      if test x"$FLIBS" != x; then
29906        flink_save_libs="$LIBS"
29907        LIBS="$LIBS $FLIBS"
29908        cat >conftest.$ac_ext <<_ACEOF
29909/* confdefs.h.  */
29910_ACEOF
29911cat confdefs.h >>conftest.$ac_ext
29912cat >>conftest.$ac_ext <<_ACEOF
29913/* end confdefs.h.  */
29914void $cfuncdaxpy();
29915#ifdef F77_DUMMY_MAIN
29916
29917#  ifdef __cplusplus
29918     extern "C"
29919#  endif
29920   int F77_DUMMY_MAIN() { return 1; }
29921
29922#endif
29923int
29924main ()
29925{
29926$cfuncdaxpy()
29927  ;
29928  return 0;
29929}
29930_ACEOF
29931rm -f conftest.$ac_objext conftest$ac_exeext
29932if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29933  (eval $ac_link) 2>conftest.er1
29934  ac_status=$?
29935  grep -v '^ *+' conftest.er1 >conftest.err
29936  rm -f conftest.er1
29937  cat conftest.err >&5
29938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29939  (exit $ac_status); } &&
29940	 { ac_try='test -z "$ac_cxx_werror_flag"
29941			 || test ! -s conftest.err'
29942  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29943  (eval $ac_try) 2>&5
29944  ac_status=$?
29945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29946  (exit $ac_status); }; } &&
29947	 { ac_try='test -s conftest$ac_exeext'
29948  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29949  (eval $ac_try) 2>&5
29950  ac_status=$?
29951  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29952  (exit $ac_status); }; }; then
29953  LIBS="$flink_save_libs"
29954                     coin_need_flibs=yes
29955                     if test $coin_need_flibs = yes ; then
29956                           use_blas="$use_blas $FLIBS"
29957                         fi
29958                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
29959echo "${ECHO_T}yes: $use_blas" >&6
29960
29961else
29962  echo "$as_me: failed program was:" >&5
29963sed 's/^/| /' conftest.$ac_ext >&5
29964
29965LIBS="$flink_save_libs"
29966                     echo "$as_me:$LINENO: result: no" >&5
29967echo "${ECHO_T}no" >&6
29968                         { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
29969echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
29970   { (exit 1); exit 1; }; }
29971fi
29972rm -f conftest.err conftest.$ac_objext \
29973      conftest$ac_exeext conftest.$ac_ext
29974      else
29975        echo "$as_me:$LINENO: result: no" >&5
29976echo "${ECHO_T}no" >&6
29977                         { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
29978echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
29979   { (exit 1); exit 1; }; }
29980      fi
29981    fi
29982    ;;
29983  cc|cpp)
29984    ac_ext=f
29985ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
29986ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29987ac_compiler_gnu=$ac_cv_f77_compiler_gnu
29988case $ac_cv_f77_mangling in
29989  upper*) ac_val="DAXPY" ;;
29990  lower*) ac_val="daxpy" ;;
29991  *)      ac_val="unknown" ;;
29992esac
29993case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
29994
29995cfuncdaxpy="$ac_val"
29996
29997ac_ext=cc
29998ac_cpp='$CXXCPP $CPPFLAGS'
29999ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30000ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30001ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30002
30003    if test x"$coin_need_flibs" = xyes; then
30004      flink_try=no;
30005    else
30006      cat >conftest.$ac_ext <<_ACEOF
30007/* confdefs.h.  */
30008_ACEOF
30009cat confdefs.h >>conftest.$ac_ext
30010cat >>conftest.$ac_ext <<_ACEOF
30011/* end confdefs.h.  */
30012extern "C" {void $cfuncdaxpy();}
30013#ifdef F77_DUMMY_MAIN
30014
30015#  ifdef __cplusplus
30016     extern "C"
30017#  endif
30018   int F77_DUMMY_MAIN() { return 1; }
30019
30020#endif
30021int
30022main ()
30023{
30024$cfuncdaxpy()
30025  ;
30026  return 0;
30027}
30028_ACEOF
30029rm -f conftest.$ac_objext conftest$ac_exeext
30030if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30031  (eval $ac_link) 2>conftest.er1
30032  ac_status=$?
30033  grep -v '^ *+' conftest.er1 >conftest.err
30034  rm -f conftest.er1
30035  cat conftest.err >&5
30036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30037  (exit $ac_status); } &&
30038	 { ac_try='test -z "$ac_cxx_werror_flag"
30039			 || test ! -s conftest.err'
30040  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30041  (eval $ac_try) 2>&5
30042  ac_status=$?
30043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30044  (exit $ac_status); }; } &&
30045	 { ac_try='test -s conftest$ac_exeext'
30046  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30047  (eval $ac_try) 2>&5
30048  ac_status=$?
30049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30050  (exit $ac_status); }; }; then
30051  flink_try=yes
30052else
30053  echo "$as_me: failed program was:" >&5
30054sed 's/^/| /' conftest.$ac_ext >&5
30055
30056flink_try=no
30057fi
30058rm -f conftest.err conftest.$ac_objext \
30059      conftest$ac_exeext conftest.$ac_ext
30060    fi
30061    if test $flink_try = yes; then
30062      if test $coin_need_flibs = yes ; then
30063                           use_blas="$use_blas $FLIBS"
30064                         fi
30065                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
30066echo "${ECHO_T}yes: $use_blas" >&6
30067    else
30068      if test x"$FLIBS" != x; then
30069        flink_save_libs="$LIBS"
30070        LIBS="$LIBS $FLIBS"
30071        cat >conftest.$ac_ext <<_ACEOF
30072/* confdefs.h.  */
30073_ACEOF
30074cat confdefs.h >>conftest.$ac_ext
30075cat >>conftest.$ac_ext <<_ACEOF
30076/* end confdefs.h.  */
30077extern "C" {void $cfuncdaxpy();}
30078#ifdef F77_DUMMY_MAIN
30079
30080#  ifdef __cplusplus
30081     extern "C"
30082#  endif
30083   int F77_DUMMY_MAIN() { return 1; }
30084
30085#endif
30086int
30087main ()
30088{
30089$cfuncdaxpy()
30090  ;
30091  return 0;
30092}
30093_ACEOF
30094rm -f conftest.$ac_objext conftest$ac_exeext
30095if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30096  (eval $ac_link) 2>conftest.er1
30097  ac_status=$?
30098  grep -v '^ *+' conftest.er1 >conftest.err
30099  rm -f conftest.er1
30100  cat conftest.err >&5
30101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30102  (exit $ac_status); } &&
30103	 { ac_try='test -z "$ac_cxx_werror_flag"
30104			 || test ! -s conftest.err'
30105  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30106  (eval $ac_try) 2>&5
30107  ac_status=$?
30108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30109  (exit $ac_status); }; } &&
30110	 { ac_try='test -s conftest$ac_exeext'
30111  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30112  (eval $ac_try) 2>&5
30113  ac_status=$?
30114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30115  (exit $ac_status); }; }; then
30116  LIBS="$flink_save_libs"
30117                     coin_need_flibs=yes
30118                     if test $coin_need_flibs = yes ; then
30119                           use_blas="$use_blas $FLIBS"
30120                         fi
30121                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
30122echo "${ECHO_T}yes: $use_blas" >&6
30123
30124else
30125  echo "$as_me: failed program was:" >&5
30126sed 's/^/| /' conftest.$ac_ext >&5
30127
30128LIBS="$flink_save_libs"
30129                     echo "$as_me:$LINENO: result: no" >&5
30130echo "${ECHO_T}no" >&6
30131                         { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
30132echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
30133   { (exit 1); exit 1; }; }
30134fi
30135rm -f conftest.err conftest.$ac_objext \
30136      conftest$ac_exeext conftest.$ac_ext
30137      else
30138        echo "$as_me:$LINENO: result: no" >&5
30139echo "${ECHO_T}no" >&6
30140                         { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
30141echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
30142   { (exit 1); exit 1; }; }
30143      fi
30144    fi
30145    ;;
30146esac
30147
30148      use_blas="$use_blas $FLIBS"
30149    else
30150      { echo "$as_me:$LINENO: checking whether user supplied BLASLIB=\"$use_blas\" works with C linkage" >&5
30151echo "$as_me: checking whether user supplied BLASLIB=\"$use_blas\" works with C linkage" >&6;}
30152      ac_ext=c
30153ac_cpp='$CPP $CPPFLAGS'
30154ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30155ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30156ac_compiler_gnu=$ac_cv_c_compiler_gnu
30157
30158      echo "$as_me:$LINENO: checking for daxpy" >&5
30159echo $ECHO_N "checking for daxpy... $ECHO_C" >&6
30160if test "${ac_cv_func_daxpy+set}" = set; then
30161  echo $ECHO_N "(cached) $ECHO_C" >&6
30162else
30163  cat >conftest.$ac_ext <<_ACEOF
30164/* confdefs.h.  */
30165_ACEOF
30166cat confdefs.h >>conftest.$ac_ext
30167cat >>conftest.$ac_ext <<_ACEOF
30168/* end confdefs.h.  */
30169/* Define daxpy to an innocuous variant, in case <limits.h> declares daxpy.
30170   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30171#define daxpy innocuous_daxpy
30172
30173/* System header to define __stub macros and hopefully few prototypes,
30174    which can conflict with char daxpy (); below.
30175    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30176    <limits.h> exists even on freestanding compilers.  */
30177
30178#ifdef __STDC__
30179# include <limits.h>
30180#else
30181# include <assert.h>
30182#endif
30183
30184#undef daxpy
30185
30186/* Override any gcc2 internal prototype to avoid an error.  */
30187#ifdef __cplusplus
30188extern "C"
30189{
30190#endif
30191/* We use char because int might match the return type of a gcc2
30192   builtin and then its argument prototype would still apply.  */
30193char daxpy ();
30194/* The GNU C library defines this for functions which it implements
30195    to always fail with ENOSYS.  Some functions are actually named
30196    something starting with __ and the normal name is an alias.  */
30197#if defined (__stub_daxpy) || defined (__stub___daxpy)
30198choke me
30199#else
30200char (*f) () = daxpy;
30201#endif
30202#ifdef __cplusplus
30203}
30204#endif
30205
30206#ifdef F77_DUMMY_MAIN
30207
30208#  ifdef __cplusplus
30209     extern "C"
30210#  endif
30211   int F77_DUMMY_MAIN() { return 1; }
30212
30213#endif
30214int
30215main ()
30216{
30217return f != daxpy;
30218  ;
30219  return 0;
30220}
30221_ACEOF
30222rm -f conftest.$ac_objext conftest$ac_exeext
30223if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30224  (eval $ac_link) 2>conftest.er1
30225  ac_status=$?
30226  grep -v '^ *+' conftest.er1 >conftest.err
30227  rm -f conftest.er1
30228  cat conftest.err >&5
30229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30230  (exit $ac_status); } &&
30231	 { ac_try='test -z "$ac_c_werror_flag"
30232			 || test ! -s conftest.err'
30233  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30234  (eval $ac_try) 2>&5
30235  ac_status=$?
30236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30237  (exit $ac_status); }; } &&
30238	 { ac_try='test -s conftest$ac_exeext'
30239  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30240  (eval $ac_try) 2>&5
30241  ac_status=$?
30242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30243  (exit $ac_status); }; }; then
30244  ac_cv_func_daxpy=yes
30245else
30246  echo "$as_me: failed program was:" >&5
30247sed 's/^/| /' conftest.$ac_ext >&5
30248
30249ac_cv_func_daxpy=no
30250fi
30251rm -f conftest.err conftest.$ac_objext \
30252      conftest$ac_exeext conftest.$ac_ext
30253fi
30254echo "$as_me:$LINENO: result: $ac_cv_func_daxpy" >&5
30255echo "${ECHO_T}$ac_cv_func_daxpy" >&6
30256if test $ac_cv_func_daxpy = yes; then
30257  :
30258else
30259  { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
30260echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
30261   { (exit 1); exit 1; }; }
30262fi
30263
30264      ac_ext=cc
30265ac_cpp='$CXXCPP $CPPFLAGS'
30266ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30267ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30268ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30269
30270    fi
30271    LIBS="$coin_save_LIBS"
30272  fi
30273else
30274# Try to autodetect the library for blas based on build system
30275  #AC_MSG_CHECKING([default locations for BLAS])
30276  case $build in
30277    *-sgi-*)
30278      echo "$as_me:$LINENO: checking whether -lcomplib.sgimath has BLAS" >&5
30279echo $ECHO_N "checking whether -lcomplib.sgimath has BLAS... $ECHO_C" >&6
30280      coin_need_flibs=no
30281      coin_save_LIBS="$LIBS"
30282      LIBS="-lcomplib.sgimath $LIBS"
30283      case $ac_ext in
30284  f)
30285    cat >conftest.$ac_ext <<_ACEOF
30286/* confdefs.h.  */
30287_ACEOF
30288cat confdefs.h >>conftest.$ac_ext
30289cat >>conftest.$ac_ext <<_ACEOF
30290/* end confdefs.h.  */
30291
30292#ifdef F77_DUMMY_MAIN
30293
30294#  ifdef __cplusplus
30295     extern "C"
30296#  endif
30297   int F77_DUMMY_MAIN() { return 1; }
30298
30299#endif
30300int
30301main ()
30302{
30303      call daxpy
30304  ;
30305  return 0;
30306}
30307_ACEOF
30308rm -f conftest.$ac_objext conftest$ac_exeext
30309if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30310  (eval $ac_link) 2>conftest.er1
30311  ac_status=$?
30312  grep -v '^ *+' conftest.er1 >conftest.err
30313  rm -f conftest.er1
30314  cat conftest.err >&5
30315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30316  (exit $ac_status); } &&
30317	 { ac_try='test -z "$ac_cxx_werror_flag"
30318			 || test ! -s conftest.err'
30319  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30320  (eval $ac_try) 2>&5
30321  ac_status=$?
30322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30323  (exit $ac_status); }; } &&
30324	 { ac_try='test -s conftest$ac_exeext'
30325  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30326  (eval $ac_try) 2>&5
30327  ac_status=$?
30328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30329  (exit $ac_status); }; }; then
30330  use_blas="-lcomplib.sgimath"
30331                         if test $coin_need_flibs = yes ; then
30332                           use_blas="$use_blas $FLIBS"
30333                         fi
30334                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
30335echo "${ECHO_T}yes: $use_blas" >&6
30336
30337else
30338  echo "$as_me: failed program was:" >&5
30339sed 's/^/| /' conftest.$ac_ext >&5
30340
30341echo "$as_me:$LINENO: result: no" >&5
30342echo "${ECHO_T}no" >&6
30343fi
30344rm -f conftest.err conftest.$ac_objext \
30345      conftest$ac_exeext conftest.$ac_ext
30346    ;;
30347  c)
30348    ac_ext=f
30349ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
30350ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30351ac_compiler_gnu=$ac_cv_f77_compiler_gnu
30352case $ac_cv_f77_mangling in
30353  upper*) ac_val="DAXPY" ;;
30354  lower*) ac_val="daxpy" ;;
30355  *)      ac_val="unknown" ;;
30356esac
30357case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
30358
30359cfuncdaxpy="$ac_val"
30360
30361ac_ext=cc
30362ac_cpp='$CXXCPP $CPPFLAGS'
30363ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30364ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30365ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30366
30367    if test x"$coin_need_flibs" = xyes; then
30368      flink_try=no;
30369    else
30370      cat >conftest.$ac_ext <<_ACEOF
30371/* confdefs.h.  */
30372_ACEOF
30373cat confdefs.h >>conftest.$ac_ext
30374cat >>conftest.$ac_ext <<_ACEOF
30375/* end confdefs.h.  */
30376void $cfuncdaxpy();
30377#ifdef F77_DUMMY_MAIN
30378
30379#  ifdef __cplusplus
30380     extern "C"
30381#  endif
30382   int F77_DUMMY_MAIN() { return 1; }
30383
30384#endif
30385int
30386main ()
30387{
30388$cfuncdaxpy()
30389  ;
30390  return 0;
30391}
30392_ACEOF
30393rm -f conftest.$ac_objext conftest$ac_exeext
30394if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30395  (eval $ac_link) 2>conftest.er1
30396  ac_status=$?
30397  grep -v '^ *+' conftest.er1 >conftest.err
30398  rm -f conftest.er1
30399  cat conftest.err >&5
30400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30401  (exit $ac_status); } &&
30402	 { ac_try='test -z "$ac_cxx_werror_flag"
30403			 || test ! -s conftest.err'
30404  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30405  (eval $ac_try) 2>&5
30406  ac_status=$?
30407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30408  (exit $ac_status); }; } &&
30409	 { ac_try='test -s conftest$ac_exeext'
30410  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30411  (eval $ac_try) 2>&5
30412  ac_status=$?
30413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30414  (exit $ac_status); }; }; then
30415  flink_try=yes
30416else
30417  echo "$as_me: failed program was:" >&5
30418sed 's/^/| /' conftest.$ac_ext >&5
30419
30420flink_try=no
30421fi
30422rm -f conftest.err conftest.$ac_objext \
30423      conftest$ac_exeext conftest.$ac_ext
30424    fi
30425    if test $flink_try = yes; then
30426      use_blas="-lcomplib.sgimath"
30427                         if test $coin_need_flibs = yes ; then
30428                           use_blas="$use_blas $FLIBS"
30429                         fi
30430                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
30431echo "${ECHO_T}yes: $use_blas" >&6
30432
30433    else
30434      if test x"$FLIBS" != x; then
30435        flink_save_libs="$LIBS"
30436        LIBS="$LIBS $FLIBS"
30437        cat >conftest.$ac_ext <<_ACEOF
30438/* confdefs.h.  */
30439_ACEOF
30440cat confdefs.h >>conftest.$ac_ext
30441cat >>conftest.$ac_ext <<_ACEOF
30442/* end confdefs.h.  */
30443void $cfuncdaxpy();
30444#ifdef F77_DUMMY_MAIN
30445
30446#  ifdef __cplusplus
30447     extern "C"
30448#  endif
30449   int F77_DUMMY_MAIN() { return 1; }
30450
30451#endif
30452int
30453main ()
30454{
30455$cfuncdaxpy()
30456  ;
30457  return 0;
30458}
30459_ACEOF
30460rm -f conftest.$ac_objext conftest$ac_exeext
30461if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30462  (eval $ac_link) 2>conftest.er1
30463  ac_status=$?
30464  grep -v '^ *+' conftest.er1 >conftest.err
30465  rm -f conftest.er1
30466  cat conftest.err >&5
30467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30468  (exit $ac_status); } &&
30469	 { ac_try='test -z "$ac_cxx_werror_flag"
30470			 || test ! -s conftest.err'
30471  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30472  (eval $ac_try) 2>&5
30473  ac_status=$?
30474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30475  (exit $ac_status); }; } &&
30476	 { ac_try='test -s conftest$ac_exeext'
30477  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30478  (eval $ac_try) 2>&5
30479  ac_status=$?
30480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30481  (exit $ac_status); }; }; then
30482  LIBS="$flink_save_libs"
30483                     coin_need_flibs=yes
30484                     use_blas="-lcomplib.sgimath"
30485                         if test $coin_need_flibs = yes ; then
30486                           use_blas="$use_blas $FLIBS"
30487                         fi
30488                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
30489echo "${ECHO_T}yes: $use_blas" >&6
30490
30491
30492else
30493  echo "$as_me: failed program was:" >&5
30494sed 's/^/| /' conftest.$ac_ext >&5
30495
30496LIBS="$flink_save_libs"
30497                     echo "$as_me:$LINENO: result: no" >&5
30498echo "${ECHO_T}no" >&6
30499fi
30500rm -f conftest.err conftest.$ac_objext \
30501      conftest$ac_exeext conftest.$ac_ext
30502      else
30503        echo "$as_me:$LINENO: result: no" >&5
30504echo "${ECHO_T}no" >&6
30505      fi
30506    fi
30507    ;;
30508  cc|cpp)
30509    ac_ext=f
30510ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
30511ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30512ac_compiler_gnu=$ac_cv_f77_compiler_gnu
30513case $ac_cv_f77_mangling in
30514  upper*) ac_val="DAXPY" ;;
30515  lower*) ac_val="daxpy" ;;
30516  *)      ac_val="unknown" ;;
30517esac
30518case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
30519
30520cfuncdaxpy="$ac_val"
30521
30522ac_ext=cc
30523ac_cpp='$CXXCPP $CPPFLAGS'
30524ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30525ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30526ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30527
30528    if test x"$coin_need_flibs" = xyes; then
30529      flink_try=no;
30530    else
30531      cat >conftest.$ac_ext <<_ACEOF
30532/* confdefs.h.  */
30533_ACEOF
30534cat confdefs.h >>conftest.$ac_ext
30535cat >>conftest.$ac_ext <<_ACEOF
30536/* end confdefs.h.  */
30537extern "C" {void $cfuncdaxpy();}
30538#ifdef F77_DUMMY_MAIN
30539
30540#  ifdef __cplusplus
30541     extern "C"
30542#  endif
30543   int F77_DUMMY_MAIN() { return 1; }
30544
30545#endif
30546int
30547main ()
30548{
30549$cfuncdaxpy()
30550  ;
30551  return 0;
30552}
30553_ACEOF
30554rm -f conftest.$ac_objext conftest$ac_exeext
30555if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30556  (eval $ac_link) 2>conftest.er1
30557  ac_status=$?
30558  grep -v '^ *+' conftest.er1 >conftest.err
30559  rm -f conftest.er1
30560  cat conftest.err >&5
30561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30562  (exit $ac_status); } &&
30563	 { ac_try='test -z "$ac_cxx_werror_flag"
30564			 || test ! -s conftest.err'
30565  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30566  (eval $ac_try) 2>&5
30567  ac_status=$?
30568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30569  (exit $ac_status); }; } &&
30570	 { ac_try='test -s conftest$ac_exeext'
30571  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30572  (eval $ac_try) 2>&5
30573  ac_status=$?
30574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30575  (exit $ac_status); }; }; then
30576  flink_try=yes
30577else
30578  echo "$as_me: failed program was:" >&5
30579sed 's/^/| /' conftest.$ac_ext >&5
30580
30581flink_try=no
30582fi
30583rm -f conftest.err conftest.$ac_objext \
30584      conftest$ac_exeext conftest.$ac_ext
30585    fi
30586    if test $flink_try = yes; then
30587      use_blas="-lcomplib.sgimath"
30588                         if test $coin_need_flibs = yes ; then
30589                           use_blas="$use_blas $FLIBS"
30590                         fi
30591                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
30592echo "${ECHO_T}yes: $use_blas" >&6
30593
30594    else
30595      if test x"$FLIBS" != x; then
30596        flink_save_libs="$LIBS"
30597        LIBS="$LIBS $FLIBS"
30598        cat >conftest.$ac_ext <<_ACEOF
30599/* confdefs.h.  */
30600_ACEOF
30601cat confdefs.h >>conftest.$ac_ext
30602cat >>conftest.$ac_ext <<_ACEOF
30603/* end confdefs.h.  */
30604extern "C" {void $cfuncdaxpy();}
30605#ifdef F77_DUMMY_MAIN
30606
30607#  ifdef __cplusplus
30608     extern "C"
30609#  endif
30610   int F77_DUMMY_MAIN() { return 1; }
30611
30612#endif
30613int
30614main ()
30615{
30616$cfuncdaxpy()
30617  ;
30618  return 0;
30619}
30620_ACEOF
30621rm -f conftest.$ac_objext conftest$ac_exeext
30622if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30623  (eval $ac_link) 2>conftest.er1
30624  ac_status=$?
30625  grep -v '^ *+' conftest.er1 >conftest.err
30626  rm -f conftest.er1
30627  cat conftest.err >&5
30628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30629  (exit $ac_status); } &&
30630	 { ac_try='test -z "$ac_cxx_werror_flag"
30631			 || test ! -s conftest.err'
30632  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30633  (eval $ac_try) 2>&5
30634  ac_status=$?
30635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30636  (exit $ac_status); }; } &&
30637	 { ac_try='test -s conftest$ac_exeext'
30638  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30639  (eval $ac_try) 2>&5
30640  ac_status=$?
30641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30642  (exit $ac_status); }; }; then
30643  LIBS="$flink_save_libs"
30644                     coin_need_flibs=yes
30645                     use_blas="-lcomplib.sgimath"
30646                         if test $coin_need_flibs = yes ; then
30647                           use_blas="$use_blas $FLIBS"
30648                         fi
30649                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
30650echo "${ECHO_T}yes: $use_blas" >&6
30651
30652
30653else
30654  echo "$as_me: failed program was:" >&5
30655sed 's/^/| /' conftest.$ac_ext >&5
30656
30657LIBS="$flink_save_libs"
30658                     echo "$as_me:$LINENO: result: no" >&5
30659echo "${ECHO_T}no" >&6
30660fi
30661rm -f conftest.err conftest.$ac_objext \
30662      conftest$ac_exeext conftest.$ac_ext
30663      else
30664        echo "$as_me:$LINENO: result: no" >&5
30665echo "${ECHO_T}no" >&6
30666      fi
30667    fi
30668    ;;
30669esac
30670
30671      LIBS="$coin_save_LIBS"
30672      ;;
30673
30674# Ideally, we'd use -library=sunperf, but it's an imperfect world. Studio
30675# cc doesn't recognise -library, it wants -xlic_lib. Studio 12 CC doesn't
30676# recognise -xlic_lib. Libtool doesn't like -xlic_lib anyway. Sun claims
30677# that CC and cc will understand -library in Studio 13. The main extra
30678# function of -xlic_lib and -library is to arrange for the Fortran run-time
30679# libraries to be linked for C++ and C. We can arrange that explicitly.
30680    *-*-solaris*)
30681      echo "$as_me:$LINENO: checking for BLAS in libsunperf" >&5
30682echo $ECHO_N "checking for BLAS in libsunperf... $ECHO_C" >&6
30683      coin_need_flibs=no
30684      coin_save_LIBS="$LIBS"
30685      LIBS="-lsunperf $FLIBS $LIBS"
30686      case $ac_ext in
30687  f)
30688    cat >conftest.$ac_ext <<_ACEOF
30689/* confdefs.h.  */
30690_ACEOF
30691cat confdefs.h >>conftest.$ac_ext
30692cat >>conftest.$ac_ext <<_ACEOF
30693/* end confdefs.h.  */
30694
30695#ifdef F77_DUMMY_MAIN
30696
30697#  ifdef __cplusplus
30698     extern "C"
30699#  endif
30700   int F77_DUMMY_MAIN() { return 1; }
30701
30702#endif
30703int
30704main ()
30705{
30706      call daxpy
30707  ;
30708  return 0;
30709}
30710_ACEOF
30711rm -f conftest.$ac_objext conftest$ac_exeext
30712if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30713  (eval $ac_link) 2>conftest.er1
30714  ac_status=$?
30715  grep -v '^ *+' conftest.er1 >conftest.err
30716  rm -f conftest.er1
30717  cat conftest.err >&5
30718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30719  (exit $ac_status); } &&
30720	 { ac_try='test -z "$ac_cxx_werror_flag"
30721			 || test ! -s conftest.err'
30722  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30723  (eval $ac_try) 2>&5
30724  ac_status=$?
30725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30726  (exit $ac_status); }; } &&
30727	 { ac_try='test -s conftest$ac_exeext'
30728  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30729  (eval $ac_try) 2>&5
30730  ac_status=$?
30731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30732  (exit $ac_status); }; }; then
30733  use_blas='-lsunperf'
30734                         if test $coin_need_flibs = yes ; then
30735                           use_blas="$use_blas $FLIBS"
30736                         fi
30737                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
30738echo "${ECHO_T}yes: $use_blas" >&6
30739
30740else
30741  echo "$as_me: failed program was:" >&5
30742sed 's/^/| /' conftest.$ac_ext >&5
30743
30744echo "$as_me:$LINENO: result: no" >&5
30745echo "${ECHO_T}no" >&6
30746fi
30747rm -f conftest.err conftest.$ac_objext \
30748      conftest$ac_exeext conftest.$ac_ext
30749    ;;
30750  c)
30751    ac_ext=f
30752ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
30753ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30754ac_compiler_gnu=$ac_cv_f77_compiler_gnu
30755case $ac_cv_f77_mangling in
30756  upper*) ac_val="DAXPY" ;;
30757  lower*) ac_val="daxpy" ;;
30758  *)      ac_val="unknown" ;;
30759esac
30760case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
30761
30762cfuncdaxpy="$ac_val"
30763
30764ac_ext=cc
30765ac_cpp='$CXXCPP $CPPFLAGS'
30766ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30767ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30768ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30769
30770    if test x"$coin_need_flibs" = xyes; then
30771      flink_try=no;
30772    else
30773      cat >conftest.$ac_ext <<_ACEOF
30774/* confdefs.h.  */
30775_ACEOF
30776cat confdefs.h >>conftest.$ac_ext
30777cat >>conftest.$ac_ext <<_ACEOF
30778/* end confdefs.h.  */
30779void $cfuncdaxpy();
30780#ifdef F77_DUMMY_MAIN
30781
30782#  ifdef __cplusplus
30783     extern "C"
30784#  endif
30785   int F77_DUMMY_MAIN() { return 1; }
30786
30787#endif
30788int
30789main ()
30790{
30791$cfuncdaxpy()
30792  ;
30793  return 0;
30794}
30795_ACEOF
30796rm -f conftest.$ac_objext conftest$ac_exeext
30797if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30798  (eval $ac_link) 2>conftest.er1
30799  ac_status=$?
30800  grep -v '^ *+' conftest.er1 >conftest.err
30801  rm -f conftest.er1
30802  cat conftest.err >&5
30803  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30804  (exit $ac_status); } &&
30805	 { ac_try='test -z "$ac_cxx_werror_flag"
30806			 || test ! -s conftest.err'
30807  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30808  (eval $ac_try) 2>&5
30809  ac_status=$?
30810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30811  (exit $ac_status); }; } &&
30812	 { ac_try='test -s conftest$ac_exeext'
30813  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30814  (eval $ac_try) 2>&5
30815  ac_status=$?
30816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30817  (exit $ac_status); }; }; then
30818  flink_try=yes
30819else
30820  echo "$as_me: failed program was:" >&5
30821sed 's/^/| /' conftest.$ac_ext >&5
30822
30823flink_try=no
30824fi
30825rm -f conftest.err conftest.$ac_objext \
30826      conftest$ac_exeext conftest.$ac_ext
30827    fi
30828    if test $flink_try = yes; then
30829      use_blas='-lsunperf'
30830                         if test $coin_need_flibs = yes ; then
30831                           use_blas="$use_blas $FLIBS"
30832                         fi
30833                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
30834echo "${ECHO_T}yes: $use_blas" >&6
30835
30836    else
30837      if test x"$FLIBS" != x; then
30838        flink_save_libs="$LIBS"
30839        LIBS="$LIBS $FLIBS"
30840        cat >conftest.$ac_ext <<_ACEOF
30841/* confdefs.h.  */
30842_ACEOF
30843cat confdefs.h >>conftest.$ac_ext
30844cat >>conftest.$ac_ext <<_ACEOF
30845/* end confdefs.h.  */
30846void $cfuncdaxpy();
30847#ifdef F77_DUMMY_MAIN
30848
30849#  ifdef __cplusplus
30850     extern "C"
30851#  endif
30852   int F77_DUMMY_MAIN() { return 1; }
30853
30854#endif
30855int
30856main ()
30857{
30858$cfuncdaxpy()
30859  ;
30860  return 0;
30861}
30862_ACEOF
30863rm -f conftest.$ac_objext conftest$ac_exeext
30864if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30865  (eval $ac_link) 2>conftest.er1
30866  ac_status=$?
30867  grep -v '^ *+' conftest.er1 >conftest.err
30868  rm -f conftest.er1
30869  cat conftest.err >&5
30870  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30871  (exit $ac_status); } &&
30872	 { ac_try='test -z "$ac_cxx_werror_flag"
30873			 || test ! -s conftest.err'
30874  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30875  (eval $ac_try) 2>&5
30876  ac_status=$?
30877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30878  (exit $ac_status); }; } &&
30879	 { ac_try='test -s conftest$ac_exeext'
30880  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30881  (eval $ac_try) 2>&5
30882  ac_status=$?
30883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30884  (exit $ac_status); }; }; then
30885  LIBS="$flink_save_libs"
30886                     coin_need_flibs=yes
30887                     use_blas='-lsunperf'
30888                         if test $coin_need_flibs = yes ; then
30889                           use_blas="$use_blas $FLIBS"
30890                         fi
30891                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
30892echo "${ECHO_T}yes: $use_blas" >&6
30893
30894
30895else
30896  echo "$as_me: failed program was:" >&5
30897sed 's/^/| /' conftest.$ac_ext >&5
30898
30899LIBS="$flink_save_libs"
30900                     echo "$as_me:$LINENO: result: no" >&5
30901echo "${ECHO_T}no" >&6
30902fi
30903rm -f conftest.err conftest.$ac_objext \
30904      conftest$ac_exeext conftest.$ac_ext
30905      else
30906        echo "$as_me:$LINENO: result: no" >&5
30907echo "${ECHO_T}no" >&6
30908      fi
30909    fi
30910    ;;
30911  cc|cpp)
30912    ac_ext=f
30913ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
30914ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30915ac_compiler_gnu=$ac_cv_f77_compiler_gnu
30916case $ac_cv_f77_mangling in
30917  upper*) ac_val="DAXPY" ;;
30918  lower*) ac_val="daxpy" ;;
30919  *)      ac_val="unknown" ;;
30920esac
30921case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
30922
30923cfuncdaxpy="$ac_val"
30924
30925ac_ext=cc
30926ac_cpp='$CXXCPP $CPPFLAGS'
30927ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30928ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30929ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30930
30931    if test x"$coin_need_flibs" = xyes; then
30932      flink_try=no;
30933    else
30934      cat >conftest.$ac_ext <<_ACEOF
30935/* confdefs.h.  */
30936_ACEOF
30937cat confdefs.h >>conftest.$ac_ext
30938cat >>conftest.$ac_ext <<_ACEOF
30939/* end confdefs.h.  */
30940extern "C" {void $cfuncdaxpy();}
30941#ifdef F77_DUMMY_MAIN
30942
30943#  ifdef __cplusplus
30944     extern "C"
30945#  endif
30946   int F77_DUMMY_MAIN() { return 1; }
30947
30948#endif
30949int
30950main ()
30951{
30952$cfuncdaxpy()
30953  ;
30954  return 0;
30955}
30956_ACEOF
30957rm -f conftest.$ac_objext conftest$ac_exeext
30958if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30959  (eval $ac_link) 2>conftest.er1
30960  ac_status=$?
30961  grep -v '^ *+' conftest.er1 >conftest.err
30962  rm -f conftest.er1
30963  cat conftest.err >&5
30964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30965  (exit $ac_status); } &&
30966	 { ac_try='test -z "$ac_cxx_werror_flag"
30967			 || test ! -s conftest.err'
30968  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30969  (eval $ac_try) 2>&5
30970  ac_status=$?
30971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30972  (exit $ac_status); }; } &&
30973	 { ac_try='test -s conftest$ac_exeext'
30974  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30975  (eval $ac_try) 2>&5
30976  ac_status=$?
30977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30978  (exit $ac_status); }; }; then
30979  flink_try=yes
30980else
30981  echo "$as_me: failed program was:" >&5
30982sed 's/^/| /' conftest.$ac_ext >&5
30983
30984flink_try=no
30985fi
30986rm -f conftest.err conftest.$ac_objext \
30987      conftest$ac_exeext conftest.$ac_ext
30988    fi
30989    if test $flink_try = yes; then
30990      use_blas='-lsunperf'
30991                         if test $coin_need_flibs = yes ; then
30992                           use_blas="$use_blas $FLIBS"
30993                         fi
30994                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
30995echo "${ECHO_T}yes: $use_blas" >&6
30996
30997    else
30998      if test x"$FLIBS" != x; then
30999        flink_save_libs="$LIBS"
31000        LIBS="$LIBS $FLIBS"
31001        cat >conftest.$ac_ext <<_ACEOF
31002/* confdefs.h.  */
31003_ACEOF
31004cat confdefs.h >>conftest.$ac_ext
31005cat >>conftest.$ac_ext <<_ACEOF
31006/* end confdefs.h.  */
31007extern "C" {void $cfuncdaxpy();}
31008#ifdef F77_DUMMY_MAIN
31009
31010#  ifdef __cplusplus
31011     extern "C"
31012#  endif
31013   int F77_DUMMY_MAIN() { return 1; }
31014
31015#endif
31016int
31017main ()
31018{
31019$cfuncdaxpy()
31020  ;
31021  return 0;
31022}
31023_ACEOF
31024rm -f conftest.$ac_objext conftest$ac_exeext
31025if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31026  (eval $ac_link) 2>conftest.er1
31027  ac_status=$?
31028  grep -v '^ *+' conftest.er1 >conftest.err
31029  rm -f conftest.er1
31030  cat conftest.err >&5
31031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31032  (exit $ac_status); } &&
31033	 { ac_try='test -z "$ac_cxx_werror_flag"
31034			 || test ! -s conftest.err'
31035  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31036  (eval $ac_try) 2>&5
31037  ac_status=$?
31038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31039  (exit $ac_status); }; } &&
31040	 { ac_try='test -s conftest$ac_exeext'
31041  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31042  (eval $ac_try) 2>&5
31043  ac_status=$?
31044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31045  (exit $ac_status); }; }; then
31046  LIBS="$flink_save_libs"
31047                     coin_need_flibs=yes
31048                     use_blas='-lsunperf'
31049                         if test $coin_need_flibs = yes ; then
31050                           use_blas="$use_blas $FLIBS"
31051                         fi
31052                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
31053echo "${ECHO_T}yes: $use_blas" >&6
31054
31055
31056else
31057  echo "$as_me: failed program was:" >&5
31058sed 's/^/| /' conftest.$ac_ext >&5
31059
31060LIBS="$flink_save_libs"
31061                     echo "$as_me:$LINENO: result: no" >&5
31062echo "${ECHO_T}no" >&6
31063fi
31064rm -f conftest.err conftest.$ac_objext \
31065      conftest$ac_exeext conftest.$ac_ext
31066      else
31067        echo "$as_me:$LINENO: result: no" >&5
31068echo "${ECHO_T}no" >&6
31069      fi
31070    fi
31071    ;;
31072esac
31073
31074      LIBS="$coin_save_LIBS"
31075      ;;
31076
31077    *-cygwin* | *-mingw*)
31078      case "$CC" in
31079        clang* ) ;;
31080        cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
31081          coin_save_LIBS="$LIBS"
31082          LIBS="mkl_intel_c.lib mkl_sequential.lib mkl_core.lib $LIBS"
31083          if test "$F77" != unavailable ; then
31084            echo "$as_me:$LINENO: checking for BLAS in MKL (32bit)" >&5
31085echo $ECHO_N "checking for BLAS in MKL (32bit)... $ECHO_C" >&6
31086            case $ac_ext in
31087  f)
31088    cat >conftest.$ac_ext <<_ACEOF
31089/* confdefs.h.  */
31090_ACEOF
31091cat confdefs.h >>conftest.$ac_ext
31092cat >>conftest.$ac_ext <<_ACEOF
31093/* end confdefs.h.  */
31094
31095#ifdef F77_DUMMY_MAIN
31096
31097#  ifdef __cplusplus
31098     extern "C"
31099#  endif
31100   int F77_DUMMY_MAIN() { return 1; }
31101
31102#endif
31103int
31104main ()
31105{
31106      call daxpy
31107  ;
31108  return 0;
31109}
31110_ACEOF
31111rm -f conftest.$ac_objext conftest$ac_exeext
31112if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31113  (eval $ac_link) 2>conftest.er1
31114  ac_status=$?
31115  grep -v '^ *+' conftest.er1 >conftest.err
31116  rm -f conftest.er1
31117  cat conftest.err >&5
31118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31119  (exit $ac_status); } &&
31120	 { ac_try='test -z "$ac_cxx_werror_flag"
31121			 || test ! -s conftest.err'
31122  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31123  (eval $ac_try) 2>&5
31124  ac_status=$?
31125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31126  (exit $ac_status); }; } &&
31127	 { ac_try='test -s conftest$ac_exeext'
31128  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31129  (eval $ac_try) 2>&5
31130  ac_status=$?
31131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31132  (exit $ac_status); }; }; then
31133  use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
31134                               echo "$as_me:$LINENO: result: yes: $use_blas" >&5
31135echo "${ECHO_T}yes: $use_blas" >&6
31136
31137else
31138  echo "$as_me: failed program was:" >&5
31139sed 's/^/| /' conftest.$ac_ext >&5
31140
31141echo "$as_me:$LINENO: result: no" >&5
31142echo "${ECHO_T}no" >&6
31143fi
31144rm -f conftest.err conftest.$ac_objext \
31145      conftest$ac_exeext conftest.$ac_ext
31146    ;;
31147  c)
31148    ac_ext=f
31149ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
31150ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31151ac_compiler_gnu=$ac_cv_f77_compiler_gnu
31152case $ac_cv_f77_mangling in
31153  upper*) ac_val="DAXPY" ;;
31154  lower*) ac_val="daxpy" ;;
31155  *)      ac_val="unknown" ;;
31156esac
31157case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
31158
31159cfuncdaxpy="$ac_val"
31160
31161ac_ext=cc
31162ac_cpp='$CXXCPP $CPPFLAGS'
31163ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31164ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31165ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31166
31167    if test x"$coin_need_flibs" = xyes; then
31168      flink_try=no;
31169    else
31170      cat >conftest.$ac_ext <<_ACEOF
31171/* confdefs.h.  */
31172_ACEOF
31173cat confdefs.h >>conftest.$ac_ext
31174cat >>conftest.$ac_ext <<_ACEOF
31175/* end confdefs.h.  */
31176void $cfuncdaxpy();
31177#ifdef F77_DUMMY_MAIN
31178
31179#  ifdef __cplusplus
31180     extern "C"
31181#  endif
31182   int F77_DUMMY_MAIN() { return 1; }
31183
31184#endif
31185int
31186main ()
31187{
31188$cfuncdaxpy()
31189  ;
31190  return 0;
31191}
31192_ACEOF
31193rm -f conftest.$ac_objext conftest$ac_exeext
31194if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31195  (eval $ac_link) 2>conftest.er1
31196  ac_status=$?
31197  grep -v '^ *+' conftest.er1 >conftest.err
31198  rm -f conftest.er1
31199  cat conftest.err >&5
31200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31201  (exit $ac_status); } &&
31202	 { ac_try='test -z "$ac_cxx_werror_flag"
31203			 || test ! -s conftest.err'
31204  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31205  (eval $ac_try) 2>&5
31206  ac_status=$?
31207  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31208  (exit $ac_status); }; } &&
31209	 { ac_try='test -s conftest$ac_exeext'
31210  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31211  (eval $ac_try) 2>&5
31212  ac_status=$?
31213  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31214  (exit $ac_status); }; }; then
31215  flink_try=yes
31216else
31217  echo "$as_me: failed program was:" >&5
31218sed 's/^/| /' conftest.$ac_ext >&5
31219
31220flink_try=no
31221fi
31222rm -f conftest.err conftest.$ac_objext \
31223      conftest$ac_exeext conftest.$ac_ext
31224    fi
31225    if test $flink_try = yes; then
31226      use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
31227                               echo "$as_me:$LINENO: result: yes: $use_blas" >&5
31228echo "${ECHO_T}yes: $use_blas" >&6
31229
31230    else
31231      if test x"$FLIBS" != x; then
31232        flink_save_libs="$LIBS"
31233        LIBS="$LIBS $FLIBS"
31234        cat >conftest.$ac_ext <<_ACEOF
31235/* confdefs.h.  */
31236_ACEOF
31237cat confdefs.h >>conftest.$ac_ext
31238cat >>conftest.$ac_ext <<_ACEOF
31239/* end confdefs.h.  */
31240void $cfuncdaxpy();
31241#ifdef F77_DUMMY_MAIN
31242
31243#  ifdef __cplusplus
31244     extern "C"
31245#  endif
31246   int F77_DUMMY_MAIN() { return 1; }
31247
31248#endif
31249int
31250main ()
31251{
31252$cfuncdaxpy()
31253  ;
31254  return 0;
31255}
31256_ACEOF
31257rm -f conftest.$ac_objext conftest$ac_exeext
31258if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31259  (eval $ac_link) 2>conftest.er1
31260  ac_status=$?
31261  grep -v '^ *+' conftest.er1 >conftest.err
31262  rm -f conftest.er1
31263  cat conftest.err >&5
31264  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31265  (exit $ac_status); } &&
31266	 { ac_try='test -z "$ac_cxx_werror_flag"
31267			 || test ! -s conftest.err'
31268  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31269  (eval $ac_try) 2>&5
31270  ac_status=$?
31271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31272  (exit $ac_status); }; } &&
31273	 { ac_try='test -s conftest$ac_exeext'
31274  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31275  (eval $ac_try) 2>&5
31276  ac_status=$?
31277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31278  (exit $ac_status); }; }; then
31279  LIBS="$flink_save_libs"
31280                     coin_need_flibs=yes
31281                     use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
31282                               echo "$as_me:$LINENO: result: yes: $use_blas" >&5
31283echo "${ECHO_T}yes: $use_blas" >&6
31284
31285
31286else
31287  echo "$as_me: failed program was:" >&5
31288sed 's/^/| /' conftest.$ac_ext >&5
31289
31290LIBS="$flink_save_libs"
31291                     echo "$as_me:$LINENO: result: no" >&5
31292echo "${ECHO_T}no" >&6
31293fi
31294rm -f conftest.err conftest.$ac_objext \
31295      conftest$ac_exeext conftest.$ac_ext
31296      else
31297        echo "$as_me:$LINENO: result: no" >&5
31298echo "${ECHO_T}no" >&6
31299      fi
31300    fi
31301    ;;
31302  cc|cpp)
31303    ac_ext=f
31304ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
31305ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31306ac_compiler_gnu=$ac_cv_f77_compiler_gnu
31307case $ac_cv_f77_mangling in
31308  upper*) ac_val="DAXPY" ;;
31309  lower*) ac_val="daxpy" ;;
31310  *)      ac_val="unknown" ;;
31311esac
31312case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
31313
31314cfuncdaxpy="$ac_val"
31315
31316ac_ext=cc
31317ac_cpp='$CXXCPP $CPPFLAGS'
31318ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31319ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31320ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31321
31322    if test x"$coin_need_flibs" = xyes; then
31323      flink_try=no;
31324    else
31325      cat >conftest.$ac_ext <<_ACEOF
31326/* confdefs.h.  */
31327_ACEOF
31328cat confdefs.h >>conftest.$ac_ext
31329cat >>conftest.$ac_ext <<_ACEOF
31330/* end confdefs.h.  */
31331extern "C" {void $cfuncdaxpy();}
31332#ifdef F77_DUMMY_MAIN
31333
31334#  ifdef __cplusplus
31335     extern "C"
31336#  endif
31337   int F77_DUMMY_MAIN() { return 1; }
31338
31339#endif
31340int
31341main ()
31342{
31343$cfuncdaxpy()
31344  ;
31345  return 0;
31346}
31347_ACEOF
31348rm -f conftest.$ac_objext conftest$ac_exeext
31349if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31350  (eval $ac_link) 2>conftest.er1
31351  ac_status=$?
31352  grep -v '^ *+' conftest.er1 >conftest.err
31353  rm -f conftest.er1
31354  cat conftest.err >&5
31355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31356  (exit $ac_status); } &&
31357	 { ac_try='test -z "$ac_cxx_werror_flag"
31358			 || test ! -s conftest.err'
31359  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31360  (eval $ac_try) 2>&5
31361  ac_status=$?
31362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31363  (exit $ac_status); }; } &&
31364	 { ac_try='test -s conftest$ac_exeext'
31365  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31366  (eval $ac_try) 2>&5
31367  ac_status=$?
31368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31369  (exit $ac_status); }; }; then
31370  flink_try=yes
31371else
31372  echo "$as_me: failed program was:" >&5
31373sed 's/^/| /' conftest.$ac_ext >&5
31374
31375flink_try=no
31376fi
31377rm -f conftest.err conftest.$ac_objext \
31378      conftest$ac_exeext conftest.$ac_ext
31379    fi
31380    if test $flink_try = yes; then
31381      use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
31382                               echo "$as_me:$LINENO: result: yes: $use_blas" >&5
31383echo "${ECHO_T}yes: $use_blas" >&6
31384
31385    else
31386      if test x"$FLIBS" != x; then
31387        flink_save_libs="$LIBS"
31388        LIBS="$LIBS $FLIBS"
31389        cat >conftest.$ac_ext <<_ACEOF
31390/* confdefs.h.  */
31391_ACEOF
31392cat confdefs.h >>conftest.$ac_ext
31393cat >>conftest.$ac_ext <<_ACEOF
31394/* end confdefs.h.  */
31395extern "C" {void $cfuncdaxpy();}
31396#ifdef F77_DUMMY_MAIN
31397
31398#  ifdef __cplusplus
31399     extern "C"
31400#  endif
31401   int F77_DUMMY_MAIN() { return 1; }
31402
31403#endif
31404int
31405main ()
31406{
31407$cfuncdaxpy()
31408  ;
31409  return 0;
31410}
31411_ACEOF
31412rm -f conftest.$ac_objext conftest$ac_exeext
31413if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31414  (eval $ac_link) 2>conftest.er1
31415  ac_status=$?
31416  grep -v '^ *+' conftest.er1 >conftest.err
31417  rm -f conftest.er1
31418  cat conftest.err >&5
31419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31420  (exit $ac_status); } &&
31421	 { ac_try='test -z "$ac_cxx_werror_flag"
31422			 || test ! -s conftest.err'
31423  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31424  (eval $ac_try) 2>&5
31425  ac_status=$?
31426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31427  (exit $ac_status); }; } &&
31428	 { ac_try='test -s conftest$ac_exeext'
31429  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31430  (eval $ac_try) 2>&5
31431  ac_status=$?
31432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31433  (exit $ac_status); }; }; then
31434  LIBS="$flink_save_libs"
31435                     coin_need_flibs=yes
31436                     use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
31437                               echo "$as_me:$LINENO: result: yes: $use_blas" >&5
31438echo "${ECHO_T}yes: $use_blas" >&6
31439
31440
31441else
31442  echo "$as_me: failed program was:" >&5
31443sed 's/^/| /' conftest.$ac_ext >&5
31444
31445LIBS="$flink_save_libs"
31446                     echo "$as_me:$LINENO: result: no" >&5
31447echo "${ECHO_T}no" >&6
31448fi
31449rm -f conftest.err conftest.$ac_objext \
31450      conftest$ac_exeext conftest.$ac_ext
31451      else
31452        echo "$as_me:$LINENO: result: no" >&5
31453echo "${ECHO_T}no" >&6
31454      fi
31455    fi
31456    ;;
31457esac
31458
31459          else
31460            { echo "$as_me:$LINENO: for BLAS in MKL (32bit) using C linkage" >&5
31461echo "$as_me: for BLAS in MKL (32bit) using C linkage" >&6;}
31462            ac_ext=c
31463ac_cpp='$CPP $CPPFLAGS'
31464ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31465ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31466ac_compiler_gnu=$ac_cv_c_compiler_gnu
31467
31468            echo "$as_me:$LINENO: checking for daxpy" >&5
31469echo $ECHO_N "checking for daxpy... $ECHO_C" >&6
31470if test "${ac_cv_func_daxpy+set}" = set; then
31471  echo $ECHO_N "(cached) $ECHO_C" >&6
31472else
31473  cat >conftest.$ac_ext <<_ACEOF
31474/* confdefs.h.  */
31475_ACEOF
31476cat confdefs.h >>conftest.$ac_ext
31477cat >>conftest.$ac_ext <<_ACEOF
31478/* end confdefs.h.  */
31479/* Define daxpy to an innocuous variant, in case <limits.h> declares daxpy.
31480   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31481#define daxpy innocuous_daxpy
31482
31483/* System header to define __stub macros and hopefully few prototypes,
31484    which can conflict with char daxpy (); below.
31485    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31486    <limits.h> exists even on freestanding compilers.  */
31487
31488#ifdef __STDC__
31489# include <limits.h>
31490#else
31491# include <assert.h>
31492#endif
31493
31494#undef daxpy
31495
31496/* Override any gcc2 internal prototype to avoid an error.  */
31497#ifdef __cplusplus
31498extern "C"
31499{
31500#endif
31501/* We use char because int might match the return type of a gcc2
31502   builtin and then its argument prototype would still apply.  */
31503char daxpy ();
31504/* The GNU C library defines this for functions which it implements
31505    to always fail with ENOSYS.  Some functions are actually named
31506    something starting with __ and the normal name is an alias.  */
31507#if defined (__stub_daxpy) || defined (__stub___daxpy)
31508choke me
31509#else
31510char (*f) () = daxpy;
31511#endif
31512#ifdef __cplusplus
31513}
31514#endif
31515
31516#ifdef F77_DUMMY_MAIN
31517
31518#  ifdef __cplusplus
31519     extern "C"
31520#  endif
31521   int F77_DUMMY_MAIN() { return 1; }
31522
31523#endif
31524int
31525main ()
31526{
31527return f != daxpy;
31528  ;
31529  return 0;
31530}
31531_ACEOF
31532rm -f conftest.$ac_objext conftest$ac_exeext
31533if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31534  (eval $ac_link) 2>conftest.er1
31535  ac_status=$?
31536  grep -v '^ *+' conftest.er1 >conftest.err
31537  rm -f conftest.er1
31538  cat conftest.err >&5
31539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31540  (exit $ac_status); } &&
31541	 { ac_try='test -z "$ac_c_werror_flag"
31542			 || test ! -s conftest.err'
31543  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31544  (eval $ac_try) 2>&5
31545  ac_status=$?
31546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31547  (exit $ac_status); }; } &&
31548	 { ac_try='test -s conftest$ac_exeext'
31549  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31550  (eval $ac_try) 2>&5
31551  ac_status=$?
31552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31553  (exit $ac_status); }; }; then
31554  ac_cv_func_daxpy=yes
31555else
31556  echo "$as_me: failed program was:" >&5
31557sed 's/^/| /' conftest.$ac_ext >&5
31558
31559ac_cv_func_daxpy=no
31560fi
31561rm -f conftest.err conftest.$ac_objext \
31562      conftest$ac_exeext conftest.$ac_ext
31563fi
31564echo "$as_me:$LINENO: result: $ac_cv_func_daxpy" >&5
31565echo "${ECHO_T}$ac_cv_func_daxpy" >&6
31566if test $ac_cv_func_daxpy = yes; then
31567  use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
31568fi
31569
31570            ac_ext=cc
31571ac_cpp='$CXXCPP $CPPFLAGS'
31572ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31573ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31574ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31575
31576          fi
31577          LIBS="$coin_save_LIBS"
31578
31579          if test "x$use_blas" = x ; then
31580            LIBS="mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib $LIBS"
31581            if test "$F77" != unavailable ; then
31582              echo "$as_me:$LINENO: checking for BLAS in MKL (64bit)" >&5
31583echo $ECHO_N "checking for BLAS in MKL (64bit)... $ECHO_C" >&6
31584              case $ac_ext in
31585  f)
31586    cat >conftest.$ac_ext <<_ACEOF
31587/* confdefs.h.  */
31588_ACEOF
31589cat confdefs.h >>conftest.$ac_ext
31590cat >>conftest.$ac_ext <<_ACEOF
31591/* end confdefs.h.  */
31592
31593#ifdef F77_DUMMY_MAIN
31594
31595#  ifdef __cplusplus
31596     extern "C"
31597#  endif
31598   int F77_DUMMY_MAIN() { return 1; }
31599
31600#endif
31601int
31602main ()
31603{
31604      call daxpy
31605  ;
31606  return 0;
31607}
31608_ACEOF
31609rm -f conftest.$ac_objext conftest$ac_exeext
31610if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31611  (eval $ac_link) 2>conftest.er1
31612  ac_status=$?
31613  grep -v '^ *+' conftest.er1 >conftest.err
31614  rm -f conftest.er1
31615  cat conftest.err >&5
31616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31617  (exit $ac_status); } &&
31618	 { ac_try='test -z "$ac_cxx_werror_flag"
31619			 || test ! -s conftest.err'
31620  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31621  (eval $ac_try) 2>&5
31622  ac_status=$?
31623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31624  (exit $ac_status); }; } &&
31625	 { ac_try='test -s conftest$ac_exeext'
31626  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31627  (eval $ac_try) 2>&5
31628  ac_status=$?
31629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31630  (exit $ac_status); }; }; then
31631  use_blas='mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib'
31632                                 echo "$as_me:$LINENO: result: yes: $use_blas" >&5
31633echo "${ECHO_T}yes: $use_blas" >&6
31634
31635else
31636  echo "$as_me: failed program was:" >&5
31637sed 's/^/| /' conftest.$ac_ext >&5
31638
31639echo "$as_me:$LINENO: result: no" >&5
31640echo "${ECHO_T}no" >&6
31641fi
31642rm -f conftest.err conftest.$ac_objext \
31643      conftest$ac_exeext conftest.$ac_ext
31644    ;;
31645  c)
31646    ac_ext=f
31647ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
31648ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31649ac_compiler_gnu=$ac_cv_f77_compiler_gnu
31650case $ac_cv_f77_mangling in
31651  upper*) ac_val="DAXPY" ;;
31652  lower*) ac_val="daxpy" ;;
31653  *)      ac_val="unknown" ;;
31654esac
31655case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
31656
31657cfuncdaxpy="$ac_val"
31658
31659ac_ext=cc
31660ac_cpp='$CXXCPP $CPPFLAGS'
31661ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31662ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31663ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31664
31665    if test x"$coin_need_flibs" = xyes; then
31666      flink_try=no;
31667    else
31668      cat >conftest.$ac_ext <<_ACEOF
31669/* confdefs.h.  */
31670_ACEOF
31671cat confdefs.h >>conftest.$ac_ext
31672cat >>conftest.$ac_ext <<_ACEOF
31673/* end confdefs.h.  */
31674void $cfuncdaxpy();
31675#ifdef F77_DUMMY_MAIN
31676
31677#  ifdef __cplusplus
31678     extern "C"
31679#  endif
31680   int F77_DUMMY_MAIN() { return 1; }
31681
31682#endif
31683int
31684main ()
31685{
31686$cfuncdaxpy()
31687  ;
31688  return 0;
31689}
31690_ACEOF
31691rm -f conftest.$ac_objext conftest$ac_exeext
31692if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31693  (eval $ac_link) 2>conftest.er1
31694  ac_status=$?
31695  grep -v '^ *+' conftest.er1 >conftest.err
31696  rm -f conftest.er1
31697  cat conftest.err >&5
31698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31699  (exit $ac_status); } &&
31700	 { ac_try='test -z "$ac_cxx_werror_flag"
31701			 || test ! -s conftest.err'
31702  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31703  (eval $ac_try) 2>&5
31704  ac_status=$?
31705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31706  (exit $ac_status); }; } &&
31707	 { ac_try='test -s conftest$ac_exeext'
31708  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31709  (eval $ac_try) 2>&5
31710  ac_status=$?
31711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31712  (exit $ac_status); }; }; then
31713  flink_try=yes
31714else
31715  echo "$as_me: failed program was:" >&5
31716sed 's/^/| /' conftest.$ac_ext >&5
31717
31718flink_try=no
31719fi
31720rm -f conftest.err conftest.$ac_objext \
31721      conftest$ac_exeext conftest.$ac_ext
31722    fi
31723    if test $flink_try = yes; then
31724      use_blas='mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib'
31725                                 echo "$as_me:$LINENO: result: yes: $use_blas" >&5
31726echo "${ECHO_T}yes: $use_blas" >&6
31727
31728    else
31729      if test x"$FLIBS" != x; then
31730        flink_save_libs="$LIBS"
31731        LIBS="$LIBS $FLIBS"
31732        cat >conftest.$ac_ext <<_ACEOF
31733/* confdefs.h.  */
31734_ACEOF
31735cat confdefs.h >>conftest.$ac_ext
31736cat >>conftest.$ac_ext <<_ACEOF
31737/* end confdefs.h.  */
31738void $cfuncdaxpy();
31739#ifdef F77_DUMMY_MAIN
31740
31741#  ifdef __cplusplus
31742     extern "C"
31743#  endif
31744   int F77_DUMMY_MAIN() { return 1; }
31745
31746#endif
31747int
31748main ()
31749{
31750$cfuncdaxpy()
31751  ;
31752  return 0;
31753}
31754_ACEOF
31755rm -f conftest.$ac_objext conftest$ac_exeext
31756if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31757  (eval $ac_link) 2>conftest.er1
31758  ac_status=$?
31759  grep -v '^ *+' conftest.er1 >conftest.err
31760  rm -f conftest.er1
31761  cat conftest.err >&5
31762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31763  (exit $ac_status); } &&
31764	 { ac_try='test -z "$ac_cxx_werror_flag"
31765			 || test ! -s conftest.err'
31766  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31767  (eval $ac_try) 2>&5
31768  ac_status=$?
31769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31770  (exit $ac_status); }; } &&
31771	 { ac_try='test -s conftest$ac_exeext'
31772  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31773  (eval $ac_try) 2>&5
31774  ac_status=$?
31775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31776  (exit $ac_status); }; }; then
31777  LIBS="$flink_save_libs"
31778                     coin_need_flibs=yes
31779                     use_blas='mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib'
31780                                 echo "$as_me:$LINENO: result: yes: $use_blas" >&5
31781echo "${ECHO_T}yes: $use_blas" >&6
31782
31783
31784else
31785  echo "$as_me: failed program was:" >&5
31786sed 's/^/| /' conftest.$ac_ext >&5
31787
31788LIBS="$flink_save_libs"
31789                     echo "$as_me:$LINENO: result: no" >&5
31790echo "${ECHO_T}no" >&6
31791fi
31792rm -f conftest.err conftest.$ac_objext \
31793      conftest$ac_exeext conftest.$ac_ext
31794      else
31795        echo "$as_me:$LINENO: result: no" >&5
31796echo "${ECHO_T}no" >&6
31797      fi
31798    fi
31799    ;;
31800  cc|cpp)
31801    ac_ext=f
31802ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
31803ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31804ac_compiler_gnu=$ac_cv_f77_compiler_gnu
31805case $ac_cv_f77_mangling in
31806  upper*) ac_val="DAXPY" ;;
31807  lower*) ac_val="daxpy" ;;
31808  *)      ac_val="unknown" ;;
31809esac
31810case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
31811
31812cfuncdaxpy="$ac_val"
31813
31814ac_ext=cc
31815ac_cpp='$CXXCPP $CPPFLAGS'
31816ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31817ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31818ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31819
31820    if test x"$coin_need_flibs" = xyes; then
31821      flink_try=no;
31822    else
31823      cat >conftest.$ac_ext <<_ACEOF
31824/* confdefs.h.  */
31825_ACEOF
31826cat confdefs.h >>conftest.$ac_ext
31827cat >>conftest.$ac_ext <<_ACEOF
31828/* end confdefs.h.  */
31829extern "C" {void $cfuncdaxpy();}
31830#ifdef F77_DUMMY_MAIN
31831
31832#  ifdef __cplusplus
31833     extern "C"
31834#  endif
31835   int F77_DUMMY_MAIN() { return 1; }
31836
31837#endif
31838int
31839main ()
31840{
31841$cfuncdaxpy()
31842  ;
31843  return 0;
31844}
31845_ACEOF
31846rm -f conftest.$ac_objext conftest$ac_exeext
31847if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31848  (eval $ac_link) 2>conftest.er1
31849  ac_status=$?
31850  grep -v '^ *+' conftest.er1 >conftest.err
31851  rm -f conftest.er1
31852  cat conftest.err >&5
31853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31854  (exit $ac_status); } &&
31855	 { ac_try='test -z "$ac_cxx_werror_flag"
31856			 || test ! -s conftest.err'
31857  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31858  (eval $ac_try) 2>&5
31859  ac_status=$?
31860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31861  (exit $ac_status); }; } &&
31862	 { ac_try='test -s conftest$ac_exeext'
31863  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31864  (eval $ac_try) 2>&5
31865  ac_status=$?
31866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31867  (exit $ac_status); }; }; then
31868  flink_try=yes
31869else
31870  echo "$as_me: failed program was:" >&5
31871sed 's/^/| /' conftest.$ac_ext >&5
31872
31873flink_try=no
31874fi
31875rm -f conftest.err conftest.$ac_objext \
31876      conftest$ac_exeext conftest.$ac_ext
31877    fi
31878    if test $flink_try = yes; then
31879      use_blas='mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib'
31880                                 echo "$as_me:$LINENO: result: yes: $use_blas" >&5
31881echo "${ECHO_T}yes: $use_blas" >&6
31882
31883    else
31884      if test x"$FLIBS" != x; then
31885        flink_save_libs="$LIBS"
31886        LIBS="$LIBS $FLIBS"
31887        cat >conftest.$ac_ext <<_ACEOF
31888/* confdefs.h.  */
31889_ACEOF
31890cat confdefs.h >>conftest.$ac_ext
31891cat >>conftest.$ac_ext <<_ACEOF
31892/* end confdefs.h.  */
31893extern "C" {void $cfuncdaxpy();}
31894#ifdef F77_DUMMY_MAIN
31895
31896#  ifdef __cplusplus
31897     extern "C"
31898#  endif
31899   int F77_DUMMY_MAIN() { return 1; }
31900
31901#endif
31902int
31903main ()
31904{
31905$cfuncdaxpy()
31906  ;
31907  return 0;
31908}
31909_ACEOF
31910rm -f conftest.$ac_objext conftest$ac_exeext
31911if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31912  (eval $ac_link) 2>conftest.er1
31913  ac_status=$?
31914  grep -v '^ *+' conftest.er1 >conftest.err
31915  rm -f conftest.er1
31916  cat conftest.err >&5
31917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31918  (exit $ac_status); } &&
31919	 { ac_try='test -z "$ac_cxx_werror_flag"
31920			 || test ! -s conftest.err'
31921  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31922  (eval $ac_try) 2>&5
31923  ac_status=$?
31924  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31925  (exit $ac_status); }; } &&
31926	 { ac_try='test -s conftest$ac_exeext'
31927  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31928  (eval $ac_try) 2>&5
31929  ac_status=$?
31930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31931  (exit $ac_status); }; }; then
31932  LIBS="$flink_save_libs"
31933                     coin_need_flibs=yes
31934                     use_blas='mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib'
31935                                 echo "$as_me:$LINENO: result: yes: $use_blas" >&5
31936echo "${ECHO_T}yes: $use_blas" >&6
31937
31938
31939else
31940  echo "$as_me: failed program was:" >&5
31941sed 's/^/| /' conftest.$ac_ext >&5
31942
31943LIBS="$flink_save_libs"
31944                     echo "$as_me:$LINENO: result: no" >&5
31945echo "${ECHO_T}no" >&6
31946fi
31947rm -f conftest.err conftest.$ac_objext \
31948      conftest$ac_exeext conftest.$ac_ext
31949      else
31950        echo "$as_me:$LINENO: result: no" >&5
31951echo "${ECHO_T}no" >&6
31952      fi
31953    fi
31954    ;;
31955esac
31956
31957            else
31958              { echo "$as_me:$LINENO: for BLAS in MKL (64bit) using C linkage" >&5
31959echo "$as_me: for BLAS in MKL (64bit) using C linkage" >&6;}
31960              # unset cached outcome of test with 32bit MKL
31961              unset ac_cv_func_daxpy
31962              ac_ext=c
31963ac_cpp='$CPP $CPPFLAGS'
31964ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31965ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31966ac_compiler_gnu=$ac_cv_c_compiler_gnu
31967
31968              echo "$as_me:$LINENO: checking for daxpy" >&5
31969echo $ECHO_N "checking for daxpy... $ECHO_C" >&6
31970if test "${ac_cv_func_daxpy+set}" = set; then
31971  echo $ECHO_N "(cached) $ECHO_C" >&6
31972else
31973  cat >conftest.$ac_ext <<_ACEOF
31974/* confdefs.h.  */
31975_ACEOF
31976cat confdefs.h >>conftest.$ac_ext
31977cat >>conftest.$ac_ext <<_ACEOF
31978/* end confdefs.h.  */
31979/* Define daxpy to an innocuous variant, in case <limits.h> declares daxpy.
31980   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31981#define daxpy innocuous_daxpy
31982
31983/* System header to define __stub macros and hopefully few prototypes,
31984    which can conflict with char daxpy (); below.
31985    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31986    <limits.h> exists even on freestanding compilers.  */
31987
31988#ifdef __STDC__
31989# include <limits.h>
31990#else
31991# include <assert.h>
31992#endif
31993
31994#undef daxpy
31995
31996/* Override any gcc2 internal prototype to avoid an error.  */
31997#ifdef __cplusplus
31998extern "C"
31999{
32000#endif
32001/* We use char because int might match the return type of a gcc2
32002   builtin and then its argument prototype would still apply.  */
32003char daxpy ();
32004/* The GNU C library defines this for functions which it implements
32005    to always fail with ENOSYS.  Some functions are actually named
32006    something starting with __ and the normal name is an alias.  */
32007#if defined (__stub_daxpy) || defined (__stub___daxpy)
32008choke me
32009#else
32010char (*f) () = daxpy;
32011#endif
32012#ifdef __cplusplus
32013}
32014#endif
32015
32016#ifdef F77_DUMMY_MAIN
32017
32018#  ifdef __cplusplus
32019     extern "C"
32020#  endif
32021   int F77_DUMMY_MAIN() { return 1; }
32022
32023#endif
32024int
32025main ()
32026{
32027return f != daxpy;
32028  ;
32029  return 0;
32030}
32031_ACEOF
32032rm -f conftest.$ac_objext conftest$ac_exeext
32033if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32034  (eval $ac_link) 2>conftest.er1
32035  ac_status=$?
32036  grep -v '^ *+' conftest.er1 >conftest.err
32037  rm -f conftest.er1
32038  cat conftest.err >&5
32039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32040  (exit $ac_status); } &&
32041	 { ac_try='test -z "$ac_c_werror_flag"
32042			 || test ! -s conftest.err'
32043  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32044  (eval $ac_try) 2>&5
32045  ac_status=$?
32046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32047  (exit $ac_status); }; } &&
32048	 { ac_try='test -s conftest$ac_exeext'
32049  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32050  (eval $ac_try) 2>&5
32051  ac_status=$?
32052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32053  (exit $ac_status); }; }; then
32054  ac_cv_func_daxpy=yes
32055else
32056  echo "$as_me: failed program was:" >&5
32057sed 's/^/| /' conftest.$ac_ext >&5
32058
32059ac_cv_func_daxpy=no
32060fi
32061rm -f conftest.err conftest.$ac_objext \
32062      conftest$ac_exeext conftest.$ac_ext
32063fi
32064echo "$as_me:$LINENO: result: $ac_cv_func_daxpy" >&5
32065echo "${ECHO_T}$ac_cv_func_daxpy" >&6
32066if test $ac_cv_func_daxpy = yes; then
32067  use_blas='mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib'
32068fi
32069
32070              ac_ext=cc
32071ac_cpp='$CXXCPP $CPPFLAGS'
32072ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32073ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32074ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32075
32076            fi
32077            LIBS="$coin_save_LIBS"
32078          fi
32079          ;;
32080      esac
32081      ;;
32082
32083     *-darwin*)
32084      echo "$as_me:$LINENO: checking for BLAS in Veclib" >&5
32085echo $ECHO_N "checking for BLAS in Veclib... $ECHO_C" >&6
32086      coin_need_flibs=no
32087      coin_save_LIBS="$LIBS"
32088      LIBS="-framework Accelerate $LIBS"
32089      case $ac_ext in
32090  f)
32091    cat >conftest.$ac_ext <<_ACEOF
32092/* confdefs.h.  */
32093_ACEOF
32094cat confdefs.h >>conftest.$ac_ext
32095cat >>conftest.$ac_ext <<_ACEOF
32096/* end confdefs.h.  */
32097
32098#ifdef F77_DUMMY_MAIN
32099
32100#  ifdef __cplusplus
32101     extern "C"
32102#  endif
32103   int F77_DUMMY_MAIN() { return 1; }
32104
32105#endif
32106int
32107main ()
32108{
32109      call daxpy
32110  ;
32111  return 0;
32112}
32113_ACEOF
32114rm -f conftest.$ac_objext conftest$ac_exeext
32115if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32116  (eval $ac_link) 2>conftest.er1
32117  ac_status=$?
32118  grep -v '^ *+' conftest.er1 >conftest.err
32119  rm -f conftest.er1
32120  cat conftest.err >&5
32121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32122  (exit $ac_status); } &&
32123	 { ac_try='test -z "$ac_cxx_werror_flag"
32124			 || test ! -s conftest.err'
32125  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32126  (eval $ac_try) 2>&5
32127  ac_status=$?
32128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32129  (exit $ac_status); }; } &&
32130	 { ac_try='test -s conftest$ac_exeext'
32131  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32132  (eval $ac_try) 2>&5
32133  ac_status=$?
32134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32135  (exit $ac_status); }; }; then
32136  use_blas='-framework Accelerate'
32137                         if test $coin_need_flibs = yes ; then
32138                           use_blas="$use_blas $FLIBS"
32139                         fi
32140                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
32141echo "${ECHO_T}yes: $use_blas" >&6
32142
32143else
32144  echo "$as_me: failed program was:" >&5
32145sed 's/^/| /' conftest.$ac_ext >&5
32146
32147echo "$as_me:$LINENO: result: no" >&5
32148echo "${ECHO_T}no" >&6
32149fi
32150rm -f conftest.err conftest.$ac_objext \
32151      conftest$ac_exeext conftest.$ac_ext
32152    ;;
32153  c)
32154    ac_ext=f
32155ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
32156ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32157ac_compiler_gnu=$ac_cv_f77_compiler_gnu
32158case $ac_cv_f77_mangling in
32159  upper*) ac_val="DAXPY" ;;
32160  lower*) ac_val="daxpy" ;;
32161  *)      ac_val="unknown" ;;
32162esac
32163case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
32164
32165cfuncdaxpy="$ac_val"
32166
32167ac_ext=cc
32168ac_cpp='$CXXCPP $CPPFLAGS'
32169ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32170ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32171ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32172
32173    if test x"$coin_need_flibs" = xyes; then
32174      flink_try=no;
32175    else
32176      cat >conftest.$ac_ext <<_ACEOF
32177/* confdefs.h.  */
32178_ACEOF
32179cat confdefs.h >>conftest.$ac_ext
32180cat >>conftest.$ac_ext <<_ACEOF
32181/* end confdefs.h.  */
32182void $cfuncdaxpy();
32183#ifdef F77_DUMMY_MAIN
32184
32185#  ifdef __cplusplus
32186     extern "C"
32187#  endif
32188   int F77_DUMMY_MAIN() { return 1; }
32189
32190#endif
32191int
32192main ()
32193{
32194$cfuncdaxpy()
32195  ;
32196  return 0;
32197}
32198_ACEOF
32199rm -f conftest.$ac_objext conftest$ac_exeext
32200if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32201  (eval $ac_link) 2>conftest.er1
32202  ac_status=$?
32203  grep -v '^ *+' conftest.er1 >conftest.err
32204  rm -f conftest.er1
32205  cat conftest.err >&5
32206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32207  (exit $ac_status); } &&
32208	 { ac_try='test -z "$ac_cxx_werror_flag"
32209			 || test ! -s conftest.err'
32210  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32211  (eval $ac_try) 2>&5
32212  ac_status=$?
32213  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32214  (exit $ac_status); }; } &&
32215	 { ac_try='test -s conftest$ac_exeext'
32216  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32217  (eval $ac_try) 2>&5
32218  ac_status=$?
32219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32220  (exit $ac_status); }; }; then
32221  flink_try=yes
32222else
32223  echo "$as_me: failed program was:" >&5
32224sed 's/^/| /' conftest.$ac_ext >&5
32225
32226flink_try=no
32227fi
32228rm -f conftest.err conftest.$ac_objext \
32229      conftest$ac_exeext conftest.$ac_ext
32230    fi
32231    if test $flink_try = yes; then
32232      use_blas='-framework Accelerate'
32233                         if test $coin_need_flibs = yes ; then
32234                           use_blas="$use_blas $FLIBS"
32235                         fi
32236                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
32237echo "${ECHO_T}yes: $use_blas" >&6
32238
32239    else
32240      if test x"$FLIBS" != x; then
32241        flink_save_libs="$LIBS"
32242        LIBS="$LIBS $FLIBS"
32243        cat >conftest.$ac_ext <<_ACEOF
32244/* confdefs.h.  */
32245_ACEOF
32246cat confdefs.h >>conftest.$ac_ext
32247cat >>conftest.$ac_ext <<_ACEOF
32248/* end confdefs.h.  */
32249void $cfuncdaxpy();
32250#ifdef F77_DUMMY_MAIN
32251
32252#  ifdef __cplusplus
32253     extern "C"
32254#  endif
32255   int F77_DUMMY_MAIN() { return 1; }
32256
32257#endif
32258int
32259main ()
32260{
32261$cfuncdaxpy()
32262  ;
32263  return 0;
32264}
32265_ACEOF
32266rm -f conftest.$ac_objext conftest$ac_exeext
32267if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32268  (eval $ac_link) 2>conftest.er1
32269  ac_status=$?
32270  grep -v '^ *+' conftest.er1 >conftest.err
32271  rm -f conftest.er1
32272  cat conftest.err >&5
32273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32274  (exit $ac_status); } &&
32275	 { ac_try='test -z "$ac_cxx_werror_flag"
32276			 || test ! -s conftest.err'
32277  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32278  (eval $ac_try) 2>&5
32279  ac_status=$?
32280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32281  (exit $ac_status); }; } &&
32282	 { ac_try='test -s conftest$ac_exeext'
32283  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32284  (eval $ac_try) 2>&5
32285  ac_status=$?
32286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32287  (exit $ac_status); }; }; then
32288  LIBS="$flink_save_libs"
32289                     coin_need_flibs=yes
32290                     use_blas='-framework Accelerate'
32291                         if test $coin_need_flibs = yes ; then
32292                           use_blas="$use_blas $FLIBS"
32293                         fi
32294                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
32295echo "${ECHO_T}yes: $use_blas" >&6
32296
32297
32298else
32299  echo "$as_me: failed program was:" >&5
32300sed 's/^/| /' conftest.$ac_ext >&5
32301
32302LIBS="$flink_save_libs"
32303                     echo "$as_me:$LINENO: result: no" >&5
32304echo "${ECHO_T}no" >&6
32305fi
32306rm -f conftest.err conftest.$ac_objext \
32307      conftest$ac_exeext conftest.$ac_ext
32308      else
32309        echo "$as_me:$LINENO: result: no" >&5
32310echo "${ECHO_T}no" >&6
32311      fi
32312    fi
32313    ;;
32314  cc|cpp)
32315    ac_ext=f
32316ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
32317ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32318ac_compiler_gnu=$ac_cv_f77_compiler_gnu
32319case $ac_cv_f77_mangling in
32320  upper*) ac_val="DAXPY" ;;
32321  lower*) ac_val="daxpy" ;;
32322  *)      ac_val="unknown" ;;
32323esac
32324case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
32325
32326cfuncdaxpy="$ac_val"
32327
32328ac_ext=cc
32329ac_cpp='$CXXCPP $CPPFLAGS'
32330ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32331ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32332ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32333
32334    if test x"$coin_need_flibs" = xyes; then
32335      flink_try=no;
32336    else
32337      cat >conftest.$ac_ext <<_ACEOF
32338/* confdefs.h.  */
32339_ACEOF
32340cat confdefs.h >>conftest.$ac_ext
32341cat >>conftest.$ac_ext <<_ACEOF
32342/* end confdefs.h.  */
32343extern "C" {void $cfuncdaxpy();}
32344#ifdef F77_DUMMY_MAIN
32345
32346#  ifdef __cplusplus
32347     extern "C"
32348#  endif
32349   int F77_DUMMY_MAIN() { return 1; }
32350
32351#endif
32352int
32353main ()
32354{
32355$cfuncdaxpy()
32356  ;
32357  return 0;
32358}
32359_ACEOF
32360rm -f conftest.$ac_objext conftest$ac_exeext
32361if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32362  (eval $ac_link) 2>conftest.er1
32363  ac_status=$?
32364  grep -v '^ *+' conftest.er1 >conftest.err
32365  rm -f conftest.er1
32366  cat conftest.err >&5
32367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32368  (exit $ac_status); } &&
32369	 { ac_try='test -z "$ac_cxx_werror_flag"
32370			 || test ! -s conftest.err'
32371  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32372  (eval $ac_try) 2>&5
32373  ac_status=$?
32374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32375  (exit $ac_status); }; } &&
32376	 { ac_try='test -s conftest$ac_exeext'
32377  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32378  (eval $ac_try) 2>&5
32379  ac_status=$?
32380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32381  (exit $ac_status); }; }; then
32382  flink_try=yes
32383else
32384  echo "$as_me: failed program was:" >&5
32385sed 's/^/| /' conftest.$ac_ext >&5
32386
32387flink_try=no
32388fi
32389rm -f conftest.err conftest.$ac_objext \
32390      conftest$ac_exeext conftest.$ac_ext
32391    fi
32392    if test $flink_try = yes; then
32393      use_blas='-framework Accelerate'
32394                         if test $coin_need_flibs = yes ; then
32395                           use_blas="$use_blas $FLIBS"
32396                         fi
32397                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
32398echo "${ECHO_T}yes: $use_blas" >&6
32399
32400    else
32401      if test x"$FLIBS" != x; then
32402        flink_save_libs="$LIBS"
32403        LIBS="$LIBS $FLIBS"
32404        cat >conftest.$ac_ext <<_ACEOF
32405/* confdefs.h.  */
32406_ACEOF
32407cat confdefs.h >>conftest.$ac_ext
32408cat >>conftest.$ac_ext <<_ACEOF
32409/* end confdefs.h.  */
32410extern "C" {void $cfuncdaxpy();}
32411#ifdef F77_DUMMY_MAIN
32412
32413#  ifdef __cplusplus
32414     extern "C"
32415#  endif
32416   int F77_DUMMY_MAIN() { return 1; }
32417
32418#endif
32419int
32420main ()
32421{
32422$cfuncdaxpy()
32423  ;
32424  return 0;
32425}
32426_ACEOF
32427rm -f conftest.$ac_objext conftest$ac_exeext
32428if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32429  (eval $ac_link) 2>conftest.er1
32430  ac_status=$?
32431  grep -v '^ *+' conftest.er1 >conftest.err
32432  rm -f conftest.er1
32433  cat conftest.err >&5
32434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32435  (exit $ac_status); } &&
32436	 { ac_try='test -z "$ac_cxx_werror_flag"
32437			 || test ! -s conftest.err'
32438  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32439  (eval $ac_try) 2>&5
32440  ac_status=$?
32441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32442  (exit $ac_status); }; } &&
32443	 { ac_try='test -s conftest$ac_exeext'
32444  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32445  (eval $ac_try) 2>&5
32446  ac_status=$?
32447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32448  (exit $ac_status); }; }; then
32449  LIBS="$flink_save_libs"
32450                     coin_need_flibs=yes
32451                     use_blas='-framework Accelerate'
32452                         if test $coin_need_flibs = yes ; then
32453                           use_blas="$use_blas $FLIBS"
32454                         fi
32455                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
32456echo "${ECHO_T}yes: $use_blas" >&6
32457
32458
32459else
32460  echo "$as_me: failed program was:" >&5
32461sed 's/^/| /' conftest.$ac_ext >&5
32462
32463LIBS="$flink_save_libs"
32464                     echo "$as_me:$LINENO: result: no" >&5
32465echo "${ECHO_T}no" >&6
32466fi
32467rm -f conftest.err conftest.$ac_objext \
32468      conftest$ac_exeext conftest.$ac_ext
32469      else
32470        echo "$as_me:$LINENO: result: no" >&5
32471echo "${ECHO_T}no" >&6
32472      fi
32473    fi
32474    ;;
32475esac
32476
32477      LIBS="$coin_save_LIBS"
32478      ;;
32479  esac
32480
32481  if test -z "$use_blas" ; then
32482    echo "$as_me:$LINENO: checking whether -lblas has BLAS" >&5
32483echo $ECHO_N "checking whether -lblas has BLAS... $ECHO_C" >&6
32484    coin_need_flibs=no
32485    coin_save_LIBS="$LIBS"
32486    LIBS="-lblas $LIBS"
32487    case $ac_ext in
32488  f)
32489    cat >conftest.$ac_ext <<_ACEOF
32490/* confdefs.h.  */
32491_ACEOF
32492cat confdefs.h >>conftest.$ac_ext
32493cat >>conftest.$ac_ext <<_ACEOF
32494/* end confdefs.h.  */
32495
32496#ifdef F77_DUMMY_MAIN
32497
32498#  ifdef __cplusplus
32499     extern "C"
32500#  endif
32501   int F77_DUMMY_MAIN() { return 1; }
32502
32503#endif
32504int
32505main ()
32506{
32507      call daxpy
32508  ;
32509  return 0;
32510}
32511_ACEOF
32512rm -f conftest.$ac_objext conftest$ac_exeext
32513if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32514  (eval $ac_link) 2>conftest.er1
32515  ac_status=$?
32516  grep -v '^ *+' conftest.er1 >conftest.err
32517  rm -f conftest.er1
32518  cat conftest.err >&5
32519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32520  (exit $ac_status); } &&
32521	 { ac_try='test -z "$ac_cxx_werror_flag"
32522			 || test ! -s conftest.err'
32523  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32524  (eval $ac_try) 2>&5
32525  ac_status=$?
32526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32527  (exit $ac_status); }; } &&
32528	 { ac_try='test -s conftest$ac_exeext'
32529  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32530  (eval $ac_try) 2>&5
32531  ac_status=$?
32532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32533  (exit $ac_status); }; }; then
32534  use_blas='-lblas'
32535                       if test $coin_need_flibs = yes ; then
32536                         use_blas="$use_blas $FLIBS"
32537                       fi
32538                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
32539echo "${ECHO_T}yes: $use_blas" >&6
32540
32541else
32542  echo "$as_me: failed program was:" >&5
32543sed 's/^/| /' conftest.$ac_ext >&5
32544
32545echo "$as_me:$LINENO: result: no" >&5
32546echo "${ECHO_T}no" >&6
32547fi
32548rm -f conftest.err conftest.$ac_objext \
32549      conftest$ac_exeext conftest.$ac_ext
32550    ;;
32551  c)
32552    ac_ext=f
32553ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
32554ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32555ac_compiler_gnu=$ac_cv_f77_compiler_gnu
32556case $ac_cv_f77_mangling in
32557  upper*) ac_val="DAXPY" ;;
32558  lower*) ac_val="daxpy" ;;
32559  *)      ac_val="unknown" ;;
32560esac
32561case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
32562
32563cfuncdaxpy="$ac_val"
32564
32565ac_ext=cc
32566ac_cpp='$CXXCPP $CPPFLAGS'
32567ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32568ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32569ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32570
32571    if test x"$coin_need_flibs" = xyes; then
32572      flink_try=no;
32573    else
32574      cat >conftest.$ac_ext <<_ACEOF
32575/* confdefs.h.  */
32576_ACEOF
32577cat confdefs.h >>conftest.$ac_ext
32578cat >>conftest.$ac_ext <<_ACEOF
32579/* end confdefs.h.  */
32580void $cfuncdaxpy();
32581#ifdef F77_DUMMY_MAIN
32582
32583#  ifdef __cplusplus
32584     extern "C"
32585#  endif
32586   int F77_DUMMY_MAIN() { return 1; }
32587
32588#endif
32589int
32590main ()
32591{
32592$cfuncdaxpy()
32593  ;
32594  return 0;
32595}
32596_ACEOF
32597rm -f conftest.$ac_objext conftest$ac_exeext
32598if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32599  (eval $ac_link) 2>conftest.er1
32600  ac_status=$?
32601  grep -v '^ *+' conftest.er1 >conftest.err
32602  rm -f conftest.er1
32603  cat conftest.err >&5
32604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32605  (exit $ac_status); } &&
32606	 { ac_try='test -z "$ac_cxx_werror_flag"
32607			 || test ! -s conftest.err'
32608  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32609  (eval $ac_try) 2>&5
32610  ac_status=$?
32611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32612  (exit $ac_status); }; } &&
32613	 { ac_try='test -s conftest$ac_exeext'
32614  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32615  (eval $ac_try) 2>&5
32616  ac_status=$?
32617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32618  (exit $ac_status); }; }; then
32619  flink_try=yes
32620else
32621  echo "$as_me: failed program was:" >&5
32622sed 's/^/| /' conftest.$ac_ext >&5
32623
32624flink_try=no
32625fi
32626rm -f conftest.err conftest.$ac_objext \
32627      conftest$ac_exeext conftest.$ac_ext
32628    fi
32629    if test $flink_try = yes; then
32630      use_blas='-lblas'
32631                       if test $coin_need_flibs = yes ; then
32632                         use_blas="$use_blas $FLIBS"
32633                       fi
32634                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
32635echo "${ECHO_T}yes: $use_blas" >&6
32636
32637    else
32638      if test x"$FLIBS" != x; then
32639        flink_save_libs="$LIBS"
32640        LIBS="$LIBS $FLIBS"
32641        cat >conftest.$ac_ext <<_ACEOF
32642/* confdefs.h.  */
32643_ACEOF
32644cat confdefs.h >>conftest.$ac_ext
32645cat >>conftest.$ac_ext <<_ACEOF
32646/* end confdefs.h.  */
32647void $cfuncdaxpy();
32648#ifdef F77_DUMMY_MAIN
32649
32650#  ifdef __cplusplus
32651     extern "C"
32652#  endif
32653   int F77_DUMMY_MAIN() { return 1; }
32654
32655#endif
32656int
32657main ()
32658{
32659$cfuncdaxpy()
32660  ;
32661  return 0;
32662}
32663_ACEOF
32664rm -f conftest.$ac_objext conftest$ac_exeext
32665if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32666  (eval $ac_link) 2>conftest.er1
32667  ac_status=$?
32668  grep -v '^ *+' conftest.er1 >conftest.err
32669  rm -f conftest.er1
32670  cat conftest.err >&5
32671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32672  (exit $ac_status); } &&
32673	 { ac_try='test -z "$ac_cxx_werror_flag"
32674			 || test ! -s conftest.err'
32675  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32676  (eval $ac_try) 2>&5
32677  ac_status=$?
32678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32679  (exit $ac_status); }; } &&
32680	 { ac_try='test -s conftest$ac_exeext'
32681  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32682  (eval $ac_try) 2>&5
32683  ac_status=$?
32684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32685  (exit $ac_status); }; }; then
32686  LIBS="$flink_save_libs"
32687                     coin_need_flibs=yes
32688                     use_blas='-lblas'
32689                       if test $coin_need_flibs = yes ; then
32690                         use_blas="$use_blas $FLIBS"
32691                       fi
32692                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
32693echo "${ECHO_T}yes: $use_blas" >&6
32694
32695
32696else
32697  echo "$as_me: failed program was:" >&5
32698sed 's/^/| /' conftest.$ac_ext >&5
32699
32700LIBS="$flink_save_libs"
32701                     echo "$as_me:$LINENO: result: no" >&5
32702echo "${ECHO_T}no" >&6
32703fi
32704rm -f conftest.err conftest.$ac_objext \
32705      conftest$ac_exeext conftest.$ac_ext
32706      else
32707        echo "$as_me:$LINENO: result: no" >&5
32708echo "${ECHO_T}no" >&6
32709      fi
32710    fi
32711    ;;
32712  cc|cpp)
32713    ac_ext=f
32714ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
32715ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32716ac_compiler_gnu=$ac_cv_f77_compiler_gnu
32717case $ac_cv_f77_mangling in
32718  upper*) ac_val="DAXPY" ;;
32719  lower*) ac_val="daxpy" ;;
32720  *)      ac_val="unknown" ;;
32721esac
32722case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
32723
32724cfuncdaxpy="$ac_val"
32725
32726ac_ext=cc
32727ac_cpp='$CXXCPP $CPPFLAGS'
32728ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32729ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32730ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32731
32732    if test x"$coin_need_flibs" = xyes; then
32733      flink_try=no;
32734    else
32735      cat >conftest.$ac_ext <<_ACEOF
32736/* confdefs.h.  */
32737_ACEOF
32738cat confdefs.h >>conftest.$ac_ext
32739cat >>conftest.$ac_ext <<_ACEOF
32740/* end confdefs.h.  */
32741extern "C" {void $cfuncdaxpy();}
32742#ifdef F77_DUMMY_MAIN
32743
32744#  ifdef __cplusplus
32745     extern "C"
32746#  endif
32747   int F77_DUMMY_MAIN() { return 1; }
32748
32749#endif
32750int
32751main ()
32752{
32753$cfuncdaxpy()
32754  ;
32755  return 0;
32756}
32757_ACEOF
32758rm -f conftest.$ac_objext conftest$ac_exeext
32759if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32760  (eval $ac_link) 2>conftest.er1
32761  ac_status=$?
32762  grep -v '^ *+' conftest.er1 >conftest.err
32763  rm -f conftest.er1
32764  cat conftest.err >&5
32765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32766  (exit $ac_status); } &&
32767	 { ac_try='test -z "$ac_cxx_werror_flag"
32768			 || test ! -s conftest.err'
32769  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32770  (eval $ac_try) 2>&5
32771  ac_status=$?
32772  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32773  (exit $ac_status); }; } &&
32774	 { ac_try='test -s conftest$ac_exeext'
32775  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32776  (eval $ac_try) 2>&5
32777  ac_status=$?
32778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32779  (exit $ac_status); }; }; then
32780  flink_try=yes
32781else
32782  echo "$as_me: failed program was:" >&5
32783sed 's/^/| /' conftest.$ac_ext >&5
32784
32785flink_try=no
32786fi
32787rm -f conftest.err conftest.$ac_objext \
32788      conftest$ac_exeext conftest.$ac_ext
32789    fi
32790    if test $flink_try = yes; then
32791      use_blas='-lblas'
32792                       if test $coin_need_flibs = yes ; then
32793                         use_blas="$use_blas $FLIBS"
32794                       fi
32795                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
32796echo "${ECHO_T}yes: $use_blas" >&6
32797
32798    else
32799      if test x"$FLIBS" != x; then
32800        flink_save_libs="$LIBS"
32801        LIBS="$LIBS $FLIBS"
32802        cat >conftest.$ac_ext <<_ACEOF
32803/* confdefs.h.  */
32804_ACEOF
32805cat confdefs.h >>conftest.$ac_ext
32806cat >>conftest.$ac_ext <<_ACEOF
32807/* end confdefs.h.  */
32808extern "C" {void $cfuncdaxpy();}
32809#ifdef F77_DUMMY_MAIN
32810
32811#  ifdef __cplusplus
32812     extern "C"
32813#  endif
32814   int F77_DUMMY_MAIN() { return 1; }
32815
32816#endif
32817int
32818main ()
32819{
32820$cfuncdaxpy()
32821  ;
32822  return 0;
32823}
32824_ACEOF
32825rm -f conftest.$ac_objext conftest$ac_exeext
32826if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32827  (eval $ac_link) 2>conftest.er1
32828  ac_status=$?
32829  grep -v '^ *+' conftest.er1 >conftest.err
32830  rm -f conftest.er1
32831  cat conftest.err >&5
32832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32833  (exit $ac_status); } &&
32834	 { ac_try='test -z "$ac_cxx_werror_flag"
32835			 || test ! -s conftest.err'
32836  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32837  (eval $ac_try) 2>&5
32838  ac_status=$?
32839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32840  (exit $ac_status); }; } &&
32841	 { ac_try='test -s conftest$ac_exeext'
32842  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32843  (eval $ac_try) 2>&5
32844  ac_status=$?
32845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
32846  (exit $ac_status); }; }; then
32847  LIBS="$flink_save_libs"
32848                     coin_need_flibs=yes
32849                     use_blas='-lblas'
32850                       if test $coin_need_flibs = yes ; then
32851                         use_blas="$use_blas $FLIBS"
32852                       fi
32853                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
32854echo "${ECHO_T}yes: $use_blas" >&6
32855
32856
32857else
32858  echo "$as_me: failed program was:" >&5
32859sed 's/^/| /' conftest.$ac_ext >&5
32860
32861LIBS="$flink_save_libs"
32862                     echo "$as_me:$LINENO: result: no" >&5
32863echo "${ECHO_T}no" >&6
32864fi
32865rm -f conftest.err conftest.$ac_objext \
32866      conftest$ac_exeext conftest.$ac_ext
32867      else
32868        echo "$as_me:$LINENO: result: no" >&5
32869echo "${ECHO_T}no" >&6
32870      fi
32871    fi
32872    ;;
32873esac
32874
32875    LIBS="$coin_save_LIBS"
32876  fi
32877
32878  # If we have no other ideas, consider building BLAS.
32879  if test -z "$use_blas" ; then
32880    use_blas=BUILD
32881  fi
32882fi
32883
32884if test "x$use_blas" = xBUILD ; then
32885
32886echo "$as_me:$LINENO: checking for COIN-OR package Blas" >&5
32887echo $ECHO_N "checking for COIN-OR package Blas... $ECHO_C" >&6
32888
32889coin_has_blas=notGiven
32890
32891# check if user wants to skip package in any case
32892if test x"$COIN_SKIP_PROJECTS" != x; then
32893  for dir in $COIN_SKIP_PROJECTS; do
32894    if test $dir = "Blas"; then
32895      coin_has_blas=skipping
32896    fi
32897  done
32898fi
32899
32900if test "$coin_has_blas" != skipping; then
32901
32902# Check whether --with-m4_tolower(Blas) or --without-m4_tolower(Blas) was given.
32903if test "${with_blas+set}" = set; then
32904  withval="$with_blas"
32905  if test "$withval" = no ; then
32906       coin_has_blas=skipping
32907     fi
32908
32909fi;
32910fi
32911
32912BLAS_LIBS=
32913BLAS_CFLAGS=
32914BLAS_DATA=
32915BLAS_DEPENDENCIES=
32916BLAS_PCLIBS=
32917BLAS_PCREQUIRES=
32918
32919
32920
32921
32922
32923
32924
32925
32926
32927
32928
32929
32930
32931
32932
32933
32934
32935#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
32936if test $coin_has_blas != skipping; then
32937
32938# Check whether --with-m4_tolower(Blas)-lib or --without-m4_tolower(Blas)-lib was given.
32939if test "${with_blas_lib+set}" = set; then
32940  withval="$with_blas_lib"
32941  if test "$withval" = no ; then
32942       coin_has_blas=skipping
32943     else
32944       coin_has_blas=yes
32945       BLAS_LIBS="$withval"
32946       BLAS_PCLIBS="$withval"
32947
32948         COINUTILSLIB_PCLIBS="$withval $COINUTILSLIB_PCLIBS"
32949         COINUTILSLIB_LIBS="$withval $COINUTILSLIB_LIBS"
32950
32951       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
32952       if test -z "$PKG_CONFIG" ; then
32953         BLAS_LIBS_INSTALLED="$withval"
32954         COINUTILSLIB_LIBS_INSTALLED="$withval $COINUTILSLIB_LIBS_INSTALLED"
32955       fi
32956     fi
32957
32958fi;
32959fi
32960
32961if test $coin_has_blas != skipping; then
32962
32963# Check whether --with-m4_tolower(Blas)-incdir or --without-m4_tolower(Blas)-incdir was given.
32964if test "${with_blas_incdir+set}" = set; then
32965  withval="$with_blas_incdir"
32966  if test "$withval" = no ; then
32967       coin_has_blas=skipping
32968     else
32969       coin_has_blas=yes
32970       BLAS_CFLAGS="-I`${CYGPATH_W} $withval`"
32971       COINUTILSLIB_CFLAGS="-I`${CYGPATH_W} $withval` $COINUTILSLIB_CFLAGS"
32972       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
32973       if test -z "$PKG_CONFIG" ; then
32974         BLAS_CFLAGS_INSTALLED="$BLAS_CFLAGS"
32975         COINUTILSLIB_CFLAGS_INSTALLED="$BLAS_CFLAGS $COINUTILSLIB_CFLAGS_INSTALLED"
32976       fi
32977     fi
32978
32979fi;
32980fi
32981
32982if test $coin_has_blas != skipping; then
32983
32984# Check whether --with-m4_tolower(Blas)-datadir or --without-m4_tolower(Blas)-datadir was given.
32985if test "${with_blas_datadir+set}" = set; then
32986  withval="$with_blas_datadir"
32987  if test "$withval" = no ; then
32988       coin_has_blas=skipping
32989     else
32990       coin_has_blas=yes
32991       BLAS_DATA="$withval"
32992       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
32993       if test -z "$PKG_CONFIG" ; then
32994         BLAS_DATA_INSTALLED="$withval"
32995       fi
32996     fi
32997
32998fi;
32999fi
33000
33001if test $coin_has_blas = notGiven; then
33002  if test -n "$PKG_CONFIG" ; then
33003    # set search path for pkg-config
33004    # need to export variable to be sure that the following pkg-config gets these values
33005    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
33006    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
33007    export PKG_CONFIG_PATH
33008
33009    # let pkg-config do it's magic
33010
33011
33012
33013if test -n "$PKG_CONFIG" ; then
33014  if $PKG_CONFIG --exists "coinblas"; then
33015    BLAS_VERSIONS=`$PKG_CONFIG --modversion "coinblas" 2>/dev/null | tr '\n' ' '`
33016     cflags=`$PKG_CONFIG --cflags "coinblas" 2>/dev/null`
33017    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
33018	# thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
33019	# but only do this if is not trivial
33020    if test "$CYGPATH_W" != "echo" ; then
33021      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
33022      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
33023    fi
33024    BLAS_CFLAGS="$cflags"
33025    BLAS_LIBS=`$PKG_CONFIG --libs "coinblas" 2>/dev/null`
33026    BLAS_DATA=`$PKG_CONFIG --variable=datadir "coinblas" 2>/dev/null`
33027     coin_has_blas=yes
33028        echo "$as_me:$LINENO: result: yes: $BLAS_VERSIONS" >&5
33029echo "${ECHO_T}yes: $BLAS_VERSIONS" >&6
33030
33031        # adjust linker flags for (i)cl compiler
33032        # 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)
33033        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
33034        then
33035          BLAS_LIBS=`echo " $BLAS_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
33036        fi
33037        BLAS_PCREQUIRES="coinblas"
33038
33039        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in CoinUtilsLib
33040
33041          COINUTILSLIB_PCREQUIRES="coinblas $COINUTILSLIB_PCREQUIRES"
33042          COINUTILSLIB_CFLAGS="$BLAS_CFLAGS $COINUTILSLIB_CFLAGS"
33043          COINUTILSLIB_LIBS="$BLAS_LIBS $COINUTILSLIB_LIBS"
33044
33045
33046
33047  else
33048    BLAS_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "coinblas"`
33049      coin_has_blas=notGiven
33050        echo "$as_me:$LINENO: result: not given: $BLAS_PKG_ERRORS" >&5
33051echo "${ECHO_T}not given: $BLAS_PKG_ERRORS" >&6
33052
33053  fi
33054else
33055  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Blas without pkg-config\"" >&5
33056echo "$as_me: error: \"Cannot check for existance of module Blas without pkg-config\"" >&2;}
33057   { (exit 1); exit 1; }; }
33058fi
33059
33060
33061
33062
33063    # reset PKG_CONFIG_PATH variable
33064    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
33065    export PKG_CONFIG_PATH
33066
33067  else
33068    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
33069echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
33070
33071echo "$as_me:$LINENO: checking for COIN-OR package Blas (fallback)" >&5
33072echo $ECHO_N "checking for COIN-OR package Blas (fallback)... $ECHO_C" >&6
33073
33074coin_has_blas=notGiven
33075BLAS_LIBS=
33076BLAS_LIBS_INSTALLED=
33077BLAS_CFLAGS=
33078BLAS_CFLAGS_INSTALLED=
33079BLAS_DATA=
33080BLAS_DATA_INSTALLED=
33081BLAS_PCLIBS=
33082BLAS_PCREQUIRES=
33083
33084# initial list of dependencies is "coinblas", but we need to filter out version number specifications (= x, <= x, >= x, != x)
33085projtoprocess="coinblas"
33086
33087# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
33088# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
33089# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
33090# also, we setup the DATA variable
33091allproj=""
33092allpcfiles=""
33093allpcifiles=""
33094while test "x$projtoprocess" != x ; do
33095
33096  for proj in $projtoprocess ; do
33097    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
33098    pcfile=""
33099    save_IFS="$IFS"
33100    IFS=":"
33101    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
33102      # 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
33103      if test -r "$dir/${proj}-uninstalled.pc" ; then
33104        pcfile="$dir/$proj-uninstalled.pc"
33105        if test -r "$dir/${proj}.pc" ; then
33106          pcifile="$dir/${proj}.pc"
33107        else
33108          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
33109echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
33110          pcifile=
33111        fi
33112        break
33113      fi
33114    done
33115    IFS="$save_IFS"
33116
33117    if test "x$pcfile" != x ; then
33118      # read dependencies from $pcfile and filter it
33119      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ 	]\{0,\}[^ 	]\{1,\}//g'`
33120
33121      # add projrequires to the front of the list of projects that have to be processed next
33122      # at the same time, remove $proj from this list
33123      projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
33124
33125      # read DATA from $pcfile, if _DATA is still empty
33126      if test "x$BLAS_DATA" = x ; then
33127        projdatadir=
33128        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
33129        eval `sh -c "$pcfilemod"`
33130        BLAS_DATA="$projdatadir"
33131      fi
33132
33133      allproj="$allproj $proj"
33134      allpcfiles="$pcfile:$allpcfiles"
33135
33136    else
33137      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
33138echo "${ECHO_T}no, dependency $proj not available" >&6
33139      allproj=fail
33140      break 2
33141    fi
33142
33143    if test "x$pcifile" != x ; then
33144      allpcifiles="$pcifile:$allpcifiles"
33145
33146      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
33147      if test "x$BLAS_DATA_INSTALLED" = x ; then
33148        projdatadir=
33149        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
33150        eval `sh -c "$pcifilemod"`
33151        if test "${CYGPATH_W}" != "echo"; then
33152          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
33153        fi
33154        BLAS_DATA_INSTALLED="$projdatadir"
33155      fi
33156
33157    fi
33158
33159    break
33160  done
33161
33162  # remove spaces on begin of $projtoprocess
33163  projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
33164
33165done
33166
33167if test "$allproj" != fail ; then
33168
33169  # now go through the list of .pc files and assemble compiler and linker flags
33170  # important is here to obey the reverse order that has been setup before,
33171  # since then libraries that are required by several others should be after these other libraries
33172  pcfilesprocessed=""
33173
33174  save_IFS="$IFS"
33175  IFS=":"
33176  for pcfile in $allpcfiles ; do
33177
33178    # if $pcfile has been processed already, skip this round
33179    if test "x$pcfilesprocessed" != x ; then
33180      for pcfiledone in $pcfilesprocessed ; do
33181        if test "$pcfiledone" = "$pcfile" ; then
33182          continue 2
33183        fi
33184      done
33185    fi
33186
33187    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
33188    #   replace "Libs:" by "echo projlibs="
33189    #   replace "Cflags:" by "echo projcflags="
33190    #   remove every line starting with <some word>:
33191    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
33192
33193    # set projcflags and projlibs variables by running $pcfilemod
33194    # 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
33195    projcflags=
33196    projlibs=
33197    IFS="$save_IFS"
33198    eval `sh -c "$pcfilemod"`
33199    IFS=":"
33200
33201    # add CYGPATH_W cludge into include flags and set CFLAGS variable
33202    if test "${CYGPATH_W}" != "echo"; then
33203      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
33204    fi
33205    BLAS_CFLAGS="$projcflags $BLAS_CFLAGS"
33206
33207    # set LIBS variable
33208    BLAS_LIBS="$projlibs $BLAS_LIBS"
33209
33210    # remember that we have processed $pcfile
33211    pcfilesprocessed="$pcfilesprocessed:$pcfile"
33212
33213  done
33214  IFS="$save_IFS"
33215
33216
33217  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
33218  # important is here again to obey the reverse order that has been setup before,
33219  # since then libraries that are required by several others should be after these other libraries
33220  pcfilesprocessed=""
33221
33222  save_IFS="$IFS"
33223  IFS=":"
33224  for pcfile in $allpcifiles ; do
33225
33226    # if $pcfile has been processed already, skip this round
33227    if test "x$pcfilesprocessed" != x ; then
33228      for pcfiledone in $pcfilesprocessed ; do
33229        if test "$pcfiledone" = "$pcfile" ; then
33230          continue 2
33231        fi
33232      done
33233    fi
33234
33235    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
33236    #   replace "Libs:" by "echo projlibs="
33237    #   replace "Cflags:" by "echo projcflags="
33238    #   remove every line starting with <some word>:
33239    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
33240
33241    # set projcflags and projlibs variables by running $pcfilemod
33242    # 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
33243    projcflags=
33244    projlibs=
33245    IFS="$save_IFS"
33246    eval `sh -c "$pcfilemod"`
33247    IFS=":"
33248
33249    # add CYGPATH_W cludge into include flags and set CFLAGS variable
33250    if test "${CYGPATH_W}" != "echo"; then
33251      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
33252    fi
33253    BLAS_CFLAGS_INSTALLED="$projcflags $BLAS_CFLAGS_INSTALLED"
33254
33255    # set LIBS variable
33256    BLAS_LIBS_INSTALLED="$projlibs $BLAS_LIBS_INSTALLED"
33257
33258    # remember that we have processed $pcfile
33259    pcfilesprocessed="$pcfilesprocessed:$pcfile"
33260
33261  done
33262  IFS="$save_IFS"
33263
33264
33265  # finish up
33266  coin_has_blas=yes
33267  echo "$as_me:$LINENO: result: yes" >&5
33268echo "${ECHO_T}yes" >&6
33269
33270cat >>confdefs.h <<\_ACEOF
33271#define COIN_HAS_BLAS 1
33272_ACEOF
33273
33274
33275  # adjust linker flags for (i)cl compiler
33276  # 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),
33277  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
33278  #    everything of the form "-lname" by "libname.lib", and
33279  #    everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
33280  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
33281  then
33282    BLAS_LIBS=`echo " $BLAS_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
33283    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'`
33284  fi
33285
33286  BLAS_PCREQUIRES="coinblas"
33287
33288    COINUTILSLIB_PCREQUIRES="coinblas $COINUTILSLIB_PCREQUIRES"
33289    COINUTILSLIB_CFLAGS="$BLAS_CFLAGS $COINUTILSLIB_CFLAGS"
33290    COINUTILSLIB_LIBS="$BLAS_LIBS $COINUTILSLIB_LIBS"
33291    COINUTILSLIB_CFLAGS_INSTALLED="$BLAS_CFLAGS_INSTALLED $COINUTILSLIB_CFLAGS_INSTALLED"
33292    COINUTILSLIB_LIBS_INSTALLED="$BLAS_LIBS_INSTALLED $COINUTILSLIB_LIBS_INSTALLED"
33293
33294
33295fi
33296
33297
33298
33299if test $coin_has_blas != notGiven &&
33300                test $coin_has_blas != skipping; then
33301  COIN_HAS_BLAS_TRUE=
33302  COIN_HAS_BLAS_FALSE='#'
33303else
33304  COIN_HAS_BLAS_TRUE='#'
33305  COIN_HAS_BLAS_FALSE=
33306fi
33307
33308
33309
33310  fi
33311
33312else
33313  echo "$as_me:$LINENO: result: $coin_has_blas" >&5
33314echo "${ECHO_T}$coin_has_blas" >&6
33315fi
33316
33317if test $coin_has_blas != skipping &&
33318   test $coin_has_blas != notGiven ; then
33319
33320cat >>confdefs.h <<\_ACEOF
33321#define COIN_HAS_BLAS 1
33322_ACEOF
33323
33324
33325  # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
33326if test "${enable_interpackage_dependencies+set}" = set; then
33327  enableval="$enable_interpackage_dependencies"
33328
33329else
33330  enable_interpackage_dependencies=yes
33331fi;
33332
33333  if test $enable_interpackage_dependencies = yes ; then
33334     # construct dependencies variables from LIBS variables
33335     # we add an extra space in LIBS so we can substitute out everything starting with " -"
33336     # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows
33337     # then remove everything of the form -xxx
33338     # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
33339     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'`
33340
33341       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'`
33342
33343  fi
33344
33345  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
33346    if test -n "$BLAS_CFLAGS" ; then
33347      { echo "$as_me:$LINENO: Blas CFLAGS are $BLAS_CFLAGS" >&5
33348echo "$as_me: Blas CFLAGS are $BLAS_CFLAGS" >&6;}
33349    fi
33350    if test -n "$BLAS_LIBS" ; then
33351      { echo "$as_me:$LINENO: Blas LIBS   are $BLAS_LIBS" >&5
33352echo "$as_me: Blas LIBS   are $BLAS_LIBS" >&6;}
33353    fi
33354    if test -n "$BLAS_DEPENDENCIES" ; then
33355      { echo "$as_me:$LINENO: Blas DEPENDENCIES are $BLAS_DEPENDENCIES" >&5
33356echo "$as_me: Blas DEPENDENCIES are $BLAS_DEPENDENCIES" >&6;}
33357    fi
33358    if test -n "$BLAS_DATA" ; then
33359      { echo "$as_me:$LINENO: Blas DATA   is  $BLAS_DATA" >&5
33360echo "$as_me: Blas DATA   is  $BLAS_DATA" >&6;}
33361    fi
33362    if test -n "$BLAS_PCLIBS" ; then
33363      { echo "$as_me:$LINENO: Blas PCLIBS are $BLAS_PCLIBS" >&5
33364echo "$as_me: Blas PCLIBS are $BLAS_PCLIBS" >&6;}
33365    fi
33366    if test -n "$BLAS_PCREQUIRES" ; then
33367      { echo "$as_me:$LINENO: Blas PCREQUIRES are $BLAS_PCREQUIRES" >&5
33368echo "$as_me: Blas PCREQUIRES are $BLAS_PCREQUIRES" >&6;}
33369    fi
33370
33371      { echo "$as_me:$LINENO: CoinUtilsLib CFLAGS are $COINUTILSLIB_CFLAGS" >&5
33372echo "$as_me: CoinUtilsLib CFLAGS are $COINUTILSLIB_CFLAGS" >&6;}
33373      { echo "$as_me:$LINENO: CoinUtilsLib LIBS   are $COINUTILSLIB_LIBS" >&5
33374echo "$as_me: CoinUtilsLib LIBS   are $COINUTILSLIB_LIBS" >&6;}
33375      { echo "$as_me:$LINENO: CoinUtilsLib DEPENDENCIES are $COINUTILSLIB_DEPENDENCIES" >&5
33376echo "$as_me: CoinUtilsLib DEPENDENCIES are $COINUTILSLIB_DEPENDENCIES" >&6;}
33377
33378  fi
33379fi
33380
33381# Define the Makefile conditional
33382
33383
33384if test $coin_has_blas != notGiven &&
33385                test $coin_has_blas != skipping; then
33386  COIN_HAS_BLAS_TRUE=
33387  COIN_HAS_BLAS_FALSE='#'
33388else
33389  COIN_HAS_BLAS_TRUE='#'
33390  COIN_HAS_BLAS_FALSE=
33391fi
33392
33393
33394
33395
33396elif test "x$use_blas" != x && test "$use_blas" != no; then
33397  coin_has_blas=yes
33398
33399
33400if test 0 = 0; then
33401  COIN_HAS_BLAS_TRUE=
33402  COIN_HAS_BLAS_FALSE='#'
33403else
33404  COIN_HAS_BLAS_TRUE='#'
33405  COIN_HAS_BLAS_FALSE=
33406fi
33407
33408
33409cat >>confdefs.h <<\_ACEOF
33410#define COIN_HAS_BLAS 1
33411_ACEOF
33412
33413  BLAS_LIBS="$use_blas"
33414  BLAS_CFLAGS=
33415  BLAS_DATA=
33416
33417
33418
33419
33420    COINUTILSLIB_PCLIBS="$BLAS_LIBS $COINUTILSLIB_PCLIBS"
33421    COINUTILSLIB_LIBS="$BLAS_LIBS $COINUTILSLIB_LIBS"
33422    COINUTILSLIB_LIBS_INSTALLED="$BLAS_LIBS $COINUTILSLIB_LIBS_INSTALLED"
33423
33424
33425else
33426  coin_has_blas=no
33427
33428
33429if test 0 = 1; then
33430  COIN_HAS_BLAS_TRUE=
33431  COIN_HAS_BLAS_FALSE='#'
33432else
33433  COIN_HAS_BLAS_TRUE='#'
33434  COIN_HAS_BLAS_FALSE=
33435fi
33436
33437fi
33438
33439
33440
33441
33442
33443
33444
33445
33446
33447
33448# Check whether --with-lapack or --without-lapack was given.
33449if test "${with_lapack+set}" = set; then
33450  withval="$with_lapack"
33451  use_lapack=$withval
33452else
33453  use_lapack=
33454fi;
33455
33456#if user specified --with-lapack-lib, then we should give COIN_HAS_PACKAGE preference
33457
33458# Check whether --with-lapack-lib or --without-lapack-lib was given.
33459if test "${with_lapack_lib+set}" = set; then
33460  withval="$with_lapack_lib"
33461  use_lapack=BUILD
33462fi;
33463
33464# Check if user supplied option makes sense
33465if test x"$use_lapack" != x; then
33466  if test "$use_lapack" = "BUILD"; then
33467    # we come to this later
33468    :
33469  elif test "$use_lapack" != no; then
33470    use_lapack="$use_lapack $BLAS_LIBS"
33471    coin_save_LIBS="$LIBS"
33472    LIBS="$use_lapack $LIBS"
33473    if test "$F77" != unavailable; then
33474      echo "$as_me:$LINENO: checking whether user supplied LAPACKLIB=\"$use_lapack\" works" >&5
33475echo $ECHO_N "checking whether user supplied LAPACKLIB=\"$use_lapack\" works... $ECHO_C" >&6
33476      coin_need_flibs=no
33477      case $ac_ext in
33478  f)
33479    cat >conftest.$ac_ext <<_ACEOF
33480/* confdefs.h.  */
33481_ACEOF
33482cat confdefs.h >>conftest.$ac_ext
33483cat >>conftest.$ac_ext <<_ACEOF
33484/* end confdefs.h.  */
33485
33486#ifdef F77_DUMMY_MAIN
33487
33488#  ifdef __cplusplus
33489     extern "C"
33490#  endif
33491   int F77_DUMMY_MAIN() { return 1; }
33492
33493#endif
33494int
33495main ()
33496{
33497      call dsyev
33498  ;
33499  return 0;
33500}
33501_ACEOF
33502rm -f conftest.$ac_objext conftest$ac_exeext
33503if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33504  (eval $ac_link) 2>conftest.er1
33505  ac_status=$?
33506  grep -v '^ *+' conftest.er1 >conftest.err
33507  rm -f conftest.er1
33508  cat conftest.err >&5
33509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33510  (exit $ac_status); } &&
33511	 { ac_try='test -z "$ac_cxx_werror_flag"
33512			 || test ! -s conftest.err'
33513  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33514  (eval $ac_try) 2>&5
33515  ac_status=$?
33516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33517  (exit $ac_status); }; } &&
33518	 { ac_try='test -s conftest$ac_exeext'
33519  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33520  (eval $ac_try) 2>&5
33521  ac_status=$?
33522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33523  (exit $ac_status); }; }; then
33524  if test $coin_need_flibs = yes ; then
33525                           use_lapack="$use_lapack $FLIBS"
33526                         fi
33527                         echo "$as_me:$LINENO: result: yes: $use_lapack" >&5
33528echo "${ECHO_T}yes: $use_lapack" >&6
33529
33530else
33531  echo "$as_me: failed program was:" >&5
33532sed 's/^/| /' conftest.$ac_ext >&5
33533
33534echo "$as_me:$LINENO: result: no" >&5
33535echo "${ECHO_T}no" >&6
33536                         { { echo "$as_me:$LINENO: error: user supplied LAPACK library \"$use_lapack\" does not work" >&5
33537echo "$as_me: error: user supplied LAPACK library \"$use_lapack\" does not work" >&2;}
33538   { (exit 1); exit 1; }; }
33539fi
33540rm -f conftest.err conftest.$ac_objext \
33541      conftest$ac_exeext conftest.$ac_ext
33542    ;;
33543  c)
33544    ac_ext=f
33545ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
33546ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33547ac_compiler_gnu=$ac_cv_f77_compiler_gnu
33548case $ac_cv_f77_mangling in
33549  upper*) ac_val="DSYEV" ;;
33550  lower*) ac_val="dsyev" ;;
33551  *)      ac_val="unknown" ;;
33552esac
33553case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
33554
33555cfuncdsyev="$ac_val"
33556
33557ac_ext=cc
33558ac_cpp='$CXXCPP $CPPFLAGS'
33559ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33560ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33561ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33562
33563    if test x"$coin_need_flibs" = xyes; then
33564      flink_try=no;
33565    else
33566      cat >conftest.$ac_ext <<_ACEOF
33567/* confdefs.h.  */
33568_ACEOF
33569cat confdefs.h >>conftest.$ac_ext
33570cat >>conftest.$ac_ext <<_ACEOF
33571/* end confdefs.h.  */
33572void $cfuncdsyev();
33573#ifdef F77_DUMMY_MAIN
33574
33575#  ifdef __cplusplus
33576     extern "C"
33577#  endif
33578   int F77_DUMMY_MAIN() { return 1; }
33579
33580#endif
33581int
33582main ()
33583{
33584$cfuncdsyev()
33585  ;
33586  return 0;
33587}
33588_ACEOF
33589rm -f conftest.$ac_objext conftest$ac_exeext
33590if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33591  (eval $ac_link) 2>conftest.er1
33592  ac_status=$?
33593  grep -v '^ *+' conftest.er1 >conftest.err
33594  rm -f conftest.er1
33595  cat conftest.err >&5
33596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33597  (exit $ac_status); } &&
33598	 { ac_try='test -z "$ac_cxx_werror_flag"
33599			 || test ! -s conftest.err'
33600  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33601  (eval $ac_try) 2>&5
33602  ac_status=$?
33603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33604  (exit $ac_status); }; } &&
33605	 { ac_try='test -s conftest$ac_exeext'
33606  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33607  (eval $ac_try) 2>&5
33608  ac_status=$?
33609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33610  (exit $ac_status); }; }; then
33611  flink_try=yes
33612else
33613  echo "$as_me: failed program was:" >&5
33614sed 's/^/| /' conftest.$ac_ext >&5
33615
33616flink_try=no
33617fi
33618rm -f conftest.err conftest.$ac_objext \
33619      conftest$ac_exeext conftest.$ac_ext
33620    fi
33621    if test $flink_try = yes; then
33622      if test $coin_need_flibs = yes ; then
33623                           use_lapack="$use_lapack $FLIBS"
33624                         fi
33625                         echo "$as_me:$LINENO: result: yes: $use_lapack" >&5
33626echo "${ECHO_T}yes: $use_lapack" >&6
33627
33628    else
33629      if test x"$FLIBS" != x; then
33630        flink_save_libs="$LIBS"
33631        LIBS="$LIBS $FLIBS"
33632        cat >conftest.$ac_ext <<_ACEOF
33633/* confdefs.h.  */
33634_ACEOF
33635cat confdefs.h >>conftest.$ac_ext
33636cat >>conftest.$ac_ext <<_ACEOF
33637/* end confdefs.h.  */
33638void $cfuncdsyev();
33639#ifdef F77_DUMMY_MAIN
33640
33641#  ifdef __cplusplus
33642     extern "C"
33643#  endif
33644   int F77_DUMMY_MAIN() { return 1; }
33645
33646#endif
33647int
33648main ()
33649{
33650$cfuncdsyev()
33651  ;
33652  return 0;
33653}
33654_ACEOF
33655rm -f conftest.$ac_objext conftest$ac_exeext
33656if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33657  (eval $ac_link) 2>conftest.er1
33658  ac_status=$?
33659  grep -v '^ *+' conftest.er1 >conftest.err
33660  rm -f conftest.er1
33661  cat conftest.err >&5
33662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33663  (exit $ac_status); } &&
33664	 { ac_try='test -z "$ac_cxx_werror_flag"
33665			 || test ! -s conftest.err'
33666  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33667  (eval $ac_try) 2>&5
33668  ac_status=$?
33669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33670  (exit $ac_status); }; } &&
33671	 { ac_try='test -s conftest$ac_exeext'
33672  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33673  (eval $ac_try) 2>&5
33674  ac_status=$?
33675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33676  (exit $ac_status); }; }; then
33677  LIBS="$flink_save_libs"
33678                     coin_need_flibs=yes
33679                     if test $coin_need_flibs = yes ; then
33680                           use_lapack="$use_lapack $FLIBS"
33681                         fi
33682                         echo "$as_me:$LINENO: result: yes: $use_lapack" >&5
33683echo "${ECHO_T}yes: $use_lapack" >&6
33684
33685
33686else
33687  echo "$as_me: failed program was:" >&5
33688sed 's/^/| /' conftest.$ac_ext >&5
33689
33690LIBS="$flink_save_libs"
33691                     echo "$as_me:$LINENO: result: no" >&5
33692echo "${ECHO_T}no" >&6
33693                         { { echo "$as_me:$LINENO: error: user supplied LAPACK library \"$use_lapack\" does not work" >&5
33694echo "$as_me: error: user supplied LAPACK library \"$use_lapack\" does not work" >&2;}
33695   { (exit 1); exit 1; }; }
33696fi
33697rm -f conftest.err conftest.$ac_objext \
33698      conftest$ac_exeext conftest.$ac_ext
33699      else
33700        echo "$as_me:$LINENO: result: no" >&5
33701echo "${ECHO_T}no" >&6
33702                         { { echo "$as_me:$LINENO: error: user supplied LAPACK library \"$use_lapack\" does not work" >&5
33703echo "$as_me: error: user supplied LAPACK library \"$use_lapack\" does not work" >&2;}
33704   { (exit 1); exit 1; }; }
33705      fi
33706    fi
33707    ;;
33708  cc|cpp)
33709    ac_ext=f
33710ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
33711ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33712ac_compiler_gnu=$ac_cv_f77_compiler_gnu
33713case $ac_cv_f77_mangling in
33714  upper*) ac_val="DSYEV" ;;
33715  lower*) ac_val="dsyev" ;;
33716  *)      ac_val="unknown" ;;
33717esac
33718case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
33719
33720cfuncdsyev="$ac_val"
33721
33722ac_ext=cc
33723ac_cpp='$CXXCPP $CPPFLAGS'
33724ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33725ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33726ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33727
33728    if test x"$coin_need_flibs" = xyes; then
33729      flink_try=no;
33730    else
33731      cat >conftest.$ac_ext <<_ACEOF
33732/* confdefs.h.  */
33733_ACEOF
33734cat confdefs.h >>conftest.$ac_ext
33735cat >>conftest.$ac_ext <<_ACEOF
33736/* end confdefs.h.  */
33737extern "C" {void $cfuncdsyev();}
33738#ifdef F77_DUMMY_MAIN
33739
33740#  ifdef __cplusplus
33741     extern "C"
33742#  endif
33743   int F77_DUMMY_MAIN() { return 1; }
33744
33745#endif
33746int
33747main ()
33748{
33749$cfuncdsyev()
33750  ;
33751  return 0;
33752}
33753_ACEOF
33754rm -f conftest.$ac_objext conftest$ac_exeext
33755if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33756  (eval $ac_link) 2>conftest.er1
33757  ac_status=$?
33758  grep -v '^ *+' conftest.er1 >conftest.err
33759  rm -f conftest.er1
33760  cat conftest.err >&5
33761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33762  (exit $ac_status); } &&
33763	 { ac_try='test -z "$ac_cxx_werror_flag"
33764			 || test ! -s conftest.err'
33765  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33766  (eval $ac_try) 2>&5
33767  ac_status=$?
33768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33769  (exit $ac_status); }; } &&
33770	 { ac_try='test -s conftest$ac_exeext'
33771  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33772  (eval $ac_try) 2>&5
33773  ac_status=$?
33774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33775  (exit $ac_status); }; }; then
33776  flink_try=yes
33777else
33778  echo "$as_me: failed program was:" >&5
33779sed 's/^/| /' conftest.$ac_ext >&5
33780
33781flink_try=no
33782fi
33783rm -f conftest.err conftest.$ac_objext \
33784      conftest$ac_exeext conftest.$ac_ext
33785    fi
33786    if test $flink_try = yes; then
33787      if test $coin_need_flibs = yes ; then
33788                           use_lapack="$use_lapack $FLIBS"
33789                         fi
33790                         echo "$as_me:$LINENO: result: yes: $use_lapack" >&5
33791echo "${ECHO_T}yes: $use_lapack" >&6
33792
33793    else
33794      if test x"$FLIBS" != x; then
33795        flink_save_libs="$LIBS"
33796        LIBS="$LIBS $FLIBS"
33797        cat >conftest.$ac_ext <<_ACEOF
33798/* confdefs.h.  */
33799_ACEOF
33800cat confdefs.h >>conftest.$ac_ext
33801cat >>conftest.$ac_ext <<_ACEOF
33802/* end confdefs.h.  */
33803extern "C" {void $cfuncdsyev();}
33804#ifdef F77_DUMMY_MAIN
33805
33806#  ifdef __cplusplus
33807     extern "C"
33808#  endif
33809   int F77_DUMMY_MAIN() { return 1; }
33810
33811#endif
33812int
33813main ()
33814{
33815$cfuncdsyev()
33816  ;
33817  return 0;
33818}
33819_ACEOF
33820rm -f conftest.$ac_objext conftest$ac_exeext
33821if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33822  (eval $ac_link) 2>conftest.er1
33823  ac_status=$?
33824  grep -v '^ *+' conftest.er1 >conftest.err
33825  rm -f conftest.er1
33826  cat conftest.err >&5
33827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33828  (exit $ac_status); } &&
33829	 { ac_try='test -z "$ac_cxx_werror_flag"
33830			 || test ! -s conftest.err'
33831  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33832  (eval $ac_try) 2>&5
33833  ac_status=$?
33834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33835  (exit $ac_status); }; } &&
33836	 { ac_try='test -s conftest$ac_exeext'
33837  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33838  (eval $ac_try) 2>&5
33839  ac_status=$?
33840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33841  (exit $ac_status); }; }; then
33842  LIBS="$flink_save_libs"
33843                     coin_need_flibs=yes
33844                     if test $coin_need_flibs = yes ; then
33845                           use_lapack="$use_lapack $FLIBS"
33846                         fi
33847                         echo "$as_me:$LINENO: result: yes: $use_lapack" >&5
33848echo "${ECHO_T}yes: $use_lapack" >&6
33849
33850
33851else
33852  echo "$as_me: failed program was:" >&5
33853sed 's/^/| /' conftest.$ac_ext >&5
33854
33855LIBS="$flink_save_libs"
33856                     echo "$as_me:$LINENO: result: no" >&5
33857echo "${ECHO_T}no" >&6
33858                         { { echo "$as_me:$LINENO: error: user supplied LAPACK library \"$use_lapack\" does not work" >&5
33859echo "$as_me: error: user supplied LAPACK library \"$use_lapack\" does not work" >&2;}
33860   { (exit 1); exit 1; }; }
33861fi
33862rm -f conftest.err conftest.$ac_objext \
33863      conftest$ac_exeext conftest.$ac_ext
33864      else
33865        echo "$as_me:$LINENO: result: no" >&5
33866echo "${ECHO_T}no" >&6
33867                         { { echo "$as_me:$LINENO: error: user supplied LAPACK library \"$use_lapack\" does not work" >&5
33868echo "$as_me: error: user supplied LAPACK library \"$use_lapack\" does not work" >&2;}
33869   { (exit 1); exit 1; }; }
33870      fi
33871    fi
33872    ;;
33873esac
33874
33875    else
33876      { echo "$as_me:$LINENO: whether user supplied LAPACKLIB=\"$use_lapack\" works with C linkage" >&5
33877echo "$as_me: whether user supplied LAPACKLIB=\"$use_lapack\" works with C linkage" >&6;}
33878      ac_ext=c
33879ac_cpp='$CPP $CPPFLAGS'
33880ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33881ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33882ac_compiler_gnu=$ac_cv_c_compiler_gnu
33883
33884      echo "$as_me:$LINENO: checking for dsyev" >&5
33885echo $ECHO_N "checking for dsyev... $ECHO_C" >&6
33886if test "${ac_cv_func_dsyev+set}" = set; then
33887  echo $ECHO_N "(cached) $ECHO_C" >&6
33888else
33889  cat >conftest.$ac_ext <<_ACEOF
33890/* confdefs.h.  */
33891_ACEOF
33892cat confdefs.h >>conftest.$ac_ext
33893cat >>conftest.$ac_ext <<_ACEOF
33894/* end confdefs.h.  */
33895/* Define dsyev to an innocuous variant, in case <limits.h> declares dsyev.
33896   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33897#define dsyev innocuous_dsyev
33898
33899/* System header to define __stub macros and hopefully few prototypes,
33900    which can conflict with char dsyev (); below.
33901    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33902    <limits.h> exists even on freestanding compilers.  */
33903
33904#ifdef __STDC__
33905# include <limits.h>
33906#else
33907# include <assert.h>
33908#endif
33909
33910#undef dsyev
33911
33912/* Override any gcc2 internal prototype to avoid an error.  */
33913#ifdef __cplusplus
33914extern "C"
33915{
33916#endif
33917/* We use char because int might match the return type of a gcc2
33918   builtin and then its argument prototype would still apply.  */
33919char dsyev ();
33920/* The GNU C library defines this for functions which it implements
33921    to always fail with ENOSYS.  Some functions are actually named
33922    something starting with __ and the normal name is an alias.  */
33923#if defined (__stub_dsyev) || defined (__stub___dsyev)
33924choke me
33925#else
33926char (*f) () = dsyev;
33927#endif
33928#ifdef __cplusplus
33929}
33930#endif
33931
33932#ifdef F77_DUMMY_MAIN
33933
33934#  ifdef __cplusplus
33935     extern "C"
33936#  endif
33937   int F77_DUMMY_MAIN() { return 1; }
33938
33939#endif
33940int
33941main ()
33942{
33943return f != dsyev;
33944  ;
33945  return 0;
33946}
33947_ACEOF
33948rm -f conftest.$ac_objext conftest$ac_exeext
33949if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33950  (eval $ac_link) 2>conftest.er1
33951  ac_status=$?
33952  grep -v '^ *+' conftest.er1 >conftest.err
33953  rm -f conftest.er1
33954  cat conftest.err >&5
33955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33956  (exit $ac_status); } &&
33957	 { ac_try='test -z "$ac_c_werror_flag"
33958			 || test ! -s conftest.err'
33959  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33960  (eval $ac_try) 2>&5
33961  ac_status=$?
33962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33963  (exit $ac_status); }; } &&
33964	 { ac_try='test -s conftest$ac_exeext'
33965  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33966  (eval $ac_try) 2>&5
33967  ac_status=$?
33968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
33969  (exit $ac_status); }; }; then
33970  ac_cv_func_dsyev=yes
33971else
33972  echo "$as_me: failed program was:" >&5
33973sed 's/^/| /' conftest.$ac_ext >&5
33974
33975ac_cv_func_dsyev=no
33976fi
33977rm -f conftest.err conftest.$ac_objext \
33978      conftest$ac_exeext conftest.$ac_ext
33979fi
33980echo "$as_me:$LINENO: result: $ac_cv_func_dsyev" >&5
33981echo "${ECHO_T}$ac_cv_func_dsyev" >&6
33982if test $ac_cv_func_dsyev = yes; then
33983  :
33984else
33985  { { echo "$as_me:$LINENO: error: user supplied LAPACK library \"$use_lapack\" does not work" >&5
33986echo "$as_me: error: user supplied LAPACK library \"$use_lapack\" does not work" >&2;}
33987   { (exit 1); exit 1; }; }
33988fi
33989
33990      ac_ext=cc
33991ac_cpp='$CXXCPP $CPPFLAGS'
33992ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33993ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33994ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33995
33996    fi
33997    LIBS="$coin_save_LIBS"
33998  fi
33999else
34000  if test x$coin_has_blas = xyes; then
34001    # First try to see if LAPACK is already available with BLAS library
34002    coin_save_LIBS="$LIBS"
34003    LIBS="$BLAS_LIBS $LIBS"
34004    if test "$F77" != unavailable; then
34005      coin_need_flibs=no
34006      echo "$as_me:$LINENO: checking whether LAPACK is already available with BLAS library" >&5
34007echo $ECHO_N "checking whether LAPACK is already available with BLAS library... $ECHO_C" >&6
34008      case $ac_ext in
34009  f)
34010    cat >conftest.$ac_ext <<_ACEOF
34011/* confdefs.h.  */
34012_ACEOF
34013cat confdefs.h >>conftest.$ac_ext
34014cat >>conftest.$ac_ext <<_ACEOF
34015/* end confdefs.h.  */
34016
34017#ifdef F77_DUMMY_MAIN
34018
34019#  ifdef __cplusplus
34020     extern "C"
34021#  endif
34022   int F77_DUMMY_MAIN() { return 1; }
34023
34024#endif
34025int
34026main ()
34027{
34028      call dsyev
34029  ;
34030  return 0;
34031}
34032_ACEOF
34033rm -f conftest.$ac_objext conftest$ac_exeext
34034if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34035  (eval $ac_link) 2>conftest.er1
34036  ac_status=$?
34037  grep -v '^ *+' conftest.er1 >conftest.err
34038  rm -f conftest.er1
34039  cat conftest.err >&5
34040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34041  (exit $ac_status); } &&
34042	 { ac_try='test -z "$ac_cxx_werror_flag"
34043			 || test ! -s conftest.err'
34044  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34045  (eval $ac_try) 2>&5
34046  ac_status=$?
34047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34048  (exit $ac_status); }; } &&
34049	 { ac_try='test -s conftest$ac_exeext'
34050  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34051  (eval $ac_try) 2>&5
34052  ac_status=$?
34053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34054  (exit $ac_status); }; }; then
34055  use_lapack="$BLAS_LIBS"
34056                         if test $coin_need_flibs = yes ; then
34057                           use_lapack="$use_lapack $FLIBS"
34058                         fi
34059                         echo "$as_me:$LINENO: result: yes: $use_lapack" >&5
34060echo "${ECHO_T}yes: $use_lapack" >&6
34061
34062else
34063  echo "$as_me: failed program was:" >&5
34064sed 's/^/| /' conftest.$ac_ext >&5
34065
34066echo "$as_me:$LINENO: result: no" >&5
34067echo "${ECHO_T}no" >&6
34068fi
34069rm -f conftest.err conftest.$ac_objext \
34070      conftest$ac_exeext conftest.$ac_ext
34071    ;;
34072  c)
34073    ac_ext=f
34074ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
34075ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34076ac_compiler_gnu=$ac_cv_f77_compiler_gnu
34077case $ac_cv_f77_mangling in
34078  upper*) ac_val="DSYEV" ;;
34079  lower*) ac_val="dsyev" ;;
34080  *)      ac_val="unknown" ;;
34081esac
34082case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
34083
34084cfuncdsyev="$ac_val"
34085
34086ac_ext=cc
34087ac_cpp='$CXXCPP $CPPFLAGS'
34088ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34089ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34090ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34091
34092    if test x"$coin_need_flibs" = xyes; then
34093      flink_try=no;
34094    else
34095      cat >conftest.$ac_ext <<_ACEOF
34096/* confdefs.h.  */
34097_ACEOF
34098cat confdefs.h >>conftest.$ac_ext
34099cat >>conftest.$ac_ext <<_ACEOF
34100/* end confdefs.h.  */
34101void $cfuncdsyev();
34102#ifdef F77_DUMMY_MAIN
34103
34104#  ifdef __cplusplus
34105     extern "C"
34106#  endif
34107   int F77_DUMMY_MAIN() { return 1; }
34108
34109#endif
34110int
34111main ()
34112{
34113$cfuncdsyev()
34114  ;
34115  return 0;
34116}
34117_ACEOF
34118rm -f conftest.$ac_objext conftest$ac_exeext
34119if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34120  (eval $ac_link) 2>conftest.er1
34121  ac_status=$?
34122  grep -v '^ *+' conftest.er1 >conftest.err
34123  rm -f conftest.er1
34124  cat conftest.err >&5
34125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34126  (exit $ac_status); } &&
34127	 { ac_try='test -z "$ac_cxx_werror_flag"
34128			 || test ! -s conftest.err'
34129  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34130  (eval $ac_try) 2>&5
34131  ac_status=$?
34132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34133  (exit $ac_status); }; } &&
34134	 { ac_try='test -s conftest$ac_exeext'
34135  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34136  (eval $ac_try) 2>&5
34137  ac_status=$?
34138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34139  (exit $ac_status); }; }; then
34140  flink_try=yes
34141else
34142  echo "$as_me: failed program was:" >&5
34143sed 's/^/| /' conftest.$ac_ext >&5
34144
34145flink_try=no
34146fi
34147rm -f conftest.err conftest.$ac_objext \
34148      conftest$ac_exeext conftest.$ac_ext
34149    fi
34150    if test $flink_try = yes; then
34151      use_lapack="$BLAS_LIBS"
34152                         if test $coin_need_flibs = yes ; then
34153                           use_lapack="$use_lapack $FLIBS"
34154                         fi
34155                         echo "$as_me:$LINENO: result: yes: $use_lapack" >&5
34156echo "${ECHO_T}yes: $use_lapack" >&6
34157
34158    else
34159      if test x"$FLIBS" != x; then
34160        flink_save_libs="$LIBS"
34161        LIBS="$LIBS $FLIBS"
34162        cat >conftest.$ac_ext <<_ACEOF
34163/* confdefs.h.  */
34164_ACEOF
34165cat confdefs.h >>conftest.$ac_ext
34166cat >>conftest.$ac_ext <<_ACEOF
34167/* end confdefs.h.  */
34168void $cfuncdsyev();
34169#ifdef F77_DUMMY_MAIN
34170
34171#  ifdef __cplusplus
34172     extern "C"
34173#  endif
34174   int F77_DUMMY_MAIN() { return 1; }
34175
34176#endif
34177int
34178main ()
34179{
34180$cfuncdsyev()
34181  ;
34182  return 0;
34183}
34184_ACEOF
34185rm -f conftest.$ac_objext conftest$ac_exeext
34186if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34187  (eval $ac_link) 2>conftest.er1
34188  ac_status=$?
34189  grep -v '^ *+' conftest.er1 >conftest.err
34190  rm -f conftest.er1
34191  cat conftest.err >&5
34192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34193  (exit $ac_status); } &&
34194	 { ac_try='test -z "$ac_cxx_werror_flag"
34195			 || test ! -s conftest.err'
34196  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34197  (eval $ac_try) 2>&5
34198  ac_status=$?
34199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34200  (exit $ac_status); }; } &&
34201	 { ac_try='test -s conftest$ac_exeext'
34202  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34203  (eval $ac_try) 2>&5
34204  ac_status=$?
34205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34206  (exit $ac_status); }; }; then
34207  LIBS="$flink_save_libs"
34208                     coin_need_flibs=yes
34209                     use_lapack="$BLAS_LIBS"
34210                         if test $coin_need_flibs = yes ; then
34211                           use_lapack="$use_lapack $FLIBS"
34212                         fi
34213                         echo "$as_me:$LINENO: result: yes: $use_lapack" >&5
34214echo "${ECHO_T}yes: $use_lapack" >&6
34215
34216
34217else
34218  echo "$as_me: failed program was:" >&5
34219sed 's/^/| /' conftest.$ac_ext >&5
34220
34221LIBS="$flink_save_libs"
34222                     echo "$as_me:$LINENO: result: no" >&5
34223echo "${ECHO_T}no" >&6
34224fi
34225rm -f conftest.err conftest.$ac_objext \
34226      conftest$ac_exeext conftest.$ac_ext
34227      else
34228        echo "$as_me:$LINENO: result: no" >&5
34229echo "${ECHO_T}no" >&6
34230      fi
34231    fi
34232    ;;
34233  cc|cpp)
34234    ac_ext=f
34235ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
34236ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34237ac_compiler_gnu=$ac_cv_f77_compiler_gnu
34238case $ac_cv_f77_mangling in
34239  upper*) ac_val="DSYEV" ;;
34240  lower*) ac_val="dsyev" ;;
34241  *)      ac_val="unknown" ;;
34242esac
34243case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
34244
34245cfuncdsyev="$ac_val"
34246
34247ac_ext=cc
34248ac_cpp='$CXXCPP $CPPFLAGS'
34249ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34250ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34251ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34252
34253    if test x"$coin_need_flibs" = xyes; then
34254      flink_try=no;
34255    else
34256      cat >conftest.$ac_ext <<_ACEOF
34257/* confdefs.h.  */
34258_ACEOF
34259cat confdefs.h >>conftest.$ac_ext
34260cat >>conftest.$ac_ext <<_ACEOF
34261/* end confdefs.h.  */
34262extern "C" {void $cfuncdsyev();}
34263#ifdef F77_DUMMY_MAIN
34264
34265#  ifdef __cplusplus
34266     extern "C"
34267#  endif
34268   int F77_DUMMY_MAIN() { return 1; }
34269
34270#endif
34271int
34272main ()
34273{
34274$cfuncdsyev()
34275  ;
34276  return 0;
34277}
34278_ACEOF
34279rm -f conftest.$ac_objext conftest$ac_exeext
34280if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34281  (eval $ac_link) 2>conftest.er1
34282  ac_status=$?
34283  grep -v '^ *+' conftest.er1 >conftest.err
34284  rm -f conftest.er1
34285  cat conftest.err >&5
34286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34287  (exit $ac_status); } &&
34288	 { ac_try='test -z "$ac_cxx_werror_flag"
34289			 || test ! -s conftest.err'
34290  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34291  (eval $ac_try) 2>&5
34292  ac_status=$?
34293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34294  (exit $ac_status); }; } &&
34295	 { ac_try='test -s conftest$ac_exeext'
34296  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34297  (eval $ac_try) 2>&5
34298  ac_status=$?
34299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34300  (exit $ac_status); }; }; then
34301  flink_try=yes
34302else
34303  echo "$as_me: failed program was:" >&5
34304sed 's/^/| /' conftest.$ac_ext >&5
34305
34306flink_try=no
34307fi
34308rm -f conftest.err conftest.$ac_objext \
34309      conftest$ac_exeext conftest.$ac_ext
34310    fi
34311    if test $flink_try = yes; then
34312      use_lapack="$BLAS_LIBS"
34313                         if test $coin_need_flibs = yes ; then
34314                           use_lapack="$use_lapack $FLIBS"
34315                         fi
34316                         echo "$as_me:$LINENO: result: yes: $use_lapack" >&5
34317echo "${ECHO_T}yes: $use_lapack" >&6
34318
34319    else
34320      if test x"$FLIBS" != x; then
34321        flink_save_libs="$LIBS"
34322        LIBS="$LIBS $FLIBS"
34323        cat >conftest.$ac_ext <<_ACEOF
34324/* confdefs.h.  */
34325_ACEOF
34326cat confdefs.h >>conftest.$ac_ext
34327cat >>conftest.$ac_ext <<_ACEOF
34328/* end confdefs.h.  */
34329extern "C" {void $cfuncdsyev();}
34330#ifdef F77_DUMMY_MAIN
34331
34332#  ifdef __cplusplus
34333     extern "C"
34334#  endif
34335   int F77_DUMMY_MAIN() { return 1; }
34336
34337#endif
34338int
34339main ()
34340{
34341$cfuncdsyev()
34342  ;
34343  return 0;
34344}
34345_ACEOF
34346rm -f conftest.$ac_objext conftest$ac_exeext
34347if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34348  (eval $ac_link) 2>conftest.er1
34349  ac_status=$?
34350  grep -v '^ *+' conftest.er1 >conftest.err
34351  rm -f conftest.er1
34352  cat conftest.err >&5
34353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34354  (exit $ac_status); } &&
34355	 { ac_try='test -z "$ac_cxx_werror_flag"
34356			 || test ! -s conftest.err'
34357  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34358  (eval $ac_try) 2>&5
34359  ac_status=$?
34360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34361  (exit $ac_status); }; } &&
34362	 { ac_try='test -s conftest$ac_exeext'
34363  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34364  (eval $ac_try) 2>&5
34365  ac_status=$?
34366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34367  (exit $ac_status); }; }; then
34368  LIBS="$flink_save_libs"
34369                     coin_need_flibs=yes
34370                     use_lapack="$BLAS_LIBS"
34371                         if test $coin_need_flibs = yes ; then
34372                           use_lapack="$use_lapack $FLIBS"
34373                         fi
34374                         echo "$as_me:$LINENO: result: yes: $use_lapack" >&5
34375echo "${ECHO_T}yes: $use_lapack" >&6
34376
34377
34378else
34379  echo "$as_me: failed program was:" >&5
34380sed 's/^/| /' conftest.$ac_ext >&5
34381
34382LIBS="$flink_save_libs"
34383                     echo "$as_me:$LINENO: result: no" >&5
34384echo "${ECHO_T}no" >&6
34385fi
34386rm -f conftest.err conftest.$ac_objext \
34387      conftest$ac_exeext conftest.$ac_ext
34388      else
34389        echo "$as_me:$LINENO: result: no" >&5
34390echo "${ECHO_T}no" >&6
34391      fi
34392    fi
34393    ;;
34394esac
34395
34396    else
34397      { echo "$as_me:$LINENO: checking whether LAPACK is already available with BLAS library" >&5
34398echo "$as_me: checking whether LAPACK is already available with BLAS library" >&6;}
34399      ac_ext=c
34400ac_cpp='$CPP $CPPFLAGS'
34401ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34402ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34403ac_compiler_gnu=$ac_cv_c_compiler_gnu
34404
34405      echo "$as_me:$LINENO: checking for dsyev" >&5
34406echo $ECHO_N "checking for dsyev... $ECHO_C" >&6
34407if test "${ac_cv_func_dsyev+set}" = set; then
34408  echo $ECHO_N "(cached) $ECHO_C" >&6
34409else
34410  cat >conftest.$ac_ext <<_ACEOF
34411/* confdefs.h.  */
34412_ACEOF
34413cat confdefs.h >>conftest.$ac_ext
34414cat >>conftest.$ac_ext <<_ACEOF
34415/* end confdefs.h.  */
34416/* Define dsyev to an innocuous variant, in case <limits.h> declares dsyev.
34417   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34418#define dsyev innocuous_dsyev
34419
34420/* System header to define __stub macros and hopefully few prototypes,
34421    which can conflict with char dsyev (); below.
34422    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34423    <limits.h> exists even on freestanding compilers.  */
34424
34425#ifdef __STDC__
34426# include <limits.h>
34427#else
34428# include <assert.h>
34429#endif
34430
34431#undef dsyev
34432
34433/* Override any gcc2 internal prototype to avoid an error.  */
34434#ifdef __cplusplus
34435extern "C"
34436{
34437#endif
34438/* We use char because int might match the return type of a gcc2
34439   builtin and then its argument prototype would still apply.  */
34440char dsyev ();
34441/* The GNU C library defines this for functions which it implements
34442    to always fail with ENOSYS.  Some functions are actually named
34443    something starting with __ and the normal name is an alias.  */
34444#if defined (__stub_dsyev) || defined (__stub___dsyev)
34445choke me
34446#else
34447char (*f) () = dsyev;
34448#endif
34449#ifdef __cplusplus
34450}
34451#endif
34452
34453#ifdef F77_DUMMY_MAIN
34454
34455#  ifdef __cplusplus
34456     extern "C"
34457#  endif
34458   int F77_DUMMY_MAIN() { return 1; }
34459
34460#endif
34461int
34462main ()
34463{
34464return f != dsyev;
34465  ;
34466  return 0;
34467}
34468_ACEOF
34469rm -f conftest.$ac_objext conftest$ac_exeext
34470if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34471  (eval $ac_link) 2>conftest.er1
34472  ac_status=$?
34473  grep -v '^ *+' conftest.er1 >conftest.err
34474  rm -f conftest.er1
34475  cat conftest.err >&5
34476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34477  (exit $ac_status); } &&
34478	 { ac_try='test -z "$ac_c_werror_flag"
34479			 || test ! -s conftest.err'
34480  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34481  (eval $ac_try) 2>&5
34482  ac_status=$?
34483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34484  (exit $ac_status); }; } &&
34485	 { ac_try='test -s conftest$ac_exeext'
34486  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34487  (eval $ac_try) 2>&5
34488  ac_status=$?
34489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34490  (exit $ac_status); }; }; then
34491  ac_cv_func_dsyev=yes
34492else
34493  echo "$as_me: failed program was:" >&5
34494sed 's/^/| /' conftest.$ac_ext >&5
34495
34496ac_cv_func_dsyev=no
34497fi
34498rm -f conftest.err conftest.$ac_objext \
34499      conftest$ac_exeext conftest.$ac_ext
34500fi
34501echo "$as_me:$LINENO: result: $ac_cv_func_dsyev" >&5
34502echo "${ECHO_T}$ac_cv_func_dsyev" >&6
34503if test $ac_cv_func_dsyev = yes; then
34504  use_lapack="$BLAS_LIBS"
34505fi
34506
34507      ac_ext=cc
34508ac_cpp='$CXXCPP $CPPFLAGS'
34509ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34510ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34511ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34512
34513    fi
34514    LIBS="$coin_save_LIBS"
34515  fi
34516  if test -z "$use_lapack"; then
34517    # Try to autodetect the library for lapack based on build system
34518    case $build in
34519      # TODO: Is this check actually needed here, since -lcomplib.sigmath should have been recognized as Blas library,
34520      #       and above it is checked whether the Blas library already contains Lapack
34521      *-sgi-*)
34522        echo "$as_me:$LINENO: checking whether -lcomplib.sgimath has LAPACK" >&5
34523echo $ECHO_N "checking whether -lcomplib.sgimath has LAPACK... $ECHO_C" >&6
34524        coin_save_LIBS="$LIBS"
34525        coin_need_flibs=no
34526        LIBS="-lcomplib.sgimath $BLAS_LIBS $LIBS"
34527        case $ac_ext in
34528  f)
34529    cat >conftest.$ac_ext <<_ACEOF
34530/* confdefs.h.  */
34531_ACEOF
34532cat confdefs.h >>conftest.$ac_ext
34533cat >>conftest.$ac_ext <<_ACEOF
34534/* end confdefs.h.  */
34535
34536#ifdef F77_DUMMY_MAIN
34537
34538#  ifdef __cplusplus
34539     extern "C"
34540#  endif
34541   int F77_DUMMY_MAIN() { return 1; }
34542
34543#endif
34544int
34545main ()
34546{
34547      call dsyev
34548  ;
34549  return 0;
34550}
34551_ACEOF
34552rm -f conftest.$ac_objext conftest$ac_exeext
34553if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34554  (eval $ac_link) 2>conftest.er1
34555  ac_status=$?
34556  grep -v '^ *+' conftest.er1 >conftest.err
34557  rm -f conftest.er1
34558  cat conftest.err >&5
34559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34560  (exit $ac_status); } &&
34561	 { ac_try='test -z "$ac_cxx_werror_flag"
34562			 || test ! -s conftest.err'
34563  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34564  (eval $ac_try) 2>&5
34565  ac_status=$?
34566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34567  (exit $ac_status); }; } &&
34568	 { ac_try='test -s conftest$ac_exeext'
34569  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34570  (eval $ac_try) 2>&5
34571  ac_status=$?
34572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34573  (exit $ac_status); }; }; then
34574  use_lapack="-lcomplib.sgimath $BLAS_LIBS"
34575                           if test $coin_need_flibs = yes ; then
34576                             use_lapack="$use_lapack $FLIBS"
34577                           fi
34578                           echo "$as_me:$LINENO: result: yes: $use_lapack" >&5
34579echo "${ECHO_T}yes: $use_lapack" >&6
34580
34581else
34582  echo "$as_me: failed program was:" >&5
34583sed 's/^/| /' conftest.$ac_ext >&5
34584
34585echo "$as_me:$LINENO: result: no" >&5
34586echo "${ECHO_T}no" >&6
34587fi
34588rm -f conftest.err conftest.$ac_objext \
34589      conftest$ac_exeext conftest.$ac_ext
34590    ;;
34591  c)
34592    ac_ext=f
34593ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
34594ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34595ac_compiler_gnu=$ac_cv_f77_compiler_gnu
34596case $ac_cv_f77_mangling in
34597  upper*) ac_val="DSYEV" ;;
34598  lower*) ac_val="dsyev" ;;
34599  *)      ac_val="unknown" ;;
34600esac
34601case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
34602
34603cfuncdsyev="$ac_val"
34604
34605ac_ext=cc
34606ac_cpp='$CXXCPP $CPPFLAGS'
34607ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34608ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34609ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34610
34611    if test x"$coin_need_flibs" = xyes; then
34612      flink_try=no;
34613    else
34614      cat >conftest.$ac_ext <<_ACEOF
34615/* confdefs.h.  */
34616_ACEOF
34617cat confdefs.h >>conftest.$ac_ext
34618cat >>conftest.$ac_ext <<_ACEOF
34619/* end confdefs.h.  */
34620void $cfuncdsyev();
34621#ifdef F77_DUMMY_MAIN
34622
34623#  ifdef __cplusplus
34624     extern "C"
34625#  endif
34626   int F77_DUMMY_MAIN() { return 1; }
34627
34628#endif
34629int
34630main ()
34631{
34632$cfuncdsyev()
34633  ;
34634  return 0;
34635}
34636_ACEOF
34637rm -f conftest.$ac_objext conftest$ac_exeext
34638if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34639  (eval $ac_link) 2>conftest.er1
34640  ac_status=$?
34641  grep -v '^ *+' conftest.er1 >conftest.err
34642  rm -f conftest.er1
34643  cat conftest.err >&5
34644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34645  (exit $ac_status); } &&
34646	 { ac_try='test -z "$ac_cxx_werror_flag"
34647			 || test ! -s conftest.err'
34648  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34649  (eval $ac_try) 2>&5
34650  ac_status=$?
34651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34652  (exit $ac_status); }; } &&
34653	 { ac_try='test -s conftest$ac_exeext'
34654  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34655  (eval $ac_try) 2>&5
34656  ac_status=$?
34657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34658  (exit $ac_status); }; }; then
34659  flink_try=yes
34660else
34661  echo "$as_me: failed program was:" >&5
34662sed 's/^/| /' conftest.$ac_ext >&5
34663
34664flink_try=no
34665fi
34666rm -f conftest.err conftest.$ac_objext \
34667      conftest$ac_exeext conftest.$ac_ext
34668    fi
34669    if test $flink_try = yes; then
34670      use_lapack="-lcomplib.sgimath $BLAS_LIBS"
34671                           if test $coin_need_flibs = yes ; then
34672                             use_lapack="$use_lapack $FLIBS"
34673                           fi
34674                           echo "$as_me:$LINENO: result: yes: $use_lapack" >&5
34675echo "${ECHO_T}yes: $use_lapack" >&6
34676
34677    else
34678      if test x"$FLIBS" != x; then
34679        flink_save_libs="$LIBS"
34680        LIBS="$LIBS $FLIBS"
34681        cat >conftest.$ac_ext <<_ACEOF
34682/* confdefs.h.  */
34683_ACEOF
34684cat confdefs.h >>conftest.$ac_ext
34685cat >>conftest.$ac_ext <<_ACEOF
34686/* end confdefs.h.  */
34687void $cfuncdsyev();
34688#ifdef F77_DUMMY_MAIN
34689
34690#  ifdef __cplusplus
34691     extern "C"
34692#  endif
34693   int F77_DUMMY_MAIN() { return 1; }
34694
34695#endif
34696int
34697main ()
34698{
34699$cfuncdsyev()
34700  ;
34701  return 0;
34702}
34703_ACEOF
34704rm -f conftest.$ac_objext conftest$ac_exeext
34705if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34706  (eval $ac_link) 2>conftest.er1
34707  ac_status=$?
34708  grep -v '^ *+' conftest.er1 >conftest.err
34709  rm -f conftest.er1
34710  cat conftest.err >&5
34711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34712  (exit $ac_status); } &&
34713	 { ac_try='test -z "$ac_cxx_werror_flag"
34714			 || test ! -s conftest.err'
34715  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34716  (eval $ac_try) 2>&5
34717  ac_status=$?
34718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34719  (exit $ac_status); }; } &&
34720	 { ac_try='test -s conftest$ac_exeext'
34721  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34722  (eval $ac_try) 2>&5
34723  ac_status=$?
34724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34725  (exit $ac_status); }; }; then
34726  LIBS="$flink_save_libs"
34727                     coin_need_flibs=yes
34728                     use_lapack="-lcomplib.sgimath $BLAS_LIBS"
34729                           if test $coin_need_flibs = yes ; then
34730                             use_lapack="$use_lapack $FLIBS"
34731                           fi
34732                           echo "$as_me:$LINENO: result: yes: $use_lapack" >&5
34733echo "${ECHO_T}yes: $use_lapack" >&6
34734
34735
34736else
34737  echo "$as_me: failed program was:" >&5
34738sed 's/^/| /' conftest.$ac_ext >&5
34739
34740LIBS="$flink_save_libs"
34741                     echo "$as_me:$LINENO: result: no" >&5
34742echo "${ECHO_T}no" >&6
34743fi
34744rm -f conftest.err conftest.$ac_objext \
34745      conftest$ac_exeext conftest.$ac_ext
34746      else
34747        echo "$as_me:$LINENO: result: no" >&5
34748echo "${ECHO_T}no" >&6
34749      fi
34750    fi
34751    ;;
34752  cc|cpp)
34753    ac_ext=f
34754ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
34755ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34756ac_compiler_gnu=$ac_cv_f77_compiler_gnu
34757case $ac_cv_f77_mangling in
34758  upper*) ac_val="DSYEV" ;;
34759  lower*) ac_val="dsyev" ;;
34760  *)      ac_val="unknown" ;;
34761esac
34762case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
34763
34764cfuncdsyev="$ac_val"
34765
34766ac_ext=cc
34767ac_cpp='$CXXCPP $CPPFLAGS'
34768ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34769ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34770ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34771
34772    if test x"$coin_need_flibs" = xyes; then
34773      flink_try=no;
34774    else
34775      cat >conftest.$ac_ext <<_ACEOF
34776/* confdefs.h.  */
34777_ACEOF
34778cat confdefs.h >>conftest.$ac_ext
34779cat >>conftest.$ac_ext <<_ACEOF
34780/* end confdefs.h.  */
34781extern "C" {void $cfuncdsyev();}
34782#ifdef F77_DUMMY_MAIN
34783
34784#  ifdef __cplusplus
34785     extern "C"
34786#  endif
34787   int F77_DUMMY_MAIN() { return 1; }
34788
34789#endif
34790int
34791main ()
34792{
34793$cfuncdsyev()
34794  ;
34795  return 0;
34796}
34797_ACEOF
34798rm -f conftest.$ac_objext conftest$ac_exeext
34799if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34800  (eval $ac_link) 2>conftest.er1
34801  ac_status=$?
34802  grep -v '^ *+' conftest.er1 >conftest.err
34803  rm -f conftest.er1
34804  cat conftest.err >&5
34805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34806  (exit $ac_status); } &&
34807	 { ac_try='test -z "$ac_cxx_werror_flag"
34808			 || test ! -s conftest.err'
34809  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34810  (eval $ac_try) 2>&5
34811  ac_status=$?
34812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34813  (exit $ac_status); }; } &&
34814	 { ac_try='test -s conftest$ac_exeext'
34815  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34816  (eval $ac_try) 2>&5
34817  ac_status=$?
34818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34819  (exit $ac_status); }; }; then
34820  flink_try=yes
34821else
34822  echo "$as_me: failed program was:" >&5
34823sed 's/^/| /' conftest.$ac_ext >&5
34824
34825flink_try=no
34826fi
34827rm -f conftest.err conftest.$ac_objext \
34828      conftest$ac_exeext conftest.$ac_ext
34829    fi
34830    if test $flink_try = yes; then
34831      use_lapack="-lcomplib.sgimath $BLAS_LIBS"
34832                           if test $coin_need_flibs = yes ; then
34833                             use_lapack="$use_lapack $FLIBS"
34834                           fi
34835                           echo "$as_me:$LINENO: result: yes: $use_lapack" >&5
34836echo "${ECHO_T}yes: $use_lapack" >&6
34837
34838    else
34839      if test x"$FLIBS" != x; then
34840        flink_save_libs="$LIBS"
34841        LIBS="$LIBS $FLIBS"
34842        cat >conftest.$ac_ext <<_ACEOF
34843/* confdefs.h.  */
34844_ACEOF
34845cat confdefs.h >>conftest.$ac_ext
34846cat >>conftest.$ac_ext <<_ACEOF
34847/* end confdefs.h.  */
34848extern "C" {void $cfuncdsyev();}
34849#ifdef F77_DUMMY_MAIN
34850
34851#  ifdef __cplusplus
34852     extern "C"
34853#  endif
34854   int F77_DUMMY_MAIN() { return 1; }
34855
34856#endif
34857int
34858main ()
34859{
34860$cfuncdsyev()
34861  ;
34862  return 0;
34863}
34864_ACEOF
34865rm -f conftest.$ac_objext conftest$ac_exeext
34866if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34867  (eval $ac_link) 2>conftest.er1
34868  ac_status=$?
34869  grep -v '^ *+' conftest.er1 >conftest.err
34870  rm -f conftest.er1
34871  cat conftest.err >&5
34872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34873  (exit $ac_status); } &&
34874	 { ac_try='test -z "$ac_cxx_werror_flag"
34875			 || test ! -s conftest.err'
34876  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34877  (eval $ac_try) 2>&5
34878  ac_status=$?
34879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34880  (exit $ac_status); }; } &&
34881	 { ac_try='test -s conftest$ac_exeext'
34882  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34883  (eval $ac_try) 2>&5
34884  ac_status=$?
34885  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34886  (exit $ac_status); }; }; then
34887  LIBS="$flink_save_libs"
34888                     coin_need_flibs=yes
34889                     use_lapack="-lcomplib.sgimath $BLAS_LIBS"
34890                           if test $coin_need_flibs = yes ; then
34891                             use_lapack="$use_lapack $FLIBS"
34892                           fi
34893                           echo "$as_me:$LINENO: result: yes: $use_lapack" >&5
34894echo "${ECHO_T}yes: $use_lapack" >&6
34895
34896
34897else
34898  echo "$as_me: failed program was:" >&5
34899sed 's/^/| /' conftest.$ac_ext >&5
34900
34901LIBS="$flink_save_libs"
34902                     echo "$as_me:$LINENO: result: no" >&5
34903echo "${ECHO_T}no" >&6
34904fi
34905rm -f conftest.err conftest.$ac_objext \
34906      conftest$ac_exeext conftest.$ac_ext
34907      else
34908        echo "$as_me:$LINENO: result: no" >&5
34909echo "${ECHO_T}no" >&6
34910      fi
34911    fi
34912    ;;
34913esac
34914
34915        LIBS="$coin_save_LIBS"
34916        ;;
34917
34918      # See comments in COIN_CHECK_PACKAGE_BLAS.
34919      # TODO: Is this check actually needed here, since -lsunperf should have been recognized as Blas library,
34920      #       and above it is checked whether the Blas library already contains Lapack
34921      *-*-solaris*)
34922        echo "$as_me:$LINENO: checking for LAPACK in libsunperf" >&5
34923echo $ECHO_N "checking for LAPACK in libsunperf... $ECHO_C" >&6
34924        coin_need_flibs=no
34925        coin_save_LIBS="$LIBS"
34926        LIBS="-lsunperf $BLAS_LIBS $FLIBS $LIBS"
34927        case $ac_ext in
34928  f)
34929    cat >conftest.$ac_ext <<_ACEOF
34930/* confdefs.h.  */
34931_ACEOF
34932cat confdefs.h >>conftest.$ac_ext
34933cat >>conftest.$ac_ext <<_ACEOF
34934/* end confdefs.h.  */
34935
34936#ifdef F77_DUMMY_MAIN
34937
34938#  ifdef __cplusplus
34939     extern "C"
34940#  endif
34941   int F77_DUMMY_MAIN() { return 1; }
34942
34943#endif
34944int
34945main ()
34946{
34947      call dsyev
34948  ;
34949  return 0;
34950}
34951_ACEOF
34952rm -f conftest.$ac_objext conftest$ac_exeext
34953if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34954  (eval $ac_link) 2>conftest.er1
34955  ac_status=$?
34956  grep -v '^ *+' conftest.er1 >conftest.err
34957  rm -f conftest.er1
34958  cat conftest.err >&5
34959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34960  (exit $ac_status); } &&
34961	 { ac_try='test -z "$ac_cxx_werror_flag"
34962			 || test ! -s conftest.err'
34963  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34964  (eval $ac_try) 2>&5
34965  ac_status=$?
34966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34967  (exit $ac_status); }; } &&
34968	 { ac_try='test -s conftest$ac_exeext'
34969  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34970  (eval $ac_try) 2>&5
34971  ac_status=$?
34972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
34973  (exit $ac_status); }; }; then
34974  use_lapack='-lsunperf $BLAS_LIBS'
34975                           if test $coin_need_flibs = yes ; then
34976                             use_lapack="$use_lapack $FLIBS"
34977                           fi
34978                           echo "$as_me:$LINENO: result: yes: $use_lapack" >&5
34979echo "${ECHO_T}yes: $use_lapack" >&6
34980
34981else
34982  echo "$as_me: failed program was:" >&5
34983sed 's/^/| /' conftest.$ac_ext >&5
34984
34985echo "$as_me:$LINENO: result: no" >&5
34986echo "${ECHO_T}no" >&6
34987fi
34988rm -f conftest.err conftest.$ac_objext \
34989      conftest$ac_exeext conftest.$ac_ext
34990    ;;
34991  c)
34992    ac_ext=f
34993ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
34994ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34995ac_compiler_gnu=$ac_cv_f77_compiler_gnu
34996case $ac_cv_f77_mangling in
34997  upper*) ac_val="DSYEV" ;;
34998  lower*) ac_val="dsyev" ;;
34999  *)      ac_val="unknown" ;;
35000esac
35001case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
35002
35003cfuncdsyev="$ac_val"
35004
35005ac_ext=cc
35006ac_cpp='$CXXCPP $CPPFLAGS'
35007ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35008ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35009ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35010
35011    if test x"$coin_need_flibs" = xyes; then
35012      flink_try=no;
35013    else
35014      cat >conftest.$ac_ext <<_ACEOF
35015/* confdefs.h.  */
35016_ACEOF
35017cat confdefs.h >>conftest.$ac_ext
35018cat >>conftest.$ac_ext <<_ACEOF
35019/* end confdefs.h.  */
35020void $cfuncdsyev();
35021#ifdef F77_DUMMY_MAIN
35022
35023#  ifdef __cplusplus
35024     extern "C"
35025#  endif
35026   int F77_DUMMY_MAIN() { return 1; }
35027
35028#endif
35029int
35030main ()
35031{
35032$cfuncdsyev()
35033  ;
35034  return 0;
35035}
35036_ACEOF
35037rm -f conftest.$ac_objext conftest$ac_exeext
35038if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35039  (eval $ac_link) 2>conftest.er1
35040  ac_status=$?
35041  grep -v '^ *+' conftest.er1 >conftest.err
35042  rm -f conftest.er1
35043  cat conftest.err >&5
35044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35045  (exit $ac_status); } &&
35046	 { ac_try='test -z "$ac_cxx_werror_flag"
35047			 || test ! -s conftest.err'
35048  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35049  (eval $ac_try) 2>&5
35050  ac_status=$?
35051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35052  (exit $ac_status); }; } &&
35053	 { ac_try='test -s conftest$ac_exeext'
35054  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35055  (eval $ac_try) 2>&5
35056  ac_status=$?
35057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35058  (exit $ac_status); }; }; then
35059  flink_try=yes
35060else
35061  echo "$as_me: failed program was:" >&5
35062sed 's/^/| /' conftest.$ac_ext >&5
35063
35064flink_try=no
35065fi
35066rm -f conftest.err conftest.$ac_objext \
35067      conftest$ac_exeext conftest.$ac_ext
35068    fi
35069    if test $flink_try = yes; then
35070      use_lapack='-lsunperf $BLAS_LIBS'
35071                           if test $coin_need_flibs = yes ; then
35072                             use_lapack="$use_lapack $FLIBS"
35073                           fi
35074                           echo "$as_me:$LINENO: result: yes: $use_lapack" >&5
35075echo "${ECHO_T}yes: $use_lapack" >&6
35076
35077    else
35078      if test x"$FLIBS" != x; then
35079        flink_save_libs="$LIBS"
35080        LIBS="$LIBS $FLIBS"
35081        cat >conftest.$ac_ext <<_ACEOF
35082/* confdefs.h.  */
35083_ACEOF
35084cat confdefs.h >>conftest.$ac_ext
35085cat >>conftest.$ac_ext <<_ACEOF
35086/* end confdefs.h.  */
35087void $cfuncdsyev();
35088#ifdef F77_DUMMY_MAIN
35089
35090#  ifdef __cplusplus
35091     extern "C"
35092#  endif
35093   int F77_DUMMY_MAIN() { return 1; }
35094
35095#endif
35096int
35097main ()
35098{
35099$cfuncdsyev()
35100  ;
35101  return 0;
35102}
35103_ACEOF
35104rm -f conftest.$ac_objext conftest$ac_exeext
35105if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35106  (eval $ac_link) 2>conftest.er1
35107  ac_status=$?
35108  grep -v '^ *+' conftest.er1 >conftest.err
35109  rm -f conftest.er1
35110  cat conftest.err >&5
35111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35112  (exit $ac_status); } &&
35113	 { ac_try='test -z "$ac_cxx_werror_flag"
35114			 || test ! -s conftest.err'
35115  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35116  (eval $ac_try) 2>&5
35117  ac_status=$?
35118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35119  (exit $ac_status); }; } &&
35120	 { ac_try='test -s conftest$ac_exeext'
35121  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35122  (eval $ac_try) 2>&5
35123  ac_status=$?
35124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35125  (exit $ac_status); }; }; then
35126  LIBS="$flink_save_libs"
35127                     coin_need_flibs=yes
35128                     use_lapack='-lsunperf $BLAS_LIBS'
35129                           if test $coin_need_flibs = yes ; then
35130                             use_lapack="$use_lapack $FLIBS"
35131                           fi
35132                           echo "$as_me:$LINENO: result: yes: $use_lapack" >&5
35133echo "${ECHO_T}yes: $use_lapack" >&6
35134
35135
35136else
35137  echo "$as_me: failed program was:" >&5
35138sed 's/^/| /' conftest.$ac_ext >&5
35139
35140LIBS="$flink_save_libs"
35141                     echo "$as_me:$LINENO: result: no" >&5
35142echo "${ECHO_T}no" >&6
35143fi
35144rm -f conftest.err conftest.$ac_objext \
35145      conftest$ac_exeext conftest.$ac_ext
35146      else
35147        echo "$as_me:$LINENO: result: no" >&5
35148echo "${ECHO_T}no" >&6
35149      fi
35150    fi
35151    ;;
35152  cc|cpp)
35153    ac_ext=f
35154ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
35155ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35156ac_compiler_gnu=$ac_cv_f77_compiler_gnu
35157case $ac_cv_f77_mangling in
35158  upper*) ac_val="DSYEV" ;;
35159  lower*) ac_val="dsyev" ;;
35160  *)      ac_val="unknown" ;;
35161esac
35162case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
35163
35164cfuncdsyev="$ac_val"
35165
35166ac_ext=cc
35167ac_cpp='$CXXCPP $CPPFLAGS'
35168ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35169ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35170ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35171
35172    if test x"$coin_need_flibs" = xyes; then
35173      flink_try=no;
35174    else
35175      cat >conftest.$ac_ext <<_ACEOF
35176/* confdefs.h.  */
35177_ACEOF
35178cat confdefs.h >>conftest.$ac_ext
35179cat >>conftest.$ac_ext <<_ACEOF
35180/* end confdefs.h.  */
35181extern "C" {void $cfuncdsyev();}
35182#ifdef F77_DUMMY_MAIN
35183
35184#  ifdef __cplusplus
35185     extern "C"
35186#  endif
35187   int F77_DUMMY_MAIN() { return 1; }
35188
35189#endif
35190int
35191main ()
35192{
35193$cfuncdsyev()
35194  ;
35195  return 0;
35196}
35197_ACEOF
35198rm -f conftest.$ac_objext conftest$ac_exeext
35199if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35200  (eval $ac_link) 2>conftest.er1
35201  ac_status=$?
35202  grep -v '^ *+' conftest.er1 >conftest.err
35203  rm -f conftest.er1
35204  cat conftest.err >&5
35205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35206  (exit $ac_status); } &&
35207	 { ac_try='test -z "$ac_cxx_werror_flag"
35208			 || test ! -s conftest.err'
35209  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35210  (eval $ac_try) 2>&5
35211  ac_status=$?
35212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35213  (exit $ac_status); }; } &&
35214	 { ac_try='test -s conftest$ac_exeext'
35215  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35216  (eval $ac_try) 2>&5
35217  ac_status=$?
35218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35219  (exit $ac_status); }; }; then
35220  flink_try=yes
35221else
35222  echo "$as_me: failed program was:" >&5
35223sed 's/^/| /' conftest.$ac_ext >&5
35224
35225flink_try=no
35226fi
35227rm -f conftest.err conftest.$ac_objext \
35228      conftest$ac_exeext conftest.$ac_ext
35229    fi
35230    if test $flink_try = yes; then
35231      use_lapack='-lsunperf $BLAS_LIBS'
35232                           if test $coin_need_flibs = yes ; then
35233                             use_lapack="$use_lapack $FLIBS"
35234                           fi
35235                           echo "$as_me:$LINENO: result: yes: $use_lapack" >&5
35236echo "${ECHO_T}yes: $use_lapack" >&6
35237
35238    else
35239      if test x"$FLIBS" != x; then
35240        flink_save_libs="$LIBS"
35241        LIBS="$LIBS $FLIBS"
35242        cat >conftest.$ac_ext <<_ACEOF
35243/* confdefs.h.  */
35244_ACEOF
35245cat confdefs.h >>conftest.$ac_ext
35246cat >>conftest.$ac_ext <<_ACEOF
35247/* end confdefs.h.  */
35248extern "C" {void $cfuncdsyev();}
35249#ifdef F77_DUMMY_MAIN
35250
35251#  ifdef __cplusplus
35252     extern "C"
35253#  endif
35254   int F77_DUMMY_MAIN() { return 1; }
35255
35256#endif
35257int
35258main ()
35259{
35260$cfuncdsyev()
35261  ;
35262  return 0;
35263}
35264_ACEOF
35265rm -f conftest.$ac_objext conftest$ac_exeext
35266if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35267  (eval $ac_link) 2>conftest.er1
35268  ac_status=$?
35269  grep -v '^ *+' conftest.er1 >conftest.err
35270  rm -f conftest.er1
35271  cat conftest.err >&5
35272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35273  (exit $ac_status); } &&
35274	 { ac_try='test -z "$ac_cxx_werror_flag"
35275			 || test ! -s conftest.err'
35276  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35277  (eval $ac_try) 2>&5
35278  ac_status=$?
35279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35280  (exit $ac_status); }; } &&
35281	 { ac_try='test -s conftest$ac_exeext'
35282  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35283  (eval $ac_try) 2>&5
35284  ac_status=$?
35285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35286  (exit $ac_status); }; }; then
35287  LIBS="$flink_save_libs"
35288                     coin_need_flibs=yes
35289                     use_lapack='-lsunperf $BLAS_LIBS'
35290                           if test $coin_need_flibs = yes ; then
35291                             use_lapack="$use_lapack $FLIBS"
35292                           fi
35293                           echo "$as_me:$LINENO: result: yes: $use_lapack" >&5
35294echo "${ECHO_T}yes: $use_lapack" >&6
35295
35296
35297else
35298  echo "$as_me: failed program was:" >&5
35299sed 's/^/| /' conftest.$ac_ext >&5
35300
35301LIBS="$flink_save_libs"
35302                     echo "$as_me:$LINENO: result: no" >&5
35303echo "${ECHO_T}no" >&6
35304fi
35305rm -f conftest.err conftest.$ac_objext \
35306      conftest$ac_exeext conftest.$ac_ext
35307      else
35308        echo "$as_me:$LINENO: result: no" >&5
35309echo "${ECHO_T}no" >&6
35310      fi
35311    fi
35312    ;;
35313esac
35314
35315        LIBS="$coin_save_LIBS"
35316        ;;
35317        # On cygwin, do this check only if doscompile is disabled. The prebuilt library
35318        # will want to link with cygwin, hence won't run standalone in DOS.
35319    esac
35320  fi
35321
35322  if test -z "$use_lapack" ; then
35323    echo "$as_me:$LINENO: checking whether -llapack has LAPACK" >&5
35324echo $ECHO_N "checking whether -llapack has LAPACK... $ECHO_C" >&6
35325    coin_need_flibs=no
35326    coin_save_LIBS="$LIBS"
35327    LIBS="-llapack $BLAS_LIBS $LIBS"
35328    case $ac_ext in
35329  f)
35330    cat >conftest.$ac_ext <<_ACEOF
35331/* confdefs.h.  */
35332_ACEOF
35333cat confdefs.h >>conftest.$ac_ext
35334cat >>conftest.$ac_ext <<_ACEOF
35335/* end confdefs.h.  */
35336
35337#ifdef F77_DUMMY_MAIN
35338
35339#  ifdef __cplusplus
35340     extern "C"
35341#  endif
35342   int F77_DUMMY_MAIN() { return 1; }
35343
35344#endif
35345int
35346main ()
35347{
35348      call dsyev
35349  ;
35350  return 0;
35351}
35352_ACEOF
35353rm -f conftest.$ac_objext conftest$ac_exeext
35354if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35355  (eval $ac_link) 2>conftest.er1
35356  ac_status=$?
35357  grep -v '^ *+' conftest.er1 >conftest.err
35358  rm -f conftest.er1
35359  cat conftest.err >&5
35360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35361  (exit $ac_status); } &&
35362	 { ac_try='test -z "$ac_cxx_werror_flag"
35363			 || test ! -s conftest.err'
35364  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35365  (eval $ac_try) 2>&5
35366  ac_status=$?
35367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35368  (exit $ac_status); }; } &&
35369	 { ac_try='test -s conftest$ac_exeext'
35370  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35371  (eval $ac_try) 2>&5
35372  ac_status=$?
35373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35374  (exit $ac_status); }; }; then
35375  use_lapack='-llapack'
35376                       if test $coin_need_flibs = yes ; then
35377                         use_lapack="$use_lapack $FLIBS"
35378                       fi
35379                       echo "$as_me:$LINENO: result: yes: $use_lapack" >&5
35380echo "${ECHO_T}yes: $use_lapack" >&6
35381
35382else
35383  echo "$as_me: failed program was:" >&5
35384sed 's/^/| /' conftest.$ac_ext >&5
35385
35386echo "$as_me:$LINENO: result: no" >&5
35387echo "${ECHO_T}no" >&6
35388fi
35389rm -f conftest.err conftest.$ac_objext \
35390      conftest$ac_exeext conftest.$ac_ext
35391    ;;
35392  c)
35393    ac_ext=f
35394ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
35395ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35396ac_compiler_gnu=$ac_cv_f77_compiler_gnu
35397case $ac_cv_f77_mangling in
35398  upper*) ac_val="DSYEV" ;;
35399  lower*) ac_val="dsyev" ;;
35400  *)      ac_val="unknown" ;;
35401esac
35402case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
35403
35404cfuncdsyev="$ac_val"
35405
35406ac_ext=cc
35407ac_cpp='$CXXCPP $CPPFLAGS'
35408ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35409ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35410ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35411
35412    if test x"$coin_need_flibs" = xyes; then
35413      flink_try=no;
35414    else
35415      cat >conftest.$ac_ext <<_ACEOF
35416/* confdefs.h.  */
35417_ACEOF
35418cat confdefs.h >>conftest.$ac_ext
35419cat >>conftest.$ac_ext <<_ACEOF
35420/* end confdefs.h.  */
35421void $cfuncdsyev();
35422#ifdef F77_DUMMY_MAIN
35423
35424#  ifdef __cplusplus
35425     extern "C"
35426#  endif
35427   int F77_DUMMY_MAIN() { return 1; }
35428
35429#endif
35430int
35431main ()
35432{
35433$cfuncdsyev()
35434  ;
35435  return 0;
35436}
35437_ACEOF
35438rm -f conftest.$ac_objext conftest$ac_exeext
35439if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35440  (eval $ac_link) 2>conftest.er1
35441  ac_status=$?
35442  grep -v '^ *+' conftest.er1 >conftest.err
35443  rm -f conftest.er1
35444  cat conftest.err >&5
35445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35446  (exit $ac_status); } &&
35447	 { ac_try='test -z "$ac_cxx_werror_flag"
35448			 || test ! -s conftest.err'
35449  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35450  (eval $ac_try) 2>&5
35451  ac_status=$?
35452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35453  (exit $ac_status); }; } &&
35454	 { ac_try='test -s conftest$ac_exeext'
35455  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35456  (eval $ac_try) 2>&5
35457  ac_status=$?
35458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35459  (exit $ac_status); }; }; then
35460  flink_try=yes
35461else
35462  echo "$as_me: failed program was:" >&5
35463sed 's/^/| /' conftest.$ac_ext >&5
35464
35465flink_try=no
35466fi
35467rm -f conftest.err conftest.$ac_objext \
35468      conftest$ac_exeext conftest.$ac_ext
35469    fi
35470    if test $flink_try = yes; then
35471      use_lapack='-llapack'
35472                       if test $coin_need_flibs = yes ; then
35473                         use_lapack="$use_lapack $FLIBS"
35474                       fi
35475                       echo "$as_me:$LINENO: result: yes: $use_lapack" >&5
35476echo "${ECHO_T}yes: $use_lapack" >&6
35477
35478    else
35479      if test x"$FLIBS" != x; then
35480        flink_save_libs="$LIBS"
35481        LIBS="$LIBS $FLIBS"
35482        cat >conftest.$ac_ext <<_ACEOF
35483/* confdefs.h.  */
35484_ACEOF
35485cat confdefs.h >>conftest.$ac_ext
35486cat >>conftest.$ac_ext <<_ACEOF
35487/* end confdefs.h.  */
35488void $cfuncdsyev();
35489#ifdef F77_DUMMY_MAIN
35490
35491#  ifdef __cplusplus
35492     extern "C"
35493#  endif
35494   int F77_DUMMY_MAIN() { return 1; }
35495
35496#endif
35497int
35498main ()
35499{
35500$cfuncdsyev()
35501  ;
35502  return 0;
35503}
35504_ACEOF
35505rm -f conftest.$ac_objext conftest$ac_exeext
35506if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35507  (eval $ac_link) 2>conftest.er1
35508  ac_status=$?
35509  grep -v '^ *+' conftest.er1 >conftest.err
35510  rm -f conftest.er1
35511  cat conftest.err >&5
35512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35513  (exit $ac_status); } &&
35514	 { ac_try='test -z "$ac_cxx_werror_flag"
35515			 || test ! -s conftest.err'
35516  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35517  (eval $ac_try) 2>&5
35518  ac_status=$?
35519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35520  (exit $ac_status); }; } &&
35521	 { ac_try='test -s conftest$ac_exeext'
35522  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35523  (eval $ac_try) 2>&5
35524  ac_status=$?
35525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35526  (exit $ac_status); }; }; then
35527  LIBS="$flink_save_libs"
35528                     coin_need_flibs=yes
35529                     use_lapack='-llapack'
35530                       if test $coin_need_flibs = yes ; then
35531                         use_lapack="$use_lapack $FLIBS"
35532                       fi
35533                       echo "$as_me:$LINENO: result: yes: $use_lapack" >&5
35534echo "${ECHO_T}yes: $use_lapack" >&6
35535
35536
35537else
35538  echo "$as_me: failed program was:" >&5
35539sed 's/^/| /' conftest.$ac_ext >&5
35540
35541LIBS="$flink_save_libs"
35542                     echo "$as_me:$LINENO: result: no" >&5
35543echo "${ECHO_T}no" >&6
35544fi
35545rm -f conftest.err conftest.$ac_objext \
35546      conftest$ac_exeext conftest.$ac_ext
35547      else
35548        echo "$as_me:$LINENO: result: no" >&5
35549echo "${ECHO_T}no" >&6
35550      fi
35551    fi
35552    ;;
35553  cc|cpp)
35554    ac_ext=f
35555ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
35556ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35557ac_compiler_gnu=$ac_cv_f77_compiler_gnu
35558case $ac_cv_f77_mangling in
35559  upper*) ac_val="DSYEV" ;;
35560  lower*) ac_val="dsyev" ;;
35561  *)      ac_val="unknown" ;;
35562esac
35563case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
35564
35565cfuncdsyev="$ac_val"
35566
35567ac_ext=cc
35568ac_cpp='$CXXCPP $CPPFLAGS'
35569ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35570ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35571ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35572
35573    if test x"$coin_need_flibs" = xyes; then
35574      flink_try=no;
35575    else
35576      cat >conftest.$ac_ext <<_ACEOF
35577/* confdefs.h.  */
35578_ACEOF
35579cat confdefs.h >>conftest.$ac_ext
35580cat >>conftest.$ac_ext <<_ACEOF
35581/* end confdefs.h.  */
35582extern "C" {void $cfuncdsyev();}
35583#ifdef F77_DUMMY_MAIN
35584
35585#  ifdef __cplusplus
35586     extern "C"
35587#  endif
35588   int F77_DUMMY_MAIN() { return 1; }
35589
35590#endif
35591int
35592main ()
35593{
35594$cfuncdsyev()
35595  ;
35596  return 0;
35597}
35598_ACEOF
35599rm -f conftest.$ac_objext conftest$ac_exeext
35600if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35601  (eval $ac_link) 2>conftest.er1
35602  ac_status=$?
35603  grep -v '^ *+' conftest.er1 >conftest.err
35604  rm -f conftest.er1
35605  cat conftest.err >&5
35606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35607  (exit $ac_status); } &&
35608	 { ac_try='test -z "$ac_cxx_werror_flag"
35609			 || test ! -s conftest.err'
35610  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35611  (eval $ac_try) 2>&5
35612  ac_status=$?
35613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35614  (exit $ac_status); }; } &&
35615	 { ac_try='test -s conftest$ac_exeext'
35616  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35617  (eval $ac_try) 2>&5
35618  ac_status=$?
35619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35620  (exit $ac_status); }; }; then
35621  flink_try=yes
35622else
35623  echo "$as_me: failed program was:" >&5
35624sed 's/^/| /' conftest.$ac_ext >&5
35625
35626flink_try=no
35627fi
35628rm -f conftest.err conftest.$ac_objext \
35629      conftest$ac_exeext conftest.$ac_ext
35630    fi
35631    if test $flink_try = yes; then
35632      use_lapack='-llapack'
35633                       if test $coin_need_flibs = yes ; then
35634                         use_lapack="$use_lapack $FLIBS"
35635                       fi
35636                       echo "$as_me:$LINENO: result: yes: $use_lapack" >&5
35637echo "${ECHO_T}yes: $use_lapack" >&6
35638
35639    else
35640      if test x"$FLIBS" != x; then
35641        flink_save_libs="$LIBS"
35642        LIBS="$LIBS $FLIBS"
35643        cat >conftest.$ac_ext <<_ACEOF
35644/* confdefs.h.  */
35645_ACEOF
35646cat confdefs.h >>conftest.$ac_ext
35647cat >>conftest.$ac_ext <<_ACEOF
35648/* end confdefs.h.  */
35649extern "C" {void $cfuncdsyev();}
35650#ifdef F77_DUMMY_MAIN
35651
35652#  ifdef __cplusplus
35653     extern "C"
35654#  endif
35655   int F77_DUMMY_MAIN() { return 1; }
35656
35657#endif
35658int
35659main ()
35660{
35661$cfuncdsyev()
35662  ;
35663  return 0;
35664}
35665_ACEOF
35666rm -f conftest.$ac_objext conftest$ac_exeext
35667if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35668  (eval $ac_link) 2>conftest.er1
35669  ac_status=$?
35670  grep -v '^ *+' conftest.er1 >conftest.err
35671  rm -f conftest.er1
35672  cat conftest.err >&5
35673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35674  (exit $ac_status); } &&
35675	 { ac_try='test -z "$ac_cxx_werror_flag"
35676			 || test ! -s conftest.err'
35677  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35678  (eval $ac_try) 2>&5
35679  ac_status=$?
35680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35681  (exit $ac_status); }; } &&
35682	 { ac_try='test -s conftest$ac_exeext'
35683  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35684  (eval $ac_try) 2>&5
35685  ac_status=$?
35686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
35687  (exit $ac_status); }; }; then
35688  LIBS="$flink_save_libs"
35689                     coin_need_flibs=yes
35690                     use_lapack='-llapack'
35691                       if test $coin_need_flibs = yes ; then
35692                         use_lapack="$use_lapack $FLIBS"
35693                       fi
35694                       echo "$as_me:$LINENO: result: yes: $use_lapack" >&5
35695echo "${ECHO_T}yes: $use_lapack" >&6
35696
35697
35698else
35699  echo "$as_me: failed program was:" >&5
35700sed 's/^/| /' conftest.$ac_ext >&5
35701
35702LIBS="$flink_save_libs"
35703                     echo "$as_me:$LINENO: result: no" >&5
35704echo "${ECHO_T}no" >&6
35705fi
35706rm -f conftest.err conftest.$ac_objext \
35707      conftest$ac_exeext conftest.$ac_ext
35708      else
35709        echo "$as_me:$LINENO: result: no" >&5
35710echo "${ECHO_T}no" >&6
35711      fi
35712    fi
35713    ;;
35714esac
35715
35716    LIBS="$coin_save_LIBS"
35717  fi
35718
35719  # If we have no other ideas, consider building LAPACK.
35720  if test -z "$use_lapack" ; then
35721    use_lapack=BUILD
35722  fi
35723fi
35724
35725if test "x$use_lapack" = xBUILD ; then
35726
35727echo "$as_me:$LINENO: checking for COIN-OR package Lapack" >&5
35728echo $ECHO_N "checking for COIN-OR package Lapack... $ECHO_C" >&6
35729
35730coin_has_lapack=notGiven
35731
35732# check if user wants to skip package in any case
35733if test x"$COIN_SKIP_PROJECTS" != x; then
35734  for dir in $COIN_SKIP_PROJECTS; do
35735    if test $dir = "Lapack"; then
35736      coin_has_lapack=skipping
35737    fi
35738  done
35739fi
35740
35741if test "$coin_has_lapack" != skipping; then
35742
35743# Check whether --with-m4_tolower(Lapack) or --without-m4_tolower(Lapack) was given.
35744if test "${with_lapack+set}" = set; then
35745  withval="$with_lapack"
35746  if test "$withval" = no ; then
35747       coin_has_lapack=skipping
35748     fi
35749
35750fi;
35751fi
35752
35753LAPACK_LIBS=
35754LAPACK_CFLAGS=
35755LAPACK_DATA=
35756LAPACK_DEPENDENCIES=
35757LAPACK_PCLIBS=
35758LAPACK_PCREQUIRES=
35759
35760
35761
35762
35763
35764
35765
35766
35767
35768
35769
35770
35771
35772
35773
35774
35775
35776#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
35777if test $coin_has_lapack != skipping; then
35778
35779# Check whether --with-m4_tolower(Lapack)-lib or --without-m4_tolower(Lapack)-lib was given.
35780if test "${with_lapack_lib+set}" = set; then
35781  withval="$with_lapack_lib"
35782  if test "$withval" = no ; then
35783       coin_has_lapack=skipping
35784     else
35785       coin_has_lapack=yes
35786       LAPACK_LIBS="$withval"
35787       LAPACK_PCLIBS="$withval"
35788
35789         COINUTILSLIB_PCLIBS="$withval $COINUTILSLIB_PCLIBS"
35790         COINUTILSLIB_LIBS="$withval $COINUTILSLIB_LIBS"
35791
35792       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
35793       if test -z "$PKG_CONFIG" ; then
35794         LAPACK_LIBS_INSTALLED="$withval"
35795         COINUTILSLIB_LIBS_INSTALLED="$withval $COINUTILSLIB_LIBS_INSTALLED"
35796       fi
35797     fi
35798
35799fi;
35800fi
35801
35802if test $coin_has_lapack != skipping; then
35803
35804# Check whether --with-m4_tolower(Lapack)-incdir or --without-m4_tolower(Lapack)-incdir was given.
35805if test "${with_lapack_incdir+set}" = set; then
35806  withval="$with_lapack_incdir"
35807  if test "$withval" = no ; then
35808       coin_has_lapack=skipping
35809     else
35810       coin_has_lapack=yes
35811       LAPACK_CFLAGS="-I`${CYGPATH_W} $withval`"
35812       COINUTILSLIB_CFLAGS="-I`${CYGPATH_W} $withval` $COINUTILSLIB_CFLAGS"
35813       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
35814       if test -z "$PKG_CONFIG" ; then
35815         LAPACK_CFLAGS_INSTALLED="$LAPACK_CFLAGS"
35816         COINUTILSLIB_CFLAGS_INSTALLED="$LAPACK_CFLAGS $COINUTILSLIB_CFLAGS_INSTALLED"
35817       fi
35818     fi
35819
35820fi;
35821fi
35822
35823if test $coin_has_lapack != skipping; then
35824
35825# Check whether --with-m4_tolower(Lapack)-datadir or --without-m4_tolower(Lapack)-datadir was given.
35826if test "${with_lapack_datadir+set}" = set; then
35827  withval="$with_lapack_datadir"
35828  if test "$withval" = no ; then
35829       coin_has_lapack=skipping
35830     else
35831       coin_has_lapack=yes
35832       LAPACK_DATA="$withval"
35833       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
35834       if test -z "$PKG_CONFIG" ; then
35835         LAPACK_DATA_INSTALLED="$withval"
35836       fi
35837     fi
35838
35839fi;
35840fi
35841
35842if test $coin_has_lapack = notGiven; then
35843  if test -n "$PKG_CONFIG" ; then
35844    # set search path for pkg-config
35845    # need to export variable to be sure that the following pkg-config gets these values
35846    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
35847    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
35848    export PKG_CONFIG_PATH
35849
35850    # let pkg-config do it's magic
35851
35852
35853
35854if test -n "$PKG_CONFIG" ; then
35855  if $PKG_CONFIG --exists "coinlapack"; then
35856    LAPACK_VERSIONS=`$PKG_CONFIG --modversion "coinlapack" 2>/dev/null | tr '\n' ' '`
35857     cflags=`$PKG_CONFIG --cflags "coinlapack" 2>/dev/null`
35858    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
35859	# thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
35860	# but only do this if is not trivial
35861    if test "$CYGPATH_W" != "echo" ; then
35862      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
35863      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
35864    fi
35865    LAPACK_CFLAGS="$cflags"
35866    LAPACK_LIBS=`$PKG_CONFIG --libs "coinlapack" 2>/dev/null`
35867    LAPACK_DATA=`$PKG_CONFIG --variable=datadir "coinlapack" 2>/dev/null`
35868     coin_has_lapack=yes
35869        echo "$as_me:$LINENO: result: yes: $LAPACK_VERSIONS" >&5
35870echo "${ECHO_T}yes: $LAPACK_VERSIONS" >&6
35871
35872        # adjust linker flags for (i)cl compiler
35873        # 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)
35874        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
35875        then
35876          LAPACK_LIBS=`echo " $LAPACK_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
35877        fi
35878        LAPACK_PCREQUIRES="coinlapack"
35879
35880        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in CoinUtilsLib
35881
35882          COINUTILSLIB_PCREQUIRES="coinlapack $COINUTILSLIB_PCREQUIRES"
35883          COINUTILSLIB_CFLAGS="$LAPACK_CFLAGS $COINUTILSLIB_CFLAGS"
35884          COINUTILSLIB_LIBS="$LAPACK_LIBS $COINUTILSLIB_LIBS"
35885
35886
35887
35888  else
35889    LAPACK_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "coinlapack"`
35890      coin_has_lapack=notGiven
35891        echo "$as_me:$LINENO: result: not given: $LAPACK_PKG_ERRORS" >&5
35892echo "${ECHO_T}not given: $LAPACK_PKG_ERRORS" >&6
35893
35894  fi
35895else
35896  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Lapack without pkg-config\"" >&5
35897echo "$as_me: error: \"Cannot check for existance of module Lapack without pkg-config\"" >&2;}
35898   { (exit 1); exit 1; }; }
35899fi
35900
35901
35902
35903
35904    # reset PKG_CONFIG_PATH variable
35905    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
35906    export PKG_CONFIG_PATH
35907
35908  else
35909    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
35910echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
35911
35912echo "$as_me:$LINENO: checking for COIN-OR package Lapack (fallback)" >&5
35913echo $ECHO_N "checking for COIN-OR package Lapack (fallback)... $ECHO_C" >&6
35914
35915coin_has_lapack=notGiven
35916LAPACK_LIBS=
35917LAPACK_LIBS_INSTALLED=
35918LAPACK_CFLAGS=
35919LAPACK_CFLAGS_INSTALLED=
35920LAPACK_DATA=
35921LAPACK_DATA_INSTALLED=
35922LAPACK_PCLIBS=
35923LAPACK_PCREQUIRES=
35924
35925# initial list of dependencies is "coinlapack", but we need to filter out version number specifications (= x, <= x, >= x, != x)
35926projtoprocess="coinlapack"
35927
35928# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
35929# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
35930# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
35931# also, we setup the DATA variable
35932allproj=""
35933allpcfiles=""
35934allpcifiles=""
35935while test "x$projtoprocess" != x ; do
35936
35937  for proj in $projtoprocess ; do
35938    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
35939    pcfile=""
35940    save_IFS="$IFS"
35941    IFS=":"
35942    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
35943      # 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
35944      if test -r "$dir/${proj}-uninstalled.pc" ; then
35945        pcfile="$dir/$proj-uninstalled.pc"
35946        if test -r "$dir/${proj}.pc" ; then
35947          pcifile="$dir/${proj}.pc"
35948        else
35949          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
35950echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
35951          pcifile=
35952        fi
35953        break
35954      fi
35955    done
35956    IFS="$save_IFS"
35957
35958    if test "x$pcfile" != x ; then
35959      # read dependencies from $pcfile and filter it
35960      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ 	]\{0,\}[^ 	]\{1,\}//g'`
35961
35962      # add projrequires to the front of the list of projects that have to be processed next
35963      # at the same time, remove $proj from this list
35964      projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
35965
35966      # read DATA from $pcfile, if _DATA is still empty
35967      if test "x$LAPACK_DATA" = x ; then
35968        projdatadir=
35969        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
35970        eval `sh -c "$pcfilemod"`
35971        LAPACK_DATA="$projdatadir"
35972      fi
35973
35974      allproj="$allproj $proj"
35975      allpcfiles="$pcfile:$allpcfiles"
35976
35977    else
35978      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
35979echo "${ECHO_T}no, dependency $proj not available" >&6
35980      allproj=fail
35981      break 2
35982    fi
35983
35984    if test "x$pcifile" != x ; then
35985      allpcifiles="$pcifile:$allpcifiles"
35986
35987      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
35988      if test "x$LAPACK_DATA_INSTALLED" = x ; then
35989        projdatadir=
35990        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
35991        eval `sh -c "$pcifilemod"`
35992        if test "${CYGPATH_W}" != "echo"; then
35993          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
35994        fi
35995        LAPACK_DATA_INSTALLED="$projdatadir"
35996      fi
35997
35998    fi
35999
36000    break
36001  done
36002
36003  # remove spaces on begin of $projtoprocess
36004  projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
36005
36006done
36007
36008if test "$allproj" != fail ; then
36009
36010  # now go through the list of .pc files and assemble compiler and linker flags
36011  # important is here to obey the reverse order that has been setup before,
36012  # since then libraries that are required by several others should be after these other libraries
36013  pcfilesprocessed=""
36014
36015  save_IFS="$IFS"
36016  IFS=":"
36017  for pcfile in $allpcfiles ; do
36018
36019    # if $pcfile has been processed already, skip this round
36020    if test "x$pcfilesprocessed" != x ; then
36021      for pcfiledone in $pcfilesprocessed ; do
36022        if test "$pcfiledone" = "$pcfile" ; then
36023          continue 2
36024        fi
36025      done
36026    fi
36027
36028    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
36029    #   replace "Libs:" by "echo projlibs="
36030    #   replace "Cflags:" by "echo projcflags="
36031    #   remove every line starting with <some word>:
36032    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
36033
36034    # set projcflags and projlibs variables by running $pcfilemod
36035    # 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
36036    projcflags=
36037    projlibs=
36038    IFS="$save_IFS"
36039    eval `sh -c "$pcfilemod"`
36040    IFS=":"
36041
36042    # add CYGPATH_W cludge into include flags and set CFLAGS variable
36043    if test "${CYGPATH_W}" != "echo"; then
36044      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
36045    fi
36046    LAPACK_CFLAGS="$projcflags $LAPACK_CFLAGS"
36047
36048    # set LIBS variable
36049    LAPACK_LIBS="$projlibs $LAPACK_LIBS"
36050
36051    # remember that we have processed $pcfile
36052    pcfilesprocessed="$pcfilesprocessed:$pcfile"
36053
36054  done
36055  IFS="$save_IFS"
36056
36057
36058  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
36059  # important is here again to obey the reverse order that has been setup before,
36060  # since then libraries that are required by several others should be after these other libraries
36061  pcfilesprocessed=""
36062
36063  save_IFS="$IFS"
36064  IFS=":"
36065  for pcfile in $allpcifiles ; do
36066
36067    # if $pcfile has been processed already, skip this round
36068    if test "x$pcfilesprocessed" != x ; then
36069      for pcfiledone in $pcfilesprocessed ; do
36070        if test "$pcfiledone" = "$pcfile" ; then
36071          continue 2
36072        fi
36073      done
36074    fi
36075
36076    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
36077    #   replace "Libs:" by "echo projlibs="
36078    #   replace "Cflags:" by "echo projcflags="
36079    #   remove every line starting with <some word>:
36080    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
36081
36082    # set projcflags and projlibs variables by running $pcfilemod
36083    # 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
36084    projcflags=
36085    projlibs=
36086    IFS="$save_IFS"
36087    eval `sh -c "$pcfilemod"`
36088    IFS=":"
36089
36090    # add CYGPATH_W cludge into include flags and set CFLAGS variable
36091    if test "${CYGPATH_W}" != "echo"; then
36092      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
36093    fi
36094    LAPACK_CFLAGS_INSTALLED="$projcflags $LAPACK_CFLAGS_INSTALLED"
36095
36096    # set LIBS variable
36097    LAPACK_LIBS_INSTALLED="$projlibs $LAPACK_LIBS_INSTALLED"
36098
36099    # remember that we have processed $pcfile
36100    pcfilesprocessed="$pcfilesprocessed:$pcfile"
36101
36102  done
36103  IFS="$save_IFS"
36104
36105
36106  # finish up
36107  coin_has_lapack=yes
36108  echo "$as_me:$LINENO: result: yes" >&5
36109echo "${ECHO_T}yes" >&6
36110
36111cat >>confdefs.h <<\_ACEOF
36112#define COIN_HAS_LAPACK 1
36113_ACEOF
36114
36115
36116  # adjust linker flags for (i)cl compiler
36117  # 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),
36118  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
36119  #    everything of the form "-lname" by "libname.lib", and
36120  #    everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
36121  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
36122  then
36123    LAPACK_LIBS=`echo " $LAPACK_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
36124    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'`
36125  fi
36126
36127  LAPACK_PCREQUIRES="coinlapack"
36128
36129    COINUTILSLIB_PCREQUIRES="coinlapack $COINUTILSLIB_PCREQUIRES"
36130    COINUTILSLIB_CFLAGS="$LAPACK_CFLAGS $COINUTILSLIB_CFLAGS"
36131    COINUTILSLIB_LIBS="$LAPACK_LIBS $COINUTILSLIB_LIBS"
36132    COINUTILSLIB_CFLAGS_INSTALLED="$LAPACK_CFLAGS_INSTALLED $COINUTILSLIB_CFLAGS_INSTALLED"
36133    COINUTILSLIB_LIBS_INSTALLED="$LAPACK_LIBS_INSTALLED $COINUTILSLIB_LIBS_INSTALLED"
36134
36135
36136fi
36137
36138
36139
36140if test $coin_has_lapack != notGiven &&
36141                test $coin_has_lapack != skipping; then
36142  COIN_HAS_LAPACK_TRUE=
36143  COIN_HAS_LAPACK_FALSE='#'
36144else
36145  COIN_HAS_LAPACK_TRUE='#'
36146  COIN_HAS_LAPACK_FALSE=
36147fi
36148
36149
36150
36151  fi
36152
36153else
36154  echo "$as_me:$LINENO: result: $coin_has_lapack" >&5
36155echo "${ECHO_T}$coin_has_lapack" >&6
36156fi
36157
36158if test $coin_has_lapack != skipping &&
36159   test $coin_has_lapack != notGiven ; then
36160
36161cat >>confdefs.h <<\_ACEOF
36162#define COIN_HAS_LAPACK 1
36163_ACEOF
36164
36165
36166  # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
36167if test "${enable_interpackage_dependencies+set}" = set; then
36168  enableval="$enable_interpackage_dependencies"
36169
36170else
36171  enable_interpackage_dependencies=yes
36172fi;
36173
36174  if test $enable_interpackage_dependencies = yes ; then
36175     # construct dependencies variables from LIBS variables
36176     # we add an extra space in LIBS so we can substitute out everything starting with " -"
36177     # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows
36178     # then remove everything of the form -xxx
36179     # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
36180     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'`
36181
36182       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'`
36183
36184  fi
36185
36186  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
36187    if test -n "$LAPACK_CFLAGS" ; then
36188      { echo "$as_me:$LINENO: Lapack CFLAGS are $LAPACK_CFLAGS" >&5
36189echo "$as_me: Lapack CFLAGS are $LAPACK_CFLAGS" >&6;}
36190    fi
36191    if test -n "$LAPACK_LIBS" ; then
36192      { echo "$as_me:$LINENO: Lapack LIBS   are $LAPACK_LIBS" >&5
36193echo "$as_me: Lapack LIBS   are $LAPACK_LIBS" >&6;}
36194    fi
36195    if test -n "$LAPACK_DEPENDENCIES" ; then
36196      { echo "$as_me:$LINENO: Lapack DEPENDENCIES are $LAPACK_DEPENDENCIES" >&5
36197echo "$as_me: Lapack DEPENDENCIES are $LAPACK_DEPENDENCIES" >&6;}
36198    fi
36199    if test -n "$LAPACK_DATA" ; then
36200      { echo "$as_me:$LINENO: Lapack DATA   is  $LAPACK_DATA" >&5
36201echo "$as_me: Lapack DATA   is  $LAPACK_DATA" >&6;}
36202    fi
36203    if test -n "$LAPACK_PCLIBS" ; then
36204      { echo "$as_me:$LINENO: Lapack PCLIBS are $LAPACK_PCLIBS" >&5
36205echo "$as_me: Lapack PCLIBS are $LAPACK_PCLIBS" >&6;}
36206    fi
36207    if test -n "$LAPACK_PCREQUIRES" ; then
36208      { echo "$as_me:$LINENO: Lapack PCREQUIRES are $LAPACK_PCREQUIRES" >&5
36209echo "$as_me: Lapack PCREQUIRES are $LAPACK_PCREQUIRES" >&6;}
36210    fi
36211
36212      { echo "$as_me:$LINENO: CoinUtilsLib CFLAGS are $COINUTILSLIB_CFLAGS" >&5
36213echo "$as_me: CoinUtilsLib CFLAGS are $COINUTILSLIB_CFLAGS" >&6;}
36214      { echo "$as_me:$LINENO: CoinUtilsLib LIBS   are $COINUTILSLIB_LIBS" >&5
36215echo "$as_me: CoinUtilsLib LIBS   are $COINUTILSLIB_LIBS" >&6;}
36216      { echo "$as_me:$LINENO: CoinUtilsLib DEPENDENCIES are $COINUTILSLIB_DEPENDENCIES" >&5
36217echo "$as_me: CoinUtilsLib DEPENDENCIES are $COINUTILSLIB_DEPENDENCIES" >&6;}
36218
36219  fi
36220fi
36221
36222# Define the Makefile conditional
36223
36224
36225if test $coin_has_lapack != notGiven &&
36226                test $coin_has_lapack != skipping; then
36227  COIN_HAS_LAPACK_TRUE=
36228  COIN_HAS_LAPACK_FALSE='#'
36229else
36230  COIN_HAS_LAPACK_TRUE='#'
36231  COIN_HAS_LAPACK_FALSE=
36232fi
36233
36234
36235
36236
36237elif test "x$use_lapack" != x && test "$use_lapack" != no; then
36238  coin_has_lapack=yes
36239
36240
36241if test 0 = 0; then
36242  COIN_HAS_LAPACK_TRUE=
36243  COIN_HAS_LAPACK_FALSE='#'
36244else
36245  COIN_HAS_LAPACK_TRUE='#'
36246  COIN_HAS_LAPACK_FALSE=
36247fi
36248
36249
36250cat >>confdefs.h <<\_ACEOF
36251#define COIN_HAS_LAPACK 1
36252_ACEOF
36253
36254  LAPACK_LIBS="$use_lapack"
36255  LAPACK_CFLAGS=
36256  LAPACK_DATA=
36257
36258
36259
36260
36261    COINUTILSLIB_PCLIBS="$LAPACK_LIBS $COINUTILSLIB_PCLIBS"
36262    COINUTILSLIB_LIBS="$LAPACK_LIBS $COINUTILSLIB_LIBS"
36263    COINUTILSLIB_LIBS_INSTALLED="$LAPACK_LIBS $COINUTILSLIB_LIBS_INSTALLED"
36264
36265
36266else
36267  coin_has_lapack=no
36268
36269
36270if test 0 = 1; then
36271  COIN_HAS_LAPACK_TRUE=
36272  COIN_HAS_LAPACK_FALSE='#'
36273else
36274  COIN_HAS_LAPACK_TRUE='#'
36275  COIN_HAS_LAPACK_FALSE=
36276fi
36277
36278fi
36279
36280
36281
36282
36283
36284
36285
36286
36287
36288echo "$as_me:$LINENO: checking for COIN-OR package Glpk" >&5
36289echo $ECHO_N "checking for COIN-OR package Glpk... $ECHO_C" >&6
36290
36291coin_has_glpk=notGiven
36292
36293# check if user wants to skip package in any case
36294if test x"$COIN_SKIP_PROJECTS" != x; then
36295  for dir in $COIN_SKIP_PROJECTS; do
36296    if test $dir = "Glpk"; then
36297      coin_has_glpk=skipping
36298    fi
36299  done
36300fi
36301
36302if test "$coin_has_glpk" != skipping; then
36303
36304# Check whether --with-m4_tolower(Glpk) or --without-m4_tolower(Glpk) was given.
36305if test "${with_glpk+set}" = set; then
36306  withval="$with_glpk"
36307  if test "$withval" = no ; then
36308       coin_has_glpk=skipping
36309     fi
36310
36311fi;
36312fi
36313
36314GLPK_LIBS=
36315GLPK_CFLAGS=
36316GLPK_DATA=
36317GLPK_DEPENDENCIES=
36318GLPK_PCLIBS=
36319GLPK_PCREQUIRES=
36320
36321
36322
36323
36324
36325
36326
36327
36328
36329
36330
36331
36332
36333
36334
36335
36336
36337#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
36338if test $coin_has_glpk != skipping; then
36339
36340# Check whether --with-m4_tolower(Glpk)-lib or --without-m4_tolower(Glpk)-lib was given.
36341if test "${with_glpk_lib+set}" = set; then
36342  withval="$with_glpk_lib"
36343  if test "$withval" = no ; then
36344       coin_has_glpk=skipping
36345     else
36346       coin_has_glpk=yes
36347       GLPK_LIBS="$withval"
36348       GLPK_PCLIBS="$withval"
36349
36350         COINUTILSLIB_PCLIBS="$withval $COINUTILSLIB_PCLIBS"
36351         COINUTILSLIB_LIBS="$withval $COINUTILSLIB_LIBS"
36352
36353       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
36354       if test -z "$PKG_CONFIG" ; then
36355         GLPK_LIBS_INSTALLED="$withval"
36356         COINUTILSLIB_LIBS_INSTALLED="$withval $COINUTILSLIB_LIBS_INSTALLED"
36357       fi
36358     fi
36359
36360fi;
36361fi
36362
36363if test $coin_has_glpk != skipping; then
36364
36365# Check whether --with-m4_tolower(Glpk)-incdir or --without-m4_tolower(Glpk)-incdir was given.
36366if test "${with_glpk_incdir+set}" = set; then
36367  withval="$with_glpk_incdir"
36368  if test "$withval" = no ; then
36369       coin_has_glpk=skipping
36370     else
36371       coin_has_glpk=yes
36372       GLPK_CFLAGS="-I`${CYGPATH_W} $withval`"
36373       COINUTILSLIB_CFLAGS="-I`${CYGPATH_W} $withval` $COINUTILSLIB_CFLAGS"
36374       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
36375       if test -z "$PKG_CONFIG" ; then
36376         GLPK_CFLAGS_INSTALLED="$GLPK_CFLAGS"
36377         COINUTILSLIB_CFLAGS_INSTALLED="$GLPK_CFLAGS $COINUTILSLIB_CFLAGS_INSTALLED"
36378       fi
36379     fi
36380
36381fi;
36382fi
36383
36384if test $coin_has_glpk != skipping; then
36385
36386# Check whether --with-m4_tolower(Glpk)-datadir or --without-m4_tolower(Glpk)-datadir was given.
36387if test "${with_glpk_datadir+set}" = set; then
36388  withval="$with_glpk_datadir"
36389  if test "$withval" = no ; then
36390       coin_has_glpk=skipping
36391     else
36392       coin_has_glpk=yes
36393       GLPK_DATA="$withval"
36394       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
36395       if test -z "$PKG_CONFIG" ; then
36396         GLPK_DATA_INSTALLED="$withval"
36397       fi
36398     fi
36399
36400fi;
36401fi
36402
36403if test $coin_has_glpk = notGiven; then
36404  if test -n "$PKG_CONFIG" ; then
36405    # set search path for pkg-config
36406    # need to export variable to be sure that the following pkg-config gets these values
36407    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
36408    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
36409    export PKG_CONFIG_PATH
36410
36411    # let pkg-config do it's magic
36412
36413
36414
36415if test -n "$PKG_CONFIG" ; then
36416  if $PKG_CONFIG --exists "coinglpk"; then
36417    GLPK_VERSIONS=`$PKG_CONFIG --modversion "coinglpk" 2>/dev/null | tr '\n' ' '`
36418     cflags=`$PKG_CONFIG --cflags "coinglpk" 2>/dev/null`
36419    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
36420	# thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
36421	# but only do this if is not trivial
36422    if test "$CYGPATH_W" != "echo" ; then
36423      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
36424      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
36425    fi
36426    GLPK_CFLAGS="$cflags"
36427    GLPK_LIBS=`$PKG_CONFIG --libs "coinglpk" 2>/dev/null`
36428    GLPK_DATA=`$PKG_CONFIG --variable=datadir "coinglpk" 2>/dev/null`
36429     coin_has_glpk=yes
36430        echo "$as_me:$LINENO: result: yes: $GLPK_VERSIONS" >&5
36431echo "${ECHO_T}yes: $GLPK_VERSIONS" >&6
36432
36433        # adjust linker flags for (i)cl compiler
36434        # 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)
36435        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
36436        then
36437          GLPK_LIBS=`echo " $GLPK_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
36438        fi
36439        GLPK_PCREQUIRES="coinglpk"
36440
36441        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in CoinUtilsLib
36442
36443          COINUTILSLIB_PCREQUIRES="coinglpk $COINUTILSLIB_PCREQUIRES"
36444          COINUTILSLIB_CFLAGS="$GLPK_CFLAGS $COINUTILSLIB_CFLAGS"
36445          COINUTILSLIB_LIBS="$GLPK_LIBS $COINUTILSLIB_LIBS"
36446
36447
36448
36449  else
36450    GLPK_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "coinglpk"`
36451      coin_has_glpk=notGiven
36452        echo "$as_me:$LINENO: result: not given: $GLPK_PKG_ERRORS" >&5
36453echo "${ECHO_T}not given: $GLPK_PKG_ERRORS" >&6
36454
36455  fi
36456else
36457  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Glpk without pkg-config\"" >&5
36458echo "$as_me: error: \"Cannot check for existance of module Glpk without pkg-config\"" >&2;}
36459   { (exit 1); exit 1; }; }
36460fi
36461
36462
36463
36464
36465    # reset PKG_CONFIG_PATH variable
36466    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
36467    export PKG_CONFIG_PATH
36468
36469  else
36470    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
36471echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
36472
36473echo "$as_me:$LINENO: checking for COIN-OR package Glpk (fallback)" >&5
36474echo $ECHO_N "checking for COIN-OR package Glpk (fallback)... $ECHO_C" >&6
36475
36476coin_has_glpk=notGiven
36477GLPK_LIBS=
36478GLPK_LIBS_INSTALLED=
36479GLPK_CFLAGS=
36480GLPK_CFLAGS_INSTALLED=
36481GLPK_DATA=
36482GLPK_DATA_INSTALLED=
36483GLPK_PCLIBS=
36484GLPK_PCREQUIRES=
36485
36486# initial list of dependencies is "coinglpk", but we need to filter out version number specifications (= x, <= x, >= x, != x)
36487projtoprocess="coinglpk"
36488
36489# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
36490# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
36491# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
36492# also, we setup the DATA variable
36493allproj=""
36494allpcfiles=""
36495allpcifiles=""
36496while test "x$projtoprocess" != x ; do
36497
36498  for proj in $projtoprocess ; do
36499    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
36500    pcfile=""
36501    save_IFS="$IFS"
36502    IFS=":"
36503    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
36504      # 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
36505      if test -r "$dir/${proj}-uninstalled.pc" ; then
36506        pcfile="$dir/$proj-uninstalled.pc"
36507        if test -r "$dir/${proj}.pc" ; then
36508          pcifile="$dir/${proj}.pc"
36509        else
36510          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
36511echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
36512          pcifile=
36513        fi
36514        break
36515      fi
36516    done
36517    IFS="$save_IFS"
36518
36519    if test "x$pcfile" != x ; then
36520      # read dependencies from $pcfile and filter it
36521      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ 	]\{0,\}[^ 	]\{1,\}//g'`
36522
36523      # add projrequires to the front of the list of projects that have to be processed next
36524      # at the same time, remove $proj from this list
36525      projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
36526
36527      # read DATA from $pcfile, if _DATA is still empty
36528      if test "x$GLPK_DATA" = x ; then
36529        projdatadir=
36530        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
36531        eval `sh -c "$pcfilemod"`
36532        GLPK_DATA="$projdatadir"
36533      fi
36534
36535      allproj="$allproj $proj"
36536      allpcfiles="$pcfile:$allpcfiles"
36537
36538    else
36539      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
36540echo "${ECHO_T}no, dependency $proj not available" >&6
36541      allproj=fail
36542      break 2
36543    fi
36544
36545    if test "x$pcifile" != x ; then
36546      allpcifiles="$pcifile:$allpcifiles"
36547
36548      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
36549      if test "x$GLPK_DATA_INSTALLED" = x ; then
36550        projdatadir=
36551        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
36552        eval `sh -c "$pcifilemod"`
36553        if test "${CYGPATH_W}" != "echo"; then
36554          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
36555        fi
36556        GLPK_DATA_INSTALLED="$projdatadir"
36557      fi
36558
36559    fi
36560
36561    break
36562  done
36563
36564  # remove spaces on begin of $projtoprocess
36565  projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
36566
36567done
36568
36569if test "$allproj" != fail ; then
36570
36571  # now go through the list of .pc files and assemble compiler and linker flags
36572  # important is here to obey the reverse order that has been setup before,
36573  # since then libraries that are required by several others should be after these other libraries
36574  pcfilesprocessed=""
36575
36576  save_IFS="$IFS"
36577  IFS=":"
36578  for pcfile in $allpcfiles ; do
36579
36580    # if $pcfile has been processed already, skip this round
36581    if test "x$pcfilesprocessed" != x ; then
36582      for pcfiledone in $pcfilesprocessed ; do
36583        if test "$pcfiledone" = "$pcfile" ; then
36584          continue 2
36585        fi
36586      done
36587    fi
36588
36589    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
36590    #   replace "Libs:" by "echo projlibs="
36591    #   replace "Cflags:" by "echo projcflags="
36592    #   remove every line starting with <some word>:
36593    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
36594
36595    # set projcflags and projlibs variables by running $pcfilemod
36596    # 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
36597    projcflags=
36598    projlibs=
36599    IFS="$save_IFS"
36600    eval `sh -c "$pcfilemod"`
36601    IFS=":"
36602
36603    # add CYGPATH_W cludge into include flags and set CFLAGS variable
36604    if test "${CYGPATH_W}" != "echo"; then
36605      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
36606    fi
36607    GLPK_CFLAGS="$projcflags $GLPK_CFLAGS"
36608
36609    # set LIBS variable
36610    GLPK_LIBS="$projlibs $GLPK_LIBS"
36611
36612    # remember that we have processed $pcfile
36613    pcfilesprocessed="$pcfilesprocessed:$pcfile"
36614
36615  done
36616  IFS="$save_IFS"
36617
36618
36619  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
36620  # important is here again to obey the reverse order that has been setup before,
36621  # since then libraries that are required by several others should be after these other libraries
36622  pcfilesprocessed=""
36623
36624  save_IFS="$IFS"
36625  IFS=":"
36626  for pcfile in $allpcifiles ; do
36627
36628    # if $pcfile has been processed already, skip this round
36629    if test "x$pcfilesprocessed" != x ; then
36630      for pcfiledone in $pcfilesprocessed ; do
36631        if test "$pcfiledone" = "$pcfile" ; then
36632          continue 2
36633        fi
36634      done
36635    fi
36636
36637    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
36638    #   replace "Libs:" by "echo projlibs="
36639    #   replace "Cflags:" by "echo projcflags="
36640    #   remove every line starting with <some word>:
36641    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
36642
36643    # set projcflags and projlibs variables by running $pcfilemod
36644    # 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
36645    projcflags=
36646    projlibs=
36647    IFS="$save_IFS"
36648    eval `sh -c "$pcfilemod"`
36649    IFS=":"
36650
36651    # add CYGPATH_W cludge into include flags and set CFLAGS variable
36652    if test "${CYGPATH_W}" != "echo"; then
36653      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
36654    fi
36655    GLPK_CFLAGS_INSTALLED="$projcflags $GLPK_CFLAGS_INSTALLED"
36656
36657    # set LIBS variable
36658    GLPK_LIBS_INSTALLED="$projlibs $GLPK_LIBS_INSTALLED"
36659
36660    # remember that we have processed $pcfile
36661    pcfilesprocessed="$pcfilesprocessed:$pcfile"
36662
36663  done
36664  IFS="$save_IFS"
36665
36666
36667  # finish up
36668  coin_has_glpk=yes
36669  echo "$as_me:$LINENO: result: yes" >&5
36670echo "${ECHO_T}yes" >&6
36671
36672cat >>confdefs.h <<\_ACEOF
36673#define COIN_HAS_GLPK 1
36674_ACEOF
36675
36676
36677  # adjust linker flags for (i)cl compiler
36678  # 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),
36679  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
36680  #    everything of the form "-lname" by "libname.lib", and
36681  #    everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
36682  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
36683  then
36684    GLPK_LIBS=`echo " $GLPK_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
36685    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'`
36686  fi
36687
36688  GLPK_PCREQUIRES="coinglpk"
36689
36690    COINUTILSLIB_PCREQUIRES="coinglpk $COINUTILSLIB_PCREQUIRES"
36691    COINUTILSLIB_CFLAGS="$GLPK_CFLAGS $COINUTILSLIB_CFLAGS"
36692    COINUTILSLIB_LIBS="$GLPK_LIBS $COINUTILSLIB_LIBS"
36693    COINUTILSLIB_CFLAGS_INSTALLED="$GLPK_CFLAGS_INSTALLED $COINUTILSLIB_CFLAGS_INSTALLED"
36694    COINUTILSLIB_LIBS_INSTALLED="$GLPK_LIBS_INSTALLED $COINUTILSLIB_LIBS_INSTALLED"
36695
36696
36697fi
36698
36699
36700
36701if test $coin_has_glpk != notGiven &&
36702                test $coin_has_glpk != skipping; then
36703  COIN_HAS_GLPK_TRUE=
36704  COIN_HAS_GLPK_FALSE='#'
36705else
36706  COIN_HAS_GLPK_TRUE='#'
36707  COIN_HAS_GLPK_FALSE=
36708fi
36709
36710
36711
36712  fi
36713
36714else
36715  echo "$as_me:$LINENO: result: $coin_has_glpk" >&5
36716echo "${ECHO_T}$coin_has_glpk" >&6
36717fi
36718
36719if test $coin_has_glpk != skipping &&
36720   test $coin_has_glpk != notGiven ; then
36721
36722cat >>confdefs.h <<\_ACEOF
36723#define COIN_HAS_GLPK 1
36724_ACEOF
36725
36726
36727  # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
36728if test "${enable_interpackage_dependencies+set}" = set; then
36729  enableval="$enable_interpackage_dependencies"
36730
36731else
36732  enable_interpackage_dependencies=yes
36733fi;
36734
36735  if test $enable_interpackage_dependencies = yes ; then
36736     # construct dependencies variables from LIBS variables
36737     # we add an extra space in LIBS so we can substitute out everything starting with " -"
36738     # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows
36739     # then remove everything of the form -xxx
36740     # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
36741     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'`
36742
36743       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'`
36744
36745  fi
36746
36747  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
36748    if test -n "$GLPK_CFLAGS" ; then
36749      { echo "$as_me:$LINENO: Glpk CFLAGS are $GLPK_CFLAGS" >&5
36750echo "$as_me: Glpk CFLAGS are $GLPK_CFLAGS" >&6;}
36751    fi
36752    if test -n "$GLPK_LIBS" ; then
36753      { echo "$as_me:$LINENO: Glpk LIBS   are $GLPK_LIBS" >&5
36754echo "$as_me: Glpk LIBS   are $GLPK_LIBS" >&6;}
36755    fi
36756    if test -n "$GLPK_DEPENDENCIES" ; then
36757      { echo "$as_me:$LINENO: Glpk DEPENDENCIES are $GLPK_DEPENDENCIES" >&5
36758echo "$as_me: Glpk DEPENDENCIES are $GLPK_DEPENDENCIES" >&6;}
36759    fi
36760    if test -n "$GLPK_DATA" ; then
36761      { echo "$as_me:$LINENO: Glpk DATA   is  $GLPK_DATA" >&5
36762echo "$as_me: Glpk DATA   is  $GLPK_DATA" >&6;}
36763    fi
36764    if test -n "$GLPK_PCLIBS" ; then
36765      { echo "$as_me:$LINENO: Glpk PCLIBS are $GLPK_PCLIBS" >&5
36766echo "$as_me: Glpk PCLIBS are $GLPK_PCLIBS" >&6;}
36767    fi
36768    if test -n "$GLPK_PCREQUIRES" ; then
36769      { echo "$as_me:$LINENO: Glpk PCREQUIRES are $GLPK_PCREQUIRES" >&5
36770echo "$as_me: Glpk PCREQUIRES are $GLPK_PCREQUIRES" >&6;}
36771    fi
36772
36773      { echo "$as_me:$LINENO: CoinUtilsLib CFLAGS are $COINUTILSLIB_CFLAGS" >&5
36774echo "$as_me: CoinUtilsLib CFLAGS are $COINUTILSLIB_CFLAGS" >&6;}
36775      { echo "$as_me:$LINENO: CoinUtilsLib LIBS   are $COINUTILSLIB_LIBS" >&5
36776echo "$as_me: CoinUtilsLib LIBS   are $COINUTILSLIB_LIBS" >&6;}
36777      { echo "$as_me:$LINENO: CoinUtilsLib DEPENDENCIES are $COINUTILSLIB_DEPENDENCIES" >&5
36778echo "$as_me: CoinUtilsLib DEPENDENCIES are $COINUTILSLIB_DEPENDENCIES" >&6;}
36779
36780  fi
36781fi
36782
36783# Define the Makefile conditional
36784
36785
36786if test $coin_has_glpk != notGiven &&
36787                test $coin_has_glpk != skipping; then
36788  COIN_HAS_GLPK_TRUE=
36789  COIN_HAS_GLPK_FALSE='#'
36790else
36791  COIN_HAS_GLPK_TRUE='#'
36792  COIN_HAS_GLPK_FALSE=
36793fi
36794
36795
36796
36797
36798echo "$as_me:$LINENO: checking for COIN-OR package Sample" >&5
36799echo $ECHO_N "checking for COIN-OR package Sample... $ECHO_C" >&6
36800
36801coin_has_sample=notGiven
36802
36803# check if user wants to skip package in any case
36804if test x"$COIN_SKIP_PROJECTS" != x; then
36805  for dir in $COIN_SKIP_PROJECTS; do
36806    if test $dir = "Sample"; then
36807      coin_has_sample=skipping
36808    fi
36809  done
36810fi
36811
36812if test "$coin_has_sample" != skipping; then
36813
36814# Check whether --with-m4_tolower(Sample) or --without-m4_tolower(Sample) was given.
36815if test "${with_sample+set}" = set; then
36816  withval="$with_sample"
36817  if test "$withval" = no ; then
36818       coin_has_sample=skipping
36819     fi
36820
36821fi;
36822fi
36823
36824SAMPLE_LIBS=
36825SAMPLE_CFLAGS=
36826SAMPLE_DATA=
36827SAMPLE_DEPENDENCIES=
36828SAMPLE_PCLIBS=
36829SAMPLE_PCREQUIRES=
36830
36831
36832
36833
36834
36835
36836
36837
36838
36839#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
36840if test $coin_has_sample != skipping; then
36841
36842# Check whether --with-m4_tolower(Sample)-lib or --without-m4_tolower(Sample)-lib was given.
36843if test "${with_sample_lib+set}" = set; then
36844  withval="$with_sample_lib"
36845  if test "$withval" = no ; then
36846       coin_has_sample=skipping
36847     else
36848       coin_has_sample=yes
36849       SAMPLE_LIBS="$withval"
36850       SAMPLE_PCLIBS="$withval"
36851
36852       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
36853       if test -z "$PKG_CONFIG" ; then
36854         SAMPLE_LIBS_INSTALLED="$withval"
36855
36856       fi
36857     fi
36858
36859fi;
36860fi
36861
36862if test $coin_has_sample != skipping; then
36863
36864# Check whether --with-m4_tolower(Sample)-incdir or --without-m4_tolower(Sample)-incdir was given.
36865if test "${with_sample_incdir+set}" = set; then
36866  withval="$with_sample_incdir"
36867  if test "$withval" = no ; then
36868       coin_has_sample=skipping
36869     else
36870       coin_has_sample=yes
36871       SAMPLE_CFLAGS="-I`${CYGPATH_W} $withval`"
36872
36873       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
36874       if test -z "$PKG_CONFIG" ; then
36875         SAMPLE_CFLAGS_INSTALLED="$SAMPLE_CFLAGS"
36876
36877       fi
36878     fi
36879
36880fi;
36881fi
36882
36883if test $coin_has_sample != skipping; then
36884
36885# Check whether --with-m4_tolower(Sample)-datadir or --without-m4_tolower(Sample)-datadir was given.
36886if test "${with_sample_datadir+set}" = set; then
36887  withval="$with_sample_datadir"
36888  if test "$withval" = no ; then
36889       coin_has_sample=skipping
36890     else
36891       coin_has_sample=yes
36892       SAMPLE_DATA="$withval"
36893       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
36894       if test -z "$PKG_CONFIG" ; then
36895         SAMPLE_DATA_INSTALLED="$withval"
36896       fi
36897     fi
36898
36899fi;
36900fi
36901
36902if test $coin_has_sample = notGiven; then
36903  if test -n "$PKG_CONFIG" ; then
36904    # set search path for pkg-config
36905    # need to export variable to be sure that the following pkg-config gets these values
36906    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
36907    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
36908    export PKG_CONFIG_PATH
36909
36910    # let pkg-config do it's magic
36911
36912
36913
36914if test -n "$PKG_CONFIG" ; then
36915  if $PKG_CONFIG --exists "coindatasample"; then
36916    SAMPLE_VERSIONS=`$PKG_CONFIG --modversion "coindatasample" 2>/dev/null | tr '\n' ' '`
36917     cflags=`$PKG_CONFIG --cflags "coindatasample" 2>/dev/null`
36918    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
36919	# thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
36920	# but only do this if is not trivial
36921    if test "$CYGPATH_W" != "echo" ; then
36922      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
36923      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
36924    fi
36925    SAMPLE_CFLAGS="$cflags"
36926    SAMPLE_LIBS=`$PKG_CONFIG --libs "coindatasample" 2>/dev/null`
36927    SAMPLE_DATA=`$PKG_CONFIG --variable=datadir "coindatasample" 2>/dev/null`
36928     coin_has_sample=yes
36929        echo "$as_me:$LINENO: result: yes: $SAMPLE_VERSIONS" >&5
36930echo "${ECHO_T}yes: $SAMPLE_VERSIONS" >&6
36931
36932        # adjust linker flags for (i)cl compiler
36933        # 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)
36934        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
36935        then
36936          SAMPLE_LIBS=`echo " $SAMPLE_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
36937        fi
36938        SAMPLE_PCREQUIRES="coindatasample"
36939
36940        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in
36941
36942
36943
36944  else
36945    SAMPLE_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "coindatasample"`
36946      coin_has_sample=notGiven
36947        echo "$as_me:$LINENO: result: not given: $SAMPLE_PKG_ERRORS" >&5
36948echo "${ECHO_T}not given: $SAMPLE_PKG_ERRORS" >&6
36949
36950  fi
36951else
36952  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Sample without pkg-config\"" >&5
36953echo "$as_me: error: \"Cannot check for existance of module Sample without pkg-config\"" >&2;}
36954   { (exit 1); exit 1; }; }
36955fi
36956
36957
36958
36959
36960    # reset PKG_CONFIG_PATH variable
36961    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
36962    export PKG_CONFIG_PATH
36963
36964  else
36965    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
36966echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
36967
36968echo "$as_me:$LINENO: checking for COIN-OR package Sample (fallback)" >&5
36969echo $ECHO_N "checking for COIN-OR package Sample (fallback)... $ECHO_C" >&6
36970
36971coin_has_sample=notGiven
36972SAMPLE_LIBS=
36973SAMPLE_LIBS_INSTALLED=
36974SAMPLE_CFLAGS=
36975SAMPLE_CFLAGS_INSTALLED=
36976SAMPLE_DATA=
36977SAMPLE_DATA_INSTALLED=
36978SAMPLE_PCLIBS=
36979SAMPLE_PCREQUIRES=
36980
36981# initial list of dependencies is "coindatasample", but we need to filter out version number specifications (= x, <= x, >= x, != x)
36982projtoprocess="coindatasample"
36983
36984# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
36985# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
36986# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
36987# also, we setup the DATA variable
36988allproj=""
36989allpcfiles=""
36990allpcifiles=""
36991while test "x$projtoprocess" != x ; do
36992
36993  for proj in $projtoprocess ; do
36994    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
36995    pcfile=""
36996    save_IFS="$IFS"
36997    IFS=":"
36998    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
36999      # 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
37000      if test -r "$dir/${proj}-uninstalled.pc" ; then
37001        pcfile="$dir/$proj-uninstalled.pc"
37002        if test -r "$dir/${proj}.pc" ; then
37003          pcifile="$dir/${proj}.pc"
37004        else
37005          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
37006echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
37007          pcifile=
37008        fi
37009        break
37010      fi
37011    done
37012    IFS="$save_IFS"
37013
37014    if test "x$pcfile" != x ; then
37015      # read dependencies from $pcfile and filter it
37016      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ 	]\{0,\}[^ 	]\{1,\}//g'`
37017
37018      # add projrequires to the front of the list of projects that have to be processed next
37019      # at the same time, remove $proj from this list
37020      projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
37021
37022      # read DATA from $pcfile, if _DATA is still empty
37023      if test "x$SAMPLE_DATA" = x ; then
37024        projdatadir=
37025        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
37026        eval `sh -c "$pcfilemod"`
37027        SAMPLE_DATA="$projdatadir"
37028      fi
37029
37030      allproj="$allproj $proj"
37031      allpcfiles="$pcfile:$allpcfiles"
37032
37033    else
37034      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
37035echo "${ECHO_T}no, dependency $proj not available" >&6
37036      allproj=fail
37037      break 2
37038    fi
37039
37040    if test "x$pcifile" != x ; then
37041      allpcifiles="$pcifile:$allpcifiles"
37042
37043      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
37044      if test "x$SAMPLE_DATA_INSTALLED" = x ; then
37045        projdatadir=
37046        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
37047        eval `sh -c "$pcifilemod"`
37048        if test "${CYGPATH_W}" != "echo"; then
37049          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
37050        fi
37051        SAMPLE_DATA_INSTALLED="$projdatadir"
37052      fi
37053
37054    fi
37055
37056    break
37057  done
37058
37059  # remove spaces on begin of $projtoprocess
37060  projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
37061
37062done
37063
37064if test "$allproj" != fail ; then
37065
37066  # now go through the list of .pc files and assemble compiler and linker flags
37067  # important is here to obey the reverse order that has been setup before,
37068  # since then libraries that are required by several others should be after these other libraries
37069  pcfilesprocessed=""
37070
37071  save_IFS="$IFS"
37072  IFS=":"
37073  for pcfile in $allpcfiles ; do
37074
37075    # if $pcfile has been processed already, skip this round
37076    if test "x$pcfilesprocessed" != x ; then
37077      for pcfiledone in $pcfilesprocessed ; do
37078        if test "$pcfiledone" = "$pcfile" ; then
37079          continue 2
37080        fi
37081      done
37082    fi
37083
37084    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
37085    #   replace "Libs:" by "echo projlibs="
37086    #   replace "Cflags:" by "echo projcflags="
37087    #   remove every line starting with <some word>:
37088    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
37089
37090    # set projcflags and projlibs variables by running $pcfilemod
37091    # 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
37092    projcflags=
37093    projlibs=
37094    IFS="$save_IFS"
37095    eval `sh -c "$pcfilemod"`
37096    IFS=":"
37097
37098    # add CYGPATH_W cludge into include flags and set CFLAGS variable
37099    if test "${CYGPATH_W}" != "echo"; then
37100      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
37101    fi
37102    SAMPLE_CFLAGS="$projcflags $SAMPLE_CFLAGS"
37103
37104    # set LIBS variable
37105    SAMPLE_LIBS="$projlibs $SAMPLE_LIBS"
37106
37107    # remember that we have processed $pcfile
37108    pcfilesprocessed="$pcfilesprocessed:$pcfile"
37109
37110  done
37111  IFS="$save_IFS"
37112
37113
37114  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
37115  # important is here again to obey the reverse order that has been setup before,
37116  # since then libraries that are required by several others should be after these other libraries
37117  pcfilesprocessed=""
37118
37119  save_IFS="$IFS"
37120  IFS=":"
37121  for pcfile in $allpcifiles ; do
37122
37123    # if $pcfile has been processed already, skip this round
37124    if test "x$pcfilesprocessed" != x ; then
37125      for pcfiledone in $pcfilesprocessed ; do
37126        if test "$pcfiledone" = "$pcfile" ; then
37127          continue 2
37128        fi
37129      done
37130    fi
37131
37132    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
37133    #   replace "Libs:" by "echo projlibs="
37134    #   replace "Cflags:" by "echo projcflags="
37135    #   remove every line starting with <some word>:
37136    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
37137
37138    # set projcflags and projlibs variables by running $pcfilemod
37139    # 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
37140    projcflags=
37141    projlibs=
37142    IFS="$save_IFS"
37143    eval `sh -c "$pcfilemod"`
37144    IFS=":"
37145
37146    # add CYGPATH_W cludge into include flags and set CFLAGS variable
37147    if test "${CYGPATH_W}" != "echo"; then
37148      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
37149    fi
37150    SAMPLE_CFLAGS_INSTALLED="$projcflags $SAMPLE_CFLAGS_INSTALLED"
37151
37152    # set LIBS variable
37153    SAMPLE_LIBS_INSTALLED="$projlibs $SAMPLE_LIBS_INSTALLED"
37154
37155    # remember that we have processed $pcfile
37156    pcfilesprocessed="$pcfilesprocessed:$pcfile"
37157
37158  done
37159  IFS="$save_IFS"
37160
37161
37162  # finish up
37163  coin_has_sample=yes
37164  echo "$as_me:$LINENO: result: yes" >&5
37165echo "${ECHO_T}yes" >&6
37166
37167cat >>confdefs.h <<\_ACEOF
37168#define COIN_HAS_SAMPLE 1
37169_ACEOF
37170
37171
37172  # adjust linker flags for (i)cl compiler
37173  # 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),
37174  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
37175  #    everything of the form "-lname" by "libname.lib", and
37176  #    everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
37177  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
37178  then
37179    SAMPLE_LIBS=`echo " $SAMPLE_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
37180    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'`
37181  fi
37182
37183  SAMPLE_PCREQUIRES="coindatasample"
37184
37185
37186fi
37187
37188
37189
37190if test $coin_has_sample != notGiven &&
37191                test $coin_has_sample != skipping; then
37192  COIN_HAS_SAMPLE_TRUE=
37193  COIN_HAS_SAMPLE_FALSE='#'
37194else
37195  COIN_HAS_SAMPLE_TRUE='#'
37196  COIN_HAS_SAMPLE_FALSE=
37197fi
37198
37199
37200
37201  fi
37202
37203else
37204  echo "$as_me:$LINENO: result: $coin_has_sample" >&5
37205echo "${ECHO_T}$coin_has_sample" >&6
37206fi
37207
37208if test $coin_has_sample != skipping &&
37209   test $coin_has_sample != notGiven ; then
37210
37211cat >>confdefs.h <<\_ACEOF
37212#define COIN_HAS_SAMPLE 1
37213_ACEOF
37214
37215
37216  # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
37217if test "${enable_interpackage_dependencies+set}" = set; then
37218  enableval="$enable_interpackage_dependencies"
37219
37220else
37221  enable_interpackage_dependencies=yes
37222fi;
37223
37224  if test $enable_interpackage_dependencies = yes ; then
37225     # construct dependencies variables from LIBS variables
37226     # we add an extra space in LIBS so we can substitute out everything starting with " -"
37227     # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows
37228     # then remove everything of the form -xxx
37229     # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
37230     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'`
37231
37232  fi
37233
37234  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
37235    if test -n "$SAMPLE_CFLAGS" ; then
37236      { echo "$as_me:$LINENO: Sample CFLAGS are $SAMPLE_CFLAGS" >&5
37237echo "$as_me: Sample CFLAGS are $SAMPLE_CFLAGS" >&6;}
37238    fi
37239    if test -n "$SAMPLE_LIBS" ; then
37240      { echo "$as_me:$LINENO: Sample LIBS   are $SAMPLE_LIBS" >&5
37241echo "$as_me: Sample LIBS   are $SAMPLE_LIBS" >&6;}
37242    fi
37243    if test -n "$SAMPLE_DEPENDENCIES" ; then
37244      { echo "$as_me:$LINENO: Sample DEPENDENCIES are $SAMPLE_DEPENDENCIES" >&5
37245echo "$as_me: Sample DEPENDENCIES are $SAMPLE_DEPENDENCIES" >&6;}
37246    fi
37247    if test -n "$SAMPLE_DATA" ; then
37248      { echo "$as_me:$LINENO: Sample DATA   is  $SAMPLE_DATA" >&5
37249echo "$as_me: Sample DATA   is  $SAMPLE_DATA" >&6;}
37250    fi
37251    if test -n "$SAMPLE_PCLIBS" ; then
37252      { echo "$as_me:$LINENO: Sample PCLIBS are $SAMPLE_PCLIBS" >&5
37253echo "$as_me: Sample PCLIBS are $SAMPLE_PCLIBS" >&6;}
37254    fi
37255    if test -n "$SAMPLE_PCREQUIRES" ; then
37256      { echo "$as_me:$LINENO: Sample PCREQUIRES are $SAMPLE_PCREQUIRES" >&5
37257echo "$as_me: Sample PCREQUIRES are $SAMPLE_PCREQUIRES" >&6;}
37258    fi
37259
37260  fi
37261fi
37262
37263# Define the Makefile conditional
37264
37265
37266if test $coin_has_sample != notGiven &&
37267                test $coin_has_sample != skipping; then
37268  COIN_HAS_SAMPLE_TRUE=
37269  COIN_HAS_SAMPLE_FALSE='#'
37270else
37271  COIN_HAS_SAMPLE_TRUE='#'
37272  COIN_HAS_SAMPLE_FALSE=
37273fi
37274
37275
37276
37277
37278echo "$as_me:$LINENO: checking for COIN-OR package Netlib" >&5
37279echo $ECHO_N "checking for COIN-OR package Netlib... $ECHO_C" >&6
37280
37281coin_has_netlib=notGiven
37282
37283# check if user wants to skip package in any case
37284if test x"$COIN_SKIP_PROJECTS" != x; then
37285  for dir in $COIN_SKIP_PROJECTS; do
37286    if test $dir = "Netlib"; then
37287      coin_has_netlib=skipping
37288    fi
37289  done
37290fi
37291
37292if test "$coin_has_netlib" != skipping; then
37293
37294# Check whether --with-m4_tolower(Netlib) or --without-m4_tolower(Netlib) was given.
37295if test "${with_netlib+set}" = set; then
37296  withval="$with_netlib"
37297  if test "$withval" = no ; then
37298       coin_has_netlib=skipping
37299     fi
37300
37301fi;
37302fi
37303
37304NETLIB_LIBS=
37305NETLIB_CFLAGS=
37306NETLIB_DATA=
37307NETLIB_DEPENDENCIES=
37308NETLIB_PCLIBS=
37309NETLIB_PCREQUIRES=
37310
37311
37312
37313
37314
37315
37316
37317
37318
37319#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
37320if test $coin_has_netlib != skipping; then
37321
37322# Check whether --with-m4_tolower(Netlib)-lib or --without-m4_tolower(Netlib)-lib was given.
37323if test "${with_netlib_lib+set}" = set; then
37324  withval="$with_netlib_lib"
37325  if test "$withval" = no ; then
37326       coin_has_netlib=skipping
37327     else
37328       coin_has_netlib=yes
37329       NETLIB_LIBS="$withval"
37330       NETLIB_PCLIBS="$withval"
37331
37332       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
37333       if test -z "$PKG_CONFIG" ; then
37334         NETLIB_LIBS_INSTALLED="$withval"
37335
37336       fi
37337     fi
37338
37339fi;
37340fi
37341
37342if test $coin_has_netlib != skipping; then
37343
37344# Check whether --with-m4_tolower(Netlib)-incdir or --without-m4_tolower(Netlib)-incdir was given.
37345if test "${with_netlib_incdir+set}" = set; then
37346  withval="$with_netlib_incdir"
37347  if test "$withval" = no ; then
37348       coin_has_netlib=skipping
37349     else
37350       coin_has_netlib=yes
37351       NETLIB_CFLAGS="-I`${CYGPATH_W} $withval`"
37352
37353       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
37354       if test -z "$PKG_CONFIG" ; then
37355         NETLIB_CFLAGS_INSTALLED="$NETLIB_CFLAGS"
37356
37357       fi
37358     fi
37359
37360fi;
37361fi
37362
37363if test $coin_has_netlib != skipping; then
37364
37365# Check whether --with-m4_tolower(Netlib)-datadir or --without-m4_tolower(Netlib)-datadir was given.
37366if test "${with_netlib_datadir+set}" = set; then
37367  withval="$with_netlib_datadir"
37368  if test "$withval" = no ; then
37369       coin_has_netlib=skipping
37370     else
37371       coin_has_netlib=yes
37372       NETLIB_DATA="$withval"
37373       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
37374       if test -z "$PKG_CONFIG" ; then
37375         NETLIB_DATA_INSTALLED="$withval"
37376       fi
37377     fi
37378
37379fi;
37380fi
37381
37382if test $coin_has_netlib = notGiven; then
37383  if test -n "$PKG_CONFIG" ; then
37384    # set search path for pkg-config
37385    # need to export variable to be sure that the following pkg-config gets these values
37386    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
37387    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
37388    export PKG_CONFIG_PATH
37389
37390    # let pkg-config do it's magic
37391
37392
37393
37394if test -n "$PKG_CONFIG" ; then
37395  if $PKG_CONFIG --exists "coindatanetlib"; then
37396    NETLIB_VERSIONS=`$PKG_CONFIG --modversion "coindatanetlib" 2>/dev/null | tr '\n' ' '`
37397     cflags=`$PKG_CONFIG --cflags "coindatanetlib" 2>/dev/null`
37398    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
37399	# thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
37400	# but only do this if is not trivial
37401    if test "$CYGPATH_W" != "echo" ; then
37402      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
37403      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
37404    fi
37405    NETLIB_CFLAGS="$cflags"
37406    NETLIB_LIBS=`$PKG_CONFIG --libs "coindatanetlib" 2>/dev/null`
37407    NETLIB_DATA=`$PKG_CONFIG --variable=datadir "coindatanetlib" 2>/dev/null`
37408     coin_has_netlib=yes
37409        echo "$as_me:$LINENO: result: yes: $NETLIB_VERSIONS" >&5
37410echo "${ECHO_T}yes: $NETLIB_VERSIONS" >&6
37411
37412        # adjust linker flags for (i)cl compiler
37413        # 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)
37414        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
37415        then
37416          NETLIB_LIBS=`echo " $NETLIB_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
37417        fi
37418        NETLIB_PCREQUIRES="coindatanetlib"
37419
37420        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in
37421
37422
37423
37424  else
37425    NETLIB_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "coindatanetlib"`
37426      coin_has_netlib=notGiven
37427        echo "$as_me:$LINENO: result: not given: $NETLIB_PKG_ERRORS" >&5
37428echo "${ECHO_T}not given: $NETLIB_PKG_ERRORS" >&6
37429
37430  fi
37431else
37432  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Netlib without pkg-config\"" >&5
37433echo "$as_me: error: \"Cannot check for existance of module Netlib without pkg-config\"" >&2;}
37434   { (exit 1); exit 1; }; }
37435fi
37436
37437
37438
37439
37440    # reset PKG_CONFIG_PATH variable
37441    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
37442    export PKG_CONFIG_PATH
37443
37444  else
37445    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
37446echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
37447
37448echo "$as_me:$LINENO: checking for COIN-OR package Netlib (fallback)" >&5
37449echo $ECHO_N "checking for COIN-OR package Netlib (fallback)... $ECHO_C" >&6
37450
37451coin_has_netlib=notGiven
37452NETLIB_LIBS=
37453NETLIB_LIBS_INSTALLED=
37454NETLIB_CFLAGS=
37455NETLIB_CFLAGS_INSTALLED=
37456NETLIB_DATA=
37457NETLIB_DATA_INSTALLED=
37458NETLIB_PCLIBS=
37459NETLIB_PCREQUIRES=
37460
37461# initial list of dependencies is "coindatanetlib", but we need to filter out version number specifications (= x, <= x, >= x, != x)
37462projtoprocess="coindatanetlib"
37463
37464# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
37465# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
37466# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
37467# also, we setup the DATA variable
37468allproj=""
37469allpcfiles=""
37470allpcifiles=""
37471while test "x$projtoprocess" != x ; do
37472
37473  for proj in $projtoprocess ; do
37474    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
37475    pcfile=""
37476    save_IFS="$IFS"
37477    IFS=":"
37478    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
37479      # 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
37480      if test -r "$dir/${proj}-uninstalled.pc" ; then
37481        pcfile="$dir/$proj-uninstalled.pc"
37482        if test -r "$dir/${proj}.pc" ; then
37483          pcifile="$dir/${proj}.pc"
37484        else
37485          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
37486echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
37487          pcifile=
37488        fi
37489        break
37490      fi
37491    done
37492    IFS="$save_IFS"
37493
37494    if test "x$pcfile" != x ; then
37495      # read dependencies from $pcfile and filter it
37496      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[ 	]\{0,\}[^ 	]\{1,\}//g'`
37497
37498      # add projrequires to the front of the list of projects that have to be processed next
37499      # at the same time, remove $proj from this list
37500      projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
37501
37502      # read DATA from $pcfile, if _DATA is still empty
37503      if test "x$NETLIB_DATA" = x ; then
37504        projdatadir=
37505        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
37506        eval `sh -c "$pcfilemod"`
37507        NETLIB_DATA="$projdatadir"
37508      fi
37509
37510      allproj="$allproj $proj"
37511      allpcfiles="$pcfile:$allpcfiles"
37512
37513    else
37514      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
37515echo "${ECHO_T}no, dependency $proj not available" >&6
37516      allproj=fail
37517      break 2
37518    fi
37519
37520    if test "x$pcifile" != x ; then
37521      allpcifiles="$pcifile:$allpcifiles"
37522
37523      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
37524      if test "x$NETLIB_DATA_INSTALLED" = x ; then
37525        projdatadir=
37526        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
37527        eval `sh -c "$pcifilemod"`
37528        if test "${CYGPATH_W}" != "echo"; then
37529          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
37530        fi
37531        NETLIB_DATA_INSTALLED="$projdatadir"
37532      fi
37533
37534    fi
37535
37536    break
37537  done
37538
37539  # remove spaces on begin of $projtoprocess
37540  projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
37541
37542done
37543
37544if test "$allproj" != fail ; then
37545
37546  # now go through the list of .pc files and assemble compiler and linker flags
37547  # important is here to obey the reverse order that has been setup before,
37548  # since then libraries that are required by several others should be after these other libraries
37549  pcfilesprocessed=""
37550
37551  save_IFS="$IFS"
37552  IFS=":"
37553  for pcfile in $allpcfiles ; do
37554
37555    # if $pcfile has been processed already, skip this round
37556    if test "x$pcfilesprocessed" != x ; then
37557      for pcfiledone in $pcfilesprocessed ; do
37558        if test "$pcfiledone" = "$pcfile" ; then
37559          continue 2
37560        fi
37561      done
37562    fi
37563
37564    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
37565    #   replace "Libs:" by "echo projlibs="
37566    #   replace "Cflags:" by "echo projcflags="
37567    #   remove every line starting with <some word>:
37568    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
37569
37570    # set projcflags and projlibs variables by running $pcfilemod
37571    # 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
37572    projcflags=
37573    projlibs=
37574    IFS="$save_IFS"
37575    eval `sh -c "$pcfilemod"`
37576    IFS=":"
37577
37578    # add CYGPATH_W cludge into include flags and set CFLAGS variable
37579    if test "${CYGPATH_W}" != "echo"; then
37580      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
37581    fi
37582    NETLIB_CFLAGS="$projcflags $NETLIB_CFLAGS"
37583
37584    # set LIBS variable
37585    NETLIB_LIBS="$projlibs $NETLIB_LIBS"
37586
37587    # remember that we have processed $pcfile
37588    pcfilesprocessed="$pcfilesprocessed:$pcfile"
37589
37590  done
37591  IFS="$save_IFS"
37592
37593
37594  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
37595  # important is here again to obey the reverse order that has been setup before,
37596  # since then libraries that are required by several others should be after these other libraries
37597  pcfilesprocessed=""
37598
37599  save_IFS="$IFS"
37600  IFS=":"
37601  for pcfile in $allpcifiles ; do
37602
37603    # if $pcfile has been processed already, skip this round
37604    if test "x$pcfilesprocessed" != x ; then
37605      for pcfiledone in $pcfilesprocessed ; do
37606        if test "$pcfiledone" = "$pcfile" ; then
37607          continue 2
37608        fi
37609      done
37610    fi
37611
37612    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
37613    #   replace "Libs:" by "echo projlibs="
37614    #   replace "Cflags:" by "echo projcflags="
37615    #   remove every line starting with <some word>:
37616    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
37617
37618    # set projcflags and projlibs variables by running $pcfilemod
37619    # 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
37620    projcflags=
37621    projlibs=
37622    IFS="$save_IFS"
37623    eval `sh -c "$pcfilemod"`
37624    IFS=":"
37625
37626    # add CYGPATH_W cludge into include flags and set CFLAGS variable
37627    if test "${CYGPATH_W}" != "echo"; then
37628      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
37629    fi
37630    NETLIB_CFLAGS_INSTALLED="$projcflags $NETLIB_CFLAGS_INSTALLED"
37631
37632    # set LIBS variable
37633    NETLIB_LIBS_INSTALLED="$projlibs $NETLIB_LIBS_INSTALLED"
37634
37635    # remember that we have processed $pcfile
37636    pcfilesprocessed="$pcfilesprocessed:$pcfile"
37637
37638  done
37639  IFS="$save_IFS"
37640
37641
37642  # finish up
37643  coin_has_netlib=yes
37644  echo "$as_me:$LINENO: result: yes" >&5
37645echo "${ECHO_T}yes" >&6
37646
37647cat >>confdefs.h <<\_ACEOF
37648#define COIN_HAS_NETLIB 1
37649_ACEOF
37650
37651
37652  # adjust linker flags for (i)cl compiler
37653  # 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),
37654  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
37655  #    everything of the form "-lname" by "libname.lib", and
37656  #    everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
37657  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
37658  then
37659    NETLIB_LIBS=`echo " $NETLIB_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
37660    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'`
37661  fi
37662
37663  NETLIB_PCREQUIRES="coindatanetlib"
37664
37665
37666fi
37667
37668
37669
37670if test $coin_has_netlib != notGiven &&
37671                test $coin_has_netlib != skipping; then
37672  COIN_HAS_NETLIB_TRUE=
37673  COIN_HAS_NETLIB_FALSE='#'
37674else
37675  COIN_HAS_NETLIB_TRUE='#'
37676  COIN_HAS_NETLIB_FALSE=
37677fi
37678
37679
37680
37681  fi
37682
37683else
37684  echo "$as_me:$LINENO: result: $coin_has_netlib" >&5
37685echo "${ECHO_T}$coin_has_netlib" >&6
37686fi
37687
37688if test $coin_has_netlib != skipping &&
37689   test $coin_has_netlib != notGiven ; then
37690
37691cat >>confdefs.h <<\_ACEOF
37692#define COIN_HAS_NETLIB 1
37693_ACEOF
37694
37695
37696  # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
37697if test "${enable_interpackage_dependencies+set}" = set; then
37698  enableval="$enable_interpackage_dependencies"
37699
37700else
37701  enable_interpackage_dependencies=yes
37702fi;
37703
37704  if test $enable_interpackage_dependencies = yes ; then
37705     # construct dependencies variables from LIBS variables
37706     # we add an extra space in LIBS so we can substitute out everything starting with " -"
37707     # remove everything of the form -framework xxx as used on Mac and mkl* and libiomp5* and wsock32.lib as used on Windows
37708     # then remove everything of the form -xxx
37709     # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
37710     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'`
37711
37712  fi
37713
37714  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
37715    if test -n "$NETLIB_CFLAGS" ; then
37716      { echo "$as_me:$LINENO: Netlib CFLAGS are $NETLIB_CFLAGS" >&5
37717echo "$as_me: Netlib CFLAGS are $NETLIB_CFLAGS" >&6;}
37718    fi
37719    if test -n "$NETLIB_LIBS" ; then
37720      { echo "$as_me:$LINENO: Netlib LIBS   are $NETLIB_LIBS" >&5
37721echo "$as_me: Netlib LIBS   are $NETLIB_LIBS" >&6;}
37722    fi
37723    if test -n "$NETLIB_DEPENDENCIES" ; then
37724      { echo "$as_me:$LINENO: Netlib DEPENDENCIES are $NETLIB_DEPENDENCIES" >&5
37725echo "$as_me: Netlib DEPENDENCIES are $NETLIB_DEPENDENCIES" >&6;}
37726    fi
37727    if test -n "$NETLIB_DATA" ; then
37728      { echo "$as_me:$LINENO: Netlib DATA   is  $NETLIB_DATA" >&5
37729echo "$as_me: Netlib DATA   is  $NETLIB_DATA" >&6;}
37730    fi
37731    if test -n "$NETLIB_PCLIBS" ; then
37732      { echo "$as_me:$LINENO: Netlib PCLIBS are $NETLIB_PCLIBS" >&5
37733echo "$as_me: Netlib PCLIBS are $NETLIB_PCLIBS" >&6;}
37734    fi
37735    if test -n "$NETLIB_PCREQUIRES" ; then
37736      { echo "$as_me:$LINENO: Netlib PCREQUIRES are $NETLIB_PCREQUIRES" >&5
37737echo "$as_me: Netlib PCREQUIRES are $NETLIB_PCREQUIRES" >&6;}
37738    fi
37739
37740  fi
37741fi
37742
37743# Define the Makefile conditional
37744
37745
37746if test $coin_has_netlib != notGiven &&
37747                test $coin_has_netlib != skipping; then
37748  COIN_HAS_NETLIB_TRUE=
37749  COIN_HAS_NETLIB_FALSE='#'
37750else
37751  COIN_HAS_NETLIB_TRUE='#'
37752  COIN_HAS_NETLIB_FALSE=
37753fi
37754
37755
37756
37757
37758
37759
37760
37761
37762
37763
37764coin_has_zlib=no
37765
37766# Check whether --enable-zlib or --disable-zlib was given.
37767if test "${enable_zlib+set}" = set; then
37768  enableval="$enable_zlib"
37769  coin_enable_zlib=$enableval
37770else
37771  coin_enable_zlib=yes
37772fi;
37773
37774if test $coin_enable_zlib = yes; then
37775  #if test x"" = x; then
37776#  hdr="#include <zlib.h>"
37777#else
37778#  hdr=""
37779#fi
37780#AC_CHECK_HEADERS([zlib.h],[coin_has_zlib=yes],[],[$hdr])
37781
37782for ac_header in zlib.h
37783do
37784as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37785if eval "test \"\${$as_ac_Header+set}\" = set"; then
37786  echo "$as_me:$LINENO: checking for $ac_header" >&5
37787echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37788if eval "test \"\${$as_ac_Header+set}\" = set"; then
37789  echo $ECHO_N "(cached) $ECHO_C" >&6
37790fi
37791echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37792echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37793else
37794  # Is the header compilable?
37795echo "$as_me:$LINENO: checking $ac_header usability" >&5
37796echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37797cat >conftest.$ac_ext <<_ACEOF
37798/* confdefs.h.  */
37799_ACEOF
37800cat confdefs.h >>conftest.$ac_ext
37801cat >>conftest.$ac_ext <<_ACEOF
37802/* end confdefs.h.  */
37803$ac_includes_default
37804#include <$ac_header>
37805_ACEOF
37806rm -f conftest.$ac_objext
37807if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37808  (eval $ac_compile) 2>conftest.er1
37809  ac_status=$?
37810  grep -v '^ *+' conftest.er1 >conftest.err
37811  rm -f conftest.er1
37812  cat conftest.err >&5
37813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37814  (exit $ac_status); } &&
37815	 { ac_try='test -z "$ac_cxx_werror_flag"
37816			 || test ! -s conftest.err'
37817  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37818  (eval $ac_try) 2>&5
37819  ac_status=$?
37820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37821  (exit $ac_status); }; } &&
37822	 { ac_try='test -s conftest.$ac_objext'
37823  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37824  (eval $ac_try) 2>&5
37825  ac_status=$?
37826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37827  (exit $ac_status); }; }; then
37828  ac_header_compiler=yes
37829else
37830  echo "$as_me: failed program was:" >&5
37831sed 's/^/| /' conftest.$ac_ext >&5
37832
37833ac_header_compiler=no
37834fi
37835rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37836echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37837echo "${ECHO_T}$ac_header_compiler" >&6
37838
37839# Is the header present?
37840echo "$as_me:$LINENO: checking $ac_header presence" >&5
37841echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37842cat >conftest.$ac_ext <<_ACEOF
37843/* confdefs.h.  */
37844_ACEOF
37845cat confdefs.h >>conftest.$ac_ext
37846cat >>conftest.$ac_ext <<_ACEOF
37847/* end confdefs.h.  */
37848#include <$ac_header>
37849_ACEOF
37850if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37851  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37852  ac_status=$?
37853  grep -v '^ *+' conftest.er1 >conftest.err
37854  rm -f conftest.er1
37855  cat conftest.err >&5
37856  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37857  (exit $ac_status); } >/dev/null; then
37858  if test -s conftest.err; then
37859    ac_cpp_err=$ac_cxx_preproc_warn_flag
37860    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
37861  else
37862    ac_cpp_err=
37863  fi
37864else
37865  ac_cpp_err=yes
37866fi
37867if test -z "$ac_cpp_err"; then
37868  ac_header_preproc=yes
37869else
37870  echo "$as_me: failed program was:" >&5
37871sed 's/^/| /' conftest.$ac_ext >&5
37872
37873  ac_header_preproc=no
37874fi
37875rm -f conftest.err conftest.$ac_ext
37876echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37877echo "${ECHO_T}$ac_header_preproc" >&6
37878
37879# So?  What about this header?
37880case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
37881  yes:no: )
37882    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37883echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37884    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37885echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37886    ac_header_preproc=yes
37887    ;;
37888  no:yes:* )
37889    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37890echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37891    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
37892echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
37893    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37894echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37895    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
37896echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
37897    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37898echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37899    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37900echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37901    (
37902      cat <<\_ASBOX
37903## ---------------------------------------------------- ##
37904## Report this to http://projects.coin-or.org/CoinUtils ##
37905## ---------------------------------------------------- ##
37906_ASBOX
37907    ) |
37908      sed "s/^/$as_me: WARNING:     /" >&2
37909    ;;
37910esac
37911echo "$as_me:$LINENO: checking for $ac_header" >&5
37912echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37913if eval "test \"\${$as_ac_Header+set}\" = set"; then
37914  echo $ECHO_N "(cached) $ECHO_C" >&6
37915else
37916  eval "$as_ac_Header=\$ac_header_preproc"
37917fi
37918echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37919echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37920
37921fi
37922if test `eval echo '${'$as_ac_Header'}'` = yes; then
37923  cat >>confdefs.h <<_ACEOF
37924#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37925_ACEOF
37926 coin_has_zlib=yes
37927fi
37928
37929done
37930
37931
37932
37933  if test $coin_has_zlib = yes; then
37934    echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
37935echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6
37936if test "${ac_cv_lib_z_gzopen+set}" = set; then
37937  echo $ECHO_N "(cached) $ECHO_C" >&6
37938else
37939  ac_check_lib_save_LIBS=$LIBS
37940LIBS="-lz  $LIBS"
37941cat >conftest.$ac_ext <<_ACEOF
37942/* confdefs.h.  */
37943_ACEOF
37944cat confdefs.h >>conftest.$ac_ext
37945cat >>conftest.$ac_ext <<_ACEOF
37946/* end confdefs.h.  */
37947
37948/* Override any gcc2 internal prototype to avoid an error.  */
37949#ifdef __cplusplus
37950extern "C"
37951#endif
37952/* We use char because int might match the return type of a gcc2
37953   builtin and then its argument prototype would still apply.  */
37954char gzopen ();
37955#ifdef F77_DUMMY_MAIN
37956
37957#  ifdef __cplusplus
37958     extern "C"
37959#  endif
37960   int F77_DUMMY_MAIN() { return 1; }
37961
37962#endif
37963int
37964main ()
37965{
37966gzopen ();
37967  ;
37968  return 0;
37969}
37970_ACEOF
37971rm -f conftest.$ac_objext conftest$ac_exeext
37972if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37973  (eval $ac_link) 2>conftest.er1
37974  ac_status=$?
37975  grep -v '^ *+' conftest.er1 >conftest.err
37976  rm -f conftest.er1
37977  cat conftest.err >&5
37978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37979  (exit $ac_status); } &&
37980	 { ac_try='test -z "$ac_cxx_werror_flag"
37981			 || test ! -s conftest.err'
37982  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37983  (eval $ac_try) 2>&5
37984  ac_status=$?
37985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37986  (exit $ac_status); }; } &&
37987	 { ac_try='test -s conftest$ac_exeext'
37988  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37989  (eval $ac_try) 2>&5
37990  ac_status=$?
37991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
37992  (exit $ac_status); }; }; then
37993  ac_cv_lib_z_gzopen=yes
37994else
37995  echo "$as_me: failed program was:" >&5
37996sed 's/^/| /' conftest.$ac_ext >&5
37997
37998ac_cv_lib_z_gzopen=no
37999fi
38000rm -f conftest.err conftest.$ac_objext \
38001      conftest$ac_exeext conftest.$ac_ext
38002LIBS=$ac_check_lib_save_LIBS
38003fi
38004echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
38005echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6
38006if test $ac_cv_lib_z_gzopen = yes; then
38007  :
38008else
38009  coin_has_zlib=no
38010fi
38011
38012  fi
38013
38014  if test $coin_has_zlib = yes; then
38015
38016                    COINUTILSLIB_LIBS="-lz $COINUTILSLIB_LIBS"
38017                    COINUTILSLIB_PCLIBS="-lz $COINUTILSLIB_PCLIBS"
38018                    COINUTILSLIB_LIBS_INSTALLED="-lz $COINUTILSLIB_LIBS_INSTALLED"
38019
38020
38021cat >>confdefs.h <<\_ACEOF
38022#define COIN_HAS_ZLIB 1
38023_ACEOF
38024
38025  fi
38026fi
38027
38028
38029
38030if test x$coin_has_zlib = xyes; then
38031  COIN_HAS_ZLIB_TRUE=
38032  COIN_HAS_ZLIB_FALSE='#'
38033else
38034  COIN_HAS_ZLIB_TRUE='#'
38035  COIN_HAS_ZLIB_FALSE=
38036fi
38037
38038
38039
38040
38041
38042
38043
38044
38045# Check whether --enable-bzlib or --disable-bzlib was given.
38046if test "${enable_bzlib+set}" = set; then
38047  enableval="$enable_bzlib"
38048  coin_enable_bzlib=$enableval
38049else
38050  coin_enable_bzlib=yes
38051fi;
38052
38053coin_has_bzlib=no
38054if test $coin_enable_bzlib = yes; then
38055  #if test x"" = x; then
38056#  hdr="#include <bzlib.h>"
38057#else
38058#  hdr=""
38059#fi
38060#AC_CHECK_HEADERS([bzlib.h],[coin_has_bzlib=yes],[],[$hdr])
38061
38062for ac_header in bzlib.h
38063do
38064as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38065if eval "test \"\${$as_ac_Header+set}\" = set"; then
38066  echo "$as_me:$LINENO: checking for $ac_header" >&5
38067echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38068if eval "test \"\${$as_ac_Header+set}\" = set"; then
38069  echo $ECHO_N "(cached) $ECHO_C" >&6
38070fi
38071echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38072echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38073else
38074  # Is the header compilable?
38075echo "$as_me:$LINENO: checking $ac_header usability" >&5
38076echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38077cat >conftest.$ac_ext <<_ACEOF
38078/* confdefs.h.  */
38079_ACEOF
38080cat confdefs.h >>conftest.$ac_ext
38081cat >>conftest.$ac_ext <<_ACEOF
38082/* end confdefs.h.  */
38083$ac_includes_default
38084#include <$ac_header>
38085_ACEOF
38086rm -f conftest.$ac_objext
38087if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38088  (eval $ac_compile) 2>conftest.er1
38089  ac_status=$?
38090  grep -v '^ *+' conftest.er1 >conftest.err
38091  rm -f conftest.er1
38092  cat conftest.err >&5
38093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38094  (exit $ac_status); } &&
38095	 { ac_try='test -z "$ac_cxx_werror_flag"
38096			 || test ! -s conftest.err'
38097  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38098  (eval $ac_try) 2>&5
38099  ac_status=$?
38100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38101  (exit $ac_status); }; } &&
38102	 { ac_try='test -s conftest.$ac_objext'
38103  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38104  (eval $ac_try) 2>&5
38105  ac_status=$?
38106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38107  (exit $ac_status); }; }; then
38108  ac_header_compiler=yes
38109else
38110  echo "$as_me: failed program was:" >&5
38111sed 's/^/| /' conftest.$ac_ext >&5
38112
38113ac_header_compiler=no
38114fi
38115rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38116echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38117echo "${ECHO_T}$ac_header_compiler" >&6
38118
38119# Is the header present?
38120echo "$as_me:$LINENO: checking $ac_header presence" >&5
38121echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38122cat >conftest.$ac_ext <<_ACEOF
38123/* confdefs.h.  */
38124_ACEOF
38125cat confdefs.h >>conftest.$ac_ext
38126cat >>conftest.$ac_ext <<_ACEOF
38127/* end confdefs.h.  */
38128#include <$ac_header>
38129_ACEOF
38130if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38131  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38132  ac_status=$?
38133  grep -v '^ *+' conftest.er1 >conftest.err
38134  rm -f conftest.er1
38135  cat conftest.err >&5
38136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38137  (exit $ac_status); } >/dev/null; then
38138  if test -s conftest.err; then
38139    ac_cpp_err=$ac_cxx_preproc_warn_flag
38140    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
38141  else
38142    ac_cpp_err=
38143  fi
38144else
38145  ac_cpp_err=yes
38146fi
38147if test -z "$ac_cpp_err"; then
38148  ac_header_preproc=yes
38149else
38150  echo "$as_me: failed program was:" >&5
38151sed 's/^/| /' conftest.$ac_ext >&5
38152
38153  ac_header_preproc=no
38154fi
38155rm -f conftest.err conftest.$ac_ext
38156echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38157echo "${ECHO_T}$ac_header_preproc" >&6
38158
38159# So?  What about this header?
38160case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
38161  yes:no: )
38162    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38163echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38164    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38165echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38166    ac_header_preproc=yes
38167    ;;
38168  no:yes:* )
38169    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38170echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38171    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
38172echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
38173    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38174echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38175    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
38176echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
38177    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38178echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38179    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38180echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38181    (
38182      cat <<\_ASBOX
38183## ---------------------------------------------------- ##
38184## Report this to http://projects.coin-or.org/CoinUtils ##
38185## ---------------------------------------------------- ##
38186_ASBOX
38187    ) |
38188      sed "s/^/$as_me: WARNING:     /" >&2
38189    ;;
38190esac
38191echo "$as_me:$LINENO: checking for $ac_header" >&5
38192echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38193if eval "test \"\${$as_ac_Header+set}\" = set"; then
38194  echo $ECHO_N "(cached) $ECHO_C" >&6
38195else
38196  eval "$as_ac_Header=\$ac_header_preproc"
38197fi
38198echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38199echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38200
38201fi
38202if test `eval echo '${'$as_ac_Header'}'` = yes; then
38203  cat >>confdefs.h <<_ACEOF
38204#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38205_ACEOF
38206 coin_has_bzlib=yes
38207fi
38208
38209done
38210
38211
38212
38213  if test $coin_has_bzlib = yes; then
38214    echo "$as_me:$LINENO: checking for BZ2_bzReadOpen in -lbz2" >&5
38215echo $ECHO_N "checking for BZ2_bzReadOpen in -lbz2... $ECHO_C" >&6
38216if test "${ac_cv_lib_bz2_BZ2_bzReadOpen+set}" = set; then
38217  echo $ECHO_N "(cached) $ECHO_C" >&6
38218else
38219  ac_check_lib_save_LIBS=$LIBS
38220LIBS="-lbz2  $LIBS"
38221cat >conftest.$ac_ext <<_ACEOF
38222/* confdefs.h.  */
38223_ACEOF
38224cat confdefs.h >>conftest.$ac_ext
38225cat >>conftest.$ac_ext <<_ACEOF
38226/* end confdefs.h.  */
38227
38228/* Override any gcc2 internal prototype to avoid an error.  */
38229#ifdef __cplusplus
38230extern "C"
38231#endif
38232/* We use char because int might match the return type of a gcc2
38233   builtin and then its argument prototype would still apply.  */
38234char BZ2_bzReadOpen ();
38235#ifdef F77_DUMMY_MAIN
38236
38237#  ifdef __cplusplus
38238     extern "C"
38239#  endif
38240   int F77_DUMMY_MAIN() { return 1; }
38241
38242#endif
38243int
38244main ()
38245{
38246BZ2_bzReadOpen ();
38247  ;
38248  return 0;
38249}
38250_ACEOF
38251rm -f conftest.$ac_objext conftest$ac_exeext
38252if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38253  (eval $ac_link) 2>conftest.er1
38254  ac_status=$?
38255  grep -v '^ *+' conftest.er1 >conftest.err
38256  rm -f conftest.er1
38257  cat conftest.err >&5
38258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38259  (exit $ac_status); } &&
38260	 { ac_try='test -z "$ac_cxx_werror_flag"
38261			 || test ! -s conftest.err'
38262  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38263  (eval $ac_try) 2>&5
38264  ac_status=$?
38265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38266  (exit $ac_status); }; } &&
38267	 { ac_try='test -s conftest$ac_exeext'
38268  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38269  (eval $ac_try) 2>&5
38270  ac_status=$?
38271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38272  (exit $ac_status); }; }; then
38273  ac_cv_lib_bz2_BZ2_bzReadOpen=yes
38274else
38275  echo "$as_me: failed program was:" >&5
38276sed 's/^/| /' conftest.$ac_ext >&5
38277
38278ac_cv_lib_bz2_BZ2_bzReadOpen=no
38279fi
38280rm -f conftest.err conftest.$ac_objext \
38281      conftest$ac_exeext conftest.$ac_ext
38282LIBS=$ac_check_lib_save_LIBS
38283fi
38284echo "$as_me:$LINENO: result: $ac_cv_lib_bz2_BZ2_bzReadOpen" >&5
38285echo "${ECHO_T}$ac_cv_lib_bz2_BZ2_bzReadOpen" >&6
38286if test $ac_cv_lib_bz2_BZ2_bzReadOpen = yes; then
38287  :
38288else
38289  coin_has_bzlib=no
38290fi
38291
38292  fi
38293
38294  if test $coin_has_bzlib = yes; then
38295
38296                    COINUTILSLIB_LIBS="-lbz2 $COINUTILSLIB_LIBS"
38297                    COINUTILSLIB_PCLIBS="-lbz2 $COINUTILSLIB_PCLIBS"
38298                    COINUTILSLIB_LIBS_INSTALLED="-lbz2 $COINUTILSLIB_LIBS_INSTALLED"
38299
38300
38301cat >>confdefs.h <<\_ACEOF
38302#define COIN_HAS_BZLIB 1
38303_ACEOF
38304
38305  fi
38306fi
38307
38308# Check whether --enable-gnu-packages or --disable-gnu-packages was given.
38309if test "${enable_gnu_packages+set}" = set; then
38310  enableval="$enable_gnu_packages"
38311  coin_enable_gnu=$enableval
38312else
38313  coin_enable_gnu=no
38314fi;
38315
38316
38317
38318
38319
38320
38321
38322coin_has_readline=no
38323if test $coin_enable_gnu = yes; then
38324  #if test x"#include <stdio.h>" = x; then
38325#  hdr="#include <readline/readline.h>"
38326#else
38327#  hdr="#include <stdio.h>"
38328#fi
38329#AC_CHECK_HEADERS([readline/readline.h],[coin_has_readline=yes],[],[$hdr])
38330
38331for ac_header in readline/readline.h
38332do
38333as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38334echo "$as_me:$LINENO: checking for $ac_header" >&5
38335echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38336if eval "test \"\${$as_ac_Header+set}\" = set"; then
38337  echo $ECHO_N "(cached) $ECHO_C" >&6
38338else
38339  cat >conftest.$ac_ext <<_ACEOF
38340/* confdefs.h.  */
38341_ACEOF
38342cat confdefs.h >>conftest.$ac_ext
38343cat >>conftest.$ac_ext <<_ACEOF
38344/* end confdefs.h.  */
38345#include <stdio.h>
38346
38347#include <$ac_header>
38348_ACEOF
38349rm -f conftest.$ac_objext
38350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38351  (eval $ac_compile) 2>conftest.er1
38352  ac_status=$?
38353  grep -v '^ *+' conftest.er1 >conftest.err
38354  rm -f conftest.er1
38355  cat conftest.err >&5
38356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38357  (exit $ac_status); } &&
38358	 { ac_try='test -z "$ac_cxx_werror_flag"
38359			 || test ! -s conftest.err'
38360  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38361  (eval $ac_try) 2>&5
38362  ac_status=$?
38363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38364  (exit $ac_status); }; } &&
38365	 { ac_try='test -s conftest.$ac_objext'
38366  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38367  (eval $ac_try) 2>&5
38368  ac_status=$?
38369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38370  (exit $ac_status); }; }; then
38371  eval "$as_ac_Header=yes"
38372else
38373  echo "$as_me: failed program was:" >&5
38374sed 's/^/| /' conftest.$ac_ext >&5
38375
38376eval "$as_ac_Header=no"
38377fi
38378rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38379fi
38380echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38381echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38382if test `eval echo '${'$as_ac_Header'}'` = yes; then
38383  cat >>confdefs.h <<_ACEOF
38384#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38385_ACEOF
38386 coin_has_readline=yes
38387fi
38388
38389done
38390
38391
38392
38393  coin_save_LIBS="$LIBS"
38394  LIBS=
38395  # First we check if tputs and friends are available
38396  if test $coin_has_readline = yes; then
38397    echo "$as_me:$LINENO: checking for library containing tputs" >&5
38398echo $ECHO_N "checking for library containing tputs... $ECHO_C" >&6
38399if test "${ac_cv_search_tputs+set}" = set; then
38400  echo $ECHO_N "(cached) $ECHO_C" >&6
38401else
38402  ac_func_search_save_LIBS=$LIBS
38403ac_cv_search_tputs=no
38404cat >conftest.$ac_ext <<_ACEOF
38405/* confdefs.h.  */
38406_ACEOF
38407cat confdefs.h >>conftest.$ac_ext
38408cat >>conftest.$ac_ext <<_ACEOF
38409/* end confdefs.h.  */
38410
38411/* Override any gcc2 internal prototype to avoid an error.  */
38412#ifdef __cplusplus
38413extern "C"
38414#endif
38415/* We use char because int might match the return type of a gcc2
38416   builtin and then its argument prototype would still apply.  */
38417char tputs ();
38418#ifdef F77_DUMMY_MAIN
38419
38420#  ifdef __cplusplus
38421     extern "C"
38422#  endif
38423   int F77_DUMMY_MAIN() { return 1; }
38424
38425#endif
38426int
38427main ()
38428{
38429tputs ();
38430  ;
38431  return 0;
38432}
38433_ACEOF
38434rm -f conftest.$ac_objext conftest$ac_exeext
38435if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38436  (eval $ac_link) 2>conftest.er1
38437  ac_status=$?
38438  grep -v '^ *+' conftest.er1 >conftest.err
38439  rm -f conftest.er1
38440  cat conftest.err >&5
38441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38442  (exit $ac_status); } &&
38443	 { ac_try='test -z "$ac_cxx_werror_flag"
38444			 || test ! -s conftest.err'
38445  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38446  (eval $ac_try) 2>&5
38447  ac_status=$?
38448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38449  (exit $ac_status); }; } &&
38450	 { ac_try='test -s conftest$ac_exeext'
38451  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38452  (eval $ac_try) 2>&5
38453  ac_status=$?
38454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38455  (exit $ac_status); }; }; then
38456  ac_cv_search_tputs="none required"
38457else
38458  echo "$as_me: failed program was:" >&5
38459sed 's/^/| /' conftest.$ac_ext >&5
38460
38461fi
38462rm -f conftest.err conftest.$ac_objext \
38463      conftest$ac_exeext conftest.$ac_ext
38464if test "$ac_cv_search_tputs" = no; then
38465  for ac_lib in ncurses termcap curses; do
38466    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
38467    cat >conftest.$ac_ext <<_ACEOF
38468/* confdefs.h.  */
38469_ACEOF
38470cat confdefs.h >>conftest.$ac_ext
38471cat >>conftest.$ac_ext <<_ACEOF
38472/* end confdefs.h.  */
38473
38474/* Override any gcc2 internal prototype to avoid an error.  */
38475#ifdef __cplusplus
38476extern "C"
38477#endif
38478/* We use char because int might match the return type of a gcc2
38479   builtin and then its argument prototype would still apply.  */
38480char tputs ();
38481#ifdef F77_DUMMY_MAIN
38482
38483#  ifdef __cplusplus
38484     extern "C"
38485#  endif
38486   int F77_DUMMY_MAIN() { return 1; }
38487
38488#endif
38489int
38490main ()
38491{
38492tputs ();
38493  ;
38494  return 0;
38495}
38496_ACEOF
38497rm -f conftest.$ac_objext conftest$ac_exeext
38498if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38499  (eval $ac_link) 2>conftest.er1
38500  ac_status=$?
38501  grep -v '^ *+' conftest.er1 >conftest.err
38502  rm -f conftest.er1
38503  cat conftest.err >&5
38504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38505  (exit $ac_status); } &&
38506	 { ac_try='test -z "$ac_cxx_werror_flag"
38507			 || test ! -s conftest.err'
38508  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38509  (eval $ac_try) 2>&5
38510  ac_status=$?
38511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38512  (exit $ac_status); }; } &&
38513	 { ac_try='test -s conftest$ac_exeext'
38514  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38515  (eval $ac_try) 2>&5
38516  ac_status=$?
38517  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38518  (exit $ac_status); }; }; then
38519  ac_cv_search_tputs="-l$ac_lib"
38520break
38521else
38522  echo "$as_me: failed program was:" >&5
38523sed 's/^/| /' conftest.$ac_ext >&5
38524
38525fi
38526rm -f conftest.err conftest.$ac_objext \
38527      conftest$ac_exeext conftest.$ac_ext
38528  done
38529fi
38530LIBS=$ac_func_search_save_LIBS
38531fi
38532echo "$as_me:$LINENO: result: $ac_cv_search_tputs" >&5
38533echo "${ECHO_T}$ac_cv_search_tputs" >&6
38534if test "$ac_cv_search_tputs" != no; then
38535  test "$ac_cv_search_tputs" = "none required" || LIBS="$ac_cv_search_tputs $LIBS"
38536
38537else
38538  coin_has_readline=no
38539fi
38540
38541  fi
38542
38543  # Now we check for readline
38544  if test $coin_has_readline = yes; then
38545    echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
38546echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
38547if test "${ac_cv_lib_readline_readline+set}" = set; then
38548  echo $ECHO_N "(cached) $ECHO_C" >&6
38549else
38550  ac_check_lib_save_LIBS=$LIBS
38551LIBS="-lreadline  $LIBS"
38552cat >conftest.$ac_ext <<_ACEOF
38553/* confdefs.h.  */
38554_ACEOF
38555cat confdefs.h >>conftest.$ac_ext
38556cat >>conftest.$ac_ext <<_ACEOF
38557/* end confdefs.h.  */
38558
38559/* Override any gcc2 internal prototype to avoid an error.  */
38560#ifdef __cplusplus
38561extern "C"
38562#endif
38563/* We use char because int might match the return type of a gcc2
38564   builtin and then its argument prototype would still apply.  */
38565char readline ();
38566#ifdef F77_DUMMY_MAIN
38567
38568#  ifdef __cplusplus
38569     extern "C"
38570#  endif
38571   int F77_DUMMY_MAIN() { return 1; }
38572
38573#endif
38574int
38575main ()
38576{
38577readline ();
38578  ;
38579  return 0;
38580}
38581_ACEOF
38582rm -f conftest.$ac_objext conftest$ac_exeext
38583if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38584  (eval $ac_link) 2>conftest.er1
38585  ac_status=$?
38586  grep -v '^ *+' conftest.er1 >conftest.err
38587  rm -f conftest.er1
38588  cat conftest.err >&5
38589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38590  (exit $ac_status); } &&
38591	 { ac_try='test -z "$ac_cxx_werror_flag"
38592			 || test ! -s conftest.err'
38593  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38594  (eval $ac_try) 2>&5
38595  ac_status=$?
38596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38597  (exit $ac_status); }; } &&
38598	 { ac_try='test -s conftest$ac_exeext'
38599  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38600  (eval $ac_try) 2>&5
38601  ac_status=$?
38602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
38603  (exit $ac_status); }; }; then
38604  ac_cv_lib_readline_readline=yes
38605else
38606  echo "$as_me: failed program was:" >&5
38607sed 's/^/| /' conftest.$ac_ext >&5
38608
38609ac_cv_lib_readline_readline=no
38610fi
38611rm -f conftest.err conftest.$ac_objext \
38612      conftest$ac_exeext conftest.$ac_ext
38613LIBS=$ac_check_lib_save_LIBS
38614fi
38615echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
38616echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
38617if test $ac_cv_lib_readline_readline = yes; then
38618  :
38619else
38620  coin_has_readline=no
38621fi
38622
38623  fi
38624
38625  if test $coin_has_readline = yes; then
38626
38627                    COINUTILSLIB_LIBS="-lreadline $LIBS $COINUTILSLIB_LIBS"
38628                    COINUTILSLIB_PCLIBS="-lreadline $LIBS $COINUTILSLIB_PCLIBS"
38629                    COINUTILSLIB_LIBS_INSTALLED="-lreadline $LIBS $COINUTILSLIB_LIBS_INSTALLED"
38630
38631
38632cat >>confdefs.h <<\_ACEOF
38633#define COIN_HAS_READLINE 1
38634_ACEOF
38635
38636  fi
38637
38638  LIBS="$coin_save_LIBS"
38639fi
38640
38641
38642
38643echo "$as_me:$LINENO: checking whether this is a VPATH configuration" >&5
38644echo $ECHO_N "checking whether this is a VPATH configuration... $ECHO_C" >&6
38645if test `cd $srcdir; pwd` != `pwd`; then
38646  coin_vpath_config=yes;
38647else
38648  coin_vpath_config=no;
38649fi
38650echo "$as_me:$LINENO: result: $coin_vpath_config" >&5
38651echo "${ECHO_T}$coin_vpath_config" >&6
38652
38653
38654
38655# Allow for newlines in the parameter
38656if test $coin_vpath_config = yes; then
38657  cvl_tmp="test/plan.mod"
38658  for file in $cvl_tmp ; do
38659    coin_vpath_link_files="$coin_vpath_link_files $file"
38660  done
38661fi
38662
38663
38664#############################################################################
38665#                  Check for doxygen                                        #
38666#############################################################################
38667
38668
38669
38670{ echo "$as_me:$LINENO: configuring doxygen documentation options" >&5
38671echo "$as_me: configuring doxygen documentation options" >&6;}
38672
38673# Check to see if doxygen is available.
38674
38675# Extract the first word of "doxygen", so it can be a program name with args.
38676set dummy doxygen; ac_word=$2
38677echo "$as_me:$LINENO: checking for $ac_word" >&5
38678echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38679if test "${ac_cv_prog_coin_have_doxygen+set}" = set; then
38680  echo $ECHO_N "(cached) $ECHO_C" >&6
38681else
38682  if test -n "$coin_have_doxygen"; then
38683  ac_cv_prog_coin_have_doxygen="$coin_have_doxygen" # Let the user override the test.
38684else
38685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38686for as_dir in $PATH
38687do
38688  IFS=$as_save_IFS
38689  test -z "$as_dir" && as_dir=.
38690  for ac_exec_ext in '' $ac_executable_extensions; do
38691  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38692    ac_cv_prog_coin_have_doxygen="yes"
38693    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38694    break 2
38695  fi
38696done
38697done
38698
38699  test -z "$ac_cv_prog_coin_have_doxygen" && ac_cv_prog_coin_have_doxygen="no"
38700fi
38701fi
38702coin_have_doxygen=$ac_cv_prog_coin_have_doxygen
38703if test -n "$coin_have_doxygen"; then
38704  echo "$as_me:$LINENO: result: $coin_have_doxygen" >&5
38705echo "${ECHO_T}$coin_have_doxygen" >&6
38706else
38707  echo "$as_me:$LINENO: result: no" >&5
38708echo "${ECHO_T}no" >&6
38709fi
38710
38711# Extract the first word of "latex", so it can be a program name with args.
38712set dummy latex; ac_word=$2
38713echo "$as_me:$LINENO: checking for $ac_word" >&5
38714echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38715if test "${ac_cv_prog_coin_have_latex+set}" = set; then
38716  echo $ECHO_N "(cached) $ECHO_C" >&6
38717else
38718  if test -n "$coin_have_latex"; then
38719  ac_cv_prog_coin_have_latex="$coin_have_latex" # Let the user override the test.
38720else
38721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38722for as_dir in $PATH
38723do
38724  IFS=$as_save_IFS
38725  test -z "$as_dir" && as_dir=.
38726  for ac_exec_ext in '' $ac_executable_extensions; do
38727  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38728    ac_cv_prog_coin_have_latex="yes"
38729    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38730    break 2
38731  fi
38732done
38733done
38734
38735  test -z "$ac_cv_prog_coin_have_latex" && ac_cv_prog_coin_have_latex="no"
38736fi
38737fi
38738coin_have_latex=$ac_cv_prog_coin_have_latex
38739if test -n "$coin_have_latex"; then
38740  echo "$as_me:$LINENO: result: $coin_have_latex" >&5
38741echo "${ECHO_T}$coin_have_latex" >&6
38742else
38743  echo "$as_me:$LINENO: result: no" >&5
38744echo "${ECHO_T}no" >&6
38745fi
38746
38747
38748# Look for the dot tool from the graphviz package, unless the user has
38749# disabled it.
38750
38751
38752# Check whether --with-dot or --without-dot was given.
38753if test "${with_dot+set}" = set; then
38754  withval="$with_dot"
38755
38756else
38757  withval=yes
38758fi;
38759if test x"$withval" = xno ; then
38760  coin_doxy_usedot=NO
38761  echo "$as_me:$LINENO: checking for dot " >&5
38762echo $ECHO_N "checking for dot ... $ECHO_C" >&6
38763  echo "$as_me:$LINENO: result: disabled" >&5
38764echo "${ECHO_T}disabled" >&6
38765else
38766  # Extract the first word of "dot", so it can be a program name with args.
38767set dummy dot; ac_word=$2
38768echo "$as_me:$LINENO: checking for $ac_word" >&5
38769echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38770if test "${ac_cv_prog_coin_doxy_usedot+set}" = set; then
38771  echo $ECHO_N "(cached) $ECHO_C" >&6
38772else
38773  if test -n "$coin_doxy_usedot"; then
38774  ac_cv_prog_coin_doxy_usedot="$coin_doxy_usedot" # Let the user override the test.
38775else
38776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38777for as_dir in $PATH
38778do
38779  IFS=$as_save_IFS
38780  test -z "$as_dir" && as_dir=.
38781  for ac_exec_ext in '' $ac_executable_extensions; do
38782  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38783    ac_cv_prog_coin_doxy_usedot="YES"
38784    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38785    break 2
38786  fi
38787done
38788done
38789
38790  test -z "$ac_cv_prog_coin_doxy_usedot" && ac_cv_prog_coin_doxy_usedot="NO"
38791fi
38792fi
38793coin_doxy_usedot=$ac_cv_prog_coin_doxy_usedot
38794if test -n "$coin_doxy_usedot"; then
38795  echo "$as_me:$LINENO: result: $coin_doxy_usedot" >&5
38796echo "${ECHO_T}$coin_doxy_usedot" >&6
38797else
38798  echo "$as_me:$LINENO: result: no" >&5
38799echo "${ECHO_T}no" >&6
38800fi
38801
38802fi
38803
38804# Generate a tag file name and a log file name
38805
38806coin_doxy_tagname=doxydoc/${PACKAGE}_doxy.tag
38807
38808coin_doxy_logname=doxydoc/${PACKAGE}_doxy.log
38809
38810
38811
38812if test $coin_have_doxygen = yes; then
38813  COIN_HAS_DOXYGEN_TRUE=
38814  COIN_HAS_DOXYGEN_FALSE='#'
38815else
38816  COIN_HAS_DOXYGEN_TRUE='#'
38817  COIN_HAS_DOXYGEN_FALSE=
38818fi
38819
38820
38821
38822if test $coin_have_latex = yes; then
38823  COIN_HAS_LATEX_TRUE=
38824  COIN_HAS_LATEX_FALSE='#'
38825else
38826  COIN_HAS_LATEX_TRUE='#'
38827  COIN_HAS_LATEX_FALSE=
38828fi
38829
38830
38831# Process the list of project names and massage them into possible doxygen
38832# doc'n directories. Prefer 1) classic external, source processed using
38833# a project-specific doxygen.conf, we use the tag file; 2) classic
38834# external, source processed using package doxygen.conf; 3) installed
38835# doxydoc. Alternatives 1) and 2) are only possible if the directory will be
38836# configured, which we can't know unless this is the package base configure,
38837# since coin_subdirs is only set there. Hence it's sufficient to check for
38838# membership. If we use a tag file from a classic external, exclude the
38839# source from doxygen processing when doxygen runs in the base directory.
38840
38841coin_doxy_tagfiles=
38842coin_doxy_excludes=
38843tmp=""
38844for proj in $tmp ; do
38845  lc_proj=`echo $proj | tr [A-Z] [a-z]`
38846  echo "$as_me:$LINENO: checking for doxygen doc'n for $proj " >&5
38847echo $ECHO_N "checking for doxygen doc'n for $proj ... $ECHO_C" >&6
38848  doxytag=${lc_proj}_doxy.tag
38849  doxyfound=no
38850  # proj will be configured, hence doxydoc present in build tree
38851  doxysrcdir="${srcdir}/../${proj}"
38852  # AC_MSG_NOTICE([Considering $doxysrcdir (base)])
38853  if test -d "$doxysrcdir" ; then
38854    # with a doxydoc directory?
38855    doxydir="$doxysrcdir/doxydoc"
38856    # AC_MSG_NOTICE([Considering $doxydir (base)])
38857    # AC_MSG_NOTICE([Subdirs: $coin_subdirs)])
38858    if test -d "$doxydir" ; then
38859      # use tag file; don't process source
38860      doxydir="../${proj}/doxydoc"
38861      coin_doxy_tagfiles="$coin_doxy_tagfiles $doxydir/$doxytag=../../$doxydir/html"
38862      echo "$as_me:$LINENO: result: $doxydir (tag)" >&5
38863echo "${ECHO_T}$doxydir (tag)" >&6
38864      coin_doxy_excludes="$coin_doxy_excludes */${proj}"
38865    else
38866      # will process the source -- nothing further to be done here
38867      echo "$as_me:$LINENO: result: $doxysrcdir (src)" >&5
38868echo "${ECHO_T}$doxysrcdir (src)" >&6
38869    fi
38870    doxyfound=yes
38871  fi
38872  # Not built, fall back to installed tag file
38873  if test $doxyfound = no ; then
38874    eval doxydir="${datadir}/coin/doc/${proj}/doxydoc"
38875    # AC_MSG_NOTICE([Considering $doxydir (install)])
38876    # AC_MSG_NOTICE([Subdirs: $coin_subdirs)])
38877    coin_doxy_tagfiles="$coin_doxy_tagfiles $doxydir/$doxytag=$doxydir/html"
38878    echo "$as_me:$LINENO: result: $doxydir (tag)" >&5
38879echo "${ECHO_T}$doxydir (tag)" >&6
38880  fi
38881done
38882
38883
38884
38885
38886
38887##############################################################################
38888#                   Finishing up by writing all the output                   #
38889##############################################################################
38890
38891# Here list all the files that configure should create (except for the
38892# configuration header file)
38893                                                  ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile coinutils.pc coinutils-uninstalled.pc"
38894
38895          ac_config_files="$ac_config_files doxydoc/doxygen.conf"
38896
38897
38898# Here put the location and name of the configuration header file
38899                    ac_config_headers="$ac_config_headers src/config.h src/config_coinutils.h"
38900
38901
38902# Finally, we let configure write all the output...
38903
38904
38905
38906
38907echo "$as_me:$LINENO: checking which command should be used to link input files" >&5
38908echo $ECHO_N "checking which command should be used to link input files... $ECHO_C" >&6
38909coin_link_input_cmd="$LN_S"
38910case "$CC" in
38911  clang* ) ;;
38912  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
38913    coin_link_input_cmd=cp ;;
38914esac
38915echo "$as_me:$LINENO: result: $coin_link_input_cmd" >&5
38916echo "${ECHO_T}$coin_link_input_cmd" >&6
38917
38918
38919
38920if test x$coin_skip_ac_output != xyes; then
38921
38922  # library extension
38923
38924  case "$CC" in
38925    clang* )
38926         LIBEXT=a ;;
38927    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
38928         LIBEXT=lib ;;
38929      *) LIBEXT=a ;;
38930  esac
38931
38932  # Define VPATH_DISTCLEANFILES to be everything that needs to be
38933  # cleaned for distclean in a vpath configuration
38934
38935  VPATH_DISTCLEANFILES="$coin_vpath_link_files"
38936
38937  # Take out subdirectories if their configuration concluded that they
38938  # don't need to be compiled
38939  if test x"$coin_ac_skip_subdirs" != x; then
38940    new_subdirs=
38941    for i in $subdirs; do
38942      skipme=no
38943      for j in $coin_ac_skip_subdirs; do
38944        if test $i = $j; then
38945          skipme=yes;
38946        fi
38947      done
38948      if test $skipme = no; then
38949        new_subdirs="$new_subdirs $i"
38950      fi
38951    done
38952    subdirs="$new_subdirs"
38953  fi
38954
38955  # need to come before AC_OUTPUT
38956  if test x$coin_projectdir != xyes; then
38957    # write coin_subdirs to a file so that project configuration knows where to find uninstalled projects
38958    echo $coin_subdirs > coin_subdirs.txt
38959  else
38960    # substitute for OBJDIR, needed to setup .pc file for uninstalled project
38961    ABSBUILDDIR="`pwd`"
38962
38963  fi
38964
38965  cat >confcache <<\_ACEOF
38966# This file is a shell script that caches the results of configure
38967# tests run on this system so they can be shared between configure
38968# scripts and configure runs, see configure's option --config-cache.
38969# It is not useful on other systems.  If it contains results you don't
38970# want to keep, you may remove or edit it.
38971#
38972# config.status only pays attention to the cache file if you give it
38973# the --recheck option to rerun configure.
38974#
38975# `ac_cv_env_foo' variables (set or unset) will be overridden when
38976# loading this file, other *unset* `ac_cv_foo' will be assigned the
38977# following values.
38978
38979_ACEOF
38980
38981# The following way of writing the cache mishandles newlines in values,
38982# but we know of no workaround that is simple, portable, and efficient.
38983# So, don't put newlines in cache variables' values.
38984# Ultrix sh set writes to stderr and can't be redirected directly,
38985# and sets the high bit in the cache file unless we assign to the vars.
38986{
38987  (set) 2>&1 |
38988    case `(ac_space=' '; set | grep ac_space) 2>&1` in
38989    *ac_space=\ *)
38990      # `set' does not quote correctly, so add quotes (double-quote
38991      # substitution turns \\\\ into \\, and sed turns \\ into \).
38992      sed -n \
38993	"s/'/'\\\\''/g;
38994	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
38995      ;;
38996    *)
38997      # `set' quotes correctly as required by POSIX, so do not add quotes.
38998      sed -n \
38999	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
39000      ;;
39001    esac;
39002} |
39003  sed '
39004     t clear
39005     : clear
39006     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
39007     t end
39008     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
39009     : end' >>confcache
39010if diff $cache_file confcache >/dev/null 2>&1; then :; else
39011  if test -w $cache_file; then
39012    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
39013    cat confcache >$cache_file
39014  else
39015    echo "not updating unwritable cache $cache_file"
39016  fi
39017fi
39018rm -f confcache
39019
39020test "x$prefix" = xNONE && prefix=$ac_default_prefix
39021# Let make expand exec_prefix.
39022test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
39023
39024# VPATH may cause trouble with some makes, so we remove $(srcdir),
39025# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
39026# trailing colons and then remove the whole line if VPATH becomes empty
39027# (actually we leave an empty line to preserve line numbers).
39028if test "x$srcdir" = x.; then
39029  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
39030s/:*\$(srcdir):*/:/;
39031s/:*\${srcdir}:*/:/;
39032s/:*@srcdir@:*/:/;
39033s/^\([^=]*=[	 ]*\):*/\1/;
39034s/:*$//;
39035s/^[^=]*=[	 ]*$//;
39036}'
39037fi
39038
39039DEFS=-DHAVE_CONFIG_H
39040
39041ac_libobjs=
39042ac_ltlibobjs=
39043for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
39044  # 1. Remove the extension, and $U if already installed.
39045  ac_i=`echo "$ac_i" |
39046	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
39047  # 2. Add them.
39048  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
39049  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
39050done
39051LIBOBJS=$ac_libobjs
39052
39053LTLIBOBJS=$ac_ltlibobjs
39054
39055
39056if test -z "${ALWAYS_FALSE_TRUE}" && test -z "${ALWAYS_FALSE_FALSE}"; then
39057  { { echo "$as_me:$LINENO: error: conditional \"ALWAYS_FALSE\" was never defined.
39058Usually this means the macro was only invoked conditionally." >&5
39059echo "$as_me: error: conditional \"ALWAYS_FALSE\" was never defined.
39060Usually this means the macro was only invoked conditionally." >&2;}
39061   { (exit 1); exit 1; }; }
39062fi
39063if test -z "${COIN_CC_IS_CL_TRUE}" && test -z "${COIN_CC_IS_CL_FALSE}"; then
39064  { { echo "$as_me:$LINENO: error: conditional \"COIN_CC_IS_CL\" was never defined.
39065Usually this means the macro was only invoked conditionally." >&5
39066echo "$as_me: error: conditional \"COIN_CC_IS_CL\" was never defined.
39067Usually this means the macro was only invoked conditionally." >&2;}
39068   { (exit 1); exit 1; }; }
39069fi
39070if test -z "${COIN_CXX_IS_CL_TRUE}" && test -z "${COIN_CXX_IS_CL_FALSE}"; then
39071  { { echo "$as_me:$LINENO: error: conditional \"COIN_CXX_IS_CL\" was never defined.
39072Usually this means the macro was only invoked conditionally." >&5
39073echo "$as_me: error: conditional \"COIN_CXX_IS_CL\" was never defined.
39074Usually this means the macro was only invoked conditionally." >&2;}
39075   { (exit 1); exit 1; }; }
39076fi
39077if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
39078  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
39079Usually this means the macro was only invoked conditionally." >&5
39080echo "$as_me: error: conditional \"AMDEP\" was never defined.
39081Usually this means the macro was only invoked conditionally." >&2;}
39082   { (exit 1); exit 1; }; }
39083fi
39084if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
39085  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
39086Usually this means the macro was only invoked conditionally." >&5
39087echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
39088Usually this means the macro was only invoked conditionally." >&2;}
39089   { (exit 1); exit 1; }; }
39090fi
39091if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
39092  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
39093Usually this means the macro was only invoked conditionally." >&5
39094echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
39095Usually this means the macro was only invoked conditionally." >&2;}
39096   { (exit 1); exit 1; }; }
39097fi
39098if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
39099  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
39100Usually this means the macro was only invoked conditionally." >&5
39101echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
39102Usually this means the macro was only invoked conditionally." >&2;}
39103   { (exit 1); exit 1; }; }
39104fi
39105if test -z "${HAVE_EXTERNALS_TRUE}" && test -z "${HAVE_EXTERNALS_FALSE}"; then
39106  { { echo "$as_me:$LINENO: error: conditional \"HAVE_EXTERNALS\" was never defined.
39107Usually this means the macro was only invoked conditionally." >&5
39108echo "$as_me: error: conditional \"HAVE_EXTERNALS\" was never defined.
39109Usually this means the macro was only invoked conditionally." >&2;}
39110   { (exit 1); exit 1; }; }
39111fi
39112if test -z "${DEPENDENCY_LINKING_TRUE}" && test -z "${DEPENDENCY_LINKING_FALSE}"; then
39113  { { echo "$as_me:$LINENO: error: conditional \"DEPENDENCY_LINKING\" was never defined.
39114Usually this means the macro was only invoked conditionally." >&5
39115echo "$as_me: error: conditional \"DEPENDENCY_LINKING\" was never defined.
39116Usually this means the macro was only invoked conditionally." >&2;}
39117   { (exit 1); exit 1; }; }
39118fi
39119if test -z "${COIN_HAS_PKGCONFIG_TRUE}" && test -z "${COIN_HAS_PKGCONFIG_FALSE}"; then
39120  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_PKGCONFIG\" was never defined.
39121Usually this means the macro was only invoked conditionally." >&5
39122echo "$as_me: error: conditional \"COIN_HAS_PKGCONFIG\" was never defined.
39123Usually this means the macro was only invoked conditionally." >&2;}
39124   { (exit 1); exit 1; }; }
39125fi
39126if test -z "${COIN_HAS_BLAS_TRUE}" && test -z "${COIN_HAS_BLAS_FALSE}"; then
39127  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_BLAS\" was never defined.
39128Usually this means the macro was only invoked conditionally." >&5
39129echo "$as_me: error: conditional \"COIN_HAS_BLAS\" was never defined.
39130Usually this means the macro was only invoked conditionally." >&2;}
39131   { (exit 1); exit 1; }; }
39132fi
39133if test -z "${COIN_HAS_BLAS_TRUE}" && test -z "${COIN_HAS_BLAS_FALSE}"; then
39134  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_BLAS\" was never defined.
39135Usually this means the macro was only invoked conditionally." >&5
39136echo "$as_me: error: conditional \"COIN_HAS_BLAS\" was never defined.
39137Usually this means the macro was only invoked conditionally." >&2;}
39138   { (exit 1); exit 1; }; }
39139fi
39140if test -z "${COIN_HAS_BLAS_TRUE}" && test -z "${COIN_HAS_BLAS_FALSE}"; then
39141  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_BLAS\" was never defined.
39142Usually this means the macro was only invoked conditionally." >&5
39143echo "$as_me: error: conditional \"COIN_HAS_BLAS\" was never defined.
39144Usually this means the macro was only invoked conditionally." >&2;}
39145   { (exit 1); exit 1; }; }
39146fi
39147if test -z "${COIN_HAS_BLAS_TRUE}" && test -z "${COIN_HAS_BLAS_FALSE}"; then
39148  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_BLAS\" was never defined.
39149Usually this means the macro was only invoked conditionally." >&5
39150echo "$as_me: error: conditional \"COIN_HAS_BLAS\" was never defined.
39151Usually this means the macro was only invoked conditionally." >&2;}
39152   { (exit 1); exit 1; }; }
39153fi
39154if test -z "${COIN_HAS_LAPACK_TRUE}" && test -z "${COIN_HAS_LAPACK_FALSE}"; then
39155  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_LAPACK\" was never defined.
39156Usually this means the macro was only invoked conditionally." >&5
39157echo "$as_me: error: conditional \"COIN_HAS_LAPACK\" was never defined.
39158Usually this means the macro was only invoked conditionally." >&2;}
39159   { (exit 1); exit 1; }; }
39160fi
39161if test -z "${COIN_HAS_LAPACK_TRUE}" && test -z "${COIN_HAS_LAPACK_FALSE}"; then
39162  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_LAPACK\" was never defined.
39163Usually this means the macro was only invoked conditionally." >&5
39164echo "$as_me: error: conditional \"COIN_HAS_LAPACK\" was never defined.
39165Usually this means the macro was only invoked conditionally." >&2;}
39166   { (exit 1); exit 1; }; }
39167fi
39168if test -z "${COIN_HAS_LAPACK_TRUE}" && test -z "${COIN_HAS_LAPACK_FALSE}"; then
39169  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_LAPACK\" was never defined.
39170Usually this means the macro was only invoked conditionally." >&5
39171echo "$as_me: error: conditional \"COIN_HAS_LAPACK\" was never defined.
39172Usually this means the macro was only invoked conditionally." >&2;}
39173   { (exit 1); exit 1; }; }
39174fi
39175if test -z "${COIN_HAS_LAPACK_TRUE}" && test -z "${COIN_HAS_LAPACK_FALSE}"; then
39176  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_LAPACK\" was never defined.
39177Usually this means the macro was only invoked conditionally." >&5
39178echo "$as_me: error: conditional \"COIN_HAS_LAPACK\" was never defined.
39179Usually this means the macro was only invoked conditionally." >&2;}
39180   { (exit 1); exit 1; }; }
39181fi
39182if test -z "${COIN_HAS_GLPK_TRUE}" && test -z "${COIN_HAS_GLPK_FALSE}"; then
39183  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_GLPK\" was never defined.
39184Usually this means the macro was only invoked conditionally." >&5
39185echo "$as_me: error: conditional \"COIN_HAS_GLPK\" was never defined.
39186Usually this means the macro was only invoked conditionally." >&2;}
39187   { (exit 1); exit 1; }; }
39188fi
39189if test -z "${COIN_HAS_GLPK_TRUE}" && test -z "${COIN_HAS_GLPK_FALSE}"; then
39190  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_GLPK\" was never defined.
39191Usually this means the macro was only invoked conditionally." >&5
39192echo "$as_me: error: conditional \"COIN_HAS_GLPK\" was never defined.
39193Usually this means the macro was only invoked conditionally." >&2;}
39194   { (exit 1); exit 1; }; }
39195fi
39196if test -z "${COIN_HAS_SAMPLE_TRUE}" && test -z "${COIN_HAS_SAMPLE_FALSE}"; then
39197  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_SAMPLE\" was never defined.
39198Usually this means the macro was only invoked conditionally." >&5
39199echo "$as_me: error: conditional \"COIN_HAS_SAMPLE\" was never defined.
39200Usually this means the macro was only invoked conditionally." >&2;}
39201   { (exit 1); exit 1; }; }
39202fi
39203if test -z "${COIN_HAS_SAMPLE_TRUE}" && test -z "${COIN_HAS_SAMPLE_FALSE}"; then
39204  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_SAMPLE\" was never defined.
39205Usually this means the macro was only invoked conditionally." >&5
39206echo "$as_me: error: conditional \"COIN_HAS_SAMPLE\" was never defined.
39207Usually this means the macro was only invoked conditionally." >&2;}
39208   { (exit 1); exit 1; }; }
39209fi
39210if test -z "${COIN_HAS_NETLIB_TRUE}" && test -z "${COIN_HAS_NETLIB_FALSE}"; then
39211  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_NETLIB\" was never defined.
39212Usually this means the macro was only invoked conditionally." >&5
39213echo "$as_me: error: conditional \"COIN_HAS_NETLIB\" was never defined.
39214Usually this means the macro was only invoked conditionally." >&2;}
39215   { (exit 1); exit 1; }; }
39216fi
39217if test -z "${COIN_HAS_NETLIB_TRUE}" && test -z "${COIN_HAS_NETLIB_FALSE}"; then
39218  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_NETLIB\" was never defined.
39219Usually this means the macro was only invoked conditionally." >&5
39220echo "$as_me: error: conditional \"COIN_HAS_NETLIB\" was never defined.
39221Usually this means the macro was only invoked conditionally." >&2;}
39222   { (exit 1); exit 1; }; }
39223fi
39224if test -z "${COIN_HAS_ZLIB_TRUE}" && test -z "${COIN_HAS_ZLIB_FALSE}"; then
39225  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_ZLIB\" was never defined.
39226Usually this means the macro was only invoked conditionally." >&5
39227echo "$as_me: error: conditional \"COIN_HAS_ZLIB\" was never defined.
39228Usually this means the macro was only invoked conditionally." >&2;}
39229   { (exit 1); exit 1; }; }
39230fi
39231if test -z "${COIN_HAS_DOXYGEN_TRUE}" && test -z "${COIN_HAS_DOXYGEN_FALSE}"; then
39232  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_DOXYGEN\" was never defined.
39233Usually this means the macro was only invoked conditionally." >&5
39234echo "$as_me: error: conditional \"COIN_HAS_DOXYGEN\" was never defined.
39235Usually this means the macro was only invoked conditionally." >&2;}
39236   { (exit 1); exit 1; }; }
39237fi
39238if test -z "${COIN_HAS_LATEX_TRUE}" && test -z "${COIN_HAS_LATEX_FALSE}"; then
39239  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_LATEX\" was never defined.
39240Usually this means the macro was only invoked conditionally." >&5
39241echo "$as_me: error: conditional \"COIN_HAS_LATEX\" was never defined.
39242Usually this means the macro was only invoked conditionally." >&2;}
39243   { (exit 1); exit 1; }; }
39244fi
39245
39246: ${CONFIG_STATUS=./config.status}
39247ac_clean_files_save=$ac_clean_files
39248ac_clean_files="$ac_clean_files $CONFIG_STATUS"
39249{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
39250echo "$as_me: creating $CONFIG_STATUS" >&6;}
39251cat >$CONFIG_STATUS <<_ACEOF
39252#! $SHELL
39253# Generated by $as_me.
39254# Run this file to recreate the current configuration.
39255# Compiler output produced by configure, useful for debugging
39256# configure, is in config.log if it exists.
39257
39258debug=false
39259ac_cs_recheck=false
39260ac_cs_silent=false
39261SHELL=\${CONFIG_SHELL-$SHELL}
39262_ACEOF
39263
39264cat >>$CONFIG_STATUS <<\_ACEOF
39265## --------------------- ##
39266## M4sh Initialization.  ##
39267## --------------------- ##
39268
39269# Be Bourne compatible
39270if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
39271  emulate sh
39272  NULLCMD=:
39273  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
39274  # is contrary to our usage.  Disable this feature.
39275  alias -g '${1+"$@"}'='"$@"'
39276elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
39277  set -o posix
39278fi
39279DUALCASE=1; export DUALCASE # for MKS sh
39280
39281# Support unset when possible.
39282if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
39283  as_unset=unset
39284else
39285  as_unset=false
39286fi
39287
39288
39289# Work around bugs in pre-3.0 UWIN ksh.
39290$as_unset ENV MAIL MAILPATH
39291PS1='$ '
39292PS2='> '
39293PS4='+ '
39294
39295# NLS nuisances.
39296for as_var in \
39297  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
39298  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
39299  LC_TELEPHONE LC_TIME
39300do
39301  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
39302    eval $as_var=C; export $as_var
39303  else
39304    $as_unset $as_var
39305  fi
39306done
39307
39308# Required to use basename.
39309if expr a : '\(a\)' >/dev/null 2>&1; then
39310  as_expr=expr
39311else
39312  as_expr=false
39313fi
39314
39315if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
39316  as_basename=basename
39317else
39318  as_basename=false
39319fi
39320
39321
39322# Name of the executable.
39323as_me=`$as_basename "$0" ||
39324$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
39325	 X"$0" : 'X\(//\)$' \| \
39326	 X"$0" : 'X\(/\)$' \| \
39327	 .     : '\(.\)' 2>/dev/null ||
39328echo X/"$0" |
39329    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
39330  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
39331  	  /^X\/\(\/\).*/{ s//\1/; q; }
39332  	  s/.*/./; q'`
39333
39334
39335# PATH needs CR, and LINENO needs CR and PATH.
39336# Avoid depending upon Character Ranges.
39337as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39338as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39339as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39340as_cr_digits='0123456789'
39341as_cr_alnum=$as_cr_Letters$as_cr_digits
39342
39343# The user is always right.
39344if test "${PATH_SEPARATOR+set}" != set; then
39345  echo "#! /bin/sh" >conf$$.sh
39346  echo  "exit 0"   >>conf$$.sh
39347  chmod +x conf$$.sh
39348  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
39349    PATH_SEPARATOR=';'
39350  else
39351    PATH_SEPARATOR=:
39352  fi
39353  rm -f conf$$.sh
39354fi
39355
39356
39357  as_lineno_1=$LINENO
39358  as_lineno_2=$LINENO
39359  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
39360  test "x$as_lineno_1" != "x$as_lineno_2" &&
39361  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
39362  # Find who we are.  Look in the path if we contain no path at all
39363  # relative or not.
39364  case $0 in
39365    *[\\/]* ) as_myself=$0 ;;
39366    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39367for as_dir in $PATH
39368do
39369  IFS=$as_save_IFS
39370  test -z "$as_dir" && as_dir=.
39371  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
39372done
39373
39374       ;;
39375  esac
39376  # We did not find ourselves, most probably we were run as `sh COMMAND'
39377  # in which case we are not to be found in the path.
39378  if test "x$as_myself" = x; then
39379    as_myself=$0
39380  fi
39381  if test ! -f "$as_myself"; then
39382    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
39383echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
39384   { (exit 1); exit 1; }; }
39385  fi
39386  case $CONFIG_SHELL in
39387  '')
39388    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39389for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
39390do
39391  IFS=$as_save_IFS
39392  test -z "$as_dir" && as_dir=.
39393  for as_base in sh bash ksh sh5; do
39394	 case $as_dir in
39395	 /*)
39396	   if ("$as_dir/$as_base" -c '
39397  as_lineno_1=$LINENO
39398  as_lineno_2=$LINENO
39399  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
39400  test "x$as_lineno_1" != "x$as_lineno_2" &&
39401  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
39402	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
39403	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
39404	     CONFIG_SHELL=$as_dir/$as_base
39405	     export CONFIG_SHELL
39406	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
39407	   fi;;
39408	 esac
39409       done
39410done
39411;;
39412  esac
39413
39414  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
39415  # uniformly replaced by the line number.  The first 'sed' inserts a
39416  # line-number line before each line; the second 'sed' does the real
39417  # work.  The second script uses 'N' to pair each line-number line
39418  # with the numbered line, and appends trailing '-' during
39419  # substitution so that $LINENO is not a special case at line end.
39420  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
39421  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
39422  sed '=' <$as_myself |
39423    sed '
39424      N
39425      s,$,-,
39426      : loop
39427      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
39428      t loop
39429      s,-$,,
39430      s,^['$as_cr_digits']*\n,,
39431    ' >$as_me.lineno &&
39432  chmod +x $as_me.lineno ||
39433    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
39434echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
39435   { (exit 1); exit 1; }; }
39436
39437  # Don't try to exec as it changes $[0], causing all sort of problems
39438  # (the dirname of $[0] is not the place where we might find the
39439  # original and so on.  Autoconf is especially sensible to this).
39440  . ./$as_me.lineno
39441  # Exit status is that of the last command.
39442  exit
39443}
39444
39445
39446case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
39447  *c*,-n*) ECHO_N= ECHO_C='
39448' ECHO_T='	' ;;
39449  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
39450  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
39451esac
39452
39453if expr a : '\(a\)' >/dev/null 2>&1; then
39454  as_expr=expr
39455else
39456  as_expr=false
39457fi
39458
39459rm -f conf$$ conf$$.exe conf$$.file
39460echo >conf$$.file
39461if ln -s conf$$.file conf$$ 2>/dev/null; then
39462  # We could just check for DJGPP; but this test a) works b) is more generic
39463  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
39464  if test -f conf$$.exe; then
39465    # Don't use ln at all; we don't have any links
39466    as_ln_s='cp -p'
39467  else
39468    as_ln_s='ln -s'
39469  fi
39470elif ln conf$$.file conf$$ 2>/dev/null; then
39471  as_ln_s=ln
39472else
39473  as_ln_s='cp -p'
39474fi
39475rm -f conf$$ conf$$.exe conf$$.file
39476
39477if mkdir -p . 2>/dev/null; then
39478  as_mkdir_p=:
39479else
39480  test -d ./-p && rmdir ./-p
39481  as_mkdir_p=false
39482fi
39483
39484as_executable_p="test -f"
39485
39486# Sed expression to map a string onto a valid CPP name.
39487as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
39488
39489# Sed expression to map a string onto a valid variable name.
39490as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
39491
39492
39493# IFS
39494# We need space, tab and new line, in precisely that order.
39495as_nl='
39496'
39497IFS=" 	$as_nl"
39498
39499# CDPATH.
39500$as_unset CDPATH
39501
39502exec 6>&1
39503
39504# Open the log real soon, to keep \$[0] and so on meaningful, and to
39505# report actual input values of CONFIG_FILES etc. instead of their
39506# values after options handling.  Logging --version etc. is OK.
39507exec 5>>config.log
39508{
39509  echo
39510  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
39511## Running $as_me. ##
39512_ASBOX
39513} >&5
39514cat >&5 <<_CSEOF
39515
39516This file was extended by CoinUtils $as_me 2.11.4, which was
39517generated by GNU Autoconf 2.59.  Invocation command line was
39518
39519  CONFIG_FILES    = $CONFIG_FILES
39520  CONFIG_HEADERS  = $CONFIG_HEADERS
39521  CONFIG_LINKS    = $CONFIG_LINKS
39522  CONFIG_COMMANDS = $CONFIG_COMMANDS
39523  $ $0 $@
39524
39525_CSEOF
39526echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
39527echo >&5
39528_ACEOF
39529
39530# Files that config.status was made for.
39531if test -n "$ac_config_files"; then
39532  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
39533fi
39534
39535if test -n "$ac_config_headers"; then
39536  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
39537fi
39538
39539if test -n "$ac_config_links"; then
39540  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
39541fi
39542
39543if test -n "$ac_config_commands"; then
39544  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
39545fi
39546
39547cat >>$CONFIG_STATUS <<\_ACEOF
39548
39549ac_cs_usage="\
39550\`$as_me' instantiates files from templates according to the
39551current configuration.
39552
39553Usage: $0 [OPTIONS] [FILE]...
39554
39555  -h, --help       print this help, then exit
39556  -V, --version    print version number, then exit
39557  -q, --quiet      do not print progress messages
39558  -d, --debug      don't remove temporary files
39559      --recheck    update $as_me by reconfiguring in the same conditions
39560  --file=FILE[:TEMPLATE]
39561		   instantiate the configuration file FILE
39562  --header=FILE[:TEMPLATE]
39563		   instantiate the configuration header FILE
39564
39565Configuration files:
39566$config_files
39567
39568Configuration headers:
39569$config_headers
39570
39571Configuration commands:
39572$config_commands
39573
39574Report bugs to <bug-autoconf@gnu.org>."
39575_ACEOF
39576
39577cat >>$CONFIG_STATUS <<_ACEOF
39578ac_cs_version="\\
39579CoinUtils config.status 2.11.4
39580configured by $0, generated by GNU Autoconf 2.59,
39581  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
39582
39583Copyright (C) 2003 Free Software Foundation, Inc.
39584This config.status script is free software; the Free Software Foundation
39585gives unlimited permission to copy, distribute and modify it."
39586srcdir=$srcdir
39587INSTALL="$INSTALL"
39588_ACEOF
39589
39590cat >>$CONFIG_STATUS <<\_ACEOF
39591# If no file are specified by the user, then we need to provide default
39592# value.  By we need to know if files were specified by the user.
39593ac_need_defaults=:
39594while test $# != 0
39595do
39596  case $1 in
39597  --*=*)
39598    ac_option=`expr "x$1" : 'x\([^=]*\)='`
39599    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
39600    ac_shift=:
39601    ;;
39602  -*)
39603    ac_option=$1
39604    ac_optarg=$2
39605    ac_shift=shift
39606    ;;
39607  *) # This is not an option, so the user has probably given explicit
39608     # arguments.
39609     ac_option=$1
39610     ac_need_defaults=false;;
39611  esac
39612
39613  case $ac_option in
39614  # Handling of the options.
39615_ACEOF
39616cat >>$CONFIG_STATUS <<\_ACEOF
39617  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
39618    ac_cs_recheck=: ;;
39619  --version | --vers* | -V )
39620    echo "$ac_cs_version"; exit 0 ;;
39621  --he | --h)
39622    # Conflict between --help and --header
39623    { { echo "$as_me:$LINENO: error: ambiguous option: $1
39624Try \`$0 --help' for more information." >&5
39625echo "$as_me: error: ambiguous option: $1
39626Try \`$0 --help' for more information." >&2;}
39627   { (exit 1); exit 1; }; };;
39628  --help | --hel | -h )
39629    echo "$ac_cs_usage"; exit 0 ;;
39630  --debug | --d* | -d )
39631    debug=: ;;
39632  --file | --fil | --fi | --f )
39633    $ac_shift
39634    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
39635    ac_need_defaults=false;;
39636  --header | --heade | --head | --hea )
39637    $ac_shift
39638    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
39639    ac_need_defaults=false;;
39640  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
39641  | -silent | --silent | --silen | --sile | --sil | --si | --s)
39642    ac_cs_silent=: ;;
39643
39644  # This is an error.
39645  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
39646Try \`$0 --help' for more information." >&5
39647echo "$as_me: error: unrecognized option: $1
39648Try \`$0 --help' for more information." >&2;}
39649   { (exit 1); exit 1; }; } ;;
39650
39651  *) ac_config_targets="$ac_config_targets $1" ;;
39652
39653  esac
39654  shift
39655done
39656
39657ac_configure_extra_args=
39658
39659if $ac_cs_silent; then
39660  exec 6>/dev/null
39661  ac_configure_extra_args="$ac_configure_extra_args --silent"
39662fi
39663
39664_ACEOF
39665cat >>$CONFIG_STATUS <<_ACEOF
39666if \$ac_cs_recheck; then
39667  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
39668  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
39669fi
39670
39671_ACEOF
39672
39673cat >>$CONFIG_STATUS <<_ACEOF
39674#
39675# INIT-COMMANDS section.
39676#
39677
39678AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
39679
39680_ACEOF
39681
39682
39683
39684cat >>$CONFIG_STATUS <<\_ACEOF
39685for ac_config_target in $ac_config_targets
39686do
39687  case "$ac_config_target" in
39688  # Handling of arguments.
39689  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
39690  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
39691  "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
39692  "coinutils.pc" ) CONFIG_FILES="$CONFIG_FILES coinutils.pc" ;;
39693  "coinutils-uninstalled.pc" ) CONFIG_FILES="$CONFIG_FILES coinutils-uninstalled.pc" ;;
39694  "doxydoc/doxygen.conf" ) CONFIG_FILES="$CONFIG_FILES doxydoc/doxygen.conf" ;;
39695  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
39696  "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
39697  "src/config_coinutils.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config_coinutils.h" ;;
39698  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
39699echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
39700   { (exit 1); exit 1; }; };;
39701  esac
39702done
39703
39704# If the user did not use the arguments to specify the items to instantiate,
39705# then the envvar interface is used.  Set only those that are not.
39706# We use the long form for the default assignment because of an extremely
39707# bizarre bug on SunOS 4.1.3.
39708if $ac_need_defaults; then
39709  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
39710  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
39711  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
39712fi
39713
39714# Have a temporary directory for convenience.  Make it in the build tree
39715# simply because there is no reason to put it here, and in addition,
39716# creating and moving files from /tmp can sometimes cause problems.
39717# Create a temporary directory, and hook for its removal unless debugging.
39718$debug ||
39719{
39720  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
39721  trap '{ (exit 1); exit 1; }' 1 2 13 15
39722}
39723
39724# Create a (secure) tmp directory for tmp files.
39725
39726{
39727  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
39728  test -n "$tmp" && test -d "$tmp"
39729}  ||
39730{
39731  tmp=./confstat$$-$RANDOM
39732  (umask 077 && mkdir $tmp)
39733} ||
39734{
39735   echo "$me: cannot create a temporary directory in ." >&2
39736   { (exit 1); exit 1; }
39737}
39738
39739_ACEOF
39740
39741cat >>$CONFIG_STATUS <<_ACEOF
39742
39743#
39744# CONFIG_FILES section.
39745#
39746
39747# No need to generate the scripts if there are no CONFIG_FILES.
39748# This happens for instance when ./config.status config.h
39749if test -n "\$CONFIG_FILES"; then
39750  # Protect against being on the right side of a sed subst in config.status.
39751  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
39752   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
39753s,@SHELL@,$SHELL,;t t
39754s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
39755s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
39756s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
39757s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
39758s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
39759s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
39760s,@exec_prefix@,$exec_prefix,;t t
39761s,@prefix@,$prefix,;t t
39762s,@program_transform_name@,$program_transform_name,;t t
39763s,@bindir@,$bindir,;t t
39764s,@sbindir@,$sbindir,;t t
39765s,@libexecdir@,$libexecdir,;t t
39766s,@datadir@,$datadir,;t t
39767s,@sysconfdir@,$sysconfdir,;t t
39768s,@sharedstatedir@,$sharedstatedir,;t t
39769s,@localstatedir@,$localstatedir,;t t
39770s,@libdir@,$libdir,;t t
39771s,@includedir@,$includedir,;t t
39772s,@oldincludedir@,$oldincludedir,;t t
39773s,@infodir@,$infodir,;t t
39774s,@mandir@,$mandir,;t t
39775s,@build_alias@,$build_alias,;t t
39776s,@host_alias@,$host_alias,;t t
39777s,@target_alias@,$target_alias,;t t
39778s,@DEFS@,$DEFS,;t t
39779s,@ECHO_C@,$ECHO_C,;t t
39780s,@ECHO_N@,$ECHO_N,;t t
39781s,@ECHO_T@,$ECHO_T,;t t
39782s,@LIBS@,$LIBS,;t t
39783s,@build@,$build,;t t
39784s,@build_cpu@,$build_cpu,;t t
39785s,@build_vendor@,$build_vendor,;t t
39786s,@build_os@,$build_os,;t t
39787s,@ALWAYS_FALSE_TRUE@,$ALWAYS_FALSE_TRUE,;t t
39788s,@ALWAYS_FALSE_FALSE@,$ALWAYS_FALSE_FALSE,;t t
39789s,@have_svnversion@,$have_svnversion,;t t
39790s,@COINUTILS_SVN_REV@,$COINUTILS_SVN_REV,;t t
39791s,@CDEFS@,$CDEFS,;t t
39792s,@ADD_CFLAGS@,$ADD_CFLAGS,;t t
39793s,@DBG_CFLAGS@,$DBG_CFLAGS,;t t
39794s,@OPT_CFLAGS@,$OPT_CFLAGS,;t t
39795s,@sol_cc_compiler@,$sol_cc_compiler,;t t
39796s,@CC@,$CC,;t t
39797s,@CFLAGS@,$CFLAGS,;t t
39798s,@LDFLAGS@,$LDFLAGS,;t t
39799s,@CPPFLAGS@,$CPPFLAGS,;t t
39800s,@ac_ct_CC@,$ac_ct_CC,;t t
39801s,@EXEEXT@,$EXEEXT,;t t
39802s,@OBJEXT@,$OBJEXT,;t t
39803s,@COIN_CC_IS_CL_TRUE@,$COIN_CC_IS_CL_TRUE,;t t
39804s,@COIN_CC_IS_CL_FALSE@,$COIN_CC_IS_CL_FALSE,;t t
39805s,@MPICC@,$MPICC,;t t
39806s,@CXXDEFS@,$CXXDEFS,;t t
39807s,@ADD_CXXFLAGS@,$ADD_CXXFLAGS,;t t
39808s,@DBG_CXXFLAGS@,$DBG_CXXFLAGS,;t t
39809s,@OPT_CXXFLAGS@,$OPT_CXXFLAGS,;t t
39810s,@CXX@,$CXX,;t t
39811s,@CXXFLAGS@,$CXXFLAGS,;t t
39812s,@ac_ct_CXX@,$ac_ct_CXX,;t t
39813s,@COIN_CXX_IS_CL_TRUE@,$COIN_CXX_IS_CL_TRUE,;t t
39814s,@COIN_CXX_IS_CL_FALSE@,$COIN_CXX_IS_CL_FALSE,;t t
39815s,@MPICXX@,$MPICXX,;t t
39816s,@ADD_FFLAGS@,$ADD_FFLAGS,;t t
39817s,@DBG_FFLAGS@,$DBG_FFLAGS,;t t
39818s,@OPT_FFLAGS@,$OPT_FFLAGS,;t t
39819s,@F77@,$F77,;t t
39820s,@ac_ct_F77@,$ac_ct_F77,;t t
39821s,@FFLAGS@,$FFLAGS,;t t
39822s,@MPIF77@,$MPIF77,;t t
39823s,@FLIBS@,$FLIBS,;t t
39824s,@EGREP@,$EGREP,;t t
39825s,@LN_S@,$LN_S,;t t
39826s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
39827s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
39828s,@INSTALL_DATA@,$INSTALL_DATA,;t t
39829s,@CYGPATH_W@,$CYGPATH_W,;t t
39830s,@PACKAGE@,$PACKAGE,;t t
39831s,@VERSION@,$VERSION,;t t
39832s,@ACLOCAL@,$ACLOCAL,;t t
39833s,@AUTOCONF@,$AUTOCONF,;t t
39834s,@AUTOMAKE@,$AUTOMAKE,;t t
39835s,@AUTOHEADER@,$AUTOHEADER,;t t
39836s,@MAKEINFO@,$MAKEINFO,;t t
39837s,@install_sh@,$install_sh,;t t
39838s,@STRIP@,$STRIP,;t t
39839s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
39840s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
39841s,@mkdir_p@,$mkdir_p,;t t
39842s,@AWK@,$AWK,;t t
39843s,@SET_MAKE@,$SET_MAKE,;t t
39844s,@am__leading_dot@,$am__leading_dot,;t t
39845s,@AMTAR@,$AMTAR,;t t
39846s,@am__tar@,$am__tar,;t t
39847s,@am__untar@,$am__untar,;t t
39848s,@DEPDIR@,$DEPDIR,;t t
39849s,@am__include@,$am__include,;t t
39850s,@am__quote@,$am__quote,;t t
39851s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
39852s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
39853s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
39854s,@CCDEPMODE@,$CCDEPMODE,;t t
39855s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
39856s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
39857s,@CXXDEPMODE@,$CXXDEPMODE,;t t
39858s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
39859s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
39860s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
39861s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
39862s,@MAINT@,$MAINT,;t t
39863s,@LIBTOOLM4@,$LIBTOOLM4,;t t
39864s,@have_autoconf@,$have_autoconf,;t t
39865s,@have_automake@,$have_automake,;t t
39866s,@have_svn@,$have_svn,;t t
39867s,@BUILDTOOLSDIR@,$BUILDTOOLSDIR,;t t
39868s,@AUX_DIR@,$AUX_DIR,;t t
39869s,@abs_source_dir@,$abs_source_dir,;t t
39870s,@abs_lib_dir@,$abs_lib_dir,;t t
39871s,@abs_include_dir@,$abs_include_dir,;t t
39872s,@abs_bin_dir@,$abs_bin_dir,;t t
39873s,@HAVE_EXTERNALS_TRUE@,$HAVE_EXTERNALS_TRUE,;t t
39874s,@HAVE_EXTERNALS_FALSE@,$HAVE_EXTERNALS_FALSE,;t t
39875s,@host@,$host,;t t
39876s,@host_cpu@,$host_cpu,;t t
39877s,@host_vendor@,$host_vendor,;t t
39878s,@host_os@,$host_os,;t t
39879s,@ECHO@,$ECHO,;t t
39880s,@AR@,$AR,;t t
39881s,@ac_ct_AR@,$ac_ct_AR,;t t
39882s,@RANLIB@,$RANLIB,;t t
39883s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
39884s,@CPP@,$CPP,;t t
39885s,@CXXCPP@,$CXXCPP,;t t
39886s,@LIBTOOL@,$LIBTOOL,;t t
39887s,@ac_c_preproc_warn_flag@,$ac_c_preproc_warn_flag,;t t
39888s,@ac_cxx_preproc_warn_flag@,$ac_cxx_preproc_warn_flag,;t t
39889s,@dos2unix@,$dos2unix,;t t
39890s,@RPATH_FLAGS@,$RPATH_FLAGS,;t t
39891s,@DEPENDENCY_LINKING_TRUE@,$DEPENDENCY_LINKING_TRUE,;t t
39892s,@DEPENDENCY_LINKING_FALSE@,$DEPENDENCY_LINKING_FALSE,;t t
39893s,@LT_LDFLAGS@,$LT_LDFLAGS,;t t
39894s,@PKG_CONFIG@,$PKG_CONFIG,;t t
39895s,@ac_ct_PKG_CONFIG@,$ac_ct_PKG_CONFIG,;t t
39896s,@COIN_HAS_PKGCONFIG_TRUE@,$COIN_HAS_PKGCONFIG_TRUE,;t t
39897s,@COIN_HAS_PKGCONFIG_FALSE@,$COIN_HAS_PKGCONFIG_FALSE,;t t
39898s,@COIN_PKG_CONFIG_PATH@,$COIN_PKG_CONFIG_PATH,;t t
39899s,@COIN_PKG_CONFIG_PATH_UNINSTALLED@,$COIN_PKG_CONFIG_PATH_UNINSTALLED,;t t
39900s,@BLAS_LIBS@,$BLAS_LIBS,;t t
39901s,@BLAS_CFLAGS@,$BLAS_CFLAGS,;t t
39902s,@BLAS_DATA@,$BLAS_DATA,;t t
39903s,@BLAS_DEPENDENCIES@,$BLAS_DEPENDENCIES,;t t
39904s,@BLAS_LIBS_INSTALLED@,$BLAS_LIBS_INSTALLED,;t t
39905s,@BLAS_CFLAGS_INSTALLED@,$BLAS_CFLAGS_INSTALLED,;t t
39906s,@BLAS_DATA_INSTALLED@,$BLAS_DATA_INSTALLED,;t t
39907s,@COINUTILSLIB_CFLAGS@,$COINUTILSLIB_CFLAGS,;t t
39908s,@COINUTILSLIB_LIBS@,$COINUTILSLIB_LIBS,;t t
39909s,@COINUTILSLIB_PCLIBS@,$COINUTILSLIB_PCLIBS,;t t
39910s,@COINUTILSLIB_PCREQUIRES@,$COINUTILSLIB_PCREQUIRES,;t t
39911s,@COINUTILSLIB_DEPENDENCIES@,$COINUTILSLIB_DEPENDENCIES,;t t
39912s,@COINUTILSLIB_CFLAGS_INSTALLED@,$COINUTILSLIB_CFLAGS_INSTALLED,;t t
39913s,@COINUTILSLIB_LIBS_INSTALLED@,$COINUTILSLIB_LIBS_INSTALLED,;t t
39914s,@COIN_HAS_BLAS_TRUE@,$COIN_HAS_BLAS_TRUE,;t t
39915s,@COIN_HAS_BLAS_FALSE@,$COIN_HAS_BLAS_FALSE,;t t
39916s,@LAPACK_LIBS@,$LAPACK_LIBS,;t t
39917s,@LAPACK_CFLAGS@,$LAPACK_CFLAGS,;t t
39918s,@LAPACK_DATA@,$LAPACK_DATA,;t t
39919s,@LAPACK_DEPENDENCIES@,$LAPACK_DEPENDENCIES,;t t
39920s,@LAPACK_LIBS_INSTALLED@,$LAPACK_LIBS_INSTALLED,;t t
39921s,@LAPACK_CFLAGS_INSTALLED@,$LAPACK_CFLAGS_INSTALLED,;t t
39922s,@LAPACK_DATA_INSTALLED@,$LAPACK_DATA_INSTALLED,;t t
39923s,@COIN_HAS_LAPACK_TRUE@,$COIN_HAS_LAPACK_TRUE,;t t
39924s,@COIN_HAS_LAPACK_FALSE@,$COIN_HAS_LAPACK_FALSE,;t t
39925s,@GLPK_LIBS@,$GLPK_LIBS,;t t
39926s,@GLPK_CFLAGS@,$GLPK_CFLAGS,;t t
39927s,@GLPK_DATA@,$GLPK_DATA,;t t
39928s,@GLPK_DEPENDENCIES@,$GLPK_DEPENDENCIES,;t t
39929s,@GLPK_LIBS_INSTALLED@,$GLPK_LIBS_INSTALLED,;t t
39930s,@GLPK_CFLAGS_INSTALLED@,$GLPK_CFLAGS_INSTALLED,;t t
39931s,@GLPK_DATA_INSTALLED@,$GLPK_DATA_INSTALLED,;t t
39932s,@COIN_HAS_GLPK_TRUE@,$COIN_HAS_GLPK_TRUE,;t t
39933s,@COIN_HAS_GLPK_FALSE@,$COIN_HAS_GLPK_FALSE,;t t
39934s,@SAMPLE_LIBS@,$SAMPLE_LIBS,;t t
39935s,@SAMPLE_CFLAGS@,$SAMPLE_CFLAGS,;t t
39936s,@SAMPLE_DATA@,$SAMPLE_DATA,;t t
39937s,@SAMPLE_DEPENDENCIES@,$SAMPLE_DEPENDENCIES,;t t
39938s,@SAMPLE_LIBS_INSTALLED@,$SAMPLE_LIBS_INSTALLED,;t t
39939s,@SAMPLE_CFLAGS_INSTALLED@,$SAMPLE_CFLAGS_INSTALLED,;t t
39940s,@SAMPLE_DATA_INSTALLED@,$SAMPLE_DATA_INSTALLED,;t t
39941s,@COIN_HAS_SAMPLE_TRUE@,$COIN_HAS_SAMPLE_TRUE,;t t
39942s,@COIN_HAS_SAMPLE_FALSE@,$COIN_HAS_SAMPLE_FALSE,;t t
39943s,@NETLIB_LIBS@,$NETLIB_LIBS,;t t
39944s,@NETLIB_CFLAGS@,$NETLIB_CFLAGS,;t t
39945s,@NETLIB_DATA@,$NETLIB_DATA,;t t
39946s,@NETLIB_DEPENDENCIES@,$NETLIB_DEPENDENCIES,;t t
39947s,@NETLIB_LIBS_INSTALLED@,$NETLIB_LIBS_INSTALLED,;t t
39948s,@NETLIB_CFLAGS_INSTALLED@,$NETLIB_CFLAGS_INSTALLED,;t t
39949s,@NETLIB_DATA_INSTALLED@,$NETLIB_DATA_INSTALLED,;t t
39950s,@COIN_HAS_NETLIB_TRUE@,$COIN_HAS_NETLIB_TRUE,;t t
39951s,@COIN_HAS_NETLIB_FALSE@,$COIN_HAS_NETLIB_FALSE,;t t
39952s,@COIN_HAS_ZLIB_TRUE@,$COIN_HAS_ZLIB_TRUE,;t t
39953s,@COIN_HAS_ZLIB_FALSE@,$COIN_HAS_ZLIB_FALSE,;t t
39954s,@coin_have_doxygen@,$coin_have_doxygen,;t t
39955s,@coin_have_latex@,$coin_have_latex,;t t
39956s,@coin_doxy_usedot@,$coin_doxy_usedot,;t t
39957s,@coin_doxy_tagname@,$coin_doxy_tagname,;t t
39958s,@coin_doxy_logname@,$coin_doxy_logname,;t t
39959s,@COIN_HAS_DOXYGEN_TRUE@,$COIN_HAS_DOXYGEN_TRUE,;t t
39960s,@COIN_HAS_DOXYGEN_FALSE@,$COIN_HAS_DOXYGEN_FALSE,;t t
39961s,@COIN_HAS_LATEX_TRUE@,$COIN_HAS_LATEX_TRUE,;t t
39962s,@COIN_HAS_LATEX_FALSE@,$COIN_HAS_LATEX_FALSE,;t t
39963s,@coin_doxy_tagfiles@,$coin_doxy_tagfiles,;t t
39964s,@coin_doxy_excludes@,$coin_doxy_excludes,;t t
39965s,@LIBEXT@,$LIBEXT,;t t
39966s,@VPATH_DISTCLEANFILES@,$VPATH_DISTCLEANFILES,;t t
39967s,@ABSBUILDDIR@,$ABSBUILDDIR,;t t
39968s,@LIBOBJS@,$LIBOBJS,;t t
39969s,@LTLIBOBJS@,$LTLIBOBJS,;t t
39970CEOF
39971
39972_ACEOF
39973
39974  cat >>$CONFIG_STATUS <<\_ACEOF
39975  # Split the substitutions into bite-sized pieces for seds with
39976  # small command number limits, like on Digital OSF/1 and HP-UX.
39977  ac_max_sed_lines=48
39978  ac_sed_frag=1 # Number of current file.
39979  ac_beg=1 # First line for current file.
39980  ac_end=$ac_max_sed_lines # Line after last line for current file.
39981  ac_more_lines=:
39982  ac_sed_cmds=
39983  while $ac_more_lines; do
39984    if test $ac_beg -gt 1; then
39985      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
39986    else
39987      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
39988    fi
39989    if test ! -s $tmp/subs.frag; then
39990      ac_more_lines=false
39991    else
39992      # The purpose of the label and of the branching condition is to
39993      # speed up the sed processing (if there are no `@' at all, there
39994      # is no need to browse any of the substitutions).
39995      # These are the two extra sed commands mentioned above.
39996      (echo ':t
39997  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
39998      if test -z "$ac_sed_cmds"; then
39999	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
40000      else
40001	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
40002      fi
40003      ac_sed_frag=`expr $ac_sed_frag + 1`
40004      ac_beg=$ac_end
40005      ac_end=`expr $ac_end + $ac_max_sed_lines`
40006    fi
40007  done
40008  if test -z "$ac_sed_cmds"; then
40009    ac_sed_cmds=cat
40010  fi
40011fi # test -n "$CONFIG_FILES"
40012
40013_ACEOF
40014cat >>$CONFIG_STATUS <<\_ACEOF
40015for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
40016  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
40017  case $ac_file in
40018  - | *:- | *:-:* ) # input from stdin
40019	cat >$tmp/stdin
40020	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
40021	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
40022  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
40023	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
40024  * )   ac_file_in=$ac_file.in ;;
40025  esac
40026
40027  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
40028  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
40029$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40030	 X"$ac_file" : 'X\(//\)[^/]' \| \
40031	 X"$ac_file" : 'X\(//\)$' \| \
40032	 X"$ac_file" : 'X\(/\)' \| \
40033	 .     : '\(.\)' 2>/dev/null ||
40034echo X"$ac_file" |
40035    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40036  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40037  	  /^X\(\/\/\)$/{ s//\1/; q; }
40038  	  /^X\(\/\).*/{ s//\1/; q; }
40039  	  s/.*/./; q'`
40040  { if $as_mkdir_p; then
40041    mkdir -p "$ac_dir"
40042  else
40043    as_dir="$ac_dir"
40044    as_dirs=
40045    while test ! -d "$as_dir"; do
40046      as_dirs="$as_dir $as_dirs"
40047      as_dir=`(dirname "$as_dir") 2>/dev/null ||
40048$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40049	 X"$as_dir" : 'X\(//\)[^/]' \| \
40050	 X"$as_dir" : 'X\(//\)$' \| \
40051	 X"$as_dir" : 'X\(/\)' \| \
40052	 .     : '\(.\)' 2>/dev/null ||
40053echo X"$as_dir" |
40054    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40055  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40056  	  /^X\(\/\/\)$/{ s//\1/; q; }
40057  	  /^X\(\/\).*/{ s//\1/; q; }
40058  	  s/.*/./; q'`
40059    done
40060    test ! -n "$as_dirs" || mkdir $as_dirs
40061  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
40062echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
40063   { (exit 1); exit 1; }; }; }
40064
40065  ac_builddir=.
40066
40067if test "$ac_dir" != .; then
40068  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
40069  # A "../" for each directory in $ac_dir_suffix.
40070  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
40071else
40072  ac_dir_suffix= ac_top_builddir=
40073fi
40074
40075case $srcdir in
40076  .)  # No --srcdir option.  We are building in place.
40077    ac_srcdir=.
40078    if test -z "$ac_top_builddir"; then
40079       ac_top_srcdir=.
40080    else
40081       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
40082    fi ;;
40083  [\\/]* | ?:[\\/]* )  # Absolute path.
40084    ac_srcdir=$srcdir$ac_dir_suffix;
40085    ac_top_srcdir=$srcdir ;;
40086  *) # Relative path.
40087    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
40088    ac_top_srcdir=$ac_top_builddir$srcdir ;;
40089esac
40090
40091# Do not use `cd foo && pwd` to compute absolute paths, because
40092# the directories may not exist.
40093case `pwd` in
40094.) ac_abs_builddir="$ac_dir";;
40095*)
40096  case "$ac_dir" in
40097  .) ac_abs_builddir=`pwd`;;
40098  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
40099  *) ac_abs_builddir=`pwd`/"$ac_dir";;
40100  esac;;
40101esac
40102case $ac_abs_builddir in
40103.) ac_abs_top_builddir=${ac_top_builddir}.;;
40104*)
40105  case ${ac_top_builddir}. in
40106  .) ac_abs_top_builddir=$ac_abs_builddir;;
40107  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
40108  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
40109  esac;;
40110esac
40111case $ac_abs_builddir in
40112.) ac_abs_srcdir=$ac_srcdir;;
40113*)
40114  case $ac_srcdir in
40115  .) ac_abs_srcdir=$ac_abs_builddir;;
40116  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
40117  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
40118  esac;;
40119esac
40120case $ac_abs_builddir in
40121.) ac_abs_top_srcdir=$ac_top_srcdir;;
40122*)
40123  case $ac_top_srcdir in
40124  .) ac_abs_top_srcdir=$ac_abs_builddir;;
40125  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
40126  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
40127  esac;;
40128esac
40129
40130
40131  case $INSTALL in
40132  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
40133  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
40134  esac
40135
40136  if test x"$ac_file" != x-; then
40137    { echo "$as_me:$LINENO: creating $ac_file" >&5
40138echo "$as_me: creating $ac_file" >&6;}
40139    rm -f "$ac_file"
40140  fi
40141  # Let's still pretend it is `configure' which instantiates (i.e., don't
40142  # use $as_me), people would be surprised to read:
40143  #    /* config.h.  Generated by config.status.  */
40144  if test x"$ac_file" = x-; then
40145    configure_input=
40146  else
40147    configure_input="$ac_file.  "
40148  fi
40149  configure_input=$configure_input"Generated from `echo $ac_file_in |
40150				     sed 's,.*/,,'` by configure."
40151
40152  # First look for the input files in the build tree, otherwise in the
40153  # src tree.
40154  ac_file_inputs=`IFS=:
40155    for f in $ac_file_in; do
40156      case $f in
40157      -) echo $tmp/stdin ;;
40158      [\\/$]*)
40159	 # Absolute (can't be DOS-style, as IFS=:)
40160	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
40161echo "$as_me: error: cannot find input file: $f" >&2;}
40162   { (exit 1); exit 1; }; }
40163	 echo "$f";;
40164      *) # Relative
40165	 if test -f "$f"; then
40166	   # Build tree
40167	   echo "$f"
40168	 elif test -f "$srcdir/$f"; then
40169	   # Source tree
40170	   echo "$srcdir/$f"
40171	 else
40172	   # /dev/null tree
40173	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
40174echo "$as_me: error: cannot find input file: $f" >&2;}
40175   { (exit 1); exit 1; }; }
40176	 fi;;
40177      esac
40178    done` || { (exit 1); exit 1; }
40179_ACEOF
40180cat >>$CONFIG_STATUS <<_ACEOF
40181  sed "$ac_vpsub
40182$extrasub
40183_ACEOF
40184cat >>$CONFIG_STATUS <<\_ACEOF
40185:t
40186/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
40187s,@configure_input@,$configure_input,;t t
40188s,@srcdir@,$ac_srcdir,;t t
40189s,@abs_srcdir@,$ac_abs_srcdir,;t t
40190s,@top_srcdir@,$ac_top_srcdir,;t t
40191s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
40192s,@builddir@,$ac_builddir,;t t
40193s,@abs_builddir@,$ac_abs_builddir,;t t
40194s,@top_builddir@,$ac_top_builddir,;t t
40195s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
40196s,@INSTALL@,$ac_INSTALL,;t t
40197" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
40198  rm -f $tmp/stdin
40199  if test x"$ac_file" != x-; then
40200    mv $tmp/out $ac_file
40201  else
40202    cat $tmp/out
40203    rm -f $tmp/out
40204  fi
40205
40206done
40207_ACEOF
40208cat >>$CONFIG_STATUS <<\_ACEOF
40209
40210#
40211# CONFIG_HEADER section.
40212#
40213
40214# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
40215# NAME is the cpp macro being defined and VALUE is the value it is being given.
40216#
40217# ac_d sets the value in "#define NAME VALUE" lines.
40218ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
40219ac_dB='[	 ].*$,\1#\2'
40220ac_dC=' '
40221ac_dD=',;t'
40222# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
40223ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
40224ac_uB='$,\1#\2define\3'
40225ac_uC=' '
40226ac_uD=',;t'
40227
40228for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
40229  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
40230  case $ac_file in
40231  - | *:- | *:-:* ) # input from stdin
40232	cat >$tmp/stdin
40233	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
40234	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
40235  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
40236	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
40237  * )   ac_file_in=$ac_file.in ;;
40238  esac
40239
40240  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
40241echo "$as_me: creating $ac_file" >&6;}
40242
40243  # First look for the input files in the build tree, otherwise in the
40244  # src tree.
40245  ac_file_inputs=`IFS=:
40246    for f in $ac_file_in; do
40247      case $f in
40248      -) echo $tmp/stdin ;;
40249      [\\/$]*)
40250	 # Absolute (can't be DOS-style, as IFS=:)
40251	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
40252echo "$as_me: error: cannot find input file: $f" >&2;}
40253   { (exit 1); exit 1; }; }
40254	 # Do quote $f, to prevent DOS paths from being IFS'd.
40255	 echo "$f";;
40256      *) # Relative
40257	 if test -f "$f"; then
40258	   # Build tree
40259	   echo "$f"
40260	 elif test -f "$srcdir/$f"; then
40261	   # Source tree
40262	   echo "$srcdir/$f"
40263	 else
40264	   # /dev/null tree
40265	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
40266echo "$as_me: error: cannot find input file: $f" >&2;}
40267   { (exit 1); exit 1; }; }
40268	 fi;;
40269      esac
40270    done` || { (exit 1); exit 1; }
40271  # Remove the trailing spaces.
40272  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
40273
40274_ACEOF
40275
40276# Transform confdefs.h into two sed scripts, `conftest.defines' and
40277# `conftest.undefs', that substitutes the proper values into
40278# config.h.in to produce config.h.  The first handles `#define'
40279# templates, and the second `#undef' templates.
40280# And first: Protect against being on the right side of a sed subst in
40281# config.status.  Protect against being in an unquoted here document
40282# in config.status.
40283rm -f conftest.defines conftest.undefs
40284# Using a here document instead of a string reduces the quoting nightmare.
40285# Putting comments in sed scripts is not portable.
40286#
40287# `end' is used to avoid that the second main sed command (meant for
40288# 0-ary CPP macros) applies to n-ary macro definitions.
40289# See the Autoconf documentation for `clear'.
40290cat >confdef2sed.sed <<\_ACEOF
40291s/[\\&,]/\\&/g
40292s,[\\$`],\\&,g
40293t clear
40294: clear
40295s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
40296t end
40297s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
40298: end
40299_ACEOF
40300# If some macros were called several times there might be several times
40301# the same #defines, which is useless.  Nevertheless, we may not want to
40302# sort them, since we want the *last* AC-DEFINE to be honored.
40303uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
40304sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
40305rm -f confdef2sed.sed
40306
40307# This sed command replaces #undef with comments.  This is necessary, for
40308# example, in the case of _POSIX_SOURCE, which is predefined and required
40309# on some systems where configure will not decide to define it.
40310cat >>conftest.undefs <<\_ACEOF
40311s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
40312_ACEOF
40313
40314# Break up conftest.defines because some shells have a limit on the size
40315# of here documents, and old seds have small limits too (100 cmds).
40316echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
40317echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
40318echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
40319echo '  :' >>$CONFIG_STATUS
40320rm -f conftest.tail
40321while grep . conftest.defines >/dev/null
40322do
40323  # Write a limited-size here document to $tmp/defines.sed.
40324  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
40325  # Speed up: don't consider the non `#define' lines.
40326  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
40327  # Work around the forget-to-reset-the-flag bug.
40328  echo 't clr' >>$CONFIG_STATUS
40329  echo ': clr' >>$CONFIG_STATUS
40330  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
40331  echo 'CEOF
40332  sed -f $tmp/defines.sed $tmp/in >$tmp/out
40333  rm -f $tmp/in
40334  mv $tmp/out $tmp/in
40335' >>$CONFIG_STATUS
40336  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
40337  rm -f conftest.defines
40338  mv conftest.tail conftest.defines
40339done
40340rm -f conftest.defines
40341echo '  fi # grep' >>$CONFIG_STATUS
40342echo >>$CONFIG_STATUS
40343
40344# Break up conftest.undefs because some shells have a limit on the size
40345# of here documents, and old seds have small limits too (100 cmds).
40346echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
40347rm -f conftest.tail
40348while grep . conftest.undefs >/dev/null
40349do
40350  # Write a limited-size here document to $tmp/undefs.sed.
40351  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
40352  # Speed up: don't consider the non `#undef'
40353  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
40354  # Work around the forget-to-reset-the-flag bug.
40355  echo 't clr' >>$CONFIG_STATUS
40356  echo ': clr' >>$CONFIG_STATUS
40357  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
40358  echo 'CEOF
40359  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
40360  rm -f $tmp/in
40361  mv $tmp/out $tmp/in
40362' >>$CONFIG_STATUS
40363  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
40364  rm -f conftest.undefs
40365  mv conftest.tail conftest.undefs
40366done
40367rm -f conftest.undefs
40368
40369cat >>$CONFIG_STATUS <<\_ACEOF
40370  # Let's still pretend it is `configure' which instantiates (i.e., don't
40371  # use $as_me), people would be surprised to read:
40372  #    /* config.h.  Generated by config.status.  */
40373  if test x"$ac_file" = x-; then
40374    echo "/* Generated by configure.  */" >$tmp/config.h
40375  else
40376    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
40377  fi
40378  cat $tmp/in >>$tmp/config.h
40379  rm -f $tmp/in
40380  if test x"$ac_file" != x-; then
40381    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
40382      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
40383echo "$as_me: $ac_file is unchanged" >&6;}
40384    else
40385      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
40386$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40387	 X"$ac_file" : 'X\(//\)[^/]' \| \
40388	 X"$ac_file" : 'X\(//\)$' \| \
40389	 X"$ac_file" : 'X\(/\)' \| \
40390	 .     : '\(.\)' 2>/dev/null ||
40391echo X"$ac_file" |
40392    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40393  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40394  	  /^X\(\/\/\)$/{ s//\1/; q; }
40395  	  /^X\(\/\).*/{ s//\1/; q; }
40396  	  s/.*/./; q'`
40397      { if $as_mkdir_p; then
40398    mkdir -p "$ac_dir"
40399  else
40400    as_dir="$ac_dir"
40401    as_dirs=
40402    while test ! -d "$as_dir"; do
40403      as_dirs="$as_dir $as_dirs"
40404      as_dir=`(dirname "$as_dir") 2>/dev/null ||
40405$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40406	 X"$as_dir" : 'X\(//\)[^/]' \| \
40407	 X"$as_dir" : 'X\(//\)$' \| \
40408	 X"$as_dir" : 'X\(/\)' \| \
40409	 .     : '\(.\)' 2>/dev/null ||
40410echo X"$as_dir" |
40411    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40412  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40413  	  /^X\(\/\/\)$/{ s//\1/; q; }
40414  	  /^X\(\/\).*/{ s//\1/; q; }
40415  	  s/.*/./; q'`
40416    done
40417    test ! -n "$as_dirs" || mkdir $as_dirs
40418  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
40419echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
40420   { (exit 1); exit 1; }; }; }
40421
40422      rm -f $ac_file
40423      mv $tmp/config.h $ac_file
40424    fi
40425  else
40426    cat $tmp/config.h
40427    rm -f $tmp/config.h
40428  fi
40429# Compute $ac_file's index in $config_headers.
40430_am_stamp_count=1
40431for _am_header in $config_headers :; do
40432  case $_am_header in
40433    $ac_file | $ac_file:* )
40434      break ;;
40435    * )
40436      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
40437  esac
40438done
40439echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
40440$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40441	 X$ac_file : 'X\(//\)[^/]' \| \
40442	 X$ac_file : 'X\(//\)$' \| \
40443	 X$ac_file : 'X\(/\)' \| \
40444	 .     : '\(.\)' 2>/dev/null ||
40445echo X$ac_file |
40446    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40447  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40448  	  /^X\(\/\/\)$/{ s//\1/; q; }
40449  	  /^X\(\/\).*/{ s//\1/; q; }
40450  	  s/.*/./; q'`/stamp-h$_am_stamp_count
40451done
40452_ACEOF
40453cat >>$CONFIG_STATUS <<\_ACEOF
40454
40455#
40456# CONFIG_COMMANDS section.
40457#
40458for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
40459  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
40460  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
40461  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
40462$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40463	 X"$ac_dest" : 'X\(//\)[^/]' \| \
40464	 X"$ac_dest" : 'X\(//\)$' \| \
40465	 X"$ac_dest" : 'X\(/\)' \| \
40466	 .     : '\(.\)' 2>/dev/null ||
40467echo X"$ac_dest" |
40468    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40469  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40470  	  /^X\(\/\/\)$/{ s//\1/; q; }
40471  	  /^X\(\/\).*/{ s//\1/; q; }
40472  	  s/.*/./; q'`
40473  { if $as_mkdir_p; then
40474    mkdir -p "$ac_dir"
40475  else
40476    as_dir="$ac_dir"
40477    as_dirs=
40478    while test ! -d "$as_dir"; do
40479      as_dirs="$as_dir $as_dirs"
40480      as_dir=`(dirname "$as_dir") 2>/dev/null ||
40481$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40482	 X"$as_dir" : 'X\(//\)[^/]' \| \
40483	 X"$as_dir" : 'X\(//\)$' \| \
40484	 X"$as_dir" : 'X\(/\)' \| \
40485	 .     : '\(.\)' 2>/dev/null ||
40486echo X"$as_dir" |
40487    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40488  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40489  	  /^X\(\/\/\)$/{ s//\1/; q; }
40490  	  /^X\(\/\).*/{ s//\1/; q; }
40491  	  s/.*/./; q'`
40492    done
40493    test ! -n "$as_dirs" || mkdir $as_dirs
40494  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
40495echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
40496   { (exit 1); exit 1; }; }; }
40497
40498  ac_builddir=.
40499
40500if test "$ac_dir" != .; then
40501  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
40502  # A "../" for each directory in $ac_dir_suffix.
40503  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
40504else
40505  ac_dir_suffix= ac_top_builddir=
40506fi
40507
40508case $srcdir in
40509  .)  # No --srcdir option.  We are building in place.
40510    ac_srcdir=.
40511    if test -z "$ac_top_builddir"; then
40512       ac_top_srcdir=.
40513    else
40514       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
40515    fi ;;
40516  [\\/]* | ?:[\\/]* )  # Absolute path.
40517    ac_srcdir=$srcdir$ac_dir_suffix;
40518    ac_top_srcdir=$srcdir ;;
40519  *) # Relative path.
40520    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
40521    ac_top_srcdir=$ac_top_builddir$srcdir ;;
40522esac
40523
40524# Do not use `cd foo && pwd` to compute absolute paths, because
40525# the directories may not exist.
40526case `pwd` in
40527.) ac_abs_builddir="$ac_dir";;
40528*)
40529  case "$ac_dir" in
40530  .) ac_abs_builddir=`pwd`;;
40531  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
40532  *) ac_abs_builddir=`pwd`/"$ac_dir";;
40533  esac;;
40534esac
40535case $ac_abs_builddir in
40536.) ac_abs_top_builddir=${ac_top_builddir}.;;
40537*)
40538  case ${ac_top_builddir}. in
40539  .) ac_abs_top_builddir=$ac_abs_builddir;;
40540  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
40541  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
40542  esac;;
40543esac
40544case $ac_abs_builddir in
40545.) ac_abs_srcdir=$ac_srcdir;;
40546*)
40547  case $ac_srcdir in
40548  .) ac_abs_srcdir=$ac_abs_builddir;;
40549  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
40550  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
40551  esac;;
40552esac
40553case $ac_abs_builddir in
40554.) ac_abs_top_srcdir=$ac_top_srcdir;;
40555*)
40556  case $ac_top_srcdir in
40557  .) ac_abs_top_srcdir=$ac_abs_builddir;;
40558  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
40559  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
40560  esac;;
40561esac
40562
40563
40564  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
40565echo "$as_me: executing $ac_dest commands" >&6;}
40566  case $ac_dest in
40567    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
40568  # Strip MF so we end up with the name of the file.
40569  mf=`echo "$mf" | sed -e 's/:.*$//'`
40570  # Check whether this is an Automake generated Makefile or not.
40571  # We used to match only the files named `Makefile.in', but
40572  # some people rename them; so instead we look at the file content.
40573  # Grep'ing the first line is not enough: some people post-process
40574  # each Makefile.in and add a new line on top of each file to say so.
40575  # So let's grep whole file.
40576  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
40577    dirpart=`(dirname "$mf") 2>/dev/null ||
40578$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40579	 X"$mf" : 'X\(//\)[^/]' \| \
40580	 X"$mf" : 'X\(//\)$' \| \
40581	 X"$mf" : 'X\(/\)' \| \
40582	 .     : '\(.\)' 2>/dev/null ||
40583echo X"$mf" |
40584    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40585  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40586  	  /^X\(\/\/\)$/{ s//\1/; q; }
40587  	  /^X\(\/\).*/{ s//\1/; q; }
40588  	  s/.*/./; q'`
40589  else
40590    continue
40591  fi
40592  # Extract the definition of DEPDIR, am__include, and am__quote
40593  # from the Makefile without running `make'.
40594  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
40595  test -z "$DEPDIR" && continue
40596  am__include=`sed -n 's/^am__include = //p' < "$mf"`
40597  test -z "am__include" && continue
40598  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
40599  # When using ansi2knr, U may be empty or an underscore; expand it
40600  U=`sed -n 's/^U = //p' < "$mf"`
40601  # Find all dependency output files, they are included files with
40602  # $(DEPDIR) in their names.  We invoke sed twice because it is the
40603  # simplest approach to changing $(DEPDIR) to its actual value in the
40604  # expansion.
40605  for file in `sed -n "
40606    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
40607       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
40608    # Make sure the directory exists.
40609    test -f "$dirpart/$file" && continue
40610    fdir=`(dirname "$file") 2>/dev/null ||
40611$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40612	 X"$file" : 'X\(//\)[^/]' \| \
40613	 X"$file" : 'X\(//\)$' \| \
40614	 X"$file" : 'X\(/\)' \| \
40615	 .     : '\(.\)' 2>/dev/null ||
40616echo X"$file" |
40617    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40618  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40619  	  /^X\(\/\/\)$/{ s//\1/; q; }
40620  	  /^X\(\/\).*/{ s//\1/; q; }
40621  	  s/.*/./; q'`
40622    { if $as_mkdir_p; then
40623    mkdir -p $dirpart/$fdir
40624  else
40625    as_dir=$dirpart/$fdir
40626    as_dirs=
40627    while test ! -d "$as_dir"; do
40628      as_dirs="$as_dir $as_dirs"
40629      as_dir=`(dirname "$as_dir") 2>/dev/null ||
40630$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40631	 X"$as_dir" : 'X\(//\)[^/]' \| \
40632	 X"$as_dir" : 'X\(//\)$' \| \
40633	 X"$as_dir" : 'X\(/\)' \| \
40634	 .     : '\(.\)' 2>/dev/null ||
40635echo X"$as_dir" |
40636    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40637  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40638  	  /^X\(\/\/\)$/{ s//\1/; q; }
40639  	  /^X\(\/\).*/{ s//\1/; q; }
40640  	  s/.*/./; q'`
40641    done
40642    test ! -n "$as_dirs" || mkdir $as_dirs
40643  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
40644echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
40645   { (exit 1); exit 1; }; }; }
40646
40647    # echo "creating $dirpart/$file"
40648    echo '# dummy' > "$dirpart/$file"
40649  done
40650done
40651 ;;
40652  esac
40653done
40654_ACEOF
40655
40656cat >>$CONFIG_STATUS <<\_ACEOF
40657
40658{ (exit 0); exit 0; }
40659_ACEOF
40660chmod +x $CONFIG_STATUS
40661ac_clean_files=$ac_clean_files_save
40662
40663
40664# configure is writing to config.log, and then calls config.status.
40665# config.status does its own redirection, appending to config.log.
40666# Unfortunately, on DOS this fails, as config.log is still kept open
40667# by configure, so config.status won't be able to write to it; its
40668# output is simply discarded.  So we exec the FD to /dev/null,
40669# effectively closing config.log, so it can be properly (re)opened and
40670# appended to by config.status.  When coming back to configure, we
40671# need to make the FD available again.
40672if test "$no_create" != yes; then
40673  ac_cs_success=:
40674  ac_config_status_args=
40675  test "$silent" = yes &&
40676    ac_config_status_args="$ac_config_status_args --quiet"
40677  exec 5>/dev/null
40678  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
40679  exec 5>>config.log
40680  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
40681  # would make configure fail if this is the last instruction.
40682  $ac_cs_success || { (exit 1); exit 1; }
40683fi
40684
40685
40686  if test x"$coin_vpath_link_files" = x; then : ; else
40687    lnkcmd="$coin_link_input_cmd"
40688    if test "$lnkcmd" = cp; then
40689      { echo "$as_me:$LINENO: Copying data files for VPATH configuration" >&5
40690echo "$as_me: Copying data files for VPATH configuration" >&6;}
40691    else
40692      { echo "$as_me:$LINENO: Creating VPATH links for data files" >&5
40693echo "$as_me: Creating VPATH links for data files" >&6;}
40694    fi
40695    for file in $coin_vpath_link_files; do
40696      dir=`(dirname "./$file") 2>/dev/null ||
40697$as_expr X"./$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40698	 X"./$file" : 'X\(//\)[^/]' \| \
40699	 X"./$file" : 'X\(//\)$' \| \
40700	 X"./$file" : 'X\(/\)' \| \
40701	 .     : '\(.\)' 2>/dev/null ||
40702echo X"./$file" |
40703    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40704  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40705  	  /^X\(\/\/\)$/{ s//\1/; q; }
40706  	  /^X\(\/\).*/{ s//\1/; q; }
40707  	  s/.*/./; q'`
40708      if test -d $dir; then : ; else
40709        { if $as_mkdir_p; then
40710    mkdir -p $dir
40711  else
40712    as_dir=$dir
40713    as_dirs=
40714    while test ! -d "$as_dir"; do
40715      as_dirs="$as_dir $as_dirs"
40716      as_dir=`(dirname "$as_dir") 2>/dev/null ||
40717$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40718	 X"$as_dir" : 'X\(//\)[^/]' \| \
40719	 X"$as_dir" : 'X\(//\)$' \| \
40720	 X"$as_dir" : 'X\(/\)' \| \
40721	 .     : '\(.\)' 2>/dev/null ||
40722echo X"$as_dir" |
40723    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40724  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40725  	  /^X\(\/\/\)$/{ s//\1/; q; }
40726  	  /^X\(\/\).*/{ s//\1/; q; }
40727  	  s/.*/./; q'`
40728    done
40729    test ! -n "$as_dirs" || mkdir $as_dirs
40730  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dir" >&5
40731echo "$as_me: error: cannot create directory $dir" >&2;}
40732   { (exit 1); exit 1; }; }; }
40733
40734      fi
40735      rm -f $file
40736      $lnkcmd $abs_source_dir/$file $file
40737    done
40738  fi
40739
40740  { echo "$as_me:$LINENO: In case of trouble, first consult the troubleshooting page at https://projects.coin-or.org/BuildTools/wiki/user-troubleshooting" >&5
40741echo "$as_me: In case of trouble, first consult the troubleshooting page at https://projects.coin-or.org/BuildTools/wiki/user-troubleshooting" >&6;}
40742  if test x$coin_projectdir = xyes; then
40743    { echo "$as_me:$LINENO: Configuration of $PACKAGE_NAME successful" >&5
40744echo "$as_me: Configuration of $PACKAGE_NAME successful" >&6;}
40745  else
40746    { echo "$as_me:$LINENO: Main configuration of $PACKAGE_NAME successful" >&5
40747echo "$as_me: Main configuration of $PACKAGE_NAME successful" >&6;}
40748  fi
40749else
40750  { echo "$as_me:$LINENO: No configuration of $PACKAGE_NAME necessary" >&5
40751echo "$as_me: No configuration of $PACKAGE_NAME necessary" >&6;}
40752fi
40753
40754
40755