source: stable/0.2/Couenne/configure @ 347

Last change on this file since 347 was 347, checked in by pbelotti, 10 years ago

restoring stable/0.2

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