source: ThirdParty/SCIP/stable/1.0/configure @ 2448

Last change on this file since 2448 was 2448, checked in by stefan, 8 years ago

temporarily committing release candidate

  • Property svn:executable set to *
File size: 903.4 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyScip 1.0.2.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
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 2011 Stefan Vigerske and others.
13# All Rights Reserved.
14# This file is part of the open source package COIN-OR which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyScip'
431PACKAGE_TARNAME='thirdpartyscip'
432PACKAGE_VERSION='1.0.2'
433PACKAGE_STRING='ThirdPartyScip 1.0.2'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="scip/src/scip/scip.h"
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 ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion SCIP_SVN_REV build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX COIN_CXX_IS_CL_TRUE COIN_CXX_IS_CL_FALSE MPICXX 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 EGREP LN_S MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS PKG_CONFIG ac_pt_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED SOPLEX_LIBS SOPLEX_CFLAGS SOPLEX_DATA SOPLEX_DEPENDENCIES SOPLEX_LIBS_INSTALLED SOPLEX_CFLAGS_INSTALLED SOPLEX_DATA_INSTALLED COIN_HAS_SOPLEX_TRUE COIN_HAS_SOPLEX_FALSE CLP_LIBS CLP_CFLAGS CLP_DATA CLP_DEPENDENCIES CLP_LIBS_INSTALLED CLP_CFLAGS_INSTALLED CLP_DATA_INSTALLED COIN_HAS_CLP_TRUE COIN_HAS_CLP_FALSE CPXINCDIR CPXLIB COIN_HAS_CPX_TRUE COIN_HAS_CPX_FALSE MSKINCDIR MSKLIB COIN_HAS_MSK_TRUE COIN_HAS_MSK_FALSE XPRINCDIR XPRLIB COIN_HAS_XPR_TRUE COIN_HAS_XPR_FALSE GRBINCDIR GRBLIB COIN_HAS_GRB_TRUE COIN_HAS_GRB_FALSE QSOINCDIR QSOLIB COIN_HAS_QSO_TRUE COIN_HAS_QSO_FALSE SCIPLPI_SPX_TRUE SCIPLPI_SPX_FALSE SCIPLPI_CLP_TRUE SCIPLPI_CLP_FALSE SCIPLPI_CPX_TRUE SCIPLPI_CPX_FALSE SCIPLPI_MSK_TRUE SCIPLPI_MSK_FALSE SCIPLPI_XPR_TRUE SCIPLPI_XPR_FALSE SCIPLPI_GRB_TRUE SCIPLPI_GRB_FALSE SCIPLPI_QSO_TRUE SCIPLPI_QSO_FALSE SCIPLPI_NONE_TRUE SCIPLPI_NONE_FALSE IPOPT_LIBS IPOPT_CFLAGS IPOPT_DATA IPOPT_DEPENDENCIES IPOPT_LIBS_INSTALLED IPOPT_CFLAGS_INSTALLED IPOPT_DATA_INSTALLED SCIPLIB_CFLAGS SCIPLIB_LIBS SCIPLIB_PCLIBS SCIPLIB_PCREQUIRES SCIPLIB_DEPENDENCIES SCIPLIB_CFLAGS_INSTALLED SCIPLIB_LIBS_INSTALLED COIN_HAS_IPOPT_TRUE COIN_HAS_IPOPT_FALSE CPPAD_LIBS CPPAD_CFLAGS CPPAD_DATA CPPAD_DEPENDENCIES CPPAD_LIBS_INSTALLED CPPAD_CFLAGS_INSTALLED CPPAD_DATA_INSTALLED COIN_HAS_CPPAD_TRUE COIN_HAS_CPPAD_FALSE COIN_HAS_ZLIB_TRUE COIN_HAS_ZLIB_FALSE LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_CXXDEFS_set=${CXXDEFS+set}
953ac_env_CXXDEFS_value=$CXXDEFS
954ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
955ac_cv_env_CXXDEFS_value=$CXXDEFS
956ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
957ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
958ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
959ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
960ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
961ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
962ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
963ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
964ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
965ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
966ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
967ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
968ac_env_CXX_set=${CXX+set}
969ac_env_CXX_value=$CXX
970ac_cv_env_CXX_set=${CXX+set}
971ac_cv_env_CXX_value=$CXX
972ac_env_CXXFLAGS_set=${CXXFLAGS+set}
973ac_env_CXXFLAGS_value=$CXXFLAGS
974ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
975ac_cv_env_CXXFLAGS_value=$CXXFLAGS
976ac_env_MPICXX_set=${MPICXX+set}
977ac_env_MPICXX_value=$MPICXX
978ac_cv_env_MPICXX_set=${MPICXX+set}
979ac_cv_env_MPICXX_value=$MPICXX
980ac_env_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
996ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
997ac_env_PKG_CONFIG_value=$PKG_CONFIG
998ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
999ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
1000
1001#
1002# Report the --help message.
1003#
1004if test "$ac_init_help" = "long"; then
1005  # Omit some internal or obsolete options to make the list less imposing.
1006  # This message is too long to be a string in the A/UX 3.1 sh.
1007  cat <<_ACEOF
1008\`configure' configures ThirdPartyScip 1.0.2 to adapt to many kinds of systems.
1009
1010Usage: $0 [OPTION]... [VAR=VALUE]...
1011
1012To assign environment variables (e.g., CC, CFLAGS...), specify them as
1013VAR=VALUE.  See below for descriptions of some of the useful variables.
1014
1015Defaults for the options are specified in brackets.
1016
1017Configuration:
1018  -h, --help              display this help and exit
1019      --help=short        display options specific to this package
1020      --help=recursive    display the short help of all the included packages
1021  -V, --version           display version information and exit
1022  -q, --quiet, --silent   do not print \`checking...' messages
1023      --cache-file=FILE   cache test results in FILE [disabled]
1024  -C, --config-cache      alias for \`--cache-file=config.cache'
1025  -n, --no-create         do not create output files
1026      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1027
1028_ACEOF
1029
1030  cat <<_ACEOF
1031Installation directories:
1032  --prefix=PREFIX         install architecture-independent files in PREFIX
1033                          [$ac_default_prefix]
1034  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1035                          [PREFIX]
1036
1037By default, \`make install' will install all the files in
1038\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1039an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1040for instance \`--prefix=\$HOME'.
1041
1042For better control, use the options below.
1043
1044Fine tuning of the installation directories:
1045  --bindir=DIR           user executables [EPREFIX/bin]
1046  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1047  --libexecdir=DIR       program executables [EPREFIX/libexec]
1048  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1049  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1050  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1051  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1052  --libdir=DIR           object code libraries [EPREFIX/lib]
1053  --includedir=DIR       C header files [PREFIX/include]
1054  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1055  --infodir=DIR          info documentation [PREFIX/info]
1056  --mandir=DIR           man documentation [PREFIX/man]
1057_ACEOF
1058
1059  cat <<\_ACEOF
1060
1061Program names:
1062  --program-prefix=PREFIX            prepend PREFIX to installed program names
1063  --program-suffix=SUFFIX            append SUFFIX to installed program names
1064  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1065
1066System types:
1067  --build=BUILD     configure for building on BUILD [guessed]
1068  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1069_ACEOF
1070fi
1071
1072if test -n "$ac_init_help"; then
1073  case $ac_init_help in
1074     short | recursive ) echo "Configuration of ThirdPartyScip 1.0.2:";;
1075   esac
1076  cat <<\_ACEOF
1077
1078Optional Features:
1079  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1080  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1081  --enable-debug          compile all projects with debug options tests
1082                          (implies --disable-shared)
1083  --enable-debug-scip compile project SCIP with debug compiler flags
1084  --enable-doscompile     Under Cygwin, compile so that executables run under
1085                          DOS. Set to mingw to use gcc/g++/ld with
1086                          -mno-cygwin. Set to msvc to use cl/link (or
1087                          icl/link). Default when mentioned: mingw. Default
1088                          when not mentioned: disabled.
1089  --disable-dependency-tracking  speeds up one-time build
1090  --enable-dependency-tracking   do not reject slow dependency extractors
1091  --enable-static[=PKGS]
1092                          build static libraries [default=no]
1093  --enable-maintainer-mode  enable make rules and dependencies not useful
1094                          (and sometimes confusing) to the casual installer
1095  --enable-shared[=PKGS]
1096                          build shared libraries [default=yes]
1097  --enable-fast-install[=PKGS]
1098                          optimize for fast installation [default=yes]
1099  --disable-libtool-lock  avoid locking (might break parallel builds)
1100  --disable-pkg-config    disable use of pkg-config (if available)
1101  --disable-interpackage-dependencies
1102                          disables deduction of Makefile dependencies from
1103                          package linker flags
1104  --disable-cplex-libcheck
1105                          skip the link check at configuration time
1106  --disable-mosek-libcheck
1107                          skip the link check at configuration time
1108  --disable-xpress-libcheck
1109                          skip the link check at configuration time
1110  --disable-gurobi-libcheck
1111                          skip the link check at configuration time
1112  --disable-qsopt-libcheck
1113                          skip the link check at configuration time
1114  --disable-zlib          do not compile with compression library zlib
1115  --disable-gmp           do not compile with GNU multiple precision library
1116  --enable-gnu-packages   compile with GNU packages (disabled by default)
1117
1118Optional Packages:
1119  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1120  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1121  --with-scip-verbosity specify the debug verbosity level for project SCIP
1122  --with-scip-checklevel specify the sanity check level for project SCIP
1123  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1124  --with-pic              try to use only PIC/non-PIC objects [default=use
1125                          both]
1126  --with-tags[=TAGS]
1127                          include additional configurations [automatic]
1128  --with-coin-instdir     prefix of installation directory for precompiled
1129                          COIN packages
1130
1131  --with-soplex-lib linker flags for using package SoPlex
1132  --with-soplex-incdir directory with header files for using package SoPlex
1133  --with-soplex-datadir directory with data files for using package SoPlex
1134  --with-clp-lib linker flags for using package Clp
1135  --with-clp-incdir directory with header files for using package Clp
1136  --with-clp-datadir directory with data files for using package Clp
1137  --with-cplex-incdir specify the header file directory for library Cplex
1138  --with-cplex-lib specify the flags used to link with the library Cplex
1139  --with-mosek-incdir specify the header file directory for library Mosek
1140  --with-mosek-lib specify the flags used to link with the library Mosek
1141  --with-xpress-incdir specify the header file directory for library Xpress
1142  --with-xpress-lib specify the flags used to link with the library Xpress
1143  --with-gurobi-incdir specify the header file directory for library Gurobi
1144  --with-gurobi-lib specify the flags used to link with the library Gurobi
1145  --with-qsopt-incdir specify the header file directory for library QSopt
1146  --with-qsopt-lib specify the flags used to link with the library QSopt
1147  --with-scip-lpsolver    specify LP solver to use in SCIP (soplex, clp,
1148                          cplex, mosek, xpress, gurobi, qsopt, none)
1149  --with-ipopt-lib linker flags for using package Ipopt
1150  --with-ipopt-incdir directory with header files for using package Ipopt
1151  --with-ipopt-datadir directory with data files for using package Ipopt
1152  --with-cppad-lib linker flags for using package CppAD
1153  --with-cppad-incdir directory with header files for using package CppAD
1154  --with-cppad-datadir directory with data files for using package CppAD
1155
1156Some influential environment variables:
1157  CDEFS       Additional -D flags to be used when compiling C code.
1158  ADD_CFLAGS  Additional C compiler options
1159  DBG_CFLAGS  Debug C compiler options
1160  OPT_CFLAGS  Optimize C compiler options
1161  CC          C compiler command
1162  CFLAGS      C compiler flags
1163  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1164              nonstandard directory <lib dir>
1165  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1166              headers in a nonstandard directory <include dir>
1167  MPICC       C MPI Compiler
1168  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1169  ADD_CXXFLAGS
1170              Additional C++ compiler options
1171  DBG_CXXFLAGS
1172              Debug C++ compiler options
1173  OPT_CXXFLAGS
1174              Optimize C++ compiler options
1175  CXX         C++ compiler command
1176  CXXFLAGS    C++ compiler flags
1177  MPICXX      C++ MPI Compiler
1178  CPP         C preprocessor
1179  CXXCPP      C++ preprocessor
1180  F77         Fortran 77 compiler command
1181  FFLAGS      Fortran 77 compiler flags
1182  PKG_CONFIG  path to pkg-config utility
1183
1184Use these variables to override the choices made by `configure' or to help
1185it to find libraries and programs with nonstandard names/locations.
1186
1187Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1188_ACEOF
1189fi
1190
1191if test "$ac_init_help" = "recursive"; then
1192  # If there are subdirs, report their specific --help.
1193  ac_popdir=`pwd`
1194  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1195    test -d $ac_dir || continue
1196    ac_builddir=.
1197
1198if test "$ac_dir" != .; then
1199  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1200  # A "../" for each directory in $ac_dir_suffix.
1201  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1202else
1203  ac_dir_suffix= ac_top_builddir=
1204fi
1205
1206case $srcdir in
1207  .)  # No --srcdir option.  We are building in place.
1208    ac_srcdir=.
1209    if test -z "$ac_top_builddir"; then
1210       ac_top_srcdir=.
1211    else
1212       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1213    fi ;;
1214  [\\/]* | ?:[\\/]* )  # Absolute path.
1215    ac_srcdir=$srcdir$ac_dir_suffix;
1216    ac_top_srcdir=$srcdir ;;
1217  *) # Relative path.
1218    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1219    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1220esac
1221
1222# Do not use `cd foo && pwd` to compute absolute paths, because
1223# the directories may not exist.
1224case `pwd` in
1225.) ac_abs_builddir="$ac_dir";;
1226*)
1227  case "$ac_dir" in
1228  .) ac_abs_builddir=`pwd`;;
1229  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1230  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1231  esac;;
1232esac
1233case $ac_abs_builddir in
1234.) ac_abs_top_builddir=${ac_top_builddir}.;;
1235*)
1236  case ${ac_top_builddir}. in
1237  .) ac_abs_top_builddir=$ac_abs_builddir;;
1238  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1239  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1240  esac;;
1241esac
1242case $ac_abs_builddir in
1243.) ac_abs_srcdir=$ac_srcdir;;
1244*)
1245  case $ac_srcdir in
1246  .) ac_abs_srcdir=$ac_abs_builddir;;
1247  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1248  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1249  esac;;
1250esac
1251case $ac_abs_builddir in
1252.) ac_abs_top_srcdir=$ac_top_srcdir;;
1253*)
1254  case $ac_top_srcdir in
1255  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1256  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1257  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1258  esac;;
1259esac
1260
1261    cd $ac_dir
1262    # Check for guested configure; otherwise get Cygnus style configure.
1263    if test -f $ac_srcdir/configure.gnu; then
1264      echo
1265      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1266    elif test -f $ac_srcdir/configure; then
1267      echo
1268      $SHELL $ac_srcdir/configure  --help=recursive
1269    elif test -f $ac_srcdir/configure.ac ||
1270           test -f $ac_srcdir/configure.in; then
1271      echo
1272      $ac_configure --help
1273    else
1274      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1275    fi
1276    cd $ac_popdir
1277  done
1278fi
1279
1280test -n "$ac_init_help" && exit 0
1281if $ac_init_version; then
1282  cat <<\_ACEOF
1283ThirdPartyScip configure 1.0.2
1284generated by GNU Autoconf 2.59
1285
1286Copyright (C) 2003 Free Software Foundation, Inc.
1287This configure script is free software; the Free Software Foundation
1288gives unlimited permission to copy, distribute and modify it.
1289
1290
1291Copyright 2011 Stefan Vigerske and others.
1292All Rights Reserved.
1293This file is part of the open source package COIN-OR which is distributed
1294under the Eclipse Public License.
1295_ACEOF
1296  exit 0
1297fi
1298exec 5>config.log
1299cat >&5 <<_ACEOF
1300This file contains any messages produced by compilers while
1301running configure, to aid debugging if configure makes a mistake.
1302
1303It was created by ThirdPartyScip $as_me 1.0.2, which was
1304generated by GNU Autoconf 2.59.  Invocation command line was
1305
1306  $ $0 $@
1307
1308_ACEOF
1309{
1310cat <<_ASUNAME
1311## --------- ##
1312## Platform. ##
1313## --------- ##
1314
1315hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1316uname -m = `(uname -m) 2>/dev/null || echo unknown`
1317uname -r = `(uname -r) 2>/dev/null || echo unknown`
1318uname -s = `(uname -s) 2>/dev/null || echo unknown`
1319uname -v = `(uname -v) 2>/dev/null || echo unknown`
1320
1321/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1322/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1323
1324/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1325/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1326/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1327hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1328/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1329/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1330/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1331
1332_ASUNAME
1333
1334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1335for as_dir in $PATH
1336do
1337  IFS=$as_save_IFS
1338  test -z "$as_dir" && as_dir=.
1339  echo "PATH: $as_dir"
1340done
1341
1342} >&5
1343
1344cat >&5 <<_ACEOF
1345
1346
1347## ----------- ##
1348## Core tests. ##
1349## ----------- ##
1350
1351_ACEOF
1352
1353
1354# Keep a trace of the command line.
1355# Strip out --no-create and --no-recursion so they do not pile up.
1356# Strip out --silent because we don't want to record it for future runs.
1357# Also quote any args containing shell meta-characters.
1358# Make two passes to allow for proper duplicate-argument suppression.
1359ac_configure_args=
1360ac_configure_args0=
1361ac_configure_args1=
1362ac_sep=
1363ac_must_keep_next=false
1364for ac_pass in 1 2
1365do
1366  for ac_arg
1367  do
1368    case $ac_arg in
1369    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1370    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1371    | -silent | --silent | --silen | --sile | --sil)
1372      continue ;;
1373    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1374      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1375    esac
1376    case $ac_pass in
1377    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1378    2)
1379      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1380      if test $ac_must_keep_next = true; then
1381        ac_must_keep_next=false # Got value, back to normal.
1382      else
1383        case $ac_arg in
1384          *=* | --config-cache | -C | -disable-* | --disable-* \
1385          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1386          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1387          | -with-* | --with-* | -without-* | --without-* | --x)
1388            case "$ac_configure_args0 " in
1389              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1390            esac
1391            ;;
1392          -* ) ac_must_keep_next=true ;;
1393        esac
1394      fi
1395      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1396      # Get rid of the leading space.
1397      ac_sep=" "
1398      ;;
1399    esac
1400  done
1401done
1402$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1403$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1404
1405# When interrupted or exit'd, cleanup temporary files, and complete
1406# config.log.  We remove comments because anyway the quotes in there
1407# would cause problems or look ugly.
1408# WARNING: Be sure not to use single quotes in there, as some shells,
1409# such as our DU 5.0 friend, will then `close' the trap.
1410trap 'exit_status=$?
1411  # Save into config.log some information that might help in debugging.
1412  {
1413    echo
1414
1415    cat <<\_ASBOX
1416## ---------------- ##
1417## Cache variables. ##
1418## ---------------- ##
1419_ASBOX
1420    echo
1421    # The following way of writing the cache mishandles newlines in values,
1422{
1423  (set) 2>&1 |
1424    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1425    *ac_space=\ *)
1426      sed -n \
1427        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1428          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1429      ;;
1430    *)
1431      sed -n \
1432        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1433      ;;
1434    esac;
1435}
1436    echo
1437
1438    cat <<\_ASBOX
1439## ----------------- ##
1440## Output variables. ##
1441## ----------------- ##
1442_ASBOX
1443    echo
1444    for ac_var in $ac_subst_vars
1445    do
1446      eval ac_val=$`echo $ac_var`
1447      echo "$ac_var='"'"'$ac_val'"'"'"
1448    done | sort
1449    echo
1450
1451    if test -n "$ac_subst_files"; then
1452      cat <<\_ASBOX
1453## ------------- ##
1454## Output files. ##
1455## ------------- ##
1456_ASBOX
1457      echo
1458      for ac_var in $ac_subst_files
1459      do
1460        eval ac_val=$`echo $ac_var`
1461        echo "$ac_var='"'"'$ac_val'"'"'"
1462      done | sort
1463      echo
1464    fi
1465
1466    if test -s confdefs.h; then
1467      cat <<\_ASBOX
1468## ----------- ##
1469## confdefs.h. ##
1470## ----------- ##
1471_ASBOX
1472      echo
1473      sed "/^$/d" confdefs.h | sort
1474      echo
1475    fi
1476    test "$ac_signal" != 0 &&
1477      echo "$as_me: caught signal $ac_signal"
1478    echo "$as_me: exit $exit_status"
1479  } >&5
1480  rm -f core *.core &&
1481  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1482    exit $exit_status
1483     ' 0
1484for ac_signal in 1 2 13 15; do
1485  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1486done
1487ac_signal=0
1488
1489# confdefs.h avoids OS command line length limits that DEFS can exceed.
1490rm -rf conftest* confdefs.h
1491# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1492echo >confdefs.h
1493
1494# Predefined preprocessor variables.
1495
1496cat >>confdefs.h <<_ACEOF
1497#define PACKAGE_NAME "$PACKAGE_NAME"
1498_ACEOF
1499
1500
1501cat >>confdefs.h <<_ACEOF
1502#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1503_ACEOF
1504
1505
1506cat >>confdefs.h <<_ACEOF
1507#define PACKAGE_VERSION "$PACKAGE_VERSION"
1508_ACEOF
1509
1510
1511cat >>confdefs.h <<_ACEOF
1512#define PACKAGE_STRING "$PACKAGE_STRING"
1513_ACEOF
1514
1515
1516cat >>confdefs.h <<_ACEOF
1517#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1518_ACEOF
1519
1520
1521# Let the site file select an alternate cache file if it wants to.
1522# Prefer explicitly selected file to automatically selected ones.
1523if test -z "$CONFIG_SITE"; then
1524  if test "x$prefix" != xNONE; then
1525    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1526  else
1527    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1528  fi
1529fi
1530for ac_site_file in $CONFIG_SITE; do
1531  if test -r "$ac_site_file"; then
1532    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1533echo "$as_me: loading site script $ac_site_file" >&6;}
1534    sed 's/^/| /' "$ac_site_file" >&5
1535    . "$ac_site_file"
1536  fi
1537done
1538
1539if test -r "$cache_file"; then
1540  # Some versions of bash will fail to source /dev/null (special
1541  # files actually), so we avoid doing that.
1542  if test -f "$cache_file"; then
1543    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1544echo "$as_me: loading cache $cache_file" >&6;}
1545    case $cache_file in
1546      [\\/]* | ?:[\\/]* ) . $cache_file;;
1547      *)                      . ./$cache_file;;
1548    esac
1549  fi
1550else
1551  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1552echo "$as_me: creating cache $cache_file" >&6;}
1553  >$cache_file
1554fi
1555
1556# Check that the precious variables saved in the cache have kept the same
1557# value.
1558ac_cache_corrupted=false
1559for ac_var in `(set) 2>&1 |
1560               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1561  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1562  eval ac_new_set=\$ac_env_${ac_var}_set
1563  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1564  eval ac_new_val="\$ac_env_${ac_var}_value"
1565  case $ac_old_set,$ac_new_set in
1566    set,)
1567      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1568echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1569      ac_cache_corrupted=: ;;
1570    ,set)
1571      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1572echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1573      ac_cache_corrupted=: ;;
1574    ,);;
1575    *)
1576      if test "x$ac_old_val" != "x$ac_new_val"; then
1577        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1578echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1579        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1580echo "$as_me:   former value:  $ac_old_val" >&2;}
1581        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1582echo "$as_me:   current value: $ac_new_val" >&2;}
1583        ac_cache_corrupted=:
1584      fi;;
1585  esac
1586  # Pass precious variables to config.status.
1587  if test "$ac_new_set" = set; then
1588    case $ac_new_val in
1589    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1590      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1591    *) ac_arg=$ac_var=$ac_new_val ;;
1592    esac
1593    case " $ac_configure_args " in
1594      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1595      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1596    esac
1597  fi
1598done
1599if $ac_cache_corrupted; then
1600  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1601echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1602  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1603echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1604   { (exit 1); exit 1; }; }
1605fi
1606
1607ac_ext=c
1608ac_cpp='$CPP $CPPFLAGS'
1609ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1610ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1611ac_compiler_gnu=$ac_cv_c_compiler_gnu
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642# List one file in the package so that the configure script can test
1643# whether the package is actually there
1644
1645
1646# Where should everything be installed by default?  Here, we want it
1647# to be installed directly in 'bin', 'lib', 'include' subdirectories
1648# of the directory where configure is run.  The default would be
1649# /usr/local.
1650
1651
1652
1653# As backup, we make sure we don't loose an FLIBS if it has been set
1654# by the user
1655save_FLIBS="$FLIBS"
1656
1657# A useful makefile conditional that is always false
1658
1659
1660if false; then
1661  ALWAYS_FALSE_TRUE=
1662  ALWAYS_FALSE_FALSE='#'
1663else
1664  ALWAYS_FALSE_TRUE='#'
1665  ALWAYS_FALSE_FALSE=
1666fi
1667
1668
1669# We set the following variable so that we know later in AC_COIN_FINALIZE
1670# that we are in a project main directory
1671coin_projectdir=yes
1672
1673# Set the project's version numbers
1674
1675
1676cat >>confdefs.h <<_ACEOF
1677#define SCIP_VERSION "$PACKAGE_VERSION"
1678_ACEOF
1679
1680
1681  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1682  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1683  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1684  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1685  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1686  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1687
1688cat >>confdefs.h <<_ACEOF
1689#define SCIP_VERSION_MAJOR $coin_majorver
1690_ACEOF
1691
1692
1693cat >>confdefs.h <<_ACEOF
1694#define SCIP_VERSION_MINOR $coin_minorver
1695_ACEOF
1696
1697
1698cat >>confdefs.h <<_ACEOF
1699#define SCIP_VERSION_RELEASE $coin_releasever
1700_ACEOF
1701
1702
1703  # We use the following variable to have a string with the upper case
1704  # version of the project name
1705  COIN_PRJCT=SCIP
1706
1707  # Set the project's SVN revision number. The complicated sed expression
1708  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1709  # as a single number.
1710  # Extract the first word of "svnversion", so it can be a program name with args.
1711set dummy svnversion; ac_word=$2
1712echo "$as_me:$LINENO: checking for $ac_word" >&5
1713echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1714if test "${ac_cv_prog_have_svnversion+set}" = set; then
1715  echo $ECHO_N "(cached) $ECHO_C" >&6
1716else
1717  if test -n "$have_svnversion"; then
1718  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1719else
1720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1721for as_dir in $PATH
1722do
1723  IFS=$as_save_IFS
1724  test -z "$as_dir" && as_dir=.
1725  for ac_exec_ext in '' $ac_executable_extensions; do
1726  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1727    ac_cv_prog_have_svnversion="yes"
1728    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1729    break 2
1730  fi
1731done
1732done
1733
1734  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1735fi
1736fi
1737have_svnversion=$ac_cv_prog_have_svnversion
1738if test -n "$have_svnversion"; then
1739  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1740echo "${ECHO_T}$have_svnversion" >&6
1741else
1742  echo "$as_me:$LINENO: result: no" >&5
1743echo "${ECHO_T}no" >&6
1744fi
1745
1746  if test "x$have_svnversion" = xyes; then
1747
1748    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1749    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x; then
1750      SCIP_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1751
1752cat >>confdefs.h <<_ACEOF
1753#define SCIP_SVN_REV $SCIP_SVN_REV
1754_ACEOF
1755
1756    fi
1757  fi
1758
1759
1760
1761# Capture libtool library version, if given.
1762coin_libversion=1:2:0
1763
1764
1765
1766
1767#############################################################################
1768#                         Standard build tool stuff                         #
1769#############################################################################
1770
1771# Get the system type
1772ac_aux_dir=
1773for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1774  if test -f $ac_dir/install-sh; then
1775    ac_aux_dir=$ac_dir
1776    ac_install_sh="$ac_aux_dir/install-sh -c"
1777    break
1778  elif test -f $ac_dir/install.sh; then
1779    ac_aux_dir=$ac_dir
1780    ac_install_sh="$ac_aux_dir/install.sh -c"
1781    break
1782  elif test -f $ac_dir/shtool; then
1783    ac_aux_dir=$ac_dir
1784    ac_install_sh="$ac_aux_dir/shtool install -c"
1785    break
1786  fi
1787done
1788if test -z "$ac_aux_dir"; then
1789  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1790echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1791   { (exit 1); exit 1; }; }
1792fi
1793ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1794ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1795ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1796
1797# Make sure we can run config.sub.
1798$ac_config_sub sun4 >/dev/null 2>&1 ||
1799  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1800echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1801   { (exit 1); exit 1; }; }
1802
1803echo "$as_me:$LINENO: checking build system type" >&5
1804echo $ECHO_N "checking build system type... $ECHO_C" >&6
1805if test "${ac_cv_build+set}" = set; then
1806  echo $ECHO_N "(cached) $ECHO_C" >&6
1807else
1808  ac_cv_build_alias=$build_alias
1809test -z "$ac_cv_build_alias" &&
1810  ac_cv_build_alias=`$ac_config_guess`
1811test -z "$ac_cv_build_alias" &&
1812  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1813echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1814   { (exit 1); exit 1; }; }
1815ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1816  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1817echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1818   { (exit 1); exit 1; }; }
1819
1820fi
1821echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1822echo "${ECHO_T}$ac_cv_build" >&6
1823build=$ac_cv_build
1824build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1825build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1826build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1827
1828
1829
1830# Check if user wants to produce debugging code
1831
1832echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1833echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1834
1835# Check whether --enable-debug or --disable-debug was given.
1836if test "${enable_debug+set}" = set; then
1837  enableval="$enable_debug"
1838  case "${enableval}" in
1839   yes) coin_debug_compile=true
1840        if test "${enable_shared+set}" = set; then :; else
1841          enable_shared=no
1842        fi
1843        ;;
1844   no)  coin_debug_compile=false
1845        ;;
1846   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1847echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1848   { (exit 1); exit 1; }; }
1849        ;;
1850esac
1851else
1852  coin_debug_compile=false
1853fi;
1854
1855# Check whether --enable-debug-scip or --disable-debug-scip was given.
1856if test "${enable_debug_scip+set}" = set; then
1857  enableval="$enable_debug_scip"
1858  case "${enableval}" in
1859    yes) coin_debug_compile=true
1860         ;;
1861    no)  coin_debug_compile=false
1862         ;;
1863    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-scip" >&5
1864echo "$as_me: error: bad value ${enableval} for --enable-debug-scip" >&2;}
1865   { (exit 1); exit 1; }; }
1866         ;;
1867 esac
1868else
1869  :
1870fi;
1871
1872 # m4_ifvaln([SCIP],
1873
1874if test $coin_debug_compile = true; then
1875  echo "$as_me:$LINENO: result: yes" >&5
1876echo "${ECHO_T}yes" >&6
1877else
1878  echo "$as_me:$LINENO: result: no" >&5
1879echo "${ECHO_T}no" >&6
1880fi
1881
1882
1883# Check whether --with-scip-verbosity or --without-scip-verbosity was given.
1884if test "${with_scip_verbosity+set}" = set; then
1885  withval="$with_scip_verbosity"
1886  if test "$withval" = yes; then
1887                withval=1
1888              fi
1889              coin_scip_verbosity=$withval
1890else
1891  coin_scip_verbosity=0
1892fi;
1893
1894cat >>confdefs.h <<_ACEOF
1895#define COIN_SCIP_VERBOSITY $coin_scip_verbosity
1896_ACEOF
1897
1898
1899
1900# Check whether --with-scip-checklevel or --without-scip-checklevel was given.
1901if test "${with_scip_checklevel+set}" = set; then
1902  withval="$with_scip_checklevel"
1903  if test "$withval" = yes; then
1904                withval=1
1905              fi
1906              coin_scip_checklevel=$withval
1907else
1908  coin_scip_checklevel=0
1909fi;
1910
1911cat >>confdefs.h <<_ACEOF
1912#define COIN_SCIP_CHECKLEVEL $coin_scip_checklevel
1913_ACEOF
1914
1915
1916 # m4_ifvaln([SCIP],
1917
1918
1919
1920# Get the name of the C compiler and appropriate compiler options
1921case $build in
1922  *-mingw*)
1923    if test "${LD+set}" = set; then :; else
1924      LD=link
1925    fi
1926    ;;
1927 esac
1928 case $enable_doscompile in
1929   msvc)
1930     if test "x${LD+set}" = xset; then :; else
1931       LD=link
1932     fi
1933     ;;
1934 esac
1935
1936
1937 # Check whether --enable-doscompile or --disable-doscompile was given.
1938if test "${enable_doscompile+set}" = set; then
1939  enableval="$enable_doscompile"
1940  if test "$enable_doscompile" != no; then
1941     case $build in
1942       *-cygwin* | *-mingw*) ;;
1943       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1944echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1945   { (exit 1); exit 1; }; } ;;
1946     esac
1947   fi
1948else
1949  enable_doscompile=no
1950fi;
1951 case "$enable_doscompile" in
1952   mingw)
1953     case $build in
1954       *-mingw*) enable_doscompile=no ;;
1955     esac
1956     ;;
1957   msvc|no) ;;
1958   yes) enable_doscompile=mingw ;;
1959   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1960                    Try configure --help=recursive." >&5
1961echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1962                    Try configure --help=recursive." >&2;}
1963   { (exit 1); exit 1; }; }
1964      ;;
1965  esac
1966  if test "$enable_doscompile" != no ; then
1967    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1968echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1969  fi
1970
1971
1972
1973
1974ac_ext=c
1975ac_cpp='$CPP $CPPFLAGS'
1976ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1977ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1978ac_compiler_gnu=$ac_cv_c_compiler_gnu
1979
1980
1981# For consistency, we set the C compiler to the same value of the C++
1982# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1983if test x"$CXX" != x; then
1984  case "$CXX" in
1985    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1986      if test x"$CC" = x; then
1987        CC="$CXX"
1988        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1989echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1990      fi
1991      ;;
1992  esac
1993fi
1994
1995
1996
1997
1998
1999
2000coin_has_cc=yes
2001
2002save_cflags="$CFLAGS"
2003
2004# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
2005# Depending on the user's PATH, when Studio/Workshop cc is not present we may
2006# find /usr/ucb/cc, which is almost certainly not a good choice for the C
2007# compiler. In this case, put cc after gcc.
2008
2009case $build in
2010  *-cygwin* | *-mingw*)
2011             if test "$enable_doscompile" = msvc ; then
2012               comps="icl cl"
2013             else
2014               comps="gcc cl"
2015             fi ;;
2016  *-*-solaris*)
2017             # Extract the first word of "cc", so it can be a program name with args.
2018set dummy cc; ac_word=$2
2019echo "$as_me:$LINENO: checking for $ac_word" >&5
2020echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2021if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
2022  echo $ECHO_N "(cached) $ECHO_C" >&6
2023else
2024  if test -n "$sol_cc_compiler"; then
2025  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
2026else
2027  ac_prog_rejected=no
2028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2029for as_dir in $PATH
2030do
2031  IFS=$as_save_IFS
2032  test -z "$as_dir" && as_dir=.
2033  for ac_exec_ext in '' $ac_executable_extensions; do
2034  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2035    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2036       ac_prog_rejected=yes
2037       continue
2038     fi
2039    ac_cv_prog_sol_cc_compiler="cc"
2040    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2041    break 2
2042  fi
2043done
2044done
2045
2046if test $ac_prog_rejected = yes; then
2047  # We found a bogon in the path, so make sure we never use it.
2048  set dummy $ac_cv_prog_sol_cc_compiler
2049  shift
2050  if test $# != 0; then
2051    # We chose a different compiler from the bogus one.
2052    # However, it has the same basename, so the bogon will be chosen
2053    # first if we set sol_cc_compiler to just the basename; use the full file name.
2054    shift
2055    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2056  fi
2057fi
2058fi
2059fi
2060sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2061if test -n "$sol_cc_compiler"; then
2062  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2063echo "${ECHO_T}$sol_cc_compiler" >&6
2064else
2065  echo "$as_me:$LINENO: result: no" >&5
2066echo "${ECHO_T}no" >&6
2067fi
2068
2069             if test "$sol_cc_compiler" = "cc" ; then
2070               comps="cc xlc gcc pgcc icc"
2071             else
2072               comps="xlc gcc pgcc icc cc"
2073             fi
2074             ;;
2075  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2076  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2077  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2078esac
2079
2080# We delete the cached value, since the test might not have been
2081# performed with our choice of compilers earlier
2082$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2083# AC_MSG_NOTICE([C compiler candidates: $comps])
2084ac_ext=c
2085ac_cpp='$CPP $CPPFLAGS'
2086ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2087ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2088ac_compiler_gnu=$ac_cv_c_compiler_gnu
2089if test -n "$ac_tool_prefix"; then
2090  for ac_prog in $comps
2091  do
2092    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2093set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2094echo "$as_me:$LINENO: checking for $ac_word" >&5
2095echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2096if test "${ac_cv_prog_CC+set}" = set; then
2097  echo $ECHO_N "(cached) $ECHO_C" >&6
2098else
2099  if test -n "$CC"; then
2100  ac_cv_prog_CC="$CC" # Let the user override the test.
2101else
2102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2103for as_dir in $PATH
2104do
2105  IFS=$as_save_IFS
2106  test -z "$as_dir" && as_dir=.
2107  for ac_exec_ext in '' $ac_executable_extensions; do
2108  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2109    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2110    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2111    break 2
2112  fi
2113done
2114done
2115
2116fi
2117fi
2118CC=$ac_cv_prog_CC
2119if test -n "$CC"; then
2120  echo "$as_me:$LINENO: result: $CC" >&5
2121echo "${ECHO_T}$CC" >&6
2122else
2123  echo "$as_me:$LINENO: result: no" >&5
2124echo "${ECHO_T}no" >&6
2125fi
2126
2127    test -n "$CC" && break
2128  done
2129fi
2130if test -z "$CC"; then
2131  ac_ct_CC=$CC
2132  for ac_prog in $comps
2133do
2134  # Extract the first word of "$ac_prog", so it can be a program name with args.
2135set dummy $ac_prog; ac_word=$2
2136echo "$as_me:$LINENO: checking for $ac_word" >&5
2137echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2138if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2139  echo $ECHO_N "(cached) $ECHO_C" >&6
2140else
2141  if test -n "$ac_ct_CC"; then
2142  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2143else
2144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2145for as_dir in $PATH
2146do
2147  IFS=$as_save_IFS
2148  test -z "$as_dir" && as_dir=.
2149  for ac_exec_ext in '' $ac_executable_extensions; do
2150  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2151    ac_cv_prog_ac_ct_CC="$ac_prog"
2152    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2153    break 2
2154  fi
2155done
2156done
2157
2158fi
2159fi
2160ac_ct_CC=$ac_cv_prog_ac_ct_CC
2161if test -n "$ac_ct_CC"; then
2162  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2163echo "${ECHO_T}$ac_ct_CC" >&6
2164else
2165  echo "$as_me:$LINENO: result: no" >&5
2166echo "${ECHO_T}no" >&6
2167fi
2168
2169  test -n "$ac_ct_CC" && break
2170done
2171
2172  CC=$ac_ct_CC
2173fi
2174
2175
2176test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2177See \`config.log' for more details." >&5
2178echo "$as_me: error: no acceptable C compiler found in \$PATH
2179See \`config.log' for more details." >&2;}
2180   { (exit 1); exit 1; }; }
2181
2182# Provide some information about the compiler.
2183echo "$as_me:$LINENO:" \
2184     "checking for C compiler version" >&5
2185ac_compiler=`set X $ac_compile; echo $2`
2186{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2187  (eval $ac_compiler --version </dev/null >&5) 2>&5
2188  ac_status=$?
2189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190  (exit $ac_status); }
2191{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2192  (eval $ac_compiler -v </dev/null >&5) 2>&5
2193  ac_status=$?
2194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2195  (exit $ac_status); }
2196{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2197  (eval $ac_compiler -V </dev/null >&5) 2>&5
2198  ac_status=$?
2199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2200  (exit $ac_status); }
2201
2202cat >conftest.$ac_ext <<_ACEOF
2203/* confdefs.h.  */
2204_ACEOF
2205cat confdefs.h >>conftest.$ac_ext
2206cat >>conftest.$ac_ext <<_ACEOF
2207/* end confdefs.h.  */
2208
2209int
2210main ()
2211{
2212
2213  ;
2214  return 0;
2215}
2216_ACEOF
2217ac_clean_files_save=$ac_clean_files
2218ac_clean_files="$ac_clean_files a.out a.exe b.out"
2219# Try to create an executable without -o first, disregard a.out.
2220# It will help us diagnose broken compilers, and finding out an intuition
2221# of exeext.
2222echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2223echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2224ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2225if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2226  (eval $ac_link_default) 2>&5
2227  ac_status=$?
2228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229  (exit $ac_status); }; then
2230  # Find the output, starting from the most likely.  This scheme is
2231# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2232# resort.
2233
2234# Be careful to initialize this variable, since it used to be cached.
2235# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2236ac_cv_exeext=
2237# b.out is created by i960 compilers.
2238for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2239do
2240  test -f "$ac_file" || continue
2241  case $ac_file in
2242    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2243        ;;
2244    conftest.$ac_ext )
2245        # This is the source file.
2246        ;;
2247    [ab].out )
2248        # We found the default executable, but exeext='' is most
2249        # certainly right.
2250        break;;
2251    *.* )
2252        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2253        # FIXME: I believe we export ac_cv_exeext for Libtool,
2254        # but it would be cool to find out if it's true.  Does anybody
2255        # maintain Libtool? --akim.
2256        export ac_cv_exeext
2257        break;;
2258    * )
2259        break;;
2260  esac
2261done
2262else
2263  echo "$as_me: failed program was:" >&5
2264sed 's/^/| /' conftest.$ac_ext >&5
2265
2266{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2267See \`config.log' for more details." >&5
2268echo "$as_me: error: C compiler cannot create executables
2269See \`config.log' for more details." >&2;}
2270   { (exit 77); exit 77; }; }
2271fi
2272
2273ac_exeext=$ac_cv_exeext
2274echo "$as_me:$LINENO: result: $ac_file" >&5
2275echo "${ECHO_T}$ac_file" >&6
2276
2277# Check the compiler produces executables we can run.  If not, either
2278# the compiler is broken, or we cross compile.
2279echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2280echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2281# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2282# If not cross compiling, check that we can run a simple program.
2283if test "$cross_compiling" != yes; then
2284  if { ac_try='./$ac_file'
2285  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2286  (eval $ac_try) 2>&5
2287  ac_status=$?
2288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2289  (exit $ac_status); }; }; then
2290    cross_compiling=no
2291  else
2292    if test "$cross_compiling" = maybe; then
2293        cross_compiling=yes
2294    else
2295        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2296If you meant to cross compile, use \`--host'.
2297See \`config.log' for more details." >&5
2298echo "$as_me: error: cannot run C compiled programs.
2299If you meant to cross compile, use \`--host'.
2300See \`config.log' for more details." >&2;}
2301   { (exit 1); exit 1; }; }
2302    fi
2303  fi
2304fi
2305echo "$as_me:$LINENO: result: yes" >&5
2306echo "${ECHO_T}yes" >&6
2307
2308rm -f a.out a.exe conftest$ac_cv_exeext b.out
2309ac_clean_files=$ac_clean_files_save
2310# Check the compiler produces executables we can run.  If not, either
2311# the compiler is broken, or we cross compile.
2312echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2313echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2314echo "$as_me:$LINENO: result: $cross_compiling" >&5
2315echo "${ECHO_T}$cross_compiling" >&6
2316
2317echo "$as_me:$LINENO: checking for suffix of executables" >&5
2318echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2319if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2320  (eval $ac_link) 2>&5
2321  ac_status=$?
2322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323  (exit $ac_status); }; then
2324  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2325# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2326# work properly (i.e., refer to `conftest.exe'), while it won't with
2327# `rm'.
2328for ac_file in conftest.exe conftest conftest.*; do
2329  test -f "$ac_file" || continue
2330  case $ac_file in
2331    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2332    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2333          export ac_cv_exeext
2334          break;;
2335    * ) break;;
2336  esac
2337done
2338else
2339  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2340See \`config.log' for more details." >&5
2341echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2342See \`config.log' for more details." >&2;}
2343   { (exit 1); exit 1; }; }
2344fi
2345
2346rm -f conftest$ac_cv_exeext
2347echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2348echo "${ECHO_T}$ac_cv_exeext" >&6
2349
2350rm -f conftest.$ac_ext
2351EXEEXT=$ac_cv_exeext
2352ac_exeext=$EXEEXT
2353echo "$as_me:$LINENO: checking for suffix of object files" >&5
2354echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2355if test "${ac_cv_objext+set}" = set; then
2356  echo $ECHO_N "(cached) $ECHO_C" >&6
2357else
2358  cat >conftest.$ac_ext <<_ACEOF
2359/* confdefs.h.  */
2360_ACEOF
2361cat confdefs.h >>conftest.$ac_ext
2362cat >>conftest.$ac_ext <<_ACEOF
2363/* end confdefs.h.  */
2364
2365int
2366main ()
2367{
2368
2369  ;
2370  return 0;
2371}
2372_ACEOF
2373rm -f conftest.o conftest.obj
2374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2375  (eval $ac_compile) 2>&5
2376  ac_status=$?
2377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378  (exit $ac_status); }; then
2379  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2380  case $ac_file in
2381    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2382    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2383       break;;
2384  esac
2385done
2386else
2387  echo "$as_me: failed program was:" >&5
2388sed 's/^/| /' conftest.$ac_ext >&5
2389
2390{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2391See \`config.log' for more details." >&5
2392echo "$as_me: error: cannot compute suffix of object files: cannot compile
2393See \`config.log' for more details." >&2;}
2394   { (exit 1); exit 1; }; }
2395fi
2396
2397rm -f conftest.$ac_cv_objext conftest.$ac_ext
2398fi
2399echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2400echo "${ECHO_T}$ac_cv_objext" >&6
2401OBJEXT=$ac_cv_objext
2402ac_objext=$OBJEXT
2403echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2404echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2405if test "${ac_cv_c_compiler_gnu+set}" = set; then
2406  echo $ECHO_N "(cached) $ECHO_C" >&6
2407else
2408  cat >conftest.$ac_ext <<_ACEOF
2409/* confdefs.h.  */
2410_ACEOF
2411cat confdefs.h >>conftest.$ac_ext
2412cat >>conftest.$ac_ext <<_ACEOF
2413/* end confdefs.h.  */
2414
2415int
2416main ()
2417{
2418#ifndef __GNUC__
2419       choke me
2420#endif
2421
2422  ;
2423  return 0;
2424}
2425_ACEOF
2426rm -f conftest.$ac_objext
2427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2428  (eval $ac_compile) 2>conftest.er1
2429  ac_status=$?
2430  grep -v '^ *+' conftest.er1 >conftest.err
2431  rm -f conftest.er1
2432  cat conftest.err >&5
2433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434  (exit $ac_status); } &&
2435         { ac_try='test -z "$ac_c_werror_flag"
2436                         || test ! -s conftest.err'
2437  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2438  (eval $ac_try) 2>&5
2439  ac_status=$?
2440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441  (exit $ac_status); }; } &&
2442         { ac_try='test -s conftest.$ac_objext'
2443  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2444  (eval $ac_try) 2>&5
2445  ac_status=$?
2446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447  (exit $ac_status); }; }; then
2448  ac_compiler_gnu=yes
2449else
2450  echo "$as_me: failed program was:" >&5
2451sed 's/^/| /' conftest.$ac_ext >&5
2452
2453ac_compiler_gnu=no
2454fi
2455rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2456ac_cv_c_compiler_gnu=$ac_compiler_gnu
2457
2458fi
2459echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2460echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2461GCC=`test $ac_compiler_gnu = yes && echo yes`
2462ac_test_CFLAGS=${CFLAGS+set}
2463ac_save_CFLAGS=$CFLAGS
2464CFLAGS="-g"
2465echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2466echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2467if test "${ac_cv_prog_cc_g+set}" = set; then
2468  echo $ECHO_N "(cached) $ECHO_C" >&6
2469else
2470  cat >conftest.$ac_ext <<_ACEOF
2471/* confdefs.h.  */
2472_ACEOF
2473cat confdefs.h >>conftest.$ac_ext
2474cat >>conftest.$ac_ext <<_ACEOF
2475/* end confdefs.h.  */
2476
2477int
2478main ()
2479{
2480
2481  ;
2482  return 0;
2483}
2484_ACEOF
2485rm -f conftest.$ac_objext
2486if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2487  (eval $ac_compile) 2>conftest.er1
2488  ac_status=$?
2489  grep -v '^ *+' conftest.er1 >conftest.err
2490  rm -f conftest.er1
2491  cat conftest.err >&5
2492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493  (exit $ac_status); } &&
2494         { ac_try='test -z "$ac_c_werror_flag"
2495                         || test ! -s conftest.err'
2496  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2497  (eval $ac_try) 2>&5
2498  ac_status=$?
2499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500  (exit $ac_status); }; } &&
2501         { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2507  ac_cv_prog_cc_g=yes
2508else
2509  echo "$as_me: failed program was:" >&5
2510sed 's/^/| /' conftest.$ac_ext >&5
2511
2512ac_cv_prog_cc_g=no
2513fi
2514rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2515fi
2516echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2517echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2518if test "$ac_test_CFLAGS" = set; then
2519  CFLAGS=$ac_save_CFLAGS
2520elif test $ac_cv_prog_cc_g = yes; then
2521  if test "$GCC" = yes; then
2522    CFLAGS="-g -O2"
2523  else
2524    CFLAGS="-g"
2525  fi
2526else
2527  if test "$GCC" = yes; then
2528    CFLAGS="-O2"
2529  else
2530    CFLAGS=
2531  fi
2532fi
2533echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2534echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2535if test "${ac_cv_prog_cc_stdc+set}" = set; then
2536  echo $ECHO_N "(cached) $ECHO_C" >&6
2537else
2538  ac_cv_prog_cc_stdc=no
2539ac_save_CC=$CC
2540cat >conftest.$ac_ext <<_ACEOF
2541/* confdefs.h.  */
2542_ACEOF
2543cat confdefs.h >>conftest.$ac_ext
2544cat >>conftest.$ac_ext <<_ACEOF
2545/* end confdefs.h.  */
2546#include <stdarg.h>
2547#include <stdio.h>
2548#include <sys/types.h>
2549#include <sys/stat.h>
2550/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2551struct buf { int x; };
2552FILE * (*rcsopen) (struct buf *, struct stat *, int);
2553static char *e (p, i)
2554     char **p;
2555     int i;
2556{
2557  return p[i];
2558}
2559static char *f (char * (*g) (char **, int), char **p, ...)
2560{
2561  char *s;
2562  va_list v;
2563  va_start (v,p);
2564  s = g (p, va_arg (v,int));
2565  va_end (v);
2566  return s;
2567}
2568
2569/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2570   function prototypes and stuff, but not '\xHH' hex character constants.
2571   These don't provoke an error unfortunately, instead are silently treated
2572   as 'x'.  The following induces an error, until -std1 is added to get
2573   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2574   array size at least.  It's necessary to write '\x00'==0 to get something
2575   that's true only with -std1.  */
2576int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2577
2578int test (int i, double x);
2579struct s1 {int (*f) (int a);};
2580struct s2 {int (*f) (double a);};
2581int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2582int argc;
2583char **argv;
2584int
2585main ()
2586{
2587return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2588  ;
2589  return 0;
2590}
2591_ACEOF
2592# Don't try gcc -ansi; that turns off useful extensions and
2593# breaks some systems' header files.
2594# AIX                   -qlanglvl=ansi
2595# Ultrix and OSF/1      -std1
2596# HP-UX 10.20 and later -Ae
2597# HP-UX older versions  -Aa -D_HPUX_SOURCE
2598# SVR4                  -Xc -D__EXTENSIONS__
2599for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2600do
2601  CC="$ac_save_CC $ac_arg"
2602  rm -f conftest.$ac_objext
2603if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2604  (eval $ac_compile) 2>conftest.er1
2605  ac_status=$?
2606  grep -v '^ *+' conftest.er1 >conftest.err
2607  rm -f conftest.er1
2608  cat conftest.err >&5
2609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610  (exit $ac_status); } &&
2611         { ac_try='test -z "$ac_c_werror_flag"
2612                         || test ! -s conftest.err'
2613  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2614  (eval $ac_try) 2>&5
2615  ac_status=$?
2616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617  (exit $ac_status); }; } &&
2618         { ac_try='test -s conftest.$ac_objext'
2619  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2620  (eval $ac_try) 2>&5
2621  ac_status=$?
2622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623  (exit $ac_status); }; }; then
2624  ac_cv_prog_cc_stdc=$ac_arg
2625break
2626else
2627  echo "$as_me: failed program was:" >&5
2628sed 's/^/| /' conftest.$ac_ext >&5
2629
2630fi
2631rm -f conftest.err conftest.$ac_objext
2632done
2633rm -f conftest.$ac_ext conftest.$ac_objext
2634CC=$ac_save_CC
2635
2636fi
2637
2638case "x$ac_cv_prog_cc_stdc" in
2639  x|xno)
2640    echo "$as_me:$LINENO: result: none needed" >&5
2641echo "${ECHO_T}none needed" >&6 ;;
2642  *)
2643    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2644echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2645    CC="$CC $ac_cv_prog_cc_stdc" ;;
2646esac
2647
2648# Some people use a C++ compiler to compile C.  Since we use `exit',
2649# in C++ we need to declare it.  In case someone uses the same compiler
2650# for both compiling C and C++ we need to have the C++ compiler decide
2651# the declaration of exit, since it's the most demanding environment.
2652cat >conftest.$ac_ext <<_ACEOF
2653#ifndef __cplusplus
2654  choke me
2655#endif
2656_ACEOF
2657rm -f conftest.$ac_objext
2658if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2659  (eval $ac_compile) 2>conftest.er1
2660  ac_status=$?
2661  grep -v '^ *+' conftest.er1 >conftest.err
2662  rm -f conftest.er1
2663  cat conftest.err >&5
2664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665  (exit $ac_status); } &&
2666         { ac_try='test -z "$ac_c_werror_flag"
2667                         || test ! -s conftest.err'
2668  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2669  (eval $ac_try) 2>&5
2670  ac_status=$?
2671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672  (exit $ac_status); }; } &&
2673         { ac_try='test -s conftest.$ac_objext'
2674  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2675  (eval $ac_try) 2>&5
2676  ac_status=$?
2677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678  (exit $ac_status); }; }; then
2679  for ac_declaration in \
2680   '' \
2681   'extern "C" void std::exit (int) throw (); using std::exit;' \
2682   'extern "C" void std::exit (int); using std::exit;' \
2683   'extern "C" void exit (int) throw ();' \
2684   'extern "C" void exit (int);' \
2685   'void exit (int);'
2686do
2687  cat >conftest.$ac_ext <<_ACEOF
2688/* confdefs.h.  */
2689_ACEOF
2690cat confdefs.h >>conftest.$ac_ext
2691cat >>conftest.$ac_ext <<_ACEOF
2692/* end confdefs.h.  */
2693$ac_declaration
2694#include <stdlib.h>
2695int
2696main ()
2697{
2698exit (42);
2699  ;
2700  return 0;
2701}
2702_ACEOF
2703rm -f conftest.$ac_objext
2704if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2705  (eval $ac_compile) 2>conftest.er1
2706  ac_status=$?
2707  grep -v '^ *+' conftest.er1 >conftest.err
2708  rm -f conftest.er1
2709  cat conftest.err >&5
2710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711  (exit $ac_status); } &&
2712         { ac_try='test -z "$ac_c_werror_flag"
2713                         || test ! -s conftest.err'
2714  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2715  (eval $ac_try) 2>&5
2716  ac_status=$?
2717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718  (exit $ac_status); }; } &&
2719         { ac_try='test -s conftest.$ac_objext'
2720  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2721  (eval $ac_try) 2>&5
2722  ac_status=$?
2723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724  (exit $ac_status); }; }; then
2725  :
2726else
2727  echo "$as_me: failed program was:" >&5
2728sed 's/^/| /' conftest.$ac_ext >&5
2729
2730continue
2731fi
2732rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2733  cat >conftest.$ac_ext <<_ACEOF
2734/* confdefs.h.  */
2735_ACEOF
2736cat confdefs.h >>conftest.$ac_ext
2737cat >>conftest.$ac_ext <<_ACEOF
2738/* end confdefs.h.  */
2739$ac_declaration
2740int
2741main ()
2742{
2743exit (42);
2744  ;
2745  return 0;
2746}
2747_ACEOF
2748rm -f conftest.$ac_objext
2749if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2750  (eval $ac_compile) 2>conftest.er1
2751  ac_status=$?
2752  grep -v '^ *+' conftest.er1 >conftest.err
2753  rm -f conftest.er1
2754  cat conftest.err >&5
2755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756  (exit $ac_status); } &&
2757         { ac_try='test -z "$ac_c_werror_flag"
2758                         || test ! -s conftest.err'
2759  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2760  (eval $ac_try) 2>&5
2761  ac_status=$?
2762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763  (exit $ac_status); }; } &&
2764         { ac_try='test -s conftest.$ac_objext'
2765  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2766  (eval $ac_try) 2>&5
2767  ac_status=$?
2768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769  (exit $ac_status); }; }; then
2770  break
2771else
2772  echo "$as_me: failed program was:" >&5
2773sed 's/^/| /' conftest.$ac_ext >&5
2774
2775fi
2776rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2777done
2778rm -f conftest*
2779if test -n "$ac_declaration"; then
2780  echo '#ifdef __cplusplus' >>confdefs.h
2781  echo $ac_declaration      >>confdefs.h
2782  echo '#endif'             >>confdefs.h
2783fi
2784
2785else
2786  echo "$as_me: failed program was:" >&5
2787sed 's/^/| /' conftest.$ac_ext >&5
2788
2789fi
2790rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2791ac_ext=c
2792ac_cpp='$CPP $CPPFLAGS'
2793ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2794ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2795ac_compiler_gnu=$ac_cv_c_compiler_gnu
2796
2797if test -z "$CC" ; then
2798  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2799echo "$as_me: error: Failed to find a C compiler!" >&2;}
2800   { (exit 1); exit 1; }; }
2801fi
2802# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2803case "$CC" in
2804  cl* | */cl* | CL* | */CL* )
2805    if test "$ac_cv_prog_cc_g" = yes ; then
2806      ac_cv_prog_cc_g=no
2807      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2808echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2809    fi ;;
2810esac
2811CFLAGS="$save_cflags"
2812
2813# add automake conditional so we can recognize cl compiler in makefile
2814coin_cc_is_cl=false
2815case "$CC" in
2816  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2817    coin_cc_is_cl=true
2818    ;;
2819esac
2820
2821
2822if test $coin_cc_is_cl = true; then
2823  COIN_CC_IS_CL_TRUE=
2824  COIN_CC_IS_CL_FALSE='#'
2825else
2826  COIN_CC_IS_CL_TRUE='#'
2827  COIN_CC_IS_CL_FALSE=
2828fi
2829
2830
2831# Check if a project specific CFLAGS variable has been set
2832if test x$COIN_PRJCT != x; then
2833  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2834  if test x$coin_tmp = xset; then
2835    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2836  fi
2837fi
2838
2839if test x"$CFLAGS" = x; then
2840
2841  coin_add_cflags=
2842  coin_opt_cflags=
2843  coin_dbg_cflags=
2844  coin_warn_cflags=
2845
2846  if test "$GCC" = "yes"; then
2847    case "$CC" in
2848      icc* | */icc*)
2849        ;;
2850      *)
2851        coin_opt_cflags="-O3"
2852        coin_add_cflags="-pipe"
2853        coin_dbg_cflags="-g -O0"
2854        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2855        case $build in
2856          *-darwin*)
2857            ;;
2858          *)
2859            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2860            ;;
2861        esac
2862        case $enable_doscompile in
2863          mingw)
2864            CFLAGS="-mno-cygwin"
2865            cat >conftest.$ac_ext <<_ACEOF
2866/* confdefs.h.  */
2867_ACEOF
2868cat confdefs.h >>conftest.$ac_ext
2869cat >>conftest.$ac_ext <<_ACEOF
2870/* end confdefs.h.  */
2871
2872int
2873main ()
2874{
2875int i=0; i++;
2876  ;
2877  return 0;
2878}
2879_ACEOF
2880rm -f conftest.$ac_objext conftest$ac_exeext
2881if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2882  (eval $ac_link) 2>conftest.er1
2883  ac_status=$?
2884  grep -v '^ *+' conftest.er1 >conftest.err
2885  rm -f conftest.er1
2886  cat conftest.err >&5
2887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888  (exit $ac_status); } &&
2889         { ac_try='test -z "$ac_c_werror_flag"
2890                         || test ! -s conftest.err'
2891  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2892  (eval $ac_try) 2>&5
2893  ac_status=$?
2894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895  (exit $ac_status); }; } &&
2896         { ac_try='test -s conftest$ac_exeext'
2897  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2898  (eval $ac_try) 2>&5
2899  ac_status=$?
2900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901  (exit $ac_status); }; }; then
2902  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2903else
2904  echo "$as_me: failed program was:" >&5
2905sed 's/^/| /' conftest.$ac_ext >&5
2906
2907fi
2908rm -f conftest.err conftest.$ac_objext \
2909      conftest$ac_exeext conftest.$ac_ext
2910            CFLAGS=
2911          ;;
2912        esac
2913    esac
2914  fi
2915  if test -z "$coin_opt_cflags"; then
2916    case $build in
2917      *-cygwin* | *-mingw*)
2918        case "$CC" in
2919          cl* | */cl* | CL* | */CL*)
2920            coin_opt_cflags='-MT -O2'
2921            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2922            coin_dbg_cflags='-MTd'
2923            ;;
2924          icl* | */icl* | ICL* | */ICL*)
2925            coin_opt_cflags='-MT -Ox'
2926            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2927            coin_dbg_cflags='-MTd -debug'
2928            ;;
2929        esac
2930        ;;
2931      *-linux-*)
2932        case "$CC" in
2933          icc* | */icc*)
2934            coin_opt_cflags="-O3 -ip -mp1"
2935            coin_add_cflags=""
2936            coin_dbg_cflags="-g"
2937            # Check if -i_dynamic is necessary (for new glibc library)
2938            CFLAGS=
2939            cat >conftest.$ac_ext <<_ACEOF
2940/* confdefs.h.  */
2941_ACEOF
2942cat confdefs.h >>conftest.$ac_ext
2943cat >>conftest.$ac_ext <<_ACEOF
2944/* end confdefs.h.  */
2945
2946int
2947main ()
2948{
2949int i=0; i++;
2950  ;
2951  return 0;
2952}
2953_ACEOF
2954rm -f conftest.$ac_objext conftest$ac_exeext
2955if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2956  (eval $ac_link) 2>conftest.er1
2957  ac_status=$?
2958  grep -v '^ *+' conftest.er1 >conftest.err
2959  rm -f conftest.er1
2960  cat conftest.err >&5
2961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962  (exit $ac_status); } &&
2963         { ac_try='test -z "$ac_c_werror_flag"
2964                         || test ! -s conftest.err'
2965  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2966  (eval $ac_try) 2>&5
2967  ac_status=$?
2968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969  (exit $ac_status); }; } &&
2970         { ac_try='test -s conftest$ac_exeext'
2971  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2972  (eval $ac_try) 2>&5
2973  ac_status=$?
2974  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975  (exit $ac_status); }; }; then
2976  :
2977else
2978  echo "$as_me: failed program was:" >&5
2979sed 's/^/| /' conftest.$ac_ext >&5
2980
2981coin_add_cflags="-i_dynamic $coin_add_cflags"
2982fi
2983rm -f conftest.err conftest.$ac_objext \
2984      conftest$ac_exeext conftest.$ac_ext
2985            ;;
2986          pgcc* | */pgcc*)
2987            coin_opt_cflags="-fast"
2988            coin_add_cflags="-Kieee -pc 64"
2989            coin_dbg_cflags="-g"
2990            ;;
2991        esac
2992        ;;
2993      *-ibm-*)
2994        case "$CC" in
2995          xlc* | */xlc* | mpxlc* | */mpxlc*)
2996            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2997            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2998            coin_dbg_cflags="-g"
2999          ;;
3000        esac
3001        ;;
3002      *-hp-*)
3003        coin_opt_cflags="-O"
3004        coin_add_cflags="-Ae"
3005        coin_dbg_cflags="-g"
3006        ;;
3007      *-*-solaris*)
3008        coin_opt_cflags="-xO4"
3009        coin_dbg_cflags="-g"
3010        ;;
3011      *-sgi-*)
3012        coin_opt_cflags="-O -OPT:Olimit=0"
3013        coin_dbg_cflags="-g"
3014        ;;
3015    esac
3016  fi
3017
3018  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
3019    coin_dbg_cflags="-g"
3020  fi
3021
3022  if test -z "$coin_opt_cflags"; then
3023    # Try if -O option works if nothing else is set
3024    CFLAGS="-O"
3025    cat >conftest.$ac_ext <<_ACEOF
3026/* confdefs.h.  */
3027_ACEOF
3028cat confdefs.h >>conftest.$ac_ext
3029cat >>conftest.$ac_ext <<_ACEOF
3030/* end confdefs.h.  */
3031
3032int
3033main ()
3034{
3035int i=0; i++;
3036  ;
3037  return 0;
3038}
3039_ACEOF
3040rm -f conftest.$ac_objext conftest$ac_exeext
3041if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3042  (eval $ac_link) 2>conftest.er1
3043  ac_status=$?
3044  grep -v '^ *+' conftest.er1 >conftest.err
3045  rm -f conftest.er1
3046  cat conftest.err >&5
3047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048  (exit $ac_status); } &&
3049         { ac_try='test -z "$ac_c_werror_flag"
3050                         || test ! -s conftest.err'
3051  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3052  (eval $ac_try) 2>&5
3053  ac_status=$?
3054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055  (exit $ac_status); }; } &&
3056         { ac_try='test -s conftest$ac_exeext'
3057  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3058  (eval $ac_try) 2>&5
3059  ac_status=$?
3060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061  (exit $ac_status); }; }; then
3062  coin_opt_cflags="-O"
3063else
3064  echo "$as_me: failed program was:" >&5
3065sed 's/^/| /' conftest.$ac_ext >&5
3066
3067fi
3068rm -f conftest.err conftest.$ac_objext \
3069      conftest$ac_exeext conftest.$ac_ext
3070  fi
3071
3072  # if PM doesn't want the warning messages, take them out
3073  if test x"$coin_skip_warn_cflags" = xyes; then
3074    coin_warn_cflags=
3075  fi
3076
3077  if test x${DBG_CFLAGS+set} != xset; then
3078    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3079  fi
3080  if test x${OPT_CFLAGS+set} != xset; then
3081    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3082  fi
3083
3084  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3085  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3086
3087  if test "$coin_debug_compile" = "true"; then
3088    CFLAGS="$DBG_CFLAGS"
3089  else
3090    CFLAGS="$OPT_CFLAGS"
3091  fi
3092else
3093  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3094  if test x${DBG_CFLAGS+set} != xset; then
3095    DBG_CFLAGS="$CFLAGS"
3096  fi
3097  if test x${OPT_CFLAGS+set} != xset; then
3098    OPT_CFLAGS="$CFLAGS"
3099  fi
3100fi
3101
3102# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3103
3104case "$CFLAGS" in
3105  *-mno-cygwin*)
3106    if test x${CPPFLAGS+set} != xset ; then
3107      CPPFLAGS="-mno-cygwin"
3108    else
3109      case "$CPPFLAGS" in
3110        *-mno-cygwin*)
3111          ;;
3112        *)
3113          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3114          ;;
3115      esac
3116    fi ;;
3117esac
3118
3119# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3120if test x$COIN_PRJCT != x; then
3121  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3122fi
3123
3124# Try if CFLAGS works
3125save_CFLAGS="$CFLAGS"
3126cat >conftest.$ac_ext <<_ACEOF
3127/* confdefs.h.  */
3128_ACEOF
3129cat confdefs.h >>conftest.$ac_ext
3130cat >>conftest.$ac_ext <<_ACEOF
3131/* end confdefs.h.  */
3132
3133int
3134main ()
3135{
3136int i=0; i++;
3137  ;
3138  return 0;
3139}
3140_ACEOF
3141rm -f conftest.$ac_objext conftest$ac_exeext
3142if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3143  (eval $ac_link) 2>conftest.er1
3144  ac_status=$?
3145  grep -v '^ *+' conftest.er1 >conftest.err
3146  rm -f conftest.er1
3147  cat conftest.err >&5
3148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149  (exit $ac_status); } &&
3150         { ac_try='test -z "$ac_c_werror_flag"
3151                         || test ! -s conftest.err'
3152  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3153  (eval $ac_try) 2>&5
3154  ac_status=$?
3155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156  (exit $ac_status); }; } &&
3157         { ac_try='test -s conftest$ac_exeext'
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); }; }; then
3163  :
3164else
3165  echo "$as_me: failed program was:" >&5
3166sed 's/^/| /' conftest.$ac_ext >&5
3167
3168CFLAGS=
3169fi
3170rm -f conftest.err conftest.$ac_objext \
3171      conftest$ac_exeext conftest.$ac_ext
3172if test -z "$CFLAGS"; then
3173  { 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
3174echo "$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;}
3175  CFLAGS='-O'
3176  cat >conftest.$ac_ext <<_ACEOF
3177/* confdefs.h.  */
3178_ACEOF
3179cat confdefs.h >>conftest.$ac_ext
3180cat >>conftest.$ac_ext <<_ACEOF
3181/* end confdefs.h.  */
3182
3183int
3184main ()
3185{
3186int i=0; i++;
3187  ;
3188  return 0;
3189}
3190_ACEOF
3191rm -f conftest.$ac_objext conftest$ac_exeext
3192if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3193  (eval $ac_link) 2>conftest.er1
3194  ac_status=$?
3195  grep -v '^ *+' conftest.er1 >conftest.err
3196  rm -f conftest.er1
3197  cat conftest.err >&5
3198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199  (exit $ac_status); } &&
3200         { ac_try='test -z "$ac_c_werror_flag"
3201                         || test ! -s conftest.err'
3202  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3203  (eval $ac_try) 2>&5
3204  ac_status=$?
3205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206  (exit $ac_status); }; } &&
3207         { ac_try='test -s conftest$ac_exeext'
3208  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3209  (eval $ac_try) 2>&5
3210  ac_status=$?
3211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212  (exit $ac_status); }; }; then
3213  :
3214else
3215  echo "$as_me: failed program was:" >&5
3216sed 's/^/| /' conftest.$ac_ext >&5
3217
3218CFLAGS=
3219fi
3220rm -f conftest.err conftest.$ac_objext \
3221      conftest$ac_exeext conftest.$ac_ext
3222  if test -z "$CFLAGS"; then
3223    { 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
3224echo "$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;}
3225  fi
3226fi
3227
3228{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3229echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3230
3231
3232if test x"$MPICC" = x; then :; else
3233  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3234echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3235  CC="$MPICC"
3236fi
3237
3238# Correct the LD variable if we are using the MS or Intel-windows compiler
3239case "$CC" in
3240  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3241    case $build in
3242  *-mingw*)
3243    if test "${LD+set}" = set; then :; else
3244      LD=link
3245    fi
3246    ;;
3247 esac
3248 case $enable_doscompile in
3249   msvc)
3250     if test "x${LD+set}" = xset; then :; else
3251       LD=link
3252     fi
3253     ;;
3254 esac
3255
3256    ;;
3257esac
3258
3259ac_ext=c
3260ac_cpp='$CPP $CPPFLAGS'
3261ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3262ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3263ac_compiler_gnu=$ac_cv_c_compiler_gnu
3264
3265
3266
3267# Get the name of the C++ compiler and appropriate compiler options
3268
3269 #Let's try if that overcomes configuration problem with VC++ 6.0
3270
3271ac_ext=cc
3272ac_cpp='$CXXCPP $CPPFLAGS'
3273ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3274ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3275ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3276
3277
3278
3279
3280
3281
3282
3283coin_has_cxx=yes
3284
3285save_cxxflags="$CXXFLAGS"
3286# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3287case $build in
3288  *-cygwin* | *-mingw*)
3289             if test "$enable_doscompile" = msvc ; then
3290               comps="icl cl"
3291             else
3292               comps="g++ cl"
3293             fi ;;
3294  *-*-solaris*)
3295             comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3296  *-darwin*) comps="g++ c++ CC" ;;
3297  *-linux-gnu*)
3298             comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;;
3299          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3300esac
3301
3302# We delete the cached value, since the test might not have been
3303# performed with our choice of compilers earlier
3304$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3305# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3306ac_ext=cc
3307ac_cpp='$CXXCPP $CPPFLAGS'
3308ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3309ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3310ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3311if test -n "$ac_tool_prefix"; then
3312  for ac_prog in $CCC $comps
3313  do
3314    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3315set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3316echo "$as_me:$LINENO: checking for $ac_word" >&5
3317echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3318if test "${ac_cv_prog_CXX+set}" = set; then
3319  echo $ECHO_N "(cached) $ECHO_C" >&6
3320else
3321  if test -n "$CXX"; then
3322  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3323else
3324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3325for as_dir in $PATH
3326do
3327  IFS=$as_save_IFS
3328  test -z "$as_dir" && as_dir=.
3329  for ac_exec_ext in '' $ac_executable_extensions; do
3330  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3331    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3332    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3333    break 2
3334  fi
3335done
3336done
3337
3338fi
3339fi
3340CXX=$ac_cv_prog_CXX
3341if test -n "$CXX"; then
3342  echo "$as_me:$LINENO: result: $CXX" >&5
3343echo "${ECHO_T}$CXX" >&6
3344else
3345  echo "$as_me:$LINENO: result: no" >&5
3346echo "${ECHO_T}no" >&6
3347fi
3348
3349    test -n "$CXX" && break
3350  done
3351fi
3352if test -z "$CXX"; then
3353  ac_ct_CXX=$CXX
3354  for ac_prog in $CCC $comps
3355do
3356  # Extract the first word of "$ac_prog", so it can be a program name with args.
3357set dummy $ac_prog; ac_word=$2
3358echo "$as_me:$LINENO: checking for $ac_word" >&5
3359echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3360if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3361  echo $ECHO_N "(cached) $ECHO_C" >&6
3362else
3363  if test -n "$ac_ct_CXX"; then
3364  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3365else
3366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3367for as_dir in $PATH
3368do
3369  IFS=$as_save_IFS
3370  test -z "$as_dir" && as_dir=.
3371  for ac_exec_ext in '' $ac_executable_extensions; do
3372  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3373    ac_cv_prog_ac_ct_CXX="$ac_prog"
3374    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3375    break 2
3376  fi
3377done
3378done
3379
3380fi
3381fi
3382ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3383if test -n "$ac_ct_CXX"; then
3384  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3385echo "${ECHO_T}$ac_ct_CXX" >&6
3386else
3387  echo "$as_me:$LINENO: result: no" >&5
3388echo "${ECHO_T}no" >&6
3389fi
3390
3391  test -n "$ac_ct_CXX" && break
3392done
3393test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3394
3395  CXX=$ac_ct_CXX
3396fi
3397
3398
3399# Provide some information about the compiler.
3400echo "$as_me:$LINENO:" \
3401     "checking for C++ compiler version" >&5
3402ac_compiler=`set X $ac_compile; echo $2`
3403{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3404  (eval $ac_compiler --version </dev/null >&5) 2>&5
3405  ac_status=$?
3406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407  (exit $ac_status); }
3408{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3409  (eval $ac_compiler -v </dev/null >&5) 2>&5
3410  ac_status=$?
3411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412  (exit $ac_status); }
3413{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3414  (eval $ac_compiler -V </dev/null >&5) 2>&5
3415  ac_status=$?
3416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417  (exit $ac_status); }
3418
3419echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3420echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3421if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3422  echo $ECHO_N "(cached) $ECHO_C" >&6
3423else
3424  cat >conftest.$ac_ext <<_ACEOF
3425/* confdefs.h.  */
3426_ACEOF
3427cat confdefs.h >>conftest.$ac_ext
3428cat >>conftest.$ac_ext <<_ACEOF
3429/* end confdefs.h.  */
3430
3431int
3432main ()
3433{
3434#ifndef __GNUC__
3435       choke me
3436#endif
3437
3438  ;
3439  return 0;
3440}
3441_ACEOF
3442rm -f conftest.$ac_objext
3443if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3444  (eval $ac_compile) 2>conftest.er1
3445  ac_status=$?
3446  grep -v '^ *+' conftest.er1 >conftest.err
3447  rm -f conftest.er1
3448  cat conftest.err >&5
3449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450  (exit $ac_status); } &&
3451         { ac_try='test -z "$ac_cxx_werror_flag"
3452                         || test ! -s conftest.err'
3453  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3454  (eval $ac_try) 2>&5
3455  ac_status=$?
3456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457  (exit $ac_status); }; } &&
3458         { ac_try='test -s conftest.$ac_objext'
3459  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3460  (eval $ac_try) 2>&5
3461  ac_status=$?
3462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463  (exit $ac_status); }; }; then
3464  ac_compiler_gnu=yes
3465else
3466  echo "$as_me: failed program was:" >&5
3467sed 's/^/| /' conftest.$ac_ext >&5
3468
3469ac_compiler_gnu=no
3470fi
3471rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3472ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3473
3474fi
3475echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3476echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3477GXX=`test $ac_compiler_gnu = yes && echo yes`
3478ac_test_CXXFLAGS=${CXXFLAGS+set}
3479ac_save_CXXFLAGS=$CXXFLAGS
3480CXXFLAGS="-g"
3481echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3482echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3483if test "${ac_cv_prog_cxx_g+set}" = set; then
3484  echo $ECHO_N "(cached) $ECHO_C" >&6
3485else
3486  cat >conftest.$ac_ext <<_ACEOF
3487/* confdefs.h.  */
3488_ACEOF
3489cat confdefs.h >>conftest.$ac_ext
3490cat >>conftest.$ac_ext <<_ACEOF
3491/* end confdefs.h.  */
3492
3493int
3494main ()
3495{
3496
3497  ;
3498  return 0;
3499}
3500_ACEOF
3501rm -f conftest.$ac_objext
3502if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3503  (eval $ac_compile) 2>conftest.er1
3504  ac_status=$?
3505  grep -v '^ *+' conftest.er1 >conftest.err
3506  rm -f conftest.er1
3507  cat conftest.err >&5
3508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509  (exit $ac_status); } &&
3510         { ac_try='test -z "$ac_cxx_werror_flag"
3511                         || test ! -s conftest.err'
3512  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3513  (eval $ac_try) 2>&5
3514  ac_status=$?
3515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516  (exit $ac_status); }; } &&
3517         { ac_try='test -s conftest.$ac_objext'
3518  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3519  (eval $ac_try) 2>&5
3520  ac_status=$?
3521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522  (exit $ac_status); }; }; then
3523  ac_cv_prog_cxx_g=yes
3524else
3525  echo "$as_me: failed program was:" >&5
3526sed 's/^/| /' conftest.$ac_ext >&5
3527
3528ac_cv_prog_cxx_g=no
3529fi
3530rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3531fi
3532echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3533echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3534if test "$ac_test_CXXFLAGS" = set; then
3535  CXXFLAGS=$ac_save_CXXFLAGS
3536elif test $ac_cv_prog_cxx_g = yes; then
3537  if test "$GXX" = yes; then
3538    CXXFLAGS="-g -O2"
3539  else
3540    CXXFLAGS="-g"
3541  fi
3542else
3543  if test "$GXX" = yes; then
3544    CXXFLAGS="-O2"
3545  else
3546    CXXFLAGS=
3547  fi
3548fi
3549for ac_declaration in \
3550   '' \
3551   'extern "C" void std::exit (int) throw (); using std::exit;' \
3552   'extern "C" void std::exit (int); using std::exit;' \
3553   'extern "C" void exit (int) throw ();' \
3554   'extern "C" void exit (int);' \
3555   'void exit (int);'
3556do
3557  cat >conftest.$ac_ext <<_ACEOF
3558/* confdefs.h.  */
3559_ACEOF
3560cat confdefs.h >>conftest.$ac_ext
3561cat >>conftest.$ac_ext <<_ACEOF
3562/* end confdefs.h.  */
3563$ac_declaration
3564#include <stdlib.h>
3565int
3566main ()
3567{
3568exit (42);
3569  ;
3570  return 0;
3571}
3572_ACEOF
3573rm -f conftest.$ac_objext
3574if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3575  (eval $ac_compile) 2>conftest.er1
3576  ac_status=$?
3577  grep -v '^ *+' conftest.er1 >conftest.err
3578  rm -f conftest.er1
3579  cat conftest.err >&5
3580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581  (exit $ac_status); } &&
3582         { ac_try='test -z "$ac_cxx_werror_flag"
3583                         || test ! -s conftest.err'
3584  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3585  (eval $ac_try) 2>&5
3586  ac_status=$?
3587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588  (exit $ac_status); }; } &&
3589         { ac_try='test -s conftest.$ac_objext'
3590  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3591  (eval $ac_try) 2>&5
3592  ac_status=$?
3593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594  (exit $ac_status); }; }; then
3595  :
3596else
3597  echo "$as_me: failed program was:" >&5
3598sed 's/^/| /' conftest.$ac_ext >&5
3599
3600continue
3601fi
3602rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3603  cat >conftest.$ac_ext <<_ACEOF
3604/* confdefs.h.  */
3605_ACEOF
3606cat confdefs.h >>conftest.$ac_ext
3607cat >>conftest.$ac_ext <<_ACEOF
3608/* end confdefs.h.  */
3609$ac_declaration
3610int
3611main ()
3612{
3613exit (42);
3614  ;
3615  return 0;
3616}
3617_ACEOF
3618rm -f conftest.$ac_objext
3619if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3620  (eval $ac_compile) 2>conftest.er1
3621  ac_status=$?
3622  grep -v '^ *+' conftest.er1 >conftest.err
3623  rm -f conftest.er1
3624  cat conftest.err >&5
3625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626  (exit $ac_status); } &&
3627         { ac_try='test -z "$ac_cxx_werror_flag"
3628                         || test ! -s conftest.err'
3629  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3630  (eval $ac_try) 2>&5
3631  ac_status=$?
3632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633  (exit $ac_status); }; } &&
3634         { ac_try='test -s conftest.$ac_objext'
3635  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3636  (eval $ac_try) 2>&5
3637  ac_status=$?
3638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3639  (exit $ac_status); }; }; then
3640  break
3641else
3642  echo "$as_me: failed program was:" >&5
3643sed 's/^/| /' conftest.$ac_ext >&5
3644
3645fi
3646rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3647done
3648rm -f conftest*
3649if test -n "$ac_declaration"; then
3650  echo '#ifdef __cplusplus' >>confdefs.h
3651  echo $ac_declaration      >>confdefs.h
3652  echo '#endif'             >>confdefs.h
3653fi
3654
3655ac_ext=cc
3656ac_cpp='$CXXCPP $CPPFLAGS'
3657ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3658ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3659ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3660
3661
3662#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3663#thus, we test here whether $CXX is actually working
3664ac_ext=cc
3665ac_cpp='$CXXCPP $CPPFLAGS'
3666ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3667ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3668ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3669
3670echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3671echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3672cat >conftest.$ac_ext <<_ACEOF
3673/* confdefs.h.  */
3674_ACEOF
3675cat confdefs.h >>conftest.$ac_ext
3676cat >>conftest.$ac_ext <<_ACEOF
3677/* end confdefs.h.  */
3678
3679int
3680main ()
3681{
3682int i=0;
3683  ;
3684  return 0;
3685}
3686_ACEOF
3687rm -f conftest.$ac_objext
3688if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3689  (eval $ac_compile) 2>conftest.er1
3690  ac_status=$?
3691  grep -v '^ *+' conftest.er1 >conftest.err
3692  rm -f conftest.er1
3693  cat conftest.err >&5
3694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3695  (exit $ac_status); } &&
3696         { ac_try='test -z "$ac_cxx_werror_flag"
3697                         || test ! -s conftest.err'
3698  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3699  (eval $ac_try) 2>&5
3700  ac_status=$?
3701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702  (exit $ac_status); }; } &&
3703         { ac_try='test -s conftest.$ac_objext'
3704  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3705  (eval $ac_try) 2>&5
3706  ac_status=$?
3707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708  (exit $ac_status); }; }; then
3709  echo "$as_me:$LINENO: result: yes" >&5
3710echo "${ECHO_T}yes" >&6
3711else
3712  echo "$as_me: failed program was:" >&5
3713sed 's/^/| /' conftest.$ac_ext >&5
3714
3715echo "$as_me:$LINENO: result: no" >&5
3716echo "${ECHO_T}no" >&6
3717   { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3718echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3719   { (exit 1); exit 1; }; }
3720
3721fi
3722rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3723ac_ext=cc
3724ac_cpp='$CXXCPP $CPPFLAGS'
3725ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3726ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3727ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3728
3729
3730coin_cxx_is_cl=false
3731# It seems that we need to cleanup something here for the Windows
3732case "$CXX" in
3733  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3734    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3735    mv confdefs.hh confdefs.h
3736    coin_cxx_is_cl=true
3737    ;;
3738esac
3739
3740# add automake conditional so we can recognize cl compiler in makefile
3741
3742
3743if test $coin_cxx_is_cl = true; then
3744  COIN_CXX_IS_CL_TRUE=
3745  COIN_CXX_IS_CL_FALSE='#'
3746else
3747  COIN_CXX_IS_CL_TRUE='#'
3748  COIN_CXX_IS_CL_FALSE=
3749fi
3750
3751
3752# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3753case "$CXX" in
3754  cl* | */cl* | CL* | */CL* )
3755    if test "$ac_cv_prog_cxx_g" = yes ; then
3756      ac_cv_prog_cxx_g=no
3757      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3758echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3759    fi ;;
3760esac
3761CXXFLAGS="$save_cxxflags"
3762
3763# Check if a project specific CXXFLAGS variable has been set
3764if test x$COIN_PRJCT != x; then
3765  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3766  if test x$coin_tmp = xset; then
3767    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3768  fi
3769fi
3770
3771if test x"$CXXFLAGS" = x; then
3772
3773# ToDo decide whether we want -DNDEBUG for optimization
3774  coin_add_cxxflags=
3775  coin_opt_cxxflags=
3776  coin_dbg_cxxflags=
3777  coin_warn_cxxflags=
3778
3779  if test "$GXX" = "yes"; then
3780    case "$CXX" in
3781      icpc* | */icpc*)
3782        ;;
3783      *)
3784# ToDo decide about unroll-loops
3785        coin_opt_cxxflags="-O3"
3786        coin_add_cxxflags="-pipe"
3787        coin_dbg_cxxflags="-g -O0"
3788        coin_warn_cxxflags="-Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long"
3789        case $build in
3790          *-darwin*)
3791            ;;
3792          *)
3793            coin_warn_cxxflags="-pedantic-errors $coin_warn_cxxflags"
3794            ;;
3795        esac
3796
3797        case $enable_doscompile in
3798          mingw)
3799            CXXFLAGS="-mno-cygwin"
3800            cat >conftest.$ac_ext <<_ACEOF
3801/* confdefs.h.  */
3802_ACEOF
3803cat confdefs.h >>conftest.$ac_ext
3804cat >>conftest.$ac_ext <<_ACEOF
3805/* end confdefs.h.  */
3806
3807int
3808main ()
3809{
3810int i=0; i++;
3811  ;
3812  return 0;
3813}
3814_ACEOF
3815rm -f conftest.$ac_objext conftest$ac_exeext
3816if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3817  (eval $ac_link) 2>conftest.er1
3818  ac_status=$?
3819  grep -v '^ *+' conftest.er1 >conftest.err
3820  rm -f conftest.er1
3821  cat conftest.err >&5
3822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3823  (exit $ac_status); } &&
3824         { ac_try='test -z "$ac_cxx_werror_flag"
3825                         || test ! -s conftest.err'
3826  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3827  (eval $ac_try) 2>&5
3828  ac_status=$?
3829  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830  (exit $ac_status); }; } &&
3831         { ac_try='test -s conftest$ac_exeext'
3832  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3833  (eval $ac_try) 2>&5
3834  ac_status=$?
3835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836  (exit $ac_status); }; }; then
3837  coin_add_cxxflags="-mno-cygwin $coin_add_cxxflags"
3838else
3839  echo "$as_me: failed program was:" >&5
3840sed 's/^/| /' conftest.$ac_ext >&5
3841
3842fi
3843rm -f conftest.err conftest.$ac_objext \
3844      conftest$ac_exeext conftest.$ac_ext
3845            CXXFLAGS=
3846          ;;
3847        esac
3848    esac
3849  fi
3850
3851# Note that we do not need to cover GCC in the following tests.
3852
3853  if test -z "$coin_opt_cxxflags"; then
3854    case $build in
3855      *-cygwin* | *-mingw*)
3856        case "$CXX" in
3857          cl* | */cl* | CL* | */CL*)
3858            # The MT and MTd options are mutually exclusive
3859            coin_opt_cxxflags='-MT -O2'
3860            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3861            coin_dbg_cxxflags='-MTd'
3862            ;;
3863          icl* | */icl* | ICL* | */ICL*)
3864            # The MT and MTd options are mutually exclusive
3865            coin_opt_cxxflags='-MT -Ox'
3866            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3867            coin_dbg_cxxflags='-MTd -debug'
3868            ;;
3869        esac
3870        ;;
3871      *-linux-*)
3872        case "$CXX" in
3873          icpc* | */icpc*)
3874            coin_opt_cxxflags="-O3 -ip -mp1"
3875            coin_add_cxxflags=""
3876            coin_dbg_cxxflags="-g"
3877            # Check if -i_dynamic is necessary (for new glibc library)
3878            CXXFLAGS=
3879            cat >conftest.$ac_ext <<_ACEOF
3880/* confdefs.h.  */
3881_ACEOF
3882cat confdefs.h >>conftest.$ac_ext
3883cat >>conftest.$ac_ext <<_ACEOF
3884/* end confdefs.h.  */
3885
3886int
3887main ()
3888{
3889int i=0; i++;
3890  ;
3891  return 0;
3892}
3893_ACEOF
3894rm -f conftest.$ac_objext conftest$ac_exeext
3895if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3896  (eval $ac_link) 2>conftest.er1
3897  ac_status=$?
3898  grep -v '^ *+' conftest.er1 >conftest.err
3899  rm -f conftest.er1
3900  cat conftest.err >&5
3901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902  (exit $ac_status); } &&
3903         { ac_try='test -z "$ac_cxx_werror_flag"
3904                         || test ! -s conftest.err'
3905  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3906  (eval $ac_try) 2>&5
3907  ac_status=$?
3908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3909  (exit $ac_status); }; } &&
3910         { ac_try='test -s conftest$ac_exeext'
3911  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3912  (eval $ac_try) 2>&5
3913  ac_status=$?
3914  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915  (exit $ac_status); }; }; then
3916  :
3917else
3918  echo "$as_me: failed program was:" >&5
3919sed 's/^/| /' conftest.$ac_ext >&5
3920
3921coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3922fi
3923rm -f conftest.err conftest.$ac_objext \
3924      conftest$ac_exeext conftest.$ac_ext
3925            ;;
3926          pgCC* | */pgCC*)
3927            coin_opt_cxxflags="-fast"
3928            coin_add_cxxflags="-Kieee -pc 64"
3929            coin_dbg_cxxflags="-g"
3930            ;;
3931        esac
3932        ;;
3933      *-ibm-*)
3934        case "$CXX" in
3935          xlC* | */xlC* | mpxlC* | */mpxlC*)
3936            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3937            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3938            coin_dbg_cxxflags="-g"
3939            ;;
3940        esac
3941        ;;
3942      *-hp-*)
3943        case "$CXX" in
3944          aCC* | */aCC* )
3945            coin_opt_cxxflags="-O"
3946            coin_add_cxxflags="-AA"
3947            coin_dbg_cxxflags="-g"
3948            ;;
3949        esac
3950        ;;
3951      *-*-solaris*)
3952          coin_opt_cxxflags="-O4"
3953          coin_dbg_cxxflags="-g"
3954        ;;
3955    esac
3956  fi
3957
3958# Generic flag settings. If these don't work, add a case above.
3959
3960  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3961    coin_dbg_cxxflags="-g"
3962  fi
3963
3964  if test -z "$coin_opt_cxxflags"; then
3965    # Try if -O option works if nothing else is set
3966    CXXFLAGS=-O
3967    cat >conftest.$ac_ext <<_ACEOF
3968/* confdefs.h.  */
3969_ACEOF
3970cat confdefs.h >>conftest.$ac_ext
3971cat >>conftest.$ac_ext <<_ACEOF
3972/* end confdefs.h.  */
3973
3974int
3975main ()
3976{
3977int i=0; i++;
3978  ;
3979  return 0;
3980}
3981_ACEOF
3982rm -f conftest.$ac_objext conftest$ac_exeext
3983if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3984  (eval $ac_link) 2>conftest.er1
3985  ac_status=$?
3986  grep -v '^ *+' conftest.er1 >conftest.err
3987  rm -f conftest.er1
3988  cat conftest.err >&5
3989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3990  (exit $ac_status); } &&
3991         { ac_try='test -z "$ac_cxx_werror_flag"
3992                         || test ! -s conftest.err'
3993  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3994  (eval $ac_try) 2>&5
3995  ac_status=$?
3996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997  (exit $ac_status); }; } &&
3998         { ac_try='test -s conftest$ac_exeext'
3999  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4000  (eval $ac_try) 2>&5
4001  ac_status=$?
4002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003  (exit $ac_status); }; }; then
4004  coin_opt_cxxflags="-O"
4005else
4006  echo "$as_me: failed program was:" >&5
4007sed 's/^/| /' conftest.$ac_ext >&5
4008
4009fi
4010rm -f conftest.err conftest.$ac_objext \
4011      conftest$ac_exeext conftest.$ac_ext
4012  fi
4013
4014  # if PM doesn't want the warning messages, take them out
4015  if test x"$coin_skip_warn_cxxflags" = xyes; then
4016    coin_warn_cxxflags=
4017  fi
4018
4019# Do final setup of flags based on values determined above.
4020
4021  if test x${DBG_CXXFLAGS+set} != xset; then
4022    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
4023  fi
4024  if test x${OPT_CXXFLAGS+set} != xset; then
4025    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
4026  fi
4027
4028  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
4029  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
4030
4031  if test "$coin_debug_compile" = "true"; then
4032    CXXFLAGS="$DBG_CXXFLAGS"
4033  else
4034    CXXFLAGS="$OPT_CXXFLAGS"
4035  fi
4036
4037# Handle the case where CXXFLAGS was set externally.
4038else
4039  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
4040  if test x${DBG_CXXFLAGS+set} != xset; then
4041    DBG_CXXFLAGS="$CXXFLAGS"
4042  fi
4043  if test x${OPT_CXXFLAGS+set} != xset; then
4044    OPT_CXXFLAGS="$CXXFLAGS"
4045  fi
4046fi
4047
4048# If CXXFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
4049
4050case "$CXXFLAGS" in
4051  *-mno-cygwin*)
4052    if test x${CPPFLAGS+set} != xset ; then
4053      CPPFLAGS="-mno-cygwin"
4054    else
4055      case "$CPPFLAGS" in
4056        *-mno-cygwin*)
4057          ;;
4058        *)
4059          CPPFLAGS="$CPPFLAGS -mno-cygwin"
4060          ;;
4061      esac
4062    fi ;;
4063esac
4064
4065# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
4066if test x$COIN_PRJCT != x; then
4067  CXXFLAGS="$CXXFLAGS -D${COIN_PRJCT}_BUILD"
4068fi
4069
4070# Try if CXXFLAGS works
4071save_CXXFLAGS="$CXXFLAGS"
4072cat >conftest.$ac_ext <<_ACEOF
4073/* confdefs.h.  */
4074_ACEOF
4075cat confdefs.h >>conftest.$ac_ext
4076cat >>conftest.$ac_ext <<_ACEOF
4077/* end confdefs.h.  */
4078
4079int
4080main ()
4081{
4082int i=0; i++;
4083  ;
4084  return 0;
4085}
4086_ACEOF
4087rm -f conftest.$ac_objext conftest$ac_exeext
4088if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4089  (eval $ac_link) 2>conftest.er1
4090  ac_status=$?
4091  grep -v '^ *+' conftest.er1 >conftest.err
4092  rm -f conftest.er1
4093  cat conftest.err >&5
4094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095  (exit $ac_status); } &&
4096         { ac_try='test -z "$ac_cxx_werror_flag"
4097                         || test ! -s conftest.err'
4098  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4099  (eval $ac_try) 2>&5
4100  ac_status=$?
4101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102  (exit $ac_status); }; } &&
4103         { ac_try='test -s conftest$ac_exeext'
4104  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4105  (eval $ac_try) 2>&5
4106  ac_status=$?
4107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4108  (exit $ac_status); }; }; then
4109  :
4110else
4111  echo "$as_me: failed program was:" >&5
4112sed 's/^/| /' conftest.$ac_ext >&5
4113
4114CXXFLAGS=
4115fi
4116rm -f conftest.err conftest.$ac_objext \
4117      conftest$ac_exeext conftest.$ac_ext
4118if test -z "$CXXFLAGS"; then
4119  { 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
4120echo "$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;}
4121  CXXFLAGS='-O'
4122  cat >conftest.$ac_ext <<_ACEOF
4123/* confdefs.h.  */
4124_ACEOF
4125cat confdefs.h >>conftest.$ac_ext
4126cat >>conftest.$ac_ext <<_ACEOF
4127/* end confdefs.h.  */
4128
4129int
4130main ()
4131{
4132int i=0; i++;
4133  ;
4134  return 0;
4135}
4136_ACEOF
4137rm -f conftest.$ac_objext conftest$ac_exeext
4138if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4139  (eval $ac_link) 2>conftest.er1
4140  ac_status=$?
4141  grep -v '^ *+' conftest.er1 >conftest.err
4142  rm -f conftest.er1
4143  cat conftest.err >&5
4144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145  (exit $ac_status); } &&
4146         { ac_try='test -z "$ac_cxx_werror_flag"
4147                         || test ! -s conftest.err'
4148  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4149  (eval $ac_try) 2>&5
4150  ac_status=$?
4151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152  (exit $ac_status); }; } &&
4153         { ac_try='test -s conftest$ac_exeext'
4154  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4155  (eval $ac_try) 2>&5
4156  ac_status=$?
4157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158  (exit $ac_status); }; }; then
4159  :
4160else
4161  echo "$as_me: failed program was:" >&5
4162sed 's/^/| /' conftest.$ac_ext >&5
4163
4164CXXFLAGS=
4165fi
4166rm -f conftest.err conftest.$ac_objext \
4167      conftest$ac_exeext conftest.$ac_ext
4168  if test -z "$CXXFLAGS"; then
4169    { 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
4170echo "$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;}
4171  fi
4172fi
4173
4174{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
4175echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
4176
4177
4178if test x"$MPICXX" = x; then :; else
4179  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
4180echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
4181  CXX="$MPICXX"
4182fi
4183
4184# correct the LD variable in a mingw build with MS or intel compiler
4185case "$CXX" in
4186  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4187    case $build in
4188  *-mingw*)
4189    if test "${LD+set}" = set; then :; else
4190      LD=link
4191    fi
4192    ;;
4193 esac
4194 case $enable_doscompile in
4195   msvc)
4196     if test "x${LD+set}" = xset; then :; else
4197       LD=link
4198     fi
4199     ;;
4200 esac
4201
4202    ;;
4203esac
4204
4205ac_ext=c
4206ac_cpp='$CPP $CPPFLAGS'
4207ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4208ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4209ac_compiler_gnu=$ac_cv_c_compiler_gnu
4210
4211
4212
4213# Initialize automake
4214am__api_version="1.9"
4215# Find a good install program.  We prefer a C program (faster),
4216# so one script is as good as another.  But avoid the broken or
4217# incompatible versions:
4218# SysV /etc/install, /usr/sbin/install
4219# SunOS /usr/etc/install
4220# IRIX /sbin/install
4221# AIX /bin/install
4222# AmigaOS /C/install, which installs bootblocks on floppy discs
4223# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4224# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4225# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4226# OS/2's system install, which has a completely different semantic
4227# ./install, which can be erroneously created by make from ./install.sh.
4228echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4229echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4230if test -z "$INSTALL"; then
4231if test "${ac_cv_path_install+set}" = set; then
4232  echo $ECHO_N "(cached) $ECHO_C" >&6
4233else
4234  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4235for as_dir in $PATH
4236do
4237  IFS=$as_save_IFS
4238  test -z "$as_dir" && as_dir=.
4239  # Account for people who put trailing slashes in PATH elements.
4240case $as_dir/ in
4241  ./ | .// | /cC/* | \
4242  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4243  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4244  /usr/ucb/* ) ;;
4245  *)
4246    # OSF1 and SCO ODT 3.0 have their own names for install.
4247    # Don't use installbsd from OSF since it installs stuff as root
4248    # by default.
4249    for ac_prog in ginstall scoinst install; do
4250      for ac_exec_ext in '' $ac_executable_extensions; do
4251        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4252          if test $ac_prog = install &&
4253            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4254            # AIX install.  It has an incompatible calling convention.
4255            :
4256          elif test $ac_prog = install &&
4257            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4258            # program-specific install script used by HP pwplus--don't use.
4259            :
4260          else
4261            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4262            break 3
4263          fi
4264        fi
4265      done
4266    done
4267    ;;
4268esac
4269done
4270
4271
4272fi
4273  if test "${ac_cv_path_install+set}" = set; then
4274    INSTALL=$ac_cv_path_install
4275  else
4276    # As a last resort, use the slow shell script.  We don't cache a
4277    # path for INSTALL within a source directory, because that will
4278    # break other packages using the cache if that directory is
4279    # removed, or if the path is relative.
4280    INSTALL=$ac_install_sh
4281  fi
4282fi
4283echo "$as_me:$LINENO: result: $INSTALL" >&5
4284echo "${ECHO_T}$INSTALL" >&6
4285
4286# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4287# It thinks the first close brace ends the variable substitution.
4288test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4289
4290test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4291
4292test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4293
4294echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4295echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4296# Just in case
4297sleep 1
4298echo timestamp > conftest.file
4299# Do `set' in a subshell so we don't clobber the current shell's
4300# arguments.  Must try -L first in case configure is actually a
4301# symlink; some systems play weird games with the mod time of symlinks
4302# (eg FreeBSD returns the mod time of the symlink's containing
4303# directory).
4304if (
4305   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4306   if test "$*" = "X"; then
4307      # -L didn't work.
4308      set X `ls -t $srcdir/configure conftest.file`
4309   fi
4310   rm -f conftest.file
4311   if test "$*" != "X $srcdir/configure conftest.file" \
4312      && test "$*" != "X conftest.file $srcdir/configure"; then
4313
4314      # If neither matched, then we have a broken ls.  This can happen
4315      # if, for instance, CONFIG_SHELL is bash and it inherits a
4316      # broken ls alias from the environment.  This has actually
4317      # happened.  Such a system could not be considered "sane".
4318      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4319alias in your environment" >&5
4320echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4321alias in your environment" >&2;}
4322   { (exit 1); exit 1; }; }
4323   fi
4324
4325   test "$2" = conftest.file
4326   )
4327then
4328   # Ok.
4329   :
4330else
4331   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4332Check your system clock" >&5
4333echo "$as_me: error: newly created file is older than distributed files!
4334Check your system clock" >&2;}
4335   { (exit 1); exit 1; }; }
4336fi
4337echo "$as_me:$LINENO: result: yes" >&5
4338echo "${ECHO_T}yes" >&6
4339test "$program_prefix" != NONE &&
4340  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4341# Use a double $ so make ignores it.
4342test "$program_suffix" != NONE &&
4343  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4344# Double any \ or $.  echo might interpret backslashes.
4345# By default was `s,x,x', remove it if useless.
4346cat <<\_ACEOF >conftest.sed
4347s/[\\$]/&&/g;s/;s,x,x,$//
4348_ACEOF
4349program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4350rm conftest.sed
4351
4352# expand $ac_aux_dir to an absolute path
4353am_aux_dir=`cd $ac_aux_dir && pwd`
4354
4355test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4356# Use eval to expand $SHELL
4357if eval "$MISSING --run true"; then
4358  am_missing_run="$MISSING --run "
4359else
4360  am_missing_run=
4361  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4362echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4363fi
4364
4365if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4366  # We used to keeping the `.' as first argument, in order to
4367  # allow $(mkdir_p) to be used without argument.  As in
4368  #   $(mkdir_p) $(somedir)
4369  # where $(somedir) is conditionally defined.  However this is wrong
4370  # for two reasons:
4371  #  1. if the package is installed by a user who cannot write `.'
4372  #     make install will fail,
4373  #  2. the above comment should most certainly read
4374  #     $(mkdir_p) $(DESTDIR)$(somedir)
4375  #     so it does not work when $(somedir) is undefined and
4376  #     $(DESTDIR) is not.
4377  #  To support the latter case, we have to write
4378  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4379  #  so the `.' trick is pointless.
4380  mkdir_p='mkdir -p --'
4381else
4382  # On NextStep and OpenStep, the `mkdir' command does not
4383  # recognize any option.  It will interpret all options as
4384  # directories to create, and then abort because `.' already
4385  # exists.
4386  for d in ./-p ./--version;
4387  do
4388    test -d $d && rmdir $d
4389  done
4390  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4391  if test -f "$ac_aux_dir/mkinstalldirs"; then
4392    mkdir_p='$(mkinstalldirs)'
4393  else
4394    mkdir_p='$(install_sh) -d'
4395  fi
4396fi
4397
4398for ac_prog in gawk mawk nawk awk
4399do
4400  # Extract the first word of "$ac_prog", so it can be a program name with args.
4401set dummy $ac_prog; ac_word=$2
4402echo "$as_me:$LINENO: checking for $ac_word" >&5
4403echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4404if test "${ac_cv_prog_AWK+set}" = set; then
4405  echo $ECHO_N "(cached) $ECHO_C" >&6
4406else
4407  if test -n "$AWK"; then
4408  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4409else
4410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4411for as_dir in $PATH
4412do
4413  IFS=$as_save_IFS
4414  test -z "$as_dir" && as_dir=.
4415  for ac_exec_ext in '' $ac_executable_extensions; do
4416  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4417    ac_cv_prog_AWK="$ac_prog"
4418    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4419    break 2
4420  fi
4421done
4422done
4423
4424fi
4425fi
4426AWK=$ac_cv_prog_AWK
4427if test -n "$AWK"; then
4428  echo "$as_me:$LINENO: result: $AWK" >&5
4429echo "${ECHO_T}$AWK" >&6
4430else
4431  echo "$as_me:$LINENO: result: no" >&5
4432echo "${ECHO_T}no" >&6
4433fi
4434
4435  test -n "$AWK" && break
4436done
4437
4438echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4439echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4440set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4441if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4442  echo $ECHO_N "(cached) $ECHO_C" >&6
4443else
4444  cat >conftest.make <<\_ACEOF
4445all:
4446        @echo 'ac_maketemp="$(MAKE)"'
4447_ACEOF
4448# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4449eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4450if test -n "$ac_maketemp"; then
4451  eval ac_cv_prog_make_${ac_make}_set=yes
4452else
4453  eval ac_cv_prog_make_${ac_make}_set=no
4454fi
4455rm -f conftest.make
4456fi
4457if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4458  echo "$as_me:$LINENO: result: yes" >&5
4459echo "${ECHO_T}yes" >&6
4460  SET_MAKE=
4461else
4462  echo "$as_me:$LINENO: result: no" >&5
4463echo "${ECHO_T}no" >&6
4464  SET_MAKE="MAKE=${MAKE-make}"
4465fi
4466
4467rm -rf .tst 2>/dev/null
4468mkdir .tst 2>/dev/null
4469if test -d .tst; then
4470  am__leading_dot=.
4471else
4472  am__leading_dot=_
4473fi
4474rmdir .tst 2>/dev/null
4475
4476DEPDIR="${am__leading_dot}deps"
4477
4478          ac_config_commands="$ac_config_commands depfiles"
4479
4480
4481am_make=${MAKE-make}
4482cat > confinc << 'END'
4483am__doit:
4484        @echo done
4485.PHONY: am__doit
4486END
4487# If we don't find an include directive, just comment out the code.
4488echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4489echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4490am__include="#"
4491am__quote=
4492_am_result=none
4493# First try GNU make style include.
4494echo "include confinc" > confmf
4495# We grep out `Entering directory' and `Leaving directory'
4496# messages which can occur if `w' ends up in MAKEFLAGS.
4497# In particular we don't look at `^make:' because GNU make might
4498# be invoked under some other name (usually "gmake"), in which
4499# case it prints its new name instead of `make'.
4500if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4501   am__include=include
4502   am__quote=
4503   _am_result=GNU
4504fi
4505# Now try BSD make style include.
4506if test "$am__include" = "#"; then
4507   echo '.include "confinc"' > confmf
4508   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4509      am__include=.include
4510      am__quote="\""
4511      _am_result=BSD
4512   fi
4513fi
4514
4515
4516echo "$as_me:$LINENO: result: $_am_result" >&5
4517echo "${ECHO_T}$_am_result" >&6
4518rm -f confinc confmf
4519
4520# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4521if test "${enable_dependency_tracking+set}" = set; then
4522  enableval="$enable_dependency_tracking"
4523
4524fi;
4525if test "x$enable_dependency_tracking" != xno; then
4526  am_depcomp="$ac_aux_dir/depcomp"
4527  AMDEPBACKSLASH='\'
4528fi
4529
4530
4531if test "x$enable_dependency_tracking" != xno; then
4532  AMDEP_TRUE=
4533  AMDEP_FALSE='#'
4534else
4535  AMDEP_TRUE='#'
4536  AMDEP_FALSE=
4537fi
4538
4539
4540
4541# test to see if srcdir already configured
4542if test "`cd $srcdir && pwd`" != "`pwd`" &&
4543   test -f $srcdir/config.status; then
4544  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4545echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4546   { (exit 1); exit 1; }; }
4547fi
4548
4549# test whether we have cygpath
4550if test -z "$CYGPATH_W"; then
4551  if (cygpath --version) >/dev/null 2>/dev/null; then
4552    CYGPATH_W='cygpath -w'
4553  else
4554    CYGPATH_W=echo
4555  fi
4556fi
4557
4558
4559# Define the identity of the package.
4560 PACKAGE='thirdpartyscip'
4561 VERSION='1.0.2'
4562
4563
4564cat >>confdefs.h <<_ACEOF
4565#define PACKAGE "$PACKAGE"
4566_ACEOF
4567
4568
4569cat >>confdefs.h <<_ACEOF
4570#define VERSION "$VERSION"
4571_ACEOF
4572
4573# Some tools Automake needs.
4574
4575ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4576
4577
4578AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4579
4580
4581AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4582
4583
4584AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4585
4586
4587MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4588
4589install_sh=${install_sh-"$am_aux_dir/install-sh"}
4590
4591# Installed binaries are usually stripped using `strip' when the user
4592# run `make install-strip'.  However `strip' might not be the right
4593# tool to use in cross-compilation environments, therefore Automake
4594# will honor the `STRIP' environment variable to overrule this program.
4595if test "$cross_compiling" != no; then
4596  if test -n "$ac_tool_prefix"; then
4597  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4598set dummy ${ac_tool_prefix}strip; ac_word=$2
4599echo "$as_me:$LINENO: checking for $ac_word" >&5
4600echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4601if test "${ac_cv_prog_STRIP+set}" = set; then
4602  echo $ECHO_N "(cached) $ECHO_C" >&6
4603else
4604  if test -n "$STRIP"; then
4605  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4606else
4607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4608for as_dir in $PATH
4609do
4610  IFS=$as_save_IFS
4611  test -z "$as_dir" && as_dir=.
4612  for ac_exec_ext in '' $ac_executable_extensions; do
4613  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4614    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4615    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4616    break 2
4617  fi
4618done
4619done
4620
4621fi
4622fi
4623STRIP=$ac_cv_prog_STRIP
4624if test -n "$STRIP"; then
4625  echo "$as_me:$LINENO: result: $STRIP" >&5
4626echo "${ECHO_T}$STRIP" >&6
4627else
4628  echo "$as_me:$LINENO: result: no" >&5
4629echo "${ECHO_T}no" >&6
4630fi
4631
4632fi
4633if test -z "$ac_cv_prog_STRIP"; then
4634  ac_ct_STRIP=$STRIP
4635  # Extract the first word of "strip", so it can be a program name with args.
4636set dummy strip; ac_word=$2
4637echo "$as_me:$LINENO: checking for $ac_word" >&5
4638echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4639if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4640  echo $ECHO_N "(cached) $ECHO_C" >&6
4641else
4642  if test -n "$ac_ct_STRIP"; then
4643  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4644else
4645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4646for as_dir in $PATH
4647do
4648  IFS=$as_save_IFS
4649  test -z "$as_dir" && as_dir=.
4650  for ac_exec_ext in '' $ac_executable_extensions; do
4651  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4652    ac_cv_prog_ac_ct_STRIP="strip"
4653    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4654    break 2
4655  fi
4656done
4657done
4658
4659  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4660fi
4661fi
4662ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4663if test -n "$ac_ct_STRIP"; then
4664  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4665echo "${ECHO_T}$ac_ct_STRIP" >&6
4666else
4667  echo "$as_me:$LINENO: result: no" >&5
4668echo "${ECHO_T}no" >&6
4669fi
4670
4671  STRIP=$ac_ct_STRIP
4672else
4673  STRIP="$ac_cv_prog_STRIP"
4674fi
4675
4676fi
4677INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4678
4679# We need awk for the "check" target.  The system "awk" is bad on
4680# some platforms.
4681# Always define AMTAR for backward compatibility.
4682
4683AMTAR=${AMTAR-"${am_missing_run}tar"}
4684
4685am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4686
4687
4688
4689
4690depcc="$CC"   am_compiler_list=
4691
4692echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4693echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4694if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4695  echo $ECHO_N "(cached) $ECHO_C" >&6
4696else
4697  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4698  # We make a subdir and do the tests there.  Otherwise we can end up
4699  # making bogus files that we don't know about and never remove.  For
4700  # instance it was reported that on HP-UX the gcc test will end up
4701  # making a dummy file named `D' -- because `-MD' means `put the output
4702  # in D'.
4703  mkdir conftest.dir
4704  # Copy depcomp to subdir because otherwise we won't find it if we're
4705  # using a relative directory.
4706  cp "$am_depcomp" conftest.dir
4707  cd conftest.dir
4708  # We will build objects and dependencies in a subdirectory because
4709  # it helps to detect inapplicable dependency modes.  For instance
4710  # both Tru64's cc and ICC support -MD to output dependencies as a
4711  # side effect of compilation, but ICC will put the dependencies in
4712  # the current directory while Tru64 will put them in the object
4713  # directory.
4714  mkdir sub
4715
4716  am_cv_CC_dependencies_compiler_type=none
4717  if test "$am_compiler_list" = ""; then
4718     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4719  fi
4720  for depmode in $am_compiler_list; do
4721    # Setup a source with many dependencies, because some compilers
4722    # like to wrap large dependency lists on column 80 (with \), and
4723    # we should not choose a depcomp mode which is confused by this.
4724    #
4725    # We need to recreate these files for each test, as the compiler may
4726    # overwrite some of them when testing with obscure command lines.
4727    # This happens at least with the AIX C compiler.
4728    : > sub/conftest.c
4729    for i in 1 2 3 4 5 6; do
4730      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4731      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4732      # Solaris 8's {/usr,}/bin/sh.
4733      touch sub/conftst$i.h
4734    done
4735    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4736
4737    case $depmode in
4738    nosideeffect)
4739      # after this tag, mechanisms are not by side-effect, so they'll
4740      # only be used when explicitly requested
4741      if test "x$enable_dependency_tracking" = xyes; then
4742        continue
4743      else
4744        break
4745      fi
4746      ;;
4747    none) break ;;
4748    esac
4749    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4750    # mode.  It turns out that the SunPro C++ compiler does not properly
4751    # handle `-M -o', and we need to detect this.
4752    if depmode=$depmode \
4753       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4754       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4755       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4756         >/dev/null 2>conftest.err &&
4757       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4758       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4759       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4760      # icc doesn't choke on unknown options, it will just issue warnings
4761      # or remarks (even with -Werror).  So we grep stderr for any message
4762      # that says an option was ignored or not supported.
4763      # When given -MP, icc 7.0 and 7.1 complain thusly:
4764      #   icc: Command line warning: ignoring option '-M'; no argument required
4765      # The diagnosis changed in icc 8.0:
4766      #   icc: Command line remark: option '-MP' not supported
4767      if (grep 'ignoring option' conftest.err ||
4768          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4769        am_cv_CC_dependencies_compiler_type=$depmode
4770        break
4771      fi
4772    fi
4773  done
4774
4775  cd ..
4776  rm -rf conftest.dir
4777else
4778  am_cv_CC_dependencies_compiler_type=none
4779fi
4780
4781fi
4782echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4783echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4784CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4785
4786
4787
4788if
4789  test "x$enable_dependency_tracking" != xno \
4790  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4791  am__fastdepCC_TRUE=
4792  am__fastdepCC_FALSE='#'
4793else
4794  am__fastdepCC_TRUE='#'
4795  am__fastdepCC_FALSE=
4796fi
4797
4798
4799depcc="$CXX"  am_compiler_list=
4800
4801echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4802echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4803if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4804  echo $ECHO_N "(cached) $ECHO_C" >&6
4805else
4806  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4807  # We make a subdir and do the tests there.  Otherwise we can end up
4808  # making bogus files that we don't know about and never remove.  For
4809  # instance it was reported that on HP-UX the gcc test will end up
4810  # making a dummy file named `D' -- because `-MD' means `put the output
4811  # in D'.
4812  mkdir conftest.dir
4813  # Copy depcomp to subdir because otherwise we won't find it if we're
4814  # using a relative directory.
4815  cp "$am_depcomp" conftest.dir
4816  cd conftest.dir
4817  # We will build objects and dependencies in a subdirectory because
4818  # it helps to detect inapplicable dependency modes.  For instance
4819  # both Tru64's cc and ICC support -MD to output dependencies as a
4820  # side effect of compilation, but ICC will put the dependencies in
4821  # the current directory while Tru64 will put them in the object
4822  # directory.
4823  mkdir sub
4824
4825  am_cv_CXX_dependencies_compiler_type=none
4826  if test "$am_compiler_list" = ""; then
4827     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4828  fi
4829  for depmode in $am_compiler_list; do
4830    # Setup a source with many dependencies, because some compilers
4831    # like to wrap large dependency lists on column 80 (with \), and
4832    # we should not choose a depcomp mode which is confused by this.
4833    #
4834    # We need to recreate these files for each test, as the compiler may
4835    # overwrite some of them when testing with obscure command lines.
4836    # This happens at least with the AIX C compiler.
4837    : > sub/conftest.c
4838    for i in 1 2 3 4 5 6; do
4839      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4840      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4841      # Solaris 8's {/usr,}/bin/sh.
4842      touch sub/conftst$i.h
4843    done
4844    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4845
4846    case $depmode in
4847    nosideeffect)
4848      # after this tag, mechanisms are not by side-effect, so they'll
4849      # only be used when explicitly requested
4850      if test "x$enable_dependency_tracking" = xyes; then
4851        continue
4852      else
4853        break
4854      fi
4855      ;;
4856    none) break ;;
4857    esac
4858    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4859    # mode.  It turns out that the SunPro C++ compiler does not properly
4860    # handle `-M -o', and we need to detect this.
4861    if depmode=$depmode \
4862       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4863       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4864       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4865         >/dev/null 2>conftest.err &&
4866       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4867       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4868       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4869      # icc doesn't choke on unknown options, it will just issue warnings
4870      # or remarks (even with -Werror).  So we grep stderr for any message
4871      # that says an option was ignored or not supported.
4872      # When given -MP, icc 7.0 and 7.1 complain thusly:
4873      #   icc: Command line warning: ignoring option '-M'; no argument required
4874      # The diagnosis changed in icc 8.0:
4875      #   icc: Command line remark: option '-MP' not supported
4876      if (grep 'ignoring option' conftest.err ||
4877          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4878        am_cv_CXX_dependencies_compiler_type=$depmode
4879        break
4880      fi
4881    fi
4882  done
4883
4884  cd ..
4885  rm -rf conftest.dir
4886else
4887  am_cv_CXX_dependencies_compiler_type=none
4888fi
4889
4890fi
4891echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4892echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4893CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4894
4895
4896
4897if
4898  test "x$enable_dependency_tracking" != xno \
4899  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4900  am__fastdepCXX_TRUE=
4901  am__fastdepCXX_FALSE='#'
4902else
4903  am__fastdepCXX_TRUE='#'
4904  am__fastdepCXX_FALSE=
4905fi
4906
4907
4908
4909if test "x$CC" != xcc; then
4910  echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
4911echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
4912else
4913  echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
4914echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
4915fi
4916set dummy $CC; ac_cc=`echo $2 |
4917                      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4918if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
4919  echo $ECHO_N "(cached) $ECHO_C" >&6
4920else
4921  cat >conftest.$ac_ext <<_ACEOF
4922/* confdefs.h.  */
4923_ACEOF
4924cat confdefs.h >>conftest.$ac_ext
4925cat >>conftest.$ac_ext <<_ACEOF
4926/* end confdefs.h.  */
4927
4928int
4929main ()
4930{
4931
4932  ;
4933  return 0;
4934}
4935_ACEOF
4936# Make sure it works both with $CC and with simple cc.
4937# We do the test twice because some compilers refuse to overwrite an
4938# existing .o file with -o, though they will create one.
4939ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
4940if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4941  (eval $ac_try) 2>&5
4942  ac_status=$?
4943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944  (exit $ac_status); } &&
4945   test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4946  (eval $ac_try) 2>&5
4947  ac_status=$?
4948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949  (exit $ac_status); };
4950then
4951  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4952  if test "x$CC" != xcc; then
4953    # Test first that cc exists at all.
4954    if { ac_try='cc -c conftest.$ac_ext >&5'
4955  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4956  (eval $ac_try) 2>&5
4957  ac_status=$?
4958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959  (exit $ac_status); }; }; then
4960      ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
4961      if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4962  (eval $ac_try) 2>&5
4963  ac_status=$?
4964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965  (exit $ac_status); } &&
4966         test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4967  (eval $ac_try) 2>&5
4968  ac_status=$?
4969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970  (exit $ac_status); };
4971      then
4972        # cc works too.
4973        :
4974      else
4975        # cc exists but doesn't like -o.
4976        eval ac_cv_prog_cc_${ac_cc}_c_o=no
4977      fi
4978    fi
4979  fi
4980else
4981  eval ac_cv_prog_cc_${ac_cc}_c_o=no
4982fi
4983rm -f conftest*
4984
4985fi
4986if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
4987  echo "$as_me:$LINENO: result: yes" >&5
4988echo "${ECHO_T}yes" >&6
4989else
4990  echo "$as_me:$LINENO: result: no" >&5
4991echo "${ECHO_T}no" >&6
4992
4993cat >>confdefs.h <<\_ACEOF
4994#define NO_MINUS_C_MINUS_O 1
4995_ACEOF
4996
4997fi
4998
4999# FIXME: we rely on the cache variable name because
5000# there is no other way.
5001set dummy $CC
5002ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5003if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
5004   # Losing compiler, so override with the script.
5005   # FIXME: It is wrong to rewrite CC.
5006   # But if we don't then we get into trouble of one sort or another.
5007   # A longer-term fix would be to have automake use am__CC in this case,
5008   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5009   CC="$am_aux_dir/compile $CC"
5010fi
5011
5012{
5013
5014
5015
5016# START
5017
5018# Test if force_shared has been set
5019if test "x" = xforce_shared; then
5020  if test x$enable_shared = xno; then
5021    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
5022echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
5023   { (exit 1); exit 1; }; }
5024  fi
5025  enable_shared=yes;
5026else
5027  # On Cygwin and AIX, building DLLs doesn't work
5028  case $build in
5029    *-cygwin*)
5030      coin_disable_shared=yes
5031      platform=Cygwin
5032    ;;
5033    *-aix*)
5034      coin_disable_shared=yes
5035      platform=AIX
5036    ;;
5037    *-mingw*)
5038      coin_disable_shared=yes
5039      platform="Msys"
5040#      case "$CXX" in
5041#        cl*)
5042#          coin_disable_shared=yes
5043#          platform="Msys with cl"
5044#      ;;
5045#      esac
5046    ;;
5047  esac
5048fi
5049if test x"$coin_disable_shared" = xyes; then
5050  if test x"$enable_shared" = xyes; then
5051    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
5052echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
5053  fi
5054  enable_shared=no
5055fi
5056# By default, we only want the shared objects to be compiled
5057# Check whether --enable-static or --disable-static was given.
5058if test "${enable_static+set}" = set; then
5059  enableval="$enable_static"
5060  p=${PACKAGE-default}
5061    case $enableval in
5062    yes) enable_static=yes ;;
5063    no) enable_static=no ;;
5064    *)
5065     enable_static=no
5066      # Look at the argument we got.  We use all the common list separators.
5067      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5068      for pkg in $enableval; do
5069        IFS="$lt_save_ifs"
5070        if test "X$pkg" = "X$p"; then
5071          enable_static=yes
5072        fi
5073      done
5074      IFS="$lt_save_ifs"
5075      ;;
5076    esac
5077else
5078  enable_static=no
5079fi;
5080
5081
5082
5083
5084# Initialize automake
5085echo "$as_me:$LINENO: checking for egrep" >&5
5086echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5087if test "${ac_cv_prog_egrep+set}" = set; then
5088  echo $ECHO_N "(cached) $ECHO_C" >&6
5089else
5090  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5091    then ac_cv_prog_egrep='grep -E'
5092    else ac_cv_prog_egrep='egrep'
5093    fi
5094fi
5095echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5096echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5097 EGREP=$ac_cv_prog_egrep
5098
5099
5100echo "$as_me:$LINENO: checking whether ln -s works" >&5
5101echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5102LN_S=$as_ln_s
5103if test "$LN_S" = "ln -s"; then
5104  echo "$as_me:$LINENO: result: yes" >&5
5105echo "${ECHO_T}yes" >&6
5106else
5107  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5108echo "${ECHO_T}no, using $LN_S" >&6
5109fi
5110
5111
5112
5113
5114# AC_MSG_NOTICE([Beginning automake initialisation.])
5115# Stuff for automake
5116# test to see if srcdir already configured
5117if test "`cd $srcdir && pwd`" != "`pwd`" &&
5118   test -f $srcdir/config.status; then
5119  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5120echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5121   { (exit 1); exit 1; }; }
5122fi
5123
5124# test whether we have cygpath
5125if test -z "$CYGPATH_W"; then
5126  if (cygpath --version) >/dev/null 2>/dev/null; then
5127    CYGPATH_W='cygpath -w'
5128  else
5129    CYGPATH_W=echo
5130  fi
5131fi
5132
5133
5134# Define the identity of the package.
5135 PACKAGE='thirdpartyscip'
5136 VERSION='1.0.2'
5137
5138
5139cat >>confdefs.h <<_ACEOF
5140#define PACKAGE "$PACKAGE"
5141_ACEOF
5142
5143
5144cat >>confdefs.h <<_ACEOF
5145#define VERSION "$VERSION"
5146_ACEOF
5147
5148# Some tools Automake needs.
5149
5150ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5151
5152
5153AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5154
5155
5156AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5157
5158
5159AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5160
5161
5162MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5163
5164install_sh=${install_sh-"$am_aux_dir/install-sh"}
5165
5166# Installed binaries are usually stripped using `strip' when the user
5167# run `make install-strip'.  However `strip' might not be the right
5168# tool to use in cross-compilation environments, therefore Automake
5169# will honor the `STRIP' environment variable to overrule this program.
5170if test "$cross_compiling" != no; then
5171  if test -n "$ac_tool_prefix"; then
5172  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5173set dummy ${ac_tool_prefix}strip; ac_word=$2
5174echo "$as_me:$LINENO: checking for $ac_word" >&5
5175echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5176if test "${ac_cv_prog_STRIP+set}" = set; then
5177  echo $ECHO_N "(cached) $ECHO_C" >&6
5178else
5179  if test -n "$STRIP"; then
5180  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5181else
5182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5183for as_dir in $PATH
5184do
5185  IFS=$as_save_IFS
5186  test -z "$as_dir" && as_dir=.
5187  for ac_exec_ext in '' $ac_executable_extensions; do
5188  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5189    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5190    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5191    break 2
5192  fi
5193done
5194done
5195
5196fi
5197fi
5198STRIP=$ac_cv_prog_STRIP
5199if test -n "$STRIP"; then
5200  echo "$as_me:$LINENO: result: $STRIP" >&5
5201echo "${ECHO_T}$STRIP" >&6
5202else
5203  echo "$as_me:$LINENO: result: no" >&5
5204echo "${ECHO_T}no" >&6
5205fi
5206
5207fi
5208if test -z "$ac_cv_prog_STRIP"; then
5209  ac_ct_STRIP=$STRIP
5210  # Extract the first word of "strip", so it can be a program name with args.
5211set dummy strip; ac_word=$2
5212echo "$as_me:$LINENO: checking for $ac_word" >&5
5213echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5214if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5215  echo $ECHO_N "(cached) $ECHO_C" >&6
5216else
5217  if test -n "$ac_ct_STRIP"; then
5218  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5219else
5220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5221for as_dir in $PATH
5222do
5223  IFS=$as_save_IFS
5224  test -z "$as_dir" && as_dir=.
5225  for ac_exec_ext in '' $ac_executable_extensions; do
5226  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5227    ac_cv_prog_ac_ct_STRIP="strip"
5228    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5229    break 2
5230  fi
5231done
5232done
5233
5234  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5235fi
5236fi
5237ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5238if test -n "$ac_ct_STRIP"; then
5239  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5240echo "${ECHO_T}$ac_ct_STRIP" >&6
5241else
5242  echo "$as_me:$LINENO: result: no" >&5
5243echo "${ECHO_T}no" >&6
5244fi
5245
5246  STRIP=$ac_ct_STRIP
5247else
5248  STRIP="$ac_cv_prog_STRIP"
5249fi
5250
5251fi
5252INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
5253
5254# We need awk for the "check" target.  The system "awk" is bad on
5255# some platforms.
5256# Always define AMTAR for backward compatibility.
5257
5258AMTAR=${AMTAR-"${am_missing_run}tar"}
5259
5260am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5261
5262
5263
5264
5265depcc="$CC"   am_compiler_list=
5266
5267echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5268echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5269if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5270  echo $ECHO_N "(cached) $ECHO_C" >&6
5271else
5272  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5273  # We make a subdir and do the tests there.  Otherwise we can end up
5274  # making bogus files that we don't know about and never remove.  For
5275  # instance it was reported that on HP-UX the gcc test will end up
5276  # making a dummy file named `D' -- because `-MD' means `put the output
5277  # in D'.
5278  mkdir conftest.dir
5279  # Copy depcomp to subdir because otherwise we won't find it if we're
5280  # using a relative directory.
5281  cp "$am_depcomp" conftest.dir
5282  cd conftest.dir
5283  # We will build objects and dependencies in a subdirectory because
5284  # it helps to detect inapplicable dependency modes.  For instance
5285  # both Tru64's cc and ICC support -MD to output dependencies as a
5286  # side effect of compilation, but ICC will put the dependencies in
5287  # the current directory while Tru64 will put them in the object
5288  # directory.
5289  mkdir sub
5290
5291  am_cv_CC_dependencies_compiler_type=none
5292  if test "$am_compiler_list" = ""; then
5293     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5294  fi
5295  for depmode in $am_compiler_list; do
5296    # Setup a source with many dependencies, because some compilers
5297    # like to wrap large dependency lists on column 80 (with \), and
5298    # we should not choose a depcomp mode which is confused by this.
5299    #
5300    # We need to recreate these files for each test, as the compiler may
5301    # overwrite some of them when testing with obscure command lines.
5302    # This happens at least with the AIX C compiler.
5303    : > sub/conftest.c
5304    for i in 1 2 3 4 5 6; do
5305      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5306      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5307      # Solaris 8's {/usr,}/bin/sh.
5308      touch sub/conftst$i.h
5309    done
5310    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5311
5312    case $depmode in
5313    nosideeffect)
5314      # after this tag, mechanisms are not by side-effect, so they'll
5315      # only be used when explicitly requested
5316      if test "x$enable_dependency_tracking" = xyes; then
5317        continue
5318      else
5319        break
5320      fi
5321      ;;
5322    none) break ;;
5323    esac
5324    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5325    # mode.  It turns out that the SunPro C++ compiler does not properly
5326    # handle `-M -o', and we need to detect this.
5327    if depmode=$depmode \
5328       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5329       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5330       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5331         >/dev/null 2>conftest.err &&
5332       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5333       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5334       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5335      # icc doesn't choke on unknown options, it will just issue warnings
5336      # or remarks (even with -Werror).  So we grep stderr for any message
5337      # that says an option was ignored or not supported.
5338      # When given -MP, icc 7.0 and 7.1 complain thusly:
5339      #   icc: Command line warning: ignoring option '-M'; no argument required
5340      # The diagnosis changed in icc 8.0:
5341      #   icc: Command line remark: option '-MP' not supported
5342      if (grep 'ignoring option' conftest.err ||
5343          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5344        am_cv_CC_dependencies_compiler_type=$depmode
5345        break
5346      fi
5347    fi
5348  done
5349
5350  cd ..
5351  rm -rf conftest.dir
5352else
5353  am_cv_CC_dependencies_compiler_type=none
5354fi
5355
5356fi
5357echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5358echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5359CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5360
5361
5362
5363if
5364  test "x$enable_dependency_tracking" != xno \
5365  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5366  am__fastdepCC_TRUE=
5367  am__fastdepCC_FALSE='#'
5368else
5369  am__fastdepCC_TRUE='#'
5370  am__fastdepCC_FALSE=
5371fi
5372
5373
5374depcc="$CXX"  am_compiler_list=
5375
5376echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5377echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5378if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5379  echo $ECHO_N "(cached) $ECHO_C" >&6
5380else
5381  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5382  # We make a subdir and do the tests there.  Otherwise we can end up
5383  # making bogus files that we don't know about and never remove.  For
5384  # instance it was reported that on HP-UX the gcc test will end up
5385  # making a dummy file named `D' -- because `-MD' means `put the output
5386  # in D'.
5387  mkdir conftest.dir
5388  # Copy depcomp to subdir because otherwise we won't find it if we're
5389  # using a relative directory.
5390  cp "$am_depcomp" conftest.dir
5391  cd conftest.dir
5392  # We will build objects and dependencies in a subdirectory because
5393  # it helps to detect inapplicable dependency modes.  For instance
5394  # both Tru64's cc and ICC support -MD to output dependencies as a
5395  # side effect of compilation, but ICC will put the dependencies in
5396  # the current directory while Tru64 will put them in the object
5397  # directory.
5398  mkdir sub
5399
5400  am_cv_CXX_dependencies_compiler_type=none
5401  if test "$am_compiler_list" = ""; then
5402     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5403  fi
5404  for depmode in $am_compiler_list; do
5405    # Setup a source with many dependencies, because some compilers
5406    # like to wrap large dependency lists on column 80 (with \), and
5407    # we should not choose a depcomp mode which is confused by this.
5408    #
5409    # We need to recreate these files for each test, as the compiler may
5410    # overwrite some of them when testing with obscure command lines.
5411    # This happens at least with the AIX C compiler.
5412    : > sub/conftest.c
5413    for i in 1 2 3 4 5 6; do
5414      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5415      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5416      # Solaris 8's {/usr,}/bin/sh.
5417      touch sub/conftst$i.h
5418    done
5419    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5420
5421    case $depmode in
5422    nosideeffect)
5423      # after this tag, mechanisms are not by side-effect, so they'll
5424      # only be used when explicitly requested
5425      if test "x$enable_dependency_tracking" = xyes; then
5426        continue
5427      else
5428        break
5429      fi
5430      ;;
5431    none) break ;;
5432    esac
5433    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5434    # mode.  It turns out that the SunPro C++ compiler does not properly
5435    # handle `-M -o', and we need to detect this.
5436    if depmode=$depmode \
5437       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5438       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5439       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5440         >/dev/null 2>conftest.err &&
5441       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5442       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5443       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5444      # icc doesn't choke on unknown options, it will just issue warnings
5445      # or remarks (even with -Werror).  So we grep stderr for any message
5446      # that says an option was ignored or not supported.
5447      # When given -MP, icc 7.0 and 7.1 complain thusly:
5448      #   icc: Command line warning: ignoring option '-M'; no argument required
5449      # The diagnosis changed in icc 8.0:
5450      #   icc: Command line remark: option '-MP' not supported
5451      if (grep 'ignoring option' conftest.err ||
5452          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5453        am_cv_CXX_dependencies_compiler_type=$depmode
5454        break
5455      fi
5456    fi
5457  done
5458
5459  cd ..
5460  rm -rf conftest.dir
5461else
5462  am_cv_CXX_dependencies_compiler_type=none
5463fi
5464
5465fi
5466echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5467echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5468CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5469
5470
5471
5472if
5473  test "x$enable_dependency_tracking" != xno \
5474  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5475  am__fastdepCXX_TRUE=
5476  am__fastdepCXX_FALSE='#'
5477else
5478  am__fastdepCXX_TRUE='#'
5479  am__fastdepCXX_FALSE=
5480fi
5481
5482
5483
5484echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5485echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5486    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5487if test "${enable_maintainer_mode+set}" = set; then
5488  enableval="$enable_maintainer_mode"
5489  USE_MAINTAINER_MODE=$enableval
5490else
5491  USE_MAINTAINER_MODE=no
5492fi;
5493  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5494echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5495
5496
5497if test $USE_MAINTAINER_MODE = yes; then
5498  MAINTAINER_MODE_TRUE=
5499  MAINTAINER_MODE_FALSE='#'
5500else
5501  MAINTAINER_MODE_TRUE='#'
5502  MAINTAINER_MODE_FALSE=
5503fi
5504
5505  MAINT=$MAINTAINER_MODE_TRUE
5506
5507
5508
5509coin_have_externals=no
5510if test "$enable_maintainer_mode" = yes; then
5511
5512  # If maintainer mode is chosen, we make sure that the correct versions
5513  # of the tools are used, and that we know where libtool.m4 is (to
5514  # recreate acinclude.m4)
5515
5516
5517  LIBTOOLM4=
5518  # Normally, $HOME
5519  AUTOTOOLS_DFLT=$HOME
5520
5521  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5522echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5523if test "${ac_cv_use_correct_autotools+set}" = set; then
5524  echo $ECHO_N "(cached) $ECHO_C" >&6
5525else
5526  ac_cv_use_correct_autotools=check
5527fi
5528echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5529echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5530
5531  if test $ac_cv_use_correct_autotools = check; then
5532    ac_cv_use_correct_autotools=yes
5533    # Check if we have autoconf
5534    # Extract the first word of "autoconf", so it can be a program name with args.
5535set dummy autoconf; ac_word=$2
5536echo "$as_me:$LINENO: checking for $ac_word" >&5
5537echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5538if test "${ac_cv_prog_have_autoconf+set}" = set; then
5539  echo $ECHO_N "(cached) $ECHO_C" >&6
5540else
5541  if test -n "$have_autoconf"; then
5542  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5543else
5544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5545for as_dir in $PATH
5546do
5547  IFS=$as_save_IFS
5548  test -z "$as_dir" && as_dir=.
5549  for ac_exec_ext in '' $ac_executable_extensions; do
5550  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5551    ac_cv_prog_have_autoconf="yes"
5552    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5553    break 2
5554  fi
5555done
5556done
5557
5558  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5559fi
5560fi
5561have_autoconf=$ac_cv_prog_have_autoconf
5562if test -n "$have_autoconf"; then
5563  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5564echo "${ECHO_T}$have_autoconf" >&6
5565else
5566  echo "$as_me:$LINENO: result: no" >&5
5567echo "${ECHO_T}no" >&6
5568fi
5569
5570    if test $have_autoconf = no; then
5571      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5572echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5573   { (exit 1); exit 1; }; }
5574    fi
5575
5576    # Check whether autoconf is the correct version
5577    correct_version='2.59'
5578    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5579    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5580echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5581    autoconf --version > confauto.out 2>&1
5582    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5583      echo "$as_me:$LINENO: result: yes" >&5
5584echo "${ECHO_T}yes" >&6
5585    else
5586      rm -f confauto.out
5587      echo "$as_me:$LINENO: result: no" >&5
5588echo "${ECHO_T}no" >&6
5589      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5590echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5591   { (exit 1); exit 1; }; }
5592    fi
5593    rm -f confauto.out
5594
5595    # Check if the executable autoconf is picked up from the correct location
5596    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5597echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5598    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5599    autoconf_dir=`cd $autoconf_dir; pwd`
5600    if test x$AUTOTOOLS_DIR = x; then
5601      want_dir=$AUTOTOOLS_DFLT/bin
5602    else
5603      want_dir=$AUTOTOOLS_DIR/bin
5604    fi
5605    if test $autoconf_dir = `cd $want_dir; pwd`; then
5606      echo "$as_me:$LINENO: result: yes" >&5
5607echo "${ECHO_T}yes" >&6
5608    else
5609      rm -f confauto.out
5610      echo "$as_me:$LINENO: result: no" >&5
5611echo "${ECHO_T}no" >&6
5612      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5613echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5614   { (exit 1); exit 1; }; }
5615    fi
5616
5617    # Check if we have automake
5618    # Extract the first word of "automake", so it can be a program name with args.
5619set dummy automake; ac_word=$2
5620echo "$as_me:$LINENO: checking for $ac_word" >&5
5621echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5622if test "${ac_cv_prog_have_automake+set}" = set; then
5623  echo $ECHO_N "(cached) $ECHO_C" >&6
5624else
5625  if test -n "$have_automake"; then
5626  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5627else
5628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5629for as_dir in $PATH
5630do
5631  IFS=$as_save_IFS
5632  test -z "$as_dir" && as_dir=.
5633  for ac_exec_ext in '' $ac_executable_extensions; do
5634  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5635    ac_cv_prog_have_automake="yes"
5636    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5637    break 2
5638  fi
5639done
5640done
5641
5642  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5643fi
5644fi
5645have_automake=$ac_cv_prog_have_automake
5646if test -n "$have_automake"; then
5647  echo "$as_me:$LINENO: result: $have_automake" >&5
5648echo "${ECHO_T}$have_automake" >&6
5649else
5650  echo "$as_me:$LINENO: result: no" >&5
5651echo "${ECHO_T}no" >&6
5652fi
5653
5654    if test $have_automake = no; then
5655      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5656echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5657   { (exit 1); exit 1; }; }
5658    fi
5659
5660    # Check whether automake is the correct version
5661    correct_version='1.9.6'
5662    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5663    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5664echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5665    automake --version > confauto.out 2>&1
5666    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5667      echo "$as_me:$LINENO: result: yes" >&5
5668echo "${ECHO_T}yes" >&6
5669    else
5670      rm -f confauto.out
5671      echo "$as_me:$LINENO: result: no" >&5
5672echo "${ECHO_T}no" >&6
5673      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5674echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5675   { (exit 1); exit 1; }; }
5676    fi
5677    rm -f confauto.out
5678
5679    # Check if the executable automake is picked up from the correct location
5680    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5681echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5682    automake_dir=`which automake | sed -e 's=/automake=='`
5683    automake_dir=`cd $automake_dir; pwd`
5684    if test x$AUTOTOOLS_DIR = x; then
5685      want_dir=$AUTOTOOLS_DFLT/bin
5686    else
5687      want_dir=$AUTOTOOLS_DIR/bin
5688    fi
5689    if test $automake_dir = `cd $want_dir; pwd`; then
5690      echo "$as_me:$LINENO: result: yes" >&5
5691echo "${ECHO_T}yes" >&6
5692    else
5693      rm -f confauto.out
5694      echo "$as_me:$LINENO: result: no" >&5
5695echo "${ECHO_T}no" >&6
5696      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5697echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5698   { (exit 1); exit 1; }; }
5699    fi
5700
5701    # Check if this is the correct version of libtool (with escaped dots)
5702    if test x$AUTOTOOLS_DIR = x; then
5703      want_dir=$AUTOTOOLS_DFLT/share
5704    else
5705      want_dir=$AUTOTOOLS_DIR/share
5706    fi
5707    correct_version='1.5.22'
5708    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5709    if test -r $want_dir/libtool/ltmain.sh; then
5710  have_ltmain=yes
5711  :
5712else
5713  have_ltmain=no
5714  :
5715fi
5716
5717    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5718echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5719    if test $have_ltmain = yes; then
5720    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5721        echo "$as_me:$LINENO: result: yes" >&5
5722echo "${ECHO_T}yes" >&6
5723      else
5724        echo "$as_me:$LINENO: result: no" >&5
5725echo "${ECHO_T}no" >&6
5726        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5727echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5728   { (exit 1); exit 1; }; }
5729      fi
5730    else
5731      echo "$as_me:$LINENO: result: no" >&5
5732echo "${ECHO_T}no" >&6
5733      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5734echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5735   { (exit 1); exit 1; }; }
5736    fi
5737  fi
5738
5739  # Check if we can find the libtool file
5740  if test x$AUTOTOOLS_DIR = x; then
5741    want_dir=$AUTOTOOLS_DFLT/share
5742  else
5743    want_dir=$AUTOTOOLS_DIR/share
5744  fi
5745  if test -r $want_dir/aclocal/libtool.m4; then
5746  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5747  :
5748else
5749  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5750echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5751   { (exit 1); exit 1; }; }
5752  :
5753fi
5754
5755
5756  # Check if we have an Dependencies file
5757  if test -r $srcdir/Dependencies; then
5758    coin_have_externals=yes
5759  fi
5760  # Check if subversion is installed and understands https
5761  # Extract the first word of "svn", so it can be a program name with args.
5762set dummy svn; ac_word=$2
5763echo "$as_me:$LINENO: checking for $ac_word" >&5
5764echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5765if test "${ac_cv_prog_have_svn+set}" = set; then
5766  echo $ECHO_N "(cached) $ECHO_C" >&6
5767else
5768  if test -n "$have_svn"; then
5769  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5770else
5771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5772for as_dir in $PATH
5773do
5774  IFS=$as_save_IFS
5775  test -z "$as_dir" && as_dir=.
5776  for ac_exec_ext in '' $ac_executable_extensions; do
5777  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5778    ac_cv_prog_have_svn="yes"
5779    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5780    break 2
5781  fi
5782done
5783done
5784
5785  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5786fi
5787fi
5788have_svn=$ac_cv_prog_have_svn
5789if test -n "$have_svn"; then
5790  echo "$as_me:$LINENO: result: $have_svn" >&5
5791echo "${ECHO_T}$have_svn" >&6
5792else
5793  echo "$as_me:$LINENO: result: no" >&5
5794echo "${ECHO_T}no" >&6
5795fi
5796
5797  if test x$have_svn = xyes; then
5798    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5799echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5800if test "${ac_cv_svn_understands_https+set}" = set; then
5801  echo $ECHO_N "(cached) $ECHO_C" >&6
5802else
5803  svn --version > confauto.out 2>&1
5804                    if $EGREP https confauto.out >/dev/null 2>&1; then
5805                      ac_cv_svn_understands_https=yes
5806                    else
5807                      ac_cv_svn_understands_https=no
5808                      have_svn=no
5809                      ac_cv_prog_have_svn=no
5810                    fi
5811                    rm -f confauto.out
5812fi
5813echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5814echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5815  fi
5816
5817  # Find the location of the BuildTools directory
5818  BUILDTOOLSDIR=
5819  if test -r $srcdir/BuildTools/coin.m4; then
5820    BUILDTOOLSDIR=$srcdir/BuildTools
5821  else
5822    if test -r $srcdir/../BuildTools/coin.m4; then
5823      BUILDTOOLSDIR=$srcdir/../BuildTools
5824    else
5825      if test -r $srcdir/../../BuildTools/coin.m4; then
5826        BUILDTOOLSDIR=$srcdir/../../BuildTools
5827      else
5828        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5829echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5830   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
5831      fi
5832    fi
5833  fi
5834
5835
5836  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
5837  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
5838    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
5839  fi
5840
5841  # The following variable is set to the name of the directory where
5842  # the autotool scripts are located
5843
5844  AUX_DIR=$ac_aux_dir
5845fi
5846
5847# helpful variable for the base directory of this package
5848abs_source_dir=`cd $srcdir; pwd`
5849
5850
5851# Stuff for example Makefiles
5852if test x$prefix = xNONE; then
5853  full_prefix=$ac_default_prefix
5854else
5855  full_prefix=$prefix
5856fi
5857full_prefix=`cd $full_prefix ; pwd`
5858
5859abs_lib_dir=$full_prefix/lib
5860
5861abs_include_dir=$full_prefix/include
5862
5863abs_bin_dir=$full_prefix/bin
5864
5865
5866
5867if test $coin_have_externals = yes && test x$have_svn = xyes; then
5868  HAVE_EXTERNALS_TRUE=
5869  HAVE_EXTERNALS_FALSE='#'
5870else
5871  HAVE_EXTERNALS_TRUE='#'
5872  HAVE_EXTERNALS_FALSE=
5873fi
5874
5875
5876# AC_MSG_NOTICE([End automake initialisation.])
5877
5878
5879
5880LIBTOOL=
5881if test -r ../libtool; then
5882  coin_config_dir=..
5883  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5884fi
5885if test "x$LIBTOOL" = x; then
5886  if test -r ../../libtool; then
5887    coin_config_dir=../..
5888    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5889  fi
5890fi
5891
5892if test "x$LIBTOOL" = x; then
5893# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5894  # Stuff for libtool
5895  # Check whether --enable-shared or --disable-shared was given.
5896if test "${enable_shared+set}" = set; then
5897  enableval="$enable_shared"
5898  p=${PACKAGE-default}
5899    case $enableval in
5900    yes) enable_shared=yes ;;
5901    no) enable_shared=no ;;
5902    *)
5903      enable_shared=no
5904      # Look at the argument we got.  We use all the common list separators.
5905      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5906      for pkg in $enableval; do
5907        IFS="$lt_save_ifs"
5908        if test "X$pkg" = "X$p"; then
5909          enable_shared=yes
5910        fi
5911      done
5912      IFS="$lt_save_ifs"
5913      ;;
5914    esac
5915else
5916  enable_shared=yes
5917fi;
5918
5919# Check whether --enable-fast-install or --disable-fast-install was given.
5920if test "${enable_fast_install+set}" = set; then
5921  enableval="$enable_fast_install"
5922  p=${PACKAGE-default}
5923    case $enableval in
5924    yes) enable_fast_install=yes ;;
5925    no) enable_fast_install=no ;;
5926    *)
5927      enable_fast_install=no
5928      # Look at the argument we got.  We use all the common list separators.
5929      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5930      for pkg in $enableval; do
5931        IFS="$lt_save_ifs"
5932        if test "X$pkg" = "X$p"; then
5933          enable_fast_install=yes
5934        fi
5935      done
5936      IFS="$lt_save_ifs"
5937      ;;
5938    esac
5939else
5940  enable_fast_install=yes
5941fi;
5942
5943echo "$as_me:$LINENO: checking host system type" >&5
5944echo $ECHO_N "checking host system type... $ECHO_C" >&6
5945if test "${ac_cv_host+set}" = set; then
5946  echo $ECHO_N "(cached) $ECHO_C" >&6
5947else
5948  ac_cv_host_alias=$host_alias
5949test -z "$ac_cv_host_alias" &&
5950  ac_cv_host_alias=$ac_cv_build_alias
5951ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5952  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5953echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5954   { (exit 1); exit 1; }; }
5955
5956fi
5957echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5958echo "${ECHO_T}$ac_cv_host" >&6
5959host=$ac_cv_host
5960host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5961host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5962host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5963
5964
5965echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5966echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5967if test "${lt_cv_path_SED+set}" = set; then
5968  echo $ECHO_N "(cached) $ECHO_C" >&6
5969else
5970  # Loop through the user's path and test for sed and gsed.
5971# Then use that list of sed's as ones to test for truncation.
5972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5973for as_dir in $PATH
5974do
5975  IFS=$as_save_IFS
5976  test -z "$as_dir" && as_dir=.
5977  for lt_ac_prog in sed gsed; do
5978    for ac_exec_ext in '' $ac_executable_extensions; do
5979      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5980        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5981      fi
5982    done
5983  done
5984done
5985lt_ac_max=0
5986lt_ac_count=0
5987# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5988# along with /bin/sed that truncates output.
5989for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5990  test ! -f $lt_ac_sed && continue
5991  cat /dev/null > conftest.in
5992  lt_ac_count=0
5993  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5994  # Check for GNU sed and select it if it is found.
5995  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5996    lt_cv_path_SED=$lt_ac_sed
5997    break
5998  fi
5999  while true; do
6000    cat conftest.in conftest.in >conftest.tmp
6001    mv conftest.tmp conftest.in
6002    cp conftest.in conftest.nl
6003    echo >>conftest.nl
6004    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6005    cmp -s conftest.out conftest.nl || break
6006    # 10000 chars as input seems more than enough
6007    test $lt_ac_count -gt 10 && break
6008    lt_ac_count=`expr $lt_ac_count + 1`
6009    if test $lt_ac_count -gt $lt_ac_max; then
6010      lt_ac_max=$lt_ac_count
6011      lt_cv_path_SED=$lt_ac_sed
6012    fi
6013  done
6014done
6015
6016fi
6017
6018SED=$lt_cv_path_SED
6019echo "$as_me:$LINENO: result: $SED" >&5
6020echo "${ECHO_T}$SED" >&6
6021
6022
6023# Check whether --with-gnu-ld or --without-gnu-ld was given.
6024if test "${with_gnu_ld+set}" = set; then
6025  withval="$with_gnu_ld"
6026  test "$withval" = no || with_gnu_ld=yes
6027else
6028  with_gnu_ld=no
6029fi;
6030ac_prog=ld
6031if test "$GCC" = yes; then
6032  # Check if gcc -print-prog-name=ld gives a path.
6033  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6034echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
6035  case $host in
6036  *-*-mingw*)
6037    # gcc leaves a trailing carriage return which upsets mingw
6038    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6039  *)
6040    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6041  esac
6042  case $ac_prog in
6043    # Accept absolute paths.
6044    [\\/]* | ?:[\\/]*)
6045      re_direlt='/[^/][^/]*/\.\./'
6046      # Canonicalize the pathname of ld
6047      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6048      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6049        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6050      done
6051      test -z "$LD" && LD="$ac_prog"
6052      ;;
6053  "")
6054    # If it fails, then pretend we aren't using GCC.
6055    ac_prog=ld
6056    ;;
6057  *)
6058    # If it is relative, then search for the first ld in PATH.
6059    with_gnu_ld=unknown
6060    ;;
6061  esac
6062elif test "$with_gnu_ld" = yes; then
6063  echo "$as_me:$LINENO: checking for GNU ld" >&5
6064echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6065else
6066  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6067echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6068fi
6069if test "${lt_cv_path_LD+set}" = set; then
6070  echo $ECHO_N "(cached) $ECHO_C" >&6
6071else
6072  if test -z "$LD"; then
6073  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6074  for ac_dir in $PATH; do
6075    IFS="$lt_save_ifs"
6076    test -z "$ac_dir" && ac_dir=.
6077    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6078      lt_cv_path_LD="$ac_dir/$ac_prog"
6079      # Check to see if the program is GNU ld.  I'd rather use --version,
6080      # but apparently some variants of GNU ld only accept -v.
6081      # Break only if it was the GNU/non-GNU ld that we prefer.
6082      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6083      *GNU* | *'with BFD'*)
6084        test "$with_gnu_ld" != no && break
6085        ;;
6086      *)
6087        test "$with_gnu_ld" != yes && break
6088        ;;
6089      esac
6090    fi
6091  done
6092  IFS="$lt_save_ifs"
6093else
6094  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6095fi
6096fi
6097
6098LD="$lt_cv_path_LD"
6099if test -n "$LD"; then
6100  echo "$as_me:$LINENO: result: $LD" >&5
6101echo "${ECHO_T}$LD" >&6
6102else
6103  echo "$as_me:$LINENO: result: no" >&5
6104echo "${ECHO_T}no" >&6
6105fi
6106test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6107echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6108   { (exit 1); exit 1; }; }
6109echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6110echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6111if test "${lt_cv_prog_gnu_ld+set}" = set; then
6112  echo $ECHO_N "(cached) $ECHO_C" >&6
6113else
6114  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6115case `$LD -v 2>&1 </dev/null` in
6116*GNU* | *'with BFD'*)
6117  lt_cv_prog_gnu_ld=yes
6118  ;;
6119*)
6120  lt_cv_prog_gnu_ld=no
6121  ;;
6122esac
6123fi
6124echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6125echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6126with_gnu_ld=$lt_cv_prog_gnu_ld
6127
6128
6129echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6130echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6131if test "${lt_cv_ld_reload_flag+set}" = set; then
6132  echo $ECHO_N "(cached) $ECHO_C" >&6
6133else
6134  lt_cv_ld_reload_flag='-r'
6135fi
6136echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6137echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6138reload_flag=$lt_cv_ld_reload_flag
6139case $reload_flag in
6140"" | " "*) ;;
6141*) reload_flag=" $reload_flag" ;;
6142esac
6143reload_cmds='$LD$reload_flag -o $output$reload_objs'
6144case $host_os in
6145  darwin*)
6146    if test "$GCC" = yes; then
6147      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6148    else
6149      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6150    fi
6151    ;;
6152esac
6153
6154echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6155echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6156if test "${lt_cv_path_NM+set}" = set; then
6157  echo $ECHO_N "(cached) $ECHO_C" >&6
6158else
6159  if test -n "$NM"; then
6160  # Let the user override the test.
6161  lt_cv_path_NM="$NM"
6162else
6163  lt_nm_to_check="${ac_tool_prefix}nm"
6164  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6165    lt_nm_to_check="$lt_nm_to_check nm"
6166  fi
6167  for lt_tmp_nm in $lt_nm_to_check; do
6168    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6169    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6170      IFS="$lt_save_ifs"
6171      test -z "$ac_dir" && ac_dir=.
6172      tmp_nm="$ac_dir/$lt_tmp_nm"
6173      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6174        # Check to see if the nm accepts a BSD-compat flag.
6175        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6176        #   nm: unknown option "B" ignored
6177        # Tru64's nm complains that /dev/null is an invalid object file
6178        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6179        */dev/null* | *'Invalid file or object type'*)
6180          lt_cv_path_NM="$tmp_nm -B"
6181          break
6182          ;;
6183        *)
6184          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6185          */dev/null*)
6186            lt_cv_path_NM="$tmp_nm -p"
6187            break
6188            ;;
6189          *)
6190            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6191            continue # so that we can try to find one that supports BSD flags
6192            ;;
6193          esac
6194          ;;
6195        esac
6196      fi
6197    done
6198    IFS="$lt_save_ifs"
6199  done
6200  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6201fi
6202fi
6203echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6204echo "${ECHO_T}$lt_cv_path_NM" >&6
6205NM="$lt_cv_path_NM"
6206
6207echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6208echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
6209if test "${lt_cv_deplibs_check_method+set}" = set; then
6210  echo $ECHO_N "(cached) $ECHO_C" >&6
6211else
6212  lt_cv_file_magic_cmd='$MAGIC_CMD'
6213lt_cv_file_magic_test_file=
6214lt_cv_deplibs_check_method='unknown'
6215# Need to set the preceding variable on all platforms that support
6216# interlibrary dependencies.
6217# 'none' -- dependencies not supported.
6218# `unknown' -- same as none, but documents that we really don't know.
6219# 'pass_all' -- all dependencies passed with no checks.
6220# 'test_compile' -- check by making test program.
6221# 'file_magic [[regex]]' -- check by looking for files in library path
6222# which responds to the $file_magic_cmd with a given extended regex.
6223# If you have `file' or equivalent on your system and you're not sure
6224# whether `pass_all' will *always* work, you probably want this one.
6225
6226case $host_os in
6227aix4* | aix5*)
6228  lt_cv_deplibs_check_method=pass_all
6229  ;;
6230
6231beos*)
6232  lt_cv_deplibs_check_method=pass_all
6233  ;;
6234
6235bsdi[45]*)
6236  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6237  lt_cv_file_magic_cmd='/usr/bin/file -L'
6238  lt_cv_file_magic_test_file=/shlib/libc.so
6239  ;;
6240
6241cygwin*)
6242  # func_win32_libid is a shell function defined in ltmain.sh
6243  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6244  lt_cv_file_magic_cmd='func_win32_libid'
6245  ;;
6246
6247mingw* | pw32*)
6248  # Base MSYS/MinGW do not provide the 'file' command needed by
6249  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6250  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6251  lt_cv_file_magic_cmd='$OBJDUMP -f'
6252  ;;
6253
6254darwin* | rhapsody*)
6255  lt_cv_deplibs_check_method=pass_all
6256  ;;
6257
6258freebsd* | kfreebsd*-gnu | dragonfly*)
6259  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6260    case $host_cpu in
6261    i*86 )
6262      # Not sure whether the presence of OpenBSD here was a mistake.
6263      # Let's accept both of them until this is cleared up.
6264      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6265      lt_cv_file_magic_cmd=/usr/bin/file
6266      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6267      ;;
6268    esac
6269  else
6270    lt_cv_deplibs_check_method=pass_all
6271  fi
6272  ;;
6273
6274gnu*)
6275  lt_cv_deplibs_check_method=pass_all
6276  ;;
6277
6278hpux10.20* | hpux11*)
6279  lt_cv_file_magic_cmd=/usr/bin/file
6280  case $host_cpu in
6281  ia64*)
6282    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6283    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6284    ;;
6285  hppa*64*)
6286    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]'
6287    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6288    ;;
6289  *)
6290    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6291    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6292    ;;
6293  esac
6294  ;;
6295
6296interix3*)
6297  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6298  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6299  ;;
6300
6301irix5* | irix6* | nonstopux*)
6302  case $LD in
6303  *-32|*"-32 ") libmagic=32-bit;;
6304  *-n32|*"-n32 ") libmagic=N32;;
6305  *-64|*"-64 ") libmagic=64-bit;;
6306  *) libmagic=never-match;;
6307  esac
6308  lt_cv_deplibs_check_method=pass_all
6309  ;;
6310
6311# This must be Linux ELF.
6312linux*)
6313  lt_cv_deplibs_check_method=pass_all
6314  ;;
6315
6316netbsd*)
6317  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6318    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6319  else
6320    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6321  fi
6322  ;;
6323
6324newos6*)
6325  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6326  lt_cv_file_magic_cmd=/usr/bin/file
6327  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6328  ;;
6329
6330nto-qnx*)
6331  lt_cv_deplibs_check_method=unknown
6332  ;;
6333
6334openbsd*)
6335  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6336    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6337  else
6338    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6339  fi
6340  ;;
6341
6342osf3* | osf4* | osf5*)
6343  lt_cv_deplibs_check_method=pass_all
6344  ;;
6345
6346solaris*)
6347  lt_cv_deplibs_check_method=pass_all
6348  ;;
6349
6350sysv4 | sysv4.3*)
6351  case $host_vendor in
6352  motorola)
6353    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]'
6354    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6355    ;;
6356  ncr)
6357    lt_cv_deplibs_check_method=pass_all
6358    ;;
6359  sequent)
6360    lt_cv_file_magic_cmd='/bin/file'
6361    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6362    ;;
6363  sni)
6364    lt_cv_file_magic_cmd='/bin/file'
6365    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6366    lt_cv_file_magic_test_file=/lib/libc.so
6367    ;;
6368  siemens)
6369    lt_cv_deplibs_check_method=pass_all
6370    ;;
6371  pc)
6372    lt_cv_deplibs_check_method=pass_all
6373    ;;
6374  esac
6375  ;;
6376
6377sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6378  lt_cv_deplibs_check_method=pass_all
6379  ;;
6380esac
6381
6382fi
6383echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6384echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6385file_magic_cmd=$lt_cv_file_magic_cmd
6386deplibs_check_method=$lt_cv_deplibs_check_method
6387test -z "$deplibs_check_method" && deplibs_check_method=unknown
6388
6389
6390
6391
6392# If no C compiler was specified, use CC.
6393LTCC=${LTCC-"$CC"}
6394
6395# If no C compiler flags were specified, use CFLAGS.
6396LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6397
6398# Allow CC to be a program name with arguments.
6399compiler=$CC
6400
6401# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6402if test "${enable_libtool_lock+set}" = set; then
6403  enableval="$enable_libtool_lock"
6404
6405fi;
6406test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6407
6408# Some flags need to be propagated to the compiler or linker for good
6409# libtool support.
6410case $host in
6411ia64-*-hpux*)
6412  # Find out which ABI we are using.
6413  echo 'int i;' > conftest.$ac_ext
6414  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6415  (eval $ac_compile) 2>&5
6416  ac_status=$?
6417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418  (exit $ac_status); }; then
6419    case `/usr/bin/file conftest.$ac_objext` in
6420    *ELF-32*)
6421      HPUX_IA64_MODE="32"
6422      ;;
6423    *ELF-64*)
6424      HPUX_IA64_MODE="64"
6425      ;;
6426    esac
6427  fi
6428  rm -rf conftest*
6429  ;;
6430*-*-irix6*)
6431  # Find out which ABI we are using.
6432  echo '#line 6432 "configure"' > conftest.$ac_ext
6433  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6434  (eval $ac_compile) 2>&5
6435  ac_status=$?
6436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437  (exit $ac_status); }; then
6438   if test "$lt_cv_prog_gnu_ld" = yes; then
6439    case `/usr/bin/file conftest.$ac_objext` in
6440    *32-bit*)
6441      LD="${LD-ld} -melf32bsmip"
6442      ;;
6443    *N32*)
6444      LD="${LD-ld} -melf32bmipn32"
6445      ;;
6446    *64-bit*)
6447      LD="${LD-ld} -melf64bmip"
6448      ;;
6449    esac
6450   else
6451    case `/usr/bin/file conftest.$ac_objext` in
6452    *32-bit*)
6453      LD="${LD-ld} -32"
6454      ;;
6455    *N32*)
6456      LD="${LD-ld} -n32"
6457      ;;
6458    *64-bit*)
6459      LD="${LD-ld} -64"
6460      ;;
6461    esac
6462   fi
6463  fi
6464  rm -rf conftest*
6465  ;;
6466
6467x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6468  # Find out which ABI we are using.
6469  echo 'int i;' > conftest.$ac_ext
6470  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6471  (eval $ac_compile) 2>&5
6472  ac_status=$?
6473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6474  (exit $ac_status); }; then
6475    case `/usr/bin/file conftest.o` in
6476    *32-bit*)
6477      case $host in
6478        x86_64-*linux*)
6479          LD="${LD-ld} -m elf_i386"
6480          ;;
6481        ppc64-*linux*|powerpc64-*linux*)
6482          LD="${LD-ld} -m elf32ppclinux"
6483          ;;
6484        s390x-*linux*)
6485          LD="${LD-ld} -m elf_s390"
6486          ;;
6487        sparc64-*linux*)
6488          LD="${LD-ld} -m elf32_sparc"
6489          ;;
6490      esac
6491      ;;
6492    *64-bit*)
6493      case $host in
6494        x86_64-*linux*)
6495          LD="${LD-ld} -m elf_x86_64"
6496          ;;
6497        ppc*-*linux*|powerpc*-*linux*)
6498          LD="${LD-ld} -m elf64ppc"
6499          ;;
6500        s390*-*linux*)
6501          LD="${LD-ld} -m elf64_s390"
6502          ;;
6503        sparc*-*linux*)
6504          LD="${LD-ld} -m elf64_sparc"
6505          ;;
6506      esac
6507      ;;
6508    esac
6509  fi
6510  rm -rf conftest*
6511  ;;
6512
6513*-*-sco3.2v5*)
6514  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6515  SAVE_CFLAGS="$CFLAGS"
6516  CFLAGS="$CFLAGS -belf"
6517  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6518echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6519if test "${lt_cv_cc_needs_belf+set}" = set; then
6520  echo $ECHO_N "(cached) $ECHO_C" >&6
6521else
6522  ac_ext=c
6523ac_cpp='$CPP $CPPFLAGS'
6524ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6525ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6526ac_compiler_gnu=$ac_cv_c_compiler_gnu
6527
6528     cat >conftest.$ac_ext <<_ACEOF
6529/* confdefs.h.  */
6530_ACEOF
6531cat confdefs.h >>conftest.$ac_ext
6532cat >>conftest.$ac_ext <<_ACEOF
6533/* end confdefs.h.  */
6534
6535int
6536main ()
6537{
6538
6539  ;
6540  return 0;
6541}
6542_ACEOF
6543rm -f conftest.$ac_objext conftest$ac_exeext
6544if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6545  (eval $ac_link) 2>conftest.er1
6546  ac_status=$?
6547  grep -v '^ *+' conftest.er1 >conftest.err
6548  rm -f conftest.er1
6549  cat conftest.err >&5
6550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6551  (exit $ac_status); } &&
6552         { ac_try='test -z "$ac_c_werror_flag"
6553                         || test ! -s conftest.err'
6554  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6555  (eval $ac_try) 2>&5
6556  ac_status=$?
6557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558  (exit $ac_status); }; } &&
6559         { ac_try='test -s conftest$ac_exeext'
6560  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6561  (eval $ac_try) 2>&5
6562  ac_status=$?
6563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6564  (exit $ac_status); }; }; then
6565  lt_cv_cc_needs_belf=yes
6566else
6567  echo "$as_me: failed program was:" >&5
6568sed 's/^/| /' conftest.$ac_ext >&5
6569
6570lt_cv_cc_needs_belf=no
6571fi
6572rm -f conftest.err conftest.$ac_objext \
6573      conftest$ac_exeext conftest.$ac_ext
6574     ac_ext=c
6575ac_cpp='$CPP $CPPFLAGS'
6576ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6577ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6578ac_compiler_gnu=$ac_cv_c_compiler_gnu
6579
6580fi
6581echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6582echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6583  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6584    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6585    CFLAGS="$SAVE_CFLAGS"
6586  fi
6587  ;;
6588sparc*-*solaris*)
6589  # Find out which ABI we are using.
6590  echo 'int i;' > conftest.$ac_ext
6591  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6592  (eval $ac_compile) 2>&5
6593  ac_status=$?
6594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595  (exit $ac_status); }; then
6596    case `/usr/bin/file conftest.o` in
6597    *64-bit*)
6598      case $lt_cv_prog_gnu_ld in
6599      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6600      *)    LD="${LD-ld} -64" ;;
6601      esac
6602      ;;
6603    esac
6604  fi
6605  rm -rf conftest*
6606  ;;
6607
6608
6609esac
6610
6611need_locks="$enable_libtool_lock"
6612
6613
6614ac_ext=c
6615ac_cpp='$CPP $CPPFLAGS'
6616ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6617ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6618ac_compiler_gnu=$ac_cv_c_compiler_gnu
6619echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6620echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6621# On Suns, sometimes $CPP names a directory.
6622if test -n "$CPP" && test -d "$CPP"; then
6623  CPP=
6624fi
6625if test -z "$CPP"; then
6626  if test "${ac_cv_prog_CPP+set}" = set; then
6627  echo $ECHO_N "(cached) $ECHO_C" >&6
6628else
6629      # Double quotes because CPP needs to be expanded
6630    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6631    do
6632      ac_preproc_ok=false
6633for ac_c_preproc_warn_flag in '' yes
6634do
6635  # Use a header file that comes with gcc, so configuring glibc
6636  # with a fresh cross-compiler works.
6637  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6638  # <limits.h> exists even on freestanding compilers.
6639  # On the NeXT, cc -E runs the code through the compiler's parser,
6640  # not just through cpp. "Syntax error" is here to catch this case.
6641  cat >conftest.$ac_ext <<_ACEOF
6642/* confdefs.h.  */
6643_ACEOF
6644cat confdefs.h >>conftest.$ac_ext
6645cat >>conftest.$ac_ext <<_ACEOF
6646/* end confdefs.h.  */
6647#ifdef __STDC__
6648# include <limits.h>
6649#else
6650# include <assert.h>
6651#endif
6652                     Syntax error
6653_ACEOF
6654if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6655  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6656  ac_status=$?
6657  grep -v '^ *+' conftest.er1 >conftest.err
6658  rm -f conftest.er1
6659  cat conftest.err >&5
6660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661  (exit $ac_status); } >/dev/null; then
6662  if test -s conftest.err; then
6663    ac_cpp_err=$ac_c_preproc_warn_flag
6664    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6665  else
6666    ac_cpp_err=
6667  fi
6668else
6669  ac_cpp_err=yes
6670fi
6671if test -z "$ac_cpp_err"; then
6672  :
6673else
6674  echo "$as_me: failed program was:" >&5
6675sed 's/^/| /' conftest.$ac_ext >&5
6676
6677  # Broken: fails on valid input.
6678continue
6679fi
6680rm -f conftest.err conftest.$ac_ext
6681
6682  # OK, works on sane cases.  Now check whether non-existent headers
6683  # can be detected and how.
6684  cat >conftest.$ac_ext <<_ACEOF
6685/* confdefs.h.  */
6686_ACEOF
6687cat confdefs.h >>conftest.$ac_ext
6688cat >>conftest.$ac_ext <<_ACEOF
6689/* end confdefs.h.  */
6690#include <ac_nonexistent.h>
6691_ACEOF
6692if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6693  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6694  ac_status=$?
6695  grep -v '^ *+' conftest.er1 >conftest.err
6696  rm -f conftest.er1
6697  cat conftest.err >&5
6698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6699  (exit $ac_status); } >/dev/null; then
6700  if test -s conftest.err; then
6701    ac_cpp_err=$ac_c_preproc_warn_flag
6702    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6703  else
6704    ac_cpp_err=
6705  fi
6706else
6707  ac_cpp_err=yes
6708fi
6709if test -z "$ac_cpp_err"; then
6710  # Broken: success on invalid input.
6711continue
6712else
6713  echo "$as_me: failed program was:" >&5
6714sed 's/^/| /' conftest.$ac_ext >&5
6715
6716  # Passes both tests.
6717ac_preproc_ok=:
6718break
6719fi
6720rm -f conftest.err conftest.$ac_ext
6721
6722done
6723# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6724rm -f conftest.err conftest.$ac_ext
6725if $ac_preproc_ok; then
6726  break
6727fi
6728
6729    done
6730    ac_cv_prog_CPP=$CPP
6731
6732fi
6733  CPP=$ac_cv_prog_CPP
6734else
6735  ac_cv_prog_CPP=$CPP
6736fi
6737echo "$as_me:$LINENO: result: $CPP" >&5
6738echo "${ECHO_T}$CPP" >&6
6739ac_preproc_ok=false
6740for ac_c_preproc_warn_flag in '' yes
6741do
6742  # Use a header file that comes with gcc, so configuring glibc
6743  # with a fresh cross-compiler works.
6744  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6745  # <limits.h> exists even on freestanding compilers.
6746  # On the NeXT, cc -E runs the code through the compiler's parser,
6747  # not just through cpp. "Syntax error" is here to catch this case.
6748  cat >conftest.$ac_ext <<_ACEOF
6749/* confdefs.h.  */
6750_ACEOF
6751cat confdefs.h >>conftest.$ac_ext
6752cat >>conftest.$ac_ext <<_ACEOF
6753/* end confdefs.h.  */
6754#ifdef __STDC__
6755# include <limits.h>
6756#else
6757# include <assert.h>
6758#endif
6759                     Syntax error
6760_ACEOF
6761if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6762  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6763  ac_status=$?
6764  grep -v '^ *+' conftest.er1 >conftest.err
6765  rm -f conftest.er1
6766  cat conftest.err >&5
6767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768  (exit $ac_status); } >/dev/null; then
6769  if test -s conftest.err; then
6770    ac_cpp_err=$ac_c_preproc_warn_flag
6771    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6772  else
6773    ac_cpp_err=
6774  fi
6775else
6776  ac_cpp_err=yes
6777fi
6778if test -z "$ac_cpp_err"; then
6779  :
6780else
6781  echo "$as_me: failed program was:" >&5
6782sed 's/^/| /' conftest.$ac_ext >&5
6783
6784  # Broken: fails on valid input.
6785continue
6786fi
6787rm -f conftest.err conftest.$ac_ext
6788
6789  # OK, works on sane cases.  Now check whether non-existent headers
6790  # can be detected and how.
6791  cat >conftest.$ac_ext <<_ACEOF
6792/* confdefs.h.  */
6793_ACEOF
6794cat confdefs.h >>conftest.$ac_ext
6795cat >>conftest.$ac_ext <<_ACEOF
6796/* end confdefs.h.  */
6797#include <ac_nonexistent.h>
6798_ACEOF
6799if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6800  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6801  ac_status=$?
6802  grep -v '^ *+' conftest.er1 >conftest.err
6803  rm -f conftest.er1
6804  cat conftest.err >&5
6805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6806  (exit $ac_status); } >/dev/null; then
6807  if test -s conftest.err; then
6808    ac_cpp_err=$ac_c_preproc_warn_flag
6809    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6810  else
6811    ac_cpp_err=
6812  fi
6813else
6814  ac_cpp_err=yes
6815fi
6816if test -z "$ac_cpp_err"; then
6817  # Broken: success on invalid input.
6818continue
6819else
6820  echo "$as_me: failed program was:" >&5
6821sed 's/^/| /' conftest.$ac_ext >&5
6822
6823  # Passes both tests.
6824ac_preproc_ok=:
6825break
6826fi
6827rm -f conftest.err conftest.$ac_ext
6828
6829done
6830# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6831rm -f conftest.err conftest.$ac_ext
6832if $ac_preproc_ok; then
6833  :
6834else
6835  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6836See \`config.log' for more details." >&5
6837echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6838See \`config.log' for more details." >&2;}
6839   { (exit 1); exit 1; }; }
6840fi
6841
6842ac_ext=c
6843ac_cpp='$CPP $CPPFLAGS'
6844ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6845ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6846ac_compiler_gnu=$ac_cv_c_compiler_gnu
6847
6848
6849echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6850echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6851if test "${ac_cv_header_stdc+set}" = set; then
6852  echo $ECHO_N "(cached) $ECHO_C" >&6
6853else
6854  cat >conftest.$ac_ext <<_ACEOF
6855/* confdefs.h.  */
6856_ACEOF
6857cat confdefs.h >>conftest.$ac_ext
6858cat >>conftest.$ac_ext <<_ACEOF
6859/* end confdefs.h.  */
6860#include <stdlib.h>
6861#include <stdarg.h>
6862#include <string.h>
6863#include <float.h>
6864
6865int
6866main ()
6867{
6868
6869  ;
6870  return 0;
6871}
6872_ACEOF
6873rm -f conftest.$ac_objext
6874if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6875  (eval $ac_compile) 2>conftest.er1
6876  ac_status=$?
6877  grep -v '^ *+' conftest.er1 >conftest.err
6878  rm -f conftest.er1
6879  cat conftest.err >&5
6880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6881  (exit $ac_status); } &&
6882         { ac_try='test -z "$ac_c_werror_flag"
6883                         || test ! -s conftest.err'
6884  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6885  (eval $ac_try) 2>&5
6886  ac_status=$?
6887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6888  (exit $ac_status); }; } &&
6889         { ac_try='test -s conftest.$ac_objext'
6890  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6891  (eval $ac_try) 2>&5
6892  ac_status=$?
6893  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894  (exit $ac_status); }; }; then
6895  ac_cv_header_stdc=yes
6896else
6897  echo "$as_me: failed program was:" >&5
6898sed 's/^/| /' conftest.$ac_ext >&5
6899
6900ac_cv_header_stdc=no
6901fi
6902rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6903
6904if test $ac_cv_header_stdc = yes; then
6905  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6906  cat >conftest.$ac_ext <<_ACEOF
6907/* confdefs.h.  */
6908_ACEOF
6909cat confdefs.h >>conftest.$ac_ext
6910cat >>conftest.$ac_ext <<_ACEOF
6911/* end confdefs.h.  */
6912#include <string.h>
6913
6914_ACEOF
6915if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6916  $EGREP "memchr" >/dev/null 2>&1; then
6917  :
6918else
6919  ac_cv_header_stdc=no
6920fi
6921rm -f conftest*
6922
6923fi
6924
6925if test $ac_cv_header_stdc = yes; then
6926  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6927  cat >conftest.$ac_ext <<_ACEOF
6928/* confdefs.h.  */
6929_ACEOF
6930cat confdefs.h >>conftest.$ac_ext
6931cat >>conftest.$ac_ext <<_ACEOF
6932/* end confdefs.h.  */
6933#include <stdlib.h>
6934
6935_ACEOF
6936if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6937  $EGREP "free" >/dev/null 2>&1; then
6938  :
6939else
6940  ac_cv_header_stdc=no
6941fi
6942rm -f conftest*
6943
6944fi
6945
6946if test $ac_cv_header_stdc = yes; then
6947  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6948  if test "$cross_compiling" = yes; then
6949  :
6950else
6951  cat >conftest.$ac_ext <<_ACEOF
6952/* confdefs.h.  */
6953_ACEOF
6954cat confdefs.h >>conftest.$ac_ext
6955cat >>conftest.$ac_ext <<_ACEOF
6956/* end confdefs.h.  */
6957#include <ctype.h>
6958#if ((' ' & 0x0FF) == 0x020)
6959# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6960# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6961#else
6962# define ISLOWER(c) \
6963                   (('a' <= (c) && (c) <= 'i') \
6964                     || ('j' <= (c) && (c) <= 'r') \
6965                     || ('s' <= (c) && (c) <= 'z'))
6966# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6967#endif
6968
6969#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6970int
6971main ()
6972{
6973  int i;
6974  for (i = 0; i < 256; i++)
6975    if (XOR (islower (i), ISLOWER (i))
6976        || toupper (i) != TOUPPER (i))
6977      exit(2);
6978  exit (0);
6979}
6980_ACEOF
6981rm -f conftest$ac_exeext
6982if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6983  (eval $ac_link) 2>&5
6984  ac_status=$?
6985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6986  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6987  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6988  (eval $ac_try) 2>&5
6989  ac_status=$?
6990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991  (exit $ac_status); }; }; then
6992  :
6993else
6994  echo "$as_me: program exited with status $ac_status" >&5
6995echo "$as_me: failed program was:" >&5
6996sed 's/^/| /' conftest.$ac_ext >&5
6997
6998( exit $ac_status )
6999ac_cv_header_stdc=no
7000fi
7001rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7002fi
7003fi
7004fi
7005echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7006echo "${ECHO_T}$ac_cv_header_stdc" >&6
7007if test $ac_cv_header_stdc = yes; then
7008
7009cat >>confdefs.h <<\_ACEOF
7010#define STDC_HEADERS 1
7011_ACEOF
7012
7013fi
7014
7015# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7026                  inttypes.h stdint.h unistd.h
7027do
7028as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7029echo "$as_me:$LINENO: checking for $ac_header" >&5
7030echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7031if eval "test \"\${$as_ac_Header+set}\" = set"; then
7032  echo $ECHO_N "(cached) $ECHO_C" >&6
7033else
7034  cat >conftest.$ac_ext <<_ACEOF
7035/* confdefs.h.  */
7036_ACEOF
7037cat confdefs.h >>conftest.$ac_ext
7038cat >>conftest.$ac_ext <<_ACEOF
7039/* end confdefs.h.  */
7040$ac_includes_default
7041
7042#include <$ac_header>
7043_ACEOF
7044rm -f conftest.$ac_objext
7045if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7046  (eval $ac_compile) 2>conftest.er1
7047  ac_status=$?
7048  grep -v '^ *+' conftest.er1 >conftest.err
7049  rm -f conftest.er1
7050  cat conftest.err >&5
7051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7052  (exit $ac_status); } &&
7053         { ac_try='test -z "$ac_c_werror_flag"
7054                         || test ! -s conftest.err'
7055  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7056  (eval $ac_try) 2>&5
7057  ac_status=$?
7058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059  (exit $ac_status); }; } &&
7060         { ac_try='test -s conftest.$ac_objext'
7061  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7062  (eval $ac_try) 2>&5
7063  ac_status=$?
7064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065  (exit $ac_status); }; }; then
7066  eval "$as_ac_Header=yes"
7067else
7068  echo "$as_me: failed program was:" >&5
7069sed 's/^/| /' conftest.$ac_ext >&5
7070
7071eval "$as_ac_Header=no"
7072fi
7073rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7074fi
7075echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7076echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7077if test `eval echo '${'$as_ac_Header'}'` = yes; then
7078  cat >>confdefs.h <<_ACEOF
7079#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7080_ACEOF
7081
7082fi
7083
7084done
7085
7086
7087
7088for ac_header in dlfcn.h
7089do
7090as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7091if eval "test \"\${$as_ac_Header+set}\" = set"; then
7092  echo "$as_me:$LINENO: checking for $ac_header" >&5
7093echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7094if eval "test \"\${$as_ac_Header+set}\" = set"; then
7095  echo $ECHO_N "(cached) $ECHO_C" >&6
7096fi
7097echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7098echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7099else
7100  # Is the header compilable?
7101echo "$as_me:$LINENO: checking $ac_header usability" >&5
7102echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7103cat >conftest.$ac_ext <<_ACEOF
7104/* confdefs.h.  */
7105_ACEOF
7106cat confdefs.h >>conftest.$ac_ext
7107cat >>conftest.$ac_ext <<_ACEOF
7108/* end confdefs.h.  */
7109$ac_includes_default
7110#include <$ac_header>
7111_ACEOF
7112rm -f conftest.$ac_objext
7113if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7114  (eval $ac_compile) 2>conftest.er1
7115  ac_status=$?
7116  grep -v '^ *+' conftest.er1 >conftest.err
7117  rm -f conftest.er1
7118  cat conftest.err >&5
7119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120  (exit $ac_status); } &&
7121         { ac_try='test -z "$ac_c_werror_flag"
7122                         || test ! -s conftest.err'
7123  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7124  (eval $ac_try) 2>&5
7125  ac_status=$?
7126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127  (exit $ac_status); }; } &&
7128         { ac_try='test -s conftest.$ac_objext'
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  ac_header_compiler=yes
7135else
7136  echo "$as_me: failed program was:" >&5
7137sed 's/^/| /' conftest.$ac_ext >&5
7138
7139ac_header_compiler=no
7140fi
7141rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7142echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7143echo "${ECHO_T}$ac_header_compiler" >&6
7144
7145# Is the header present?
7146echo "$as_me:$LINENO: checking $ac_header presence" >&5
7147echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7148cat >conftest.$ac_ext <<_ACEOF
7149/* confdefs.h.  */
7150_ACEOF
7151cat confdefs.h >>conftest.$ac_ext
7152cat >>conftest.$ac_ext <<_ACEOF
7153/* end confdefs.h.  */
7154#include <$ac_header>
7155_ACEOF
7156if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7157  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7158  ac_status=$?
7159  grep -v '^ *+' conftest.er1 >conftest.err
7160  rm -f conftest.er1
7161  cat conftest.err >&5
7162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7163  (exit $ac_status); } >/dev/null; then
7164  if test -s conftest.err; then
7165    ac_cpp_err=$ac_c_preproc_warn_flag
7166    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7167  else
7168    ac_cpp_err=
7169  fi
7170else
7171  ac_cpp_err=yes
7172fi
7173if test -z "$ac_cpp_err"; then
7174  ac_header_preproc=yes
7175else
7176  echo "$as_me: failed program was:" >&5
7177sed 's/^/| /' conftest.$ac_ext >&5
7178
7179  ac_header_preproc=no
7180fi
7181rm -f conftest.err conftest.$ac_ext
7182echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7183echo "${ECHO_T}$ac_header_preproc" >&6
7184
7185# So?  What about this header?
7186case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7187  yes:no: )
7188    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7189echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7190    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7191echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7192    ac_header_preproc=yes
7193    ;;
7194  no:yes:* )
7195    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7196echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7197    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7198echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7199    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7200echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7201    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7202echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7203    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7204echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7205    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7206echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7207    (
7208      cat <<\_ASBOX
7209## --------------------------------------------------------------- ##
7210## Report this to http://projects.coin-or.org/BuildTools/newticket ##
7211## --------------------------------------------------------------- ##
7212_ASBOX
7213    ) |
7214      sed "s/^/$as_me: WARNING:     /" >&2
7215    ;;
7216esac
7217echo "$as_me:$LINENO: checking for $ac_header" >&5
7218echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7219if eval "test \"\${$as_ac_Header+set}\" = set"; then
7220  echo $ECHO_N "(cached) $ECHO_C" >&6
7221else
7222  eval "$as_ac_Header=\$ac_header_preproc"
7223fi
7224echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7225echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7226
7227fi
7228if test `eval echo '${'$as_ac_Header'}'` = yes; then
7229  cat >>confdefs.h <<_ACEOF
7230#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7231_ACEOF
7232
7233fi
7234
7235done
7236
7237
7238
7239if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7240    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7241    (test "X$CXX" != "Xg++"))) ; then
7242  ac_ext=cc
7243ac_cpp='$CXXCPP $CPPFLAGS'
7244ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7245ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7246ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7247echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7248echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7249if test -z "$CXXCPP"; then
7250  if test "${ac_cv_prog_CXXCPP+set}" = set; then
7251  echo $ECHO_N "(cached) $ECHO_C" >&6
7252else
7253      # Double quotes because CXXCPP needs to be expanded
7254    for CXXCPP in "$CXX -E" "/lib/cpp"
7255    do
7256      ac_preproc_ok=false
7257for ac_cxx_preproc_warn_flag in '' yes
7258do
7259  # Use a header file that comes with gcc, so configuring glibc
7260  # with a fresh cross-compiler works.
7261  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7262  # <limits.h> exists even on freestanding compilers.
7263  # On the NeXT, cc -E runs the code through the compiler's parser,
7264  # not just through cpp. "Syntax error" is here to catch this case.
7265  cat >conftest.$ac_ext <<_ACEOF
7266/* confdefs.h.  */
7267_ACEOF
7268cat confdefs.h >>conftest.$ac_ext
7269cat >>conftest.$ac_ext <<_ACEOF
7270/* end confdefs.h.  */
7271#ifdef __STDC__
7272# include <limits.h>
7273#else
7274# include <assert.h>
7275#endif
7276                     Syntax error
7277_ACEOF
7278if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7279  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7280  ac_status=$?
7281  grep -v '^ *+' conftest.er1 >conftest.err
7282  rm -f conftest.er1
7283  cat conftest.err >&5
7284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7285  (exit $ac_status); } >/dev/null; then
7286  if test -s conftest.err; then
7287    ac_cpp_err=$ac_cxx_preproc_warn_flag
7288    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7289  else
7290    ac_cpp_err=
7291  fi
7292else
7293  ac_cpp_err=yes
7294fi
7295if test -z "$ac_cpp_err"; then
7296  :
7297else
7298  echo "$as_me: failed program was:" >&5
7299sed 's/^/| /' conftest.$ac_ext >&5
7300
7301  # Broken: fails on valid input.
7302continue
7303fi
7304rm -f conftest.err conftest.$ac_ext
7305
7306  # OK, works on sane cases.  Now check whether non-existent headers
7307  # can be detected and how.
7308  cat >conftest.$ac_ext <<_ACEOF
7309/* confdefs.h.  */
7310_ACEOF
7311cat confdefs.h >>conftest.$ac_ext
7312cat >>conftest.$ac_ext <<_ACEOF
7313/* end confdefs.h.  */
7314#include <ac_nonexistent.h>
7315_ACEOF
7316if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7317  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7318  ac_status=$?
7319  grep -v '^ *+' conftest.er1 >conftest.err
7320  rm -f conftest.er1
7321  cat conftest.err >&5
7322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7323  (exit $ac_status); } >/dev/null; then
7324  if test -s conftest.err; then
7325    ac_cpp_err=$ac_cxx_preproc_warn_flag
7326    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7327  else
7328    ac_cpp_err=
7329  fi
7330else
7331  ac_cpp_err=yes
7332fi
7333if test -z "$ac_cpp_err"; then
7334  # Broken: success on invalid input.
7335continue
7336else
7337  echo "$as_me: failed program was:" >&5
7338sed 's/^/| /' conftest.$ac_ext >&5
7339
7340  # Passes both tests.
7341ac_preproc_ok=:
7342break
7343fi
7344rm -f conftest.err conftest.$ac_ext
7345
7346done
7347# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7348rm -f conftest.err conftest.$ac_ext
7349if $ac_preproc_ok; then
7350  break
7351fi
7352
7353    done
7354    ac_cv_prog_CXXCPP=$CXXCPP
7355
7356fi
7357  CXXCPP=$ac_cv_prog_CXXCPP
7358else
7359  ac_cv_prog_CXXCPP=$CXXCPP
7360fi
7361echo "$as_me:$LINENO: result: $CXXCPP" >&5
7362echo "${ECHO_T}$CXXCPP" >&6
7363ac_preproc_ok=false
7364for ac_cxx_preproc_warn_flag in '' yes
7365do
7366  # Use a header file that comes with gcc, so configuring glibc
7367  # with a fresh cross-compiler works.
7368  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7369  # <limits.h> exists even on freestanding compilers.
7370  # On the NeXT, cc -E runs the code through the compiler's parser,
7371  # not just through cpp. "Syntax error" is here to catch this case.
7372  cat >conftest.$ac_ext <<_ACEOF
7373/* confdefs.h.  */
7374_ACEOF
7375cat confdefs.h >>conftest.$ac_ext
7376cat >>conftest.$ac_ext <<_ACEOF
7377/* end confdefs.h.  */
7378#ifdef __STDC__
7379# include <limits.h>
7380#else
7381# include <assert.h>
7382#endif
7383                     Syntax error
7384_ACEOF
7385if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7386  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7387  ac_status=$?
7388  grep -v '^ *+' conftest.er1 >conftest.err
7389  rm -f conftest.er1
7390  cat conftest.err >&5
7391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7392  (exit $ac_status); } >/dev/null; then
7393  if test -s conftest.err; then
7394    ac_cpp_err=$ac_cxx_preproc_warn_flag
7395    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7396  else
7397    ac_cpp_err=
7398  fi
7399else
7400  ac_cpp_err=yes
7401fi
7402if test -z "$ac_cpp_err"; then
7403  :
7404else
7405  echo "$as_me: failed program was:" >&5
7406sed 's/^/| /' conftest.$ac_ext >&5
7407
7408  # Broken: fails on valid input.
7409continue
7410fi
7411rm -f conftest.err conftest.$ac_ext
7412
7413  # OK, works on sane cases.  Now check whether non-existent headers
7414  # can be detected and how.
7415  cat >conftest.$ac_ext <<_ACEOF
7416/* confdefs.h.  */
7417_ACEOF
7418cat confdefs.h >>conftest.$ac_ext
7419cat >>conftest.$ac_ext <<_ACEOF
7420/* end confdefs.h.  */
7421#include <ac_nonexistent.h>
7422_ACEOF
7423if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7424  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7425  ac_status=$?
7426  grep -v '^ *+' conftest.er1 >conftest.err
7427  rm -f conftest.er1
7428  cat conftest.err >&5
7429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7430  (exit $ac_status); } >/dev/null; then
7431  if test -s conftest.err; then
7432    ac_cpp_err=$ac_cxx_preproc_warn_flag
7433    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7434  else
7435    ac_cpp_err=
7436  fi
7437else
7438  ac_cpp_err=yes
7439fi
7440if test -z "$ac_cpp_err"; then
7441  # Broken: success on invalid input.
7442continue
7443else
7444  echo "$as_me: failed program was:" >&5
7445sed 's/^/| /' conftest.$ac_ext >&5
7446
7447  # Passes both tests.
7448ac_preproc_ok=:
7449break
7450fi
7451rm -f conftest.err conftest.$ac_ext
7452
7453done
7454# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7455rm -f conftest.err conftest.$ac_ext
7456if $ac_preproc_ok; then
7457  :
7458else
7459  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7460See \`config.log' for more details." >&5
7461echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7462See \`config.log' for more details." >&2;}
7463   { (exit 1); exit 1; }; }
7464fi
7465
7466ac_ext=cc
7467ac_cpp='$CXXCPP $CPPFLAGS'
7468ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7469ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7470ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7471
7472fi
7473
7474ac_ext=f
7475ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7476ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7477ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7478if test -n "$ac_tool_prefix"; then
7479  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7480  do
7481    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7482set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7483echo "$as_me:$LINENO: checking for $ac_word" >&5
7484echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7485if test "${ac_cv_prog_F77+set}" = set; then
7486  echo $ECHO_N "(cached) $ECHO_C" >&6
7487else
7488  if test -n "$F77"; then
7489  ac_cv_prog_F77="$F77" # Let the user override the test.
7490else
7491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7492for as_dir in $PATH
7493do
7494  IFS=$as_save_IFS
7495  test -z "$as_dir" && as_dir=.
7496  for ac_exec_ext in '' $ac_executable_extensions; do
7497  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7498    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7499    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7500    break 2
7501  fi
7502done
7503done
7504
7505fi
7506fi
7507F77=$ac_cv_prog_F77
7508if test -n "$F77"; then
7509  echo "$as_me:$LINENO: result: $F77" >&5
7510echo "${ECHO_T}$F77" >&6
7511else
7512  echo "$as_me:$LINENO: result: no" >&5
7513echo "${ECHO_T}no" >&6
7514fi
7515
7516    test -n "$F77" && break
7517  done
7518fi
7519if test -z "$F77"; then
7520  ac_ct_F77=$F77
7521  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7522do
7523  # Extract the first word of "$ac_prog", so it can be a program name with args.
7524set dummy $ac_prog; ac_word=$2
7525echo "$as_me:$LINENO: checking for $ac_word" >&5
7526echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7527if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7528  echo $ECHO_N "(cached) $ECHO_C" >&6
7529else
7530  if test -n "$ac_ct_F77"; then
7531  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7532else
7533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7534for as_dir in $PATH
7535do
7536  IFS=$as_save_IFS
7537  test -z "$as_dir" && as_dir=.
7538  for ac_exec_ext in '' $ac_executable_extensions; do
7539  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7540    ac_cv_prog_ac_ct_F77="$ac_prog"
7541    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7542    break 2
7543  fi
7544done
7545done
7546
7547fi
7548fi
7549ac_ct_F77=$ac_cv_prog_ac_ct_F77
7550if test -n "$ac_ct_F77"; then
7551  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7552echo "${ECHO_T}$ac_ct_F77" >&6
7553else
7554  echo "$as_me:$LINENO: result: no" >&5
7555echo "${ECHO_T}no" >&6
7556fi
7557
7558  test -n "$ac_ct_F77" && break
7559done
7560
7561  F77=$ac_ct_F77
7562fi
7563
7564
7565# Provide some information about the compiler.
7566echo "$as_me:7566:" \
7567     "checking for Fortran 77 compiler version" >&5
7568ac_compiler=`set X $ac_compile; echo $2`
7569{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7570  (eval $ac_compiler --version </dev/null >&5) 2>&5
7571  ac_status=$?
7572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7573  (exit $ac_status); }
7574{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7575  (eval $ac_compiler -v </dev/null >&5) 2>&5
7576  ac_status=$?
7577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7578  (exit $ac_status); }
7579{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7580  (eval $ac_compiler -V </dev/null >&5) 2>&5
7581  ac_status=$?
7582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7583  (exit $ac_status); }
7584rm -f a.out
7585
7586# If we don't use `.F' as extension, the preprocessor is not run on the
7587# input file.  (Note that this only needs to work for GNU compilers.)
7588ac_save_ext=$ac_ext
7589ac_ext=F
7590echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7591echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
7592if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7593  echo $ECHO_N "(cached) $ECHO_C" >&6
7594else
7595  cat >conftest.$ac_ext <<_ACEOF
7596      program main
7597#ifndef __GNUC__
7598       choke me
7599#endif
7600
7601      end
7602_ACEOF
7603rm -f conftest.$ac_objext
7604if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7605  (eval $ac_compile) 2>conftest.er1
7606  ac_status=$?
7607  grep -v '^ *+' conftest.er1 >conftest.err
7608  rm -f conftest.er1
7609  cat conftest.err >&5
7610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7611  (exit $ac_status); } &&
7612         { ac_try='test -z "$ac_f77_werror_flag"
7613                         || test ! -s conftest.err'
7614  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7615  (eval $ac_try) 2>&5
7616  ac_status=$?
7617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7618  (exit $ac_status); }; } &&
7619         { ac_try='test -s conftest.$ac_objext'
7620  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7621  (eval $ac_try) 2>&5
7622  ac_status=$?
7623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624  (exit $ac_status); }; }; then
7625  ac_compiler_gnu=yes
7626else
7627  echo "$as_me: failed program was:" >&5
7628sed 's/^/| /' conftest.$ac_ext >&5
7629
7630ac_compiler_gnu=no
7631fi
7632rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7633ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7634
7635fi
7636echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7637echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7638ac_ext=$ac_save_ext
7639ac_test_FFLAGS=${FFLAGS+set}
7640ac_save_FFLAGS=$FFLAGS
7641FFLAGS=
7642echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7643echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7644if test "${ac_cv_prog_f77_g+set}" = set; then
7645  echo $ECHO_N "(cached) $ECHO_C" >&6
7646else
7647  FFLAGS=-g
7648cat >conftest.$ac_ext <<_ACEOF
7649      program main
7650
7651      end
7652_ACEOF
7653rm -f conftest.$ac_objext
7654if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7655  (eval $ac_compile) 2>conftest.er1
7656  ac_status=$?
7657  grep -v '^ *+' conftest.er1 >conftest.err
7658  rm -f conftest.er1
7659  cat conftest.err >&5
7660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7661  (exit $ac_status); } &&
7662         { ac_try='test -z "$ac_f77_werror_flag"
7663                         || test ! -s conftest.err'
7664  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7665  (eval $ac_try) 2>&5
7666  ac_status=$?
7667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668  (exit $ac_status); }; } &&
7669         { ac_try='test -s conftest.$ac_objext'
7670  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7671  (eval $ac_try) 2>&5
7672  ac_status=$?
7673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7674  (exit $ac_status); }; }; then
7675  ac_cv_prog_f77_g=yes
7676else
7677  echo "$as_me: failed program was:" >&5
7678sed 's/^/| /' conftest.$ac_ext >&5
7679
7680ac_cv_prog_f77_g=no
7681fi
7682rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7683
7684fi
7685echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7686echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7687if test "$ac_test_FFLAGS" = set; then
7688  FFLAGS=$ac_save_FFLAGS
7689elif test $ac_cv_prog_f77_g = yes; then
7690  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7691    FFLAGS="-g -O2"
7692  else
7693    FFLAGS="-g"
7694  fi
7695else
7696  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7697    FFLAGS="-O2"
7698  else
7699    FFLAGS=
7700  fi
7701fi
7702
7703G77=`test $ac_compiler_gnu = yes && echo yes`
7704ac_ext=c
7705ac_cpp='$CPP $CPPFLAGS'
7706ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7707ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7708ac_compiler_gnu=$ac_cv_c_compiler_gnu
7709
7710
7711
7712# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7713
7714# find the maximum length of command line arguments
7715echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7716echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7717if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7718  echo $ECHO_N "(cached) $ECHO_C" >&6
7719else
7720    i=0
7721  teststring="ABCD"
7722
7723  case $build_os in
7724  msdosdjgpp*)
7725    # On DJGPP, this test can blow up pretty badly due to problems in libc
7726    # (any single argument exceeding 2000 bytes causes a buffer overrun
7727    # during glob expansion).  Even if it were fixed, the result of this
7728    # check would be larger than it should be.
7729    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7730    ;;
7731
7732  gnu*)
7733    # Under GNU Hurd, this test is not required because there is
7734    # no limit to the length of command line arguments.
7735    # Libtool will interpret -1 as no limit whatsoever
7736    lt_cv_sys_max_cmd_len=-1;
7737    ;;
7738
7739  cygwin* | mingw*)
7740    # On Win9x/ME, this test blows up -- it succeeds, but takes
7741    # about 5 minutes as the teststring grows exponentially.
7742    # Worse, since 9x/ME are not pre-emptively multitasking,
7743    # you end up with a "frozen" computer, even though with patience
7744    # the test eventually succeeds (with a max line length of 256k).
7745    # Instead, let's just punt: use the minimum linelength reported by
7746    # all of the supported platforms: 8192 (on NT/2K/XP).
7747    lt_cv_sys_max_cmd_len=8192;
7748    ;;
7749
7750  amigaos*)
7751    # On AmigaOS with pdksh, this test takes hours, literally.
7752    # So we just punt and use a minimum line length of 8192.
7753    lt_cv_sys_max_cmd_len=8192;
7754    ;;
7755
7756  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7757    # This has been around since 386BSD, at least.  Likely further.
7758    if test -x /sbin/sysctl; then
7759      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7760    elif test -x /usr/sbin/sysctl; then
7761      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7762    else
7763      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7764    fi
7765    # And add a safety zone
7766    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7767    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7768    ;;
7769
7770  interix*)
7771    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7772    lt_cv_sys_max_cmd_len=196608
7773    ;;
7774
7775  osf*)
7776    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7777    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7778    # nice to cause kernel panics so lets avoid the loop below.
7779    # First set a reasonable default.
7780    lt_cv_sys_max_cmd_len=16384
7781    #
7782    if test -x /sbin/sysconfig; then
7783      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7784        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7785      esac
7786    fi
7787    ;;
7788  sco3.2v5*)
7789    lt_cv_sys_max_cmd_len=102400
7790    ;;
7791  sysv5* | sco5v6* | sysv4.2uw2*)
7792    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7793    if test -n "$kargmax"; then
7794      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7795    else
7796      lt_cv_sys_max_cmd_len=32768
7797    fi
7798    ;;
7799  *)
7800    # If test is not a shell built-in, we'll probably end up computing a
7801    # maximum length that is only half of the actual maximum length, but
7802    # we can't tell.
7803    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7804    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7805               = "XX$teststring") >/dev/null 2>&1 &&
7806            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7807            lt_cv_sys_max_cmd_len=$new_result &&
7808            test $i != 17 # 1/2 MB should be enough
7809    do
7810      i=`expr $i + 1`
7811      teststring=$teststring$teststring
7812    done
7813    teststring=
7814    # Add a significant safety factor because C++ compilers can tack on massive
7815    # amounts of additional arguments before passing them to the linker.
7816    # It appears as though 1/2 is a usable value.
7817    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7818    ;;
7819  esac
7820
7821fi
7822
7823if test -n $lt_cv_sys_max_cmd_len ; then
7824  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7825echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7826else
7827  echo "$as_me:$LINENO: result: none" >&5
7828echo "${ECHO_T}none" >&6
7829fi
7830
7831
7832
7833
7834# Check for command to grab the raw symbol name followed by C symbol from nm.
7835echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7836echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7837if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7838  echo $ECHO_N "(cached) $ECHO_C" >&6
7839else
7840
7841# These are sane defaults that work on at least a few old systems.
7842# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7843
7844# Character class describing NM global symbol codes.
7845symcode='[BCDEGRST]'
7846
7847# Regexp to match symbols that can be accessed directly from C.
7848sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7849
7850# Transform an extracted symbol line into a proper C declaration
7851lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7852
7853# Transform an extracted symbol line into symbol name and symbol address
7854lt_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'"
7855
7856# Define system-specific variables.
7857case $host_os in
7858aix*)
7859  symcode='[BCDT]'
7860  ;;
7861cygwin* | mingw* | pw32*)
7862  symcode='[ABCDGISTW]'
7863  ;;
7864hpux*) # Its linker distinguishes data from code symbols
7865  if test "$host_cpu" = ia64; then
7866    symcode='[ABCDEGRST]'
7867  fi
7868  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7869  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'"
7870  ;;
7871linux*)
7872  if test "$host_cpu" = ia64; then
7873    symcode='[ABCDGIRSTW]'
7874    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7875    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'"
7876  fi
7877  ;;
7878irix* | nonstopux*)
7879  symcode='[BCDEGRST]'
7880  ;;
7881osf*)
7882  symcode='[BCDEGQRST]'
7883  ;;
7884solaris*)
7885  symcode='[BDRT]'
7886  ;;
7887sco3.2v5*)
7888  symcode='[DT]'
7889  ;;
7890sysv4.2uw2*)
7891  symcode='[DT]'
7892  ;;
7893sysv5* | sco5v6* | unixware* | OpenUNIX*)
7894  symcode='[ABDT]'
7895  ;;
7896sysv4)
7897  symcode='[DFNSTU]'
7898  ;;
7899esac
7900
7901# Handle CRLF in mingw tool chain
7902opt_cr=
7903case $build_os in
7904mingw*)
7905  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7906  ;;
7907esac
7908
7909# If we're using GNU nm, then use its standard symbol codes.
7910case `$NM -V 2>&1` in
7911*GNU* | *'with BFD'*)
7912  symcode='[ABCDGIRSTW]' ;;
7913esac
7914
7915# Try without a prefix undercore, then with it.
7916for ac_symprfx in "" "_"; do
7917
7918  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7919  symxfrm="\\1 $ac_symprfx\\2 \\2"
7920
7921  # Write the raw and C identifiers.
7922  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7923
7924  # Check to see that the pipe works correctly.
7925  pipe_works=no
7926
7927  rm -f conftest*
7928  cat > conftest.$ac_ext <<EOF
7929#ifdef __cplusplus
7930extern "C" {
7931#endif
7932char nm_test_var;
7933void nm_test_func(){}
7934#ifdef __cplusplus
7935}
7936#endif
7937int main(){nm_test_var='a';nm_test_func();return(0);}
7938EOF
7939
7940  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7941  (eval $ac_compile) 2>&5
7942  ac_status=$?
7943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7944  (exit $ac_status); }; then
7945    # Now try to grab the symbols.
7946    nlist=conftest.nm
7947    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7948  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7949  ac_status=$?
7950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951  (exit $ac_status); } && test -s "$nlist"; then
7952      # Try sorting and uniquifying the output.
7953      if sort "$nlist" | uniq > "$nlist"T; then
7954        mv -f "$nlist"T "$nlist"
7955      else
7956        rm -f "$nlist"T
7957      fi
7958
7959      # Make sure that we snagged all the symbols we need.
7960      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7961        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7962          cat <<EOF > conftest.$ac_ext
7963#ifdef __cplusplus
7964extern "C" {
7965#endif
7966
7967EOF
7968          # Now generate the symbol file.
7969          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7970
7971          cat <<EOF >> conftest.$ac_ext
7972#if defined (__STDC__) && __STDC__
7973# define lt_ptr_t void *
7974#else
7975# define lt_ptr_t char *
7976# define const
7977#endif
7978
7979/* The mapping between symbol names and symbols. */
7980const struct {
7981  const char *name;
7982  lt_ptr_t address;
7983}
7984lt_preloaded_symbols[] =
7985{
7986EOF
7987          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7988          cat <<\EOF >> conftest.$ac_ext
7989  {0, (lt_ptr_t) 0}
7990};
7991
7992#ifdef __cplusplus
7993}
7994#endif
7995EOF
7996          # Now try linking the two files.
7997          mv conftest.$ac_objext conftstm.$ac_objext
7998          lt_save_LIBS="$LIBS"
7999          lt_save_CFLAGS="$CFLAGS"
8000          LIBS="conftstm.$ac_objext"
8001          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8002          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8003  (eval $ac_link) 2>&5
8004  ac_status=$?
8005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006  (exit $ac_status); } && test -s conftest${ac_exeext}; then
8007            pipe_works=yes
8008          fi
8009          LIBS="$lt_save_LIBS"
8010          CFLAGS="$lt_save_CFLAGS"
8011        else
8012          echo "cannot find nm_test_func in $nlist" >&5
8013        fi
8014      else
8015        echo "cannot find nm_test_var in $nlist" >&5
8016      fi
8017    else
8018      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8019    fi
8020  else
8021    echo "$progname: failed program was:" >&5
8022    cat conftest.$ac_ext >&5
8023  fi
8024  rm -f conftest* conftst*
8025
8026  # Do not use the global_symbol_pipe unless it works.
8027  if test "$pipe_works" = yes; then
8028    break
8029  else
8030    lt_cv_sys_global_symbol_pipe=
8031  fi
8032done
8033
8034fi
8035
8036if test -z "$lt_cv_sys_global_symbol_pipe"; then
8037  lt_cv_sys_global_symbol_to_cdecl=
8038fi
8039if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8040  echo "$as_me:$LINENO: result: failed" >&5
8041echo "${ECHO_T}failed" >&6
8042else
8043  echo "$as_me:$LINENO: result: ok" >&5
8044echo "${ECHO_T}ok" >&6
8045fi
8046
8047echo "$as_me:$LINENO: checking for objdir" >&5
8048echo $ECHO_N "checking for objdir... $ECHO_C" >&6
8049if test "${lt_cv_objdir+set}" = set; then
8050  echo $ECHO_N "(cached) $ECHO_C" >&6
8051else
8052  rm -f .libs 2>/dev/null
8053mkdir .libs 2>/dev/null
8054if test -d .libs; then
8055  lt_cv_objdir=.libs
8056else
8057  # MS-DOS does not allow filenames that begin with a dot.
8058  lt_cv_objdir=_libs
8059fi
8060rmdir .libs 2>/dev/null
8061fi
8062echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8063echo "${ECHO_T}$lt_cv_objdir" >&6
8064objdir=$lt_cv_objdir
8065
8066
8067
8068
8069
8070case $host_os in
8071aix3*)
8072  # AIX sometimes has problems with the GCC collect2 program.  For some
8073  # reason, if we set the COLLECT_NAMES environment variable, the problems
8074  # vanish in a puff of smoke.
8075  if test "X${COLLECT_NAMES+set}" != Xset; then
8076    COLLECT_NAMES=
8077    export COLLECT_NAMES
8078  fi
8079  ;;
8080esac
8081
8082# Sed substitution that helps us do robust quoting.  It backslashifies
8083# metacharacters that are still active within double-quoted strings.
8084Xsed='sed -e 1s/^X//'
8085sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
8086
8087# Same as above, but do not quote variable references.
8088double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
8089
8090# Sed substitution to delay expansion of an escaped shell variable in a
8091# double_quote_subst'ed string.
8092delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8093
8094# Sed substitution to avoid accidental globbing in evaled expressions
8095no_glob_subst='s/\*/\\\*/g'
8096
8097# Constants:
8098rm="rm -f"
8099
8100# Global variables:
8101default_ofile=libtool
8102can_build_shared=yes
8103
8104# All known linkers require a `.a' archive for static linking (except MSVC,
8105# which needs '.lib').
8106libext=a
8107ltmain="$ac_aux_dir/ltmain.sh"
8108ofile="$default_ofile"
8109with_gnu_ld="$lt_cv_prog_gnu_ld"
8110
8111if test -n "$ac_tool_prefix"; then
8112  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8113set dummy ${ac_tool_prefix}ar; ac_word=$2
8114echo "$as_me:$LINENO: checking for $ac_word" >&5
8115echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8116if test "${ac_cv_prog_AR+set}" = set; then
8117  echo $ECHO_N "(cached) $ECHO_C" >&6
8118else
8119  if test -n "$AR"; then
8120  ac_cv_prog_AR="$AR" # Let the user override the test.
8121else
8122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8123for as_dir in $PATH
8124do
8125  IFS=$as_save_IFS
8126  test -z "$as_dir" && as_dir=.
8127  for ac_exec_ext in '' $ac_executable_extensions; do
8128  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8129    ac_cv_prog_AR="${ac_tool_prefix}ar"
8130    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8131    break 2
8132  fi
8133done
8134done
8135
8136fi
8137fi
8138AR=$ac_cv_prog_AR
8139if test -n "$AR"; then
8140  echo "$as_me:$LINENO: result: $AR" >&5
8141echo "${ECHO_T}$AR" >&6
8142else
8143  echo "$as_me:$LINENO: result: no" >&5
8144echo "${ECHO_T}no" >&6
8145fi
8146
8147fi
8148if test -z "$ac_cv_prog_AR"; then
8149  ac_ct_AR=$AR
8150  # Extract the first word of "ar", so it can be a program name with args.
8151set dummy ar; ac_word=$2
8152echo "$as_me:$LINENO: checking for $ac_word" >&5
8153echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8154if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8155  echo $ECHO_N "(cached) $ECHO_C" >&6
8156else
8157  if test -n "$ac_ct_AR"; then
8158  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8159else
8160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8161for as_dir in $PATH
8162do
8163  IFS=$as_save_IFS
8164  test -z "$as_dir" && as_dir=.
8165  for ac_exec_ext in '' $ac_executable_extensions; do
8166  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8167    ac_cv_prog_ac_ct_AR="ar"
8168    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8169    break 2
8170  fi
8171done
8172done
8173
8174  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
8175fi
8176fi
8177ac_ct_AR=$ac_cv_prog_ac_ct_AR
8178if test -n "$ac_ct_AR"; then
8179  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8180echo "${ECHO_T}$ac_ct_AR" >&6
8181else
8182  echo "$as_me:$LINENO: result: no" >&5
8183echo "${ECHO_T}no" >&6
8184fi
8185
8186  AR=$ac_ct_AR
8187else
8188  AR="$ac_cv_prog_AR"
8189fi
8190
8191if test -n "$ac_tool_prefix"; then
8192  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8193set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8194echo "$as_me:$LINENO: checking for $ac_word" >&5
8195echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8196if test "${ac_cv_prog_RANLIB+set}" = set; then
8197  echo $ECHO_N "(cached) $ECHO_C" >&6
8198else
8199  if test -n "$RANLIB"; then
8200  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8201else
8202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8203for as_dir in $PATH
8204do
8205  IFS=$as_save_IFS
8206  test -z "$as_dir" && as_dir=.
8207  for ac_exec_ext in '' $ac_executable_extensions; do
8208  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8209    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8210    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8211    break 2
8212  fi
8213done
8214done
8215
8216fi
8217fi
8218RANLIB=$ac_cv_prog_RANLIB
8219if test -n "$RANLIB"; then
8220  echo "$as_me:$LINENO: result: $RANLIB" >&5
8221echo "${ECHO_T}$RANLIB" >&6
8222else
8223  echo "$as_me:$LINENO: result: no" >&5
8224echo "${ECHO_T}no" >&6
8225fi
8226
8227fi
8228if test -z "$ac_cv_prog_RANLIB"; then
8229  ac_ct_RANLIB=$RANLIB
8230  # Extract the first word of "ranlib", so it can be a program name with args.
8231set dummy ranlib; ac_word=$2
8232echo "$as_me:$LINENO: checking for $ac_word" >&5
8233echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8234if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8235  echo $ECHO_N "(cached) $ECHO_C" >&6
8236else
8237  if test -n "$ac_ct_RANLIB"; then
8238  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8239else
8240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8241for as_dir in $PATH
8242do
8243  IFS=$as_save_IFS
8244  test -z "$as_dir" && as_dir=.
8245  for ac_exec_ext in '' $ac_executable_extensions; do
8246  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8247    ac_cv_prog_ac_ct_RANLIB="ranlib"
8248    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8249    break 2
8250  fi
8251done
8252done
8253
8254  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8255fi
8256fi
8257ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8258if test -n "$ac_ct_RANLIB"; then
8259  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8260echo "${ECHO_T}$ac_ct_RANLIB" >&6
8261else
8262  echo "$as_me:$LINENO: result: no" >&5
8263echo "${ECHO_T}no" >&6
8264fi
8265
8266  RANLIB=$ac_ct_RANLIB
8267else
8268  RANLIB="$ac_cv_prog_RANLIB"
8269fi
8270
8271if test -n "$ac_tool_prefix"; then
8272  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8273set dummy ${ac_tool_prefix}strip; ac_word=$2
8274echo "$as_me:$LINENO: checking for $ac_word" >&5
8275echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8276if test "${ac_cv_prog_STRIP+set}" = set; then
8277  echo $ECHO_N "(cached) $ECHO_C" >&6
8278else
8279  if test -n "$STRIP"; then
8280  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8281else
8282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8283for as_dir in $PATH
8284do
8285  IFS=$as_save_IFS
8286  test -z "$as_dir" && as_dir=.
8287  for ac_exec_ext in '' $ac_executable_extensions; do
8288  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8289    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8290    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8291    break 2
8292  fi
8293done
8294done
8295
8296fi
8297fi
8298STRIP=$ac_cv_prog_STRIP
8299if test -n "$STRIP"; then
8300  echo "$as_me:$LINENO: result: $STRIP" >&5
8301echo "${ECHO_T}$STRIP" >&6
8302else
8303  echo "$as_me:$LINENO: result: no" >&5
8304echo "${ECHO_T}no" >&6
8305fi
8306
8307fi
8308if test -z "$ac_cv_prog_STRIP"; then
8309  ac_ct_STRIP=$STRIP
8310  # Extract the first word of "strip", so it can be a program name with args.
8311set dummy strip; ac_word=$2
8312echo "$as_me:$LINENO: checking for $ac_word" >&5
8313echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8314if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8315  echo $ECHO_N "(cached) $ECHO_C" >&6
8316else
8317  if test -n "$ac_ct_STRIP"; then
8318  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8319else
8320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8321for as_dir in $PATH
8322do
8323  IFS=$as_save_IFS
8324  test -z "$as_dir" && as_dir=.
8325  for ac_exec_ext in '' $ac_executable_extensions; do
8326  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8327    ac_cv_prog_ac_ct_STRIP="strip"
8328    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8329    break 2
8330  fi
8331done
8332done
8333
8334  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8335fi
8336fi
8337ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8338if test -n "$ac_ct_STRIP"; then
8339  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8340echo "${ECHO_T}$ac_ct_STRIP" >&6
8341else
8342  echo "$as_me:$LINENO: result: no" >&5
8343echo "${ECHO_T}no" >&6
8344fi
8345
8346  STRIP=$ac_ct_STRIP
8347else
8348  STRIP="$ac_cv_prog_STRIP"
8349fi
8350
8351
8352old_CC="$CC"
8353old_CFLAGS="$CFLAGS"
8354
8355# Set sane defaults for various variables
8356test -z "$AR" && AR=ar
8357test -z "$AR_FLAGS" && AR_FLAGS=cru
8358test -z "$AS" && AS=as
8359test -z "$CC" && CC=cc
8360test -z "$LTCC" && LTCC=$CC
8361test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8362test -z "$DLLTOOL" && DLLTOOL=dlltool
8363test -z "$LD" && LD=ld
8364test -z "$LN_S" && LN_S="ln -s"
8365test -z "$MAGIC_CMD" && MAGIC_CMD=file
8366test -z "$NM" && NM=nm
8367test -z "$SED" && SED=sed
8368test -z "$OBJDUMP" && OBJDUMP=objdump
8369test -z "$RANLIB" && RANLIB=:
8370test -z "$STRIP" && STRIP=:
8371test -z "$ac_objext" && ac_objext=o
8372
8373# Determine commands to create old-style static archives.
8374old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8375old_postinstall_cmds='chmod 644 $oldlib'
8376old_postuninstall_cmds=
8377
8378if test -n "$RANLIB"; then
8379  case $host_os in
8380  openbsd*)
8381    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8382    ;;
8383  *)
8384    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8385    ;;
8386  esac
8387  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8388fi
8389
8390for cc_temp in $compiler""; do
8391  case $cc_temp in
8392    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8393    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8394    \-*) ;;
8395    *) break;;
8396  esac
8397done
8398cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8399
8400
8401# Only perform the check for file, if the check method requires it
8402case $deplibs_check_method in
8403file_magic*)
8404  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8405    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8406echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8407if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8408  echo $ECHO_N "(cached) $ECHO_C" >&6
8409else
8410  case $MAGIC_CMD in
8411[\\/*] |  ?:[\\/]*)
8412  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8413  ;;
8414*)
8415  lt_save_MAGIC_CMD="$MAGIC_CMD"
8416  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8417  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8418  for ac_dir in $ac_dummy; do
8419    IFS="$lt_save_ifs"
8420    test -z "$ac_dir" && ac_dir=.
8421    if test -f $ac_dir/${ac_tool_prefix}file; then
8422      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8423      if test -n "$file_magic_test_file"; then
8424        case $deplibs_check_method in
8425        "file_magic "*)
8426          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8427          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8428          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8429            $EGREP "$file_magic_regex" > /dev/null; then
8430            :
8431          else
8432            cat <<EOF 1>&2
8433
8434*** Warning: the command libtool uses to detect shared libraries,
8435*** $file_magic_cmd, produces output that libtool cannot recognize.
8436*** The result is that libtool may fail to recognize shared libraries
8437*** as such.  This will affect the creation of libtool libraries that
8438*** depend on shared libraries, but programs linked with such libtool
8439*** libraries will work regardless of this problem.  Nevertheless, you
8440*** may want to report the problem to your system manager and/or to
8441*** bug-libtool@gnu.org
8442
8443EOF
8444          fi ;;
8445        esac
8446      fi
8447      break
8448    fi
8449  done
8450  IFS="$lt_save_ifs"
8451  MAGIC_CMD="$lt_save_MAGIC_CMD"
8452  ;;
8453esac
8454fi
8455
8456MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8457if test -n "$MAGIC_CMD"; then
8458  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8459echo "${ECHO_T}$MAGIC_CMD" >&6
8460else
8461  echo "$as_me:$LINENO: result: no" >&5
8462echo "${ECHO_T}no" >&6
8463fi
8464
8465if test -z "$lt_cv_path_MAGIC_CMD"; then
8466  if test -n "$ac_tool_prefix"; then
8467    echo "$as_me:$LINENO: checking for file" >&5
8468echo $ECHO_N "checking for file... $ECHO_C" >&6
8469if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8470  echo $ECHO_N "(cached) $ECHO_C" >&6
8471else
8472  case $MAGIC_CMD in
8473[\\/*] |  ?:[\\/]*)
8474  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8475  ;;
8476*)
8477  lt_save_MAGIC_CMD="$MAGIC_CMD"
8478  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8479  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8480  for ac_dir in $ac_dummy; do
8481    IFS="$lt_save_ifs"
8482    test -z "$ac_dir" && ac_dir=.
8483    if test -f $ac_dir/file; then
8484      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8485      if test -n "$file_magic_test_file"; then
8486        case $deplibs_check_method in
8487        "file_magic "*)
8488          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8489          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8490          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8491            $EGREP "$file_magic_regex" > /dev/null; then
8492            :
8493          else
8494            cat <<EOF 1>&2
8495
8496*** Warning: the command libtool uses to detect shared libraries,
8497*** $file_magic_cmd, produces output that libtool cannot recognize.
8498*** The result is that libtool may fail to recognize shared libraries
8499*** as such.  This will affect the creation of libtool libraries that
8500*** depend on shared libraries, but programs linked with such libtool
8501*** libraries will work regardless of this problem.  Nevertheless, you
8502*** may want to report the problem to your system manager and/or to
8503*** bug-libtool@gnu.org
8504
8505EOF
8506          fi ;;
8507        esac
8508      fi
8509      break
8510    fi
8511  done
8512  IFS="$lt_save_ifs"
8513  MAGIC_CMD="$lt_save_MAGIC_CMD"
8514  ;;
8515esac
8516fi
8517
8518MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8519if test -n "$MAGIC_CMD"; then
8520  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8521echo "${ECHO_T}$MAGIC_CMD" >&6
8522else
8523  echo "$as_me:$LINENO: result: no" >&5
8524echo "${ECHO_T}no" >&6
8525fi
8526
8527  else
8528    MAGIC_CMD=:
8529  fi
8530fi
8531
8532  fi
8533  ;;
8534esac
8535
8536enable_dlopen=no
8537enable_win32_dll=no
8538
8539# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8540if test "${enable_libtool_lock+set}" = set; then
8541  enableval="$enable_libtool_lock"
8542
8543fi;
8544test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8545
8546
8547# Check whether --with-pic or --without-pic was given.
8548if test "${with_pic+set}" = set; then
8549  withval="$with_pic"
8550  pic_mode="$withval"
8551else
8552  pic_mode=default
8553fi;
8554test -z "$pic_mode" && pic_mode=default
8555
8556# Use C for the default configuration in the libtool script
8557tagname=
8558lt_save_CC="$CC"
8559ac_ext=c
8560ac_cpp='$CPP $CPPFLAGS'
8561ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8562ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8563ac_compiler_gnu=$ac_cv_c_compiler_gnu
8564
8565
8566# Source file extension for C test sources.
8567ac_ext=c
8568
8569# Object file extension for compiled C test sources.
8570objext=o
8571objext=$objext
8572
8573# Code to be used in simple compile tests
8574lt_simple_compile_test_code="int some_variable = 0;\n"
8575
8576# Code to be used in simple link tests
8577lt_simple_link_test_code='int main(){return(0);}\n'
8578
8579
8580# If no C compiler was specified, use CC.
8581LTCC=${LTCC-"$CC"}
8582
8583# If no C compiler flags were specified, use CFLAGS.
8584LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8585
8586# Allow CC to be a program name with arguments.
8587compiler=$CC
8588
8589
8590# save warnings/boilerplate of simple test code
8591ac_outfile=conftest.$ac_objext
8592printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8593eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8594_lt_compiler_boilerplate=`cat conftest.err`
8595$rm conftest*
8596
8597ac_outfile=conftest.$ac_objext
8598printf "$lt_simple_link_test_code" >conftest.$ac_ext
8599eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8600_lt_linker_boilerplate=`cat conftest.err`
8601$rm conftest*
8602
8603
8604## CAVEAT EMPTOR:
8605## There is no encapsulation within the following macros, do not change
8606## the running order or otherwise move them around unless you know exactly
8607## what you are doing...
8608
8609lt_prog_compiler_no_builtin_flag=
8610
8611if test "$GCC" = yes; then
8612  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8613
8614
8615echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8616echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8617if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8618  echo $ECHO_N "(cached) $ECHO_C" >&6
8619else
8620  lt_cv_prog_compiler_rtti_exceptions=no
8621  ac_outfile=conftest.$ac_objext
8622   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8623   lt_compiler_flag="-fno-rtti -fno-exceptions"
8624   # Insert the option either (1) after the last *FLAGS variable, or
8625   # (2) before a word containing "conftest.", or (3) at the end.
8626   # Note that $ac_compile itself does not contain backslashes and begins
8627   # with a dollar sign (not a hyphen), so the echo should work correctly.
8628   # The option is referenced via a variable to avoid confusing sed.
8629   lt_compile=`echo "$ac_compile" | $SED \
8630   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8631   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8632   -e 's:$: $lt_compiler_flag:'`
8633   (eval echo "\"\$as_me:8633: $lt_compile\"" >&5)
8634   (eval "$lt_compile" 2>conftest.err)
8635   ac_status=$?
8636   cat conftest.err >&5
8637   echo "$as_me:8637: \$? = $ac_status" >&5
8638   if (exit $ac_status) && test -s "$ac_outfile"; then
8639     # The compiler can only warn and ignore the option if not recognized
8640     # So say no if there are warnings other than the usual output.
8641     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8642     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8643     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8644       lt_cv_prog_compiler_rtti_exceptions=yes
8645     fi
8646   fi
8647   $rm conftest*
8648
8649fi
8650echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8651echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8652
8653if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8654    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8655else
8656    :
8657fi
8658
8659fi
8660
8661lt_prog_compiler_wl=
8662lt_prog_compiler_pic=
8663lt_prog_compiler_static=
8664
8665echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8666echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8667
8668  if test "$GCC" = yes; then
8669    lt_prog_compiler_wl='-Wl,'
8670    lt_prog_compiler_static='-static'
8671
8672    case $host_os in
8673      aix*)
8674      # All AIX code is PIC.
8675      if test "$host_cpu" = ia64; then
8676        # AIX 5 now supports IA64 processor
8677        lt_prog_compiler_static='-Bstatic'
8678      fi
8679      ;;
8680
8681    amigaos*)
8682      # FIXME: we need at least 68020 code to build shared libraries, but
8683      # adding the `-m68020' flag to GCC prevents building anything better,
8684      # like `-m68040'.
8685      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8686      ;;
8687
8688    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8689      # PIC is the default for these OSes.
8690      ;;
8691
8692    mingw* | pw32* | os2*)
8693      # This hack is so that the source file can tell whether it is being
8694      # built for inclusion in a dll (and should export symbols for example).
8695      lt_prog_compiler_pic='-DDLL_EXPORT'
8696      ;;
8697
8698    darwin* | rhapsody*)
8699      # PIC is the default on this platform
8700      # Common symbols not allowed in MH_DYLIB files
8701      lt_prog_compiler_pic='-fno-common'
8702      ;;
8703
8704    interix3*)
8705      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8706      # Instead, we relocate shared libraries at runtime.
8707      ;;
8708
8709    msdosdjgpp*)
8710      # Just because we use GCC doesn't mean we suddenly get shared libraries
8711      # on systems that don't support them.
8712      lt_prog_compiler_can_build_shared=no
8713      enable_shared=no
8714      ;;
8715
8716    sysv4*MP*)
8717      if test -d /usr/nec; then
8718        lt_prog_compiler_pic=-Kconform_pic
8719      fi
8720      ;;
8721
8722    hpux*)
8723      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8724      # not for PA HP-UX.
8725      case $host_cpu in
8726      hppa*64*|ia64*)
8727        # +Z the default
8728        ;;
8729      *)
8730        lt_prog_compiler_pic='-fPIC'
8731        ;;
8732      esac
8733      ;;
8734
8735    *)
8736      lt_prog_compiler_pic='-fPIC'
8737      ;;
8738    esac
8739  else
8740    # PORTME Check for flag to pass linker flags through the system compiler.
8741    case $host_os in
8742    aix*)
8743      lt_prog_compiler_wl='-Wl,'
8744      if test "$host_cpu" = ia64; then
8745        # AIX 5 now supports IA64 processor
8746        lt_prog_compiler_static='-Bstatic'
8747      else
8748        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8749      fi
8750      ;;
8751      darwin*)
8752        # PIC is the default on this platform
8753        # Common symbols not allowed in MH_DYLIB files
8754       case $cc_basename in
8755         xlc*)
8756         lt_prog_compiler_pic='-qnocommon'
8757         lt_prog_compiler_wl='-Wl,'
8758         ;;
8759       esac
8760       ;;
8761
8762    mingw* | pw32* | os2*)
8763      # This hack is so that the source file can tell whether it is being
8764      # built for inclusion in a dll (and should export symbols for example).
8765      lt_prog_compiler_pic='-DDLL_EXPORT'
8766      ;;
8767
8768    hpux9* | hpux10* | hpux11*)
8769      lt_prog_compiler_wl='-Wl,'
8770      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8771      # not for PA HP-UX.
8772      case $host_cpu in
8773      hppa*64*|ia64*)
8774        # +Z the default
8775        ;;
8776      *)
8777        lt_prog_compiler_pic='+Z'
8778        ;;
8779      esac
8780      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8781      lt_prog_compiler_static='${wl}-a ${wl}archive'
8782      ;;
8783
8784    irix5* | irix6* | nonstopux*)
8785      lt_prog_compiler_wl='-Wl,'
8786      # PIC (with -KPIC) is the default.
8787      lt_prog_compiler_static='-non_shared'
8788      ;;
8789
8790    newsos6)
8791      lt_prog_compiler_pic='-KPIC'
8792      lt_prog_compiler_static='-Bstatic'
8793      ;;
8794
8795    linux*)
8796      case $cc_basename in
8797      icc* | ecc*)
8798        lt_prog_compiler_wl='-Wl,'
8799        lt_prog_compiler_pic='-KPIC'
8800        lt_prog_compiler_static='-static'
8801        ;;
8802      pgcc* | pgf77* | pgf90* | pgf95*)
8803        # Portland Group compilers (*not* the Pentium gcc compiler,
8804        # which looks to be a dead project)
8805        lt_prog_compiler_wl='-Wl,'
8806        lt_prog_compiler_pic='-fpic'
8807        lt_prog_compiler_static='-Bstatic'
8808        ;;
8809      ccc*)
8810        lt_prog_compiler_wl='-Wl,'
8811        # All Alpha code is PIC.
8812        lt_prog_compiler_static='-non_shared'
8813        ;;
8814      esac
8815      ;;
8816
8817    osf3* | osf4* | osf5*)
8818      lt_prog_compiler_wl='-Wl,'
8819      # All OSF/1 code is PIC.
8820      lt_prog_compiler_static='-non_shared'
8821      ;;
8822
8823    solaris*)
8824      lt_prog_compiler_pic='-KPIC'
8825      lt_prog_compiler_static='-Bstatic'
8826      case $cc_basename in
8827      f77* | f90* | f95*)
8828        lt_prog_compiler_wl='-Qoption ld ';;
8829      *)
8830        lt_prog_compiler_wl='-Wl,';;
8831      esac
8832      ;;
8833
8834    sunos4*)
8835      lt_prog_compiler_wl='-Qoption ld '
8836      lt_prog_compiler_pic='-PIC'
8837      lt_prog_compiler_static='-Bstatic'
8838      ;;
8839
8840    sysv4 | sysv4.2uw2* | sysv4.3*)
8841      lt_prog_compiler_wl='-Wl,'
8842      lt_prog_compiler_pic='-KPIC'
8843      lt_prog_compiler_static='-Bstatic'
8844      ;;
8845
8846    sysv4*MP*)
8847      if test -d /usr/nec ;then
8848        lt_prog_compiler_pic='-Kconform_pic'
8849        lt_prog_compiler_static='-Bstatic'
8850      fi
8851      ;;
8852
8853    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8854      lt_prog_compiler_wl='-Wl,'
8855      lt_prog_compiler_pic='-KPIC'
8856      lt_prog_compiler_static='-Bstatic'
8857      ;;
8858
8859    unicos*)
8860      lt_prog_compiler_wl='-Wl,'
8861      lt_prog_compiler_can_build_shared=no
8862      ;;
8863
8864    uts4*)
8865      lt_prog_compiler_pic='-pic'
8866      lt_prog_compiler_static='-Bstatic'
8867      ;;
8868
8869    *)
8870      lt_prog_compiler_can_build_shared=no
8871      ;;
8872    esac
8873  fi
8874
8875echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8876echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8877
8878#
8879# Check to make sure the PIC flag actually works.
8880#
8881if test -n "$lt_prog_compiler_pic"; then
8882
8883echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8884echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8885if test "${lt_prog_compiler_pic_works+set}" = set; then
8886  echo $ECHO_N "(cached) $ECHO_C" >&6
8887else
8888  lt_prog_compiler_pic_works=no
8889  ac_outfile=conftest.$ac_objext
8890   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8891   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8892   # Insert the option either (1) after the last *FLAGS variable, or
8893   # (2) before a word containing "conftest.", or (3) at the end.
8894   # Note that $ac_compile itself does not contain backslashes and begins
8895   # with a dollar sign (not a hyphen), so the echo should work correctly.
8896   # The option is referenced via a variable to avoid confusing sed.
8897   lt_compile=`echo "$ac_compile" | $SED \
8898   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8899   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8900   -e 's:$: $lt_compiler_flag:'`
8901   (eval echo "\"\$as_me:8901: $lt_compile\"" >&5)
8902   (eval "$lt_compile" 2>conftest.err)
8903   ac_status=$?
8904   cat conftest.err >&5
8905   echo "$as_me:8905: \$? = $ac_status" >&5
8906   if (exit $ac_status) && test -s "$ac_outfile"; then
8907     # The compiler can only warn and ignore the option if not recognized
8908     # So say no if there are warnings other than the usual output.
8909     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8910     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8911     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8912       lt_prog_compiler_pic_works=yes
8913     fi
8914   fi
8915   $rm conftest*
8916
8917fi
8918echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8919echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8920
8921if test x"$lt_prog_compiler_pic_works" = xyes; then
8922    case $lt_prog_compiler_pic in
8923     "" | " "*) ;;
8924     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8925     esac
8926else
8927    lt_prog_compiler_pic=
8928     lt_prog_compiler_can_build_shared=no
8929fi
8930
8931fi
8932case $host_os in
8933  # For platforms which do not support PIC, -DPIC is meaningless:
8934  *djgpp*)
8935    lt_prog_compiler_pic=
8936    ;;
8937  *)
8938    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8939    ;;
8940esac
8941
8942#
8943# Check to make sure the static flag actually works.
8944#
8945wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8946echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8947echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8948if test "${lt_prog_compiler_static_works+set}" = set; then
8949  echo $ECHO_N "(cached) $ECHO_C" >&6
8950else
8951  lt_prog_compiler_static_works=no
8952   save_LDFLAGS="$LDFLAGS"
8953   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8954   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8955   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8956     # The linker can only warn and ignore the option if not recognized
8957     # So say no if there are warnings
8958     if test -s conftest.err; then
8959       # Append any errors to the config.log.
8960       cat conftest.err 1>&5
8961       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8962       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8963       if diff conftest.exp conftest.er2 >/dev/null; then
8964         lt_prog_compiler_static_works=yes
8965       fi
8966     else
8967       lt_prog_compiler_static_works=yes
8968     fi
8969   fi
8970   $rm conftest*
8971   LDFLAGS="$save_LDFLAGS"
8972
8973fi
8974echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8975echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8976
8977if test x"$lt_prog_compiler_static_works" = xyes; then
8978    :
8979else
8980    lt_prog_compiler_static=
8981fi
8982
8983
8984echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8985echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8986if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8987  echo $ECHO_N "(cached) $ECHO_C" >&6
8988else
8989  lt_cv_prog_compiler_c_o=no
8990   $rm -r conftest 2>/dev/null
8991   mkdir conftest
8992   cd conftest
8993   mkdir out
8994   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8995
8996   lt_compiler_flag="-o out/conftest2.$ac_objext"
8997   # Insert the option either (1) after the last *FLAGS variable, or
8998   # (2) before a word containing "conftest.", or (3) at the end.
8999   # Note that $ac_compile itself does not contain backslashes and begins
9000   # with a dollar sign (not a hyphen), so the echo should work correctly.
9001   lt_compile=`echo "$ac_compile" | $SED \
9002   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9003   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9004   -e 's:$: $lt_compiler_flag:'`
9005   (eval echo "\"\$as_me:9005: $lt_compile\"" >&5)
9006   (eval "$lt_compile" 2>out/conftest.err)
9007   ac_status=$?
9008   cat out/conftest.err >&5
9009   echo "$as_me:9009: \$? = $ac_status" >&5
9010   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9011   then
9012     # The compiler can only warn and ignore the option if not recognized
9013     # So say no if there are warnings
9014     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9015     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9016     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9017       lt_cv_prog_compiler_c_o=yes
9018     fi
9019   fi
9020   chmod u+w . 2>&5
9021   $rm conftest*
9022   # SGI C++ compiler will create directory out/ii_files/ for
9023   # template instantiation
9024   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
9025   $rm out/* && rmdir out
9026   cd ..
9027   rmdir conftest
9028   $rm conftest*
9029
9030fi
9031echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9032echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
9033
9034
9035hard_links="nottested"
9036if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9037  # do not overwrite the value of need_locks provided by the user
9038  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9039echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
9040  hard_links=yes
9041  $rm conftest*
9042  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9043  touch conftest.a
9044  ln conftest.a conftest.b 2>&5 || hard_links=no
9045  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9046  echo "$as_me:$LINENO: result: $hard_links" >&5
9047echo "${ECHO_T}$hard_links" >&6
9048  if test "$hard_links" = no; then
9049    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9050echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9051    need_locks=warn
9052  fi
9053else
9054  need_locks=no
9055fi
9056
9057echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9058echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9059
9060  runpath_var=
9061  allow_undefined_flag=
9062  enable_shared_with_static_runtimes=no
9063  archive_cmds=
9064  archive_expsym_cmds=
9065  old_archive_From_new_cmds=
9066  old_archive_from_expsyms_cmds=
9067  export_dynamic_flag_spec=
9068  whole_archive_flag_spec=
9069  thread_safe_flag_spec=
9070  hardcode_libdir_flag_spec=
9071  hardcode_libdir_flag_spec_ld=
9072  hardcode_libdir_separator=
9073  hardcode_direct=no
9074  hardcode_minus_L=no
9075  hardcode_shlibpath_var=unsupported
9076  link_all_deplibs=unknown
9077  hardcode_automatic=no
9078  module_cmds=
9079  module_expsym_cmds=
9080  always_export_symbols=no
9081  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9082  # include_expsyms should be a list of space-separated symbols to be *always*
9083  # included in the symbol list
9084  include_expsyms=
9085  # exclude_expsyms can be an extended regexp of symbols to exclude
9086  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9087  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9088  # as well as any symbol that contains `d'.
9089  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9090  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9091  # platforms (ab)use it in PIC code, but their linkers get confused if
9092  # the symbol is explicitly referenced.  Since portable code cannot
9093  # rely on this symbol name, it's probably fine to never include it in
9094  # preloaded symbol tables.
9095  extract_expsyms_cmds=
9096  # Just being paranoid about ensuring that cc_basename is set.
9097  for cc_temp in $compiler""; do
9098  case $cc_temp in
9099    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9100    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9101    \-*) ;;
9102    *) break;;
9103  esac
9104done
9105cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9106
9107  case $host_os in
9108  cygwin* | mingw* | pw32*)
9109    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9110    # When not using gcc, we currently assume that we are using
9111    # Microsoft Visual C++.
9112    if test "$GCC" != yes; then
9113      with_gnu_ld=no
9114    fi
9115    ;;
9116  interix*)
9117    # we just hope/assume this is gcc and not c89 (= MSVC++)
9118    with_gnu_ld=yes
9119    ;;
9120  openbsd*)
9121    with_gnu_ld=no
9122    ;;
9123  esac
9124
9125  ld_shlibs=yes
9126  if test "$with_gnu_ld" = yes; then
9127    # If archive_cmds runs LD, not CC, wlarc should be empty
9128    wlarc='${wl}'
9129
9130    # Set some defaults for GNU ld with shared library support. These
9131    # are reset later if shared libraries are not supported. Putting them
9132    # here allows them to be overridden if necessary.
9133    runpath_var=LD_RUN_PATH
9134    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9135    export_dynamic_flag_spec='${wl}--export-dynamic'
9136    # ancient GNU ld didn't support --whole-archive et. al.
9137    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9138        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9139      else
9140        whole_archive_flag_spec=
9141    fi
9142    supports_anon_versioning=no
9143    case `$LD -v 2>/dev/null` in
9144      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9145      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9146      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9147      *\ 2.11.*) ;; # other 2.11 versions
9148      *) supports_anon_versioning=yes ;;
9149    esac
9150
9151    # See if GNU ld supports shared libraries.
9152    case $host_os in
9153    aix3* | aix4* | aix5*)
9154      # On AIX/PPC, the GNU linker is very broken
9155      if test "$host_cpu" != ia64; then
9156        ld_shlibs=no
9157        cat <<EOF 1>&2
9158
9159*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9160*** to be unable to reliably create shared libraries on AIX.
9161*** Therefore, libtool is disabling shared libraries support.  If you
9162*** really care for shared libraries, you may want to modify your PATH
9163*** so that a non-GNU linker is found, and then restart.
9164
9165EOF
9166      fi
9167      ;;
9168
9169    amigaos*)
9170      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)'
9171      hardcode_libdir_flag_spec='-L$libdir'
9172      hardcode_minus_L=yes
9173
9174      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9175      # that the semantics of dynamic libraries on AmigaOS, at least up
9176      # to version 4, is to share data among multiple programs linked
9177      # with the same dynamic library.  Since this doesn't match the
9178      # behavior of shared libraries on other platforms, we can't use
9179      # them.
9180      ld_shlibs=no
9181      ;;
9182
9183    beos*)
9184      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9185        allow_undefined_flag=unsupported
9186        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9187        # support --undefined.  This deserves some investigation.  FIXME
9188        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9189      else
9190        ld_shlibs=no
9191      fi
9192      ;;
9193
9194    cygwin* | mingw* | pw32*)
9195      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9196      # as there is no search path for DLLs.
9197      hardcode_libdir_flag_spec='-L$libdir'
9198      allow_undefined_flag=unsupported
9199      always_export_symbols=no
9200      enable_shared_with_static_runtimes=yes
9201      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9202
9203      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9204        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9205        # If the export-symbols file already is a .def file (1st line
9206        # is EXPORTS), use it as is; otherwise, prepend...
9207        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9208          cp $export_symbols $output_objdir/$soname.def;
9209        else
9210          echo EXPORTS > $output_objdir/$soname.def;
9211          cat $export_symbols >> $output_objdir/$soname.def;
9212        fi~
9213        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9214      else
9215        ld_shlibs=no
9216      fi
9217      ;;
9218
9219    interix3*)
9220      hardcode_direct=no
9221      hardcode_shlibpath_var=no
9222      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9223      export_dynamic_flag_spec='${wl}-E'
9224      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9225      # Instead, shared libraries are loaded at an image base (0x10000000 by
9226      # default) and relocated if they conflict, which is a slow very memory
9227      # consuming and fragmenting process.  To avoid this, we pick a random,
9228      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9229      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9230      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9231      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'
9232      ;;
9233
9234    linux*)
9235      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9236        tmp_addflag=
9237        case $cc_basename,$host_cpu in
9238        pgcc*)                          # Portland Group C compiler
9239          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'
9240          tmp_addflag=' $pic_flag'
9241          ;;
9242        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9243          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'
9244          tmp_addflag=' $pic_flag -Mnomain' ;;
9245        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9246          tmp_addflag=' -i_dynamic' ;;
9247        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9248          tmp_addflag=' -i_dynamic -nofor_main' ;;
9249        ifc* | ifort*)                  # Intel Fortran compiler
9250          tmp_addflag=' -nofor_main' ;;
9251        esac
9252        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9253
9254        if test $supports_anon_versioning = yes; then
9255          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9256  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9257  $echo "local: *; };" >> $output_objdir/$libname.ver~
9258          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9259        fi
9260      else
9261        ld_shlibs=no
9262      fi
9263      ;;
9264
9265    netbsd*)
9266      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9267        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9268        wlarc=
9269      else
9270        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9271        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9272      fi
9273      ;;
9274
9275    solaris*)
9276      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9277        ld_shlibs=no
9278        cat <<EOF 1>&2
9279
9280*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9281*** create shared libraries on Solaris systems.  Therefore, libtool
9282*** is disabling shared libraries support.  We urge you to upgrade GNU
9283*** binutils to release 2.9.1 or newer.  Another option is to modify
9284*** your PATH or compiler configuration so that the native linker is
9285*** used, and then restart.
9286
9287EOF
9288      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9289        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9290        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9291      else
9292        ld_shlibs=no
9293      fi
9294      ;;
9295
9296    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9297      case `$LD -v 2>&1` in
9298        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9299        ld_shlibs=no
9300        cat <<_LT_EOF 1>&2
9301
9302*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9303*** reliably create shared libraries on SCO systems.  Therefore, libtool
9304*** is disabling shared libraries support.  We urge you to upgrade GNU
9305*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9306*** your PATH or compiler configuration so that the native linker is
9307*** used, and then restart.
9308
9309_LT_EOF
9310        ;;
9311        *)
9312          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9313            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9314            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9315            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9316          else
9317            ld_shlibs=no
9318          fi
9319        ;;
9320      esac
9321      ;;
9322
9323    sunos4*)
9324      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9325      wlarc=
9326      hardcode_direct=yes
9327      hardcode_shlibpath_var=no
9328      ;;
9329
9330    *)
9331      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9332        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9333        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9334      else
9335        ld_shlibs=no
9336      fi
9337      ;;
9338    esac
9339
9340    if test "$ld_shlibs" = no; then
9341      runpath_var=
9342      hardcode_libdir_flag_spec=
9343      export_dynamic_flag_spec=
9344      whole_archive_flag_spec=
9345    fi
9346  else
9347    # PORTME fill in a description of your system's linker (not GNU ld)
9348    case $host_os in
9349    aix3*)
9350      allow_undefined_flag=unsupported
9351      always_export_symbols=yes
9352      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'
9353      # Note: this linker hardcodes the directories in LIBPATH if there
9354      # are no directories specified by -L.
9355      hardcode_minus_L=yes
9356      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9357        # Neither direct hardcoding nor static linking is supported with a
9358        # broken collect2.
9359        hardcode_direct=unsupported
9360      fi
9361      ;;
9362
9363    aix4* | aix5*)
9364      if test "$host_cpu" = ia64; then
9365        # On IA64, the linker does run time linking by default, so we don't
9366        # have to do anything special.
9367        aix_use_runtimelinking=no
9368        exp_sym_flag='-Bexport'
9369        no_entry_flag=""
9370      else
9371        # If we're using GNU nm, then we don't want the "-C" option.
9372        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9373        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9374          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'
9375        else
9376          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'
9377        fi
9378        aix_use_runtimelinking=no
9379
9380        # Test if we are trying to use run time linking or normal
9381        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9382        # need to do runtime linking.
9383        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9384          for ld_flag in $LDFLAGS; do
9385          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9386            aix_use_runtimelinking=yes
9387            break
9388          fi
9389          done
9390          ;;
9391        esac
9392
9393        exp_sym_flag='-bexport'
9394        no_entry_flag='-bnoentry'
9395      fi
9396
9397      # When large executables or shared objects are built, AIX ld can
9398      # have problems creating the table of contents.  If linking a library
9399      # or program results in "error TOC overflow" add -mminimal-toc to
9400      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9401      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9402
9403      archive_cmds=''
9404      hardcode_direct=yes
9405      hardcode_libdir_separator=':'
9406      link_all_deplibs=yes
9407
9408      if test "$GCC" = yes; then
9409        case $host_os in aix4.[012]|aix4.[012].*)
9410        # We only want to do this on AIX 4.2 and lower, the check
9411        # below for broken collect2 doesn't work under 4.3+
9412          collect2name=`${CC} -print-prog-name=collect2`
9413          if test -f "$collect2name" && \
9414           strings "$collect2name" | grep resolve_lib_name >/dev/null
9415          then
9416          # We have reworked collect2
9417          hardcode_direct=yes
9418          else
9419          # We have old collect2
9420          hardcode_direct=unsupported
9421          # It fails to find uninstalled libraries when the uninstalled
9422          # path is not listed in the libpath.  Setting hardcode_minus_L
9423          # to unsupported forces relinking
9424          hardcode_minus_L=yes
9425          hardcode_libdir_flag_spec='-L$libdir'
9426          hardcode_libdir_separator=
9427          fi
9428          ;;
9429        esac
9430        shared_flag='-shared'
9431        if test "$aix_use_runtimelinking" = yes; then
9432          shared_flag="$shared_flag "'${wl}-G'
9433        fi
9434      else
9435        # not using gcc
9436        if test "$host_cpu" = ia64; then
9437        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9438        # chokes on -Wl,-G. The following line is correct:
9439          shared_flag='-G'
9440        else
9441          if test "$aix_use_runtimelinking" = yes; then
9442            shared_flag='${wl}-G'
9443          else
9444            shared_flag='${wl}-bM:SRE'
9445          fi
9446        fi
9447      fi
9448
9449      # It seems that -bexpall does not export symbols beginning with
9450      # underscore (_), so it is better to generate a list of symbols to export.
9451      always_export_symbols=yes
9452      if test "$aix_use_runtimelinking" = yes; then
9453        # Warning - without using the other runtime loading flags (-brtl),
9454        # -berok will link without error, but may produce a broken library.
9455        allow_undefined_flag='-berok'
9456       # Determine the default libpath from the value encoded in an empty executable.
9457       cat >conftest.$ac_ext <<_ACEOF
9458/* confdefs.h.  */
9459_ACEOF
9460cat confdefs.h >>conftest.$ac_ext
9461cat >>conftest.$ac_ext <<_ACEOF
9462/* end confdefs.h.  */
9463
9464int
9465main ()
9466{
9467
9468  ;
9469  return 0;
9470}
9471_ACEOF
9472rm -f conftest.$ac_objext conftest$ac_exeext
9473if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9474  (eval $ac_link) 2>conftest.er1
9475  ac_status=$?
9476  grep -v '^ *+' conftest.er1 >conftest.err
9477  rm -f conftest.er1
9478  cat conftest.err >&5
9479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9480  (exit $ac_status); } &&
9481         { ac_try='test -z "$ac_c_werror_flag"
9482                         || test ! -s conftest.err'
9483  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9484  (eval $ac_try) 2>&5
9485  ac_status=$?
9486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9487  (exit $ac_status); }; } &&
9488         { ac_try='test -s conftest$ac_exeext'
9489  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9490  (eval $ac_try) 2>&5
9491  ac_status=$?
9492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9493  (exit $ac_status); }; }; then
9494
9495aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9496}'`
9497# Check for a 64-bit object if we didn't find anything.
9498if 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; }
9499}'`; fi
9500else
9501  echo "$as_me: failed program was:" >&5
9502sed 's/^/| /' conftest.$ac_ext >&5
9503
9504fi
9505rm -f conftest.err conftest.$ac_objext \
9506      conftest$ac_exeext conftest.$ac_ext
9507if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9508
9509       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9510        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"
9511       else
9512        if test "$host_cpu" = ia64; then
9513          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9514          allow_undefined_flag="-z nodefs"
9515          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"
9516        else
9517         # Determine the default libpath from the value encoded in an empty executable.
9518         cat >conftest.$ac_ext <<_ACEOF
9519/* confdefs.h.  */
9520_ACEOF
9521cat confdefs.h >>conftest.$ac_ext
9522cat >>conftest.$ac_ext <<_ACEOF
9523/* end confdefs.h.  */
9524
9525int
9526main ()
9527{
9528
9529  ;
9530  return 0;
9531}
9532_ACEOF
9533rm -f conftest.$ac_objext conftest$ac_exeext
9534if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9535  (eval $ac_link) 2>conftest.er1
9536  ac_status=$?
9537  grep -v '^ *+' conftest.er1 >conftest.err
9538  rm -f conftest.er1
9539  cat conftest.err >&5
9540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9541  (exit $ac_status); } &&
9542         { ac_try='test -z "$ac_c_werror_flag"
9543                         || test ! -s conftest.err'
9544  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9545  (eval $ac_try) 2>&5
9546  ac_status=$?
9547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548  (exit $ac_status); }; } &&
9549         { ac_try='test -s conftest$ac_exeext'
9550  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9551  (eval $ac_try) 2>&5
9552  ac_status=$?
9553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554  (exit $ac_status); }; }; then
9555
9556aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9557}'`
9558# Check for a 64-bit object if we didn't find anything.
9559if 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; }
9560}'`; fi
9561else
9562  echo "$as_me: failed program was:" >&5
9563sed 's/^/| /' conftest.$ac_ext >&5
9564
9565fi
9566rm -f conftest.err conftest.$ac_objext \
9567      conftest$ac_exeext conftest.$ac_ext
9568if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9569
9570         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9571          # Warning - without using the other run time loading flags,
9572          # -berok will link without error, but may produce a broken library.
9573          no_undefined_flag=' ${wl}-bernotok'
9574          allow_undefined_flag=' ${wl}-berok'
9575          # Exported symbols can be pulled into shared objects from archives
9576          whole_archive_flag_spec='$convenience'
9577          archive_cmds_need_lc=yes
9578          # This is similar to how AIX traditionally builds its shared libraries.
9579          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'
9580        fi
9581      fi
9582      ;;
9583
9584    amigaos*)
9585      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)'
9586      hardcode_libdir_flag_spec='-L$libdir'
9587      hardcode_minus_L=yes
9588      # see comment about different semantics on the GNU ld section
9589      ld_shlibs=no
9590      ;;
9591
9592    bsdi[45]*)
9593      export_dynamic_flag_spec=-rdynamic
9594      ;;
9595
9596    cygwin* | mingw* | pw32*)
9597      # When not using gcc, we currently assume that we are using
9598      # Microsoft Visual C++.
9599      # hardcode_libdir_flag_spec is actually meaningless, as there is
9600      # no search path for DLLs.
9601      hardcode_libdir_flag_spec=' '
9602      allow_undefined_flag=unsupported
9603      # Tell ltmain to make .lib files, not .a files.
9604      libext=lib
9605      # Tell ltmain to make .dll files, not .so files.
9606      shrext_cmds=".dll"
9607      # FIXME: Setting linknames here is a bad hack.
9608      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9609      # The linker will automatically build a .lib file if we build a DLL.
9610      old_archive_From_new_cmds='true'
9611      # FIXME: Should let the user specify the lib program.
9612      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9613      fix_srcfile_path='`cygpath -w "$srcfile"`'
9614      enable_shared_with_static_runtimes=yes
9615      ;;
9616
9617    darwin* | rhapsody*)
9618      case $host_os in
9619        rhapsody* | darwin1.[012])
9620         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9621         ;;
9622       *) # Darwin 1.3 on
9623         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9624           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9625         else
9626           case ${MACOSX_DEPLOYMENT_TARGET} in
9627             10.[012])
9628               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9629               ;;
9630             10.*)
9631               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9632               ;;
9633           esac
9634         fi
9635         ;;
9636      esac
9637      archive_cmds_need_lc=no
9638      hardcode_direct=no
9639      hardcode_automatic=yes
9640      hardcode_shlibpath_var=unsupported
9641      whole_archive_flag_spec=''
9642      link_all_deplibs=yes
9643    if test "$GCC" = yes ; then
9644        output_verbose_link_cmd='echo'
9645        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9646      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9647      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9648      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}'
9649      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}'
9650    else
9651      case $cc_basename in
9652        xlc*)
9653         output_verbose_link_cmd='echo'
9654         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9655         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9656          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9657         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}'
9658          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}'
9659          ;;
9660       *)
9661         ld_shlibs=no
9662          ;;
9663      esac
9664    fi
9665      ;;
9666
9667    dgux*)
9668      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9669      hardcode_libdir_flag_spec='-L$libdir'
9670      hardcode_shlibpath_var=no
9671      ;;
9672
9673    freebsd1*)
9674      ld_shlibs=no
9675      ;;
9676
9677    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9678    # support.  Future versions do this automatically, but an explicit c++rt0.o
9679    # does not break anything, and helps significantly (at the cost of a little
9680    # extra space).
9681    freebsd2.2*)
9682      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9683      hardcode_libdir_flag_spec='-R$libdir'
9684      hardcode_direct=yes
9685      hardcode_shlibpath_var=no
9686      ;;
9687
9688    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9689    freebsd2*)
9690      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9691      hardcode_direct=yes
9692      hardcode_minus_L=yes
9693      hardcode_shlibpath_var=no
9694      ;;
9695
9696    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9697    freebsd* | kfreebsd*-gnu | dragonfly*)
9698      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9699      hardcode_libdir_flag_spec='-R$libdir'
9700      hardcode_direct=yes
9701      hardcode_shlibpath_var=no
9702      ;;
9703
9704    hpux9*)
9705      if test "$GCC" = yes; then
9706        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'
9707      else
9708        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'
9709      fi
9710      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9711      hardcode_libdir_separator=:
9712      hardcode_direct=yes
9713
9714      # hardcode_minus_L: Not really in the search PATH,
9715      # but as the default location of the library.
9716      hardcode_minus_L=yes
9717      export_dynamic_flag_spec='${wl}-E'
9718      ;;
9719
9720    hpux10*)
9721      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9722        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9723      else
9724        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9725      fi
9726      if test "$with_gnu_ld" = no; then
9727        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9728        hardcode_libdir_separator=:
9729
9730        hardcode_direct=yes
9731        export_dynamic_flag_spec='${wl}-E'
9732
9733        # hardcode_minus_L: Not really in the search PATH,
9734        # but as the default location of the library.
9735        hardcode_minus_L=yes
9736      fi
9737      ;;
9738
9739    hpux11*)
9740      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9741        case $host_cpu in
9742        hppa*64*)
9743          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9744          ;;
9745        ia64*)
9746          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9747          ;;
9748        *)
9749          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9750          ;;
9751        esac
9752      else
9753        case $host_cpu in
9754        hppa*64*)
9755          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9756          ;;
9757        ia64*)
9758          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9759          ;;
9760        *)
9761          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9762          ;;
9763        esac
9764      fi
9765      if test "$with_gnu_ld" = no; then
9766        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9767        hardcode_libdir_separator=:
9768
9769        case $host_cpu in
9770        hppa*64*|ia64*)
9771          hardcode_libdir_flag_spec_ld='+b $libdir'
9772          hardcode_direct=no
9773          hardcode_shlibpath_var=no
9774          ;;
9775        *)
9776          hardcode_direct=yes
9777          export_dynamic_flag_spec='${wl}-E'
9778
9779          # hardcode_minus_L: Not really in the search PATH,
9780          # but as the default location of the library.
9781          hardcode_minus_L=yes
9782          ;;
9783        esac
9784      fi
9785      ;;
9786
9787    irix5* | irix6* | nonstopux*)
9788      if test "$GCC" = yes; then
9789        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'
9790      else
9791        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'
9792        hardcode_libdir_flag_spec_ld='-rpath $libdir'
9793      fi
9794      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9795      hardcode_libdir_separator=:
9796      link_all_deplibs=yes
9797      ;;
9798
9799    netbsd*)
9800      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9801        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9802      else
9803        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9804      fi
9805      hardcode_libdir_flag_spec='-R$libdir'
9806      hardcode_direct=yes
9807      hardcode_shlibpath_var=no
9808      ;;
9809
9810    newsos6)
9811      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9812      hardcode_direct=yes
9813      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9814      hardcode_libdir_separator=:
9815      hardcode_shlibpath_var=no
9816      ;;
9817
9818    openbsd*)
9819      hardcode_direct=yes
9820      hardcode_shlibpath_var=no
9821      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9822        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9823        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9824        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9825        export_dynamic_flag_spec='${wl}-E'
9826      else
9827       case $host_os in
9828         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9829           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9830           hardcode_libdir_flag_spec='-R$libdir'
9831           ;;
9832         *)
9833           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9834           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9835           ;;
9836       esac
9837      fi
9838      ;;
9839
9840    os2*)
9841      hardcode_libdir_flag_spec='-L$libdir'
9842      hardcode_minus_L=yes
9843      allow_undefined_flag=unsupported
9844      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'
9845      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9846      ;;
9847
9848    osf3*)
9849      if test "$GCC" = yes; then
9850        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9851        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'
9852      else
9853        allow_undefined_flag=' -expect_unresolved \*'
9854        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'
9855      fi
9856      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9857      hardcode_libdir_separator=:
9858      ;;
9859
9860    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9861      if test "$GCC" = yes; then
9862        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9863        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'
9864        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9865      else
9866        allow_undefined_flag=' -expect_unresolved \*'
9867        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'
9868        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9869        $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'
9870
9871        # Both c and cxx compiler support -rpath directly
9872        hardcode_libdir_flag_spec='-rpath $libdir'
9873      fi
9874      hardcode_libdir_separator=:
9875      ;;
9876
9877    solaris*)
9878      no_undefined_flag=' -z text'
9879      if test "$GCC" = yes; then
9880        wlarc='${wl}'
9881        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9882        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9883          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9884      else
9885        wlarc=''
9886        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9887        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9888        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9889      fi
9890      hardcode_libdir_flag_spec='-R$libdir'
9891      hardcode_shlibpath_var=no
9892      case $host_os in
9893      solaris2.[0-5] | solaris2.[0-5].*) ;;
9894      *)
9895        # The compiler driver will combine linker options so we
9896        # cannot just pass the convience library names through
9897        # without $wl, iff we do not link with $LD.
9898        # Luckily, gcc supports the same syntax we need for Sun Studio.
9899        # Supported since Solaris 2.6 (maybe 2.5.1?)
9900        case $wlarc in
9901        '')
9902          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9903        *)
9904          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' ;;
9905        esac ;;
9906      esac
9907      link_all_deplibs=yes
9908      ;;
9909
9910    sunos4*)
9911      if test "x$host_vendor" = xsequent; then
9912        # Use $CC to link under sequent, because it throws in some extra .o
9913        # files that make .init and .fini sections work.
9914        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9915      else
9916        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9917      fi
9918      hardcode_libdir_flag_spec='-L$libdir'
9919      hardcode_direct=yes
9920      hardcode_minus_L=yes
9921      hardcode_shlibpath_var=no
9922      ;;
9923
9924    sysv4)
9925      case $host_vendor in
9926        sni)
9927          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9928          hardcode_direct=yes # is this really true???
9929        ;;
9930        siemens)
9931          ## LD is ld it makes a PLAMLIB
9932          ## CC just makes a GrossModule.
9933          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9934          reload_cmds='$CC -r -o $output$reload_objs'
9935          hardcode_direct=no
9936        ;;
9937        motorola)
9938          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9939          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9940        ;;
9941      esac
9942      runpath_var='LD_RUN_PATH'
9943      hardcode_shlibpath_var=no
9944      ;;
9945
9946    sysv4.3*)
9947      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9948      hardcode_shlibpath_var=no
9949      export_dynamic_flag_spec='-Bexport'
9950      ;;
9951
9952    sysv4*MP*)
9953      if test -d /usr/nec; then
9954        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9955        hardcode_shlibpath_var=no
9956        runpath_var=LD_RUN_PATH
9957        hardcode_runpath_var=yes
9958        ld_shlibs=yes
9959      fi
9960      ;;
9961
9962    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9963      no_undefined_flag='${wl}-z,text'
9964      archive_cmds_need_lc=no
9965      hardcode_shlibpath_var=no
9966      runpath_var='LD_RUN_PATH'
9967
9968      if test "$GCC" = yes; then
9969        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9970        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9971      else
9972        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9973        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9974      fi
9975      ;;
9976
9977    sysv5* | sco3.2v5* | sco5v6*)
9978      # Note: We can NOT use -z defs as we might desire, because we do not
9979      # link with -lc, and that would cause any symbols used from libc to
9980      # always be unresolved, which means just about no library would
9981      # ever link correctly.  If we're not using GNU ld we use -z text
9982      # though, which does catch some bad symbols but isn't as heavy-handed
9983      # as -z defs.
9984      no_undefined_flag='${wl}-z,text'
9985      allow_undefined_flag='${wl}-z,nodefs'
9986      archive_cmds_need_lc=no
9987      hardcode_shlibpath_var=no
9988      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9989      hardcode_libdir_separator=':'
9990      link_all_deplibs=yes
9991      export_dynamic_flag_spec='${wl}-Bexport'
9992      runpath_var='LD_RUN_PATH'
9993
9994      if test "$GCC" = yes; then
9995        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9996        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9997      else
9998        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9999        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10000      fi
10001      ;;
10002
10003    uts4*)
10004      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10005      hardcode_libdir_flag_spec='-L$libdir'
10006      hardcode_shlibpath_var=no
10007      ;;
10008
10009    *)
10010      ld_shlibs=no
10011      ;;
10012    esac
10013  fi
10014
10015echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10016echo "${ECHO_T}$ld_shlibs" >&6
10017test "$ld_shlibs" = no && can_build_shared=no
10018
10019#
10020# Do we need to explicitly link libc?
10021#
10022case "x$archive_cmds_need_lc" in
10023x|xyes)
10024  # Assume -lc should be added
10025  archive_cmds_need_lc=yes
10026
10027  if test "$enable_shared" = yes && test "$GCC" = yes; then
10028    case $archive_cmds in
10029    *'~'*)
10030      # FIXME: we may have to deal with multi-command sequences.
10031      ;;
10032    '$CC '*)
10033      # Test whether the compiler implicitly links with -lc since on some
10034      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10035      # to ld, don't add -lc before -lgcc.
10036      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10037echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10038      $rm conftest*
10039      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10040
10041      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10042  (eval $ac_compile) 2>&5
10043  ac_status=$?
10044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045  (exit $ac_status); } 2>conftest.err; then
10046        soname=conftest
10047        lib=conftest
10048        libobjs=conftest.$ac_objext
10049        deplibs=
10050        wl=$lt_prog_compiler_wl
10051        pic_flag=$lt_prog_compiler_pic
10052        compiler_flags=-v
10053        linker_flags=-v
10054        verstring=
10055        output_objdir=.
10056        libname=conftest
10057        lt_save_allow_undefined_flag=$allow_undefined_flag
10058        allow_undefined_flag=
10059        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10060  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10061  ac_status=$?
10062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063  (exit $ac_status); }
10064        then
10065          archive_cmds_need_lc=no
10066        else
10067          archive_cmds_need_lc=yes
10068        fi
10069        allow_undefined_flag=$lt_save_allow_undefined_flag
10070      else
10071        cat conftest.err 1>&5
10072      fi
10073      $rm conftest*
10074      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10075echo "${ECHO_T}$archive_cmds_need_lc" >&6
10076      ;;
10077    esac
10078  fi
10079  ;;
10080esac
10081
10082echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10083echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10084library_names_spec=
10085libname_spec='lib$name'
10086soname_spec=
10087shrext_cmds=".so"
10088postinstall_cmds=
10089postuninstall_cmds=
10090finish_cmds=
10091finish_eval=
10092shlibpath_var=
10093shlibpath_overrides_runpath=unknown
10094version_type=none
10095dynamic_linker="$host_os ld.so"
10096sys_lib_dlsearch_path_spec="/lib /usr/lib"
10097if test "$GCC" = yes; then
10098  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10099  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10100    # if the path contains ";" then we assume it to be the separator
10101    # otherwise default to the standard path separator (i.e. ":") - it is
10102    # assumed that no part of a normal pathname contains ";" but that should
10103    # okay in the real world where ";" in dirpaths is itself problematic.
10104    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10105  else
10106    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10107  fi
10108else
10109  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10110fi
10111need_lib_prefix=unknown
10112hardcode_into_libs=no
10113
10114# when you set need_version to no, make sure it does not cause -set_version
10115# flags to be left without arguments
10116need_version=unknown
10117
10118case $host_os in
10119aix3*)
10120  version_type=linux
10121  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10122  shlibpath_var=LIBPATH
10123
10124  # AIX 3 has no versioning support, so we append a major version to the name.
10125  soname_spec='${libname}${release}${shared_ext}$major'
10126  ;;
10127
10128aix4* | aix5*)
10129  version_type=linux
10130  need_lib_prefix=no
10131  need_version=no
10132  hardcode_into_libs=yes
10133  if test "$host_cpu" = ia64; then
10134    # AIX 5 supports IA64
10135    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10136    shlibpath_var=LD_LIBRARY_PATH
10137  else
10138    # With GCC up to 2.95.x, collect2 would create an import file
10139    # for dependence libraries.  The import file would start with
10140    # the line `#! .'.  This would cause the generated library to
10141    # depend on `.', always an invalid library.  This was fixed in
10142    # development snapshots of GCC prior to 3.0.
10143    case $host_os in
10144      aix4 | aix4.[01] | aix4.[01].*)
10145      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10146           echo ' yes '
10147           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10148        :
10149      else
10150        can_build_shared=no
10151      fi
10152      ;;
10153    esac
10154    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10155    # soname into executable. Probably we can add versioning support to
10156    # collect2, so additional links can be useful in future.
10157    if test "$aix_use_runtimelinking" = yes; then
10158      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10159      # instead of lib<name>.a to let people know that these are not
10160      # typical AIX shared libraries.
10161      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10162    else
10163      # We preserve .a as extension for shared libraries through AIX4.2
10164      # and later when we are not doing run time linking.
10165      library_names_spec='${libname}${release}.a $libname.a'
10166      soname_spec='${libname}${release}${shared_ext}$major'
10167    fi
10168    shlibpath_var=LIBPATH
10169  fi
10170  ;;
10171
10172amigaos*)
10173  library_names_spec='$libname.ixlibrary $libname.a'
10174  # Create ${libname}_ixlibrary.a entries in /sys/libs.
10175  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'
10176  ;;
10177
10178beos*)
10179  library_names_spec='${libname}${shared_ext}'
10180  dynamic_linker="$host_os ld.so"
10181  shlibpath_var=LIBRARY_PATH
10182  ;;
10183
10184bsdi[45]*)
10185  version_type=linux
10186  need_version=no
10187  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10188  soname_spec='${libname}${release}${shared_ext}$major'
10189  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10190  shlibpath_var=LD_LIBRARY_PATH
10191  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10192  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10193  # the default ld.so.conf also contains /usr/contrib/lib and
10194  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10195  # libtool to hard-code these into programs
10196  ;;
10197
10198cygwin* | mingw* | pw32*)
10199  version_type=windows
10200  shrext_cmds=".dll"
10201  need_version=no
10202  need_lib_prefix=no
10203
10204  case $GCC,$host_os in
10205  yes,cygwin* | yes,mingw* | yes,pw32*)
10206    library_names_spec='$libname.dll.a'
10207    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10208    postinstall_cmds='base_file=`basename \${file}`~
10209      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10210      dldir=$destdir/`dirname \$dlpath`~
10211      test -d \$dldir || mkdir -p \$dldir~
10212      $install_prog $dir/$dlname \$dldir/$dlname~
10213      chmod a+x \$dldir/$dlname'
10214    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10215      dlpath=$dir/\$dldll~
10216       $rm \$dlpath'
10217    shlibpath_overrides_runpath=yes
10218
10219    case $host_os in
10220    cygwin*)
10221      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10222      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10223      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10224      ;;
10225    mingw*)
10226      # MinGW DLLs use traditional 'lib' prefix
10227      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10228      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10229      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10230        # It is most probably a Windows format PATH printed by
10231        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10232        # path with ; separators, and with drive letters. We can handle the
10233        # drive letters (cygwin fileutils understands them), so leave them,
10234        # especially as we might pass files found there to a mingw objdump,
10235        # which wouldn't understand a cygwinified path. Ahh.
10236        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10237      else
10238        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10239      fi
10240      ;;
10241    pw32*)
10242      # pw32 DLLs use 'pw' prefix rather than 'lib'
10243      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10244      ;;
10245    esac
10246    ;;
10247
10248  *)
10249    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10250    ;;
10251  esac
10252  dynamic_linker='Win32 ld.exe'
10253  # FIXME: first we should search . and the directory the executable is in
10254  shlibpath_var=PATH
10255  ;;
10256
10257darwin* | rhapsody*)
10258  dynamic_linker="$host_os dyld"
10259  version_type=darwin
10260  need_lib_prefix=no
10261  need_version=no
10262  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10263  soname_spec='${libname}${release}${major}$shared_ext'
10264  shlibpath_overrides_runpath=yes
10265  shlibpath_var=DYLD_LIBRARY_PATH
10266  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10267  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10268  if test "$GCC" = yes; then
10269    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"`
10270  else
10271    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10272  fi
10273  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10274  ;;
10275
10276dgux*)
10277  version_type=linux
10278  need_lib_prefix=no
10279  need_version=no
10280  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10281  soname_spec='${libname}${release}${shared_ext}$major'
10282  shlibpath_var=LD_LIBRARY_PATH
10283  ;;
10284
10285freebsd1*)
10286  dynamic_linker=no
10287  ;;
10288
10289kfreebsd*-gnu)
10290  version_type=linux
10291  need_lib_prefix=no
10292  need_version=no
10293  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10294  soname_spec='${libname}${release}${shared_ext}$major'
10295  shlibpath_var=LD_LIBRARY_PATH
10296  shlibpath_overrides_runpath=no
10297  hardcode_into_libs=yes
10298  dynamic_linker='GNU ld.so'
10299  ;;
10300
10301freebsd* | dragonfly*)
10302  # DragonFly does not have aout.  When/if they implement a new
10303  # versioning mechanism, adjust this.
10304  if test -x /usr/bin/objformat; then
10305    objformat=`/usr/bin/objformat`
10306  else
10307    case $host_os in
10308    freebsd[123]*) objformat=aout ;;
10309    *) objformat=elf ;;
10310    esac
10311  fi
10312  version_type=freebsd-$objformat
10313  case $version_type in
10314    freebsd-elf*)
10315      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10316      need_version=no
10317      need_lib_prefix=no
10318      ;;
10319    freebsd-*)
10320      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10321      need_version=yes
10322      ;;
10323  esac
10324  shlibpath_var=LD_LIBRARY_PATH
10325  case $host_os in
10326  freebsd2*)
10327    shlibpath_overrides_runpath=yes
10328    ;;
10329  freebsd3.[01]* | freebsdelf3.[01]*)
10330    shlibpath_overrides_runpath=yes
10331    hardcode_into_libs=yes
10332    ;;
10333  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10334  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10335    shlibpath_overrides_runpath=no
10336    hardcode_into_libs=yes
10337    ;;
10338  freebsd*) # from 4.6 on
10339    shlibpath_overrides_runpath=yes
10340    hardcode_into_libs=yes
10341    ;;
10342  esac
10343  ;;
10344
10345gnu*)
10346  version_type=linux
10347  need_lib_prefix=no
10348  need_version=no
10349  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10350  soname_spec='${libname}${release}${shared_ext}$major'
10351  shlibpath_var=LD_LIBRARY_PATH
10352  hardcode_into_libs=yes
10353  ;;
10354
10355hpux9* | hpux10* | hpux11*)
10356  # Give a soname corresponding to the major version so that dld.sl refuses to
10357  # link against other versions.
10358  version_type=sunos
10359  need_lib_prefix=no
10360  need_version=no
10361  case $host_cpu in
10362  ia64*)
10363    shrext_cmds='.so'
10364    hardcode_into_libs=yes
10365    dynamic_linker="$host_os dld.so"
10366    shlibpath_var=LD_LIBRARY_PATH
10367    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10368    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10369    soname_spec='${libname}${release}${shared_ext}$major'
10370    if test "X$HPUX_IA64_MODE" = X32; then
10371      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10372    else
10373      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10374    fi
10375    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10376    ;;
10377   hppa*64*)
10378     shrext_cmds='.sl'
10379     hardcode_into_libs=yes
10380     dynamic_linker="$host_os dld.sl"
10381     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10382     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10383     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10384     soname_spec='${libname}${release}${shared_ext}$major'
10385     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10386     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10387     ;;
10388   *)
10389    shrext_cmds='.sl'
10390    dynamic_linker="$host_os dld.sl"
10391    shlibpath_var=SHLIB_PATH
10392    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10393    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10394    soname_spec='${libname}${release}${shared_ext}$major'
10395    ;;
10396  esac
10397  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10398  postinstall_cmds='chmod 555 $lib'
10399  ;;
10400
10401interix3*)
10402  version_type=linux
10403  need_lib_prefix=no
10404  need_version=no
10405  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10406  soname_spec='${libname}${release}${shared_ext}$major'
10407  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10408  shlibpath_var=LD_LIBRARY_PATH
10409  shlibpath_overrides_runpath=no
10410  hardcode_into_libs=yes
10411  ;;
10412
10413irix5* | irix6* | nonstopux*)
10414  case $host_os in
10415    nonstopux*) version_type=nonstopux ;;
10416    *)
10417        if test "$lt_cv_prog_gnu_ld" = yes; then
10418                version_type=linux
10419        else
10420                version_type=irix
10421        fi ;;
10422  esac
10423  need_lib_prefix=no
10424  need_version=no
10425  soname_spec='${libname}${release}${shared_ext}$major'
10426  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10427  case $host_os in
10428  irix5* | nonstopux*)
10429    libsuff= shlibsuff=
10430    ;;
10431  *)
10432    case $LD in # libtool.m4 will add one of these switches to LD
10433    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10434      libsuff= shlibsuff= libmagic=32-bit;;
10435    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10436      libsuff=32 shlibsuff=N32 libmagic=N32;;
10437    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10438      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10439    *) libsuff= shlibsuff= libmagic=never-match;;
10440    esac
10441    ;;
10442  esac
10443  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10444  shlibpath_overrides_runpath=no
10445  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10446  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10447  hardcode_into_libs=yes
10448  ;;
10449
10450# No shared lib support for Linux oldld, aout, or coff.
10451linux*oldld* | linux*aout* | linux*coff*)
10452  dynamic_linker=no
10453  ;;
10454
10455# This must be Linux ELF.
10456linux*)
10457  version_type=linux
10458  need_lib_prefix=no
10459  need_version=no
10460  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10461  soname_spec='${libname}${release}${shared_ext}$major'
10462  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10463  shlibpath_var=LD_LIBRARY_PATH
10464  shlibpath_overrides_runpath=no
10465  # This implies no fast_install, which is unacceptable.
10466  # Some rework will be needed to allow for fast_install
10467  # before this can be enabled.
10468  hardcode_into_libs=yes
10469
10470  # Append ld.so.conf contents to the search path
10471  if test -f /etc/ld.so.conf; then
10472    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' ' '`
10473    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10474  fi
10475
10476  # We used to test for /lib/ld.so.1 and disable shared libraries on
10477  # powerpc, because MkLinux only supported shared libraries with the
10478  # GNU dynamic linker.  Since this was broken with cross compilers,
10479  # most powerpc-linux boxes support dynamic linking these days and
10480  # people can always --disable-shared, the test was removed, and we
10481  # assume the GNU/Linux dynamic linker is in use.
10482  dynamic_linker='GNU/Linux ld.so'
10483  ;;
10484
10485knetbsd*-gnu)
10486  version_type=linux
10487  need_lib_prefix=no
10488  need_version=no
10489  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10490  soname_spec='${libname}${release}${shared_ext}$major'
10491  shlibpath_var=LD_LIBRARY_PATH
10492  shlibpath_overrides_runpath=no
10493  hardcode_into_libs=yes
10494  dynamic_linker='GNU ld.so'
10495  ;;
10496
10497netbsd*)
10498  version_type=sunos
10499  need_lib_prefix=no
10500  need_version=no
10501  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10502    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10503    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10504    dynamic_linker='NetBSD (a.out) ld.so'
10505  else
10506    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10507    soname_spec='${libname}${release}${shared_ext}$major'
10508    dynamic_linker='NetBSD ld.elf_so'
10509  fi
10510  shlibpath_var=LD_LIBRARY_PATH
10511  shlibpath_overrides_runpath=yes
10512  hardcode_into_libs=yes
10513  ;;
10514
10515newsos6)
10516  version_type=linux
10517  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10518  shlibpath_var=LD_LIBRARY_PATH
10519  shlibpath_overrides_runpath=yes
10520  ;;
10521
10522nto-qnx*)
10523  version_type=linux
10524  need_lib_prefix=no
10525  need_version=no
10526  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10527  soname_spec='${libname}${release}${shared_ext}$major'
10528  shlibpath_var=LD_LIBRARY_PATH
10529  shlibpath_overrides_runpath=yes
10530  ;;
10531
10532openbsd*)
10533  version_type=sunos
10534  sys_lib_dlsearch_path_spec="/usr/lib"
10535  need_lib_prefix=no
10536  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10537  case $host_os in
10538    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10539    *)                         need_version=no  ;;
10540  esac
10541  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10542  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10543  shlibpath_var=LD_LIBRARY_PATH
10544  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10545    case $host_os in
10546      openbsd2.[89] | openbsd2.[89].*)
10547        shlibpath_overrides_runpath=no
10548        ;;
10549      *)
10550        shlibpath_overrides_runpath=yes
10551        ;;
10552      esac
10553  else
10554    shlibpath_overrides_runpath=yes
10555  fi
10556  ;;
10557
10558os2*)
10559  libname_spec='$name'
10560  shrext_cmds=".dll"
10561  need_lib_prefix=no
10562  library_names_spec='$libname${shared_ext} $libname.a'
10563  dynamic_linker='OS/2 ld.exe'
10564  shlibpath_var=LIBPATH
10565  ;;
10566
10567osf3* | osf4* | osf5*)
10568  version_type=osf
10569  need_lib_prefix=no
10570  need_version=no
10571  soname_spec='${libname}${release}${shared_ext}$major'
10572  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10573  shlibpath_var=LD_LIBRARY_PATH
10574  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10575  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10576  ;;
10577
10578solaris*)
10579  version_type=linux
10580  need_lib_prefix=no
10581  need_version=no
10582  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10583  soname_spec='${libname}${release}${shared_ext}$major'
10584  shlibpath_var=LD_LIBRARY_PATH
10585  shlibpath_overrides_runpath=yes
10586  hardcode_into_libs=yes
10587  # ldd complains unless libraries are executable
10588  postinstall_cmds='chmod +x $lib'
10589  ;;
10590
10591sunos4*)
10592  version_type=sunos
10593  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10594  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10595  shlibpath_var=LD_LIBRARY_PATH
10596  shlibpath_overrides_runpath=yes
10597  if test "$with_gnu_ld" = yes; then
10598    need_lib_prefix=no
10599  fi
10600  need_version=yes
10601  ;;
10602
10603sysv4 | sysv4.3*)
10604  version_type=linux
10605  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10606  soname_spec='${libname}${release}${shared_ext}$major'
10607  shlibpath_var=LD_LIBRARY_PATH
10608  case $host_vendor in
10609    sni)
10610      shlibpath_overrides_runpath=no
10611      need_lib_prefix=no
10612      export_dynamic_flag_spec='${wl}-Blargedynsym'
10613      runpath_var=LD_RUN_PATH
10614      ;;
10615    siemens)
10616      need_lib_prefix=no
10617      ;;
10618    motorola)
10619      need_lib_prefix=no
10620      need_version=no
10621      shlibpath_overrides_runpath=no
10622      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10623      ;;
10624  esac
10625  ;;
10626
10627sysv4*MP*)
10628  if test -d /usr/nec ;then
10629    version_type=linux
10630    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10631    soname_spec='$libname${shared_ext}.$major'
10632    shlibpath_var=LD_LIBRARY_PATH
10633  fi
10634  ;;
10635
10636sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10637  version_type=freebsd-elf
10638  need_lib_prefix=no
10639  need_version=no
10640  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10641  soname_spec='${libname}${release}${shared_ext}$major'
10642  shlibpath_var=LD_LIBRARY_PATH
10643  hardcode_into_libs=yes
10644  if test "$with_gnu_ld" = yes; then
10645    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10646    shlibpath_overrides_runpath=no
10647  else
10648    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10649    shlibpath_overrides_runpath=yes
10650    case $host_os in
10651      sco3.2v5*)
10652        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10653        ;;
10654    esac
10655  fi
10656  sys_lib_dlsearch_path_spec='/usr/lib'
10657  ;;
10658
10659uts4*)
10660  version_type=linux
10661  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10662  soname_spec='${libname}${release}${shared_ext}$major'
10663  shlibpath_var=LD_LIBRARY_PATH
10664  ;;
10665
10666*)
10667  dynamic_linker=no
10668  ;;
10669esac
10670echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10671echo "${ECHO_T}$dynamic_linker" >&6
10672test "$dynamic_linker" = no && can_build_shared=no
10673
10674variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10675if test "$GCC" = yes; then
10676  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10677fi
10678
10679echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10680echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10681hardcode_action=
10682if test -n "$hardcode_libdir_flag_spec" || \
10683   test -n "$runpath_var" || \
10684   test "X$hardcode_automatic" = "Xyes" ; then
10685
10686  # We can hardcode non-existant directories.
10687  if test "$hardcode_direct" != no &&
10688     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10689     # have to relink, otherwise we might link with an installed library
10690     # when we should be linking with a yet-to-be-installed one
10691     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10692     test "$hardcode_minus_L" != no; then
10693    # Linking always hardcodes the temporary library directory.
10694    hardcode_action=relink
10695  else
10696    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10697    hardcode_action=immediate
10698  fi
10699else
10700  # We cannot hardcode anything, or else we can only hardcode existing
10701  # directories.
10702  hardcode_action=unsupported
10703fi
10704echo "$as_me:$LINENO: result: $hardcode_action" >&5
10705echo "${ECHO_T}$hardcode_action" >&6
10706
10707if test "$hardcode_action" = relink; then
10708  # Fast installation is not supported
10709  enable_fast_install=no
10710elif test "$shlibpath_overrides_runpath" = yes ||
10711     test "$enable_shared" = no; then
10712  # Fast installation is not necessary
10713  enable_fast_install=needless
10714fi
10715
10716striplib=
10717old_striplib=
10718echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10719echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10720if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10721  test -z "$old_striplib" && old_striplib="$STR