source: ThirdParty/SCIP/trunk/configure @ 2972

Last change on this file since 2972 was 2972, checked in by tkr, 6 years ago

Re-running the autotools

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