source: trunk/Cbc/configure @ 1133

Last change on this file since 1133 was 1133, checked in by forrest, 11 years ago

fix bug in gamstest

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