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

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

restoring BuildTools/ThirdParty?/SCIP/stable/1.2

  • Property svn:executable set to *
File size: 870.5 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyScip 1.2.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2011-2012 Stefan Vigerske and others.
13# All Rights Reserved.
14# This file is part of the open source package COIN-OR which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyScip'
431PACKAGE_TARNAME='thirdpartyscip'
432PACKAGE_VERSION='1.2'
433PACKAGE_STRING='ThirdPartyScip 1.2'
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_ct_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED SOPLEX_LIBS SOPLEX_CFLAGS SOPLEX_DATA SOPLEX_DEPENDENCIES SOPLEX_LIBS_INSTALLED SOPLEX_CFLAGS_INSTALLED SOPLEX_DATA_INSTALLED SCIPLIB_CFLAGS SCIPLIB_LIBS SCIPLIB_PCLIBS SCIPLIB_PCREQUIRES SCIPLIB_DEPENDENCIES SCIPLIB_CFLAGS_INSTALLED SCIPLIB_LIBS_INSTALLED COIN_HAS_SOPLEX_TRUE COIN_HAS_SOPLEX_FALSE CLP_LIBS CLP_CFLAGS CLP_DATA CLP_DEPENDENCIES CLP_LIBS_INSTALLED CLP_CFLAGS_INSTALLED CLP_DATA_INSTALLED COIN_HAS_CLP_TRUE COIN_HAS_CLP_FALSE CPXINCDIR CPXLIB COIN_HAS_CPX_TRUE COIN_HAS_CPX_FALSE MSKINCDIR MSKLIB COIN_HAS_MSK_TRUE COIN_HAS_MSK_FALSE XPRINCDIR XPRLIB COIN_HAS_XPR_TRUE COIN_HAS_XPR_FALSE GRBINCDIR GRBLIB COIN_HAS_GRB_TRUE COIN_HAS_GRB_FALSE QSOINCDIR QSOLIB COIN_HAS_QSO_TRUE COIN_HAS_QSO_FALSE IPOPT_LIBS IPOPT_CFLAGS IPOPT_DATA IPOPT_DEPENDENCIES IPOPT_LIBS_INSTALLED IPOPT_CFLAGS_INSTALLED IPOPT_DATA_INSTALLED COIN_HAS_IPOPT_TRUE COIN_HAS_IPOPT_FALSE COIN_HAS_ZLIB_TRUE COIN_HAS_ZLIB_FALSE LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_CXXDEFS_set=${CXXDEFS+set}
953ac_env_CXXDEFS_value=$CXXDEFS
954ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
955ac_cv_env_CXXDEFS_value=$CXXDEFS
956ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
957ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
958ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
959ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
960ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
961ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
962ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
963ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
964ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
965ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
966ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
967ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
968ac_env_CXX_set=${CXX+set}
969ac_env_CXX_value=$CXX
970ac_cv_env_CXX_set=${CXX+set}
971ac_cv_env_CXX_value=$CXX
972ac_env_CXXFLAGS_set=${CXXFLAGS+set}
973ac_env_CXXFLAGS_value=$CXXFLAGS
974ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
975ac_cv_env_CXXFLAGS_value=$CXXFLAGS
976ac_env_MPICXX_set=${MPICXX+set}
977ac_env_MPICXX_value=$MPICXX
978ac_cv_env_MPICXX_set=${MPICXX+set}
979ac_cv_env_MPICXX_value=$MPICXX
980ac_env_CPP_set=${CPP+set}
981ac_env_CPP_value=$CPP
982ac_cv_env_CPP_set=${CPP+set}
983ac_cv_env_CPP_value=$CPP
984ac_env_CXXCPP_set=${CXXCPP+set}
985ac_env_CXXCPP_value=$CXXCPP
986ac_cv_env_CXXCPP_set=${CXXCPP+set}
987ac_cv_env_CXXCPP_value=$CXXCPP
988ac_env_F77_set=${F77+set}
989ac_env_F77_value=$F77
990ac_cv_env_F77_set=${F77+set}
991ac_cv_env_F77_value=$F77
992ac_env_FFLAGS_set=${FFLAGS+set}
993ac_env_FFLAGS_value=$FFLAGS
994ac_cv_env_FFLAGS_set=${FFLAGS+set}
995ac_cv_env_FFLAGS_value=$FFLAGS
996ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
997ac_env_PKG_CONFIG_value=$PKG_CONFIG
998ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
999ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
1000
1001#
1002# Report the --help message.
1003#
1004if test "$ac_init_help" = "long"; then
1005  # Omit some internal or obsolete options to make the list less imposing.
1006  # This message is too long to be a string in the A/UX 3.1 sh.
1007  cat <<_ACEOF
1008\`configure' configures ThirdPartyScip 1.2 to adapt to many kinds of systems.
1009
1010Usage: $0 [OPTION]... [VAR=VALUE]...
1011
1012To assign environment variables (e.g., CC, CFLAGS...), specify them as
1013VAR=VALUE.  See below for descriptions of some of the useful variables.
1014
1015Defaults for the options are specified in brackets.
1016
1017Configuration:
1018  -h, --help              display this help and exit
1019      --help=short        display options specific to this package
1020      --help=recursive    display the short help of all the included packages
1021  -V, --version           display version information and exit
1022  -q, --quiet, --silent   do not print \`checking...' messages
1023      --cache-file=FILE   cache test results in FILE [disabled]
1024  -C, --config-cache      alias for \`--cache-file=config.cache'
1025  -n, --no-create         do not create output files
1026      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1027
1028_ACEOF
1029
1030  cat <<_ACEOF
1031Installation directories:
1032  --prefix=PREFIX         install architecture-independent files in PREFIX
1033                          [$ac_default_prefix]
1034  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1035                          [PREFIX]
1036
1037By default, \`make install' will install all the files in
1038\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1039an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1040for instance \`--prefix=\$HOME'.
1041
1042For better control, use the options below.
1043
1044Fine tuning of the installation directories:
1045  --bindir=DIR           user executables [EPREFIX/bin]
1046  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1047  --libexecdir=DIR       program executables [EPREFIX/libexec]
1048  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1049  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1050  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1051  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1052  --libdir=DIR           object code libraries [EPREFIX/lib]
1053  --includedir=DIR       C header files [PREFIX/include]
1054  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1055  --infodir=DIR          info documentation [PREFIX/info]
1056  --mandir=DIR           man documentation [PREFIX/man]
1057_ACEOF
1058
1059  cat <<\_ACEOF
1060
1061Program names:
1062  --program-prefix=PREFIX            prepend PREFIX to installed program names
1063  --program-suffix=SUFFIX            append SUFFIX to installed program names
1064  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1065
1066System types:
1067  --build=BUILD     configure for building on BUILD [guessed]
1068  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1069_ACEOF
1070fi
1071
1072if test -n "$ac_init_help"; then
1073  case $ac_init_help in
1074     short | recursive ) echo "Configuration of ThirdPartyScip 1.2:";;
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-scip-threadsafe
1115                          do not build SCIP threadsafe (default=auto)
1116  --disable-zlib          do not compile with compression library zlib
1117  --disable-gmp           do not compile with GNU multiple precision library
1118  --enable-gnu-packages   compile with GNU packages (disabled by default)
1119
1120Optional Packages:
1121  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1122  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1123  --with-scip-verbosity specify the debug verbosity level for project SCIP
1124  --with-scip-checklevel specify the sanity check level for project SCIP
1125  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1126  --with-pic              try to use only PIC/non-PIC objects [default=use
1127                          both]
1128  --with-tags[=TAGS]
1129                          include additional configurations [automatic]
1130  --with-coin-instdir     prefix of installation directory for precompiled
1131                          COIN packages
1132
1133  --with-soplex-lib linker flags for using package SoPlex
1134  --with-soplex-incdir directory with header files for using package SoPlex
1135  --with-soplex-datadir directory with data files for using package SoPlex
1136  --with-clp-lib linker flags for using package Clp
1137  --with-clp-incdir directory with header files for using package Clp
1138  --with-clp-datadir directory with data files for using package Clp
1139  --with-cplex-incdir specify the header file directory for library Cplex
1140  --with-cplex-lib specify the flags used to link with the library Cplex
1141  --with-mosek-incdir specify the header file directory for library Mosek
1142  --with-mosek-lib specify the flags used to link with the library Mosek
1143  --with-xpress-incdir specify the header file directory for library Xpress
1144  --with-xpress-lib specify the flags used to link with the library Xpress
1145  --with-gurobi-incdir specify the header file directory for library Gurobi
1146  --with-gurobi-lib specify the flags used to link with the library Gurobi
1147  --with-qsopt-incdir specify the header file directory for library QSopt
1148  --with-qsopt-lib specify the flags used to link with the library QSopt
1149  --with-scip-lpsolver    specify default LP solver to use in SCIP (soplex,
1150                          clp, cplex, mosek, xpress, gurobi, qsopt, none)
1151  --with-ipopt-lib linker flags for using package Ipopt
1152  --with-ipopt-incdir directory with header files for using package Ipopt
1153  --with-ipopt-datadir directory with data files for using package Ipopt
1154
1155Some influential environment variables:
1156  CDEFS       Additional -D flags to be used when compiling C code.
1157  ADD_CFLAGS  Additional C compiler options
1158  DBG_CFLAGS  Debug C compiler options
1159  OPT_CFLAGS  Optimize C compiler options
1160  CC          C compiler command
1161  CFLAGS      C compiler flags
1162  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1163              nonstandard directory <lib dir>
1164  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1165              headers in a nonstandard directory <include dir>
1166  MPICC       C MPI Compiler
1167  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1168  ADD_CXXFLAGS
1169              Additional C++ compiler options
1170  DBG_CXXFLAGS
1171              Debug C++ compiler options
1172  OPT_CXXFLAGS
1173              Optimize C++ compiler options
1174  CXX         C++ compiler command
1175  CXXFLAGS    C++ compiler flags
1176  MPICXX      C++ MPI Compiler
1177  CPP         C preprocessor
1178  CXXCPP      C++ preprocessor
1179  F77         Fortran 77 compiler command
1180  FFLAGS      Fortran 77 compiler flags
1181  PKG_CONFIG  path to pkg-config utility
1182
1183Use these variables to override the choices made by `configure' or to help
1184it to find libraries and programs with nonstandard names/locations.
1185
1186Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1187_ACEOF
1188fi
1189
1190if test "$ac_init_help" = "recursive"; then
1191  # If there are subdirs, report their specific --help.
1192  ac_popdir=`pwd`
1193  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1194    test -d $ac_dir || continue
1195    ac_builddir=.
1196
1197if test "$ac_dir" != .; then
1198  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1199  # A "../" for each directory in $ac_dir_suffix.
1200  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1201else
1202  ac_dir_suffix= ac_top_builddir=
1203fi
1204
1205case $srcdir in
1206  .)  # No --srcdir option.  We are building in place.
1207    ac_srcdir=.
1208    if test -z "$ac_top_builddir"; then
1209       ac_top_srcdir=.
1210    else
1211       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1212    fi ;;
1213  [\\/]* | ?:[\\/]* )  # Absolute path.
1214    ac_srcdir=$srcdir$ac_dir_suffix;
1215    ac_top_srcdir=$srcdir ;;
1216  *) # Relative path.
1217    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1218    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1219esac
1220
1221# Do not use `cd foo && pwd` to compute absolute paths, because
1222# the directories may not exist.
1223case `pwd` in
1224.) ac_abs_builddir="$ac_dir";;
1225*)
1226  case "$ac_dir" in
1227  .) ac_abs_builddir=`pwd`;;
1228  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1229  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1230  esac;;
1231esac
1232case $ac_abs_builddir in
1233.) ac_abs_top_builddir=${ac_top_builddir}.;;
1234*)
1235  case ${ac_top_builddir}. in
1236  .) ac_abs_top_builddir=$ac_abs_builddir;;
1237  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1238  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1239  esac;;
1240esac
1241case $ac_abs_builddir in
1242.) ac_abs_srcdir=$ac_srcdir;;
1243*)
1244  case $ac_srcdir in
1245  .) ac_abs_srcdir=$ac_abs_builddir;;
1246  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1247  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1248  esac;;
1249esac
1250case $ac_abs_builddir in
1251.) ac_abs_top_srcdir=$ac_top_srcdir;;
1252*)
1253  case $ac_top_srcdir in
1254  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1255  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1256  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1257  esac;;
1258esac
1259
1260    cd $ac_dir
1261    # Check for guested configure; otherwise get Cygnus style configure.
1262    if test -f $ac_srcdir/configure.gnu; then
1263      echo
1264      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1265    elif test -f $ac_srcdir/configure; then
1266      echo
1267      $SHELL $ac_srcdir/configure  --help=recursive
1268    elif test -f $ac_srcdir/configure.ac ||
1269           test -f $ac_srcdir/configure.in; then
1270      echo
1271      $ac_configure --help
1272    else
1273      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1274    fi
1275    cd $ac_popdir
1276  done
1277fi
1278
1279test -n "$ac_init_help" && exit 0
1280if $ac_init_version; then
1281  cat <<\_ACEOF
1282ThirdPartyScip configure 1.2
1283generated by GNU Autoconf 2.59
1284
1285Copyright (C) 2003 Free Software Foundation, Inc.
1286This configure script is free software; the Free Software Foundation
1287gives unlimited permission to copy, distribute and modify it.
1288
1289
1290Copyright 2011-2012 Stefan Vigerske and others.
1291All Rights Reserved.
1292This file is part of the open source package COIN-OR which is distributed
1293under the Eclipse Public License.
1294_ACEOF
1295  exit 0
1296fi
1297exec 5>config.log
1298cat >&5 <<_ACEOF
1299This file contains any messages produced by compilers while
1300running configure, to aid debugging if configure makes a mistake.
1301
1302It was created by ThirdPartyScip $as_me 1.2, which was
1303generated by GNU Autoconf 2.59.  Invocation command line was
1304
1305  $ $0 $@
1306
1307_ACEOF
1308{
1309cat <<_ASUNAME
1310## --------- ##
1311## Platform. ##
1312## --------- ##
1313
1314hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1315uname -m = `(uname -m) 2>/dev/null || echo unknown`
1316uname -r = `(uname -r) 2>/dev/null || echo unknown`
1317uname -s = `(uname -s) 2>/dev/null || echo unknown`
1318uname -v = `(uname -v) 2>/dev/null || echo unknown`
1319
1320/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1321/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1322
1323/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1324/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1325/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1326hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1327/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1328/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1329/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1330
1331_ASUNAME
1332
1333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1334for as_dir in $PATH
1335do
1336  IFS=$as_save_IFS
1337  test -z "$as_dir" && as_dir=.
1338  echo "PATH: $as_dir"
1339done
1340
1341} >&5
1342
1343cat >&5 <<_ACEOF
1344
1345
1346## ----------- ##
1347## Core tests. ##
1348## ----------- ##
1349
1350_ACEOF
1351
1352
1353# Keep a trace of the command line.
1354# Strip out --no-create and --no-recursion so they do not pile up.
1355# Strip out --silent because we don't want to record it for future runs.
1356# Also quote any args containing shell meta-characters.
1357# Make two passes to allow for proper duplicate-argument suppression.
1358ac_configure_args=
1359ac_configure_args0=
1360ac_configure_args1=
1361ac_sep=
1362ac_must_keep_next=false
1363for ac_pass in 1 2
1364do
1365  for ac_arg
1366  do
1367    case $ac_arg in
1368    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1369    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1370    | -silent | --silent | --silen | --sile | --sil)
1371      continue ;;
1372    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1373      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1374    esac
1375    case $ac_pass in
1376    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1377    2)
1378      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1379      if test $ac_must_keep_next = true; then
1380        ac_must_keep_next=false # Got value, back to normal.
1381      else
1382        case $ac_arg in
1383          *=* | --config-cache | -C | -disable-* | --disable-* \
1384          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1385          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1386          | -with-* | --with-* | -without-* | --without-* | --x)
1387            case "$ac_configure_args0 " in
1388              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1389            esac
1390            ;;
1391          -* ) ac_must_keep_next=true ;;
1392        esac
1393      fi
1394      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1395      # Get rid of the leading space.
1396      ac_sep=" "
1397      ;;
1398    esac
1399  done
1400done
1401$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1402$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1403
1404# When interrupted or exit'd, cleanup temporary files, and complete
1405# config.log.  We remove comments because anyway the quotes in there
1406# would cause problems or look ugly.
1407# WARNING: Be sure not to use single quotes in there, as some shells,
1408# such as our DU 5.0 friend, will then `close' the trap.
1409trap 'exit_status=$?
1410  # Save into config.log some information that might help in debugging.
1411  {
1412    echo
1413
1414    cat <<\_ASBOX
1415## ---------------- ##
1416## Cache variables. ##
1417## ---------------- ##
1418_ASBOX
1419    echo
1420    # The following way of writing the cache mishandles newlines in values,
1421{
1422  (set) 2>&1 |
1423    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1424    *ac_space=\ *)
1425      sed -n \
1426        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1427          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1428      ;;
1429    *)
1430      sed -n \
1431        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1432      ;;
1433    esac;
1434}
1435    echo
1436
1437    cat <<\_ASBOX
1438## ----------------- ##
1439## Output variables. ##
1440## ----------------- ##
1441_ASBOX
1442    echo
1443    for ac_var in $ac_subst_vars
1444    do
1445      eval ac_val=$`echo $ac_var`
1446      echo "$ac_var='"'"'$ac_val'"'"'"
1447    done | sort
1448    echo
1449
1450    if test -n "$ac_subst_files"; then
1451      cat <<\_ASBOX
1452## ------------- ##
1453## Output files. ##
1454## ------------- ##
1455_ASBOX
1456      echo
1457      for ac_var in $ac_subst_files
1458      do
1459        eval ac_val=$`echo $ac_var`
1460        echo "$ac_var='"'"'$ac_val'"'"'"
1461      done | sort
1462      echo
1463    fi
1464
1465    if test -s confdefs.h; then
1466      cat <<\_ASBOX
1467## ----------- ##
1468## confdefs.h. ##
1469## ----------- ##
1470_ASBOX
1471      echo
1472      sed "/^$/d" confdefs.h | sort
1473      echo
1474    fi
1475    test "$ac_signal" != 0 &&
1476      echo "$as_me: caught signal $ac_signal"
1477    echo "$as_me: exit $exit_status"
1478  } >&5
1479  rm -f core *.core &&
1480  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1481    exit $exit_status
1482     ' 0
1483for ac_signal in 1 2 13 15; do
1484  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1485done
1486ac_signal=0
1487
1488# confdefs.h avoids OS command line length limits that DEFS can exceed.
1489rm -rf conftest* confdefs.h
1490# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1491echo >confdefs.h
1492
1493# Predefined preprocessor variables.
1494
1495cat >>confdefs.h <<_ACEOF
1496#define PACKAGE_NAME "$PACKAGE_NAME"
1497_ACEOF
1498
1499
1500cat >>confdefs.h <<_ACEOF
1501#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1502_ACEOF
1503
1504
1505cat >>confdefs.h <<_ACEOF
1506#define PACKAGE_VERSION "$PACKAGE_VERSION"
1507_ACEOF
1508
1509
1510cat >>confdefs.h <<_ACEOF
1511#define PACKAGE_STRING "$PACKAGE_STRING"
1512_ACEOF
1513
1514
1515cat >>confdefs.h <<_ACEOF
1516#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1517_ACEOF
1518
1519
1520# Let the site file select an alternate cache file if it wants to.
1521# Prefer explicitly selected file to automatically selected ones.
1522if test -z "$CONFIG_SITE"; then
1523  if test "x$prefix" != xNONE; then
1524    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1525  else
1526    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1527  fi
1528fi
1529for ac_site_file in $CONFIG_SITE; do
1530  if test -r "$ac_site_file"; then
1531    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1532echo "$as_me: loading site script $ac_site_file" >&6;}
1533    sed 's/^/| /' "$ac_site_file" >&5
1534    . "$ac_site_file"
1535  fi
1536done
1537
1538if test -r "$cache_file"; then
1539  # Some versions of bash will fail to source /dev/null (special
1540  # files actually), so we avoid doing that.
1541  if test -f "$cache_file"; then
1542    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1543echo "$as_me: loading cache $cache_file" >&6;}
1544    case $cache_file in
1545      [\\/]* | ?:[\\/]* ) . $cache_file;;
1546      *)                      . ./$cache_file;;
1547    esac
1548  fi
1549else
1550  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1551echo "$as_me: creating cache $cache_file" >&6;}
1552  >$cache_file
1553fi
1554
1555# Check that the precious variables saved in the cache have kept the same
1556# value.
1557ac_cache_corrupted=false
1558for ac_var in `(set) 2>&1 |
1559               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1560  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1561  eval ac_new_set=\$ac_env_${ac_var}_set
1562  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1563  eval ac_new_val="\$ac_env_${ac_var}_value"
1564  case $ac_old_set,$ac_new_set in
1565    set,)
1566      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1567echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1568      ac_cache_corrupted=: ;;
1569    ,set)
1570      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1571echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1572      ac_cache_corrupted=: ;;
1573    ,);;
1574    *)
1575      if test "x$ac_old_val" != "x$ac_new_val"; then
1576        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1577echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1578        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1579echo "$as_me:   former value:  $ac_old_val" >&2;}
1580        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1581echo "$as_me:   current value: $ac_new_val" >&2;}
1582        ac_cache_corrupted=:
1583      fi;;
1584  esac
1585  # Pass precious variables to config.status.
1586  if test "$ac_new_set" = set; then
1587    case $ac_new_val in
1588    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1589      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1590    *) ac_arg=$ac_var=$ac_new_val ;;
1591    esac
1592    case " $ac_configure_args " in
1593      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1594      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1595    esac
1596  fi
1597done
1598if $ac_cache_corrupted; then
1599  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1600echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1601  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1602echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1603   { (exit 1); exit 1; }; }
1604fi
1605
1606ac_ext=c
1607ac_cpp='$CPP $CPPFLAGS'
1608ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1609ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1610ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1640
1641# List one file in the package so that the configure script can test
1642# whether the package is actually there
1643
1644
1645# Where should everything be installed by default?  Here, we want it
1646# to be installed directly in 'bin', 'lib', 'include' subdirectories
1647# of the directory where configure is run.  The default would be
1648# /usr/local.
1649
1650
1651
1652# As backup, we make sure we don't loose an FLIBS if it has been set
1653# by the user
1654save_FLIBS="$FLIBS"
1655
1656# A useful makefile conditional that is always false
1657
1658
1659if false; then
1660  ALWAYS_FALSE_TRUE=
1661  ALWAYS_FALSE_FALSE='#'
1662else
1663  ALWAYS_FALSE_TRUE='#'
1664  ALWAYS_FALSE_FALSE=
1665fi
1666
1667
1668# We set the following variable so that we know later in AC_COIN_FINALIZE
1669# that we are in a project main directory
1670coin_projectdir=yes
1671
1672# Set the project's version numbers
1673
1674
1675cat >>confdefs.h <<_ACEOF
1676#define SCIP_VERSION "$PACKAGE_VERSION"
1677_ACEOF
1678
1679
1680  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1681  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1682  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1683  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1684  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1685  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1686
1687cat >>confdefs.h <<_ACEOF
1688#define SCIP_VERSION_MAJOR $coin_majorver
1689_ACEOF
1690
1691
1692cat >>confdefs.h <<_ACEOF
1693#define SCIP_VERSION_MINOR $coin_minorver
1694_ACEOF
1695
1696
1697cat >>confdefs.h <<_ACEOF
1698#define SCIP_VERSION_RELEASE $coin_releasever
1699_ACEOF
1700
1701
1702  # We use the following variable to have a string with the upper case
1703  # version of the project name
1704  COIN_PRJCT=SCIP
1705
1706  # Set the project's SVN revision number. The complicated sed expression
1707  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1708  # as a single number.
1709  # Extract the first word of "svnversion", so it can be a program name with args.
1710set dummy svnversion; ac_word=$2
1711echo "$as_me:$LINENO: checking for $ac_word" >&5
1712echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1713if test "${ac_cv_prog_have_svnversion+set}" = set; then
1714  echo $ECHO_N "(cached) $ECHO_C" >&6
1715else
1716  if test -n "$have_svnversion"; then
1717  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1718else
1719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1720for as_dir in $PATH
1721do
1722  IFS=$as_save_IFS
1723  test -z "$as_dir" && as_dir=.
1724  for ac_exec_ext in '' $ac_executable_extensions; do
1725  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1726    ac_cv_prog_have_svnversion="yes"
1727    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1728    break 2
1729  fi
1730done
1731done
1732
1733  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1734fi
1735fi
1736have_svnversion=$ac_cv_prog_have_svnversion
1737if test -n "$have_svnversion"; then
1738  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1739echo "${ECHO_T}$have_svnversion" >&6
1740else
1741  echo "$as_me:$LINENO: result: no" >&5
1742echo "${ECHO_T}no" >&6
1743fi
1744
1745  if test "x$have_svnversion" = xyes; then
1746
1747    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1748    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
1749      SCIP_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1750
1751cat >>confdefs.h <<_ACEOF
1752#define SCIP_SVN_REV $SCIP_SVN_REV
1753_ACEOF
1754
1755    fi
1756  fi
1757
1758
1759
1760# Capture libtool library version, if given.
1761
1762
1763
1764
1765#############################################################################
1766#                         Standard build tool stuff                         #
1767#############################################################################
1768
1769# Get the system type
1770ac_aux_dir=
1771for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1772  if test -f $ac_dir/install-sh; then
1773    ac_aux_dir=$ac_dir
1774    ac_install_sh="$ac_aux_dir/install-sh -c"
1775    break
1776  elif test -f $ac_dir/install.sh; then
1777    ac_aux_dir=$ac_dir
1778    ac_install_sh="$ac_aux_dir/install.sh -c"
1779    break
1780  elif test -f $ac_dir/shtool; then
1781    ac_aux_dir=$ac_dir
1782    ac_install_sh="$ac_aux_dir/shtool install -c"
1783    break
1784  fi
1785done
1786if test -z "$ac_aux_dir"; then
1787  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1788echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1789   { (exit 1); exit 1; }; }
1790fi
1791ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1792ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1793ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1794
1795# Make sure we can run config.sub.
1796$ac_config_sub sun4 >/dev/null 2>&1 ||
1797  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1798echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1799   { (exit 1); exit 1; }; }
1800
1801echo "$as_me:$LINENO: checking build system type" >&5
1802echo $ECHO_N "checking build system type... $ECHO_C" >&6
1803if test "${ac_cv_build+set}" = set; then
1804  echo $ECHO_N "(cached) $ECHO_C" >&6
1805else
1806  ac_cv_build_alias=$build_alias
1807test -z "$ac_cv_build_alias" &&
1808  ac_cv_build_alias=`$ac_config_guess`
1809test -z "$ac_cv_build_alias" &&
1810  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1811echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1812   { (exit 1); exit 1; }; }
1813ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1814  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1815echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1816   { (exit 1); exit 1; }; }
1817
1818fi
1819echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1820echo "${ECHO_T}$ac_cv_build" >&6
1821build=$ac_cv_build
1822build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1823build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1824build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1825
1826
1827
1828# Check if user wants to produce debugging code
1829
1830echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1831echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1832
1833# Check whether --enable-debug or --disable-debug was given.
1834if test "${enable_debug+set}" = set; then
1835  enableval="$enable_debug"
1836  case "${enableval}" in
1837   yes) coin_debug_compile=true
1838        if test "${enable_shared+set}" = set; then :; else
1839          enable_shared=no
1840        fi
1841        ;;
1842   no)  coin_debug_compile=false
1843        ;;
1844   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1845echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1846   { (exit 1); exit 1; }; }
1847        ;;
1848esac
1849else
1850  coin_debug_compile=false
1851fi;
1852
1853# Check whether --enable-debug-scip or --disable-debug-scip was given.
1854if test "${enable_debug_scip+set}" = set; then
1855  enableval="$enable_debug_scip"
1856  case "${enableval}" in
1857    yes) coin_debug_compile=true
1858         ;;
1859    no)  coin_debug_compile=false
1860         ;;
1861    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-scip" >&5
1862echo "$as_me: error: bad value ${enableval} for --enable-debug-scip" >&2;}
1863   { (exit 1); exit 1; }; }
1864         ;;
1865 esac
1866else
1867  :
1868fi;
1869
1870 # m4_ifvaln([SCIP],
1871
1872if test $coin_debug_compile = true; then
1873  echo "$as_me:$LINENO: result: yes" >&5
1874echo "${ECHO_T}yes" >&6
1875else
1876  echo "$as_me:$LINENO: result: no" >&5
1877echo "${ECHO_T}no" >&6
1878fi
1879
1880
1881# Check whether --with-scip-verbosity or --without-scip-verbosity was given.
1882if test "${with_scip_verbosity+set}" = set; then
1883  withval="$with_scip_verbosity"
1884  if test "$withval" = yes; then
1885                withval=1
1886              fi
1887              coin_scip_verbosity=$withval
1888else
1889  coin_scip_verbosity=0
1890fi;
1891
1892cat >>confdefs.h <<_ACEOF
1893#define COIN_SCIP_VERBOSITY $coin_scip_verbosity
1894_ACEOF
1895
1896
1897
1898# Check whether --with-scip-checklevel or --without-scip-checklevel was given.
1899if test "${with_scip_checklevel+set}" = set; then
1900  withval="$with_scip_checklevel"
1901  if test "$withval" = yes; then
1902                withval=1
1903              fi
1904              coin_scip_checklevel=$withval
1905else
1906  coin_scip_checklevel=0
1907fi;
1908
1909cat >>confdefs.h <<_ACEOF
1910#define COIN_SCIP_CHECKLEVEL $coin_scip_checklevel
1911_ACEOF
1912
1913
1914 # m4_ifvaln([SCIP],
1915
1916
1917
1918# Get the name of the C compiler and appropriate compiler options
1919case $build in
1920  *-mingw*)
1921    if test "${LD+set}" = set; then :; else
1922      LD=link
1923    fi
1924    ;;
1925 esac
1926 case $enable_doscompile in
1927   msvc)
1928     if test "x${LD+set}" = xset; then :; else
1929       LD=link
1930     fi
1931     ;;
1932 esac
1933
1934
1935 # Check whether --enable-doscompile or --disable-doscompile was given.
1936if test "${enable_doscompile+set}" = set; then
1937  enableval="$enable_doscompile"
1938  if test "$enable_doscompile" != no; then
1939     case $build in
1940       *-cygwin* | *-mingw*) ;;
1941       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1942echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1943   { (exit 1); exit 1; }; } ;;
1944     esac
1945   fi
1946else
1947  enable_doscompile=no
1948fi;
1949 case "$enable_doscompile" in
1950   mingw)
1951     case $build in
1952       *-mingw*) enable_doscompile=no ;;
1953     esac
1954     ;;
1955   msvc|no) ;;
1956   yes) enable_doscompile=mingw ;;
1957   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1958                    Try configure --help=recursive." >&5
1959echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1960                    Try configure --help=recursive." >&2;}
1961   { (exit 1); exit 1; }; }
1962      ;;
1963  esac
1964  if test "$enable_doscompile" != no ; then
1965    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1966echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1967  fi
1968
1969
1970
1971
1972ac_ext=c
1973ac_cpp='$CPP $CPPFLAGS'
1974ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1975ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1976ac_compiler_gnu=$ac_cv_c_compiler_gnu
1977
1978
1979# For consistency, we set the C compiler to the same value of the C++
1980# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1981if test x"$CXX" != x; then
1982  case "$CXX" in
1983    clang* ) ;;
1984    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1985      if test x"$CC" = x; then
1986        CC="$CXX"
1987        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1988echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1989      fi
1990      ;;
1991  esac
1992fi
1993
1994
1995
1996
1997
1998
1999coin_has_cc=yes
2000
2001save_cflags="$CFLAGS"
2002
2003# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
2004# Depending on the user's PATH, when Studio/Workshop cc is not present we may
2005# find /usr/ucb/cc, which is almost certainly not a good choice for the C
2006# compiler. In this case, put cc after gcc.
2007
2008case $build in
2009  *-cygwin* | *-mingw*)
2010             if test "$enable_doscompile" = msvc ; then
2011               comps="icl cl"
2012             else
2013               comps="gcc cl"
2014             fi ;;
2015  *-*-solaris*)
2016             # Extract the first word of "cc", so it can be a program name with args.
2017set dummy cc; ac_word=$2
2018echo "$as_me:$LINENO: checking for $ac_word" >&5
2019echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2020if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
2021  echo $ECHO_N "(cached) $ECHO_C" >&6
2022else
2023  if test -n "$sol_cc_compiler"; then
2024  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
2025else
2026  ac_prog_rejected=no
2027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2028for as_dir in $PATH
2029do
2030  IFS=$as_save_IFS
2031  test -z "$as_dir" && as_dir=.
2032  for ac_exec_ext in '' $ac_executable_extensions; do
2033  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2034    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2035       ac_prog_rejected=yes
2036       continue
2037     fi
2038    ac_cv_prog_sol_cc_compiler="cc"
2039    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2040    break 2
2041  fi
2042done
2043done
2044
2045if test $ac_prog_rejected = yes; then
2046  # We found a bogon in the path, so make sure we never use it.
2047  set dummy $ac_cv_prog_sol_cc_compiler
2048  shift
2049  if test $# != 0; then
2050    # We chose a different compiler from the bogus one.
2051    # However, it has the same basename, so the bogon will be chosen
2052    # first if we set sol_cc_compiler to just the basename; use the full file name.
2053    shift
2054    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2055  fi
2056fi
2057fi
2058fi
2059sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2060if test -n "$sol_cc_compiler"; then
2061  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2062echo "${ECHO_T}$sol_cc_compiler" >&6
2063else
2064  echo "$as_me:$LINENO: result: no" >&5
2065echo "${ECHO_T}no" >&6
2066fi
2067
2068             if test "$sol_cc_compiler" = "cc" ; then
2069               comps="cc xlc gcc pgcc icc"
2070             else
2071               comps="xlc gcc pgcc icc cc"
2072             fi
2073             ;;
2074  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2075  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2076  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2077esac
2078
2079# We delete the cached value, since the test might not have been
2080# performed with our choice of compilers earlier
2081$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2082# AC_MSG_NOTICE([C compiler candidates: $comps])
2083ac_ext=c
2084ac_cpp='$CPP $CPPFLAGS'
2085ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2086ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2087ac_compiler_gnu=$ac_cv_c_compiler_gnu
2088if test -n "$ac_tool_prefix"; then
2089  for ac_prog in $comps
2090  do
2091    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2092set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2093echo "$as_me:$LINENO: checking for $ac_word" >&5
2094echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2095if test "${ac_cv_prog_CC+set}" = set; then
2096  echo $ECHO_N "(cached) $ECHO_C" >&6
2097else
2098  if test -n "$CC"; then
2099  ac_cv_prog_CC="$CC" # Let the user override the test.
2100else
2101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2102for as_dir in $PATH
2103do
2104  IFS=$as_save_IFS
2105  test -z "$as_dir" && as_dir=.
2106  for ac_exec_ext in '' $ac_executable_extensions; do
2107  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2108    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2109    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2110    break 2
2111  fi
2112done
2113done
2114
2115fi
2116fi
2117CC=$ac_cv_prog_CC
2118if test -n "$CC"; then
2119  echo "$as_me:$LINENO: result: $CC" >&5
2120echo "${ECHO_T}$CC" >&6
2121else
2122  echo "$as_me:$LINENO: result: no" >&5
2123echo "${ECHO_T}no" >&6
2124fi
2125
2126    test -n "$CC" && break
2127  done
2128fi
2129if test -z "$CC"; then
2130  ac_ct_CC=$CC
2131  for ac_prog in $comps
2132do
2133  # Extract the first word of "$ac_prog", so it can be a program name with args.
2134set dummy $ac_prog; ac_word=$2
2135echo "$as_me:$LINENO: checking for $ac_word" >&5
2136echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2137if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2138  echo $ECHO_N "(cached) $ECHO_C" >&6
2139else
2140  if test -n "$ac_ct_CC"; then
2141  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2142else
2143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2144for as_dir in $PATH
2145do
2146  IFS=$as_save_IFS
2147  test -z "$as_dir" && as_dir=.
2148  for ac_exec_ext in '' $ac_executable_extensions; do
2149  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2150    ac_cv_prog_ac_ct_CC="$ac_prog"
2151    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2152    break 2
2153  fi
2154done
2155done
2156
2157fi
2158fi
2159ac_ct_CC=$ac_cv_prog_ac_ct_CC
2160if test -n "$ac_ct_CC"; then
2161  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2162echo "${ECHO_T}$ac_ct_CC" >&6
2163else
2164  echo "$as_me:$LINENO: result: no" >&5
2165echo "${ECHO_T}no" >&6
2166fi
2167
2168  test -n "$ac_ct_CC" && break
2169done
2170
2171  CC=$ac_ct_CC
2172fi
2173
2174
2175test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2176See \`config.log' for more details." >&5
2177echo "$as_me: error: no acceptable C compiler found in \$PATH
2178See \`config.log' for more details." >&2;}
2179   { (exit 1); exit 1; }; }
2180
2181# Provide some information about the compiler.
2182echo "$as_me:$LINENO:" \
2183     "checking for C compiler version" >&5
2184ac_compiler=`set X $ac_compile; echo $2`
2185{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2186  (eval $ac_compiler --version </dev/null >&5) 2>&5
2187  ac_status=$?
2188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189  (exit $ac_status); }
2190{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2191  (eval $ac_compiler -v </dev/null >&5) 2>&5
2192  ac_status=$?
2193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2194  (exit $ac_status); }
2195{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2196  (eval $ac_compiler -V </dev/null >&5) 2>&5
2197  ac_status=$?
2198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2199  (exit $ac_status); }
2200
2201cat >conftest.$ac_ext <<_ACEOF
2202/* confdefs.h.  */
2203_ACEOF
2204cat confdefs.h >>conftest.$ac_ext
2205cat >>conftest.$ac_ext <<_ACEOF
2206/* end confdefs.h.  */
2207
2208int
2209main ()
2210{
2211
2212  ;
2213  return 0;
2214}
2215_ACEOF
2216ac_clean_files_save=$ac_clean_files
2217ac_clean_files="$ac_clean_files a.out a.exe b.out"
2218# Try to create an executable without -o first, disregard a.out.
2219# It will help us diagnose broken compilers, and finding out an intuition
2220# of exeext.
2221echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2222echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2223ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2224if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2225  (eval $ac_link_default) 2>&5
2226  ac_status=$?
2227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228  (exit $ac_status); }; then
2229  # Find the output, starting from the most likely.  This scheme is
2230# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2231# resort.
2232
2233# Be careful to initialize this variable, since it used to be cached.
2234# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2235ac_cv_exeext=
2236# b.out is created by i960 compilers.
2237for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2238do
2239  test -f "$ac_file" || continue
2240  case $ac_file in
2241    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2242        ;;
2243    conftest.$ac_ext )
2244        # This is the source file.
2245        ;;
2246    [ab].out )
2247        # We found the default executable, but exeext='' is most
2248        # certainly right.
2249        break;;
2250    *.* )
2251        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2252        # FIXME: I believe we export ac_cv_exeext for Libtool,
2253        # but it would be cool to find out if it's true.  Does anybody
2254        # maintain Libtool? --akim.
2255        export ac_cv_exeext
2256        break;;
2257    * )
2258        break;;
2259  esac
2260done
2261else
2262  echo "$as_me: failed program was:" >&5
2263sed 's/^/| /' conftest.$ac_ext >&5
2264
2265{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2266See \`config.log' for more details." >&5
2267echo "$as_me: error: C compiler cannot create executables
2268See \`config.log' for more details." >&2;}
2269   { (exit 77); exit 77; }; }
2270fi
2271
2272ac_exeext=$ac_cv_exeext
2273echo "$as_me:$LINENO: result: $ac_file" >&5
2274echo "${ECHO_T}$ac_file" >&6
2275
2276# Check the compiler produces executables we can run.  If not, either
2277# the compiler is broken, or we cross compile.
2278echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2279echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2280# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2281# If not cross compiling, check that we can run a simple program.
2282if test "$cross_compiling" != yes; then
2283  if { ac_try='./$ac_file'
2284  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2285  (eval $ac_try) 2>&5
2286  ac_status=$?
2287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288  (exit $ac_status); }; }; then
2289    cross_compiling=no
2290  else
2291    if test "$cross_compiling" = maybe; then
2292        cross_compiling=yes
2293    else
2294        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2295If you meant to cross compile, use \`--host'.
2296See \`config.log' for more details." >&5
2297echo "$as_me: error: cannot run C compiled programs.
2298If you meant to cross compile, use \`--host'.
2299See \`config.log' for more details." >&2;}
2300   { (exit 1); exit 1; }; }
2301    fi
2302  fi
2303fi
2304echo "$as_me:$LINENO: result: yes" >&5
2305echo "${ECHO_T}yes" >&6
2306
2307rm -f a.out a.exe conftest$ac_cv_exeext b.out
2308ac_clean_files=$ac_clean_files_save
2309# Check the compiler produces executables we can run.  If not, either
2310# the compiler is broken, or we cross compile.
2311echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2312echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2313echo "$as_me:$LINENO: result: $cross_compiling" >&5
2314echo "${ECHO_T}$cross_compiling" >&6
2315
2316echo "$as_me:$LINENO: checking for suffix of executables" >&5
2317echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2318if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2319  (eval $ac_link) 2>&5
2320  ac_status=$?
2321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322  (exit $ac_status); }; then
2323  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2324# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2325# work properly (i.e., refer to `conftest.exe'), while it won't with
2326# `rm'.
2327for ac_file in conftest.exe conftest conftest.*; do
2328  test -f "$ac_file" || continue
2329  case $ac_file in
2330    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2331    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2332          export ac_cv_exeext
2333          break;;
2334    * ) break;;
2335  esac
2336done
2337else
2338  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2339See \`config.log' for more details." >&5
2340echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2341See \`config.log' for more details." >&2;}
2342   { (exit 1); exit 1; }; }
2343fi
2344
2345rm -f conftest$ac_cv_exeext
2346echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2347echo "${ECHO_T}$ac_cv_exeext" >&6
2348
2349rm -f conftest.$ac_ext
2350EXEEXT=$ac_cv_exeext
2351ac_exeext=$EXEEXT
2352echo "$as_me:$LINENO: checking for suffix of object files" >&5
2353echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2354if test "${ac_cv_objext+set}" = set; then
2355  echo $ECHO_N "(cached) $ECHO_C" >&6
2356else
2357  cat >conftest.$ac_ext <<_ACEOF
2358/* confdefs.h.  */
2359_ACEOF
2360cat confdefs.h >>conftest.$ac_ext
2361cat >>conftest.$ac_ext <<_ACEOF
2362/* end confdefs.h.  */
2363
2364int
2365main ()
2366{
2367
2368  ;
2369  return 0;
2370}
2371_ACEOF
2372rm -f conftest.o conftest.obj
2373if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2374  (eval $ac_compile) 2>&5
2375  ac_status=$?
2376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377  (exit $ac_status); }; then
2378  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2379  case $ac_file in
2380    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2381    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2382       break;;
2383  esac
2384done
2385else
2386  echo "$as_me: failed program was:" >&5
2387sed 's/^/| /' conftest.$ac_ext >&5
2388
2389{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2390See \`config.log' for more details." >&5
2391echo "$as_me: error: cannot compute suffix of object files: cannot compile
2392See \`config.log' for more details." >&2;}
2393   { (exit 1); exit 1; }; }
2394fi
2395
2396rm -f conftest.$ac_cv_objext conftest.$ac_ext
2397fi
2398echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2399echo "${ECHO_T}$ac_cv_objext" >&6
2400OBJEXT=$ac_cv_objext
2401ac_objext=$OBJEXT
2402echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2403echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2404if test "${ac_cv_c_compiler_gnu+set}" = set; then
2405  echo $ECHO_N "(cached) $ECHO_C" >&6
2406else
2407  cat >conftest.$ac_ext <<_ACEOF
2408/* confdefs.h.  */
2409_ACEOF
2410cat confdefs.h >>conftest.$ac_ext
2411cat >>conftest.$ac_ext <<_ACEOF
2412/* end confdefs.h.  */
2413
2414int
2415main ()
2416{
2417#ifndef __GNUC__
2418       choke me
2419#endif
2420
2421  ;
2422  return 0;
2423}
2424_ACEOF
2425rm -f conftest.$ac_objext
2426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2427  (eval $ac_compile) 2>conftest.er1
2428  ac_status=$?
2429  grep -v '^ *+' conftest.er1 >conftest.err
2430  rm -f conftest.er1
2431  cat conftest.err >&5
2432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433  (exit $ac_status); } &&
2434         { ac_try='test -z "$ac_c_werror_flag"
2435                         || test ! -s conftest.err'
2436  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2437  (eval $ac_try) 2>&5
2438  ac_status=$?
2439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440  (exit $ac_status); }; } &&
2441         { ac_try='test -s conftest.$ac_objext'
2442  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2443  (eval $ac_try) 2>&5
2444  ac_status=$?
2445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446  (exit $ac_status); }; }; then
2447  ac_compiler_gnu=yes
2448else
2449  echo "$as_me: failed program was:" >&5
2450sed 's/^/| /' conftest.$ac_ext >&5
2451
2452ac_compiler_gnu=no
2453fi
2454rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2455ac_cv_c_compiler_gnu=$ac_compiler_gnu
2456
2457fi
2458echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2459echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2460GCC=`test $ac_compiler_gnu = yes && echo yes`
2461ac_test_CFLAGS=${CFLAGS+set}
2462ac_save_CFLAGS=$CFLAGS
2463CFLAGS="-g"
2464echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2465echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2466if test "${ac_cv_prog_cc_g+set}" = set; then
2467  echo $ECHO_N "(cached) $ECHO_C" >&6
2468else
2469  cat >conftest.$ac_ext <<_ACEOF
2470/* confdefs.h.  */
2471_ACEOF
2472cat confdefs.h >>conftest.$ac_ext
2473cat >>conftest.$ac_ext <<_ACEOF
2474/* end confdefs.h.  */
2475
2476int
2477main ()
2478{
2479
2480  ;
2481  return 0;
2482}
2483_ACEOF
2484rm -f conftest.$ac_objext
2485if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2486  (eval $ac_compile) 2>conftest.er1
2487  ac_status=$?
2488  grep -v '^ *+' conftest.er1 >conftest.err
2489  rm -f conftest.er1
2490  cat conftest.err >&5
2491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492  (exit $ac_status); } &&
2493         { ac_try='test -z "$ac_c_werror_flag"
2494                         || test ! -s conftest.err'
2495  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2496  (eval $ac_try) 2>&5
2497  ac_status=$?
2498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499  (exit $ac_status); }; } &&
2500         { ac_try='test -s conftest.$ac_objext'
2501  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2502  (eval $ac_try) 2>&5
2503  ac_status=$?
2504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505  (exit $ac_status); }; }; then
2506  ac_cv_prog_cc_g=yes
2507else
2508  echo "$as_me: failed program was:" >&5
2509sed 's/^/| /' conftest.$ac_ext >&5
2510
2511ac_cv_prog_cc_g=no
2512fi
2513rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2514fi
2515echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2516echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2517if test "$ac_test_CFLAGS" = set; then
2518  CFLAGS=$ac_save_CFLAGS
2519elif test $ac_cv_prog_cc_g = yes; then
2520  if test "$GCC" = yes; then
2521    CFLAGS="-g -O2"
2522  else
2523    CFLAGS="-g"
2524  fi
2525else
2526  if test "$GCC" = yes; then
2527    CFLAGS="-O2"
2528  else
2529    CFLAGS=
2530  fi
2531fi
2532echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2533echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2534if test "${ac_cv_prog_cc_stdc+set}" = set; then
2535  echo $ECHO_N "(cached) $ECHO_C" >&6
2536else
2537  ac_cv_prog_cc_stdc=no
2538ac_save_CC=$CC
2539cat >conftest.$ac_ext <<_ACEOF
2540/* confdefs.h.  */
2541_ACEOF
2542cat confdefs.h >>conftest.$ac_ext
2543cat >>conftest.$ac_ext <<_ACEOF
2544/* end confdefs.h.  */
2545#include <stdarg.h>
2546#include <stdio.h>
2547#include <sys/types.h>
2548#include <sys/stat.h>
2549/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2550struct buf { int x; };
2551FILE * (*rcsopen) (struct buf *, struct stat *, int);
2552static char *e (p, i)
2553     char **p;
2554     int i;
2555{
2556  return p[i];
2557}
2558static char *f (char * (*g) (char **, int), char **p, ...)
2559{
2560  char *s;
2561  va_list v;
2562  va_start (v,p);
2563  s = g (p, va_arg (v,int));
2564  va_end (v);
2565  return s;
2566}
2567
2568/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2569   function prototypes and stuff, but not '\xHH' hex character constants.
2570   These don't provoke an error unfortunately, instead are silently treated
2571   as 'x'.  The following induces an error, until -std1 is added to get
2572   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2573   array size at least.  It's necessary to write '\x00'==0 to get something
2574   that's true only with -std1.  */
2575int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2576
2577int test (int i, double x);
2578struct s1 {int (*f) (int a);};
2579struct s2 {int (*f) (double a);};
2580int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2581int argc;
2582char **argv;
2583int
2584main ()
2585{
2586return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2587  ;
2588  return 0;
2589}
2590_ACEOF
2591# Don't try gcc -ansi; that turns off useful extensions and
2592# breaks some systems' header files.
2593# AIX                   -qlanglvl=ansi
2594# Ultrix and OSF/1      -std1
2595# HP-UX 10.20 and later -Ae
2596# HP-UX older versions  -Aa -D_HPUX_SOURCE
2597# SVR4                  -Xc -D__EXTENSIONS__
2598for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2599do
2600  CC="$ac_save_CC $ac_arg"
2601  rm -f conftest.$ac_objext
2602if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2603  (eval $ac_compile) 2>conftest.er1
2604  ac_status=$?
2605  grep -v '^ *+' conftest.er1 >conftest.err
2606  rm -f conftest.er1
2607  cat conftest.err >&5
2608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609  (exit $ac_status); } &&
2610         { ac_try='test -z "$ac_c_werror_flag"
2611                         || test ! -s conftest.err'
2612  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2613  (eval $ac_try) 2>&5
2614  ac_status=$?
2615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616  (exit $ac_status); }; } &&
2617         { ac_try='test -s conftest.$ac_objext'
2618  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2619  (eval $ac_try) 2>&5
2620  ac_status=$?
2621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622  (exit $ac_status); }; }; then
2623  ac_cv_prog_cc_stdc=$ac_arg
2624break
2625else
2626  echo "$as_me: failed program was:" >&5
2627sed 's/^/| /' conftest.$ac_ext >&5
2628
2629fi
2630rm -f conftest.err conftest.$ac_objext
2631done
2632rm -f conftest.$ac_ext conftest.$ac_objext
2633CC=$ac_save_CC
2634
2635fi
2636
2637case "x$ac_cv_prog_cc_stdc" in
2638  x|xno)
2639    echo "$as_me:$LINENO: result: none needed" >&5
2640echo "${ECHO_T}none needed" >&6 ;;
2641  *)
2642    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2643echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2644    CC="$CC $ac_cv_prog_cc_stdc" ;;
2645esac
2646
2647# Some people use a C++ compiler to compile C.  Since we use `exit',
2648# in C++ we need to declare it.  In case someone uses the same compiler
2649# for both compiling C and C++ we need to have the C++ compiler decide
2650# the declaration of exit, since it's the most demanding environment.
2651cat >conftest.$ac_ext <<_ACEOF
2652#ifndef __cplusplus
2653  choke me
2654#endif
2655_ACEOF
2656rm -f conftest.$ac_objext
2657if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2658  (eval $ac_compile) 2>conftest.er1
2659  ac_status=$?
2660  grep -v '^ *+' conftest.er1 >conftest.err
2661  rm -f conftest.er1
2662  cat conftest.err >&5
2663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664  (exit $ac_status); } &&
2665         { ac_try='test -z "$ac_c_werror_flag"
2666                         || test ! -s conftest.err'
2667  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2668  (eval $ac_try) 2>&5
2669  ac_status=$?
2670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671  (exit $ac_status); }; } &&
2672         { ac_try='test -s conftest.$ac_objext'
2673  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2674  (eval $ac_try) 2>&5
2675  ac_status=$?
2676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677  (exit $ac_status); }; }; then
2678  for ac_declaration in \
2679   '' \
2680   'extern "C" void std::exit (int) throw (); using std::exit;' \
2681   'extern "C" void std::exit (int); using std::exit;' \
2682   'extern "C" void exit (int) throw ();' \
2683   'extern "C" void exit (int);' \
2684   'void exit (int);'
2685do
2686  cat >conftest.$ac_ext <<_ACEOF
2687/* confdefs.h.  */
2688_ACEOF
2689cat confdefs.h >>conftest.$ac_ext
2690cat >>conftest.$ac_ext <<_ACEOF
2691/* end confdefs.h.  */
2692$ac_declaration
2693#include <stdlib.h>
2694int
2695main ()
2696{
2697exit (42);
2698  ;
2699  return 0;
2700}
2701_ACEOF
2702rm -f conftest.$ac_objext
2703if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2704  (eval $ac_compile) 2>conftest.er1
2705  ac_status=$?
2706  grep -v '^ *+' conftest.er1 >conftest.err
2707  rm -f conftest.er1
2708  cat conftest.err >&5
2709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710  (exit $ac_status); } &&
2711         { ac_try='test -z "$ac_c_werror_flag"
2712                         || test ! -s conftest.err'
2713  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2714  (eval $ac_try) 2>&5
2715  ac_status=$?
2716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717  (exit $ac_status); }; } &&
2718         { ac_try='test -s conftest.$ac_objext'
2719  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2720  (eval $ac_try) 2>&5
2721  ac_status=$?
2722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723  (exit $ac_status); }; }; then
2724  :
2725else
2726  echo "$as_me: failed program was:" >&5
2727sed 's/^/| /' conftest.$ac_ext >&5
2728
2729continue
2730fi
2731rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2732  cat >conftest.$ac_ext <<_ACEOF
2733/* confdefs.h.  */
2734_ACEOF
2735cat confdefs.h >>conftest.$ac_ext
2736cat >>conftest.$ac_ext <<_ACEOF
2737/* end confdefs.h.  */
2738$ac_declaration
2739int
2740main ()
2741{
2742exit (42);
2743  ;
2744  return 0;
2745}
2746_ACEOF
2747rm -f conftest.$ac_objext
2748if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2749  (eval $ac_compile) 2>conftest.er1
2750  ac_status=$?
2751  grep -v '^ *+' conftest.er1 >conftest.err
2752  rm -f conftest.er1
2753  cat conftest.err >&5
2754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755  (exit $ac_status); } &&
2756         { ac_try='test -z "$ac_c_werror_flag"
2757                         || test ! -s conftest.err'
2758  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2759  (eval $ac_try) 2>&5
2760  ac_status=$?
2761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762  (exit $ac_status); }; } &&
2763         { ac_try='test -s conftest.$ac_objext'
2764  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2765  (eval $ac_try) 2>&5
2766  ac_status=$?
2767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768  (exit $ac_status); }; }; then
2769  break
2770else
2771  echo "$as_me: failed program was:" >&5
2772sed 's/^/| /' conftest.$ac_ext >&5
2773
2774fi
2775rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2776done
2777rm -f conftest*
2778if test -n "$ac_declaration"; then
2779  echo '#ifdef __cplusplus' >>confdefs.h
2780  echo $ac_declaration      >>confdefs.h
2781  echo '#endif'             >>confdefs.h
2782fi
2783
2784else
2785  echo "$as_me: failed program was:" >&5
2786sed 's/^/| /' conftest.$ac_ext >&5
2787
2788fi
2789rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2790ac_ext=c
2791ac_cpp='$CPP $CPPFLAGS'
2792ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2793ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2794ac_compiler_gnu=$ac_cv_c_compiler_gnu
2795
2796if test -z "$CC" ; then
2797  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2798echo "$as_me: error: Failed to find a C compiler!" >&2;}
2799   { (exit 1); exit 1; }; }
2800fi
2801# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2802case "$CC" in
2803  clang* ) ;;
2804  cl* | */cl* | CL* | */CL* )
2805    if test "$ac_cv_prog_cc_g" = yes ; then
2806      ac_cv_prog_cc_g=no
2807      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2808echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2809    fi ;;
2810esac
2811CFLAGS="$save_cflags"
2812
2813# add automake conditional so we can recognize cl compiler in makefile
2814coin_cc_is_cl=false
2815case "$CC" in
2816  clang* ) ;;
2817  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2818    coin_cc_is_cl=true
2819    ;;
2820esac
2821
2822
2823if test $coin_cc_is_cl = true; then
2824  COIN_CC_IS_CL_TRUE=
2825  COIN_CC_IS_CL_FALSE='#'
2826else
2827  COIN_CC_IS_CL_TRUE='#'
2828  COIN_CC_IS_CL_FALSE=
2829fi
2830
2831
2832# Check if a project specific CFLAGS variable has been set
2833if test x$COIN_PRJCT != x; then
2834  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2835  if test x$coin_tmp = xset; then
2836    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2837  fi
2838fi
2839
2840if test x"$CFLAGS" = x; then
2841
2842  coin_add_cflags=
2843  coin_opt_cflags=
2844  coin_dbg_cflags=
2845  coin_warn_cflags=
2846
2847  if test "$GCC" = "yes"; then
2848    case "$CC" in
2849      icc* | */icc*)
2850        ;;
2851      *)
2852        coin_opt_cflags="-O3"
2853        coin_add_cflags="-pipe"
2854        coin_dbg_cflags="-g -O0"
2855        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2856        case $build in
2857          *-darwin*)
2858            ;;
2859          *)
2860            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2861            ;;
2862        esac
2863        case $enable_doscompile in
2864          mingw)
2865            CFLAGS="-mno-cygwin"
2866            cat >conftest.$ac_ext <<_ACEOF
2867/* confdefs.h.  */
2868_ACEOF
2869cat confdefs.h >>conftest.$ac_ext
2870cat >>conftest.$ac_ext <<_ACEOF
2871/* end confdefs.h.  */
2872
2873int
2874main ()
2875{
2876int i=0; i++;
2877  ;
2878  return 0;
2879}
2880_ACEOF
2881rm -f conftest.$ac_objext conftest$ac_exeext
2882if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2883  (eval $ac_link) 2>conftest.er1
2884  ac_status=$?
2885  grep -v '^ *+' conftest.er1 >conftest.err
2886  rm -f conftest.er1
2887  cat conftest.err >&5
2888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889  (exit $ac_status); } &&
2890         { ac_try='test -z "$ac_c_werror_flag"
2891                         || test ! -s conftest.err'
2892  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2893  (eval $ac_try) 2>&5
2894  ac_status=$?
2895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896  (exit $ac_status); }; } &&
2897         { ac_try='test -s conftest$ac_exeext'
2898  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2899  (eval $ac_try) 2>&5
2900  ac_status=$?
2901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902  (exit $ac_status); }; }; then
2903  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2904else
2905  echo "$as_me: failed program was:" >&5
2906sed 's/^/| /' conftest.$ac_ext >&5
2907
2908fi
2909rm -f conftest.err conftest.$ac_objext \
2910      conftest$ac_exeext conftest.$ac_ext
2911            CFLAGS=
2912          ;;
2913        esac
2914    esac
2915  fi
2916  if test -z "$coin_opt_cflags"; then
2917    case $build in
2918      *-cygwin* | *-mingw*)
2919        case "$CC" in
2920          clang* ) ;;
2921          cl* | */cl* | CL* | */CL*)
2922            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2923              coin_opt_cflags='-MD -O2'
2924              coin_dbg_cflags='-MDd'
2925            else
2926              coin_opt_cflags='-MT -O2'
2927              coin_dbg_cflags='-MTd'
2928            fi
2929            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2930            ;;
2931          icl* | */icl* | ICL* | */ICL*)
2932            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2933              coin_opt_cflags='-MD -Ox'
2934              coin_dbg_cflags='-MDd -debug'
2935            else
2936              coin_opt_cflags='-MT -Ox'
2937              coin_dbg_cflags='-MTd -debug'
2938            fi
2939            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2940            ;;
2941        esac
2942        ;;
2943      *-linux-*)
2944        case "$CC" in
2945          icc* | */icc*)
2946            coin_opt_cflags="-O3 -ip -mp1"
2947            coin_add_cflags=""
2948            coin_dbg_cflags="-g"
2949            # Check if -i_dynamic is necessary (for new glibc library)
2950            CFLAGS=
2951            cat >conftest.$ac_ext <<_ACEOF
2952/* confdefs.h.  */
2953_ACEOF
2954cat confdefs.h >>conftest.$ac_ext
2955cat >>conftest.$ac_ext <<_ACEOF
2956/* end confdefs.h.  */
2957
2958int
2959main ()
2960{
2961int i=0; i++;
2962  ;
2963  return 0;
2964}
2965_ACEOF
2966rm -f conftest.$ac_objext conftest$ac_exeext
2967if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2968  (eval $ac_link) 2>conftest.er1
2969  ac_status=$?
2970  grep -v '^ *+' conftest.er1 >conftest.err
2971  rm -f conftest.er1
2972  cat conftest.err >&5
2973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974  (exit $ac_status); } &&
2975         { ac_try='test -z "$ac_c_werror_flag"
2976                         || test ! -s conftest.err'
2977  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2978  (eval $ac_try) 2>&5
2979  ac_status=$?
2980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981  (exit $ac_status); }; } &&
2982         { ac_try='test -s conftest$ac_exeext'
2983  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2984  (eval $ac_try) 2>&5
2985  ac_status=$?
2986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987  (exit $ac_status); }; }; then
2988  :
2989else
2990  echo "$as_me: failed program was:" >&5
2991sed 's/^/| /' conftest.$ac_ext >&5
2992
2993coin_add_cflags="-i_dynamic $coin_add_cflags"
2994fi
2995rm -f conftest.err conftest.$ac_objext \
2996      conftest$ac_exeext conftest.$ac_ext
2997            ;;
2998          pgcc* | */pgcc*)
2999            coin_opt_cflags="-fast"
3000            coin_add_cflags="-Kieee -pc 64"
3001            coin_dbg_cflags="-g"
3002            ;;
3003        esac
3004        ;;
3005      *-ibm-*)
3006        case "$CC" in
3007          xlc* | */xlc* | mpxlc* | */mpxlc*)
3008            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3009            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
3010            coin_dbg_cflags="-g"
3011          ;;
3012        esac
3013        ;;
3014      *-hp-*)
3015        coin_opt_cflags="-O"
3016        coin_add_cflags="-Ae"
3017        coin_dbg_cflags="-g"
3018        ;;
3019      *-*-solaris*)
3020        coin_opt_cflags="-xO4"
3021        coin_dbg_cflags="-g"
3022        ;;
3023      *-sgi-*)
3024        coin_opt_cflags="-O -OPT:Olimit=0"
3025        coin_dbg_cflags="-g"
3026        ;;
3027    esac
3028  fi
3029
3030  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
3031    coin_dbg_cflags="-g"
3032  fi
3033
3034  if test -z "$coin_opt_cflags"; then
3035    # Try if -O option works if nothing else is set
3036    CFLAGS="-O"
3037    cat >conftest.$ac_ext <<_ACEOF
3038/* confdefs.h.  */
3039_ACEOF
3040cat confdefs.h >>conftest.$ac_ext
3041cat >>conftest.$ac_ext <<_ACEOF
3042/* end confdefs.h.  */
3043
3044int
3045main ()
3046{
3047int i=0; i++;
3048  ;
3049  return 0;
3050}
3051_ACEOF
3052rm -f conftest.$ac_objext conftest$ac_exeext
3053if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3054  (eval $ac_link) 2>conftest.er1
3055  ac_status=$?
3056  grep -v '^ *+' conftest.er1 >conftest.err
3057  rm -f conftest.er1
3058  cat conftest.err >&5
3059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060  (exit $ac_status); } &&
3061         { ac_try='test -z "$ac_c_werror_flag"
3062                         || test ! -s conftest.err'
3063  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3064  (eval $ac_try) 2>&5
3065  ac_status=$?
3066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067  (exit $ac_status); }; } &&
3068         { ac_try='test -s conftest$ac_exeext'
3069  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3070  (eval $ac_try) 2>&5
3071  ac_status=$?
3072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073  (exit $ac_status); }; }; then
3074  coin_opt_cflags="-O"
3075else
3076  echo "$as_me: failed program was:" >&5
3077sed 's/^/| /' conftest.$ac_ext >&5
3078
3079fi
3080rm -f conftest.err conftest.$ac_objext \
3081      conftest$ac_exeext conftest.$ac_ext
3082  fi
3083
3084  # if PM doesn't want the warning messages, take them out
3085  if test x"$coin_skip_warn_cflags" = xyes; then
3086    coin_warn_cflags=
3087  fi
3088
3089  if test x${DBG_CFLAGS+set} != xset; then
3090    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3091  fi
3092  if test x${OPT_CFLAGS+set} != xset; then
3093    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3094  fi
3095
3096  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3097  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3098
3099  if test "$coin_debug_compile" = "true"; then
3100    CFLAGS="$DBG_CFLAGS"
3101  else
3102    CFLAGS="$OPT_CFLAGS"
3103  fi
3104else
3105  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3106  if test x${DBG_CFLAGS+set} != xset; then
3107    DBG_CFLAGS="$CFLAGS"
3108  fi
3109  if test x${OPT_CFLAGS+set} != xset; then
3110    OPT_CFLAGS="$CFLAGS"
3111  fi
3112fi
3113
3114# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3115
3116case "$CFLAGS" in
3117  *-mno-cygwin*)
3118    if test x${CPPFLAGS+set} != xset ; then
3119      CPPFLAGS="-mno-cygwin"
3120    else
3121      case "$CPPFLAGS" in
3122        *-mno-cygwin*)
3123          ;;
3124        *)
3125          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3126          ;;
3127      esac
3128    fi ;;
3129esac
3130
3131# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3132if test x$COIN_PRJCT != x; then
3133  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3134fi
3135
3136# Try if CFLAGS works
3137save_CFLAGS="$CFLAGS"
3138cat >conftest.$ac_ext <<_ACEOF
3139/* confdefs.h.  */
3140_ACEOF
3141cat confdefs.h >>conftest.$ac_ext
3142cat >>conftest.$ac_ext <<_ACEOF
3143/* end confdefs.h.  */
3144
3145int
3146main ()
3147{
3148int i=0; i++;
3149  ;
3150  return 0;
3151}
3152_ACEOF
3153rm -f conftest.$ac_objext conftest$ac_exeext
3154if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3155  (eval $ac_link) 2>conftest.er1
3156  ac_status=$?
3157  grep -v '^ *+' conftest.er1 >conftest.err
3158  rm -f conftest.er1
3159  cat conftest.err >&5
3160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161  (exit $ac_status); } &&
3162         { ac_try='test -z "$ac_c_werror_flag"
3163                         || test ! -s conftest.err'
3164  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3165  (eval $ac_try) 2>&5
3166  ac_status=$?
3167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168  (exit $ac_status); }; } &&
3169         { ac_try='test -s conftest$ac_exeext'
3170  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3171  (eval $ac_try) 2>&5
3172  ac_status=$?
3173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174  (exit $ac_status); }; }; then
3175  :
3176else
3177  echo "$as_me: failed program was:" >&5
3178sed 's/^/| /' conftest.$ac_ext >&5
3179
3180CFLAGS=
3181fi
3182rm -f conftest.err conftest.$ac_objext \
3183      conftest$ac_exeext conftest.$ac_ext
3184if test -z "$CFLAGS"; then
3185  { 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
3186echo "$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;}
3187  CFLAGS='-O'
3188  cat >conftest.$ac_ext <<_ACEOF
3189/* confdefs.h.  */
3190_ACEOF
3191cat confdefs.h >>conftest.$ac_ext
3192cat >>conftest.$ac_ext <<_ACEOF
3193/* end confdefs.h.  */
3194
3195int
3196main ()
3197{
3198int i=0; i++;
3199  ;
3200  return 0;
3201}
3202_ACEOF
3203rm -f conftest.$ac_objext conftest$ac_exeext
3204if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3205  (eval $ac_link) 2>conftest.er1
3206  ac_status=$?
3207  grep -v '^ *+' conftest.er1 >conftest.err
3208  rm -f conftest.er1
3209  cat conftest.err >&5
3210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211  (exit $ac_status); } &&
3212         { ac_try='test -z "$ac_c_werror_flag"
3213                         || test ! -s conftest.err'
3214  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3215  (eval $ac_try) 2>&5
3216  ac_status=$?
3217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218  (exit $ac_status); }; } &&
3219         { ac_try='test -s conftest$ac_exeext'
3220  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3221  (eval $ac_try) 2>&5
3222  ac_status=$?
3223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3224  (exit $ac_status); }; }; then
3225  :
3226else
3227  echo "$as_me: failed program was:" >&5
3228sed 's/^/| /' conftest.$ac_ext >&5
3229
3230CFLAGS=
3231fi
3232rm -f conftest.err conftest.$ac_objext \
3233      conftest$ac_exeext conftest.$ac_ext
3234  if test -z "$CFLAGS"; then
3235    { 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
3236echo "$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;}
3237  fi
3238fi
3239
3240{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3241echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3242
3243
3244if test x"$MPICC" = x; then :; else
3245  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3246echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3247  CC="$MPICC"
3248fi
3249
3250# Correct the LD variable if we are using the MS or Intel-windows compiler
3251case "$CC" in
3252  clang* ) ;;
3253  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3254    case $build in
3255  *-mingw*)
3256    if test "${LD+set}" = set; then :; else
3257      LD=link
3258    fi
3259    ;;
3260 esac
3261 case $enable_doscompile in
3262   msvc)
3263     if test "x${LD+set}" = xset; then :; else
3264       LD=link
3265     fi
3266     ;;
3267 esac
3268
3269    ;;
3270esac
3271
3272ac_ext=c
3273ac_cpp='$CPP $CPPFLAGS'
3274ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3275ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3276ac_compiler_gnu=$ac_cv_c_compiler_gnu
3277
3278
3279
3280# Get the name of the C++ compiler and appropriate compiler options
3281
3282 #Let's try if that overcomes configuration problem with VC++ 6.0
3283
3284ac_ext=cc
3285ac_cpp='$CXXCPP $CPPFLAGS'
3286ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3287ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3288ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3289
3290
3291
3292
3293
3294
3295
3296coin_has_cxx=yes
3297
3298save_cxxflags="$CXXFLAGS"
3299# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3300case $build in
3301  *-cygwin* | *-mingw*)
3302             if test "$enable_doscompile" = msvc ; then
3303               comps="icl cl"
3304             else
3305               comps="g++ cl"
3306             fi ;;
3307  *-*-solaris*)
3308             comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3309  *-darwin*) comps="g++ c++ CC" ;;
3310  *-linux-gnu*)
3311             comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;;
3312          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3313esac
3314
3315# We delete the cached value, since the test might not have been
3316# performed with our choice of compilers earlier
3317$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3318# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3319ac_ext=cc
3320ac_cpp='$CXXCPP $CPPFLAGS'
3321ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3322ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3323ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3324if test -n "$ac_tool_prefix"; then
3325  for ac_prog in $CCC $comps
3326  do
3327    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3328set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3329echo "$as_me:$LINENO: checking for $ac_word" >&5
3330echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3331if test "${ac_cv_prog_CXX+set}" = set; then
3332  echo $ECHO_N "(cached) $ECHO_C" >&6
3333else
3334  if test -n "$CXX"; then
3335  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3336else
3337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3338for as_dir in $PATH
3339do
3340  IFS=$as_save_IFS
3341  test -z "$as_dir" && as_dir=.
3342  for ac_exec_ext in '' $ac_executable_extensions; do
3343  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3344    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3345    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3346    break 2
3347  fi
3348done
3349done
3350
3351fi
3352fi
3353CXX=$ac_cv_prog_CXX
3354if test -n "$CXX"; then
3355  echo "$as_me:$LINENO: result: $CXX" >&5
3356echo "${ECHO_T}$CXX" >&6
3357else
3358  echo "$as_me:$LINENO: result: no" >&5
3359echo "${ECHO_T}no" >&6
3360fi
3361
3362    test -n "$CXX" && break
3363  done
3364fi
3365if test -z "$CXX"; then
3366  ac_ct_CXX=$CXX
3367  for ac_prog in $CCC $comps
3368do
3369  # Extract the first word of "$ac_prog", so it can be a program name with args.
3370set dummy $ac_prog; ac_word=$2
3371echo "$as_me:$LINENO: checking for $ac_word" >&5
3372echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3373if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3374  echo $ECHO_N "(cached) $ECHO_C" >&6
3375else
3376  if test -n "$ac_ct_CXX"; then
3377  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3378else
3379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3380for as_dir in $PATH
3381do
3382  IFS=$as_save_IFS
3383  test -z "$as_dir" && as_dir=.
3384  for ac_exec_ext in '' $ac_executable_extensions; do
3385  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3386    ac_cv_prog_ac_ct_CXX="$ac_prog"
3387    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3388    break 2
3389  fi
3390done
3391done
3392
3393fi
3394fi
3395ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3396if test -n "$ac_ct_CXX"; then
3397  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3398echo "${ECHO_T}$ac_ct_CXX" >&6
3399else
3400  echo "$as_me:$LINENO: result: no" >&5
3401echo "${ECHO_T}no" >&6
3402fi
3403
3404  test -n "$ac_ct_CXX" && break
3405done
3406test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3407
3408  CXX=$ac_ct_CXX
3409fi
3410
3411
3412# Provide some information about the compiler.
3413echo "$as_me:$LINENO:" \
3414     "checking for C++ compiler version" >&5
3415ac_compiler=`set X $ac_compile; echo $2`
3416{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3417  (eval $ac_compiler --version </dev/null >&5) 2>&5
3418  ac_status=$?
3419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420  (exit $ac_status); }
3421{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3422  (eval $ac_compiler -v </dev/null >&5) 2>&5
3423  ac_status=$?
3424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425  (exit $ac_status); }
3426{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3427  (eval $ac_compiler -V </dev/null >&5) 2>&5
3428  ac_status=$?
3429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430  (exit $ac_status); }
3431
3432echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3433echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3434if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3435  echo $ECHO_N "(cached) $ECHO_C" >&6
3436else
3437  cat >conftest.$ac_ext <<_ACEOF
3438/* confdefs.h.  */
3439_ACEOF
3440cat confdefs.h >>conftest.$ac_ext
3441cat >>conftest.$ac_ext <<_ACEOF
3442/* end confdefs.h.  */
3443
3444int
3445main ()
3446{
3447#ifndef __GNUC__
3448       choke me
3449#endif
3450
3451  ;
3452  return 0;
3453}
3454_ACEOF
3455rm -f conftest.$ac_objext
3456if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3457  (eval $ac_compile) 2>conftest.er1
3458  ac_status=$?
3459  grep -v '^ *+' conftest.er1 >conftest.err
3460  rm -f conftest.er1
3461  cat conftest.err >&5
3462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463  (exit $ac_status); } &&
3464         { ac_try='test -z "$ac_cxx_werror_flag"
3465                         || test ! -s conftest.err'
3466  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3467  (eval $ac_try) 2>&5
3468  ac_status=$?
3469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470  (exit $ac_status); }; } &&
3471         { ac_try='test -s conftest.$ac_objext'
3472  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3473  (eval $ac_try) 2>&5
3474  ac_status=$?
3475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476  (exit $ac_status); }; }; then
3477  ac_compiler_gnu=yes
3478else
3479  echo "$as_me: failed program was:" >&5
3480sed 's/^/| /' conftest.$ac_ext >&5
3481
3482ac_compiler_gnu=no
3483fi
3484rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3485ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3486
3487fi
3488echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3489echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3490GXX=`test $ac_compiler_gnu = yes && echo yes`
3491ac_test_CXXFLAGS=${CXXFLAGS+set}
3492ac_save_CXXFLAGS=$CXXFLAGS
3493CXXFLAGS="-g"
3494echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3495echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3496if test "${ac_cv_prog_cxx_g+set}" = set; then
3497  echo $ECHO_N "(cached) $ECHO_C" >&6
3498else
3499  cat >conftest.$ac_ext <<_ACEOF
3500/* confdefs.h.  */
3501_ACEOF
3502cat confdefs.h >>conftest.$ac_ext
3503cat >>conftest.$ac_ext <<_ACEOF
3504/* end confdefs.h.  */
3505
3506int
3507main ()
3508{
3509
3510  ;
3511  return 0;
3512}
3513_ACEOF
3514rm -f conftest.$ac_objext
3515if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3516  (eval $ac_compile) 2>conftest.er1
3517  ac_status=$?
3518  grep -v '^ *+' conftest.er1 >conftest.err
3519  rm -f conftest.er1
3520  cat conftest.err >&5
3521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522  (exit $ac_status); } &&
3523         { ac_try='test -z "$ac_cxx_werror_flag"
3524                         || test ! -s conftest.err'
3525  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3526  (eval $ac_try) 2>&5
3527  ac_status=$?
3528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529  (exit $ac_status); }; } &&
3530         { ac_try='test -s conftest.$ac_objext'
3531  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3532  (eval $ac_try) 2>&5
3533  ac_status=$?
3534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535  (exit $ac_status); }; }; then
3536  ac_cv_prog_cxx_g=yes
3537else
3538  echo "$as_me: failed program was:" >&5
3539sed 's/^/| /' conftest.$ac_ext >&5
3540
3541ac_cv_prog_cxx_g=no
3542fi
3543rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3544fi
3545echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3546echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3547if test "$ac_test_CXXFLAGS" = set; then
3548  CXXFLAGS=$ac_save_CXXFLAGS
3549elif test $ac_cv_prog_cxx_g = yes; then
3550  if test "$GXX" = yes; then
3551    CXXFLAGS="-g -O2"
3552  else
3553    CXXFLAGS="-g"
3554  fi
3555else
3556  if test "$GXX" = yes; then
3557    CXXFLAGS="-O2"
3558  else
3559    CXXFLAGS=
3560  fi
3561fi
3562for ac_declaration in \
3563   '' \
3564   'extern "C" void std::exit (int) throw (); using std::exit;' \
3565   'extern "C" void std::exit (int); using std::exit;' \
3566   'extern "C" void exit (int) throw ();' \
3567   'extern "C" void exit (int);' \
3568   'void exit (int);'
3569do
3570  cat >conftest.$ac_ext <<_ACEOF
3571/* confdefs.h.  */
3572_ACEOF
3573cat confdefs.h >>conftest.$ac_ext
3574cat >>conftest.$ac_ext <<_ACEOF
3575/* end confdefs.h.  */
3576$ac_declaration
3577#include <stdlib.h>
3578int
3579main ()
3580{
3581exit (42);
3582  ;
3583  return 0;
3584}
3585_ACEOF
3586rm -f conftest.$ac_objext
3587if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3588  (eval $ac_compile) 2>conftest.er1
3589  ac_status=$?
3590  grep -v '^ *+' conftest.er1 >conftest.err
3591  rm -f conftest.er1
3592  cat conftest.err >&5
3593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594  (exit $ac_status); } &&
3595         { ac_try='test -z "$ac_cxx_werror_flag"
3596                         || test ! -s conftest.err'
3597  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3598  (eval $ac_try) 2>&5
3599  ac_status=$?
3600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601  (exit $ac_status); }; } &&
3602         { ac_try='test -s conftest.$ac_objext'
3603  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3604  (eval $ac_try) 2>&5
3605  ac_status=$?
3606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607  (exit $ac_status); }; }; then
3608  :
3609else
3610  echo "$as_me: failed program was:" >&5
3611sed 's/^/| /' conftest.$ac_ext >&5
3612
3613continue
3614fi
3615rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3616  cat >conftest.$ac_ext <<_ACEOF
3617/* confdefs.h.  */
3618_ACEOF
3619cat confdefs.h >>conftest.$ac_ext
3620cat >>conftest.$ac_ext <<_ACEOF
3621/* end confdefs.h.  */
3622$ac_declaration
3623int
3624main ()
3625{
3626exit (42);
3627  ;
3628  return 0;
3629}
3630_ACEOF
3631rm -f conftest.$ac_objext
3632if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3633  (eval $ac_compile) 2>conftest.er1
3634  ac_status=$?
3635  grep -v '^ *+' conftest.er1 >conftest.err
3636  rm -f conftest.er1
3637  cat conftest.err >&5
3638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3639  (exit $ac_status); } &&
3640         { ac_try='test -z "$ac_cxx_werror_flag"
3641                         || test ! -s conftest.err'
3642  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3643  (eval $ac_try) 2>&5
3644  ac_status=$?
3645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646  (exit $ac_status); }; } &&
3647         { ac_try='test -s conftest.$ac_objext'
3648  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3649  (eval $ac_try) 2>&5
3650  ac_status=$?
3651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652  (exit $ac_status); }; }; then
3653  break
3654else
3655  echo "$as_me: failed program was:" >&5
3656sed 's/^/| /' conftest.$ac_ext >&5
3657
3658fi
3659rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3660done
3661rm -f conftest*
3662if test -n "$ac_declaration"; then
3663  echo '#ifdef __cplusplus' >>confdefs.h
3664  echo $ac_declaration      >>confdefs.h
3665  echo '#endif'             >>confdefs.h
3666fi
3667
3668ac_ext=cc
3669ac_cpp='$CXXCPP $CPPFLAGS'
3670ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3671ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3672ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3673
3674
3675#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3676#thus, we test here whether $CXX is actually working
3677ac_ext=cc
3678ac_cpp='$CXXCPP $CPPFLAGS'
3679ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3680ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3681ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3682
3683echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3684echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3685cat >conftest.$ac_ext <<_ACEOF
3686/* confdefs.h.  */
3687_ACEOF
3688cat confdefs.h >>conftest.$ac_ext
3689cat >>conftest.$ac_ext <<_ACEOF
3690/* end confdefs.h.  */
3691
3692int
3693main ()
3694{
3695int i=0;
3696  ;
3697  return 0;
3698}
3699_ACEOF
3700rm -f conftest.$ac_objext
3701if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3702  (eval $ac_compile) 2>conftest.er1
3703  ac_status=$?
3704  grep -v '^ *+' conftest.er1 >conftest.err
3705  rm -f conftest.er1
3706  cat conftest.err >&5
3707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708  (exit $ac_status); } &&
3709         { ac_try='test -z "$ac_cxx_werror_flag"
3710                         || test ! -s conftest.err'
3711  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3712  (eval $ac_try) 2>&5
3713  ac_status=$?
3714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715  (exit $ac_status); }; } &&
3716         { ac_try='test -s conftest.$ac_objext'
3717  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3718  (eval $ac_try) 2>&5
3719  ac_status=$?
3720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721  (exit $ac_status); }; }; then
3722  echo "$as_me:$LINENO: result: yes" >&5
3723echo "${ECHO_T}yes" >&6
3724else
3725  echo "$as_me: failed program was:" >&5
3726sed 's/^/| /' conftest.$ac_ext >&5
3727
3728echo "$as_me:$LINENO: result: no" >&5
3729echo "${ECHO_T}no" >&6
3730   { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3731echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3732   { (exit 1); exit 1; }; }
3733
3734fi
3735rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3736ac_ext=cc
3737ac_cpp='$CXXCPP $CPPFLAGS'
3738ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3739ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3740ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3741
3742
3743coin_cxx_is_cl=false
3744# It seems that we need to cleanup something here for the Windows
3745case "$CXX" in
3746  clang* ) ;;
3747  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3748    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3749    mv confdefs.hh confdefs.h
3750    coin_cxx_is_cl=true
3751    ;;
3752esac
3753
3754# add automake conditional so we can recognize cl compiler in makefile
3755
3756
3757if test $coin_cxx_is_cl = true; then
3758  COIN_CXX_IS_CL_TRUE=
3759  COIN_CXX_IS_CL_FALSE='#'
3760else
3761  COIN_CXX_IS_CL_TRUE='#'
3762  COIN_CXX_IS_CL_FALSE=
3763fi
3764
3765
3766# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3767case "$CXX" in
3768  clang* ) ;;
3769  cl* | */cl* | CL* | */CL* )
3770    if test "$ac_cv_prog_cxx_g" = yes ; then
3771      ac_cv_prog_cxx_g=no
3772      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3773echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3774    fi ;;
3775esac
3776CXXFLAGS="$save_cxxflags"
3777
3778# Check if a project specific CXXFLAGS variable has been set
3779if test x$COIN_PRJCT != x; then
3780  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3781  if test x$coin_tmp = xset; then
3782    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3783  fi
3784fi
3785
3786if test x"$CXXFLAGS" = x; then
3787
3788# ToDo decide whether we want -DNDEBUG for optimization
3789  coin_add_cxxflags=
3790  coin_opt_cxxflags=
3791  coin_dbg_cxxflags=
3792  coin_warn_cxxflags=
3793
3794  if test "$GXX" = "yes"; then
3795    case "$CXX" in
3796      icpc* | */icpc*)
3797        ;;
3798      *)
3799# ToDo decide about unroll-loops
3800        coin_opt_cxxflags="-O3"
3801        coin_add_cxxflags="-pipe"
3802        coin_dbg_cxxflags="-g -O0"
3803        coin_warn_cxxflags="-Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long"
3804        case $build in
3805          *-darwin*)
3806            ;;
3807          *)
3808            coin_warn_cxxflags="-pedantic-errors $coin_warn_cxxflags"
3809            ;;
3810        esac
3811
3812        case $enable_doscompile in
3813          mingw)
3814            CXXFLAGS="-mno-cygwin"
3815            cat >conftest.$ac_ext <<_ACEOF
3816/* confdefs.h.  */
3817_ACEOF
3818cat confdefs.h >>conftest.$ac_ext
3819cat >>conftest.$ac_ext <<_ACEOF
3820/* end confdefs.h.  */
3821
3822int
3823main ()
3824{
3825int i=0; i++;
3826  ;
3827  return 0;
3828}
3829_ACEOF
3830rm -f conftest.$ac_objext conftest$ac_exeext
3831if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3832  (eval $ac_link) 2>conftest.er1
3833  ac_status=$?
3834  grep -v '^ *+' conftest.er1 >conftest.err
3835  rm -f conftest.er1
3836  cat conftest.err >&5
3837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838  (exit $ac_status); } &&
3839         { ac_try='test -z "$ac_cxx_werror_flag"
3840                         || test ! -s conftest.err'
3841  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3842  (eval $ac_try) 2>&5
3843  ac_status=$?
3844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845  (exit $ac_status); }; } &&
3846         { ac_try='test -s conftest$ac_exeext'
3847  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3848  (eval $ac_try) 2>&5
3849  ac_status=$?
3850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851  (exit $ac_status); }; }; then
3852  coin_add_cxxflags="-mno-cygwin $coin_add_cxxflags"
3853else
3854  echo "$as_me: failed program was:" >&5
3855sed 's/^/| /' conftest.$ac_ext >&5
3856
3857fi
3858rm -f conftest.err conftest.$ac_objext \
3859      conftest$ac_exeext conftest.$ac_ext
3860            CXXFLAGS=
3861          ;;
3862        esac
3863    esac
3864  fi
3865
3866# Note that we do not need to cover GCC in the following tests.
3867
3868  if test -z "$coin_opt_cxxflags"; then
3869    case $build in
3870      *-cygwin* | *-mingw*)
3871        case "$CXX" in
3872          clang* ) ;;
3873          cl* | */cl* | CL* | */CL*)
3874            # The MT and MTd options are mutually exclusive
3875            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3876               coin_opt_cxxflags='-MD -O2'
3877               coin_dbg_cxxflags='-MDd'
3878            else
3879               coin_opt_cxxflags='-MT -O2'
3880               coin_dbg_cxxflags='-MTd'
3881            fi
3882            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3883            ;;
3884          icl* | */icl* | ICL* | */ICL*)
3885          # The MT and MTd options are mutually exclusive
3886            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3887              coin_opt_cxxflags='-MD -Ox'
3888              coin_dbg_cxxflags='-MDd -debug'
3889            else
3890              coin_opt_cxxflags='-MT -Ox'
3891              coin_dbg_cxxflags='-MTd -debug'
3892            fi
3893            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3894            ;;
3895        esac
3896        ;;
3897      *-linux-*)
3898        case "$CXX" in
3899          icpc* | */icpc*)
3900            coin_opt_cxxflags="-O3 -ip -mp1"
3901            coin_add_cxxflags=""
3902            coin_dbg_cxxflags="-g"
3903            # Check if -i_dynamic is necessary (for new glibc library)
3904            CXXFLAGS=
3905            cat >conftest.$ac_ext <<_ACEOF
3906/* confdefs.h.  */
3907_ACEOF
3908cat confdefs.h >>conftest.$ac_ext
3909cat >>conftest.$ac_ext <<_ACEOF
3910/* end confdefs.h.  */
3911
3912int
3913main ()
3914{
3915int i=0; i++;
3916  ;
3917  return 0;
3918}
3919_ACEOF
3920rm -f conftest.$ac_objext conftest$ac_exeext
3921if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3922  (eval $ac_link) 2>conftest.er1
3923  ac_status=$?
3924  grep -v '^ *+' conftest.er1 >conftest.err
3925  rm -f conftest.er1
3926  cat conftest.err >&5
3927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3928  (exit $ac_status); } &&
3929         { ac_try='test -z "$ac_cxx_werror_flag"
3930                         || test ! -s conftest.err'
3931  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3932  (eval $ac_try) 2>&5
3933  ac_status=$?
3934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935  (exit $ac_status); }; } &&
3936         { ac_try='test -s conftest$ac_exeext'
3937  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3938  (eval $ac_try) 2>&5
3939  ac_status=$?
3940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3941  (exit $ac_status); }; }; then
3942  :
3943else
3944  echo "$as_me: failed program was:" >&5
3945sed 's/^/| /' conftest.$ac_ext >&5
3946
3947coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3948fi
3949rm -f conftest.err conftest.$ac_objext \
3950      conftest$ac_exeext conftest.$ac_ext
3951            ;;
3952          pgCC* | */pgCC*)
3953            coin_opt_cxxflags="-fast"
3954            coin_add_cxxflags="-Kieee -pc 64"
3955            coin_dbg_cxxflags="-g"
3956            ;;
3957        esac
3958        ;;
3959      *-ibm-*)
3960        case "$CXX" in
3961          xlC* | */xlC* | mpxlC* | */mpxlC*)
3962            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3963            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3964            coin_dbg_cxxflags="-g"
3965            ;;
3966        esac
3967        ;;
3968      *-hp-*)
3969        case "$CXX" in
3970          aCC* | */aCC* )
3971            coin_opt_cxxflags="-O"
3972            coin_add_cxxflags="-AA"
3973            coin_dbg_cxxflags="-g"
3974            ;;
3975        esac
3976        ;;
3977      *-*-solaris*)
3978          coin_opt_cxxflags="-O4"
3979          coin_dbg_cxxflags="-g"
3980        ;;
3981    esac
3982  fi
3983
3984# Generic flag settings. If these don't work, add a case above.
3985
3986  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3987    coin_dbg_cxxflags="-g"
3988  fi
3989
3990  if test -z "$coin_opt_cxxflags"; then
3991    # Try if -O option works if nothing else is set
3992    CXXFLAGS=-O
3993    cat >conftest.$ac_ext <<_ACEOF
3994/* confdefs.h.  */
3995_ACEOF
3996cat confdefs.h >>conftest.$ac_ext
3997cat >>conftest.$ac_ext <<_ACEOF
3998/* end confdefs.h.  */
3999
4000int
4001main ()
4002{
4003int i=0; i++;
4004  ;
4005  return 0;
4006}
4007_ACEOF
4008rm -f conftest.$ac_objext conftest$ac_exeext
4009if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4010  (eval $ac_link) 2>conftest.er1
4011  ac_status=$?
4012  grep -v '^ *+' conftest.er1 >conftest.err
4013  rm -f conftest.er1
4014  cat conftest.err >&5
4015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016  (exit $ac_status); } &&
4017         { ac_try='test -z "$ac_cxx_werror_flag"
4018                         || test ! -s conftest.err'
4019  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4020  (eval $ac_try) 2>&5
4021  ac_status=$?
4022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4023  (exit $ac_status); }; } &&
4024         { ac_try='test -s conftest$ac_exeext'
4025  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4026  (eval $ac_try) 2>&5
4027  ac_status=$?
4028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029  (exit $ac_status); }; }; then
4030  coin_opt_cxxflags="-O"
4031else
4032  echo "$as_me: failed program was:" >&5
4033sed 's/^/| /' conftest.$ac_ext >&5
4034
4035fi
4036rm -f conftest.err conftest.$ac_objext \
4037      conftest$ac_exeext conftest.$ac_ext
4038  fi
4039
4040  # if PM doesn't want the warning messages, take them out
4041  if test x"$coin_skip_warn_cxxflags" = xyes; then
4042    coin_warn_cxxflags=
4043  fi
4044
4045# Do final setup of flags based on values determined above.
4046
4047  if test x${DBG_CXXFLAGS+set} != xset; then
4048    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
4049  fi
4050  if test x${OPT_CXXFLAGS+set} != xset; then
4051    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
4052  fi
4053
4054  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
4055  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
4056
4057  if test "$coin_debug_compile" = "true"; then
4058    CXXFLAGS="$DBG_CXXFLAGS"
4059  else
4060    CXXFLAGS="$OPT_CXXFLAGS"
4061  fi
4062
4063# Handle the case where CXXFLAGS was set externally.
4064else
4065  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
4066  if test x${DBG_CXXFLAGS+set} != xset; then
4067    DBG_CXXFLAGS="$CXXFLAGS"
4068  fi
4069  if test x${OPT_CXXFLAGS+set} != xset; then
4070    OPT_CXXFLAGS="$CXXFLAGS"
4071  fi
4072fi
4073
4074# If CXXFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
4075
4076case "$CXXFLAGS" in
4077  *-mno-cygwin*)
4078    if test x${CPPFLAGS+set} != xset ; then
4079      CPPFLAGS="-mno-cygwin"
4080    else
4081      case "$CPPFLAGS" in
4082        *-mno-cygwin*)
4083          ;;
4084        *)
4085          CPPFLAGS="$CPPFLAGS -mno-cygwin"
4086          ;;
4087      esac
4088    fi ;;
4089esac
4090
4091# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
4092if test x$COIN_PRJCT != x; then
4093  CXXFLAGS="$CXXFLAGS -D${COIN_PRJCT}_BUILD"
4094fi
4095
4096# Try if CXXFLAGS works
4097save_CXXFLAGS="$CXXFLAGS"
4098cat >conftest.$ac_ext <<_ACEOF
4099/* confdefs.h.  */
4100_ACEOF
4101cat confdefs.h >>conftest.$ac_ext
4102cat >>conftest.$ac_ext <<_ACEOF
4103/* end confdefs.h.  */
4104
4105int
4106main ()
4107{
4108int i=0; i++;
4109  ;
4110  return 0;
4111}
4112_ACEOF
4113rm -f conftest.$ac_objext conftest$ac_exeext
4114if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4115  (eval $ac_link) 2>conftest.er1
4116  ac_status=$?
4117  grep -v '^ *+' conftest.er1 >conftest.err
4118  rm -f conftest.er1
4119  cat conftest.err >&5
4120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4121  (exit $ac_status); } &&
4122         { ac_try='test -z "$ac_cxx_werror_flag"
4123                         || test ! -s conftest.err'
4124  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4125  (eval $ac_try) 2>&5
4126  ac_status=$?
4127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128  (exit $ac_status); }; } &&
4129         { ac_try='test -s conftest$ac_exeext'
4130  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4131  (eval $ac_try) 2>&5
4132  ac_status=$?
4133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134  (exit $ac_status); }; }; then
4135  :
4136else
4137  echo "$as_me: failed program was:" >&5
4138sed 's/^/| /' conftest.$ac_ext >&5
4139
4140CXXFLAGS=
4141fi
4142rm -f conftest.err conftest.$ac_objext \
4143      conftest$ac_exeext conftest.$ac_ext
4144if test -z "$CXXFLAGS"; then
4145  { 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
4146echo "$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;}
4147  CXXFLAGS='-O'
4148  cat >conftest.$ac_ext <<_ACEOF
4149/* confdefs.h.  */
4150_ACEOF
4151cat confdefs.h >>conftest.$ac_ext
4152cat >>conftest.$ac_ext <<_ACEOF
4153/* end confdefs.h.  */
4154
4155int
4156main ()
4157{
4158int i=0; i++;
4159  ;
4160  return 0;
4161}
4162_ACEOF
4163rm -f conftest.$ac_objext conftest$ac_exeext
4164if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4165  (eval $ac_link) 2>conftest.er1
4166  ac_status=$?
4167  grep -v '^ *+' conftest.er1 >conftest.err
4168  rm -f conftest.er1
4169  cat conftest.err >&5
4170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171  (exit $ac_status); } &&
4172         { ac_try='test -z "$ac_cxx_werror_flag"
4173                         || test ! -s conftest.err'
4174  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4175  (eval $ac_try) 2>&5
4176  ac_status=$?
4177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178  (exit $ac_status); }; } &&
4179         { ac_try='test -s conftest$ac_exeext'
4180  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4181  (eval $ac_try) 2>&5
4182  ac_status=$?
4183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184  (exit $ac_status); }; }; then
4185  :
4186else
4187  echo "$as_me: failed program was:" >&5
4188sed 's/^/| /' conftest.$ac_ext >&5
4189
4190CXXFLAGS=
4191fi
4192rm -f conftest.err conftest.$ac_objext \
4193      conftest$ac_exeext conftest.$ac_ext
4194  if test -z "$CXXFLAGS"; then
4195    { 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
4196echo "$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;}
4197  fi
4198fi
4199
4200{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
4201echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
4202
4203
4204if test x"$MPICXX" = x; then :; else
4205  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
4206echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
4207  CXX="$MPICXX"
4208fi
4209
4210# correct the LD variable in a mingw build with MS or intel compiler
4211case "$CXX" in
4212  clang* ) ;;
4213  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4214    case $build in
4215  *-mingw*)
4216    if test "${LD+set}" = set; then :; else
4217      LD=link
4218    fi
4219    ;;
4220 esac
4221 case $enable_doscompile in
4222   msvc)
4223     if test "x${LD+set}" = xset; then :; else
4224       LD=link
4225     fi
4226     ;;
4227 esac
4228
4229    ;;
4230esac
4231
4232ac_ext=c
4233ac_cpp='$CPP $CPPFLAGS'
4234ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4235ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4236ac_compiler_gnu=$ac_cv_c_compiler_gnu
4237
4238
4239
4240# Initialize automake
4241{
4242
4243
4244
4245# START
4246
4247coin_disable_shared=no
4248# Test if force_shared has been set
4249if test "x" = xforce_shared; then
4250  if test x$enable_shared = xno; then
4251    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4252echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4253   { (exit 1); exit 1; }; }
4254  fi
4255  enable_shared=yes;
4256else
4257  # On Cygwin and AIX, building DLLs doesn't work
4258  case $build in
4259    *-cygwin*)
4260      coin_disable_shared=yes
4261      platform=Cygwin
4262    ;;
4263    *-aix*)
4264      coin_disable_shared=yes
4265      platform=AIX
4266    ;;
4267    *-mingw*)
4268      coin_disable_shared=yes
4269      platform="Msys"
4270#      case "$CXX" in
4271#        cl*)
4272#          coin_disable_shared=yes
4273#          platform="Msys with cl"
4274#      ;;
4275#      esac
4276    ;;
4277  esac
4278fi
4279if test x"$coin_disable_shared" = xyes; then
4280  if test x"$enable_shared" = xyes; then
4281    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
4282echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
4283  else
4284    # we don't disable shared, because it was not selected anyway
4285    coin_disable_shared=no
4286  fi
4287  enable_shared=no
4288fi
4289# By default, we only want the shared objects to be compiled
4290# Check whether --enable-static or --disable-static was given.
4291if test "${enable_static+set}" = set; then
4292  enableval="$enable_static"
4293  p=${PACKAGE-default}
4294    case $enableval in
4295    yes) enable_static=yes ;;
4296    no) enable_static=no ;;
4297    *)
4298     enable_static=no
4299      # Look at the argument we got.  We use all the common list separators.
4300      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4301      for pkg in $enableval; do
4302        IFS="$lt_save_ifs"
4303        if test "X$pkg" = "X$p"; then
4304          enable_static=yes
4305        fi
4306      done
4307      IFS="$lt_save_ifs"
4308      ;;
4309    esac
4310else
4311  enable_static=no
4312fi;
4313
4314
4315
4316
4317# Initialize automake
4318echo "$as_me:$LINENO: checking for egrep" >&5
4319echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4320if test "${ac_cv_prog_egrep+set}" = set; then
4321  echo $ECHO_N "(cached) $ECHO_C" >&6
4322else
4323  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4324    then ac_cv_prog_egrep='grep -E'
4325    else ac_cv_prog_egrep='egrep'
4326    fi
4327fi
4328echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4329echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4330 EGREP=$ac_cv_prog_egrep
4331
4332
4333echo "$as_me:$LINENO: checking whether ln -s works" >&5
4334echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4335LN_S=$as_ln_s
4336if test "$LN_S" = "ln -s"; then
4337  echo "$as_me:$LINENO: result: yes" >&5
4338echo "${ECHO_T}yes" >&6
4339else
4340  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4341echo "${ECHO_T}no, using $LN_S" >&6
4342fi
4343
4344am__api_version="1.9"
4345# Find a good install program.  We prefer a C program (faster),
4346# so one script is as good as another.  But avoid the broken or
4347# incompatible versions:
4348# SysV /etc/install, /usr/sbin/install
4349# SunOS /usr/etc/install
4350# IRIX /sbin/install
4351# AIX /bin/install
4352# AmigaOS /C/install, which installs bootblocks on floppy discs
4353# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4354# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4355# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4356# OS/2's system install, which has a completely different semantic
4357# ./install, which can be erroneously created by make from ./install.sh.
4358echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4359echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4360if test -z "$INSTALL"; then
4361if test "${ac_cv_path_install+set}" = set; then
4362  echo $ECHO_N "(cached) $ECHO_C" >&6
4363else
4364  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4365for as_dir in $PATH
4366do
4367  IFS=$as_save_IFS
4368  test -z "$as_dir" && as_dir=.
4369  # Account for people who put trailing slashes in PATH elements.
4370case $as_dir/ in
4371  ./ | .// | /cC/* | \
4372  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4373  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4374  /usr/ucb/* ) ;;
4375  *)
4376    # OSF1 and SCO ODT 3.0 have their own names for install.
4377    # Don't use installbsd from OSF since it installs stuff as root
4378    # by default.
4379    for ac_prog in ginstall scoinst install; do
4380      for ac_exec_ext in '' $ac_executable_extensions; do
4381        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4382          if test $ac_prog = install &&
4383            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4384            # AIX install.  It has an incompatible calling convention.
4385            :
4386          elif test $ac_prog = install &&
4387            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4388            # program-specific install script used by HP pwplus--don't use.
4389            :
4390          else
4391            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4392            break 3
4393          fi
4394        fi
4395      done
4396    done
4397    ;;
4398esac
4399done
4400
4401
4402fi
4403  if test "${ac_cv_path_install+set}" = set; then
4404    INSTALL=$ac_cv_path_install
4405  else
4406    # As a last resort, use the slow shell script.  We don't cache a
4407    # path for INSTALL within a source directory, because that will
4408    # break other packages using the cache if that directory is
4409    # removed, or if the path is relative.
4410    INSTALL=$ac_install_sh
4411  fi
4412fi
4413echo "$as_me:$LINENO: result: $INSTALL" >&5
4414echo "${ECHO_T}$INSTALL" >&6
4415
4416# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4417# It thinks the first close brace ends the variable substitution.
4418test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4419
4420test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4421
4422test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4423
4424echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4425echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4426# Just in case
4427sleep 1
4428echo timestamp > conftest.file
4429# Do `set' in a subshell so we don't clobber the current shell's
4430# arguments.  Must try -L first in case configure is actually a
4431# symlink; some systems play weird games with the mod time of symlinks
4432# (eg FreeBSD returns the mod time of the symlink's containing
4433# directory).
4434if (
4435   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4436   if test "$*" = "X"; then
4437      # -L didn't work.
4438      set X `ls -t $srcdir/configure conftest.file`
4439   fi
4440   rm -f conftest.file
4441   if test "$*" != "X $srcdir/configure conftest.file" \
4442      && test "$*" != "X conftest.file $srcdir/configure"; then
4443
4444      # If neither matched, then we have a broken ls.  This can happen
4445      # if, for instance, CONFIG_SHELL is bash and it inherits a
4446      # broken ls alias from the environment.  This has actually
4447      # happened.  Such a system could not be considered "sane".
4448      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4449alias in your environment" >&5
4450echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4451alias in your environment" >&2;}
4452   { (exit 1); exit 1; }; }
4453   fi
4454
4455   test "$2" = conftest.file
4456   )
4457then
4458   # Ok.
4459   :
4460else
4461   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4462Check your system clock" >&5
4463echo "$as_me: error: newly created file is older than distributed files!
4464Check your system clock" >&2;}
4465   { (exit 1); exit 1; }; }
4466fi
4467echo "$as_me:$LINENO: result: yes" >&5
4468echo "${ECHO_T}yes" >&6
4469test "$program_prefix" != NONE &&
4470  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4471# Use a double $ so make ignores it.
4472test "$program_suffix" != NONE &&
4473  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4474# Double any \ or $.  echo might interpret backslashes.
4475# By default was `s,x,x', remove it if useless.
4476cat <<\_ACEOF >conftest.sed
4477s/[\\$]/&&/g;s/;s,x,x,$//
4478_ACEOF
4479program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4480rm conftest.sed
4481
4482# expand $ac_aux_dir to an absolute path
4483am_aux_dir=`cd $ac_aux_dir && pwd`
4484
4485test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4486# Use eval to expand $SHELL
4487if eval "$MISSING --run true"; then
4488  am_missing_run="$MISSING --run "
4489else
4490  am_missing_run=
4491  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4492echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4493fi
4494
4495if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4496  # We used to keeping the `.' as first argument, in order to
4497  # allow $(mkdir_p) to be used without argument.  As in
4498  #   $(mkdir_p) $(somedir)
4499  # where $(somedir) is conditionally defined.  However this is wrong
4500  # for two reasons:
4501  #  1. if the package is installed by a user who cannot write `.'
4502  #     make install will fail,
4503  #  2. the above comment should most certainly read
4504  #     $(mkdir_p) $(DESTDIR)$(somedir)
4505  #     so it does not work when $(somedir) is undefined and
4506  #     $(DESTDIR) is not.
4507  #  To support the latter case, we have to write
4508  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4509  #  so the `.' trick is pointless.
4510  mkdir_p='mkdir -p --'
4511else
4512  # On NextStep and OpenStep, the `mkdir' command does not
4513  # recognize any option.  It will interpret all options as
4514  # directories to create, and then abort because `.' already
4515  # exists.
4516  for d in ./-p ./--version;
4517  do
4518    test -d $d && rmdir $d
4519  done
4520  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4521  if test -f "$ac_aux_dir/mkinstalldirs"; then
4522    mkdir_p='$(mkinstalldirs)'
4523  else
4524    mkdir_p='$(install_sh) -d'
4525  fi
4526fi
4527
4528for ac_prog in gawk mawk nawk awk
4529do
4530  # Extract the first word of "$ac_prog", so it can be a program name with args.
4531set dummy $ac_prog; ac_word=$2
4532echo "$as_me:$LINENO: checking for $ac_word" >&5
4533echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4534if test "${ac_cv_prog_AWK+set}" = set; then
4535  echo $ECHO_N "(cached) $ECHO_C" >&6
4536else
4537  if test -n "$AWK"; then
4538  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4539else
4540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4541for as_dir in $PATH
4542do
4543  IFS=$as_save_IFS
4544  test -z "$as_dir" && as_dir=.
4545  for ac_exec_ext in '' $ac_executable_extensions; do
4546  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4547    ac_cv_prog_AWK="$ac_prog"
4548    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4549    break 2
4550  fi
4551done
4552done
4553
4554fi
4555fi
4556AWK=$ac_cv_prog_AWK
4557if test -n "$AWK"; then
4558  echo "$as_me:$LINENO: result: $AWK" >&5
4559echo "${ECHO_T}$AWK" >&6
4560else
4561  echo "$as_me:$LINENO: result: no" >&5
4562echo "${ECHO_T}no" >&6
4563fi
4564
4565  test -n "$AWK" && break
4566done
4567
4568echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4569echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4570set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4571if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4572  echo $ECHO_N "(cached) $ECHO_C" >&6
4573else
4574  cat >conftest.make <<\_ACEOF
4575all:
4576        @echo 'ac_maketemp="$(MAKE)"'
4577_ACEOF
4578# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4579eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4580if test -n "$ac_maketemp"; then
4581  eval ac_cv_prog_make_${ac_make}_set=yes
4582else
4583  eval ac_cv_prog_make_${ac_make}_set=no
4584fi
4585rm -f conftest.make
4586fi
4587if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4588  echo "$as_me:$LINENO: result: yes" >&5
4589echo "${ECHO_T}yes" >&6
4590  SET_MAKE=
4591else
4592  echo "$as_me:$LINENO: result: no" >&5
4593echo "${ECHO_T}no" >&6
4594  SET_MAKE="MAKE=${MAKE-make}"
4595fi
4596
4597rm -rf .tst 2>/dev/null
4598mkdir .tst 2>/dev/null
4599if test -d .tst; then
4600  am__leading_dot=.
4601else
4602  am__leading_dot=_
4603fi
4604rmdir .tst 2>/dev/null
4605
4606DEPDIR="${am__leading_dot}deps"
4607
4608          ac_config_commands="$ac_config_commands depfiles"
4609
4610
4611am_make=${MAKE-make}
4612cat > confinc << 'END'
4613am__doit:
4614        @echo done
4615.PHONY: am__doit
4616END
4617# If we don't find an include directive, just comment out the code.
4618echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4619echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4620am__include="#"
4621am__quote=
4622_am_result=none
4623# First try GNU make style include.
4624echo "include confinc" > confmf
4625# We grep out `Entering directory' and `Leaving directory'
4626# messages which can occur if `w' ends up in MAKEFLAGS.
4627# In particular we don't look at `^make:' because GNU make might
4628# be invoked under some other name (usually "gmake"), in which
4629# case it prints its new name instead of `make'.
4630if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4631   am__include=include
4632   am__quote=
4633   _am_result=GNU
4634fi
4635# Now try BSD make style include.
4636if test "$am__include" = "#"; then
4637   echo '.include "confinc"' > confmf
4638   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4639      am__include=.include
4640      am__quote="\""
4641      _am_result=BSD
4642   fi
4643fi
4644
4645
4646echo "$as_me:$LINENO: result: $_am_result" >&5
4647echo "${ECHO_T}$_am_result" >&6
4648rm -f confinc confmf
4649
4650# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4651if test "${enable_dependency_tracking+set}" = set; then
4652  enableval="$enable_dependency_tracking"
4653
4654fi;
4655if test "x$enable_dependency_tracking" != xno; then
4656  am_depcomp="$ac_aux_dir/depcomp"
4657  AMDEPBACKSLASH='\'
4658fi
4659
4660
4661if test "x$enable_dependency_tracking" != xno; then
4662  AMDEP_TRUE=
4663  AMDEP_FALSE='#'
4664else
4665  AMDEP_TRUE='#'
4666  AMDEP_FALSE=
4667fi
4668
4669
4670
4671
4672
4673
4674# AC_MSG_NOTICE([Beginning automake initialisation.])
4675# Stuff for automake
4676# test to see if srcdir already configured
4677if test "`cd $srcdir && pwd`" != "`pwd`" &&
4678   test -f $srcdir/config.status; then
4679  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4680echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4681   { (exit 1); exit 1; }; }
4682fi
4683
4684# test whether we have cygpath
4685if test -z "$CYGPATH_W"; then
4686  if (cygpath --version) >/dev/null 2>/dev/null; then
4687    CYGPATH_W='cygpath -w'
4688  else
4689    CYGPATH_W=echo
4690  fi
4691fi
4692
4693
4694# Define the identity of the package.
4695 PACKAGE='thirdpartyscip'
4696 VERSION='1.2'
4697
4698
4699cat >>confdefs.h <<_ACEOF
4700#define PACKAGE "$PACKAGE"
4701_ACEOF
4702
4703
4704cat >>confdefs.h <<_ACEOF
4705#define VERSION "$VERSION"
4706_ACEOF
4707
4708# Some tools Automake needs.
4709
4710ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4711
4712
4713AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4714
4715
4716AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4717
4718
4719AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4720
4721
4722MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4723
4724install_sh=${install_sh-"$am_aux_dir/install-sh"}
4725
4726# Installed binaries are usually stripped using `strip' when the user
4727# run `make install-strip'.  However `strip' might not be the right
4728# tool to use in cross-compilation environments, therefore Automake
4729# will honor the `STRIP' environment variable to overrule this program.
4730if test "$cross_compiling" != no; then
4731  if test -n "$ac_tool_prefix"; then
4732  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4733set dummy ${ac_tool_prefix}strip; ac_word=$2
4734echo "$as_me:$LINENO: checking for $ac_word" >&5
4735echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4736if test "${ac_cv_prog_STRIP+set}" = set; then
4737  echo $ECHO_N "(cached) $ECHO_C" >&6
4738else
4739  if test -n "$STRIP"; then
4740  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4741else
4742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4743for as_dir in $PATH
4744do
4745  IFS=$as_save_IFS
4746  test -z "$as_dir" && as_dir=.
4747  for ac_exec_ext in '' $ac_executable_extensions; do
4748  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4749    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4750    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4751    break 2
4752  fi
4753done
4754done
4755
4756fi
4757fi
4758STRIP=$ac_cv_prog_STRIP
4759if test -n "$STRIP"; then
4760  echo "$as_me:$LINENO: result: $STRIP" >&5
4761echo "${ECHO_T}$STRIP" >&6
4762else
4763  echo "$as_me:$LINENO: result: no" >&5
4764echo "${ECHO_T}no" >&6
4765fi
4766
4767fi
4768if test -z "$ac_cv_prog_STRIP"; then
4769  ac_ct_STRIP=$STRIP
4770  # Extract the first word of "strip", so it can be a program name with args.
4771set dummy strip; ac_word=$2
4772echo "$as_me:$LINENO: checking for $ac_word" >&5
4773echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4774if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4775  echo $ECHO_N "(cached) $ECHO_C" >&6
4776else
4777  if test -n "$ac_ct_STRIP"; then
4778  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4779else
4780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4781for as_dir in $PATH
4782do
4783  IFS=$as_save_IFS
4784  test -z "$as_dir" && as_dir=.
4785  for ac_exec_ext in '' $ac_executable_extensions; do
4786  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4787    ac_cv_prog_ac_ct_STRIP="strip"
4788    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4789    break 2
4790  fi
4791done
4792done
4793
4794  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4795fi
4796fi
4797ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4798if test -n "$ac_ct_STRIP"; then
4799  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4800echo "${ECHO_T}$ac_ct_STRIP" >&6
4801else
4802  echo "$as_me:$LINENO: result: no" >&5
4803echo "${ECHO_T}no" >&6
4804fi
4805
4806  STRIP=$ac_ct_STRIP
4807else
4808  STRIP="$ac_cv_prog_STRIP"
4809fi
4810
4811fi
4812INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4813
4814# We need awk for the "check" target.  The system "awk" is bad on
4815# some platforms.
4816# Always define AMTAR for backward compatibility.
4817
4818AMTAR=${AMTAR-"${am_missing_run}tar"}
4819
4820am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4821
4822
4823
4824
4825depcc="$CC"   am_compiler_list=
4826
4827echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4828echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4829if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4830  echo $ECHO_N "(cached) $ECHO_C" >&6
4831else
4832  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4833  # We make a subdir and do the tests there.  Otherwise we can end up
4834  # making bogus files that we don't know about and never remove.  For
4835  # instance it was reported that on HP-UX the gcc test will end up
4836  # making a dummy file named `D' -- because `-MD' means `put the output
4837  # in D'.
4838  mkdir conftest.dir
4839  # Copy depcomp to subdir because otherwise we won't find it if we're
4840  # using a relative directory.
4841  cp "$am_depcomp" conftest.dir
4842  cd conftest.dir
4843  # We will build objects and dependencies in a subdirectory because
4844  # it helps to detect inapplicable dependency modes.  For instance
4845  # both Tru64's cc and ICC support -MD to output dependencies as a
4846  # side effect of compilation, but ICC will put the dependencies in
4847  # the current directory while Tru64 will put them in the object
4848  # directory.
4849  mkdir sub
4850
4851  am_cv_CC_dependencies_compiler_type=none
4852  if test "$am_compiler_list" = ""; then
4853     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4854  fi
4855  for depmode in $am_compiler_list; do
4856    # Setup a source with many dependencies, because some compilers
4857    # like to wrap large dependency lists on column 80 (with \), and
4858    # we should not choose a depcomp mode which is confused by this.
4859    #
4860    # We need to recreate these files for each test, as the compiler may
4861    # overwrite some of them when testing with obscure command lines.
4862    # This happens at least with the AIX C compiler.
4863    : > sub/conftest.c
4864    for i in 1 2 3 4 5 6; do
4865      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4866      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4867      # Solaris 8's {/usr,}/bin/sh.
4868      touch sub/conftst$i.h
4869    done
4870    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4871
4872    case $depmode in
4873    nosideeffect)
4874      # after this tag, mechanisms are not by side-effect, so they'll
4875      # only be used when explicitly requested
4876      if test "x$enable_dependency_tracking" = xyes; then
4877        continue
4878      else
4879        break
4880      fi
4881      ;;
4882    none) break ;;
4883    esac
4884    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4885    # mode.  It turns out that the SunPro C++ compiler does not properly
4886    # handle `-M -o', and we need to detect this.
4887    if depmode=$depmode \
4888       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4889       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4890       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4891         >/dev/null 2>conftest.err &&
4892       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4893       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4894       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4895      # icc doesn't choke on unknown options, it will just issue warnings
4896      # or remarks (even with -Werror).  So we grep stderr for any message
4897      # that says an option was ignored or not supported.
4898      # When given -MP, icc 7.0 and 7.1 complain thusly:
4899      #   icc: Command line warning: ignoring option '-M'; no argument required
4900      # The diagnosis changed in icc 8.0:
4901      #   icc: Command line remark: option '-MP' not supported
4902      if (grep 'ignoring option' conftest.err ||
4903          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4904        am_cv_CC_dependencies_compiler_type=$depmode
4905        break
4906      fi
4907    fi
4908  done
4909
4910  cd ..
4911  rm -rf conftest.dir
4912else
4913  am_cv_CC_dependencies_compiler_type=none
4914fi
4915
4916fi
4917echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4918echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4919CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4920
4921
4922
4923if
4924  test "x$enable_dependency_tracking" != xno \
4925  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4926  am__fastdepCC_TRUE=
4927  am__fastdepCC_FALSE='#'
4928else
4929  am__fastdepCC_TRUE='#'
4930  am__fastdepCC_FALSE=
4931fi
4932
4933
4934depcc="$CXX"  am_compiler_list=
4935
4936echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4937echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4938if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4939  echo $ECHO_N "(cached) $ECHO_C" >&6
4940else
4941  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4942  # We make a subdir and do the tests there.  Otherwise we can end up
4943  # making bogus files that we don't know about and never remove.  For
4944  # instance it was reported that on HP-UX the gcc test will end up
4945  # making a dummy file named `D' -- because `-MD' means `put the output
4946  # in D'.
4947  mkdir conftest.dir
4948  # Copy depcomp to subdir because otherwise we won't find it if we're
4949  # using a relative directory.
4950  cp "$am_depcomp" conftest.dir
4951  cd conftest.dir
4952  # We will build objects and dependencies in a subdirectory because
4953  # it helps to detect inapplicable dependency modes.  For instance
4954  # both Tru64's cc and ICC support -MD to output dependencies as a
4955  # side effect of compilation, but ICC will put the dependencies in
4956  # the current directory while Tru64 will put them in the object
4957  # directory.
4958  mkdir sub
4959
4960  am_cv_CXX_dependencies_compiler_type=none
4961  if test "$am_compiler_list" = ""; then
4962     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4963  fi
4964  for depmode in $am_compiler_list; do
4965    # Setup a source with many dependencies, because some compilers
4966    # like to wrap large dependency lists on column 80 (with \), and
4967    # we should not choose a depcomp mode which is confused by this.
4968    #
4969    # We need to recreate these files for each test, as the compiler may
4970    # overwrite some of them when testing with obscure command lines.
4971    # This happens at least with the AIX C compiler.
4972    : > sub/conftest.c
4973    for i in 1 2 3 4 5 6; do
4974      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4975      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4976      # Solaris 8's {/usr,}/bin/sh.
4977      touch sub/conftst$i.h
4978    done
4979    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4980
4981    case $depmode in
4982    nosideeffect)
4983      # after this tag, mechanisms are not by side-effect, so they'll
4984      # only be used when explicitly requested
4985      if test "x$enable_dependency_tracking" = xyes; then
4986        continue
4987      else
4988        break
4989      fi
4990      ;;
4991    none) break ;;
4992    esac
4993    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4994    # mode.  It turns out that the SunPro C++ compiler does not properly
4995    # handle `-M -o', and we need to detect this.
4996    if depmode=$depmode \
4997       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4998       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4999       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5000         >/dev/null 2>conftest.err &&
5001       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5002       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5003       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5004      # icc doesn't choke on unknown options, it will just issue warnings
5005      # or remarks (even with -Werror).  So we grep stderr for any message
5006      # that says an option was ignored or not supported.
5007      # When given -MP, icc 7.0 and 7.1 complain thusly:
5008      #   icc: Command line warning: ignoring option '-M'; no argument required
5009      # The diagnosis changed in icc 8.0:
5010      #   icc: Command line remark: option '-MP' not supported
5011      if (grep 'ignoring option' conftest.err ||
5012          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5013        am_cv_CXX_dependencies_compiler_type=$depmode
5014        break
5015      fi
5016    fi
5017  done
5018
5019  cd ..
5020  rm -rf conftest.dir
5021else
5022  am_cv_CXX_dependencies_compiler_type=none
5023fi
5024
5025fi
5026echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5027echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5028CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5029
5030
5031
5032if
5033  test "x$enable_dependency_tracking" != xno \
5034  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5035  am__fastdepCXX_TRUE=
5036  am__fastdepCXX_FALSE='#'
5037else
5038  am__fastdepCXX_TRUE='#'
5039  am__fastdepCXX_FALSE=
5040fi
5041
5042
5043
5044echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5045echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5046    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5047if test "${enable_maintainer_mode+set}" = set; then
5048  enableval="$enable_maintainer_mode"
5049  USE_MAINTAINER_MODE=$enableval
5050else
5051  USE_MAINTAINER_MODE=no
5052fi;
5053  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5054echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5055
5056
5057if test $USE_MAINTAINER_MODE = yes; then
5058  MAINTAINER_MODE_TRUE=
5059  MAINTAINER_MODE_FALSE='#'
5060else
5061  MAINTAINER_MODE_TRUE='#'
5062  MAINTAINER_MODE_FALSE=
5063fi
5064
5065  MAINT=$MAINTAINER_MODE_TRUE
5066
5067
5068
5069coin_have_externals=no
5070if test "$enable_maintainer_mode" = yes; then
5071
5072  # If maintainer mode is chosen, we make sure that the correct versions
5073  # of the tools are used, and that we know where libtool.m4 is (to
5074  # recreate acinclude.m4)
5075
5076
5077  LIBTOOLM4=
5078  # Normally, $HOME
5079  AUTOTOOLS_DFLT=$HOME
5080
5081  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5082echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5083if test "${ac_cv_use_correct_autotools+set}" = set; then
5084  echo $ECHO_N "(cached) $ECHO_C" >&6
5085else
5086  ac_cv_use_correct_autotools=check
5087fi
5088echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5089echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5090
5091  if test $ac_cv_use_correct_autotools = check; then
5092    ac_cv_use_correct_autotools=yes
5093    # Check if we have autoconf
5094    # Extract the first word of "autoconf", so it can be a program name with args.
5095set dummy autoconf; ac_word=$2
5096echo "$as_me:$LINENO: checking for $ac_word" >&5
5097echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5098if test "${ac_cv_prog_have_autoconf+set}" = set; then
5099  echo $ECHO_N "(cached) $ECHO_C" >&6
5100else
5101  if test -n "$have_autoconf"; then
5102  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5103else
5104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5105for as_dir in $PATH
5106do
5107  IFS=$as_save_IFS
5108  test -z "$as_dir" && as_dir=.
5109  for ac_exec_ext in '' $ac_executable_extensions; do
5110  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5111    ac_cv_prog_have_autoconf="yes"
5112    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5113    break 2
5114  fi
5115done
5116done
5117
5118  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5119fi
5120fi
5121have_autoconf=$ac_cv_prog_have_autoconf
5122if test -n "$have_autoconf"; then
5123  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5124echo "${ECHO_T}$have_autoconf" >&6
5125else
5126  echo "$as_me:$LINENO: result: no" >&5
5127echo "${ECHO_T}no" >&6
5128fi
5129
5130    if test $have_autoconf = no; then
5131      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5132echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5133   { (exit 1); exit 1; }; }
5134    fi
5135
5136    # Check whether autoconf is the correct version
5137    correct_version='2.59'
5138    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5139    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5140echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5141    autoconf --version > confauto.out 2>&1
5142    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5143      echo "$as_me:$LINENO: result: yes" >&5
5144echo "${ECHO_T}yes" >&6
5145    else
5146      rm -f confauto.out
5147      echo "$as_me:$LINENO: result: no" >&5
5148echo "${ECHO_T}no" >&6
5149      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5150echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5151   { (exit 1); exit 1; }; }
5152    fi
5153    rm -f confauto.out
5154
5155    # Check if the executable autoconf is picked up from the correct location
5156    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5157echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5158    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5159    autoconf_dir=`cd $autoconf_dir; pwd`
5160    if test x$AUTOTOOLS_DIR = x; then
5161      want_dir=$AUTOTOOLS_DFLT/bin
5162    else
5163      want_dir=$AUTOTOOLS_DIR/bin
5164    fi
5165    if test $autoconf_dir = `cd $want_dir; pwd`; then
5166      echo "$as_me:$LINENO: result: yes" >&5
5167echo "${ECHO_T}yes" >&6
5168    else
5169      rm -f confauto.out
5170      echo "$as_me:$LINENO: result: no" >&5
5171echo "${ECHO_T}no" >&6
5172      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5173echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5174   { (exit 1); exit 1; }; }
5175    fi
5176
5177    # Check if we have automake
5178    # Extract the first word of "automake", so it can be a program name with args.
5179set dummy automake; ac_word=$2
5180echo "$as_me:$LINENO: checking for $ac_word" >&5
5181echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5182if test "${ac_cv_prog_have_automake+set}" = set; then
5183  echo $ECHO_N "(cached) $ECHO_C" >&6
5184else
5185  if test -n "$have_automake"; then
5186  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5187else
5188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5189for as_dir in $PATH
5190do
5191  IFS=$as_save_IFS
5192  test -z "$as_dir" && as_dir=.
5193  for ac_exec_ext in '' $ac_executable_extensions; do
5194  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5195    ac_cv_prog_have_automake="yes"
5196    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5197    break 2
5198  fi
5199done
5200done
5201
5202  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5203fi
5204fi
5205have_automake=$ac_cv_prog_have_automake
5206if test -n "$have_automake"; then
5207  echo "$as_me:$LINENO: result: $have_automake" >&5
5208echo "${ECHO_T}$have_automake" >&6
5209else
5210  echo "$as_me:$LINENO: result: no" >&5
5211echo "${ECHO_T}no" >&6
5212fi
5213
5214    if test $have_automake = no; then
5215      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5216echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5217   { (exit 1); exit 1; }; }
5218    fi
5219
5220    # Check whether automake is the correct version
5221    correct_version='1.9.6'
5222    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5223    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5224echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5225    automake --version > confauto.out 2>&1
5226    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5227      echo "$as_me:$LINENO: result: yes" >&5
5228echo "${ECHO_T}yes" >&6
5229    else
5230      rm -f confauto.out
5231      echo "$as_me:$LINENO: result: no" >&5
5232echo "${ECHO_T}no" >&6
5233      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5234echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5235   { (exit 1); exit 1; }; }
5236    fi
5237    rm -f confauto.out
5238
5239    # Check if the executable automake is picked up from the correct location
5240    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5241echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5242    automake_dir=`which automake | sed -e 's=/automake=='`
5243    automake_dir=`cd $automake_dir; pwd`
5244    if test x$AUTOTOOLS_DIR = x; then
5245      want_dir=$AUTOTOOLS_DFLT/bin
5246    else
5247      want_dir=$AUTOTOOLS_DIR/bin
5248    fi
5249    if test $automake_dir = `cd $want_dir; pwd`; then
5250      echo "$as_me:$LINENO: result: yes" >&5
5251echo "${ECHO_T}yes" >&6
5252    else
5253      rm -f confauto.out
5254      echo "$as_me:$LINENO: result: no" >&5
5255echo "${ECHO_T}no" >&6
5256      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5257echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5258   { (exit 1); exit 1; }; }
5259    fi
5260
5261    # Check if this is the correct version of libtool (with escaped dots)
5262    if test x$AUTOTOOLS_DIR = x; then
5263      want_dir=$AUTOTOOLS_DFLT/share
5264    else
5265      want_dir=$AUTOTOOLS_DIR/share
5266    fi
5267    correct_version='1.5.22'
5268    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5269    if test -r $want_dir/libtool/ltmain.sh; then
5270  have_ltmain=yes
5271  :
5272else
5273  have_ltmain=no
5274  :
5275fi
5276
5277    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5278echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5279    if test $have_ltmain = yes; then
5280    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5281        echo "$as_me:$LINENO: result: yes" >&5
5282echo "${ECHO_T}yes" >&6
5283      else
5284        echo "$as_me:$LINENO: result: no" >&5
5285echo "${ECHO_T}no" >&6
5286        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5287echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5288   { (exit 1); exit 1; }; }
5289      fi
5290    else
5291      echo "$as_me:$LINENO: result: no" >&5
5292echo "${ECHO_T}no" >&6
5293      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5294echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5295   { (exit 1); exit 1; }; }
5296    fi
5297  fi
5298
5299  # Check if we can find the libtool file
5300  if test x$AUTOTOOLS_DIR = x; then
5301    want_dir=$AUTOTOOLS_DFLT/share
5302  else
5303    want_dir=$AUTOTOOLS_DIR/share
5304  fi
5305  if test -r $want_dir/aclocal/libtool.m4; then
5306  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5307  :
5308else
5309  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5310echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5311   { (exit 1); exit 1; }; }
5312  :
5313fi
5314
5315
5316  # Check if we have an Dependencies file
5317  if test -r $srcdir/Dependencies; then
5318    coin_have_externals=yes
5319  fi
5320  # Check if subversion is installed and understands https
5321  # Extract the first word of "svn", so it can be a program name with args.
5322set dummy svn; ac_word=$2
5323echo "$as_me:$LINENO: checking for $ac_word" >&5
5324echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5325if test "${ac_cv_prog_have_svn+set}" = set; then
5326  echo $ECHO_N "(cached) $ECHO_C" >&6
5327else
5328  if test -n "$have_svn"; then
5329  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5330else
5331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5332for as_dir in $PATH
5333do
5334  IFS=$as_save_IFS
5335  test -z "$as_dir" && as_dir=.
5336  for ac_exec_ext in '' $ac_executable_extensions; do
5337  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5338    ac_cv_prog_have_svn="yes"
5339    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5340    break 2
5341  fi
5342done
5343done
5344
5345  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5346fi
5347fi
5348have_svn=$ac_cv_prog_have_svn
5349if test -n "$have_svn"; then
5350  echo "$as_me:$LINENO: result: $have_svn" >&5
5351echo "${ECHO_T}$have_svn" >&6
5352else
5353  echo "$as_me:$LINENO: result: no" >&5
5354echo "${ECHO_T}no" >&6
5355fi
5356
5357  if test x$have_svn = xyes; then
5358    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5359echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5360if test "${ac_cv_svn_understands_https+set}" = set; then
5361  echo $ECHO_N "(cached) $ECHO_C" >&6
5362else
5363  svn --version > confauto.out 2>&1
5364                    if $EGREP https confauto.out >/dev/null 2>&1; then
5365                      ac_cv_svn_understands_https=yes
5366                    else
5367                      ac_cv_svn_understands_https=no
5368                      have_svn=no
5369                      ac_cv_prog_have_svn=no
5370                    fi
5371                    rm -f confauto.out
5372fi
5373echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5374echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5375  fi
5376
5377  # Find the location of the BuildTools directory
5378  BUILDTOOLSDIR=
5379  if test -r $srcdir/BuildTools/coin.m4; then
5380    BUILDTOOLSDIR=$srcdir/BuildTools
5381  else
5382    if test -r $srcdir/../BuildTools/coin.m4; then
5383      BUILDTOOLSDIR=$srcdir/../BuildTools
5384    else
5385      if test -r $srcdir/../../BuildTools/coin.m4; then
5386        BUILDTOOLSDIR=$srcdir/../../BuildTools
5387      else
5388        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5389echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5390   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
5391      fi
5392    fi
5393  fi
5394
5395
5396  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
5397  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
5398    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
5399  fi
5400
5401  # The following variable is set to the name of the directory where
5402  # the autotool scripts are located
5403
5404  AUX_DIR=$ac_aux_dir
5405fi
5406
5407# helpful variable for the base directory of this package
5408abs_source_dir=`cd $srcdir; pwd`
5409
5410
5411# Stuff for example Makefiles
5412if test x$prefix = xNONE; then
5413  full_prefix=$ac_default_prefix
5414else
5415  full_prefix=$prefix
5416fi
5417full_prefix=`cd $full_prefix ; pwd`
5418
5419abs_lib_dir=$full_prefix/lib
5420
5421abs_include_dir=$full_prefix/include
5422
5423abs_bin_dir=$full_prefix/bin
5424
5425
5426
5427if test $coin_have_externals = yes && test x$have_svn = xyes; then
5428  HAVE_EXTERNALS_TRUE=
5429  HAVE_EXTERNALS_FALSE='#'
5430else
5431  HAVE_EXTERNALS_TRUE='#'
5432  HAVE_EXTERNALS_FALSE=
5433fi
5434
5435
5436# AC_MSG_NOTICE([End automake initialisation.])
5437
5438
5439
5440LIBTOOL=
5441if test -r ../libtool; then
5442  coin_config_dir=..
5443  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5444fi
5445if test "x$LIBTOOL" = x; then
5446  if test -r ../../libtool; then
5447    coin_config_dir=../..
5448    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5449  fi
5450fi
5451
5452if test "x$LIBTOOL" = x; then
5453# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5454  # Stuff for libtool
5455  # Check whether --enable-shared or --disable-shared was given.
5456if test "${enable_shared+set}" = set; then
5457  enableval="$enable_shared"
5458  p=${PACKAGE-default}
5459    case $enableval in
5460    yes) enable_shared=yes ;;
5461    no) enable_shared=no ;;
5462    *)
5463      enable_shared=no
5464      # Look at the argument we got.  We use all the common list separators.
5465      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5466      for pkg in $enableval; do
5467        IFS="$lt_save_ifs"
5468        if test "X$pkg" = "X$p"; then
5469          enable_shared=yes
5470        fi
5471      done
5472      IFS="$lt_save_ifs"
5473      ;;
5474    esac
5475else
5476  enable_shared=yes
5477fi;
5478
5479# Check whether --enable-fast-install or --disable-fast-install was given.
5480if test "${enable_fast_install+set}" = set; then
5481  enableval="$enable_fast_install"
5482  p=${PACKAGE-default}
5483    case $enableval in
5484    yes) enable_fast_install=yes ;;
5485    no) enable_fast_install=no ;;
5486    *)
5487      enable_fast_install=no
5488      # Look at the argument we got.  We use all the common list separators.
5489      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5490      for pkg in $enableval; do
5491        IFS="$lt_save_ifs"
5492        if test "X$pkg" = "X$p"; then
5493          enable_fast_install=yes
5494        fi
5495      done
5496      IFS="$lt_save_ifs"
5497      ;;
5498    esac
5499else
5500  enable_fast_install=yes
5501fi;
5502
5503echo "$as_me:$LINENO: checking host system type" >&5
5504echo $ECHO_N "checking host system type... $ECHO_C" >&6
5505if test "${ac_cv_host+set}" = set; then
5506  echo $ECHO_N "(cached) $ECHO_C" >&6
5507else
5508  ac_cv_host_alias=$host_alias
5509test -z "$ac_cv_host_alias" &&
5510  ac_cv_host_alias=$ac_cv_build_alias
5511ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5512  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5513echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5514   { (exit 1); exit 1; }; }
5515
5516fi
5517echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5518echo "${ECHO_T}$ac_cv_host" >&6
5519host=$ac_cv_host
5520host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5521host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5522host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5523
5524
5525echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5526echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5527if test "${lt_cv_path_SED+set}" = set; then
5528  echo $ECHO_N "(cached) $ECHO_C" >&6
5529else
5530  # Loop through the user's path and test for sed and gsed.
5531# Then use that list of sed's as ones to test for truncation.
5532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5533for as_dir in $PATH
5534do
5535  IFS=$as_save_IFS
5536  test -z "$as_dir" && as_dir=.
5537  for lt_ac_prog in sed gsed; do
5538    for ac_exec_ext in '' $ac_executable_extensions; do
5539      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5540        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5541      fi
5542    done
5543  done
5544done
5545lt_ac_max=0
5546lt_ac_count=0
5547# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5548# along with /bin/sed that truncates output.
5549for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5550  test ! -f $lt_ac_sed && continue
5551  cat /dev/null > conftest.in
5552  lt_ac_count=0
5553  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5554  # Check for GNU sed and select it if it is found.
5555  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5556    lt_cv_path_SED=$lt_ac_sed
5557    break
5558  fi
5559  while true; do
5560    cat conftest.in conftest.in >conftest.tmp
5561    mv conftest.tmp conftest.in
5562    cp conftest.in conftest.nl
5563    echo >>conftest.nl
5564    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5565    cmp -s conftest.out conftest.nl || break
5566    # 10000 chars as input seems more than enough
5567    test $lt_ac_count -gt 10 && break
5568    lt_ac_count=`expr $lt_ac_count + 1`
5569    if test $lt_ac_count -gt $lt_ac_max; then
5570      lt_ac_max=$lt_ac_count
5571      lt_cv_path_SED=$lt_ac_sed
5572    fi
5573  done
5574done
5575
5576fi
5577
5578SED=$lt_cv_path_SED
5579echo "$as_me:$LINENO: result: $SED" >&5
5580echo "${ECHO_T}$SED" >&6
5581
5582
5583# Check whether --with-gnu-ld or --without-gnu-ld was given.
5584if test "${with_gnu_ld+set}" = set; then
5585  withval="$with_gnu_ld"
5586  test "$withval" = no || with_gnu_ld=yes
5587else
5588  with_gnu_ld=no
5589fi;
5590ac_prog=ld
5591if test "$GCC" = yes; then
5592  # Check if gcc -print-prog-name=ld gives a path.
5593  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5594echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5595  case $host in
5596  *-*-mingw*)
5597    # gcc leaves a trailing carriage return which upsets mingw
5598    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5599  *)
5600    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5601  esac
5602  case $ac_prog in
5603    # Accept absolute paths.
5604    [\\/]* | ?:[\\/]*)
5605      re_direlt='/[^/][^/]*/\.\./'
5606      # Canonicalize the pathname of ld
5607      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5608      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5609        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5610      done
5611      test -z "$LD" && LD="$ac_prog"
5612      ;;
5613  "")
5614    # If it fails, then pretend we aren't using GCC.
5615    ac_prog=ld
5616    ;;
5617  *)
5618    # If it is relative, then search for the first ld in PATH.
5619    with_gnu_ld=unknown
5620    ;;
5621  esac
5622elif test "$with_gnu_ld" = yes; then
5623  echo "$as_me:$LINENO: checking for GNU ld" >&5
5624echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5625else
5626  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5627echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5628fi
5629if test "${lt_cv_path_LD+set}" = set; then
5630  echo $ECHO_N "(cached) $ECHO_C" >&6
5631else
5632  if test -z "$LD"; then
5633  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5634  for ac_dir in $PATH; do
5635    IFS="$lt_save_ifs"
5636    test -z "$ac_dir" && ac_dir=.
5637    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5638      lt_cv_path_LD="$ac_dir/$ac_prog"
5639      # Check to see if the program is GNU ld.  I'd rather use --version,
5640      # but apparently some variants of GNU ld only accept -v.
5641      # Break only if it was the GNU/non-GNU ld that we prefer.
5642      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5643      *GNU* | *'with BFD'*)
5644        test "$with_gnu_ld" != no && break
5645        ;;
5646      *)
5647        test "$with_gnu_ld" != yes && break
5648        ;;
5649      esac
5650    fi
5651  done
5652  IFS="$lt_save_ifs"
5653else
5654  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5655fi
5656fi
5657
5658LD="$lt_cv_path_LD"
5659if test -n "$LD"; then
5660  echo "$as_me:$LINENO: result: $LD" >&5
5661echo "${ECHO_T}$LD" >&6
5662else
5663  echo "$as_me:$LINENO: result: no" >&5
5664echo "${ECHO_T}no" >&6
5665fi
5666test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5667echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5668   { (exit 1); exit 1; }; }
5669echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5670echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5671if test "${lt_cv_prog_gnu_ld+set}" = set; then
5672  echo $ECHO_N "(cached) $ECHO_C" >&6
5673else
5674  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5675case `$LD -v 2>&1 </dev/null` in
5676*GNU* | *'with BFD'*)
5677  lt_cv_prog_gnu_ld=yes
5678  ;;
5679*)
5680  lt_cv_prog_gnu_ld=no
5681  ;;
5682esac
5683fi
5684echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5685echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5686with_gnu_ld=$lt_cv_prog_gnu_ld
5687
5688
5689echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5690echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5691if test "${lt_cv_ld_reload_flag+set}" = set; then
5692  echo $ECHO_N "(cached) $ECHO_C" >&6
5693else
5694  lt_cv_ld_reload_flag='-r'
5695fi
5696echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5697echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5698reload_flag=$lt_cv_ld_reload_flag
5699case $reload_flag in
5700"" | " "*) ;;
5701*) reload_flag=" $reload_flag" ;;
5702esac
5703reload_cmds='$LD$reload_flag -o $output$reload_objs'
5704case $host_os in
5705  darwin*)
5706    if test "$GCC" = yes; then
5707      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5708    else
5709      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5710    fi
5711    ;;
5712esac
5713
5714echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5715echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5716if test "${lt_cv_path_NM+set}" = set; then
5717  echo $ECHO_N "(cached) $ECHO_C" >&6
5718else
5719  if test -n "$NM"; then
5720  # Let the user override the test.
5721  lt_cv_path_NM="$NM"
5722else
5723  lt_nm_to_check="${ac_tool_prefix}nm"
5724  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5725    lt_nm_to_check="$lt_nm_to_check nm"
5726  fi
5727  for lt_tmp_nm in $lt_nm_to_check; do
5728    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5729    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5730      IFS="$lt_save_ifs"
5731      test -z "$ac_dir" && ac_dir=.
5732      tmp_nm="$ac_dir/$lt_tmp_nm"
5733      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5734        # Check to see if the nm accepts a BSD-compat flag.
5735        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5736        #   nm: unknown option "B" ignored
5737        # Tru64's nm complains that /dev/null is an invalid object file
5738        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5739        */dev/null* | *'Invalid file or object type'*)
5740          lt_cv_path_NM="$tmp_nm -B"
5741          break
5742          ;;
5743        *)
5744          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5745          */dev/null*)
5746            lt_cv_path_NM="$tmp_nm -p"
5747            break
5748            ;;
5749          *)
5750            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5751            continue # so that we can try to find one that supports BSD flags
5752            ;;
5753          esac
5754          ;;
5755        esac
5756      fi
5757    done
5758    IFS="$lt_save_ifs"
5759  done
5760  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5761fi
5762fi
5763echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5764echo "${ECHO_T}$lt_cv_path_NM" >&6
5765NM="$lt_cv_path_NM"
5766
5767echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5768echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5769if test "${lt_cv_deplibs_check_method+set}" = set; then
5770  echo $ECHO_N "(cached) $ECHO_C" >&6
5771else
5772  lt_cv_file_magic_cmd='$MAGIC_CMD'
5773lt_cv_file_magic_test_file=
5774lt_cv_deplibs_check_method='unknown'
5775# Need to set the preceding variable on all platforms that support
5776# interlibrary dependencies.
5777# 'none' -- dependencies not supported.
5778# `unknown' -- same as none, but documents that we really don't know.
5779# 'pass_all' -- all dependencies passed with no checks.
5780# 'test_compile' -- check by making test program.
5781# 'file_magic [[regex]]' -- check by looking for files in library path
5782# which responds to the $file_magic_cmd with a given extended regex.
5783# If you have `file' or equivalent on your system and you're not sure
5784# whether `pass_all' will *always* work, you probably want this one.
5785
5786case $host_os in
5787aix4* | aix5*)
5788  lt_cv_deplibs_check_method=pass_all
5789  ;;
5790
5791beos*)
5792  lt_cv_deplibs_check_method=pass_all
5793  ;;
5794
5795bsdi[45]*)
5796  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5797  lt_cv_file_magic_cmd='/usr/bin/file -L'
5798  lt_cv_file_magic_test_file=/shlib/libc.so
5799  ;;
5800
5801cygwin*)
5802  # func_win32_libid is a shell function defined in ltmain.sh
5803  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5804  lt_cv_file_magic_cmd='func_win32_libid'
5805  ;;
5806
5807mingw* | pw32*)
5808  # Base MSYS/MinGW do not provide the 'file' command needed by
5809  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5810  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5811  lt_cv_file_magic_cmd='$OBJDUMP -f'
5812  ;;
5813
5814darwin* | rhapsody*)
5815  lt_cv_deplibs_check_method=pass_all
5816  ;;
5817
5818freebsd* | kfreebsd*-gnu | dragonfly*)
5819  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5820    case $host_cpu in
5821    i*86 )
5822      # Not sure whether the presence of OpenBSD here was a mistake.
5823      # Let's accept both of them until this is cleared up.
5824      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5825      lt_cv_file_magic_cmd=/usr/bin/file
5826      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5827      ;;
5828    esac
5829  else
5830    lt_cv_deplibs_check_method=pass_all
5831  fi
5832  ;;
5833
5834gnu*)
5835  lt_cv_deplibs_check_method=pass_all
5836  ;;
5837
5838hpux10.20* | hpux11*)
5839  lt_cv_file_magic_cmd=/usr/bin/file
5840  case $host_cpu in
5841  ia64*)
5842    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5843    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5844    ;;
5845  hppa*64*)
5846    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]'
5847    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5848    ;;
5849  *)
5850    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5851    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5852    ;;
5853  esac
5854  ;;
5855
5856interix3*)
5857  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5858  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5859  ;;
5860
5861irix5* | irix6* | nonstopux*)
5862  case $LD in
5863  *-32|*"-32 ") libmagic=32-bit;;
5864  *-n32|*"-n32 ") libmagic=N32;;
5865  *-64|*"-64 ") libmagic=64-bit;;
5866  *) libmagic=never-match;;
5867  esac
5868  lt_cv_deplibs_check_method=pass_all
5869  ;;
5870
5871# This must be Linux ELF.
5872linux*)
5873  lt_cv_deplibs_check_method=pass_all
5874  ;;
5875
5876netbsd*)
5877  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5878    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5879  else
5880    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5881  fi
5882  ;;
5883
5884newos6*)
5885  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5886  lt_cv_file_magic_cmd=/usr/bin/file
5887  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5888  ;;
5889
5890nto-qnx*)
5891  lt_cv_deplibs_check_method=unknown
5892  ;;
5893
5894openbsd*)
5895  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5896    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5897  else
5898    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5899  fi
5900  ;;
5901
5902osf3* | osf4* | osf5*)
5903  lt_cv_deplibs_check_method=pass_all
5904  ;;
5905
5906solaris*)
5907  lt_cv_deplibs_check_method=pass_all
5908  ;;
5909
5910sysv4 | sysv4.3*)
5911  case $host_vendor in
5912  motorola)
5913    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]'
5914    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5915    ;;
5916  ncr)
5917    lt_cv_deplibs_check_method=pass_all
5918    ;;
5919  sequent)
5920    lt_cv_file_magic_cmd='/bin/file'
5921    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5922    ;;
5923  sni)
5924    lt_cv_file_magic_cmd='/bin/file'
5925    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5926    lt_cv_file_magic_test_file=/lib/libc.so
5927    ;;
5928  siemens)
5929    lt_cv_deplibs_check_method=pass_all
5930    ;;
5931  pc)
5932    lt_cv_deplibs_check_method=pass_all
5933    ;;
5934  esac
5935  ;;
5936
5937sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5938  lt_cv_deplibs_check_method=pass_all
5939  ;;
5940esac
5941
5942fi
5943echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5944echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5945file_magic_cmd=$lt_cv_file_magic_cmd
5946deplibs_check_method=$lt_cv_deplibs_check_method
5947test -z "$deplibs_check_method" && deplibs_check_method=unknown
5948
5949
5950
5951
5952# If no C compiler was specified, use CC.
5953LTCC=${LTCC-"$CC"}
5954
5955# If no C compiler flags were specified, use CFLAGS.
5956LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5957
5958# Allow CC to be a program name with arguments.
5959compiler=$CC
5960
5961# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5962if test "${enable_libtool_lock+set}" = set; then
5963  enableval="$enable_libtool_lock"
5964
5965fi;
5966test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5967
5968# Some flags need to be propagated to the compiler or linker for good
5969# libtool support.
5970case $host in
5971ia64-*-hpux*)
5972  # Find out which ABI we are using.
5973  echo 'int i;' > conftest.$ac_ext
5974  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5975  (eval $ac_compile) 2>&5
5976  ac_status=$?
5977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5978  (exit $ac_status); }; then
5979    case `/usr/bin/file conftest.$ac_objext` in
5980    *ELF-32*)
5981      HPUX_IA64_MODE="32"
5982      ;;
5983    *ELF-64*)
5984      HPUX_IA64_MODE="64"
5985      ;;
5986    esac
5987  fi
5988  rm -rf conftest*
5989  ;;
5990*-*-irix6*)
5991  # Find out which ABI we are using.
5992  echo '#line 5992 "configure"' > conftest.$ac_ext
5993  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5994  (eval $ac_compile) 2>&5
5995  ac_status=$?
5996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997  (exit $ac_status); }; then
5998   if test "$lt_cv_prog_gnu_ld" = yes; then
5999    case `/usr/bin/file conftest.$ac_objext` in
6000    *32-bit*)
6001      LD="${LD-ld} -melf32bsmip"
6002      ;;
6003    *N32*)
6004      LD="${LD-ld} -melf32bmipn32"
6005      ;;
6006    *64-bit*)
6007      LD="${LD-ld} -melf64bmip"
6008      ;;
6009    esac
6010   else
6011    case `/usr/bin/file conftest.$ac_objext` in
6012    *32-bit*)
6013      LD="${LD-ld} -32"
6014      ;;
6015    *N32*)
6016      LD="${LD-ld} -n32"
6017      ;;
6018    *64-bit*)
6019      LD="${LD-ld} -64"
6020      ;;
6021    esac
6022   fi
6023  fi
6024  rm -rf conftest*
6025  ;;
6026
6027x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6028  # Find out which ABI we are using.
6029  echo 'int i;' > conftest.$ac_ext
6030  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6031  (eval $ac_compile) 2>&5
6032  ac_status=$?
6033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034  (exit $ac_status); }; then
6035    case `/usr/bin/file conftest.o` in
6036    *32-bit*)
6037      case $host in
6038        x86_64-*linux*)
6039          LD="${LD-ld} -m elf_i386"
6040          ;;
6041        ppc64-*linux*|powerpc64-*linux*)
6042          LD="${LD-ld} -m elf32ppclinux"
6043          ;;
6044        s390x-*linux*)
6045          LD="${LD-ld} -m elf_s390"
6046          ;;
6047        sparc64-*linux*)
6048          LD="${LD-ld} -m elf32_sparc"
6049          ;;
6050      esac
6051      ;;
6052    *64-bit*)
6053      case $host in
6054        x86_64-*linux*)
6055          LD="${LD-ld} -m elf_x86_64"
6056          ;;
6057        ppc*-*linux*|powerpc*-*linux*)
6058          LD="${LD-ld} -m elf64ppc"
6059          ;;
6060        s390*-*linux*)
6061          LD="${LD-ld} -m elf64_s390"
6062          ;;
6063        sparc*-*linux*)
6064          LD="${LD-ld} -m elf64_sparc"
6065          ;;
6066      esac
6067      ;;
6068    esac
6069  fi
6070  rm -rf conftest*
6071  ;;
6072
6073*-*-sco3.2v5*)
6074  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6075  SAVE_CFLAGS="$CFLAGS"
6076  CFLAGS="$CFLAGS -belf"
6077  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6078echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6079if test "${lt_cv_cc_needs_belf+set}" = set; then
6080  echo $ECHO_N "(cached) $ECHO_C" >&6
6081else
6082  ac_ext=c
6083ac_cpp='$CPP $CPPFLAGS'
6084ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6085ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6086ac_compiler_gnu=$ac_cv_c_compiler_gnu
6087
6088     cat >conftest.$ac_ext <<_ACEOF
6089/* confdefs.h.  */
6090_ACEOF
6091cat confdefs.h >>conftest.$ac_ext
6092cat >>conftest.$ac_ext <<_ACEOF
6093/* end confdefs.h.  */
6094
6095int
6096main ()
6097{
6098
6099  ;
6100  return 0;
6101}
6102_ACEOF
6103rm -f conftest.$ac_objext conftest$ac_exeext
6104if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6105  (eval $ac_link) 2>conftest.er1
6106  ac_status=$?
6107  grep -v '^ *+' conftest.er1 >conftest.err
6108  rm -f conftest.er1
6109  cat conftest.err >&5
6110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111  (exit $ac_status); } &&
6112         { ac_try='test -z "$ac_c_werror_flag"
6113                         || test ! -s conftest.err'
6114  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6115  (eval $ac_try) 2>&5
6116  ac_status=$?
6117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118  (exit $ac_status); }; } &&
6119         { ac_try='test -s conftest$ac_exeext'
6120  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6121  (eval $ac_try) 2>&5
6122  ac_status=$?
6123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124  (exit $ac_status); }; }; then
6125  lt_cv_cc_needs_belf=yes
6126else
6127  echo "$as_me: failed program was:" >&5
6128sed 's/^/| /' conftest.$ac_ext >&5
6129
6130lt_cv_cc_needs_belf=no
6131fi
6132rm -f conftest.err conftest.$ac_objext \
6133      conftest$ac_exeext conftest.$ac_ext
6134     ac_ext=c
6135ac_cpp='$CPP $CPPFLAGS'
6136ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6137ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6138ac_compiler_gnu=$ac_cv_c_compiler_gnu
6139
6140fi
6141echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6142echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6143  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6144    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6145    CFLAGS="$SAVE_CFLAGS"
6146  fi
6147  ;;
6148sparc*-*solaris*)
6149  # Find out which ABI we are using.
6150  echo 'int i;' > conftest.$ac_ext
6151  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6152  (eval $ac_compile) 2>&5
6153  ac_status=$?
6154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155  (exit $ac_status); }; then
6156    case `/usr/bin/file conftest.o` in
6157    *64-bit*)
6158      case $lt_cv_prog_gnu_ld in
6159      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6160      *)    LD="${LD-ld} -64" ;;
6161      esac
6162      ;;
6163    esac
6164  fi
6165  rm -rf conftest*
6166  ;;
6167
6168
6169esac
6170
6171need_locks="$enable_libtool_lock"
6172
6173
6174ac_ext=c
6175ac_cpp='$CPP $CPPFLAGS'
6176ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6177ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6178ac_compiler_gnu=$ac_cv_c_compiler_gnu
6179echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6180echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6181# On Suns, sometimes $CPP names a directory.
6182if test -n "$CPP" && test -d "$CPP"; then
6183  CPP=
6184fi
6185if test -z "$CPP"; then
6186  if test "${ac_cv_prog_CPP+set}" = set; then
6187  echo $ECHO_N "(cached) $ECHO_C" >&6
6188else
6189      # Double quotes because CPP needs to be expanded
6190    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6191    do
6192      ac_preproc_ok=false
6193for ac_c_preproc_warn_flag in '' yes
6194do
6195  # Use a header file that comes with gcc, so configuring glibc
6196  # with a fresh cross-compiler works.
6197  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6198  # <limits.h> exists even on freestanding compilers.
6199  # On the NeXT, cc -E runs the code through the compiler's parser,
6200  # not just through cpp. "Syntax error" is here to catch this case.
6201  cat >conftest.$ac_ext <<_ACEOF
6202/* confdefs.h.  */
6203_ACEOF
6204cat confdefs.h >>conftest.$ac_ext
6205cat >>conftest.$ac_ext <<_ACEOF
6206/* end confdefs.h.  */
6207#ifdef __STDC__
6208# include <limits.h>
6209#else
6210# include <assert.h>
6211#endif
6212                     Syntax error
6213_ACEOF
6214if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6215  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6216  ac_status=$?
6217  grep -v '^ *+' conftest.er1 >conftest.err
6218  rm -f conftest.er1
6219  cat conftest.err >&5
6220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221  (exit $ac_status); } >/dev/null; then
6222  if test -s conftest.err; then
6223    ac_cpp_err=$ac_c_preproc_warn_flag
6224    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6225  else
6226    ac_cpp_err=
6227  fi
6228else
6229  ac_cpp_err=yes
6230fi
6231if test -z "$ac_cpp_err"; then
6232  :
6233else
6234  echo "$as_me: failed program was:" >&5
6235sed 's/^/| /' conftest.$ac_ext >&5
6236
6237  # Broken: fails on valid input.
6238continue
6239fi
6240rm -f conftest.err conftest.$ac_ext
6241
6242  # OK, works on sane cases.  Now check whether non-existent headers
6243  # can be detected and how.
6244  cat >conftest.$ac_ext <<_ACEOF
6245/* confdefs.h.  */
6246_ACEOF
6247cat confdefs.h >>conftest.$ac_ext
6248cat >>conftest.$ac_ext <<_ACEOF
6249/* end confdefs.h.  */
6250#include <ac_nonexistent.h>
6251_ACEOF
6252if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6253  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6254  ac_status=$?
6255  grep -v '^ *+' conftest.er1 >conftest.err
6256  rm -f conftest.er1
6257  cat conftest.err >&5
6258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6259  (exit $ac_status); } >/dev/null; then
6260  if test -s conftest.err; then
6261    ac_cpp_err=$ac_c_preproc_warn_flag
6262    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6263  else
6264    ac_cpp_err=
6265  fi
6266else
6267  ac_cpp_err=yes
6268fi
6269if test -z "$ac_cpp_err"; then
6270  # Broken: success on invalid input.
6271continue
6272else
6273  echo "$as_me: failed program was:" >&5
6274sed 's/^/| /' conftest.$ac_ext >&5
6275
6276  # Passes both tests.
6277ac_preproc_ok=:
6278break
6279fi
6280rm -f conftest.err conftest.$ac_ext
6281
6282done
6283# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6284rm -f conftest.err conftest.$ac_ext
6285if $ac_preproc_ok; then
6286  break
6287fi
6288
6289    done
6290    ac_cv_prog_CPP=$CPP
6291
6292fi
6293  CPP=$ac_cv_prog_CPP
6294else
6295  ac_cv_prog_CPP=$CPP
6296fi
6297echo "$as_me:$LINENO: result: $CPP" >&5
6298echo "${ECHO_T}$CPP" >&6
6299ac_preproc_ok=false
6300for ac_c_preproc_warn_flag in '' yes
6301do
6302  # Use a header file that comes with gcc, so configuring glibc
6303  # with a fresh cross-compiler works.
6304  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6305  # <limits.h> exists even on freestanding compilers.
6306  # On the NeXT, cc -E runs the code through the compiler's parser,
6307  # not just through cpp. "Syntax error" is here to catch this case.
6308  cat >conftest.$ac_ext <<_ACEOF
6309/* confdefs.h.  */
6310_ACEOF
6311cat confdefs.h >>conftest.$ac_ext
6312cat >>conftest.$ac_ext <<_ACEOF
6313/* end confdefs.h.  */
6314#ifdef __STDC__
6315# include <limits.h>
6316#else
6317# include <assert.h>
6318#endif
6319                     Syntax error
6320_ACEOF
6321if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6322  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6323  ac_status=$?
6324  grep -v '^ *+' conftest.er1 >conftest.err
6325  rm -f conftest.er1
6326  cat conftest.err >&5
6327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328  (exit $ac_status); } >/dev/null; then
6329  if test -s conftest.err; then
6330    ac_cpp_err=$ac_c_preproc_warn_flag
6331    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6332  else
6333    ac_cpp_err=
6334  fi
6335else
6336  ac_cpp_err=yes
6337fi
6338if test -z "$ac_cpp_err"; then
6339  :
6340else
6341  echo "$as_me: failed program was:" >&5
6342sed 's/^/| /' conftest.$ac_ext >&5
6343
6344  # Broken: fails on valid input.
6345continue
6346fi
6347rm -f conftest.err conftest.$ac_ext
6348
6349  # OK, works on sane cases.  Now check whether non-existent headers
6350  # can be detected and how.
6351  cat >conftest.$ac_ext <<_ACEOF
6352/* confdefs.h.  */
6353_ACEOF
6354cat confdefs.h >>conftest.$ac_ext
6355cat >>conftest.$ac_ext <<_ACEOF
6356/* end confdefs.h.  */
6357#include <ac_nonexistent.h>
6358_ACEOF
6359if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6360  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6361  ac_status=$?
6362  grep -v '^ *+' conftest.er1 >conftest.err
6363  rm -f conftest.er1
6364  cat conftest.err >&5
6365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366  (exit $ac_status); } >/dev/null; then
6367  if test -s conftest.err; then
6368    ac_cpp_err=$ac_c_preproc_warn_flag
6369    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6370  else
6371    ac_cpp_err=
6372  fi
6373else
6374  ac_cpp_err=yes
6375fi
6376if test -z "$ac_cpp_err"; then
6377  # Broken: success on invalid input.
6378continue
6379else
6380  echo "$as_me: failed program was:" >&5
6381sed 's/^/| /' conftest.$ac_ext >&5
6382
6383  # Passes both tests.
6384ac_preproc_ok=:
6385break
6386fi
6387rm -f conftest.err conftest.$ac_ext
6388
6389done
6390# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6391rm -f conftest.err conftest.$ac_ext
6392if $ac_preproc_ok; then
6393  :
6394else
6395  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6396See \`config.log' for more details." >&5
6397echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6398See \`config.log' for more details." >&2;}
6399   { (exit 1); exit 1; }; }
6400fi
6401
6402ac_ext=c
6403ac_cpp='$CPP $CPPFLAGS'
6404ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6405ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6406ac_compiler_gnu=$ac_cv_c_compiler_gnu
6407
6408
6409echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6410echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6411if test "${ac_cv_header_stdc+set}" = set; then
6412  echo $ECHO_N "(cached) $ECHO_C" >&6
6413else
6414  cat >conftest.$ac_ext <<_ACEOF
6415/* confdefs.h.  */
6416_ACEOF
6417cat confdefs.h >>conftest.$ac_ext
6418cat >>conftest.$ac_ext <<_ACEOF
6419/* end confdefs.h.  */
6420#include <stdlib.h>
6421#include <stdarg.h>
6422#include <string.h>
6423#include <float.h>
6424
6425int
6426main ()
6427{
6428
6429  ;
6430  return 0;
6431}
6432_ACEOF
6433rm -f conftest.$ac_objext
6434if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6435  (eval $ac_compile) 2>conftest.er1
6436  ac_status=$?
6437  grep -v '^ *+' conftest.er1 >conftest.err
6438  rm -f conftest.er1
6439  cat conftest.err >&5
6440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441  (exit $ac_status); } &&
6442         { ac_try='test -z "$ac_c_werror_flag"
6443                         || test ! -s conftest.err'
6444  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6445  (eval $ac_try) 2>&5
6446  ac_status=$?
6447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448  (exit $ac_status); }; } &&
6449         { ac_try='test -s conftest.$ac_objext'
6450  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6451  (eval $ac_try) 2>&5
6452  ac_status=$?
6453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454  (exit $ac_status); }; }; then
6455  ac_cv_header_stdc=yes
6456else
6457  echo "$as_me: failed program was:" >&5
6458sed 's/^/| /' conftest.$ac_ext >&5
6459
6460ac_cv_header_stdc=no
6461fi
6462rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6463
6464if test $ac_cv_header_stdc = yes; then
6465  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6466  cat >conftest.$ac_ext <<_ACEOF
6467/* confdefs.h.  */
6468_ACEOF
6469cat confdefs.h >>conftest.$ac_ext
6470cat >>conftest.$ac_ext <<_ACEOF
6471/* end confdefs.h.  */
6472#include <string.h>
6473
6474_ACEOF
6475if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6476  $EGREP "memchr" >/dev/null 2>&1; then
6477  :
6478else
6479  ac_cv_header_stdc=no
6480fi
6481rm -f conftest*
6482
6483fi
6484
6485if test $ac_cv_header_stdc = yes; then
6486  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6487  cat >conftest.$ac_ext <<_ACEOF
6488/* confdefs.h.  */
6489_ACEOF
6490cat confdefs.h >>conftest.$ac_ext
6491cat >>conftest.$ac_ext <<_ACEOF
6492/* end confdefs.h.  */
6493#include <stdlib.h>
6494
6495_ACEOF
6496if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6497  $EGREP "free" >/dev/null 2>&1; then
6498  :
6499else
6500  ac_cv_header_stdc=no
6501fi
6502rm -f conftest*
6503
6504fi
6505
6506if test $ac_cv_header_stdc = yes; then
6507  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6508  if test "$cross_compiling" = yes; then
6509  :
6510else
6511  cat >conftest.$ac_ext <<_ACEOF
6512/* confdefs.h.  */
6513_ACEOF
6514cat confdefs.h >>conftest.$ac_ext
6515cat >>conftest.$ac_ext <<_ACEOF
6516/* end confdefs.h.  */
6517#include <ctype.h>
6518#if ((' ' & 0x0FF) == 0x020)
6519# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6520# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6521#else
6522# define ISLOWER(c) \
6523                   (('a' <= (c) && (c) <= 'i') \
6524                     || ('j' <= (c) && (c) <= 'r') \
6525                     || ('s' <= (c) && (c) <= 'z'))
6526# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6527#endif
6528
6529#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6530int
6531main ()
6532{
6533  int i;
6534  for (i = 0; i < 256; i++)
6535    if (XOR (islower (i), ISLOWER (i))
6536        || toupper (i) != TOUPPER (i))
6537      exit(2);
6538  exit (0);
6539}
6540_ACEOF
6541rm -f conftest$ac_exeext
6542if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6543  (eval $ac_link) 2>&5
6544  ac_status=$?
6545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6547  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6548  (eval $ac_try) 2>&5
6549  ac_status=$?
6550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6551  (exit $ac_status); }; }; then
6552  :
6553else
6554  echo "$as_me: program exited with status $ac_status" >&5
6555echo "$as_me: failed program was:" >&5
6556sed 's/^/| /' conftest.$ac_ext >&5
6557
6558( exit $ac_status )
6559ac_cv_header_stdc=no
6560fi
6561rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6562fi
6563fi
6564fi
6565echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6566echo "${ECHO_T}$ac_cv_header_stdc" >&6
6567if test $ac_cv_header_stdc = yes; then
6568
6569cat >>confdefs.h <<\_ACEOF
6570#define STDC_HEADERS 1
6571_ACEOF
6572
6573fi
6574
6575# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6586                  inttypes.h stdint.h unistd.h
6587do
6588as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6589echo "$as_me:$LINENO: checking for $ac_header" >&5
6590echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6591if eval "test \"\${$as_ac_Header+set}\" = set"; then
6592  echo $ECHO_N "(cached) $ECHO_C" >&6
6593else
6594  cat >conftest.$ac_ext <<_ACEOF
6595/* confdefs.h.  */
6596_ACEOF
6597cat confdefs.h >>conftest.$ac_ext
6598cat >>conftest.$ac_ext <<_ACEOF
6599/* end confdefs.h.  */
6600$ac_includes_default
6601
6602#include <$ac_header>
6603_ACEOF
6604rm -f conftest.$ac_objext
6605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6606  (eval $ac_compile) 2>conftest.er1
6607  ac_status=$?
6608  grep -v '^ *+' conftest.er1 >conftest.err
6609  rm -f conftest.er1
6610  cat conftest.err >&5
6611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612  (exit $ac_status); } &&
6613         { ac_try='test -z "$ac_c_werror_flag"
6614                         || test ! -s conftest.err'
6615  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6616  (eval $ac_try) 2>&5
6617  ac_status=$?
6618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619  (exit $ac_status); }; } &&
6620         { ac_try='test -s conftest.$ac_objext'
6621  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6622  (eval $ac_try) 2>&5
6623  ac_status=$?
6624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625  (exit $ac_status); }; }; then
6626  eval "$as_ac_Header=yes"
6627else
6628  echo "$as_me: failed program was:" >&5
6629sed 's/^/| /' conftest.$ac_ext >&5
6630
6631eval "$as_ac_Header=no"
6632fi
6633rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6634fi
6635echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6636echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6637if test `eval echo '${'$as_ac_Header'}'` = yes; then
6638  cat >>confdefs.h <<_ACEOF
6639#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6640_ACEOF
6641
6642fi
6643
6644done
6645
6646
6647
6648for ac_header in dlfcn.h
6649do
6650as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6651if eval "test \"\${$as_ac_Header+set}\" = set"; then
6652  echo "$as_me:$LINENO: checking for $ac_header" >&5
6653echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6654if eval "test \"\${$as_ac_Header+set}\" = set"; then
6655  echo $ECHO_N "(cached) $ECHO_C" >&6
6656fi
6657echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6658echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6659else
6660  # Is the header compilable?
6661echo "$as_me:$LINENO: checking $ac_header usability" >&5
6662echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6663cat >conftest.$ac_ext <<_ACEOF
6664/* confdefs.h.  */
6665_ACEOF
6666cat confdefs.h >>conftest.$ac_ext
6667cat >>conftest.$ac_ext <<_ACEOF
6668/* end confdefs.h.  */
6669$ac_includes_default
6670#include <$ac_header>
6671_ACEOF
6672rm -f conftest.$ac_objext
6673if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6674  (eval $ac_compile) 2>conftest.er1
6675  ac_status=$?
6676  grep -v '^ *+' conftest.er1 >conftest.err
6677  rm -f conftest.er1
6678  cat conftest.err >&5
6679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680  (exit $ac_status); } &&
6681         { ac_try='test -z "$ac_c_werror_flag"
6682                         || test ! -s conftest.err'
6683  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6684  (eval $ac_try) 2>&5
6685  ac_status=$?
6686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687  (exit $ac_status); }; } &&
6688         { ac_try='test -s conftest.$ac_objext'
6689  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6690  (eval $ac_try) 2>&5
6691  ac_status=$?
6692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693  (exit $ac_status); }; }; then
6694  ac_header_compiler=yes
6695else
6696  echo "$as_me: failed program was:" >&5
6697sed 's/^/| /' conftest.$ac_ext >&5
6698
6699ac_header_compiler=no
6700fi
6701rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6702echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6703echo "${ECHO_T}$ac_header_compiler" >&6
6704
6705# Is the header present?
6706echo "$as_me:$LINENO: checking $ac_header presence" >&5
6707echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6708cat >conftest.$ac_ext <<_ACEOF
6709/* confdefs.h.  */
6710_ACEOF
6711cat confdefs.h >>conftest.$ac_ext
6712cat >>conftest.$ac_ext <<_ACEOF
6713/* end confdefs.h.  */
6714#include <$ac_header>
6715_ACEOF
6716if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6717  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6718  ac_status=$?
6719  grep -v '^ *+' conftest.er1 >conftest.err
6720  rm -f conftest.er1
6721  cat conftest.err >&5
6722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723  (exit $ac_status); } >/dev/null; then
6724  if test -s conftest.err; then
6725    ac_cpp_err=$ac_c_preproc_warn_flag
6726    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6727  else
6728    ac_cpp_err=
6729  fi
6730else
6731  ac_cpp_err=yes
6732fi
6733if test -z "$ac_cpp_err"; then
6734  ac_header_preproc=yes
6735else
6736  echo "$as_me: failed program was:" >&5
6737sed 's/^/| /' conftest.$ac_ext >&5
6738
6739  ac_header_preproc=no
6740fi
6741rm -f conftest.err conftest.$ac_ext
6742echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6743echo "${ECHO_T}$ac_header_preproc" >&6
6744
6745# So?  What about this header?
6746case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6747  yes:no: )
6748    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6749echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6750    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6751echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6752    ac_header_preproc=yes
6753    ;;
6754  no:yes:* )
6755    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6756echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6757    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6758echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6759    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6760echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6761    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6762echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6763    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6764echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6765    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6766echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6767    (
6768      cat <<\_ASBOX
6769## --------------------------------------------------------------- ##
6770## Report this to http://projects.coin-or.org/BuildTools/newticket ##
6771## --------------------------------------------------------------- ##
6772_ASBOX
6773    ) |
6774      sed "s/^/$as_me: WARNING:     /" >&2
6775    ;;
6776esac
6777echo "$as_me:$LINENO: checking for $ac_header" >&5
6778echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6779if eval "test \"\${$as_ac_Header+set}\" = set"; then
6780  echo $ECHO_N "(cached) $ECHO_C" >&6
6781else
6782  eval "$as_ac_Header=\$ac_header_preproc"
6783fi
6784echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6785echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6786
6787fi
6788if test `eval echo '${'$as_ac_Header'}'` = yes; then
6789  cat >>confdefs.h <<_ACEOF
6790#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6791_ACEOF
6792
6793fi
6794
6795done
6796
6797
6798
6799if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6800    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6801    (test "X$CXX" != "Xg++"))) ; then
6802  ac_ext=cc
6803ac_cpp='$CXXCPP $CPPFLAGS'
6804ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6805ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6806ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6807echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6808echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6809if test -z "$CXXCPP"; then
6810  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6811  echo $ECHO_N "(cached) $ECHO_C" >&6
6812else
6813      # Double quotes because CXXCPP needs to be expanded
6814    for CXXCPP in "$CXX -E" "/lib/cpp"
6815    do
6816      ac_preproc_ok=false
6817for ac_cxx_preproc_warn_flag in '' yes
6818do
6819  # Use a header file that comes with gcc, so configuring glibc
6820  # with a fresh cross-compiler works.
6821  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6822  # <limits.h> exists even on freestanding compilers.
6823  # On the NeXT, cc -E runs the code through the compiler's parser,
6824  # not just through cpp. "Syntax error" is here to catch this case.
6825  cat >conftest.$ac_ext <<_ACEOF
6826/* confdefs.h.  */
6827_ACEOF
6828cat confdefs.h >>conftest.$ac_ext
6829cat >>conftest.$ac_ext <<_ACEOF
6830/* end confdefs.h.  */
6831#ifdef __STDC__
6832# include <limits.h>
6833#else
6834# include <assert.h>
6835#endif
6836                     Syntax error
6837_ACEOF
6838if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6839  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6840  ac_status=$?
6841  grep -v '^ *+' conftest.er1 >conftest.err
6842  rm -f conftest.er1
6843  cat conftest.err >&5
6844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6845  (exit $ac_status); } >/dev/null; then
6846  if test -s conftest.err; then
6847    ac_cpp_err=$ac_cxx_preproc_warn_flag
6848    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6849  else
6850    ac_cpp_err=
6851  fi
6852else
6853  ac_cpp_err=yes
6854fi
6855if test -z "$ac_cpp_err"; then
6856  :
6857else
6858  echo "$as_me: failed program was:" >&5
6859sed 's/^/| /' conftest.$ac_ext >&5
6860
6861  # Broken: fails on valid input.
6862continue
6863fi
6864rm -f conftest.err conftest.$ac_ext
6865
6866  # OK, works on sane cases.  Now check whether non-existent headers
6867  # can be detected and how.
6868  cat >conftest.$ac_ext <<_ACEOF
6869/* confdefs.h.  */
6870_ACEOF
6871cat confdefs.h >>conftest.$ac_ext
6872cat >>conftest.$ac_ext <<_ACEOF
6873/* end confdefs.h.  */
6874#include <ac_nonexistent.h>
6875_ACEOF
6876if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6877  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6878  ac_status=$?
6879  grep -v '^ *+' conftest.er1 >conftest.err
6880  rm -f conftest.er1
6881  cat conftest.err >&5
6882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6883  (exit $ac_status); } >/dev/null; then
6884  if test -s conftest.err; then
6885    ac_cpp_err=$ac_cxx_preproc_warn_flag
6886    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6887  else
6888    ac_cpp_err=
6889  fi
6890else
6891  ac_cpp_err=yes
6892fi
6893if test -z "$ac_cpp_err"; then
6894  # Broken: success on invalid input.
6895continue
6896else
6897  echo "$as_me: failed program was:" >&5
6898sed 's/^/| /' conftest.$ac_ext >&5
6899
6900  # Passes both tests.
6901ac_preproc_ok=:
6902break
6903fi
6904rm -f conftest.err conftest.$ac_ext
6905
6906done
6907# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6908rm -f conftest.err conftest.$ac_ext
6909if $ac_preproc_ok; then
6910  break
6911fi
6912
6913    done
6914    ac_cv_prog_CXXCPP=$CXXCPP
6915
6916fi
6917  CXXCPP=$ac_cv_prog_CXXCPP
6918else
6919  ac_cv_prog_CXXCPP=$CXXCPP
6920fi
6921echo "$as_me:$LINENO: result: $CXXCPP" >&5
6922echo "${ECHO_T}$CXXCPP" >&6
6923ac_preproc_ok=false
6924for ac_cxx_preproc_warn_flag in '' yes
6925do
6926  # Use a header file that comes with gcc, so configuring glibc
6927  # with a fresh cross-compiler works.
6928  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6929  # <limits.h> exists even on freestanding compilers.
6930  # On the NeXT, cc -E runs the code through the compiler's parser,
6931  # not just through cpp. "Syntax error" is here to catch this case.
6932  cat >conftest.$ac_ext <<_ACEOF
6933/* confdefs.h.  */
6934_ACEOF
6935cat confdefs.h >>conftest.$ac_ext
6936cat >>conftest.$ac_ext <<_ACEOF
6937/* end confdefs.h.  */
6938#ifdef __STDC__
6939# include <limits.h>
6940#else
6941# include <assert.h>
6942#endif
6943                     Syntax error
6944_ACEOF
6945if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6946  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6947  ac_status=$?
6948  grep -v '^ *+' conftest.er1 >conftest.err
6949  rm -f conftest.er1
6950  cat conftest.err >&5
6951  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6952  (exit $ac_status); } >/dev/null; then
6953  if test -s conftest.err; then
6954    ac_cpp_err=$ac_cxx_preproc_warn_flag
6955    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6956  else
6957    ac_cpp_err=
6958  fi
6959else
6960  ac_cpp_err=yes
6961fi
6962if test -z "$ac_cpp_err"; then
6963  :
6964else
6965  echo "$as_me: failed program was:" >&5
6966sed 's/^/| /' conftest.$ac_ext >&5
6967
6968  # Broken: fails on valid input.
6969continue
6970fi
6971rm -f conftest.err conftest.$ac_ext
6972
6973  # OK, works on sane cases.  Now check whether non-existent headers
6974  # can be detected and how.
6975  cat >conftest.$ac_ext <<_ACEOF
6976/* confdefs.h.  */
6977_ACEOF
6978cat confdefs.h >>conftest.$ac_ext
6979cat >>conftest.$ac_ext <<_ACEOF
6980/* end confdefs.h.  */
6981#include <ac_nonexistent.h>
6982_ACEOF
6983if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6984  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6985  ac_status=$?
6986  grep -v '^ *+' conftest.er1 >conftest.err
6987  rm -f conftest.er1
6988  cat conftest.err >&5
6989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990  (exit $ac_status); } >/dev/null; then
6991  if test -s conftest.err; then
6992    ac_cpp_err=$ac_cxx_preproc_warn_flag
6993    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6994  else
6995    ac_cpp_err=
6996  fi
6997else
6998  ac_cpp_err=yes
6999fi
7000if test -z "$ac_cpp_err"; then
7001  # Broken: success on invalid input.
7002continue
7003else
7004  echo "$as_me: failed program was:" >&5
7005sed 's/^/| /' conftest.$ac_ext >&5
7006
7007  # Passes both tests.
7008ac_preproc_ok=:
7009break
7010fi
7011rm -f conftest.err conftest.$ac_ext
7012
7013done
7014# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7015rm -f conftest.err conftest.$ac_ext
7016if $ac_preproc_ok; then
7017  :
7018else
7019  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7020See \`config.log' for more details." >&5
7021echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7022See \`config.log' for more details." >&2;}
7023   { (exit 1); exit 1; }; }
7024fi
7025
7026ac_ext=cc
7027ac_cpp='$CXXCPP $CPPFLAGS'
7028ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7029ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7030ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7031
7032fi
7033
7034ac_ext=f
7035ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7036ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7037ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7038if test -n "$ac_tool_prefix"; then
7039  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7040  do
7041    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7042set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7043echo "$as_me:$LINENO: checking for $ac_word" >&5
7044echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7045if test "${ac_cv_prog_F77+set}" = set; then
7046  echo $ECHO_N "(cached) $ECHO_C" >&6
7047else
7048  if test -n "$F77"; then
7049  ac_cv_prog_F77="$F77" # Let the user override the test.
7050else
7051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7052for as_dir in $PATH
7053do
7054  IFS=$as_save_IFS
7055  test -z "$as_dir" && as_dir=.
7056  for ac_exec_ext in '' $ac_executable_extensions; do
7057  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7058    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7059    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7060    break 2
7061  fi
7062done
7063done
7064
7065fi
7066fi
7067F77=$ac_cv_prog_F77
7068if test -n "$F77"; then
7069  echo "$as_me:$LINENO: result: $F77" >&5
7070echo "${ECHO_T}$F77" >&6
7071else
7072  echo "$as_me:$LINENO: result: no" >&5
7073echo "${ECHO_T}no" >&6
7074fi
7075
7076    test -n "$F77" && break
7077  done
7078fi
7079if test -z "$F77"; then
7080  ac_ct_F77=$F77
7081  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7082do
7083  # Extract the first word of "$ac_prog", so it can be a program name with args.
7084set dummy $ac_prog; ac_word=$2
7085echo "$as_me:$LINENO: checking for $ac_word" >&5
7086echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7087if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7088  echo $ECHO_N "(cached) $ECHO_C" >&6
7089else
7090  if test -n "$ac_ct_F77"; then
7091  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7092else
7093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7094for as_dir in $PATH
7095do
7096  IFS=$as_save_IFS
7097  test -z "$as_dir" && as_dir=.
7098  for ac_exec_ext in '' $ac_executable_extensions; do
7099  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7100    ac_cv_prog_ac_ct_F77="$ac_prog"
7101    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7102    break 2
7103  fi
7104done
7105done
7106
7107fi
7108fi
7109ac_ct_F77=$ac_cv_prog_ac_ct_F77
7110if test -n "$ac_ct_F77"; then
7111  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7112echo "${ECHO_T}$ac_ct_F77" >&6
7113else
7114  echo "$as_me:$LINENO: result: no" >&5
7115echo "${ECHO_T}no" >&6
7116fi
7117
7118  test -n "$ac_ct_F77" && break
7119done
7120
7121  F77=$ac_ct_F77
7122fi
7123
7124
7125# Provide some information about the compiler.
7126echo "$as_me:7126:" \
7127     "checking for Fortran 77 compiler version" >&5
7128ac_compiler=`set X $ac_compile; echo $2`
7129{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7130  (eval $ac_compiler --version </dev/null >&5) 2>&5
7131  ac_status=$?
7132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133  (exit $ac_status); }
7134{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7135  (eval $ac_compiler -v </dev/null >&5) 2>&5
7136  ac_status=$?
7137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7138  (exit $ac_status); }
7139{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7140  (eval $ac_compiler -V </dev/null >&5) 2>&5
7141  ac_status=$?
7142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7143  (exit $ac_status); }
7144rm -f a.out
7145
7146# If we don't use `.F' as extension, the preprocessor is not run on the
7147# input file.  (Note that this only needs to work for GNU compilers.)
7148ac_save_ext=$ac_ext
7149ac_ext=F
7150echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7151echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
7152if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7153  echo $ECHO_N "(cached) $ECHO_C" >&6
7154else
7155  cat >conftest.$ac_ext <<_ACEOF
7156      program main
7157#ifndef __GNUC__
7158       choke me
7159#endif
7160
7161      end
7162_ACEOF
7163rm -f conftest.$ac_objext
7164if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7165  (eval $ac_compile) 2>conftest.er1
7166  ac_status=$?
7167  grep -v '^ *+' conftest.er1 >conftest.err
7168  rm -f conftest.er1
7169  cat conftest.err >&5
7170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171  (exit $ac_status); } &&
7172         { ac_try='test -z "$ac_f77_werror_flag"
7173                         || test ! -s conftest.err'
7174  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7175  (eval $ac_try) 2>&5
7176  ac_status=$?
7177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178  (exit $ac_status); }; } &&
7179         { ac_try='test -s conftest.$ac_objext'
7180  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7181  (eval $ac_try) 2>&5
7182  ac_status=$?
7183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184  (exit $ac_status); }; }; then
7185  ac_compiler_gnu=yes
7186else
7187  echo "$as_me: failed program was:" >&5
7188sed 's/^/| /' conftest.$ac_ext >&5
7189
7190ac_compiler_gnu=no
7191fi
7192rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7193ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7194
7195fi
7196echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7197echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7198ac_ext=$ac_save_ext
7199ac_test_FFLAGS=${FFLAGS+set}
7200ac_save_FFLAGS=$FFLAGS
7201FFLAGS=
7202echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7203echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7204if test "${ac_cv_prog_f77_g+set}" = set; then
7205  echo $ECHO_N "(cached) $ECHO_C" >&6
7206else
7207  FFLAGS=-g
7208cat >conftest.$ac_ext <<_ACEOF
7209      program main
7210
7211      end
7212_ACEOF
7213rm -f conftest.$ac_objext
7214if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7215  (eval $ac_compile) 2>conftest.er1
7216  ac_status=$?
7217  grep -v '^ *+' conftest.er1 >conftest.err
7218  rm -f conftest.er1
7219  cat conftest.err >&5
7220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7221  (exit $ac_status); } &&
7222         { ac_try='test -z "$ac_f77_werror_flag"
7223                         || test ! -s conftest.err'
7224  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7225  (eval $ac_try) 2>&5
7226  ac_status=$?
7227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228  (exit $ac_status); }; } &&
7229         { ac_try='test -s conftest.$ac_objext'
7230  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7231  (eval $ac_try) 2>&5
7232  ac_status=$?
7233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7234  (exit $ac_status); }; }; then
7235  ac_cv_prog_f77_g=yes
7236else
7237  echo "$as_me: failed program was:" >&5
7238sed 's/^/| /' conftest.$ac_ext >&5
7239
7240ac_cv_prog_f77_g=no
7241fi
7242rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7243
7244fi
7245echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7246echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7247if test "$ac_test_FFLAGS" = set; then
7248  FFLAGS=$ac_save_FFLAGS
7249elif test $ac_cv_prog_f77_g = yes; then
7250  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7251    FFLAGS="-g -O2"
7252  else
7253    FFLAGS="-g"
7254  fi
7255else
7256  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7257    FFLAGS="-O2"
7258  else
7259    FFLAGS=
7260  fi
7261fi
7262
7263G77=`test $ac_compiler_gnu = yes && echo yes`
7264ac_ext=c
7265ac_cpp='$CPP $CPPFLAGS'
7266ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7267ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7268ac_compiler_gnu=$ac_cv_c_compiler_gnu
7269
7270
7271
7272# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7273
7274# find the maximum length of command line arguments
7275echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7276echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7277if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7278  echo $ECHO_N "(cached) $ECHO_C" >&6
7279else
7280    i=0
7281  teststring="ABCD"
7282
7283  case $build_os in
7284  msdosdjgpp*)
7285    # On DJGPP, this test can blow up pretty badly due to problems in libc
7286    # (any single argument exceeding 2000 bytes causes a buffer overrun
7287    # during glob expansion).  Even if it were fixed, the result of this
7288    # check would be larger than it should be.
7289    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7290    ;;
7291
7292  gnu*)
7293    # Under GNU Hurd, this test is not required because there is
7294    # no limit to the length of command line arguments.
7295    # Libtool will interpret -1 as no limit whatsoever
7296    lt_cv_sys_max_cmd_len=-1;
7297    ;;
7298
7299  cygwin* | mingw*)
7300    # On Win9x/ME, this test blows up -- it succeeds, but takes
7301    # about 5 minutes as the teststring grows exponentially.
7302    # Worse, since 9x/ME are not pre-emptively multitasking,
7303    # you end up with a "frozen" computer, even though with patience
7304    # the test eventually succeeds (with a max line length of 256k).
7305    # Instead, let's just punt: use the minimum linelength reported by
7306    # all of the supported platforms: 8192 (on NT/2K/XP).
7307    lt_cv_sys_max_cmd_len=8192;
7308    ;;
7309
7310  amigaos*)
7311    # On AmigaOS with pdksh, this test takes hours, literally.
7312    # So we just punt and use a minimum line length of 8192.
7313    lt_cv_sys_max_cmd_len=8192;
7314    ;;
7315
7316  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7317    # This has been around since 386BSD, at least.  Likely further.
7318    if test -x /sbin/sysctl; then
7319      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7320    elif test -x /usr/sbin/sysctl; then
7321      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7322    else
7323      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7324    fi
7325    # And add a safety zone
7326    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7327    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7328    ;;
7329
7330  interix*)
7331    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7332    lt_cv_sys_max_cmd_len=196608
7333    ;;
7334
7335  osf*)
7336    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7337    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7338    # nice to cause kernel panics so lets avoid the loop below.
7339    # First set a reasonable default.
7340    lt_cv_sys_max_cmd_len=16384
7341    #
7342    if test -x /sbin/sysconfig; then
7343      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7344        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7345      esac
7346    fi
7347    ;;
7348  sco3.2v5*)
7349    lt_cv_sys_max_cmd_len=102400
7350    ;;
7351  sysv5* | sco5v6* | sysv4.2uw2*)
7352    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7353    if test -n "$kargmax"; then
7354      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7355    else
7356      lt_cv_sys_max_cmd_len=32768
7357    fi
7358    ;;
7359  *)
7360    # If test is not a shell built-in, we'll probably end up computing a
7361    # maximum length that is only half of the actual maximum length, but
7362    # we can't tell.
7363    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7364    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7365               = "XX$teststring") >/dev/null 2>&1 &&
7366            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7367            lt_cv_sys_max_cmd_len=$new_result &&
7368            test $i != 17 # 1/2 MB should be enough
7369    do
7370      i=`expr $i + 1`
7371      teststring=$teststring$teststring
7372    done
7373    teststring=
7374    # Add a significant safety factor because C++ compilers can tack on massive
7375    # amounts of additional arguments before passing them to the linker.
7376    # It appears as though 1/2 is a usable value.
7377    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7378    ;;
7379  esac
7380
7381fi
7382
7383if test -n $lt_cv_sys_max_cmd_len ; then
7384  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7385echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7386else
7387  echo "$as_me:$LINENO: result: none" >&5
7388echo "${ECHO_T}none" >&6
7389fi
7390
7391
7392
7393
7394# Check for command to grab the raw symbol name followed by C symbol from nm.
7395echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7396echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7397if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7398  echo $ECHO_N "(cached) $ECHO_C" >&6
7399else
7400
7401# These are sane defaults that work on at least a few old systems.
7402# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7403
7404# Character class describing NM global symbol codes.
7405symcode='[BCDEGRST]'
7406
7407# Regexp to match symbols that can be accessed directly from C.
7408sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7409
7410# Transform an extracted symbol line into a proper C declaration
7411lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7412
7413# Transform an extracted symbol line into symbol name and symbol address
7414lt_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'"
7415
7416# Define system-specific variables.
7417case $host_os in
7418aix*)
7419  symcode='[BCDT]'
7420  ;;
7421cygwin* | mingw* | pw32*)
7422  symcode='[ABCDGISTW]'
7423  ;;
7424hpux*) # Its linker distinguishes data from code symbols
7425  if test "$host_cpu" = ia64; then
7426    symcode='[ABCDEGRST]'
7427  fi
7428  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7429  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'"
7430  ;;
7431linux*)
7432  if test "$host_cpu" = ia64; then
7433    symcode='[ABCDGIRSTW]'
7434    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7435    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'"
7436  fi
7437  ;;
7438irix* | nonstopux*)
7439  symcode='[BCDEGRST]'
7440  ;;
7441osf*)
7442  symcode='[BCDEGQRST]'
7443  ;;
7444solaris*)
7445  symcode='[BDRT]'
7446  ;;
7447sco3.2v5*)
7448  symcode='[DT]'
7449  ;;
7450sysv4.2uw2*)
7451  symcode='[DT]'
7452  ;;
7453sysv5* | sco5v6* | unixware* | OpenUNIX*)
7454  symcode='[ABDT]'
7455  ;;
7456sysv4)
7457  symcode='[DFNSTU]'
7458  ;;
7459esac
7460
7461# Handle CRLF in mingw tool chain
7462opt_cr=
7463case $build_os in
7464mingw*)
7465  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7466  ;;
7467esac
7468
7469# If we're using GNU nm, then use its standard symbol codes.
7470case `$NM -V 2>&1` in
7471*GNU* | *'with BFD'*)
7472  symcode='[ABCDGIRSTW]' ;;
7473esac
7474
7475# Try without a prefix undercore, then with it.
7476for ac_symprfx in "" "_"; do
7477
7478  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7479  symxfrm="\\1 $ac_symprfx\\2 \\2"
7480
7481  # Write the raw and C identifiers.
7482  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7483
7484  # Check to see that the pipe works correctly.
7485  pipe_works=no
7486
7487  rm -f conftest*
7488  cat > conftest.$ac_ext <<EOF
7489#ifdef __cplusplus
7490extern "C" {
7491#endif
7492char nm_test_var;
7493void nm_test_func(){}
7494#ifdef __cplusplus
7495}
7496#endif
7497int main(){nm_test_var='a';nm_test_func();return(0);}
7498EOF
7499
7500  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7501  (eval $ac_compile) 2>&5
7502  ac_status=$?
7503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504  (exit $ac_status); }; then
7505    # Now try to grab the symbols.
7506    nlist=conftest.nm
7507    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7508  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7509  ac_status=$?
7510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7511  (exit $ac_status); } && test -s "$nlist"; then
7512      # Try sorting and uniquifying the output.
7513      if sort "$nlist" | uniq > "$nlist"T; then
7514        mv -f "$nlist"T "$nlist"
7515      else
7516        rm -f "$nlist"T
7517      fi
7518
7519      # Make sure that we snagged all the symbols we need.
7520      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7521        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7522          cat <<EOF > conftest.$ac_ext
7523#ifdef __cplusplus
7524extern "C" {
7525#endif
7526
7527EOF
7528          # Now generate the symbol file.
7529          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7530
7531          cat <<EOF >> conftest.$ac_ext
7532#if defined (__STDC__) && __STDC__
7533# define lt_ptr_t void *
7534#else
7535# define lt_ptr_t char *
7536# define const
7537#endif
7538
7539/* The mapping between symbol names and symbols. */
7540const struct {
7541  const char *name;
7542  lt_ptr_t address;
7543}
7544lt_preloaded_symbols[] =
7545{
7546EOF
7547          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7548          cat <<\EOF >> conftest.$ac_ext
7549  {0, (lt_ptr_t) 0}
7550};
7551
7552#ifdef __cplusplus
7553}
7554#endif
7555EOF
7556          # Now try linking the two files.
7557          mv conftest.$ac_objext conftstm.$ac_objext
7558          lt_save_LIBS="$LIBS"
7559          lt_save_CFLAGS="$CFLAGS"
7560          LIBS="conftstm.$ac_objext"
7561          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7562          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7563  (eval $ac_link) 2>&5
7564  ac_status=$?
7565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7566  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7567            pipe_works=yes
7568          fi
7569          LIBS="$lt_save_LIBS"
7570          CFLAGS="$lt_save_CFLAGS"
7571        else
7572          echo "cannot find nm_test_func in $nlist" >&5
7573        fi
7574      else
7575        echo "cannot find nm_test_var in $nlist" >&5
7576      fi
7577    else
7578      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7579    fi
7580  else
7581    echo "$progname: failed program was:" >&5
7582    cat conftest.$ac_ext >&5
7583  fi
7584  rm -f conftest* conftst*
7585
7586  # Do not use the global_symbol_pipe unless it works.
7587  if test "$pipe_works" = yes; then
7588    break
7589  else
7590    lt_cv_sys_global_symbol_pipe=
7591  fi
7592done
7593
7594fi
7595
7596if test -z "$lt_cv_sys_global_symbol_pipe"; then
7597  lt_cv_sys_global_symbol_to_cdecl=
7598fi
7599if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7600  echo "$as_me:$LINENO: result: failed" >&5
7601echo "${ECHO_T}failed" >&6
7602else
7603  echo "$as_me:$LINENO: result: ok" >&5
7604echo "${ECHO_T}ok" >&6
7605fi
7606
7607echo "$as_me:$LINENO: checking for objdir" >&5
7608echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7609if test "${lt_cv_objdir+set}" = set; then
7610  echo $ECHO_N "(cached) $ECHO_C" >&6
7611else
7612  rm -f .libs 2>/dev/null
7613mkdir .libs 2>/dev/null
7614if test -d .libs; then
7615  lt_cv_objdir=.libs
7616else
7617  # MS-DOS does not allow filenames that begin with a dot.
7618  lt_cv_objdir=_libs
7619fi
7620rmdir .libs 2>/dev/null
7621fi
7622echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7623echo "${ECHO_T}$lt_cv_objdir" >&6
7624objdir=$lt_cv_objdir
7625
7626
7627
7628
7629
7630case $host_os in
7631aix3*)
7632  # AIX sometimes has problems with the GCC collect2 program.  For some
7633  # reason, if we set the COLLECT_NAMES environment variable, the problems
7634  # vanish in a puff of smoke.
7635  if test "X${COLLECT_NAMES+set}" != Xset; then
7636    COLLECT_NAMES=
7637    export COLLECT_NAMES
7638  fi
7639  ;;
7640esac
7641
7642# Sed substitution that helps us do robust quoting.  It backslashifies
7643# metacharacters that are still active within double-quoted strings.
7644Xsed='sed -e 1s/^X//'
7645sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7646
7647# Same as above, but do not quote variable references.
7648double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7649
7650# Sed substitution to delay expansion of an escaped shell variable in a
7651# double_quote_subst'ed string.
7652delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7653
7654# Sed substitution to avoid accidental globbing in evaled expressions
7655no_glob_subst='s/\*/\\\*/g'
7656
7657# Constants:
7658rm="rm -f"
7659
7660# Global variables:
7661default_ofile=libtool
7662can_build_shared=yes
7663
7664# All known linkers require a `.a' archive for static linking (except MSVC,
7665# which needs '.lib').
7666libext=a
7667ltmain="$ac_aux_dir/ltmain.sh"
7668ofile="$default_ofile"
7669with_gnu_ld="$lt_cv_prog_gnu_ld"
7670
7671if test -n "$ac_tool_prefix"; then
7672  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7673set dummy ${ac_tool_prefix}ar; ac_word=$2
7674echo "$as_me:$LINENO: checking for $ac_word" >&5
7675echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7676if test "${ac_cv_prog_AR+set}" = set; then
7677  echo $ECHO_N "(cached) $ECHO_C" >&6
7678else
7679  if test -n "$AR"; then
7680  ac_cv_prog_AR="$AR" # Let the user override the test.
7681else
7682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7683for as_dir in $PATH
7684do
7685  IFS=$as_save_IFS
7686  test -z "$as_dir" && as_dir=.
7687  for ac_exec_ext in '' $ac_executable_extensions; do
7688  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7689    ac_cv_prog_AR="${ac_tool_prefix}ar"
7690    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7691    break 2
7692  fi
7693done
7694done
7695
7696fi
7697fi
7698AR=$ac_cv_prog_AR
7699if test -n "$AR"; then
7700  echo "$as_me:$LINENO: result: $AR" >&5
7701echo "${ECHO_T}$AR" >&6
7702else
7703  echo "$as_me:$LINENO: result: no" >&5
7704echo "${ECHO_T}no" >&6
7705fi
7706
7707fi
7708if test -z "$ac_cv_prog_AR"; then
7709  ac_ct_AR=$AR
7710  # Extract the first word of "ar", so it can be a program name with args.
7711set dummy ar; ac_word=$2
7712echo "$as_me:$LINENO: checking for $ac_word" >&5
7713echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7714if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7715  echo $ECHO_N "(cached) $ECHO_C" >&6
7716else
7717  if test -n "$ac_ct_AR"; then
7718  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7719else
7720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7721for as_dir in $PATH
7722do
7723  IFS=$as_save_IFS
7724  test -z "$as_dir" && as_dir=.
7725  for ac_exec_ext in '' $ac_executable_extensions; do
7726  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7727    ac_cv_prog_ac_ct_AR="ar"
7728    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7729    break 2
7730  fi
7731done
7732done
7733
7734  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7735fi
7736fi
7737ac_ct_AR=$ac_cv_prog_ac_ct_AR
7738if test -n "$ac_ct_AR"; then
7739  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7740echo "${ECHO_T}$ac_ct_AR" >&6
7741else
7742  echo "$as_me:$LINENO: result: no" >&5
7743echo "${ECHO_T}no" >&6
7744fi
7745
7746  AR=$ac_ct_AR
7747else
7748  AR="$ac_cv_prog_AR"
7749fi
7750
7751if test -n "$ac_tool_prefix"; then
7752  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7753set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7754echo "$as_me:$LINENO: checking for $ac_word" >&5
7755echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7756if test "${ac_cv_prog_RANLIB+set}" = set; then
7757  echo $ECHO_N "(cached) $ECHO_C" >&6
7758else
7759  if test -n "$RANLIB"; then
7760  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7761else
7762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7763for as_dir in $PATH
7764do
7765  IFS=$as_save_IFS
7766  test -z "$as_dir" && as_dir=.
7767  for ac_exec_ext in '' $ac_executable_extensions; do
7768  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7769    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7770    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7771    break 2
7772  fi
7773done
7774done
7775
7776fi
7777fi
7778RANLIB=$ac_cv_prog_RANLIB
7779if test -n "$RANLIB"; then
7780  echo "$as_me:$LINENO: result: $RANLIB" >&5
7781echo "${ECHO_T}$RANLIB" >&6
7782else
7783  echo "$as_me:$LINENO: result: no" >&5
7784echo "${ECHO_T}no" >&6
7785fi
7786
7787fi
7788if test -z "$ac_cv_prog_RANLIB"; then
7789  ac_ct_RANLIB=$RANLIB
7790  # Extract the first word of "ranlib", so it can be a program name with args.
7791set dummy ranlib; ac_word=$2
7792echo "$as_me:$LINENO: checking for $ac_word" >&5
7793echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7794if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7795  echo $ECHO_N "(cached) $ECHO_C" >&6
7796else
7797  if test -n "$ac_ct_RANLIB"; then
7798  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7799else
7800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7801for as_dir in $PATH
7802do
7803  IFS=$as_save_IFS
7804  test -z "$as_dir" && as_dir=.
7805  for ac_exec_ext in '' $ac_executable_extensions; do
7806  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7807    ac_cv_prog_ac_ct_RANLIB="ranlib"
7808    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7809    break 2
7810  fi
7811done
7812done
7813
7814  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7815fi
7816fi
7817ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7818if test -n "$ac_ct_RANLIB"; then
7819  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7820echo "${ECHO_T}$ac_ct_RANLIB" >&6
7821else
7822  echo "$as_me:$LINENO: result: no" >&5
7823echo "${ECHO_T}no" >&6
7824fi
7825
7826  RANLIB=$ac_ct_RANLIB
7827else
7828  RANLIB="$ac_cv_prog_RANLIB"
7829fi
7830
7831if test -n "$ac_tool_prefix"; then
7832  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7833set dummy ${ac_tool_prefix}strip; ac_word=$2
7834echo "$as_me:$LINENO: checking for $ac_word" >&5
7835echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7836if test "${ac_cv_prog_STRIP+set}" = set; then
7837  echo $ECHO_N "(cached) $ECHO_C" >&6
7838else
7839  if test -n "$STRIP"; then
7840  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7841else
7842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7843for as_dir in $PATH
7844do
7845  IFS=$as_save_IFS
7846  test -z "$as_dir" && as_dir=.
7847  for ac_exec_ext in '' $ac_executable_extensions; do
7848  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7849    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7850    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7851    break 2
7852  fi
7853done
7854done
7855
7856fi
7857fi
7858STRIP=$ac_cv_prog_STRIP
7859if test -n "$STRIP"; then
7860  echo "$as_me:$LINENO: result: $STRIP" >&5
7861echo "${ECHO_T}$STRIP" >&6
7862else
7863  echo "$as_me:$LINENO: result: no" >&5
7864echo "${ECHO_T}no" >&6
7865fi
7866
7867fi
7868if test -z "$ac_cv_prog_STRIP"; then
7869  ac_ct_STRIP=$STRIP
7870  # Extract the first word of "strip", so it can be a program name with args.
7871set dummy strip; ac_word=$2
7872echo "$as_me:$LINENO: checking for $ac_word" >&5
7873echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7874if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7875  echo $ECHO_N "(cached) $ECHO_C" >&6
7876else
7877  if test -n "$ac_ct_STRIP"; then
7878  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7879else
7880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7881for as_dir in $PATH
7882do
7883  IFS=$as_save_IFS
7884  test -z "$as_dir" && as_dir=.
7885  for ac_exec_ext in '' $ac_executable_extensions; do
7886  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7887    ac_cv_prog_ac_ct_STRIP="strip"
7888    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7889    break 2
7890  fi
7891done
7892done
7893
7894  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7895fi
7896fi
7897ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7898if test -n "$ac_ct_STRIP"; then
7899  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7900echo "${ECHO_T}$ac_ct_STRIP" >&6
7901else
7902  echo "$as_me:$LINENO: result: no" >&5
7903echo "${ECHO_T}no" >&6
7904fi
7905
7906  STRIP=$ac_ct_STRIP
7907else
7908  STRIP="$ac_cv_prog_STRIP"
7909fi
7910
7911
7912old_CC="$CC"
7913old_CFLAGS="$CFLAGS"
7914
7915# Set sane defaults for various variables
7916test -z "$AR" && AR=ar
7917test -z "$AR_FLAGS" && AR_FLAGS=cru
7918test -z "$AS" && AS=as
7919test -z "$CC" && CC=cc
7920test -z "$LTCC" && LTCC=$CC
7921test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7922test -z "$DLLTOOL" && DLLTOOL=dlltool
7923test -z "$LD" && LD=ld
7924test -z "$LN_S" && LN_S="ln -s"
7925test -z "$MAGIC_CMD" && MAGIC_CMD=file
7926test -z "$NM" && NM=nm
7927test -z "$SED" && SED=sed
7928test -z "$OBJDUMP" && OBJDUMP=objdump
7929test -z "$RANLIB" && RANLIB=:
7930test -z "$STRIP" && STRIP=:
7931test -z "$ac_objext" && ac_objext=o
7932
7933# Determine commands to create old-style static archives.
7934old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7935old_postinstall_cmds='chmod 644 $oldlib'
7936old_postuninstall_cmds=
7937
7938if test -n "$RANLIB"; then
7939  case $host_os in
7940  openbsd*)
7941    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7942    ;;
7943  *)
7944    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7945    ;;
7946  esac
7947  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7948fi
7949
7950for cc_temp in $compiler""; do
7951  case $cc_temp in
7952    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7953    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7954    \-*) ;;
7955    *) break;;
7956  esac
7957done
7958cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7959
7960
7961# Only perform the check for file, if the check method requires it
7962case $deplibs_check_method in
7963file_magic*)
7964  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7965    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7966echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7967if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7968  echo $ECHO_N "(cached) $ECHO_C" >&6
7969else
7970  case $MAGIC_CMD in
7971[\\/*] |  ?:[\\/]*)
7972  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7973  ;;
7974*)
7975  lt_save_MAGIC_CMD="$MAGIC_CMD"
7976  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7977  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7978  for ac_dir in $ac_dummy; do
7979    IFS="$lt_save_ifs"
7980    test -z "$ac_dir" && ac_dir=.
7981    if test -f $ac_dir/${ac_tool_prefix}file; then
7982      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7983      if test -n "$file_magic_test_file"; then
7984        case $deplibs_check_method in
7985        "file_magic "*)
7986          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7987          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7988          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7989            $EGREP "$file_magic_regex" > /dev/null; then
7990            :
7991          else
7992            cat <<EOF 1>&2
7993
7994*** Warning: the command libtool uses to detect shared libraries,
7995*** $file_magic_cmd, produces output that libtool cannot recognize.
7996*** The result is that libtool may fail to recognize shared libraries
7997*** as such.  This will affect the creation of libtool libraries that
7998*** depend on shared libraries, but programs linked with such libtool
7999*** libraries will work regardless of this problem.  Nevertheless, you
8000*** may want to report the problem to your system manager and/or to
8001*** bug-libtool@gnu.org
8002
8003EOF
8004          fi ;;
8005        esac
8006      fi
8007      break
8008    fi
8009  done
8010  IFS="$lt_save_ifs"
8011  MAGIC_CMD="$lt_save_MAGIC_CMD"
8012  ;;
8013esac
8014fi
8015
8016MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8017if test -n "$MAGIC_CMD"; then
8018  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8019echo "${ECHO_T}$MAGIC_CMD" >&6
8020else
8021  echo "$as_me:$LINENO: result: no" >&5
8022echo "${ECHO_T}no" >&6
8023fi
8024
8025if test -z "$lt_cv_path_MAGIC_CMD"; then
8026  if test -n "$ac_tool_prefix"; then
8027    echo "$as_me:$LINENO: checking for file" >&5
8028echo $ECHO_N "checking for file... $ECHO_C" >&6
8029if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8030  echo $ECHO_N "(cached) $ECHO_C" >&6
8031else
8032  case $MAGIC_CMD in
8033[\\/*] |  ?:[\\/]*)
8034  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8035  ;;
8036*)
8037  lt_save_MAGIC_CMD="$MAGIC_CMD"
8038  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8039  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8040  for ac_dir in $ac_dummy; do
8041    IFS="$lt_save_ifs"
8042    test -z "$ac_dir" && ac_dir=.
8043    if test -f $ac_dir/file; then
8044      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8045      if test -n "$file_magic_test_file"; then
8046        case $deplibs_check_method in
8047        "file_magic "*)
8048          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8049          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8050          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8051            $EGREP "$file_magic_regex" > /dev/null; then
8052            :
8053          else
8054            cat <<EOF 1>&2
8055
8056*** Warning: the command libtool uses to detect shared libraries,
8057*** $file_magic_cmd, produces output that libtool cannot recognize.
8058*** The result is that libtool may fail to recognize shared libraries
8059*** as such.  This will affect the creation of libtool libraries that
8060*** depend on shared libraries, but programs linked with such libtool
8061*** libraries will work regardless of this problem.  Nevertheless, you
8062*** may want to report the problem to your system manager and/or to
8063*** bug-libtool@gnu.org
8064
8065EOF
8066          fi ;;
8067        esac
8068      fi
8069      break
8070    fi
8071  done
8072  IFS="$lt_save_ifs"
8073  MAGIC_CMD="$lt_save_MAGIC_CMD"
8074  ;;
8075esac
8076fi
8077
8078MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8079if test -n "$MAGIC_CMD"; then
8080  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8081echo "${ECHO_T}$MAGIC_CMD" >&6
8082else
8083  echo "$as_me:$LINENO: result: no" >&5
8084echo "${ECHO_T}no" >&6
8085fi
8086
8087  else
8088    MAGIC_CMD=:
8089  fi
8090fi
8091
8092  fi
8093  ;;
8094esac
8095
8096enable_dlopen=no
8097enable_win32_dll=no
8098
8099# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8100if test "${enable_libtool_lock+set}" = set; then
8101  enableval="$enable_libtool_lock"
8102
8103fi;
8104test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8105
8106
8107# Check whether --with-pic or --without-pic was given.
8108if test "${with_pic+set}" = set; then
8109  withval="$with_pic"
8110  pic_mode="$withval"
8111else
8112  pic_mode=default
8113fi;
8114test -z "$pic_mode" && pic_mode=default
8115
8116# Use C for the default configuration in the libtool script
8117tagname=
8118lt_save_CC="$CC"
8119ac_ext=c
8120ac_cpp='$CPP $CPPFLAGS'
8121ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8122ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8123ac_compiler_gnu=$ac_cv_c_compiler_gnu
8124
8125
8126# Source file extension for C test sources.
8127ac_ext=c
8128
8129# Object file extension for compiled C test sources.
8130objext=o
8131objext=$objext
8132
8133# Code to be used in simple compile tests
8134lt_simple_compile_test_code="int some_variable = 0;\n"
8135
8136# Code to be used in simple link tests
8137lt_simple_link_test_code='int main(){return(0);}\n'
8138
8139
8140# If no C compiler was specified, use CC.
8141LTCC=${LTCC-"$CC"}
8142
8143# If no C compiler flags were specified, use CFLAGS.
8144LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8145
8146# Allow CC to be a program name with arguments.
8147compiler=$CC
8148
8149
8150# save warnings/boilerplate of simple test code
8151ac_outfile=conftest.$ac_objext
8152printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8153eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8154_lt_compiler_boilerplate=`cat conftest.err`
8155$rm conftest*
8156
8157ac_outfile=conftest.$ac_objext
8158printf "$lt_simple_link_test_code" >conftest.$ac_ext
8159eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8160_lt_linker_boilerplate=`cat conftest.err`
8161$rm conftest*
8162
8163
8164## CAVEAT EMPTOR:
8165## There is no encapsulation within the following macros, do not change
8166## the running order or otherwise move them around unless you know exactly
8167## what you are doing...
8168
8169lt_prog_compiler_no_builtin_flag=
8170
8171if test "$GCC" = yes; then
8172  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8173
8174
8175echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8176echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8177if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8178  echo $ECHO_N "(cached) $ECHO_C" >&6
8179else
8180  lt_cv_prog_compiler_rtti_exceptions=no
8181  ac_outfile=conftest.$ac_objext
8182   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8183   lt_compiler_flag="-fno-rtti -fno-exceptions"
8184   # Insert the option either (1) after the last *FLAGS variable, or
8185   # (2) before a word containing "conftest.", or (3) at the end.
8186   # Note that $ac_compile itself does not contain backslashes and begins
8187   # with a dollar sign (not a hyphen), so the echo should work correctly.
8188   # The option is referenced via a variable to avoid confusing sed.
8189   lt_compile=`echo "$ac_compile" | $SED \
8190   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8191   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8192   -e 's:$: $lt_compiler_flag:'`
8193   (eval echo "\"\$as_me:8193: $lt_compile\"" >&5)
8194   (eval "$lt_compile" 2>conftest.err)
8195   ac_status=$?
8196   cat conftest.err >&5
8197   echo "$as_me:8197: \$? = $ac_status" >&5
8198   if (exit $ac_status) && test -s "$ac_outfile"; then
8199     # The compiler can only warn and ignore the option if not recognized
8200     # So say no if there are warnings other than the usual output.
8201     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8202     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8203     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8204       lt_cv_prog_compiler_rtti_exceptions=yes
8205     fi
8206   fi
8207   $rm conftest*
8208
8209fi
8210echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8211echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8212
8213if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8214    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8215else
8216    :
8217fi
8218
8219fi
8220
8221lt_prog_compiler_wl=
8222lt_prog_compiler_pic=
8223lt_prog_compiler_static=
8224
8225echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8226echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8227
8228  if test "$GCC" = yes; then
8229    lt_prog_compiler_wl='-Wl,'
8230    lt_prog_compiler_static='-static'
8231
8232    case $host_os in
8233      aix*)
8234      # All AIX code is PIC.
8235      if test "$host_cpu" = ia64; then
8236        # AIX 5 now supports IA64 processor
8237        lt_prog_compiler_static='-Bstatic'
8238      fi
8239      ;;
8240
8241    amigaos*)
8242      # FIXME: we need at least 68020 code to build shared libraries, but
8243      # adding the `-m68020' flag to GCC prevents building anything better,
8244      # like `-m68040'.
8245      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8246      ;;
8247
8248    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8249      # PIC is the default for these OSes.
8250      ;;
8251
8252    mingw* | pw32* | os2*)
8253      # This hack is so that the source file can tell whether it is being
8254      # built for inclusion in a dll (and should export symbols for example).
8255      lt_prog_compiler_pic='-DDLL_EXPORT'
8256      ;;
8257
8258    darwin* | rhapsody*)
8259      # PIC is the default on this platform
8260      # Common symbols not allowed in MH_DYLIB files
8261      lt_prog_compiler_pic='-fno-common'
8262      ;;
8263
8264    interix3*)
8265      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8266      # Instead, we relocate shared libraries at runtime.
8267      ;;
8268
8269    msdosdjgpp*)
8270      # Just because we use GCC doesn't mean we suddenly get shared libraries
8271      # on systems that don't support them.
8272      lt_prog_compiler_can_build_shared=no
8273      enable_shared=no
8274      ;;
8275
8276    sysv4*MP*)
8277      if test -d /usr/nec; then
8278        lt_prog_compiler_pic=-Kconform_pic
8279      fi
8280      ;;
8281
8282    hpux*)
8283      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8284      # not for PA HP-UX.
8285      case $host_cpu in
8286      hppa*64*|ia64*)
8287        # +Z the default
8288        ;;
8289      *)
8290        lt_prog_compiler_pic='-fPIC'
8291        ;;
8292      esac
8293      ;;
8294
8295    *)
8296      lt_prog_compiler_pic='-fPIC'
8297      ;;
8298    esac
8299  else
8300    # PORTME Check for flag to pass linker flags through the system compiler.
8301    case $host_os in
8302    aix*)
8303      lt_prog_compiler_wl='-Wl,'
8304      if test "$host_cpu" = ia64; then
8305        # AIX 5 now supports IA64 processor
8306        lt_prog_compiler_static='-Bstatic'
8307      else
8308        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8309      fi
8310      ;;
8311      darwin*)
8312        # PIC is the default on this platform
8313        # Common symbols not allowed in MH_DYLIB files
8314       case $cc_basename in
8315         xlc*)
8316         lt_prog_compiler_pic='-qnocommon'
8317         lt_prog_compiler_wl='-Wl,'
8318         ;;
8319       esac
8320       ;;
8321
8322    mingw* | pw32* | os2*)
8323      # This hack is so that the source file can tell whether it is being
8324      # built for inclusion in a dll (and should export symbols for example).
8325      lt_prog_compiler_pic='-DDLL_EXPORT'
8326      ;;
8327
8328    hpux9* | hpux10* | hpux11*)
8329      lt_prog_compiler_wl='-Wl,'
8330      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8331      # not for PA HP-UX.
8332      case $host_cpu in
8333      hppa*64*|ia64*)
8334        # +Z the default
8335        ;;
8336      *)
8337        lt_prog_compiler_pic='+Z'
8338        ;;
8339      esac
8340      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8341      lt_prog_compiler_static='${wl}-a ${wl}archive'
8342      ;;
8343
8344    irix5* | irix6* | nonstopux*)
8345      lt_prog_compiler_wl='-Wl,'
8346      # PIC (with -KPIC) is the default.
8347      lt_prog_compiler_static='-non_shared'
8348      ;;
8349
8350    newsos6)
8351      lt_prog_compiler_pic='-KPIC'
8352      lt_prog_compiler_static='-Bstatic'
8353      ;;
8354
8355    linux*)
8356      case $cc_basename in
8357      icc* | ecc*)
8358        lt_prog_compiler_wl='-Wl,'
8359        lt_prog_compiler_pic='-KPIC'
8360        lt_prog_compiler_static='-static'
8361        ;;
8362      pgcc* | pgf77* | pgf90* | pgf95*)
8363        # Portland Group compilers (*not* the Pentium gcc compiler,
8364        # which looks to be a dead project)
8365        lt_prog_compiler_wl='-Wl,'
8366        lt_prog_compiler_pic='-fpic'
8367        lt_prog_compiler_static='-Bstatic'
8368        ;;
8369      ccc*)
8370        lt_prog_compiler_wl='-Wl,'
8371        # All Alpha code is PIC.
8372        lt_prog_compiler_static='-non_shared'
8373        ;;
8374      esac
8375      ;;
8376
8377    osf3* | osf4* | osf5*)
8378      lt_prog_compiler_wl='-Wl,'
8379      # All OSF/1 code is PIC.
8380      lt_prog_compiler_static='-non_shared'
8381      ;;
8382
8383    solaris*)
8384      lt_prog_compiler_pic='-KPIC'
8385      lt_prog_compiler_static='-Bstatic'
8386      case $cc_basename in
8387      f77* | f90* | f95*)
8388        lt_prog_compiler_wl='-Qoption ld ';;
8389      *)
8390        lt_prog_compiler_wl='-Wl,';;
8391      esac
8392      ;;
8393
8394    sunos4*)
8395      lt_prog_compiler_wl='-Qoption ld '
8396      lt_prog_compiler_pic='-PIC'
8397      lt_prog_compiler_static='-Bstatic'
8398      ;;
8399
8400    sysv4 | sysv4.2uw2* | sysv4.3*)
8401      lt_prog_compiler_wl='-Wl,'
8402      lt_prog_compiler_pic='-KPIC'
8403      lt_prog_compiler_static='-Bstatic'
8404      ;;
8405
8406    sysv4*MP*)
8407      if test -d /usr/nec ;then
8408        lt_prog_compiler_pic='-Kconform_pic'
8409        lt_prog_compiler_static='-Bstatic'
8410      fi
8411      ;;
8412
8413    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8414      lt_prog_compiler_wl='-Wl,'
8415      lt_prog_compiler_pic='-KPIC'
8416      lt_prog_compiler_static='-Bstatic'
8417      ;;
8418
8419    unicos*)
8420      lt_prog_compiler_wl='-Wl,'
8421      lt_prog_compiler_can_build_shared=no
8422      ;;
8423
8424    uts4*)
8425      lt_prog_compiler_pic='-pic'
8426      lt_prog_compiler_static='-Bstatic'
8427      ;;
8428
8429    *)
8430      lt_prog_compiler_can_build_shared=no
8431      ;;
8432    esac
8433  fi
8434
8435echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8436echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8437
8438#
8439# Check to make sure the PIC flag actually works.
8440#
8441if test -n "$lt_prog_compiler_pic"; then
8442
8443echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8444echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8445if test "${lt_prog_compiler_pic_works+set}" = set; then
8446  echo $ECHO_N "(cached) $ECHO_C" >&6
8447else
8448  lt_prog_compiler_pic_works=no
8449  ac_outfile=conftest.$ac_objext
8450   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8451   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8452   # Insert the option either (1) after the last *FLAGS variable, or
8453   # (2) before a word containing "conftest.", or (3) at the end.
8454   # Note that $ac_compile itself does not contain backslashes and begins
8455   # with a dollar sign (not a hyphen), so the echo should work correctly.
8456   # The option is referenced via a variable to avoid confusing sed.
8457   lt_compile=`echo "$ac_compile" | $SED \
8458   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8459   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8460   -e 's:$: $lt_compiler_flag:'`
8461   (eval echo "\"\$as_me:8461: $lt_compile\"" >&5)
8462   (eval "$lt_compile" 2>conftest.err)
8463   ac_status=$?
8464   cat conftest.err >&5
8465   echo "$as_me:8465: \$? = $ac_status" >&5
8466   if (exit $ac_status) && test -s "$ac_outfile"; then
8467     # The compiler can only warn and ignore the option if not recognized
8468     # So say no if there are warnings other than the usual output.
8469     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8470     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8471     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8472       lt_prog_compiler_pic_works=yes
8473     fi
8474   fi
8475   $rm conftest*
8476
8477fi
8478echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8479echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8480
8481if test x"$lt_prog_compiler_pic_works" = xyes; then
8482    case $lt_prog_compiler_pic in
8483     "" | " "*) ;;
8484     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8485     esac
8486else
8487    lt_prog_compiler_pic=
8488     lt_prog_compiler_can_build_shared=no
8489fi
8490
8491fi
8492case $host_os in
8493  # For platforms which do not support PIC, -DPIC is meaningless:
8494  *djgpp*)
8495    lt_prog_compiler_pic=
8496    ;;
8497  *)
8498    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8499    ;;
8500esac
8501
8502#
8503# Check to make sure the static flag actually works.
8504#
8505wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8506echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8507echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8508if test "${lt_prog_compiler_static_works+set}" = set; then
8509  echo $ECHO_N "(cached) $ECHO_C" >&6
8510else
8511  lt_prog_compiler_static_works=no
8512   save_LDFLAGS="$LDFLAGS"
8513   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8514   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8515   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8516     # The linker can only warn and ignore the option if not recognized
8517     # So say no if there are warnings
8518     if test -s conftest.err; then
8519       # Append any errors to the config.log.
8520       cat conftest.err 1>&5
8521       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8522       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8523       if diff conftest.exp conftest.er2 >/dev/null; then
8524         lt_prog_compiler_static_works=yes
8525       fi
8526     else
8527       lt_prog_compiler_static_works=yes
8528     fi
8529   fi
8530   $rm conftest*
8531   LDFLAGS="$save_LDFLAGS"
8532
8533fi
8534echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8535echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8536
8537if test x"$lt_prog_compiler_static_works" = xyes; then
8538    :
8539else
8540    lt_prog_compiler_static=
8541fi
8542
8543
8544echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8545echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8546if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8547  echo $ECHO_N "(cached) $ECHO_C" >&6
8548else
8549  lt_cv_prog_compiler_c_o=no
8550   $rm -r conftest 2>/dev/null
8551   mkdir conftest
8552   cd conftest
8553   mkdir out
8554   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8555
8556   lt_compiler_flag="-o out/conftest2.$ac_objext"
8557   # Insert the option either (1) after the last *FLAGS variable, or
8558   # (2) before a word containing "conftest.", or (3) at the end.
8559   # Note that $ac_compile itself does not contain backslashes and begins
8560   # with a dollar sign (not a hyphen), so the echo should work correctly.
8561   lt_compile=`echo "$ac_compile" | $SED \
8562   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8563   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8564   -e 's:$: $lt_compiler_flag:'`
8565   (eval echo "\"\$as_me:8565: $lt_compile\"" >&5)
8566   (eval "$lt_compile" 2>out/conftest.err)
8567   ac_status=$?
8568   cat out/conftest.err >&5
8569   echo "$as_me:8569: \$? = $ac_status" >&5
8570   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8571   then
8572     # The compiler can only warn and ignore the option if not recognized
8573     # So say no if there are warnings
8574     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8575     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8576     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8577       lt_cv_prog_compiler_c_o=yes
8578     fi
8579   fi
8580   chmod u+w . 2>&5
8581   $rm conftest*
8582   # SGI C++ compiler will create directory out/ii_files/ for
8583   # template instantiation
8584   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8585   $rm out/* && rmdir out
8586   cd ..
8587   rmdir conftest
8588   $rm conftest*
8589
8590fi
8591echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8592echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8593
8594
8595hard_links="nottested"
8596if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8597  # do not overwrite the value of need_locks provided by the user
8598  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8599echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8600  hard_links=yes
8601  $rm conftest*
8602  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8603  touch conftest.a
8604  ln conftest.a conftest.b 2>&5 || hard_links=no
8605  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8606  echo "$as_me:$LINENO: result: $hard_links" >&5
8607echo "${ECHO_T}$hard_links" >&6
8608  if test "$hard_links" = no; then
8609    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8610echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8611    need_locks=warn
8612  fi
8613else
8614  need_locks=no
8615fi
8616
8617echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8618echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8619
8620  runpath_var=
8621  allow_undefined_flag=
8622  enable_shared_with_static_runtimes=no
8623  archive_cmds=
8624  archive_expsym_cmds=
8625  old_archive_From_new_cmds=
8626  old_archive_from_expsyms_cmds=
8627  export_dynamic_flag_spec=
8628  whole_archive_flag_spec=
8629  thread_safe_flag_spec=
8630  hardcode_libdir_flag_spec=
8631  hardcode_libdir_flag_spec_ld=
8632  hardcode_libdir_separator=
8633  hardcode_direct=no
8634  hardcode_minus_L=no
8635  hardcode_shlibpath_var=unsupported
8636  link_all_deplibs=unknown
8637  hardcode_automatic=no
8638  module_cmds=
8639  module_expsym_cmds=
8640  always_export_symbols=no
8641  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8642  # include_expsyms should be a list of space-separated symbols to be *always*
8643  # included in the symbol list
8644  include_expsyms=
8645  # exclude_expsyms can be an extended regexp of symbols to exclude
8646  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8647  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8648  # as well as any symbol that contains `d'.
8649  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8650  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8651  # platforms (ab)use it in PIC code, but their linkers get confused if
8652  # the symbol is explicitly referenced.  Since portable code cannot
8653  # rely on this symbol name, it's probably fine to never include it in
8654  # preloaded symbol tables.
8655  extract_expsyms_cmds=
8656  # Just being paranoid about ensuring that cc_basename is set.
8657  for cc_temp in $compiler""; do
8658  case $cc_temp in
8659    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8660    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8661    \-*) ;;
8662    *) break;;
8663  esac
8664done
8665cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8666
8667  case $host_os in
8668  cygwin* | mingw* | pw32*)
8669    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8670    # When not using gcc, we currently assume that we are using
8671    # Microsoft Visual C++.
8672    if test "$GCC" != yes; then
8673      with_gnu_ld=no
8674    fi
8675    ;;
8676  interix*)
8677    # we just hope/assume this is gcc and not c89 (= MSVC++)
8678    with_gnu_ld=yes
8679    ;;
8680  openbsd*)
8681    with_gnu_ld=no
8682    ;;
8683  esac
8684
8685  ld_shlibs=yes
8686  if test "$with_gnu_ld" = yes; then
8687    # If archive_cmds runs LD, not CC, wlarc should be empty
8688    wlarc='${wl}'
8689
8690    # Set some defaults for GNU ld with shared library support. These
8691    # are reset later if shared libraries are not supported. Putting them
8692    # here allows them to be overridden if necessary.
8693    runpath_var=LD_RUN_PATH
8694    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8695    export_dynamic_flag_spec='${wl}--export-dynamic'
8696    # ancient GNU ld didn't support --whole-archive et. al.
8697    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8698        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8699      else
8700        whole_archive_flag_spec=
8701    fi
8702    supports_anon_versioning=no
8703    case `$LD -v 2>/dev/null` in
8704      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8705      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8706      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8707      *\ 2.11.*) ;; # other 2.11 versions
8708      *) supports_anon_versioning=yes ;;
8709    esac
8710
8711    # See if GNU ld supports shared libraries.
8712    case $host_os in
8713    aix3* | aix4* | aix5*)
8714      # On AIX/PPC, the GNU linker is very broken
8715      if test "$host_cpu" != ia64; then
8716        ld_shlibs=no
8717        cat <<EOF 1>&2
8718
8719*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8720*** to be unable to reliably create shared libraries on AIX.
8721*** Therefore, libtool is disabling shared libraries support.  If you
8722*** really care for shared libraries, you may want to modify your PATH
8723*** so that a non-GNU linker is found, and then restart.
8724
8725EOF
8726      fi
8727      ;;
8728
8729    amigaos*)
8730      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)'
8731      hardcode_libdir_flag_spec='-L$libdir'
8732      hardcode_minus_L=yes
8733
8734      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8735      # that the semantics of dynamic libraries on AmigaOS, at least up
8736      # to version 4, is to share data among multiple programs linked
8737      # with the same dynamic library.  Since this doesn't match the
8738      # behavior of shared libraries on other platforms, we can't use
8739      # them.
8740      ld_shlibs=no
8741      ;;
8742
8743    beos*)
8744      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8745        allow_undefined_flag=unsupported
8746        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8747        # support --undefined.  This deserves some investigation.  FIXME
8748        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8749      else
8750        ld_shlibs=no
8751      fi
8752      ;;
8753
8754    cygwin* | mingw* | pw32*)
8755      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8756      # as there is no search path for DLLs.
8757      hardcode_libdir_flag_spec='-L$libdir'
8758      allow_undefined_flag=unsupported
8759      always_export_symbols=no
8760      enable_shared_with_static_runtimes=yes
8761      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8762
8763      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8764        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8765        # If the export-symbols file already is a .def file (1st line
8766        # is EXPORTS), use it as is; otherwise, prepend...
8767        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8768          cp $export_symbols $output_objdir/$soname.def;
8769        else
8770          echo EXPORTS > $output_objdir/$soname.def;
8771          cat $export_symbols >> $output_objdir/$soname.def;
8772        fi~
8773        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8774      else
8775        ld_shlibs=no
8776      fi
8777      ;;
8778
8779    interix3*)
8780      hardcode_direct=no
8781      hardcode_shlibpath_var=no
8782      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8783      export_dynamic_flag_spec='${wl}-E'
8784      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8785      # Instead, shared libraries are loaded at an image base (0x10000000 by
8786      # default) and relocated if they conflict, which is a slow very memory
8787      # consuming and fragmenting process.  To avoid this, we pick a random,
8788      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8789      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8790      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8791      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'
8792      ;;
8793
8794    linux*)
8795      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8796        tmp_addflag=
8797        case $cc_basename,$host_cpu in
8798        pgcc*)                          # Portland Group C compiler
8799          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'
8800          tmp_addflag=' $pic_flag'
8801          ;;
8802        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8803          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'
8804          tmp_addflag=' $pic_flag -Mnomain' ;;
8805        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8806          tmp_addflag=' -i_dynamic' ;;
8807        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8808          tmp_addflag=' -i_dynamic -nofor_main' ;;
8809        ifc* | ifort*)                  # Intel Fortran compiler
8810          tmp_addflag=' -nofor_main' ;;
8811        esac
8812        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8813
8814        if test $supports_anon_versioning = yes; then
8815          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8816  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8817  $echo "local: *; };" >> $output_objdir/$libname.ver~
8818          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8819        fi
8820      else
8821        ld_shlibs=no
8822      fi
8823      ;;
8824
8825    netbsd*)
8826      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8827        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8828        wlarc=
8829      else
8830        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8831        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8832      fi
8833      ;;
8834
8835    solaris*)
8836      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8837        ld_shlibs=no
8838        cat <<EOF 1>&2
8839
8840*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8841*** create shared libraries on Solaris systems.  Therefore, libtool
8842*** is disabling shared libraries support.  We urge you to upgrade GNU
8843*** binutils to release 2.9.1 or newer.  Another option is to modify
8844*** your PATH or compiler configuration so that the native linker is
8845*** used, and then restart.
8846
8847EOF
8848      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8849        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8850        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8851      else
8852        ld_shlibs=no
8853      fi
8854      ;;
8855
8856    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8857      case `$LD -v 2>&1` in
8858        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8859        ld_shlibs=no
8860        cat <<_LT_EOF 1>&2
8861
8862*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8863*** reliably create shared libraries on SCO systems.  Therefore, libtool
8864*** is disabling shared libraries support.  We urge you to upgrade GNU
8865*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8866*** your PATH or compiler configuration so that the native linker is
8867*** used, and then restart.
8868
8869_LT_EOF
8870        ;;
8871        *)
8872          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8873            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8874            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8875            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8876          else
8877            ld_shlibs=no
8878          fi
8879        ;;
8880      esac
8881      ;;
8882
8883    sunos4*)
8884      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8885      wlarc=
8886      hardcode_direct=yes
8887      hardcode_shlibpath_var=no
8888      ;;
8889
8890    *)
8891      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8892        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8893        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8894      else
8895        ld_shlibs=no
8896      fi
8897      ;;
8898    esac
8899
8900    if test "$ld_shlibs" = no; then
8901      runpath_var=
8902      hardcode_libdir_flag_spec=
8903      export_dynamic_flag_spec=
8904      whole_archive_flag_spec=
8905    fi
8906  else
8907    # PORTME fill in a description of your system's linker (not GNU ld)
8908    case $host_os in
8909    aix3*)
8910      allow_undefined_flag=unsupported
8911      always_export_symbols=yes
8912      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'
8913      # Note: this linker hardcodes the directories in LIBPATH if there
8914      # are no directories specified by -L.
8915      hardcode_minus_L=yes
8916      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8917        # Neither direct hardcoding nor static linking is supported with a
8918        # broken collect2.
8919        hardcode_direct=unsupported
8920      fi
8921      ;;
8922
8923    aix4* | aix5*)
8924      if test "$host_cpu" = ia64; then
8925        # On IA64, the linker does run time linking by default, so we don't
8926        # have to do anything special.
8927        aix_use_runtimelinking=no
8928        exp_sym_flag='-Bexport'
8929        no_entry_flag=""
8930      else
8931        # If we're using GNU nm, then we don't want the "-C" option.
8932        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8933        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8934          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'
8935        else
8936          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'
8937        fi
8938        aix_use_runtimelinking=no
8939
8940        # Test if we are trying to use run time linking or normal
8941        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8942        # need to do runtime linking.
8943        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8944          for ld_flag in $LDFLAGS; do
8945          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8946            aix_use_runtimelinking=yes
8947            break
8948          fi
8949          done
8950          ;;
8951        esac
8952
8953        exp_sym_flag='-bexport'
8954        no_entry_flag='-bnoentry'
8955      fi
8956
8957      # When large executables or shared objects are built, AIX ld can
8958      # have problems creating the table of contents.  If linking a library
8959      # or program results in "error TOC overflow" add -mminimal-toc to
8960      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8961      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8962
8963      archive_cmds=''
8964      hardcode_direct=yes
8965      hardcode_libdir_separator=':'
8966      link_all_deplibs=yes
8967
8968      if test "$GCC" = yes; then
8969        case $host_os in aix4.[012]|aix4.[012].*)
8970        # We only want to do this on AIX 4.2 and lower, the check
8971        # below for broken collect2 doesn't work under 4.3+
8972          collect2name=`${CC} -print-prog-name=collect2`
8973          if test -f "$collect2name" && \
8974           strings "$collect2name" | grep resolve_lib_name >/dev/null
8975          then
8976          # We have reworked collect2
8977          hardcode_direct=yes
8978          else
8979          # We have old collect2
8980          hardcode_direct=unsupported
8981          # It fails to find uninstalled libraries when the uninstalled
8982          # path is not listed in the libpath.  Setting hardcode_minus_L
8983          # to unsupported forces relinking
8984          hardcode_minus_L=yes
8985          hardcode_libdir_flag_spec='-L$libdir'
8986          hardcode_libdir_separator=
8987          fi
8988          ;;
8989        esac
8990        shared_flag='-shared'
8991        if test "$aix_use_runtimelinking" = yes; then
8992          shared_flag="$shared_flag "'${wl}-G'
8993        fi
8994      else
8995        # not using gcc
8996        if test "$host_cpu" = ia64; then
8997        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8998        # chokes on -Wl,-G. The following line is correct:
8999          shared_flag='-G'
9000        else
9001          if test "$aix_use_runtimelinking" = yes; then
9002            shared_flag='${wl}-G'
9003          else
9004            shared_flag='${wl}-bM:SRE'
9005          fi
9006        fi
9007      fi
9008
9009      # It seems that -bexpall does not export symbols beginning with
9010      # underscore (_), so it is better to generate a list of symbols to export.
9011      always_export_symbols=yes
9012      if test "$aix_use_runtimelinking" = yes; then
9013        # Warning - without using the other runtime loading flags (-brtl),
9014        # -berok will link without error, but may produce a broken library.
9015        allow_undefined_flag='-berok'
9016       # Determine the default libpath from the value encoded in an empty executable.
9017       cat >conftest.$ac_ext <<_ACEOF
9018/* confdefs.h.  */
9019_ACEOF
9020cat confdefs.h >>conftest.$ac_ext
9021cat >>conftest.$ac_ext <<_ACEOF
9022/* end confdefs.h.  */
9023
9024int
9025main ()
9026{
9027
9028  ;
9029  return 0;
9030}
9031_ACEOF
9032rm -f conftest.$ac_objext conftest$ac_exeext
9033if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9034  (eval $ac_link) 2>conftest.er1
9035  ac_status=$?
9036  grep -v '^ *+' conftest.er1 >conftest.err
9037  rm -f conftest.er1
9038  cat conftest.err >&5
9039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040  (exit $ac_status); } &&
9041         { ac_try='test -z "$ac_c_werror_flag"
9042                         || test ! -s conftest.err'
9043  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9044  (eval $ac_try) 2>&5
9045  ac_status=$?
9046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9047  (exit $ac_status); }; } &&
9048         { ac_try='test -s conftest$ac_exeext'
9049  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9050  (eval $ac_try) 2>&5
9051  ac_status=$?
9052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053  (exit $ac_status); }; }; then
9054
9055aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9056}'`
9057# Check for a 64-bit object if we didn't find anything.
9058if 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; }
9059}'`; fi
9060else
9061  echo "$as_me: failed program was:" >&5
9062sed 's/^/| /' conftest.$ac_ext >&5
9063
9064fi
9065rm -f conftest.err conftest.$ac_objext \
9066      conftest$ac_exeext conftest.$ac_ext
9067if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9068
9069       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9070        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"
9071       else
9072        if test "$host_cpu" = ia64; then
9073          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9074          allow_undefined_flag="-z nodefs"
9075          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"
9076        else
9077         # Determine the default libpath from the value encoded in an empty executable.
9078         cat >conftest.$ac_ext <<_ACEOF
9079/* confdefs.h.  */
9080_ACEOF
9081cat confdefs.h >>conftest.$ac_ext
9082cat >>conftest.$ac_ext <<_ACEOF
9083/* end confdefs.h.  */
9084
9085int
9086main ()
9087{
9088
9089  ;
9090  return 0;
9091}
9092_ACEOF
9093rm -f conftest.$ac_objext conftest$ac_exeext
9094if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9095  (eval $ac_link) 2>conftest.er1
9096  ac_status=$?
9097  grep -v '^ *+' conftest.er1 >conftest.err
9098  rm -f conftest.er1
9099  cat conftest.err >&5
9100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9101  (exit $ac_status); } &&
9102         { ac_try='test -z "$ac_c_werror_flag"
9103                         || test ! -s conftest.err'
9104  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9105  (eval $ac_try) 2>&5
9106  ac_status=$?
9107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108  (exit $ac_status); }; } &&
9109         { ac_try='test -s conftest$ac_exeext'
9110  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9111  (eval $ac_try) 2>&5
9112  ac_status=$?
9113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9114  (exit $ac_status); }; }; then
9115
9116aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9117}'`
9118# Check for a 64-bit object if we didn't find anything.
9119if 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; }
9120}'`; fi
9121else
9122  echo "$as_me: failed program was:" >&5
9123sed 's/^/| /' conftest.$ac_ext >&5
9124
9125fi
9126rm -f conftest.err conftest.$ac_objext \
9127      conftest$ac_exeext conftest.$ac_ext
9128if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9129
9130         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9131          # Warning - without using the other run time loading flags,
9132          # -berok will link without error, but may produce a broken library.
9133          no_undefined_flag=' ${wl}-bernotok'
9134          allow_undefined_flag=' ${wl}-berok'
9135          # Exported symbols can be pulled into shared objects from archives
9136          whole_archive_flag_spec='$convenience'
9137          archive_cmds_need_lc=yes
9138          # This is similar to how AIX traditionally builds its shared libraries.
9139          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'
9140        fi
9141      fi
9142      ;;
9143
9144    amigaos*)
9145      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)'
9146      hardcode_libdir_flag_spec='-L$libdir'
9147      hardcode_minus_L=yes
9148      # see comment about different semantics on the GNU ld section
9149      ld_shlibs=no
9150      ;;
9151
9152    bsdi[45]*)
9153      export_dynamic_flag_spec=-rdynamic
9154      ;;
9155
9156    cygwin* | mingw* | pw32*)
9157      # When not using gcc, we currently assume that we are using
9158      # Microsoft Visual C++.
9159      # hardcode_libdir_flag_spec is actually meaningless, as there is
9160      # no search path for DLLs.
9161      hardcode_libdir_flag_spec=' '
9162      allow_undefined_flag=unsupported
9163      # Tell ltmain to make .lib files, not .a files.
9164      libext=lib
9165      # Tell ltmain to make .dll files, not .so files.
9166      shrext_cmds=".dll"
9167      # FIXME: Setting linknames here is a bad hack.
9168      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9169      # The linker will automatically build a .lib file if we build a DLL.
9170      old_archive_From_new_cmds='true'
9171      # FIXME: Should let the user specify the lib program.
9172      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9173      fix_srcfile_path='`cygpath -w "$srcfile"`'
9174      enable_shared_with_static_runtimes=yes
9175      ;;
9176
9177    darwin* | rhapsody*)
9178      case $host_os in
9179        rhapsody* | darwin1.[012])
9180         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9181         ;;
9182       *) # Darwin 1.3 on
9183         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9184           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9185         else
9186           case ${MACOSX_DEPLOYMENT_TARGET} in
9187             10.[012])
9188               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9189               ;;
9190             10.*)
9191               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9192               ;;
9193           esac
9194         fi
9195         ;;
9196      esac
9197      archive_cmds_need_lc=no
9198      hardcode_direct=no
9199      hardcode_automatic=yes
9200      hardcode_shlibpath_var=unsupported
9201      whole_archive_flag_spec=''
9202      link_all_deplibs=yes
9203    if test "$GCC" = yes ; then
9204        output_verbose_link_cmd='echo'
9205        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9206      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9207      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9208      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}'
9209      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}'
9210    else
9211      case $cc_basename in
9212        xlc*)
9213         output_verbose_link_cmd='echo'
9214         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9215         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9216          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9217         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}'
9218          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}'
9219          ;;
9220       *)
9221         ld_shlibs=no
9222          ;;
9223      esac
9224    fi
9225      ;;
9226
9227    dgux*)
9228      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9229      hardcode_libdir_flag_spec='-L$libdir'
9230      hardcode_shlibpath_var=no
9231      ;;
9232
9233    freebsd1*)
9234      ld_shlibs=no
9235      ;;
9236
9237    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9238    # support.  Future versions do this automatically, but an explicit c++rt0.o
9239    # does not break anything, and helps significantly (at the cost of a little
9240    # extra space).
9241    freebsd2.2*)
9242      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9243      hardcode_libdir_flag_spec='-R$libdir'
9244      hardcode_direct=yes
9245      hardcode_shlibpath_var=no
9246      ;;
9247
9248    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9249    freebsd2*)
9250      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9251      hardcode_direct=yes
9252      hardcode_minus_L=yes
9253      hardcode_shlibpath_var=no
9254      ;;
9255
9256    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9257    freebsd* | kfreebsd*-gnu | dragonfly*)
9258      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9259      hardcode_libdir_flag_spec='-R$libdir'
9260      hardcode_direct=yes
9261      hardcode_shlibpath_var=no
9262      ;;
9263
9264    hpux9*)
9265      if test "$GCC" = yes; then
9266        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'
9267      else
9268        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'
9269      fi
9270      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9271      hardcode_libdir_separator=:
9272      hardcode_direct=yes
9273
9274      # hardcode_minus_L: Not really in the search PATH,
9275      # but as the default location of the library.
9276      hardcode_minus_L=yes
9277      export_dynamic_flag_spec='${wl}-E'
9278      ;;
9279
9280    hpux10*)
9281      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9282        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9283      else
9284        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9285      fi
9286      if test "$with_gnu_ld" = no; then
9287        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9288        hardcode_libdir_separator=:
9289
9290        hardcode_direct=yes
9291        export_dynamic_flag_spec='${wl}-E'
9292
9293        # hardcode_minus_L: Not really in the search PATH,
9294        # but as the default location of the library.
9295        hardcode_minus_L=yes
9296      fi
9297      ;;
9298
9299    hpux11*)
9300      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9301        case $host_cpu in
9302        hppa*64*)
9303          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9304          ;;
9305        ia64*)
9306          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9307          ;;
9308        *)
9309          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9310          ;;
9311        esac
9312      else
9313        case $host_cpu in
9314        hppa*64*)
9315          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9316          ;;
9317        ia64*)
9318          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9319          ;;
9320        *)
9321          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9322          ;;
9323        esac
9324      fi
9325      if test "$with_gnu_ld" = no; then
9326        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9327        hardcode_libdir_separator=:
9328
9329        case $host_cpu in
9330        hppa*64*|ia64*)
9331          hardcode_libdir_flag_spec_ld='+b $libdir'
9332          hardcode_direct=no
9333          hardcode_shlibpath_var=no
9334          ;;
9335        *)
9336          hardcode_direct=yes
9337          export_dynamic_flag_spec='${wl}-E'
9338
9339          # hardcode_minus_L: Not really in the search PATH,
9340          # but as the default location of the library.
9341          hardcode_minus_L=yes
9342          ;;
9343        esac
9344      fi
9345      ;;
9346
9347    irix5* | irix6* | nonstopux*)
9348      if test "$GCC" = yes; then
9349        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'
9350      else
9351        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'
9352        hardcode_libdir_flag_spec_ld='-rpath $libdir'
9353      fi
9354      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9355      hardcode_libdir_separator=:
9356      link_all_deplibs=yes
9357      ;;
9358
9359    netbsd*)
9360      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9361        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9362      else
9363        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9364      fi
9365      hardcode_libdir_flag_spec='-R$libdir'
9366      hardcode_direct=yes
9367      hardcode_shlibpath_var=no
9368      ;;
9369
9370    newsos6)
9371      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9372      hardcode_direct=yes
9373      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9374      hardcode_libdir_separator=:
9375      hardcode_shlibpath_var=no
9376      ;;
9377
9378    openbsd*)
9379      hardcode_direct=yes
9380      hardcode_shlibpath_var=no
9381      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9382        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9383        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9384        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9385        export_dynamic_flag_spec='${wl}-E'
9386      else
9387       case $host_os in
9388         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9389           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9390           hardcode_libdir_flag_spec='-R$libdir'
9391           ;;
9392         *)
9393           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9394           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9395           ;;
9396       esac
9397      fi
9398      ;;
9399
9400    os2*)
9401      hardcode_libdir_flag_spec='-L$libdir'
9402      hardcode_minus_L=yes
9403      allow_undefined_flag=unsupported
9404      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'
9405      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9406      ;;
9407
9408    osf3*)
9409      if test "$GCC" = yes; then
9410        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9411        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'
9412      else
9413        allow_undefined_flag=' -expect_unresolved \*'
9414        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'
9415      fi
9416      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9417      hardcode_libdir_separator=:
9418      ;;
9419
9420    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9421      if test "$GCC" = yes; then
9422        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9423        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'
9424        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9425      else
9426        allow_undefined_flag=' -expect_unresolved \*'
9427        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'
9428        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9429        $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'
9430
9431        # Both c and cxx compiler support -rpath directly
9432        hardcode_libdir_flag_spec='-rpath $libdir'
9433      fi
9434      hardcode_libdir_separator=:
9435      ;;
9436
9437    solaris*)
9438      no_undefined_flag=' -z text'
9439      if test "$GCC" = yes; then
9440        wlarc='${wl}'
9441        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9442        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9443          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9444      else
9445        wlarc=''
9446        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9447        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9448        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9449      fi
9450      hardcode_libdir_flag_spec='-R$libdir'
9451      hardcode_shlibpath_var=no
9452      case $host_os in
9453      solaris2.[0-5] | solaris2.[0-5].*) ;;
9454      *)
9455        # The compiler driver will combine linker options so we
9456        # cannot just pass the convience library names through
9457        # without $wl, iff we do not link with $LD.
9458        # Luckily, gcc supports the same syntax we need for Sun Studio.
9459        # Supported since Solaris 2.6 (maybe 2.5.1?)
9460        case $wlarc in
9461        '')
9462          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9463        *)
9464          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' ;;
9465        esac ;;
9466      esac
9467      link_all_deplibs=yes
9468      ;;
9469
9470    sunos4*)
9471      if test "x$host_vendor" = xsequent; then
9472        # Use $CC to link under sequent, because it throws in some extra .o
9473        # files that make .init and .fini sections work.
9474        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9475      else
9476        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9477      fi
9478      hardcode_libdir_flag_spec='-L$libdir'
9479      hardcode_direct=yes
9480      hardcode_minus_L=yes
9481      hardcode_shlibpath_var=no
9482      ;;
9483
9484    sysv4)
9485      case $host_vendor in
9486        sni)
9487          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9488          hardcode_direct=yes # is this really true???
9489        ;;
9490        siemens)
9491          ## LD is ld it makes a PLAMLIB
9492          ## CC just makes a GrossModule.
9493          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9494          reload_cmds='$CC -r -o $output$reload_objs'
9495          hardcode_direct=no
9496        ;;
9497        motorola)
9498          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9499          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9500        ;;
9501      esac
9502      runpath_var='LD_RUN_PATH'
9503      hardcode_shlibpath_var=no
9504      ;;
9505
9506    sysv4.3*)
9507      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9508      hardcode_shlibpath_var=no
9509      export_dynamic_flag_spec='-Bexport'
9510      ;;
9511
9512    sysv4*MP*)
9513      if test -d /usr/nec; then
9514        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9515        hardcode_shlibpath_var=no
9516        runpath_var=LD_RUN_PATH
9517        hardcode_runpath_var=yes
9518        ld_shlibs=yes
9519      fi
9520      ;;
9521
9522    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9523      no_undefined_flag='${wl}-z,text'
9524      archive_cmds_need_lc=no
9525      hardcode_shlibpath_var=no
9526      runpath_var='LD_RUN_PATH'
9527
9528      if test "$GCC" = yes; then
9529        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9530        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9531      else
9532        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9533        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9534      fi
9535      ;;
9536
9537    sysv5* | sco3.2v5* | sco5v6*)
9538      # Note: We can NOT use -z defs as we might desire, because we do not
9539      # link with -lc, and that would cause any symbols used from libc to
9540      # always be unresolved, which means just about no library would
9541      # ever link correctly.  If we're not using GNU ld we use -z text
9542      # though, which does catch some bad symbols but isn't as heavy-handed
9543      # as -z defs.
9544      no_undefined_flag='${wl}-z,text'
9545      allow_undefined_flag='${wl}-z,nodefs'
9546      archive_cmds_need_lc=no
9547      hardcode_shlibpath_var=no
9548      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9549      hardcode_libdir_separator=':'
9550      link_all_deplibs=yes
9551      export_dynamic_flag_spec='${wl}-Bexport'
9552      runpath_var='LD_RUN_PATH'
9553
9554      if test "$GCC" = yes; then
9555        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9556        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9557      else
9558        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9559        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9560      fi
9561      ;;
9562
9563    uts4*)
9564      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9565      hardcode_libdir_flag_spec='-L$libdir'
9566      hardcode_shlibpath_var=no
9567      ;;
9568
9569    *)
9570      ld_shlibs=no
9571      ;;
9572    esac
9573  fi
9574
9575echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9576echo "${ECHO_T}$ld_shlibs" >&6
9577test "$ld_shlibs" = no && can_build_shared=no
9578
9579#
9580# Do we need to explicitly link libc?
9581#
9582case "x$archive_cmds_need_lc" in
9583x|xyes)
9584  # Assume -lc should be added
9585  archive_cmds_need_lc=yes
9586
9587  if test "$enable_shared" = yes && test "$GCC" = yes; then
9588    case $archive_cmds in
9589    *'~'*)
9590      # FIXME: we may have to deal with multi-command sequences.
9591      ;;
9592    '$CC '*)
9593      # Test whether the compiler implicitly links with -lc since on some
9594      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9595      # to ld, don't add -lc before -lgcc.
9596      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9597echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9598      $rm conftest*
9599      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9600
9601      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9602  (eval $ac_compile) 2>&5
9603  ac_status=$?
9604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9605  (exit $ac_status); } 2>conftest.err; then
9606        soname=conftest
9607        lib=conftest
9608        libobjs=conftest.$ac_objext
9609        deplibs=
9610        wl=$lt_prog_compiler_wl
9611        pic_flag=$lt_prog_compiler_pic
9612        compiler_flags=-v
9613        linker_flags=-v
9614        verstring=
9615        output_objdir=.
9616        libname=conftest
9617        lt_save_allow_undefined_flag=$allow_undefined_flag
9618        allow_undefined_flag=
9619        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9620  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9621  ac_status=$?
9622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9623  (exit $ac_status); }
9624        then
9625          archive_cmds_need_lc=no
9626        else
9627          archive_cmds_need_lc=yes
9628        fi
9629        allow_undefined_flag=$lt_save_allow_undefined_flag
9630      else
9631        cat conftest.err 1>&5
9632      fi
9633      $rm conftest*
9634      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9635echo "${ECHO_T}$archive_cmds_need_lc" >&6
9636      ;;
9637    esac
9638  fi
9639  ;;
9640esac
9641
9642echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9643echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9644library_names_spec=
9645libname_spec='lib$name'
9646soname_spec=
9647shrext_cmds=".so"
9648postinstall_cmds=
9649postuninstall_cmds=
9650finish_cmds=
9651finish_eval=
9652shlibpath_var=
9653shlibpath_overrides_runpath=unknown
9654version_type=none
9655dynamic_linker="$host_os ld.so"
9656sys_lib_dlsearch_path_spec="/lib /usr/lib"
9657if test "$GCC" = yes; then
9658  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9659  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9660    # if the path contains ";" then we assume it to be the separator
9661    # otherwise default to the standard path separator (i.e. ":") - it is
9662    # assumed that no part of a normal pathname contains ";" but that should
9663    # okay in the real world where ";" in dirpaths is itself problematic.
9664    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9665  else
9666    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9667  fi
9668else
9669  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9670fi
9671need_lib_prefix=unknown
9672hardcode_into_libs=no
9673
9674# when you set need_version to no, make sure it does not cause -set_version
9675# flags to be left without arguments
9676need_version=unknown
9677
9678case $host_os in
9679aix3*)
9680  version_type=linux
9681  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9682  shlibpath_var=LIBPATH
9683
9684  # AIX 3 has no versioning support, so we append a major version to the name.
9685  soname_spec='${libname}${release}${shared_ext}$major'
9686  ;;
9687
9688aix4* | aix5*)
9689  version_type=linux
9690  need_lib_prefix=no
9691  need_version=no
9692  hardcode_into_libs=yes
9693  if test "$host_cpu" = ia64; then
9694    # AIX 5 supports IA64
9695    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9696    shlibpath_var=LD_LIBRARY_PATH
9697  else
9698    # With GCC up to 2.95.x, collect2 would create an import file
9699    # for dependence libraries.  The import file would start with
9700    # the line `#! .'.  This would cause the generated library to
9701    # depend on `.', always an invalid library.  This was fixed in
9702    # development snapshots of GCC prior to 3.0.
9703    case $host_os in
9704      aix4 | aix4.[01] | aix4.[01].*)
9705      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9706           echo ' yes '
9707           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9708        :
9709      else
9710        can_build_shared=no
9711      fi
9712      ;;
9713    esac
9714    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9715    # soname into executable. Probably we can add versioning support to
9716    # collect2, so additional links can be useful in future.
9717    if test "$aix_use_runtimelinking" = yes; then
9718      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9719      # instead of lib<name>.a to let people know that these are not
9720      # typical AIX shared libraries.
9721      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9722    else
9723      # We preserve .a as extension for shared libraries through AIX4.2
9724      # and later when we are not doing run time linking.
9725      library_names_spec='${libname}${release}.a $libname.a'
9726      soname_spec='${libname}${release}${shared_ext}$major'
9727    fi
9728    shlibpath_var=LIBPATH
9729  fi
9730  ;;
9731
9732amigaos*)
9733  library_names_spec='$libname.ixlibrary $libname.a'
9734  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9735  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'
9736  ;;
9737
9738beos*)
9739  library_names_spec='${libname}${shared_ext}'
9740  dynamic_linker="$host_os ld.so"
9741  shlibpath_var=LIBRARY_PATH
9742  ;;
9743
9744bsdi[45]*)
9745  version_type=linux
9746  need_version=no
9747  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9748  soname_spec='${libname}${release}${shared_ext}$major'
9749  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9750  shlibpath_var=LD_LIBRARY_PATH
9751  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9752  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9753  # the default ld.so.conf also contains /usr/contrib/lib and
9754  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9755  # libtool to hard-code these into programs
9756  ;;
9757
9758cygwin* | mingw* | pw32*)
9759  version_type=windows
9760  shrext_cmds=".dll"
9761  need_version=no
9762  need_lib_prefix=no
9763
9764  case $GCC,$host_os in
9765  yes,cygwin* | yes,mingw* | yes,pw32*)
9766    library_names_spec='$libname.dll.a'
9767    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9768    postinstall_cmds='base_file=`basename \${file}`~
9769      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9770      dldir=$destdir/`dirname \$dlpath`~
9771      test -d \$dldir || mkdir -p \$dldir~
9772      $install_prog $dir/$dlname \$dldir/$dlname~
9773      chmod a+x \$dldir/$dlname'
9774    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9775      dlpath=$dir/\$dldll~
9776       $rm \$dlpath'
9777    shlibpath_overrides_runpath=yes
9778
9779    case $host_os in
9780    cygwin*)
9781      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9782      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9783      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9784      ;;
9785    mingw*)
9786      # MinGW DLLs use traditional 'lib' prefix
9787      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9788      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9789      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9790        # It is most probably a Windows format PATH printed by
9791        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9792        # path with ; separators, and with drive letters. We can handle the
9793        # drive letters (cygwin fileutils understands them), so leave them,
9794        # especially as we might pass files found there to a mingw objdump,
9795        # which wouldn't understand a cygwinified path. Ahh.
9796        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9797      else
9798        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9799      fi
9800      ;;
9801    pw32*)
9802      # pw32 DLLs use 'pw' prefix rather than 'lib'
9803      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9804      ;;
9805    esac
9806    ;;
9807
9808  *)
9809    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9810    ;;
9811  esac
9812  dynamic_linker='Win32 ld.exe'
9813  # FIXME: first we should search . and the directory the executable is in
9814  shlibpath_var=PATH
9815  ;;
9816
9817darwin* | rhapsody*)
9818  dynamic_linker="$host_os dyld"
9819  version_type=darwin
9820  need_lib_prefix=no
9821  need_version=no
9822  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9823  soname_spec='${libname}${release}${major}$shared_ext'
9824  shlibpath_overrides_runpath=yes
9825  shlibpath_var=DYLD_LIBRARY_PATH
9826  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9827  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9828  if test "$GCC" = yes; then
9829    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"`
9830  else
9831    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9832  fi
9833  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9834  ;;
9835
9836dgux*)
9837  version_type=linux
9838  need_lib_prefix=no
9839  need_version=no
9840  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9841  soname_spec='${libname}${release}${shared_ext}$major'
9842  shlibpath_var=LD_LIBRARY_PATH
9843  ;;
9844
9845freebsd1*)
9846  dynamic_linker=no
9847  ;;
9848
9849kfreebsd*-gnu)
9850  version_type=linux
9851  need_lib_prefix=no
9852  need_version=no
9853  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9854  soname_spec='${libname}${release}${shared_ext}$major'
9855  shlibpath_var=LD_LIBRARY_PATH
9856  shlibpath_overrides_runpath=no
9857  hardcode_into_libs=yes
9858  dynamic_linker='GNU ld.so'
9859  ;;
9860
9861freebsd* | dragonfly*)
9862  # DragonFly does not have aout.  When/if they implement a new
9863  # versioning mechanism, adjust this.
9864  if test -x /usr/bin/objformat; then
9865    objformat=`/usr/bin/objformat`
9866  else
9867    case $host_os in
9868    freebsd[123]*) objformat=aout ;;
9869    *) objformat=elf ;;
9870    esac
9871  fi
9872  version_type=freebsd-$objformat
9873  case $version_type in
9874    freebsd-elf*)
9875      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9876      need_version=no
9877      need_lib_prefix=no
9878      ;;
9879    freebsd-*)
9880      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9881      need_version=yes
9882      ;;
9883  esac
9884  shlibpath_var=LD_LIBRARY_PATH
9885  case $host_os in
9886  freebsd2*)
9887    shlibpath_overrides_runpath=yes
9888    ;;
9889  freebsd3.[01]* | freebsdelf3.[01]*)
9890    shlibpath_overrides_runpath=yes
9891    hardcode_into_libs=yes
9892    ;;
9893  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9894  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9895    shlibpath_overrides_runpath=no
9896    hardcode_into_libs=yes
9897    ;;
9898  freebsd*) # from 4.6 on
9899    shlibpath_overrides_runpath=yes
9900    hardcode_into_libs=yes
9901    ;;
9902  esac
9903  ;;
9904
9905gnu*)
9906  version_type=linux
9907  need_lib_prefix=no
9908  need_version=no
9909  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9910  soname_spec='${libname}${release}${shared_ext}$major'
9911  shlibpath_var=LD_LIBRARY_PATH
9912  hardcode_into_libs=yes
9913  ;;
9914
9915hpux9* | hpux10* | hpux11*)
9916  # Give a soname corresponding to the major version so that dld.sl refuses to
9917  # link against other versions.
9918  version_type=sunos
9919  need_lib_prefix=no
9920  need_version=no
9921  case $host_cpu in
9922  ia64*)
9923    shrext_cmds='.so'
9924    hardcode_into_libs=yes
9925    dynamic_linker="$host_os dld.so"
9926    shlibpath_var=LD_LIBRARY_PATH
9927    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9928    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9929    soname_spec='${libname}${release}${shared_ext}$major'
9930    if test "X$HPUX_IA64_MODE" = X32; then
9931      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9932    else
9933      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9934    fi
9935    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9936    ;;
9937   hppa*64*)
9938     shrext_cmds='.sl'
9939     hardcode_into_libs=yes
9940     dynamic_linker="$host_os dld.sl"
9941     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9942     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9943     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9944     soname_spec='${libname}${release}${shared_ext}$major'
9945     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9946     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9947     ;;
9948   *)
9949    shrext_cmds='.sl'
9950    dynamic_linker="$host_os dld.sl"
9951    shlibpath_var=SHLIB_PATH
9952    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9953    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9954    soname_spec='${libname}${release}${shared_ext}$major'
9955    ;;
9956  esac
9957  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9958  postinstall_cmds='chmod 555 $lib'
9959  ;;
9960
9961interix3*)
9962  version_type=linux
9963  need_lib_prefix=no
9964  need_version=no
9965  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9966  soname_spec='${libname}${release}${shared_ext}$major'
9967  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9968  shlibpath_var=LD_LIBRARY_PATH
9969  shlibpath_overrides_runpath=no
9970  hardcode_into_libs=yes
9971  ;;
9972
9973irix5* | irix6* | nonstopux*)
9974  case $host_os in
9975    nonstopux*) version_type=nonstopux ;;
9976    *)
9977        if test "$lt_cv_prog_gnu_ld" = yes; then
9978                version_type=linux
9979        else
9980                version_type=irix
9981        fi ;;
9982  esac
9983  need_lib_prefix=no
9984  need_version=no
9985  soname_spec='${libname}${release}${shared_ext}$major'
9986  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9987  case $host_os in
9988  irix5* | nonstopux*)
9989    libsuff= shlibsuff=
9990    ;;
9991  *)
9992    case $LD in # libtool.m4 will add one of these switches to LD
9993    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9994      libsuff= shlibsuff= libmagic=32-bit;;
9995    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9996      libsuff=32 shlibsuff=N32 libmagic=N32;;
9997    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9998      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9999    *) libsuff= shlibsuff= libmagic=never-match;;
10000    esac
10001    ;;
10002  esac
10003  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10004  shlibpath_overrides_runpath=no
10005  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10006  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10007  hardcode_into_libs=yes
10008  ;;
10009
10010# No shared lib support for Linux oldld, aout, or coff.
10011linux*oldld* | linux*aout* | linux*coff*)
10012  dynamic_linker=no
10013  ;;
10014
10015# This must be Linux ELF.
10016linux*)
10017  version_type=linux
10018  need_lib_prefix=no
10019  need_version=no
10020  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10021  soname_spec='${libname}${release}${shared_ext}$major'
10022  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10023  shlibpath_var=LD_LIBRARY_PATH
10024  shlibpath_overrides_runpath=no
10025  # This implies no fast_install, which is unacceptable.
10026  # Some rework will be needed to allow for fast_install
10027  # before this can be enabled.
10028  hardcode_into_libs=yes
10029
10030  # Append ld.so.conf contents to the search path
10031  if test -f /etc/ld.so.conf; then
10032    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' ' '`
10033    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10034  fi
10035
10036  # We used to test for /lib/ld.so.1 and disable shared libraries on
10037  # powerpc, because MkLinux only supported shared libraries with the
10038  # GNU dynamic linker.  Since this was broken with cross compilers,
10039  # most powerpc-linux boxes support dynamic linking these days and
10040  # people can always --disable-shared, the test was removed, and we
10041  # assume the GNU/Linux dynamic linker is in use.
10042  dynamic_linker='GNU/Linux ld.so'
10043  ;;
10044
10045knetbsd*-gnu)
10046  version_type=linux
10047  need_lib_prefix=no
10048  need_version=no
10049  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10050  soname_spec='${libname}${release}${shared_ext}$major'
10051  shlibpath_var=LD_LIBRARY_PATH
10052  shlibpath_overrides_runpath=no
10053  hardcode_into_libs=yes
10054  dynamic_linker='GNU ld.so'
10055  ;;
10056
10057netbsd*)
10058  version_type=sunos
10059  need_lib_prefix=no
10060  need_version=no
10061  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10062    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10063    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10064    dynamic_linker='NetBSD (a.out) ld.so'
10065  else
10066    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10067    soname_spec='${libname}${release}${shared_ext}$major'
10068    dynamic_linker='NetBSD ld.elf_so'
10069  fi
10070  shlibpath_var=LD_LIBRARY_PATH
10071  shlibpath_overrides_runpath=yes
10072  hardcode_into_libs=yes
10073  ;;
10074
10075newsos6)
10076  version_type=linux
10077  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10078  shlibpath_var=LD_LIBRARY_PATH
10079  shlibpath_overrides_runpath=yes
10080  ;;
10081
10082nto-qnx*)
10083  version_type=linux
10084  need_lib_prefix=no
10085  need_version=no
10086  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10087  soname_spec='${libname}${release}${shared_ext}$major'
10088  shlibpath_var=LD_LIBRARY_PATH
10089  shlibpath_overrides_runpath=yes
10090  ;;
10091
10092openbsd*)
10093  version_type=sunos
10094  sys_lib_dlsearch_path_spec="/usr/lib"
10095  need_lib_prefix=no
10096  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10097  case $host_os in
10098    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10099    *)                         need_version=no  ;;
10100  esac
10101  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10102  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10103  shlibpath_var=LD_LIBRARY_PATH
10104  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10105    case $host_os in
10106      openbsd2.[89] | openbsd2.[89].*)
10107        shlibpath_overrides_runpath=no
10108        ;;
10109      *)
10110        shlibpath_overrides_runpath=yes
10111        ;;
10112      esac
10113  else
10114    shlibpath_overrides_runpath=yes
10115  fi
10116  ;;
10117
10118os2*)
10119  libname_spec='$name'
10120  shrext_cmds=".dll"
10121  need_lib_prefix=no
10122  library_names_spec='$libname${shared_ext} $libname.a'
10123  dynamic_linker='OS/2 ld.exe'
10124  shlibpath_var=LIBPATH
10125  ;;
10126
10127osf3* | osf4* | osf5*)
10128  version_type=osf
10129  need_lib_prefix=no
10130  need_version=no
10131  soname_spec='${libname}${release}${shared_ext}$major'
10132  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10133  shlibpath_var=LD_LIBRARY_PATH
10134  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10135  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10136  ;;
10137
10138solaris*)
10139  version_type=linux
10140  need_lib_prefix=no
10141  need_version=no
10142  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10143  soname_spec='${libname}${release}${shared_ext}$major'
10144  shlibpath_var=LD_LIBRARY_PATH
10145  shlibpath_overrides_runpath=yes
10146  hardcode_into_libs=yes
10147  # ldd complains unless libraries are executable
10148  postinstall_cmds='chmod +x $lib'
10149  ;;
10150
10151sunos4*)
10152  version_type=sunos
10153  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10154  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10155  shlibpath_var=LD_LIBRARY_PATH
10156  shlibpath_overrides_runpath=yes
10157  if test "$with_gnu_ld" = yes; then
10158    need_lib_prefix=no
10159  fi
10160  need_version=yes
10161  ;;
10162
10163sysv4 | sysv4.3*)
10164  version_type=linux
10165  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10166  soname_spec='${libname}${release}${shared_ext}$major'
10167  shlibpath_var=LD_LIBRARY_PATH
10168  case $host_vendor in
10169    sni)
10170      shlibpath_overrides_runpath=no
10171      need_lib_prefix=no
10172      export_dynamic_flag_spec='${wl}-Blargedynsym'
10173      runpath_var=LD_RUN_PATH
10174      ;;
10175    siemens)
10176      need_lib_prefix=no
10177      ;;
10178    motorola)
10179      need_lib_prefix=no
10180      need_version=no
10181      shlibpath_overrides_runpath=no
10182      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10183      ;;
10184  esac
10185  ;;
10186
10187sysv4*MP*)
10188  if test -d /usr/nec ;then
10189    version_type=linux
10190    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10191    soname_spec='$libname${shared_ext}.$major'
10192    shlibpath_var=LD_LIBRARY_PATH
10193  fi
10194  ;;
10195
10196sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10197  version_type=freebsd-elf
10198  need_lib_prefix=no
10199  need_version=no
10200  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10201  soname_spec='${libname}${release}${shared_ext}$major'
10202  shlibpath_var=LD_LIBRARY_PATH
10203  hardcode_into_libs=yes
10204  if test "$with_gnu_ld" = yes; then
10205    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10206    shlibpath_overrides_runpath=no
10207  else
10208    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10209    shlibpath_overrides_runpath=yes
10210    case $host_os in
10211      sco3.2v5*)
10212        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10213        ;;
10214    esac
10215  fi
10216  sys_lib_dlsearch_path_spec='/usr/lib'
10217  ;;
10218
10219uts4*)
10220  version_type=linux
10221  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10222  soname_spec='${libname}${release}${shared_ext}$major'
10223  shlibpath_var=LD_LIBRARY_PATH
10224  ;;
10225
10226*)
10227  dynamic_linker=no
10228  ;;
10229esac
10230echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10231echo "${ECHO_T}$dynamic_linker" >&6
10232test "$dynamic_linker" = no && can_build_shared=no
10233
10234variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10235if test "$GCC" = yes; then
10236  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10237fi
10238
10239echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10240echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10241hardcode_action=
10242if test -n "$hardcode_libdir_flag_spec" || \
10243   test -n "$runpath_var" || \
10244   test "X$hardcode_automatic" = "Xyes" ; then
10245
10246  # We can hardcode non-existant directories.
10247  if test "$hardcode_direct" != no &&
10248     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10249     # have to relink, otherwise we might link with an installed library
10250     # when we should be linking with a yet-to-be-installed one
10251     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10252     test "$hardcode_minus_L" != no; then
10253    # Linking always hardcodes the temporary library directory.
10254    hardcode_action=relink
10255  else
10256    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10257    hardcode_action=immediate
10258  fi
10259else
10260  # We cannot hardcode anything, or else we can only hardcode existing
10261  # directories.
10262  hardcode_action=unsupported
10263fi
10264echo "$as_me:$LINENO: result: $hardcode_action" >&5
10265echo "${ECHO_T}$hardcode_action" >&6
10266
10267if test "$hardcode_action" = relink; then
10268  # Fast installation is not supported
10269  enable_fast_install=no
10270elif test "$shlibpath_overrides_runpath" = yes ||
10271     test "$enable_shared" = no; then
10272  # Fast installation is not necessary
10273  enable_fast_install=needless
10274fi
10275
10276striplib=
10277old_striplib=
10278echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10279echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10280if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10281  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10282  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10283  echo "$as_me:$LINENO: result: yes" >&5
10284echo "${ECHO_T}yes" >&6
10285else
10286# FIXME - insert some real tests, host_os isn't really good enough
10287  case $host_os in
10288   darwin*)
10289       if test -n "$STRIP" ; then
10290         striplib="$STRIP -x"
10291         echo "$as_me:$LINENO: result: yes" >&5
10292echo "${ECHO_T}yes" >&6
10293       else
10294  echo "$as_me:$LINENO: result: no" >&5
10295echo "${ECHO_T}no" >&6
10296fi
10297       ;;
10298   *)
10299  echo "$as_me:$LINENO: result: no" >&5
10300echo "${ECHO_T}no" >&6
10301    ;;
10302  esac
10303fi
10304
10305if test "x$enable_dlopen" != xyes; then
10306  enable_dlopen=unknown
10307  enable_dlopen_self=unknown
10308  enable_dlopen_self_static=unknown
10309else
10310  lt_cv_dlopen=no
10311  lt_cv_dlopen_libs=
10312
10313  case $host_os in
10314  beos*)
10315    lt_cv_dlopen="load_add_on"
10316    lt_cv_dlopen_libs=
10317    lt_cv_dlopen_self=yes
10318    ;;
10319
10320  mingw* | pw32*)
10321    lt_cv_dlopen="LoadLibrary"
10322    lt_cv_dlopen_libs=
10323   ;;
10324
10325  cygwin*)
10326    lt_cv_dlopen="dlopen"
10327    lt_cv_dlopen_libs=
10328   ;;
10329
10330  darwin*)
10331  # if libdl is installed we need to link against it
10332    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10333echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10334if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10335  echo $ECHO_N "(cached) $ECHO_C" >&6
10336else
10337  ac_check_lib_save_LIBS=$LIBS
10338LIBS="-ldl  $LIBS"
10339cat >conftest.$ac_ext <<_ACEOF
10340/* confdefs.h.  */
10341_ACEOF
10342cat confdefs.h >>conftest.$ac_ext
10343cat >>conftest.$ac_ext <<_ACEOF
10344/* end confdefs.h.  */
10345
10346/* Override any gcc2 internal prototype to avoid an error.  */
10347#ifdef __cplusplus
10348extern "C"
10349#endif
10350/* We use char because int might match the return type of a gcc2
10351   builtin and then its argument prototype would still apply.  */
10352char dlopen ();
10353int
10354main ()
10355{
10356dlopen ();
10357  ;
10358  return 0;
10359}
10360_ACEOF
10361rm -f conftest.$ac_objext conftest$ac_exeext
10362if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10363  (eval $ac_link) 2>conftest.er1
10364  ac_status=$?
10365  grep -v '^ *+' conftest.er1 >conftest.err
10366  rm -f conftest.er1
10367  cat conftest.err >&5
10368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10369  (exit $ac_status); } &&
10370         { ac_try='test -z "$ac_c_werror_flag"
10371                         || test ! -s conftest.err'
10372  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10373  (eval $ac_try) 2>&5
10374  ac_status=$?
10375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10376  (exit $ac_status); }; } &&
10377         { ac_try='test -s conftest$ac_exeext'
10378  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10379  (eval $ac_try) 2>&5
10380  ac_status=$?
10381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382  (exit $ac_status); }; }; then
10383  ac_cv_lib_dl_dlopen=yes
10384else
10385  echo "$as_me: failed program was:" >&5
10386sed 's/^/| /' conftest.$ac_ext >&5
10387
10388ac_cv_lib_dl_dlopen=no
10389fi
10390rm -f conftest.err conftest.$ac_objext \
10391      conftest$ac_exeext conftest.$ac_ext
10392LIBS=$ac_check_lib_save_LIBS
10393fi
10394echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10395echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10396if test $ac_cv_lib_dl_dlopen = yes; then
10397  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10398else
10399
10400    lt_cv_dlopen="dyld"
10401    lt_cv_dlopen_libs=
10402    lt_cv_dlopen_self=yes
10403
10404fi
10405
10406   ;;
10407
10408  *)
10409    echo "$as_me:$LINENO: checking for shl_load" >&5
10410echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10411if test "${ac_cv_func_shl_load+set}" = set; then
10412  echo $ECHO_N "(cached) $ECHO_C" >&6
10413else
10414  cat >conftest.$ac_ext <<_ACEOF
10415/* confdefs.h.  */
10416_ACEOF
10417cat confdefs.h >>conftest.$ac_ext
10418cat >>conftest.$ac_ext <<_ACEOF
10419/* end confdefs.h.  */
10420/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10421   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10422#define shl_load innocuous_shl_load
10423
10424/* System header to define __stub macros and hopefully few prototypes,
10425    which can conflict with char shl_load (); below.
10426    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10427    <limits.h> exists even on freestanding compilers.  */
10428
10429#ifdef __STDC__
10430# include <limits.h>
10431#else
10432# include <assert.h>
10433#endif
10434
10435#undef shl_load
10436
10437/* Override any gcc2 internal prototype to avoid an error.  */
10438#ifdef __cplusplus
10439extern "C"
10440{
10441#endif
10442/* We use char because int might match the return type of a gcc2
10443   builtin and then its argument prototype would still apply.  */
10444char shl_load ();
10445/* The GNU C library defines this for functions which it implements
10446    to always fail with ENOSYS.  Some functions are actually named
10447    something starting with __ and the normal name is an alias.  */
10448#if defined (__stub_shl_load) || defined (__stub___shl_load)
10449choke me
10450#else
10451char (*f) () = shl_load;
10452#endif
10453#ifdef __cplusplus
10454}
10455#endif
10456
10457int
10458main ()
10459{
10460return f != shl_load;
10461  ;
10462  return 0;
10463}
10464_ACEOF
10465rm -f conftest.$ac_objext conftest$ac_exeext
10466if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10467  (eval $ac_link) 2>conftest.er1
10468  ac_status=$?
10469  grep -v '^ *+' conftest.er1 >conftest.err
10470  rm -f conftest.er1
10471  cat conftest.err >&5
10472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473  (exit $ac_status); } &&
10474         { ac_try='test -z "$ac_c_werror_flag"
10475                         || test ! -s conftest.err'
10476  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10477  (eval $ac_try) 2>&5
10478  ac_status=$?
10479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480  (exit $ac_status); }; } &&
10481         { ac_try='test -s conftest$ac_exeext'
10482  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10483  (eval $ac_try) 2>&5
10484  ac_status=$?
10485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10486  (exit $ac_status); }; }; then
10487  ac_cv_func_shl_load=yes
10488else
10489  echo "$as_me: failed program was:" >&5
10490sed 's/^/| /' conftest.$ac_ext >&5
10491
10492ac_cv_func_shl_load=no
10493fi
10494rm -f conftest.err conftest.$ac_objext \
10495      conftest$ac_exeext conftest.$ac_ext
10496fi
10497echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10498echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10499if test $ac_cv_func_shl_load = yes; then
10500  lt_cv_dlopen="shl_load"
10501else
10502  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10503echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10504if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10505  echo $ECHO_N "(cached) $ECHO_C" >&6
10506else
10507  ac_check_lib_save_LIBS=$LIBS
10508LIBS="-ldld  $LIBS"
10509cat >conftest.$ac_ext <<_ACEOF
10510/* confdefs.h.  */
10511_ACEOF
10512cat confdefs.h >>conftest.$ac_ext
10513cat >>conftest.$ac_ext <<_ACEOF
10514/* end confdefs.h.  */
10515
10516/* Override any gcc2 internal prototype to avoid an error.  */
10517#ifdef __cplusplus
10518extern "C"
10519#endif
10520/* We use char because int might match the return type of a gcc2
10521   builtin and then its argument prototype would still apply.  */
10522char shl_load ();
10523int
10524main ()
10525{
10526shl_load ();
10527  ;
10528  return 0;
10529}
10530_ACEOF
10531rm -f conftest.$ac_objext conftest$ac_exeext
10532if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10533  (eval $ac_link) 2>conftest.er1
10534  ac_status=$?
10535  grep -v '^ *+' conftest.er1 >conftest.err
10536  rm -f conftest.er1
10537  cat conftest.err >&5
10538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10539  (exit $ac_status); } &&
10540         { ac_try='test -z "$ac_c_werror_flag"
10541                         || test ! -s conftest.err'
10542  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10543  (eval $ac_try) 2>&5
10544  ac_status=$?
10545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546  (exit $ac_status); }; } &&
10547         { ac_try='test -s conftest$ac_exeext'
10548  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10549  (eval $ac_try) 2>&5
10550  ac_status=$?
10551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552  (exit $ac_status); }; }; then
10553  ac_cv_lib_dld_shl_load=yes
10554else
10555  echo "$as_me: failed program was:" >&5
10556sed 's/^/| /' conftest.$ac_ext >&5
10557
10558ac_cv_lib_dld_shl_load=no
10559fi
10560rm -f conftest.err conftest.$ac_objext \
10561      conftest$ac_exeext conftest.$ac_ext
10562LIBS=$ac_check_lib_save_LIBS
10563fi
10564echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10565echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10566if test $ac_cv_lib_dld_shl_load = yes; then
10567  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10568else
10569  echo "$as_me:$LINENO: checking for dlopen" >&5
10570echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10571if test "${ac_cv_func_dlopen+set}" = set; then
10572  echo $ECHO_N "(cached) $ECHO_C" >&6
10573else
10574  cat >conftest.$ac_ext <<_ACEOF
10575/* confdefs.h.  */
10576_ACEOF
10577cat confdefs.h >>conftest.$ac_ext
10578cat >>conftest.$ac_ext <<_ACEOF
10579/* end confdefs.h.  */
10580/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10581   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10582#define dlopen innocuous_dlopen
10583
10584/* System header to define __stub macros and hopefully few prototypes,
10585    which can conflict with char dlopen (); below.
10586    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10587    <limits.h> exists even on freestanding compilers.  */
10588
10589#ifdef __STDC__
10590# include <limits.h>
10591#else
10592# include <assert.h>
10593#endif
10594
10595#undef dlopen
10596
10597/* Override any gcc2 internal prototype to avoid an error.  */
10598#ifdef __cplusplus
10599extern "C"
10600{
10601#endif
10602/* We use char because int might match the return type of a gcc2
10603   builtin and then its argument prototype would still apply.  */
10604char dlopen ();
10605/* The GNU C library defines this for functions which it implements
10606    to always fail with ENOSYS.  Some functions are actually named
10607    something starting with __ and the normal name is an alias.  */
10608#if defined (__stub_dlopen) || defined (__stub___dlopen)
10609choke me
10610#else
10611char (*f) () = dlopen;
10612#endif
10613#ifdef __cplusplus
10614}
10615#endif
10616
10617int
10618main ()
10619{
10620return f != dlopen;
10621  ;
10622  return 0;
10623}
10624_ACEOF
10625rm -f conftest.$ac_objext conftest$ac_exeext
10626if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10627  (eval $ac_link) 2>conftest.er1
10628  ac_status=$?
10629  grep -v '^ *+' conftest.er1 >conftest.err
10630  rm -f conftest.er1
10631  cat conftest.err >&5
10632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633  (exit $ac_status); } &&
10634         { ac_try='test -z "$ac_c_werror_flag"
10635                         || test ! -s conftest.err'
10636  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10637  (eval $ac_try) 2>&5
10638  ac_status=$?
10639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10640  (exit $ac_status); }; } &&
10641         { ac_try='test -s conftest$ac_exeext'
10642  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10643  (eval $ac_try) 2>&5
10644  ac_status=$?
10645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10646  (exit $ac_status); }; }; then
10647  ac_cv_func_dlopen=yes
10648else
10649  echo "$as_me: failed program was:" >&5
10650sed 's/^/| /' conftest.$ac_ext >&5
10651
10652ac_cv_func_dlopen=no
10653fi
10654rm -f conftest.err conftest.$ac_objext \
10655      conftest$ac_exeext conftest.$ac_ext
10656fi
10657echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10658echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10659if test $ac_cv_func_dlopen = yes; then
10660  lt_cv_dlopen="dlopen"
10661else
10662  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10663echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10664if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10665  echo $ECHO_N "(cached) $ECHO_C" >&6
10666else
10667  ac_check_lib_save_LIBS=$LIBS
10668LIBS="-ldl  $LIBS"
10669cat >conftest.$ac_ext <<_ACEOF
10670/* confdefs.h.  */
10671_ACEOF
10672cat confdefs.h >>conftest.$ac_ext
10673cat >>conftest.$ac_ext <<_ACEOF
10674/* end confdefs.h.  */
10675
10676/* Override any gcc2 internal prototype to avoid an error.  */
10677#ifdef __cplusplus
10678extern "C"
10679#endif
10680/* We use char because int might match the return type of a gcc2
10681   builtin and then its argument prototype would still apply.  */
10682char dlopen ();
10683int
10684main ()
10685{
10686dlopen ();
10687  ;
10688  return 0;
10689}
10690_ACEOF
10691rm -f conftest.$ac_objext conftest$ac_exeext
10692if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10693  (eval $ac_link) 2>conftest.er1
10694  ac_status=$?
10695  grep -v '^ *+' conftest.er1 >conftest.err
10696  rm -f conftest.er1
10697  cat conftest.err >&5
10698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10699  (exit $ac_status); } &&
10700         { ac_try='test -z "$ac_c_werror_flag"
10701                         || test ! -s conftest.err'
10702  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10703  (eval $ac_try) 2>&5
10704  ac_status=$?
10705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10706  (exit $ac_status); }; } &&
10707         { ac_try='test -s conftest$ac_exeext'
10708  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10709  (eval $ac_try) 2>&5
10710  ac_status=$?
10711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10712  (exit $ac_status); }; }; then
10713  ac_cv_lib_dl_dlopen=yes
10714else
10715  echo "$as_me: failed program was:" >&5
10716sed 's/^/| /' conftest.$ac_ext >&5
10717
10718ac_cv_lib_dl_dlopen=no
10719fi
10720rm -f conftest.err conftest.$ac_objext \
10721      conftest$ac_exeext conftest.$ac_ext
10722LIBS=$ac_check_lib_save_LIBS
10723fi
10724echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10725echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10726if test $ac_cv_lib_dl_dlopen = yes; then
10727  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10728else
10729  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10730echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10731if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10732  echo $ECHO_N "(cached) $ECHO_C" >&6
10733else
10734  ac_check_lib_save_LIBS=$LIBS
10735LIBS="-lsvld  $LIBS"
10736cat >conftest.$ac_ext <<_ACEOF
10737/* confdefs.h.  */
10738_ACEOF
10739cat confdefs.h >>conftest.$ac_ext
10740cat >>conftest.$ac_ext <<_ACEOF
10741/* end confdefs.h.  */
10742
10743/* Override any gcc2 internal prototype to avoid an error.  */
10744#ifdef __cplusplus
10745extern "C"
10746#endif
10747/* We use char because int might match the return type of a gcc2
10748   builtin and then it