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

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

temporarily committing release candidate

  • Property svn:executable set to *
File size: 870.6 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyScip 1.2.0.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2011-2012 Stefan Vigerske and others.
13# All Rights Reserved.
14# This file is part of the open source package COIN-OR which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyScip'
431PACKAGE_TARNAME='thirdpartyscip'
432PACKAGE_VERSION='1.2.0'
433PACKAGE_STRING='ThirdPartyScip 1.2.0'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="scip/src/scip/scip.h"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion SCIP_SVN_REV build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX COIN_CXX_IS_CL_TRUE COIN_CXX_IS_CL_FALSE MPICXX EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS PKG_CONFIG ac_ct_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED SOPLEX_LIBS SOPLEX_CFLAGS SOPLEX_DATA SOPLEX_DEPENDENCIES SOPLEX_LIBS_INSTALLED SOPLEX_CFLAGS_INSTALLED SOPLEX_DATA_INSTALLED SCIPLIB_CFLAGS SCIPLIB_LIBS SCIPLIB_PCLIBS SCIPLIB_PCREQUIRES SCIPLIB_DEPENDENCIES SCIPLIB_CFLAGS_INSTALLED SCIPLIB_LIBS_INSTALLED COIN_HAS_SOPLEX_TRUE COIN_HAS_SOPLEX_FALSE CLP_LIBS CLP_CFLAGS CLP_DATA CLP_DEPENDENCIES CLP_LIBS_INSTALLED CLP_CFLAGS_INSTALLED CLP_DATA_INSTALLED COIN_HAS_CLP_TRUE COIN_HAS_CLP_FALSE CPXINCDIR CPXLIB COIN_HAS_CPX_TRUE COIN_HAS_CPX_FALSE MSKINCDIR MSKLIB COIN_HAS_MSK_TRUE COIN_HAS_MSK_FALSE XPRINCDIR XPRLIB COIN_HAS_XPR_TRUE COIN_HAS_XPR_FALSE GRBINCDIR GRBLIB COIN_HAS_GRB_TRUE COIN_HAS_GRB_FALSE QSOINCDIR QSOLIB COIN_HAS_QSO_TRUE COIN_HAS_QSO_FALSE IPOPT_LIBS IPOPT_CFLAGS IPOPT_DATA IPOPT_DEPENDENCIES IPOPT_LIBS_INSTALLED IPOPT_CFLAGS_INSTALLED IPOPT_DATA_INSTALLED COIN_HAS_IPOPT_TRUE COIN_HAS_IPOPT_FALSE COIN_HAS_ZLIB_TRUE COIN_HAS_ZLIB_FALSE LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_CXXDEFS_set=${CXXDEFS+set}
953ac_env_CXXDEFS_value=$CXXDEFS
954ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
955ac_cv_env_CXXDEFS_value=$CXXDEFS
956ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
957ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
958ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
959ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
960ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
961ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
962ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
963ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
964ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
965ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
966ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
967ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
968ac_env_CXX_set=${CXX+set}
969ac_env_CXX_value=$CXX
970ac_cv_env_CXX_set=${CXX+set}
971ac_cv_env_CXX_value=$CXX
972ac_env_CXXFLAGS_set=${CXXFLAGS+set}
973ac_env_CXXFLAGS_value=$CXXFLAGS
974ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
975ac_cv_env_CXXFLAGS_value=$CXXFLAGS
976ac_env_MPICXX_set=${MPICXX+set}
977ac_env_MPICXX_value=$MPICXX
978ac_cv_env_MPICXX_set=${MPICXX+set}
979ac_cv_env_MPICXX_value=$MPICXX
980ac_env_CPP_set=${CPP+set}
981ac_env_CPP_value=$CPP
982ac_cv_env_CPP_set=${CPP+set}
983ac_cv_env_CPP_value=$CPP
984ac_env_CXXCPP_set=${CXXCPP+set}
985ac_env_CXXCPP_value=$CXXCPP
986ac_cv_env_CXXCPP_set=${CXXCPP+set}
987ac_cv_env_CXXCPP_value=$CXXCPP
988ac_env_F77_set=${F77+set}
989ac_env_F77_value=$F77
990ac_cv_env_F77_set=${F77+set}
991ac_cv_env_F77_value=$F77
992ac_env_FFLAGS_set=${FFLAGS+set}
993ac_env_FFLAGS_value=$FFLAGS
994ac_cv_env_FFLAGS_set=${FFLAGS+set}
995ac_cv_env_FFLAGS_value=$FFLAGS
996ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
997ac_env_PKG_CONFIG_value=$PKG_CONFIG
998ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
999ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
1000
1001#
1002# Report the --help message.
1003#
1004if test "$ac_init_help" = "long"; then
1005  # Omit some internal or obsolete options to make the list less imposing.
1006  # This message is too long to be a string in the A/UX 3.1 sh.
1007  cat <<_ACEOF
1008\`configure' configures ThirdPartyScip 1.2.0 to adapt to many kinds of systems.
1009
1010Usage: $0 [OPTION]... [VAR=VALUE]...
1011
1012To assign environment variables (e.g., CC, CFLAGS...), specify them as
1013VAR=VALUE.  See below for descriptions of some of the useful variables.
1014
1015Defaults for the options are specified in brackets.
1016
1017Configuration:
1018  -h, --help              display this help and exit
1019      --help=short        display options specific to this package
1020      --help=recursive    display the short help of all the included packages
1021  -V, --version           display version information and exit
1022  -q, --quiet, --silent   do not print \`checking...' messages
1023      --cache-file=FILE   cache test results in FILE [disabled]
1024  -C, --config-cache      alias for \`--cache-file=config.cache'
1025  -n, --no-create         do not create output files
1026      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1027
1028_ACEOF
1029
1030  cat <<_ACEOF
1031Installation directories:
1032  --prefix=PREFIX         install architecture-independent files in PREFIX
1033                          [$ac_default_prefix]
1034  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1035                          [PREFIX]
1036
1037By default, \`make install' will install all the files in
1038\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1039an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1040for instance \`--prefix=\$HOME'.
1041
1042For better control, use the options below.
1043
1044Fine tuning of the installation directories:
1045  --bindir=DIR           user executables [EPREFIX/bin]
1046  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1047  --libexecdir=DIR       program executables [EPREFIX/libexec]
1048  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1049  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1050  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1051  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1052  --libdir=DIR           object code libraries [EPREFIX/lib]
1053  --includedir=DIR       C header files [PREFIX/include]
1054  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1055  --infodir=DIR          info documentation [PREFIX/info]
1056  --mandir=DIR           man documentation [PREFIX/man]
1057_ACEOF
1058
1059  cat <<\_ACEOF
1060
1061Program names:
1062  --program-prefix=PREFIX            prepend PREFIX to installed program names
1063  --program-suffix=SUFFIX            append SUFFIX to installed program names
1064  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1065
1066System types:
1067  --build=BUILD     configure for building on BUILD [guessed]
1068  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1069_ACEOF
1070fi
1071
1072if test -n "$ac_init_help"; then
1073  case $ac_init_help in
1074     short | recursive ) echo "Configuration of ThirdPartyScip 1.2.0:";;
1075   esac
1076  cat <<\_ACEOF
1077
1078Optional Features:
1079  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1080  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1081  --enable-debug          compile all projects with debug options tests
1082                          (implies --disable-shared)
1083  --enable-debug-scip compile project SCIP with debug compiler flags
1084  --enable-doscompile     Under Cygwin, compile so that executables run under
1085                          DOS. Set to mingw to use gcc/g++/ld with
1086                          -mno-cygwin. Set to msvc to use cl/link (or
1087                          icl/link). Default when mentioned: mingw. Default
1088                          when not mentioned: disabled.
1089  --enable-static[=PKGS]
1090                          build static libraries [default=no]
1091  --disable-dependency-tracking  speeds up one-time build
1092  --enable-dependency-tracking   do not reject slow dependency extractors
1093  --enable-maintainer-mode  enable make rules and dependencies not useful
1094                          (and sometimes confusing) to the casual installer
1095  --enable-shared[=PKGS]
1096                          build shared libraries [default=yes]
1097  --enable-fast-install[=PKGS]
1098                          optimize for fast installation [default=yes]
1099  --disable-libtool-lock  avoid locking (might break parallel builds)
1100  --disable-pkg-config    disable use of pkg-config (if available)
1101  --disable-interpackage-dependencies
1102                          disables deduction of Makefile dependencies from
1103                          package linker flags
1104  --disable-cplex-libcheck
1105                          skip the link check at configuration time
1106  --disable-mosek-libcheck
1107                          skip the link check at configuration time
1108  --disable-xpress-libcheck
1109                          skip the link check at configuration time
1110  --disable-gurobi-libcheck
1111                          skip the link check at configuration time
1112  --disable-qsopt-libcheck
1113                          skip the link check at configuration time
1114  --disable-scip-threadsafe
1115                          do not build SCIP threadsafe (default=auto)
1116  --disable-zlib          do not compile with compression library zlib
1117  --disable-gmp           do not compile with GNU multiple precision library
1118  --enable-gnu-packages   compile with GNU packages (disabled by default)
1119
1120Optional Packages:
1121  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1122  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1123  --with-scip-verbosity specify the debug verbosity level for project SCIP
1124  --with-scip-checklevel specify the sanity check level for project SCIP
1125  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1126  --with-pic              try to use only PIC/non-PIC objects [default=use
1127                          both]
1128  --with-tags[=TAGS]
1129                          include additional configurations [automatic]
1130  --with-coin-instdir     prefix of installation directory for precompiled
1131                          COIN packages
1132
1133  --with-soplex-lib linker flags for using package SoPlex
1134  --with-soplex-incdir directory with header files for using package SoPlex
1135  --with-soplex-datadir directory with data files for using package SoPlex
1136  --with-clp-lib linker flags for using package Clp
1137  --with-clp-incdir directory with header files for using package Clp
1138  --with-clp-datadir directory with data files for using package Clp
1139  --with-cplex-incdir specify the header file directory for library Cplex
1140  --with-cplex-lib specify the flags used to link with the library Cplex
1141  --with-mosek-incdir specify the header file directory for library Mosek
1142  --with-mosek-lib specify the flags used to link with the library Mosek
1143  --with-xpress-incdir specify the header file directory for library Xpress
1144  --with-xpress-lib specify the flags used to link with the library Xpress
1145  --with-gurobi-incdir specify the header file directory for library Gurobi
1146  --with-gurobi-lib specify the flags used to link with the library Gurobi
1147  --with-qsopt-incdir specify the header file directory for library QSopt
1148  --with-qsopt-lib specify the flags used to link with the library QSopt
1149  --with-scip-lpsolver    specify default LP solver to use in SCIP (soplex,
1150                          clp, cplex, mosek, xpress, gurobi, qsopt, none)
1151  --with-ipopt-lib linker flags for using package Ipopt
1152  --with-ipopt-incdir directory with header files for using package Ipopt
1153  --with-ipopt-datadir directory with data files for using package Ipopt
1154
1155Some influential environment variables:
1156  CDEFS       Additional -D flags to be used when compiling C code.
1157  ADD_CFLAGS  Additional C compiler options
1158  DBG_CFLAGS  Debug C compiler options
1159  OPT_CFLAGS  Optimize C compiler options
1160  CC          C compiler command
1161  CFLAGS      C compiler flags
1162  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1163              nonstandard directory <lib dir>
1164  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1165              headers in a nonstandard directory <include dir>
1166  MPICC       C MPI Compiler
1167  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1168  ADD_CXXFLAGS
1169              Additional C++ compiler options
1170  DBG_CXXFLAGS
1171              Debug C++ compiler options
1172  OPT_CXXFLAGS
1173              Optimize C++ compiler options
1174  CXX         C++ compiler command
1175  CXXFLAGS    C++ compiler flags
1176  MPICXX      C++ MPI Compiler
1177  CPP         C preprocessor
1178  CXXCPP      C++ preprocessor
1179  F77         Fortran 77 compiler command
1180  FFLAGS      Fortran 77 compiler flags
1181  PKG_CONFIG  path to pkg-config utility
1182
1183Use these variables to override the choices made by `configure' or to help
1184it to find libraries and programs with nonstandard names/locations.
1185
1186Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1187_ACEOF
1188fi
1189
1190if test "$ac_init_help" = "recursive"; then
1191  # If there are subdirs, report their specific --help.
1192  ac_popdir=`pwd`
1193  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1194    test -d $ac_dir || continue
1195    ac_builddir=.
1196
1197if test "$ac_dir" != .; then
1198  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1199  # A "../" for each directory in $ac_dir_suffix.
1200  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1201else
1202  ac_dir_suffix= ac_top_builddir=
1203fi
1204
1205case $srcdir in
1206  .)  # No --srcdir option.  We are building in place.
1207    ac_srcdir=.
1208    if test -z "$ac_top_builddir"; then
1209       ac_top_srcdir=.
1210    else
1211       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1212    fi ;;
1213  [\\/]* | ?:[\\/]* )  # Absolute path.
1214    ac_srcdir=$srcdir$ac_dir_suffix;
1215    ac_top_srcdir=$srcdir ;;
1216  *) # Relative path.
1217    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1218    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1219esac
1220
1221# Do not use `cd foo && pwd` to compute absolute paths, because
1222# the directories may not exist.
1223case `pwd` in
1224.) ac_abs_builddir="$ac_dir";;
1225*)
1226  case "$ac_dir" in
1227  .) ac_abs_builddir=`pwd`;;
1228  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1229  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1230  esac;;
1231esac
1232case $ac_abs_builddir in
1233.) ac_abs_top_builddir=${ac_top_builddir}.;;
1234*)
1235  case ${ac_top_builddir}. in
1236  .) ac_abs_top_builddir=$ac_abs_builddir;;
1237  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1238  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1239  esac;;
1240esac
1241case $ac_abs_builddir in
1242.) ac_abs_srcdir=$ac_srcdir;;
1243*)
1244  case $ac_srcdir in
1245  .) ac_abs_srcdir=$ac_abs_builddir;;
1246  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1247  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1248  esac;;
1249esac
1250case $ac_abs_builddir in
1251.) ac_abs_top_srcdir=$ac_top_srcdir;;
1252*)
1253  case $ac_top_srcdir in
1254  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1255  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1256  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1257  esac;;
1258esac
1259
1260    cd $ac_dir
1261    # Check for guested configure; otherwise get Cygnus style configure.
1262    if test -f $ac_srcdir/configure.gnu; then
1263      echo
1264      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1265    elif test -f $ac_srcdir/configure; then
1266      echo
1267      $SHELL $ac_srcdir/configure  --help=recursive
1268    elif test -f $ac_srcdir/configure.ac ||
1269           test -f $ac_srcdir/configure.in; then
1270      echo
1271      $ac_configure --help
1272    else
1273      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1274    fi
1275    cd $ac_popdir
1276  done
1277fi
1278
1279test -n "$ac_init_help" && exit 0
1280if $ac_init_version; then
1281  cat <<\_ACEOF
1282ThirdPartyScip configure 1.2.0
1283generated by GNU Autoconf 2.59
1284
1285Copyright (C) 2003 Free Software Foundation, Inc.
1286This configure script is free software; the Free Software Foundation
1287gives unlimited permission to copy, distribute and modify it.
1288
1289
1290Copyright 2011-2012 Stefan Vigerske and others.
1291All Rights Reserved.
1292This file is part of the open source package COIN-OR which is distributed
1293under the Eclipse Public License.
1294_ACEOF
1295  exit 0
1296fi
1297exec 5>config.log
1298cat >&5 <<_ACEOF
1299This file contains any messages produced by compilers while
1300running configure, to aid debugging if configure makes a mistake.
1301
1302It was created by ThirdPartyScip $as_me 1.2.0, which was
1303generated by GNU Autoconf 2.59.  Invocation command line was
1304
1305  $ $0 $@
1306
1307_ACEOF
1308{
1309cat <<_ASUNAME
1310## --------- ##
1311## Platform. ##
1312## --------- ##
1313
1314hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1315uname -m = `(uname -m) 2>/dev/null || echo unknown`
1316uname -r = `(uname -r) 2>/dev/null || echo unknown`
1317uname -s = `(uname -s) 2>/dev/null || echo unknown`
1318uname -v = `(uname -v) 2>/dev/null || echo unknown`
1319
1320/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1321/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1322
1323/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1324/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1325/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1326hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1327/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1328/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1329/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1330
1331_ASUNAME
1332
1333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1334for as_dir in $PATH
1335do
1336  IFS=$as_save_IFS
1337  test -z "$as_dir" && as_dir=.
1338  echo "PATH: $as_dir"
1339done
1340
1341} >&5
1342
1343cat >&5 <<_ACEOF
1344
1345
1346## ----------- ##
1347## Core tests. ##
1348## ----------- ##
1349
1350_ACEOF
1351
1352
1353# Keep a trace of the command line.
1354# Strip out --no-create and --no-recursion so they do not pile up.
1355# Strip out --silent because we don't want to record it for future runs.
1356# Also quote any args containing shell meta-characters.
1357# Make two passes to allow for proper duplicate-argument suppression.
1358ac_configure_args=
1359ac_configure_args0=
1360ac_configure_args1=
1361ac_sep=
1362ac_must_keep_next=false
1363for ac_pass in 1 2
1364do
1365  for ac_arg
1366  do
1367    case $ac_arg in
1368    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1369    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1370    | -silent | --silent | --silen | --sile | --sil)
1371      continue ;;
1372    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1373      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1374    esac
1375    case $ac_pass in
1376    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1377    2)
1378      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1379      if test $ac_must_keep_next = true; then
1380        ac_must_keep_next=false # Got value, back to normal.
1381      else
1382        case $ac_arg in
1383          *=* | --config-cache | -C | -disable-* | --disable-* \
1384          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1385          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1386          | -with-* | --with-* | -without-* | --without-* | --x)
1387            case "$ac_configure_args0 " in
1388              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1389            esac
1390            ;;
1391          -* ) ac_must_keep_next=true ;;
1392        esac
1393      fi
1394      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1395      # Get rid of the leading space.
1396      ac_sep=" "
1397      ;;
1398    esac
1399  done
1400done
1401$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1402$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1403
1404# When interrupted or exit'd, cleanup temporary files, and complete
1405# config.log.  We remove comments because anyway the quotes in there
1406# would cause problems or look ugly.
1407# WARNING: Be sure not to use single quotes in there, as some shells,
1408# such as our DU 5.0 friend, will then `close' the trap.
1409trap 'exit_status=$?
1410  # Save into config.log some information that might help in debugging.
1411  {
1412    echo
1413
1414    cat <<\_ASBOX
1415## ---------------- ##
1416## Cache variables. ##
1417## ---------------- ##
1418_ASBOX
1419    echo
1420    # The following way of writing the cache mishandles newlines in values,
1421{
1422  (set) 2>&1 |
1423    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1424    *ac_space=\ *)
1425      sed -n \
1426        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1427          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1428      ;;
1429    *)
1430      sed -n \
1431        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1432      ;;
1433    esac;
1434}
1435    echo
1436
1437    cat <<\_ASBOX
1438## ----------------- ##
1439## Output variables. ##
1440## ----------------- ##
1441_ASBOX
1442    echo
1443    for ac_var in $ac_subst_vars
1444    do
1445      eval ac_val=$`echo $ac_var`
1446      echo "$ac_var='"'"'$ac_val'"'"'"
1447    done | sort
1448    echo
1449
1450    if test -n "$ac_subst_files"; then
1451      cat <<\_ASBOX
1452## ------------- ##
1453## Output files. ##
1454## ------------- ##
1455_ASBOX
1456      echo
1457      for ac_var in $ac_subst_files
1458      do
1459        eval ac_val=$`echo $ac_var`
1460        echo "$ac_var='"'"'$ac_val'"'"'"
1461      done | sort
1462      echo
1463    fi
1464
1465    if test -s confdefs.h; then
1466      cat <<\_ASBOX
1467## ----------- ##
1468## confdefs.h. ##
1469## ----------- ##
1470_ASBOX
1471      echo
1472      sed "/^$/d" confdefs.h | sort
1473      echo
1474    fi
1475    test "$ac_signal" != 0 &&
1476      echo "$as_me: caught signal $ac_signal"
1477    echo "$as_me: exit $exit_status"
1478  } >&5
1479  rm -f core *.core &&
1480  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1481    exit $exit_status
1482     ' 0
1483for ac_signal in 1 2 13 15; do
1484  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1485done
1486ac_signal=0
1487
1488# confdefs.h avoids OS command line length limits that DEFS can exceed.
1489rm -rf conftest* confdefs.h
1490# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1491echo >confdefs.h
1492
1493# Predefined preprocessor variables.
1494
1495cat >>confdefs.h <<_ACEOF
1496#define PACKAGE_NAME "$PACKAGE_NAME"
1497_ACEOF
1498
1499
1500cat >>confdefs.h <<_ACEOF
1501#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1502_ACEOF
1503
1504
1505cat >>confdefs.h <<_ACEOF
1506#define PACKAGE_VERSION "$PACKAGE_VERSION"
1507_ACEOF
1508
1509
1510cat >>confdefs.h <<_ACEOF
1511#define PACKAGE_STRING "$PACKAGE_STRING"
1512_ACEOF
1513
1514
1515cat >>confdefs.h <<_ACEOF
1516#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1517_ACEOF
1518
1519
1520# Let the site file select an alternate cache file if it wants to.
1521# Prefer explicitly selected file to automatically selected ones.
1522if test -z "$CONFIG_SITE"; then
1523  if test "x$prefix" != xNONE; then
1524    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1525  else
1526    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1527  fi
1528fi
1529for ac_site_file in $CONFIG_SITE; do
1530  if test -r "$ac_site_file"; then
1531    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1532echo "$as_me: loading site script $ac_site_file" >&6;}
1533    sed 's/^/| /' "$ac_site_file" >&5
1534    . "$ac_site_file"
1535  fi
1536done
1537
1538if test -r "$cache_file"; then
1539  # Some versions of bash will fail to source /dev/null (special
1540  # files actually), so we avoid doing that.
1541  if test -f "$cache_file"; then
1542    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1543echo "$as_me: loading cache $cache_file" >&6;}
1544    case $cache_file in
1545      [\\/]* | ?:[\\/]* ) . $cache_file;;
1546      *)                      . ./$cache_file;;
1547    esac
1548  fi
1549else
1550  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1551echo "$as_me: creating cache $cache_file" >&6;}
1552  >$cache_file
1553fi
1554
1555# Check that the precious variables saved in the cache have kept the same
1556# value.
1557ac_cache_corrupted=false
1558for ac_var in `(set) 2>&1 |
1559               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1560  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1561  eval ac_new_set=\$ac_env_${ac_var}_set
1562  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1563  eval ac_new_val="\$ac_env_${ac_var}_value"
1564  case $ac_old_set,$ac_new_set in
1565    set,)
1566      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1567echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1568      ac_cache_corrupted=: ;;
1569    ,set)
1570      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1571echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1572      ac_cache_corrupted=: ;;
1573    ,);;
1574    *)
1575      if test "x$ac_old_val" != "x$ac_new_val"; then
1576        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1577echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1578        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1579echo "$as_me:   former value:  $ac_old_val" >&2;}
1580        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1581echo "$as_me:   current value: $ac_new_val" >&2;}
1582        ac_cache_corrupted=:
1583      fi;;
1584  esac
1585  # Pass precious variables to config.status.
1586  if test "$ac_new_set" = set; then
1587    case $ac_new_val in
1588    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1589      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1590    *) ac_arg=$ac_var=$ac_new_val ;;
1591    esac
1592    case " $ac_configure_args " in
1593      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1594      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1595    esac
1596  fi
1597done
1598if $ac_cache_corrupted; then
1599  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1600echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1601  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1602echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1603   { (exit 1); exit 1; }; }
1604fi
1605
1606ac_ext=c
1607ac_cpp='$CPP $CPPFLAGS'
1608ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1609ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1610ac_compiler_gnu=$ac_cv_c_compiler_gnu
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641# List one file in the package so that the configure script can test
1642# whether the package is actually there
1643
1644
1645# Where should everything be installed by default?  Here, we want it
1646# to be installed directly in 'bin', 'lib', 'include' subdirectories
1647# of the directory where configure is run.  The default would be
1648# /usr/local.
1649
1650
1651
1652# As backup, we make sure we don't loose an FLIBS if it has been set
1653# by the user
1654save_FLIBS="$FLIBS"
1655
1656# A useful makefile conditional that is always false
1657
1658
1659if false; then
1660  ALWAYS_FALSE_TRUE=
1661  ALWAYS_FALSE_FALSE='#'
1662else
1663  ALWAYS_FALSE_TRUE='#'
1664  ALWAYS_FALSE_FALSE=
1665fi
1666
1667
1668# We set the following variable so that we know later in AC_COIN_FINALIZE
1669# that we are in a project main directory
1670coin_projectdir=yes
1671
1672# Set the project's version numbers
1673
1674
1675cat >>confdefs.h <<_ACEOF
1676#define SCIP_VERSION "$PACKAGE_VERSION"
1677_ACEOF
1678
1679
1680  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1681  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1682  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1683  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1684  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1685  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1686
1687cat >>confdefs.h <<_ACEOF
1688#define SCIP_VERSION_MAJOR $coin_majorver
1689_ACEOF
1690
1691
1692cat >>confdefs.h <<_ACEOF
1693#define SCIP_VERSION_MINOR $coin_minorver
1694_ACEOF
1695
1696
1697cat >>confdefs.h <<_ACEOF
1698#define SCIP_VERSION_RELEASE $coin_releasever
1699_ACEOF
1700
1701
1702  # We use the following variable to have a string with the upper case
1703  # version of the project name
1704  COIN_PRJCT=SCIP
1705
1706  # Set the project's SVN revision number. The complicated sed expression
1707  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1708  # as a single number.
1709  # Extract the first word of "svnversion", so it can be a program name with args.
1710set dummy svnversion; ac_word=$2
1711echo "$as_me:$LINENO: checking for $ac_word" >&5
1712echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1713if test "${ac_cv_prog_have_svnversion+set}" = set; then
1714  echo $ECHO_N "(cached) $ECHO_C" >&6
1715else
1716  if test -n "$have_svnversion"; then
1717  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1718else
1719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1720for as_dir in $PATH
1721do
1722  IFS=$as_save_IFS
1723  test -z "$as_dir" && as_dir=.
1724  for ac_exec_ext in '' $ac_executable_extensions; do
1725  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1726    ac_cv_prog_have_svnversion="yes"
1727    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1728    break 2
1729  fi
1730done
1731done
1732
1733  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1734fi
1735fi
1736have_svnversion=$ac_cv_prog_have_svnversion
1737if test -n "$have_svnversion"; then
1738  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1739echo "${ECHO_T}$have_svnversion" >&6
1740else
1741  echo "$as_me:$LINENO: result: no" >&5
1742echo "${ECHO_T}no" >&6
1743fi
1744
1745  if test "x$have_svnversion" = xyes; then
1746
1747    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1748    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
1749      SCIP_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1750
1751cat >>confdefs.h <<_ACEOF
1752#define SCIP_SVN_REV $SCIP_SVN_REV
1753_ACEOF
1754
1755    fi
1756  fi
1757
1758
1759
1760# Capture libtool library version, if given.
1761 coin_libversion=3:0:2
1762
1763
1764
1765
1766#############################################################################
1767#                         Standard build tool stuff                         #
1768#############################################################################
1769
1770# Get the system type
1771ac_aux_dir=
1772for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1773  if 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/install.sh; then
1778    ac_aux_dir=$ac_dir
1779    ac_install_sh="$ac_aux_dir/install.sh -c"
1780    break
1781  elif test -f $ac_dir/shtool; then
1782    ac_aux_dir=$ac_dir
1783    ac_install_sh="$ac_aux_dir/shtool install -c"
1784    break
1785  fi
1786done
1787if test -z "$ac_aux_dir"; then
1788  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1789echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1790   { (exit 1); exit 1; }; }
1791fi
1792ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1793ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1794ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1795
1796# Make sure we can run config.sub.
1797$ac_config_sub sun4 >/dev/null 2>&1 ||
1798  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1799echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1800   { (exit 1); exit 1; }; }
1801
1802echo "$as_me:$LINENO: checking build system type" >&5
1803echo $ECHO_N "checking build system type... $ECHO_C" >&6
1804if test "${ac_cv_build+set}" = set; then
1805  echo $ECHO_N "(cached) $ECHO_C" >&6
1806else
1807  ac_cv_build_alias=$build_alias
1808test -z "$ac_cv_build_alias" &&
1809  ac_cv_build_alias=`$ac_config_guess`
1810test -z "$ac_cv_build_alias" &&
1811  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1812echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1813   { (exit 1); exit 1; }; }
1814ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1815  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1816echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1817   { (exit 1); exit 1; }; }
1818
1819fi
1820echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1821echo "${ECHO_T}$ac_cv_build" >&6
1822build=$ac_cv_build
1823build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1824build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1825build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1826
1827
1828
1829# Check if user wants to produce debugging code
1830
1831echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1832echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1833
1834# Check whether --enable-debug or --disable-debug was given.
1835if test "${enable_debug+set}" = set; then
1836  enableval="$enable_debug"
1837  case "${enableval}" in
1838   yes) coin_debug_compile=true
1839        if test "${enable_shared+set}" = set; then :; else
1840          enable_shared=no
1841        fi
1842        ;;
1843   no)  coin_debug_compile=false
1844        ;;
1845   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1846echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1847   { (exit 1); exit 1; }; }
1848        ;;
1849esac
1850else
1851  coin_debug_compile=false
1852fi;
1853
1854# Check whether --enable-debug-scip or --disable-debug-scip was given.
1855if test "${enable_debug_scip+set}" = set; then
1856  enableval="$enable_debug_scip"
1857  case "${enableval}" in
1858    yes) coin_debug_compile=true
1859         ;;
1860    no)  coin_debug_compile=false
1861         ;;
1862    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-scip" >&5
1863echo "$as_me: error: bad value ${enableval} for --enable-debug-scip" >&2;}
1864   { (exit 1); exit 1; }; }
1865         ;;
1866 esac
1867else
1868  :
1869fi;
1870
1871 # m4_ifvaln([SCIP],
1872
1873if test $coin_debug_compile = true; then
1874  echo "$as_me:$LINENO: result: yes" >&5
1875echo "${ECHO_T}yes" >&6
1876else
1877  echo "$as_me:$LINENO: result: no" >&5
1878echo "${ECHO_T}no" >&6
1879fi
1880
1881
1882# Check whether --with-scip-verbosity or --without-scip-verbosity was given.
1883if test "${with_scip_verbosity+set}" = set; then
1884  withval="$with_scip_verbosity"
1885  if test "$withval" = yes; then
1886                withval=1
1887              fi
1888              coin_scip_verbosity=$withval
1889else
1890  coin_scip_verbosity=0
1891fi;
1892
1893cat >>confdefs.h <<_ACEOF
1894#define COIN_SCIP_VERBOSITY $coin_scip_verbosity
1895_ACEOF
1896
1897
1898
1899# Check whether --with-scip-checklevel or --without-scip-checklevel was given.
1900if test "${with_scip_checklevel+set}" = set; then
1901  withval="$with_scip_checklevel"
1902  if test "$withval" = yes; then
1903                withval=1
1904              fi
1905              coin_scip_checklevel=$withval
1906else
1907  coin_scip_checklevel=0
1908fi;
1909
1910cat >>confdefs.h <<_ACEOF
1911#define COIN_SCIP_CHECKLEVEL $coin_scip_checklevel
1912_ACEOF
1913
1914
1915 # m4_ifvaln([SCIP],
1916
1917
1918
1919# Get the name of the C compiler and appropriate compiler options
1920case $build in
1921  *-mingw*)
1922    if test "${LD+set}" = set; then :; else
1923      LD=link
1924    fi
1925    ;;
1926 esac
1927 case $enable_doscompile in
1928   msvc)
1929     if test "x${LD+set}" = xset; then :; else
1930       LD=link
1931     fi
1932     ;;
1933 esac
1934
1935
1936 # Check whether --enable-doscompile or --disable-doscompile was given.
1937if test "${enable_doscompile+set}" = set; then
1938  enableval="$enable_doscompile"
1939  if test "$enable_doscompile" != no; then
1940     case $build in
1941       *-cygwin* | *-mingw*) ;;
1942       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1943echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1944   { (exit 1); exit 1; }; } ;;
1945     esac
1946   fi
1947else
1948  enable_doscompile=no
1949fi;
1950 case "$enable_doscompile" in
1951   mingw)
1952     case $build in
1953       *-mingw*) enable_doscompile=no ;;
1954     esac
1955     ;;
1956   msvc|no) ;;
1957   yes) enable_doscompile=mingw ;;
1958   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1959                    Try configure --help=recursive." >&5
1960echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1961                    Try configure --help=recursive." >&2;}
1962   { (exit 1); exit 1; }; }
1963      ;;
1964  esac
1965  if test "$enable_doscompile" != no ; then
1966    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1967echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1968  fi
1969
1970
1971
1972
1973ac_ext=c
1974ac_cpp='$CPP $CPPFLAGS'
1975ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1976ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1977ac_compiler_gnu=$ac_cv_c_compiler_gnu
1978
1979
1980# For consistency, we set the C compiler to the same value of the C++
1981# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1982if test x"$CXX" != x; then
1983  case "$CXX" in
1984    clang* ) ;;
1985    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1986      if test x"$CC" = x; then
1987        CC="$CXX"
1988        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1989echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1990      fi
1991      ;;
1992  esac
1993fi
1994
1995
1996
1997
1998
1999
2000coin_has_cc=yes
2001
2002save_cflags="$CFLAGS"
2003
2004# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
2005# Depending on the user's PATH, when Studio/Workshop cc is not present we may
2006# find /usr/ucb/cc, which is almost certainly not a good choice for the C
2007# compiler. In this case, put cc after gcc.
2008
2009case $build in
2010  *-cygwin* | *-mingw*)
2011             if test "$enable_doscompile" = msvc ; then
2012               comps="icl cl"
2013             else
2014               comps="gcc cl"
2015             fi ;;
2016  *-*-solaris*)
2017             # Extract the first word of "cc", so it can be a program name with args.
2018set dummy cc; ac_word=$2
2019echo "$as_me:$LINENO: checking for $ac_word" >&5
2020echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2021if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
2022  echo $ECHO_N "(cached) $ECHO_C" >&6
2023else
2024  if test -n "$sol_cc_compiler"; then
2025  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
2026else
2027  ac_prog_rejected=no
2028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2029for as_dir in $PATH
2030do
2031  IFS=$as_save_IFS
2032  test -z "$as_dir" && as_dir=.
2033  for ac_exec_ext in '' $ac_executable_extensions; do
2034  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2035    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2036       ac_prog_rejected=yes
2037       continue
2038     fi
2039    ac_cv_prog_sol_cc_compiler="cc"
2040    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2041    break 2
2042  fi
2043done
2044done
2045
2046if test $ac_prog_rejected = yes; then
2047  # We found a bogon in the path, so make sure we never use it.
2048  set dummy $ac_cv_prog_sol_cc_compiler
2049  shift
2050  if test $# != 0; then
2051    # We chose a different compiler from the bogus one.
2052    # However, it has the same basename, so the bogon will be chosen
2053    # first if we set sol_cc_compiler to just the basename; use the full file name.
2054    shift
2055    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2056  fi
2057fi
2058fi
2059fi
2060sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2061if test -n "$sol_cc_compiler"; then
2062  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2063echo "${ECHO_T}$sol_cc_compiler" >&6
2064else
2065  echo "$as_me:$LINENO: result: no" >&5
2066echo "${ECHO_T}no" >&6
2067fi
2068
2069             if test "$sol_cc_compiler" = "cc" ; then
2070               comps="cc xlc gcc pgcc icc"
2071             else
2072               comps="xlc gcc pgcc icc cc"
2073             fi
2074             ;;
2075  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2076  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2077  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2078esac
2079
2080# We delete the cached value, since the test might not have been
2081# performed with our choice of compilers earlier
2082$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2083# AC_MSG_NOTICE([C compiler candidates: $comps])
2084ac_ext=c
2085ac_cpp='$CPP $CPPFLAGS'
2086ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2087ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2088ac_compiler_gnu=$ac_cv_c_compiler_gnu
2089if test -n "$ac_tool_prefix"; then
2090  for ac_prog in $comps
2091  do
2092    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2093set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2094echo "$as_me:$LINENO: checking for $ac_word" >&5
2095echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2096if test "${ac_cv_prog_CC+set}" = set; then
2097  echo $ECHO_N "(cached) $ECHO_C" >&6
2098else
2099  if test -n "$CC"; then
2100  ac_cv_prog_CC="$CC" # Let the user override the test.
2101else
2102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2103for as_dir in $PATH
2104do
2105  IFS=$as_save_IFS
2106  test -z "$as_dir" && as_dir=.
2107  for ac_exec_ext in '' $ac_executable_extensions; do
2108  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2109    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2110    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2111    break 2
2112  fi
2113done
2114done
2115
2116fi
2117fi
2118CC=$ac_cv_prog_CC
2119if test -n "$CC"; then
2120  echo "$as_me:$LINENO: result: $CC" >&5
2121echo "${ECHO_T}$CC" >&6
2122else
2123  echo "$as_me:$LINENO: result: no" >&5
2124echo "${ECHO_T}no" >&6
2125fi
2126
2127    test -n "$CC" && break
2128  done
2129fi
2130if test -z "$CC"; then
2131  ac_ct_CC=$CC
2132  for ac_prog in $comps
2133do
2134  # Extract the first word of "$ac_prog", so it can be a program name with args.
2135set dummy $ac_prog; ac_word=$2
2136echo "$as_me:$LINENO: checking for $ac_word" >&5
2137echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2138if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2139  echo $ECHO_N "(cached) $ECHO_C" >&6
2140else
2141  if test -n "$ac_ct_CC"; then
2142  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2143else
2144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2145for as_dir in $PATH
2146do
2147  IFS=$as_save_IFS
2148  test -z "$as_dir" && as_dir=.
2149  for ac_exec_ext in '' $ac_executable_extensions; do
2150  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2151    ac_cv_prog_ac_ct_CC="$ac_prog"
2152    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2153    break 2
2154  fi
2155done
2156done
2157
2158fi
2159fi
2160ac_ct_CC=$ac_cv_prog_ac_ct_CC
2161if test -n "$ac_ct_CC"; then
2162  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2163echo "${ECHO_T}$ac_ct_CC" >&6
2164else
2165  echo "$as_me:$LINENO: result: no" >&5
2166echo "${ECHO_T}no" >&6
2167fi
2168
2169  test -n "$ac_ct_CC" && break
2170done
2171
2172  CC=$ac_ct_CC
2173fi
2174
2175
2176test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2177See \`config.log' for more details." >&5
2178echo "$as_me: error: no acceptable C compiler found in \$PATH
2179See \`config.log' for more details." >&2;}
2180   { (exit 1); exit 1; }; }
2181
2182# Provide some information about the compiler.
2183echo "$as_me:$LINENO:" \
2184     "checking for C compiler version" >&5
2185ac_compiler=`set X $ac_compile; echo $2`
2186{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2187  (eval $ac_compiler --version </dev/null >&5) 2>&5
2188  ac_status=$?
2189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190  (exit $ac_status); }
2191{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2192  (eval $ac_compiler -v </dev/null >&5) 2>&5
2193  ac_status=$?
2194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2195  (exit $ac_status); }
2196{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2197  (eval $ac_compiler -V </dev/null >&5) 2>&5
2198  ac_status=$?
2199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2200  (exit $ac_status); }
2201
2202cat >conftest.$ac_ext <<_ACEOF
2203/* confdefs.h.  */
2204_ACEOF
2205cat confdefs.h >>conftest.$ac_ext
2206cat >>conftest.$ac_ext <<_ACEOF
2207/* end confdefs.h.  */
2208
2209int
2210main ()
2211{
2212
2213  ;
2214  return 0;
2215}
2216_ACEOF
2217ac_clean_files_save=$ac_clean_files
2218ac_clean_files="$ac_clean_files a.out a.exe b.out"
2219# Try to create an executable without -o first, disregard a.out.
2220# It will help us diagnose broken compilers, and finding out an intuition
2221# of exeext.
2222echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2223echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2224ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2225if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2226  (eval $ac_link_default) 2>&5
2227  ac_status=$?
2228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229  (exit $ac_status); }; then
2230  # Find the output, starting from the most likely.  This scheme is
2231# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2232# resort.
2233
2234# Be careful to initialize this variable, since it used to be cached.
2235# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2236ac_cv_exeext=
2237# b.out is created by i960 compilers.
2238for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2239do
2240  test -f "$ac_file" || continue
2241  case $ac_file in
2242    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2243        ;;
2244    conftest.$ac_ext )
2245        # This is the source file.
2246        ;;
2247    [ab].out )
2248        # We found the default executable, but exeext='' is most
2249        # certainly right.
2250        break;;
2251    *.* )
2252        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2253        # FIXME: I believe we export ac_cv_exeext for Libtool,
2254        # but it would be cool to find out if it's true.  Does anybody
2255        # maintain Libtool? --akim.
2256        export ac_cv_exeext
2257        break;;
2258    * )
2259        break;;
2260  esac
2261done
2262else
2263  echo "$as_me: failed program was:" >&5
2264sed 's/^/| /' conftest.$ac_ext >&5
2265
2266{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2267See \`config.log' for more details." >&5
2268echo "$as_me: error: C compiler cannot create executables
2269See \`config.log' for more details." >&2;}
2270   { (exit 77); exit 77; }; }
2271fi
2272
2273ac_exeext=$ac_cv_exeext
2274echo "$as_me:$LINENO: result: $ac_file" >&5
2275echo "${ECHO_T}$ac_file" >&6
2276
2277# Check the compiler produces executables we can run.  If not, either
2278# the compiler is broken, or we cross compile.
2279echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2280echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2281# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2282# If not cross compiling, check that we can run a simple program.
2283if test "$cross_compiling" != yes; then
2284  if { ac_try='./$ac_file'
2285  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2286  (eval $ac_try) 2>&5
2287  ac_status=$?
2288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2289  (exit $ac_status); }; }; then
2290    cross_compiling=no
2291  else
2292    if test "$cross_compiling" = maybe; then
2293        cross_compiling=yes
2294    else
2295        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2296If you meant to cross compile, use \`--host'.
2297See \`config.log' for more details." >&5
2298echo "$as_me: error: cannot run C compiled programs.
2299If you meant to cross compile, use \`--host'.
2300See \`config.log' for more details." >&2;}
2301   { (exit 1); exit 1; }; }
2302    fi
2303  fi
2304fi
2305echo "$as_me:$LINENO: result: yes" >&5
2306echo "${ECHO_T}yes" >&6
2307
2308rm -f a.out a.exe conftest$ac_cv_exeext b.out
2309ac_clean_files=$ac_clean_files_save
2310# Check the compiler produces executables we can run.  If not, either
2311# the compiler is broken, or we cross compile.
2312echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2313echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2314echo "$as_me:$LINENO: result: $cross_compiling" >&5
2315echo "${ECHO_T}$cross_compiling" >&6
2316
2317echo "$as_me:$LINENO: checking for suffix of executables" >&5
2318echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2319if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2320  (eval $ac_link) 2>&5
2321  ac_status=$?
2322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323  (exit $ac_status); }; then
2324  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2325# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2326# work properly (i.e., refer to `conftest.exe'), while it won't with
2327# `rm'.
2328for ac_file in conftest.exe conftest conftest.*; do
2329  test -f "$ac_file" || continue
2330  case $ac_file in
2331    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2332    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2333          export ac_cv_exeext
2334          break;;
2335    * ) break;;
2336  esac
2337done
2338else
2339  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2340See \`config.log' for more details." >&5
2341echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2342See \`config.log' for more details." >&2;}
2343   { (exit 1); exit 1; }; }
2344fi
2345
2346rm -f conftest$ac_cv_exeext
2347echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2348echo "${ECHO_T}$ac_cv_exeext" >&6
2349
2350rm -f conftest.$ac_ext
2351EXEEXT=$ac_cv_exeext
2352ac_exeext=$EXEEXT
2353echo "$as_me:$LINENO: checking for suffix of object files" >&5
2354echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2355if test "${ac_cv_objext+set}" = set; then
2356  echo $ECHO_N "(cached) $ECHO_C" >&6
2357else
2358  cat >conftest.$ac_ext <<_ACEOF
2359/* confdefs.h.  */
2360_ACEOF
2361cat confdefs.h >>conftest.$ac_ext
2362cat >>conftest.$ac_ext <<_ACEOF
2363/* end confdefs.h.  */
2364
2365int
2366main ()
2367{
2368
2369  ;
2370  return 0;
2371}
2372_ACEOF
2373rm -f conftest.o conftest.obj
2374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2375  (eval $ac_compile) 2>&5
2376  ac_status=$?
2377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378  (exit $ac_status); }; then
2379  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2380  case $ac_file in
2381    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2382    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2383       break;;
2384  esac
2385done
2386else
2387  echo "$as_me: failed program was:" >&5
2388sed 's/^/| /' conftest.$ac_ext >&5
2389
2390{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2391See \`config.log' for more details." >&5
2392echo "$as_me: error: cannot compute suffix of object files: cannot compile
2393See \`config.log' for more details." >&2;}
2394   { (exit 1); exit 1; }; }
2395fi
2396
2397rm -f conftest.$ac_cv_objext conftest.$ac_ext
2398fi
2399echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2400echo "${ECHO_T}$ac_cv_objext" >&6
2401OBJEXT=$ac_cv_objext
2402ac_objext=$OBJEXT
2403echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2404echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2405if test "${ac_cv_c_compiler_gnu+set}" = set; then
2406  echo $ECHO_N "(cached) $ECHO_C" >&6
2407else
2408  cat >conftest.$ac_ext <<_ACEOF
2409/* confdefs.h.  */
2410_ACEOF
2411cat confdefs.h >>conftest.$ac_ext
2412cat >>conftest.$ac_ext <<_ACEOF
2413/* end confdefs.h.  */
2414
2415int
2416main ()
2417{
2418#ifndef __GNUC__
2419       choke me
2420#endif
2421
2422  ;
2423  return 0;
2424}
2425_ACEOF
2426rm -f conftest.$ac_objext
2427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2428  (eval $ac_compile) 2>conftest.er1
2429  ac_status=$?
2430  grep -v '^ *+' conftest.er1 >conftest.err
2431  rm -f conftest.er1
2432  cat conftest.err >&5
2433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434  (exit $ac_status); } &&
2435         { ac_try='test -z "$ac_c_werror_flag"
2436                         || test ! -s conftest.err'
2437  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2438  (eval $ac_try) 2>&5
2439  ac_status=$?
2440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441  (exit $ac_status); }; } &&
2442         { ac_try='test -s conftest.$ac_objext'
2443  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2444  (eval $ac_try) 2>&5
2445  ac_status=$?
2446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447  (exit $ac_status); }; }; then
2448  ac_compiler_gnu=yes
2449else
2450  echo "$as_me: failed program was:" >&5
2451sed 's/^/| /' conftest.$ac_ext >&5
2452
2453ac_compiler_gnu=no
2454fi
2455rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2456ac_cv_c_compiler_gnu=$ac_compiler_gnu
2457
2458fi
2459echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2460echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2461GCC=`test $ac_compiler_gnu = yes && echo yes`
2462ac_test_CFLAGS=${CFLAGS+set}
2463ac_save_CFLAGS=$CFLAGS
2464CFLAGS="-g"
2465echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2466echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2467if test "${ac_cv_prog_cc_g+set}" = set; then
2468  echo $ECHO_N "(cached) $ECHO_C" >&6
2469else
2470  cat >conftest.$ac_ext <<_ACEOF
2471/* confdefs.h.  */
2472_ACEOF
2473cat confdefs.h >>conftest.$ac_ext
2474cat >>conftest.$ac_ext <<_ACEOF
2475/* end confdefs.h.  */
2476
2477int
2478main ()
2479{
2480
2481  ;
2482  return 0;
2483}
2484_ACEOF
2485rm -f conftest.$ac_objext
2486if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2487  (eval $ac_compile) 2>conftest.er1
2488  ac_status=$?
2489  grep -v '^ *+' conftest.er1 >conftest.err
2490  rm -f conftest.er1
2491  cat conftest.err >&5
2492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493  (exit $ac_status); } &&
2494         { ac_try='test -z "$ac_c_werror_flag"
2495                         || test ! -s conftest.err'
2496  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2497  (eval $ac_try) 2>&5
2498  ac_status=$?
2499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500  (exit $ac_status); }; } &&
2501         { ac_try='test -s conftest.$ac_objext'
2502  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2503  (eval $ac_try) 2>&5
2504  ac_status=$?
2505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506  (exit $ac_status); }; }; then
2507  ac_cv_prog_cc_g=yes
2508else
2509  echo "$as_me: failed program was:" >&5
2510sed 's/^/| /' conftest.$ac_ext >&5
2511
2512ac_cv_prog_cc_g=no
2513fi
2514rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2515fi
2516echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2517echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2518if test "$ac_test_CFLAGS" = set; then
2519  CFLAGS=$ac_save_CFLAGS
2520elif test $ac_cv_prog_cc_g = yes; then
2521  if test "$GCC" = yes; then
2522    CFLAGS="-g -O2"
2523  else
2524    CFLAGS="-g"
2525  fi
2526else
2527  if test "$GCC" = yes; then
2528    CFLAGS="-O2"
2529  else
2530    CFLAGS=
2531  fi
2532fi
2533echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2534echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2535if test "${ac_cv_prog_cc_stdc+set}" = set; then
2536  echo $ECHO_N "(cached) $ECHO_C" >&6
2537else
2538  ac_cv_prog_cc_stdc=no
2539ac_save_CC=$CC
2540cat >conftest.$ac_ext <<_ACEOF
2541/* confdefs.h.  */
2542_ACEOF
2543cat confdefs.h >>conftest.$ac_ext
2544cat >>conftest.$ac_ext <<_ACEOF
2545/* end confdefs.h.  */
2546#include <stdarg.h>
2547#include <stdio.h>
2548#include <sys/types.h>
2549#include <sys/stat.h>
2550/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2551struct buf { int x; };
2552FILE * (*rcsopen) (struct buf *, struct stat *, int);
2553static char *e (p, i)
2554     char **p;
2555     int i;
2556{
2557  return p[i];
2558}
2559static char *f (char * (*g) (char **, int), char **p, ...)
2560{
2561  char *s;
2562  va_list v;
2563  va_start (v,p);
2564  s = g (p, va_arg (v,int));
2565  va_end (v);
2566  return s;
2567}
2568
2569/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2570   function prototypes and stuff, but not '\xHH' hex character constants.
2571   These don't provoke an error unfortunately, instead are silently treated
2572   as 'x'.  The following induces an error, until -std1 is added to get
2573   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2574   array size at least.  It's necessary to write '\x00'==0 to get something
2575   that's true only with -std1.  */
2576int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2577
2578int test (int i, double x);
2579struct s1 {int (*f) (int a);};
2580struct s2 {int (*f) (double a);};
2581int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2582int argc;
2583char **argv;
2584int
2585main ()
2586{
2587return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2588  ;
2589  return 0;
2590}
2591_ACEOF
2592# Don't try gcc -ansi; that turns off useful extensions and
2593# breaks some systems' header files.
2594# AIX                   -qlanglvl=ansi
2595# Ultrix and OSF/1      -std1
2596# HP-UX 10.20 and later -Ae
2597# HP-UX older versions  -Aa -D_HPUX_SOURCE
2598# SVR4                  -Xc -D__EXTENSIONS__
2599for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2600do
2601  CC="$ac_save_CC $ac_arg"
2602  rm -f conftest.$ac_objext
2603if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2604  (eval $ac_compile) 2>conftest.er1
2605  ac_status=$?
2606  grep -v '^ *+' conftest.er1 >conftest.err
2607  rm -f conftest.er1
2608  cat conftest.err >&5
2609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610  (exit $ac_status); } &&
2611         { ac_try='test -z "$ac_c_werror_flag"
2612                         || test ! -s conftest.err'
2613  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2614  (eval $ac_try) 2>&5
2615  ac_status=$?
2616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617  (exit $ac_status); }; } &&
2618         { ac_try='test -s conftest.$ac_objext'
2619  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2620  (eval $ac_try) 2>&5
2621  ac_status=$?
2622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623  (exit $ac_status); }; }; then
2624  ac_cv_prog_cc_stdc=$ac_arg
2625break
2626else
2627  echo "$as_me: failed program was:" >&5
2628sed 's/^/| /' conftest.$ac_ext >&5
2629
2630fi
2631rm -f conftest.err conftest.$ac_objext
2632done
2633rm -f conftest.$ac_ext conftest.$ac_objext
2634CC=$ac_save_CC
2635
2636fi
2637
2638case "x$ac_cv_prog_cc_stdc" in
2639  x|xno)
2640    echo "$as_me:$LINENO: result: none needed" >&5
2641echo "${ECHO_T}none needed" >&6 ;;
2642  *)
2643    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2644echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2645    CC="$CC $ac_cv_prog_cc_stdc" ;;
2646esac
2647
2648# Some people use a C++ compiler to compile C.  Since we use `exit',
2649# in C++ we need to declare it.  In case someone uses the same compiler
2650# for both compiling C and C++ we need to have the C++ compiler decide
2651# the declaration of exit, since it's the most demanding environment.
2652cat >conftest.$ac_ext <<_ACEOF
2653#ifndef __cplusplus
2654  choke me
2655#endif
2656_ACEOF
2657rm -f conftest.$ac_objext
2658if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2659  (eval $ac_compile) 2>conftest.er1
2660  ac_status=$?
2661  grep -v '^ *+' conftest.er1 >conftest.err
2662  rm -f conftest.er1
2663  cat conftest.err >&5
2664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665  (exit $ac_status); } &&
2666         { ac_try='test -z "$ac_c_werror_flag"
2667                         || test ! -s conftest.err'
2668  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2669  (eval $ac_try) 2>&5
2670  ac_status=$?
2671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672  (exit $ac_status); }; } &&
2673         { ac_try='test -s conftest.$ac_objext'
2674  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2675  (eval $ac_try) 2>&5
2676  ac_status=$?
2677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678  (exit $ac_status); }; }; then
2679  for ac_declaration in \
2680   '' \
2681   'extern "C" void std::exit (int) throw (); using std::exit;' \
2682   'extern "C" void std::exit (int); using std::exit;' \
2683   'extern "C" void exit (int) throw ();' \
2684   'extern "C" void exit (int);' \
2685   'void exit (int);'
2686do
2687  cat >conftest.$ac_ext <<_ACEOF
2688/* confdefs.h.  */
2689_ACEOF
2690cat confdefs.h >>conftest.$ac_ext
2691cat >>conftest.$ac_ext <<_ACEOF
2692/* end confdefs.h.  */
2693$ac_declaration
2694#include <stdlib.h>
2695int
2696main ()
2697{
2698exit (42);
2699  ;
2700  return 0;
2701}
2702_ACEOF
2703rm -f conftest.$ac_objext
2704if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2705  (eval $ac_compile) 2>conftest.er1
2706  ac_status=$?
2707  grep -v '^ *+' conftest.er1 >conftest.err
2708  rm -f conftest.er1
2709  cat conftest.err >&5
2710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711  (exit $ac_status); } &&
2712         { ac_try='test -z "$ac_c_werror_flag"
2713                         || test ! -s conftest.err'
2714  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2715  (eval $ac_try) 2>&5
2716  ac_status=$?
2717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718  (exit $ac_status); }; } &&
2719         { ac_try='test -s conftest.$ac_objext'
2720  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2721  (eval $ac_try) 2>&5
2722  ac_status=$?
2723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724  (exit $ac_status); }; }; then
2725  :
2726else
2727  echo "$as_me: failed program was:" >&5
2728sed 's/^/| /' conftest.$ac_ext >&5
2729
2730continue
2731fi
2732rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2733  cat >conftest.$ac_ext <<_ACEOF
2734/* confdefs.h.  */
2735_ACEOF
2736cat confdefs.h >>conftest.$ac_ext
2737cat >>conftest.$ac_ext <<_ACEOF
2738/* end confdefs.h.  */
2739$ac_declaration
2740int
2741main ()
2742{
2743exit (42);
2744  ;
2745  return 0;
2746}
2747_ACEOF
2748rm -f conftest.$ac_objext
2749if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2750  (eval $ac_compile) 2>conftest.er1
2751  ac_status=$?
2752  grep -v '^ *+' conftest.er1 >conftest.err
2753  rm -f conftest.er1
2754  cat conftest.err >&5
2755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756  (exit $ac_status); } &&
2757         { ac_try='test -z "$ac_c_werror_flag"
2758                         || test ! -s conftest.err'
2759  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2760  (eval $ac_try) 2>&5
2761  ac_status=$?
2762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763  (exit $ac_status); }; } &&
2764         { ac_try='test -s conftest.$ac_objext'
2765  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2766  (eval $ac_try) 2>&5
2767  ac_status=$?
2768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769  (exit $ac_status); }; }; then
2770  break
2771else
2772  echo "$as_me: failed program was:" >&5
2773sed 's/^/| /' conftest.$ac_ext >&5
2774
2775fi
2776rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2777done
2778rm -f conftest*
2779if test -n "$ac_declaration"; then
2780  echo '#ifdef __cplusplus' >>confdefs.h
2781  echo $ac_declaration      >>confdefs.h
2782  echo '#endif'             >>confdefs.h
2783fi
2784
2785else
2786  echo "$as_me: failed program was:" >&5
2787sed 's/^/| /' conftest.$ac_ext >&5
2788
2789fi
2790rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2791ac_ext=c
2792ac_cpp='$CPP $CPPFLAGS'
2793ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2794ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2795ac_compiler_gnu=$ac_cv_c_compiler_gnu
2796
2797if test -z "$CC" ; then
2798  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2799echo "$as_me: error: Failed to find a C compiler!" >&2;}
2800   { (exit 1); exit 1; }; }
2801fi
2802# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2803case "$CC" in
2804  clang* ) ;;
2805  cl* | */cl* | CL* | */CL* )
2806    if test "$ac_cv_prog_cc_g" = yes ; then
2807      ac_cv_prog_cc_g=no
2808      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2809echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2810    fi ;;
2811esac
2812CFLAGS="$save_cflags"
2813
2814# add automake conditional so we can recognize cl compiler in makefile
2815coin_cc_is_cl=false
2816case "$CC" in
2817  clang* ) ;;
2818  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2819    coin_cc_is_cl=true
2820    ;;
2821esac
2822
2823
2824if test $coin_cc_is_cl = true; then
2825  COIN_CC_IS_CL_TRUE=
2826  COIN_CC_IS_CL_FALSE='#'
2827else
2828  COIN_CC_IS_CL_TRUE='#'
2829  COIN_CC_IS_CL_FALSE=
2830fi
2831
2832
2833# Check if a project specific CFLAGS variable has been set
2834if test x$COIN_PRJCT != x; then
2835  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2836  if test x$coin_tmp = xset; then
2837    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2838  fi
2839fi
2840
2841if test x"$CFLAGS" = x; then
2842
2843  coin_add_cflags=
2844  coin_opt_cflags=
2845  coin_dbg_cflags=
2846  coin_warn_cflags=
2847
2848  if test "$GCC" = "yes"; then
2849    case "$CC" in
2850      icc* | */icc*)
2851        ;;
2852      *)
2853        coin_opt_cflags="-O3"
2854        coin_add_cflags="-pipe"
2855        coin_dbg_cflags="-g -O0"
2856        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2857        case $build in
2858          *-darwin*)
2859            ;;
2860          *)
2861            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2862            ;;
2863        esac
2864        case $enable_doscompile in
2865          mingw)
2866            CFLAGS="-mno-cygwin"
2867            cat >conftest.$ac_ext <<_ACEOF
2868/* confdefs.h.  */
2869_ACEOF
2870cat confdefs.h >>conftest.$ac_ext
2871cat >>conftest.$ac_ext <<_ACEOF
2872/* end confdefs.h.  */
2873
2874int
2875main ()
2876{
2877int i=0; i++;
2878  ;
2879  return 0;
2880}
2881_ACEOF
2882rm -f conftest.$ac_objext conftest$ac_exeext
2883if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2884  (eval $ac_link) 2>conftest.er1
2885  ac_status=$?
2886  grep -v '^ *+' conftest.er1 >conftest.err
2887  rm -f conftest.er1
2888  cat conftest.err >&5
2889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890  (exit $ac_status); } &&
2891         { ac_try='test -z "$ac_c_werror_flag"
2892                         || test ! -s conftest.err'
2893  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2894  (eval $ac_try) 2>&5
2895  ac_status=$?
2896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897  (exit $ac_status); }; } &&
2898         { ac_try='test -s conftest$ac_exeext'
2899  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2900  (eval $ac_try) 2>&5
2901  ac_status=$?
2902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903  (exit $ac_status); }; }; then
2904  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2905else
2906  echo "$as_me: failed program was:" >&5
2907sed 's/^/| /' conftest.$ac_ext >&5
2908
2909fi
2910rm -f conftest.err conftest.$ac_objext \
2911      conftest$ac_exeext conftest.$ac_ext
2912            CFLAGS=
2913          ;;
2914        esac
2915    esac
2916  fi
2917  if test -z "$coin_opt_cflags"; then
2918    case $build in
2919      *-cygwin* | *-mingw*)
2920        case "$CC" in
2921          clang* ) ;;
2922          cl* | */cl* | CL* | */CL*)
2923            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2924              coin_opt_cflags='-MD -O2'
2925              coin_dbg_cflags='-MDd'
2926            else
2927              coin_opt_cflags='-MT -O2'
2928              coin_dbg_cflags='-MTd'
2929            fi
2930            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2931            ;;
2932          icl* | */icl* | ICL* | */ICL*)
2933            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2934              coin_opt_cflags='-MD -Ox'
2935              coin_dbg_cflags='-MDd -debug'
2936            else
2937              coin_opt_cflags='-MT -Ox'
2938              coin_dbg_cflags='-MTd -debug'
2939            fi
2940            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2941            ;;
2942        esac
2943        ;;
2944      *-linux-*)
2945        case "$CC" in
2946          icc* | */icc*)
2947            coin_opt_cflags="-O3 -ip -mp1"
2948            coin_add_cflags=""
2949            coin_dbg_cflags="-g"
2950            # Check if -i_dynamic is necessary (for new glibc library)
2951            CFLAGS=
2952            cat >conftest.$ac_ext <<_ACEOF
2953/* confdefs.h.  */
2954_ACEOF
2955cat confdefs.h >>conftest.$ac_ext
2956cat >>conftest.$ac_ext <<_ACEOF
2957/* end confdefs.h.  */
2958
2959int
2960main ()
2961{
2962int i=0; i++;
2963  ;
2964  return 0;
2965}
2966_ACEOF
2967rm -f conftest.$ac_objext conftest$ac_exeext
2968if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2969  (eval $ac_link) 2>conftest.er1
2970  ac_status=$?
2971  grep -v '^ *+' conftest.er1 >conftest.err
2972  rm -f conftest.er1
2973  cat conftest.err >&5
2974  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975  (exit $ac_status); } &&
2976         { ac_try='test -z "$ac_c_werror_flag"
2977                         || test ! -s conftest.err'
2978  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2979  (eval $ac_try) 2>&5
2980  ac_status=$?
2981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982  (exit $ac_status); }; } &&
2983         { ac_try='test -s conftest$ac_exeext'
2984  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2985  (eval $ac_try) 2>&5
2986  ac_status=$?
2987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988  (exit $ac_status); }; }; then
2989  :
2990else
2991  echo "$as_me: failed program was:" >&5
2992sed 's/^/| /' conftest.$ac_ext >&5
2993
2994coin_add_cflags="-i_dynamic $coin_add_cflags"
2995fi
2996rm -f conftest.err conftest.$ac_objext \
2997      conftest$ac_exeext conftest.$ac_ext
2998            ;;
2999          pgcc* | */pgcc*)
3000            coin_opt_cflags="-fast"
3001            coin_add_cflags="-Kieee -pc 64"
3002            coin_dbg_cflags="-g"
3003            ;;
3004        esac
3005        ;;
3006      *-ibm-*)
3007        case "$CC" in
3008          xlc* | */xlc* | mpxlc* | */mpxlc*)
3009            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3010            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
3011            coin_dbg_cflags="-g"
3012          ;;
3013        esac
3014        ;;
3015      *-hp-*)
3016        coin_opt_cflags="-O"
3017        coin_add_cflags="-Ae"
3018        coin_dbg_cflags="-g"
3019        ;;
3020      *-*-solaris*)
3021        coin_opt_cflags="-xO4"
3022        coin_dbg_cflags="-g"
3023        ;;
3024      *-sgi-*)
3025        coin_opt_cflags="-O -OPT:Olimit=0"
3026        coin_dbg_cflags="-g"
3027        ;;
3028    esac
3029  fi
3030
3031  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
3032    coin_dbg_cflags="-g"
3033  fi
3034
3035  if test -z "$coin_opt_cflags"; then
3036    # Try if -O option works if nothing else is set
3037    CFLAGS="-O"
3038    cat >conftest.$ac_ext <<_ACEOF
3039/* confdefs.h.  */
3040_ACEOF
3041cat confdefs.h >>conftest.$ac_ext
3042cat >>conftest.$ac_ext <<_ACEOF
3043/* end confdefs.h.  */
3044
3045int
3046main ()
3047{
3048int i=0; i++;
3049  ;
3050  return 0;
3051}
3052_ACEOF
3053rm -f conftest.$ac_objext conftest$ac_exeext
3054if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3055  (eval $ac_link) 2>conftest.er1
3056  ac_status=$?
3057  grep -v '^ *+' conftest.er1 >conftest.err
3058  rm -f conftest.er1
3059  cat conftest.err >&5
3060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061  (exit $ac_status); } &&
3062         { ac_try='test -z "$ac_c_werror_flag"
3063                         || test ! -s conftest.err'
3064  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3065  (eval $ac_try) 2>&5
3066  ac_status=$?
3067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068  (exit $ac_status); }; } &&
3069         { ac_try='test -s conftest$ac_exeext'
3070  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3071  (eval $ac_try) 2>&5
3072  ac_status=$?
3073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074  (exit $ac_status); }; }; then
3075  coin_opt_cflags="-O"
3076else
3077  echo "$as_me: failed program was:" >&5
3078sed 's/^/| /' conftest.$ac_ext >&5
3079
3080fi
3081rm -f conftest.err conftest.$ac_objext \
3082      conftest$ac_exeext conftest.$ac_ext
3083  fi
3084
3085  # if PM doesn't want the warning messages, take them out
3086  if test x"$coin_skip_warn_cflags" = xyes; then
3087    coin_warn_cflags=
3088  fi
3089
3090  if test x${DBG_CFLAGS+set} != xset; then
3091    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3092  fi
3093  if test x${OPT_CFLAGS+set} != xset; then
3094    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3095  fi
3096
3097  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3098  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3099
3100  if test "$coin_debug_compile" = "true"; then
3101    CFLAGS="$DBG_CFLAGS"
3102  else
3103    CFLAGS="$OPT_CFLAGS"
3104  fi
3105else
3106  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3107  if test x${DBG_CFLAGS+set} != xset; then
3108    DBG_CFLAGS="$CFLAGS"
3109  fi
3110  if test x${OPT_CFLAGS+set} != xset; then
3111    OPT_CFLAGS="$CFLAGS"
3112  fi
3113fi
3114
3115# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3116
3117case "$CFLAGS" in
3118  *-mno-cygwin*)
3119    if test x${CPPFLAGS+set} != xset ; then
3120      CPPFLAGS="-mno-cygwin"
3121    else
3122      case "$CPPFLAGS" in
3123        *-mno-cygwin*)
3124          ;;
3125        *)
3126          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3127          ;;
3128      esac
3129    fi ;;
3130esac
3131
3132# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3133if test x$COIN_PRJCT != x; then
3134  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3135fi
3136
3137# Try if CFLAGS works
3138save_CFLAGS="$CFLAGS"
3139cat >conftest.$ac_ext <<_ACEOF
3140/* confdefs.h.  */
3141_ACEOF
3142cat confdefs.h >>conftest.$ac_ext
3143cat >>conftest.$ac_ext <<_ACEOF
3144/* end confdefs.h.  */
3145
3146int
3147main ()
3148{
3149int i=0; i++;
3150  ;
3151  return 0;
3152}
3153_ACEOF
3154rm -f conftest.$ac_objext conftest$ac_exeext
3155if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3156  (eval $ac_link) 2>conftest.er1
3157  ac_status=$?
3158  grep -v '^ *+' conftest.er1 >conftest.err
3159  rm -f conftest.er1
3160  cat conftest.err >&5
3161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162  (exit $ac_status); } &&
3163         { ac_try='test -z "$ac_c_werror_flag"
3164                         || test ! -s conftest.err'
3165  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3166  (eval $ac_try) 2>&5
3167  ac_status=$?
3168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169  (exit $ac_status); }; } &&
3170         { ac_try='test -s conftest$ac_exeext'
3171  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3172  (eval $ac_try) 2>&5
3173  ac_status=$?
3174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175  (exit $ac_status); }; }; then
3176  :
3177else
3178  echo "$as_me: failed program was:" >&5
3179sed 's/^/| /' conftest.$ac_ext >&5
3180
3181CFLAGS=
3182fi
3183rm -f conftest.err conftest.$ac_objext \
3184      conftest$ac_exeext conftest.$ac_ext
3185if test -z "$CFLAGS"; then
3186  { 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
3187echo "$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;}
3188  CFLAGS='-O'
3189  cat >conftest.$ac_ext <<_ACEOF
3190/* confdefs.h.  */
3191_ACEOF
3192cat confdefs.h >>conftest.$ac_ext
3193cat >>conftest.$ac_ext <<_ACEOF
3194/* end confdefs.h.  */
3195
3196int
3197main ()
3198{
3199int i=0; i++;
3200  ;
3201  return 0;
3202}
3203_ACEOF
3204rm -f conftest.$ac_objext conftest$ac_exeext
3205if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3206  (eval $ac_link) 2>conftest.er1
3207  ac_status=$?
3208  grep -v '^ *+' conftest.er1 >conftest.err
3209  rm -f conftest.er1
3210  cat conftest.err >&5
3211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212  (exit $ac_status); } &&
3213         { ac_try='test -z "$ac_c_werror_flag"
3214                         || test ! -s conftest.err'
3215  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3216  (eval $ac_try) 2>&5
3217  ac_status=$?
3218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219  (exit $ac_status); }; } &&
3220         { ac_try='test -s conftest$ac_exeext'
3221  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3222  (eval $ac_try) 2>&5
3223  ac_status=$?
3224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3225  (exit $ac_status); }; }; then
3226  :
3227else
3228  echo "$as_me: failed program was:" >&5
3229sed 's/^/| /' conftest.$ac_ext >&5
3230
3231CFLAGS=
3232fi
3233rm -f conftest.err conftest.$ac_objext \
3234      conftest$ac_exeext conftest.$ac_ext
3235  if test -z "$CFLAGS"; then
3236    { 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
3237echo "$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;}
3238  fi
3239fi
3240
3241{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3242echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3243
3244
3245if test x"$MPICC" = x; then :; else
3246  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3247echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3248  CC="$MPICC"
3249fi
3250
3251# Correct the LD variable if we are using the MS or Intel-windows compiler
3252case "$CC" in
3253  clang* ) ;;
3254  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3255    case $build in
3256  *-mingw*)
3257    if test "${LD+set}" = set; then :; else
3258      LD=link
3259    fi
3260    ;;
3261 esac
3262 case $enable_doscompile in
3263   msvc)
3264     if test "x${LD+set}" = xset; then :; else
3265       LD=link
3266     fi
3267     ;;
3268 esac
3269
3270    ;;
3271esac
3272
3273ac_ext=c
3274ac_cpp='$CPP $CPPFLAGS'
3275ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3276ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3277ac_compiler_gnu=$ac_cv_c_compiler_gnu
3278
3279
3280
3281# Get the name of the C++ compiler and appropriate compiler options
3282
3283 #Let's try if that overcomes configuration problem with VC++ 6.0
3284
3285ac_ext=cc
3286ac_cpp='$CXXCPP $CPPFLAGS'
3287ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3288ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3289ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3290
3291
3292
3293
3294
3295
3296
3297coin_has_cxx=yes
3298
3299save_cxxflags="$CXXFLAGS"
3300# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3301case $build in
3302  *-cygwin* | *-mingw*)
3303             if test "$enable_doscompile" = msvc ; then
3304               comps="icl cl"
3305             else
3306               comps="g++ cl"
3307             fi ;;
3308  *-*-solaris*)
3309             comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3310  *-darwin*) comps="g++ c++ CC" ;;
3311  *-linux-gnu*)
3312             comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;;
3313          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3314esac
3315
3316# We delete the cached value, since the test might not have been
3317# performed with our choice of compilers earlier
3318$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3319# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3320ac_ext=cc
3321ac_cpp='$CXXCPP $CPPFLAGS'
3322ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3323ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3324ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3325if test -n "$ac_tool_prefix"; then
3326  for ac_prog in $CCC $comps
3327  do
3328    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3329set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3330echo "$as_me:$LINENO: checking for $ac_word" >&5
3331echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3332if test "${ac_cv_prog_CXX+set}" = set; then
3333  echo $ECHO_N "(cached) $ECHO_C" >&6
3334else
3335  if test -n "$CXX"; then
3336  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3337else
3338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3339for as_dir in $PATH
3340do
3341  IFS=$as_save_IFS
3342  test -z "$as_dir" && as_dir=.
3343  for ac_exec_ext in '' $ac_executable_extensions; do
3344  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3345    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3346    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3347    break 2
3348  fi
3349done
3350done
3351
3352fi
3353fi
3354CXX=$ac_cv_prog_CXX
3355if test -n "$CXX"; then
3356  echo "$as_me:$LINENO: result: $CXX" >&5
3357echo "${ECHO_T}$CXX" >&6
3358else
3359  echo "$as_me:$LINENO: result: no" >&5
3360echo "${ECHO_T}no" >&6
3361fi
3362
3363    test -n "$CXX" && break
3364  done
3365fi
3366if test -z "$CXX"; then
3367  ac_ct_CXX=$CXX
3368  for ac_prog in $CCC $comps
3369do
3370  # Extract the first word of "$ac_prog", so it can be a program name with args.
3371set dummy $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_ac_ct_CXX+set}" = set; then
3375  echo $ECHO_N "(cached) $ECHO_C" >&6
3376else
3377  if test -n "$ac_ct_CXX"; then
3378  ac_cv_prog_ac_ct_CXX="$ac_ct_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_ac_ct_CXX="$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
3396ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3397if test -n "$ac_ct_CXX"; then
3398  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3399echo "${ECHO_T}$ac_ct_CXX" >&6
3400else
3401  echo "$as_me:$LINENO: result: no" >&5
3402echo "${ECHO_T}no" >&6
3403fi
3404
3405  test -n "$ac_ct_CXX" && break
3406done
3407test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3408
3409  CXX=$ac_ct_CXX
3410fi
3411
3412
3413# Provide some information about the compiler.
3414echo "$as_me:$LINENO:" \
3415     "checking for C++ compiler version" >&5
3416ac_compiler=`set X $ac_compile; echo $2`
3417{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3418  (eval $ac_compiler --version </dev/null >&5) 2>&5
3419  ac_status=$?
3420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421  (exit $ac_status); }
3422{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3423  (eval $ac_compiler -v </dev/null >&5) 2>&5
3424  ac_status=$?
3425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426  (exit $ac_status); }
3427{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3428  (eval $ac_compiler -V </dev/null >&5) 2>&5
3429  ac_status=$?
3430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431  (exit $ac_status); }
3432
3433echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3434echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3435if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3436  echo $ECHO_N "(cached) $ECHO_C" >&6
3437else
3438  cat >conftest.$ac_ext <<_ACEOF
3439/* confdefs.h.  */
3440_ACEOF
3441cat confdefs.h >>conftest.$ac_ext
3442cat >>conftest.$ac_ext <<_ACEOF
3443/* end confdefs.h.  */
3444
3445int
3446main ()
3447{
3448#ifndef __GNUC__
3449       choke me
3450#endif
3451
3452  ;
3453  return 0;
3454}
3455_ACEOF
3456rm -f conftest.$ac_objext
3457if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3458  (eval $ac_compile) 2>conftest.er1
3459  ac_status=$?
3460  grep -v '^ *+' conftest.er1 >conftest.err
3461  rm -f conftest.er1
3462  cat conftest.err >&5
3463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464  (exit $ac_status); } &&
3465         { ac_try='test -z "$ac_cxx_werror_flag"
3466                         || test ! -s conftest.err'
3467  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3468  (eval $ac_try) 2>&5
3469  ac_status=$?
3470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3471  (exit $ac_status); }; } &&
3472         { ac_try='test -s conftest.$ac_objext'
3473  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3474  (eval $ac_try) 2>&5
3475  ac_status=$?
3476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3477  (exit $ac_status); }; }; then
3478  ac_compiler_gnu=yes
3479else
3480  echo "$as_me: failed program was:" >&5
3481sed 's/^/| /' conftest.$ac_ext >&5
3482
3483ac_compiler_gnu=no
3484fi
3485rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3486ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3487
3488fi
3489echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3490echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3491GXX=`test $ac_compiler_gnu = yes && echo yes`
3492ac_test_CXXFLAGS=${CXXFLAGS+set}
3493ac_save_CXXFLAGS=$CXXFLAGS
3494CXXFLAGS="-g"
3495echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3496echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3497if test "${ac_cv_prog_cxx_g+set}" = set; then
3498  echo $ECHO_N "(cached) $ECHO_C" >&6
3499else
3500  cat >conftest.$ac_ext <<_ACEOF
3501/* confdefs.h.  */
3502_ACEOF
3503cat confdefs.h >>conftest.$ac_ext
3504cat >>conftest.$ac_ext <<_ACEOF
3505/* end confdefs.h.  */
3506
3507int
3508main ()
3509{
3510
3511  ;
3512  return 0;
3513}
3514_ACEOF
3515rm -f conftest.$ac_objext
3516if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3517  (eval $ac_compile) 2>conftest.er1
3518  ac_status=$?
3519  grep -v '^ *+' conftest.er1 >conftest.err
3520  rm -f conftest.er1
3521  cat conftest.err >&5
3522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523  (exit $ac_status); } &&
3524         { ac_try='test -z "$ac_cxx_werror_flag"
3525                         || test ! -s conftest.err'
3526  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3527  (eval $ac_try) 2>&5
3528  ac_status=$?
3529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530  (exit $ac_status); }; } &&
3531         { ac_try='test -s conftest.$ac_objext'
3532  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3533  (eval $ac_try) 2>&5
3534  ac_status=$?
3535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536  (exit $ac_status); }; }; then
3537  ac_cv_prog_cxx_g=yes
3538else
3539  echo "$as_me: failed program was:" >&5
3540sed 's/^/| /' conftest.$ac_ext >&5
3541
3542ac_cv_prog_cxx_g=no
3543fi
3544rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3545fi
3546echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3547echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3548if test "$ac_test_CXXFLAGS" = set; then
3549  CXXFLAGS=$ac_save_CXXFLAGS
3550elif test $ac_cv_prog_cxx_g = yes; then
3551  if test "$GXX" = yes; then
3552    CXXFLAGS="-g -O2"
3553  else
3554    CXXFLAGS="-g"
3555  fi
3556else
3557  if test "$GXX" = yes; then
3558    CXXFLAGS="-O2"
3559  else
3560    CXXFLAGS=
3561  fi
3562fi
3563for ac_declaration in \
3564   '' \
3565   'extern "C" void std::exit (int) throw (); using std::exit;' \
3566   'extern "C" void std::exit (int); using std::exit;' \
3567   'extern "C" void exit (int) throw ();' \
3568   'extern "C" void exit (int);' \
3569   'void exit (int);'
3570do
3571  cat >conftest.$ac_ext <<_ACEOF
3572/* confdefs.h.  */
3573_ACEOF
3574cat confdefs.h >>conftest.$ac_ext
3575cat >>conftest.$ac_ext <<_ACEOF
3576/* end confdefs.h.  */
3577$ac_declaration
3578#include <stdlib.h>
3579int
3580main ()
3581{
3582exit (42);
3583  ;
3584  return 0;
3585}
3586_ACEOF
3587rm -f conftest.$ac_objext
3588if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3589  (eval $ac_compile) 2>conftest.er1
3590  ac_status=$?
3591  grep -v '^ *+' conftest.er1 >conftest.err
3592  rm -f conftest.er1
3593  cat conftest.err >&5
3594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595  (exit $ac_status); } &&
3596         { ac_try='test -z "$ac_cxx_werror_flag"
3597                         || test ! -s conftest.err'
3598  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3599  (eval $ac_try) 2>&5
3600  ac_status=$?
3601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602  (exit $ac_status); }; } &&
3603         { ac_try='test -s conftest.$ac_objext'
3604  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3605  (eval $ac_try) 2>&5
3606  ac_status=$?
3607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608  (exit $ac_status); }; }; then
3609  :
3610else
3611  echo "$as_me: failed program was:" >&5
3612sed 's/^/| /' conftest.$ac_ext >&5
3613
3614continue
3615fi
3616rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3617  cat >conftest.$ac_ext <<_ACEOF
3618/* confdefs.h.  */
3619_ACEOF
3620cat confdefs.h >>conftest.$ac_ext
3621cat >>conftest.$ac_ext <<_ACEOF
3622/* end confdefs.h.  */
3623$ac_declaration
3624int
3625main ()
3626{
3627exit (42);
3628  ;
3629  return 0;
3630}
3631_ACEOF
3632rm -f conftest.$ac_objext
3633if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3634  (eval $ac_compile) 2>conftest.er1
3635  ac_status=$?
3636  grep -v '^ *+' conftest.er1 >conftest.err
3637  rm -f conftest.er1
3638  cat conftest.err >&5
3639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3640  (exit $ac_status); } &&
3641         { ac_try='test -z "$ac_cxx_werror_flag"
3642                         || test ! -s conftest.err'
3643  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3644  (eval $ac_try) 2>&5
3645  ac_status=$?
3646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3647  (exit $ac_status); }; } &&
3648         { ac_try='test -s conftest.$ac_objext'
3649  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3650  (eval $ac_try) 2>&5
3651  ac_status=$?
3652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653  (exit $ac_status); }; }; then
3654  break
3655else
3656  echo "$as_me: failed program was:" >&5
3657sed 's/^/| /' conftest.$ac_ext >&5
3658
3659fi
3660rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3661done
3662rm -f conftest*
3663if test -n "$ac_declaration"; then
3664  echo '#ifdef __cplusplus' >>confdefs.h
3665  echo $ac_declaration      >>confdefs.h
3666  echo '#endif'             >>confdefs.h
3667fi
3668
3669ac_ext=cc
3670ac_cpp='$CXXCPP $CPPFLAGS'
3671ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3672ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3673ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3674
3675
3676#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3677#thus, we test here whether $CXX is actually working
3678ac_ext=cc
3679ac_cpp='$CXXCPP $CPPFLAGS'
3680ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3681ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3682ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3683
3684echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3685echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3686cat >conftest.$ac_ext <<_ACEOF
3687/* confdefs.h.  */
3688_ACEOF
3689cat confdefs.h >>conftest.$ac_ext
3690cat >>conftest.$ac_ext <<_ACEOF
3691/* end confdefs.h.  */
3692
3693int
3694main ()
3695{
3696int i=0;
3697  ;
3698  return 0;
3699}
3700_ACEOF
3701rm -f conftest.$ac_objext
3702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3703  (eval $ac_compile) 2>conftest.er1
3704  ac_status=$?
3705  grep -v '^ *+' conftest.er1 >conftest.err
3706  rm -f conftest.er1
3707  cat conftest.err >&5
3708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709  (exit $ac_status); } &&
3710         { ac_try='test -z "$ac_cxx_werror_flag"
3711                         || test ! -s conftest.err'
3712  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3713  (eval $ac_try) 2>&5
3714  ac_status=$?
3715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716  (exit $ac_status); }; } &&
3717         { ac_try='test -s conftest.$ac_objext'
3718  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3719  (eval $ac_try) 2>&5
3720  ac_status=$?
3721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722  (exit $ac_status); }; }; then
3723  echo "$as_me:$LINENO: result: yes" >&5
3724echo "${ECHO_T}yes" >&6
3725else
3726  echo "$as_me: failed program was:" >&5
3727sed 's/^/| /' conftest.$ac_ext >&5
3728
3729echo "$as_me:$LINENO: result: no" >&5
3730echo "${ECHO_T}no" >&6
3731   { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3732echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3733   { (exit 1); exit 1; }; }
3734
3735fi
3736rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3737ac_ext=cc
3738ac_cpp='$CXXCPP $CPPFLAGS'
3739ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3740ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3741ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3742
3743
3744coin_cxx_is_cl=false
3745# It seems that we need to cleanup something here for the Windows
3746case "$CXX" in
3747  clang* ) ;;
3748  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3749    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3750    mv confdefs.hh confdefs.h
3751    coin_cxx_is_cl=true
3752    ;;
3753esac
3754
3755# add automake conditional so we can recognize cl compiler in makefile
3756
3757
3758if test $coin_cxx_is_cl = true; then
3759  COIN_CXX_IS_CL_TRUE=
3760  COIN_CXX_IS_CL_FALSE='#'
3761else
3762  COIN_CXX_IS_CL_TRUE='#'
3763  COIN_CXX_IS_CL_FALSE=
3764fi
3765
3766
3767# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3768case "$CXX" in
3769  clang* ) ;;
3770  cl* | */cl* | CL* | */CL* )
3771    if test "$ac_cv_prog_cxx_g" = yes ; then
3772      ac_cv_prog_cxx_g=no
3773      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3774echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3775    fi ;;
3776esac
3777CXXFLAGS="$save_cxxflags"
3778
3779# Check if a project specific CXXFLAGS variable has been set
3780if test x$COIN_PRJCT != x; then
3781  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3782  if test x$coin_tmp = xset; then
3783    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3784  fi
3785fi
3786
3787if test x"$CXXFLAGS" = x; then
3788
3789# ToDo decide whether we want -DNDEBUG for optimization
3790  coin_add_cxxflags=
3791  coin_opt_cxxflags=
3792  coin_dbg_cxxflags=
3793  coin_warn_cxxflags=
3794
3795  if test "$GXX" = "yes"; then
3796    case "$CXX" in
3797      icpc* | */icpc*)
3798        ;;
3799      *)
3800# ToDo decide about unroll-loops
3801        coin_opt_cxxflags="-O3"
3802        coin_add_cxxflags="-pipe"
3803        coin_dbg_cxxflags="-g -O0"
3804        coin_warn_cxxflags="-Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long"
3805        case $build in
3806          *-darwin*)
3807            ;;
3808          *)
3809            coin_warn_cxxflags="-pedantic-errors $coin_warn_cxxflags"
3810            ;;
3811        esac
3812
3813        case $enable_doscompile in
3814          mingw)
3815            CXXFLAGS="-mno-cygwin"
3816            cat >conftest.$ac_ext <<_ACEOF
3817/* confdefs.h.  */
3818_ACEOF
3819cat confdefs.h >>conftest.$ac_ext
3820cat >>conftest.$ac_ext <<_ACEOF
3821/* end confdefs.h.  */
3822
3823int
3824main ()
3825{
3826int i=0; i++;
3827  ;
3828  return 0;
3829}
3830_ACEOF
3831rm -f conftest.$ac_objext conftest$ac_exeext
3832if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3833  (eval $ac_link) 2>conftest.er1
3834  ac_status=$?
3835  grep -v '^ *+' conftest.er1 >conftest.err
3836  rm -f conftest.er1
3837  cat conftest.err >&5
3838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839  (exit $ac_status); } &&
3840         { ac_try='test -z "$ac_cxx_werror_flag"
3841                         || test ! -s conftest.err'
3842  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3843  (eval $ac_try) 2>&5
3844  ac_status=$?
3845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846  (exit $ac_status); }; } &&
3847         { ac_try='test -s conftest$ac_exeext'
3848  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3849  (eval $ac_try) 2>&5
3850  ac_status=$?
3851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852  (exit $ac_status); }; }; then
3853  coin_add_cxxflags="-mno-cygwin $coin_add_cxxflags"
3854else
3855  echo "$as_me: failed program was:" >&5
3856sed 's/^/| /' conftest.$ac_ext >&5
3857
3858fi
3859rm -f conftest.err conftest.$ac_objext \
3860      conftest$ac_exeext conftest.$ac_ext
3861            CXXFLAGS=
3862          ;;
3863        esac
3864    esac
3865  fi
3866
3867# Note that we do not need to cover GCC in the following tests.
3868
3869  if test -z "$coin_opt_cxxflags"; then
3870    case $build in
3871      *-cygwin* | *-mingw*)
3872        case "$CXX" in
3873          clang* ) ;;
3874          cl* | */cl* | CL* | */CL*)
3875            # The MT and MTd options are mutually exclusive
3876            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3877               coin_opt_cxxflags='-MD -O2'
3878               coin_dbg_cxxflags='-MDd'
3879            else
3880               coin_opt_cxxflags='-MT -O2'
3881               coin_dbg_cxxflags='-MTd'
3882            fi
3883            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3884            ;;
3885          icl* | */icl* | ICL* | */ICL*)
3886          # The MT and MTd options are mutually exclusive
3887            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3888              coin_opt_cxxflags='-MD -Ox'
3889              coin_dbg_cxxflags='-MDd -debug'
3890            else
3891              coin_opt_cxxflags='-MT -Ox'
3892              coin_dbg_cxxflags='-MTd -debug'
3893            fi
3894            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3895            ;;
3896        esac
3897        ;;
3898      *-linux-*)
3899        case "$CXX" in
3900          icpc* | */icpc*)
3901            coin_opt_cxxflags="-O3 -ip -mp1"
3902            coin_add_cxxflags=""
3903            coin_dbg_cxxflags="-g"
3904            # Check if -i_dynamic is necessary (for new glibc library)
3905            CXXFLAGS=
3906            cat >conftest.$ac_ext <<_ACEOF
3907/* confdefs.h.  */
3908_ACEOF
3909cat confdefs.h >>conftest.$ac_ext
3910cat >>conftest.$ac_ext <<_ACEOF
3911/* end confdefs.h.  */
3912
3913int
3914main ()
3915{
3916int i=0; i++;
3917  ;
3918  return 0;
3919}
3920_ACEOF
3921rm -f conftest.$ac_objext conftest$ac_exeext
3922if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3923  (eval $ac_link) 2>conftest.er1
3924  ac_status=$?
3925  grep -v '^ *+' conftest.er1 >conftest.err
3926  rm -f conftest.er1
3927  cat conftest.err >&5
3928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929  (exit $ac_status); } &&
3930         { ac_try='test -z "$ac_cxx_werror_flag"
3931                         || test ! -s conftest.err'
3932  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3933  (eval $ac_try) 2>&5
3934  ac_status=$?
3935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936  (exit $ac_status); }; } &&
3937         { ac_try='test -s conftest$ac_exeext'
3938  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3939  (eval $ac_try) 2>&5
3940  ac_status=$?
3941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942  (exit $ac_status); }; }; then
3943  :
3944else
3945  echo "$as_me: failed program was:" >&5
3946sed 's/^/| /' conftest.$ac_ext >&5
3947
3948coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3949fi
3950rm -f conftest.err conftest.$ac_objext \
3951      conftest$ac_exeext conftest.$ac_ext
3952            ;;
3953          pgCC* | */pgCC*)
3954            coin_opt_cxxflags="-fast"
3955            coin_add_cxxflags="-Kieee -pc 64"
3956            coin_dbg_cxxflags="-g"
3957            ;;
3958        esac
3959        ;;
3960      *-ibm-*)
3961        case "$CXX" in
3962          xlC* | */xlC* | mpxlC* | */mpxlC*)
3963            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3964            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3965            coin_dbg_cxxflags="-g"
3966            ;;
3967        esac
3968        ;;
3969      *-hp-*)
3970        case "$CXX" in
3971          aCC* | */aCC* )
3972            coin_opt_cxxflags="-O"
3973            coin_add_cxxflags="-AA"
3974            coin_dbg_cxxflags="-g"
3975            ;;
3976        esac
3977        ;;
3978      *-*-solaris*)
3979          coin_opt_cxxflags="-O4"
3980          coin_dbg_cxxflags="-g"
3981        ;;
3982    esac
3983  fi
3984
3985# Generic flag settings. If these don't work, add a case above.
3986
3987  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3988    coin_dbg_cxxflags="-g"
3989  fi
3990
3991  if test -z "$coin_opt_cxxflags"; then
3992    # Try if -O option works if nothing else is set
3993    CXXFLAGS=-O
3994    cat >conftest.$ac_ext <<_ACEOF
3995/* confdefs.h.  */
3996_ACEOF
3997cat confdefs.h >>conftest.$ac_ext
3998cat >>conftest.$ac_ext <<_ACEOF
3999/* end confdefs.h.  */
4000
4001int
4002main ()
4003{
4004int i=0; i++;
4005  ;
4006  return 0;
4007}
4008_ACEOF
4009rm -f conftest.$ac_objext conftest$ac_exeext
4010if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4011  (eval $ac_link) 2>conftest.er1
4012  ac_status=$?
4013  grep -v '^ *+' conftest.er1 >conftest.err
4014  rm -f conftest.er1
4015  cat conftest.err >&5
4016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017  (exit $ac_status); } &&
4018         { ac_try='test -z "$ac_cxx_werror_flag"
4019                         || test ! -s conftest.err'
4020  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4021  (eval $ac_try) 2>&5
4022  ac_status=$?
4023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024  (exit $ac_status); }; } &&
4025         { ac_try='test -s conftest$ac_exeext'
4026  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4027  (eval $ac_try) 2>&5
4028  ac_status=$?
4029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030  (exit $ac_status); }; }; then
4031  coin_opt_cxxflags="-O"
4032else
4033  echo "$as_me: failed program was:" >&5
4034sed 's/^/| /' conftest.$ac_ext >&5
4035
4036fi
4037rm -f conftest.err conftest.$ac_objext \
4038      conftest$ac_exeext conftest.$ac_ext
4039  fi
4040
4041  # if PM doesn't want the warning messages, take them out
4042  if test x"$coin_skip_warn_cxxflags" = xyes; then
4043    coin_warn_cxxflags=
4044  fi
4045
4046# Do final setup of flags based on values determined above.
4047
4048  if test x${DBG_CXXFLAGS+set} != xset; then
4049    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
4050  fi
4051  if test x${OPT_CXXFLAGS+set} != xset; then
4052    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
4053  fi
4054
4055  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
4056  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
4057
4058  if test "$coin_debug_compile" = "true"; then
4059    CXXFLAGS="$DBG_CXXFLAGS"
4060  else
4061    CXXFLAGS="$OPT_CXXFLAGS"
4062  fi
4063
4064# Handle the case where CXXFLAGS was set externally.
4065else
4066  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
4067  if test x${DBG_CXXFLAGS+set} != xset; then
4068    DBG_CXXFLAGS="$CXXFLAGS"
4069  fi
4070  if test x${OPT_CXXFLAGS+set} != xset; then
4071    OPT_CXXFLAGS="$CXXFLAGS"
4072  fi
4073fi
4074
4075# If CXXFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
4076
4077case "$CXXFLAGS" in
4078  *-mno-cygwin*)
4079    if test x${CPPFLAGS+set} != xset ; then
4080      CPPFLAGS="-mno-cygwin"
4081    else
4082      case "$CPPFLAGS" in
4083        *-mno-cygwin*)
4084          ;;
4085        *)
4086          CPPFLAGS="$CPPFLAGS -mno-cygwin"
4087          ;;
4088      esac
4089    fi ;;
4090esac
4091
4092# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
4093if test x$COIN_PRJCT != x; then
4094  CXXFLAGS="$CXXFLAGS -D${COIN_PRJCT}_BUILD"
4095fi
4096
4097# Try if CXXFLAGS works
4098save_CXXFLAGS="$CXXFLAGS"
4099cat >conftest.$ac_ext <<_ACEOF
4100/* confdefs.h.  */
4101_ACEOF
4102cat confdefs.h >>conftest.$ac_ext
4103cat >>conftest.$ac_ext <<_ACEOF
4104/* end confdefs.h.  */
4105
4106int
4107main ()
4108{
4109int i=0; i++;
4110  ;
4111  return 0;
4112}
4113_ACEOF
4114rm -f conftest.$ac_objext conftest$ac_exeext
4115if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4116  (eval $ac_link) 2>conftest.er1
4117  ac_status=$?
4118  grep -v '^ *+' conftest.er1 >conftest.err
4119  rm -f conftest.er1
4120  cat conftest.err >&5
4121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122  (exit $ac_status); } &&
4123         { ac_try='test -z "$ac_cxx_werror_flag"
4124                         || test ! -s conftest.err'
4125  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4126  (eval $ac_try) 2>&5
4127  ac_status=$?
4128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129  (exit $ac_status); }; } &&
4130         { ac_try='test -s conftest$ac_exeext'
4131  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4132  (eval $ac_try) 2>&5
4133  ac_status=$?
4134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135  (exit $ac_status); }; }; then
4136  :
4137else
4138  echo "$as_me: failed program was:" >&5
4139sed 's/^/| /' conftest.$ac_ext >&5
4140
4141CXXFLAGS=
4142fi
4143rm -f conftest.err conftest.$ac_objext \
4144      conftest$ac_exeext conftest.$ac_ext
4145if test -z "$CXXFLAGS"; then
4146  { 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
4147echo "$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;}
4148  CXXFLAGS='-O'
4149  cat >conftest.$ac_ext <<_ACEOF
4150/* confdefs.h.  */
4151_ACEOF
4152cat confdefs.h >>conftest.$ac_ext
4153cat >>conftest.$ac_ext <<_ACEOF
4154/* end confdefs.h.  */
4155
4156int
4157main ()
4158{
4159int i=0; i++;
4160  ;
4161  return 0;
4162}
4163_ACEOF
4164rm -f conftest.$ac_objext conftest$ac_exeext
4165if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4166  (eval $ac_link) 2>conftest.er1
4167  ac_status=$?
4168  grep -v '^ *+' conftest.er1 >conftest.err
4169  rm -f conftest.er1
4170  cat conftest.err >&5
4171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172  (exit $ac_status); } &&
4173         { ac_try='test -z "$ac_cxx_werror_flag"
4174                         || test ! -s conftest.err'
4175  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4176  (eval $ac_try) 2>&5
4177  ac_status=$?
4178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179  (exit $ac_status); }; } &&
4180         { ac_try='test -s conftest$ac_exeext'
4181  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4182  (eval $ac_try) 2>&5
4183  ac_status=$?
4184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4185  (exit $ac_status); }; }; then
4186  :
4187else
4188  echo "$as_me: failed program was:" >&5
4189sed 's/^/| /' conftest.$ac_ext >&5
4190
4191CXXFLAGS=
4192fi
4193rm -f conftest.err conftest.$ac_objext \
4194      conftest$ac_exeext conftest.$ac_ext
4195  if test -z "$CXXFLAGS"; then
4196    { 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
4197echo "$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;}
4198  fi
4199fi
4200
4201{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
4202echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
4203
4204
4205if test x"$MPICXX" = x; then :; else
4206  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
4207echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
4208  CXX="$MPICXX"
4209fi
4210
4211# correct the LD variable in a mingw build with MS or intel compiler
4212case "$CXX" in
4213  clang* ) ;;
4214  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4215    case $build in
4216  *-mingw*)
4217    if test "${LD+set}" = set; then :; else
4218      LD=link
4219    fi
4220    ;;
4221 esac
4222 case $enable_doscompile in
4223   msvc)
4224     if test "x${LD+set}" = xset; then :; else
4225       LD=link
4226     fi
4227     ;;
4228 esac
4229
4230    ;;
4231esac
4232
4233ac_ext=c
4234ac_cpp='$CPP $CPPFLAGS'
4235ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4236ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4237ac_compiler_gnu=$ac_cv_c_compiler_gnu
4238
4239
4240
4241# Initialize automake
4242{
4243
4244
4245
4246# START
4247
4248coin_disable_shared=no
4249# Test if force_shared has been set
4250if test "x" = xforce_shared; then
4251  if test x$enable_shared = xno; then
4252    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4253echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4254   { (exit 1); exit 1; }; }
4255  fi
4256  enable_shared=yes;
4257else
4258  # On Cygwin and AIX, building DLLs doesn't work
4259  case $build in
4260    *-cygwin*)
4261      coin_disable_shared=yes
4262      platform=Cygwin
4263    ;;
4264    *-aix*)
4265      coin_disable_shared=yes
4266      platform=AIX
4267    ;;
4268    *-mingw*)
4269      coin_disable_shared=yes
4270      platform="Msys"
4271#      case "$CXX" in
4272#        cl*)
4273#          coin_disable_shared=yes
4274#          platform="Msys with cl"
4275#      ;;
4276#      esac
4277    ;;
4278  esac
4279fi
4280if test x"$coin_disable_shared" = xyes; then
4281  if test x"$enable_shared" = xyes; then
4282    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
4283echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
4284  else
4285    # we don't disable shared, because it was not selected anyway
4286    coin_disable_shared=no
4287  fi
4288  enable_shared=no
4289fi
4290# By default, we only want the shared objects to be compiled
4291# Check whether --enable-static or --disable-static was given.
4292if test "${enable_static+set}" = set; then
4293  enableval="$enable_static"
4294  p=${PACKAGE-default}
4295    case $enableval in
4296    yes) enable_static=yes ;;
4297    no) enable_static=no ;;
4298    *)
4299     enable_static=no
4300      # Look at the argument we got.  We use all the common list separators.
4301      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4302      for pkg in $enableval; do
4303        IFS="$lt_save_ifs"
4304        if test "X$pkg" = "X$p"; then
4305          enable_static=yes
4306        fi
4307      done
4308      IFS="$lt_save_ifs"
4309      ;;
4310    esac
4311else
4312  enable_static=no
4313fi;
4314
4315
4316
4317
4318# Initialize automake
4319echo "$as_me:$LINENO: checking for egrep" >&5
4320echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4321if test "${ac_cv_prog_egrep+set}" = set; then
4322  echo $ECHO_N "(cached) $ECHO_C" >&6
4323else
4324  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4325    then ac_cv_prog_egrep='grep -E'
4326    else ac_cv_prog_egrep='egrep'
4327    fi
4328fi
4329echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4330echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4331 EGREP=$ac_cv_prog_egrep
4332
4333
4334echo "$as_me:$LINENO: checking whether ln -s works" >&5
4335echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4336LN_S=$as_ln_s
4337if test "$LN_S" = "ln -s"; then
4338  echo "$as_me:$LINENO: result: yes" >&5
4339echo "${ECHO_T}yes" >&6
4340else
4341  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4342echo "${ECHO_T}no, using $LN_S" >&6
4343fi
4344
4345am__api_version="1.9"
4346# Find a good install program.  We prefer a C program (faster),
4347# so one script is as good as another.  But avoid the broken or
4348# incompatible versions:
4349# SysV /etc/install, /usr/sbin/install
4350# SunOS /usr/etc/install
4351# IRIX /sbin/install
4352# AIX /bin/install
4353# AmigaOS /C/install, which installs bootblocks on floppy discs
4354# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4355# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4356# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4357# OS/2's system install, which has a completely different semantic
4358# ./install, which can be erroneously created by make from ./install.sh.
4359echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4360echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4361if test -z "$INSTALL"; then
4362if test "${ac_cv_path_install+set}" = set; then
4363  echo $ECHO_N "(cached) $ECHO_C" >&6
4364else
4365  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4366for as_dir in $PATH
4367do
4368  IFS=$as_save_IFS
4369  test -z "$as_dir" && as_dir=.
4370  # Account for people who put trailing slashes in PATH elements.
4371case $as_dir/ in
4372  ./ | .// | /cC/* | \
4373  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4374  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4375  /usr/ucb/* ) ;;
4376  *)
4377    # OSF1 and SCO ODT 3.0 have their own names for install.
4378    # Don't use installbsd from OSF since it installs stuff as root
4379    # by default.
4380    for ac_prog in ginstall scoinst install; do
4381      for ac_exec_ext in '' $ac_executable_extensions; do
4382        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4383          if test $ac_prog = install &&
4384            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4385            # AIX install.  It has an incompatible calling convention.
4386            :
4387          elif test $ac_prog = install &&
4388            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4389            # program-specific install script used by HP pwplus--don't use.
4390            :
4391          else
4392            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4393            break 3
4394          fi
4395        fi
4396      done
4397    done
4398    ;;
4399esac
4400done
4401
4402
4403fi
4404  if test "${ac_cv_path_install+set}" = set; then
4405    INSTALL=$ac_cv_path_install
4406  else
4407    # As a last resort, use the slow shell script.  We don't cache a
4408    # path for INSTALL within a source directory, because that will
4409    # break other packages using the cache if that directory is
4410    # removed, or if the path is relative.
4411    INSTALL=$ac_install_sh
4412  fi
4413fi
4414echo "$as_me:$LINENO: result: $INSTALL" >&5
4415echo "${ECHO_T}$INSTALL" >&6
4416
4417# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4418# It thinks the first close brace ends the variable substitution.
4419test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4420
4421test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4422
4423test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4424
4425echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4426echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4427# Just in case
4428sleep 1
4429echo timestamp > conftest.file
4430# Do `set' in a subshell so we don't clobber the current shell's
4431# arguments.  Must try -L first in case configure is actually a
4432# symlink; some systems play weird games with the mod time of symlinks
4433# (eg FreeBSD returns the mod time of the symlink's containing
4434# directory).
4435if (
4436   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4437   if test "$*" = "X"; then
4438      # -L didn't work.
4439      set X `ls -t $srcdir/configure conftest.file`
4440   fi
4441   rm -f conftest.file
4442   if test "$*" != "X $srcdir/configure conftest.file" \
4443      && test "$*" != "X conftest.file $srcdir/configure"; then
4444
4445      # If neither matched, then we have a broken ls.  This can happen
4446      # if, for instance, CONFIG_SHELL is bash and it inherits a
4447      # broken ls alias from the environment.  This has actually
4448      # happened.  Such a system could not be considered "sane".
4449      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4450alias in your environment" >&5
4451echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4452alias in your environment" >&2;}
4453   { (exit 1); exit 1; }; }
4454   fi
4455
4456   test "$2" = conftest.file
4457   )
4458then
4459   # Ok.
4460   :
4461else
4462   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4463Check your system clock" >&5
4464echo "$as_me: error: newly created file is older than distributed files!
4465Check your system clock" >&2;}
4466   { (exit 1); exit 1; }; }
4467fi
4468echo "$as_me:$LINENO: result: yes" >&5
4469echo "${ECHO_T}yes" >&6
4470test "$program_prefix" != NONE &&
4471  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4472# Use a double $ so make ignores it.
4473test "$program_suffix" != NONE &&
4474  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4475# Double any \ or $.  echo might interpret backslashes.
4476# By default was `s,x,x', remove it if useless.
4477cat <<\_ACEOF >conftest.sed
4478s/[\\$]/&&/g;s/;s,x,x,$//
4479_ACEOF
4480program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4481rm conftest.sed
4482
4483# expand $ac_aux_dir to an absolute path
4484am_aux_dir=`cd $ac_aux_dir && pwd`
4485
4486test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4487# Use eval to expand $SHELL
4488if eval "$MISSING --run true"; then
4489  am_missing_run="$MISSING --run "
4490else
4491  am_missing_run=
4492  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4493echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4494fi
4495
4496if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4497  # We used to keeping the `.' as first argument, in order to
4498  # allow $(mkdir_p) to be used without argument.  As in
4499  #   $(mkdir_p) $(somedir)
4500  # where $(somedir) is conditionally defined.  However this is wrong
4501  # for two reasons:
4502  #  1. if the package is installed by a user who cannot write `.'
4503  #     make install will fail,
4504  #  2. the above comment should most certainly read
4505  #     $(mkdir_p) $(DESTDIR)$(somedir)
4506  #     so it does not work when $(somedir) is undefined and
4507  #     $(DESTDIR) is not.
4508  #  To support the latter case, we have to write
4509  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4510  #  so the `.' trick is pointless.
4511  mkdir_p='mkdir -p --'
4512else
4513  # On NextStep and OpenStep, the `mkdir' command does not
4514  # recognize any option.  It will interpret all options as
4515  # directories to create, and then abort because `.' already
4516  # exists.
4517  for d in ./-p ./--version;
4518  do
4519    test -d $d && rmdir $d
4520  done
4521  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4522  if test -f "$ac_aux_dir/mkinstalldirs"; then
4523    mkdir_p='$(mkinstalldirs)'
4524  else
4525    mkdir_p='$(install_sh) -d'
4526  fi
4527fi
4528
4529for ac_prog in gawk mawk nawk awk
4530do
4531  # Extract the first word of "$ac_prog", so it can be a program name with args.
4532set dummy $ac_prog; ac_word=$2
4533echo "$as_me:$LINENO: checking for $ac_word" >&5
4534echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4535if test "${ac_cv_prog_AWK+set}" = set; then
4536  echo $ECHO_N "(cached) $ECHO_C" >&6
4537else
4538  if test -n "$AWK"; then
4539  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4540else
4541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4542for as_dir in $PATH
4543do
4544  IFS=$as_save_IFS
4545  test -z "$as_dir" && as_dir=.
4546  for ac_exec_ext in '' $ac_executable_extensions; do
4547  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4548    ac_cv_prog_AWK="$ac_prog"
4549    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4550    break 2
4551  fi
4552done
4553done
4554
4555fi
4556fi
4557AWK=$ac_cv_prog_AWK
4558if test -n "$AWK"; then
4559  echo "$as_me:$LINENO: result: $AWK" >&5
4560echo "${ECHO_T}$AWK" >&6
4561else
4562  echo "$as_me:$LINENO: result: no" >&5
4563echo "${ECHO_T}no" >&6
4564fi
4565
4566  test -n "$AWK" && break
4567done
4568
4569echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4570echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4571set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4572if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4573  echo $ECHO_N "(cached) $ECHO_C" >&6
4574else
4575  cat >conftest.make <<\_ACEOF
4576all:
4577        @echo 'ac_maketemp="$(MAKE)"'
4578_ACEOF
4579# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4580eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4581if test -n "$ac_maketemp"; then
4582  eval ac_cv_prog_make_${ac_make}_set=yes
4583else
4584  eval ac_cv_prog_make_${ac_make}_set=no
4585fi
4586rm -f conftest.make
4587fi
4588if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4589  echo "$as_me:$LINENO: result: yes" >&5
4590echo "${ECHO_T}yes" >&6
4591  SET_MAKE=
4592else
4593  echo "$as_me:$LINENO: result: no" >&5
4594echo "${ECHO_T}no" >&6
4595  SET_MAKE="MAKE=${MAKE-make}"
4596fi
4597
4598rm -rf .tst 2>/dev/null
4599mkdir .tst 2>/dev/null
4600if test -d .tst; then
4601  am__leading_dot=.
4602else
4603  am__leading_dot=_
4604fi
4605rmdir .tst 2>/dev/null
4606
4607DEPDIR="${am__leading_dot}deps"
4608
4609          ac_config_commands="$ac_config_commands depfiles"
4610
4611
4612am_make=${MAKE-make}
4613cat > confinc << 'END'
4614am__doit:
4615        @echo done
4616.PHONY: am__doit
4617END
4618# If we don't find an include directive, just comment out the code.
4619echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4620echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4621am__include="#"
4622am__quote=
4623_am_result=none
4624# First try GNU make style include.
4625echo "include confinc" > confmf
4626# We grep out `Entering directory' and `Leaving directory'
4627# messages which can occur if `w' ends up in MAKEFLAGS.
4628# In particular we don't look at `^make:' because GNU make might
4629# be invoked under some other name (usually "gmake"), in which
4630# case it prints its new name instead of `make'.
4631if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4632   am__include=include
4633   am__quote=
4634   _am_result=GNU
4635fi
4636# Now try BSD make style include.
4637if test "$am__include" = "#"; then
4638   echo '.include "confinc"' > confmf
4639   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4640      am__include=.include
4641      am__quote="\""
4642      _am_result=BSD
4643   fi
4644fi
4645
4646
4647echo "$as_me:$LINENO: result: $_am_result" >&5
4648echo "${ECHO_T}$_am_result" >&6
4649rm -f confinc confmf
4650
4651# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4652if test "${enable_dependency_tracking+set}" = set; then
4653  enableval="$enable_dependency_tracking"
4654
4655fi;
4656if test "x$enable_dependency_tracking" != xno; then
4657  am_depcomp="$ac_aux_dir/depcomp"
4658  AMDEPBACKSLASH='\'
4659fi
4660
4661
4662if test "x$enable_dependency_tracking" != xno; then
4663  AMDEP_TRUE=
4664  AMDEP_FALSE='#'
4665else
4666  AMDEP_TRUE='#'
4667  AMDEP_FALSE=
4668fi
4669
4670
4671
4672
4673
4674
4675# AC_MSG_NOTICE([Beginning automake initialisation.])
4676# Stuff for automake
4677# test to see if srcdir already configured
4678if test "`cd $srcdir && pwd`" != "`pwd`" &&
4679   test -f $srcdir/config.status; then
4680  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4681echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4682   { (exit 1); exit 1; }; }
4683fi
4684
4685# test whether we have cygpath
4686if test -z "$CYGPATH_W"; then
4687  if (cygpath --version) >/dev/null 2>/dev/null; then
4688    CYGPATH_W='cygpath -w'
4689  else
4690    CYGPATH_W=echo
4691  fi
4692fi
4693
4694
4695# Define the identity of the package.
4696 PACKAGE='thirdpartyscip'
4697 VERSION='1.2.0'
4698
4699
4700cat >>confdefs.h <<_ACEOF
4701#define PACKAGE "$PACKAGE"
4702_ACEOF
4703
4704
4705cat >>confdefs.h <<_ACEOF
4706#define VERSION "$VERSION"
4707_ACEOF
4708
4709# Some tools Automake needs.
4710
4711ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4712
4713
4714AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4715
4716
4717AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4718
4719
4720AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4721
4722
4723MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4724
4725install_sh=${install_sh-"$am_aux_dir/install-sh"}
4726
4727# Installed binaries are usually stripped using `strip' when the user
4728# run `make install-strip'.  However `strip' might not be the right
4729# tool to use in cross-compilation environments, therefore Automake
4730# will honor the `STRIP' environment variable to overrule this program.
4731if test "$cross_compiling" != no; then
4732  if test -n "$ac_tool_prefix"; then
4733  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4734set dummy ${ac_tool_prefix}strip; ac_word=$2
4735echo "$as_me:$LINENO: checking for $ac_word" >&5
4736echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4737if test "${ac_cv_prog_STRIP+set}" = set; then
4738  echo $ECHO_N "(cached) $ECHO_C" >&6
4739else
4740  if test -n "$STRIP"; then
4741  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4742else
4743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4744for as_dir in $PATH
4745do
4746  IFS=$as_save_IFS
4747  test -z "$as_dir" && as_dir=.
4748  for ac_exec_ext in '' $ac_executable_extensions; do
4749  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4750    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4751    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4752    break 2
4753  fi
4754done
4755done
4756
4757fi
4758fi
4759STRIP=$ac_cv_prog_STRIP
4760if test -n "$STRIP"; then
4761  echo "$as_me:$LINENO: result: $STRIP" >&5
4762echo "${ECHO_T}$STRIP" >&6
4763else
4764  echo "$as_me:$LINENO: result: no" >&5
4765echo "${ECHO_T}no" >&6
4766fi
4767
4768fi
4769if test -z "$ac_cv_prog_STRIP"; then
4770  ac_ct_STRIP=$STRIP
4771  # Extract the first word of "strip", so it can be a program name with args.
4772set dummy strip; ac_word=$2
4773echo "$as_me:$LINENO: checking for $ac_word" >&5
4774echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4775if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4776  echo $ECHO_N "(cached) $ECHO_C" >&6
4777else
4778  if test -n "$ac_ct_STRIP"; then
4779  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4780else
4781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4782for as_dir in $PATH
4783do
4784  IFS=$as_save_IFS
4785  test -z "$as_dir" && as_dir=.
4786  for ac_exec_ext in '' $ac_executable_extensions; do
4787  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4788    ac_cv_prog_ac_ct_STRIP="strip"
4789    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4790    break 2
4791  fi
4792done
4793done
4794
4795  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4796fi
4797fi
4798ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4799if test -n "$ac_ct_STRIP"; then
4800  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4801echo "${ECHO_T}$ac_ct_STRIP" >&6
4802else
4803  echo "$as_me:$LINENO: result: no" >&5
4804echo "${ECHO_T}no" >&6
4805fi
4806
4807  STRIP=$ac_ct_STRIP
4808else
4809  STRIP="$ac_cv_prog_STRIP"
4810fi
4811
4812fi
4813INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4814
4815# We need awk for the "check" target.  The system "awk" is bad on
4816# some platforms.
4817# Always define AMTAR for backward compatibility.
4818
4819AMTAR=${AMTAR-"${am_missing_run}tar"}
4820
4821am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4822
4823
4824
4825
4826depcc="$CC"   am_compiler_list=
4827
4828echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4829echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4830if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4831  echo $ECHO_N "(cached) $ECHO_C" >&6
4832else
4833  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4834  # We make a subdir and do the tests there.  Otherwise we can end up
4835  # making bogus files that we don't know about and never remove.  For
4836  # instance it was reported that on HP-UX the gcc test will end up
4837  # making a dummy file named `D' -- because `-MD' means `put the output
4838  # in D'.
4839  mkdir conftest.dir
4840  # Copy depcomp to subdir because otherwise we won't find it if we're
4841  # using a relative directory.
4842  cp "$am_depcomp" conftest.dir
4843  cd conftest.dir
4844  # We will build objects and dependencies in a subdirectory because
4845  # it helps to detect inapplicable dependency modes.  For instance
4846  # both Tru64's cc and ICC support -MD to output dependencies as a
4847  # side effect of compilation, but ICC will put the dependencies in
4848  # the current directory while Tru64 will put them in the object
4849  # directory.
4850  mkdir sub
4851
4852  am_cv_CC_dependencies_compiler_type=none
4853  if test "$am_compiler_list" = ""; then
4854     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4855  fi
4856  for depmode in $am_compiler_list; do
4857    # Setup a source with many dependencies, because some compilers
4858    # like to wrap large dependency lists on column 80 (with \), and
4859    # we should not choose a depcomp mode which is confused by this.
4860    #
4861    # We need to recreate these files for each test, as the compiler may
4862    # overwrite some of them when testing with obscure command lines.
4863    # This happens at least with the AIX C compiler.
4864    : > sub/conftest.c
4865    for i in 1 2 3 4 5 6; do
4866      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4867      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4868      # Solaris 8's {/usr,}/bin/sh.
4869      touch sub/conftst$i.h
4870    done
4871    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4872
4873    case $depmode in
4874    nosideeffect)
4875      # after this tag, mechanisms are not by side-effect, so they'll
4876      # only be used when explicitly requested
4877      if test "x$enable_dependency_tracking" = xyes; then
4878        continue
4879      else
4880        break
4881      fi
4882      ;;
4883    none) break ;;
4884    esac
4885    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4886    # mode.  It turns out that the SunPro C++ compiler does not properly
4887    # handle `-M -o', and we need to detect this.
4888    if depmode=$depmode \
4889       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4890       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4891       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4892         >/dev/null 2>conftest.err &&
4893       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4894       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4895       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4896      # icc doesn't choke on unknown options, it will just issue warnings
4897      # or remarks (even with -Werror).  So we grep stderr for any message
4898      # that says an option was ignored or not supported.
4899      # When given -MP, icc 7.0 and 7.1 complain thusly:
4900      #   icc: Command line warning: ignoring option '-M'; no argument required
4901      # The diagnosis changed in icc 8.0:
4902      #   icc: Command line remark: option '-MP' not supported
4903      if (grep 'ignoring option' conftest.err ||
4904          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4905        am_cv_CC_dependencies_compiler_type=$depmode
4906        break
4907      fi
4908    fi
4909  done
4910
4911  cd ..
4912  rm -rf conftest.dir
4913else
4914  am_cv_CC_dependencies_compiler_type=none
4915fi
4916
4917fi
4918echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4919echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4920CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4921
4922
4923
4924if
4925  test "x$enable_dependency_tracking" != xno \
4926  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4927  am__fastdepCC_TRUE=
4928  am__fastdepCC_FALSE='#'
4929else
4930  am__fastdepCC_TRUE='#'
4931  am__fastdepCC_FALSE=
4932fi
4933
4934
4935depcc="$CXX"  am_compiler_list=
4936
4937echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4938echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4939if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4940  echo $ECHO_N "(cached) $ECHO_C" >&6
4941else
4942  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4943  # We make a subdir and do the tests there.  Otherwise we can end up
4944  # making bogus files that we don't know about and never remove.  For
4945  # instance it was reported that on HP-UX the gcc test will end up
4946  # making a dummy file named `D' -- because `-MD' means `put the output
4947  # in D'.
4948  mkdir conftest.dir
4949  # Copy depcomp to subdir because otherwise we won't find it if we're
4950  # using a relative directory.
4951  cp "$am_depcomp" conftest.dir
4952  cd conftest.dir
4953  # We will build objects and dependencies in a subdirectory because
4954  # it helps to detect inapplicable dependency modes.  For instance
4955  # both Tru64's cc and ICC support -MD to output dependencies as a
4956  # side effect of compilation, but ICC will put the dependencies in
4957  # the current directory while Tru64 will put them in the object
4958  # directory.
4959  mkdir sub
4960
4961  am_cv_CXX_dependencies_compiler_type=none
4962  if test "$am_compiler_list" = ""; then
4963     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4964  fi
4965  for depmode in $am_compiler_list; do
4966    # Setup a source with many dependencies, because some compilers
4967    # like to wrap large dependency lists on column 80 (with \), and
4968    # we should not choose a depcomp mode which is confused by this.
4969    #
4970    # We need to recreate these files for each test, as the compiler may
4971    # overwrite some of them when testing with obscure command lines.
4972    # This happens at least with the AIX C compiler.
4973    : > sub/conftest.c
4974    for i in 1 2 3 4 5 6; do
4975      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4976      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4977      # Solaris 8's {/usr,}/bin/sh.
4978      touch sub/conftst$i.h
4979    done
4980    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4981
4982    case $depmode in
4983    nosideeffect)
4984      # after this tag, mechanisms are not by side-effect, so they'll
4985      # only be used when explicitly requested
4986      if test "x$enable_dependency_tracking" = xyes; then
4987        continue
4988      else
4989        break
4990      fi
4991      ;;
4992    none) break ;;
4993    esac
4994    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4995    # mode.  It turns out that the SunPro C++ compiler does not properly
4996    # handle `-M -o', and we need to detect this.
4997    if depmode=$depmode \
4998       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4999       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5000       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5001         >/dev/null 2>conftest.err &&
5002       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5003       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5004       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5005      # icc doesn't choke on unknown options, it will just issue warnings
5006      # or remarks (even with -Werror).  So we grep stderr for any message
5007      # that says an option was ignored or not supported.
5008      # When given -MP, icc 7.0 and 7.1 complain thusly:
5009      #   icc: Command line warning: ignoring option '-M'; no argument required
5010      # The diagnosis changed in icc 8.0:
5011      #   icc: Command line remark: option '-MP' not supported
5012      if (grep 'ignoring option' conftest.err ||
5013          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5014        am_cv_CXX_dependencies_compiler_type=$depmode
5015        break
5016      fi
5017    fi
5018  done
5019
5020  cd ..
5021  rm -rf conftest.dir
5022else
5023  am_cv_CXX_dependencies_compiler_type=none
5024fi
5025
5026fi
5027echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5028echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5029CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5030
5031
5032
5033if
5034  test "x$enable_dependency_tracking" != xno \
5035  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5036  am__fastdepCXX_TRUE=
5037  am__fastdepCXX_FALSE='#'
5038else
5039  am__fastdepCXX_TRUE='#'
5040  am__fastdepCXX_FALSE=
5041fi
5042
5043
5044
5045echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5046echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5047    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5048if test "${enable_maintainer_mode+set}" = set; then
5049  enableval="$enable_maintainer_mode"
5050  USE_MAINTAINER_MODE=$enableval
5051else
5052  USE_MAINTAINER_MODE=no
5053fi;
5054  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5055echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5056
5057
5058if test $USE_MAINTAINER_MODE = yes; then
5059  MAINTAINER_MODE_TRUE=
5060  MAINTAINER_MODE_FALSE='#'
5061else
5062  MAINTAINER_MODE_TRUE='#'
5063  MAINTAINER_MODE_FALSE=
5064fi
5065
5066  MAINT=$MAINTAINER_MODE_TRUE
5067
5068
5069
5070coin_have_externals=no
5071if test "$enable_maintainer_mode" = yes; then
5072
5073  # If maintainer mode is chosen, we make sure that the correct versions
5074  # of the tools are used, and that we know where libtool.m4 is (to
5075  # recreate acinclude.m4)
5076
5077
5078  LIBTOOLM4=
5079  # Normally, $HOME
5080  AUTOTOOLS_DFLT=$HOME
5081
5082  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5083echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5084if test "${ac_cv_use_correct_autotools+set}" = set; then
5085  echo $ECHO_N "(cached) $ECHO_C" >&6
5086else
5087  ac_cv_use_correct_autotools=check
5088fi
5089echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5090echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5091
5092  if test $ac_cv_use_correct_autotools = check; then
5093    ac_cv_use_correct_autotools=yes
5094    # Check if we have autoconf
5095    # Extract the first word of "autoconf", so it can be a program name with args.
5096set dummy autoconf; ac_word=$2
5097echo "$as_me:$LINENO: checking for $ac_word" >&5
5098echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5099if test "${ac_cv_prog_have_autoconf+set}" = set; then
5100  echo $ECHO_N "(cached) $ECHO_C" >&6
5101else
5102  if test -n "$have_autoconf"; then
5103  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5104else
5105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5106for as_dir in $PATH
5107do
5108  IFS=$as_save_IFS
5109  test -z "$as_dir" && as_dir=.
5110  for ac_exec_ext in '' $ac_executable_extensions; do
5111  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5112    ac_cv_prog_have_autoconf="yes"
5113    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5114    break 2
5115  fi
5116done
5117done
5118
5119  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5120fi
5121fi
5122have_autoconf=$ac_cv_prog_have_autoconf
5123if test -n "$have_autoconf"; then
5124  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5125echo "${ECHO_T}$have_autoconf" >&6
5126else
5127  echo "$as_me:$LINENO: result: no" >&5
5128echo "${ECHO_T}no" >&6
5129fi
5130
5131    if test $have_autoconf = no; then
5132      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5133echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5134   { (exit 1); exit 1; }; }
5135    fi
5136
5137    # Check whether autoconf is the correct version
5138    correct_version='2.59'
5139    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5140    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5141echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5142    autoconf --version > confauto.out 2>&1
5143    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5144      echo "$as_me:$LINENO: result: yes" >&5
5145echo "${ECHO_T}yes" >&6
5146    else
5147      rm -f confauto.out
5148      echo "$as_me:$LINENO: result: no" >&5
5149echo "${ECHO_T}no" >&6
5150      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5151echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5152   { (exit 1); exit 1; }; }
5153    fi
5154    rm -f confauto.out
5155
5156    # Check if the executable autoconf is picked up from the correct location
5157    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5158echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5159    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5160    autoconf_dir=`cd $autoconf_dir; pwd`
5161    if test x$AUTOTOOLS_DIR = x; then
5162      want_dir=$AUTOTOOLS_DFLT/bin
5163    else
5164      want_dir=$AUTOTOOLS_DIR/bin
5165    fi
5166    if test $autoconf_dir = `cd $want_dir; pwd`; then
5167      echo "$as_me:$LINENO: result: yes" >&5
5168echo "${ECHO_T}yes" >&6
5169    else
5170      rm -f confauto.out
5171      echo "$as_me:$LINENO: result: no" >&5
5172echo "${ECHO_T}no" >&6
5173      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5174echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5175   { (exit 1); exit 1; }; }
5176    fi
5177
5178    # Check if we have automake
5179    # Extract the first word of "automake", so it can be a program name with args.
5180set dummy automake; ac_word=$2
5181echo "$as_me:$LINENO: checking for $ac_word" >&5
5182echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5183if test "${ac_cv_prog_have_automake+set}" = set; then
5184  echo $ECHO_N "(cached) $ECHO_C" >&6
5185else
5186  if test -n "$have_automake"; then
5187  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5188else
5189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5190for as_dir in $PATH
5191do
5192  IFS=$as_save_IFS
5193  test -z "$as_dir" && as_dir=.
5194  for ac_exec_ext in '' $ac_executable_extensions; do
5195  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5196    ac_cv_prog_have_automake="yes"
5197    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5198    break 2
5199  fi
5200done
5201done
5202
5203  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5204fi
5205fi
5206have_automake=$ac_cv_prog_have_automake
5207if test -n "$have_automake"; then
5208  echo "$as_me:$LINENO: result: $have_automake" >&5
5209echo "${ECHO_T}$have_automake" >&6
5210else
5211  echo "$as_me:$LINENO: result: no" >&5
5212echo "${ECHO_T}no" >&6
5213fi
5214
5215    if test $have_automake = no; then
5216      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5217echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5218   { (exit 1); exit 1; }; }
5219    fi
5220
5221    # Check whether automake is the correct version
5222    correct_version='1.9.6'
5223    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5224    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5225echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5226    automake --version > confauto.out 2>&1
5227    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5228      echo "$as_me:$LINENO: result: yes" >&5
5229echo "${ECHO_T}yes" >&6
5230    else
5231      rm -f confauto.out
5232      echo "$as_me:$LINENO: result: no" >&5
5233echo "${ECHO_T}no" >&6
5234      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5235echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5236   { (exit 1); exit 1; }; }
5237    fi
5238    rm -f confauto.out
5239
5240    # Check if the executable automake is picked up from the correct location
5241    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5242echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5243    automake_dir=`which automake | sed -e 's=/automake=='`
5244    automake_dir=`cd $automake_dir; pwd`
5245    if test x$AUTOTOOLS_DIR = x; then
5246      want_dir=$AUTOTOOLS_DFLT/bin
5247    else
5248      want_dir=$AUTOTOOLS_DIR/bin
5249    fi
5250    if test $automake_dir = `cd $want_dir; pwd`; then
5251      echo "$as_me:$LINENO: result: yes" >&5
5252echo "${ECHO_T}yes" >&6
5253    else
5254      rm -f confauto.out
5255      echo "$as_me:$LINENO: result: no" >&5
5256echo "${ECHO_T}no" >&6
5257      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5258echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5259   { (exit 1); exit 1; }; }
5260    fi
5261
5262    # Check if this is the correct version of libtool (with escaped dots)
5263    if test x$AUTOTOOLS_DIR = x; then
5264      want_dir=$AUTOTOOLS_DFLT/share
5265    else
5266      want_dir=$AUTOTOOLS_DIR/share
5267    fi
5268    correct_version='1.5.22'
5269    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5270    if test -r $want_dir/libtool/ltmain.sh; then
5271  have_ltmain=yes
5272  :
5273else
5274  have_ltmain=no
5275  :
5276fi
5277
5278    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5279echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5280    if test $have_ltmain = yes; then
5281    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5282        echo "$as_me:$LINENO: result: yes" >&5
5283echo "${ECHO_T}yes" >&6
5284      else
5285        echo "$as_me:$LINENO: result: no" >&5
5286echo "${ECHO_T}no" >&6
5287        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5288echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5289   { (exit 1); exit 1; }; }
5290      fi
5291    else
5292      echo "$as_me:$LINENO: result: no" >&5
5293echo "${ECHO_T}no" >&6
5294      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5295echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5296   { (exit 1); exit 1; }; }
5297    fi
5298  fi
5299
5300  # Check if we can find the libtool file
5301  if test x$AUTOTOOLS_DIR = x; then
5302    want_dir=$AUTOTOOLS_DFLT/share
5303  else
5304    want_dir=$AUTOTOOLS_DIR/share
5305  fi
5306  if test -r $want_dir/aclocal/libtool.m4; then
5307  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5308  :
5309else
5310  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5311echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5312   { (exit 1); exit 1; }; }
5313  :
5314fi
5315
5316
5317  # Check if we have an Dependencies file
5318  if test -r $srcdir/Dependencies; then
5319    coin_have_externals=yes
5320  fi
5321  # Check if subversion is installed and understands https
5322  # Extract the first word of "svn", so it can be a program name with args.
5323set dummy svn; ac_word=$2
5324echo "$as_me:$LINENO: checking for $ac_word" >&5
5325echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5326if test "${ac_cv_prog_have_svn+set}" = set; then
5327  echo $ECHO_N "(cached) $ECHO_C" >&6
5328else
5329  if test -n "$have_svn"; then
5330  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5331else
5332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5333for as_dir in $PATH
5334do
5335  IFS=$as_save_IFS
5336  test -z "$as_dir" && as_dir=.
5337  for ac_exec_ext in '' $ac_executable_extensions; do
5338  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5339    ac_cv_prog_have_svn="yes"
5340    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5341    break 2
5342  fi
5343done
5344done
5345
5346  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5347fi
5348fi
5349have_svn=$ac_cv_prog_have_svn
5350if test -n "$have_svn"; then
5351  echo "$as_me:$LINENO: result: $have_svn" >&5
5352echo "${ECHO_T}$have_svn" >&6
5353else
5354  echo "$as_me:$LINENO: result: no" >&5
5355echo "${ECHO_T}no" >&6
5356fi
5357
5358  if test x$have_svn = xyes; then
5359    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5360echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5361if test "${ac_cv_svn_understands_https+set}" = set; then
5362  echo $ECHO_N "(cached) $ECHO_C" >&6
5363else
5364  svn --version > confauto.out 2>&1
5365                    if $EGREP https confauto.out >/dev/null 2>&1; then
5366                      ac_cv_svn_understands_https=yes
5367                    else
5368                      ac_cv_svn_understands_https=no
5369                      have_svn=no
5370                      ac_cv_prog_have_svn=no
5371                    fi
5372                    rm -f confauto.out
5373fi
5374echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5375echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5376  fi
5377
5378  # Find the location of the BuildTools directory
5379  BUILDTOOLSDIR=
5380  if test -r $srcdir/BuildTools/coin.m4; then
5381    BUILDTOOLSDIR=$srcdir/BuildTools
5382  else
5383    if test -r $srcdir/../BuildTools/coin.m4; then
5384      BUILDTOOLSDIR=$srcdir/../BuildTools
5385    else
5386      if test -r $srcdir/../../BuildTools/coin.m4; then
5387        BUILDTOOLSDIR=$srcdir/../../BuildTools
5388      else
5389        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5390echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5391   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
5392      fi
5393    fi
5394  fi
5395
5396
5397  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
5398  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
5399    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
5400  fi
5401
5402  # The following variable is set to the name of the directory where
5403  # the autotool scripts are located
5404
5405  AUX_DIR=$ac_aux_dir
5406fi
5407
5408# helpful variable for the base directory of this package
5409abs_source_dir=`cd $srcdir; pwd`
5410
5411
5412# Stuff for example Makefiles
5413if test x$prefix = xNONE; then
5414  full_prefix=$ac_default_prefix
5415else
5416  full_prefix=$prefix
5417fi
5418full_prefix=`cd $full_prefix ; pwd`
5419
5420abs_lib_dir=$full_prefix/lib
5421
5422abs_include_dir=$full_prefix/include
5423
5424abs_bin_dir=$full_prefix/bin
5425
5426
5427
5428if test $coin_have_externals = yes && test x$have_svn = xyes; then
5429  HAVE_EXTERNALS_TRUE=
5430  HAVE_EXTERNALS_FALSE='#'
5431else
5432  HAVE_EXTERNALS_TRUE='#'
5433  HAVE_EXTERNALS_FALSE=
5434fi
5435
5436
5437# AC_MSG_NOTICE([End automake initialisation.])
5438
5439
5440
5441LIBTOOL=
5442if test -r ../libtool; then
5443  coin_config_dir=..
5444  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5445fi
5446if test "x$LIBTOOL" = x; then
5447  if test -r ../../libtool; then
5448    coin_config_dir=../..
5449    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5450  fi
5451fi
5452
5453if test "x$LIBTOOL" = x; then
5454# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5455  # Stuff for libtool
5456  # Check whether --enable-shared or --disable-shared was given.
5457if test "${enable_shared+set}" = set; then
5458  enableval="$enable_shared"
5459  p=${PACKAGE-default}
5460    case $enableval in
5461    yes) enable_shared=yes ;;
5462    no) enable_shared=no ;;
5463    *)
5464      enable_shared=no
5465      # Look at the argument we got.  We use all the common list separators.
5466      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5467      for pkg in $enableval; do
5468        IFS="$lt_save_ifs"
5469        if test "X$pkg" = "X$p"; then
5470          enable_shared=yes
5471        fi
5472      done
5473      IFS="$lt_save_ifs"
5474      ;;
5475    esac
5476else
5477  enable_shared=yes
5478fi;
5479
5480# Check whether --enable-fast-install or --disable-fast-install was given.
5481if test "${enable_fast_install+set}" = set; then
5482  enableval="$enable_fast_install"
5483  p=${PACKAGE-default}
5484    case $enableval in
5485    yes) enable_fast_install=yes ;;
5486    no) enable_fast_install=no ;;
5487    *)
5488      enable_fast_install=no
5489      # Look at the argument we got.  We use all the common list separators.
5490      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5491      for pkg in $enableval; do
5492        IFS="$lt_save_ifs"
5493        if test "X$pkg" = "X$p"; then
5494          enable_fast_install=yes
5495        fi
5496      done
5497      IFS="$lt_save_ifs"
5498      ;;
5499    esac
5500else
5501  enable_fast_install=yes
5502fi;
5503
5504echo "$as_me:$LINENO: checking host system type" >&5
5505echo $ECHO_N "checking host system type... $ECHO_C" >&6
5506if test "${ac_cv_host+set}" = set; then
5507  echo $ECHO_N "(cached) $ECHO_C" >&6
5508else
5509  ac_cv_host_alias=$host_alias
5510test -z "$ac_cv_host_alias" &&
5511  ac_cv_host_alias=$ac_cv_build_alias
5512ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5513  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5514echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5515   { (exit 1); exit 1; }; }
5516
5517fi
5518echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5519echo "${ECHO_T}$ac_cv_host" >&6
5520host=$ac_cv_host
5521host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5522host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5523host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5524
5525
5526echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5527echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5528if test "${lt_cv_path_SED+set}" = set; then
5529  echo $ECHO_N "(cached) $ECHO_C" >&6
5530else
5531  # Loop through the user's path and test for sed and gsed.
5532# Then use that list of sed's as ones to test for truncation.
5533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5534for as_dir in $PATH
5535do
5536  IFS=$as_save_IFS
5537  test -z "$as_dir" && as_dir=.
5538  for lt_ac_prog in sed gsed; do
5539    for ac_exec_ext in '' $ac_executable_extensions; do
5540      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5541        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5542      fi
5543    done
5544  done
5545done
5546lt_ac_max=0
5547lt_ac_count=0
5548# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5549# along with /bin/sed that truncates output.
5550for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5551  test ! -f $lt_ac_sed && continue
5552  cat /dev/null > conftest.in
5553  lt_ac_count=0
5554  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5555  # Check for GNU sed and select it if it is found.
5556  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5557    lt_cv_path_SED=$lt_ac_sed
5558    break
5559  fi
5560  while true; do
5561    cat conftest.in conftest.in >conftest.tmp
5562    mv conftest.tmp conftest.in
5563    cp conftest.in conftest.nl
5564    echo >>conftest.nl
5565    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5566    cmp -s conftest.out conftest.nl || break
5567    # 10000 chars as input seems more than enough
5568    test $lt_ac_count -gt 10 && break
5569    lt_ac_count=`expr $lt_ac_count + 1`
5570    if test $lt_ac_count -gt $lt_ac_max; then
5571      lt_ac_max=$lt_ac_count
5572      lt_cv_path_SED=$lt_ac_sed
5573    fi
5574  done
5575done
5576
5577fi
5578
5579SED=$lt_cv_path_SED
5580echo "$as_me:$LINENO: result: $SED" >&5
5581echo "${ECHO_T}$SED" >&6
5582
5583
5584# Check whether --with-gnu-ld or --without-gnu-ld was given.
5585if test "${with_gnu_ld+set}" = set; then
5586  withval="$with_gnu_ld"
5587  test "$withval" = no || with_gnu_ld=yes
5588else
5589  with_gnu_ld=no
5590fi;
5591ac_prog=ld
5592if test "$GCC" = yes; then
5593  # Check if gcc -print-prog-name=ld gives a path.
5594  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5595echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5596  case $host in
5597  *-*-mingw*)
5598    # gcc leaves a trailing carriage return which upsets mingw
5599    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5600  *)
5601    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5602  esac
5603  case $ac_prog in
5604    # Accept absolute paths.
5605    [\\/]* | ?:[\\/]*)
5606      re_direlt='/[^/][^/]*/\.\./'
5607      # Canonicalize the pathname of ld
5608      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5609      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5610        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5611      done
5612      test -z "$LD" && LD="$ac_prog"
5613      ;;
5614  "")
5615    # If it fails, then pretend we aren't using GCC.
5616    ac_prog=ld
5617    ;;
5618  *)
5619    # If it is relative, then search for the first ld in PATH.
5620    with_gnu_ld=unknown
5621    ;;
5622  esac
5623elif test "$with_gnu_ld" = yes; then
5624  echo "$as_me:$LINENO: checking for GNU ld" >&5
5625echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5626else
5627  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5628echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5629fi
5630if test "${lt_cv_path_LD+set}" = set; then
5631  echo $ECHO_N "(cached) $ECHO_C" >&6
5632else
5633  if test -z "$LD"; then
5634  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5635  for ac_dir in $PATH; do
5636    IFS="$lt_save_ifs"
5637    test -z "$ac_dir" && ac_dir=.
5638    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5639      lt_cv_path_LD="$ac_dir/$ac_prog"
5640      # Check to see if the program is GNU ld.  I'd rather use --version,
5641      # but apparently some variants of GNU ld only accept -v.
5642      # Break only if it was the GNU/non-GNU ld that we prefer.
5643      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5644      *GNU* | *'with BFD'*)
5645        test "$with_gnu_ld" != no && break
5646        ;;
5647      *)
5648        test "$with_gnu_ld" != yes && break
5649        ;;
5650      esac
5651    fi
5652  done
5653  IFS="$lt_save_ifs"
5654else
5655  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5656fi
5657fi
5658
5659LD="$lt_cv_path_LD"
5660if test -n "$LD"; then
5661  echo "$as_me:$LINENO: result: $LD" >&5
5662echo "${ECHO_T}$LD" >&6
5663else
5664  echo "$as_me:$LINENO: result: no" >&5
5665echo "${ECHO_T}no" >&6
5666fi
5667test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5668echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5669   { (exit 1); exit 1; }; }
5670echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5671echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5672if test "${lt_cv_prog_gnu_ld+set}" = set; then
5673  echo $ECHO_N "(cached) $ECHO_C" >&6
5674else
5675  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5676case `$LD -v 2>&1 </dev/null` in
5677*GNU* | *'with BFD'*)
5678  lt_cv_prog_gnu_ld=yes
5679  ;;
5680*)
5681  lt_cv_prog_gnu_ld=no
5682  ;;
5683esac
5684fi
5685echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5686echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5687with_gnu_ld=$lt_cv_prog_gnu_ld
5688
5689
5690echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5691echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5692if test "${lt_cv_ld_reload_flag+set}" = set; then
5693  echo $ECHO_N "(cached) $ECHO_C" >&6
5694else
5695  lt_cv_ld_reload_flag='-r'
5696fi
5697echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5698echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5699reload_flag=$lt_cv_ld_reload_flag
5700case $reload_flag in
5701"" | " "*) ;;
5702*) reload_flag=" $reload_flag" ;;
5703esac
5704reload_cmds='$LD$reload_flag -o $output$reload_objs'
5705case $host_os in
5706  darwin*)
5707    if test "$GCC" = yes; then
5708      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5709    else
5710      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5711    fi
5712    ;;
5713esac
5714
5715echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5716echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5717if test "${lt_cv_path_NM+set}" = set; then
5718  echo $ECHO_N "(cached) $ECHO_C" >&6
5719else
5720  if test -n "$NM"; then
5721  # Let the user override the test.
5722  lt_cv_path_NM="$NM"
5723else
5724  lt_nm_to_check="${ac_tool_prefix}nm"
5725  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5726    lt_nm_to_check="$lt_nm_to_check nm"
5727  fi
5728  for lt_tmp_nm in $lt_nm_to_check; do
5729    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5730    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5731      IFS="$lt_save_ifs"
5732      test -z "$ac_dir" && ac_dir=.
5733      tmp_nm="$ac_dir/$lt_tmp_nm"
5734      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5735        # Check to see if the nm accepts a BSD-compat flag.
5736        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5737        #   nm: unknown option "B" ignored
5738        # Tru64's nm complains that /dev/null is an invalid object file
5739        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5740        */dev/null* | *'Invalid file or object type'*)
5741          lt_cv_path_NM="$tmp_nm -B"
5742          break
5743          ;;
5744        *)
5745          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5746          */dev/null*)
5747            lt_cv_path_NM="$tmp_nm -p"
5748            break
5749            ;;
5750          *)
5751            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5752            continue # so that we can try to find one that supports BSD flags
5753            ;;
5754          esac
5755          ;;
5756        esac
5757      fi
5758    done
5759    IFS="$lt_save_ifs"
5760  done
5761  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5762fi
5763fi
5764echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5765echo "${ECHO_T}$lt_cv_path_NM" >&6
5766NM="$lt_cv_path_NM"
5767
5768echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5769echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5770if test "${lt_cv_deplibs_check_method+set}" = set; then
5771  echo $ECHO_N "(cached) $ECHO_C" >&6
5772else
5773  lt_cv_file_magic_cmd='$MAGIC_CMD'
5774lt_cv_file_magic_test_file=
5775lt_cv_deplibs_check_method='unknown'
5776# Need to set the preceding variable on all platforms that support
5777# interlibrary dependencies.
5778# 'none' -- dependencies not supported.
5779# `unknown' -- same as none, but documents that we really don't know.
5780# 'pass_all' -- all dependencies passed with no checks.
5781# 'test_compile' -- check by making test program.
5782# 'file_magic [[regex]]' -- check by looking for files in library path
5783# which responds to the $file_magic_cmd with a given extended regex.
5784# If you have `file' or equivalent on your system and you're not sure
5785# whether `pass_all' will *always* work, you probably want this one.
5786
5787case $host_os in
5788aix4* | aix5*)
5789  lt_cv_deplibs_check_method=pass_all
5790  ;;
5791
5792beos*)
5793  lt_cv_deplibs_check_method=pass_all
5794  ;;
5795
5796bsdi[45]*)
5797  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5798  lt_cv_file_magic_cmd='/usr/bin/file -L'
5799  lt_cv_file_magic_test_file=/shlib/libc.so
5800  ;;
5801
5802cygwin*)
5803  # func_win32_libid is a shell function defined in ltmain.sh
5804  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5805  lt_cv_file_magic_cmd='func_win32_libid'
5806  ;;
5807
5808mingw* | pw32*)
5809  # Base MSYS/MinGW do not provide the 'file' command needed by
5810  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5811  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5812  lt_cv_file_magic_cmd='$OBJDUMP -f'
5813  ;;
5814
5815darwin* | rhapsody*)
5816  lt_cv_deplibs_check_method=pass_all
5817  ;;
5818
5819freebsd* | kfreebsd*-gnu | dragonfly*)
5820  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5821    case $host_cpu in
5822    i*86 )
5823      # Not sure whether the presence of OpenBSD here was a mistake.
5824      # Let's accept both of them until this is cleared up.
5825      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5826      lt_cv_file_magic_cmd=/usr/bin/file
5827      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5828      ;;
5829    esac
5830  else
5831    lt_cv_deplibs_check_method=pass_all
5832  fi
5833  ;;
5834
5835gnu*)
5836  lt_cv_deplibs_check_method=pass_all
5837  ;;
5838
5839hpux10.20* | hpux11*)
5840  lt_cv_file_magic_cmd=/usr/bin/file
5841  case $host_cpu in
5842  ia64*)
5843    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5844    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5845    ;;
5846  hppa*64*)
5847    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]'
5848    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5849    ;;
5850  *)
5851    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5852    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5853    ;;
5854  esac
5855  ;;
5856
5857interix3*)
5858  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5859  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5860  ;;
5861
5862irix5* | irix6* | nonstopux*)
5863  case $LD in
5864  *-32|*"-32 ") libmagic=32-bit;;
5865  *-n32|*"-n32 ") libmagic=N32;;
5866  *-64|*"-64 ") libmagic=64-bit;;
5867  *) libmagic=never-match;;
5868  esac
5869  lt_cv_deplibs_check_method=pass_all
5870  ;;
5871
5872# This must be Linux ELF.
5873linux*)
5874  lt_cv_deplibs_check_method=pass_all
5875  ;;
5876
5877netbsd*)
5878  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5879    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5880  else
5881    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5882  fi
5883  ;;
5884
5885newos6*)
5886  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5887  lt_cv_file_magic_cmd=/usr/bin/file
5888  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5889  ;;
5890
5891nto-qnx*)
5892  lt_cv_deplibs_check_method=unknown
5893  ;;
5894
5895openbsd*)
5896  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5897    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5898  else
5899    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5900  fi
5901  ;;
5902
5903osf3* | osf4* | osf5*)
5904  lt_cv_deplibs_check_method=pass_all
5905  ;;
5906
5907solaris*)
5908  lt_cv_deplibs_check_method=pass_all
5909  ;;
5910
5911sysv4 | sysv4.3*)
5912  case $host_vendor in
5913  motorola)
5914    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]'
5915    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5916    ;;
5917  ncr)
5918    lt_cv_deplibs_check_method=pass_all
5919    ;;
5920  sequent)
5921    lt_cv_file_magic_cmd='/bin/file'
5922    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5923    ;;
5924  sni)
5925    lt_cv_file_magic_cmd='/bin/file'
5926    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5927    lt_cv_file_magic_test_file=/lib/libc.so
5928    ;;
5929  siemens)
5930    lt_cv_deplibs_check_method=pass_all
5931    ;;
5932  pc)
5933    lt_cv_deplibs_check_method=pass_all
5934    ;;
5935  esac
5936  ;;
5937
5938sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5939  lt_cv_deplibs_check_method=pass_all
5940  ;;
5941esac
5942
5943fi
5944echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5945echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5946file_magic_cmd=$lt_cv_file_magic_cmd
5947deplibs_check_method=$lt_cv_deplibs_check_method
5948test -z "$deplibs_check_method" && deplibs_check_method=unknown
5949
5950
5951
5952
5953# If no C compiler was specified, use CC.
5954LTCC=${LTCC-"$CC"}
5955
5956# If no C compiler flags were specified, use CFLAGS.
5957LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5958
5959# Allow CC to be a program name with arguments.
5960compiler=$CC
5961
5962# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5963if test "${enable_libtool_lock+set}" = set; then
5964  enableval="$enable_libtool_lock"
5965
5966fi;
5967test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5968
5969# Some flags need to be propagated to the compiler or linker for good
5970# libtool support.
5971case $host in
5972ia64-*-hpux*)
5973  # Find out which ABI we are using.
5974  echo 'int i;' > conftest.$ac_ext
5975  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5976  (eval $ac_compile) 2>&5
5977  ac_status=$?
5978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979  (exit $ac_status); }; then
5980    case `/usr/bin/file conftest.$ac_objext` in
5981    *ELF-32*)
5982      HPUX_IA64_MODE="32"
5983      ;;
5984    *ELF-64*)
5985      HPUX_IA64_MODE="64"
5986      ;;
5987    esac
5988  fi
5989  rm -rf conftest*
5990  ;;
5991*-*-irix6*)
5992  # Find out which ABI we are using.
5993  echo '#line 5993 "configure"' > conftest.$ac_ext
5994  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5995  (eval $ac_compile) 2>&5
5996  ac_status=$?
5997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998  (exit $ac_status); }; then
5999   if test "$lt_cv_prog_gnu_ld" = yes; then
6000    case `/usr/bin/file conftest.$ac_objext` in
6001    *32-bit*)
6002      LD="${LD-ld} -melf32bsmip"
6003      ;;
6004    *N32*)
6005      LD="${LD-ld} -melf32bmipn32"
6006      ;;
6007    *64-bit*)
6008      LD="${LD-ld} -melf64bmip"
6009      ;;
6010    esac
6011   else
6012    case `/usr/bin/file conftest.$ac_objext` in
6013    *32-bit*)
6014      LD="${LD-ld} -32"
6015      ;;
6016    *N32*)
6017      LD="${LD-ld} -n32"
6018      ;;
6019    *64-bit*)
6020      LD="${LD-ld} -64"
6021      ;;
6022    esac
6023   fi
6024  fi
6025  rm -rf conftest*
6026  ;;
6027
6028x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6029  # Find out which ABI we are using.
6030  echo 'int i;' > conftest.$ac_ext
6031  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6032  (eval $ac_compile) 2>&5
6033  ac_status=$?
6034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6035  (exit $ac_status); }; then
6036    case `/usr/bin/file conftest.o` in
6037    *32-bit*)
6038      case $host in
6039        x86_64-*linux*)
6040          LD="${LD-ld} -m elf_i386"
6041          ;;
6042        ppc64-*linux*|powerpc64-*linux*)
6043          LD="${LD-ld} -m elf32ppclinux"
6044          ;;
6045        s390x-*linux*)
6046          LD="${LD-ld} -m elf_s390"
6047          ;;
6048        sparc64-*linux*)
6049          LD="${LD-ld} -m elf32_sparc"
6050          ;;
6051      esac
6052      ;;
6053    *64-bit*)
6054      case $host in
6055        x86_64-*linux*)
6056          LD="${LD-ld} -m elf_x86_64"
6057          ;;
6058        ppc*-*linux*|powerpc*-*linux*)
6059          LD="${LD-ld} -m elf64ppc"
6060          ;;
6061        s390*-*linux*)
6062          LD="${LD-ld} -m elf64_s390"
6063          ;;
6064        sparc*-*linux*)
6065          LD="${LD-ld} -m elf64_sparc"
6066          ;;
6067      esac
6068      ;;
6069    esac
6070  fi
6071  rm -rf conftest*
6072  ;;
6073
6074*-*-sco3.2v5*)
6075  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6076  SAVE_CFLAGS="$CFLAGS"
6077  CFLAGS="$CFLAGS -belf"
6078  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6079echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6080if test "${lt_cv_cc_needs_belf+set}" = set; then
6081  echo $ECHO_N "(cached) $ECHO_C" >&6
6082else
6083  ac_ext=c
6084ac_cpp='$CPP $CPPFLAGS'
6085ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6086ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6087ac_compiler_gnu=$ac_cv_c_compiler_gnu
6088
6089     cat >conftest.$ac_ext <<_ACEOF
6090/* confdefs.h.  */
6091_ACEOF
6092cat confdefs.h >>conftest.$ac_ext
6093cat >>conftest.$ac_ext <<_ACEOF
6094/* end confdefs.h.  */
6095
6096int
6097main ()
6098{
6099
6100  ;
6101  return 0;
6102}
6103_ACEOF
6104rm -f conftest.$ac_objext conftest$ac_exeext
6105if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6106  (eval $ac_link) 2>conftest.er1
6107  ac_status=$?
6108  grep -v '^ *+' conftest.er1 >conftest.err
6109  rm -f conftest.er1
6110  cat conftest.err >&5
6111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112  (exit $ac_status); } &&
6113         { ac_try='test -z "$ac_c_werror_flag"
6114                         || test ! -s conftest.err'
6115  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6116  (eval $ac_try) 2>&5
6117  ac_status=$?
6118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119  (exit $ac_status); }; } &&
6120         { ac_try='test -s conftest$ac_exeext'
6121  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6122  (eval $ac_try) 2>&5
6123  ac_status=$?
6124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125  (exit $ac_status); }; }; then
6126  lt_cv_cc_needs_belf=yes
6127else
6128  echo "$as_me: failed program was:" >&5
6129sed 's/^/| /' conftest.$ac_ext >&5
6130
6131lt_cv_cc_needs_belf=no
6132fi
6133rm -f conftest.err conftest.$ac_objext \
6134      conftest$ac_exeext conftest.$ac_ext
6135     ac_ext=c
6136ac_cpp='$CPP $CPPFLAGS'
6137ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6138ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6139ac_compiler_gnu=$ac_cv_c_compiler_gnu
6140
6141fi
6142echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6143echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6144  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6145    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6146    CFLAGS="$SAVE_CFLAGS"
6147  fi
6148  ;;
6149sparc*-*solaris*)
6150  # Find out which ABI we are using.
6151  echo 'int i;' > conftest.$ac_ext
6152  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6153  (eval $ac_compile) 2>&5
6154  ac_status=$?
6155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156  (exit $ac_status); }; then
6157    case `/usr/bin/file conftest.o` in
6158    *64-bit*)
6159      case $lt_cv_prog_gnu_ld in
6160      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6161      *)    LD="${LD-ld} -64" ;;
6162      esac
6163      ;;
6164    esac
6165  fi
6166  rm -rf conftest*
6167  ;;
6168
6169
6170esac
6171
6172need_locks="$enable_libtool_lock"
6173
6174
6175ac_ext=c
6176ac_cpp='$CPP $CPPFLAGS'
6177ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6178ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6179ac_compiler_gnu=$ac_cv_c_compiler_gnu
6180echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6181echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6182# On Suns, sometimes $CPP names a directory.
6183if test -n "$CPP" && test -d "$CPP"; then
6184  CPP=
6185fi
6186if test -z "$CPP"; then
6187  if test "${ac_cv_prog_CPP+set}" = set; then
6188  echo $ECHO_N "(cached) $ECHO_C" >&6
6189else
6190      # Double quotes because CPP needs to be expanded
6191    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6192    do
6193      ac_preproc_ok=false
6194for ac_c_preproc_warn_flag in '' yes
6195do
6196  # Use a header file that comes with gcc, so configuring glibc
6197  # with a fresh cross-compiler works.
6198  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6199  # <limits.h> exists even on freestanding compilers.
6200  # On the NeXT, cc -E runs the code through the compiler's parser,
6201  # not just through cpp. "Syntax error" is here to catch this case.
6202  cat >conftest.$ac_ext <<_ACEOF
6203/* confdefs.h.  */
6204_ACEOF
6205cat confdefs.h >>conftest.$ac_ext
6206cat >>conftest.$ac_ext <<_ACEOF
6207/* end confdefs.h.  */
6208#ifdef __STDC__
6209# include <limits.h>
6210#else
6211# include <assert.h>
6212#endif
6213                     Syntax error
6214_ACEOF
6215if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6216  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6217  ac_status=$?
6218  grep -v '^ *+' conftest.er1 >conftest.err
6219  rm -f conftest.er1
6220  cat conftest.err >&5
6221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222  (exit $ac_status); } >/dev/null; then
6223  if test -s conftest.err; then
6224    ac_cpp_err=$ac_c_preproc_warn_flag
6225    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6226  else
6227    ac_cpp_err=
6228  fi
6229else
6230  ac_cpp_err=yes
6231fi
6232if test -z "$ac_cpp_err"; then
6233  :
6234else
6235  echo "$as_me: failed program was:" >&5
6236sed 's/^/| /' conftest.$ac_ext >&5
6237
6238  # Broken: fails on valid input.
6239continue
6240fi
6241rm -f conftest.err conftest.$ac_ext
6242
6243  # OK, works on sane cases.  Now check whether non-existent headers
6244  # can be detected and how.
6245  cat >conftest.$ac_ext <<_ACEOF
6246/* confdefs.h.  */
6247_ACEOF
6248cat confdefs.h >>conftest.$ac_ext
6249cat >>conftest.$ac_ext <<_ACEOF
6250/* end confdefs.h.  */
6251#include <ac_nonexistent.h>
6252_ACEOF
6253if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6254  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6255  ac_status=$?
6256  grep -v '^ *+' conftest.er1 >conftest.err
6257  rm -f conftest.er1
6258  cat conftest.err >&5
6259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260  (exit $ac_status); } >/dev/null; then
6261  if test -s conftest.err; then
6262    ac_cpp_err=$ac_c_preproc_warn_flag
6263    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6264  else
6265    ac_cpp_err=
6266  fi
6267else
6268  ac_cpp_err=yes
6269fi
6270if test -z "$ac_cpp_err"; then
6271  # Broken: success on invalid input.
6272continue
6273else
6274  echo "$as_me: failed program was:" >&5
6275sed 's/^/| /' conftest.$ac_ext >&5
6276
6277  # Passes both tests.
6278ac_preproc_ok=:
6279break
6280fi
6281rm -f conftest.err conftest.$ac_ext
6282
6283done
6284# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6285rm -f conftest.err conftest.$ac_ext
6286if $ac_preproc_ok; then
6287  break
6288fi
6289
6290    done
6291    ac_cv_prog_CPP=$CPP
6292
6293fi
6294  CPP=$ac_cv_prog_CPP
6295else
6296  ac_cv_prog_CPP=$CPP
6297fi
6298echo "$as_me:$LINENO: result: $CPP" >&5
6299echo "${ECHO_T}$CPP" >&6
6300ac_preproc_ok=false
6301for ac_c_preproc_warn_flag in '' yes
6302do
6303  # Use a header file that comes with gcc, so configuring glibc
6304  # with a fresh cross-compiler works.
6305  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6306  # <limits.h> exists even on freestanding compilers.
6307  # On the NeXT, cc -E runs the code through the compiler's parser,
6308  # not just through cpp. "Syntax error" is here to catch this case.
6309  cat >conftest.$ac_ext <<_ACEOF
6310/* confdefs.h.  */
6311_ACEOF
6312cat confdefs.h >>conftest.$ac_ext
6313cat >>conftest.$ac_ext <<_ACEOF
6314/* end confdefs.h.  */
6315#ifdef __STDC__
6316# include <limits.h>
6317#else
6318# include <assert.h>
6319#endif
6320                     Syntax error
6321_ACEOF
6322if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6323  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6324  ac_status=$?
6325  grep -v '^ *+' conftest.er1 >conftest.err
6326  rm -f conftest.er1
6327  cat conftest.err >&5
6328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6329  (exit $ac_status); } >/dev/null; then
6330  if test -s conftest.err; then
6331    ac_cpp_err=$ac_c_preproc_warn_flag
6332    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6333  else
6334    ac_cpp_err=
6335  fi
6336else
6337  ac_cpp_err=yes
6338fi
6339if test -z "$ac_cpp_err"; then
6340  :
6341else
6342  echo "$as_me: failed program was:" >&5
6343sed 's/^/| /' conftest.$ac_ext >&5
6344
6345  # Broken: fails on valid input.
6346continue
6347fi
6348rm -f conftest.err conftest.$ac_ext
6349
6350  # OK, works on sane cases.  Now check whether non-existent headers
6351  # can be detected and how.
6352  cat >conftest.$ac_ext <<_ACEOF
6353/* confdefs.h.  */
6354_ACEOF
6355cat confdefs.h >>conftest.$ac_ext
6356cat >>conftest.$ac_ext <<_ACEOF
6357/* end confdefs.h.  */
6358#include <ac_nonexistent.h>
6359_ACEOF
6360if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6361  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6362  ac_status=$?
6363  grep -v '^ *+' conftest.er1 >conftest.err
6364  rm -f conftest.er1
6365  cat conftest.err >&5
6366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367  (exit $ac_status); } >/dev/null; then
6368  if test -s conftest.err; then
6369    ac_cpp_err=$ac_c_preproc_warn_flag
6370    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6371  else
6372    ac_cpp_err=
6373  fi
6374else
6375  ac_cpp_err=yes
6376fi
6377if test -z "$ac_cpp_err"; then
6378  # Broken: success on invalid input.
6379continue
6380else
6381  echo "$as_me: failed program was:" >&5
6382sed 's/^/| /' conftest.$ac_ext >&5
6383
6384  # Passes both tests.
6385ac_preproc_ok=:
6386break
6387fi
6388rm -f conftest.err conftest.$ac_ext
6389
6390done
6391# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6392rm -f conftest.err conftest.$ac_ext
6393if $ac_preproc_ok; then
6394  :
6395else
6396  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6397See \`config.log' for more details." >&5
6398echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6399See \`config.log' for more details." >&2;}
6400   { (exit 1); exit 1; }; }
6401fi
6402
6403ac_ext=c
6404ac_cpp='$CPP $CPPFLAGS'
6405ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6406ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6407ac_compiler_gnu=$ac_cv_c_compiler_gnu
6408
6409
6410echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6411echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6412if test "${ac_cv_header_stdc+set}" = set; then
6413  echo $ECHO_N "(cached) $ECHO_C" >&6
6414else
6415  cat >conftest.$ac_ext <<_ACEOF
6416/* confdefs.h.  */
6417_ACEOF
6418cat confdefs.h >>conftest.$ac_ext
6419cat >>conftest.$ac_ext <<_ACEOF
6420/* end confdefs.h.  */
6421#include <stdlib.h>
6422#include <stdarg.h>
6423#include <string.h>
6424#include <float.h>
6425
6426int
6427main ()
6428{
6429
6430  ;
6431  return 0;
6432}
6433_ACEOF
6434rm -f conftest.$ac_objext
6435if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6436  (eval $ac_compile) 2>conftest.er1
6437  ac_status=$?
6438  grep -v '^ *+' conftest.er1 >conftest.err
6439  rm -f conftest.er1
6440  cat conftest.err >&5
6441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6442  (exit $ac_status); } &&
6443         { ac_try='test -z "$ac_c_werror_flag"
6444                         || test ! -s conftest.err'
6445  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6446  (eval $ac_try) 2>&5
6447  ac_status=$?
6448  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449  (exit $ac_status); }; } &&
6450         { ac_try='test -s conftest.$ac_objext'
6451  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6452  (eval $ac_try) 2>&5
6453  ac_status=$?
6454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455  (exit $ac_status); }; }; then
6456  ac_cv_header_stdc=yes
6457else
6458  echo "$as_me: failed program was:" >&5
6459sed 's/^/| /' conftest.$ac_ext >&5
6460
6461ac_cv_header_stdc=no
6462fi
6463rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6464
6465if test $ac_cv_header_stdc = yes; then
6466  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6467  cat >conftest.$ac_ext <<_ACEOF
6468/* confdefs.h.  */
6469_ACEOF
6470cat confdefs.h >>conftest.$ac_ext
6471cat >>conftest.$ac_ext <<_ACEOF
6472/* end confdefs.h.  */
6473#include <string.h>
6474
6475_ACEOF
6476if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6477  $EGREP "memchr" >/dev/null 2>&1; then
6478  :
6479else
6480  ac_cv_header_stdc=no
6481fi
6482rm -f conftest*
6483
6484fi
6485
6486if test $ac_cv_header_stdc = yes; then
6487  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6488  cat >conftest.$ac_ext <<_ACEOF
6489/* confdefs.h.  */
6490_ACEOF
6491cat confdefs.h >>conftest.$ac_ext
6492cat >>conftest.$ac_ext <<_ACEOF
6493/* end confdefs.h.  */
6494#include <stdlib.h>
6495
6496_ACEOF
6497if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6498  $EGREP "free" >/dev/null 2>&1; then
6499  :
6500else
6501  ac_cv_header_stdc=no
6502fi
6503rm -f conftest*
6504
6505fi
6506
6507if test $ac_cv_header_stdc = yes; then
6508  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6509  if test "$cross_compiling" = yes; then
6510  :
6511else
6512  cat >conftest.$ac_ext <<_ACEOF
6513/* confdefs.h.  */
6514_ACEOF
6515cat confdefs.h >>conftest.$ac_ext
6516cat >>conftest.$ac_ext <<_ACEOF
6517/* end confdefs.h.  */
6518#include <ctype.h>
6519#if ((' ' & 0x0FF) == 0x020)
6520# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6521# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6522#else
6523# define ISLOWER(c) \
6524                   (('a' <= (c) && (c) <= 'i') \
6525                     || ('j' <= (c) && (c) <= 'r') \
6526                     || ('s' <= (c) && (c) <= 'z'))
6527# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6528#endif
6529
6530#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6531int
6532main ()
6533{
6534  int i;
6535  for (i = 0; i < 256; i++)
6536    if (XOR (islower (i), ISLOWER (i))
6537        || toupper (i) != TOUPPER (i))
6538      exit(2);
6539  exit (0);
6540}
6541_ACEOF
6542rm -f conftest$ac_exeext
6543if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6544  (eval $ac_link) 2>&5
6545  ac_status=$?
6546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6547  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6548  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6549  (eval $ac_try) 2>&5
6550  ac_status=$?
6551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552  (exit $ac_status); }; }; then
6553  :
6554else
6555  echo "$as_me: program exited with status $ac_status" >&5
6556echo "$as_me: failed program was:" >&5
6557sed 's/^/| /' conftest.$ac_ext >&5
6558
6559( exit $ac_status )
6560ac_cv_header_stdc=no
6561fi
6562rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6563fi
6564fi
6565fi
6566echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6567echo "${ECHO_T}$ac_cv_header_stdc" >&6
6568if test $ac_cv_header_stdc = yes; then
6569
6570cat >>confdefs.h <<\_ACEOF
6571#define STDC_HEADERS 1
6572_ACEOF
6573
6574fi
6575
6576# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6587                  inttypes.h stdint.h unistd.h
6588do
6589as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6590echo "$as_me:$LINENO: checking for $ac_header" >&5
6591echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6592if eval "test \"\${$as_ac_Header+set}\" = set"; then
6593  echo $ECHO_N "(cached) $ECHO_C" >&6
6594else
6595  cat >conftest.$ac_ext <<_ACEOF
6596/* confdefs.h.  */
6597_ACEOF
6598cat confdefs.h >>conftest.$ac_ext
6599cat >>conftest.$ac_ext <<_ACEOF
6600/* end confdefs.h.  */
6601$ac_includes_default
6602
6603#include <$ac_header>
6604_ACEOF
6605rm -f conftest.$ac_objext
6606if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6607  (eval $ac_compile) 2>conftest.er1
6608  ac_status=$?
6609  grep -v '^ *+' conftest.er1 >conftest.err
6610  rm -f conftest.er1
6611  cat conftest.err >&5
6612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613  (exit $ac_status); } &&
6614         { ac_try='test -z "$ac_c_werror_flag"
6615                         || test ! -s conftest.err'
6616  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6617  (eval $ac_try) 2>&5
6618  ac_status=$?
6619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620  (exit $ac_status); }; } &&
6621         { ac_try='test -s conftest.$ac_objext'
6622  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6623  (eval $ac_try) 2>&5
6624  ac_status=$?
6625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6626  (exit $ac_status); }; }; then
6627  eval "$as_ac_Header=yes"
6628else
6629  echo "$as_me: failed program was:" >&5
6630sed 's/^/| /' conftest.$ac_ext >&5
6631
6632eval "$as_ac_Header=no"
6633fi
6634rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6635fi
6636echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6637echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6638if test `eval echo '${'$as_ac_Header'}'` = yes; then
6639  cat >>confdefs.h <<_ACEOF
6640#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6641_ACEOF
6642
6643fi
6644
6645done
6646
6647
6648
6649for ac_header in dlfcn.h
6650do
6651as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6652if eval "test \"\${$as_ac_Header+set}\" = set"; then
6653  echo "$as_me:$LINENO: checking for $ac_header" >&5
6654echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6655if eval "test \"\${$as_ac_Header+set}\" = set"; then
6656  echo $ECHO_N "(cached) $ECHO_C" >&6
6657fi
6658echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6659echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6660else
6661  # Is the header compilable?
6662echo "$as_me:$LINENO: checking $ac_header usability" >&5
6663echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6664cat >conftest.$ac_ext <<_ACEOF
6665/* confdefs.h.  */
6666_ACEOF
6667cat confdefs.h >>conftest.$ac_ext
6668cat >>conftest.$ac_ext <<_ACEOF
6669/* end confdefs.h.  */
6670$ac_includes_default
6671#include <$ac_header>
6672_ACEOF
6673rm -f conftest.$ac_objext
6674if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6675  (eval $ac_compile) 2>conftest.er1
6676  ac_status=$?
6677  grep -v '^ *+' conftest.er1 >conftest.err
6678  rm -f conftest.er1
6679  cat conftest.err >&5
6680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6681  (exit $ac_status); } &&
6682         { ac_try='test -z "$ac_c_werror_flag"
6683                         || test ! -s conftest.err'
6684  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6685  (eval $ac_try) 2>&5
6686  ac_status=$?
6687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6688  (exit $ac_status); }; } &&
6689         { ac_try='test -s conftest.$ac_objext'
6690  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6691  (eval $ac_try) 2>&5
6692  ac_status=$?
6693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694  (exit $ac_status); }; }; then
6695  ac_header_compiler=yes
6696else
6697  echo "$as_me: failed program was:" >&5
6698sed 's/^/| /' conftest.$ac_ext >&5
6699
6700ac_header_compiler=no
6701fi
6702rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6703echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6704echo "${ECHO_T}$ac_header_compiler" >&6
6705
6706# Is the header present?
6707echo "$as_me:$LINENO: checking $ac_header presence" >&5
6708echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6709cat >conftest.$ac_ext <<_ACEOF
6710/* confdefs.h.  */
6711_ACEOF
6712cat confdefs.h >>conftest.$ac_ext
6713cat >>conftest.$ac_ext <<_ACEOF
6714/* end confdefs.h.  */
6715#include <$ac_header>
6716_ACEOF
6717if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6718  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6719  ac_status=$?
6720  grep -v '^ *+' conftest.er1 >conftest.err
6721  rm -f conftest.er1
6722  cat conftest.err >&5
6723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724  (exit $ac_status); } >/dev/null; then
6725  if test -s conftest.err; then
6726    ac_cpp_err=$ac_c_preproc_warn_flag
6727    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6728  else
6729    ac_cpp_err=
6730  fi
6731else
6732  ac_cpp_err=yes
6733fi
6734if test -z "$ac_cpp_err"; then
6735  ac_header_preproc=yes
6736else
6737  echo "$as_me: failed program was:" >&5
6738sed 's/^/| /' conftest.$ac_ext >&5
6739
6740  ac_header_preproc=no
6741fi
6742rm -f conftest.err conftest.$ac_ext
6743echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6744echo "${ECHO_T}$ac_header_preproc" >&6
6745
6746# So?  What about this header?
6747case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6748  yes:no: )
6749    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6750echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6751    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6752echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6753    ac_header_preproc=yes
6754    ;;
6755  no:yes:* )
6756    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6757echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6758    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6759echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6760    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6761echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6762    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6763echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6764    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6765echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6766    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6767echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6768    (
6769      cat <<\_ASBOX
6770## --------------------------------------------------------------- ##
6771## Report this to http://projects.coin-or.org/BuildTools/newticket ##
6772## --------------------------------------------------------------- ##
6773_ASBOX
6774    ) |
6775      sed "s/^/$as_me: WARNING:     /" >&2
6776    ;;
6777esac
6778echo "$as_me:$LINENO: checking for $ac_header" >&5
6779echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6780if eval "test \"\${$as_ac_Header+set}\" = set"; then
6781  echo $ECHO_N "(cached) $ECHO_C" >&6
6782else
6783  eval "$as_ac_Header=\$ac_header_preproc"
6784fi
6785echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6786echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6787
6788fi
6789if test `eval echo '${'$as_ac_Header'}'` = yes; then
6790  cat >>confdefs.h <<_ACEOF
6791#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6792_ACEOF
6793
6794fi
6795
6796done
6797
6798
6799
6800if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6801    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6802    (test "X$CXX" != "Xg++"))) ; then
6803  ac_ext=cc
6804ac_cpp='$CXXCPP $CPPFLAGS'
6805ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6806ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6807ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6808echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6809echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6810if test -z "$CXXCPP"; then
6811  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6812  echo $ECHO_N "(cached) $ECHO_C" >&6
6813else
6814      # Double quotes because CXXCPP needs to be expanded
6815    for CXXCPP in "$CXX -E" "/lib/cpp"
6816    do
6817      ac_preproc_ok=false
6818for ac_cxx_preproc_warn_flag in '' yes
6819do
6820  # Use a header file that comes with gcc, so configuring glibc
6821  # with a fresh cross-compiler works.
6822  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6823  # <limits.h> exists even on freestanding compilers.
6824  # On the NeXT, cc -E runs the code through the compiler's parser,
6825  # not just through cpp. "Syntax error" is here to catch this case.
6826  cat >conftest.$ac_ext <<_ACEOF
6827/* confdefs.h.  */
6828_ACEOF
6829cat confdefs.h >>conftest.$ac_ext
6830cat >>conftest.$ac_ext <<_ACEOF
6831/* end confdefs.h.  */
6832#ifdef __STDC__
6833# include <limits.h>
6834#else
6835# include <assert.h>
6836#endif
6837                     Syntax error
6838_ACEOF
6839if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6840  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6841  ac_status=$?
6842  grep -v '^ *+' conftest.er1 >conftest.err
6843  rm -f conftest.er1
6844  cat conftest.err >&5
6845  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6846  (exit $ac_status); } >/dev/null; then
6847  if test -s conftest.err; then
6848    ac_cpp_err=$ac_cxx_preproc_warn_flag
6849    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6850  else
6851    ac_cpp_err=
6852  fi
6853else
6854  ac_cpp_err=yes
6855fi
6856if test -z "$ac_cpp_err"; then
6857  :
6858else
6859  echo "$as_me: failed program was:" >&5
6860sed 's/^/| /' conftest.$ac_ext >&5
6861
6862  # Broken: fails on valid input.
6863continue
6864fi
6865rm -f conftest.err conftest.$ac_ext
6866
6867  # OK, works on sane cases.  Now check whether non-existent headers
6868  # can be detected and how.
6869  cat >conftest.$ac_ext <<_ACEOF
6870/* confdefs.h.  */
6871_ACEOF
6872cat confdefs.h >>conftest.$ac_ext
6873cat >>conftest.$ac_ext <<_ACEOF
6874/* end confdefs.h.  */
6875#include <ac_nonexistent.h>
6876_ACEOF
6877if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6878  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6879  ac_status=$?
6880  grep -v '^ *+' conftest.er1 >conftest.err
6881  rm -f conftest.er1
6882  cat conftest.err >&5
6883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6884  (exit $ac_status); } >/dev/null; then
6885  if test -s conftest.err; then
6886    ac_cpp_err=$ac_cxx_preproc_warn_flag
6887    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6888  else
6889    ac_cpp_err=
6890  fi
6891else
6892  ac_cpp_err=yes
6893fi
6894if test -z "$ac_cpp_err"; then
6895  # Broken: success on invalid input.
6896continue
6897else
6898  echo "$as_me: failed program was:" >&5
6899sed 's/^/| /' conftest.$ac_ext >&5
6900
6901  # Passes both tests.
6902ac_preproc_ok=:
6903break
6904fi
6905rm -f conftest.err conftest.$ac_ext
6906
6907done
6908# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6909rm -f conftest.err conftest.$ac_ext
6910if $ac_preproc_ok; then
6911  break
6912fi
6913
6914    done
6915    ac_cv_prog_CXXCPP=$CXXCPP
6916
6917fi
6918  CXXCPP=$ac_cv_prog_CXXCPP
6919else
6920  ac_cv_prog_CXXCPP=$CXXCPP
6921fi
6922echo "$as_me:$LINENO: result: $CXXCPP" >&5
6923echo "${ECHO_T}$CXXCPP" >&6
6924ac_preproc_ok=false
6925for ac_cxx_preproc_warn_flag in '' yes
6926do
6927  # Use a header file that comes with gcc, so configuring glibc
6928  # with a fresh cross-compiler works.
6929  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6930  # <limits.h> exists even on freestanding compilers.
6931  # On the NeXT, cc -E runs the code through the compiler's parser,
6932  # not just through cpp. "Syntax error" is here to catch this case.
6933  cat >conftest.$ac_ext <<_ACEOF
6934/* confdefs.h.  */
6935_ACEOF
6936cat confdefs.h >>conftest.$ac_ext
6937cat >>conftest.$ac_ext <<_ACEOF
6938/* end confdefs.h.  */
6939#ifdef __STDC__
6940# include <limits.h>
6941#else
6942# include <assert.h>
6943#endif
6944                     Syntax error
6945_ACEOF
6946if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6947  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6948  ac_status=$?
6949  grep -v '^ *+' conftest.er1 >conftest.err
6950  rm -f conftest.er1
6951  cat conftest.err >&5
6952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953  (exit $ac_status); } >/dev/null; then
6954  if test -s conftest.err; then
6955    ac_cpp_err=$ac_cxx_preproc_warn_flag
6956    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6957  else
6958    ac_cpp_err=
6959  fi
6960else
6961  ac_cpp_err=yes
6962fi
6963if test -z "$ac_cpp_err"; then
6964  :
6965else
6966  echo "$as_me: failed program was:" >&5
6967sed 's/^/| /' conftest.$ac_ext >&5
6968
6969  # Broken: fails on valid input.
6970continue
6971fi
6972rm -f conftest.err conftest.$ac_ext
6973
6974  # OK, works on sane cases.  Now check whether non-existent headers
6975  # can be detected and how.
6976  cat >conftest.$ac_ext <<_ACEOF
6977/* confdefs.h.  */
6978_ACEOF
6979cat confdefs.h >>conftest.$ac_ext
6980cat >>conftest.$ac_ext <<_ACEOF
6981/* end confdefs.h.  */
6982#include <ac_nonexistent.h>
6983_ACEOF
6984if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6985  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6986  ac_status=$?
6987  grep -v '^ *+' conftest.er1 >conftest.err
6988  rm -f conftest.er1
6989  cat conftest.err >&5
6990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991  (exit $ac_status); } >/dev/null; then
6992  if test -s conftest.err; then
6993    ac_cpp_err=$ac_cxx_preproc_warn_flag
6994    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6995  else
6996    ac_cpp_err=
6997  fi
6998else
6999  ac_cpp_err=yes
7000fi
7001if test -z "$ac_cpp_err"; then
7002  # Broken: success on invalid input.
7003continue
7004else
7005  echo "$as_me: failed program was:" >&5
7006sed 's/^/| /' conftest.$ac_ext >&5
7007
7008  # Passes both tests.
7009ac_preproc_ok=:
7010break
7011fi
7012rm -f conftest.err conftest.$ac_ext
7013
7014done
7015# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7016rm -f conftest.err conftest.$ac_ext
7017if $ac_preproc_ok; then
7018  :
7019else
7020  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7021See \`config.log' for more details." >&5
7022echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7023See \`config.log' for more details." >&2;}
7024   { (exit 1); exit 1; }; }
7025fi
7026
7027ac_ext=cc
7028ac_cpp='$CXXCPP $CPPFLAGS'
7029ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7030ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7031ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7032
7033fi
7034
7035ac_ext=f
7036ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7037ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7038ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7039if test -n "$ac_tool_prefix"; then
7040  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7041  do
7042    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7043set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7044echo "$as_me:$LINENO: checking for $ac_word" >&5
7045echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7046if test "${ac_cv_prog_F77+set}" = set; then
7047  echo $ECHO_N "(cached) $ECHO_C" >&6
7048else
7049  if test -n "$F77"; then
7050  ac_cv_prog_F77="$F77" # Let the user override the test.
7051else
7052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7053for as_dir in $PATH
7054do
7055  IFS=$as_save_IFS
7056  test -z "$as_dir" && as_dir=.
7057  for ac_exec_ext in '' $ac_executable_extensions; do
7058  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7059    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7060    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7061    break 2
7062  fi
7063done
7064done
7065
7066fi
7067fi
7068F77=$ac_cv_prog_F77
7069if test -n "$F77"; then
7070  echo "$as_me:$LINENO: result: $F77" >&5
7071echo "${ECHO_T}$F77" >&6
7072else
7073  echo "$as_me:$LINENO: result: no" >&5
7074echo "${ECHO_T}no" >&6
7075fi
7076
7077    test -n "$F77" && break
7078  done
7079fi
7080if test -z "$F77"; then
7081  ac_ct_F77=$F77
7082  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7083do
7084  # Extract the first word of "$ac_prog", so it can be a program name with args.
7085set dummy $ac_prog; ac_word=$2
7086echo "$as_me:$LINENO: checking for $ac_word" >&5
7087echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7088if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7089  echo $ECHO_N "(cached) $ECHO_C" >&6
7090else
7091  if test -n "$ac_ct_F77"; then
7092  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7093else
7094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7095for as_dir in $PATH
7096do
7097  IFS=$as_save_IFS
7098  test -z "$as_dir" && as_dir=.
7099  for ac_exec_ext in '' $ac_executable_extensions; do
7100  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7101    ac_cv_prog_ac_ct_F77="$ac_prog"
7102    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7103    break 2
7104  fi
7105done
7106done
7107
7108fi
7109fi
7110ac_ct_F77=$ac_cv_prog_ac_ct_F77
7111if test -n "$ac_ct_F77"; then
7112  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7113echo "${ECHO_T}$ac_ct_F77" >&6
7114else
7115  echo "$as_me:$LINENO: result: no" >&5
7116echo "${ECHO_T}no" >&6
7117fi
7118
7119  test -n "$ac_ct_F77" && break
7120done
7121
7122  F77=$ac_ct_F77
7123fi
7124
7125
7126# Provide some information about the compiler.
7127echo "$as_me:7127:" \
7128     "checking for Fortran 77 compiler version" >&5
7129ac_compiler=`set X $ac_compile; echo $2`
7130{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7131  (eval $ac_compiler --version </dev/null >&5) 2>&5
7132  ac_status=$?
7133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7134  (exit $ac_status); }
7135{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7136  (eval $ac_compiler -v </dev/null >&5) 2>&5
7137  ac_status=$?
7138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7139  (exit $ac_status); }
7140{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7141  (eval $ac_compiler -V </dev/null >&5) 2>&5
7142  ac_status=$?
7143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7144  (exit $ac_status); }
7145rm -f a.out
7146
7147# If we don't use `.F' as extension, the preprocessor is not run on the
7148# input file.  (Note that this only needs to work for GNU compilers.)
7149ac_save_ext=$ac_ext
7150ac_ext=F
7151echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7152echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
7153if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7154  echo $ECHO_N "(cached) $ECHO_C" >&6
7155else
7156  cat >conftest.$ac_ext <<_ACEOF
7157      program main
7158#ifndef __GNUC__
7159       choke me
7160#endif
7161
7162      end
7163_ACEOF
7164rm -f conftest.$ac_objext
7165if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7166  (eval $ac_compile) 2>conftest.er1
7167  ac_status=$?
7168  grep -v '^ *+' conftest.er1 >conftest.err
7169  rm -f conftest.er1
7170  cat conftest.err >&5
7171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7172  (exit $ac_status); } &&
7173         { ac_try='test -z "$ac_f77_werror_flag"
7174                         || test ! -s conftest.err'
7175  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7176  (eval $ac_try) 2>&5
7177  ac_status=$?
7178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7179  (exit $ac_status); }; } &&
7180         { ac_try='test -s conftest.$ac_objext'
7181  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7182  (eval $ac_try) 2>&5
7183  ac_status=$?
7184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185  (exit $ac_status); }; }; then
7186  ac_compiler_gnu=yes
7187else
7188  echo "$as_me: failed program was:" >&5
7189sed 's/^/| /' conftest.$ac_ext >&5
7190
7191ac_compiler_gnu=no
7192fi
7193rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7194ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7195
7196fi
7197echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7198echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7199ac_ext=$ac_save_ext
7200ac_test_FFLAGS=${FFLAGS+set}
7201ac_save_FFLAGS=$FFLAGS
7202FFLAGS=
7203echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7204echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7205if test "${ac_cv_prog_f77_g+set}" = set; then
7206  echo $ECHO_N "(cached) $ECHO_C" >&6
7207else
7208  FFLAGS=-g
7209cat >conftest.$ac_ext <<_ACEOF
7210      program main
7211
7212      end
7213_ACEOF
7214rm -f conftest.$ac_objext
7215if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7216  (eval $ac_compile) 2>conftest.er1
7217  ac_status=$?
7218  grep -v '^ *+' conftest.er1 >conftest.err
7219  rm -f conftest.er1
7220  cat conftest.err >&5
7221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7222  (exit $ac_status); } &&
7223         { ac_try='test -z "$ac_f77_werror_flag"
7224                         || test ! -s conftest.err'
7225  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7226  (eval $ac_try) 2>&5
7227  ac_status=$?
7228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7229  (exit $ac_status); }; } &&
7230         { ac_try='test -s conftest.$ac_objext'
7231  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7232  (eval $ac_try) 2>&5
7233  ac_status=$?
7234  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7235  (exit $ac_status); }; }; then
7236  ac_cv_prog_f77_g=yes
7237else
7238  echo "$as_me: failed program was:" >&5
7239sed 's/^/| /' conftest.$ac_ext >&5
7240
7241ac_cv_prog_f77_g=no
7242fi
7243rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7244
7245fi
7246echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7247echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7248if test "$ac_test_FFLAGS" = set; then
7249  FFLAGS=$ac_save_FFLAGS
7250elif test $ac_cv_prog_f77_g = yes; then
7251  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7252    FFLAGS="-g -O2"
7253  else
7254    FFLAGS="-g"
7255  fi
7256else
7257  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7258    FFLAGS="-O2"
7259  else
7260    FFLAGS=
7261  fi
7262fi
7263
7264G77=`test $ac_compiler_gnu = yes && echo yes`
7265ac_ext=c
7266ac_cpp='$CPP $CPPFLAGS'
7267ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7268ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7269ac_compiler_gnu=$ac_cv_c_compiler_gnu
7270
7271
7272
7273# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7274
7275# find the maximum length of command line arguments
7276echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7277echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7278if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7279  echo $ECHO_N "(cached) $ECHO_C" >&6
7280else
7281    i=0
7282  teststring="ABCD"
7283
7284  case $build_os in
7285  msdosdjgpp*)
7286    # On DJGPP, this test can blow up pretty badly due to problems in libc
7287    # (any single argument exceeding 2000 bytes causes a buffer overrun
7288    # during glob expansion).  Even if it were fixed, the result of this
7289    # check would be larger than it should be.
7290    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7291    ;;
7292
7293  gnu*)
7294    # Under GNU Hurd, this test is not required because there is
7295    # no limit to the length of command line arguments.
7296    # Libtool will interpret -1 as no limit whatsoever
7297    lt_cv_sys_max_cmd_len=-1;
7298    ;;
7299
7300  cygwin* | mingw*)
7301    # On Win9x/ME, this test blows up -- it succeeds, but takes
7302    # about 5 minutes as the teststring grows exponentially.
7303    # Worse, since 9x/ME are not pre-emptively multitasking,
7304    # you end up with a "frozen" computer, even though with patience
7305    # the test eventually succeeds (with a max line length of 256k).
7306    # Instead, let's just punt: use the minimum linelength reported by
7307    # all of the supported platforms: 8192 (on NT/2K/XP).
7308    lt_cv_sys_max_cmd_len=8192;
7309    ;;
7310
7311  amigaos*)
7312    # On AmigaOS with pdksh, this test takes hours, literally.
7313    # So we just punt and use a minimum line length of 8192.
7314    lt_cv_sys_max_cmd_len=8192;
7315    ;;
7316
7317  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7318    # This has been around since 386BSD, at least.  Likely further.
7319    if test -x /sbin/sysctl; then
7320      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7321    elif test -x /usr/sbin/sysctl; then
7322      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7323    else
7324      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7325    fi
7326    # And add a safety zone
7327    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7328    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7329    ;;
7330
7331  interix*)
7332    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7333    lt_cv_sys_max_cmd_len=196608
7334    ;;
7335
7336  osf*)
7337    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7338    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7339    # nice to cause kernel panics so lets avoid the loop below.
7340    # First set a reasonable default.
7341    lt_cv_sys_max_cmd_len=16384
7342    #
7343    if test -x /sbin/sysconfig; then
7344      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7345        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7346      esac
7347    fi
7348    ;;
7349  sco3.2v5*)
7350    lt_cv_sys_max_cmd_len=102400
7351    ;;
7352  sysv5* | sco5v6* | sysv4.2uw2*)
7353    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7354    if test -n "$kargmax"; then
7355      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7356    else
7357      lt_cv_sys_max_cmd_len=32768
7358    fi
7359    ;;
7360  *)
7361    # If test is not a shell built-in, we'll probably end up computing a
7362    # maximum length that is only half of the actual maximum length, but
7363    # we can't tell.
7364    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7365    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7366               = "XX$teststring") >/dev/null 2>&1 &&
7367            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7368            lt_cv_sys_max_cmd_len=$new_result &&
7369            test $i != 17 # 1/2 MB should be enough
7370    do
7371      i=`expr $i + 1`
7372      teststring=$teststring$teststring
7373    done
7374    teststring=
7375    # Add a significant safety factor because C++ compilers can tack on massive
7376    # amounts of additional arguments before passing them to the linker.
7377    # It appears as though 1/2 is a usable value.
7378    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7379    ;;
7380  esac
7381
7382fi
7383
7384if test -n $lt_cv_sys_max_cmd_len ; then
7385  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7386echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7387else
7388  echo "$as_me:$LINENO: result: none" >&5
7389echo "${ECHO_T}none" >&6
7390fi
7391
7392
7393
7394
7395# Check for command to grab the raw symbol name followed by C symbol from nm.
7396echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7397echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7398if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7399  echo $ECHO_N "(cached) $ECHO_C" >&6
7400else
7401
7402# These are sane defaults that work on at least a few old systems.
7403# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7404
7405# Character class describing NM global symbol codes.
7406symcode='[BCDEGRST]'
7407
7408# Regexp to match symbols that can be accessed directly from C.
7409sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7410
7411# Transform an extracted symbol line into a proper C declaration
7412lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7413
7414# Transform an extracted symbol line into symbol name and symbol address
7415lt_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'"
7416
7417# Define system-specific variables.
7418case $host_os in
7419aix*)
7420  symcode='[BCDT]'
7421  ;;
7422cygwin* | mingw* | pw32*)
7423  symcode='[ABCDGISTW]'
7424  ;;
7425hpux*) # Its linker distinguishes data from code symbols
7426  if test "$host_cpu" = ia64; then
7427    symcode='[ABCDEGRST]'
7428  fi
7429  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7430  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'"
7431  ;;
7432linux*)
7433  if test "$host_cpu" = ia64; then
7434    symcode='[ABCDGIRSTW]'
7435    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7436    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'"
7437  fi
7438  ;;
7439irix* | nonstopux*)
7440  symcode='[BCDEGRST]'
7441  ;;
7442osf*)
7443  symcode='[BCDEGQRST]'
7444  ;;
7445solaris*)
7446  symcode='[BDRT]'
7447  ;;
7448sco3.2v5*)
7449  symcode='[DT]'
7450  ;;
7451sysv4.2uw2*)
7452  symcode='[DT]'
7453  ;;
7454sysv5* | sco5v6* | unixware* | OpenUNIX*)
7455  symcode='[ABDT]'
7456  ;;
7457sysv4)
7458  symcode='[DFNSTU]'
7459  ;;
7460esac
7461
7462# Handle CRLF in mingw tool chain
7463opt_cr=
7464case $build_os in
7465mingw*)
7466  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7467  ;;
7468esac
7469
7470# If we're using GNU nm, then use its standard symbol codes.
7471case `$NM -V 2>&1` in
7472*GNU* | *'with BFD'*)
7473  symcode='[ABCDGIRSTW]' ;;
7474esac
7475
7476# Try without a prefix undercore, then with it.
7477for ac_symprfx in "" "_"; do
7478
7479  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7480  symxfrm="\\1 $ac_symprfx\\2 \\2"
7481
7482  # Write the raw and C identifiers.
7483  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7484
7485  # Check to see that the pipe works correctly.
7486  pipe_works=no
7487
7488  rm -f conftest*
7489  cat > conftest.$ac_ext <<EOF
7490#ifdef __cplusplus
7491extern "C" {
7492#endif
7493char nm_test_var;
7494void nm_test_func(){}
7495#ifdef __cplusplus
7496}
7497#endif
7498int main(){nm_test_var='a';nm_test_func();return(0);}
7499EOF
7500
7501  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7502  (eval $ac_compile) 2>&5
7503  ac_status=$?
7504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7505  (exit $ac_status); }; then
7506    # Now try to grab the symbols.
7507    nlist=conftest.nm
7508    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7509  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7510  ac_status=$?
7511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7512  (exit $ac_status); } && test -s "$nlist"; then
7513      # Try sorting and uniquifying the output.
7514      if sort "$nlist" | uniq > "$nlist"T; then
7515        mv -f "$nlist"T "$nlist"
7516      else
7517        rm -f "$nlist"T
7518      fi
7519
7520      # Make sure that we snagged all the symbols we need.
7521      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7522        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7523          cat <<EOF > conftest.$ac_ext
7524#ifdef __cplusplus
7525extern "C" {
7526#endif
7527
7528EOF
7529          # Now generate the symbol file.
7530          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7531
7532          cat <<EOF >> conftest.$ac_ext
7533#if defined (__STDC__) && __STDC__
7534# define lt_ptr_t void *
7535#else
7536# define lt_ptr_t char *
7537# define const
7538#endif
7539
7540/* The mapping between symbol names and symbols. */
7541const struct {
7542  const char *name;
7543  lt_ptr_t address;
7544}
7545lt_preloaded_symbols[] =
7546{
7547EOF
7548          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7549          cat <<\EOF >> conftest.$ac_ext
7550  {0, (lt_ptr_t) 0}
7551};
7552
7553#ifdef __cplusplus
7554}
7555#endif
7556EOF
7557          # Now try linking the two files.
7558          mv conftest.$ac_objext conftstm.$ac_objext
7559          lt_save_LIBS="$LIBS"
7560          lt_save_CFLAGS="$CFLAGS"
7561          LIBS="conftstm.$ac_objext"
7562          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7563          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7564  (eval $ac_link) 2>&5
7565  ac_status=$?
7566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7567  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7568            pipe_works=yes
7569          fi
7570          LIBS="$lt_save_LIBS"
7571          CFLAGS="$lt_save_CFLAGS"
7572        else
7573          echo "cannot find nm_test_func in $nlist" >&5
7574        fi
7575      else
7576        echo "cannot find nm_test_var in $nlist" >&5
7577      fi
7578    else
7579      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7580    fi
7581  else
7582    echo "$progname: failed program was:" >&5
7583    cat conftest.$ac_ext >&5
7584  fi
7585  rm -f conftest* conftst*
7586
7587  # Do not use the global_symbol_pipe unless it works.
7588  if test "$pipe_works" = yes; then
7589    break
7590  else
7591    lt_cv_sys_global_symbol_pipe=
7592  fi
7593done
7594
7595fi
7596
7597if test -z "$lt_cv_sys_global_symbol_pipe"; then
7598  lt_cv_sys_global_symbol_to_cdecl=
7599fi
7600if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7601  echo "$as_me:$LINENO: result: failed" >&5
7602echo "${ECHO_T}failed" >&6
7603else
7604  echo "$as_me:$LINENO: result: ok" >&5
7605echo "${ECHO_T}ok" >&6
7606fi
7607
7608echo "$as_me:$LINENO: checking for objdir" >&5
7609echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7610if test "${lt_cv_objdir+set}" = set; then
7611  echo $ECHO_N "(cached) $ECHO_C" >&6
7612else
7613  rm -f .libs 2>/dev/null
7614mkdir .libs 2>/dev/null
7615if test -d .libs; then
7616  lt_cv_objdir=.libs
7617else
7618  # MS-DOS does not allow filenames that begin with a dot.
7619  lt_cv_objdir=_libs
7620fi
7621rmdir .libs 2>/dev/null
7622fi
7623echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7624echo "${ECHO_T}$lt_cv_objdir" >&6
7625objdir=$lt_cv_objdir
7626
7627
7628
7629
7630
7631case $host_os in
7632aix3*)
7633  # AIX sometimes has problems with the GCC collect2 program.  For some
7634  # reason, if we set the COLLECT_NAMES environment variable, the problems
7635  # vanish in a puff of smoke.
7636  if test "X${COLLECT_NAMES+set}" != Xset; then
7637    COLLECT_NAMES=
7638    export COLLECT_NAMES
7639  fi
7640  ;;
7641esac
7642
7643# Sed substitution that helps us do robust quoting.  It backslashifies
7644# metacharacters that are still active within double-quoted strings.
7645Xsed='sed -e 1s/^X//'
7646sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7647
7648# Same as above, but do not quote variable references.
7649double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7650
7651# Sed substitution to delay expansion of an escaped shell variable in a
7652# double_quote_subst'ed string.
7653delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7654
7655# Sed substitution to avoid accidental globbing in evaled expressions
7656no_glob_subst='s/\*/\\\*/g'
7657
7658# Constants:
7659rm="rm -f"
7660
7661# Global variables:
7662default_ofile=libtool
7663can_build_shared=yes
7664
7665# All known linkers require a `.a' archive for static linking (except MSVC,
7666# which needs '.lib').
7667libext=a
7668ltmain="$ac_aux_dir/ltmain.sh"
7669ofile="$default_ofile"
7670with_gnu_ld="$lt_cv_prog_gnu_ld"
7671
7672if test -n "$ac_tool_prefix"; then
7673  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7674set dummy ${ac_tool_prefix}ar; ac_word=$2
7675echo "$as_me:$LINENO: checking for $ac_word" >&5
7676echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7677if test "${ac_cv_prog_AR+set}" = set; then
7678  echo $ECHO_N "(cached) $ECHO_C" >&6
7679else
7680  if test -n "$AR"; then
7681  ac_cv_prog_AR="$AR" # Let the user override the test.
7682else
7683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7684for as_dir in $PATH
7685do
7686  IFS=$as_save_IFS
7687  test -z "$as_dir" && as_dir=.
7688  for ac_exec_ext in '' $ac_executable_extensions; do
7689  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7690    ac_cv_prog_AR="${ac_tool_prefix}ar"
7691    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7692    break 2
7693  fi
7694done
7695done
7696
7697fi
7698fi
7699AR=$ac_cv_prog_AR
7700if test -n "$AR"; then
7701  echo "$as_me:$LINENO: result: $AR" >&5
7702echo "${ECHO_T}$AR" >&6
7703else
7704  echo "$as_me:$LINENO: result: no" >&5
7705echo "${ECHO_T}no" >&6
7706fi
7707
7708fi
7709if test -z "$ac_cv_prog_AR"; then
7710  ac_ct_AR=$AR
7711  # Extract the first word of "ar", so it can be a program name with args.
7712set dummy ar; ac_word=$2
7713echo "$as_me:$LINENO: checking for $ac_word" >&5
7714echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7715if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7716  echo $ECHO_N "(cached) $ECHO_C" >&6
7717else
7718  if test -n "$ac_ct_AR"; then
7719  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7720else
7721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7722for as_dir in $PATH
7723do
7724  IFS=$as_save_IFS
7725  test -z "$as_dir" && as_dir=.
7726  for ac_exec_ext in '' $ac_executable_extensions; do
7727  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7728    ac_cv_prog_ac_ct_AR="ar"
7729    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7730    break 2
7731  fi
7732done
7733done
7734
7735  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7736fi
7737fi
7738ac_ct_AR=$ac_cv_prog_ac_ct_AR
7739if test -n "$ac_ct_AR"; then
7740  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7741echo "${ECHO_T}$ac_ct_AR" >&6
7742else
7743  echo "$as_me:$LINENO: result: no" >&5
7744echo "${ECHO_T}no" >&6
7745fi
7746
7747  AR=$ac_ct_AR
7748else
7749  AR="$ac_cv_prog_AR"
7750fi
7751
7752if test -n "$ac_tool_prefix"; then
7753  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7754set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7755echo "$as_me:$LINENO: checking for $ac_word" >&5
7756echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7757if test "${ac_cv_prog_RANLIB+set}" = set; then
7758  echo $ECHO_N "(cached) $ECHO_C" >&6
7759else
7760  if test -n "$RANLIB"; then
7761  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7762else
7763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7764for as_dir in $PATH
7765do
7766  IFS=$as_save_IFS
7767  test -z "$as_dir" && as_dir=.
7768  for ac_exec_ext in '' $ac_executable_extensions; do
7769  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7770    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7771    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7772    break 2
7773  fi
7774done
7775done
7776
7777fi
7778fi
7779RANLIB=$ac_cv_prog_RANLIB
7780if test -n "$RANLIB"; then
7781  echo "$as_me:$LINENO: result: $RANLIB" >&5
7782echo "${ECHO_T}$RANLIB" >&6
7783else
7784  echo "$as_me:$LINENO: result: no" >&5
7785echo "${ECHO_T}no" >&6
7786fi
7787
7788fi
7789if test -z "$ac_cv_prog_RANLIB"; then
7790  ac_ct_RANLIB=$RANLIB
7791  # Extract the first word of "ranlib", so it can be a program name with args.
7792set dummy ranlib; ac_word=$2
7793echo "$as_me:$LINENO: checking for $ac_word" >&5
7794echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7795if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7796  echo $ECHO_N "(cached) $ECHO_C" >&6
7797else
7798  if test -n "$ac_ct_RANLIB"; then
7799  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7800else
7801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7802for as_dir in $PATH
7803do
7804  IFS=$as_save_IFS
7805  test -z "$as_dir" && as_dir=.
7806  for ac_exec_ext in '' $ac_executable_extensions; do
7807  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7808    ac_cv_prog_ac_ct_RANLIB="ranlib"
7809    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7810    break 2
7811  fi
7812done
7813done
7814
7815  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7816fi
7817fi
7818ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7819if test -n "$ac_ct_RANLIB"; then
7820  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7821echo "${ECHO_T}$ac_ct_RANLIB" >&6
7822else
7823  echo "$as_me:$LINENO: result: no" >&5
7824echo "${ECHO_T}no" >&6
7825fi
7826
7827  RANLIB=$ac_ct_RANLIB
7828else
7829  RANLIB="$ac_cv_prog_RANLIB"
7830fi
7831
7832if test -n "$ac_tool_prefix"; then
7833  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7834set dummy ${ac_tool_prefix}strip; ac_word=$2
7835echo "$as_me:$LINENO: checking for $ac_word" >&5
7836echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7837if test "${ac_cv_prog_STRIP+set}" = set; then
7838  echo $ECHO_N "(cached) $ECHO_C" >&6
7839else
7840  if test -n "$STRIP"; then
7841  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7842else
7843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7844for as_dir in $PATH
7845do
7846  IFS=$as_save_IFS
7847  test -z "$as_dir" && as_dir=.
7848  for ac_exec_ext in '' $ac_executable_extensions; do
7849  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7850    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7851    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7852    break 2
7853  fi
7854done
7855done
7856
7857fi
7858fi
7859STRIP=$ac_cv_prog_STRIP
7860if test -n "$STRIP"; then
7861  echo "$as_me:$LINENO: result: $STRIP" >&5
7862echo "${ECHO_T}$STRIP" >&6
7863else
7864  echo "$as_me:$LINENO: result: no" >&5
7865echo "${ECHO_T}no" >&6
7866fi
7867
7868fi
7869if test -z "$ac_cv_prog_STRIP"; then
7870  ac_ct_STRIP=$STRIP
7871  # Extract the first word of "strip", so it can be a program name with args.
7872set dummy strip; ac_word=$2
7873echo "$as_me:$LINENO: checking for $ac_word" >&5
7874echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7875if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7876  echo $ECHO_N "(cached) $ECHO_C" >&6
7877else
7878  if test -n "$ac_ct_STRIP"; then
7879  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7880else
7881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7882for as_dir in $PATH
7883do
7884  IFS=$as_save_IFS
7885  test -z "$as_dir" && as_dir=.
7886  for ac_exec_ext in '' $ac_executable_extensions; do
7887  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7888    ac_cv_prog_ac_ct_STRIP="strip"
7889    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7890    break 2
7891  fi
7892done
7893done
7894
7895  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7896fi
7897fi
7898ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7899if test -n "$ac_ct_STRIP"; then
7900  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7901echo "${ECHO_T}$ac_ct_STRIP" >&6
7902else
7903  echo "$as_me:$LINENO: result: no" >&5
7904echo "${ECHO_T}no" >&6
7905fi
7906
7907  STRIP=$ac_ct_STRIP
7908else
7909  STRIP="$ac_cv_prog_STRIP"
7910fi
7911
7912
7913old_CC="$CC"
7914old_CFLAGS="$CFLAGS"
7915
7916# Set sane defaults for various variables
7917test -z "$AR" && AR=ar
7918test -z "$AR_FLAGS" && AR_FLAGS=cru
7919test -z "$AS" && AS=as
7920test -z "$CC" && CC=cc
7921test -z "$LTCC" && LTCC=$CC
7922test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7923test -z "$DLLTOOL" && DLLTOOL=dlltool
7924test -z "$LD" && LD=ld
7925test -z "$LN_S" && LN_S="ln -s"
7926test -z "$MAGIC_CMD" && MAGIC_CMD=file
7927test -z "$NM" && NM=nm
7928test -z "$SED" && SED=sed
7929test -z "$OBJDUMP" && OBJDUMP=objdump
7930test -z "$RANLIB" && RANLIB=:
7931test -z "$STRIP" && STRIP=:
7932test -z "$ac_objext" && ac_objext=o
7933
7934# Determine commands to create old-style static archives.
7935old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7936old_postinstall_cmds='chmod 644 $oldlib'
7937old_postuninstall_cmds=
7938
7939if test -n "$RANLIB"; then
7940  case $host_os in
7941  openbsd*)
7942    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7943    ;;
7944  *)
7945    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7946    ;;
7947  esac
7948  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7949fi
7950
7951for cc_temp in $compiler""; do
7952  case $cc_temp in
7953    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7954    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7955    \-*) ;;
7956    *) break;;
7957  esac
7958done
7959cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7960
7961
7962# Only perform the check for file, if the check method requires it
7963case $deplibs_check_method in
7964file_magic*)
7965  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7966    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7967echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7968if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7969  echo $ECHO_N "(cached) $ECHO_C" >&6
7970else
7971  case $MAGIC_CMD in
7972[\\/*] |  ?:[\\/]*)
7973  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7974  ;;
7975*)
7976  lt_save_MAGIC_CMD="$MAGIC_CMD"
7977  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7978  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7979  for ac_dir in $ac_dummy; do
7980    IFS="$lt_save_ifs"
7981    test -z "$ac_dir" && ac_dir=.
7982    if test -f $ac_dir/${ac_tool_prefix}file; then
7983      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7984      if test -n "$file_magic_test_file"; then
7985        case $deplibs_check_method in
7986        "file_magic "*)
7987          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7988          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7989          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7990            $EGREP "$file_magic_regex" > /dev/null; then
7991            :
7992          else
7993            cat <<EOF 1>&2
7994
7995*** Warning: the command libtool uses to detect shared libraries,
7996*** $file_magic_cmd, produces output that libtool cannot recognize.
7997*** The result is that libtool may fail to recognize shared libraries
7998*** as such.  This will affect the creation of libtool libraries that
7999*** depend on shared libraries, but programs linked with such libtool
8000*** libraries will work regardless of this problem.  Nevertheless, you
8001*** may want to report the problem to your system manager and/or to
8002*** bug-libtool@gnu.org
8003
8004EOF
8005          fi ;;
8006        esac
8007      fi
8008      break
8009    fi
8010  done
8011  IFS="$lt_save_ifs"
8012  MAGIC_CMD="$lt_save_MAGIC_CMD"
8013  ;;
8014esac
8015fi
8016
8017MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8018if test -n "$MAGIC_CMD"; then
8019  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8020echo "${ECHO_T}$MAGIC_CMD" >&6
8021else
8022  echo "$as_me:$LINENO: result: no" >&5
8023echo "${ECHO_T}no" >&6
8024fi
8025
8026if test -z "$lt_cv_path_MAGIC_CMD"; then
8027  if test -n "$ac_tool_prefix"; then
8028    echo "$as_me:$LINENO: checking for file" >&5
8029echo $ECHO_N "checking for file... $ECHO_C" >&6
8030if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8031  echo $ECHO_N "(cached) $ECHO_C" >&6
8032else
8033  case $MAGIC_CMD in
8034[\\/*] |  ?:[\\/]*)
8035  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8036  ;;
8037*)
8038  lt_save_MAGIC_CMD="$MAGIC_CMD"
8039  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8040  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8041  for ac_dir in $ac_dummy; do
8042    IFS="$lt_save_ifs"
8043    test -z "$ac_dir" && ac_dir=.
8044    if test -f $ac_dir/file; then
8045      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8046      if test -n "$file_magic_test_file"; then
8047        case $deplibs_check_method in
8048        "file_magic "*)
8049          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8050          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8051          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8052            $EGREP "$file_magic_regex" > /dev/null; then
8053            :
8054          else
8055            cat <<EOF 1>&2
8056
8057*** Warning: the command libtool uses to detect shared libraries,
8058*** $file_magic_cmd, produces output that libtool cannot recognize.
8059*** The result is that libtool may fail to recognize shared libraries
8060*** as such.  This will affect the creation of libtool libraries that
8061*** depend on shared libraries, but programs linked with such libtool
8062*** libraries will work regardless of this problem.  Nevertheless, you
8063*** may want to report the problem to your system manager and/or to
8064*** bug-libtool@gnu.org
8065
8066EOF
8067          fi ;;
8068        esac
8069      fi
8070      break
8071    fi
8072  done
8073  IFS="$lt_save_ifs"
8074  MAGIC_CMD="$lt_save_MAGIC_CMD"
8075  ;;
8076esac
8077fi
8078
8079MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8080if test -n "$MAGIC_CMD"; then
8081  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8082echo "${ECHO_T}$MAGIC_CMD" >&6
8083else
8084  echo "$as_me:$LINENO: result: no" >&5
8085echo "${ECHO_T}no" >&6
8086fi
8087
8088  else
8089    MAGIC_CMD=:
8090  fi
8091fi
8092
8093  fi
8094  ;;
8095esac
8096
8097enable_dlopen=no
8098enable_win32_dll=no
8099
8100# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8101if test "${enable_libtool_lock+set}" = set; then
8102  enableval="$enable_libtool_lock"
8103
8104fi;
8105test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8106
8107
8108# Check whether --with-pic or --without-pic was given.
8109if test "${with_pic+set}" = set; then
8110  withval="$with_pic"
8111  pic_mode="$withval"
8112else
8113  pic_mode=default
8114fi;
8115test -z "$pic_mode" && pic_mode=default
8116
8117# Use C for the default configuration in the libtool script
8118tagname=
8119lt_save_CC="$CC"
8120ac_ext=c
8121ac_cpp='$CPP $CPPFLAGS'
8122ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8123ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8124ac_compiler_gnu=$ac_cv_c_compiler_gnu
8125
8126
8127# Source file extension for C test sources.
8128ac_ext=c
8129
8130# Object file extension for compiled C test sources.
8131objext=o
8132objext=$objext
8133
8134# Code to be used in simple compile tests
8135lt_simple_compile_test_code="int some_variable = 0;\n"
8136
8137# Code to be used in simple link tests
8138lt_simple_link_test_code='int main(){return(0);}\n'
8139
8140
8141# If no C compiler was specified, use CC.
8142LTCC=${LTCC-"$CC"}
8143
8144# If no C compiler flags were specified, use CFLAGS.
8145LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8146
8147# Allow CC to be a program name with arguments.
8148compiler=$CC
8149
8150
8151# save warnings/boilerplate of simple test code
8152ac_outfile=conftest.$ac_objext
8153printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8154eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8155_lt_compiler_boilerplate=`cat conftest.err`
8156$rm conftest*
8157
8158ac_outfile=conftest.$ac_objext
8159printf "$lt_simple_link_test_code" >conftest.$ac_ext
8160eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8161_lt_linker_boilerplate=`cat conftest.err`
8162$rm conftest*
8163
8164
8165## CAVEAT EMPTOR:
8166## There is no encapsulation within the following macros, do not change
8167## the running order or otherwise move them around unless you know exactly
8168## what you are doing...
8169
8170lt_prog_compiler_no_builtin_flag=
8171
8172if test "$GCC" = yes; then
8173  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8174
8175
8176echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8177echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8178if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8179  echo $ECHO_N "(cached) $ECHO_C" >&6
8180else
8181  lt_cv_prog_compiler_rtti_exceptions=no
8182  ac_outfile=conftest.$ac_objext
8183   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8184   lt_compiler_flag="-fno-rtti -fno-exceptions"
8185   # Insert the option either (1) after the last *FLAGS variable, or
8186   # (2) before a word containing "conftest.", or (3) at the end.
8187   # Note that $ac_compile itself does not contain backslashes and begins
8188   # with a dollar sign (not a hyphen), so the echo should work correctly.
8189   # The option is referenced via a variable to avoid confusing sed.
8190   lt_compile=`echo "$ac_compile" | $SED \
8191   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8192   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8193   -e 's:$: $lt_compiler_flag:'`
8194   (eval echo "\"\$as_me:8194: $lt_compile\"" >&5)
8195   (eval "$lt_compile" 2>conftest.err)
8196   ac_status=$?
8197   cat conftest.err >&5
8198   echo "$as_me:8198: \$? = $ac_status" >&5
8199   if (exit $ac_status) && test -s "$ac_outfile"; then
8200     # The compiler can only warn and ignore the option if not recognized
8201     # So say no if there are warnings other than the usual output.
8202     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8203     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8204     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8205       lt_cv_prog_compiler_rtti_exceptions=yes
8206     fi
8207   fi
8208   $rm conftest*
8209
8210fi
8211echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8212echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8213
8214if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8215    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8216else
8217    :
8218fi
8219
8220fi
8221
8222lt_prog_compiler_wl=
8223lt_prog_compiler_pic=
8224lt_prog_compiler_static=
8225
8226echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8227echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8228
8229  if test "$GCC" = yes; then
8230    lt_prog_compiler_wl='-Wl,'
8231    lt_prog_compiler_static='-static'
8232
8233    case $host_os in
8234      aix*)
8235      # All AIX code is PIC.
8236      if test "$host_cpu" = ia64; then
8237        # AIX 5 now supports IA64 processor
8238        lt_prog_compiler_static='-Bstatic'
8239      fi
8240      ;;
8241
8242    amigaos*)
8243      # FIXME: we need at least 68020 code to build shared libraries, but
8244      # adding the `-m68020' flag to GCC prevents building anything better,
8245      # like `-m68040'.
8246      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8247      ;;
8248
8249    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8250      # PIC is the default for these OSes.
8251      ;;
8252
8253    mingw* | pw32* | os2*)
8254      # This hack is so that the source file can tell whether it is being
8255      # built for inclusion in a dll (and should export symbols for example).
8256      lt_prog_compiler_pic='-DDLL_EXPORT'
8257      ;;
8258
8259    darwin* | rhapsody*)
8260      # PIC is the default on this platform
8261      # Common symbols not allowed in MH_DYLIB files
8262      lt_prog_compiler_pic='-fno-common'
8263      ;;
8264
8265    interix3*)
8266      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8267      # Instead, we relocate shared libraries at runtime.
8268      ;;
8269
8270    msdosdjgpp*)
8271      # Just because we use GCC doesn't mean we suddenly get shared libraries
8272      # on systems that don't support them.
8273      lt_prog_compiler_can_build_shared=no
8274      enable_shared=no
8275      ;;
8276
8277    sysv4*MP*)
8278      if test -d /usr/nec; then
8279        lt_prog_compiler_pic=-Kconform_pic
8280      fi
8281      ;;
8282
8283    hpux*)
8284      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8285      # not for PA HP-UX.
8286      case $host_cpu in
8287      hppa*64*|ia64*)
8288        # +Z the default
8289        ;;
8290      *)
8291        lt_prog_compiler_pic='-fPIC'
8292        ;;
8293      esac
8294      ;;
8295
8296    *)
8297      lt_prog_compiler_pic='-fPIC'
8298      ;;
8299    esac
8300  else
8301    # PORTME Check for flag to pass linker flags through the system compiler.
8302    case $host_os in
8303    aix*)
8304      lt_prog_compiler_wl='-Wl,'
8305      if test "$host_cpu" = ia64; then
8306        # AIX 5 now supports IA64 processor
8307        lt_prog_compiler_static='-Bstatic'
8308      else
8309        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8310      fi
8311      ;;
8312      darwin*)
8313        # PIC is the default on this platform
8314        # Common symbols not allowed in MH_DYLIB files
8315       case $cc_basename in
8316         xlc*)
8317         lt_prog_compiler_pic='-qnocommon'
8318         lt_prog_compiler_wl='-Wl,'
8319         ;;
8320       esac
8321       ;;
8322
8323    mingw* | pw32* | os2*)
8324      # This hack is so that the source file can tell whether it is being
8325      # built for inclusion in a dll (and should export symbols for example).
8326      lt_prog_compiler_pic='-DDLL_EXPORT'
8327      ;;
8328
8329    hpux9* | hpux10* | hpux11*)
8330      lt_prog_compiler_wl='-Wl,'
8331      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8332      # not for PA HP-UX.
8333      case $host_cpu in
8334      hppa*64*|ia64*)
8335        # +Z the default
8336        ;;
8337      *)
8338        lt_prog_compiler_pic='+Z'
8339        ;;
8340      esac
8341      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8342      lt_prog_compiler_static='${wl}-a ${wl}archive'
8343      ;;
8344
8345    irix5* | irix6* | nonstopux*)
8346      lt_prog_compiler_wl='-Wl,'
8347      # PIC (with -KPIC) is the default.
8348      lt_prog_compiler_static='-non_shared'
8349      ;;
8350
8351    newsos6)
8352      lt_prog_compiler_pic='-KPIC'
8353      lt_prog_compiler_static='-Bstatic'
8354      ;;
8355
8356    linux*)
8357      case $cc_basename in
8358      icc* | ecc*)
8359        lt_prog_compiler_wl='-Wl,'
8360        lt_prog_compiler_pic='-KPIC'
8361        lt_prog_compiler_static='-static'
8362        ;;
8363      pgcc* | pgf77* | pgf90* | pgf95*)
8364        # Portland Group compilers (*not* the Pentium gcc compiler,
8365        # which looks to be a dead project)
8366        lt_prog_compiler_wl='-Wl,'
8367        lt_prog_compiler_pic='-fpic'
8368        lt_prog_compiler_static='-Bstatic'
8369        ;;
8370      ccc*)
8371        lt_prog_compiler_wl='-Wl,'
8372        # All Alpha code is PIC.
8373        lt_prog_compiler_static='-non_shared'
8374        ;;
8375      esac
8376      ;;
8377
8378    osf3* | osf4* | osf5*)
8379      lt_prog_compiler_wl='-Wl,'
8380      # All OSF/1 code is PIC.
8381      lt_prog_compiler_static='-non_shared'
8382      ;;
8383
8384    solaris*)
8385      lt_prog_compiler_pic='-KPIC'
8386      lt_prog_compiler_static='-Bstatic'
8387      case $cc_basename in
8388      f77* | f90* | f95*)
8389        lt_prog_compiler_wl='-Qoption ld ';;
8390      *)
8391        lt_prog_compiler_wl='-Wl,';;
8392      esac
8393      ;;
8394
8395    sunos4*)
8396      lt_prog_compiler_wl='-Qoption ld '
8397      lt_prog_compiler_pic='-PIC'
8398      lt_prog_compiler_static='-Bstatic'
8399      ;;
8400
8401    sysv4 | sysv4.2uw2* | sysv4.3*)
8402      lt_prog_compiler_wl='-Wl,'
8403      lt_prog_compiler_pic='-KPIC'
8404      lt_prog_compiler_static='-Bstatic'
8405      ;;
8406
8407    sysv4*MP*)
8408      if test -d /usr/nec ;then
8409        lt_prog_compiler_pic='-Kconform_pic'
8410        lt_prog_compiler_static='-Bstatic'
8411      fi
8412      ;;
8413
8414    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8415      lt_prog_compiler_wl='-Wl,'
8416      lt_prog_compiler_pic='-KPIC'
8417      lt_prog_compiler_static='-Bstatic'
8418      ;;
8419
8420    unicos*)
8421      lt_prog_compiler_wl='-Wl,'
8422      lt_prog_compiler_can_build_shared=no
8423      ;;
8424
8425    uts4*)
8426      lt_prog_compiler_pic='-pic'
8427      lt_prog_compiler_static='-Bstatic'
8428      ;;
8429
8430    *)
8431      lt_prog_compiler_can_build_shared=no
8432      ;;
8433    esac
8434  fi
8435
8436echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8437echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8438
8439#
8440# Check to make sure the PIC flag actually works.
8441#
8442if test -n "$lt_prog_compiler_pic"; then
8443
8444echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8445echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8446if test "${lt_prog_compiler_pic_works+set}" = set; then
8447  echo $ECHO_N "(cached) $ECHO_C" >&6
8448else
8449  lt_prog_compiler_pic_works=no
8450  ac_outfile=conftest.$ac_objext
8451   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8452   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8453   # Insert the option either (1) after the last *FLAGS variable, or
8454   # (2) before a word containing "conftest.", or (3) at the end.
8455   # Note that $ac_compile itself does not contain backslashes and begins
8456   # with a dollar sign (not a hyphen), so the echo should work correctly.
8457   # The option is referenced via a variable to avoid confusing sed.
8458   lt_compile=`echo "$ac_compile" | $SED \
8459   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8460   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8461   -e 's:$: $lt_compiler_flag:'`
8462   (eval echo "\"\$as_me:8462: $lt_compile\"" >&5)
8463   (eval "$lt_compile" 2>conftest.err)
8464   ac_status=$?
8465   cat conftest.err >&5
8466   echo "$as_me:8466: \$? = $ac_status" >&5
8467   if (exit $ac_status) && test -s "$ac_outfile"; then
8468     # The compiler can only warn and ignore the option if not recognized
8469     # So say no if there are warnings other than the usual output.
8470     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8471     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8472     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8473       lt_prog_compiler_pic_works=yes
8474     fi
8475   fi
8476   $rm conftest*
8477
8478fi
8479echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8480echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8481
8482if test x"$lt_prog_compiler_pic_works" = xyes; then
8483    case $lt_prog_compiler_pic in
8484     "" | " "*) ;;
8485     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8486     esac
8487else
8488    lt_prog_compiler_pic=
8489     lt_prog_compiler_can_build_shared=no
8490fi
8491
8492fi
8493case $host_os in
8494  # For platforms which do not support PIC, -DPIC is meaningless:
8495  *djgpp*)
8496    lt_prog_compiler_pic=
8497    ;;
8498  *)
8499    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8500    ;;
8501esac
8502
8503#
8504# Check to make sure the static flag actually works.
8505#
8506wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8507echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8508echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8509if test "${lt_prog_compiler_static_works+set}" = set; then
8510  echo $ECHO_N "(cached) $ECHO_C" >&6
8511else
8512  lt_prog_compiler_static_works=no
8513   save_LDFLAGS="$LDFLAGS"
8514   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8515   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8516   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8517     # The linker can only warn and ignore the option if not recognized
8518     # So say no if there are warnings
8519     if test -s conftest.err; then
8520       # Append any errors to the config.log.
8521       cat conftest.err 1>&5
8522       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8523       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8524       if diff conftest.exp conftest.er2 >/dev/null; then
8525         lt_prog_compiler_static_works=yes
8526       fi
8527     else
8528       lt_prog_compiler_static_works=yes
8529     fi
8530   fi
8531   $rm conftest*
8532   LDFLAGS="$save_LDFLAGS"
8533
8534fi
8535echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8536echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8537
8538if test x"$lt_prog_compiler_static_works" = xyes; then
8539    :
8540else
8541    lt_prog_compiler_static=
8542fi
8543
8544
8545echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8546echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8547if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8548  echo $ECHO_N "(cached) $ECHO_C" >&6
8549else
8550  lt_cv_prog_compiler_c_o=no
8551   $rm -r conftest 2>/dev/null
8552   mkdir conftest
8553   cd conftest
8554   mkdir out
8555   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8556
8557   lt_compiler_flag="-o out/conftest2.$ac_objext"
8558   # Insert the option either (1) after the last *FLAGS variable, or
8559   # (2) before a word containing "conftest.", or (3) at the end.
8560   # Note that $ac_compile itself does not contain backslashes and begins
8561   # with a dollar sign (not a hyphen), so the echo should work correctly.
8562   lt_compile=`echo "$ac_compile" | $SED \
8563   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8564   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8565   -e 's:$: $lt_compiler_flag:'`
8566   (eval echo "\"\$as_me:8566: $lt_compile\"" >&5)
8567   (eval "$lt_compile" 2>out/conftest.err)
8568   ac_status=$?
8569   cat out/conftest.err >&5
8570   echo "$as_me:8570: \$? = $ac_status" >&5
8571   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8572   then
8573     # The compiler can only warn and ignore the option if not recognized
8574     # So say no if there are warnings
8575     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8576     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8577     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8578       lt_cv_prog_compiler_c_o=yes
8579     fi
8580   fi
8581   chmod u+w . 2>&5
8582   $rm conftest*
8583   # SGI C++ compiler will create directory out/ii_files/ for
8584   # template instantiation
8585   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8586   $rm out/* && rmdir out
8587   cd ..
8588   rmdir conftest
8589   $rm conftest*
8590
8591fi
8592echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8593echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8594
8595
8596hard_links="nottested"
8597if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8598  # do not overwrite the value of need_locks provided by the user
8599  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8600echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8601  hard_links=yes
8602  $rm conftest*
8603  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8604  touch conftest.a
8605  ln conftest.a conftest.b 2>&5 || hard_links=no
8606  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8607  echo "$as_me:$LINENO: result: $hard_links" >&5
8608echo "${ECHO_T}$hard_links" >&6
8609  if test "$hard_links" = no; then
8610    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8611echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8612    need_locks=warn
8613  fi
8614else
8615  need_locks=no
8616fi
8617
8618echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8619echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8620
8621  runpath_var=
8622  allow_undefined_flag=
8623  enable_shared_with_static_runtimes=no
8624  archive_cmds=
8625  archive_expsym_cmds=
8626  old_archive_From_new_cmds=
8627  old_archive_from_expsyms_cmds=
8628  export_dynamic_flag_spec=
8629  whole_archive_flag_spec=
8630  thread_safe_flag_spec=
8631  hardcode_libdir_flag_spec=
8632  hardcode_libdir_flag_spec_ld=
8633  hardcode_libdir_separator=
8634  hardcode_direct=no
8635  hardcode_minus_L=no
8636  hardcode_shlibpath_var=unsupported
8637  link_all_deplibs=unknown
8638  hardcode_automatic=no
8639  module_cmds=
8640  module_expsym_cmds=
8641  always_export_symbols=no
8642  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8643  # include_expsyms should be a list of space-separated symbols to be *always*
8644  # included in the symbol list
8645  include_expsyms=
8646  # exclude_expsyms can be an extended regexp of symbols to exclude
8647  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8648  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8649  # as well as any symbol that contains `d'.
8650  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8651  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8652  # platforms (ab)use it in PIC code, but their linkers get confused if
8653  # the symbol is explicitly referenced.  Since portable code cannot
8654  # rely on this symbol name, it's probably fine to never include it in
8655  # preloaded symbol tables.
8656  extract_expsyms_cmds=
8657  # Just being paranoid about ensuring that cc_basename is set.
8658  for cc_temp in $compiler""; do
8659  case $cc_temp in
8660    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8661    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8662    \-*) ;;
8663    *) break;;
8664  esac
8665done
8666cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8667
8668  case $host_os in
8669  cygwin* | mingw* | pw32*)
8670    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8671    # When not using gcc, we currently assume that we are using
8672    # Microsoft Visual C++.
8673    if test "$GCC" != yes; then
8674      with_gnu_ld=no
8675    fi
8676    ;;
8677  interix*)
8678    # we just hope/assume this is gcc and not c89 (= MSVC++)
8679    with_gnu_ld=yes
8680    ;;
8681  openbsd*)
8682    with_gnu_ld=no
8683    ;;
8684  esac
8685
8686  ld_shlibs=yes
8687  if test "$with_gnu_ld" = yes; then
8688    # If archive_cmds runs LD, not CC, wlarc should be empty
8689    wlarc='${wl}'
8690
8691    # Set some defaults for GNU ld with shared library support. These
8692    # are reset later if shared libraries are not supported. Putting them
8693    # here allows them to be overridden if necessary.
8694    runpath_var=LD_RUN_PATH
8695    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8696    export_dynamic_flag_spec='${wl}--export-dynamic'
8697    # ancient GNU ld didn't support --whole-archive et. al.
8698    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8699        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8700      else
8701        whole_archive_flag_spec=
8702    fi
8703    supports_anon_versioning=no
8704    case `$LD -v 2>/dev/null` in
8705      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8706      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8707      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8708      *\ 2.11.*) ;; # other 2.11 versions
8709      *) supports_anon_versioning=yes ;;
8710    esac
8711
8712    # See if GNU ld supports shared libraries.
8713    case $host_os in
8714    aix3* | aix4* | aix5*)
8715      # On AIX/PPC, the GNU linker is very broken
8716      if test "$host_cpu" != ia64; then
8717        ld_shlibs=no
8718        cat <<EOF 1>&2
8719
8720*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8721*** to be unable to reliably create shared libraries on AIX.
8722*** Therefore, libtool is disabling shared libraries support.  If you
8723*** really care for shared libraries, you may want to modify your PATH
8724*** so that a non-GNU linker is found, and then restart.
8725
8726EOF
8727      fi
8728      ;;
8729
8730    amigaos*)
8731      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)'
8732      hardcode_libdir_flag_spec='-L$libdir'
8733      hardcode_minus_L=yes
8734
8735      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8736      # that the semantics of dynamic libraries on AmigaOS, at least up
8737      # to version 4, is to share data among multiple programs linked
8738      # with the same dynamic library.  Since this doesn't match the
8739      # behavior of shared libraries on other platforms, we can't use
8740      # them.
8741      ld_shlibs=no
8742      ;;
8743
8744    beos*)
8745      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8746        allow_undefined_flag=unsupported
8747        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8748        # support --undefined.  This deserves some investigation.  FIXME
8749        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8750      else
8751        ld_shlibs=no
8752      fi
8753      ;;
8754
8755    cygwin* | mingw* | pw32*)
8756      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8757      # as there is no search path for DLLs.
8758      hardcode_libdir_flag_spec='-L$libdir'
8759      allow_undefined_flag=unsupported
8760      always_export_symbols=no
8761      enable_shared_with_static_runtimes=yes
8762      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8763
8764      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8765        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8766        # If the export-symbols file already is a .def file (1st line
8767        # is EXPORTS), use it as is; otherwise, prepend...
8768        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8769          cp $export_symbols $output_objdir/$soname.def;
8770        else
8771          echo EXPORTS > $output_objdir/$soname.def;
8772          cat $export_symbols >> $output_objdir/$soname.def;
8773        fi~
8774        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8775      else
8776        ld_shlibs=no
8777      fi
8778      ;;
8779
8780    interix3*)
8781      hardcode_direct=no
8782      hardcode_shlibpath_var=no
8783      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8784      export_dynamic_flag_spec='${wl}-E'
8785      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8786      # Instead, shared libraries are loaded at an image base (0x10000000 by
8787      # default) and relocated if they conflict, which is a slow very memory
8788      # consuming and fragmenting process.  To avoid this, we pick a random,
8789      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8790      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8791      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8792      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'
8793      ;;
8794
8795    linux*)
8796      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8797        tmp_addflag=
8798        case $cc_basename,$host_cpu in
8799        pgcc*)                          # Portland Group C compiler
8800          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'
8801          tmp_addflag=' $pic_flag'
8802          ;;
8803        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8804          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'
8805          tmp_addflag=' $pic_flag -Mnomain' ;;
8806        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8807          tmp_addflag=' -i_dynamic' ;;
8808        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8809          tmp_addflag=' -i_dynamic -nofor_main' ;;
8810        ifc* | ifort*)                  # Intel Fortran compiler
8811          tmp_addflag=' -nofor_main' ;;
8812        esac
8813        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8814
8815        if test $supports_anon_versioning = yes; then
8816          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8817  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8818  $echo "local: *; };" >> $output_objdir/$libname.ver~
8819          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8820        fi
8821      else
8822        ld_shlibs=no
8823      fi
8824      ;;
8825
8826    netbsd*)
8827      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8828        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8829        wlarc=
8830      else
8831        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8832        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8833      fi
8834      ;;
8835
8836    solaris*)
8837      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8838        ld_shlibs=no
8839        cat <<EOF 1>&2
8840
8841*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8842*** create shared libraries on Solaris systems.  Therefore, libtool
8843*** is disabling shared libraries support.  We urge you to upgrade GNU
8844*** binutils to release 2.9.1 or newer.  Another option is to modify
8845*** your PATH or compiler configuration so that the native linker is
8846*** used, and then restart.
8847
8848EOF
8849      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8850        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8851        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8852      else
8853        ld_shlibs=no
8854      fi
8855      ;;
8856
8857    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8858      case `$LD -v 2>&1` in
8859        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8860        ld_shlibs=no
8861        cat <<_LT_EOF 1>&2
8862
8863*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8864*** reliably create shared libraries on SCO systems.  Therefore, libtool
8865*** is disabling shared libraries support.  We urge you to upgrade GNU
8866*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8867*** your PATH or compiler configuration so that the native linker is
8868*** used, and then restart.
8869
8870_LT_EOF
8871        ;;
8872        *)
8873          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8874            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8875            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8876            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8877          else
8878            ld_shlibs=no
8879          fi
8880        ;;
8881      esac
8882      ;;
8883
8884    sunos4*)
8885      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8886      wlarc=
8887      hardcode_direct=yes
8888      hardcode_shlibpath_var=no
8889      ;;
8890
8891    *)
8892      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8893        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8894        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8895      else
8896        ld_shlibs=no
8897      fi
8898      ;;
8899    esac
8900
8901    if test "$ld_shlibs" = no; then
8902      runpath_var=
8903      hardcode_libdir_flag_spec=
8904      export_dynamic_flag_spec=
8905      whole_archive_flag_spec=
8906    fi
8907  else
8908    # PORTME fill in a description of your system's linker (not GNU ld)
8909    case $host_os in
8910    aix3*)
8911      allow_undefined_flag=unsupported
8912      always_export_symbols=yes
8913      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'
8914      # Note: this linker hardcodes the directories in LIBPATH if there
8915      # are no directories specified by -L.
8916      hardcode_minus_L=yes
8917      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8918        # Neither direct hardcoding nor static linking is supported with a
8919        # broken collect2.
8920        hardcode_direct=unsupported
8921      fi
8922      ;;
8923
8924    aix4* | aix5*)
8925      if test "$host_cpu" = ia64; then
8926        # On IA64, the linker does run time linking by default, so we don't
8927        # have to do anything special.
8928        aix_use_runtimelinking=no
8929        exp_sym_flag='-Bexport'
8930        no_entry_flag=""
8931      else
8932        # If we're using GNU nm, then we don't want the "-C" option.
8933        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8934        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8935          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'
8936        else
8937          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'
8938        fi
8939        aix_use_runtimelinking=no
8940
8941        # Test if we are trying to use run time linking or normal
8942        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8943        # need to do runtime linking.
8944        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8945          for ld_flag in $LDFLAGS; do
8946          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8947            aix_use_runtimelinking=yes
8948            break
8949          fi
8950          done
8951          ;;
8952        esac
8953
8954        exp_sym_flag='-bexport'
8955        no_entry_flag='-bnoentry'
8956      fi
8957
8958      # When large executables or shared objects are built, AIX ld can
8959      # have problems creating the table of contents.  If linking a library
8960      # or program results in "error TOC overflow" add -mminimal-toc to
8961      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8962      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8963
8964      archive_cmds=''
8965      hardcode_direct=yes
8966      hardcode_libdir_separator=':'
8967      link_all_deplibs=yes
8968
8969      if test "$GCC" = yes; then
8970        case $host_os in aix4.[012]|aix4.[012].*)
8971        # We only want to do this on AIX 4.2 and lower, the check
8972        # below for broken collect2 doesn't work under 4.3+
8973          collect2name=`${CC} -print-prog-name=collect2`
8974          if test -f "$collect2name" && \
8975           strings "$collect2name" | grep resolve_lib_name >/dev/null
8976          then
8977          # We have reworked collect2
8978          hardcode_direct=yes
8979          else
8980          # We have old collect2
8981          hardcode_direct=unsupported
8982          # It fails to find uninstalled libraries when the uninstalled
8983          # path is not listed in the libpath.  Setting hardcode_minus_L
8984          # to unsupported forces relinking
8985          hardcode_minus_L=yes
8986          hardcode_libdir_flag_spec='-L$libdir'
8987          hardcode_libdir_separator=
8988          fi
8989          ;;
8990        esac
8991        shared_flag='-shared'
8992        if test "$aix_use_runtimelinking" = yes; then
8993          shared_flag="$shared_flag "'${wl}-G'
8994        fi
8995      else
8996        # not using gcc
8997        if test "$host_cpu" = ia64; then
8998        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8999        # chokes on -Wl,-G. The following line is correct:
9000          shared_flag='-G'
9001        else
9002          if test "$aix_use_runtimelinking" = yes; then
9003            shared_flag='${wl}-G'
9004          else
9005            shared_flag='${wl}-bM:SRE'
9006          fi
9007        fi
9008      fi
9009
9010      # It seems that -bexpall does not export symbols beginning with
9011      # underscore (_), so it is better to generate a list of symbols to export.
9012      always_export_symbols=yes
9013      if test "$aix_use_runtimelinking" = yes; then
9014        # Warning - without using the other runtime loading flags (-brtl),
9015        # -berok will link without error, but may produce a broken library.
9016        allow_undefined_flag='-berok'
9017       # Determine the default libpath from the value encoded in an empty executable.
9018       cat >conftest.$ac_ext <<_ACEOF
9019/* confdefs.h.  */
9020_ACEOF
9021cat confdefs.h >>conftest.$ac_ext
9022cat >>conftest.$ac_ext <<_ACEOF
9023/* end confdefs.h.  */
9024
9025int
9026main ()
9027{
9028
9029  ;
9030  return 0;
9031}
9032_ACEOF
9033rm -f conftest.$ac_objext conftest$ac_exeext
9034if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9035  (eval $ac_link) 2>conftest.er1
9036  ac_status=$?
9037  grep -v '^ *+' conftest.er1 >conftest.err
9038  rm -f conftest.er1
9039  cat conftest.err >&5
9040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9041  (exit $ac_status); } &&
9042         { ac_try='test -z "$ac_c_werror_flag"
9043                         || test ! -s conftest.err'
9044  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9045  (eval $ac_try) 2>&5
9046  ac_status=$?
9047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9048  (exit $ac_status); }; } &&
9049         { ac_try='test -s conftest$ac_exeext'
9050  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9051  (eval $ac_try) 2>&5
9052  ac_status=$?
9053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9054  (exit $ac_status); }; }; then
9055
9056aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9057}'`
9058# Check for a 64-bit object if we didn't find anything.
9059if 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; }
9060}'`; fi
9061else
9062  echo "$as_me: failed program was:" >&5
9063sed 's/^/| /' conftest.$ac_ext >&5
9064
9065fi
9066rm -f conftest.err conftest.$ac_objext \
9067      conftest$ac_exeext conftest.$ac_ext
9068if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9069
9070       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9071        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"
9072       else
9073        if test "$host_cpu" = ia64; then
9074          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9075          allow_undefined_flag="-z nodefs"
9076          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"
9077        else
9078         # Determine the default libpath from the value encoded in an empty executable.
9079         cat >conftest.$ac_ext <<_ACEOF
9080/* confdefs.h.  */
9081_ACEOF
9082cat confdefs.h >>conftest.$ac_ext
9083cat >>conftest.$ac_ext <<_ACEOF
9084/* end confdefs.h.  */
9085
9086int
9087main ()
9088{
9089
9090  ;
9091  return 0;
9092}
9093_ACEOF
9094rm -f conftest.$ac_objext conftest$ac_exeext
9095if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9096  (eval $ac_link) 2>conftest.er1
9097  ac_status=$?
9098  grep -v '^ *+' conftest.er1 >conftest.err
9099  rm -f conftest.er1
9100  cat conftest.err >&5
9101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102  (exit $ac_status); } &&
9103         { ac_try='test -z "$ac_c_werror_flag"
9104                         || test ! -s conftest.err'
9105  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9106  (eval $ac_try) 2>&5
9107  ac_status=$?
9108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9109  (exit $ac_status); }; } &&
9110         { ac_try='test -s conftest$ac_exeext'
9111  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9112  (eval $ac_try) 2>&5
9113  ac_status=$?
9114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9115  (exit $ac_status); }; }; then
9116
9117aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9118}'`
9119# Check for a 64-bit object if we didn't find anything.
9120if 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; }
9121}'`; fi
9122else
9123  echo "$as_me: failed program was:" >&5
9124sed 's/^/| /' conftest.$ac_ext >&5
9125
9126fi
9127rm -f conftest.err conftest.$ac_objext \
9128      conftest$ac_exeext conftest.$ac_ext
9129if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9130
9131         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9132          # Warning - without using the other run time loading flags,
9133          # -berok will link without error, but may produce a broken library.
9134          no_undefined_flag=' ${wl}-bernotok'
9135          allow_undefined_flag=' ${wl}-berok'
9136          # Exported symbols can be pulled into shared objects from archives
9137          whole_archive_flag_spec='$convenience'
9138          archive_cmds_need_lc=yes
9139          # This is similar to how AIX traditionally builds its shared libraries.
9140          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'
9141        fi
9142      fi
9143      ;;
9144
9145    amigaos*)
9146      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)'
9147      hardcode_libdir_flag_spec='-L$libdir'
9148      hardcode_minus_L=yes
9149      # see comment about different semantics on the GNU ld section
9150      ld_shlibs=no
9151      ;;
9152
9153    bsdi[45]*)
9154      export_dynamic_flag_spec=-rdynamic
9155      ;;
9156
9157    cygwin* | mingw* | pw32*)
9158      # When not using gcc, we currently assume that we are using
9159      # Microsoft Visual C++.
9160      # hardcode_libdir_flag_spec is actually meaningless, as there is
9161      # no search path for DLLs.
9162      hardcode_libdir_flag_spec=' '
9163      allow_undefined_flag=unsupported
9164      # Tell ltmain to make .lib files, not .a files.
9165      libext=lib
9166      # Tell ltmain to make .dll files, not .so files.
9167      shrext_cmds=".dll"
9168      # FIXME: Setting linknames here is a bad hack.
9169      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9170      # The linker will automatically build a .lib file if we build a DLL.
9171      old_archive_From_new_cmds='true'
9172      # FIXME: Should let the user specify the lib program.
9173      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9174      fix_srcfile_path='`cygpath -w "$srcfile"`'
9175      enable_shared_with_static_runtimes=yes
9176      ;;
9177
9178    darwin* | rhapsody*)
9179      case $host_os in
9180        rhapsody* | darwin1.[012])
9181         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9182         ;;
9183       *) # Darwin 1.3 on
9184         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9185           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9186         else
9187           case ${MACOSX_DEPLOYMENT_TARGET} in
9188             10.[012])
9189               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9190               ;;
9191             10.*)
9192               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9193               ;;
9194           esac
9195         fi
9196         ;;
9197      esac
9198      archive_cmds_need_lc=no
9199      hardcode_direct=no
9200      hardcode_automatic=yes
9201      hardcode_shlibpath_var=unsupported
9202      whole_archive_flag_spec=''
9203      link_all_deplibs=yes
9204    if test "$GCC" = yes ; then
9205        output_verbose_link_cmd='echo'
9206        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9207      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9208      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9209      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}'
9210      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}'
9211    else
9212      case $cc_basename in
9213        xlc*)
9214         output_verbose_link_cmd='echo'
9215         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9216         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9217          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9218         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}'
9219          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}'
9220          ;;
9221       *)
9222         ld_shlibs=no
9223          ;;
9224      esac
9225    fi
9226      ;;
9227
9228    dgux*)
9229      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9230      hardcode_libdir_flag_spec='-L$libdir'
9231      hardcode_shlibpath_var=no
9232      ;;
9233
9234    freebsd1*)
9235      ld_shlibs=no
9236      ;;
9237
9238    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9239    # support.  Future versions do this automatically, but an explicit c++rt0.o
9240    # does not break anything, and helps significantly (at the cost of a little
9241    # extra space).
9242    freebsd2.2*)
9243      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9244      hardcode_libdir_flag_spec='-R$libdir'
9245      hardcode_direct=yes
9246      hardcode_shlibpath_var=no
9247      ;;
9248
9249    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9250    freebsd2*)
9251      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9252      hardcode_direct=yes
9253      hardcode_minus_L=yes
9254      hardcode_shlibpath_var=no
9255      ;;
9256
9257    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9258    freebsd* | kfreebsd*-gnu | dragonfly*)
9259      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9260      hardcode_libdir_flag_spec='-R$libdir'
9261      hardcode_direct=yes
9262      hardcode_shlibpath_var=no
9263      ;;
9264
9265    hpux9*)
9266      if test "$GCC" = yes; then
9267        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'
9268      else
9269        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'
9270      fi
9271      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9272      hardcode_libdir_separator=:
9273      hardcode_direct=yes
9274
9275      # hardcode_minus_L: Not really in the search PATH,
9276      # but as the default location of the library.
9277      hardcode_minus_L=yes
9278      export_dynamic_flag_spec='${wl}-E'
9279      ;;
9280
9281    hpux10*)
9282      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9283        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9284      else
9285        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9286      fi
9287      if test "$with_gnu_ld" = no; then
9288        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9289        hardcode_libdir_separator=:
9290
9291        hardcode_direct=yes
9292        export_dynamic_flag_spec='${wl}-E'
9293
9294        # hardcode_minus_L: Not really in the search PATH,
9295        # but as the default location of the library.
9296        hardcode_minus_L=yes
9297      fi
9298      ;;
9299
9300    hpux11*)
9301      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9302        case $host_cpu in
9303        hppa*64*)
9304          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9305          ;;
9306        ia64*)
9307          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9308          ;;
9309        *)
9310          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9311          ;;
9312        esac
9313      else
9314        case $host_cpu in
9315        hppa*64*)
9316          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9317          ;;
9318        ia64*)
9319          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9320          ;;
9321        *)
9322          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9323          ;;
9324        esac
9325      fi
9326      if test "$with_gnu_ld" = no; then
9327        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9328        hardcode_libdir_separator=:
9329
9330        case $host_cpu in
9331        hppa*64*|ia64*)
9332          hardcode_libdir_flag_spec_ld='+b $libdir'
9333          hardcode_direct=no
9334          hardcode_shlibpath_var=no
9335          ;;
9336        *)
9337          hardcode_direct=yes
9338          export_dynamic_flag_spec='${wl}-E'
9339
9340          # hardcode_minus_L: Not really in the search PATH,
9341          # but as the default location of the library.
9342          hardcode_minus_L=yes
9343          ;;
9344        esac
9345      fi
9346      ;;
9347
9348    irix5* | irix6* | nonstopux*)
9349      if test "$GCC" = yes; then
9350        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'
9351      else
9352        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'
9353        hardcode_libdir_flag_spec_ld='-rpath $libdir'
9354      fi
9355      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9356      hardcode_libdir_separator=:
9357      link_all_deplibs=yes
9358      ;;
9359
9360    netbsd*)
9361      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9362        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9363      else
9364        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9365      fi
9366      hardcode_libdir_flag_spec='-R$libdir'
9367      hardcode_direct=yes
9368      hardcode_shlibpath_var=no
9369      ;;
9370
9371    newsos6)
9372      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9373      hardcode_direct=yes
9374      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9375      hardcode_libdir_separator=:
9376      hardcode_shlibpath_var=no
9377      ;;
9378
9379    openbsd*)
9380      hardcode_direct=yes
9381      hardcode_shlibpath_var=no
9382      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9383        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9384        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9385        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9386        export_dynamic_flag_spec='${wl}-E'
9387      else
9388       case $host_os in
9389         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9390           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9391           hardcode_libdir_flag_spec='-R$libdir'
9392           ;;
9393         *)
9394           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9395           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9396           ;;
9397       esac
9398      fi
9399      ;;
9400
9401    os2*)
9402      hardcode_libdir_flag_spec='-L$libdir'
9403      hardcode_minus_L=yes
9404      allow_undefined_flag=unsupported
9405      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'
9406      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9407      ;;
9408
9409    osf3*)
9410      if test "$GCC" = yes; then
9411        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9412        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'
9413      else
9414        allow_undefined_flag=' -expect_unresolved \*'
9415        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'
9416      fi
9417      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9418      hardcode_libdir_separator=:
9419      ;;
9420
9421    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9422      if test "$GCC" = yes; then
9423        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9424        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'
9425        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9426      else
9427        allow_undefined_flag=' -expect_unresolved \*'
9428        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'
9429        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9430        $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'
9431
9432        # Both c and cxx compiler support -rpath directly
9433        hardcode_libdir_flag_spec='-rpath $libdir'
9434      fi
9435      hardcode_libdir_separator=:
9436      ;;
9437
9438    solaris*)
9439      no_undefined_flag=' -z text'
9440      if test "$GCC" = yes; then
9441        wlarc='${wl}'
9442        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9443        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9444          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9445      else
9446        wlarc=''
9447        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9448        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9449        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9450      fi
9451      hardcode_libdir_flag_spec='-R$libdir'
9452      hardcode_shlibpath_var=no
9453      case $host_os in
9454      solaris2.[0-5] | solaris2.[0-5].*) ;;
9455      *)
9456        # The compiler driver will combine linker options so we
9457        # cannot just pass the convience library names through
9458        # without $wl, iff we do not link with $LD.
9459        # Luckily, gcc supports the same syntax we need for Sun Studio.
9460        # Supported since Solaris 2.6 (maybe 2.5.1?)
9461        case $wlarc in
9462        '')
9463          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9464        *)
9465          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' ;;
9466        esac ;;
9467      esac
9468      link_all_deplibs=yes
9469      ;;
9470
9471    sunos4*)
9472      if test "x$host_vendor" = xsequent; then
9473        # Use $CC to link under sequent, because it throws in some extra .o
9474        # files that make .init and .fini sections work.
9475        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9476      else
9477        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9478      fi
9479      hardcode_libdir_flag_spec='-L$libdir'
9480      hardcode_direct=yes
9481      hardcode_minus_L=yes
9482      hardcode_shlibpath_var=no
9483      ;;
9484
9485    sysv4)
9486      case $host_vendor in
9487        sni)
9488          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9489          hardcode_direct=yes # is this really true???
9490        ;;
9491        siemens)
9492          ## LD is ld it makes a PLAMLIB
9493          ## CC just makes a GrossModule.
9494          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9495          reload_cmds='$CC -r -o $output$reload_objs'
9496          hardcode_direct=no
9497        ;;
9498        motorola)
9499          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9500          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9501        ;;
9502      esac
9503      runpath_var='LD_RUN_PATH'
9504      hardcode_shlibpath_var=no
9505      ;;
9506
9507    sysv4.3*)
9508      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9509      hardcode_shlibpath_var=no
9510      export_dynamic_flag_spec='-Bexport'
9511      ;;
9512
9513    sysv4*MP*)
9514      if test -d /usr/nec; then
9515        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9516        hardcode_shlibpath_var=no
9517        runpath_var=LD_RUN_PATH
9518        hardcode_runpath_var=yes
9519        ld_shlibs=yes
9520      fi
9521      ;;
9522
9523    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9524      no_undefined_flag='${wl}-z,text'
9525      archive_cmds_need_lc=no
9526      hardcode_shlibpath_var=no
9527      runpath_var='LD_RUN_PATH'
9528
9529      if test "$GCC" = yes; then
9530        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9531        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9532      else
9533        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9534        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9535      fi
9536      ;;
9537
9538    sysv5* | sco3.2v5* | sco5v6*)
9539      # Note: We can NOT use -z defs as we might desire, because we do not
9540      # link with -lc, and that would cause any symbols used from libc to
9541      # always be unresolved, which means just about no library would
9542      # ever link correctly.  If we're not using GNU ld we use -z text
9543      # though, which does catch some bad symbols but isn't as heavy-handed
9544      # as -z defs.
9545      no_undefined_flag='${wl}-z,text'
9546      allow_undefined_flag='${wl}-z,nodefs'
9547      archive_cmds_need_lc=no
9548      hardcode_shlibpath_var=no
9549      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9550      hardcode_libdir_separator=':'
9551      link_all_deplibs=yes
9552      export_dynamic_flag_spec='${wl}-Bexport'
9553      runpath_var='LD_RUN_PATH'
9554
9555      if test "$GCC" = yes; then
9556        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9557        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9558      else
9559        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9560        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9561      fi
9562      ;;
9563
9564    uts4*)
9565      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9566      hardcode_libdir_flag_spec='-L$libdir'
9567      hardcode_shlibpath_var=no
9568      ;;
9569
9570    *)
9571      ld_shlibs=no
9572      ;;
9573    esac
9574  fi
9575
9576echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9577echo "${ECHO_T}$ld_shlibs" >&6
9578test "$ld_shlibs" = no && can_build_shared=no
9579
9580#
9581# Do we need to explicitly link libc?
9582#
9583case "x$archive_cmds_need_lc" in
9584x|xyes)
9585  # Assume -lc should be added
9586  archive_cmds_need_lc=yes
9587
9588  if test "$enable_shared" = yes && test "$GCC" = yes; then
9589    case $archive_cmds in
9590    *'~'*)
9591      # FIXME: we may have to deal with multi-command sequences.
9592      ;;
9593    '$CC '*)
9594      # Test whether the compiler implicitly links with -lc since on some
9595      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9596      # to ld, don't add -lc before -lgcc.
9597      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9598echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9599      $rm conftest*
9600      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9601
9602      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9603  (eval $ac_compile) 2>&5
9604  ac_status=$?
9605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9606  (exit $ac_status); } 2>conftest.err; then
9607        soname=conftest
9608        lib=conftest
9609        libobjs=conftest.$ac_objext
9610        deplibs=
9611        wl=$lt_prog_compiler_wl
9612        pic_flag=$lt_prog_compiler_pic
9613        compiler_flags=-v
9614        linker_flags=-v
9615        verstring=
9616        output_objdir=.
9617        libname=conftest
9618        lt_save_allow_undefined_flag=$allow_undefined_flag
9619        allow_undefined_flag=
9620        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9621  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9622  ac_status=$?
9623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624  (exit $ac_status); }
9625        then
9626          archive_cmds_need_lc=no
9627        else
9628          archive_cmds_need_lc=yes
9629        fi
9630        allow_undefined_flag=$lt_save_allow_undefined_flag
9631      else
9632        cat conftest.err 1>&5
9633      fi
9634      $rm conftest*
9635      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9636echo "${ECHO_T}$archive_cmds_need_lc" >&6
9637      ;;
9638    esac
9639  fi
9640  ;;
9641esac
9642
9643echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9644echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9645library_names_spec=
9646libname_spec='lib$name'
9647soname_spec=
9648shrext_cmds=".so"
9649postinstall_cmds=
9650postuninstall_cmds=
9651finish_cmds=
9652finish_eval=
9653shlibpath_var=
9654shlibpath_overrides_runpath=unknown
9655version_type=none
9656dynamic_linker="$host_os ld.so"
9657sys_lib_dlsearch_path_spec="/lib /usr/lib"
9658if test "$GCC" = yes; then
9659  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9660  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9661    # if the path contains ";" then we assume it to be the separator
9662    # otherwise default to the standard path separator (i.e. ":") - it is
9663    # assumed that no part of a normal pathname contains ";" but that should
9664    # okay in the real world where ";" in dirpaths is itself problematic.
9665    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9666  else
9667    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9668  fi
9669else
9670  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9671fi
9672need_lib_prefix=unknown
9673hardcode_into_libs=no
9674
9675# when you set need_version to no, make sure it does not cause -set_version
9676# flags to be left without arguments
9677need_version=unknown
9678
9679case $host_os in
9680aix3*)
9681  version_type=linux
9682  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9683  shlibpath_var=LIBPATH
9684
9685  # AIX 3 has no versioning support, so we append a major version to the name.
9686  soname_spec='${libname}${release}${shared_ext}$major'
9687  ;;
9688
9689aix4* | aix5*)
9690  version_type=linux
9691  need_lib_prefix=no
9692  need_version=no
9693  hardcode_into_libs=yes
9694  if test "$host_cpu" = ia64; then
9695    # AIX 5 supports IA64
9696    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9697    shlibpath_var=LD_LIBRARY_PATH
9698  else
9699    # With GCC up to 2.95.x, collect2 would create an import file
9700    # for dependence libraries.  The import file would start with
9701    # the line `#! .'.  This would cause the generated library to
9702    # depend on `.', always an invalid library.  This was fixed in
9703    # development snapshots of GCC prior to 3.0.
9704    case $host_os in
9705      aix4 | aix4.[01] | aix4.[01].*)
9706      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9707           echo ' yes '
9708           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9709        :
9710      else
9711        can_build_shared=no
9712      fi
9713      ;;
9714    esac
9715    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9716    # soname into executable. Probably we can add versioning support to
9717    # collect2, so additional links can be useful in future.
9718    if test "$aix_use_runtimelinking" = yes; then
9719      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9720      # instead of lib<name>.a to let people know that these are not
9721      # typical AIX shared libraries.
9722      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9723    else
9724      # We preserve .a as extension for shared libraries through AIX4.2
9725      # and later when we are not doing run time linking.
9726      library_names_spec='${libname}${release}.a $libname.a'
9727      soname_spec='${libname}${release}${shared_ext}$major'
9728    fi
9729    shlibpath_var=LIBPATH
9730  fi
9731  ;;
9732
9733amigaos*)
9734  library_names_spec='$libname.ixlibrary $libname.a'
9735  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9736  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'
9737  ;;
9738
9739beos*)
9740  library_names_spec='${libname}${shared_ext}'
9741  dynamic_linker="$host_os ld.so"
9742  shlibpath_var=LIBRARY_PATH
9743  ;;
9744
9745bsdi[45]*)
9746  version_type=linux
9747  need_version=no
9748  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9749  soname_spec='${libname}${release}${shared_ext}$major'
9750  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9751  shlibpath_var=LD_LIBRARY_PATH
9752  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9753  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9754  # the default ld.so.conf also contains /usr/contrib/lib and
9755  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9756  # libtool to hard-code these into programs
9757  ;;
9758
9759cygwin* | mingw* | pw32*)
9760  version_type=windows
9761  shrext_cmds=".dll"
9762  need_version=no
9763  need_lib_prefix=no
9764
9765  case $GCC,$host_os in
9766  yes,cygwin* | yes,mingw* | yes,pw32*)
9767    library_names_spec='$libname.dll.a'
9768    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9769    postinstall_cmds='base_file=`basename \${file}`~
9770      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9771      dldir=$destdir/`dirname \$dlpath`~
9772      test -d \$dldir || mkdir -p \$dldir~
9773      $install_prog $dir/$dlname \$dldir/$dlname~
9774      chmod a+x \$dldir/$dlname'
9775    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9776      dlpath=$dir/\$dldll~
9777       $rm \$dlpath'
9778    shlibpath_overrides_runpath=yes
9779
9780    case $host_os in
9781    cygwin*)
9782      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9783      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9784      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9785      ;;
9786    mingw*)
9787      # MinGW DLLs use traditional 'lib' prefix
9788      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9789      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9790      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9791        # It is most probably a Windows format PATH printed by
9792        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9793        # path with ; separators, and with drive letters. We can handle the
9794        # drive letters (cygwin fileutils understands them), so leave them,
9795        # especially as we might pass files found there to a mingw objdump,
9796        # which wouldn't understand a cygwinified path. Ahh.
9797        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9798      else
9799        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9800      fi
9801      ;;
9802    pw32*)
9803      # pw32 DLLs use 'pw' prefix rather than 'lib'
9804      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9805      ;;
9806    esac
9807    ;;
9808
9809  *)
9810    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9811    ;;
9812  esac
9813  dynamic_linker='Win32 ld.exe'
9814  # FIXME: first we should search . and the directory the executable is in
9815  shlibpath_var=PATH
9816  ;;
9817
9818darwin* | rhapsody*)
9819  dynamic_linker="$host_os dyld"
9820  version_type=darwin
9821  need_lib_prefix=no
9822  need_version=no
9823  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9824  soname_spec='${libname}${release}${major}$shared_ext'
9825  shlibpath_overrides_runpath=yes
9826  shlibpath_var=DYLD_LIBRARY_PATH
9827  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9828  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9829  if test "$GCC" = yes; then
9830    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"`
9831  else
9832    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9833  fi
9834  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9835  ;;
9836
9837dgux*)
9838  version_type=linux
9839  need_lib_prefix=no
9840  need_version=no
9841  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9842  soname_spec='${libname}${release}${shared_ext}$major'
9843  shlibpath_var=LD_LIBRARY_PATH
9844  ;;
9845
9846freebsd1*)
9847  dynamic_linker=no
9848  ;;
9849
9850kfreebsd*-gnu)
9851  version_type=linux
9852  need_lib_prefix=no
9853  need_version=no
9854  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9855  soname_spec='${libname}${release}${shared_ext}$major'
9856  shlibpath_var=LD_LIBRARY_PATH
9857  shlibpath_overrides_runpath=no
9858  hardcode_into_libs=yes
9859  dynamic_linker='GNU ld.so'
9860  ;;
9861
9862freebsd* | dragonfly*)
9863  # DragonFly does not have aout.  When/if they implement a new
9864  # versioning mechanism, adjust this.
9865  if test -x /usr/bin/objformat; then
9866    objformat=`/usr/bin/objformat`
9867  else
9868    case $host_os in
9869    freebsd[123]*) objformat=aout ;;
9870    *) objformat=elf ;;
9871    esac
9872  fi
9873  version_type=freebsd-$objformat
9874  case $version_type in
9875    freebsd-elf*)
9876      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9877      need_version=no
9878      need_lib_prefix=no
9879      ;;
9880    freebsd-*)
9881      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9882      need_version=yes
9883      ;;
9884  esac
9885  shlibpath_var=LD_LIBRARY_PATH
9886  case $host_os in
9887  freebsd2*)
9888    shlibpath_overrides_runpath=yes
9889    ;;
9890  freebsd3.[01]* | freebsdelf3.[01]*)
9891    shlibpath_overrides_runpath=yes
9892    hardcode_into_libs=yes
9893    ;;
9894  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9895  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9896    shlibpath_overrides_runpath=no
9897    hardcode_into_libs=yes
9898    ;;
9899  freebsd*) # from 4.6 on
9900    shlibpath_overrides_runpath=yes
9901    hardcode_into_libs=yes
9902    ;;
9903  esac
9904  ;;
9905
9906gnu*)
9907  version_type=linux
9908  need_lib_prefix=no
9909  need_version=no
9910  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9911  soname_spec='${libname}${release}${shared_ext}$major'
9912  shlibpath_var=LD_LIBRARY_PATH
9913  hardcode_into_libs=yes
9914  ;;
9915
9916hpux9* | hpux10* | hpux11*)
9917  # Give a soname corresponding to the major version so that dld.sl refuses to
9918  # link against other versions.
9919  version_type=sunos
9920  need_lib_prefix=no
9921  need_version=no
9922  case $host_cpu in
9923  ia64*)
9924    shrext_cmds='.so'
9925    hardcode_into_libs=yes
9926    dynamic_linker="$host_os dld.so"
9927    shlibpath_var=LD_LIBRARY_PATH
9928    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9929    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9930    soname_spec='${libname}${release}${shared_ext}$major'
9931    if test "X$HPUX_IA64_MODE" = X32; then
9932      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9933    else
9934      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9935    fi
9936    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9937    ;;
9938   hppa*64*)
9939     shrext_cmds='.sl'
9940     hardcode_into_libs=yes
9941     dynamic_linker="$host_os dld.sl"
9942     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9943     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9944     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9945     soname_spec='${libname}${release}${shared_ext}$major'
9946     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9947     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9948     ;;
9949   *)
9950    shrext_cmds='.sl'
9951    dynamic_linker="$host_os dld.sl"
9952    shlibpath_var=SHLIB_PATH
9953    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9954    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9955    soname_spec='${libname}${release}${shared_ext}$major'
9956    ;;
9957  esac
9958  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9959  postinstall_cmds='chmod 555 $lib'
9960  ;;
9961
9962interix3*)
9963  version_type=linux
9964  need_lib_prefix=no
9965  need_version=no
9966  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9967  soname_spec='${libname}${release}${shared_ext}$major'
9968  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9969  shlibpath_var=LD_LIBRARY_PATH
9970  shlibpath_overrides_runpath=no
9971  hardcode_into_libs=yes
9972  ;;
9973
9974irix5* | irix6* | nonstopux*)
9975  case $host_os in
9976    nonstopux*) version_type=nonstopux ;;
9977    *)
9978        if test "$lt_cv_prog_gnu_ld" = yes; then
9979                version_type=linux
9980        else
9981                version_type=irix
9982        fi ;;
9983  esac
9984  need_lib_prefix=no
9985  need_version=no
9986  soname_spec='${libname}${release}${shared_ext}$major'
9987  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9988  case $host_os in
9989  irix5* | nonstopux*)
9990    libsuff= shlibsuff=
9991    ;;
9992  *)
9993    case $LD in # libtool.m4 will add one of these switches to LD
9994    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9995      libsuff= shlibsuff= libmagic=32-bit;;
9996    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9997      libsuff=32 shlibsuff=N32 libmagic=N32;;
9998    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9999      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10000    *) libsuff= shlibsuff= libmagic=never-match;;
10001    esac
10002    ;;
10003  esac
10004  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10005  shlibpath_overrides_runpath=no
10006  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10007  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10008  hardcode_into_libs=yes
10009  ;;
10010
10011# No shared lib support for Linux oldld, aout, or coff.
10012linux*oldld* | linux*aout* | linux*coff*)
10013  dynamic_linker=no
10014  ;;
10015
10016# This must be Linux ELF.
10017linux*)
10018  version_type=linux
10019  need_lib_prefix=no
10020  need_version=no
10021  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10022  soname_spec='${libname}${release}${shared_ext}$major'
10023  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10024  shlibpath_var=LD_LIBRARY_PATH
10025  shlibpath_overrides_runpath=no
10026  # This implies no fast_install, which is unacceptable.
10027  # Some rework will be needed to allow for fast_install
10028  # before this can be enabled.
10029  hardcode_into_libs=yes
10030
10031  # Append ld.so.conf contents to the search path
10032  if test -f /etc/ld.so.conf; then
10033    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' ' '`
10034    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10035  fi
10036
10037  # We used to test for /lib/ld.so.1 and disable shared libraries on
10038  # powerpc, because MkLinux only supported shared libraries with the
10039  # GNU dynamic linker.  Since this was broken with cross compilers,
10040  # most powerpc-linux boxes support dynamic linking these days and
10041  # people can always --disable-shared, the test was removed, and we
10042  # assume the GNU/Linux dynamic linker is in use.
10043  dynamic_linker='GNU/Linux ld.so'
10044  ;;
10045
10046knetbsd*-gnu)
10047  version_type=linux
10048  need_lib_prefix=no
10049  need_version=no
10050  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10051  soname_spec='${libname}${release}${shared_ext}$major'
10052  shlibpath_var=LD_LIBRARY_PATH
10053  shlibpath_overrides_runpath=no
10054  hardcode_into_libs=yes
10055  dynamic_linker='GNU ld.so'
10056  ;;
10057
10058netbsd*)
10059  version_type=sunos
10060  need_lib_prefix=no
10061  need_version=no
10062  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10063    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10064    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10065    dynamic_linker='NetBSD (a.out) ld.so'
10066  else
10067    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10068    soname_spec='${libname}${release}${shared_ext}$major'
10069    dynamic_linker='NetBSD ld.elf_so'
10070  fi
10071  shlibpath_var=LD_LIBRARY_PATH
10072  shlibpath_overrides_runpath=yes
10073  hardcode_into_libs=yes
10074  ;;
10075
10076newsos6)
10077  version_type=linux
10078  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10079  shlibpath_var=LD_LIBRARY_PATH
10080  shlibpath_overrides_runpath=yes
10081  ;;
10082
10083nto-qnx*)
10084  version_type=linux
10085  need_lib_prefix=no
10086  need_version=no
10087  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10088  soname_spec='${libname}${release}${shared_ext}$major'
10089  shlibpath_var=LD_LIBRARY_PATH
10090  shlibpath_overrides_runpath=yes
10091  ;;
10092
10093openbsd*)
10094  version_type=sunos
10095  sys_lib_dlsearch_path_spec="/usr/lib"
10096  need_lib_prefix=no
10097  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10098  case $host_os in
10099    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10100    *)                         need_version=no  ;;
10101  esac
10102  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10103  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10104  shlibpath_var=LD_LIBRARY_PATH
10105  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10106    case $host_os in
10107      openbsd2.[89] | openbsd2.[89].*)
10108        shlibpath_overrides_runpath=no
10109        ;;
10110      *)
10111        shlibpath_overrides_runpath=yes
10112        ;;
10113      esac
10114  else
10115    shlibpath_overrides_runpath=yes
10116  fi
10117  ;;
10118
10119os2*)
10120  libname_spec='$name'
10121  shrext_cmds=".dll"
10122  need_lib_prefix=no
10123  library_names_spec='$libname${shared_ext} $libname.a'
10124  dynamic_linker='OS/2 ld.exe'
10125  shlibpath_var=LIBPATH
10126  ;;
10127
10128osf3* | osf4* | osf5*)
10129  version_type=osf
10130  need_lib_prefix=no
10131  need_version=no
10132  soname_spec='${libname}${release}${shared_ext}$major'
10133  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10134  shlibpath_var=LD_LIBRARY_PATH
10135  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10136  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10137  ;;
10138
10139solaris*)
10140  version_type=linux
10141  need_lib_prefix=no
10142  need_version=no
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  shlibpath_var=LD_LIBRARY_PATH
10146  shlibpath_overrides_runpath=yes
10147  hardcode_into_libs=yes
10148  # ldd complains unless libraries are executable
10149  postinstall_cmds='chmod +x $lib'
10150  ;;
10151
10152sunos4*)
10153  version_type=sunos
10154  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10155  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10156  shlibpath_var=LD_LIBRARY_PATH
10157  shlibpath_overrides_runpath=yes
10158  if test "$with_gnu_ld" = yes; then
10159    need_lib_prefix=no
10160  fi
10161  need_version=yes
10162  ;;
10163
10164sysv4 | sysv4.3*)
10165  version_type=linux
10166  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10167  soname_spec='${libname}${release}${shared_ext}$major'
10168  shlibpath_var=LD_LIBRARY_PATH
10169  case $host_vendor in
10170    sni)
10171      shlibpath_overrides_runpath=no
10172      need_lib_prefix=no
10173      export_dynamic_flag_spec='${wl}-Blargedynsym'
10174      runpath_var=LD_RUN_PATH
10175      ;;
10176    siemens)
10177      need_lib_prefix=no
10178      ;;
10179    motorola)
10180      need_lib_prefix=no
10181      need_version=no
10182      shlibpath_overrides_runpath=no
10183      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10184      ;;
10185  esac
10186  ;;
10187
10188sysv4*MP*)
10189  if test -d /usr/nec ;then
10190    version_type=linux
10191    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10192    soname_spec='$libname${shared_ext}.$major'
10193    shlibpath_var=LD_LIBRARY_PATH
10194  fi
10195  ;;
10196
10197sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10198  version_type=freebsd-elf
10199  need_lib_prefix=no
10200  need_version=no
10201  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10202  soname_spec='${libname}${release}${shared_ext}$major'
10203  shlibpath_var=LD_LIBRARY_PATH
10204  hardcode_into_libs=yes
10205  if test "$with_gnu_ld" = yes; then
10206    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10207    shlibpath_overrides_runpath=no
10208  else
10209    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10210    shlibpath_overrides_runpath=yes
10211    case $host_os in
10212      sco3.2v5*)
10213        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10214        ;;
10215    esac
10216  fi
10217  sys_lib_dlsearch_path_spec='/usr/lib'
10218  ;;
10219
10220uts4*)
10221  version_type=linux
10222  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10223  soname_spec='${libname}${release}${shared_ext}$major'
10224  shlibpath_var=LD_LIBRARY_PATH
10225  ;;
10226
10227*)
10228  dynamic_linker=no
10229  ;;
10230esac
10231echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10232echo "${ECHO_T}$dynamic_linker" >&6
10233test "$dynamic_linker" = no && can_build_shared=no
10234
10235variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10236if test "$GCC" = yes; then
10237  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10238fi
10239
10240echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10241echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10242hardcode_action=
10243if test -n "$hardcode_libdir_flag_spec" || \
10244   test -n "$runpath_var" || \
10245   test "X$hardcode_automatic" = "Xyes" ; then
10246
10247  # We can hardcode non-existant directories.
10248  if test "$hardcode_direct" != no &&
10249     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10250     # have to relink, otherwise we might link with an installed library
10251     # when we should be linking with a yet-to-be-installed one
10252     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10253     test "$hardcode_minus_L" != no; then
10254    # Linking always hardcodes the temporary library directory.
10255    hardcode_action=relink
10256  else
10257    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10258    hardcode_action=immediate
10259  fi
10260else
10261  # We cannot hardcode anything, or else we can only hardcode existing
10262  # directories.
10263  hardcode_action=unsupported
10264fi
10265echo "$as_me:$LINENO: result: $hardcode_action" >&5
10266echo "${ECHO_T}$hardcode_action" >&6
10267
10268if test "$hardcode_action" = relink; then
10269  # Fast installation is not supported
10270  enable_fast_install=no
10271elif test "$shlibpath_overrides_runpath" = yes ||
10272     test "$enable_shared" = no; then
10273  # Fast installation is not necessary
10274  enable_fast_install=needless
10275fi
10276
10277striplib=
10278old_striplib=
10279echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10280echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10281if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10282  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10283  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10284  echo "$as_me:$LINENO: result: yes" >&5
10285echo "${ECHO_T}yes" >&6
10286else
10287# FIXME - insert some real tests, host_os isn't really good enough
10288  case $host_os in
10289   darwin*)
10290       if test -n "$STRIP" ; then
10291         striplib="$STRIP -x"
10292         echo "$as_me:$LINENO: result: yes" >&5
10293echo "${ECHO_T}yes" >&6
10294       else
10295  echo "$as_me:$LINENO: result: no" >&5
10296echo "${ECHO_T}no" >&6
10297fi
10298       ;;
10299   *)
10300  echo "$as_me:$LINENO: result: no" >&5
10301echo "${ECHO_T}no" >&6
10302    ;;
10303  esac
10304fi
10305
10306if test "x$enable_dlopen" != xyes; then
10307  enable_dlopen=unknown
10308  enable_dlopen_self=unknown
10309  enable_dlopen_self_static=unknown
10310else
10311  lt_cv_dlopen=no
10312  lt_cv_dlopen_libs=
10313
10314  case $host_os in
10315  beos*)
10316    lt_cv_dlopen="load_add_on"
10317    lt_cv_dlopen_libs=
10318    lt_cv_dlopen_self=yes
10319    ;;
10320
10321  mingw* | pw32*)
10322    lt_cv_dlopen="LoadLibrary"
10323    lt_cv_dlopen_libs=
10324   ;;
10325
10326  cygwin*)
10327    lt_cv_dlopen="dlopen"
10328    lt_cv_dlopen_libs=
10329   ;;
10330
10331  darwin*)
10332  # if libdl is installed we need to link against it
10333    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10334echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10335if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10336  echo $ECHO_N "(cached) $ECHO_C" >&6
10337else
10338  ac_check_lib_save_LIBS=$LIBS
10339LIBS="-ldl  $LIBS"
10340cat >conftest.$ac_ext <<_ACEOF
10341/* confdefs.h.  */
10342_ACEOF
10343cat confdefs.h >>conftest.$ac_ext
10344cat >>conftest.$ac_ext <<_ACEOF
10345/* end confdefs.h.  */
10346
10347/* Override any gcc2 internal prototype to avoid an error.  */
10348#ifdef __cplusplus
10349extern "C"
10350#endif
10351/* We use char because int might match the return type of a gcc2
10352   builtin and then its argument prototype would still apply.  */
10353char dlopen ();
10354int
10355main ()
10356{
10357dlopen ();
10358  ;
10359  return 0;
10360}
10361_ACEOF
10362rm -f conftest.$ac_objext conftest$ac_exeext
10363if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10364  (eval $ac_link) 2>conftest.er1
10365  ac_status=$?
10366  grep -v '^ *+' conftest.er1 >conftest.err
10367  rm -f conftest.er1
10368  cat conftest.err >&5
10369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370  (exit $ac_status); } &&
10371         { ac_try='test -z "$ac_c_werror_flag"
10372                         || test ! -s conftest.err'
10373  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10374  (eval $ac_try) 2>&5
10375  ac_status=$?
10376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10377  (exit $ac_status); }; } &&
10378         { ac_try='test -s conftest$ac_exeext'
10379  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10380  (eval $ac_try) 2>&5
10381  ac_status=$?
10382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10383  (exit $ac_status); }; }; then
10384  ac_cv_lib_dl_dlopen=yes
10385else
10386  echo "$as_me: failed program was:" >&5
10387sed 's/^/| /' conftest.$ac_ext >&5
10388
10389ac_cv_lib_dl_dlopen=no
10390fi
10391rm -f conftest.err conftest.$ac_objext \
10392      conftest$ac_exeext conftest.$ac_ext
10393LIBS=$ac_check_lib_save_LIBS
10394fi
10395echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10396echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10397if test $ac_cv_lib_dl_dlopen = yes; then
10398  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10399else
10400
10401    lt_cv_dlopen="dyld"
10402    lt_cv_dlopen_libs=
10403    lt_cv_dlopen_self=yes
10404
10405fi
10406
10407   ;;
10408
10409  *)
10410    echo "$as_me:$LINENO: checking for shl_load" >&5
10411echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10412if test "${ac_cv_func_shl_load+set}" = set; then
10413  echo $ECHO_N "(cached) $ECHO_C" >&6
10414else
10415  cat >conftest.$ac_ext <<_ACEOF
10416/* confdefs.h.  */
10417_ACEOF
10418cat confdefs.h >>conftest.$ac_ext
10419cat >>conftest.$ac_ext <<_ACEOF
10420/* end confdefs.h.  */
10421/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10422   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10423#define shl_load innocuous_shl_load
10424
10425/* System header to define __stub macros and hopefully few prototypes,
10426    which can conflict with char shl_load (); below.
10427    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10428    <limits.h> exists even on freestanding compilers.  */
10429
10430#ifdef __STDC__
10431# include <limits.h>
10432#else
10433# include <assert.h>
10434#endif
10435
10436#undef shl_load
10437
10438/* Override any gcc2 internal prototype to avoid an error.  */
10439#ifdef __cplusplus
10440extern "C"
10441{
10442#endif
10443/* We use char because int might match the return type of a gcc2
10444   builtin and then its argument prototype would still apply.  */
10445char shl_load ();
10446/* The GNU C library defines this for functions which it implements
10447    to always fail with ENOSYS.  Some functions are actually named
10448    something starting with __ and the normal name is an alias.  */
10449#if defined (__stub_shl_load) || defined (__stub___shl_load)
10450choke me
10451#else
10452char (*f) () = shl_load;
10453#endif
10454#ifdef __cplusplus
10455}
10456#endif
10457
10458int
10459main ()
10460{
10461return f != shl_load;
10462  ;
10463  return 0;
10464}
10465_ACEOF
10466rm -f conftest.$ac_objext conftest$ac_exeext
10467if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10468  (eval $ac_link) 2>conftest.er1
10469  ac_status=$?
10470  grep -v '^ *+' conftest.er1 >conftest.err
10471  rm -f conftest.er1
10472  cat conftest.err >&5
10473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474  (exit $ac_status); } &&
10475         { ac_try='test -z "$ac_c_werror_flag"
10476                         || test ! -s conftest.err'
10477  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10478  (eval $ac_try) 2>&5
10479  ac_status=$?
10480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481  (exit $ac_status); }; } &&
10482         { ac_try='test -s conftest$ac_exeext'
10483  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10484  (eval $ac_try) 2>&5
10485  ac_status=$?
10486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487  (exit $ac_status); }; }; then
10488  ac_cv_func_shl_load=yes
10489else
10490  echo "$as_me: failed program was:" >&5
10491sed 's/^/| /' conftest.$ac_ext >&5
10492
10493ac_cv_func_shl_load=no
10494fi
10495rm -f conftest.err conftest.$ac_objext \
10496      conftest$ac_exeext conftest.$ac_ext
10497fi
10498echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10499echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10500if test $ac_cv_func_shl_load = yes; then
10501  lt_cv_dlopen="shl_load"
10502else
10503  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10504echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10505if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10506  echo $ECHO_N "(cached) $ECHO_C" >&6
10507else
10508  ac_check_lib_save_LIBS=$LIBS
10509LIBS="-ldld  $LIBS"
10510cat >conftest.$ac_ext <<_ACEOF
10511/* confdefs.h.  */
10512_ACEOF
10513cat confdefs.h >>conftest.$ac_ext
10514cat >>conftest.$ac_ext <<_ACEOF
10515/* end confdefs.h.  */
10516
10517/* Override any gcc2 internal prototype to avoid an error.  */
10518#ifdef __cplusplus
10519extern "C"
10520#endif
10521/* We use char because int might match the return type of a gcc2
10522   builtin and then its argument prototype would still apply.  */
10523char shl_load ();
10524int
10525main ()
10526{
10527shl_load ();
10528  ;
10529  return 0;
10530}
10531_ACEOF
10532rm -f conftest.$ac_objext conftest$ac_exeext
10533if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10534  (eval $ac_link) 2>conftest.er1
10535  ac_status=$?
10536  grep -v '^ *+' conftest.er1 >conftest.err
10537  rm -f conftest.er1
10538  cat conftest.err >&5
10539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540  (exit $ac_status); } &&
10541         { ac_try='test -z "$ac_c_werror_flag"
10542                         || test ! -s conftest.err'
10543  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10544  (eval $ac_try) 2>&5
10545  ac_status=$?
10546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547  (exit $ac_status); }; } &&
10548         { ac_try='test -s conftest$ac_exeext'
10549  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10550  (eval $ac_try) 2>&5
10551  ac_status=$?
10552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10553  (exit $ac_status); }; }; then
10554  ac_cv_lib_dld_shl_load=yes
10555else
10556  echo "$as_me: failed program was:" >&5
10557sed 's/^/| /' conftest.$ac_ext >&5
10558
10559ac_cv_lib_dld_shl_load=no
10560fi
10561rm -f conftest.err conftest.$ac_objext \
10562      conftest$ac_exeext conftest.$ac_ext
10563LIBS=$ac_check_lib_save_LIBS
10564fi
10565echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10566echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10567if test $ac_cv_lib_dld_shl_load = yes; then
10568  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10569else
10570  echo "$as_me:$LINENO: checking for dlopen" >&5
10571echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10572if test "${ac_cv_func_dlopen+set}" = set; then
10573  echo $ECHO_N "(cached) $ECHO_C" >&6
10574else
10575  cat >conftest.$ac_ext <<_ACEOF
10576/* confdefs.h.  */
10577_ACEOF
10578cat confdefs.h >>conftest.$ac_ext
10579cat >>conftest.$ac_ext <<_ACEOF
10580/* end confdefs.h.  */
10581/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10582   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10583#define dlopen innocuous_dlopen
10584
10585/* System header to define __stub macros and hopefully few prototypes,
10586    which can conflict with char dlopen (); below.
10587    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10588    <limits.h> exists even on freestanding compilers.  */
10589
10590#ifdef __STDC__
10591# include <limits.h>
10592#else
10593# include <assert.h>
10594#endif
10595
10596#undef dlopen
10597
10598/* Override any gcc2 internal prototype to avoid an error.  */
10599#ifdef __cplusplus
10600extern "C"
10601{
10602#endif
10603/* We use char because int might match the return type of a gcc2
10604   builtin and then its argument prototype would still apply.  */
10605char dlopen ();
10606/* The GNU C library defines this for functions which it implements
10607    to always fail with ENOSYS.  Some functions are actually named
10608    something starting with __ and the normal name is an alias.  */
10609#if defined (__stub_dlopen) || defined (__stub___dlopen)
10610choke me
10611#else
10612char (*f) () = dlopen;
10613#endif
10614#ifdef __cplusplus
10615}
10616#endif
10617
10618int
10619main ()
10620{
10621return f != dlopen;
10622  ;
10623  return 0;
10624}
10625_ACEOF
10626rm -f conftest.$ac_objext conftest$ac_exeext
10627if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10628  (eval $ac_link) 2>conftest.er1
10629  ac_status=$?
10630  grep -v '^ *+' conftest.er1 >conftest.err
10631  rm -f conftest.er1
10632  cat conftest.err >&5
10633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10634  (exit $ac_status); } &&
10635         { ac_try='test -z "$ac_c_werror_flag"
10636                         || test ! -s conftest.err'
10637  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10638  (eval $ac_try) 2>&5
10639  ac_status=$?
10640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10641  (exit $ac_status); }; } &&
10642         { ac_try='test -s conftest$ac_exeext'
10643  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10644  (eval $ac_try) 2>&5
10645  ac_status=$?
10646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647  (exit $ac_status); }; }; then
10648  ac_cv_func_dlopen=yes
10649else
10650  echo "$as_me: failed program was:" >&5
10651sed 's/^/| /' conftest.$ac_ext >&5
10652
10653ac_cv_func_dlopen=no
10654fi
10655rm -f conftest.err conftest.$ac_objext \
10656      conftest$ac_exeext conftest.$ac_ext
10657fi
10658echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10659echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10660if test $ac_cv_func_dlopen = yes; then
10661  lt_cv_dlopen="dlopen"
10662else
10663  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10664echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10665if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10666  echo $ECHO_N "(cached) $ECHO_C" >&6
10667else
10668  ac_check_lib_save_LIBS=$LIBS
10669LIBS="-ldl  $LIBS"
10670cat >conftest.$ac_ext <<_ACEOF
10671/* confdefs.h.  */
10672_ACEOF
10673cat confdefs.h >>conftest.$ac_ext
10674cat >>conftest.$ac_ext <<_ACEOF
10675/* end confdefs.h.  */
10676
10677/* Override any gcc2 internal prototype to avoid an error.  */
10678#ifdef __cplusplus
10679extern "C"
10680#endif
10681/* We use char because int might match the return type of a gcc2
10682   builtin and then its argument prototype would still apply.  */
10683char dlopen ();
10684int
10685main ()
10686{
10687dlopen ();
10688  ;
10689  return 0;
10690}
10691_ACEOF
10692rm -f conftest.$ac_objext conftest$ac_exeext
10693if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10694  (eval $ac_link) 2>conftest.er1
10695  ac_status=$?
10696  grep -v '^ *+' conftest.er1 >conftest.err
10697  rm -f conftest.er1
10698  cat conftest.err >&5
10699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700  (exit $ac_status); } &&
10701         { ac_try='test -z "$ac_c_werror_flag"
10702                         || test ! -s conftest.err'
10703  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10704  (eval $ac_try) 2>&5
10705  ac_status=$?
10706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10707  (exit $ac_status); }; } &&
10708         { ac_try='test -s conftest$ac_exeext'
10709  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10710  (eval $ac_try) 2>&5
10711  ac_status=$?
10712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713  (exit $ac_status); }; }; then
10714  ac_cv_lib_dl_dlopen=yes
10715else
10716  echo "$as_me: failed program was:" >&5
10717sed 's/^/| /' conftest.$ac_ext >&5
10718
10719ac_cv_lib_dl_dlopen=no
10720fi
10721rm -f conftest.err conftest.$ac_objext \
10722      conftest$ac_exeext conftest.$ac_ext
10723LIBS=$ac_check_lib_save_LIBS
10724fi
10725echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10726echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10727if test $ac_cv_lib_dl_dlopen = yes; then
10728  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10729else
10730  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10731echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10732if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10733  echo $ECHO_N "(cached) $ECHO_C" >&6
10734else
10735  ac_check_lib_save_LIBS=$LIBS
10736LIBS="-lsvld  $LIBS"
10737cat >conftest.$ac_ext <<_ACEOF
10738/* confdefs.h.  */
10739_ACEOF
10740cat confdefs.h >>conftest.$ac_ext
10741cat >>conftest.$ac_ext <<_ACEOF
10742/* end confdefs.h.  */
10743
10744/* Override any gcc2 internal prototype to avoid an error.  */
10745#ifdef __cplusplus
10746extern "C"
10747#endif
10748/* We use char because int might match the return type of a gcc2