source: branches/devel/Cbc/configure @ 547

Last change on this file since 547 was 547, checked in by andreasw, 13 years ago

replace make by $(MAKE) in Makefile.am; reran autotools

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