source: ThirdParty/SCIP/trunk/configure @ 2910

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

run autotools with BuildTools?/stable/0.7

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