source: stable/BSPsplit/Couenne/configure @ 219

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

correct -version-info option

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