source: ThirdParty/SCIP/stable/1.2/configure @ 3085

Last change on this file since 3085 was 3085, checked in by stefan, 6 years ago

temporarily committing release candidate

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