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

Last change on this file since 2450 was 2450, checked in by stefan, 9 years ago

restoring BuildTools/ThirdParty?/SCIP/stable/1.0

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