source: ThirdParty/SCIP/trunk/configure

Last change on this file was 3996, checked in by stefan, 9 months ago

rerun autotools

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