source: ThirdParty/SCIP/trunk/configure @ 3308

Last change on this file since 3308 was 3308, checked in by tkr, 7 years ago

temporarily committing stable candidate

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