source: branches/Couenne/Couenne/configure @ 582

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

minor changes to make code compile with MSVC++; reran autotools

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