source: stable/BSPsplit/Couenne/configure @ 214

Last change on this file since 214 was 214, checked in by andreasw, 12 years ago

a few bugfixes for instdir

File size: 836.9 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for Couenne 0.2stable.
4#
5# Report bugs to <belotti@lehigh.edu>.
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 Carnegie Mellon University, 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 Common 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='Couenne'
431PACKAGE_TARNAME='couenne'
432PACKAGE_VERSION='0.2stable'
433PACKAGE_STRING='Couenne 0.2stable'
434PACKAGE_BUGREPORT='belotti@lehigh.edu'
435
436ac_unique_file="src/expression/expression.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 ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX MPICXX EGREP 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 LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS THIRDPARTYSRCDIR THIRDPARTYOBJDIR THIRDPARTYDOCDIR THIRDPARTYINSTDIR COIN_HAS_THIRDPARTY_TRUE COIN_HAS_THIRDPARTY_FALSE COIN_HAS_THIRDPARTY_PREINSTALLED_TRUE COIN_HAS_THIRDPARTY_PREINSTALLED_FALSE COINUTILSSRCDIR COINUTILSOBJDIR COINUTILSDOCDIR COINUTILSINSTDIR COIN_HAS_COINUTILS_TRUE COIN_HAS_COINUTILS_FALSE COIN_HAS_COINUTILS_PREINSTALLED_TRUE COIN_HAS_COINUTILS_PREINSTALLED_FALSE CLPSRCDIR CLPOBJDIR CLPDOCDIR CLPINSTDIR COIN_HAS_CLP_TRUE COIN_HAS_CLP_FALSE COIN_HAS_CLP_PREINSTALLED_TRUE COIN_HAS_CLP_PREINSTALLED_FALSE BONMINSRCDIR BONMINOBJDIR BONMINDOCDIR BONMININSTDIR COIN_HAS_BONMIN_TRUE COIN_HAS_BONMIN_FALSE COIN_HAS_BONMIN_PREINSTALLED_TRUE COIN_HAS_BONMIN_PREINSTALLED_FALSE IPOPTSRCDIR IPOPTOBJDIR IPOPTDOCDIR IPOPTINSTDIR COIN_HAS_IPOPT_TRUE COIN_HAS_IPOPT_FALSE COIN_HAS_IPOPT_PREINSTALLED_TRUE COIN_HAS_IPOPT_PREINSTALLED_FALSE CBCSRCDIR CBCOBJDIR CBCDOCDIR CBCINSTDIR COIN_HAS_CBC_TRUE COIN_HAS_CBC_FALSE COIN_HAS_CBC_PREINSTALLED_TRUE COIN_HAS_CBC_PREINSTALLED_FALSE OSISRCDIR OSIOBJDIR OSIDOCDIR OSIINSTDIR COIN_HAS_OSI_TRUE COIN_HAS_OSI_FALSE COIN_HAS_OSI_PREINSTALLED_TRUE COIN_HAS_OSI_PREINSTALLED_FALSE CGLSRCDIR CGLOBJDIR CGLDOCDIR CGLINSTDIR COIN_HAS_CGL_TRUE COIN_HAS_CGL_FALSE COIN_HAS_CGL_PREINSTALLED_TRUE COIN_HAS_CGL_PREINSTALLED_FALSE COUENNESRCDIR COUENNEOBJDIR COUENNEDOCDIR COUENNEINSTDIR COIN_HAS_COUENNE_TRUE COIN_HAS_COUENNE_FALSE COIN_HAS_COUENNE_PREINSTALLED_TRUE COIN_HAS_COUENNE_PREINSTALLED_FALSE ASLLIB ASL_CPPFLAGS COIN_HAS_ASL_TRUE COIN_HAS_ASL_FALSE CPXINCDIR CPXLIB COIN_HAS_CPX_TRUE COIN_HAS_CPX_FALSE LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_CXXDEFS_set=${CXXDEFS+set}
953ac_env_CXXDEFS_value=$CXXDEFS
954ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
955ac_cv_env_CXXDEFS_value=$CXXDEFS
956ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
957ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
958ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
959ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
960ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
961ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
962ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
963ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
964ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
965ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
966ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
967ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
968ac_env_CXX_set=${CXX+set}
969ac_env_CXX_value=$CXX
970ac_cv_env_CXX_set=${CXX+set}
971ac_cv_env_CXX_value=$CXX
972ac_env_CXXFLAGS_set=${CXXFLAGS+set}
973ac_env_CXXFLAGS_value=$CXXFLAGS
974ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
975ac_cv_env_CXXFLAGS_value=$CXXFLAGS
976ac_env_MPICXX_set=${MPICXX+set}
977ac_env_MPICXX_value=$MPICXX
978ac_cv_env_MPICXX_set=${MPICXX+set}
979ac_cv_env_MPICXX_value=$MPICXX
980ac_env_CPP_set=${CPP+set}
981ac_env_CPP_value=$CPP
982ac_cv_env_CPP_set=${CPP+set}
983ac_cv_env_CPP_value=$CPP
984ac_env_CXXCPP_set=${CXXCPP+set}
985ac_env_CXXCPP_value=$CXXCPP
986ac_cv_env_CXXCPP_set=${CXXCPP+set}
987ac_cv_env_CXXCPP_value=$CXXCPP
988ac_env_F77_set=${F77+set}
989ac_env_F77_value=$F77
990ac_cv_env_F77_set=${F77+set}
991ac_cv_env_F77_value=$F77
992ac_env_FFLAGS_set=${FFLAGS+set}
993ac_env_FFLAGS_value=$FFLAGS
994ac_cv_env_FFLAGS_set=${FFLAGS+set}
995ac_cv_env_FFLAGS_value=$FFLAGS
996
997#
998# Report the --help message.
999#
1000if test "$ac_init_help" = "long"; then
1001  # Omit some internal or obsolete options to make the list less imposing.
1002  # This message is too long to be a string in the A/UX 3.1 sh.
1003  cat <<_ACEOF
1004\`configure' configures Couenne 0.2stable to adapt to many kinds of systems.
1005
1006Usage: $0 [OPTION]... [VAR=VALUE]...
1007
1008To assign environment variables (e.g., CC, CFLAGS...), specify them as
1009VAR=VALUE.  See below for descriptions of some of the useful variables.
1010
1011Defaults for the options are specified in brackets.
1012
1013Configuration:
1014  -h, --help              display this help and exit
1015      --help=short        display options specific to this package
1016      --help=recursive    display the short help of all the included packages
1017  -V, --version           display version information and exit
1018  -q, --quiet, --silent   do not print \`checking...' messages
1019      --cache-file=FILE   cache test results in FILE [disabled]
1020  -C, --config-cache      alias for \`--cache-file=config.cache'
1021  -n, --no-create         do not create output files
1022      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1023
1024_ACEOF
1025
1026  cat <<_ACEOF
1027Installation directories:
1028  --prefix=PREFIX         install architecture-independent files in PREFIX
1029                          [$ac_default_prefix]
1030  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1031                          [PREFIX]
1032
1033By default, \`make install' will install all the files in
1034\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1035an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1036for instance \`--prefix=\$HOME'.
1037
1038For better control, use the options below.
1039
1040Fine tuning of the installation directories:
1041  --bindir=DIR           user executables [EPREFIX/bin]
1042  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1043  --libexecdir=DIR       program executables [EPREFIX/libexec]
1044  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1045  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1046  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1047  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1048  --libdir=DIR           object code libraries [EPREFIX/lib]
1049  --includedir=DIR       C header files [PREFIX/include]
1050  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1051  --infodir=DIR          info documentation [PREFIX/info]
1052  --mandir=DIR           man documentation [PREFIX/man]
1053_ACEOF
1054
1055  cat <<\_ACEOF
1056
1057Program names:
1058  --program-prefix=PREFIX            prepend PREFIX to installed program names
1059  --program-suffix=SUFFIX            append SUFFIX to installed program names
1060  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1061
1062System types:
1063  --build=BUILD     configure for building on BUILD [guessed]
1064  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1065_ACEOF
1066fi
1067
1068if test -n "$ac_init_help"; then
1069  case $ac_init_help in
1070     short | recursive ) echo "Configuration of Couenne 0.2stable:";;
1071   esac
1072  cat <<\_ACEOF
1073
1074Optional Features:
1075  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1076  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1077  --enable-debug          compile all projects with debug options tests
1078  --enable-debug-couenne compile this project (Couenne) with debug options
1079  --enable-doscompile     Under Cygwin, compile so that executables run under
1080                          DOS. Set to mingw to use gcc/g++/ld with
1081                          -mno-cygwin. Set to msvc to use cl/link (or
1082                          icl/link). Default when mentioned: mingw. Default
1083                          when not mentioned: disabled.
1084  --enable-static[=PKGS]
1085                          build static libraries [default=no]
1086  --disable-dependency-tracking  speeds up one-time build
1087  --enable-dependency-tracking   do not reject slow dependency extractors
1088  --enable-maintainer-mode  enable make rules and dependencies not useful
1089                          (and sometimes confusing) to the casual installer
1090  --enable-shared[=PKGS]
1091                          build shared libraries [default=yes]
1092  --enable-fast-install[=PKGS]
1093                          optimize for fast installation [default=yes]
1094  --disable-libtool-lock  avoid locking (might break parallel builds)
1095  --enable-cplex-libcheck use disable-cplex-libcheck to skip the
1096                          link check at configuration time
1097
1098Optional Packages:
1099  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1100  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1101  --with-couenne-verbosity
1102                          specify the debug verbosity level for project
1103                          Couenne
1104  --with-couenne-checklevel
1105                          specify the sanity check level for project Couenne
1106  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1107  --with-pic              try to use only PIC/non-PIC objects [default=use
1108                          both]
1109  --with-tags[=TAGS]
1110                          include additional configurations [automatic]
1111  --with-thirdparty-instdir
1112                          prefix of installation directory for precompiled
1113                          ThirdParty package
1114  --with-thirdparty-srcdir
1115                          source directory for ThirdParty package
1116  --with-thirdparty-objdir
1117                          object directory for ThirdParty package (if
1118                          different from source directory in VPATH
1119                          compilation)
1120  --with-coin-instdir     prefix of installation directory for precompiled
1121                          COIN packages
1122  --with-coinutils-instdir
1123                          prefix of installation directory for precompiled
1124                          CoinUtils package
1125  --with-coinutils-srcdir source directory for CoinUtils package
1126  --with-coinutils-objdir object directory for CoinUtils package (if different
1127                          from source directory in VPATH compilation)
1128  --with-clp-instdir prefix of installation directory for precompiled Clp
1129                          package
1130  --with-clp-srcdir source directory for Clp package
1131  --with-clp-objdir object directory for Clp package (if different from source
1132                          directory in VPATH compilation)
1133  --with-bonmin-instdir prefix of installation directory for precompiled
1134                          Bonmin package
1135  --with-bonmin-srcdir source directory for Bonmin package
1136  --with-bonmin-objdir object directory for Bonmin package (if different from
1137                          source directory in VPATH compilation)
1138  --with-ipopt-instdir prefix of installation directory for precompiled Ipopt
1139                          package
1140  --with-ipopt-srcdir source directory for Ipopt package
1141  --with-ipopt-objdir object directory for Ipopt package (if different from
1142                          source directory in VPATH compilation)
1143  --with-cbc-instdir prefix of installation directory for precompiled Cbc
1144                          package
1145  --with-cbc-srcdir source directory for Cbc package
1146  --with-cbc-objdir object directory for Cbc package (if different from source
1147                          directory in VPATH compilation)
1148  --with-osi-instdir prefix of installation directory for precompiled Osi
1149                          package
1150  --with-osi-srcdir source directory for Osi package
1151  --with-osi-objdir object directory for Osi package (if different from source
1152                          directory in VPATH compilation)
1153  --with-cgl-instdir prefix of installation directory for precompiled Cgl
1154                          package
1155  --with-cgl-srcdir source directory for Cgl package
1156  --with-cgl-objdir object directory for Cgl package (if different from source
1157                          directory in VPATH compilation)
1158  --with-couenne-instdir prefix of installation directory for precompiled
1159                          Couenne package
1160  --with-couenne-srcdir source directory for Couenne package
1161  --with-couenne-objdir object directory for Couenne package (if different
1162                          from source directory in VPATH compilation)
1163  --with-asldir           specify path to AMPL solver directory (or BUILD for
1164                          compilation, or "no" for disabling AMPL)
1165  --with-cplex-incdir specify the header file directory for library Cplex
1166  --with-cplex-lib specify the flags used to link with the library Cplex
1167
1168Some influential environment variables:
1169  CDEFS       Additional -D flags to be used when compiling C code.
1170  ADD_CFLAGS  Additional C compiler options
1171  DBG_CFLAGS  Debug C compiler options
1172  OPT_CFLAGS  Optimize C compiler options
1173  CC          C compiler command
1174  CFLAGS      C compiler flags
1175  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1176              nonstandard directory <lib dir>
1177  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1178              headers in a nonstandard directory <include dir>
1179  MPICC       C MPI Compiler
1180  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1181  ADD_CXXFLAGS
1182              Additional C++ compiler options
1183  DBG_CXXFLAGS
1184              Debug C++ compiler options
1185  OPT_CXXFLAGS
1186              Optimize C++ compiler options
1187  CXX         C++ compiler command
1188  CXXFLAGS    C++ compiler flags
1189  MPICXX      C++ MPI Compiler
1190  CPP         C preprocessor
1191  CXXCPP      C++ preprocessor
1192  F77         Fortran 77 compiler command
1193  FFLAGS      Fortran 77 compiler flags
1194
1195Use these variables to override the choices made by `configure' or to help
1196it to find libraries and programs with nonstandard names/locations.
1197
1198Report bugs to <belotti@lehigh.edu>.
1199_ACEOF
1200fi
1201
1202if test "$ac_init_help" = "recursive"; then
1203  # If there are subdirs, report their specific --help.
1204  ac_popdir=`pwd`
1205  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1206    test -d $ac_dir || continue
1207    ac_builddir=.
1208
1209if test "$ac_dir" != .; then
1210  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1211  # A "../" for each directory in $ac_dir_suffix.
1212  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1213else
1214  ac_dir_suffix= ac_top_builddir=
1215fi
1216
1217case $srcdir in
1218  .)  # No --srcdir option.  We are building in place.
1219    ac_srcdir=.
1220    if test -z "$ac_top_builddir"; then
1221       ac_top_srcdir=.
1222    else
1223       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1224    fi ;;
1225  [\\/]* | ?:[\\/]* )  # Absolute path.
1226    ac_srcdir=$srcdir$ac_dir_suffix;
1227    ac_top_srcdir=$srcdir ;;
1228  *) # Relative path.
1229    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1230    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1231esac
1232
1233# Do not use `cd foo && pwd` to compute absolute paths, because
1234# the directories may not exist.
1235case `pwd` in
1236.) ac_abs_builddir="$ac_dir";;
1237*)
1238  case "$ac_dir" in
1239  .) ac_abs_builddir=`pwd`;;
1240  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1241  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1242  esac;;
1243esac
1244case $ac_abs_builddir in
1245.) ac_abs_top_builddir=${ac_top_builddir}.;;
1246*)
1247  case ${ac_top_builddir}. in
1248  .) ac_abs_top_builddir=$ac_abs_builddir;;
1249  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1250  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1251  esac;;
1252esac
1253case $ac_abs_builddir in
1254.) ac_abs_srcdir=$ac_srcdir;;
1255*)
1256  case $ac_srcdir in
1257  .) ac_abs_srcdir=$ac_abs_builddir;;
1258  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1259  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1260  esac;;
1261esac
1262case $ac_abs_builddir in
1263.) ac_abs_top_srcdir=$ac_top_srcdir;;
1264*)
1265  case $ac_top_srcdir in
1266  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1267  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1268  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1269  esac;;
1270esac
1271
1272    cd $ac_dir
1273    # Check for guested configure; otherwise get Cygnus style configure.
1274    if test -f $ac_srcdir/configure.gnu; then
1275      echo
1276      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1277    elif test -f $ac_srcdir/configure; then
1278      echo
1279      $SHELL $ac_srcdir/configure  --help=recursive
1280    elif test -f $ac_srcdir/configure.ac ||
1281           test -f $ac_srcdir/configure.in; then
1282      echo
1283      $ac_configure --help
1284    else
1285      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1286    fi
1287    cd $ac_popdir
1288  done
1289fi
1290
1291test -n "$ac_init_help" && exit 0
1292if $ac_init_version; then
1293  cat <<\_ACEOF
1294Couenne configure 0.2stable
1295generated by GNU Autoconf 2.59
1296
1297Copyright (C) 2003 Free Software Foundation, Inc.
1298This configure script is free software; the Free Software Foundation
1299gives unlimited permission to copy, distribute and modify it.
1300
1301
1302Copyright 2006 Carnegie Mellon University, International Business Machines and others.
1303All Rights Reserved.
1304This file is part of the open source package Coin which is distributed
1305under the Common Public License.
1306_ACEOF
1307  exit 0
1308fi
1309exec 5>config.log
1310cat >&5 <<_ACEOF
1311This file contains any messages produced by compilers while
1312running configure, to aid debugging if configure makes a mistake.
1313
1314It was created by Couenne $as_me 0.2stable, which was
1315generated by GNU Autoconf 2.59.  Invocation command line was
1316
1317  $ $0 $@
1318
1319_ACEOF
1320{
1321cat <<_ASUNAME
1322## --------- ##
1323## Platform. ##
1324## --------- ##
1325
1326hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1327uname -m = `(uname -m) 2>/dev/null || echo unknown`
1328uname -r = `(uname -r) 2>/dev/null || echo unknown`
1329uname -s = `(uname -s) 2>/dev/null || echo unknown`
1330uname -v = `(uname -v) 2>/dev/null || echo unknown`
1331
1332/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1333/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1334
1335/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1336/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1337/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1338hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1339/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1340/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1341/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1342
1343_ASUNAME
1344
1345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1346for as_dir in $PATH
1347do
1348  IFS=$as_save_IFS
1349  test -z "$as_dir" && as_dir=.
1350  echo "PATH: $as_dir"
1351done
1352
1353} >&5
1354
1355cat >&5 <<_ACEOF
1356
1357
1358## ----------- ##
1359## Core tests. ##
1360## ----------- ##
1361
1362_ACEOF
1363
1364
1365# Keep a trace of the command line.
1366# Strip out --no-create and --no-recursion so they do not pile up.
1367# Strip out --silent because we don't want to record it for future runs.
1368# Also quote any args containing shell meta-characters.
1369# Make two passes to allow for proper duplicate-argument suppression.
1370ac_configure_args=
1371ac_configure_args0=
1372ac_configure_args1=
1373ac_sep=
1374ac_must_keep_next=false
1375for ac_pass in 1 2
1376do
1377  for ac_arg
1378  do
1379    case $ac_arg in
1380    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1381    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1382    | -silent | --silent | --silen | --sile | --sil)
1383      continue ;;
1384    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1385      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1386    esac
1387    case $ac_pass in
1388    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1389    2)
1390      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1391      if test $ac_must_keep_next = true; then
1392        ac_must_keep_next=false # Got value, back to normal.
1393      else
1394        case $ac_arg in
1395          *=* | --config-cache | -C | -disable-* | --disable-* \
1396          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1397          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1398          | -with-* | --with-* | -without-* | --without-* | --x)
1399            case "$ac_configure_args0 " in
1400              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1401            esac
1402            ;;
1403          -* ) ac_must_keep_next=true ;;
1404        esac
1405      fi
1406      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1407      # Get rid of the leading space.
1408      ac_sep=" "
1409      ;;
1410    esac
1411  done
1412done
1413$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1414$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1415
1416# When interrupted or exit'd, cleanup temporary files, and complete
1417# config.log.  We remove comments because anyway the quotes in there
1418# would cause problems or look ugly.
1419# WARNING: Be sure not to use single quotes in there, as some shells,
1420# such as our DU 5.0 friend, will then `close' the trap.
1421trap 'exit_status=$?
1422  # Save into config.log some information that might help in debugging.
1423  {
1424    echo
1425
1426    cat <<\_ASBOX
1427## ---------------- ##
1428## Cache variables. ##
1429## ---------------- ##
1430_ASBOX
1431    echo
1432    # The following way of writing the cache mishandles newlines in values,
1433{
1434  (set) 2>&1 |
1435    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1436    *ac_space=\ *)
1437      sed -n \
1438        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1439          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1440      ;;
1441    *)
1442      sed -n \
1443        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1444      ;;
1445    esac;
1446}
1447    echo
1448
1449    cat <<\_ASBOX
1450## ----------------- ##
1451## Output variables. ##
1452## ----------------- ##
1453_ASBOX
1454    echo
1455    for ac_var in $ac_subst_vars
1456    do
1457      eval ac_val=$`echo $ac_var`
1458      echo "$ac_var='"'"'$ac_val'"'"'"
1459    done | sort
1460    echo
1461
1462    if test -n "$ac_subst_files"; then
1463      cat <<\_ASBOX
1464## ------------- ##
1465## Output files. ##
1466## ------------- ##
1467_ASBOX
1468      echo
1469      for ac_var in $ac_subst_files
1470      do
1471        eval ac_val=$`echo $ac_var`
1472        echo "$ac_var='"'"'$ac_val'"'"'"
1473      done | sort
1474      echo
1475    fi
1476
1477    if test -s confdefs.h; then
1478      cat <<\_ASBOX
1479## ----------- ##
1480## confdefs.h. ##
1481## ----------- ##
1482_ASBOX
1483      echo
1484      sed "/^$/d" confdefs.h | sort
1485      echo
1486    fi
1487    test "$ac_signal" != 0 &&
1488      echo "$as_me: caught signal $ac_signal"
1489    echo "$as_me: exit $exit_status"
1490  } >&5
1491  rm -f core *.core &&
1492  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1493    exit $exit_status
1494     ' 0
1495for ac_signal in 1 2 13 15; do
1496  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1497done
1498ac_signal=0
1499
1500# confdefs.h avoids OS command line length limits that DEFS can exceed.
1501rm -rf conftest* confdefs.h
1502# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1503echo >confdefs.h
1504
1505# Predefined preprocessor variables.
1506
1507cat >>confdefs.h <<_ACEOF
1508#define PACKAGE_NAME "$PACKAGE_NAME"
1509_ACEOF
1510
1511
1512cat >>confdefs.h <<_ACEOF
1513#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1514_ACEOF
1515
1516
1517cat >>confdefs.h <<_ACEOF
1518#define PACKAGE_VERSION "$PACKAGE_VERSION"
1519_ACEOF
1520
1521
1522cat >>confdefs.h <<_ACEOF
1523#define PACKAGE_STRING "$PACKAGE_STRING"
1524_ACEOF
1525
1526
1527cat >>confdefs.h <<_ACEOF
1528#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1529_ACEOF
1530
1531
1532# Let the site file select an alternate cache file if it wants to.
1533# Prefer explicitly selected file to automatically selected ones.
1534if test -z "$CONFIG_SITE"; then
1535  if test "x$prefix" != xNONE; then
1536    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1537  else
1538    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1539  fi
1540fi
1541for ac_site_file in $CONFIG_SITE; do
1542  if test -r "$ac_site_file"; then
1543    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1544echo "$as_me: loading site script $ac_site_file" >&6;}
1545    sed 's/^/| /' "$ac_site_file" >&5
1546    . "$ac_site_file"
1547  fi
1548done
1549
1550if test -r "$cache_file"; then
1551  # Some versions of bash will fail to source /dev/null (special
1552  # files actually), so we avoid doing that.
1553  if test -f "$cache_file"; then
1554    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1555echo "$as_me: loading cache $cache_file" >&6;}
1556    case $cache_file in
1557      [\\/]* | ?:[\\/]* ) . $cache_file;;
1558      *)                      . ./$cache_file;;
1559    esac
1560  fi
1561else
1562  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1563echo "$as_me: creating cache $cache_file" >&6;}
1564  >$cache_file
1565fi
1566
1567# Check that the precious variables saved in the cache have kept the same
1568# value.
1569ac_cache_corrupted=false
1570for ac_var in `(set) 2>&1 |
1571               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1572  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1573  eval ac_new_set=\$ac_env_${ac_var}_set
1574  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1575  eval ac_new_val="\$ac_env_${ac_var}_value"
1576  case $ac_old_set,$ac_new_set in
1577    set,)
1578      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1579echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1580      ac_cache_corrupted=: ;;
1581    ,set)
1582      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1583echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1584      ac_cache_corrupted=: ;;
1585    ,);;
1586    *)
1587      if test "x$ac_old_val" != "x$ac_new_val"; then
1588        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1589echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1590        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1591echo "$as_me:   former value:  $ac_old_val" >&2;}
1592        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1593echo "$as_me:   current value: $ac_new_val" >&2;}
1594        ac_cache_corrupted=:
1595      fi;;
1596  esac
1597  # Pass precious variables to config.status.
1598  if test "$ac_new_set" = set; then
1599    case $ac_new_val in
1600    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1601      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1602    *) ac_arg=$ac_var=$ac_new_val ;;
1603    esac
1604    case " $ac_configure_args " in
1605      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1606      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1607    esac
1608  fi
1609done
1610if $ac_cache_corrupted; then
1611  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1612echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1613  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1614echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1615   { (exit 1); exit 1; }; }
1616fi
1617
1618ac_ext=c
1619ac_cpp='$CPP $CPPFLAGS'
1620ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1621ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1622ac_compiler_gnu=$ac_cv_c_compiler_gnu
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653# List one file in the package so that the configure script can test
1654# whether the package is actually there
1655
1656
1657# Where should everything be installed by default?  Here, we want it
1658# to be installed directly in 'bin', 'lib', 'include' subdirectories
1659# of the directory where configure is run.  The default would be
1660# /usr/local.
1661
1662
1663#############################################################################
1664#                         Standard build tool stuff                         #
1665#############################################################################
1666
1667# Get the system type
1668ac_aux_dir=
1669for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1670  if test -f $ac_dir/install-sh; then
1671    ac_aux_dir=$ac_dir
1672    ac_install_sh="$ac_aux_dir/install-sh -c"
1673    break
1674  elif test -f $ac_dir/install.sh; then
1675    ac_aux_dir=$ac_dir
1676    ac_install_sh="$ac_aux_dir/install.sh -c"
1677    break
1678  elif test -f $ac_dir/shtool; then
1679    ac_aux_dir=$ac_dir
1680    ac_install_sh="$ac_aux_dir/shtool install -c"
1681    break
1682  fi
1683done
1684if test -z "$ac_aux_dir"; then
1685  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1686echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1687   { (exit 1); exit 1; }; }
1688fi
1689ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1690ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1691ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1692
1693# Make sure we can run config.sub.
1694$ac_config_sub sun4 >/dev/null 2>&1 ||
1695  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1696echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1697   { (exit 1); exit 1; }; }
1698
1699echo "$as_me:$LINENO: checking build system type" >&5
1700echo $ECHO_N "checking build system type... $ECHO_C" >&6
1701if test "${ac_cv_build+set}" = set; then
1702  echo $ECHO_N "(cached) $ECHO_C" >&6
1703else
1704  ac_cv_build_alias=$build_alias
1705test -z "$ac_cv_build_alias" &&
1706  ac_cv_build_alias=`$ac_config_guess`
1707test -z "$ac_cv_build_alias" &&
1708  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1709echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1710   { (exit 1); exit 1; }; }
1711ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1712  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1713echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1714   { (exit 1); exit 1; }; }
1715
1716fi
1717echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1718echo "${ECHO_T}$ac_cv_build" >&6
1719build=$ac_cv_build
1720build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1721build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1722build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1723
1724
1725
1726# Initialization specifically for project main directories
1727# Initialize the ADDLIBS variable
1728ADDLIBS="-lm $LIBS"
1729
1730
1731# Initialize the FADDLIBS variable (which is to be used with a fortran
1732# compiler and will not include FLIBS)
1733FADDLIBS="$LIBS"
1734
1735
1736# A useful makefile conditional that is always false
1737
1738
1739if false; then
1740  ALWAYS_FALSE_TRUE=
1741  ALWAYS_FALSE_FALSE='#'
1742else
1743  ALWAYS_FALSE_TRUE='#'
1744  ALWAYS_FALSE_FALSE=
1745fi
1746
1747
1748# We set the following variable so that we know later in AC_COIN_FINALIZE
1749# that we are in a project main directory
1750coin_projectdir=yes
1751
1752
1753# Check if user wants to produce debugging code
1754
1755echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1756echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1757
1758# Check whether --enable-debug or --disable-debug was given.
1759if test "${enable_debug+set}" = set; then
1760  enableval="$enable_debug"
1761  case "${enableval}" in
1762   yes) coin_debug_compile=true
1763        if test "${enable_shared+set}" = set; then :; else
1764          enable_shared=no
1765        fi
1766        ;;
1767   no)  coin_debug_compile=false
1768        ;;
1769   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1770echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1771   { (exit 1); exit 1; }; }
1772        ;;
1773esac
1774else
1775  coin_debug_compile=false
1776fi;
1777
1778# Check whether --enable-debug-couenne or --disable-debug-couenne was given.
1779if test "${enable_debug_couenne+set}" = set; then
1780  enableval="$enable_debug_couenne"
1781  case "${enableval}" in
1782    yes) coin_debug_compile=true
1783         enable_shared=no
1784         ;;
1785    no)  coin_debug_compile=false
1786         ;;
1787    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-couenne" >&5
1788echo "$as_me: error: bad value ${enableval} for --enable-debug-couenne" >&2;}
1789   { (exit 1); exit 1; }; }
1790         ;;
1791 esac
1792else
1793  :
1794fi;
1795
1796 # m4_ifvaln([Couenne],
1797
1798if test $coin_debug_compile = true; then
1799  echo "$as_me:$LINENO: result: yes" >&5
1800echo "${ECHO_T}yes" >&6
1801else
1802  echo "$as_me:$LINENO: result: no" >&5
1803echo "${ECHO_T}no" >&6
1804fi
1805
1806
1807# Check whether --with-couenne-verbosity or --without-couenne-verbosity was given.
1808if test "${with_couenne_verbosity+set}" = set; then
1809  withval="$with_couenne_verbosity"
1810  if test "$withval" = yes; then
1811                withval=1
1812              fi
1813              coin_couenne_verbosity=$withval
1814else
1815  coin_couenne_verbosity=0
1816fi;
1817
1818cat >>confdefs.h <<_ACEOF
1819#define COIN_COUENNE_VERBOSITY $coin_couenne_verbosity
1820_ACEOF
1821
1822
1823
1824# Check whether --with-couenne-checklevel or --without-couenne-checklevel was given.
1825if test "${with_couenne_checklevel+set}" = set; then
1826  withval="$with_couenne_checklevel"
1827  if test "$withval" = yes; then
1828                withval=1
1829              fi
1830              coin_couenne_checklevel=$withval
1831else
1832  coin_couenne_checklevel=0
1833fi;
1834
1835cat >>confdefs.h <<_ACEOF
1836#define COIN_COUENNE_CHECKLEVEL $coin_couenne_checklevel
1837_ACEOF
1838
1839
1840# We use the following variable to have a string with the upper case
1841# version of the project name
1842COIN_PRJCT=COUENNE
1843
1844
1845 # m4_ifvaln([Couenne],
1846
1847
1848
1849# Get the name of the C++ compiler and appropriate compiler options
1850case $build in
1851  *-mingw*)
1852    if test "${LD+set}" = set; then :; else
1853      LD=link
1854    fi
1855    ;;
1856 esac
1857 case $enable_doscompile in
1858   msvc)
1859     if test "x${LD+set}" = xset; then :; else
1860       LD=link
1861     fi
1862     ;;
1863 esac
1864
1865
1866 # Check whether --enable-doscompile or --disable-doscompile was given.
1867if test "${enable_doscompile+set}" = set; then
1868  enableval="$enable_doscompile"
1869  if test "$enable_doscompile" != no; then
1870     case $build in
1871       *-cygwin* | *-mingw*) ;;
1872       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1873echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1874   { (exit 1); exit 1; }; } ;;
1875     esac
1876   fi
1877else
1878  enable_doscompile=no
1879fi;
1880 case "$enable_doscompile" in
1881   mingw)
1882     case $build in
1883       *-mingw*) enable_doscompile=no ;;
1884     esac
1885     ;;
1886   msvc|no) ;;
1887   yes) enable_doscompile=mingw ;;
1888   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1889                    Try configure --help=recursive." >&5
1890echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1891                    Try configure --help=recursive." >&2;}
1892   { (exit 1); exit 1; }; }
1893      ;;
1894  esac
1895  if test "$enable_doscompile" != no ; then
1896    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1897echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1898  fi
1899
1900
1901
1902
1903ac_ext=c
1904ac_cpp='$CPP $CPPFLAGS'
1905ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1906ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1907ac_compiler_gnu=$ac_cv_c_compiler_gnu
1908
1909
1910# For consistency, we set the C compiler to the same value of the C++
1911# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1912if test x"$CXX" != x; then
1913  case "$CXX" in
1914    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1915      if test x"$CC" = x; then
1916        CC="$CXX"
1917        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1918echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1919      fi
1920      ;;
1921  esac
1922fi
1923
1924
1925
1926
1927
1928
1929coin_has_cc=yes
1930
1931save_cflags="$CFLAGS"
1932
1933# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1934# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1935# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1936# compiler. In this case, put cc after gcc.
1937
1938case $build in
1939  *-cygwin* | *-mingw*)
1940             if test "$enable_doscompile" = msvc ; then
1941               comps="icl cl"
1942             else
1943               comps="gcc cl"
1944             fi ;;
1945  *-*-solaris*)
1946             # Extract the first word of "cc", so it can be a program name with args.
1947set dummy cc; ac_word=$2
1948echo "$as_me:$LINENO: checking for $ac_word" >&5
1949echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1950if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1951  echo $ECHO_N "(cached) $ECHO_C" >&6
1952else
1953  if test -n "$sol_cc_compiler"; then
1954  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1955else
1956  ac_prog_rejected=no
1957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1958for as_dir in $PATH
1959do
1960  IFS=$as_save_IFS
1961  test -z "$as_dir" && as_dir=.
1962  for ac_exec_ext in '' $ac_executable_extensions; do
1963  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1964    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1965       ac_prog_rejected=yes
1966       continue
1967     fi
1968    ac_cv_prog_sol_cc_compiler="cc"
1969    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1970    break 2
1971  fi
1972done
1973done
1974
1975if test $ac_prog_rejected = yes; then
1976  # We found a bogon in the path, so make sure we never use it.
1977  set dummy $ac_cv_prog_sol_cc_compiler
1978  shift
1979  if test $# != 0; then
1980    # We chose a different compiler from the bogus one.
1981    # However, it has the same basename, so the bogon will be chosen
1982    # first if we set sol_cc_compiler to just the basename; use the full file name.
1983    shift
1984    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
1985  fi
1986fi
1987fi
1988fi
1989sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
1990if test -n "$sol_cc_compiler"; then
1991  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
1992echo "${ECHO_T}$sol_cc_compiler" >&6
1993else
1994  echo "$as_me:$LINENO: result: no" >&5
1995echo "${ECHO_T}no" >&6
1996fi
1997
1998             if test "$sol_cc_compiler" = "cc" ; then
1999               comps="cc xlc gcc pgcc icc"
2000             else
2001               comps="xlc gcc pgcc icc cc"
2002             fi
2003             ;;
2004  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2005  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2006esac
2007
2008# We delete the cached value, since the test might not have been
2009# performed with our choice of compilers earlier
2010$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2011# AC_MSG_NOTICE([C compiler candidates: $comps])
2012ac_ext=c
2013ac_cpp='$CPP $CPPFLAGS'
2014ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2015ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2016ac_compiler_gnu=$ac_cv_c_compiler_gnu
2017if test -n "$ac_tool_prefix"; then
2018  for ac_prog in $comps
2019  do
2020    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2021set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2022echo "$as_me:$LINENO: checking for $ac_word" >&5
2023echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2024if test "${ac_cv_prog_CC+set}" = set; then
2025  echo $ECHO_N "(cached) $ECHO_C" >&6
2026else
2027  if test -n "$CC"; then
2028  ac_cv_prog_CC="$CC" # Let the user override the test.
2029else
2030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2031for as_dir in $PATH
2032do
2033  IFS=$as_save_IFS
2034  test -z "$as_dir" && as_dir=.
2035  for ac_exec_ext in '' $ac_executable_extensions; do
2036  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2037    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2038    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2039    break 2
2040  fi
2041done
2042done
2043
2044fi
2045fi
2046CC=$ac_cv_prog_CC
2047if test -n "$CC"; then
2048  echo "$as_me:$LINENO: result: $CC" >&5
2049echo "${ECHO_T}$CC" >&6
2050else
2051  echo "$as_me:$LINENO: result: no" >&5
2052echo "${ECHO_T}no" >&6
2053fi
2054
2055    test -n "$CC" && break
2056  done
2057fi
2058if test -z "$CC"; then
2059  ac_ct_CC=$CC
2060  for ac_prog in $comps
2061do
2062  # Extract the first word of "$ac_prog", so it can be a program name with args.
2063set dummy $ac_prog; ac_word=$2
2064echo "$as_me:$LINENO: checking for $ac_word" >&5
2065echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2066if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2067  echo $ECHO_N "(cached) $ECHO_C" >&6
2068else
2069  if test -n "$ac_ct_CC"; then
2070  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2071else
2072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2073for as_dir in $PATH
2074do
2075  IFS=$as_save_IFS
2076  test -z "$as_dir" && as_dir=.
2077  for ac_exec_ext in '' $ac_executable_extensions; do
2078  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2079    ac_cv_prog_ac_ct_CC="$ac_prog"
2080    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2081    break 2
2082  fi
2083done
2084done
2085
2086fi
2087fi
2088ac_ct_CC=$ac_cv_prog_ac_ct_CC
2089if test -n "$ac_ct_CC"; then
2090  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2091echo "${ECHO_T}$ac_ct_CC" >&6
2092else
2093  echo "$as_me:$LINENO: result: no" >&5
2094echo "${ECHO_T}no" >&6
2095fi
2096
2097  test -n "$ac_ct_CC" && break
2098done
2099
2100  CC=$ac_ct_CC
2101fi
2102
2103
2104test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2105See \`config.log' for more details." >&5
2106echo "$as_me: error: no acceptable C compiler found in \$PATH
2107See \`config.log' for more details." >&2;}
2108   { (exit 1); exit 1; }; }
2109
2110# Provide some information about the compiler.
2111echo "$as_me:$LINENO:" \
2112     "checking for C compiler version" >&5
2113ac_compiler=`set X $ac_compile; echo $2`
2114{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2115  (eval $ac_compiler --version </dev/null >&5) 2>&5
2116  ac_status=$?
2117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118  (exit $ac_status); }
2119{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2120  (eval $ac_compiler -v </dev/null >&5) 2>&5
2121  ac_status=$?
2122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2123  (exit $ac_status); }
2124{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2125  (eval $ac_compiler -V </dev/null >&5) 2>&5
2126  ac_status=$?
2127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2128  (exit $ac_status); }
2129
2130cat >conftest.$ac_ext <<_ACEOF
2131/* confdefs.h.  */
2132_ACEOF
2133cat confdefs.h >>conftest.$ac_ext
2134cat >>conftest.$ac_ext <<_ACEOF
2135/* end confdefs.h.  */
2136
2137int
2138main ()
2139{
2140
2141  ;
2142  return 0;
2143}
2144_ACEOF
2145ac_clean_files_save=$ac_clean_files
2146ac_clean_files="$ac_clean_files a.out a.exe b.out"
2147# Try to create an executable without -o first, disregard a.out.
2148# It will help us diagnose broken compilers, and finding out an intuition
2149# of exeext.
2150echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2151echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2152ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2153if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2154  (eval $ac_link_default) 2>&5
2155  ac_status=$?
2156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157  (exit $ac_status); }; then
2158  # Find the output, starting from the most likely.  This scheme is
2159# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2160# resort.
2161
2162# Be careful to initialize this variable, since it used to be cached.
2163# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2164ac_cv_exeext=
2165# b.out is created by i960 compilers.
2166for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2167do
2168  test -f "$ac_file" || continue
2169  case $ac_file in
2170    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2171        ;;
2172    conftest.$ac_ext )
2173        # This is the source file.
2174        ;;
2175    [ab].out )
2176        # We found the default executable, but exeext='' is most
2177        # certainly right.
2178        break;;
2179    *.* )
2180        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2181        # FIXME: I believe we export ac_cv_exeext for Libtool,
2182        # but it would be cool to find out if it's true.  Does anybody
2183        # maintain Libtool? --akim.
2184        export ac_cv_exeext
2185        break;;
2186    * )
2187        break;;
2188  esac
2189done
2190else
2191  echo "$as_me: failed program was:" >&5
2192sed 's/^/| /' conftest.$ac_ext >&5
2193
2194{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2195See \`config.log' for more details." >&5
2196echo "$as_me: error: C compiler cannot create executables
2197See \`config.log' for more details." >&2;}
2198   { (exit 77); exit 77; }; }
2199fi
2200
2201ac_exeext=$ac_cv_exeext
2202echo "$as_me:$LINENO: result: $ac_file" >&5
2203echo "${ECHO_T}$ac_file" >&6
2204
2205# Check the compiler produces executables we can run.  If not, either
2206# the compiler is broken, or we cross compile.
2207echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2208echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2209# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2210# If not cross compiling, check that we can run a simple program.
2211if test "$cross_compiling" != yes; then
2212  if { ac_try='./$ac_file'
2213  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2214  (eval $ac_try) 2>&5
2215  ac_status=$?
2216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2217  (exit $ac_status); }; }; then
2218    cross_compiling=no
2219  else
2220    if test "$cross_compiling" = maybe; then
2221        cross_compiling=yes
2222    else
2223        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2224If you meant to cross compile, use \`--host'.
2225See \`config.log' for more details." >&5
2226echo "$as_me: error: cannot run C compiled programs.
2227If you meant to cross compile, use \`--host'.
2228See \`config.log' for more details." >&2;}
2229   { (exit 1); exit 1; }; }
2230    fi
2231  fi
2232fi
2233echo "$as_me:$LINENO: result: yes" >&5
2234echo "${ECHO_T}yes" >&6
2235
2236rm -f a.out a.exe conftest$ac_cv_exeext b.out
2237ac_clean_files=$ac_clean_files_save
2238# Check the compiler produces executables we can run.  If not, either
2239# the compiler is broken, or we cross compile.
2240echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2241echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2242echo "$as_me:$LINENO: result: $cross_compiling" >&5
2243echo "${ECHO_T}$cross_compiling" >&6
2244
2245echo "$as_me:$LINENO: checking for suffix of executables" >&5
2246echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2247if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2248  (eval $ac_link) 2>&5
2249  ac_status=$?
2250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251  (exit $ac_status); }; then
2252  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2253# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2254# work properly (i.e., refer to `conftest.exe'), while it won't with
2255# `rm'.
2256for ac_file in conftest.exe conftest conftest.*; do
2257  test -f "$ac_file" || continue
2258  case $ac_file in
2259    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2260    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2261          export ac_cv_exeext
2262          break;;
2263    * ) break;;
2264  esac
2265done
2266else
2267  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2268See \`config.log' for more details." >&5
2269echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2270See \`config.log' for more details." >&2;}
2271   { (exit 1); exit 1; }; }
2272fi
2273
2274rm -f conftest$ac_cv_exeext
2275echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2276echo "${ECHO_T}$ac_cv_exeext" >&6
2277
2278rm -f conftest.$ac_ext
2279EXEEXT=$ac_cv_exeext
2280ac_exeext=$EXEEXT
2281echo "$as_me:$LINENO: checking for suffix of object files" >&5
2282echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2283if test "${ac_cv_objext+set}" = set; then
2284  echo $ECHO_N "(cached) $ECHO_C" >&6
2285else
2286  cat >conftest.$ac_ext <<_ACEOF
2287/* confdefs.h.  */
2288_ACEOF
2289cat confdefs.h >>conftest.$ac_ext
2290cat >>conftest.$ac_ext <<_ACEOF
2291/* end confdefs.h.  */
2292
2293int
2294main ()
2295{
2296
2297  ;
2298  return 0;
2299}
2300_ACEOF
2301rm -f conftest.o conftest.obj
2302if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2303  (eval $ac_compile) 2>&5
2304  ac_status=$?
2305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306  (exit $ac_status); }; then
2307  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2308  case $ac_file in
2309    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2310    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2311       break;;
2312  esac
2313done
2314else
2315  echo "$as_me: failed program was:" >&5
2316sed 's/^/| /' conftest.$ac_ext >&5
2317
2318{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2319See \`config.log' for more details." >&5
2320echo "$as_me: error: cannot compute suffix of object files: cannot compile
2321See \`config.log' for more details." >&2;}
2322   { (exit 1); exit 1; }; }
2323fi
2324
2325rm -f conftest.$ac_cv_objext conftest.$ac_ext
2326fi
2327echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2328echo "${ECHO_T}$ac_cv_objext" >&6
2329OBJEXT=$ac_cv_objext
2330ac_objext=$OBJEXT
2331echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2332echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2333if test "${ac_cv_c_compiler_gnu+set}" = set; then
2334  echo $ECHO_N "(cached) $ECHO_C" >&6
2335else
2336  cat >conftest.$ac_ext <<_ACEOF
2337/* confdefs.h.  */
2338_ACEOF
2339cat confdefs.h >>conftest.$ac_ext
2340cat >>conftest.$ac_ext <<_ACEOF
2341/* end confdefs.h.  */
2342
2343int
2344main ()
2345{
2346#ifndef __GNUC__
2347       choke me
2348#endif
2349
2350  ;
2351  return 0;
2352}
2353_ACEOF
2354rm -f conftest.$ac_objext
2355if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2356  (eval $ac_compile) 2>conftest.er1
2357  ac_status=$?
2358  grep -v '^ *+' conftest.er1 >conftest.err
2359  rm -f conftest.er1
2360  cat conftest.err >&5
2361  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362  (exit $ac_status); } &&
2363         { ac_try='test -z "$ac_c_werror_flag"
2364                         || test ! -s conftest.err'
2365  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2366  (eval $ac_try) 2>&5
2367  ac_status=$?
2368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369  (exit $ac_status); }; } &&
2370         { ac_try='test -s conftest.$ac_objext'
2371  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2372  (eval $ac_try) 2>&5
2373  ac_status=$?
2374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375  (exit $ac_status); }; }; then
2376  ac_compiler_gnu=yes
2377else
2378  echo "$as_me: failed program was:" >&5
2379sed 's/^/| /' conftest.$ac_ext >&5
2380
2381ac_compiler_gnu=no
2382fi
2383rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2384ac_cv_c_compiler_gnu=$ac_compiler_gnu
2385
2386fi
2387echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2388echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2389GCC=`test $ac_compiler_gnu = yes && echo yes`
2390ac_test_CFLAGS=${CFLAGS+set}
2391ac_save_CFLAGS=$CFLAGS
2392CFLAGS="-g"
2393echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2394echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2395if test "${ac_cv_prog_cc_g+set}" = set; then
2396  echo $ECHO_N "(cached) $ECHO_C" >&6
2397else
2398  cat >conftest.$ac_ext <<_ACEOF
2399/* confdefs.h.  */
2400_ACEOF
2401cat confdefs.h >>conftest.$ac_ext
2402cat >>conftest.$ac_ext <<_ACEOF
2403/* end confdefs.h.  */
2404
2405int
2406main ()
2407{
2408
2409  ;
2410  return 0;
2411}
2412_ACEOF
2413rm -f conftest.$ac_objext
2414if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2415  (eval $ac_compile) 2>conftest.er1
2416  ac_status=$?
2417  grep -v '^ *+' conftest.er1 >conftest.err
2418  rm -f conftest.er1
2419  cat conftest.err >&5
2420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421  (exit $ac_status); } &&
2422         { ac_try='test -z "$ac_c_werror_flag"
2423                         || test ! -s conftest.err'
2424  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2425  (eval $ac_try) 2>&5
2426  ac_status=$?
2427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428  (exit $ac_status); }; } &&
2429         { ac_try='test -s conftest.$ac_objext'
2430  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2431  (eval $ac_try) 2>&5
2432  ac_status=$?
2433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434  (exit $ac_status); }; }; then
2435  ac_cv_prog_cc_g=yes
2436else
2437  echo "$as_me: failed program was:" >&5
2438sed 's/^/| /' conftest.$ac_ext >&5
2439
2440ac_cv_prog_cc_g=no
2441fi
2442rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2443fi
2444echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2445echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2446if test "$ac_test_CFLAGS" = set; then
2447  CFLAGS=$ac_save_CFLAGS
2448elif test $ac_cv_prog_cc_g = yes; then
2449  if test "$GCC" = yes; then
2450    CFLAGS="-g -O2"
2451  else
2452    CFLAGS="-g"
2453  fi
2454else
2455  if test "$GCC" = yes; then
2456    CFLAGS="-O2"
2457  else
2458    CFLAGS=
2459  fi
2460fi
2461echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2462echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2463if test "${ac_cv_prog_cc_stdc+set}" = set; then
2464  echo $ECHO_N "(cached) $ECHO_C" >&6
2465else
2466  ac_cv_prog_cc_stdc=no
2467ac_save_CC=$CC
2468cat >conftest.$ac_ext <<_ACEOF
2469/* confdefs.h.  */
2470_ACEOF
2471cat confdefs.h >>conftest.$ac_ext
2472cat >>conftest.$ac_ext <<_ACEOF
2473/* end confdefs.h.  */
2474#include <stdarg.h>
2475#include <stdio.h>
2476#include <sys/types.h>
2477#include <sys/stat.h>
2478/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2479struct buf { int x; };
2480FILE * (*rcsopen) (struct buf *, struct stat *, int);
2481static char *e (p, i)
2482     char **p;
2483     int i;
2484{
2485  return p[i];
2486}
2487static char *f (char * (*g) (char **, int), char **p, ...)
2488{
2489  char *s;
2490  va_list v;
2491  va_start (v,p);
2492  s = g (p, va_arg (v,int));
2493  va_end (v);
2494  return s;
2495}
2496
2497/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2498   function prototypes and stuff, but not '\xHH' hex character constants.
2499   These don't provoke an error unfortunately, instead are silently treated
2500   as 'x'.  The following induces an error, until -std1 is added to get
2501   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2502   array size at least.  It's necessary to write '\x00'==0 to get something
2503   that's true only with -std1.  */
2504int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2505
2506int test (int i, double x);
2507struct s1 {int (*f) (int a);};
2508struct s2 {int (*f) (double a);};
2509int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2510int argc;
2511char **argv;
2512int
2513main ()
2514{
2515return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2516  ;
2517  return 0;
2518}
2519_ACEOF
2520# Don't try gcc -ansi; that turns off useful extensions and
2521# breaks some systems' header files.
2522# AIX                   -qlanglvl=ansi
2523# Ultrix and OSF/1      -std1
2524# HP-UX 10.20 and later -Ae
2525# HP-UX older versions  -Aa -D_HPUX_SOURCE
2526# SVR4                  -Xc -D__EXTENSIONS__
2527for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2528do
2529  CC="$ac_save_CC $ac_arg"
2530  rm -f conftest.$ac_objext
2531if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2532  (eval $ac_compile) 2>conftest.er1
2533  ac_status=$?
2534  grep -v '^ *+' conftest.er1 >conftest.err
2535  rm -f conftest.er1
2536  cat conftest.err >&5
2537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538  (exit $ac_status); } &&
2539         { ac_try='test -z "$ac_c_werror_flag"
2540                         || test ! -s conftest.err'
2541  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2542  (eval $ac_try) 2>&5
2543  ac_status=$?
2544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545  (exit $ac_status); }; } &&
2546         { ac_try='test -s conftest.$ac_objext'
2547  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2548  (eval $ac_try) 2>&5
2549  ac_status=$?
2550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551  (exit $ac_status); }; }; then
2552  ac_cv_prog_cc_stdc=$ac_arg
2553break
2554else
2555  echo "$as_me: failed program was:" >&5
2556sed 's/^/| /' conftest.$ac_ext >&5
2557
2558fi
2559rm -f conftest.err conftest.$ac_objext
2560done
2561rm -f conftest.$ac_ext conftest.$ac_objext
2562CC=$ac_save_CC
2563
2564fi
2565
2566case "x$ac_cv_prog_cc_stdc" in
2567  x|xno)
2568    echo "$as_me:$LINENO: result: none needed" >&5
2569echo "${ECHO_T}none needed" >&6 ;;
2570  *)
2571    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2572echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2573    CC="$CC $ac_cv_prog_cc_stdc" ;;
2574esac
2575
2576# Some people use a C++ compiler to compile C.  Since we use `exit',
2577# in C++ we need to declare it.  In case someone uses the same compiler
2578# for both compiling C and C++ we need to have the C++ compiler decide
2579# the declaration of exit, since it's the most demanding environment.
2580cat >conftest.$ac_ext <<_ACEOF
2581#ifndef __cplusplus
2582  choke me
2583#endif
2584_ACEOF
2585rm -f conftest.$ac_objext
2586if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2587  (eval $ac_compile) 2>conftest.er1
2588  ac_status=$?
2589  grep -v '^ *+' conftest.er1 >conftest.err
2590  rm -f conftest.er1
2591  cat conftest.err >&5
2592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593  (exit $ac_status); } &&
2594         { ac_try='test -z "$ac_c_werror_flag"
2595                         || test ! -s conftest.err'
2596  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2597  (eval $ac_try) 2>&5
2598  ac_status=$?
2599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600  (exit $ac_status); }; } &&
2601         { ac_try='test -s conftest.$ac_objext'
2602  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2603  (eval $ac_try) 2>&5
2604  ac_status=$?
2605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606  (exit $ac_status); }; }; then
2607  for ac_declaration in \
2608   '' \
2609   'extern "C" void std::exit (int) throw (); using std::exit;' \
2610   'extern "C" void std::exit (int); using std::exit;' \
2611   'extern "C" void exit (int) throw ();' \
2612   'extern "C" void exit (int);' \
2613   'void exit (int);'
2614do
2615  cat >conftest.$ac_ext <<_ACEOF
2616/* confdefs.h.  */
2617_ACEOF
2618cat confdefs.h >>conftest.$ac_ext
2619cat >>conftest.$ac_ext <<_ACEOF
2620/* end confdefs.h.  */
2621$ac_declaration
2622#include <stdlib.h>
2623int
2624main ()
2625{
2626exit (42);
2627  ;
2628  return 0;
2629}
2630_ACEOF
2631rm -f conftest.$ac_objext
2632if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2633  (eval $ac_compile) 2>conftest.er1
2634  ac_status=$?
2635  grep -v '^ *+' conftest.er1 >conftest.err
2636  rm -f conftest.er1
2637  cat conftest.err >&5
2638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639  (exit $ac_status); } &&
2640         { ac_try='test -z "$ac_c_werror_flag"
2641                         || test ! -s conftest.err'
2642  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2643  (eval $ac_try) 2>&5
2644  ac_status=$?
2645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646  (exit $ac_status); }; } &&
2647         { ac_try='test -s conftest.$ac_objext'
2648  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2649  (eval $ac_try) 2>&5
2650  ac_status=$?
2651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652  (exit $ac_status); }; }; then
2653  :
2654else
2655  echo "$as_me: failed program was:" >&5
2656sed 's/^/| /' conftest.$ac_ext >&5
2657
2658continue
2659fi
2660rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2661  cat >conftest.$ac_ext <<_ACEOF
2662/* confdefs.h.  */
2663_ACEOF
2664cat confdefs.h >>conftest.$ac_ext
2665cat >>conftest.$ac_ext <<_ACEOF
2666/* end confdefs.h.  */
2667$ac_declaration
2668int
2669main ()
2670{
2671exit (42);
2672  ;
2673  return 0;
2674}
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  break
2699else
2700  echo "$as_me: failed program was:" >&5
2701sed 's/^/| /' conftest.$ac_ext >&5
2702
2703fi
2704rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2705done
2706rm -f conftest*
2707if test -n "$ac_declaration"; then
2708  echo '#ifdef __cplusplus' >>confdefs.h
2709  echo $ac_declaration      >>confdefs.h
2710  echo '#endif'             >>confdefs.h
2711fi
2712
2713else
2714  echo "$as_me: failed program was:" >&5
2715sed 's/^/| /' conftest.$ac_ext >&5
2716
2717fi
2718rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2719ac_ext=c
2720ac_cpp='$CPP $CPPFLAGS'
2721ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2722ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2723ac_compiler_gnu=$ac_cv_c_compiler_gnu
2724
2725if test -z "$CC" ; then
2726  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2727echo "$as_me: error: Failed to find a C compiler!" >&2;}
2728   { (exit 1); exit 1; }; }
2729fi
2730# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2731case "$CC" in
2732  cl* | */cl* | CL* | */CL* )
2733    if test "$ac_cv_prog_cc_g" = yes ; then
2734      ac_cv_prog_cc_g=no
2735      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2736echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2737    fi ;;
2738esac
2739CFLAGS="$save_cflags"
2740
2741# Check if a project specific CFLAGS variable has been set
2742if test x$COIN_PRJCT != x; then
2743  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2744  if test x$coin_tmp = xset; then
2745    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2746  fi
2747fi
2748
2749if test x"$CFLAGS" = x; then
2750
2751  coin_add_cflags=
2752  coin_opt_cflags=
2753  coin_dbg_cflags=
2754  coin_warn_cflags=
2755
2756  if test "$GCC" = "yes"; then
2757    case "$CC" in
2758      icc* | */icc*)
2759        ;;
2760      *)
2761        coin_opt_cflags="-O3 -fomit-frame-pointer"
2762        coin_add_cflags="-pipe"
2763        coin_dbg_cflags="-g"
2764        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas"
2765        case $build in
2766          *-darwin*)
2767            ;;
2768          *)
2769            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2770            ;;
2771        esac
2772        case $enable_doscompile in
2773          mingw)
2774            CFLAGS="-mno-cygwin"
2775            cat >conftest.$ac_ext <<_ACEOF
2776/* confdefs.h.  */
2777_ACEOF
2778cat confdefs.h >>conftest.$ac_ext
2779cat >>conftest.$ac_ext <<_ACEOF
2780/* end confdefs.h.  */
2781
2782int
2783main ()
2784{
2785int i=0; i++;
2786  ;
2787  return 0;
2788}
2789_ACEOF
2790rm -f conftest.$ac_objext conftest$ac_exeext
2791if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2792  (eval $ac_link) 2>conftest.er1
2793  ac_status=$?
2794  grep -v '^ *+' conftest.er1 >conftest.err
2795  rm -f conftest.er1
2796  cat conftest.err >&5
2797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798  (exit $ac_status); } &&
2799         { ac_try='test -z "$ac_c_werror_flag"
2800                         || test ! -s conftest.err'
2801  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2802  (eval $ac_try) 2>&5
2803  ac_status=$?
2804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805  (exit $ac_status); }; } &&
2806         { ac_try='test -s conftest$ac_exeext'
2807  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2808  (eval $ac_try) 2>&5
2809  ac_status=$?
2810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811  (exit $ac_status); }; }; then
2812  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2813else
2814  echo "$as_me: failed program was:" >&5
2815sed 's/^/| /' conftest.$ac_ext >&5
2816
2817fi
2818rm -f conftest.err conftest.$ac_objext \
2819      conftest$ac_exeext conftest.$ac_ext
2820            CFLAGS=
2821          ;;
2822        esac
2823    esac
2824  fi
2825  if test -z "$coin_opt_cflags"; then
2826    case $build in
2827      *-cygwin* | *-mingw*)
2828        case "$CC" in
2829          cl* | */cl* | CL* | */CL*)
2830            coin_opt_cflags='-MT -O2'
2831            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2832            coin_dbg_cflags='-MTd'
2833            ;;
2834          icl* | */icl* | ICL* | */ICL*)
2835            coin_opt_cflags='-MT -Ox'
2836            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2837            coin_dbg_cflags='-MTd -debug'
2838            ;;
2839        esac
2840        ;;
2841      *-linux-*)
2842        case "$CC" in
2843          icc* | */icc*)
2844            coin_opt_cflags="-O3 -ip -mp1"
2845            coin_add_cflags=""
2846            coin_dbg_cflags="-g"
2847            # Check if -i_dynamic is necessary (for new glibc library)
2848            CFLAGS=
2849            cat >conftest.$ac_ext <<_ACEOF
2850/* confdefs.h.  */
2851_ACEOF
2852cat confdefs.h >>conftest.$ac_ext
2853cat >>conftest.$ac_ext <<_ACEOF
2854/* end confdefs.h.  */
2855
2856int
2857main ()
2858{
2859int i=0; i++;
2860  ;
2861  return 0;
2862}
2863_ACEOF
2864rm -f conftest.$ac_objext conftest$ac_exeext
2865if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2866  (eval $ac_link) 2>conftest.er1
2867  ac_status=$?
2868  grep -v '^ *+' conftest.er1 >conftest.err
2869  rm -f conftest.er1
2870  cat conftest.err >&5
2871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872  (exit $ac_status); } &&
2873         { ac_try='test -z "$ac_c_werror_flag"
2874                         || test ! -s conftest.err'
2875  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2876  (eval $ac_try) 2>&5
2877  ac_status=$?
2878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879  (exit $ac_status); }; } &&
2880         { ac_try='test -s conftest$ac_exeext'
2881  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2882  (eval $ac_try) 2>&5
2883  ac_status=$?
2884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885  (exit $ac_status); }; }; then
2886  :
2887else
2888  echo "$as_me: failed program was:" >&5
2889sed 's/^/| /' conftest.$ac_ext >&5
2890
2891coin_add_cflags="-i_dynamic $coin_add_cflags"
2892fi
2893rm -f conftest.err conftest.$ac_objext \
2894      conftest$ac_exeext conftest.$ac_ext
2895            ;;
2896          pgcc* | */pgcc*)
2897            coin_opt_cflags="-fast"
2898            coin_add_cflags="-Kieee -pc 64"
2899            coin_dbg_cflags="-g"
2900            ;;
2901        esac
2902        ;;
2903      *-ibm-*)
2904        case "$CC" in
2905          xlc* | */xlc* | mpxlc* | */mpxlc*)
2906            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2907            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2908            coin_dbg_cflags="-g"
2909          ;;
2910        esac
2911        ;;
2912      *-hp-*)
2913        coin_opt_cflags="-O"
2914        coin_add_cflags="-Ae"
2915        coin_dbg_cflags="-g"
2916        ;;
2917      *-*-solaris*)
2918        coin_opt_cflags="-xO4"
2919        coin_dbg_cflags="-g"
2920        ;;
2921      *-sgi-*)
2922        coin_opt_cflags="-O -OPT:Olimit=0"
2923        coin_dbg_cflags="-g"
2924        ;;
2925    esac
2926  fi
2927
2928  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2929    coin_dbg_cflags="-g"
2930  fi
2931
2932  if test -z "$coin_opt_cflags"; then
2933    # Try if -O option works if nothing else is set
2934    CFLAGS="-O"
2935    cat >conftest.$ac_ext <<_ACEOF
2936/* confdefs.h.  */
2937_ACEOF
2938cat confdefs.h >>conftest.$ac_ext
2939cat >>conftest.$ac_ext <<_ACEOF
2940/* end confdefs.h.  */
2941
2942int
2943main ()
2944{
2945int i=0; i++;
2946  ;
2947  return 0;
2948}
2949_ACEOF
2950rm -f conftest.$ac_objext conftest$ac_exeext
2951if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2952  (eval $ac_link) 2>conftest.er1
2953  ac_status=$?
2954  grep -v '^ *+' conftest.er1 >conftest.err
2955  rm -f conftest.er1
2956  cat conftest.err >&5
2957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958  (exit $ac_status); } &&
2959         { ac_try='test -z "$ac_c_werror_flag"
2960                         || test ! -s conftest.err'
2961  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2962  (eval $ac_try) 2>&5
2963  ac_status=$?
2964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965  (exit $ac_status); }; } &&
2966         { ac_try='test -s conftest$ac_exeext'
2967  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2968  (eval $ac_try) 2>&5
2969  ac_status=$?
2970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971  (exit $ac_status); }; }; then
2972  coin_opt_cflags="-O"
2973else
2974  echo "$as_me: failed program was:" >&5
2975sed 's/^/| /' conftest.$ac_ext >&5
2976
2977fi
2978rm -f conftest.err conftest.$ac_objext \
2979      conftest$ac_exeext conftest.$ac_ext
2980  fi
2981
2982  # if PM doesn't want the warning messages, take them out
2983  if test x"$coin_skip_warn_cflags" = xyes; then
2984    coin_warn_cflags=
2985  fi
2986
2987  if test x${DBG_CFLAGS+set} != xset; then
2988    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2989  fi
2990  if test x${OPT_CFLAGS+set} != xset; then
2991    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2992  fi
2993
2994  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2995  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2996
2997  if test "$coin_debug_compile" = "true"; then
2998    CFLAGS="$DBG_CFLAGS"
2999  else
3000    CFLAGS="$OPT_CFLAGS"
3001  fi
3002else
3003  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3004  if test x${DBG_CFLAGS+set} != xset; then
3005    DBG_CFLAGS="$CFLAGS"
3006  fi
3007  if test x${OPT_CFLAGS+set} != xset; then
3008    OPT_CFLAGS="$CFLAGS"
3009  fi
3010fi
3011
3012# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3013
3014case "$CFLAGS" in
3015  *-mno-cygwin*)
3016    if test x${CPPFLAGS+set} != xset ; then
3017      CPPFLAGS="-mno-cygwin"
3018    else
3019      case "$CPPFLAGS" in
3020        *-mno-cygwin*)
3021          ;;
3022        *)
3023          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3024          ;;
3025      esac
3026    fi ;;
3027esac
3028
3029# Try if CFLAGS works
3030save_CFLAGS="$CFLAGS"
3031cat >conftest.$ac_ext <<_ACEOF
3032/* confdefs.h.  */
3033_ACEOF
3034cat confdefs.h >>conftest.$ac_ext
3035cat >>conftest.$ac_ext <<_ACEOF
3036/* end confdefs.h.  */
3037
3038int
3039main ()
3040{
3041int i=0; i++;
3042  ;
3043  return 0;
3044}
3045_ACEOF
3046rm -f conftest.$ac_objext conftest$ac_exeext
3047if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3048  (eval $ac_link) 2>conftest.er1
3049  ac_status=$?
3050  grep -v '^ *+' conftest.er1 >conftest.err
3051  rm -f conftest.er1
3052  cat conftest.err >&5
3053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054  (exit $ac_status); } &&
3055         { ac_try='test -z "$ac_c_werror_flag"
3056                         || test ! -s conftest.err'
3057  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3058  (eval $ac_try) 2>&5
3059  ac_status=$?
3060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061  (exit $ac_status); }; } &&
3062         { ac_try='test -s conftest$ac_exeext'
3063  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3064  (eval $ac_try) 2>&5
3065  ac_status=$?
3066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067  (exit $ac_status); }; }; then
3068  :
3069else
3070  echo "$as_me: failed program was:" >&5
3071sed 's/^/| /' conftest.$ac_ext >&5
3072
3073CFLAGS=
3074fi
3075rm -f conftest.err conftest.$ac_objext \
3076      conftest$ac_exeext conftest.$ac_ext
3077if test -z "$CFLAGS"; then
3078  { 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
3079echo "$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;}
3080  CFLAGS='-O'
3081  cat >conftest.$ac_ext <<_ACEOF
3082/* confdefs.h.  */
3083_ACEOF
3084cat confdefs.h >>conftest.$ac_ext
3085cat >>conftest.$ac_ext <<_ACEOF
3086/* end confdefs.h.  */
3087
3088int
3089main ()
3090{
3091int i=0; i++;
3092  ;
3093  return 0;
3094}
3095_ACEOF
3096rm -f conftest.$ac_objext conftest$ac_exeext
3097if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3098  (eval $ac_link) 2>conftest.er1
3099  ac_status=$?
3100  grep -v '^ *+' conftest.er1 >conftest.err
3101  rm -f conftest.er1
3102  cat conftest.err >&5
3103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104  (exit $ac_status); } &&
3105         { ac_try='test -z "$ac_c_werror_flag"
3106                         || test ! -s conftest.err'
3107  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3108  (eval $ac_try) 2>&5
3109  ac_status=$?
3110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111  (exit $ac_status); }; } &&
3112         { ac_try='test -s conftest$ac_exeext'
3113  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3114  (eval $ac_try) 2>&5
3115  ac_status=$?
3116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117  (exit $ac_status); }; }; then
3118  :
3119else
3120  echo "$as_me: failed program was:" >&5
3121sed 's/^/| /' conftest.$ac_ext >&5
3122
3123CFLAGS=
3124fi
3125rm -f conftest.err conftest.$ac_objext \
3126      conftest$ac_exeext conftest.$ac_ext
3127  if test -z "$CFLAGS"; then
3128    { 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
3129echo "$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;}
3130  fi
3131fi
3132
3133{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3134echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3135
3136
3137if test x"$MPICC" = x; then :; else
3138  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3139echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3140  CC="$MPICC"
3141fi
3142
3143# Correct ADDLIBS initialization if we are using the MS compiler
3144case "$CC" in
3145  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3146    ADDLIBS=
3147    case $build in
3148  *-mingw*)
3149    if test "${LD+set}" = set; then :; else
3150      LD=link
3151    fi
3152    ;;
3153 esac
3154 case $enable_doscompile in
3155   msvc)
3156     if test "x${LD+set}" = xset; then :; else
3157       LD=link
3158     fi
3159     ;;
3160 esac
3161
3162    ;;
3163esac
3164
3165ac_ext=c
3166ac_cpp='$CPP $CPPFLAGS'
3167ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3168ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3169ac_compiler_gnu=$ac_cv_c_compiler_gnu
3170
3171
3172
3173 #Let's try if that overcomes configuration problem with VC++ 6.0
3174
3175ac_ext=cc
3176ac_cpp='$CXXCPP $CPPFLAGS'
3177ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3178ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3179ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3180
3181
3182
3183
3184
3185
3186
3187coin_has_cxx=yes
3188
3189save_cxxflags="$CXXFLAGS"
3190# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3191case $build in
3192  *-cygwin* | *-mingw*)
3193             if test "$enable_doscompile" = msvc ; then
3194               comps="icl cl"
3195             else
3196               comps="g++ cl"
3197             fi ;;
3198  *-*-solaris*)
3199             comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3200  *-darwin*) comps="g++ c++ CC" ;;
3201          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3202esac
3203
3204# We delete the cached value, since the test might not have been
3205# performed with our choice of compilers earlier
3206$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3207# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3208ac_ext=cc
3209ac_cpp='$CXXCPP $CPPFLAGS'
3210ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3211ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3212ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3213if test -n "$ac_tool_prefix"; then
3214  for ac_prog in $CCC $comps
3215  do
3216    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3217set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3218echo "$as_me:$LINENO: checking for $ac_word" >&5
3219echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3220if test "${ac_cv_prog_CXX+set}" = set; then
3221  echo $ECHO_N "(cached) $ECHO_C" >&6
3222else
3223  if test -n "$CXX"; then
3224  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3225else
3226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3227for as_dir in $PATH
3228do
3229  IFS=$as_save_IFS
3230  test -z "$as_dir" && as_dir=.
3231  for ac_exec_ext in '' $ac_executable_extensions; do
3232  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3233    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3234    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3235    break 2
3236  fi
3237done
3238done
3239
3240fi
3241fi
3242CXX=$ac_cv_prog_CXX
3243if test -n "$CXX"; then
3244  echo "$as_me:$LINENO: result: $CXX" >&5
3245echo "${ECHO_T}$CXX" >&6
3246else
3247  echo "$as_me:$LINENO: result: no" >&5
3248echo "${ECHO_T}no" >&6
3249fi
3250
3251    test -n "$CXX" && break
3252  done
3253fi
3254if test -z "$CXX"; then
3255  ac_ct_CXX=$CXX
3256  for ac_prog in $CCC $comps
3257do
3258  # Extract the first word of "$ac_prog", so it can be a program name with args.
3259set dummy $ac_prog; ac_word=$2
3260echo "$as_me:$LINENO: checking for $ac_word" >&5
3261echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3262if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3263  echo $ECHO_N "(cached) $ECHO_C" >&6
3264else
3265  if test -n "$ac_ct_CXX"; then
3266  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3267else
3268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3269for as_dir in $PATH
3270do
3271  IFS=$as_save_IFS
3272  test -z "$as_dir" && as_dir=.
3273  for ac_exec_ext in '' $ac_executable_extensions; do
3274  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3275    ac_cv_prog_ac_ct_CXX="$ac_prog"
3276    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3277    break 2
3278  fi
3279done
3280done
3281
3282fi
3283fi
3284ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3285if test -n "$ac_ct_CXX"; then
3286  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3287echo "${ECHO_T}$ac_ct_CXX" >&6
3288else
3289  echo "$as_me:$LINENO: result: no" >&5
3290echo "${ECHO_T}no" >&6
3291fi
3292
3293  test -n "$ac_ct_CXX" && break
3294done
3295test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3296
3297  CXX=$ac_ct_CXX
3298fi
3299
3300
3301# Provide some information about the compiler.
3302echo "$as_me:$LINENO:" \
3303     "checking for C++ compiler version" >&5
3304ac_compiler=`set X $ac_compile; echo $2`
3305{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3306  (eval $ac_compiler --version </dev/null >&5) 2>&5
3307  ac_status=$?
3308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3309  (exit $ac_status); }
3310{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3311  (eval $ac_compiler -v </dev/null >&5) 2>&5
3312  ac_status=$?
3313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314  (exit $ac_status); }
3315{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3316  (eval $ac_compiler -V </dev/null >&5) 2>&5
3317  ac_status=$?
3318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319  (exit $ac_status); }
3320
3321echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3322echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3323if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3324  echo $ECHO_N "(cached) $ECHO_C" >&6
3325else
3326  cat >conftest.$ac_ext <<_ACEOF
3327/* confdefs.h.  */
3328_ACEOF
3329cat confdefs.h >>conftest.$ac_ext
3330cat >>conftest.$ac_ext <<_ACEOF
3331/* end confdefs.h.  */
3332
3333int
3334main ()
3335{
3336#ifndef __GNUC__
3337       choke me
3338#endif
3339
3340  ;
3341  return 0;
3342}
3343_ACEOF
3344rm -f conftest.$ac_objext
3345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3346  (eval $ac_compile) 2>conftest.er1
3347  ac_status=$?
3348  grep -v '^ *+' conftest.er1 >conftest.err
3349  rm -f conftest.er1
3350  cat conftest.err >&5
3351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352  (exit $ac_status); } &&
3353         { ac_try='test -z "$ac_cxx_werror_flag"
3354                         || test ! -s conftest.err'
3355  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3356  (eval $ac_try) 2>&5
3357  ac_status=$?
3358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359  (exit $ac_status); }; } &&
3360         { ac_try='test -s conftest.$ac_objext'
3361  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3362  (eval $ac_try) 2>&5
3363  ac_status=$?
3364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365  (exit $ac_status); }; }; then
3366  ac_compiler_gnu=yes
3367else
3368  echo "$as_me: failed program was:" >&5
3369sed 's/^/| /' conftest.$ac_ext >&5
3370
3371ac_compiler_gnu=no
3372fi
3373rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3374ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3375
3376fi
3377echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3378echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3379GXX=`test $ac_compiler_gnu = yes && echo yes`
3380ac_test_CXXFLAGS=${CXXFLAGS+set}
3381ac_save_CXXFLAGS=$CXXFLAGS
3382CXXFLAGS="-g"
3383echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3384echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3385if test "${ac_cv_prog_cxx_g+set}" = set; then
3386  echo $ECHO_N "(cached) $ECHO_C" >&6
3387else
3388  cat >conftest.$ac_ext <<_ACEOF
3389/* confdefs.h.  */
3390_ACEOF
3391cat confdefs.h >>conftest.$ac_ext
3392cat >>conftest.$ac_ext <<_ACEOF
3393/* end confdefs.h.  */
3394
3395int
3396main ()
3397{
3398
3399  ;
3400  return 0;
3401}
3402_ACEOF
3403rm -f conftest.$ac_objext
3404if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3405  (eval $ac_compile) 2>conftest.er1
3406  ac_status=$?
3407  grep -v '^ *+' conftest.er1 >conftest.err
3408  rm -f conftest.er1
3409  cat conftest.err >&5
3410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411  (exit $ac_status); } &&
3412         { ac_try='test -z "$ac_cxx_werror_flag"
3413                         || test ! -s conftest.err'
3414  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3415  (eval $ac_try) 2>&5
3416  ac_status=$?
3417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418  (exit $ac_status); }; } &&
3419         { ac_try='test -s conftest.$ac_objext'
3420  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3421  (eval $ac_try) 2>&5
3422  ac_status=$?
3423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424  (exit $ac_status); }; }; then
3425  ac_cv_prog_cxx_g=yes
3426else
3427  echo "$as_me: failed program was:" >&5
3428sed 's/^/| /' conftest.$ac_ext >&5
3429
3430ac_cv_prog_cxx_g=no
3431fi
3432rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3433fi
3434echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3435echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3436if test "$ac_test_CXXFLAGS" = set; then
3437  CXXFLAGS=$ac_save_CXXFLAGS
3438elif test $ac_cv_prog_cxx_g = yes; then
3439  if test "$GXX" = yes; then
3440    CXXFLAGS="-g -O2"
3441  else
3442    CXXFLAGS="-g"
3443  fi
3444else
3445  if test "$GXX" = yes; then
3446    CXXFLAGS="-O2"
3447  else
3448    CXXFLAGS=
3449  fi
3450fi
3451for ac_declaration in \
3452   '' \
3453   'extern "C" void std::exit (int) throw (); using std::exit;' \
3454   'extern "C" void std::exit (int); using std::exit;' \
3455   'extern "C" void exit (int) throw ();' \
3456   'extern "C" void exit (int);' \
3457   'void exit (int);'
3458do
3459  cat >conftest.$ac_ext <<_ACEOF
3460/* confdefs.h.  */
3461_ACEOF
3462cat confdefs.h >>conftest.$ac_ext
3463cat >>conftest.$ac_ext <<_ACEOF
3464/* end confdefs.h.  */
3465$ac_declaration
3466#include <stdlib.h>
3467int
3468main ()
3469{
3470exit (42);
3471  ;
3472  return 0;
3473}
3474_ACEOF
3475rm -f conftest.$ac_objext
3476if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3477  (eval $ac_compile) 2>conftest.er1
3478  ac_status=$?
3479  grep -v '^ *+' conftest.er1 >conftest.err
3480  rm -f conftest.er1
3481  cat conftest.err >&5
3482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483  (exit $ac_status); } &&
3484         { ac_try='test -z "$ac_cxx_werror_flag"
3485                         || test ! -s conftest.err'
3486  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3487  (eval $ac_try) 2>&5
3488  ac_status=$?
3489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3490  (exit $ac_status); }; } &&
3491         { ac_try='test -s conftest.$ac_objext'
3492  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3493  (eval $ac_try) 2>&5
3494  ac_status=$?
3495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496  (exit $ac_status); }; }; then
3497  :
3498else
3499  echo "$as_me: failed program was:" >&5
3500sed 's/^/| /' conftest.$ac_ext >&5
3501
3502continue
3503fi
3504rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3505  cat >conftest.$ac_ext <<_ACEOF
3506/* confdefs.h.  */
3507_ACEOF
3508cat confdefs.h >>conftest.$ac_ext
3509cat >>conftest.$ac_ext <<_ACEOF
3510/* end confdefs.h.  */
3511$ac_declaration
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  break
3543else
3544  echo "$as_me: failed program was:" >&5
3545sed 's/^/| /' conftest.$ac_ext >&5
3546
3547fi
3548rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3549done
3550rm -f conftest*
3551if test -n "$ac_declaration"; then
3552  echo '#ifdef __cplusplus' >>confdefs.h
3553  echo $ac_declaration      >>confdefs.h
3554  echo '#endif'             >>confdefs.h
3555fi
3556
3557ac_ext=cc
3558ac_cpp='$CXXCPP $CPPFLAGS'
3559ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3560ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3561ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3562
3563
3564#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3565#thus, we test here whether $CXX is actually working
3566ac_ext=cc
3567ac_cpp='$CXXCPP $CPPFLAGS'
3568ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3569ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3570ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3571
3572echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3573echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3574cat >conftest.$ac_ext <<_ACEOF
3575/* confdefs.h.  */
3576_ACEOF
3577cat confdefs.h >>conftest.$ac_ext
3578cat >>conftest.$ac_ext <<_ACEOF
3579/* end confdefs.h.  */
3580
3581int
3582main ()
3583{
3584int i=0;
3585  ;
3586  return 0;
3587}
3588_ACEOF
3589rm -f conftest.$ac_objext
3590if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3591  (eval $ac_compile) 2>conftest.er1
3592  ac_status=$?
3593  grep -v '^ *+' conftest.er1 >conftest.err
3594  rm -f conftest.er1
3595  cat conftest.err >&5
3596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597  (exit $ac_status); } &&
3598         { ac_try='test -z "$ac_cxx_werror_flag"
3599                         || test ! -s conftest.err'
3600  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3601  (eval $ac_try) 2>&5
3602  ac_status=$?
3603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604  (exit $ac_status); }; } &&
3605         { ac_try='test -s conftest.$ac_objext'
3606  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3607  (eval $ac_try) 2>&5
3608  ac_status=$?
3609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610  (exit $ac_status); }; }; then
3611  echo "$as_me:$LINENO: result: yes" >&5
3612echo "${ECHO_T}yes" >&6
3613else
3614  echo "$as_me: failed program was:" >&5
3615sed 's/^/| /' conftest.$ac_ext >&5
3616
3617echo "$as_me:$LINENO: result: no" >&5
3618echo "${ECHO_T}no" >&6
3619   { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3620echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3621   { (exit 1); exit 1; }; }
3622
3623fi
3624rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3625ac_ext=cc
3626ac_cpp='$CXXCPP $CPPFLAGS'
3627ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3628ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3629ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3630
3631
3632# It seems that we need to cleanup something here for the Windows
3633case "$CXX" in
3634  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3635    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3636    mv confdefs.hh confdefs.h
3637    ;;
3638esac
3639
3640# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3641case "$CXX" in
3642  cl* | */cl* | CL* | */CL* )
3643    if test "$ac_cv_prog_cxx_g" = yes ; then
3644      ac_cv_prog_cxx_g=no
3645      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3646echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3647    fi ;;
3648esac
3649CXXFLAGS="$save_cxxflags"
3650
3651# Check if a project specific CXXFLAGS variable has been set
3652if test x$COIN_PRJCT != x; then
3653  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3654  if test x$coin_tmp = xset; then
3655    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3656  fi
3657fi
3658
3659if test x"$CXXFLAGS" = x; then
3660
3661# ToDo decide whether we want -DNDEBUG for optimization
3662  coin_add_cxxflags=
3663  coin_opt_cxxflags=
3664  coin_dbg_cxxflags=
3665  coin_warn_cxxflags=
3666
3667  if test "$GXX" = "yes"; then
3668    case "$CXX" in
3669      icpc* | */icpc*)
3670        ;;
3671      *)
3672# ToDo decide about unroll-loops
3673        coin_opt_cxxflags="-O3 -fomit-frame-pointer"
3674        coin_add_cxxflags="-pipe"
3675        coin_dbg_cxxflags="-g"
3676        coin_warn_cxxflags="-Wimplicit -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas"
3677        case $build in
3678          *-darwin*)
3679            ;;
3680          *)
3681            coin_warn_cxxflags="-pedantic-errors $coin_warn_cxxflags"
3682            ;;
3683        esac
3684
3685        case $enable_doscompile in
3686          mingw)
3687            CXXFLAGS="-mno-cygwin"
3688            cat >conftest.$ac_ext <<_ACEOF
3689/* confdefs.h.  */
3690_ACEOF
3691cat confdefs.h >>conftest.$ac_ext
3692cat >>conftest.$ac_ext <<_ACEOF
3693/* end confdefs.h.  */
3694
3695int
3696main ()
3697{
3698int i=0; i++;
3699  ;
3700  return 0;
3701}
3702_ACEOF
3703rm -f conftest.$ac_objext conftest$ac_exeext
3704if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3705  (eval $ac_link) 2>conftest.er1
3706  ac_status=$?
3707  grep -v '^ *+' conftest.er1 >conftest.err
3708  rm -f conftest.er1
3709  cat conftest.err >&5
3710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711  (exit $ac_status); } &&
3712         { ac_try='test -z "$ac_cxx_werror_flag"
3713                         || test ! -s conftest.err'
3714  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3715  (eval $ac_try) 2>&5
3716  ac_status=$?
3717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3718  (exit $ac_status); }; } &&
3719         { ac_try='test -s conftest$ac_exeext'
3720  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3721  (eval $ac_try) 2>&5
3722  ac_status=$?
3723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724  (exit $ac_status); }; }; then
3725  coin_add_cxxflags="-mno-cygwin $coin_add_cxxflags"
3726else
3727  echo "$as_me: failed program was:" >&5
3728sed 's/^/| /' conftest.$ac_ext >&5
3729
3730fi
3731rm -f conftest.err conftest.$ac_objext \
3732      conftest$ac_exeext conftest.$ac_ext
3733            CXXFLAGS=
3734          ;;
3735        esac
3736    esac
3737  fi
3738
3739# Note that we do not need to cover GCC in the following tests.
3740
3741  if test -z "$coin_opt_cxxflags"; then
3742    case $build in
3743      *-cygwin* | *-mingw*)
3744        case "$CXX" in
3745          cl* | */cl* | CL* | */CL*)
3746            # The MT and MTd options are mutually exclusive
3747            coin_opt_cxxflags='-MT -O2'
3748            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3749            coin_dbg_cxxflags='-MTd'
3750            ;;
3751          icl* | */icl* | ICL* | */ICL*)
3752            # The MT and MTd options are mutually exclusive
3753            coin_opt_cxxflags='-MT -Ox'
3754            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3755            coin_dbg_cxxflags='-MTd -debug'
3756            ;;
3757        esac
3758        ;;
3759      *-linux-*)
3760        case "$CXX" in
3761          icpc* | */icpc*)
3762            coin_opt_cxxflags="-O3 -ip -mp1"
3763            coin_add_cxxflags=""
3764            coin_dbg_cxxflags="-g"
3765            # Check if -i_dynamic is necessary (for new glibc library)
3766            CXXFLAGS=
3767            cat >conftest.$ac_ext <<_ACEOF
3768/* confdefs.h.  */
3769_ACEOF
3770cat confdefs.h >>conftest.$ac_ext
3771cat >>conftest.$ac_ext <<_ACEOF
3772/* end confdefs.h.  */
3773
3774int
3775main ()
3776{
3777int i=0; i++;
3778  ;
3779  return 0;
3780}
3781_ACEOF
3782rm -f conftest.$ac_objext conftest$ac_exeext
3783if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3784  (eval $ac_link) 2>conftest.er1
3785  ac_status=$?
3786  grep -v '^ *+' conftest.er1 >conftest.err
3787  rm -f conftest.er1
3788  cat conftest.err >&5
3789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790  (exit $ac_status); } &&
3791         { ac_try='test -z "$ac_cxx_werror_flag"
3792                         || test ! -s conftest.err'
3793  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3794  (eval $ac_try) 2>&5
3795  ac_status=$?
3796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797  (exit $ac_status); }; } &&
3798         { ac_try='test -s conftest$ac_exeext'
3799  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3800  (eval $ac_try) 2>&5
3801  ac_status=$?
3802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3803  (exit $ac_status); }; }; then
3804  :
3805else
3806  echo "$as_me: failed program was:" >&5
3807sed 's/^/| /' conftest.$ac_ext >&5
3808
3809coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3810fi
3811rm -f conftest.err conftest.$ac_objext \
3812      conftest$ac_exeext conftest.$ac_ext
3813            ;;
3814          pgCC* | */pgCC*)
3815            coin_opt_cxxflags="-fast"
3816            coin_add_cxxflags="-Kieee -pc 64"
3817            coin_dbg_cxxflags="-g"
3818            ;;
3819        esac
3820        ;;
3821      *-ibm-*)
3822        case "$CXX" in
3823          xlC* | */xlC* | mpxlC* | */mpxlC*)
3824            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3825            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3826            coin_dbg_cxxflags="-g"
3827            ;;
3828        esac
3829        ;;
3830      *-hp-*)
3831        case "$CXX" in
3832          aCC* | */aCC* )
3833            coin_opt_cxxflags="-O"
3834            coin_add_cxxflags="-AA"
3835            coin_dbg_cxxflags="-g"
3836            ;;
3837        esac
3838        ;;
3839      *-*-solaris*)
3840          coin_opt_cxxflags="-O4"
3841          coin_dbg_cxxflags="-g"
3842        ;;
3843    esac
3844  fi
3845
3846# Generic flag settings. If these don't work, add a case above.
3847
3848  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3849    coin_dbg_cxxflags="-g"
3850  fi
3851
3852  if test -z "$coin_opt_cxxflags"; then
3853    # Try if -O option works if nothing else is set
3854    CXXFLAGS=-O
3855    cat >conftest.$ac_ext <<_ACEOF
3856/* confdefs.h.  */
3857_ACEOF
3858cat confdefs.h >>conftest.$ac_ext
3859cat >>conftest.$ac_ext <<_ACEOF
3860/* end confdefs.h.  */
3861
3862int
3863main ()
3864{
3865int i=0; i++;
3866  ;
3867  return 0;
3868}
3869_ACEOF
3870rm -f conftest.$ac_objext conftest$ac_exeext
3871if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3872  (eval $ac_link) 2>conftest.er1
3873  ac_status=$?
3874  grep -v '^ *+' conftest.er1 >conftest.err
3875  rm -f conftest.er1
3876  cat conftest.err >&5
3877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878  (exit $ac_status); } &&
3879         { ac_try='test -z "$ac_cxx_werror_flag"
3880                         || test ! -s conftest.err'
3881  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3882  (eval $ac_try) 2>&5
3883  ac_status=$?
3884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885  (exit $ac_status); }; } &&
3886         { ac_try='test -s conftest$ac_exeext'
3887  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3888  (eval $ac_try) 2>&5
3889  ac_status=$?
3890  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3891  (exit $ac_status); }; }; then
3892  coin_opt_cxxflags="-O"
3893else
3894  echo "$as_me: failed program was:" >&5
3895sed 's/^/| /' conftest.$ac_ext >&5
3896
3897fi
3898rm -f conftest.err conftest.$ac_objext \
3899      conftest$ac_exeext conftest.$ac_ext
3900  fi
3901
3902  # if PM doesn't want the warning messages, take them out
3903  if test x"$coin_skip_warn_cxxflags" = xyes; then
3904    coin_warn_cxxflags=
3905  fi
3906
3907# Do final setup of flags based on values determined above.
3908
3909  if test x${DBG_CXXFLAGS+set} != xset; then
3910    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3911  fi
3912  if test x${OPT_CXXFLAGS+set} != xset; then
3913    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
3914  fi
3915
3916  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3917  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3918
3919  if test "$coin_debug_compile" = "true"; then
3920    CXXFLAGS="$DBG_CXXFLAGS"
3921  else
3922    CXXFLAGS="$OPT_CXXFLAGS"
3923  fi
3924
3925# Handle the case where CXXFLAGS was set externally.
3926else
3927  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3928  if test x${DBG_CXXFLAGS+set} != xset; then
3929    DBG_CXXFLAGS="$CXXFLAGS"
3930  fi
3931  if test x${OPT_CXXFLAGS+set} != xset; then
3932    OPT_CXXFLAGS="$CXXFLAGS"
3933  fi
3934fi
3935
3936# If CXXFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3937
3938case "$CXXFLAGS" in
3939  *-mno-cygwin*)
3940    if test x${CPPFLAGS+set} != xset ; then
3941      CPPFLAGS="-mno-cygwin"
3942    else
3943      case "$CPPFLAGS" in
3944        *-mno-cygwin*)
3945          ;;
3946        *)
3947          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3948          ;;
3949      esac
3950    fi ;;
3951esac
3952
3953# Try if CXXFLAGS works
3954save_CXXFLAGS="$CXXFLAGS"
3955cat >conftest.$ac_ext <<_ACEOF
3956/* confdefs.h.  */
3957_ACEOF
3958cat confdefs.h >>conftest.$ac_ext
3959cat >>conftest.$ac_ext <<_ACEOF
3960/* end confdefs.h.  */
3961
3962int
3963main ()
3964{
3965int i=0; i++;
3966  ;
3967  return 0;
3968}
3969_ACEOF
3970rm -f conftest.$ac_objext conftest$ac_exeext
3971if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3972  (eval $ac_link) 2>conftest.er1
3973  ac_status=$?
3974  grep -v '^ *+' conftest.er1 >conftest.err
3975  rm -f conftest.er1
3976  cat conftest.err >&5
3977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978  (exit $ac_status); } &&
3979         { ac_try='test -z "$ac_cxx_werror_flag"
3980                         || test ! -s conftest.err'
3981  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3982  (eval $ac_try) 2>&5
3983  ac_status=$?
3984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985  (exit $ac_status); }; } &&
3986         { ac_try='test -s conftest$ac_exeext'
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); }; }; then
3992  :
3993else
3994  echo "$as_me: failed program was:" >&5
3995sed 's/^/| /' conftest.$ac_ext >&5
3996
3997CXXFLAGS=
3998fi
3999rm -f conftest.err conftest.$ac_objext \
4000      conftest$ac_exeext conftest.$ac_ext
4001if test -z "$CXXFLAGS"; then
4002  { 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
4003echo "$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;}
4004  CXXFLAGS='-O'
4005  cat >conftest.$ac_ext <<_ACEOF
4006/* confdefs.h.  */
4007_ACEOF
4008cat confdefs.h >>conftest.$ac_ext
4009cat >>conftest.$ac_ext <<_ACEOF
4010/* end confdefs.h.  */
4011
4012int
4013main ()
4014{
4015int i=0; i++;
4016  ;
4017  return 0;
4018}
4019_ACEOF
4020rm -f conftest.$ac_objext conftest$ac_exeext
4021if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4022  (eval $ac_link) 2>conftest.er1
4023  ac_status=$?
4024  grep -v '^ *+' conftest.er1 >conftest.err
4025  rm -f conftest.er1
4026  cat conftest.err >&5
4027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4028  (exit $ac_status); } &&
4029         { ac_try='test -z "$ac_cxx_werror_flag"
4030                         || test ! -s conftest.err'
4031  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4032  (eval $ac_try) 2>&5
4033  ac_status=$?
4034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035  (exit $ac_status); }; } &&
4036         { ac_try='test -s conftest$ac_exeext'
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); }; }; then
4042  :
4043else
4044  echo "$as_me: failed program was:" >&5
4045sed 's/^/| /' conftest.$ac_ext >&5
4046
4047CXXFLAGS=
4048fi
4049rm -f conftest.err conftest.$ac_objext \
4050      conftest$ac_exeext conftest.$ac_ext
4051  if test -z "$CXXFLAGS"; then
4052    { 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
4053echo "$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;}
4054  fi
4055fi
4056
4057{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
4058echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
4059
4060
4061if test x"$MPICXX" = x; then :; else
4062  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
4063echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
4064  CXX="$MPICXX"
4065fi
4066
4067case "$CXX" in
4068  cl* | */cl* | CL* | */CL* )
4069    case $build in
4070  *-mingw*)
4071    if test "${LD+set}" = set; then :; else
4072      LD=link
4073    fi
4074    ;;
4075 esac
4076 case $enable_doscompile in
4077   msvc)
4078     if test "x${LD+set}" = xset; then :; else
4079       LD=link
4080     fi
4081     ;;
4082 esac
4083
4084    ;;
4085esac
4086
4087ac_ext=c
4088ac_cpp='$CPP $CPPFLAGS'
4089ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4090ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4091ac_compiler_gnu=$ac_cv_c_compiler_gnu
4092
4093
4094
4095# Get the name of the C compiler and appropriate compiler options
4096
4097
4098ac_ext=c
4099ac_cpp='$CPP $CPPFLAGS'
4100ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4101ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4102ac_compiler_gnu=$ac_cv_c_compiler_gnu
4103
4104
4105# For consistency, we set the C compiler to the same value of the C++
4106# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
4107if test x"$CXX" != x; then
4108  case "$CXX" in
4109    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4110      if test x"$CC" = x; then
4111        CC="$CXX"
4112        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
4113echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
4114      fi
4115      ;;
4116  esac
4117fi
4118
4119
4120
4121
4122
4123
4124coin_has_cc=yes
4125
4126save_cflags="$CFLAGS"
4127
4128# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
4129# Depending on the user's PATH, when Studio/Workshop cc is not present we may
4130# find /usr/ucb/cc, which is almost certainly not a good choice for the C
4131# compiler. In this case, put cc after gcc.
4132
4133case $build in
4134  *-cygwin* | *-mingw*)
4135             if test "$enable_doscompile" = msvc ; then
4136               comps="icl cl"
4137             else
4138               comps="gcc cl"
4139             fi ;;
4140  *-*-solaris*)
4141             # Extract the first word of "cc", so it can be a program name with args.
4142set dummy cc; ac_word=$2
4143echo "$as_me:$LINENO: checking for $ac_word" >&5
4144echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4145if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
4146  echo $ECHO_N "(cached) $ECHO_C" >&6
4147else
4148  if test -n "$sol_cc_compiler"; then
4149  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
4150else
4151  ac_prog_rejected=no
4152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4153for as_dir in $PATH
4154do
4155  IFS=$as_save_IFS
4156  test -z "$as_dir" && as_dir=.
4157  for ac_exec_ext in '' $ac_executable_extensions; do
4158  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4159    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4160       ac_prog_rejected=yes
4161       continue
4162     fi
4163    ac_cv_prog_sol_cc_compiler="cc"
4164    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4165    break 2
4166  fi
4167done
4168done
4169
4170if test $ac_prog_rejected = yes; then
4171  # We found a bogon in the path, so make sure we never use it.
4172  set dummy $ac_cv_prog_sol_cc_compiler
4173  shift
4174  if test $# != 0; then
4175    # We chose a different compiler from the bogus one.
4176    # However, it has the same basename, so the bogon will be chosen
4177    # first if we set sol_cc_compiler to just the basename; use the full file name.
4178    shift
4179    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
4180  fi
4181fi
4182fi
4183fi
4184sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
4185if test -n "$sol_cc_compiler"; then
4186  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
4187echo "${ECHO_T}$sol_cc_compiler" >&6
4188else
4189  echo "$as_me:$LINENO: result: no" >&5
4190echo "${ECHO_T}no" >&6
4191fi
4192
4193             if test "$sol_cc_compiler" = "cc" ; then
4194               comps="cc xlc gcc pgcc icc"
4195             else
4196               comps="xlc gcc pgcc icc cc"
4197             fi
4198             ;;
4199  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
4200  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
4201esac
4202
4203# We delete the cached value, since the test might not have been
4204# performed with our choice of compilers earlier
4205$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
4206# AC_MSG_NOTICE([C compiler candidates: $comps])
4207ac_ext=c
4208ac_cpp='$CPP $CPPFLAGS'
4209ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4210ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4211ac_compiler_gnu=$ac_cv_c_compiler_gnu
4212if test -n "$ac_tool_prefix"; then
4213  for ac_prog in $comps
4214  do
4215    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4216set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4217echo "$as_me:$LINENO: checking for $ac_word" >&5
4218echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4219if test "${ac_cv_prog_CC+set}" = set; then
4220  echo $ECHO_N "(cached) $ECHO_C" >&6
4221else
4222  if test -n "$CC"; then
4223  ac_cv_prog_CC="$CC" # Let the user override the test.
4224else
4225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4226for as_dir in $PATH
4227do
4228  IFS=$as_save_IFS
4229  test -z "$as_dir" && as_dir=.
4230  for ac_exec_ext in '' $ac_executable_extensions; do
4231  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4232    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4233    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4234    break 2
4235  fi
4236done
4237done
4238
4239fi
4240fi
4241CC=$ac_cv_prog_CC
4242if test -n "$CC"; then
4243  echo "$as_me:$LINENO: result: $CC" >&5
4244echo "${ECHO_T}$CC" >&6
4245else
4246  echo "$as_me:$LINENO: result: no" >&5
4247echo "${ECHO_T}no" >&6
4248fi
4249
4250    test -n "$CC" && break
4251  done
4252fi
4253if test -z "$CC"; then
4254  ac_ct_CC=$CC
4255  for ac_prog in $comps
4256do
4257  # Extract the first word of "$ac_prog", so it can be a program name with args.
4258set dummy $ac_prog; ac_word=$2
4259echo "$as_me:$LINENO: checking for $ac_word" >&5
4260echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4261if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4262  echo $ECHO_N "(cached) $ECHO_C" >&6
4263else
4264  if test -n "$ac_ct_CC"; then
4265  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4266else
4267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4268for as_dir in $PATH
4269do
4270  IFS=$as_save_IFS
4271  test -z "$as_dir" && as_dir=.
4272  for ac_exec_ext in '' $ac_executable_extensions; do
4273  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4274    ac_cv_prog_ac_ct_CC="$ac_prog"
4275    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4276    break 2
4277  fi
4278done
4279done
4280
4281fi
4282fi
4283ac_ct_CC=$ac_cv_prog_ac_ct_CC
4284if test -n "$ac_ct_CC"; then
4285  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4286echo "${ECHO_T}$ac_ct_CC" >&6
4287else
4288  echo "$as_me:$LINENO: result: no" >&5
4289echo "${ECHO_T}no" >&6
4290fi
4291
4292  test -n "$ac_ct_CC" && break
4293done
4294
4295  CC=$ac_ct_CC
4296fi
4297
4298
4299test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4300See \`config.log' for more details." >&5
4301echo "$as_me: error: no acceptable C compiler found in \$PATH
4302See \`config.log' for more details." >&2;}
4303   { (exit 1); exit 1; }; }
4304
4305# Provide some information about the compiler.
4306echo "$as_me:$LINENO:" \
4307     "checking for C compiler version" >&5
4308ac_compiler=`set X $ac_compile; echo $2`
4309{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4310  (eval $ac_compiler --version </dev/null >&5) 2>&5
4311  ac_status=$?
4312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313  (exit $ac_status); }
4314{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4315  (eval $ac_compiler -v </dev/null >&5) 2>&5
4316  ac_status=$?
4317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318  (exit $ac_status); }
4319{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4320  (eval $ac_compiler -V </dev/null >&5) 2>&5
4321  ac_status=$?
4322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323  (exit $ac_status); }
4324
4325echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4326echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4327if test "${ac_cv_c_compiler_gnu+set}" = set; then
4328  echo $ECHO_N "(cached) $ECHO_C" >&6
4329else
4330  cat >conftest.$ac_ext <<_ACEOF
4331/* confdefs.h.  */
4332_ACEOF
4333cat confdefs.h >>conftest.$ac_ext
4334cat >>conftest.$ac_ext <<_ACEOF
4335/* end confdefs.h.  */
4336
4337int
4338main ()
4339{
4340#ifndef __GNUC__
4341       choke me
4342#endif
4343
4344  ;
4345  return 0;
4346}
4347_ACEOF
4348rm -f conftest.$ac_objext
4349if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4350  (eval $ac_compile) 2>conftest.er1
4351  ac_status=$?
4352  grep -v '^ *+' conftest.er1 >conftest.err
4353  rm -f conftest.er1
4354  cat conftest.err >&5
4355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356  (exit $ac_status); } &&
4357         { ac_try='test -z "$ac_c_werror_flag"
4358                         || test ! -s conftest.err'
4359  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4360  (eval $ac_try) 2>&5
4361  ac_status=$?
4362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363  (exit $ac_status); }; } &&
4364         { ac_try='test -s conftest.$ac_objext'
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); }; }; then
4370  ac_compiler_gnu=yes
4371else
4372  echo "$as_me: failed program was:" >&5
4373sed 's/^/| /' conftest.$ac_ext >&5
4374
4375ac_compiler_gnu=no
4376fi
4377rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4378ac_cv_c_compiler_gnu=$ac_compiler_gnu
4379
4380fi
4381echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4382echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4383GCC=`test $ac_compiler_gnu = yes && echo yes`
4384ac_test_CFLAGS=${CFLAGS+set}
4385ac_save_CFLAGS=$CFLAGS
4386CFLAGS="-g"
4387echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4388echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4389if test "${ac_cv_prog_cc_g+set}" = set; then
4390  echo $ECHO_N "(cached) $ECHO_C" >&6
4391else
4392  cat >conftest.$ac_ext <<_ACEOF
4393/* confdefs.h.  */
4394_ACEOF
4395cat confdefs.h >>conftest.$ac_ext
4396cat >>conftest.$ac_ext <<_ACEOF
4397/* end confdefs.h.  */
4398
4399int
4400main ()
4401{
4402
4403  ;
4404  return 0;
4405}
4406_ACEOF
4407rm -f conftest.$ac_objext
4408if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4409  (eval $ac_compile) 2>conftest.er1
4410  ac_status=$?
4411  grep -v '^ *+' conftest.er1 >conftest.err
4412  rm -f conftest.er1
4413  cat conftest.err >&5
4414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415  (exit $ac_status); } &&
4416         { ac_try='test -z "$ac_c_werror_flag"
4417                         || test ! -s conftest.err'
4418  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4419  (eval $ac_try) 2>&5
4420  ac_status=$?
4421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422  (exit $ac_status); }; } &&
4423         { ac_try='test -s conftest.$ac_objext'
4424  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4425  (eval $ac_try) 2>&5
4426  ac_status=$?
4427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428  (exit $ac_status); }; }; then
4429  ac_cv_prog_cc_g=yes
4430else
4431  echo "$as_me: failed program was:" >&5
4432sed 's/^/| /' conftest.$ac_ext >&5
4433
4434ac_cv_prog_cc_g=no
4435fi
4436rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4437fi
4438echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4439echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4440if test "$ac_test_CFLAGS" = set; then
4441  CFLAGS=$ac_save_CFLAGS
4442elif test $ac_cv_prog_cc_g = yes; then
4443  if test "$GCC" = yes; then
4444    CFLAGS="-g -O2"
4445  else
4446    CFLAGS="-g"
4447  fi
4448else
4449  if test "$GCC" = yes; then
4450    CFLAGS="-O2"
4451  else
4452    CFLAGS=
4453  fi
4454fi
4455echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4456echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4457if test "${ac_cv_prog_cc_stdc+set}" = set; then
4458  echo $ECHO_N "(cached) $ECHO_C" >&6
4459else
4460  ac_cv_prog_cc_stdc=no
4461ac_save_CC=$CC
4462cat >conftest.$ac_ext <<_ACEOF
4463/* confdefs.h.  */
4464_ACEOF
4465cat confdefs.h >>conftest.$ac_ext
4466cat >>conftest.$ac_ext <<_ACEOF
4467/* end confdefs.h.  */
4468#include <stdarg.h>
4469#include <stdio.h>
4470#include <sys/types.h>
4471#include <sys/stat.h>
4472/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4473struct buf { int x; };
4474FILE * (*rcsopen) (struct buf *, struct stat *, int);
4475static char *e (p, i)
4476     char **p;
4477     int i;
4478{
4479  return p[i];
4480}
4481static char *f (char * (*g) (char **, int), char **p, ...)
4482{
4483  char *s;
4484  va_list v;
4485  va_start (v,p);
4486  s = g (p, va_arg (v,int));
4487  va_end (v);
4488  return s;
4489}
4490
4491/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4492   function prototypes and stuff, but not '\xHH' hex character constants.
4493   These don't provoke an error unfortunately, instead are silently treated
4494   as 'x'.  The following induces an error, until -std1 is added to get
4495   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4496   array size at least.  It's necessary to write '\x00'==0 to get something
4497   that's true only with -std1.  */
4498int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4499
4500int test (int i, double x);
4501struct s1 {int (*f) (int a);};
4502struct s2 {int (*f) (double a);};
4503int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4504int argc;
4505char **argv;
4506int
4507main ()
4508{
4509return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4510  ;
4511  return 0;
4512}
4513_ACEOF
4514# Don't try gcc -ansi; that turns off useful extensions and
4515# breaks some systems' header files.
4516# AIX                   -qlanglvl=ansi
4517# Ultrix and OSF/1      -std1
4518# HP-UX 10.20 and later -Ae
4519# HP-UX older versions  -Aa -D_HPUX_SOURCE
4520# SVR4                  -Xc -D__EXTENSIONS__
4521for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4522do
4523  CC="$ac_save_CC $ac_arg"
4524  rm -f conftest.$ac_objext
4525if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4526  (eval $ac_compile) 2>conftest.er1
4527  ac_status=$?
4528  grep -v '^ *+' conftest.er1 >conftest.err
4529  rm -f conftest.er1
4530  cat conftest.err >&5
4531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532  (exit $ac_status); } &&
4533         { ac_try='test -z "$ac_c_werror_flag"
4534                         || test ! -s conftest.err'
4535  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4536  (eval $ac_try) 2>&5
4537  ac_status=$?
4538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539  (exit $ac_status); }; } &&
4540         { ac_try='test -s conftest.$ac_objext'
4541  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4542  (eval $ac_try) 2>&5
4543  ac_status=$?
4544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545  (exit $ac_status); }; }; then
4546  ac_cv_prog_cc_stdc=$ac_arg
4547break
4548else
4549  echo "$as_me: failed program was:" >&5
4550sed 's/^/| /' conftest.$ac_ext >&5
4551
4552fi
4553rm -f conftest.err conftest.$ac_objext
4554done
4555rm -f conftest.$ac_ext conftest.$ac_objext
4556CC=$ac_save_CC
4557
4558fi
4559
4560case "x$ac_cv_prog_cc_stdc" in
4561  x|xno)
4562    echo "$as_me:$LINENO: result: none needed" >&5
4563echo "${ECHO_T}none needed" >&6 ;;
4564  *)
4565    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4566echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4567    CC="$CC $ac_cv_prog_cc_stdc" ;;
4568esac
4569
4570# Some people use a C++ compiler to compile C.  Since we use `exit',
4571# in C++ we need to declare it.  In case someone uses the same compiler
4572# for both compiling C and C++ we need to have the C++ compiler decide
4573# the declaration of exit, since it's the most demanding environment.
4574cat >conftest.$ac_ext <<_ACEOF
4575#ifndef __cplusplus
4576  choke me
4577#endif
4578_ACEOF
4579rm -f conftest.$ac_objext
4580if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4581  (eval $ac_compile) 2>conftest.er1
4582  ac_status=$?
4583  grep -v '^ *+' conftest.er1 >conftest.err
4584  rm -f conftest.er1
4585  cat conftest.err >&5
4586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587  (exit $ac_status); } &&
4588         { ac_try='test -z "$ac_c_werror_flag"
4589                         || test ! -s conftest.err'
4590  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4591  (eval $ac_try) 2>&5
4592  ac_status=$?
4593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594  (exit $ac_status); }; } &&
4595         { ac_try='test -s conftest.$ac_objext'
4596  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4597  (eval $ac_try) 2>&5
4598  ac_status=$?
4599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600  (exit $ac_status); }; }; then
4601  for ac_declaration in \
4602   '' \
4603   'extern "C" void std::exit (int) throw (); using std::exit;' \
4604   'extern "C" void std::exit (int); using std::exit;' \
4605   'extern "C" void exit (int) throw ();' \
4606   'extern "C" void exit (int);' \
4607   'void exit (int);'
4608do
4609  cat >conftest.$ac_ext <<_ACEOF
4610/* confdefs.h.  */
4611_ACEOF
4612cat confdefs.h >>conftest.$ac_ext
4613cat >>conftest.$ac_ext <<_ACEOF
4614/* end confdefs.h.  */
4615$ac_declaration
4616#include <stdlib.h>
4617int
4618main ()
4619{
4620exit (42);
4621  ;
4622  return 0;
4623}
4624_ACEOF
4625rm -f conftest.$ac_objext
4626if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4627  (eval $ac_compile) 2>conftest.er1
4628  ac_status=$?
4629  grep -v '^ *+' conftest.er1 >conftest.err
4630  rm -f conftest.er1
4631  cat conftest.err >&5
4632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4633  (exit $ac_status); } &&
4634         { ac_try='test -z "$ac_c_werror_flag"
4635                         || test ! -s conftest.err'
4636  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4637  (eval $ac_try) 2>&5
4638  ac_status=$?
4639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4640  (exit $ac_status); }; } &&
4641         { ac_try='test -s conftest.$ac_objext'
4642  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4643  (eval $ac_try) 2>&5
4644  ac_status=$?
4645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646  (exit $ac_status); }; }; then
4647  :
4648else
4649  echo "$as_me: failed program was:" >&5
4650sed 's/^/| /' conftest.$ac_ext >&5
4651
4652continue
4653fi
4654rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4655  cat >conftest.$ac_ext <<_ACEOF
4656/* confdefs.h.  */
4657_ACEOF
4658cat confdefs.h >>conftest.$ac_ext
4659cat >>conftest.$ac_ext <<_ACEOF
4660/* end confdefs.h.  */
4661$ac_declaration
4662int
4663main ()
4664{
4665exit (42);
4666  ;
4667  return 0;
4668}
4669_ACEOF
4670rm -f conftest.$ac_objext
4671if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4672  (eval $ac_compile) 2>conftest.er1
4673  ac_status=$?
4674  grep -v '^ *+' conftest.er1 >conftest.err
4675  rm -f conftest.er1
4676  cat conftest.err >&5
4677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4678  (exit $ac_status); } &&
4679         { ac_try='test -z "$ac_c_werror_flag"
4680                         || test ! -s conftest.err'
4681  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4682  (eval $ac_try) 2>&5
4683  ac_status=$?
4684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685  (exit $ac_status); }; } &&
4686         { ac_try='test -s conftest.$ac_objext'
4687  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4688  (eval $ac_try) 2>&5
4689  ac_status=$?
4690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691  (exit $ac_status); }; }; then
4692  break
4693else
4694  echo "$as_me: failed program was:" >&5
4695sed 's/^/| /' conftest.$ac_ext >&5
4696
4697fi
4698rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4699done
4700rm -f conftest*
4701if test -n "$ac_declaration"; then
4702  echo '#ifdef __cplusplus' >>confdefs.h
4703  echo $ac_declaration      >>confdefs.h
4704  echo '#endif'             >>confdefs.h
4705fi
4706
4707else
4708  echo "$as_me: failed program was:" >&5
4709sed 's/^/| /' conftest.$ac_ext >&5
4710
4711fi
4712rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4713ac_ext=c
4714ac_cpp='$CPP $CPPFLAGS'
4715ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4716ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4717ac_compiler_gnu=$ac_cv_c_compiler_gnu
4718
4719if test -z "$CC" ; then
4720  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
4721echo "$as_me: error: Failed to find a C compiler!" >&2;}
4722   { (exit 1); exit 1; }; }
4723fi
4724# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
4725case "$CC" in
4726  cl* | */cl* | CL* | */CL* )
4727    if test "$ac_cv_prog_cc_g" = yes ; then
4728      ac_cv_prog_cc_g=no
4729      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
4730echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
4731    fi ;;
4732esac
4733CFLAGS="$save_cflags"
4734
4735# Check if a project specific CFLAGS variable has been set
4736if test x$COIN_PRJCT != x; then
4737  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
4738  if test x$coin_tmp = xset; then
4739    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
4740  fi
4741fi
4742
4743if test x"$CFLAGS" = x; then
4744
4745  coin_add_cflags=
4746  coin_opt_cflags=
4747  coin_dbg_cflags=
4748  coin_warn_cflags=
4749
4750  if test "$GCC" = "yes"; then
4751    case "$CC" in
4752      icc* | */icc*)
4753        ;;
4754      *)
4755        coin_opt_cflags="-O3 -fomit-frame-pointer"
4756        coin_add_cflags="-pipe"
4757        coin_dbg_cflags="-g"
4758        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas"
4759        case $build in
4760          *-darwin*)
4761            ;;
4762          *)
4763            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
4764            ;;
4765        esac
4766        case $enable_doscompile in
4767          mingw)
4768            CFLAGS="-mno-cygwin"
4769            cat >conftest.$ac_ext <<_ACEOF
4770/* confdefs.h.  */
4771_ACEOF
4772cat confdefs.h >>conftest.$ac_ext
4773cat >>conftest.$ac_ext <<_ACEOF
4774/* end confdefs.h.  */
4775
4776int
4777main ()
4778{
4779int i=0; i++;
4780  ;
4781  return 0;
4782}
4783_ACEOF
4784rm -f conftest.$ac_objext conftest$ac_exeext
4785if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4786  (eval $ac_link) 2>conftest.er1
4787  ac_status=$?
4788  grep -v '^ *+' conftest.er1 >conftest.err
4789  rm -f conftest.er1
4790  cat conftest.err >&5
4791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792  (exit $ac_status); } &&
4793         { ac_try='test -z "$ac_c_werror_flag"
4794                         || test ! -s conftest.err'
4795  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4796  (eval $ac_try) 2>&5
4797  ac_status=$?
4798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799  (exit $ac_status); }; } &&
4800         { ac_try='test -s conftest$ac_exeext'
4801  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4802  (eval $ac_try) 2>&5
4803  ac_status=$?
4804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4805  (exit $ac_status); }; }; then
4806  coin_add_cflags="-mno-cygwin $coin_add_cflags"
4807else
4808  echo "$as_me: failed program was:" >&5
4809sed 's/^/| /' conftest.$ac_ext >&5
4810
4811fi
4812rm -f conftest.err conftest.$ac_objext \
4813      conftest$ac_exeext conftest.$ac_ext
4814            CFLAGS=
4815          ;;
4816        esac
4817    esac
4818  fi
4819  if test -z "$coin_opt_cflags"; then
4820    case $build in
4821      *-cygwin* | *-mingw*)
4822        case "$CC" in
4823          cl* | */cl* | CL* | */CL*)
4824            coin_opt_cflags='-MT -O2'
4825            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
4826            coin_dbg_cflags='-MTd'
4827            ;;
4828          icl* | */icl* | ICL* | */ICL*)
4829            coin_opt_cflags='-MT -Ox'
4830            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
4831            coin_dbg_cflags='-MTd -debug'
4832            ;;
4833        esac
4834        ;;
4835      *-linux-*)
4836        case "$CC" in
4837          icc* | */icc*)
4838            coin_opt_cflags="-O3 -ip -mp1"
4839            coin_add_cflags=""
4840            coin_dbg_cflags="-g"
4841            # Check if -i_dynamic is necessary (for new glibc library)
4842            CFLAGS=
4843            cat >conftest.$ac_ext <<_ACEOF
4844/* confdefs.h.  */
4845_ACEOF
4846cat confdefs.h >>conftest.$ac_ext
4847cat >>conftest.$ac_ext <<_ACEOF
4848/* end confdefs.h.  */
4849
4850int
4851main ()
4852{
4853int i=0; i++;
4854  ;
4855  return 0;
4856}
4857_ACEOF
4858rm -f conftest.$ac_objext conftest$ac_exeext
4859if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4860  (eval $ac_link) 2>conftest.er1
4861  ac_status=$?
4862  grep -v '^ *+' conftest.er1 >conftest.err
4863  rm -f conftest.er1
4864  cat conftest.err >&5
4865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866  (exit $ac_status); } &&
4867         { ac_try='test -z "$ac_c_werror_flag"
4868                         || test ! -s conftest.err'
4869  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4870  (eval $ac_try) 2>&5
4871  ac_status=$?
4872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873  (exit $ac_status); }; } &&
4874         { ac_try='test -s conftest$ac_exeext'
4875  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4876  (eval $ac_try) 2>&5
4877  ac_status=$?
4878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879  (exit $ac_status); }; }; then
4880  :
4881else
4882  echo "$as_me: failed program was:" >&5
4883sed 's/^/| /' conftest.$ac_ext >&5
4884
4885coin_add_cflags="-i_dynamic $coin_add_cflags"
4886fi
4887rm -f conftest.err conftest.$ac_objext \
4888      conftest$ac_exeext conftest.$ac_ext
4889            ;;
4890          pgcc* | */pgcc*)
4891            coin_opt_cflags="-fast"
4892            coin_add_cflags="-Kieee -pc 64"
4893            coin_dbg_cflags="-g"
4894            ;;
4895        esac
4896        ;;
4897      *-ibm-*)
4898        case "$CC" in
4899          xlc* | */xlc* | mpxlc* | */mpxlc*)
4900            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
4901            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
4902            coin_dbg_cflags="-g"
4903          ;;
4904        esac
4905        ;;
4906      *-hp-*)
4907        coin_opt_cflags="-O"
4908        coin_add_cflags="-Ae"
4909        coin_dbg_cflags="-g"
4910        ;;
4911      *-*-solaris*)
4912        coin_opt_cflags="-xO4"
4913        coin_dbg_cflags="-g"
4914        ;;
4915      *-sgi-*)
4916        coin_opt_cflags="-O -OPT:Olimit=0"
4917        coin_dbg_cflags="-g"
4918        ;;
4919    esac
4920  fi
4921
4922  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
4923    coin_dbg_cflags="-g"
4924  fi
4925
4926  if test -z "$coin_opt_cflags"; then
4927    # Try if -O option works if nothing else is set
4928    CFLAGS="-O"
4929    cat >conftest.$ac_ext <<_ACEOF
4930/* confdefs.h.  */
4931_ACEOF
4932cat confdefs.h >>conftest.$ac_ext
4933cat >>conftest.$ac_ext <<_ACEOF
4934/* end confdefs.h.  */
4935
4936int
4937main ()
4938{
4939int i=0; i++;
4940  ;
4941  return 0;
4942}
4943_ACEOF
4944rm -f conftest.$ac_objext conftest$ac_exeext
4945if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4946  (eval $ac_link) 2>conftest.er1
4947  ac_status=$?
4948  grep -v '^ *+' conftest.er1 >conftest.err
4949  rm -f conftest.er1
4950  cat conftest.err >&5
4951  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4952  (exit $ac_status); } &&
4953         { ac_try='test -z "$ac_c_werror_flag"
4954                         || test ! -s conftest.err'
4955  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4956  (eval $ac_try) 2>&5
4957  ac_status=$?
4958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959  (exit $ac_status); }; } &&
4960         { ac_try='test -s conftest$ac_exeext'
4961  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4962  (eval $ac_try) 2>&5
4963  ac_status=$?
4964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965  (exit $ac_status); }; }; then
4966  coin_opt_cflags="-O"
4967else
4968  echo "$as_me: failed program was:" >&5
4969sed 's/^/| /' conftest.$ac_ext >&5
4970
4971fi
4972rm -f conftest.err conftest.$ac_objext \
4973      conftest$ac_exeext conftest.$ac_ext
4974  fi
4975
4976  # if PM doesn't want the warning messages, take them out
4977  if test x"$coin_skip_warn_cflags" = xyes; then
4978    coin_warn_cflags=
4979  fi
4980
4981  if test x${DBG_CFLAGS+set} != xset; then
4982    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
4983  fi
4984  if test x${OPT_CFLAGS+set} != xset; then
4985    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
4986  fi
4987
4988  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
4989  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
4990
4991  if test "$coin_debug_compile" = "true"; then
4992    CFLAGS="$DBG_CFLAGS"
4993  else
4994    CFLAGS="$OPT_CFLAGS"
4995  fi
4996else
4997  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
4998  if test x${DBG_CFLAGS+set} != xset; then
4999    DBG_CFLAGS="$CFLAGS"
5000  fi
5001  if test x${OPT_CFLAGS+set} != xset; then
5002    OPT_CFLAGS="$CFLAGS"
5003  fi
5004fi
5005
5006# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
5007
5008case "$CFLAGS" in
5009  *-mno-cygwin*)
5010    if test x${CPPFLAGS+set} != xset ; then
5011      CPPFLAGS="-mno-cygwin"
5012    else
5013      case "$CPPFLAGS" in
5014        *-mno-cygwin*)
5015          ;;
5016        *)
5017          CPPFLAGS="$CPPFLAGS -mno-cygwin"
5018          ;;
5019      esac
5020    fi ;;
5021esac
5022
5023# Try if CFLAGS works
5024save_CFLAGS="$CFLAGS"
5025cat >conftest.$ac_ext <<_ACEOF
5026/* confdefs.h.  */
5027_ACEOF
5028cat confdefs.h >>conftest.$ac_ext
5029cat >>conftest.$ac_ext <<_ACEOF
5030/* end confdefs.h.  */
5031
5032int
5033main ()
5034{
5035int i=0; i++;
5036  ;
5037  return 0;
5038}
5039_ACEOF
5040rm -f conftest.$ac_objext conftest$ac_exeext
5041if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5042  (eval $ac_link) 2>conftest.er1
5043  ac_status=$?
5044  grep -v '^ *+' conftest.er1 >conftest.err
5045  rm -f conftest.er1
5046  cat conftest.err >&5
5047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048  (exit $ac_status); } &&
5049         { ac_try='test -z "$ac_c_werror_flag"
5050                         || test ! -s conftest.err'
5051  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5052  (eval $ac_try) 2>&5
5053  ac_status=$?
5054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055  (exit $ac_status); }; } &&
5056         { ac_try='test -s conftest$ac_exeext'
5057  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5058  (eval $ac_try) 2>&5
5059  ac_status=$?
5060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061  (exit $ac_status); }; }; then
5062  :
5063else
5064  echo "$as_me: failed program was:" >&5
5065sed 's/^/| /' conftest.$ac_ext >&5
5066
5067CFLAGS=
5068fi
5069rm -f conftest.err conftest.$ac_objext \
5070      conftest$ac_exeext conftest.$ac_ext
5071if test -z "$CFLAGS"; then
5072  { 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
5073echo "$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;}
5074  CFLAGS='-O'
5075  cat >conftest.$ac_ext <<_ACEOF
5076/* confdefs.h.  */
5077_ACEOF
5078cat confdefs.h >>conftest.$ac_ext
5079cat >>conftest.$ac_ext <<_ACEOF
5080/* end confdefs.h.  */
5081
5082int
5083main ()
5084{
5085int i=0; i++;
5086  ;
5087  return 0;
5088}
5089_ACEOF
5090rm -f conftest.$ac_objext conftest$ac_exeext
5091if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5092  (eval $ac_link) 2>conftest.er1
5093  ac_status=$?
5094  grep -v '^ *+' conftest.er1 >conftest.err
5095  rm -f conftest.er1
5096  cat conftest.err >&5
5097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098  (exit $ac_status); } &&
5099         { ac_try='test -z "$ac_c_werror_flag"
5100                         || test ! -s conftest.err'
5101  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5102  (eval $ac_try) 2>&5
5103  ac_status=$?
5104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105  (exit $ac_status); }; } &&
5106         { ac_try='test -s conftest$ac_exeext'
5107  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5108  (eval $ac_try) 2>&5
5109  ac_status=$?
5110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5111  (exit $ac_status); }; }; then
5112  :
5113else
5114  echo "$as_me: failed program was:" >&5
5115sed 's/^/| /' conftest.$ac_ext >&5
5116
5117CFLAGS=
5118fi
5119rm -f conftest.err conftest.$ac_objext \
5120      conftest$ac_exeext conftest.$ac_ext
5121  if test -z "$CFLAGS"; then
5122    { 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
5123echo "$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;}
5124  fi
5125fi
5126
5127{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
5128echo "$as_me: C compiler options are: $CFLAGS" >&6;}
5129
5130
5131if test x"$MPICC" = x; then :; else
5132  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
5133echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
5134  CC="$MPICC"
5135fi
5136
5137# Correct ADDLIBS initialization if we are using the MS compiler
5138case "$CC" in
5139  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
5140    ADDLIBS=
5141    case $build in
5142  *-mingw*)
5143    if test "${LD+set}" = set; then :; else
5144      LD=link
5145    fi
5146    ;;
5147 esac
5148 case $enable_doscompile in
5149   msvc)
5150     if test "x${LD+set}" = xset; then :; else
5151       LD=link
5152     fi
5153     ;;
5154 esac
5155
5156    ;;
5157esac
5158
5159ac_ext=c
5160ac_cpp='$CPP $CPPFLAGS'
5161ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5162ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5163ac_compiler_gnu=$ac_cv_c_compiler_gnu
5164
5165
5166
5167# Initialize automake and libtool
5168{
5169
5170
5171
5172# START
5173
5174# Test if force_shared has been set
5175if test "x" = xforce_shared; then
5176  if test x$enable_shared = xno; then
5177    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
5178echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
5179   { (exit 1); exit 1; }; }
5180  fi
5181  enable_shared=yes;
5182else
5183  # On Cygwin and AIX, building DLLs doesn't work
5184  case $build in
5185    *-cygwin*)
5186      coin_disable_shared=yes
5187      platform=Cygwin
5188    ;;
5189    *-aix*)
5190      coin_disable_shared=yes
5191      platform=AIX
5192    ;;
5193    *-mingw*)
5194      coin_disable_shared=yes
5195      platform="Msys"
5196#      case "$CXX" in
5197#        cl*)
5198#          coin_disable_shared=yes
5199#          platform="Msys with cl"
5200#      ;;
5201#      esac
5202    ;;
5203  esac
5204fi
5205if test x"$coin_disable_shared" = xyes; then
5206  if test x"$enable_shared" = xyes; then
5207    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
5208echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
5209  fi
5210  enable_shared=no
5211fi
5212# By default, we only want the shared objects to be compiled
5213# Check whether --enable-static or --disable-static was given.
5214if test "${enable_static+set}" = set; then
5215  enableval="$enable_static"
5216  p=${PACKAGE-default}
5217    case $enableval in
5218    yes) enable_static=yes ;;
5219    no) enable_static=no ;;
5220    *)
5221     enable_static=no
5222      # Look at the argument we got.  We use all the common list separators.
5223      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5224      for pkg in $enableval; do
5225        IFS="$lt_save_ifs"
5226        if test "X$pkg" = "X$p"; then
5227          enable_static=yes
5228        fi
5229      done
5230      IFS="$lt_save_ifs"
5231      ;;
5232    esac
5233else
5234  enable_static=no
5235fi;
5236
5237
5238
5239
5240# Initialize automake
5241echo "$as_me:$LINENO: checking for egrep" >&5
5242echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5243if test "${ac_cv_prog_egrep+set}" = set; then
5244  echo $ECHO_N "(cached) $ECHO_C" >&6
5245else
5246  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5247    then ac_cv_prog_egrep='grep -E'
5248    else ac_cv_prog_egrep='egrep'
5249    fi
5250fi
5251echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5252echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5253 EGREP=$ac_cv_prog_egrep
5254
5255
5256am__api_version="1.9"
5257# Find a good install program.  We prefer a C program (faster),
5258# so one script is as good as another.  But avoid the broken or
5259# incompatible versions:
5260# SysV /etc/install, /usr/sbin/install
5261# SunOS /usr/etc/install
5262# IRIX /sbin/install
5263# AIX /bin/install
5264# AmigaOS /C/install, which installs bootblocks on floppy discs
5265# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5266# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5267# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5268# OS/2's system install, which has a completely different semantic
5269# ./install, which can be erroneously created by make from ./install.sh.
5270echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5271echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5272if test -z "$INSTALL"; then
5273if test "${ac_cv_path_install+set}" = set; then
5274  echo $ECHO_N "(cached) $ECHO_C" >&6
5275else
5276  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5277for as_dir in $PATH
5278do
5279  IFS=$as_save_IFS
5280  test -z "$as_dir" && as_dir=.
5281  # Account for people who put trailing slashes in PATH elements.
5282case $as_dir/ in
5283  ./ | .// | /cC/* | \
5284  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5285  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5286  /usr/ucb/* ) ;;
5287  *)
5288    # OSF1 and SCO ODT 3.0 have their own names for install.
5289    # Don't use installbsd from OSF since it installs stuff as root
5290    # by default.
5291    for ac_prog in ginstall scoinst install; do
5292      for ac_exec_ext in '' $ac_executable_extensions; do
5293        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5294          if test $ac_prog = install &&
5295            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5296            # AIX install.  It has an incompatible calling convention.
5297            :
5298          elif test $ac_prog = install &&
5299            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5300            # program-specific install script used by HP pwplus--don't use.
5301            :
5302          else
5303            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5304            break 3
5305          fi
5306        fi
5307      done
5308    done
5309    ;;
5310esac
5311done
5312
5313
5314fi
5315  if test "${ac_cv_path_install+set}" = set; then
5316    INSTALL=$ac_cv_path_install
5317  else
5318    # As a last resort, use the slow shell script.  We don't cache a
5319    # path for INSTALL within a source directory, because that will
5320    # break other packages using the cache if that directory is
5321    # removed, or if the path is relative.
5322    INSTALL=$ac_install_sh
5323  fi
5324fi
5325echo "$as_me:$LINENO: result: $INSTALL" >&5
5326echo "${ECHO_T}$INSTALL" >&6
5327
5328# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5329# It thinks the first close brace ends the variable substitution.
5330test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5331
5332test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5333
5334test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5335
5336echo "$as_me:$LINENO: checking whether build environment is sane" >&5
5337echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
5338# Just in case
5339sleep 1
5340echo timestamp > conftest.file
5341# Do `set' in a subshell so we don't clobber the current shell's
5342# arguments.  Must try -L first in case configure is actually a
5343# symlink; some systems play weird games with the mod time of symlinks
5344# (eg FreeBSD returns the mod time of the symlink's containing
5345# directory).
5346if (
5347   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
5348   if test "$*" = "X"; then
5349      # -L didn't work.
5350      set X `ls -t $srcdir/configure conftest.file`
5351   fi
5352   rm -f conftest.file
5353   if test "$*" != "X $srcdir/configure conftest.file" \
5354      && test "$*" != "X conftest.file $srcdir/configure"; then
5355
5356      # If neither matched, then we have a broken ls.  This can happen
5357      # if, for instance, CONFIG_SHELL is bash and it inherits a
5358      # broken ls alias from the environment.  This has actually
5359      # happened.  Such a system could not be considered "sane".
5360      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
5361alias in your environment" >&5
5362echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
5363alias in your environment" >&2;}
5364   { (exit 1); exit 1; }; }
5365   fi
5366
5367   test "$2" = conftest.file
5368   )
5369then
5370   # Ok.
5371   :
5372else
5373   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
5374Check your system clock" >&5
5375echo "$as_me: error: newly created file is older than distributed files!
5376Check your system clock" >&2;}
5377   { (exit 1); exit 1; }; }
5378fi
5379echo "$as_me:$LINENO: result: yes" >&5
5380echo "${ECHO_T}yes" >&6
5381test "$program_prefix" != NONE &&
5382  program_transform_name="s,^,$program_prefix,;$program_transform_name"
5383# Use a double $ so make ignores it.
5384test "$program_suffix" != NONE &&
5385  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
5386# Double any \ or $.  echo might interpret backslashes.
5387# By default was `s,x,x', remove it if useless.
5388cat <<\_ACEOF >conftest.sed
5389s/[\\$]/&&/g;s/;s,x,x,$//
5390_ACEOF
5391program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
5392rm conftest.sed
5393
5394# expand $ac_aux_dir to an absolute path
5395am_aux_dir=`cd $ac_aux_dir && pwd`
5396
5397test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
5398# Use eval to expand $SHELL
5399if eval "$MISSING --run true"; then
5400  am_missing_run="$MISSING --run "
5401else
5402  am_missing_run=
5403  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
5404echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5405fi
5406
5407if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
5408  # We used to keeping the `.' as first argument, in order to
5409  # allow $(mkdir_p) to be used without argument.  As in
5410  #   $(mkdir_p) $(somedir)
5411  # where $(somedir) is conditionally defined.  However this is wrong
5412  # for two reasons:
5413  #  1. if the package is installed by a user who cannot write `.'
5414  #     make install will fail,
5415  #  2. the above comment should most certainly read
5416  #     $(mkdir_p) $(DESTDIR)$(somedir)
5417  #     so it does not work when $(somedir) is undefined and
5418  #     $(DESTDIR) is not.
5419  #  To support the latter case, we have to write
5420  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
5421  #  so the `.' trick is pointless.
5422  mkdir_p='mkdir -p --'
5423else
5424  # On NextStep and OpenStep, the `mkdir' command does not
5425  # recognize any option.  It will interpret all options as
5426  # directories to create, and then abort because `.' already
5427  # exists.
5428  for d in ./-p ./--version;
5429  do
5430    test -d $d && rmdir $d
5431  done
5432  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
5433  if test -f "$ac_aux_dir/mkinstalldirs"; then
5434    mkdir_p='$(mkinstalldirs)'
5435  else
5436    mkdir_p='$(install_sh) -d'
5437  fi
5438fi
5439
5440for ac_prog in gawk mawk nawk awk
5441do
5442  # Extract the first word of "$ac_prog", so it can be a program name with args.
5443set dummy $ac_prog; ac_word=$2
5444echo "$as_me:$LINENO: checking for $ac_word" >&5
5445echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5446if test "${ac_cv_prog_AWK+set}" = set; then
5447  echo $ECHO_N "(cached) $ECHO_C" >&6
5448else
5449  if test -n "$AWK"; then
5450  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5451else
5452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5453for as_dir in $PATH
5454do
5455  IFS=$as_save_IFS
5456  test -z "$as_dir" && as_dir=.
5457  for ac_exec_ext in '' $ac_executable_extensions; do
5458  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5459    ac_cv_prog_AWK="$ac_prog"
5460    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5461    break 2
5462  fi
5463done
5464done
5465
5466fi
5467fi
5468AWK=$ac_cv_prog_AWK
5469if test -n "$AWK"; then
5470  echo "$as_me:$LINENO: result: $AWK" >&5
5471echo "${ECHO_T}$AWK" >&6
5472else
5473  echo "$as_me:$LINENO: result: no" >&5
5474echo "${ECHO_T}no" >&6
5475fi
5476
5477  test -n "$AWK" && break
5478done
5479
5480echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5481echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5482set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5483if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5484  echo $ECHO_N "(cached) $ECHO_C" >&6
5485else
5486  cat >conftest.make <<\_ACEOF
5487all:
5488        @echo 'ac_maketemp="$(MAKE)"'
5489_ACEOF
5490# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5491eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5492if test -n "$ac_maketemp"; then
5493  eval ac_cv_prog_make_${ac_make}_set=yes
5494else
5495  eval ac_cv_prog_make_${ac_make}_set=no
5496fi
5497rm -f conftest.make
5498fi
5499if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5500  echo "$as_me:$LINENO: result: yes" >&5
5501echo "${ECHO_T}yes" >&6
5502  SET_MAKE=
5503else
5504  echo "$as_me:$LINENO: result: no" >&5
5505echo "${ECHO_T}no" >&6
5506  SET_MAKE="MAKE=${MAKE-make}"
5507fi
5508
5509rm -rf .tst 2>/dev/null
5510mkdir .tst 2>/dev/null
5511if test -d .tst; then
5512  am__leading_dot=.
5513else
5514  am__leading_dot=_
5515fi
5516rmdir .tst 2>/dev/null
5517
5518DEPDIR="${am__leading_dot}deps"
5519
5520          ac_config_commands="$ac_config_commands depfiles"
5521
5522
5523am_make=${MAKE-make}
5524cat > confinc << 'END'
5525am__doit:
5526        @echo done
5527.PHONY: am__doit
5528END
5529# If we don't find an include directive, just comment out the code.
5530echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
5531echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
5532am__include="#"
5533am__quote=
5534_am_result=none
5535# First try GNU make style include.
5536echo "include confinc" > confmf
5537# We grep out `Entering directory' and `Leaving directory'
5538# messages which can occur if `w' ends up in MAKEFLAGS.
5539# In particular we don't look at `^make:' because GNU make might
5540# be invoked under some other name (usually "gmake"), in which
5541# case it prints its new name instead of `make'.
5542if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5543   am__include=include
5544   am__quote=
5545   _am_result=GNU
5546fi
5547# Now try BSD make style include.
5548if test "$am__include" = "#"; then
5549   echo '.include "confinc"' > confmf
5550   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5551      am__include=.include
5552      am__quote="\""
5553      _am_result=BSD
5554   fi
5555fi
5556
5557
5558echo "$as_me:$LINENO: result: $_am_result" >&5
5559echo "${ECHO_T}$_am_result" >&6
5560rm -f confinc confmf
5561
5562# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
5563if test "${enable_dependency_tracking+set}" = set; then
5564  enableval="$enable_dependency_tracking"
5565
5566fi;
5567if test "x$enable_dependency_tracking" != xno; then
5568  am_depcomp="$ac_aux_dir/depcomp"
5569  AMDEPBACKSLASH='\'
5570fi
5571
5572
5573if test "x$enable_dependency_tracking" != xno; then
5574  AMDEP_TRUE=
5575  AMDEP_FALSE='#'
5576else
5577  AMDEP_TRUE='#'
5578  AMDEP_FALSE=
5579fi
5580
5581
5582
5583
5584
5585# AC_MSG_NOTICE([Beginning automake initialisation.])
5586# Stuff for automake
5587# test to see if srcdir already configured
5588if test "`cd $srcdir && pwd`" != "`pwd`" &&
5589   test -f $srcdir/config.status; then
5590  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5591echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5592   { (exit 1); exit 1; }; }
5593fi
5594
5595# test whether we have cygpath
5596if test -z "$CYGPATH_W"; then
5597  if (cygpath --version) >/dev/null 2>/dev/null; then
5598    CYGPATH_W='cygpath -w'
5599  else
5600    CYGPATH_W=echo
5601  fi
5602fi
5603
5604
5605# Define the identity of the package.
5606 PACKAGE='couenne'
5607 VERSION='0.2stable'
5608
5609
5610cat >>confdefs.h <<_ACEOF
5611#define PACKAGE "$PACKAGE"
5612_ACEOF
5613
5614
5615cat >>confdefs.h <<_ACEOF
5616#define VERSION "$VERSION"
5617_ACEOF
5618
5619# Some tools Automake needs.
5620
5621ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5622
5623
5624AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5625
5626
5627AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5628
5629
5630AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5631
5632
5633MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5634
5635install_sh=${install_sh-"$am_aux_dir/install-sh"}
5636
5637# Installed binaries are usually stripped using `strip' when the user
5638# run `make install-strip'.  However `strip' might not be the right
5639# tool to use in cross-compilation environments, therefore Automake
5640# will honor the `STRIP' environment variable to overrule this program.
5641if test "$cross_compiling" != no; then
5642  if test -n "$ac_tool_prefix"; then
5643  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5644set dummy ${ac_tool_prefix}strip; ac_word=$2
5645echo "$as_me:$LINENO: checking for $ac_word" >&5
5646echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5647if test "${ac_cv_prog_STRIP+set}" = set; then
5648  echo $ECHO_N "(cached) $ECHO_C" >&6
5649else
5650  if test -n "$STRIP"; then
5651  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5652else
5653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5654for as_dir in $PATH
5655do
5656  IFS=$as_save_IFS
5657  test -z "$as_dir" && as_dir=.
5658  for ac_exec_ext in '' $ac_executable_extensions; do
5659  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5660    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5661    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5662    break 2
5663  fi
5664done
5665done
5666
5667fi
5668fi
5669STRIP=$ac_cv_prog_STRIP
5670if test -n "$STRIP"; then
5671  echo "$as_me:$LINENO: result: $STRIP" >&5
5672echo "${ECHO_T}$STRIP" >&6
5673else
5674  echo "$as_me:$LINENO: result: no" >&5
5675echo "${ECHO_T}no" >&6
5676fi
5677
5678fi
5679if test -z "$ac_cv_prog_STRIP"; then
5680  ac_ct_STRIP=$STRIP
5681  # Extract the first word of "strip", so it can be a program name with args.
5682set dummy strip; ac_word=$2
5683echo "$as_me:$LINENO: checking for $ac_word" >&5
5684echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5685if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5686  echo $ECHO_N "(cached) $ECHO_C" >&6
5687else
5688  if test -n "$ac_ct_STRIP"; then
5689  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5690else
5691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5692for as_dir in $PATH
5693do
5694  IFS=$as_save_IFS
5695  test -z "$as_dir" && as_dir=.
5696  for ac_exec_ext in '' $ac_executable_extensions; do
5697  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5698    ac_cv_prog_ac_ct_STRIP="strip"
5699    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5700    break 2
5701  fi
5702done
5703done
5704
5705  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5706fi
5707fi
5708ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5709if test -n "$ac_ct_STRIP"; then
5710  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5711echo "${ECHO_T}$ac_ct_STRIP" >&6
5712else
5713  echo "$as_me:$LINENO: result: no" >&5
5714echo "${ECHO_T}no" >&6
5715fi
5716
5717  STRIP=$ac_ct_STRIP
5718else
5719  STRIP="$ac_cv_prog_STRIP"
5720fi
5721
5722fi
5723INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
5724
5725# We need awk for the "check" target.  The system "awk" is bad on
5726# some platforms.
5727# Always define AMTAR for backward compatibility.
5728
5729AMTAR=${AMTAR-"${am_missing_run}tar"}
5730
5731am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5732
5733
5734
5735
5736depcc="$CC"   am_compiler_list=
5737
5738echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5739echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5740if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5741  echo $ECHO_N "(cached) $ECHO_C" >&6
5742else
5743  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5744  # We make a subdir and do the tests there.  Otherwise we can end up
5745  # making bogus files that we don't know about and never remove.  For
5746  # instance it was reported that on HP-UX the gcc test will end up
5747  # making a dummy file named `D' -- because `-MD' means `put the output
5748  # in D'.
5749  mkdir conftest.dir
5750  # Copy depcomp to subdir because otherwise we won't find it if we're
5751  # using a relative directory.
5752  cp "$am_depcomp" conftest.dir
5753  cd conftest.dir
5754  # We will build objects and dependencies in a subdirectory because
5755  # it helps to detect inapplicable dependency modes.  For instance
5756  # both Tru64's cc and ICC support -MD to output dependencies as a
5757  # side effect of compilation, but ICC will put the dependencies in
5758  # the current directory while Tru64 will put them in the object
5759  # directory.
5760  mkdir sub
5761
5762  am_cv_CC_dependencies_compiler_type=none
5763  if test "$am_compiler_list" = ""; then
5764     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5765  fi
5766  for depmode in $am_compiler_list; do
5767    # Setup a source with many dependencies, because some compilers
5768    # like to wrap large dependency lists on column 80 (with \), and
5769    # we should not choose a depcomp mode which is confused by this.
5770    #
5771    # We need to recreate these files for each test, as the compiler may
5772    # overwrite some of them when testing with obscure command lines.
5773    # This happens at least with the AIX C compiler.
5774    : > sub/conftest.c
5775    for i in 1 2 3 4 5 6; do
5776      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5777      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5778      # Solaris 8's {/usr,}/bin/sh.
5779      touch sub/conftst$i.h
5780    done
5781    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5782
5783    case $depmode in
5784    nosideeffect)
5785      # after this tag, mechanisms are not by side-effect, so they'll
5786      # only be used when explicitly requested
5787      if test "x$enable_dependency_tracking" = xyes; then
5788        continue
5789      else
5790        break
5791      fi
5792      ;;
5793    none) break ;;
5794    esac
5795    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5796    # mode.  It turns out that the SunPro C++ compiler does not properly
5797    # handle `-M -o', and we need to detect this.
5798    if depmode=$depmode \
5799       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5800       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5801       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5802         >/dev/null 2>conftest.err &&
5803       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5804       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5805       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5806      # icc doesn't choke on unknown options, it will just issue warnings
5807      # or remarks (even with -Werror).  So we grep stderr for any message
5808      # that says an option was ignored or not supported.
5809      # When given -MP, icc 7.0 and 7.1 complain thusly:
5810      #   icc: Command line warning: ignoring option '-M'; no argument required
5811      # The diagnosis changed in icc 8.0:
5812      #   icc: Command line remark: option '-MP' not supported
5813      if (grep 'ignoring option' conftest.err ||
5814          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5815        am_cv_CC_dependencies_compiler_type=$depmode
5816        break
5817      fi
5818    fi
5819  done
5820
5821  cd ..
5822  rm -rf conftest.dir
5823else
5824  am_cv_CC_dependencies_compiler_type=none
5825fi
5826
5827fi
5828echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5829echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5830CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5831
5832
5833
5834if
5835  test "x$enable_dependency_tracking" != xno \
5836  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5837  am__fastdepCC_TRUE=
5838  am__fastdepCC_FALSE='#'
5839else
5840  am__fastdepCC_TRUE='#'
5841  am__fastdepCC_FALSE=
5842fi
5843
5844
5845depcc="$CXX"  am_compiler_list=
5846
5847echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5848echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5849if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5850  echo $ECHO_N "(cached) $ECHO_C" >&6
5851else
5852  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5853  # We make a subdir and do the tests there.  Otherwise we can end up
5854  # making bogus files that we don't know about and never remove.  For
5855  # instance it was reported that on HP-UX the gcc test will end up
5856  # making a dummy file named `D' -- because `-MD' means `put the output
5857  # in D'.
5858  mkdir conftest.dir
5859  # Copy depcomp to subdir because otherwise we won't find it if we're
5860  # using a relative directory.
5861  cp "$am_depcomp" conftest.dir
5862  cd conftest.dir
5863  # We will build objects and dependencies in a subdirectory because
5864  # it helps to detect inapplicable dependency modes.  For instance
5865  # both Tru64's cc and ICC support -MD to output dependencies as a
5866  # side effect of compilation, but ICC will put the dependencies in
5867  # the current directory while Tru64 will put them in the object
5868  # directory.
5869  mkdir sub
5870
5871  am_cv_CXX_dependencies_compiler_type=none
5872  if test "$am_compiler_list" = ""; then
5873     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5874  fi
5875  for depmode in $am_compiler_list; do
5876    # Setup a source with many dependencies, because some compilers
5877    # like to wrap large dependency lists on column 80 (with \), and
5878    # we should not choose a depcomp mode which is confused by this.
5879    #
5880    # We need to recreate these files for each test, as the compiler may
5881    # overwrite some of them when testing with obscure command lines.
5882    # This happens at least with the AIX C compiler.
5883    : > sub/conftest.c
5884    for i in 1 2 3 4 5 6; do
5885      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5886      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5887      # Solaris 8's {/usr,}/bin/sh.
5888      touch sub/conftst$i.h
5889    done
5890    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5891
5892    case $depmode in
5893    nosideeffect)
5894      # after this tag, mechanisms are not by side-effect, so they'll
5895      # only be used when explicitly requested
5896      if test "x$enable_dependency_tracking" = xyes; then
5897        continue
5898      else
5899        break
5900      fi
5901      ;;
5902    none) break ;;
5903    esac
5904    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5905    # mode.  It turns out that the SunPro C++ compiler does not properly
5906    # handle `-M -o', and we need to detect this.
5907    if depmode=$depmode \
5908       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5909       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5910       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5911         >/dev/null 2>conftest.err &&
5912       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5913       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5914       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5915      # icc doesn't choke on unknown options, it will just issue warnings
5916      # or remarks (even with -Werror).  So we grep stderr for any message
5917      # that says an option was ignored or not supported.
5918      # When given -MP, icc 7.0 and 7.1 complain thusly:
5919      #   icc: Command line warning: ignoring option '-M'; no argument required
5920      # The diagnosis changed in icc 8.0:
5921      #   icc: Command line remark: option '-MP' not supported
5922      if (grep 'ignoring option' conftest.err ||
5923          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5924        am_cv_CXX_dependencies_compiler_type=$depmode
5925        break
5926      fi
5927    fi
5928  done
5929
5930  cd ..
5931  rm -rf conftest.dir
5932else
5933  am_cv_CXX_dependencies_compiler_type=none
5934fi
5935
5936fi
5937echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5938echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5939CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5940
5941
5942
5943if
5944  test "x$enable_dependency_tracking" != xno \
5945  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5946  am__fastdepCXX_TRUE=
5947  am__fastdepCXX_FALSE='#'
5948else
5949  am__fastdepCXX_TRUE='#'
5950  am__fastdepCXX_FALSE=
5951fi
5952
5953
5954
5955echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5956echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5957    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5958if test "${enable_maintainer_mode+set}" = set; then
5959  enableval="$enable_maintainer_mode"
5960  USE_MAINTAINER_MODE=$enableval
5961else
5962  USE_MAINTAINER_MODE=no
5963fi;
5964  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5965echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5966
5967
5968if test $USE_MAINTAINER_MODE = yes; then
5969  MAINTAINER_MODE_TRUE=
5970  MAINTAINER_MODE_FALSE='#'
5971else
5972  MAINTAINER_MODE_TRUE='#'
5973  MAINTAINER_MODE_FALSE=
5974fi
5975
5976  MAINT=$MAINTAINER_MODE_TRUE
5977
5978
5979
5980coin_have_externals=no
5981if test "$enable_maintainer_mode" = yes; then
5982
5983  # If maintainer mode is chosen, we make sure that the correct versions
5984  # of the tools are used, and that we know where libtool.m4 is (to
5985  # recreate acinclude.m4)
5986
5987
5988  LIBTOOLM4=
5989  # Normally, $HOME
5990  AUTOTOOLS_DFLT=$HOME
5991
5992  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5993echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5994if test "${ac_cv_use_correct_autotools+set}" = set; then
5995  echo $ECHO_N "(cached) $ECHO_C" >&6
5996else
5997  ac_cv_use_correct_autotools=check
5998fi
5999echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
6000echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
6001
6002  if test $ac_cv_use_correct_autotools = check; then
6003    ac_cv_use_correct_autotools=yes
6004    # Check if we have autoconf
6005    # Extract the first word of "autoconf", so it can be a program name with args.
6006set dummy autoconf; ac_word=$2
6007echo "$as_me:$LINENO: checking for $ac_word" >&5
6008echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6009if test "${ac_cv_prog_have_autoconf+set}" = set; then
6010  echo $ECHO_N "(cached) $ECHO_C" >&6
6011else
6012  if test -n "$have_autoconf"; then
6013  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
6014else
6015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6016for as_dir in $PATH
6017do
6018  IFS=$as_save_IFS
6019  test -z "$as_dir" && as_dir=.
6020  for ac_exec_ext in '' $ac_executable_extensions; do
6021  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6022    ac_cv_prog_have_autoconf="yes"
6023    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6024    break 2
6025  fi
6026done
6027done
6028
6029  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
6030fi
6031fi
6032have_autoconf=$ac_cv_prog_have_autoconf
6033if test -n "$have_autoconf"; then
6034  echo "$as_me:$LINENO: result: $have_autoconf" >&5
6035echo "${ECHO_T}$have_autoconf" >&6
6036else
6037  echo "$as_me:$LINENO: result: no" >&5
6038echo "${ECHO_T}no" >&6
6039fi
6040
6041    if test $have_autoconf = no; then
6042      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
6043echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
6044   { (exit 1); exit 1; }; }
6045    fi
6046
6047    # Check whether autoconf is the correct version
6048    correct_version='2.59'
6049    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6050    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
6051echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
6052    autoconf --version > confauto.out 2>&1
6053    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
6054      echo "$as_me:$LINENO: result: yes" >&5
6055echo "${ECHO_T}yes" >&6
6056    else
6057      rm -f confauto.out
6058      echo "$as_me:$LINENO: result: no" >&5
6059echo "${ECHO_T}no" >&6
6060      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
6061echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
6062   { (exit 1); exit 1; }; }
6063    fi
6064    rm -f confauto.out
6065
6066    # Check if the executable autoconf is picked up from the correct location
6067    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
6068echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
6069    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
6070    autoconf_dir=`cd $autoconf_dir; pwd`
6071    if test x$AUTOTOOLS_DIR = x; then
6072      want_dir=$AUTOTOOLS_DFLT/bin
6073    else
6074      want_dir=$AUTOTOOLS_DIR/bin
6075    fi
6076    if test $autoconf_dir = `cd $want_dir; pwd`; then
6077      echo "$as_me:$LINENO: result: yes" >&5
6078echo "${ECHO_T}yes" >&6
6079    else
6080      rm -f confauto.out
6081      echo "$as_me:$LINENO: result: no" >&5
6082echo "${ECHO_T}no" >&6
6083      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
6084echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
6085   { (exit 1); exit 1; }; }
6086    fi
6087
6088    # Check if we have automake
6089    # Extract the first word of "automake", so it can be a program name with args.
6090set dummy automake; ac_word=$2
6091echo "$as_me:$LINENO: checking for $ac_word" >&5
6092echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6093if test "${ac_cv_prog_have_automake+set}" = set; then
6094  echo $ECHO_N "(cached) $ECHO_C" >&6
6095else
6096  if test -n "$have_automake"; then
6097  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
6098else
6099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6100for as_dir in $PATH
6101do
6102  IFS=$as_save_IFS
6103  test -z "$as_dir" && as_dir=.
6104  for ac_exec_ext in '' $ac_executable_extensions; do
6105  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6106    ac_cv_prog_have_automake="yes"
6107    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6108    break 2
6109  fi
6110done
6111done
6112
6113  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
6114fi
6115fi
6116have_automake=$ac_cv_prog_have_automake
6117if test -n "$have_automake"; then
6118  echo "$as_me:$LINENO: result: $have_automake" >&5
6119echo "${ECHO_T}$have_automake" >&6
6120else
6121  echo "$as_me:$LINENO: result: no" >&5
6122echo "${ECHO_T}no" >&6
6123fi
6124
6125    if test $have_automake = no; then
6126      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
6127echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
6128   { (exit 1); exit 1; }; }
6129    fi
6130
6131    # Check whether automake is the correct version
6132    correct_version='1.9.6'
6133    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6134    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
6135echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
6136    automake --version > confauto.out 2>&1
6137    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
6138      echo "$as_me:$LINENO: result: yes" >&5
6139echo "${ECHO_T}yes" >&6
6140    else
6141      rm -f confauto.out
6142      echo "$as_me:$LINENO: result: no" >&5
6143echo "${ECHO_T}no" >&6
6144      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
6145echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
6146   { (exit 1); exit 1; }; }
6147    fi
6148    rm -f confauto.out
6149
6150    # Check if the executable automake is picked up from the correct location
6151    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
6152echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
6153    automake_dir=`which automake | sed -e 's=/automake=='`
6154    automake_dir=`cd $automake_dir; pwd`
6155    if test x$AUTOTOOLS_DIR = x; then
6156      want_dir=$AUTOTOOLS_DFLT/bin
6157    else
6158      want_dir=$AUTOTOOLS_DIR/bin
6159    fi
6160    if test $automake_dir = `cd $want_dir; pwd`; then
6161      echo "$as_me:$LINENO: result: yes" >&5
6162echo "${ECHO_T}yes" >&6
6163    else
6164      rm -f confauto.out
6165      echo "$as_me:$LINENO: result: no" >&5
6166echo "${ECHO_T}no" >&6
6167      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
6168echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
6169   { (exit 1); exit 1; }; }
6170    fi
6171
6172    # Check if this is the correct version of libtool (with escaped dots)
6173    if test x$AUTOTOOLS_DIR = x; then
6174      want_dir=$AUTOTOOLS_DFLT/share
6175    else
6176      want_dir=$AUTOTOOLS_DIR/share
6177    fi
6178    correct_version='1.5.22'
6179    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
6180    if test -r $want_dir/libtool/ltmain.sh; then
6181  have_ltmain=yes
6182  :
6183else
6184  have_ltmain=no
6185  :
6186fi
6187
6188    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
6189echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
6190    if test $have_ltmain = yes; then
6191    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
6192        echo "$as_me:$LINENO: result: yes" >&5
6193echo "${ECHO_T}yes" >&6
6194      else
6195        echo "$as_me:$LINENO: result: no" >&5
6196echo "${ECHO_T}no" >&6
6197        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
6198echo "$as_me: error: You don't have the correct version of libtool." >&2;}
6199   { (exit 1); exit 1; }; }
6200      fi
6201    else
6202      echo "$as_me:$LINENO: result: no" >&5
6203echo "${ECHO_T}no" >&6
6204      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
6205echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
6206   { (exit 1); exit 1; }; }
6207    fi
6208  fi
6209
6210  # Check if we can find the libtool file
6211  if test x$AUTOTOOLS_DIR = x; then
6212    want_dir=$AUTOTOOLS_DFLT/share
6213  else
6214    want_dir=$AUTOTOOLS_DIR/share
6215  fi
6216  if test -r $want_dir/aclocal/libtool.m4; then
6217  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
6218  :
6219else
6220  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
6221echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
6222   { (exit 1); exit 1; }; }
6223  :
6224fi
6225
6226
6227  # Check if we have an Externals file
6228  if test -r $srcdir/Externals; then
6229    coin_have_externals=yes
6230  fi
6231  # Check if subversion is installed and understands https
6232  # Extract the first word of "svn", so it can be a program name with args.
6233set dummy svn; ac_word=$2
6234echo "$as_me:$LINENO: checking for $ac_word" >&5
6235echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6236if test "${ac_cv_prog_have_svn+set}" = set; then
6237  echo $ECHO_N "(cached) $ECHO_C" >&6
6238else
6239  if test -n "$have_svn"; then
6240  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
6241else
6242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6243for as_dir in $PATH
6244do
6245  IFS=$as_save_IFS
6246  test -z "$as_dir" && as_dir=.
6247  for ac_exec_ext in '' $ac_executable_extensions; do
6248  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6249    ac_cv_prog_have_svn="yes"
6250    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6251    break 2
6252  fi
6253done
6254done
6255
6256  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
6257fi
6258fi
6259have_svn=$ac_cv_prog_have_svn
6260if test -n "$have_svn"; then
6261  echo "$as_me:$LINENO: result: $have_svn" >&5
6262echo "${ECHO_T}$have_svn" >&6
6263else
6264  echo "$as_me:$LINENO: result: no" >&5
6265echo "${ECHO_T}no" >&6
6266fi
6267
6268  if test x$have_svn = xyes; then
6269    echo "$as_me:$LINENO: checking whether svn understands https" >&5
6270echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
6271if test "${ac_cv_svn_understands_https+set}" = set; then
6272  echo $ECHO_N "(cached) $ECHO_C" >&6
6273else
6274  svn --version > confauto.out 2>&1
6275                    if $EGREP https confauto.out >/dev/null 2>&1; then
6276                      ac_cv_svn_understands_https=yes
6277                    else
6278                      ac_cv_svn_understands_https=no
6279                      have_svn=no
6280                      ac_cv_prog_have_svn=no
6281                    fi
6282                    rm -f confauto.out
6283fi
6284echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
6285echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
6286  fi
6287
6288  # Find the location of the BuildTools directory
6289  BUILDTOOLSDIR=
6290  if test -r $srcdir/BuildTools/coin.m4; then
6291    BUILDTOOLSDIR=$srcdir/BuildTools
6292  else
6293    if test -r $srcdir/../BuildTools/coin.m4; then
6294      BUILDTOOLSDIR=$srcdir/../BuildTools
6295    else
6296      if test -r $srcdir/../../BuildTools/coin.m4; then
6297        BUILDTOOLSDIR=$srcdir/../../BuildTools
6298      else
6299        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
6300echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
6301   { (exit 1); exit 1; }; }
6302      fi
6303    fi
6304  fi
6305
6306
6307  # The following variable is set to the name of the directory where
6308  # the autotool scripts are located
6309
6310  AUX_DIR=$ac_aux_dir
6311fi
6312
6313# helpful variable for the base directory of this package
6314abs_source_dir=`cd $srcdir; pwd`
6315
6316
6317# Stuff for example Makefiles
6318if test x$prefix = xNONE; then
6319  full_prefix=$ac_default_prefix
6320else
6321  full_prefix=$prefix
6322fi
6323full_prefix=`cd $full_prefix ; pwd`
6324
6325abs_lib_dir=$full_prefix/lib
6326
6327abs_include_dir=$full_prefix/include
6328
6329abs_bin_dir=$full_prefix/bin
6330
6331
6332
6333if test $coin_have_externals = yes && test x$have_svn = xyes; then
6334  HAVE_EXTERNALS_TRUE=
6335  HAVE_EXTERNALS_FALSE='#'
6336else
6337  HAVE_EXTERNALS_TRUE='#'
6338  HAVE_EXTERNALS_FALSE=
6339fi
6340
6341
6342# AC_MSG_NOTICE([End automake initialisation.])
6343
6344
6345
6346LIBTOOL=
6347if test -r ../libtool; then
6348  coin_config_dir=..
6349  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
6350fi
6351if test "x$LIBTOOL" = x; then
6352  if test -r ../../libtool; then
6353    coin_config_dir=../..
6354    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
6355  fi
6356fi
6357
6358if test "x$LIBTOOL" = x; then
6359# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
6360  # Stuff for libtool
6361  # Check whether --enable-shared or --disable-shared was given.
6362if test "${enable_shared+set}" = set; then
6363  enableval="$enable_shared"
6364  p=${PACKAGE-default}
6365    case $enableval in
6366    yes) enable_shared=yes ;;
6367    no) enable_shared=no ;;
6368    *)
6369      enable_shared=no
6370      # Look at the argument we got.  We use all the common list separators.
6371      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6372      for pkg in $enableval; do
6373        IFS="$lt_save_ifs"
6374        if test "X$pkg" = "X$p"; then
6375          enable_shared=yes
6376        fi
6377      done
6378      IFS="$lt_save_ifs"
6379      ;;
6380    esac
6381else
6382  enable_shared=yes
6383fi;
6384
6385# Check whether --enable-fast-install or --disable-fast-install was given.
6386if test "${enable_fast_install+set}" = set; then
6387  enableval="$enable_fast_install"
6388  p=${PACKAGE-default}
6389    case $enableval in
6390    yes) enable_fast_install=yes ;;
6391    no) enable_fast_install=no ;;
6392    *)
6393      enable_fast_install=no
6394      # Look at the argument we got.  We use all the common list separators.
6395      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6396      for pkg in $enableval; do
6397        IFS="$lt_save_ifs"
6398        if test "X$pkg" = "X$p"; then
6399          enable_fast_install=yes
6400        fi
6401      done
6402      IFS="$lt_save_ifs"
6403      ;;
6404    esac
6405else
6406  enable_fast_install=yes
6407fi;
6408
6409echo "$as_me:$LINENO: checking host system type" >&5
6410echo $ECHO_N "checking host system type... $ECHO_C" >&6
6411if test "${ac_cv_host+set}" = set; then
6412  echo $ECHO_N "(cached) $ECHO_C" >&6
6413else
6414  ac_cv_host_alias=$host_alias
6415test -z "$ac_cv_host_alias" &&
6416  ac_cv_host_alias=$ac_cv_build_alias
6417ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
6418  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6419echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6420   { (exit 1); exit 1; }; }
6421
6422fi
6423echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6424echo "${ECHO_T}$ac_cv_host" >&6
6425host=$ac_cv_host
6426host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6427host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6428host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6429
6430
6431echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6432echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
6433if test "${lt_cv_path_SED+set}" = set; then
6434  echo $ECHO_N "(cached) $ECHO_C" >&6
6435else
6436  # Loop through the user's path and test for sed and gsed.
6437# Then use that list of sed's as ones to test for truncation.
6438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6439for as_dir in $PATH
6440do
6441  IFS=$as_save_IFS
6442  test -z "$as_dir" && as_dir=.
6443  for lt_ac_prog in sed gsed; do
6444    for ac_exec_ext in '' $ac_executable_extensions; do
6445      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6446        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6447      fi
6448    done
6449  done
6450done
6451lt_ac_max=0
6452lt_ac_count=0
6453# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6454# along with /bin/sed that truncates output.
6455for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6456  test ! -f $lt_ac_sed && continue
6457  cat /dev/null > conftest.in
6458  lt_ac_count=0
6459  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6460  # Check for GNU sed and select it if it is found.
6461  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6462    lt_cv_path_SED=$lt_ac_sed
6463    break
6464  fi
6465  while true; do
6466    cat conftest.in conftest.in >conftest.tmp
6467    mv conftest.tmp conftest.in
6468    cp conftest.in conftest.nl
6469    echo >>conftest.nl
6470    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6471    cmp -s conftest.out conftest.nl || break
6472    # 10000 chars as input seems more than enough
6473    test $lt_ac_count -gt 10 && break
6474    lt_ac_count=`expr $lt_ac_count + 1`
6475    if test $lt_ac_count -gt $lt_ac_max; then
6476      lt_ac_max=$lt_ac_count
6477      lt_cv_path_SED=$lt_ac_sed
6478    fi
6479  done
6480done
6481
6482fi
6483
6484SED=$lt_cv_path_SED
6485echo "$as_me:$LINENO: result: $SED" >&5
6486echo "${ECHO_T}$SED" >&6
6487
6488
6489# Check whether --with-gnu-ld or --without-gnu-ld was given.
6490if test "${with_gnu_ld+set}" = set; then
6491  withval="$with_gnu_ld"
6492  test "$withval" = no || with_gnu_ld=yes
6493else
6494  with_gnu_ld=no
6495fi;
6496ac_prog=ld
6497if test "$GCC" = yes; then
6498  # Check if gcc -print-prog-name=ld gives a path.
6499  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6500echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
6501  case $host in
6502  *-*-mingw*)
6503    # gcc leaves a trailing carriage return which upsets mingw
6504    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6505  *)
6506    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6507  esac
6508  case $ac_prog in
6509    # Accept absolute paths.
6510    [\\/]* | ?:[\\/]*)
6511      re_direlt='/[^/][^/]*/\.\./'
6512      # Canonicalize the pathname of ld
6513      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6514      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6515        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6516      done
6517      test -z "$LD" && LD="$ac_prog"
6518      ;;
6519  "")
6520    # If it fails, then pretend we aren't using GCC.
6521    ac_prog=ld
6522    ;;
6523  *)
6524    # If it is relative, then search for the first ld in PATH.
6525    with_gnu_ld=unknown
6526    ;;
6527  esac
6528elif test "$with_gnu_ld" = yes; then
6529  echo "$as_me:$LINENO: checking for GNU ld" >&5
6530echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6531else
6532  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6533echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6534fi
6535if test "${lt_cv_path_LD+set}" = set; then
6536  echo $ECHO_N "(cached) $ECHO_C" >&6
6537else
6538  if test -z "$LD"; then
6539  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6540  for ac_dir in $PATH; do
6541    IFS="$lt_save_ifs"
6542    test -z "$ac_dir" && ac_dir=.
6543    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6544      lt_cv_path_LD="$ac_dir/$ac_prog"
6545      # Check to see if the program is GNU ld.  I'd rather use --version,
6546      # but apparently some variants of GNU ld only accept -v.
6547      # Break only if it was the GNU/non-GNU ld that we prefer.
6548      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6549      *GNU* | *'with BFD'*)
6550        test "$with_gnu_ld" != no && break
6551        ;;
6552      *)
6553        test "$with_gnu_ld" != yes && break
6554        ;;
6555      esac
6556    fi
6557  done
6558  IFS="$lt_save_ifs"
6559else
6560  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6561fi
6562fi
6563
6564LD="$lt_cv_path_LD"
6565if test -n "$LD"; then
6566  echo "$as_me:$LINENO: result: $LD" >&5
6567echo "${ECHO_T}$LD" >&6
6568else
6569  echo "$as_me:$LINENO: result: no" >&5
6570echo "${ECHO_T}no" >&6
6571fi
6572test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6573echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6574   { (exit 1); exit 1; }; }
6575echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6576echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6577if test "${lt_cv_prog_gnu_ld+set}" = set; then
6578  echo $ECHO_N "(cached) $ECHO_C" >&6
6579else
6580  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6581case `$LD -v 2>&1 </dev/null` in
6582*GNU* | *'with BFD'*)
6583  lt_cv_prog_gnu_ld=yes
6584  ;;
6585*)
6586  lt_cv_prog_gnu_ld=no
6587  ;;
6588esac
6589fi
6590echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6591echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6592with_gnu_ld=$lt_cv_prog_gnu_ld
6593
6594
6595echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6596echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6597if test "${lt_cv_ld_reload_flag+set}" = set; then
6598  echo $ECHO_N "(cached) $ECHO_C" >&6
6599else
6600  lt_cv_ld_reload_flag='-r'
6601fi
6602echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6603echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6604reload_flag=$lt_cv_ld_reload_flag
6605case $reload_flag in
6606"" | " "*) ;;
6607*) reload_flag=" $reload_flag" ;;
6608esac
6609reload_cmds='$LD$reload_flag -o $output$reload_objs'
6610case $host_os in
6611  darwin*)
6612    if test "$GCC" = yes; then
6613      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6614    else
6615      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6616    fi
6617    ;;
6618esac
6619
6620echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6621echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6622if test "${lt_cv_path_NM+set}" = set; then
6623  echo $ECHO_N "(cached) $ECHO_C" >&6
6624else
6625  if test -n "$NM"; then
6626  # Let the user override the test.
6627  lt_cv_path_NM="$NM"
6628else
6629  lt_nm_to_check="${ac_tool_prefix}nm"
6630  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6631    lt_nm_to_check="$lt_nm_to_check nm"
6632  fi
6633  for lt_tmp_nm in $lt_nm_to_check; do
6634    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6635    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6636      IFS="$lt_save_ifs"
6637      test -z "$ac_dir" && ac_dir=.
6638      tmp_nm="$ac_dir/$lt_tmp_nm"
6639      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6640        # Check to see if the nm accepts a BSD-compat flag.
6641        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6642        #   nm: unknown option "B" ignored
6643        # Tru64's nm complains that /dev/null is an invalid object file
6644        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6645        */dev/null* | *'Invalid file or object type'*)
6646          lt_cv_path_NM="$tmp_nm -B"
6647          break
6648          ;;
6649        *)
6650          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6651          */dev/null*)
6652            lt_cv_path_NM="$tmp_nm -p"
6653            break
6654            ;;
6655          *)
6656            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6657            continue # so that we can try to find one that supports BSD flags
6658            ;;
6659          esac
6660          ;;
6661        esac
6662      fi
6663    done
6664    IFS="$lt_save_ifs"
6665  done
6666  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6667fi
6668fi
6669echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6670echo "${ECHO_T}$lt_cv_path_NM" >&6
6671NM="$lt_cv_path_NM"
6672
6673echo "$as_me:$LINENO: checking whether ln -s works" >&5
6674echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
6675LN_S=$as_ln_s
6676if test "$LN_S" = "ln -s"; then
6677  echo "$as_me:$LINENO: result: yes" >&5
6678echo "${ECHO_T}yes" >&6
6679else
6680  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6681echo "${ECHO_T}no, using $LN_S" >&6
6682fi
6683
6684echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6685echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
6686if test "${lt_cv_deplibs_check_method+set}" = set; then
6687  echo $ECHO_N "(cached) $ECHO_C" >&6
6688else
6689  lt_cv_file_magic_cmd='$MAGIC_CMD'
6690lt_cv_file_magic_test_file=
6691lt_cv_deplibs_check_method='unknown'
6692# Need to set the preceding variable on all platforms that support
6693# interlibrary dependencies.
6694# 'none' -- dependencies not supported.
6695# `unknown' -- same as none, but documents that we really don't know.
6696# 'pass_all' -- all dependencies passed with no checks.
6697# 'test_compile' -- check by making test program.
6698# 'file_magic [[regex]]' -- check by looking for files in library path
6699# which responds to the $file_magic_cmd with a given extended regex.
6700# If you have `file' or equivalent on your system and you're not sure
6701# whether `pass_all' will *always* work, you probably want this one.
6702
6703case $host_os in
6704aix4* | aix5*)
6705  lt_cv_deplibs_check_method=pass_all
6706  ;;
6707
6708beos*)
6709  lt_cv_deplibs_check_method=pass_all
6710  ;;
6711
6712bsdi[45]*)
6713  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6714  lt_cv_file_magic_cmd='/usr/bin/file -L'
6715  lt_cv_file_magic_test_file=/shlib/libc.so
6716  ;;
6717
6718cygwin*)
6719  # func_win32_libid is a shell function defined in ltmain.sh
6720  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6721  lt_cv_file_magic_cmd='func_win32_libid'
6722  ;;
6723
6724mingw* | pw32*)
6725  # Base MSYS/MinGW do not provide the 'file' command needed by
6726  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6727  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6728  lt_cv_file_magic_cmd='$OBJDUMP -f'
6729  ;;
6730
6731darwin* | rhapsody*)
6732  lt_cv_deplibs_check_method=pass_all
6733  ;;
6734
6735freebsd* | kfreebsd*-gnu | dragonfly*)
6736  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6737    case $host_cpu in
6738    i*86 )
6739      # Not sure whether the presence of OpenBSD here was a mistake.
6740      # Let's accept both of them until this is cleared up.
6741      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6742      lt_cv_file_magic_cmd=/usr/bin/file
6743      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6744      ;;
6745    esac
6746  else
6747    lt_cv_deplibs_check_method=pass_all
6748  fi
6749  ;;
6750
6751gnu*)
6752  lt_cv_deplibs_check_method=pass_all
6753  ;;
6754
6755hpux10.20* | hpux11*)
6756  lt_cv_file_magic_cmd=/usr/bin/file
6757  case $host_cpu in
6758  ia64*)
6759    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6760    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6761    ;;
6762  hppa*64*)
6763    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]'
6764    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6765    ;;
6766  *)
6767    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6768    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6769    ;;
6770  esac
6771  ;;
6772
6773interix3*)
6774  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6775  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6776  ;;
6777
6778irix5* | irix6* | nonstopux*)
6779  case $LD in
6780  *-32|*"-32 ") libmagic=32-bit;;
6781  *-n32|*"-n32 ") libmagic=N32;;
6782  *-64|*"-64 ") libmagic=64-bit;;
6783  *) libmagic=never-match;;
6784  esac
6785  lt_cv_deplibs_check_method=pass_all
6786  ;;
6787
6788# This must be Linux ELF.
6789linux*)
6790  lt_cv_deplibs_check_method=pass_all
6791  ;;
6792
6793netbsd*)
6794  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6795    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6796  else
6797    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6798  fi
6799  ;;
6800
6801newos6*)
6802  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6803  lt_cv_file_magic_cmd=/usr/bin/file
6804  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6805  ;;
6806
6807nto-qnx*)
6808  lt_cv_deplibs_check_method=unknown
6809  ;;
6810
6811openbsd*)
6812  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6813    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6814  else
6815    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6816  fi
6817  ;;
6818
6819osf3* | osf4* | osf5*)
6820  lt_cv_deplibs_check_method=pass_all
6821  ;;
6822
6823solaris*)
6824  lt_cv_deplibs_check_method=pass_all
6825  ;;
6826
6827sysv4 | sysv4.3*)
6828  case $host_vendor in
6829  motorola)
6830    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]'
6831    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6832    ;;
6833  ncr)
6834    lt_cv_deplibs_check_method=pass_all
6835    ;;
6836  sequent)
6837    lt_cv_file_magic_cmd='/bin/file'
6838    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6839    ;;
6840  sni)
6841    lt_cv_file_magic_cmd='/bin/file'
6842    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6843    lt_cv_file_magic_test_file=/lib/libc.so
6844    ;;
6845  siemens)
6846    lt_cv_deplibs_check_method=pass_all
6847    ;;
6848  pc)
6849    lt_cv_deplibs_check_method=pass_all
6850    ;;
6851  esac
6852  ;;
6853
6854sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6855  lt_cv_deplibs_check_method=pass_all
6856  ;;
6857esac
6858
6859fi
6860echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6861echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6862file_magic_cmd=$lt_cv_file_magic_cmd
6863deplibs_check_method=$lt_cv_deplibs_check_method
6864test -z "$deplibs_check_method" && deplibs_check_method=unknown
6865
6866
6867
6868
6869# If no C compiler was specified, use CC.
6870LTCC=${LTCC-"$CC"}
6871
6872# If no C compiler flags were specified, use CFLAGS.
6873LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6874
6875# Allow CC to be a program name with arguments.
6876compiler=$CC
6877
6878# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6879if test "${enable_libtool_lock+set}" = set; then
6880  enableval="$enable_libtool_lock"
6881
6882fi;
6883test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6884
6885# Some flags need to be propagated to the compiler or linker for good
6886# libtool support.
6887case $host in
6888ia64-*-hpux*)
6889  # Find out which ABI we are using.
6890  echo 'int i;' > conftest.$ac_ext
6891  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6892  (eval $ac_compile) 2>&5
6893  ac_status=$?
6894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6895  (exit $ac_status); }; then
6896    case `/usr/bin/file conftest.$ac_objext` in
6897    *ELF-32*)
6898      HPUX_IA64_MODE="32"
6899      ;;
6900    *ELF-64*)
6901      HPUX_IA64_MODE="64"
6902      ;;
6903    esac
6904  fi
6905  rm -rf conftest*
6906  ;;
6907*-*-irix6*)
6908  # Find out which ABI we are using.
6909  echo '#line 6909 "configure"' > conftest.$ac_ext
6910  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6911  (eval $ac_compile) 2>&5
6912  ac_status=$?
6913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6914  (exit $ac_status); }; then
6915   if test "$lt_cv_prog_gnu_ld" = yes; then
6916    case `/usr/bin/file conftest.$ac_objext` in
6917    *32-bit*)
6918      LD="${LD-ld} -melf32bsmip"
6919      ;;
6920    *N32*)
6921      LD="${LD-ld} -melf32bmipn32"
6922      ;;
6923    *64-bit*)
6924      LD="${LD-ld} -melf64bmip"
6925      ;;
6926    esac
6927   else
6928    case `/usr/bin/file conftest.$ac_objext` in
6929    *32-bit*)
6930      LD="${LD-ld} -32"
6931      ;;
6932    *N32*)
6933      LD="${LD-ld} -n32"
6934      ;;
6935    *64-bit*)
6936      LD="${LD-ld} -64"
6937      ;;
6938    esac
6939   fi
6940  fi
6941  rm -rf conftest*
6942  ;;
6943
6944x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6945  # Find out which ABI we are using.
6946  echo 'int i;' > conftest.$ac_ext
6947  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6948  (eval $ac_compile) 2>&5
6949  ac_status=$?
6950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6951  (exit $ac_status); }; then
6952    case `/usr/bin/file conftest.o` in
6953    *32-bit*)
6954      case $host in
6955        x86_64-*linux*)
6956          LD="${LD-ld} -m elf_i386"
6957          ;;
6958        ppc64-*linux*|powerpc64-*linux*)
6959          LD="${LD-ld} -m elf32ppclinux"
6960          ;;
6961        s390x-*linux*)
6962          LD="${LD-ld} -m elf_s390"
6963          ;;
6964        sparc64-*linux*)
6965          LD="${LD-ld} -m elf32_sparc"
6966          ;;
6967      esac
6968      ;;
6969    *64-bit*)
6970      case $host in
6971        x86_64-*linux*)
6972          LD="${LD-ld} -m elf_x86_64"
6973          ;;
6974        ppc*-*linux*|powerpc*-*linux*)
6975          LD="${LD-ld} -m elf64ppc"
6976          ;;
6977        s390*-*linux*)
6978          LD="${LD-ld} -m elf64_s390"
6979          ;;
6980        sparc*-*linux*)
6981          LD="${LD-ld} -m elf64_sparc"
6982          ;;
6983      esac
6984      ;;
6985    esac
6986  fi
6987  rm -rf conftest*
6988  ;;
6989
6990*-*-sco3.2v5*)
6991  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6992  SAVE_CFLAGS="$CFLAGS"
6993  CFLAGS="$CFLAGS -belf"
6994  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6995echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6996if test "${lt_cv_cc_needs_belf+set}" = set; then
6997  echo $ECHO_N "(cached) $ECHO_C" >&6
6998else
6999  ac_ext=c
7000ac_cpp='$CPP $CPPFLAGS'
7001ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7002ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7003ac_compiler_gnu=$ac_cv_c_compiler_gnu
7004
7005     cat >conftest.$ac_ext <<_ACEOF
7006/* confdefs.h.  */
7007_ACEOF
7008cat confdefs.h >>conftest.$ac_ext
7009cat >>conftest.$ac_ext <<_ACEOF
7010/* end confdefs.h.  */
7011
7012int
7013main ()
7014{
7015
7016  ;
7017  return 0;
7018}
7019_ACEOF
7020rm -f conftest.$ac_objext conftest$ac_exeext
7021if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7022  (eval $ac_link) 2>conftest.er1
7023  ac_status=$?
7024  grep -v '^ *+' conftest.er1 >conftest.err
7025  rm -f conftest.er1
7026  cat conftest.err >&5
7027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028  (exit $ac_status); } &&
7029         { ac_try='test -z "$ac_c_werror_flag"
7030                         || test ! -s conftest.err'
7031  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7032  (eval $ac_try) 2>&5
7033  ac_status=$?
7034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7035  (exit $ac_status); }; } &&
7036         { ac_try='test -s conftest$ac_exeext'
7037  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7038  (eval $ac_try) 2>&5
7039  ac_status=$?
7040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7041  (exit $ac_status); }; }; then
7042  lt_cv_cc_needs_belf=yes
7043else
7044  echo "$as_me: failed program was:" >&5
7045sed 's/^/| /' conftest.$ac_ext >&5
7046
7047lt_cv_cc_needs_belf=no
7048fi
7049rm -f conftest.err conftest.$ac_objext \
7050      conftest$ac_exeext conftest.$ac_ext
7051     ac_ext=c
7052ac_cpp='$CPP $CPPFLAGS'
7053ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7054ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7055ac_compiler_gnu=$ac_cv_c_compiler_gnu
7056
7057fi
7058echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7059echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
7060  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7061    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7062    CFLAGS="$SAVE_CFLAGS"
7063  fi
7064  ;;
7065sparc*-*solaris*)
7066  # Find out which ABI we are using.
7067  echo 'int i;' > conftest.$ac_ext
7068  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7069  (eval $ac_compile) 2>&5
7070  ac_status=$?
7071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072  (exit $ac_status); }; then
7073    case `/usr/bin/file conftest.o` in
7074    *64-bit*)
7075      case $lt_cv_prog_gnu_ld in
7076      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7077      *)    LD="${LD-ld} -64" ;;
7078      esac
7079      ;;
7080    esac
7081  fi
7082  rm -rf conftest*
7083  ;;
7084
7085
7086esac
7087
7088need_locks="$enable_libtool_lock"
7089
7090
7091ac_ext=c
7092ac_cpp='$CPP $CPPFLAGS'
7093ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7094ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7095ac_compiler_gnu=$ac_cv_c_compiler_gnu
7096echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7097echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
7098# On Suns, sometimes $CPP names a directory.
7099if test -n "$CPP" && test -d "$CPP"; then
7100  CPP=
7101fi
7102if test -z "$CPP"; then
7103  if test "${ac_cv_prog_CPP+set}" = set; then
7104  echo $ECHO_N "(cached) $ECHO_C" >&6
7105else
7106      # Double quotes because CPP needs to be expanded
7107    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7108    do
7109      ac_preproc_ok=false
7110for ac_c_preproc_warn_flag in '' yes
7111do
7112  # Use a header file that comes with gcc, so configuring glibc
7113  # with a fresh cross-compiler works.
7114  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7115  # <limits.h> exists even on freestanding compilers.
7116  # On the NeXT, cc -E runs the code through the compiler's parser,
7117  # not just through cpp. "Syntax error" is here to catch this case.
7118  cat >conftest.$ac_ext <<_ACEOF
7119/* confdefs.h.  */
7120_ACEOF
7121cat confdefs.h >>conftest.$ac_ext
7122cat >>conftest.$ac_ext <<_ACEOF
7123/* end confdefs.h.  */
7124#ifdef __STDC__
7125# include <limits.h>
7126#else
7127# include <assert.h>
7128#endif
7129                     Syntax error
7130_ACEOF
7131if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7132  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7133  ac_status=$?
7134  grep -v '^ *+' conftest.er1 >conftest.err
7135  rm -f conftest.er1
7136  cat conftest.err >&5
7137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7138  (exit $ac_status); } >/dev/null; then
7139  if test -s conftest.err; then
7140    ac_cpp_err=$ac_c_preproc_warn_flag
7141    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7142  else
7143    ac_cpp_err=
7144  fi
7145else
7146  ac_cpp_err=yes
7147fi
7148if test -z "$ac_cpp_err"; then
7149  :
7150else
7151  echo "$as_me: failed program was:" >&5
7152sed 's/^/| /' conftest.$ac_ext >&5
7153
7154  # Broken: fails on valid input.
7155continue
7156fi
7157rm -f conftest.err conftest.$ac_ext
7158
7159  # OK, works on sane cases.  Now check whether non-existent headers
7160  # can be detected and how.
7161  cat >conftest.$ac_ext <<_ACEOF
7162/* confdefs.h.  */
7163_ACEOF
7164cat confdefs.h >>conftest.$ac_ext
7165cat >>conftest.$ac_ext <<_ACEOF
7166/* end confdefs.h.  */
7167#include <ac_nonexistent.h>
7168_ACEOF
7169if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7170  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7171  ac_status=$?
7172  grep -v '^ *+' conftest.er1 >conftest.err
7173  rm -f conftest.er1
7174  cat conftest.err >&5
7175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7176  (exit $ac_status); } >/dev/null; then
7177  if test -s conftest.err; then
7178    ac_cpp_err=$ac_c_preproc_warn_flag
7179    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7180  else
7181    ac_cpp_err=
7182  fi
7183else
7184  ac_cpp_err=yes
7185fi
7186if test -z "$ac_cpp_err"; then
7187  # Broken: success on invalid input.
7188continue
7189else
7190  echo "$as_me: failed program was:" >&5
7191sed 's/^/| /' conftest.$ac_ext >&5
7192
7193  # Passes both tests.
7194ac_preproc_ok=:
7195break
7196fi
7197rm -f conftest.err conftest.$ac_ext
7198
7199done
7200# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7201rm -f conftest.err conftest.$ac_ext
7202if $ac_preproc_ok; then
7203  break
7204fi
7205
7206    done
7207    ac_cv_prog_CPP=$CPP
7208
7209fi
7210  CPP=$ac_cv_prog_CPP
7211else
7212  ac_cv_prog_CPP=$CPP
7213fi
7214echo "$as_me:$LINENO: result: $CPP" >&5
7215echo "${ECHO_T}$CPP" >&6
7216ac_preproc_ok=false
7217for ac_c_preproc_warn_flag in '' yes
7218do
7219  # Use a header file that comes with gcc, so configuring glibc
7220  # with a fresh cross-compiler works.
7221  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7222  # <limits.h> exists even on freestanding compilers.
7223  # On the NeXT, cc -E runs the code through the compiler's parser,
7224  # not just through cpp. "Syntax error" is here to catch this case.
7225  cat >conftest.$ac_ext <<_ACEOF
7226/* confdefs.h.  */
7227_ACEOF
7228cat confdefs.h >>conftest.$ac_ext
7229cat >>conftest.$ac_ext <<_ACEOF
7230/* end confdefs.h.  */
7231#ifdef __STDC__
7232# include <limits.h>
7233#else
7234# include <assert.h>
7235#endif
7236                     Syntax error
7237_ACEOF
7238if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7239  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7240  ac_status=$?
7241  grep -v '^ *+' conftest.er1 >conftest.err
7242  rm -f conftest.er1
7243  cat conftest.err >&5
7244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7245  (exit $ac_status); } >/dev/null; then
7246  if test -s conftest.err; then
7247    ac_cpp_err=$ac_c_preproc_warn_flag
7248    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7249  else
7250    ac_cpp_err=
7251  fi
7252else
7253  ac_cpp_err=yes
7254fi
7255if test -z "$ac_cpp_err"; then
7256  :
7257else
7258  echo "$as_me: failed program was:" >&5
7259sed 's/^/| /' conftest.$ac_ext >&5
7260
7261  # Broken: fails on valid input.
7262continue
7263fi
7264rm -f conftest.err conftest.$ac_ext
7265
7266  # OK, works on sane cases.  Now check whether non-existent headers
7267  # can be detected and how.
7268  cat >conftest.$ac_ext <<_ACEOF
7269/* confdefs.h.  */
7270_ACEOF
7271cat confdefs.h >>conftest.$ac_ext
7272cat >>conftest.$ac_ext <<_ACEOF
7273/* end confdefs.h.  */
7274#include <ac_nonexistent.h>
7275_ACEOF
7276if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7277  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7278  ac_status=$?
7279  grep -v '^ *+' conftest.er1 >conftest.err
7280  rm -f conftest.er1
7281  cat conftest.err >&5
7282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283  (exit $ac_status); } >/dev/null; then
7284  if test -s conftest.err; then
7285    ac_cpp_err=$ac_c_preproc_warn_flag
7286    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7287  else
7288    ac_cpp_err=
7289  fi
7290else
7291  ac_cpp_err=yes
7292fi
7293if test -z "$ac_cpp_err"; then
7294  # Broken: success on invalid input.
7295continue
7296else
7297  echo "$as_me: failed program was:" >&5
7298sed 's/^/| /' conftest.$ac_ext >&5
7299
7300  # Passes both tests.
7301ac_preproc_ok=:
7302break
7303fi
7304rm -f conftest.err conftest.$ac_ext
7305
7306done
7307# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7308rm -f conftest.err conftest.$ac_ext
7309if $ac_preproc_ok; then
7310  :
7311else
7312  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7313See \`config.log' for more details." >&5
7314echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7315See \`config.log' for more details." >&2;}
7316   { (exit 1); exit 1; }; }
7317fi
7318
7319ac_ext=c
7320ac_cpp='$CPP $CPPFLAGS'
7321ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7322ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7323ac_compiler_gnu=$ac_cv_c_compiler_gnu
7324
7325
7326echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7327echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7328if test "${ac_cv_header_stdc+set}" = set; then
7329  echo $ECHO_N "(cached) $ECHO_C" >&6
7330else
7331  cat >conftest.$ac_ext <<_ACEOF
7332/* confdefs.h.  */
7333_ACEOF
7334cat confdefs.h >>conftest.$ac_ext
7335cat >>conftest.$ac_ext <<_ACEOF
7336/* end confdefs.h.  */
7337#include <stdlib.h>
7338#include <stdarg.h>
7339#include <string.h>
7340#include <float.h>
7341
7342int
7343main ()
7344{
7345
7346  ;
7347  return 0;
7348}
7349_ACEOF
7350rm -f conftest.$ac_objext
7351if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7352  (eval $ac_compile) 2>conftest.er1
7353  ac_status=$?
7354  grep -v '^ *+' conftest.er1 >conftest.err
7355  rm -f conftest.er1
7356  cat conftest.err >&5
7357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7358  (exit $ac_status); } &&
7359         { ac_try='test -z "$ac_c_werror_flag"
7360                         || test ! -s conftest.err'
7361  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7362  (eval $ac_try) 2>&5
7363  ac_status=$?
7364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7365  (exit $ac_status); }; } &&
7366         { ac_try='test -s conftest.$ac_objext'
7367  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7368  (eval $ac_try) 2>&5
7369  ac_status=$?
7370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7371  (exit $ac_status); }; }; then
7372  ac_cv_header_stdc=yes
7373else
7374  echo "$as_me: failed program was:" >&5
7375sed 's/^/| /' conftest.$ac_ext >&5
7376
7377ac_cv_header_stdc=no
7378fi
7379rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7380
7381if test $ac_cv_header_stdc = yes; then
7382  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7383  cat >conftest.$ac_ext <<_ACEOF
7384/* confdefs.h.  */
7385_ACEOF
7386cat confdefs.h >>conftest.$ac_ext
7387cat >>conftest.$ac_ext <<_ACEOF
7388/* end confdefs.h.  */
7389#include <string.h>
7390
7391_ACEOF
7392if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7393  $EGREP "memchr" >/dev/null 2>&1; then
7394  :
7395else
7396  ac_cv_header_stdc=no
7397fi
7398rm -f conftest*
7399
7400fi
7401
7402if test $ac_cv_header_stdc = yes; then
7403  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7404  cat >conftest.$ac_ext <<_ACEOF
7405/* confdefs.h.  */
7406_ACEOF
7407cat confdefs.h >>conftest.$ac_ext
7408cat >>conftest.$ac_ext <<_ACEOF
7409/* end confdefs.h.  */
7410#include <stdlib.h>
7411
7412_ACEOF
7413if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7414  $EGREP "free" >/dev/null 2>&1; then
7415  :
7416else
7417  ac_cv_header_stdc=no
7418fi
7419rm -f conftest*
7420
7421fi
7422
7423if test $ac_cv_header_stdc = yes; then
7424  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7425  if test "$cross_compiling" = yes; then
7426  :
7427else
7428  cat >conftest.$ac_ext <<_ACEOF
7429/* confdefs.h.  */
7430_ACEOF
7431cat confdefs.h >>conftest.$ac_ext
7432cat >>conftest.$ac_ext <<_ACEOF
7433/* end confdefs.h.  */
7434#include <ctype.h>
7435#if ((' ' & 0x0FF) == 0x020)
7436# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7437# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7438#else
7439# define ISLOWER(c) \
7440                   (('a' <= (c) && (c) <= 'i') \
7441                     || ('j' <= (c) && (c) <= 'r') \
7442                     || ('s' <= (c) && (c) <= 'z'))
7443# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7444#endif
7445
7446#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7447int
7448main ()
7449{
7450  int i;
7451  for (i = 0; i < 256; i++)
7452    if (XOR (islower (i), ISLOWER (i))
7453        || toupper (i) != TOUPPER (i))
7454      exit(2);
7455  exit (0);
7456}
7457_ACEOF
7458rm -f conftest$ac_exeext
7459if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7460  (eval $ac_link) 2>&5
7461  ac_status=$?
7462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7463  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7464  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7465  (eval $ac_try) 2>&5
7466  ac_status=$?
7467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7468  (exit $ac_status); }; }; then
7469  :
7470else
7471  echo "$as_me: program exited with status $ac_status" >&5
7472echo "$as_me: failed program was:" >&5
7473sed 's/^/| /' conftest.$ac_ext >&5
7474
7475( exit $ac_status )
7476ac_cv_header_stdc=no
7477fi
7478rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7479fi
7480fi
7481fi
7482echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7483echo "${ECHO_T}$ac_cv_header_stdc" >&6
7484if test $ac_cv_header_stdc = yes; then
7485
7486cat >>confdefs.h <<\_ACEOF
7487#define STDC_HEADERS 1
7488_ACEOF
7489
7490fi
7491
7492# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7503                  inttypes.h stdint.h unistd.h
7504do
7505as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7506echo "$as_me:$LINENO: checking for $ac_header" >&5
7507echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7508if eval "test \"\${$as_ac_Header+set}\" = set"; then
7509  echo $ECHO_N "(cached) $ECHO_C" >&6
7510else
7511  cat >conftest.$ac_ext <<_ACEOF
7512/* confdefs.h.  */
7513_ACEOF
7514cat confdefs.h >>conftest.$ac_ext
7515cat >>conftest.$ac_ext <<_ACEOF
7516/* end confdefs.h.  */
7517$ac_includes_default
7518
7519#include <$ac_header>
7520_ACEOF
7521rm -f conftest.$ac_objext
7522if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7523  (eval $ac_compile) 2>conftest.er1
7524  ac_status=$?
7525  grep -v '^ *+' conftest.er1 >conftest.err
7526  rm -f conftest.er1
7527  cat conftest.err >&5
7528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7529  (exit $ac_status); } &&
7530         { ac_try='test -z "$ac_c_werror_flag"
7531                         || test ! -s conftest.err'
7532  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7533  (eval $ac_try) 2>&5
7534  ac_status=$?
7535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7536  (exit $ac_status); }; } &&
7537         { ac_try='test -s conftest.$ac_objext'
7538  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7539  (eval $ac_try) 2>&5
7540  ac_status=$?
7541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542  (exit $ac_status); }; }; then
7543  eval "$as_ac_Header=yes"
7544else
7545  echo "$as_me: failed program was:" >&5
7546sed 's/^/| /' conftest.$ac_ext >&5
7547
7548eval "$as_ac_Header=no"
7549fi
7550rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7551fi
7552echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7553echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7554if test `eval echo '${'$as_ac_Header'}'` = yes; then
7555  cat >>confdefs.h <<_ACEOF
7556#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7557_ACEOF
7558
7559fi
7560
7561done
7562
7563
7564
7565for ac_header in dlfcn.h
7566do
7567as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7568if eval "test \"\${$as_ac_Header+set}\" = set"; then
7569  echo "$as_me:$LINENO: checking for $ac_header" >&5
7570echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7571if eval "test \"\${$as_ac_Header+set}\" = set"; then
7572  echo $ECHO_N "(cached) $ECHO_C" >&6
7573fi
7574echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7575echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7576else
7577  # Is the header compilable?
7578echo "$as_me:$LINENO: checking $ac_header usability" >&5
7579echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7580cat >conftest.$ac_ext <<_ACEOF
7581/* confdefs.h.  */
7582_ACEOF
7583cat confdefs.h >>conftest.$ac_ext
7584cat >>conftest.$ac_ext <<_ACEOF
7585/* end confdefs.h.  */
7586$ac_includes_default
7587#include <$ac_header>
7588_ACEOF
7589rm -f conftest.$ac_objext
7590if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7591  (eval $ac_compile) 2>conftest.er1
7592  ac_status=$?
7593  grep -v '^ *+' conftest.er1 >conftest.err
7594  rm -f conftest.er1
7595  cat conftest.err >&5
7596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7597  (exit $ac_status); } &&
7598         { ac_try='test -z "$ac_c_werror_flag"
7599                         || test ! -s conftest.err'
7600  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7601  (eval $ac_try) 2>&5
7602  ac_status=$?
7603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7604  (exit $ac_status); }; } &&
7605         { ac_try='test -s conftest.$ac_objext'
7606  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7607  (eval $ac_try) 2>&5
7608  ac_status=$?
7609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7610  (exit $ac_status); }; }; then
7611  ac_header_compiler=yes
7612else
7613  echo "$as_me: failed program was:" >&5
7614sed 's/^/| /' conftest.$ac_ext >&5
7615
7616ac_header_compiler=no
7617fi
7618rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7619echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7620echo "${ECHO_T}$ac_header_compiler" >&6
7621
7622# Is the header present?
7623echo "$as_me:$LINENO: checking $ac_header presence" >&5
7624echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7625cat >conftest.$ac_ext <<_ACEOF
7626/* confdefs.h.  */
7627_ACEOF
7628cat confdefs.h >>conftest.$ac_ext
7629cat >>conftest.$ac_ext <<_ACEOF
7630/* end confdefs.h.  */
7631#include <$ac_header>
7632_ACEOF
7633if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7634  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7635  ac_status=$?
7636  grep -v '^ *+' conftest.er1 >conftest.err
7637  rm -f conftest.er1
7638  cat conftest.err >&5
7639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7640  (exit $ac_status); } >/dev/null; then
7641  if test -s conftest.err; then
7642    ac_cpp_err=$ac_c_preproc_warn_flag
7643    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7644  else
7645    ac_cpp_err=
7646  fi
7647else
7648  ac_cpp_err=yes
7649fi
7650if test -z "$ac_cpp_err"; then
7651  ac_header_preproc=yes
7652else
7653  echo "$as_me: failed program was:" >&5
7654sed 's/^/| /' conftest.$ac_ext >&5
7655
7656  ac_header_preproc=no
7657fi
7658rm -f conftest.err conftest.$ac_ext
7659echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7660echo "${ECHO_T}$ac_header_preproc" >&6
7661
7662# So?  What about this header?
7663case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7664  yes:no: )
7665    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7666echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7667    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7668echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7669    ac_header_preproc=yes
7670    ;;
7671  no:yes:* )
7672    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7673echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7674    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7675echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7676    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7677echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7678    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7679echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7680    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7681echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7682    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7683echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7684    (
7685      cat <<\_ASBOX
7686## --------------------------------- ##
7687## Report this to belotti@lehigh.edu ##
7688## --------------------------------- ##
7689_ASBOX
7690    ) |
7691      sed "s/^/$as_me: WARNING:     /" >&2
7692    ;;
7693esac
7694echo "$as_me:$LINENO: checking for $ac_header" >&5
7695echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7696if eval "test \"\${$as_ac_Header+set}\" = set"; then
7697  echo $ECHO_N "(cached) $ECHO_C" >&6
7698else
7699  eval "$as_ac_Header=\$ac_header_preproc"
7700fi
7701echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7702echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7703
7704fi
7705if test `eval echo '${'$as_ac_Header'}'` = yes; then
7706  cat >>confdefs.h <<_ACEOF
7707#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7708_ACEOF
7709
7710fi
7711
7712done
7713
7714
7715
7716if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7717    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7718    (test "X$CXX" != "Xg++"))) ; then
7719  ac_ext=cc
7720ac_cpp='$CXXCPP $CPPFLAGS'
7721ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7722ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7723ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7724echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7725echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7726if test -z "$CXXCPP"; then
7727  if test "${ac_cv_prog_CXXCPP+set}" = set; then
7728  echo $ECHO_N "(cached) $ECHO_C" >&6
7729else
7730      # Double quotes because CXXCPP needs to be expanded
7731    for CXXCPP in "$CXX -E" "/lib/cpp"
7732    do
7733      ac_preproc_ok=false
7734for ac_cxx_preproc_warn_flag in '' yes
7735do
7736  # Use a header file that comes with gcc, so configuring glibc
7737  # with a fresh cross-compiler works.
7738  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7739  # <limits.h> exists even on freestanding compilers.
7740  # On the NeXT, cc -E runs the code through the compiler's parser,
7741  # not just through cpp. "Syntax error" is here to catch this case.
7742  cat >conftest.$ac_ext <<_ACEOF
7743/* confdefs.h.  */
7744_ACEOF
7745cat confdefs.h >>conftest.$ac_ext
7746cat >>conftest.$ac_ext <<_ACEOF
7747/* end confdefs.h.  */
7748#ifdef __STDC__
7749# include <limits.h>
7750#else
7751# include <assert.h>
7752#endif
7753                     Syntax error
7754_ACEOF
7755if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7756  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7757  ac_status=$?
7758  grep -v '^ *+' conftest.er1 >conftest.err
7759  rm -f conftest.er1
7760  cat conftest.err >&5
7761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762  (exit $ac_status); } >/dev/null; then
7763  if test -s conftest.err; then
7764    ac_cpp_err=$ac_cxx_preproc_warn_flag
7765    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7766  else
7767    ac_cpp_err=
7768  fi
7769else
7770  ac_cpp_err=yes
7771fi
7772if test -z "$ac_cpp_err"; then
7773  :
7774else
7775  echo "$as_me: failed program was:" >&5
7776sed 's/^/| /' conftest.$ac_ext >&5
7777
7778  # Broken: fails on valid input.
7779continue
7780fi
7781rm -f conftest.err conftest.$ac_ext
7782
7783  # OK, works on sane cases.  Now check whether non-existent headers
7784  # can be detected and how.
7785  cat >conftest.$ac_ext <<_ACEOF
7786/* confdefs.h.  */
7787_ACEOF
7788cat confdefs.h >>conftest.$ac_ext
7789cat >>conftest.$ac_ext <<_ACEOF
7790/* end confdefs.h.  */
7791#include <ac_nonexistent.h>
7792_ACEOF
7793if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7794  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7795  ac_status=$?
7796  grep -v '^ *+' conftest.er1 >conftest.err
7797  rm -f conftest.er1
7798  cat conftest.err >&5
7799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7800  (exit $ac_status); } >/dev/null; then
7801  if test -s conftest.err; then
7802    ac_cpp_err=$ac_cxx_preproc_warn_flag
7803    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7804  else
7805    ac_cpp_err=
7806  fi
7807else
7808  ac_cpp_err=yes
7809fi
7810if test -z "$ac_cpp_err"; then
7811  # Broken: success on invalid input.
7812continue
7813else
7814  echo "$as_me: failed program was:" >&5
7815sed 's/^/| /' conftest.$ac_ext >&5
7816
7817  # Passes both tests.
7818ac_preproc_ok=:
7819break
7820fi
7821rm -f conftest.err conftest.$ac_ext
7822
7823done
7824# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7825rm -f conftest.err conftest.$ac_ext
7826if $ac_preproc_ok; then
7827  break
7828fi
7829
7830    done
7831    ac_cv_prog_CXXCPP=$CXXCPP
7832
7833fi
7834  CXXCPP=$ac_cv_prog_CXXCPP
7835else
7836  ac_cv_prog_CXXCPP=$CXXCPP
7837fi
7838echo "$as_me:$LINENO: result: $CXXCPP" >&5
7839echo "${ECHO_T}$CXXCPP" >&6
7840ac_preproc_ok=false
7841for ac_cxx_preproc_warn_flag in '' yes
7842do
7843  # Use a header file that comes with gcc, so configuring glibc
7844  # with a fresh cross-compiler works.
7845  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7846  # <limits.h> exists even on freestanding compilers.
7847  # On the NeXT, cc -E runs the code through the compiler's parser,
7848  # not just through cpp. "Syntax error" is here to catch this case.
7849  cat >conftest.$ac_ext <<_ACEOF
7850/* confdefs.h.  */
7851_ACEOF
7852cat confdefs.h >>conftest.$ac_ext
7853cat >>conftest.$ac_ext <<_ACEOF
7854/* end confdefs.h.  */
7855#ifdef __STDC__
7856# include <limits.h>
7857#else
7858# include <assert.h>
7859#endif
7860                     Syntax error
7861_ACEOF
7862if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7863  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7864  ac_status=$?
7865  grep -v '^ *+' conftest.er1 >conftest.err
7866  rm -f conftest.er1
7867  cat conftest.err >&5
7868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7869  (exit $ac_status); } >/dev/null; then
7870  if test -s conftest.err; then
7871    ac_cpp_err=$ac_cxx_preproc_warn_flag
7872    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7873  else
7874    ac_cpp_err=
7875  fi
7876else
7877  ac_cpp_err=yes
7878fi
7879if test -z "$ac_cpp_err"; then
7880  :
7881else
7882  echo "$as_me: failed program was:" >&5
7883sed 's/^/| /' conftest.$ac_ext >&5
7884
7885  # Broken: fails on valid input.
7886continue
7887fi
7888rm -f conftest.err conftest.$ac_ext
7889
7890  # OK, works on sane cases.  Now check whether non-existent headers
7891  # can be detected and how.
7892  cat >conftest.$ac_ext <<_ACEOF
7893/* confdefs.h.  */
7894_ACEOF
7895cat confdefs.h >>conftest.$ac_ext
7896cat >>conftest.$ac_ext <<_ACEOF
7897/* end confdefs.h.  */
7898#include <ac_nonexistent.h>
7899_ACEOF
7900if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7901  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7902  ac_status=$?
7903  grep -v '^ *+' conftest.er1 >conftest.err
7904  rm -f conftest.er1
7905  cat conftest.err >&5
7906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907  (exit $ac_status); } >/dev/null; then
7908  if test -s conftest.err; then
7909    ac_cpp_err=$ac_cxx_preproc_warn_flag
7910    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7911  else
7912    ac_cpp_err=
7913  fi
7914else
7915  ac_cpp_err=yes
7916fi
7917if test -z "$ac_cpp_err"; then
7918  # Broken: success on invalid input.
7919continue
7920else
7921  echo "$as_me: failed program was:" >&5
7922sed 's/^/| /' conftest.$ac_ext >&5
7923
7924  # Passes both tests.
7925ac_preproc_ok=:
7926break
7927fi
7928rm -f conftest.err conftest.$ac_ext
7929
7930done
7931# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7932rm -f conftest.err conftest.$ac_ext
7933if $ac_preproc_ok; then
7934  :
7935else
7936  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7937See \`config.log' for more details." >&5
7938echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7939See \`config.log' for more details." >&2;}
7940   { (exit 1); exit 1; }; }
7941fi
7942
7943ac_ext=cc
7944ac_cpp='$CXXCPP $CPPFLAGS'
7945ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7946ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7947ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7948
7949fi
7950
7951ac_ext=f
7952ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7953ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7954ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7955if test -n "$ac_tool_prefix"; then
7956  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7957  do
7958    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7959set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7960echo "$as_me:$LINENO: checking for $ac_word" >&5
7961echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7962if test "${ac_cv_prog_F77+set}" = set; then
7963  echo $ECHO_N "(cached) $ECHO_C" >&6
7964else
7965  if test -n "$F77"; then
7966  ac_cv_prog_F77="$F77" # Let the user override the test.
7967else
7968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7969for as_dir in $PATH
7970do
7971  IFS=$as_save_IFS
7972  test -z "$as_dir" && as_dir=.
7973  for ac_exec_ext in '' $ac_executable_extensions; do
7974  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7975    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7976    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7977    break 2
7978  fi
7979done
7980done
7981
7982fi
7983fi
7984F77=$ac_cv_prog_F77
7985if test -n "$F77"; then
7986  echo "$as_me:$LINENO: result: $F77" >&5
7987echo "${ECHO_T}$F77" >&6
7988else
7989  echo "$as_me:$LINENO: result: no" >&5
7990echo "${ECHO_T}no" >&6
7991fi
7992
7993    test -n "$F77" && break
7994  done
7995fi
7996if test -z "$F77"; then
7997  ac_ct_F77=$F77
7998  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7999do
8000  # Extract the first word of "$ac_prog", so it can be a program name with args.
8001set dummy $ac_prog; ac_word=$2
8002echo "$as_me:$LINENO: checking for $ac_word" >&5
8003echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8004if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
8005  echo $ECHO_N "(cached) $ECHO_C" >&6
8006else
8007  if test -n "$ac_ct_F77"; then
8008  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
8009else
8010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8011for as_dir in $PATH
8012do
8013  IFS=$as_save_IFS
8014  test -z "$as_dir" && as_dir=.
8015  for ac_exec_ext in '' $ac_executable_extensions; do
8016  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8017    ac_cv_prog_ac_ct_F77="$ac_prog"
8018    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8019    break 2
8020  fi
8021done
8022done
8023
8024fi
8025fi
8026ac_ct_F77=$ac_cv_prog_ac_ct_F77
8027if test -n "$ac_ct_F77"; then
8028  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
8029echo "${ECHO_T}$ac_ct_F77" >&6
8030else
8031  echo "$as_me:$LINENO: result: no" >&5
8032echo "${ECHO_T}no" >&6
8033fi
8034
8035  test -n "$ac_ct_F77" && break
8036done
8037
8038  F77=$ac_ct_F77
8039fi
8040
8041
8042# Provide some information about the compiler.
8043echo "$as_me:8043:" \
8044     "checking for Fortran 77 compiler version" >&5
8045ac_compiler=`set X $ac_compile; echo $2`
8046{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
8047  (eval $ac_compiler --version </dev/null >&5) 2>&5
8048  ac_status=$?
8049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050  (exit $ac_status); }
8051{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
8052  (eval $ac_compiler -v </dev/null >&5) 2>&5
8053  ac_status=$?
8054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055  (exit $ac_status); }
8056{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
8057  (eval $ac_compiler -V </dev/null >&5) 2>&5
8058  ac_status=$?
8059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060  (exit $ac_status); }
8061rm -f a.out
8062
8063# If we don't use `.F' as extension, the preprocessor is not run on the
8064# input file.  (Note that this only needs to work for GNU compilers.)
8065ac_save_ext=$ac_ext
8066ac_ext=F
8067echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
8068echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
8069if test "${ac_cv_f77_compiler_gnu+set}" = set; then
8070  echo $ECHO_N "(cached) $ECHO_C" >&6
8071else
8072  cat >conftest.$ac_ext <<_ACEOF
8073      program main
8074#ifndef __GNUC__
8075       choke me
8076#endif
8077
8078      end
8079_ACEOF
8080rm -f conftest.$ac_objext
8081if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8082  (eval $ac_compile) 2>conftest.er1
8083  ac_status=$?
8084  grep -v '^ *+' conftest.er1 >conftest.err
8085  rm -f conftest.er1
8086  cat conftest.err >&5
8087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088  (exit $ac_status); } &&
8089         { ac_try='test -z "$ac_f77_werror_flag"
8090                         || test ! -s conftest.err'
8091  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8092  (eval $ac_try) 2>&5
8093  ac_status=$?
8094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8095  (exit $ac_status); }; } &&
8096         { ac_try='test -s conftest.$ac_objext'
8097  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8098  (eval $ac_try) 2>&5
8099  ac_status=$?
8100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8101  (exit $ac_status); }; }; then
8102  ac_compiler_gnu=yes
8103else
8104  echo "$as_me: failed program was:" >&5
8105sed 's/^/| /' conftest.$ac_ext >&5
8106
8107ac_compiler_gnu=no
8108fi
8109rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8110ac_cv_f77_compiler_gnu=$ac_compiler_gnu
8111
8112fi
8113echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
8114echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
8115ac_ext=$ac_save_ext
8116ac_test_FFLAGS=${FFLAGS+set}
8117ac_save_FFLAGS=$FFLAGS
8118FFLAGS=
8119echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
8120echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
8121if test "${ac_cv_prog_f77_g+set}" = set; then
8122  echo $ECHO_N "(cached) $ECHO_C" >&6
8123else
8124  FFLAGS=-g
8125cat >conftest.$ac_ext <<_ACEOF
8126      program main
8127
8128      end
8129_ACEOF
8130rm -f conftest.$ac_objext
8131if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8132  (eval $ac_compile) 2>conftest.er1
8133  ac_status=$?
8134  grep -v '^ *+' conftest.er1 >conftest.err
8135  rm -f conftest.er1
8136  cat conftest.err >&5
8137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138  (exit $ac_status); } &&
8139         { ac_try='test -z "$ac_f77_werror_flag"
8140                         || test ! -s conftest.err'
8141  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8142  (eval $ac_try) 2>&5
8143  ac_status=$?
8144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145  (exit $ac_status); }; } &&
8146         { ac_try='test -s conftest.$ac_objext'
8147  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8148  (eval $ac_try) 2>&5
8149  ac_status=$?
8150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151  (exit $ac_status); }; }; then
8152  ac_cv_prog_f77_g=yes
8153else
8154  echo "$as_me: failed program was:" >&5
8155sed 's/^/| /' conftest.$ac_ext >&5
8156
8157ac_cv_prog_f77_g=no
8158fi
8159rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8160
8161fi
8162echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
8163echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
8164if test "$ac_test_FFLAGS" = set; then
8165  FFLAGS=$ac_save_FFLAGS
8166elif test $ac_cv_prog_f77_g = yes; then
8167  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
8168    FFLAGS="-g -O2"
8169  else
8170    FFLAGS="-g"
8171  fi
8172else
8173  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
8174    FFLAGS="-O2"
8175  else
8176    FFLAGS=
8177  fi
8178fi
8179
8180G77=`test $ac_compiler_gnu = yes && echo yes`
8181ac_ext=c
8182ac_cpp='$CPP $CPPFLAGS'
8183ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8184ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8185ac_compiler_gnu=$ac_cv_c_compiler_gnu
8186
8187
8188
8189# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
8190
8191# find the maximum length of command line arguments
8192echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
8193echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
8194if test "${lt_cv_sys_max_cmd_len+set}" = set; then
8195  echo $ECHO_N "(cached) $ECHO_C" >&6
8196else
8197    i=0
8198  teststring="ABCD"
8199
8200  case $build_os in
8201  msdosdjgpp*)
8202    # On DJGPP, this test can blow up pretty badly due to problems in libc
8203    # (any single argument exceeding 2000 bytes causes a buffer overrun
8204    # during glob expansion).  Even if it were fixed, the result of this
8205    # check would be larger than it should be.
8206    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8207    ;;
8208
8209  gnu*)
8210    # Under GNU Hurd, this test is not required because there is
8211    # no limit to the length of command line arguments.
8212    # Libtool will interpret -1 as no limit whatsoever
8213    lt_cv_sys_max_cmd_len=-1;
8214    ;;
8215
8216  cygwin* | mingw*)
8217    # On Win9x/ME, this test blows up -- it succeeds, but takes
8218    # about 5 minutes as the teststring grows exponentially.
8219    # Worse, since 9x/ME are not pre-emptively multitasking,
8220    # you end up with a "frozen" computer, even though with patience
8221    # the test eventually succeeds (with a max line length of 256k).
8222    # Instead, let's just punt: use the minimum linelength reported by
8223    # all of the supported platforms: 8192 (on NT/2K/XP).
8224    lt_cv_sys_max_cmd_len=8192;
8225    ;;
8226
8227  amigaos*)
8228    # On AmigaOS with pdksh, this test takes hours, literally.
8229    # So we just punt and use a minimum line length of 8192.
8230    lt_cv_sys_max_cmd_len=8192;
8231    ;;
8232
8233  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8234    # This has been around since 386BSD, at least.  Likely further.
8235    if test -x /sbin/sysctl; then
8236      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8237    elif test -x /usr/sbin/sysctl; then
8238      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8239    else
8240      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
8241    fi
8242    # And add a safety zone
8243    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8244    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8245    ;;
8246
8247  interix*)
8248    # We know the value 262144 and hardcode it with a safety zone (like BSD)
8249    lt_cv_sys_max_cmd_len=196608
8250    ;;
8251
8252  osf*)
8253    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8254    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8255    # nice to cause kernel panics so lets avoid the loop below.
8256    # First set a reasonable default.
8257    lt_cv_sys_max_cmd_len=16384
8258    #
8259    if test -x /sbin/sysconfig; then
8260      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8261        *1*) lt_cv_sys_max_cmd_len=-1 ;;
8262      esac
8263    fi
8264    ;;
8265  sco3.2v5*)
8266    lt_cv_sys_max_cmd_len=102400
8267    ;;
8268  sysv5* | sco5v6* | sysv4.2uw2*)
8269    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8270    if test -n "$kargmax"; then
8271      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
8272    else
8273      lt_cv_sys_max_cmd_len=32768
8274    fi
8275    ;;
8276  *)
8277    # If test is not a shell built-in, we'll probably end up computing a
8278    # maximum length that is only half of the actual maximum length, but
8279    # we can't tell.
8280    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8281    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
8282               = "XX$teststring") >/dev/null 2>&1 &&
8283            new_result=`expr "X$teststring" : ".*" 2>&1` &&
8284            lt_cv_sys_max_cmd_len=$new_result &&
8285            test $i != 17 # 1/2 MB should be enough
8286    do
8287      i=`expr $i + 1`
8288      teststring=$teststring$teststring
8289    done
8290    teststring=
8291    # Add a significant safety factor because C++ compilers can tack on massive
8292    # amounts of additional arguments before passing them to the linker.
8293    # It appears as though 1/2 is a usable value.
8294    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8295    ;;
8296  esac
8297
8298fi
8299
8300if test -n $lt_cv_sys_max_cmd_len ; then
8301  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
8302echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
8303else
8304  echo "$as_me:$LINENO: result: none" >&5
8305echo "${ECHO_T}none" >&6
8306fi
8307
8308
8309
8310
8311# Check for command to grab the raw symbol name followed by C symbol from nm.
8312echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
8313echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
8314if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
8315  echo $ECHO_N "(cached) $ECHO_C" >&6
8316else
8317
8318# These are sane defaults that work on at least a few old systems.
8319# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8320
8321# Character class describing NM global symbol codes.
8322symcode='[BCDEGRST]'
8323
8324# Regexp to match symbols that can be accessed directly from C.
8325sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8326
8327# Transform an extracted symbol line into a proper C declaration
8328lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
8329
8330# Transform an extracted symbol line into symbol name and symbol address
8331lt_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'"
8332
8333# Define system-specific variables.
8334case $host_os in
8335aix*)
8336  symcode='[BCDT]'
8337  ;;
8338cygwin* | mingw* | pw32*)
8339  symcode='[ABCDGISTW]'
8340  ;;
8341hpux*) # Its linker distinguishes data from code symbols
8342  if test "$host_cpu" = ia64; then
8343    symcode='[ABCDEGRST]'
8344  fi
8345  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8346  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'"
8347  ;;
8348linux*)
8349  if test "$host_cpu" = ia64; then
8350    symcode='[ABCDGIRSTW]'
8351    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8352    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'"
8353  fi
8354  ;;
8355irix* | nonstopux*)
8356  symcode='[BCDEGRST]'
8357  ;;
8358osf*)
8359  symcode='[BCDEGQRST]'
8360  ;;
8361solaris*)
8362  symcode='[BDRT]'
8363  ;;
8364sco3.2v5*)
8365  symcode='[DT]'
8366  ;;
8367sysv4.2uw2*)
8368  symcode='[DT]'
8369  ;;
8370sysv5* | sco5v6* | unixware* | OpenUNIX*)
8371  symcode='[ABDT]'
8372  ;;
8373sysv4)
8374  symcode='[DFNSTU]'
8375  ;;
8376esac
8377
8378# Handle CRLF in mingw tool chain
8379opt_cr=
8380case $build_os in
8381mingw*)
8382  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8383  ;;
8384esac
8385
8386# If we're using GNU nm, then use its standard symbol codes.
8387case `$NM -V 2>&1` in
8388*GNU* | *'with BFD'*)
8389  symcode='[ABCDGIRSTW]' ;;
8390esac
8391
8392# Try without a prefix undercore, then with it.
8393for ac_symprfx in "" "_"; do
8394
8395  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8396  symxfrm="\\1 $ac_symprfx\\2 \\2"
8397
8398  # Write the raw and C identifiers.
8399  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8400
8401  # Check to see that the pipe works correctly.
8402  pipe_works=no
8403
8404  rm -f conftest*
8405  cat > conftest.$ac_ext <<EOF
8406#ifdef __cplusplus
8407extern "C" {
8408#endif
8409char nm_test_var;
8410void nm_test_func(){}
8411#ifdef __cplusplus
8412}
8413#endif
8414int main(){nm_test_var='a';nm_test_func();return(0);}
8415EOF
8416
8417  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8418  (eval $ac_compile) 2>&5
8419  ac_status=$?
8420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421  (exit $ac_status); }; then
8422    # Now try to grab the symbols.
8423    nlist=conftest.nm
8424    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
8425  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8426  ac_status=$?
8427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8428  (exit $ac_status); } && test -s "$nlist"; then
8429      # Try sorting and uniquifying the output.
8430      if sort "$nlist" | uniq > "$nlist"T; then
8431        mv -f "$nlist"T "$nlist"
8432      else
8433        rm -f "$nlist"T
8434      fi
8435
8436      # Make sure that we snagged all the symbols we need.
8437      if grep ' nm_test_var$' "$nlist" >/dev/null; then
8438        if grep ' nm_test_func$' "$nlist" >/dev/null; then
8439          cat <<EOF > conftest.$ac_ext
8440#ifdef __cplusplus
8441extern "C" {
8442#endif
8443
8444EOF
8445          # Now generate the symbol file.
8446          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
8447
8448          cat <<EOF >> conftest.$ac_ext
8449#if defined (__STDC__) && __STDC__
8450# define lt_ptr_t void *
8451#else
8452# define lt_ptr_t char *
8453# define const
8454#endif
8455
8456/* The mapping between symbol names and symbols. */
8457const struct {
8458  const char *name;
8459  lt_ptr_t address;
8460}
8461lt_preloaded_symbols[] =
8462{
8463EOF
8464          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
8465          cat <<\EOF >> conftest.$ac_ext
8466  {0, (lt_ptr_t) 0}
8467};
8468
8469#ifdef __cplusplus
8470}
8471#endif
8472EOF
8473          # Now try linking the two files.
8474          mv conftest.$ac_objext conftstm.$ac_objext
8475          lt_save_LIBS="$LIBS"
8476          lt_save_CFLAGS="$CFLAGS"
8477          LIBS="conftstm.$ac_objext"
8478          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8479          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8480  (eval $ac_link) 2>&5
8481  ac_status=$?
8482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483  (exit $ac_status); } && test -s conftest${ac_exeext}; then
8484            pipe_works=yes
8485          fi
8486          LIBS="$lt_save_LIBS"
8487          CFLAGS="$lt_save_CFLAGS"
8488        else
8489          echo "cannot find nm_test_func in $nlist" >&5
8490        fi
8491      else
8492        echo "cannot find nm_test_var in $nlist" >&5
8493      fi
8494    else
8495      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8496    fi
8497  else
8498    echo "$progname: failed program was:" >&5
8499    cat conftest.$ac_ext >&5
8500  fi
8501  rm -f conftest* conftst*
8502
8503  # Do not use the global_symbol_pipe unless it works.
8504  if test "$pipe_works" = yes; then
8505    break
8506  else
8507    lt_cv_sys_global_symbol_pipe=
8508  fi
8509done
8510
8511fi
8512
8513if test -z "$lt_cv_sys_global_symbol_pipe"; then
8514  lt_cv_sys_global_symbol_to_cdecl=
8515fi
8516if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8517  echo "$as_me:$LINENO: result: failed" >&5
8518echo "${ECHO_T}failed" >&6
8519else
8520  echo "$as_me:$LINENO: result: ok" >&5
8521echo "${ECHO_T}ok" >&6
8522fi
8523
8524echo "$as_me:$LINENO: checking for objdir" >&5
8525echo $ECHO_N "checking for objdir... $ECHO_C" >&6
8526if test "${lt_cv_objdir+set}" = set; then
8527  echo $ECHO_N "(cached) $ECHO_C" >&6
8528else
8529  rm -f .libs 2>/dev/null
8530mkdir .libs 2>/dev/null
8531if test -d .libs; then
8532  lt_cv_objdir=.libs
8533else
8534  # MS-DOS does not allow filenames that begin with a dot.
8535  lt_cv_objdir=_libs
8536fi
8537rmdir .libs 2>/dev/null
8538fi
8539echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8540echo "${ECHO_T}$lt_cv_objdir" >&6
8541objdir=$lt_cv_objdir
8542
8543
8544
8545
8546
8547case $host_os in
8548aix3*)
8549  # AIX sometimes has problems with the GCC collect2 program.  For some
8550  # reason, if we set the COLLECT_NAMES environment variable, the problems
8551  # vanish in a puff of smoke.
8552  if test "X${COLLECT_NAMES+set}" != Xset; then
8553    COLLECT_NAMES=
8554    export COLLECT_NAMES
8555  fi
8556  ;;
8557esac
8558
8559# Sed substitution that helps us do robust quoting.  It backslashifies
8560# metacharacters that are still active within double-quoted strings.
8561Xsed='sed -e 1s/^X//'
8562sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8563
8564# Same as above, but do not quote variable references.
8565double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8566
8567# Sed substitution to delay expansion of an escaped shell variable in a
8568# double_quote_subst'ed string.
8569delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8570
8571# Sed substitution to avoid accidental globbing in evaled expressions
8572no_glob_subst='s/\*/\\\*/g'
8573
8574# Constants:
8575rm="rm -f"
8576
8577# Global variables:
8578default_ofile=libtool
8579can_build_shared=yes
8580
8581# All known linkers require a `.a' archive for static linking (except MSVC,
8582# which needs '.lib').
8583libext=a
8584ltmain="$ac_aux_dir/ltmain.sh"
8585ofile="$default_ofile"
8586with_gnu_ld="$lt_cv_prog_gnu_ld"
8587
8588if test -n "$ac_tool_prefix"; then
8589  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8590set dummy ${ac_tool_prefix}ar; ac_word=$2
8591echo "$as_me:$LINENO: checking for $ac_word" >&5
8592echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8593if test "${ac_cv_prog_AR+set}" = set; then
8594  echo $ECHO_N "(cached) $ECHO_C" >&6
8595else
8596  if test -n "$AR"; then
8597  ac_cv_prog_AR="$AR" # Let the user override the test.
8598else
8599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8600for as_dir in $PATH
8601do
8602  IFS=$as_save_IFS
8603  test -z "$as_dir" && as_dir=.
8604  for ac_exec_ext in '' $ac_executable_extensions; do
8605  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8606    ac_cv_prog_AR="${ac_tool_prefix}ar"
8607    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8608    break 2
8609  fi
8610done
8611done
8612
8613fi
8614fi
8615AR=$ac_cv_prog_AR
8616if test -n "$AR"; then
8617  echo "$as_me:$LINENO: result: $AR" >&5
8618echo "${ECHO_T}$AR" >&6
8619else
8620  echo "$as_me:$LINENO: result: no" >&5
8621echo "${ECHO_T}no" >&6
8622fi
8623
8624fi
8625if test -z "$ac_cv_prog_AR"; then
8626  ac_ct_AR=$AR
8627  # Extract the first word of "ar", so it can be a program name with args.
8628set dummy ar; ac_word=$2
8629echo "$as_me:$LINENO: checking for $ac_word" >&5
8630echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8631if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8632  echo $ECHO_N "(cached) $ECHO_C" >&6
8633else
8634  if test -n "$ac_ct_AR"; then
8635  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8636else
8637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8638for as_dir in $PATH
8639do
8640  IFS=$as_save_IFS
8641  test -z "$as_dir" && as_dir=.
8642  for ac_exec_ext in '' $ac_executable_extensions; do
8643  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8644    ac_cv_prog_ac_ct_AR="ar"
8645    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8646    break 2
8647  fi
8648done
8649done
8650
8651  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
8652fi
8653fi
8654ac_ct_AR=$ac_cv_prog_ac_ct_AR
8655if test -n "$ac_ct_AR"; then
8656  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8657echo "${ECHO_T}$ac_ct_AR" >&6
8658else
8659  echo "$as_me:$LINENO: result: no" >&5
8660echo "${ECHO_T}no" >&6
8661fi
8662
8663  AR=$ac_ct_AR
8664else
8665  AR="$ac_cv_prog_AR"
8666fi
8667
8668if test -n "$ac_tool_prefix"; then
8669  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8670set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8671echo "$as_me:$LINENO: checking for $ac_word" >&5
8672echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8673if test "${ac_cv_prog_RANLIB+set}" = set; then
8674  echo $ECHO_N "(cached) $ECHO_C" >&6
8675else
8676  if test -n "$RANLIB"; then
8677  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8678else
8679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8680for as_dir in $PATH
8681do
8682  IFS=$as_save_IFS
8683  test -z "$as_dir" && as_dir=.
8684  for ac_exec_ext in '' $ac_executable_extensions; do
8685  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8686    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8687    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8688    break 2
8689  fi
8690done
8691done
8692
8693fi
8694fi
8695RANLIB=$ac_cv_prog_RANLIB
8696if test -n "$RANLIB"; then
8697  echo "$as_me:$LINENO: result: $RANLIB" >&5
8698echo "${ECHO_T}$RANLIB" >&6
8699else
8700  echo "$as_me:$LINENO: result: no" >&5
8701echo "${ECHO_T}no" >&6
8702fi
8703
8704fi
8705if test -z "$ac_cv_prog_RANLIB"; then
8706  ac_ct_RANLIB=$RANLIB
8707  # Extract the first word of "ranlib", so it can be a program name with args.
8708set dummy ranlib; ac_word=$2
8709echo "$as_me:$LINENO: checking for $ac_word" >&5
8710echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8711if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8712  echo $ECHO_N "(cached) $ECHO_C" >&6
8713else
8714  if test -n "$ac_ct_RANLIB"; then
8715  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8716else
8717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8718for as_dir in $PATH
8719do
8720  IFS=$as_save_IFS
8721  test -z "$as_dir" && as_dir=.
8722  for ac_exec_ext in '' $ac_executable_extensions; do
8723  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8724    ac_cv_prog_ac_ct_RANLIB="ranlib"
8725    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8726    break 2
8727  fi
8728done
8729done
8730
8731  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8732fi
8733fi
8734ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8735if test -n "$ac_ct_RANLIB"; then
8736  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8737echo "${ECHO_T}$ac_ct_RANLIB" >&6
8738else
8739  echo "$as_me:$LINENO: result: no" >&5
8740echo "${ECHO_T}no" >&6
8741fi
8742
8743  RANLIB=$ac_ct_RANLIB
8744else
8745  RANLIB="$ac_cv_prog_RANLIB"
8746fi
8747
8748if test -n "$ac_tool_prefix"; then
8749  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8750set dummy ${ac_tool_prefix}strip; ac_word=$2
8751echo "$as_me:$LINENO: checking for $ac_word" >&5
8752echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8753if test "${ac_cv_prog_STRIP+set}" = set; then
8754  echo $ECHO_N "(cached) $ECHO_C" >&6
8755else
8756  if test -n "$STRIP"; then
8757  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8758else
8759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8760for as_dir in $PATH
8761do
8762  IFS=$as_save_IFS
8763  test -z "$as_dir" && as_dir=.
8764  for ac_exec_ext in '' $ac_executable_extensions; do
8765  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8766    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8767    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8768    break 2
8769  fi
8770done
8771done
8772
8773fi
8774fi
8775STRIP=$ac_cv_prog_STRIP
8776if test -n "$STRIP"; then
8777  echo "$as_me:$LINENO: result: $STRIP" >&5
8778echo "${ECHO_T}$STRIP" >&6
8779else
8780  echo "$as_me:$LINENO: result: no" >&5
8781echo "${ECHO_T}no" >&6
8782fi
8783
8784fi
8785if test -z "$ac_cv_prog_STRIP"; then
8786  ac_ct_STRIP=$STRIP
8787  # Extract the first word of "strip", so it can be a program name with args.
8788set dummy strip; ac_word=$2
8789echo "$as_me:$LINENO: checking for $ac_word" >&5
8790echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8791if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8792  echo $ECHO_N "(cached) $ECHO_C" >&6
8793else
8794  if test -n "$ac_ct_STRIP"; then
8795  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8796else
8797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8798for as_dir in $PATH
8799do
8800  IFS=$as_save_IFS
8801  test -z "$as_dir" && as_dir=.
8802  for ac_exec_ext in '' $ac_executable_extensions; do
8803  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8804    ac_cv_prog_ac_ct_STRIP="strip"
8805    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8806    break 2
8807  fi
8808done
8809done
8810
8811  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8812fi
8813fi
8814ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8815if test -n "$ac_ct_STRIP"; then
8816  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8817echo "${ECHO_T}$ac_ct_STRIP" >&6
8818else
8819  echo "$as_me:$LINENO: result: no" >&5
8820echo "${ECHO_T}no" >&6
8821fi
8822
8823  STRIP=$ac_ct_STRIP
8824else
8825  STRIP="$ac_cv_prog_STRIP"
8826fi
8827
8828
8829old_CC="$CC"
8830old_CFLAGS="$CFLAGS"
8831
8832# Set sane defaults for various variables
8833test -z "$AR" && AR=ar
8834test -z "$AR_FLAGS" && AR_FLAGS=cru
8835test -z "$AS" && AS=as
8836test -z "$CC" && CC=cc
8837test -z "$LTCC" && LTCC=$CC
8838test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8839test -z "$DLLTOOL" && DLLTOOL=dlltool
8840test -z "$LD" && LD=ld
8841test -z "$LN_S" && LN_S="ln -s"
8842test -z "$MAGIC_CMD" && MAGIC_CMD=file
8843test -z "$NM" && NM=nm
8844test -z "$SED" && SED=sed
8845test -z "$OBJDUMP" && OBJDUMP=objdump
8846test -z "$RANLIB" && RANLIB=:
8847test -z "$STRIP" && STRIP=:
8848test -z "$ac_objext" && ac_objext=o
8849
8850# Determine commands to create old-style static archives.
8851old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8852old_postinstall_cmds='chmod 644 $oldlib'
8853old_postuninstall_cmds=
8854
8855if test -n "$RANLIB"; then
8856  case $host_os in
8857  openbsd*)
8858    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8859    ;;
8860  *)
8861    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8862    ;;
8863  esac
8864  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8865fi
8866
8867for cc_temp in $compiler""; do
8868  case $cc_temp in
8869    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8870    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8871    \-*) ;;
8872    *) break;;
8873  esac
8874done
8875cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8876
8877
8878# Only perform the check for file, if the check method requires it
8879case $deplibs_check_method in
8880file_magic*)
8881  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8882    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8883echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8884if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8885  echo $ECHO_N "(cached) $ECHO_C" >&6
8886else
8887  case $MAGIC_CMD in
8888[\\/*] |  ?:[\\/]*)
8889  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8890  ;;
8891*)
8892  lt_save_MAGIC_CMD="$MAGIC_CMD"
8893  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8894  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8895  for ac_dir in $ac_dummy; do
8896    IFS="$lt_save_ifs"
8897    test -z "$ac_dir" && ac_dir=.
8898    if test -f $ac_dir/${ac_tool_prefix}file; then
8899      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8900      if test -n "$file_magic_test_file"; then
8901        case $deplibs_check_method in
8902        "file_magic "*)
8903          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8904          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8905          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8906            $EGREP "$file_magic_regex" > /dev/null; then
8907            :
8908          else
8909            cat <<EOF 1>&2
8910
8911*** Warning: the command libtool uses to detect shared libraries,
8912*** $file_magic_cmd, produces output that libtool cannot recognize.
8913*** The result is that libtool may fail to recognize shared libraries
8914*** as such.  This will affect the creation of libtool libraries that
8915*** depend on shared libraries, but programs linked with such libtool
8916*** libraries will work regardless of this problem.  Nevertheless, you
8917*** may want to report the problem to your system manager and/or to
8918*** bug-libtool@gnu.org
8919
8920EOF
8921          fi ;;
8922        esac
8923      fi
8924      break
8925    fi
8926  done
8927  IFS="$lt_save_ifs"
8928  MAGIC_CMD="$lt_save_MAGIC_CMD"
8929  ;;
8930esac
8931fi
8932
8933MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8934if test -n "$MAGIC_CMD"; then
8935  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8936echo "${ECHO_T}$MAGIC_CMD" >&6
8937else
8938  echo "$as_me:$LINENO: result: no" >&5
8939echo "${ECHO_T}no" >&6
8940fi
8941
8942if test -z "$lt_cv_path_MAGIC_CMD"; then
8943  if test -n "$ac_tool_prefix"; then
8944    echo "$as_me:$LINENO: checking for file" >&5
8945echo $ECHO_N "checking for file... $ECHO_C" >&6
8946if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8947  echo $ECHO_N "(cached) $ECHO_C" >&6
8948else
8949  case $MAGIC_CMD in
8950[\\/*] |  ?:[\\/]*)
8951  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8952  ;;
8953*)
8954  lt_save_MAGIC_CMD="$MAGIC_CMD"
8955  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8956  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8957  for ac_dir in $ac_dummy; do
8958    IFS="$lt_save_ifs"
8959    test -z "$ac_dir" && ac_dir=.
8960    if test -f $ac_dir/file; then
8961      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8962      if test -n "$file_magic_test_file"; then
8963        case $deplibs_check_method in
8964        "file_magic "*)
8965          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8966          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8967          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8968            $EGREP "$file_magic_regex" > /dev/null; then
8969            :
8970          else
8971            cat <<EOF 1>&2
8972
8973*** Warning: the command libtool uses to detect shared libraries,
8974*** $file_magic_cmd, produces output that libtool cannot recognize.
8975*** The result is that libtool may fail to recognize shared libraries
8976*** as such.  This will affect the creation of libtool libraries that
8977*** depend on shared libraries, but programs linked with such libtool
8978*** libraries will work regardless of this problem.  Nevertheless, you
8979*** may want to report the problem to your system manager and/or to
8980*** bug-libtool@gnu.org
8981
8982EOF
8983          fi ;;
8984        esac
8985      fi
8986      break
8987    fi
8988  done
8989  IFS="$lt_save_ifs"
8990  MAGIC_CMD="$lt_save_MAGIC_CMD"
8991  ;;
8992esac
8993fi
8994
8995MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8996if test -n "$MAGIC_CMD"; then
8997  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8998echo "${ECHO_T}$MAGIC_CMD" >&6
8999else
9000  echo "$as_me:$LINENO: result: no" >&5
9001echo "${ECHO_T}no" >&6
9002fi
9003
9004  else
9005    MAGIC_CMD=:
9006  fi
9007fi
9008
9009  fi
9010  ;;
9011esac
9012
9013enable_dlopen=no
9014enable_win32_dll=no
9015
9016# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
9017if test "${enable_libtool_lock+set}" = set; then
9018  enableval="$enable_libtool_lock"
9019
9020fi;
9021test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9022
9023
9024# Check whether --with-pic or --without-pic was given.
9025if test "${with_pic+set}" = set; then
9026  withval="$with_pic"
9027  pic_mode="$withval"
9028else
9029  pic_mode=default
9030fi;
9031test -z "$pic_mode" && pic_mode=default
9032
9033# Use C for the default configuration in the libtool script
9034tagname=
9035lt_save_CC="$CC"
9036ac_ext=c
9037ac_cpp='$CPP $CPPFLAGS'
9038ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9039ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9040ac_compiler_gnu=$ac_cv_c_compiler_gnu
9041
9042
9043# Source file extension for C test sources.
9044ac_ext=c
9045
9046# Object file extension for compiled C test sources.
9047objext=o
9048objext=$objext
9049
9050# Code to be used in simple compile tests
9051lt_simple_compile_test_code="int some_variable = 0;\n"
9052
9053# Code to be used in simple link tests
9054lt_simple_link_test_code='int main(){return(0);}\n'
9055
9056
9057# If no C compiler was specified, use CC.
9058LTCC=${LTCC-"$CC"}
9059
9060# If no C compiler flags were specified, use CFLAGS.
9061LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9062
9063# Allow CC to be a program name with arguments.
9064compiler=$CC
9065
9066
9067# save warnings/boilerplate of simple test code
9068ac_outfile=conftest.$ac_objext
9069printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9070eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9071_lt_compiler_boilerplate=`cat conftest.err`
9072$rm conftest*
9073
9074ac_outfile=conftest.$ac_objext
9075printf "$lt_simple_link_test_code" >conftest.$ac_ext
9076eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9077_lt_linker_boilerplate=`cat conftest.err`
9078$rm conftest*
9079
9080
9081## CAVEAT EMPTOR:
9082## There is no encapsulation within the following macros, do not change
9083## the running order or otherwise move them around unless you know exactly
9084## what you are doing...
9085
9086lt_prog_compiler_no_builtin_flag=
9087
9088if test "$GCC" = yes; then
9089  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9090
9091
9092echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9093echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
9094if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9095  echo $ECHO_N "(cached) $ECHO_C" >&6
9096else
9097  lt_cv_prog_compiler_rtti_exceptions=no
9098  ac_outfile=conftest.$ac_objext
9099   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9100   lt_compiler_flag="-fno-rtti -fno-exceptions"
9101   # Insert the option either (1) after the last *FLAGS variable, or
9102   # (2) before a word containing "conftest.", or (3) at the end.
9103   # Note that $ac_compile itself does not contain backslashes and begins
9104   # with a dollar sign (not a hyphen), so the echo should work correctly.
9105   # The option is referenced via a variable to avoid confusing sed.
9106   lt_compile=`echo "$ac_compile" | $SED \
9107   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9108   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9109   -e 's:$: $lt_compiler_flag:'`
9110   (eval echo "\"\$as_me:9110: $lt_compile\"" >&5)
9111   (eval "$lt_compile" 2>conftest.err)
9112   ac_status=$?
9113   cat conftest.err >&5
9114   echo "$as_me:9114: \$? = $ac_status" >&5
9115   if (exit $ac_status) && test -s "$ac_outfile"; then
9116     # The compiler can only warn and ignore the option if not recognized
9117     # So say no if there are warnings other than the usual output.
9118     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9119     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9120     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9121       lt_cv_prog_compiler_rtti_exceptions=yes
9122     fi
9123   fi
9124   $rm conftest*
9125
9126fi
9127echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9128echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
9129
9130if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9131    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9132else
9133    :
9134fi
9135
9136fi
9137
9138lt_prog_compiler_wl=
9139lt_prog_compiler_pic=
9140lt_prog_compiler_static=
9141
9142echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9143echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
9144
9145  if test "$GCC" = yes; then
9146    lt_prog_compiler_wl='-Wl,'
9147    lt_prog_compiler_static='-static'
9148
9149    case $host_os in
9150      aix*)
9151      # All AIX code is PIC.
9152      if test "$host_cpu" = ia64; then
9153        # AIX 5 now supports IA64 processor
9154        lt_prog_compiler_static='-Bstatic'
9155      fi
9156      ;;
9157
9158    amigaos*)
9159      # FIXME: we need at least 68020 code to build shared libraries, but
9160      # adding the `-m68020' flag to GCC prevents building anything better,
9161      # like `-m68040'.
9162      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9163      ;;
9164
9165    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9166      # PIC is the default for these OSes.
9167      ;;
9168
9169    mingw* | pw32* | os2*)
9170      # This hack is so that the source file can tell whether it is being
9171      # built for inclusion in a dll (and should export symbols for example).
9172      lt_prog_compiler_pic='-DDLL_EXPORT'
9173      ;;
9174
9175    darwin* | rhapsody*)
9176      # PIC is the default on this platform
9177      # Common symbols not allowed in MH_DYLIB files
9178      lt_prog_compiler_pic='-fno-common'
9179      ;;
9180
9181    interix3*)
9182      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9183      # Instead, we relocate shared libraries at runtime.
9184      ;;
9185
9186    msdosdjgpp*)
9187      # Just because we use GCC doesn't mean we suddenly get shared libraries
9188      # on systems that don't support them.
9189      lt_prog_compiler_can_build_shared=no
9190      enable_shared=no
9191      ;;
9192
9193    sysv4*MP*)
9194      if test -d /usr/nec; then
9195        lt_prog_compiler_pic=-Kconform_pic
9196      fi
9197      ;;
9198
9199    hpux*)
9200      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9201      # not for PA HP-UX.
9202      case $host_cpu in
9203      hppa*64*|ia64*)
9204        # +Z the default
9205        ;;
9206      *)
9207        lt_prog_compiler_pic='-fPIC'
9208        ;;
9209      esac
9210      ;;
9211
9212    *)
9213      lt_prog_compiler_pic='-fPIC'
9214      ;;
9215    esac
9216  else
9217    # PORTME Check for flag to pass linker flags through the system compiler.
9218    case $host_os in
9219    aix*)
9220      lt_prog_compiler_wl='-Wl,'
9221      if test "$host_cpu" = ia64; then
9222        # AIX 5 now supports IA64 processor
9223        lt_prog_compiler_static='-Bstatic'
9224      else
9225        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9226      fi
9227      ;;
9228      darwin*)
9229        # PIC is the default on this platform
9230        # Common symbols not allowed in MH_DYLIB files
9231       case $cc_basename in
9232         xlc*)
9233         lt_prog_compiler_pic='-qnocommon'
9234         lt_prog_compiler_wl='-Wl,'
9235         ;;
9236       esac
9237       ;;
9238
9239    mingw* | pw32* | os2*)
9240      # This hack is so that the source file can tell whether it is being
9241      # built for inclusion in a dll (and should export symbols for example).
9242      lt_prog_compiler_pic='-DDLL_EXPORT'
9243      ;;
9244
9245    hpux9* | hpux10* | hpux11*)
9246      lt_prog_compiler_wl='-Wl,'
9247      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9248      # not for PA HP-UX.
9249      case $host_cpu in
9250      hppa*64*|ia64*)
9251        # +Z the default
9252        ;;
9253      *)
9254        lt_prog_compiler_pic='+Z'
9255        ;;
9256      esac
9257      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9258      lt_prog_compiler_static='${wl}-a ${wl}archive'
9259      ;;
9260
9261    irix5* | irix6* | nonstopux*)
9262      lt_prog_compiler_wl='-Wl,'
9263      # PIC (with -KPIC) is the default.
9264      lt_prog_compiler_static='-non_shared'
9265      ;;
9266
9267    newsos6)
9268      lt_prog_compiler_pic='-KPIC'
9269      lt_prog_compiler_static='-Bstatic'
9270      ;;
9271
9272    linux*)
9273      case $cc_basename in
9274      icc* | ecc*)
9275        lt_prog_compiler_wl='-Wl,'
9276        lt_prog_compiler_pic='-KPIC'
9277        lt_prog_compiler_static='-static'
9278        ;;
9279      pgcc* | pgf77* | pgf90* | pgf95*)
9280        # Portland Group compilers (*not* the Pentium gcc compiler,
9281        # which looks to be a dead project)
9282        lt_prog_compiler_wl='-Wl,'
9283        lt_prog_compiler_pic='-fpic'
9284        lt_prog_compiler_static='-Bstatic'
9285        ;;
9286      ccc*)
9287        lt_prog_compiler_wl='-Wl,'
9288        # All Alpha code is PIC.
9289        lt_prog_compiler_static='-non_shared'
9290        ;;
9291      esac
9292      ;;
9293
9294    osf3* | osf4* | osf5*)
9295      lt_prog_compiler_wl='-Wl,'
9296      # All OSF/1 code is PIC.
9297      lt_prog_compiler_static='-non_shared'
9298      ;;
9299
9300    solaris*)
9301      lt_prog_compiler_pic='-KPIC'
9302      lt_prog_compiler_static='-Bstatic'
9303      case $cc_basename in
9304      f77* | f90* | f95*)
9305        lt_prog_compiler_wl='-Qoption ld ';;
9306      *)
9307        lt_prog_compiler_wl='-Wl,';;
9308      esac
9309      ;;
9310
9311    sunos4*)
9312      lt_prog_compiler_wl='-Qoption ld '
9313      lt_prog_compiler_pic='-PIC'
9314      lt_prog_compiler_static='-Bstatic'
9315      ;;
9316
9317    sysv4 | sysv4.2uw2* | sysv4.3*)
9318      lt_prog_compiler_wl='-Wl,'
9319      lt_prog_compiler_pic='-KPIC'
9320      lt_prog_compiler_static='-Bstatic'
9321      ;;
9322
9323    sysv4*MP*)
9324      if test -d /usr/nec ;then
9325        lt_prog_compiler_pic='-Kconform_pic'
9326        lt_prog_compiler_static='-Bstatic'
9327      fi
9328      ;;
9329
9330    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9331      lt_prog_compiler_wl='-Wl,'
9332      lt_prog_compiler_pic='-KPIC'
9333      lt_prog_compiler_static='-Bstatic'
9334      ;;
9335
9336    unicos*)
9337      lt_prog_compiler_wl='-Wl,'
9338      lt_prog_compiler_can_build_shared=no
9339      ;;
9340
9341    uts4*)
9342      lt_prog_compiler_pic='-pic'
9343      lt_prog_compiler_static='-Bstatic'
9344      ;;
9345
9346    *)
9347      lt_prog_compiler_can_build_shared=no
9348      ;;
9349    esac
9350  fi
9351
9352echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9353echo "${ECHO_T}$lt_prog_compiler_pic" >&6
9354
9355#
9356# Check to make sure the PIC flag actually works.
9357#
9358if test -n "$lt_prog_compiler_pic"; then
9359
9360echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9361echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
9362if test "${lt_prog_compiler_pic_works+set}" = set; then
9363  echo $ECHO_N "(cached) $ECHO_C" >&6
9364else
9365  lt_prog_compiler_pic_works=no
9366  ac_outfile=conftest.$ac_objext
9367   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9368   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9369   # Insert the option either (1) after the last *FLAGS variable, or
9370   # (2) before a word containing "conftest.", or (3) at the end.
9371   # Note that $ac_compile itself does not contain backslashes and begins
9372   # with a dollar sign (not a hyphen), so the echo should work correctly.
9373   # The option is referenced via a variable to avoid confusing sed.
9374   lt_compile=`echo "$ac_compile" | $SED \
9375   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9376   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9377   -e 's:$: $lt_compiler_flag:'`
9378   (eval echo "\"\$as_me:9378: $lt_compile\"" >&5)
9379   (eval "$lt_compile" 2>conftest.err)
9380   ac_status=$?
9381   cat conftest.err >&5
9382   echo "$as_me:9382: \$? = $ac_status" >&5
9383   if (exit $ac_status) && test -s "$ac_outfile"; then
9384     # The compiler can only warn and ignore the option if not recognized
9385     # So say no if there are warnings other than the usual output.
9386     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9387     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9388     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9389       lt_prog_compiler_pic_works=yes
9390     fi
9391   fi
9392   $rm conftest*
9393
9394fi
9395echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
9396echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
9397
9398if test x"$lt_prog_compiler_pic_works" = xyes; then
9399    case $lt_prog_compiler_pic in
9400     "" | " "*) ;;
9401     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9402     esac
9403else
9404    lt_prog_compiler_pic=
9405     lt_prog_compiler_can_build_shared=no
9406fi
9407
9408fi
9409case $host_os in
9410  # For platforms which do not support PIC, -DPIC is meaningless:
9411  *djgpp*)
9412    lt_prog_compiler_pic=
9413    ;;
9414  *)
9415    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9416    ;;
9417esac
9418
9419#
9420# Check to make sure the static flag actually works.
9421#
9422wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9423echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9424echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
9425if test "${lt_prog_compiler_static_works+set}" = set; then
9426  echo $ECHO_N "(cached) $ECHO_C" >&6
9427else
9428  lt_prog_compiler_static_works=no
9429   save_LDFLAGS="$LDFLAGS"
9430   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9431   printf "$lt_simple_link_test_code" > conftest.$ac_ext
9432   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9433     # The linker can only warn and ignore the option if not recognized
9434     # So say no if there are warnings
9435     if test -s conftest.err; then
9436       # Append any errors to the config.log.
9437       cat conftest.err 1>&5
9438       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9439       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9440       if diff conftest.exp conftest.er2 >/dev/null; then
9441         lt_prog_compiler_static_works=yes
9442       fi
9443     else
9444       lt_prog_compiler_static_works=yes
9445     fi
9446   fi
9447   $rm conftest*
9448   LDFLAGS="$save_LDFLAGS"
9449
9450fi
9451echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
9452echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
9453
9454if test x"$lt_prog_compiler_static_works" = xyes; then
9455    :
9456else
9457    lt_prog_compiler_static=
9458fi
9459
9460
9461echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9462echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
9463if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9464  echo $ECHO_N "(cached) $ECHO_C" >&6
9465else
9466  lt_cv_prog_compiler_c_o=no
9467   $rm -r conftest 2>/dev/null
9468   mkdir conftest
9469   cd conftest
9470   mkdir out
9471   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9472
9473   lt_compiler_flag="-o out/conftest2.$ac_objext"
9474   # Insert the option either (1) after the last *FLAGS variable, or
9475   # (2) before a word containing "conftest.", or (3) at the end.
9476   # Note that $ac_compile itself does not contain backslashes and begins
9477   # with a dollar sign (not a hyphen), so the echo should work correctly.
9478   lt_compile=`echo "$ac_compile" | $SED \
9479   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9480   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9481   -e 's:$: $lt_compiler_flag:'`
9482   (eval echo "\"\$as_me:9482: $lt_compile\"" >&5)
9483   (eval "$lt_compile" 2>out/conftest.err)
9484   ac_status=$?
9485   cat out/conftest.err >&5
9486   echo "$as_me:9486: \$? = $ac_status" >&5
9487   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9488   then
9489     # The compiler can only warn and ignore the option if not recognized
9490     # So say no if there are warnings
9491     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9492     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9493     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9494       lt_cv_prog_compiler_c_o=yes
9495     fi
9496   fi
9497   chmod u+w . 2>&5
9498   $rm conftest*
9499   # SGI C++ compiler will create directory out/ii_files/ for
9500   # template instantiation
9501   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9502   $rm out/* && rmdir out
9503   cd ..
9504   rmdir conftest
9505   $rm conftest*
9506
9507fi
9508echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9509echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
9510
9511
9512hard_links="nottested"
9513if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9514  # do not overwrite the value of need_locks provided by the user
9515  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9516echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
9517  hard_links=yes
9518  $rm conftest*
9519  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9520  touch conftest.a
9521  ln conftest.a conftest.b 2>&5 || hard_links=no
9522  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9523  echo "$as_me:$LINENO: result: $hard_links" >&5
9524echo "${ECHO_T}$hard_links" >&6
9525  if test "$hard_links" = no; then
9526    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9527echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9528    need_locks=warn
9529  fi
9530else
9531  need_locks=no
9532fi
9533
9534echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9535echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9536
9537  runpath_var=
9538  allow_undefined_flag=
9539  enable_shared_with_static_runtimes=no
9540  archive_cmds=
9541  archive_expsym_cmds=
9542  old_archive_From_new_cmds=
9543  old_archive_from_expsyms_cmds=
9544  export_dynamic_flag_spec=
9545  whole_archive_flag_spec=
9546  thread_safe_flag_spec=
9547  hardcode_libdir_flag_spec=
9548  hardcode_libdir_flag_spec_ld=
9549  hardcode_libdir_separator=
9550  hardcode_direct=no
9551  hardcode_minus_L=no
9552  hardcode_shlibpath_var=unsupported
9553  link_all_deplibs=unknown
9554  hardcode_automatic=no
9555  module_cmds=
9556  module_expsym_cmds=
9557  always_export_symbols=no
9558  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9559  # include_expsyms should be a list of space-separated symbols to be *always*
9560  # included in the symbol list
9561  include_expsyms=
9562  # exclude_expsyms can be an extended regexp of symbols to exclude
9563  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9564  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9565  # as well as any symbol that contains `d'.
9566  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9567  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9568  # platforms (ab)use it in PIC code, but their linkers get confused if
9569  # the symbol is explicitly referenced.  Since portable code cannot
9570  # rely on this symbol name, it's probably fine to never include it in
9571  # preloaded symbol tables.
9572  extract_expsyms_cmds=
9573  # Just being paranoid about ensuring that cc_basename is set.
9574  for cc_temp in $compiler""; do
9575  case $cc_temp in
9576    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9577    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9578    \-*) ;;
9579    *) break;;
9580  esac
9581done
9582cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9583
9584  case $host_os in
9585  cygwin* | mingw* | pw32*)
9586    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9587    # When not using gcc, we currently assume that we are using
9588    # Microsoft Visual C++.
9589    if test "$GCC" != yes; then
9590      with_gnu_ld=no
9591    fi
9592    ;;
9593  interix*)
9594    # we just hope/assume this is gcc and not c89 (= MSVC++)
9595    with_gnu_ld=yes
9596    ;;
9597  openbsd*)
9598    with_gnu_ld=no
9599    ;;
9600  esac
9601
9602  ld_shlibs=yes
9603  if test "$with_gnu_ld" = yes; then
9604    # If archive_cmds runs LD, not CC, wlarc should be empty
9605    wlarc='${wl}'
9606
9607    # Set some defaults for GNU ld with shared library support. These
9608    # are reset later if shared libraries are not supported. Putting them
9609    # here allows them to be overridden if necessary.
9610    runpath_var=LD_RUN_PATH
9611    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9612    export_dynamic_flag_spec='${wl}--export-dynamic'
9613    # ancient GNU ld didn't support --whole-archive et. al.
9614    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9615        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9616      else
9617        whole_archive_flag_spec=
9618    fi
9619    supports_anon_versioning=no
9620    case `$LD -v 2>/dev/null` in
9621      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9622      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9623      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9624      *\ 2.11.*) ;; # other 2.11 versions
9625      *) supports_anon_versioning=yes ;;
9626    esac
9627
9628    # See if GNU ld supports shared libraries.
9629    case $host_os in
9630    aix3* | aix4* | aix5*)
9631      # On AIX/PPC, the GNU linker is very broken
9632      if test "$host_cpu" != ia64; then
9633        ld_shlibs=no
9634        cat <<EOF 1>&2
9635
9636*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9637*** to be unable to reliably create shared libraries on AIX.
9638*** Therefore, libtool is disabling shared libraries support.  If you
9639*** really care for shared libraries, you may want to modify your PATH
9640*** so that a non-GNU linker is found, and then restart.
9641
9642EOF
9643      fi
9644      ;;
9645
9646    amigaos*)
9647      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)'
9648      hardcode_libdir_flag_spec='-L$libdir'
9649      hardcode_minus_L=yes
9650
9651      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9652      # that the semantics of dynamic libraries on AmigaOS, at least up
9653      # to version 4, is to share data among multiple programs linked
9654      # with the same dynamic library.  Since this doesn't match the
9655      # behavior of shared libraries on other platforms, we can't use
9656      # them.
9657      ld_shlibs=no
9658      ;;
9659
9660    beos*)
9661      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9662        allow_undefined_flag=unsupported
9663        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9664        # support --undefined.  This deserves some investigation.  FIXME
9665        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9666      else
9667        ld_shlibs=no
9668      fi
9669      ;;
9670
9671    cygwin* | mingw* | pw32*)
9672      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9673      # as there is no search path for DLLs.
9674      hardcode_libdir_flag_spec='-L$libdir'
9675      allow_undefined_flag=unsupported
9676      always_export_symbols=no
9677      enable_shared_with_static_runtimes=yes
9678      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9679
9680      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9681        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9682        # If the export-symbols file already is a .def file (1st line
9683        # is EXPORTS), use it as is; otherwise, prepend...
9684        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9685          cp $export_symbols $output_objdir/$soname.def;
9686        else
9687          echo EXPORTS > $output_objdir/$soname.def;
9688          cat $export_symbols >> $output_objdir/$soname.def;
9689        fi~
9690        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9691      else
9692        ld_shlibs=no
9693      fi
9694      ;;
9695
9696    interix3*)
9697      hardcode_direct=no
9698      hardcode_shlibpath_var=no
9699      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9700      export_dynamic_flag_spec='${wl}-E'
9701      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9702      # Instead, shared libraries are loaded at an image base (0x10000000 by
9703      # default) and relocated if they conflict, which is a slow very memory
9704      # consuming and fragmenting process.  To avoid this, we pick a random,
9705      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9706      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9707      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9708      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'
9709      ;;
9710
9711    linux*)
9712      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9713        tmp_addflag=
9714        case $cc_basename,$host_cpu in
9715        pgcc*)                          # Portland Group C compiler
9716          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'
9717          tmp_addflag=' $pic_flag'
9718          ;;
9719        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9720          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'
9721          tmp_addflag=' $pic_flag -Mnomain' ;;
9722        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9723          tmp_addflag=' -i_dynamic' ;;
9724        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9725          tmp_addflag=' -i_dynamic -nofor_main' ;;
9726        ifc* | ifort*)                  # Intel Fortran compiler
9727          tmp_addflag=' -nofor_main' ;;
9728        esac
9729        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9730
9731        if test $supports_anon_versioning = yes; then
9732          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9733  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9734  $echo "local: *; };" >> $output_objdir/$libname.ver~
9735          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9736        fi
9737      else
9738        ld_shlibs=no
9739      fi
9740      ;;
9741
9742    netbsd*)
9743      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9744        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9745        wlarc=
9746      else
9747        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9748        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9749      fi
9750      ;;
9751
9752    solaris*)
9753      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9754        ld_shlibs=no
9755        cat <<EOF 1>&2
9756
9757*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9758*** create shared libraries on Solaris systems.  Therefore, libtool
9759*** is disabling shared libraries support.  We urge you to upgrade GNU
9760*** binutils to release 2.9.1 or newer.  Another option is to modify
9761*** your PATH or compiler configuration so that the native linker is
9762*** used, and then restart.
9763
9764EOF
9765      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9766        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9767        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9768      else
9769        ld_shlibs=no
9770      fi
9771      ;;
9772
9773    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9774      case `$LD -v 2>&1` in
9775        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9776        ld_shlibs=no
9777        cat <<_LT_EOF 1>&2
9778
9779*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9780*** reliably create shared libraries on SCO systems.  Therefore, libtool
9781*** is disabling shared libraries support.  We urge you to upgrade GNU
9782*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9783*** your PATH or compiler configuration so that the native linker is
9784*** used, and then restart.
9785
9786_LT_EOF
9787        ;;
9788        *)
9789          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9790            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9791            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9792            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9793          else
9794            ld_shlibs=no
9795          fi
9796        ;;
9797      esac
9798      ;;
9799
9800    sunos4*)
9801      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9802      wlarc=
9803      hardcode_direct=yes
9804      hardcode_shlibpath_var=no
9805      ;;
9806
9807    *)
9808      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9809        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9810        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9811      else
9812        ld_shlibs=no
9813      fi
9814      ;;
9815    esac
9816
9817    if test "$ld_shlibs" = no; then
9818      runpath_var=
9819      hardcode_libdir_flag_spec=
9820      export_dynamic_flag_spec=
9821      whole_archive_flag_spec=
9822    fi
9823  else
9824    # PORTME fill in a description of your system's linker (not GNU ld)
9825    case $host_os in
9826    aix3*)
9827      allow_undefined_flag=unsupported
9828      always_export_symbols=yes
9829      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'
9830      # Note: this linker hardcodes the directories in LIBPATH if there
9831      # are no directories specified by -L.
9832      hardcode_minus_L=yes
9833      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9834        # Neither direct hardcoding nor static linking is supported with a
9835        # broken collect2.
9836        hardcode_direct=unsupported
9837      fi
9838      ;;
9839
9840    aix4* | aix5*)
9841      if test "$host_cpu" = ia64; then
9842        # On IA64, the linker does run time linking by default, so we don't
9843        # have to do anything special.
9844        aix_use_runtimelinking=no
9845        exp_sym_flag='-Bexport'
9846        no_entry_flag=""
9847      else
9848        # If we're using GNU nm, then we don't want the "-C" option.
9849        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9850        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9851          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'
9852        else
9853          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'
9854        fi
9855        aix_use_runtimelinking=no
9856
9857        # Test if we are trying to use run time linking or normal
9858        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9859        # need to do runtime linking.
9860        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9861          for ld_flag in $LDFLAGS; do
9862          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9863            aix_use_runtimelinking=yes
9864            break
9865          fi
9866          done
9867          ;;
9868        esac
9869
9870        exp_sym_flag='-bexport'
9871        no_entry_flag='-bnoentry'
9872      fi
9873
9874      # When large executables or shared objects are built, AIX ld can
9875      # have problems creating the table of contents.  If linking a library
9876      # or program results in "error TOC overflow" add -mminimal-toc to
9877      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9878      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9879
9880      archive_cmds=''
9881      hardcode_direct=yes
9882      hardcode_libdir_separator=':'
9883      link_all_deplibs=yes
9884
9885      if test "$GCC" = yes; then
9886        case $host_os in aix4.[012]|aix4.[012].*)
9887        # We only want to do this on AIX 4.2 and lower, the check
9888        # below for broken collect2 doesn't work under 4.3+
9889          collect2name=`${CC} -print-prog-name=collect2`
9890          if test -f "$collect2name" && \
9891           strings "$collect2name" | grep resolve_lib_name >/dev/null
9892          then
9893          # We have reworked collect2
9894          hardcode_direct=yes
9895          else
9896          # We have old collect2
9897          hardcode_direct=unsupported
9898          # It fails to find uninstalled libraries when the uninstalled
9899          # path is not listed in the libpath.  Setting hardcode_minus_L
9900          # to unsupported forces relinking
9901          hardcode_minus_L=yes
9902          hardcode_libdir_flag_spec='-L$libdir'
9903          hardcode_libdir_separator=
9904          fi
9905          ;;
9906        esac
9907        shared_flag='-shared'
9908        if test "$aix_use_runtimelinking" = yes; then
9909          shared_flag="$shared_flag "'${wl}-G'
9910        fi
9911      else
9912        # not using gcc
9913        if test "$host_cpu" = ia64; then
9914        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9915        # chokes on -Wl,-G. The following line is correct:
9916          shared_flag='-G'
9917        else
9918          if test "$aix_use_runtimelinking" = yes; then
9919            shared_flag='${wl}-G'
9920          else
9921            shared_flag='${wl}-bM:SRE'
9922          fi
9923        fi
9924      fi
9925
9926      # It seems that -bexpall does not export symbols beginning with
9927      # underscore (_), so it is better to generate a list of symbols to export.
9928      always_export_symbols=yes
9929      if test "$aix_use_runtimelinking" = yes; then
9930        # Warning - without using the other runtime loading flags (-brtl),
9931        # -berok will link without error, but may produce a broken library.
9932        allow_undefined_flag='-berok'
9933       # Determine the default libpath from the value encoded in an empty executable.
9934       cat >conftest.$ac_ext <<_ACEOF
9935/* confdefs.h.  */
9936_ACEOF
9937cat confdefs.h >>conftest.$ac_ext
9938cat >>conftest.$ac_ext <<_ACEOF
9939/* end confdefs.h.  */
9940
9941int
9942main ()
9943{
9944
9945  ;
9946  return 0;
9947}
9948_ACEOF
9949rm -f conftest.$ac_objext conftest$ac_exeext
9950if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9951  (eval $ac_link) 2>conftest.er1
9952  ac_status=$?
9953  grep -v '^ *+' conftest.er1 >conftest.err
9954  rm -f conftest.er1
9955  cat conftest.err >&5
9956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957  (exit $ac_status); } &&
9958         { ac_try='test -z "$ac_c_werror_flag"
9959                         || test ! -s conftest.err'
9960  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9961  (eval $ac_try) 2>&5
9962  ac_status=$?
9963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964  (exit $ac_status); }; } &&
9965         { ac_try='test -s conftest$ac_exeext'
9966  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9967  (eval $ac_try) 2>&5
9968  ac_status=$?
9969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970  (exit $ac_status); }; }; then
9971
9972aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9973}'`
9974# Check for a 64-bit object if we didn't find anything.
9975if 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; }
9976}'`; fi
9977else
9978  echo "$as_me: failed program was:" >&5
9979sed 's/^/| /' conftest.$ac_ext >&5
9980
9981fi
9982rm -f conftest.err conftest.$ac_objext \
9983      conftest$ac_exeext conftest.$ac_ext
9984if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9985
9986       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9987        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"
9988       else
9989        if test "$host_cpu" = ia64; then
9990          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9991          allow_undefined_flag="-z nodefs"
9992          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"
9993        else
9994         # Determine the default libpath from the value encoded in an empty executable.
9995         cat >conftest.$ac_ext <<_ACEOF
9996/* confdefs.h.  */
9997_ACEOF
9998cat confdefs.h >>conftest.$ac_ext
9999cat >>conftest.$ac_ext <<_ACEOF
10000/* end confdefs.h.  */
10001
10002int
10003main ()
10004{
10005
10006  ;
10007  return 0;
10008}
10009_ACEOF
10010rm -f conftest.$ac_objext conftest$ac_exeext
10011if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10012  (eval $ac_link) 2>conftest.er1
10013  ac_status=$?
10014  grep -v '^ *+' conftest.er1 >conftest.err
10015  rm -f conftest.er1
10016  cat conftest.err >&5
10017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10018  (exit $ac_status); } &&
10019         { ac_try='test -z "$ac_c_werror_flag"
10020                         || test ! -s conftest.err'
10021  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10022  (eval $ac_try) 2>&5
10023  ac_status=$?
10024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025  (exit $ac_status); }; } &&
10026         { ac_try='test -s conftest$ac_exeext'
10027  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10028  (eval $ac_try) 2>&5
10029  ac_status=$?
10030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031  (exit $ac_status); }; }; then
10032
10033aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10034}'`
10035# Check for a 64-bit object if we didn't find anything.
10036if 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; }
10037}'`; fi
10038else
10039  echo "$as_me: failed program was:" >&5
10040sed 's/^/| /' conftest.$ac_ext >&5
10041
10042fi
10043rm -f conftest.err conftest.$ac_objext \
10044      conftest$ac_exeext conftest.$ac_ext
10045if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10046
10047         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10048          # Warning - without using the other run time loading flags,
10049          # -berok will link without error, but may produce a broken library.
10050          no_undefined_flag=' ${wl}-bernotok'
10051          allow_undefined_flag=' ${wl}-berok'
10052          # Exported symbols can be pulled into shared objects from archives
10053          whole_archive_flag_spec='$convenience'
10054          archive_cmds_need_lc=yes
10055          # This is similar to how AIX traditionally builds its shared libraries.
10056          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'
10057        fi
10058      fi
10059      ;;
10060
10061    amigaos*)
10062      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)'
10063      hardcode_libdir_flag_spec='-L$libdir'
10064      hardcode_minus_L=yes
10065      # see comment about different semantics on the GNU ld section
10066      ld_shlibs=no
10067      ;;
10068
10069    bsdi[45]*)
10070      export_dynamic_flag_spec=-rdynamic
10071      ;;
10072
10073    cygwin* | mingw* | pw32*)
10074      # When not using gcc, we currently assume that we are using
10075      # Microsoft Visual C++.
10076      # hardcode_libdir_flag_spec is actually meaningless, as there is
10077      # no search path for DLLs.
10078      hardcode_libdir_flag_spec=' '
10079      allow_undefined_flag=unsupported
10080      # Tell ltmain to make .lib files, not .a files.
10081      libext=lib
10082      # Tell ltmain to make .dll files, not .so files.
10083      shrext_cmds=".dll"
10084      # FIXME: Setting linknames here is a bad hack.
10085      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
10086      # The linker will automatically build a .lib file if we build a DLL.
10087      old_archive_From_new_cmds='true'
10088      # FIXME: Should let the user specify the lib program.
10089      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
10090      fix_srcfile_path='`cygpath -w "$srcfile"`'
10091      enable_shared_with_static_runtimes=yes
10092      ;;
10093
10094    darwin* | rhapsody*)
10095      case $host_os in
10096        rhapsody* | darwin1.[012])
10097         allow_undefined_flag='${wl}-undefined ${wl}suppress'
10098         ;;
10099       *) # Darwin 1.3 on
10100         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10101           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10102         else
10103           case ${MACOSX_DEPLOYMENT_TARGET} in
10104             10.[012])
10105               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10106               ;;
10107             10.*)
10108               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
10109               ;;
10110           esac
10111         fi
10112         ;;
10113      esac
10114      archive_cmds_need_lc=no
10115      hardcode_direct=no
10116      hardcode_automatic=yes
10117      hardcode_shlibpath_var=unsupported
10118      whole_archive_flag_spec=''
10119      link_all_deplibs=yes
10120    if test "$GCC" = yes ; then
10121        output_verbose_link_cmd='echo'
10122        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10123      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10124      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10125      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}'
10126      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}'
10127    else
10128      case $cc_basename in
10129        xlc*)
10130         output_verbose_link_cmd='echo'
10131         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10132         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10133          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10134         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}'
10135          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}'
10136          ;;
10137       *)
10138         ld_shlibs=no
10139          ;;
10140      esac
10141    fi
10142      ;;
10143
10144    dgux*)
10145      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10146      hardcode_libdir_flag_spec='-L$libdir'
10147      hardcode_shlibpath_var=no
10148      ;;
10149
10150    freebsd1*)
10151      ld_shlibs=no
10152      ;;
10153
10154    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10155    # support.  Future versions do this automatically, but an explicit c++rt0.o
10156    # does not break anything, and helps significantly (at the cost of a little
10157    # extra space).
10158    freebsd2.2*)
10159      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10160      hardcode_libdir_flag_spec='-R$libdir'
10161      hardcode_direct=yes
10162      hardcode_shlibpath_var=no
10163      ;;
10164
10165    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10166    freebsd2*)
10167      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10168      hardcode_direct=yes
10169      hardcode_minus_L=yes
10170      hardcode_shlibpath_var=no
10171      ;;
10172
10173    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10174    freebsd* | kfreebsd*-gnu | dragonfly*)
10175      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10176      hardcode_libdir_flag_spec='-R$libdir'
10177      hardcode_direct=yes
10178      hardcode_shlibpath_var=no
10179      ;;
10180
10181    hpux9*)
10182      if test "$GCC" = yes; then
10183        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'
10184      else
10185        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'
10186      fi
10187      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10188      hardcode_libdir_separator=:
10189      hardcode_direct=yes
10190
10191      # hardcode_minus_L: Not really in the search PATH,
10192      # but as the default location of the library.
10193      hardcode_minus_L=yes
10194      export_dynamic_flag_spec='${wl}-E'
10195      ;;
10196
10197    hpux10*)
10198      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10199        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10200      else
10201        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10202      fi
10203      if test "$with_gnu_ld" = no; then
10204        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10205        hardcode_libdir_separator=:
10206
10207        hardcode_direct=yes
10208        export_dynamic_flag_spec='${wl}-E'
10209
10210        # hardcode_minus_L: Not really in the search PATH,
10211        # but as the default location of the library.
10212        hardcode_minus_L=yes
10213      fi
10214      ;;
10215
10216    hpux11*)
10217      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10218        case $host_cpu in
10219        hppa*64*)
10220          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10221          ;;
10222        ia64*)
10223          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10224          ;;
10225        *)
10226          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10227          ;;
10228        esac
10229      else
10230        case $host_cpu in
10231        hppa*64*)
10232          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10233          ;;
10234        ia64*)
10235          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10236          ;;
10237        *)
10238          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10239          ;;
10240        esac
10241      fi
10242      if test "$with_gnu_ld" = no; then
10243        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10244        hardcode_libdir_separator=:
10245
10246        case $host_cpu in
10247        hppa*64*|ia64*)
10248          hardcode_libdir_flag_spec_ld='+b $libdir'
10249          hardcode_direct=no
10250          hardcode_shlibpath_var=no
10251          ;;
10252        *)
10253          hardcode_direct=yes
10254          export_dynamic_flag_spec='${wl}-E'
10255
10256          # hardcode_minus_L: Not really in the search PATH,
10257          # but as the default location of the library.
10258          hardcode_minus_L=yes
10259          ;;
10260        esac
10261      fi
10262      ;;
10263
10264    irix5* | irix6* | nonstopux*)
10265      if test "$GCC" = yes; then
10266        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'
10267      else
10268        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'
10269        hardcode_libdir_flag_spec_ld='-rpath $libdir'
10270      fi
10271      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10272      hardcode_libdir_separator=:
10273      link_all_deplibs=yes
10274      ;;
10275
10276    netbsd*)
10277      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10278        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10279      else
10280        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10281      fi
10282      hardcode_libdir_flag_spec='-R$libdir'
10283      hardcode_direct=yes
10284      hardcode_shlibpath_var=no
10285      ;;
10286
10287    newsos6)
10288      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10289      hardcode_direct=yes
10290      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10291      hardcode_libdir_separator=:
10292      hardcode_shlibpath_var=no
10293      ;;
10294
10295    openbsd*)
10296      hardcode_direct=yes
10297      hardcode_shlibpath_var=no
10298      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10299        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10300        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10301        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10302        export_dynamic_flag_spec='${wl}-E'
10303      else
10304       case $host_os in
10305         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10306           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10307           hardcode_libdir_flag_spec='-R$libdir'
10308           ;;
10309         *)
10310           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10311           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10312           ;;
10313       esac
10314      fi
10315      ;;
10316
10317    os2*)
10318      hardcode_libdir_flag_spec='-L$libdir'
10319      hardcode_minus_L=yes
10320      allow_undefined_flag=unsupported
10321      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'
10322      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10323      ;;
10324
10325    osf3*)
10326      if test "$GCC" = yes; then
10327        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10328        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'
10329      else
10330        allow_undefined_flag=' -expect_unresolved \*'
10331        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'
10332      fi
10333      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10334      hardcode_libdir_separator=:
10335      ;;
10336
10337    osf4* | osf5*)      # as osf3* with the addition of -msym flag
10338      if test "$GCC" = yes; then
10339        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10340        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'
10341        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10342      else
10343        allow_undefined_flag=' -expect_unresolved \*'
10344        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'
10345        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10346        $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'
10347
10348        # Both c and cxx compiler support -rpath directly
10349        hardcode_libdir_flag_spec='-rpath $libdir'
10350      fi
10351      hardcode_libdir_separator=:
10352      ;;
10353
10354    solaris*)
10355      no_undefined_flag=' -z text'
10356      if test "$GCC" = yes; then
10357        wlarc='${wl}'
10358        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10359        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10360          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10361      else
10362        wlarc=''
10363        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10364        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10365        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10366      fi
10367      hardcode_libdir_flag_spec='-R$libdir'
10368      hardcode_shlibpath_var=no
10369      case $host_os in
10370      solaris2.[0-5] | solaris2.[0-5].*) ;;
10371      *)
10372        # The compiler driver will combine linker options so we
10373        # cannot just pass the convience library names through
10374        # without $wl, iff we do not link with $LD.
10375        # Luckily, gcc supports the same syntax we need for Sun Studio.
10376        # Supported since Solaris 2.6 (maybe 2.5.1?)
10377        case $wlarc in
10378        '')
10379          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
10380        *)
10381          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' ;;
10382        esac ;;
10383      esac
10384      link_all_deplibs=yes
10385      ;;
10386
10387    sunos4*)
10388      if test "x$host_vendor" = xsequent; then
10389        # Use $CC to link under sequent, because it throws in some extra .o
10390        # files that make .init and .fini sections work.
10391        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10392      else
10393        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10394      fi
10395      hardcode_libdir_flag_spec='-L$libdir'
10396      hardcode_direct=yes
10397      hardcode_minus_L=yes
10398      hardcode_shlibpath_var=no
10399      ;;
10400
10401    sysv4)
10402      case $host_vendor in
10403        sni)
10404          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10405          hardcode_direct=yes # is this really true???
10406        ;;
10407        siemens)
10408          ## LD is ld it makes a PLAMLIB
10409          ## CC just makes a GrossModule.
10410          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10411          reload_cmds='$CC -r -o $output$reload_objs'
10412          hardcode_direct=no
10413        ;;
10414        motorola)
10415          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10416          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10417        ;;
10418      esac
10419      runpath_var='LD_RUN_PATH'
10420      hardcode_shlibpath_var=no
10421      ;;
10422
10423    sysv4.3*)
10424      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10425      hardcode_shlibpath_var=no
10426      export_dynamic_flag_spec='-Bexport'
10427      ;;
10428
10429    sysv4*MP*)
10430      if test -d /usr/nec; then
10431        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10432        hardcode_shlibpath_var=no
10433        runpath_var=LD_RUN_PATH
10434        hardcode_runpath_var=yes
10435        ld_shlibs=yes
10436      fi
10437      ;;
10438
10439    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
10440      no_undefined_flag='${wl}-z,text'
10441      archive_cmds_need_lc=no
10442      hardcode_shlibpath_var=no
10443      runpath_var='LD_RUN_PATH'
10444
10445      if test "$GCC" = yes; then
10446        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10447        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10448      else
10449        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10450        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10451      fi
10452      ;;
10453
10454    sysv5* | sco3.2v5* | sco5v6*)
10455      # Note: We can NOT use -z defs as we might desire, because we do not
10456      # link with -lc, and that would cause any symbols used from libc to
10457      # always be unresolved, which means just about no library would
10458      # ever link correctly.  If we're not using GNU ld we use -z text
10459      # though, which does catch some bad symbols but isn't as heavy-handed
10460      # as -z defs.
10461      no_undefined_flag='${wl}-z,text'
10462      allow_undefined_flag='${wl}-z,nodefs'
10463      archive_cmds_need_lc=no
10464      hardcode_shlibpath_var=no
10465      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10466      hardcode_libdir_separator=':'
10467      link_all_deplibs=yes
10468      export_dynamic_flag_spec='${wl}-Bexport'
10469      runpath_var='LD_RUN_PATH'
10470
10471      if test "$GCC" = yes; then
10472        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10473        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10474      else
10475        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10476        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10477      fi
10478      ;;
10479
10480    uts4*)
10481      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10482      hardcode_libdir_flag_spec='-L$libdir'
10483      hardcode_shlibpath_var=no
10484      ;;
10485
10486    *)
10487      ld_shlibs=no
10488      ;;
10489    esac
10490  fi
10491
10492echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10493echo "${ECHO_T}$ld_shlibs" >&6
10494test "$ld_shlibs" = no && can_build_shared=no
10495
10496#
10497# Do we need to explicitly link libc?
10498#
10499case "x$archive_cmds_need_lc" in
10500x|xyes)
10501  # Assume -lc should be added
10502  archive_cmds_need_lc=yes
10503
10504  if test "$enable_shared" = yes && test "$GCC" = yes; then
10505    case $archive_cmds in
10506    *'~'*)
10507      # FIXME: we may have to deal with multi-command sequences.
10508      ;;
10509    '$CC '*)
10510      # Test whether the compiler implicitly links with -lc since on some
10511      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10512      # to ld, don't add -lc before -lgcc.
10513      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10514echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10515      $rm conftest*
10516      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10517
10518      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10519  (eval $ac_compile) 2>&5
10520  ac_status=$?
10521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10522  (exit $ac_status); } 2>conftest.err; then
10523        soname=conftest
10524        lib=conftest
10525        libobjs=conftest.$ac_objext
10526        deplibs=
10527        wl=$lt_prog_compiler_wl
10528        pic_flag=$lt_prog_compiler_pic
10529        compiler_flags=-v
10530        linker_flags=-v
10531        verstring=
10532        output_objdir=.
10533        libname=conftest
10534        lt_save_allow_undefined_flag=$allow_undefined_flag
10535        allow_undefined_flag=
10536        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10537  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10538  ac_status=$?
10539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540  (exit $ac_status); }
10541        then
10542          archive_cmds_need_lc=no
10543        else
10544          archive_cmds_need_lc=yes
10545        fi
10546        allow_undefined_flag=$lt_save_allow_undefined_flag
10547      else
10548        cat conftest.err 1>&5
10549      fi
10550      $rm conftest*
10551      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10552echo "${ECHO_T}$archive_cmds_need_lc" >&6
10553      ;;
10554    esac
10555  fi
10556  ;;
10557esac
10558
10559echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10560echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10561library_names_spec=
10562libname_spec='lib$name'
10563soname_spec=
10564shrext_cmds=".so"
10565postinstall_cmds=
10566postuninstall_cmds=
10567finish_cmds=
10568finish_eval=
10569shlibpath_var=
10570shlibpath_overrides_runpath=unknown
10571version_type=none
10572dynamic_linker="$host_os ld.so"
10573sys_lib_dlsearch_path_spec="/lib /usr/lib"
10574if test "$GCC" = yes; then
10575  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10576  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10577    # if the path contains ";" then we assume it to be the separator
10578    # otherwise default to the standard path separator (i.e. ":") - it is
10579    # assumed that no part of a normal pathname contains ";" but that should
10580    # okay in the real world where ";" in dirpaths is itself problematic.
10581    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10582  else
10583    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10584  fi
10585else
10586  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10587fi
10588need_lib_prefix=unknown
10589hardcode_into_libs=no
10590
10591# when you set need_version to no, make sure it does not cause -set_version
10592# flags to be left without arguments
10593need_version=unknown
10594
10595case $host_os in
10596aix3*)
10597  version_type=linux
10598  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10599  shlibpath_var=LIBPATH
10600
10601  # AIX 3 has no versioning support, so we append a major version to the name.
10602  soname_spec='${libname}${release}${shared_ext}$major'
10603  ;;
10604
10605aix4* | aix5*)
10606  version_type=linux
10607  need_lib_prefix=no
10608  need_version=no
10609  hardcode_into_libs=yes
10610  if test "$host_cpu" = ia64; then
10611    # AIX 5 supports IA64
10612    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10613    shlibpath_var=LD_LIBRARY_PATH
10614  else
10615    # With GCC up to 2.95.x, collect2 would create an import file
10616    # for dependence libraries.  The import file would start with
10617    # the line `#! .'.  This would cause the generated library to
10618    # depend on `.', always an invalid library.  This was fixed in
10619    # development snapshots of GCC prior to 3.0.
10620    case $host_os in
10621      aix4 | aix4.[01] | aix4.[01].*)
10622      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10623           echo ' yes '
10624           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10625        :
10626      else
10627        can_build_shared=no
10628      fi
10629      ;;
10630    esac
10631    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10632    # soname into executable. Probably we can add versioning support to
10633    # collect2, so additional links can be useful in future.
10634    if test "$aix_use_runtimelinking" = yes; then
10635      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10636      # instead of lib<name>.a to let people know that these are not
10637      # typical AIX shared libraries.
10638      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10639    else
10640      # We preserve .a as extension for shared libraries through AIX4.2
10641      # and later when we are not doing run time linking.
10642      library_names_spec='${libname}${release}.a $libname.a'
10643      soname_spec='${libname}${release}${shared_ext}$major'
10644    fi
10645    shlibpath_var=LIBPATH
10646  fi
10647  ;;
10648
10649amigaos*)
10650  library_names_spec='$libname.ixlibrary $libname.a'
10651  # Create ${libname}_ixlibrary.a entries in /sys/libs.
10652  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'
10653  ;;
10654
10655beos*)
10656  library_names_spec='${libname}${shared_ext}'
10657  dynamic_linker="$host_os ld.so"
10658  shlibpath_var=LIBRARY_PATH
10659  ;;
10660
10661bsdi[45]*)
10662  version_type=linux
10663  need_version=no
10664  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10665  soname_spec='${libname}${release}${shared_ext}$major'
10666  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10667  shlibpath_var=LD_LIBRARY_PATH
10668  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10669  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10670  # the default ld.so.conf also contains /usr/contrib/lib and
10671  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10672  # libtool to hard-code these into programs
10673  ;;
10674
10675cygwin* | mingw* | pw32*)
10676  version_type=windows
10677  shrext_cmds=".dll"
10678  need_version=no
10679  need_lib_prefix=no
10680
10681  case $GCC,$host_os in
10682  yes,cygwin* | yes,mingw* | yes,pw32*)
10683    library_names_spec='$libname.dll.a'
10684    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10685    postinstall_cmds='base_file=`basename \${file}`~
10686      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10687      dldir=$destdir/`dirname \$dlpath`~
10688      test -d \$dldir || mkdir -p \$dldir~
10689      $install_prog $dir/$dlname \$dldir/$dlname~
10690      chmod a+x \$dldir/$dlname'
10691    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10692      dlpath=$dir/\$dldll~
10693       $rm \$dlpath'
10694    shlibpath_overrides_runpath=yes
10695
10696    case $host_os in
10697    cygwin*)
10698      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10699      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10700      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10701      ;;
10702    mingw*)
10703      # MinGW DLLs use traditional 'lib' prefix
10704      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10705      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10706      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10707        # It is most probably a Windows format PATH printed by
10708        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10709        # path with ; separators, and with drive letters. We can handle the
10710        # drive letters (cygwin fileutils understands them), so leave them,
10711        # especially as we might pass files found there to a mingw objdump,
10712        # which wouldn't understand a cygwinified path. Ahh.
10713        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10714      else
10715        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10716      fi
10717      ;;
10718    pw32*)
10719      # pw32 DLLs use 'pw' prefix rather than 'lib'
10720      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10721      ;;
10722    esac
10723    ;;
10724
10725  *)
10726    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10727    ;;
10728  esac
10729  dynamic_linker='Win32 ld.exe'
10730  # FIXME: first we should search . and the directory the executable is in
10731  shlibpath_var=PATH
10732  ;;
10733
10734darwin* | rhapsody*)
10735  dynamic_linker="$host_os dyld"
10736  version_type=darwin
10737  need_lib_prefix=no
10738  need_version=no
10739  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10740  soname_spec='${libname}${release}${major}$shared_ext'
10741  shlibpath_overrides_runpath=yes
10742  shlibpath_var=DYLD_LIBRARY_PATH
10743  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10744  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10745  if test "$GCC" = yes; then
10746    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"`
10747  else
10748    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10749  fi
10750  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10751  ;;
10752
10753dgux*)
10754  version_type=linux
10755  need_lib_prefix=no
10756  need_version=no
10757  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10758  soname_spec='${libname}${release}${shared_ext}$major'
10759  shlibpath_var=LD_LIBRARY_PATH
10760  ;;
10761
10762freebsd1*)
10763  dynamic_linker=no
10764  ;;
10765
10766kfreebsd*-gnu)