source: stable/2.5/Cbc/configure @ 1474

Last change on this file since 1474 was 1474, checked in by lou, 11 years ago

Whoops. Forgot to remove the explicit definition of CBC_VERSION from
Cbc/configure.ac.

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