source: ThirdParty/SCIP/trunk/configure @ 2616

Last change on this file since 2616 was 2616, checked in by stefan, 7 years ago

scip 3.0 brings its own cppad, no need to check for it

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