source: ThirdParty/SCIP/trunk/configure @ 2257

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

disable check for Ipopt for now and wait for SCIP >= 2.0.2

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