source: stable/BSPsplit/configure @ 1523

Last change on this file since 1523 was 1208, checked in by stefan, 12 years ago

cbc does not make use of symphony

  • Property svn:executable set to *
File size: 852.3 KB
Line 
1#! /bin/sh
2# From configure.ac 0.9.
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.59 for Cbc 2.3stable.
5#
6# Report bugs to <coin-cbc@lists.coin-or.org>.
7#
8# Copyright (C) 2003 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11#
12#
13# Copyright 2006 International Business Machines and others.
14# All Rights Reserved.
15# This file is part of the open source package Coin which is distributed
16# under the Common Public License.
17## --------------------- ##
18## M4sh Initialization.  ##
19## --------------------- ##
20
21# Be Bourne compatible
22if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23  emulate sh
24  NULLCMD=:
25  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26  # is contrary to our usage.  Disable this feature.
27  alias -g '${1+"$@"}'='"$@"'
28elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29  set -o posix
30fi
31DUALCASE=1; export DUALCASE # for MKS sh
32
33# Support unset when possible.
34if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35  as_unset=unset
36else
37  as_unset=false
38fi
39
40
41# Work around bugs in pre-3.0 UWIN ksh.
42$as_unset ENV MAIL MAILPATH
43PS1='$ '
44PS2='> '
45PS4='+ '
46
47# NLS nuisances.
48for as_var in \
49  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
50  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
51  LC_TELEPHONE LC_TIME
52do
53  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
54    eval $as_var=C; export $as_var
55  else
56    $as_unset $as_var
57  fi
58done
59
60# Required to use basename.
61if expr a : '\(a\)' >/dev/null 2>&1; then
62  as_expr=expr
63else
64  as_expr=false
65fi
66
67if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
68  as_basename=basename
69else
70  as_basename=false
71fi
72
73
74# Name of the executable.
75as_me=`$as_basename "$0" ||
76$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
77         X"$0" : 'X\(//\)$' \| \
78         X"$0" : 'X\(/\)$' \| \
79         .     : '\(.\)' 2>/dev/null ||
80echo X/"$0" |
81    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
82          /^X\/\(\/\/\)$/{ s//\1/; q; }
83          /^X\/\(\/\).*/{ s//\1/; q; }
84          s/.*/./; q'`
85
86
87# PATH needs CR, and LINENO needs CR and PATH.
88# Avoid depending upon Character Ranges.
89as_cr_letters='abcdefghijklmnopqrstuvwxyz'
90as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
91as_cr_Letters=$as_cr_letters$as_cr_LETTERS
92as_cr_digits='0123456789'
93as_cr_alnum=$as_cr_Letters$as_cr_digits
94
95# The user is always right.
96if test "${PATH_SEPARATOR+set}" != set; then
97  echo "#! /bin/sh" >conf$$.sh
98  echo  "exit 0"   >>conf$$.sh
99  chmod +x conf$$.sh
100  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
101    PATH_SEPARATOR=';'
102  else
103    PATH_SEPARATOR=:
104  fi
105  rm -f conf$$.sh
106fi
107
108
109  as_lineno_1=$LINENO
110  as_lineno_2=$LINENO
111  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
112  test "x$as_lineno_1" != "x$as_lineno_2" &&
113  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
114  # Find who we are.  Look in the path if we contain no path at all
115  # relative or not.
116  case $0 in
117    *[\\/]* ) as_myself=$0 ;;
118    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
119for as_dir in $PATH
120do
121  IFS=$as_save_IFS
122  test -z "$as_dir" && as_dir=.
123  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
124done
125
126       ;;
127  esac
128  # We did not find ourselves, most probably we were run as `sh COMMAND'
129  # in which case we are not to be found in the path.
130  if test "x$as_myself" = x; then
131    as_myself=$0
132  fi
133  if test ! -f "$as_myself"; then
134    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
135   { (exit 1); exit 1; }; }
136  fi
137  case $CONFIG_SHELL in
138  '')
139    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
140for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
141do
142  IFS=$as_save_IFS
143  test -z "$as_dir" && as_dir=.
144  for as_base in sh bash ksh sh5; do
145         case $as_dir in
146         /*)
147           if ("$as_dir/$as_base" -c '
148  as_lineno_1=$LINENO
149  as_lineno_2=$LINENO
150  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
151  test "x$as_lineno_1" != "x$as_lineno_2" &&
152  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
153             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
154             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
155             CONFIG_SHELL=$as_dir/$as_base
156             export CONFIG_SHELL
157             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158           fi;;
159         esac
160       done
161done
162;;
163  esac
164
165  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
166  # uniformly replaced by the line number.  The first 'sed' inserts a
167  # line-number line before each line; the second 'sed' does the real
168  # work.  The second script uses 'N' to pair each line-number line
169  # with the numbered line, and appends trailing '-' during
170  # substitution so that $LINENO is not a special case at line end.
171  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
172  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
173  sed '=' <$as_myself |
174    sed '
175      N
176      s,$,-,
177      : loop
178      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
179      t loop
180      s,-$,,
181      s,^['$as_cr_digits']*\n,,
182    ' >$as_me.lineno &&
183  chmod +x $as_me.lineno ||
184    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
185   { (exit 1); exit 1; }; }
186
187  # Don't try to exec as it changes $[0], causing all sort of problems
188  # (the dirname of $[0] is not the place where we might find the
189  # original and so on.  Autoconf is especially sensible to this).
190  . ./$as_me.lineno
191  # Exit status is that of the last command.
192  exit
193}
194
195
196case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
197  *c*,-n*) ECHO_N= ECHO_C='
198' ECHO_T='      ' ;;
199  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
200  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
201esac
202
203if expr a : '\(a\)' >/dev/null 2>&1; then
204  as_expr=expr
205else
206  as_expr=false
207fi
208
209rm -f conf$$ conf$$.exe conf$$.file
210echo >conf$$.file
211if ln -s conf$$.file conf$$ 2>/dev/null; then
212  # We could just check for DJGPP; but this test a) works b) is more generic
213  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
214  if test -f conf$$.exe; then
215    # Don't use ln at all; we don't have any links
216    as_ln_s='cp -p'
217  else
218    as_ln_s='ln -s'
219  fi
220elif ln conf$$.file conf$$ 2>/dev/null; then
221  as_ln_s=ln
222else
223  as_ln_s='cp -p'
224fi
225rm -f conf$$ conf$$.exe conf$$.file
226
227if mkdir -p . 2>/dev/null; then
228  as_mkdir_p=:
229else
230  test -d ./-p && rmdir ./-p
231  as_mkdir_p=false
232fi
233
234as_executable_p="test -f"
235
236# Sed expression to map a string onto a valid CPP name.
237as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
238
239# Sed expression to map a string onto a valid variable name.
240as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
241
242
243# IFS
244# We need space, tab and new line, in precisely that order.
245as_nl='
246'
247IFS="   $as_nl"
248
249# CDPATH.
250$as_unset CDPATH
251
252
253
254# Check that we are running under the correct shell.
255SHELL=${CONFIG_SHELL-/bin/sh}
256
257case X$ECHO in
258X*--fallback-echo)
259  # Remove one level of quotation (which was required for Make).
260  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
261  ;;
262esac
263
264echo=${ECHO-echo}
265if test "X$1" = X--no-reexec; then
266  # Discard the --no-reexec flag, and continue.
267  shift
268elif test "X$1" = X--fallback-echo; then
269  # Avoid inline document here, it may be left over
270  :
271elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
272  # Yippee, $echo works!
273  :
274else
275  # Restart under the correct shell.
276  exec $SHELL "$0" --no-reexec ${1+"$@"}
277fi
278
279if test "X$1" = X--fallback-echo; then
280  # used as fallback echo
281  shift
282  cat <<EOF
283$*
284EOF
285  exit 0
286fi
287
288# The HP-UX ksh and POSIX shell print the target directory to stdout
289# if CDPATH is set.
290(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
291
292if test -z "$ECHO"; then
293if test "X${echo_test_string+set}" != Xset; then
294# find a string as large as possible, as long as the shell can cope with it
295  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
296    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
297    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
298       echo_test_string=`eval $cmd` &&
299       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
300    then
301      break
302    fi
303  done
304fi
305
306if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
307   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
308   test "X$echo_testing_string" = "X$echo_test_string"; then
309  :
310else
311  # The Solaris, AIX, and Digital Unix default echo programs unquote
312  # backslashes.  This makes it impossible to quote backslashes using
313  #   echo "$something" | sed 's/\\/\\\\/g'
314  #
315  # So, first we look for a working echo in the user's PATH.
316
317  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
318  for dir in $PATH /usr/ucb; do
319    IFS="$lt_save_ifs"
320    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
321       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
322       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
323       test "X$echo_testing_string" = "X$echo_test_string"; then
324      echo="$dir/echo"
325      break
326    fi
327  done
328  IFS="$lt_save_ifs"
329
330  if test "X$echo" = Xecho; then
331    # We didn't find a better echo, so look for alternatives.
332    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
333       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
334       test "X$echo_testing_string" = "X$echo_test_string"; then
335      # This shell has a builtin print -r that does the trick.
336      echo='print -r'
337    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
338         test "X$CONFIG_SHELL" != X/bin/ksh; then
339      # If we have ksh, try running configure again with it.
340      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
341      export ORIGINAL_CONFIG_SHELL
342      CONFIG_SHELL=/bin/ksh
343      export CONFIG_SHELL
344      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
345    else
346      # Try using printf.
347      echo='printf %s\n'
348      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
349         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
350         test "X$echo_testing_string" = "X$echo_test_string"; then
351        # Cool, printf works
352        :
353      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354           test "X$echo_testing_string" = 'X\t' &&
355           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356           test "X$echo_testing_string" = "X$echo_test_string"; then
357        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
358        export CONFIG_SHELL
359        SHELL="$CONFIG_SHELL"
360        export SHELL
361        echo="$CONFIG_SHELL $0 --fallback-echo"
362      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
363           test "X$echo_testing_string" = 'X\t' &&
364           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
365           test "X$echo_testing_string" = "X$echo_test_string"; then
366        echo="$CONFIG_SHELL $0 --fallback-echo"
367      else
368        # maybe with a smaller string...
369        prev=:
370
371        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
372          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
373          then
374            break
375          fi
376          prev="$cmd"
377        done
378
379        if test "$prev" != 'sed 50q "$0"'; then
380          echo_test_string=`eval $prev`
381          export echo_test_string
382          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
383        else
384          # Oops.  We lost completely, so just stick with echo.
385          echo=echo
386        fi
387      fi
388    fi
389  fi
390fi
391fi
392
393# Copy echo and quote the copy suitably for passing to libtool from
394# the Makefile, instead of quoting the original, which is used later.
395ECHO=$echo
396if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
397   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
398fi
399
400
401
402
403tagnames=${tagnames+${tagnames},}CXX
404
405tagnames=${tagnames+${tagnames},}F77
406
407# Name of the host.
408# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
409# so uname gets run too.
410ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
411
412exec 6>&1
413
414#
415# Initializations.
416#
417ac_default_prefix=/usr/local
418ac_config_libobj_dir=.
419cross_compiling=no
420subdirs=
421MFLAGS=
422MAKEFLAGS=
423SHELL=${CONFIG_SHELL-/bin/sh}
424
425# Maximum number of lines to put in a shell here document.
426# This variable seems obsolete.  It should probably be removed, and
427# only ac_max_sed_lines should be used.
428: ${ac_max_here_lines=38}
429
430# Identity of this package.
431PACKAGE_NAME='Cbc'
432PACKAGE_TARNAME='cbc'
433PACKAGE_VERSION='2.3stable'
434PACKAGE_STRING='Cbc 2.3stable'
435PACKAGE_BUGREPORT='coin-cbc@lists.coin-or.org'
436
437ac_unique_file="configure.ac"
438ac_default_prefix=`pwd`
439# Factoring default headers for most tests.
440ac_includes_default="\
441#include <stdio.h>
442#if HAVE_SYS_TYPES_H
443# include <sys/types.h>
444#endif
445#if HAVE_SYS_STAT_H
446# include <sys/stat.h>
447#endif
448#if STDC_HEADERS
449# include <stdlib.h>
450# include <stddef.h>
451#else
452# if HAVE_STDLIB_H
453#  include <stdlib.h>
454# endif
455#endif
456#if HAVE_STRING_H
457# if !STDC_HEADERS && HAVE_MEMORY_H
458#  include <memory.h>
459# endif
460# include <string.h>
461#endif
462#if HAVE_STRINGS_H
463# include <strings.h>
464#endif
465#if HAVE_INTTYPES_H
466# include <inttypes.h>
467#else
468# if HAVE_STDINT_H
469#  include <stdint.h>
470# endif
471#endif
472#if HAVE_UNISTD_H
473# include <unistd.h>
474#endif"
475
476ac_subdirs_all="$ac_subdirs_all CoinUtils"
477ac_subdirs_all="$ac_subdirs_all Data/Netlib"
478ac_subdirs_all="$ac_subdirs_all Data/Sample"
479ac_subdirs_all="$ac_subdirs_all Data/miplib3"
480ac_subdirs_all="$ac_subdirs_all ThirdParty/ASL"
481ac_subdirs_all="$ac_subdirs_all ThirdParty/Blas"
482ac_subdirs_all="$ac_subdirs_all ThirdParty/Lapack"
483ac_subdirs_all="$ac_subdirs_all ThirdParty/Glpk"
484ac_subdirs_all="$ac_subdirs_all Clp"
485ac_subdirs_all="$ac_subdirs_all DyLP"
486ac_subdirs_all="$ac_subdirs_all Vol"
487ac_subdirs_all="$ac_subdirs_all Osi"
488ac_subdirs_all="$ac_subdirs_all Cgl"
489ac_subdirs_all="$ac_subdirs_all Cbc"
490ac_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 CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX MPICXX ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS ac_ct_F77 MPIF77 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 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS COIN_SKIP_PROJECTS COINUTILSSRCDIR COINUTILSOBJDIR COINUTILSDOCDIR COINUTILSDATADIR COINUTILSINSTDIR COIN_HAS_COINUTILS_TRUE COIN_HAS_COINUTILS_FALSE COIN_HAS_COINUTILS_PREINSTALLED_TRUE COIN_HAS_COINUTILS_PREINSTALLED_FALSE subdirs NETLIBSRCDIR NETLIBOBJDIR NETLIBDOCDIR NETLIBDATADIR NETLIBINSTDIR COIN_HAS_NETLIB_TRUE COIN_HAS_NETLIB_FALSE COIN_HAS_NETLIB_PREINSTALLED_TRUE COIN_HAS_NETLIB_PREINSTALLED_FALSE SAMPLESRCDIR SAMPLEOBJDIR SAMPLEDOCDIR SAMPLEDATADIR SAMPLEINSTDIR COIN_HAS_SAMPLE_TRUE COIN_HAS_SAMPLE_FALSE COIN_HAS_SAMPLE_PREINSTALLED_TRUE COIN_HAS_SAMPLE_PREINSTALLED_FALSE MIPLIB3SRCDIR MIPLIB3OBJDIR MIPLIB3DOCDIR MIPLIB3DATADIR MIPLIB3INSTDIR COIN_HAS_MIPLIB3_TRUE COIN_HAS_MIPLIB3_FALSE COIN_HAS_MIPLIB3_PREINSTALLED_TRUE COIN_HAS_MIPLIB3_PREINSTALLED_FALSE ASLSRCDIR ASLOBJDIR ASLDOCDIR ASLDATADIR ASLINSTDIR COIN_HAS_ASL_TRUE COIN_HAS_ASL_FALSE COIN_HAS_ASL_PREINSTALLED_TRUE COIN_HAS_ASL_PREINSTALLED_FALSE BLASSRCDIR BLASOBJDIR BLASDOCDIR BLASDATADIR BLASINSTDIR COIN_HAS_BLAS_TRUE COIN_HAS_BLAS_FALSE COIN_HAS_BLAS_PREINSTALLED_TRUE COIN_HAS_BLAS_PREINSTALLED_FALSE LAPACKSRCDIR LAPACKOBJDIR LAPACKDOCDIR LAPACKDATADIR LAPACKINSTDIR COIN_HAS_LAPACK_TRUE COIN_HAS_LAPACK_FALSE COIN_HAS_LAPACK_PREINSTALLED_TRUE COIN_HAS_LAPACK_PREINSTALLED_FALSE GLPKSRCDIR GLPKOBJDIR GLPKDOCDIR GLPKDATADIR GLPKINSTDIR COIN_HAS_GLPK_TRUE COIN_HAS_GLPK_FALSE COIN_HAS_GLPK_PREINSTALLED_TRUE COIN_HAS_GLPK_PREINSTALLED_FALSE CLPSRCDIR CLPOBJDIR CLPDOCDIR CLPDATADIR CLPINSTDIR COIN_HAS_CLP_TRUE COIN_HAS_CLP_FALSE COIN_HAS_CLP_PREINSTALLED_TRUE COIN_HAS_CLP_PREINSTALLED_FALSE DYLPSRCDIR DYLPOBJDIR DYLPDOCDIR DYLPDATADIR DYLPINSTDIR COIN_HAS_DYLP_TRUE COIN_HAS_DYLP_FALSE COIN_HAS_DYLP_PREINSTALLED_TRUE COIN_HAS_DYLP_PREINSTALLED_FALSE VOLSRCDIR VOLOBJDIR VOLDOCDIR VOLDATADIR VOLINSTDIR COIN_HAS_VOL_TRUE COIN_HAS_VOL_FALSE COIN_HAS_VOL_PREINSTALLED_TRUE COIN_HAS_VOL_PREINSTALLED_FALSE OSISRCDIR OSIOBJDIR OSIDOCDIR OSIDATADIR OSIINSTDIR COIN_HAS_OSI_TRUE COIN_HAS_OSI_FALSE COIN_HAS_OSI_PREINSTALLED_TRUE COIN_HAS_OSI_PREINSTALLED_FALSE CGLSRCDIR CGLOBJDIR CGLDOCDIR CGLDATADIR CGLINSTDIR COIN_HAS_CGL_TRUE COIN_HAS_CGL_FALSE COIN_HAS_CGL_PREINSTALLED_TRUE COIN_HAS_CGL_PREINSTALLED_FALSE CBCSRCDIR CBCOBJDIR CBCDOCDIR CBCDATADIR CBCINSTDIR COIN_HAS_CBC_TRUE COIN_HAS_CBC_FALSE COIN_HAS_CBC_PREINSTALLED_TRUE COIN_HAS_CBC_PREINSTALLED_FALSE LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'
491ac_subst_files=''
492
493# Initialize some variables set by options.
494ac_init_help=
495ac_init_version=false
496# The variables have the same names as the options, with
497# dashes changed to underlines.
498cache_file=/dev/null
499exec_prefix=NONE
500no_create=
501no_recursion=
502prefix=NONE
503program_prefix=NONE
504program_suffix=NONE
505program_transform_name=s,x,x,
506silent=
507site=
508srcdir=
509verbose=
510x_includes=NONE
511x_libraries=NONE
512
513# Installation directory options.
514# These are left unexpanded so users can "make install exec_prefix=/foo"
515# and all the variables that are supposed to be based on exec_prefix
516# by default will actually change.
517# Use braces instead of parens because sh, perl, etc. also accept them.
518bindir='${exec_prefix}/bin'
519sbindir='${exec_prefix}/sbin'
520libexecdir='${exec_prefix}/libexec'
521datadir='${prefix}/share'
522sysconfdir='${prefix}/etc'
523sharedstatedir='${prefix}/com'
524localstatedir='${prefix}/var'
525libdir='${exec_prefix}/lib'
526includedir='${prefix}/include'
527oldincludedir='/usr/include'
528infodir='${prefix}/info'
529mandir='${prefix}/man'
530
531ac_prev=
532for ac_option
533do
534  # If the previous option needs an argument, assign it.
535  if test -n "$ac_prev"; then
536    eval "$ac_prev=\$ac_option"
537    ac_prev=
538    continue
539  fi
540
541  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
542
543  # Accept the important Cygnus configure options, so we can diagnose typos.
544
545  case $ac_option in
546
547  -bindir | --bindir | --bindi | --bind | --bin | --bi)
548    ac_prev=bindir ;;
549  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
550    bindir=$ac_optarg ;;
551
552  -build | --build | --buil | --bui | --bu)
553    ac_prev=build_alias ;;
554  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
555    build_alias=$ac_optarg ;;
556
557  -cache-file | --cache-file | --cache-fil | --cache-fi \
558  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
559    ac_prev=cache_file ;;
560  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
561  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
562    cache_file=$ac_optarg ;;
563
564  --config-cache | -C)
565    cache_file=config.cache ;;
566
567  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
568    ac_prev=datadir ;;
569  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
570  | --da=*)
571    datadir=$ac_optarg ;;
572
573  -disable-* | --disable-*)
574    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
575    # Reject names that are not valid shell variable names.
576    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
577      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
578   { (exit 1); exit 1; }; }
579    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
580    eval "enable_$ac_feature=no" ;;
581
582  -enable-* | --enable-*)
583    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
584    # Reject names that are not valid shell variable names.
585    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
586      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
587   { (exit 1); exit 1; }; }
588    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
589    case $ac_option in
590      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
591      *) ac_optarg=yes ;;
592    esac
593    eval "enable_$ac_feature='$ac_optarg'" ;;
594
595  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
596  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
597  | --exec | --exe | --ex)
598    ac_prev=exec_prefix ;;
599  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
600  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
601  | --exec=* | --exe=* | --ex=*)
602    exec_prefix=$ac_optarg ;;
603
604  -gas | --gas | --ga | --g)
605    # Obsolete; use --with-gas.
606    with_gas=yes ;;
607
608  -help | --help | --hel | --he | -h)
609    ac_init_help=long ;;
610  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
611    ac_init_help=recursive ;;
612  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
613    ac_init_help=short ;;
614
615  -host | --host | --hos | --ho)
616    ac_prev=host_alias ;;
617  -host=* | --host=* | --hos=* | --ho=*)
618    host_alias=$ac_optarg ;;
619
620  -includedir | --includedir | --includedi | --included | --include \
621  | --includ | --inclu | --incl | --inc)
622    ac_prev=includedir ;;
623  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
624  | --includ=* | --inclu=* | --incl=* | --inc=*)
625    includedir=$ac_optarg ;;
626
627  -infodir | --infodir | --infodi | --infod | --info | --inf)
628    ac_prev=infodir ;;
629  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
630    infodir=$ac_optarg ;;
631
632  -libdir | --libdir | --libdi | --libd)
633    ac_prev=libdir ;;
634  -libdir=* | --libdir=* | --libdi=* | --libd=*)
635    libdir=$ac_optarg ;;
636
637  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
638  | --libexe | --libex | --libe)
639    ac_prev=libexecdir ;;
640  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
641  | --libexe=* | --libex=* | --libe=*)
642    libexecdir=$ac_optarg ;;
643
644  -localstatedir | --localstatedir | --localstatedi | --localstated \
645  | --localstate | --localstat | --localsta | --localst \
646  | --locals | --local | --loca | --loc | --lo)
647    ac_prev=localstatedir ;;
648  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
649  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
650  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
651    localstatedir=$ac_optarg ;;
652
653  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
654    ac_prev=mandir ;;
655  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
656    mandir=$ac_optarg ;;
657
658  -nfp | --nfp | --nf)
659    # Obsolete; use --without-fp.
660    with_fp=no ;;
661
662  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
663  | --no-cr | --no-c | -n)
664    no_create=yes ;;
665
666  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
667  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
668    no_recursion=yes ;;
669
670  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
671  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
672  | --oldin | --oldi | --old | --ol | --o)
673    ac_prev=oldincludedir ;;
674  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
675  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
676  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
677    oldincludedir=$ac_optarg ;;
678
679  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
680    ac_prev=prefix ;;
681  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
682    prefix=$ac_optarg ;;
683
684  -program-prefix | --program-prefix | --program-prefi | --program-pref \
685  | --program-pre | --program-pr | --program-p)
686    ac_prev=program_prefix ;;
687  -program-prefix=* | --program-prefix=* | --program-prefi=* \
688  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
689    program_prefix=$ac_optarg ;;
690
691  -program-suffix | --program-suffix | --program-suffi | --program-suff \
692  | --program-suf | --program-su | --program-s)
693    ac_prev=program_suffix ;;
694  -program-suffix=* | --program-suffix=* | --program-suffi=* \
695  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
696    program_suffix=$ac_optarg ;;
697
698  -program-transform-name | --program-transform-name \
699  | --program-transform-nam | --program-transform-na \
700  | --program-transform-n | --program-transform- \
701  | --program-transform | --program-transfor \
702  | --program-transfo | --program-transf \
703  | --program-trans | --program-tran \
704  | --progr-tra | --program-tr | --program-t)
705    ac_prev=program_transform_name ;;
706  -program-transform-name=* | --program-transform-name=* \
707  | --program-transform-nam=* | --program-transform-na=* \
708  | --program-transform-n=* | --program-transform-=* \
709  | --program-transform=* | --program-transfor=* \
710  | --program-transfo=* | --program-transf=* \
711  | --program-trans=* | --program-tran=* \
712  | --progr-tra=* | --program-tr=* | --program-t=*)
713    program_transform_name=$ac_optarg ;;
714
715  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
716  | -silent | --silent | --silen | --sile | --sil)
717    silent=yes ;;
718
719  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
720    ac_prev=sbindir ;;
721  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
722  | --sbi=* | --sb=*)
723    sbindir=$ac_optarg ;;
724
725  -sharedstatedir | --sharedstatedir | --sharedstatedi \
726  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
727  | --sharedst | --shareds | --shared | --share | --shar \
728  | --sha | --sh)
729    ac_prev=sharedstatedir ;;
730  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
731  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
732  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
733  | --sha=* | --sh=*)
734    sharedstatedir=$ac_optarg ;;
735
736  -site | --site | --sit)
737    ac_prev=site ;;
738  -site=* | --site=* | --sit=*)
739    site=$ac_optarg ;;
740
741  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
742    ac_prev=srcdir ;;
743  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
744    srcdir=$ac_optarg ;;
745
746  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
747  | --syscon | --sysco | --sysc | --sys | --sy)
748    ac_prev=sysconfdir ;;
749  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
750  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
751    sysconfdir=$ac_optarg ;;
752
753  -target | --target | --targe | --targ | --tar | --ta | --t)
754    ac_prev=target_alias ;;
755  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
756    target_alias=$ac_optarg ;;
757
758  -v | -verbose | --verbose | --verbos | --verbo | --verb)
759    verbose=yes ;;
760
761  -version | --version | --versio | --versi | --vers | -V)
762    ac_init_version=: ;;
763
764  -with-* | --with-*)
765    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
766    # Reject names that are not valid shell variable names.
767    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
768      { echo "$as_me: error: invalid package name: $ac_package" >&2
769   { (exit 1); exit 1; }; }
770    ac_package=`echo $ac_package| sed 's/-/_/g'`
771    case $ac_option in
772      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
773      *) ac_optarg=yes ;;
774    esac
775    eval "with_$ac_package='$ac_optarg'" ;;
776
777  -without-* | --without-*)
778    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
779    # Reject names that are not valid shell variable names.
780    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
781      { echo "$as_me: error: invalid package name: $ac_package" >&2
782   { (exit 1); exit 1; }; }
783    ac_package=`echo $ac_package | sed 's/-/_/g'`
784    eval "with_$ac_package=no" ;;
785
786  --x)
787    # Obsolete; use --with-x.
788    with_x=yes ;;
789
790  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
791  | --x-incl | --x-inc | --x-in | --x-i)
792    ac_prev=x_includes ;;
793  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
794  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
795    x_includes=$ac_optarg ;;
796
797  -x-libraries | --x-libraries | --x-librarie | --x-librari \
798  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
799    ac_prev=x_libraries ;;
800  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
801  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
802    x_libraries=$ac_optarg ;;
803
804  -*) { echo "$as_me: error: unrecognized option: $ac_option
805Try \`$0 --help' for more information." >&2
806   { (exit 1); exit 1; }; }
807    ;;
808
809  *=*)
810    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
811    # Reject names that are not valid shell variable names.
812    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
813      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
814   { (exit 1); exit 1; }; }
815    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
816    eval "$ac_envvar='$ac_optarg'"
817    export $ac_envvar ;;
818
819  *)
820    # FIXME: should be removed in autoconf 3.0.
821    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
822    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
823      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
824    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
825    ;;
826
827  esac
828done
829
830if test -n "$ac_prev"; then
831  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
832  { echo "$as_me: error: missing argument to $ac_option" >&2
833   { (exit 1); exit 1; }; }
834fi
835
836# Be sure to have absolute paths.
837for ac_var in exec_prefix prefix
838do
839  eval ac_val=$`echo $ac_var`
840  case $ac_val in
841    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
842    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
843   { (exit 1); exit 1; }; };;
844  esac
845done
846
847# Be sure to have absolute paths.
848for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
849              localstatedir libdir includedir oldincludedir infodir mandir
850do
851  eval ac_val=$`echo $ac_var`
852  case $ac_val in
853    [\\/$]* | ?:[\\/]* ) ;;
854    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
855   { (exit 1); exit 1; }; };;
856  esac
857done
858
859# There might be people who depend on the old broken behavior: `$host'
860# used to hold the argument of --host etc.
861# FIXME: To remove some day.
862build=$build_alias
863host=$host_alias
864target=$target_alias
865
866# FIXME: To remove some day.
867if test "x$host_alias" != x; then
868  if test "x$build_alias" = x; then
869    cross_compiling=maybe
870    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
871    If a cross compiler is detected then cross compile mode will be used." >&2
872  elif test "x$build_alias" != "x$host_alias"; then
873    cross_compiling=yes
874  fi
875fi
876
877ac_tool_prefix=
878test -n "$host_alias" && ac_tool_prefix=$host_alias-
879
880test "$silent" = yes && exec 6>/dev/null
881
882
883# Find the source files, if location was not specified.
884if test -z "$srcdir"; then
885  ac_srcdir_defaulted=yes
886  # Try the directory containing this script, then its parent.
887  ac_confdir=`(dirname "$0") 2>/dev/null ||
888$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
889         X"$0" : 'X\(//\)[^/]' \| \
890         X"$0" : 'X\(//\)$' \| \
891         X"$0" : 'X\(/\)' \| \
892         .     : '\(.\)' 2>/dev/null ||
893echo X"$0" |
894    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
895          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
896          /^X\(\/\/\)$/{ s//\1/; q; }
897          /^X\(\/\).*/{ s//\1/; q; }
898          s/.*/./; q'`
899  srcdir=$ac_confdir
900  if test ! -r $srcdir/$ac_unique_file; then
901    srcdir=..
902  fi
903else
904  ac_srcdir_defaulted=no
905fi
906if test ! -r $srcdir/$ac_unique_file; then
907  if test "$ac_srcdir_defaulted" = yes; then
908    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
909   { (exit 1); exit 1; }; }
910  else
911    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
912   { (exit 1); exit 1; }; }
913  fi
914fi
915(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
916  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
917   { (exit 1); exit 1; }; }
918srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
919ac_env_build_alias_set=${build_alias+set}
920ac_env_build_alias_value=$build_alias
921ac_cv_env_build_alias_set=${build_alias+set}
922ac_cv_env_build_alias_value=$build_alias
923ac_env_host_alias_set=${host_alias+set}
924ac_env_host_alias_value=$host_alias
925ac_cv_env_host_alias_set=${host_alias+set}
926ac_cv_env_host_alias_value=$host_alias
927ac_env_target_alias_set=${target_alias+set}
928ac_env_target_alias_value=$target_alias
929ac_cv_env_target_alias_set=${target_alias+set}
930ac_cv_env_target_alias_value=$target_alias
931ac_env_CDEFS_set=${CDEFS+set}
932ac_env_CDEFS_value=$CDEFS
933ac_cv_env_CDEFS_set=${CDEFS+set}
934ac_cv_env_CDEFS_value=$CDEFS
935ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
936ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
937ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
938ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
939ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
940ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
941ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
942ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
943ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
944ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
945ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
946ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
947ac_env_CC_set=${CC+set}
948ac_env_CC_value=$CC
949ac_cv_env_CC_set=${CC+set}
950ac_cv_env_CC_value=$CC
951ac_env_CFLAGS_set=${CFLAGS+set}
952ac_env_CFLAGS_value=$CFLAGS
953ac_cv_env_CFLAGS_set=${CFLAGS+set}
954ac_cv_env_CFLAGS_value=$CFLAGS
955ac_env_LDFLAGS_set=${LDFLAGS+set}
956ac_env_LDFLAGS_value=$LDFLAGS
957ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
958ac_cv_env_LDFLAGS_value=$LDFLAGS
959ac_env_CPPFLAGS_set=${CPPFLAGS+set}
960ac_env_CPPFLAGS_value=$CPPFLAGS
961ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
962ac_cv_env_CPPFLAGS_value=$CPPFLAGS
963ac_env_MPICC_set=${MPICC+set}
964ac_env_MPICC_value=$MPICC
965ac_cv_env_MPICC_set=${MPICC+set}
966ac_cv_env_MPICC_value=$MPICC
967ac_env_CXXDEFS_set=${CXXDEFS+set}
968ac_env_CXXDEFS_value=$CXXDEFS
969ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
970ac_cv_env_CXXDEFS_value=$CXXDEFS
971ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
972ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
973ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
974ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
975ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
976ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
977ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
978ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
979ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
980ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
981ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
982ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
983ac_env_CXX_set=${CXX+set}
984ac_env_CXX_value=$CXX
985ac_cv_env_CXX_set=${CXX+set}
986ac_cv_env_CXX_value=$CXX
987ac_env_CXXFLAGS_set=${CXXFLAGS+set}
988ac_env_CXXFLAGS_value=$CXXFLAGS
989ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
990ac_cv_env_CXXFLAGS_value=$CXXFLAGS
991ac_env_MPICXX_set=${MPICXX+set}
992ac_env_MPICXX_value=$MPICXX
993ac_cv_env_MPICXX_set=${MPICXX+set}
994ac_cv_env_MPICXX_value=$MPICXX
995ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
996ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
997ac_cv_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
998ac_cv_env_ADD_FFLAGS_value=$ADD_FFLAGS
999ac_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
1000ac_env_DBG_FFLAGS_value=$DBG_FFLAGS
1001ac_cv_env_DBG_FFLAGS_set=${DBG_FFLAGS+set}
1002ac_cv_env_DBG_FFLAGS_value=$DBG_FFLAGS
1003ac_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
1004ac_env_OPT_FFLAGS_value=$OPT_FFLAGS
1005ac_cv_env_OPT_FFLAGS_set=${OPT_FFLAGS+set}
1006ac_cv_env_OPT_FFLAGS_value=$OPT_FFLAGS
1007ac_env_F77_set=${F77+set}
1008ac_env_F77_value=$F77
1009ac_cv_env_F77_set=${F77+set}
1010ac_cv_env_F77_value=$F77
1011ac_env_FFLAGS_set=${FFLAGS+set}
1012ac_env_FFLAGS_value=$FFLAGS
1013ac_cv_env_FFLAGS_set=${FFLAGS+set}
1014ac_cv_env_FFLAGS_value=$FFLAGS
1015ac_env_MPIF77_set=${MPIF77+set}
1016ac_env_MPIF77_value=$MPIF77
1017ac_cv_env_MPIF77_set=${MPIF77+set}
1018ac_cv_env_MPIF77_value=$MPIF77
1019ac_env_CPP_set=${CPP+set}
1020ac_env_CPP_value=$CPP
1021ac_cv_env_CPP_set=${CPP+set}
1022ac_cv_env_CPP_value=$CPP
1023ac_env_CXXCPP_set=${CXXCPP+set}
1024ac_env_CXXCPP_value=$CXXCPP
1025ac_cv_env_CXXCPP_set=${CXXCPP+set}
1026ac_cv_env_CXXCPP_value=$CXXCPP
1027ac_env_COIN_SKIP_PROJECTS_set=${COIN_SKIP_PROJECTS+set}
1028ac_env_COIN_SKIP_PROJECTS_value=$COIN_SKIP_PROJECTS
1029ac_cv_env_COIN_SKIP_PROJECTS_set=${COIN_SKIP_PROJECTS+set}
1030ac_cv_env_COIN_SKIP_PROJECTS_value=$COIN_SKIP_PROJECTS
1031
1032#
1033# Report the --help message.
1034#
1035if test "$ac_init_help" = "long"; then
1036  # Omit some internal or obsolete options to make the list less imposing.
1037  # This message is too long to be a string in the A/UX 3.1 sh.
1038  cat <<_ACEOF
1039\`configure' configures Cbc 2.3stable to adapt to many kinds of systems.
1040
1041Usage: $0 [OPTION]... [VAR=VALUE]...
1042
1043To assign environment variables (e.g., CC, CFLAGS...), specify them as
1044VAR=VALUE.  See below for descriptions of some of the useful variables.
1045
1046Defaults for the options are specified in brackets.
1047
1048Configuration:
1049  -h, --help              display this help and exit
1050      --help=short        display options specific to this package
1051      --help=recursive    display the short help of all the included packages
1052  -V, --version           display version information and exit
1053  -q, --quiet, --silent   do not print \`checking...' messages
1054      --cache-file=FILE   cache test results in FILE [disabled]
1055  -C, --config-cache      alias for \`--cache-file=config.cache'
1056  -n, --no-create         do not create output files
1057      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1058
1059_ACEOF
1060
1061  cat <<_ACEOF
1062Installation directories:
1063  --prefix=PREFIX         install architecture-independent files in PREFIX
1064                          [$ac_default_prefix]
1065  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1066                          [PREFIX]
1067
1068By default, \`make install' will install all the files in
1069\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1070an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1071for instance \`--prefix=\$HOME'.
1072
1073For better control, use the options below.
1074
1075Fine tuning of the installation directories:
1076  --bindir=DIR           user executables [EPREFIX/bin]
1077  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1078  --libexecdir=DIR       program executables [EPREFIX/libexec]
1079  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1080  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1081  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1082  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1083  --libdir=DIR           object code libraries [EPREFIX/lib]
1084  --includedir=DIR       C header files [PREFIX/include]
1085  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1086  --infodir=DIR          info documentation [PREFIX/info]
1087  --mandir=DIR           man documentation [PREFIX/man]
1088_ACEOF
1089
1090  cat <<\_ACEOF
1091
1092Program names:
1093  --program-prefix=PREFIX            prepend PREFIX to installed program names
1094  --program-suffix=SUFFIX            append SUFFIX to installed program names
1095  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1096
1097System types:
1098  --build=BUILD     configure for building on BUILD [guessed]
1099  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1100_ACEOF
1101fi
1102
1103if test -n "$ac_init_help"; then
1104  case $ac_init_help in
1105     short | recursive ) echo "Configuration of Cbc 2.3stable:";;
1106   esac
1107  cat <<\_ACEOF
1108
1109Optional Features:
1110  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1111  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1112  --enable-debug          compile all projects with debug options tests
1113  --enable-doscompile     Under Cygwin, compile so that executables run under
1114                          DOS. Set to mingw to use gcc/g++/ld with
1115                          -mno-cygwin. Set to msvc to use cl/link (or
1116                          icl/link). Default when mentioned: mingw. Default
1117                          when not mentioned: disabled.
1118  --enable-static[=PKGS]
1119                          build static libraries [default=no]
1120  --disable-dependency-tracking  speeds up one-time build
1121  --enable-dependency-tracking   do not reject slow dependency extractors
1122  --enable-maintainer-mode  enable make rules and dependencies not useful
1123                          (and sometimes confusing) to the casual installer
1124  --enable-shared[=PKGS]
1125                          build shared libraries [default=yes]
1126  --enable-fast-install[=PKGS]
1127                          optimize for fast installation [default=yes]
1128  --disable-libtool-lock  avoid locking (might break parallel builds)
1129
1130Optional Packages:
1131  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1132  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1133  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1134  --with-pic              try to use only PIC/non-PIC objects [default=use
1135                          both]
1136  --with-tags[=TAGS]
1137                          include additional configurations [automatic]
1138  --with-coinutils-instdir
1139                          prefix of installation directory for precompiled
1140                          CoinUtils package
1141  --with-coinutils-srcdir source directory for CoinUtils package
1142  --with-coinutils-objdir object directory for CoinUtils package (if different
1143                          from source directory in VPATH compilation)
1144  --with-coin-instdir     prefix of installation directory for precompiled
1145                          COIN packages
1146  --with-netlib-instdir prefix of installation directory for precompiled
1147                          Netlib package
1148  --with-netlib-srcdir source directory for Netlib package
1149  --with-netlib-objdir object directory for Netlib package (if different from
1150                          source directory in VPATH compilation)
1151  --with-sample-instdir prefix of installation directory for precompiled
1152                          Sample package
1153  --with-sample-srcdir source directory for Sample package
1154  --with-sample-objdir object directory for Sample package (if different from
1155                          source directory in VPATH compilation)
1156  --with-miplib3-instdir prefix of installation directory for precompiled
1157                          miplib3 package
1158  --with-miplib3-srcdir source directory for miplib3 package
1159  --with-miplib3-objdir object directory for miplib3 package (if different
1160                          from source directory in VPATH compilation)
1161  --with-asl-instdir prefix of installation directory for precompiled ASL
1162                          package
1163  --with-asl-srcdir source directory for ASL package
1164  --with-asl-objdir object directory for ASL package (if different from source
1165                          directory in VPATH compilation)
1166  --with-blas-instdir prefix of installation directory for precompiled Blas
1167                          package
1168  --with-blas-srcdir source directory for Blas package
1169  --with-blas-objdir object directory for Blas package (if different from
1170                          source directory in VPATH compilation)
1171  --with-lapack-instdir prefix of installation directory for precompiled
1172                          Lapack package
1173  --with-lapack-srcdir source directory for Lapack package
1174  --with-lapack-objdir object directory for Lapack package (if different from
1175                          source directory in VPATH compilation)
1176  --with-glpk-instdir prefix of installation directory for precompiled Glpk
1177                          package
1178  --with-glpk-srcdir source directory for Glpk package
1179  --with-glpk-objdir object directory for Glpk package (if different from
1180                          source directory in VPATH compilation)
1181  --with-clp-instdir prefix of installation directory for precompiled Clp
1182                          package
1183  --with-clp-srcdir source directory for Clp package
1184  --with-clp-objdir object directory for Clp package (if different from source
1185                          directory in VPATH compilation)
1186  --with-dylp-instdir prefix of installation directory for precompiled DyLP
1187                          package
1188  --with-dylp-srcdir source directory for DyLP package
1189  --with-dylp-objdir object directory for DyLP package (if different from
1190                          source directory in VPATH compilation)
1191  --with-vol-instdir prefix of installation directory for precompiled Vol
1192                          package
1193  --with-vol-srcdir source directory for Vol package
1194  --with-vol-objdir object directory for Vol package (if different from source
1195                          directory in VPATH compilation)
1196  --with-osi-instdir prefix of installation directory for precompiled Osi
1197                          package
1198  --with-osi-srcdir source directory for Osi package
1199  --with-osi-objdir object directory for Osi package (if different from source
1200                          directory in VPATH compilation)
1201  --with-cgl-instdir prefix of installation directory for precompiled Cgl
1202                          package
1203  --with-cgl-srcdir source directory for Cgl package
1204  --with-cgl-objdir object directory for Cgl package (if different from source
1205                          directory in VPATH compilation)
1206  --with-cbc-instdir prefix of installation directory for precompiled Cbc
1207                          package
1208  --with-cbc-srcdir source directory for Cbc package
1209  --with-cbc-objdir object directory for Cbc package (if different from source
1210                          directory in VPATH compilation)
1211
1212Some influential environment variables:
1213  CDEFS       Additional -D flags to be used when compiling C code.
1214  ADD_CFLAGS  Additional C compiler options
1215  DBG_CFLAGS  Debug C compiler options
1216  OPT_CFLAGS  Optimize C compiler options
1217  CC          C compiler command
1218  CFLAGS      C compiler flags
1219  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1220              nonstandard directory <lib dir>
1221  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1222              headers in a nonstandard directory <include dir>
1223  MPICC       C MPI Compiler
1224  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1225  ADD_CXXFLAGS
1226              Additional C++ compiler options
1227  DBG_CXXFLAGS
1228              Debug C++ compiler options
1229  OPT_CXXFLAGS
1230              Optimize C++ compiler options
1231  CXX         C++ compiler command
1232  CXXFLAGS    C++ compiler flags
1233  MPICXX      C++ MPI Compiler
1234  ADD_FFLAGS  Additional Fortran compiler options
1235  DBG_FFLAGS  Debug Fortran compiler options
1236  OPT_FFLAGS  Optimize Fortran compiler options
1237  F77         Fortran 77 compiler command
1238  FFLAGS      Fortran 77 compiler flags
1239  MPIF77      Fortran MPI Compiler
1240  CPP         C preprocessor
1241  CXXCPP      C++ preprocessor
1242  COIN_SKIP_PROJECTS
1243              Set to the subdirectories of projects that should be skipped in
1244              the configuration
1245
1246Use these variables to override the choices made by `configure' or to help
1247it to find libraries and programs with nonstandard names/locations.
1248
1249Report bugs to <coin-cbc@lists.coin-or.org>.
1250_ACEOF
1251fi
1252
1253if test "$ac_init_help" = "recursive"; then
1254  # If there are subdirs, report their specific --help.
1255  ac_popdir=`pwd`
1256  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1257    test -d $ac_dir || continue
1258    ac_builddir=.
1259
1260if test "$ac_dir" != .; then
1261  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1262  # A "../" for each directory in $ac_dir_suffix.
1263  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1264else
1265  ac_dir_suffix= ac_top_builddir=
1266fi
1267
1268case $srcdir in
1269  .)  # No --srcdir option.  We are building in place.
1270    ac_srcdir=.
1271    if test -z "$ac_top_builddir"; then
1272       ac_top_srcdir=.
1273    else
1274       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1275    fi ;;
1276  [\\/]* | ?:[\\/]* )  # Absolute path.
1277    ac_srcdir=$srcdir$ac_dir_suffix;
1278    ac_top_srcdir=$srcdir ;;
1279  *) # Relative path.
1280    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1281    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1282esac
1283
1284# Do not use `cd foo && pwd` to compute absolute paths, because
1285# the directories may not exist.
1286case `pwd` in
1287.) ac_abs_builddir="$ac_dir";;
1288*)
1289  case "$ac_dir" in
1290  .) ac_abs_builddir=`pwd`;;
1291  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1292  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1293  esac;;
1294esac
1295case $ac_abs_builddir in
1296.) ac_abs_top_builddir=${ac_top_builddir}.;;
1297*)
1298  case ${ac_top_builddir}. in
1299  .) ac_abs_top_builddir=$ac_abs_builddir;;
1300  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1301  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1302  esac;;
1303esac
1304case $ac_abs_builddir in
1305.) ac_abs_srcdir=$ac_srcdir;;
1306*)
1307  case $ac_srcdir in
1308  .) ac_abs_srcdir=$ac_abs_builddir;;
1309  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1310  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1311  esac;;
1312esac
1313case $ac_abs_builddir in
1314.) ac_abs_top_srcdir=$ac_top_srcdir;;
1315*)
1316  case $ac_top_srcdir in
1317  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1318  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1319  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1320  esac;;
1321esac
1322
1323    cd $ac_dir
1324    # Check for guested configure; otherwise get Cygnus style configure.
1325    if test -f $ac_srcdir/configure.gnu; then
1326      echo
1327      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1328    elif test -f $ac_srcdir/configure; then
1329      echo
1330      $SHELL $ac_srcdir/configure  --help=recursive
1331    elif test -f $ac_srcdir/configure.ac ||
1332           test -f $ac_srcdir/configure.in; then
1333      echo
1334      $ac_configure --help
1335    else
1336      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1337    fi
1338    cd $ac_popdir
1339  done
1340fi
1341
1342test -n "$ac_init_help" && exit 0
1343if $ac_init_version; then
1344  cat <<\_ACEOF
1345Cbc configure 2.3stable
1346generated by GNU Autoconf 2.59
1347
1348Copyright (C) 2003 Free Software Foundation, Inc.
1349This configure script is free software; the Free Software Foundation
1350gives unlimited permission to copy, distribute and modify it.
1351
1352
1353Copyright 2006 International Business Machines and others.
1354All Rights Reserved.
1355This file is part of the open source package Coin which is distributed
1356under the Common Public License.
1357_ACEOF
1358  exit 0
1359fi
1360exec 5>config.log
1361cat >&5 <<_ACEOF
1362This file contains any messages produced by compilers while
1363running configure, to aid debugging if configure makes a mistake.
1364
1365It was created by Cbc $as_me 2.3stable, which was
1366generated by GNU Autoconf 2.59.  Invocation command line was
1367
1368  $ $0 $@
1369
1370_ACEOF
1371{
1372cat <<_ASUNAME
1373## --------- ##
1374## Platform. ##
1375## --------- ##
1376
1377hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1378uname -m = `(uname -m) 2>/dev/null || echo unknown`
1379uname -r = `(uname -r) 2>/dev/null || echo unknown`
1380uname -s = `(uname -s) 2>/dev/null || echo unknown`
1381uname -v = `(uname -v) 2>/dev/null || echo unknown`
1382
1383/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1384/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1385
1386/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1387/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1388/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1389hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1390/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1391/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1392/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1393
1394_ASUNAME
1395
1396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1397for as_dir in $PATH
1398do
1399  IFS=$as_save_IFS
1400  test -z "$as_dir" && as_dir=.
1401  echo "PATH: $as_dir"
1402done
1403
1404} >&5
1405
1406cat >&5 <<_ACEOF
1407
1408
1409## ----------- ##
1410## Core tests. ##
1411## ----------- ##
1412
1413_ACEOF
1414
1415
1416# Keep a trace of the command line.
1417# Strip out --no-create and --no-recursion so they do not pile up.
1418# Strip out --silent because we don't want to record it for future runs.
1419# Also quote any args containing shell meta-characters.
1420# Make two passes to allow for proper duplicate-argument suppression.
1421ac_configure_args=
1422ac_configure_args0=
1423ac_configure_args1=
1424ac_sep=
1425ac_must_keep_next=false
1426for ac_pass in 1 2
1427do
1428  for ac_arg
1429  do
1430    case $ac_arg in
1431    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1432    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1433    | -silent | --silent | --silen | --sile | --sil)
1434      continue ;;
1435    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1436      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1437    esac
1438    case $ac_pass in
1439    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1440    2)
1441      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1442      if test $ac_must_keep_next = true; then
1443        ac_must_keep_next=false # Got value, back to normal.
1444      else
1445        case $ac_arg in
1446          *=* | --config-cache | -C | -disable-* | --disable-* \
1447          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1448          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1449          | -with-* | --with-* | -without-* | --without-* | --x)
1450            case "$ac_configure_args0 " in
1451              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1452            esac
1453            ;;
1454          -* ) ac_must_keep_next=true ;;
1455        esac
1456      fi
1457      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1458      # Get rid of the leading space.
1459      ac_sep=" "
1460      ;;
1461    esac
1462  done
1463done
1464$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1465$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1466
1467# When interrupted or exit'd, cleanup temporary files, and complete
1468# config.log.  We remove comments because anyway the quotes in there
1469# would cause problems or look ugly.
1470# WARNING: Be sure not to use single quotes in there, as some shells,
1471# such as our DU 5.0 friend, will then `close' the trap.
1472trap 'exit_status=$?
1473  # Save into config.log some information that might help in debugging.
1474  {
1475    echo
1476
1477    cat <<\_ASBOX
1478## ---------------- ##
1479## Cache variables. ##
1480## ---------------- ##
1481_ASBOX
1482    echo
1483    # The following way of writing the cache mishandles newlines in values,
1484{
1485  (set) 2>&1 |
1486    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1487    *ac_space=\ *)
1488      sed -n \
1489        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1490          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1491      ;;
1492    *)
1493      sed -n \
1494        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1495      ;;
1496    esac;
1497}
1498    echo
1499
1500    cat <<\_ASBOX
1501## ----------------- ##
1502## Output variables. ##
1503## ----------------- ##
1504_ASBOX
1505    echo
1506    for ac_var in $ac_subst_vars
1507    do
1508      eval ac_val=$`echo $ac_var`
1509      echo "$ac_var='"'"'$ac_val'"'"'"
1510    done | sort
1511    echo
1512
1513    if test -n "$ac_subst_files"; then
1514      cat <<\_ASBOX
1515## ------------- ##
1516## Output files. ##
1517## ------------- ##
1518_ASBOX
1519      echo
1520      for ac_var in $ac_subst_files
1521      do
1522        eval ac_val=$`echo $ac_var`
1523        echo "$ac_var='"'"'$ac_val'"'"'"
1524      done | sort
1525      echo
1526    fi
1527
1528    if test -s confdefs.h; then
1529      cat <<\_ASBOX
1530## ----------- ##
1531## confdefs.h. ##
1532## ----------- ##
1533_ASBOX
1534      echo
1535      sed "/^$/d" confdefs.h | sort
1536      echo
1537    fi
1538    test "$ac_signal" != 0 &&
1539      echo "$as_me: caught signal $ac_signal"
1540    echo "$as_me: exit $exit_status"
1541  } >&5
1542  rm -f core *.core &&
1543  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1544    exit $exit_status
1545     ' 0
1546for ac_signal in 1 2 13 15; do
1547  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1548done
1549ac_signal=0
1550
1551# confdefs.h avoids OS command line length limits that DEFS can exceed.
1552rm -rf conftest* confdefs.h
1553# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1554echo >confdefs.h
1555
1556# Predefined preprocessor variables.
1557
1558cat >>confdefs.h <<_ACEOF
1559#define PACKAGE_NAME "$PACKAGE_NAME"
1560_ACEOF
1561
1562
1563cat >>confdefs.h <<_ACEOF
1564#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1565_ACEOF
1566
1567
1568cat >>confdefs.h <<_ACEOF
1569#define PACKAGE_VERSION "$PACKAGE_VERSION"
1570_ACEOF
1571
1572
1573cat >>confdefs.h <<_ACEOF
1574#define PACKAGE_STRING "$PACKAGE_STRING"
1575_ACEOF
1576
1577
1578cat >>confdefs.h <<_ACEOF
1579#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1580_ACEOF
1581
1582
1583# Let the site file select an alternate cache file if it wants to.
1584# Prefer explicitly selected file to automatically selected ones.
1585if test -z "$CONFIG_SITE"; then
1586  if test "x$prefix" != xNONE; then
1587    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1588  else
1589    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1590  fi
1591fi
1592for ac_site_file in $CONFIG_SITE; do
1593  if test -r "$ac_site_file"; then
1594    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1595echo "$as_me: loading site script $ac_site_file" >&6;}
1596    sed 's/^/| /' "$ac_site_file" >&5
1597    . "$ac_site_file"
1598  fi
1599done
1600
1601if test -r "$cache_file"; then
1602  # Some versions of bash will fail to source /dev/null (special
1603  # files actually), so we avoid doing that.
1604  if test -f "$cache_file"; then
1605    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1606echo "$as_me: loading cache $cache_file" >&6;}
1607    case $cache_file in
1608      [\\/]* | ?:[\\/]* ) . $cache_file;;
1609      *)                      . ./$cache_file;;
1610    esac
1611  fi
1612else
1613  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1614echo "$as_me: creating cache $cache_file" >&6;}
1615  >$cache_file
1616fi
1617
1618# Check that the precious variables saved in the cache have kept the same
1619# value.
1620ac_cache_corrupted=false
1621for ac_var in `(set) 2>&1 |
1622               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1623  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1624  eval ac_new_set=\$ac_env_${ac_var}_set
1625  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1626  eval ac_new_val="\$ac_env_${ac_var}_value"
1627  case $ac_old_set,$ac_new_set in
1628    set,)
1629      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1630echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1631      ac_cache_corrupted=: ;;
1632    ,set)
1633      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1634echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1635      ac_cache_corrupted=: ;;
1636    ,);;
1637    *)
1638      if test "x$ac_old_val" != "x$ac_new_val"; then
1639        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1640echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1641        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1642echo "$as_me:   former value:  $ac_old_val" >&2;}
1643        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1644echo "$as_me:   current value: $ac_new_val" >&2;}
1645        ac_cache_corrupted=:
1646      fi;;
1647  esac
1648  # Pass precious variables to config.status.
1649  if test "$ac_new_set" = set; then
1650    case $ac_new_val in
1651    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1652      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1653    *) ac_arg=$ac_var=$ac_new_val ;;
1654    esac
1655    case " $ac_configure_args " in
1656      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1657      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1658    esac
1659  fi
1660done
1661if $ac_cache_corrupted; then
1662  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1663echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1664  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1665echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1666   { (exit 1); exit 1; }; }
1667fi
1668
1669ac_ext=c
1670ac_cpp='$CPP $CPPFLAGS'
1671ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1672ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1673ac_compiler_gnu=$ac_cv_c_compiler_gnu
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706# List one file in the package so that the configure script can test
1707# whether the package is actually there
1708
1709
1710# Where should everything be installed by default?  Here, we want it
1711# to be installed directly in 'bin', 'lib', 'include' subdirectories
1712# of the directory where configure is run.  The default would be
1713# /usr/local.
1714
1715
1716#############################################################################
1717#  Do the tests necessary to configure compilers and initialise autotools   #
1718#############################################################################
1719
1720ac_aux_dir=
1721for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1722  if test -f $ac_dir/install-sh; then
1723    ac_aux_dir=$ac_dir
1724    ac_install_sh="$ac_aux_dir/install-sh -c"
1725    break
1726  elif test -f $ac_dir/install.sh; then
1727    ac_aux_dir=$ac_dir
1728    ac_install_sh="$ac_aux_dir/install.sh -c"
1729    break
1730  elif test -f $ac_dir/shtool; then
1731    ac_aux_dir=$ac_dir
1732    ac_install_sh="$ac_aux_dir/shtool install -c"
1733    break
1734  fi
1735done
1736if test -z "$ac_aux_dir"; then
1737  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1738echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1739   { (exit 1); exit 1; }; }
1740fi
1741ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1742ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1743ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1744
1745# Make sure we can run config.sub.
1746$ac_config_sub sun4 >/dev/null 2>&1 ||
1747  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1748echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1749   { (exit 1); exit 1; }; }
1750
1751echo "$as_me:$LINENO: checking build system type" >&5
1752echo $ECHO_N "checking build system type... $ECHO_C" >&6
1753if test "${ac_cv_build+set}" = set; then
1754  echo $ECHO_N "(cached) $ECHO_C" >&6
1755else
1756  ac_cv_build_alias=$build_alias
1757test -z "$ac_cv_build_alias" &&
1758  ac_cv_build_alias=`$ac_config_guess`
1759test -z "$ac_cv_build_alias" &&
1760  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1761echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1762   { (exit 1); exit 1; }; }
1763ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1764  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1765echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1766   { (exit 1); exit 1; }; }
1767
1768fi
1769echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1770echo "${ECHO_T}$ac_cv_build" >&6
1771build=$ac_cv_build
1772build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1773build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1774build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1775
1776
1777
1778# Check if user wants to produce debugging code
1779
1780echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1781echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1782
1783# Check whether --enable-debug or --disable-debug was given.
1784if test "${enable_debug+set}" = set; then
1785  enableval="$enable_debug"
1786  case "${enableval}" in
1787   yes) coin_debug_compile=true
1788        if test "${enable_shared+set}" = set; then :; else
1789          enable_shared=no
1790        fi
1791        ;;
1792   no)  coin_debug_compile=false
1793        ;;
1794   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1795echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1796   { (exit 1); exit 1; }; }
1797        ;;
1798esac
1799else
1800  coin_debug_compile=false
1801fi;
1802
1803 # m4_ifvaln([],
1804
1805if test $coin_debug_compile = true; then
1806  echo "$as_me:$LINENO: result: yes" >&5
1807echo "${ECHO_T}yes" >&6
1808else
1809  echo "$as_me:$LINENO: result: no" >&5
1810echo "${ECHO_T}no" >&6
1811fi
1812
1813 # m4_ifvaln([],
1814
1815
1816
1817# Get the name of the C compiler and appropriate compiler options
1818case $build in
1819  *-mingw*)
1820    if test "${LD+set}" = set; then :; else
1821      LD=link
1822    fi
1823    ;;
1824 esac
1825 case $enable_doscompile in
1826   msvc)
1827     if test "x${LD+set}" = xset; then :; else
1828       LD=link
1829     fi
1830     ;;
1831 esac
1832
1833
1834 # Check whether --enable-doscompile or --disable-doscompile was given.
1835if test "${enable_doscompile+set}" = set; then
1836  enableval="$enable_doscompile"
1837  if test "$enable_doscompile" != no; then
1838     case $build in
1839       *-cygwin* | *-mingw*) ;;
1840       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1841echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1842   { (exit 1); exit 1; }; } ;;
1843     esac
1844   fi
1845else
1846  enable_doscompile=no
1847fi;
1848 case "$enable_doscompile" in
1849   mingw)
1850     case $build in
1851       *-mingw*) enable_doscompile=no ;;
1852     esac
1853     ;;
1854   msvc|no) ;;
1855   yes) enable_doscompile=mingw ;;
1856   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1857                    Try configure --help=recursive." >&5
1858echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1859                    Try configure --help=recursive." >&2;}
1860   { (exit 1); exit 1; }; }
1861      ;;
1862  esac
1863  if test "$enable_doscompile" != no ; then
1864    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1865echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1866  fi
1867
1868
1869
1870
1871ac_ext=c
1872ac_cpp='$CPP $CPPFLAGS'
1873ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1874ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1875ac_compiler_gnu=$ac_cv_c_compiler_gnu
1876
1877
1878# For consistency, we set the C compiler to the same value of the C++
1879# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1880if test x"$CXX" != x; then
1881  case "$CXX" in
1882    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1883      if test x"$CC" = x; then
1884        CC="$CXX"
1885        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1886echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1887      fi
1888      ;;
1889  esac
1890fi
1891
1892
1893
1894
1895
1896
1897coin_has_cc=yes
1898
1899save_cflags="$CFLAGS"
1900
1901# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1902# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1903# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1904# compiler. In this case, put cc after gcc.
1905
1906case $build in
1907  *-cygwin* | *-mingw*)
1908             if test "$enable_doscompile" = msvc ; then
1909               comps="icl cl"
1910             else
1911               comps="gcc cl"
1912             fi ;;
1913  *-*-solaris*)
1914             # Extract the first word of "cc", so it can be a program name with args.
1915set dummy cc; ac_word=$2
1916echo "$as_me:$LINENO: checking for $ac_word" >&5
1917echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1918if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1919  echo $ECHO_N "(cached) $ECHO_C" >&6
1920else
1921  if test -n "$sol_cc_compiler"; then
1922  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1923else
1924  ac_prog_rejected=no
1925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1926for as_dir in $PATH
1927do
1928  IFS=$as_save_IFS
1929  test -z "$as_dir" && as_dir=.
1930  for ac_exec_ext in '' $ac_executable_extensions; do
1931  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1932    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1933       ac_prog_rejected=yes
1934       continue
1935     fi
1936    ac_cv_prog_sol_cc_compiler="cc"
1937    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1938    break 2
1939  fi
1940done
1941done
1942
1943if test $ac_prog_rejected = yes; then
1944  # We found a bogon in the path, so make sure we never use it.
1945  set dummy $ac_cv_prog_sol_cc_compiler
1946  shift
1947  if test $# != 0; then
1948    # We chose a different compiler from the bogus one.
1949    # However, it has the same basename, so the bogon will be chosen
1950    # first if we set sol_cc_compiler to just the basename; use the full file name.
1951    shift
1952    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
1953  fi
1954fi
1955fi
1956fi
1957sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
1958if test -n "$sol_cc_compiler"; then
1959  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
1960echo "${ECHO_T}$sol_cc_compiler" >&6
1961else
1962  echo "$as_me:$LINENO: result: no" >&5
1963echo "${ECHO_T}no" >&6
1964fi
1965
1966             if test "$sol_cc_compiler" = "cc" ; then
1967               comps="cc xlc gcc pgcc icc"
1968             else
1969               comps="xlc gcc pgcc icc cc"
1970             fi
1971             ;;
1972  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
1973  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
1974esac
1975
1976# We delete the cached value, since the test might not have been
1977# performed with our choice of compilers earlier
1978$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
1979# AC_MSG_NOTICE([C compiler candidates: $comps])
1980ac_ext=c
1981ac_cpp='$CPP $CPPFLAGS'
1982ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1983ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1984ac_compiler_gnu=$ac_cv_c_compiler_gnu
1985if test -n "$ac_tool_prefix"; then
1986  for ac_prog in $comps
1987  do
1988    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1989set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1990echo "$as_me:$LINENO: checking for $ac_word" >&5
1991echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1992if test "${ac_cv_prog_CC+set}" = set; then
1993  echo $ECHO_N "(cached) $ECHO_C" >&6
1994else
1995  if test -n "$CC"; then
1996  ac_cv_prog_CC="$CC" # Let the user override the test.
1997else
1998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1999for as_dir in $PATH
2000do
2001  IFS=$as_save_IFS
2002  test -z "$as_dir" && as_dir=.
2003  for ac_exec_ext in '' $ac_executable_extensions; do
2004  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2005    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2006    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2007    break 2
2008  fi
2009done
2010done
2011
2012fi
2013fi
2014CC=$ac_cv_prog_CC
2015if test -n "$CC"; then
2016  echo "$as_me:$LINENO: result: $CC" >&5
2017echo "${ECHO_T}$CC" >&6
2018else
2019  echo "$as_me:$LINENO: result: no" >&5
2020echo "${ECHO_T}no" >&6
2021fi
2022
2023    test -n "$CC" && break
2024  done
2025fi
2026if test -z "$CC"; then
2027  ac_ct_CC=$CC
2028  for ac_prog in $comps
2029do
2030  # Extract the first word of "$ac_prog", so it can be a program name with args.
2031set dummy $ac_prog; ac_word=$2
2032echo "$as_me:$LINENO: checking for $ac_word" >&5
2033echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2034if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2035  echo $ECHO_N "(cached) $ECHO_C" >&6
2036else
2037  if test -n "$ac_ct_CC"; then
2038  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2039else
2040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2041for as_dir in $PATH
2042do
2043  IFS=$as_save_IFS
2044  test -z "$as_dir" && as_dir=.
2045  for ac_exec_ext in '' $ac_executable_extensions; do
2046  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2047    ac_cv_prog_ac_ct_CC="$ac_prog"
2048    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2049    break 2
2050  fi
2051done
2052done
2053
2054fi
2055fi
2056ac_ct_CC=$ac_cv_prog_ac_ct_CC
2057if test -n "$ac_ct_CC"; then
2058  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2059echo "${ECHO_T}$ac_ct_CC" >&6
2060else
2061  echo "$as_me:$LINENO: result: no" >&5
2062echo "${ECHO_T}no" >&6
2063fi
2064
2065  test -n "$ac_ct_CC" && break
2066done
2067
2068  CC=$ac_ct_CC
2069fi
2070
2071
2072test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2073See \`config.log' for more details." >&5
2074echo "$as_me: error: no acceptable C compiler found in \$PATH
2075See \`config.log' for more details." >&2;}
2076   { (exit 1); exit 1; }; }
2077
2078# Provide some information about the compiler.
2079echo "$as_me:$LINENO:" \
2080     "checking for C compiler version" >&5
2081ac_compiler=`set X $ac_compile; echo $2`
2082{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2083  (eval $ac_compiler --version </dev/null >&5) 2>&5
2084  ac_status=$?
2085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086  (exit $ac_status); }
2087{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2088  (eval $ac_compiler -v </dev/null >&5) 2>&5
2089  ac_status=$?
2090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091  (exit $ac_status); }
2092{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2093  (eval $ac_compiler -V </dev/null >&5) 2>&5
2094  ac_status=$?
2095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2096  (exit $ac_status); }
2097
2098cat >conftest.$ac_ext <<_ACEOF
2099/* confdefs.h.  */
2100_ACEOF
2101cat confdefs.h >>conftest.$ac_ext
2102cat >>conftest.$ac_ext <<_ACEOF
2103/* end confdefs.h.  */
2104
2105int
2106main ()
2107{
2108
2109  ;
2110  return 0;
2111}
2112_ACEOF
2113ac_clean_files_save=$ac_clean_files
2114ac_clean_files="$ac_clean_files a.out a.exe b.out"
2115# Try to create an executable without -o first, disregard a.out.
2116# It will help us diagnose broken compilers, and finding out an intuition
2117# of exeext.
2118echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2119echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2120ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2121if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2122  (eval $ac_link_default) 2>&5
2123  ac_status=$?
2124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2125  (exit $ac_status); }; then
2126  # Find the output, starting from the most likely.  This scheme is
2127# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2128# resort.
2129
2130# Be careful to initialize this variable, since it used to be cached.
2131# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2132ac_cv_exeext=
2133# b.out is created by i960 compilers.
2134for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2135do
2136  test -f "$ac_file" || continue
2137  case $ac_file in
2138    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2139        ;;
2140    conftest.$ac_ext )
2141        # This is the source file.
2142        ;;
2143    [ab].out )
2144        # We found the default executable, but exeext='' is most
2145        # certainly right.
2146        break;;
2147    *.* )
2148        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2149        # FIXME: I believe we export ac_cv_exeext for Libtool,
2150        # but it would be cool to find out if it's true.  Does anybody
2151        # maintain Libtool? --akim.
2152        export ac_cv_exeext
2153        break;;
2154    * )
2155        break;;
2156  esac
2157done
2158else
2159  echo "$as_me: failed program was:" >&5
2160sed 's/^/| /' conftest.$ac_ext >&5
2161
2162{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2163See \`config.log' for more details." >&5
2164echo "$as_me: error: C compiler cannot create executables
2165See \`config.log' for more details." >&2;}
2166   { (exit 77); exit 77; }; }
2167fi
2168
2169ac_exeext=$ac_cv_exeext
2170echo "$as_me:$LINENO: result: $ac_file" >&5
2171echo "${ECHO_T}$ac_file" >&6
2172
2173# Check the compiler produces executables we can run.  If not, either
2174# the compiler is broken, or we cross compile.
2175echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2176echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2177# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2178# If not cross compiling, check that we can run a simple program.
2179if test "$cross_compiling" != yes; then
2180  if { ac_try='./$ac_file'
2181  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2182  (eval $ac_try) 2>&5
2183  ac_status=$?
2184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185  (exit $ac_status); }; }; then
2186    cross_compiling=no
2187  else
2188    if test "$cross_compiling" = maybe; then
2189        cross_compiling=yes
2190    else
2191        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2192If you meant to cross compile, use \`--host'.
2193See \`config.log' for more details." >&5
2194echo "$as_me: error: cannot run C compiled programs.
2195If you meant to cross compile, use \`--host'.
2196See \`config.log' for more details." >&2;}
2197   { (exit 1); exit 1; }; }
2198    fi
2199  fi
2200fi
2201echo "$as_me:$LINENO: result: yes" >&5
2202echo "${ECHO_T}yes" >&6
2203
2204rm -f a.out a.exe conftest$ac_cv_exeext b.out
2205ac_clean_files=$ac_clean_files_save
2206# Check the compiler produces executables we can run.  If not, either
2207# the compiler is broken, or we cross compile.
2208echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2209echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2210echo "$as_me:$LINENO: result: $cross_compiling" >&5
2211echo "${ECHO_T}$cross_compiling" >&6
2212
2213echo "$as_me:$LINENO: checking for suffix of executables" >&5
2214echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2215if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2216  (eval $ac_link) 2>&5
2217  ac_status=$?
2218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219  (exit $ac_status); }; then
2220  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2221# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2222# work properly (i.e., refer to `conftest.exe'), while it won't with
2223# `rm'.
2224for ac_file in conftest.exe conftest conftest.*; do
2225  test -f "$ac_file" || continue
2226  case $ac_file in
2227    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2228    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2229          export ac_cv_exeext
2230          break;;
2231    * ) break;;
2232  esac
2233done
2234else
2235  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2236See \`config.log' for more details." >&5
2237echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2238See \`config.log' for more details." >&2;}
2239   { (exit 1); exit 1; }; }
2240fi
2241
2242rm -f conftest$ac_cv_exeext
2243echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2244echo "${ECHO_T}$ac_cv_exeext" >&6
2245
2246rm -f conftest.$ac_ext
2247EXEEXT=$ac_cv_exeext
2248ac_exeext=$EXEEXT
2249echo "$as_me:$LINENO: checking for suffix of object files" >&5
2250echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2251if test "${ac_cv_objext+set}" = set; then
2252  echo $ECHO_N "(cached) $ECHO_C" >&6
2253else
2254  cat >conftest.$ac_ext <<_ACEOF
2255/* confdefs.h.  */
2256_ACEOF
2257cat confdefs.h >>conftest.$ac_ext
2258cat >>conftest.$ac_ext <<_ACEOF
2259/* end confdefs.h.  */
2260
2261int
2262main ()
2263{
2264
2265  ;
2266  return 0;
2267}
2268_ACEOF
2269rm -f conftest.o conftest.obj
2270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2271  (eval $ac_compile) 2>&5
2272  ac_status=$?
2273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274  (exit $ac_status); }; then
2275  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2276  case $ac_file in
2277    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2278    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2279       break;;
2280  esac
2281done
2282else
2283  echo "$as_me: failed program was:" >&5
2284sed 's/^/| /' conftest.$ac_ext >&5
2285
2286{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2287See \`config.log' for more details." >&5
2288echo "$as_me: error: cannot compute suffix of object files: cannot compile
2289See \`config.log' for more details." >&2;}
2290   { (exit 1); exit 1; }; }
2291fi
2292
2293rm -f conftest.$ac_cv_objext conftest.$ac_ext
2294fi
2295echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2296echo "${ECHO_T}$ac_cv_objext" >&6
2297OBJEXT=$ac_cv_objext
2298ac_objext=$OBJEXT
2299echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2300echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2301if test "${ac_cv_c_compiler_gnu+set}" = set; then
2302  echo $ECHO_N "(cached) $ECHO_C" >&6
2303else
2304  cat >conftest.$ac_ext <<_ACEOF
2305/* confdefs.h.  */
2306_ACEOF
2307cat confdefs.h >>conftest.$ac_ext
2308cat >>conftest.$ac_ext <<_ACEOF
2309/* end confdefs.h.  */
2310
2311int
2312main ()
2313{
2314#ifndef __GNUC__
2315       choke me
2316#endif
2317
2318  ;
2319  return 0;
2320}
2321_ACEOF
2322rm -f conftest.$ac_objext
2323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2324  (eval $ac_compile) 2>conftest.er1
2325  ac_status=$?
2326  grep -v '^ *+' conftest.er1 >conftest.err
2327  rm -f conftest.er1
2328  cat conftest.err >&5
2329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330  (exit $ac_status); } &&
2331         { ac_try='test -z "$ac_c_werror_flag"
2332                         || test ! -s conftest.err'
2333  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2334  (eval $ac_try) 2>&5
2335  ac_status=$?
2336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337  (exit $ac_status); }; } &&
2338         { ac_try='test -s conftest.$ac_objext'
2339  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2340  (eval $ac_try) 2>&5
2341  ac_status=$?
2342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2343  (exit $ac_status); }; }; then
2344  ac_compiler_gnu=yes
2345else
2346  echo "$as_me: failed program was:" >&5
2347sed 's/^/| /' conftest.$ac_ext >&5
2348
2349ac_compiler_gnu=no
2350fi
2351rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2352ac_cv_c_compiler_gnu=$ac_compiler_gnu
2353
2354fi
2355echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2356echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2357GCC=`test $ac_compiler_gnu = yes && echo yes`
2358ac_test_CFLAGS=${CFLAGS+set}
2359ac_save_CFLAGS=$CFLAGS
2360CFLAGS="-g"
2361echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2362echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2363if test "${ac_cv_prog_cc_g+set}" = set; then
2364  echo $ECHO_N "(cached) $ECHO_C" >&6
2365else
2366  cat >conftest.$ac_ext <<_ACEOF
2367/* confdefs.h.  */
2368_ACEOF
2369cat confdefs.h >>conftest.$ac_ext
2370cat >>conftest.$ac_ext <<_ACEOF
2371/* end confdefs.h.  */
2372
2373int
2374main ()
2375{
2376
2377  ;
2378  return 0;
2379}
2380_ACEOF
2381rm -f conftest.$ac_objext
2382if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2383  (eval $ac_compile) 2>conftest.er1
2384  ac_status=$?
2385  grep -v '^ *+' conftest.er1 >conftest.err
2386  rm -f conftest.er1
2387  cat conftest.err >&5
2388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389  (exit $ac_status); } &&
2390         { ac_try='test -z "$ac_c_werror_flag"
2391                         || test ! -s conftest.err'
2392  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2393  (eval $ac_try) 2>&5
2394  ac_status=$?
2395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396  (exit $ac_status); }; } &&
2397         { ac_try='test -s conftest.$ac_objext'
2398  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2399  (eval $ac_try) 2>&5
2400  ac_status=$?
2401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402  (exit $ac_status); }; }; then
2403  ac_cv_prog_cc_g=yes
2404else
2405  echo "$as_me: failed program was:" >&5
2406sed 's/^/| /' conftest.$ac_ext >&5
2407
2408ac_cv_prog_cc_g=no
2409fi
2410rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2411fi
2412echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2413echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2414if test "$ac_test_CFLAGS" = set; then
2415  CFLAGS=$ac_save_CFLAGS
2416elif test $ac_cv_prog_cc_g = yes; then
2417  if test "$GCC" = yes; then
2418    CFLAGS="-g -O2"
2419  else
2420    CFLAGS="-g"
2421  fi
2422else
2423  if test "$GCC" = yes; then
2424    CFLAGS="-O2"
2425  else
2426    CFLAGS=
2427  fi
2428fi
2429echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2430echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2431if test "${ac_cv_prog_cc_stdc+set}" = set; then
2432  echo $ECHO_N "(cached) $ECHO_C" >&6
2433else
2434  ac_cv_prog_cc_stdc=no
2435ac_save_CC=$CC
2436cat >conftest.$ac_ext <<_ACEOF
2437/* confdefs.h.  */
2438_ACEOF
2439cat confdefs.h >>conftest.$ac_ext
2440cat >>conftest.$ac_ext <<_ACEOF
2441/* end confdefs.h.  */
2442#include <stdarg.h>
2443#include <stdio.h>
2444#include <sys/types.h>
2445#include <sys/stat.h>
2446/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2447struct buf { int x; };
2448FILE * (*rcsopen) (struct buf *, struct stat *, int);
2449static char *e (p, i)
2450     char **p;
2451     int i;
2452{
2453  return p[i];
2454}
2455static char *f (char * (*g) (char **, int), char **p, ...)
2456{
2457  char *s;
2458  va_list v;
2459  va_start (v,p);
2460  s = g (p, va_arg (v,int));
2461  va_end (v);
2462  return s;
2463}
2464
2465/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2466   function prototypes and stuff, but not '\xHH' hex character constants.
2467   These don't provoke an error unfortunately, instead are silently treated
2468   as 'x'.  The following induces an error, until -std1 is added to get
2469   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2470   array size at least.  It's necessary to write '\x00'==0 to get something
2471   that's true only with -std1.  */
2472int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2473
2474int test (int i, double x);
2475struct s1 {int (*f) (int a);};
2476struct s2 {int (*f) (double a);};
2477int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2478int argc;
2479char **argv;
2480int
2481main ()
2482{
2483return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2484  ;
2485  return 0;
2486}
2487_ACEOF
2488# Don't try gcc -ansi; that turns off useful extensions and
2489# breaks some systems' header files.
2490# AIX                   -qlanglvl=ansi
2491# Ultrix and OSF/1      -std1
2492# HP-UX 10.20 and later -Ae
2493# HP-UX older versions  -Aa -D_HPUX_SOURCE
2494# SVR4                  -Xc -D__EXTENSIONS__
2495for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2496do
2497  CC="$ac_save_CC $ac_arg"
2498  rm -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  ac_cv_prog_cc_stdc=$ac_arg
2521break
2522else
2523  echo "$as_me: failed program was:" >&5
2524sed 's/^/| /' conftest.$ac_ext >&5
2525
2526fi
2527rm -f conftest.err conftest.$ac_objext
2528done
2529rm -f conftest.$ac_ext conftest.$ac_objext
2530CC=$ac_save_CC
2531
2532fi
2533
2534case "x$ac_cv_prog_cc_stdc" in
2535  x|xno)
2536    echo "$as_me:$LINENO: result: none needed" >&5
2537echo "${ECHO_T}none needed" >&6 ;;
2538  *)
2539    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2540echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2541    CC="$CC $ac_cv_prog_cc_stdc" ;;
2542esac
2543
2544# Some people use a C++ compiler to compile C.  Since we use `exit',
2545# in C++ we need to declare it.  In case someone uses the same compiler
2546# for both compiling C and C++ we need to have the C++ compiler decide
2547# the declaration of exit, since it's the most demanding environment.
2548cat >conftest.$ac_ext <<_ACEOF
2549#ifndef __cplusplus
2550  choke me
2551#endif
2552_ACEOF
2553rm -f conftest.$ac_objext
2554if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2555  (eval $ac_compile) 2>conftest.er1
2556  ac_status=$?
2557  grep -v '^ *+' conftest.er1 >conftest.err
2558  rm -f conftest.er1
2559  cat conftest.err >&5
2560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561  (exit $ac_status); } &&
2562         { ac_try='test -z "$ac_c_werror_flag"
2563                         || test ! -s conftest.err'
2564  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2565  (eval $ac_try) 2>&5
2566  ac_status=$?
2567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568  (exit $ac_status); }; } &&
2569         { ac_try='test -s conftest.$ac_objext'
2570  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2571  (eval $ac_try) 2>&5
2572  ac_status=$?
2573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574  (exit $ac_status); }; }; then
2575  for ac_declaration in \
2576   '' \
2577   'extern "C" void std::exit (int) throw (); using std::exit;' \
2578   'extern "C" void std::exit (int); using std::exit;' \
2579   'extern "C" void exit (int) throw ();' \
2580   'extern "C" void exit (int);' \
2581   'void exit (int);'
2582do
2583  cat >conftest.$ac_ext <<_ACEOF
2584/* confdefs.h.  */
2585_ACEOF
2586cat confdefs.h >>conftest.$ac_ext
2587cat >>conftest.$ac_ext <<_ACEOF
2588/* end confdefs.h.  */
2589$ac_declaration
2590#include <stdlib.h>
2591int
2592main ()
2593{
2594exit (42);
2595  ;
2596  return 0;
2597}
2598_ACEOF
2599rm -f conftest.$ac_objext
2600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2601  (eval $ac_compile) 2>conftest.er1
2602  ac_status=$?
2603  grep -v '^ *+' conftest.er1 >conftest.err
2604  rm -f conftest.er1
2605  cat conftest.err >&5
2606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607  (exit $ac_status); } &&
2608         { ac_try='test -z "$ac_c_werror_flag"
2609                         || test ! -s conftest.err'
2610  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2611  (eval $ac_try) 2>&5
2612  ac_status=$?
2613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614  (exit $ac_status); }; } &&
2615         { ac_try='test -s conftest.$ac_objext'
2616  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2617  (eval $ac_try) 2>&5
2618  ac_status=$?
2619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620  (exit $ac_status); }; }; then
2621  :
2622else
2623  echo "$as_me: failed program was:" >&5
2624sed 's/^/| /' conftest.$ac_ext >&5
2625
2626continue
2627fi
2628rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2629  cat >conftest.$ac_ext <<_ACEOF
2630/* confdefs.h.  */
2631_ACEOF
2632cat confdefs.h >>conftest.$ac_ext
2633cat >>conftest.$ac_ext <<_ACEOF
2634/* end confdefs.h.  */
2635$ac_declaration
2636int
2637main ()
2638{
2639exit (42);
2640  ;
2641  return 0;
2642}
2643_ACEOF
2644rm -f conftest.$ac_objext
2645if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2646  (eval $ac_compile) 2>conftest.er1
2647  ac_status=$?
2648  grep -v '^ *+' conftest.er1 >conftest.err
2649  rm -f conftest.er1
2650  cat conftest.err >&5
2651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652  (exit $ac_status); } &&
2653         { ac_try='test -z "$ac_c_werror_flag"
2654                         || test ! -s conftest.err'
2655  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2656  (eval $ac_try) 2>&5
2657  ac_status=$?
2658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659  (exit $ac_status); }; } &&
2660         { ac_try='test -s conftest.$ac_objext'
2661  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2662  (eval $ac_try) 2>&5
2663  ac_status=$?
2664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665  (exit $ac_status); }; }; then
2666  break
2667else
2668  echo "$as_me: failed program was:" >&5
2669sed 's/^/| /' conftest.$ac_ext >&5
2670
2671fi
2672rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2673done
2674rm -f conftest*
2675if test -n "$ac_declaration"; then
2676  echo '#ifdef __cplusplus' >>confdefs.h
2677  echo $ac_declaration      >>confdefs.h
2678  echo '#endif'             >>confdefs.h
2679fi
2680
2681else
2682  echo "$as_me: failed program was:" >&5
2683sed 's/^/| /' conftest.$ac_ext >&5
2684
2685fi
2686rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2687ac_ext=c
2688ac_cpp='$CPP $CPPFLAGS'
2689ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2690ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2691ac_compiler_gnu=$ac_cv_c_compiler_gnu
2692
2693if test -z "$CC" ; then
2694  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2695echo "$as_me: error: Failed to find a C compiler!" >&2;}
2696   { (exit 1); exit 1; }; }
2697fi
2698# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2699case "$CC" in
2700  cl* | */cl* | CL* | */CL* )
2701    if test "$ac_cv_prog_cc_g" = yes ; then
2702      ac_cv_prog_cc_g=no
2703      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2704echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2705    fi ;;
2706esac
2707CFLAGS="$save_cflags"
2708
2709# Check if a project specific CFLAGS variable has been set
2710if test x$COIN_PRJCT != x; then
2711  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2712  if test x$coin_tmp = xset; then
2713    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2714  fi
2715fi
2716
2717if test x"$CFLAGS" = x; then
2718
2719  coin_add_cflags=
2720  coin_opt_cflags=
2721  coin_dbg_cflags=
2722  coin_warn_cflags=
2723
2724  if test "$GCC" = "yes"; then
2725    case "$CC" in
2726      icc* | */icc*)
2727        ;;
2728      *)
2729        coin_opt_cflags="-O3 -fomit-frame-pointer"
2730        coin_add_cflags="-pipe"
2731        coin_dbg_cflags="-g"
2732        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas"
2733        case $build in
2734          *-darwin*)
2735            ;;
2736          *)
2737            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2738            ;;
2739        esac
2740        case $enable_doscompile in
2741          mingw)
2742            CFLAGS="-mno-cygwin"
2743            cat >conftest.$ac_ext <<_ACEOF
2744/* confdefs.h.  */
2745_ACEOF
2746cat confdefs.h >>conftest.$ac_ext
2747cat >>conftest.$ac_ext <<_ACEOF
2748/* end confdefs.h.  */
2749
2750int
2751main ()
2752{
2753int i=0; i++;
2754  ;
2755  return 0;
2756}
2757_ACEOF
2758rm -f conftest.$ac_objext conftest$ac_exeext
2759if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2760  (eval $ac_link) 2>conftest.er1
2761  ac_status=$?
2762  grep -v '^ *+' conftest.er1 >conftest.err
2763  rm -f conftest.er1
2764  cat conftest.err >&5
2765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766  (exit $ac_status); } &&
2767         { ac_try='test -z "$ac_c_werror_flag"
2768                         || test ! -s conftest.err'
2769  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2770  (eval $ac_try) 2>&5
2771  ac_status=$?
2772  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773  (exit $ac_status); }; } &&
2774         { ac_try='test -s conftest$ac_exeext'
2775  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2776  (eval $ac_try) 2>&5
2777  ac_status=$?
2778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779  (exit $ac_status); }; }; then
2780  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2781else
2782  echo "$as_me: failed program was:" >&5
2783sed 's/^/| /' conftest.$ac_ext >&5
2784
2785fi
2786rm -f conftest.err conftest.$ac_objext \
2787      conftest$ac_exeext conftest.$ac_ext
2788            CFLAGS=
2789          ;;
2790        esac
2791    esac
2792  fi
2793  if test -z "$coin_opt_cflags"; then
2794    case $build in
2795      *-cygwin* | *-mingw*)
2796        case "$CC" in
2797          cl* | */cl* | CL* | */CL*)
2798            coin_opt_cflags='-MT -O2'
2799            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2800            coin_dbg_cflags='-MTd'
2801            ;;
2802          icl* | */icl* | ICL* | */ICL*)
2803            coin_opt_cflags='-MT -Ox'
2804            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2805            coin_dbg_cflags='-MTd -debug'
2806            ;;
2807        esac
2808        ;;
2809      *-linux-*)
2810        case "$CC" in
2811          icc* | */icc*)
2812            coin_opt_cflags="-O3 -ip -mp1"
2813            coin_add_cflags=""
2814            coin_dbg_cflags="-g"
2815            # Check if -i_dynamic is necessary (for new glibc library)
2816            CFLAGS=
2817            cat >conftest.$ac_ext <<_ACEOF
2818/* confdefs.h.  */
2819_ACEOF
2820cat confdefs.h >>conftest.$ac_ext
2821cat >>conftest.$ac_ext <<_ACEOF
2822/* end confdefs.h.  */
2823
2824int
2825main ()
2826{
2827int i=0; i++;
2828  ;
2829  return 0;
2830}
2831_ACEOF
2832rm -f conftest.$ac_objext conftest$ac_exeext
2833if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2834  (eval $ac_link) 2>conftest.er1
2835  ac_status=$?
2836  grep -v '^ *+' conftest.er1 >conftest.err
2837  rm -f conftest.er1
2838  cat conftest.err >&5
2839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840  (exit $ac_status); } &&
2841         { ac_try='test -z "$ac_c_werror_flag"
2842                         || test ! -s conftest.err'
2843  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2844  (eval $ac_try) 2>&5
2845  ac_status=$?
2846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847  (exit $ac_status); }; } &&
2848         { ac_try='test -s conftest$ac_exeext'
2849  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2850  (eval $ac_try) 2>&5
2851  ac_status=$?
2852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853  (exit $ac_status); }; }; then
2854  :
2855else
2856  echo "$as_me: failed program was:" >&5
2857sed 's/^/| /' conftest.$ac_ext >&5
2858
2859coin_add_cflags="-i_dynamic $coin_add_cflags"
2860fi
2861rm -f conftest.err conftest.$ac_objext \
2862      conftest$ac_exeext conftest.$ac_ext
2863            ;;
2864          pgcc* | */pgcc*)
2865            coin_opt_cflags="-fast"
2866            coin_add_cflags="-Kieee -pc 64"
2867            coin_dbg_cflags="-g"
2868            ;;
2869        esac
2870        ;;
2871      *-ibm-*)
2872        case "$CC" in
2873          xlc* | */xlc* | mpxlc* | */mpxlc*)
2874            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2875            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2876            coin_dbg_cflags="-g"
2877          ;;
2878        esac
2879        ;;
2880      *-hp-*)
2881        coin_opt_cflags="-O"
2882        coin_add_cflags="-Ae"
2883        coin_dbg_cflags="-g"
2884        ;;
2885      *-*-solaris*)
2886        coin_opt_cflags="-xO4"
2887        coin_dbg_cflags="-g"
2888        ;;
2889      *-sgi-*)
2890        coin_opt_cflags="-O -OPT:Olimit=0"
2891        coin_dbg_cflags="-g"
2892        ;;
2893    esac
2894  fi
2895
2896  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2897    coin_dbg_cflags="-g"
2898  fi
2899
2900  if test -z "$coin_opt_cflags"; then
2901    # Try if -O option works if nothing else is set
2902    CFLAGS="-O"
2903    cat >conftest.$ac_ext <<_ACEOF
2904/* confdefs.h.  */
2905_ACEOF
2906cat confdefs.h >>conftest.$ac_ext
2907cat >>conftest.$ac_ext <<_ACEOF
2908/* end confdefs.h.  */
2909
2910int
2911main ()
2912{
2913int i=0; i++;
2914  ;
2915  return 0;
2916}
2917_ACEOF
2918rm -f conftest.$ac_objext conftest$ac_exeext
2919if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2920  (eval $ac_link) 2>conftest.er1
2921  ac_status=$?
2922  grep -v '^ *+' conftest.er1 >conftest.err
2923  rm -f conftest.er1
2924  cat conftest.err >&5
2925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926  (exit $ac_status); } &&
2927         { ac_try='test -z "$ac_c_werror_flag"
2928                         || test ! -s conftest.err'
2929  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2930  (eval $ac_try) 2>&5
2931  ac_status=$?
2932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933  (exit $ac_status); }; } &&
2934         { ac_try='test -s conftest$ac_exeext'
2935  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2936  (eval $ac_try) 2>&5
2937  ac_status=$?
2938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939  (exit $ac_status); }; }; then
2940  coin_opt_cflags="-O"
2941else
2942  echo "$as_me: failed program was:" >&5
2943sed 's/^/| /' conftest.$ac_ext >&5
2944
2945fi
2946rm -f conftest.err conftest.$ac_objext \
2947      conftest$ac_exeext conftest.$ac_ext
2948  fi
2949
2950  # if PM doesn't want the warning messages, take them out
2951  if test x"$coin_skip_warn_cflags" = xyes; then
2952    coin_warn_cflags=
2953  fi
2954
2955  if test x${DBG_CFLAGS+set} != xset; then
2956    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2957  fi
2958  if test x${OPT_CFLAGS+set} != xset; then
2959    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
2960  fi
2961
2962  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
2963  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
2964
2965  if test "$coin_debug_compile" = "true"; then
2966    CFLAGS="$DBG_CFLAGS"
2967  else
2968    CFLAGS="$OPT_CFLAGS"
2969  fi
2970else
2971  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
2972  if test x${DBG_CFLAGS+set} != xset; then
2973    DBG_CFLAGS="$CFLAGS"
2974  fi
2975  if test x${OPT_CFLAGS+set} != xset; then
2976    OPT_CFLAGS="$CFLAGS"
2977  fi
2978fi
2979
2980# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
2981
2982case "$CFLAGS" in
2983  *-mno-cygwin*)
2984    if test x${CPPFLAGS+set} != xset ; then
2985      CPPFLAGS="-mno-cygwin"
2986    else
2987      case "$CPPFLAGS" in
2988        *-mno-cygwin*)
2989          ;;
2990        *)
2991          CPPFLAGS="$CPPFLAGS -mno-cygwin"
2992          ;;
2993      esac
2994    fi ;;
2995esac
2996
2997# Try if CFLAGS works
2998save_CFLAGS="$CFLAGS"
2999cat >conftest.$ac_ext <<_ACEOF
3000/* confdefs.h.  */
3001_ACEOF
3002cat confdefs.h >>conftest.$ac_ext
3003cat >>conftest.$ac_ext <<_ACEOF
3004/* end confdefs.h.  */
3005
3006int
3007main ()
3008{
3009int i=0; i++;
3010  ;
3011  return 0;
3012}
3013_ACEOF
3014rm -f conftest.$ac_objext conftest$ac_exeext
3015if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3016  (eval $ac_link) 2>conftest.er1
3017  ac_status=$?
3018  grep -v '^ *+' conftest.er1 >conftest.err
3019  rm -f conftest.er1
3020  cat conftest.err >&5
3021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022  (exit $ac_status); } &&
3023         { ac_try='test -z "$ac_c_werror_flag"
3024                         || test ! -s conftest.err'
3025  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3026  (eval $ac_try) 2>&5
3027  ac_status=$?
3028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029  (exit $ac_status); }; } &&
3030         { ac_try='test -s conftest$ac_exeext'
3031  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3032  (eval $ac_try) 2>&5
3033  ac_status=$?
3034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035  (exit $ac_status); }; }; then
3036  :
3037else
3038  echo "$as_me: failed program was:" >&5
3039sed 's/^/| /' conftest.$ac_ext >&5
3040
3041CFLAGS=
3042fi
3043rm -f conftest.err conftest.$ac_objext \
3044      conftest$ac_exeext conftest.$ac_ext
3045if test -z "$CFLAGS"; then
3046  { 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
3047echo "$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;}
3048  CFLAGS='-O'
3049  cat >conftest.$ac_ext <<_ACEOF
3050/* confdefs.h.  */
3051_ACEOF
3052cat confdefs.h >>conftest.$ac_ext
3053cat >>conftest.$ac_ext <<_ACEOF
3054/* end confdefs.h.  */
3055
3056int
3057main ()
3058{
3059int i=0; i++;
3060  ;
3061  return 0;
3062}
3063_ACEOF
3064rm -f conftest.$ac_objext conftest$ac_exeext
3065if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3066  (eval $ac_link) 2>conftest.er1
3067  ac_status=$?
3068  grep -v '^ *+' conftest.er1 >conftest.err
3069  rm -f conftest.er1
3070  cat conftest.err >&5
3071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3072  (exit $ac_status); } &&
3073         { ac_try='test -z "$ac_c_werror_flag"
3074                         || test ! -s conftest.err'
3075  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3076  (eval $ac_try) 2>&5
3077  ac_status=$?
3078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079  (exit $ac_status); }; } &&
3080         { ac_try='test -s conftest$ac_exeext'
3081  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3082  (eval $ac_try) 2>&5
3083  ac_status=$?
3084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085  (exit $ac_status); }; }; then
3086  :
3087else
3088  echo "$as_me: failed program was:" >&5
3089sed 's/^/| /' conftest.$ac_ext >&5
3090
3091CFLAGS=
3092fi
3093rm -f conftest.err conftest.$ac_objext \
3094      conftest$ac_exeext conftest.$ac_ext
3095  if test -z "$CFLAGS"; then
3096    { 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
3097echo "$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;}
3098  fi
3099fi
3100
3101{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3102echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3103
3104
3105if test x"$MPICC" = x; then :; else
3106  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3107echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3108  CC="$MPICC"
3109fi
3110
3111# Correct ADDLIBS initialization if we are using the MS compiler
3112case "$CC" in
3113  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3114    ADDLIBS=
3115    case $build in
3116  *-mingw*)
3117    if test "${LD+set}" = set; then :; else
3118      LD=link
3119    fi
3120    ;;
3121 esac
3122 case $enable_doscompile in
3123   msvc)
3124     if test "x${LD+set}" = xset; then :; else
3125       LD=link
3126     fi
3127     ;;
3128 esac
3129
3130    ;;
3131esac
3132
3133ac_ext=c
3134ac_cpp='$CPP $CPPFLAGS'
3135ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3136ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3137ac_compiler_gnu=$ac_cv_c_compiler_gnu
3138
3139
3140
3141# Get the name of the C++ compiler and appropriate compiler options
3142
3143 #Let's try if that overcomes configuration problem with VC++ 6.0
3144
3145ac_ext=cc
3146ac_cpp='$CXXCPP $CPPFLAGS'
3147ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3148ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3149ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3150
3151
3152
3153
3154
3155
3156
3157coin_has_cxx=yes
3158
3159save_cxxflags="$CXXFLAGS"
3160# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3161case $build in
3162  *-cygwin* | *-mingw*)
3163             if test "$enable_doscompile" = msvc ; then
3164               comps="icl cl"
3165             else
3166               comps="g++ cl"
3167             fi ;;
3168  *-*-solaris*)
3169             comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3170  *-darwin*) comps="g++ c++ CC" ;;
3171          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3172esac
3173
3174# We delete the cached value, since the test might not have been
3175# performed with our choice of compilers earlier
3176$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3177# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3178ac_ext=cc
3179ac_cpp='$CXXCPP $CPPFLAGS'
3180ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3181ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3182ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3183if test -n "$ac_tool_prefix"; then
3184  for ac_prog in $CCC $comps
3185  do
3186    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3187set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3188echo "$as_me:$LINENO: checking for $ac_word" >&5
3189echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3190if test "${ac_cv_prog_CXX+set}" = set; then
3191  echo $ECHO_N "(cached) $ECHO_C" >&6
3192else
3193  if test -n "$CXX"; then
3194  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3195else
3196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3197for as_dir in $PATH
3198do
3199  IFS=$as_save_IFS
3200  test -z "$as_dir" && as_dir=.
3201  for ac_exec_ext in '' $ac_executable_extensions; do
3202  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3203    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3204    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3205    break 2
3206  fi
3207done
3208done
3209
3210fi
3211fi
3212CXX=$ac_cv_prog_CXX
3213if test -n "$CXX"; then
3214  echo "$as_me:$LINENO: result: $CXX" >&5
3215echo "${ECHO_T}$CXX" >&6
3216else
3217  echo "$as_me:$LINENO: result: no" >&5
3218echo "${ECHO_T}no" >&6
3219fi
3220
3221    test -n "$CXX" && break
3222  done
3223fi
3224if test -z "$CXX"; then
3225  ac_ct_CXX=$CXX
3226  for ac_prog in $CCC $comps
3227do
3228  # Extract the first word of "$ac_prog", so it can be a program name with args.
3229set dummy $ac_prog; ac_word=$2
3230echo "$as_me:$LINENO: checking for $ac_word" >&5
3231echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3232if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3233  echo $ECHO_N "(cached) $ECHO_C" >&6
3234else
3235  if test -n "$ac_ct_CXX"; then
3236  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3237else
3238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3239for as_dir in $PATH
3240do
3241  IFS=$as_save_IFS
3242  test -z "$as_dir" && as_dir=.
3243  for ac_exec_ext in '' $ac_executable_extensions; do
3244  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3245    ac_cv_prog_ac_ct_CXX="$ac_prog"
3246    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3247    break 2
3248  fi
3249done
3250done
3251
3252fi
3253fi
3254ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3255if test -n "$ac_ct_CXX"; then
3256  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3257echo "${ECHO_T}$ac_ct_CXX" >&6
3258else
3259  echo "$as_me:$LINENO: result: no" >&5
3260echo "${ECHO_T}no" >&6
3261fi
3262
3263  test -n "$ac_ct_CXX" && break
3264done
3265test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3266
3267  CXX=$ac_ct_CXX
3268fi
3269
3270
3271# Provide some information about the compiler.
3272echo "$as_me:$LINENO:" \
3273     "checking for C++ compiler version" >&5
3274ac_compiler=`set X $ac_compile; echo $2`
3275{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3276  (eval $ac_compiler --version </dev/null >&5) 2>&5
3277  ac_status=$?
3278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279  (exit $ac_status); }
3280{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3281  (eval $ac_compiler -v </dev/null >&5) 2>&5
3282  ac_status=$?
3283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284  (exit $ac_status); }
3285{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3286  (eval $ac_compiler -V </dev/null >&5) 2>&5
3287  ac_status=$?
3288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3289  (exit $ac_status); }
3290
3291echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3292echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3293if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3294  echo $ECHO_N "(cached) $ECHO_C" >&6
3295else
3296  cat >conftest.$ac_ext <<_ACEOF
3297/* confdefs.h.  */
3298_ACEOF
3299cat confdefs.h >>conftest.$ac_ext
3300cat >>conftest.$ac_ext <<_ACEOF
3301/* end confdefs.h.  */
3302
3303int
3304main ()
3305{
3306#ifndef __GNUC__
3307       choke me
3308#endif
3309
3310  ;
3311  return 0;
3312}
3313_ACEOF
3314rm -f conftest.$ac_objext
3315if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3316  (eval $ac_compile) 2>conftest.er1
3317  ac_status=$?
3318  grep -v '^ *+' conftest.er1 >conftest.err
3319  rm -f conftest.er1
3320  cat conftest.err >&5
3321  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322  (exit $ac_status); } &&
3323         { ac_try='test -z "$ac_cxx_werror_flag"
3324                         || test ! -s conftest.err'
3325  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3326  (eval $ac_try) 2>&5
3327  ac_status=$?
3328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3329  (exit $ac_status); }; } &&
3330         { ac_try='test -s conftest.$ac_objext'
3331  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3332  (eval $ac_try) 2>&5
3333  ac_status=$?
3334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335  (exit $ac_status); }; }; then
3336  ac_compiler_gnu=yes
3337else
3338  echo "$as_me: failed program was:" >&5
3339sed 's/^/| /' conftest.$ac_ext >&5
3340
3341ac_compiler_gnu=no
3342fi
3343rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3344ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3345
3346fi
3347echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3348echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3349GXX=`test $ac_compiler_gnu = yes && echo yes`
3350ac_test_CXXFLAGS=${CXXFLAGS+set}
3351ac_save_CXXFLAGS=$CXXFLAGS
3352CXXFLAGS="-g"
3353echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3354echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3355if test "${ac_cv_prog_cxx_g+set}" = set; then
3356  echo $ECHO_N "(cached) $ECHO_C" >&6
3357else
3358  cat >conftest.$ac_ext <<_ACEOF
3359/* confdefs.h.  */
3360_ACEOF
3361cat confdefs.h >>conftest.$ac_ext
3362cat >>conftest.$ac_ext <<_ACEOF
3363/* end confdefs.h.  */
3364
3365int
3366main ()
3367{
3368
3369  ;
3370  return 0;
3371}
3372_ACEOF
3373rm -f conftest.$ac_objext
3374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3375  (eval $ac_compile) 2>conftest.er1
3376  ac_status=$?
3377  grep -v '^ *+' conftest.er1 >conftest.err
3378  rm -f conftest.er1
3379  cat conftest.err >&5
3380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381  (exit $ac_status); } &&
3382         { ac_try='test -z "$ac_cxx_werror_flag"
3383                         || test ! -s conftest.err'
3384  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3385  (eval $ac_try) 2>&5
3386  ac_status=$?
3387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388  (exit $ac_status); }; } &&
3389         { ac_try='test -s conftest.$ac_objext'
3390  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3391  (eval $ac_try) 2>&5
3392  ac_status=$?
3393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394  (exit $ac_status); }; }; then
3395  ac_cv_prog_cxx_g=yes
3396else
3397  echo "$as_me: failed program was:" >&5
3398sed 's/^/| /' conftest.$ac_ext >&5
3399
3400ac_cv_prog_cxx_g=no
3401fi
3402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3403fi
3404echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3405echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3406if test "$ac_test_CXXFLAGS" = set; then
3407  CXXFLAGS=$ac_save_CXXFLAGS
3408elif test $ac_cv_prog_cxx_g = yes; then
3409  if test "$GXX" = yes; then
3410    CXXFLAGS="-g -O2"
3411  else
3412    CXXFLAGS="-g"
3413  fi
3414else
3415  if test "$GXX" = yes; then
3416    CXXFLAGS="-O2"
3417  else
3418    CXXFLAGS=
3419  fi
3420fi
3421for ac_declaration in \
3422   '' \
3423   'extern "C" void std::exit (int) throw (); using std::exit;' \
3424   'extern "C" void std::exit (int); using std::exit;' \
3425   'extern "C" void exit (int) throw ();' \
3426   'extern "C" void exit (int);' \
3427   'void exit (int);'
3428do
3429  cat >conftest.$ac_ext <<_ACEOF
3430/* confdefs.h.  */
3431_ACEOF
3432cat confdefs.h >>conftest.$ac_ext
3433cat >>conftest.$ac_ext <<_ACEOF
3434/* end confdefs.h.  */
3435$ac_declaration
3436#include <stdlib.h>
3437int
3438main ()
3439{
3440exit (42);
3441  ;
3442  return 0;
3443}
3444_ACEOF
3445rm -f conftest.$ac_objext
3446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3447  (eval $ac_compile) 2>conftest.er1
3448  ac_status=$?
3449  grep -v '^ *+' conftest.er1 >conftest.err
3450  rm -f conftest.er1
3451  cat conftest.err >&5
3452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453  (exit $ac_status); } &&
3454         { ac_try='test -z "$ac_cxx_werror_flag"
3455                         || test ! -s conftest.err'
3456  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3457  (eval $ac_try) 2>&5
3458  ac_status=$?
3459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460  (exit $ac_status); }; } &&
3461         { ac_try='test -s conftest.$ac_objext'
3462  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3463  (eval $ac_try) 2>&5
3464  ac_status=$?
3465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466  (exit $ac_status); }; }; then
3467  :
3468else
3469  echo "$as_me: failed program was:" >&5
3470sed 's/^/| /' conftest.$ac_ext >&5
3471
3472continue
3473fi
3474rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3475  cat >conftest.$ac_ext <<_ACEOF
3476/* confdefs.h.  */
3477_ACEOF
3478cat confdefs.h >>conftest.$ac_ext
3479cat >>conftest.$ac_ext <<_ACEOF
3480/* end confdefs.h.  */
3481$ac_declaration
3482int
3483main ()
3484{
3485exit (42);
3486  ;
3487  return 0;
3488}
3489_ACEOF
3490rm -f conftest.$ac_objext
3491if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3492  (eval $ac_compile) 2>conftest.er1
3493  ac_status=$?
3494  grep -v '^ *+' conftest.er1 >conftest.err
3495  rm -f conftest.er1
3496  cat conftest.err >&5
3497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498  (exit $ac_status); } &&
3499         { ac_try='test -z "$ac_cxx_werror_flag"
3500                         || test ! -s conftest.err'
3501  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3502  (eval $ac_try) 2>&5
3503  ac_status=$?
3504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505  (exit $ac_status); }; } &&
3506         { ac_try='test -s conftest.$ac_objext'
3507  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3508  (eval $ac_try) 2>&5
3509  ac_status=$?
3510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511  (exit $ac_status); }; }; then
3512  break
3513else
3514  echo "$as_me: failed program was:" >&5
3515sed 's/^/| /' conftest.$ac_ext >&5
3516
3517fi
3518rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3519done
3520rm -f conftest*
3521if test -n "$ac_declaration"; then
3522  echo '#ifdef __cplusplus' >>confdefs.h
3523  echo $ac_declaration      >>confdefs.h
3524  echo '#endif'             >>confdefs.h
3525fi
3526
3527ac_ext=cc
3528ac_cpp='$CXXCPP $CPPFLAGS'
3529ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3530ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3531ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3532
3533
3534#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3535#thus, we test here whether $CXX is actually working
3536ac_ext=cc
3537ac_cpp='$CXXCPP $CPPFLAGS'
3538ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3539ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3540ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3541
3542echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3543echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3544cat >conftest.$ac_ext <<_ACEOF
3545/* confdefs.h.  */
3546_ACEOF
3547cat confdefs.h >>conftest.$ac_ext
3548cat >>conftest.$ac_ext <<_ACEOF
3549/* end confdefs.h.  */
3550
3551int
3552main ()
3553{
3554int i=0;
3555  ;
3556  return 0;
3557}
3558_ACEOF
3559rm -f conftest.$ac_objext
3560if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3561  (eval $ac_compile) 2>conftest.er1
3562  ac_status=$?
3563  grep -v '^ *+' conftest.er1 >conftest.err
3564  rm -f conftest.er1
3565  cat conftest.err >&5
3566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567  (exit $ac_status); } &&
3568         { ac_try='test -z "$ac_cxx_werror_flag"
3569                         || test ! -s conftest.err'
3570  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3571  (eval $ac_try) 2>&5
3572  ac_status=$?
3573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574  (exit $ac_status); }; } &&
3575         { ac_try='test -s conftest.$ac_objext'
3576  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3577  (eval $ac_try) 2>&5
3578  ac_status=$?
3579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580  (exit $ac_status); }; }; then
3581  echo "$as_me:$LINENO: result: yes" >&5
3582echo "${ECHO_T}yes" >&6
3583else
3584  echo "$as_me: failed program was:" >&5
3585sed 's/^/| /' conftest.$ac_ext >&5
3586
3587echo "$as_me:$LINENO: result: no" >&5
3588echo "${ECHO_T}no" >&6
3589   { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3590echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3591   { (exit 1); exit 1; }; }
3592
3593fi
3594rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3595ac_ext=cc
3596ac_cpp='$CXXCPP $CPPFLAGS'
3597ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3598ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3599ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3600
3601
3602# It seems that we need to cleanup something here for the Windows
3603case "$CXX" in
3604  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3605    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3606    mv confdefs.hh confdefs.h
3607    ;;
3608esac
3609
3610# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3611case "$CXX" in
3612  cl* | */cl* | CL* | */CL* )
3613    if test "$ac_cv_prog_cxx_g" = yes ; then
3614      ac_cv_prog_cxx_g=no
3615      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3616echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3617    fi ;;
3618esac
3619CXXFLAGS="$save_cxxflags"
3620
3621# Check if a project specific CXXFLAGS variable has been set
3622if test x$COIN_PRJCT != x; then
3623  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3624  if test x$coin_tmp = xset; then
3625    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3626  fi
3627fi
3628
3629if test x"$CXXFLAGS" = x; then
3630
3631# ToDo decide whether we want -DNDEBUG for optimization
3632  coin_add_cxxflags=
3633  coin_opt_cxxflags=
3634  coin_dbg_cxxflags=
3635  coin_warn_cxxflags=
3636
3637  if test "$GXX" = "yes"; then
3638    case "$CXX" in
3639      icpc* | */icpc*)
3640        ;;
3641      *)
3642# ToDo decide about unroll-loops
3643        coin_opt_cxxflags="-O3 -fomit-frame-pointer"
3644        coin_add_cxxflags="-pipe"
3645        coin_dbg_cxxflags="-g"
3646        coin_warn_cxxflags="-Wimplicit -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas"
3647        case $build in
3648          *-darwin*)
3649            ;;
3650          *)
3651            coin_warn_cxxflags="-pedantic-errors $coin_warn_cxxflags"
3652            ;;
3653        esac
3654
3655        case $enable_doscompile in
3656          mingw)
3657            CXXFLAGS="-mno-cygwin"
3658            cat >conftest.$ac_ext <<_ACEOF
3659/* confdefs.h.  */
3660_ACEOF
3661cat confdefs.h >>conftest.$ac_ext
3662cat >>conftest.$ac_ext <<_ACEOF
3663/* end confdefs.h.  */
3664
3665int
3666main ()
3667{
3668int i=0; i++;
3669  ;
3670  return 0;
3671}
3672_ACEOF
3673rm -f conftest.$ac_objext conftest$ac_exeext
3674if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3675  (eval $ac_link) 2>conftest.er1
3676  ac_status=$?
3677  grep -v '^ *+' conftest.er1 >conftest.err
3678  rm -f conftest.er1
3679  cat conftest.err >&5
3680  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681  (exit $ac_status); } &&
3682         { ac_try='test -z "$ac_cxx_werror_flag"
3683                         || test ! -s conftest.err'
3684  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3685  (eval $ac_try) 2>&5
3686  ac_status=$?
3687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688  (exit $ac_status); }; } &&
3689         { ac_try='test -s conftest$ac_exeext'
3690  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3691  (eval $ac_try) 2>&5
3692  ac_status=$?
3693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694  (exit $ac_status); }; }; then
3695  coin_add_cxxflags="-mno-cygwin $coin_add_cxxflags"
3696else
3697  echo "$as_me: failed program was:" >&5
3698sed 's/^/| /' conftest.$ac_ext >&5
3699
3700fi
3701rm -f conftest.err conftest.$ac_objext \
3702      conftest$ac_exeext conftest.$ac_ext
3703            CXXFLAGS=
3704          ;;
3705        esac
3706    esac
3707  fi
3708
3709# Note that we do not need to cover GCC in the following tests.
3710
3711  if test -z "$coin_opt_cxxflags"; then
3712    case $build in
3713      *-cygwin* | *-mingw*)
3714        case "$CXX" in
3715          cl* | */cl* | CL* | */CL*)
3716            # The MT and MTd options are mutually exclusive
3717            coin_opt_cxxflags='-MT -O2'
3718            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3719            coin_dbg_cxxflags='-MTd'
3720            ;;
3721          icl* | */icl* | ICL* | */ICL*)
3722            # The MT and MTd options are mutually exclusive
3723            coin_opt_cxxflags='-MT -Ox'
3724            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3725            coin_dbg_cxxflags='-MTd -debug'
3726            ;;
3727        esac
3728        ;;
3729      *-linux-*)
3730        case "$CXX" in
3731          icpc* | */icpc*)
3732            coin_opt_cxxflags="-O3 -ip -mp1"
3733            coin_add_cxxflags=""
3734            coin_dbg_cxxflags="-g"
3735            # Check if -i_dynamic is necessary (for new glibc library)
3736            CXXFLAGS=
3737            cat >conftest.$ac_ext <<_ACEOF
3738/* confdefs.h.  */
3739_ACEOF
3740cat confdefs.h >>conftest.$ac_ext
3741cat >>conftest.$ac_ext <<_ACEOF
3742/* end confdefs.h.  */
3743
3744int
3745main ()
3746{
3747int i=0; i++;
3748  ;
3749  return 0;
3750}
3751_ACEOF
3752rm -f conftest.$ac_objext conftest$ac_exeext
3753if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3754  (eval $ac_link) 2>conftest.er1
3755  ac_status=$?
3756  grep -v '^ *+' conftest.er1 >conftest.err
3757  rm -f conftest.er1
3758  cat conftest.err >&5
3759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3760  (exit $ac_status); } &&
3761         { ac_try='test -z "$ac_cxx_werror_flag"
3762                         || test ! -s conftest.err'
3763  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3764  (eval $ac_try) 2>&5
3765  ac_status=$?
3766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3767  (exit $ac_status); }; } &&
3768         { ac_try='test -s conftest$ac_exeext'
3769  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3770  (eval $ac_try) 2>&5
3771  ac_status=$?
3772  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3773  (exit $ac_status); }; }; then
3774  :
3775else
3776  echo "$as_me: failed program was:" >&5
3777sed 's/^/| /' conftest.$ac_ext >&5
3778
3779coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3780fi
3781rm -f conftest.err conftest.$ac_objext \
3782      conftest$ac_exeext conftest.$ac_ext
3783            ;;
3784          pgCC* | */pgCC*)
3785            coin_opt_cxxflags="-fast"
3786            coin_add_cxxflags="-Kieee -pc 64"
3787            coin_dbg_cxxflags="-g"
3788            ;;
3789        esac
3790        ;;
3791      *-ibm-*)
3792        case "$CXX" in
3793          xlC* | */xlC* | mpxlC* | */mpxlC*)
3794            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3795            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3796            coin_dbg_cxxflags="-g"
3797            ;;
3798        esac
3799        ;;
3800      *-hp-*)
3801        case "$CXX" in
3802          aCC* | */aCC* )
3803            coin_opt_cxxflags="-O"
3804            coin_add_cxxflags="-AA"
3805            coin_dbg_cxxflags="-g"
3806            ;;
3807        esac
3808        ;;
3809      *-*-solaris*)
3810          coin_opt_cxxflags="-O4"
3811          coin_dbg_cxxflags="-g"
3812        ;;
3813    esac
3814  fi
3815
3816# Generic flag settings. If these don't work, add a case above.
3817
3818  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3819    coin_dbg_cxxflags="-g"
3820  fi
3821
3822  if test -z "$coin_opt_cxxflags"; then
3823    # Try if -O option works if nothing else is set
3824    CXXFLAGS=-O
3825    cat >conftest.$ac_ext <<_ACEOF
3826/* confdefs.h.  */
3827_ACEOF
3828cat confdefs.h >>conftest.$ac_ext
3829cat >>conftest.$ac_ext <<_ACEOF
3830/* end confdefs.h.  */
3831
3832int
3833main ()
3834{
3835int i=0; i++;
3836  ;
3837  return 0;
3838}
3839_ACEOF
3840rm -f conftest.$ac_objext conftest$ac_exeext
3841if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3842  (eval $ac_link) 2>conftest.er1
3843  ac_status=$?
3844  grep -v '^ *+' conftest.er1 >conftest.err
3845  rm -f conftest.er1
3846  cat conftest.err >&5
3847  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848  (exit $ac_status); } &&
3849         { ac_try='test -z "$ac_cxx_werror_flag"
3850                         || test ! -s conftest.err'
3851  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3852  (eval $ac_try) 2>&5
3853  ac_status=$?
3854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855  (exit $ac_status); }; } &&
3856         { ac_try='test -s conftest$ac_exeext'
3857  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3858  (eval $ac_try) 2>&5
3859  ac_status=$?
3860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3861  (exit $ac_status); }; }; then
3862  coin_opt_cxxflags="-O"
3863else
3864  echo "$as_me: failed program was:" >&5
3865sed 's/^/| /' conftest.$ac_ext >&5
3866
3867fi
3868rm -f conftest.err conftest.$ac_objext \
3869      conftest$ac_exeext conftest.$ac_ext
3870  fi
3871
3872  # if PM doesn't want the warning messages, take them out
3873  if test x"$coin_skip_warn_cxxflags" = xyes; then
3874    coin_warn_cxxflags=
3875  fi
3876
3877# Do final setup of flags based on values determined above.
3878
3879  if test x${DBG_CXXFLAGS+set} != xset; then
3880    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3881  fi
3882  if test x${OPT_CXXFLAGS+set} != xset; then
3883    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
3884  fi
3885
3886  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3887  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3888
3889  if test "$coin_debug_compile" = "true"; then
3890    CXXFLAGS="$DBG_CXXFLAGS"
3891  else
3892    CXXFLAGS="$OPT_CXXFLAGS"
3893  fi
3894
3895# Handle the case where CXXFLAGS was set externally.
3896else
3897  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3898  if test x${DBG_CXXFLAGS+set} != xset; then
3899    DBG_CXXFLAGS="$CXXFLAGS"
3900  fi
3901  if test x${OPT_CXXFLAGS+set} != xset; then
3902    OPT_CXXFLAGS="$CXXFLAGS"
3903  fi
3904fi
3905
3906# If CXXFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3907
3908case "$CXXFLAGS" in
3909  *-mno-cygwin*)
3910    if test x${CPPFLAGS+set} != xset ; then
3911      CPPFLAGS="-mno-cygwin"
3912    else
3913      case "$CPPFLAGS" in
3914        *-mno-cygwin*)
3915          ;;
3916        *)
3917          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3918          ;;
3919      esac
3920    fi ;;
3921esac
3922
3923# Try if CXXFLAGS works
3924save_CXXFLAGS="$CXXFLAGS"
3925cat >conftest.$ac_ext <<_ACEOF
3926/* confdefs.h.  */
3927_ACEOF
3928cat confdefs.h >>conftest.$ac_ext
3929cat >>conftest.$ac_ext <<_ACEOF
3930/* end confdefs.h.  */
3931
3932int
3933main ()
3934{
3935int i=0; i++;
3936  ;
3937  return 0;
3938}
3939_ACEOF
3940rm -f conftest.$ac_objext conftest$ac_exeext
3941if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3942  (eval $ac_link) 2>conftest.er1
3943  ac_status=$?
3944  grep -v '^ *+' conftest.er1 >conftest.err
3945  rm -f conftest.er1
3946  cat conftest.err >&5
3947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948  (exit $ac_status); } &&
3949         { ac_try='test -z "$ac_cxx_werror_flag"
3950                         || test ! -s conftest.err'
3951  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3952  (eval $ac_try) 2>&5
3953  ac_status=$?
3954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955  (exit $ac_status); }; } &&
3956         { ac_try='test -s conftest$ac_exeext'
3957  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3958  (eval $ac_try) 2>&5
3959  ac_status=$?
3960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961  (exit $ac_status); }; }; then
3962  :
3963else
3964  echo "$as_me: failed program was:" >&5
3965sed 's/^/| /' conftest.$ac_ext >&5
3966
3967CXXFLAGS=
3968fi
3969rm -f conftest.err conftest.$ac_objext \
3970      conftest$ac_exeext conftest.$ac_ext
3971if test -z "$CXXFLAGS"; then
3972  { 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
3973echo "$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;}
3974  CXXFLAGS='-O'
3975  cat >conftest.$ac_ext <<_ACEOF
3976/* confdefs.h.  */
3977_ACEOF
3978cat confdefs.h >>conftest.$ac_ext
3979cat >>conftest.$ac_ext <<_ACEOF
3980/* end confdefs.h.  */
3981
3982int
3983main ()
3984{
3985int i=0; i++;
3986  ;
3987  return 0;
3988}
3989_ACEOF
3990rm -f conftest.$ac_objext conftest$ac_exeext
3991if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3992  (eval $ac_link) 2>conftest.er1
3993  ac_status=$?
3994  grep -v '^ *+' conftest.er1 >conftest.err
3995  rm -f conftest.er1
3996  cat conftest.err >&5
3997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998  (exit $ac_status); } &&
3999         { ac_try='test -z "$ac_cxx_werror_flag"
4000                         || test ! -s conftest.err'
4001  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4002  (eval $ac_try) 2>&5
4003  ac_status=$?
4004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005  (exit $ac_status); }; } &&
4006         { ac_try='test -s conftest$ac_exeext'
4007  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4008  (eval $ac_try) 2>&5
4009  ac_status=$?
4010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011  (exit $ac_status); }; }; then
4012  :
4013else
4014  echo "$as_me: failed program was:" >&5
4015sed 's/^/| /' conftest.$ac_ext >&5
4016
4017CXXFLAGS=
4018fi
4019rm -f conftest.err conftest.$ac_objext \
4020      conftest$ac_exeext conftest.$ac_ext
4021  if test -z "$CXXFLAGS"; then
4022    { 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
4023echo "$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;}
4024  fi
4025fi
4026
4027{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
4028echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
4029
4030
4031if test x"$MPICXX" = x; then :; else
4032  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
4033echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
4034  CXX="$MPICXX"
4035fi
4036
4037case "$CXX" in
4038  cl* | */cl* | CL* | */CL* )
4039    case $build in
4040  *-mingw*)
4041    if test "${LD+set}" = set; then :; else
4042      LD=link
4043    fi
4044    ;;
4045 esac
4046 case $enable_doscompile in
4047   msvc)
4048     if test "x${LD+set}" = xset; then :; else
4049       LD=link
4050     fi
4051     ;;
4052 esac
4053
4054    ;;
4055esac
4056
4057ac_ext=c
4058ac_cpp='$CPP $CPPFLAGS'
4059ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4060ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4061ac_compiler_gnu=$ac_cv_c_compiler_gnu
4062
4063
4064
4065# Get the name of the Fortran compiler and appropriate compiler options
4066case $build in
4067  *-cygwin* | *-mingw*)
4068     if test "$enable_doscompile" = msvc ; then
4069       coin_f77_comps="ifort fl32 compile_f2c"
4070     else
4071       coin_f77_comps="gfortran g77 ifort fl32 compile_f2c"
4072     fi ;;
4073  *-*-solaris*)
4074     coin_f77_comps="f95 f90 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
4075  *) coin_f77_comps="xlf_r fort77 gfortran f77 g77 pgf90 pgf77 ifort ifc frt af77" ;;
4076 esac
4077
4078
4079
4080
4081
4082
4083ac_ext=f
4084ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4085ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4086ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4087
4088
4089
4090
4091
4092
4093coin_has_f77=yes
4094
4095save_fflags="$FFLAGS"
4096
4097# We delete the cached value, since the test might not have been
4098# performed with our choice of compilers earlier
4099$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
4100
4101# This is a real belt-and-suspenders approach. AC_COIN_FIND_F77 will use
4102# coin_f77_comps to see if there's a program that matches one of the names.
4103# If there's no such program, F77 = unavailable. If we match the name,
4104# feed AC_PROG_F77 the same search list, just to be sure it's a functioning
4105# compiler.
4106# AC_MSG_NOTICE([Fortran compiler candidates: $coin_f77_comps])
4107
4108
4109{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
4110echo "$as_me: Trying to determine Fortran compiler name" >&6;}
4111for ac_prog in $coin_f77_comps
4112do
4113  # Extract the first word of "$ac_prog", so it can be a program name with args.
4114set dummy $ac_prog; ac_word=$2
4115echo "$as_me:$LINENO: checking for $ac_word" >&5
4116echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4117if test "${ac_cv_prog_F77+set}" = set; then
4118  echo $ECHO_N "(cached) $ECHO_C" >&6
4119else
4120  if test -n "$F77"; then
4121  ac_cv_prog_F77="$F77" # Let the user override the test.
4122else
4123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4124for as_dir in $PATH
4125do
4126  IFS=$as_save_IFS
4127  test -z "$as_dir" && as_dir=.
4128  for ac_exec_ext in '' $ac_executable_extensions; do
4129  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4130    ac_cv_prog_F77="$ac_prog"
4131    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4132    break 2
4133  fi
4134done
4135done
4136
4137fi
4138fi
4139F77=$ac_cv_prog_F77
4140if test -n "$F77"; then
4141  echo "$as_me:$LINENO: result: $F77" >&5
4142echo "${ECHO_T}$F77" >&6
4143else
4144  echo "$as_me:$LINENO: result: no" >&5
4145echo "${ECHO_T}no" >&6
4146fi
4147
4148  test -n "$F77" && break
4149done
4150test -n "$F77" || F77="unavailable"
4151
4152
4153if test "$F77" != "unavailable" ; then
4154  ac_ext=f
4155ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4156ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4157ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4158if test -n "$ac_tool_prefix"; then
4159  for ac_prog in $coin_f77_comps
4160  do
4161    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4162set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4163echo "$as_me:$LINENO: checking for $ac_word" >&5
4164echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4165if test "${ac_cv_prog_F77+set}" = set; then
4166  echo $ECHO_N "(cached) $ECHO_C" >&6
4167else
4168  if test -n "$F77"; then
4169  ac_cv_prog_F77="$F77" # Let the user override the test.
4170else
4171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4172for as_dir in $PATH
4173do
4174  IFS=$as_save_IFS
4175  test -z "$as_dir" && as_dir=.
4176  for ac_exec_ext in '' $ac_executable_extensions; do
4177  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4178    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4179    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4180    break 2
4181  fi
4182done
4183done
4184
4185fi
4186fi
4187F77=$ac_cv_prog_F77
4188if test -n "$F77"; then
4189  echo "$as_me:$LINENO: result: $F77" >&5
4190echo "${ECHO_T}$F77" >&6
4191else
4192  echo "$as_me:$LINENO: result: no" >&5
4193echo "${ECHO_T}no" >&6
4194fi
4195
4196    test -n "$F77" && break
4197  done
4198fi
4199if test -z "$F77"; then
4200  ac_ct_F77=$F77
4201  for ac_prog in $coin_f77_comps
4202do
4203  # Extract the first word of "$ac_prog", so it can be a program name with args.
4204set dummy $ac_prog; ac_word=$2
4205echo "$as_me:$LINENO: checking for $ac_word" >&5
4206echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4207if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4208  echo $ECHO_N "(cached) $ECHO_C" >&6
4209else
4210  if test -n "$ac_ct_F77"; then
4211  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4212else
4213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4214for as_dir in $PATH
4215do
4216  IFS=$as_save_IFS
4217  test -z "$as_dir" && as_dir=.
4218  for ac_exec_ext in '' $ac_executable_extensions; do
4219  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4220    ac_cv_prog_ac_ct_F77="$ac_prog"
4221    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4222    break 2
4223  fi
4224done
4225done
4226
4227fi
4228fi
4229ac_ct_F77=$ac_cv_prog_ac_ct_F77
4230if test -n "$ac_ct_F77"; then
4231  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4232echo "${ECHO_T}$ac_ct_F77" >&6
4233else
4234  echo "$as_me:$LINENO: result: no" >&5
4235echo "${ECHO_T}no" >&6
4236fi
4237
4238  test -n "$ac_ct_F77" && break
4239done
4240
4241  F77=$ac_ct_F77
4242fi
4243
4244
4245# Provide some information about the compiler.
4246echo "$as_me:4246:" \
4247     "checking for Fortran 77 compiler version" >&5
4248ac_compiler=`set X $ac_compile; echo $2`
4249{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4250  (eval $ac_compiler --version </dev/null >&5) 2>&5
4251  ac_status=$?
4252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253  (exit $ac_status); }
4254{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4255  (eval $ac_compiler -v </dev/null >&5) 2>&5
4256  ac_status=$?
4257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258  (exit $ac_status); }
4259{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4260  (eval $ac_compiler -V </dev/null >&5) 2>&5
4261  ac_status=$?
4262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263  (exit $ac_status); }
4264rm -f a.out
4265
4266# If we don't use `.F' as extension, the preprocessor is not run on the
4267# input file.  (Note that this only needs to work for GNU compilers.)
4268ac_save_ext=$ac_ext
4269ac_ext=F
4270echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4271echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4272if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4273  echo $ECHO_N "(cached) $ECHO_C" >&6
4274else
4275  cat >conftest.$ac_ext <<_ACEOF
4276      program main
4277#ifndef __GNUC__
4278       choke me
4279#endif
4280
4281      end
4282_ACEOF
4283rm -f conftest.$ac_objext
4284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4285  (eval $ac_compile) 2>conftest.er1
4286  ac_status=$?
4287  grep -v '^ *+' conftest.er1 >conftest.err
4288  rm -f conftest.er1
4289  cat conftest.err >&5
4290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291  (exit $ac_status); } &&
4292         { ac_try='test -z "$ac_f77_werror_flag"
4293                         || test ! -s conftest.err'
4294  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4295  (eval $ac_try) 2>&5
4296  ac_status=$?
4297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298  (exit $ac_status); }; } &&
4299         { ac_try='test -s conftest.$ac_objext'
4300  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4301  (eval $ac_try) 2>&5
4302  ac_status=$?
4303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304  (exit $ac_status); }; }; then
4305  ac_compiler_gnu=yes
4306else
4307  echo "$as_me: failed program was:" >&5
4308sed 's/^/| /' conftest.$ac_ext >&5
4309
4310ac_compiler_gnu=no
4311fi
4312rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4313ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4314
4315fi
4316echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4317echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4318ac_ext=$ac_save_ext
4319ac_test_FFLAGS=${FFLAGS+set}
4320ac_save_FFLAGS=$FFLAGS
4321FFLAGS=
4322echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4323echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4324if test "${ac_cv_prog_f77_g+set}" = set; then
4325  echo $ECHO_N "(cached) $ECHO_C" >&6
4326else
4327  FFLAGS=-g
4328cat >conftest.$ac_ext <<_ACEOF
4329      program main
4330
4331      end
4332_ACEOF
4333rm -f conftest.$ac_objext
4334if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4335  (eval $ac_compile) 2>conftest.er1
4336  ac_status=$?
4337  grep -v '^ *+' conftest.er1 >conftest.err
4338  rm -f conftest.er1
4339  cat conftest.err >&5
4340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341  (exit $ac_status); } &&
4342         { ac_try='test -z "$ac_f77_werror_flag"
4343                         || test ! -s conftest.err'
4344  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4345  (eval $ac_try) 2>&5
4346  ac_status=$?
4347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348  (exit $ac_status); }; } &&
4349         { ac_try='test -s conftest.$ac_objext'
4350  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4351  (eval $ac_try) 2>&5
4352  ac_status=$?
4353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354  (exit $ac_status); }; }; then
4355  ac_cv_prog_f77_g=yes
4356else
4357  echo "$as_me: failed program was:" >&5
4358sed 's/^/| /' conftest.$ac_ext >&5
4359
4360ac_cv_prog_f77_g=no
4361fi
4362rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4363
4364fi
4365echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4366echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4367if test "$ac_test_FFLAGS" = set; then
4368  FFLAGS=$ac_save_FFLAGS
4369elif test $ac_cv_prog_f77_g = yes; then
4370  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4371    FFLAGS="-g -O2"
4372  else
4373    FFLAGS="-g"
4374  fi
4375else
4376  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4377    FFLAGS="-O2"
4378  else
4379    FFLAGS=
4380  fi
4381fi
4382
4383G77=`test $ac_compiler_gnu = yes && echo yes`
4384ac_ext=f
4385ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4386ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4387ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4388
4389else
4390  { echo "$as_me:$LINENO: WARNING: Failed to find a Fortran compiler!" >&5
4391echo "$as_me: WARNING: Failed to find a Fortran compiler!" >&2;}
4392fi
4393
4394FFLAGS="$save_fflags"
4395
4396# Check if a project specific FFLAGS variable has been set
4397if test x$COIN_PRJCT != x; then
4398  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
4399  if test x$coin_tmp = xset; then
4400    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
4401  fi
4402fi
4403
4404if test "$F77" != "unavailable" && test x"$FFLAGS" = x ; then
4405
4406  coin_add_fflags=
4407  coin_opt_fflags=
4408  coin_dbg_fflags=
4409  coin_warn_fflags=
4410
4411  if test "$G77" = "yes"; then
4412    coin_opt_fflags="-O3 -fomit-frame-pointer"
4413    coin_add_fflags="-pipe"
4414    coin_dbg_fflags="-g"
4415    case $enable_doscompile in
4416      mingw)
4417        FFLAGS="-mno-cygwin"
4418        cat >conftest.$ac_ext <<_ACEOF
4419      program main
4420      write(*,*) 'Hello world'
4421      end
4422_ACEOF
4423rm -f conftest.$ac_objext conftest$ac_exeext
4424if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4425  (eval $ac_link) 2>conftest.er1
4426  ac_status=$?
4427  grep -v '^ *+' conftest.er1 >conftest.err
4428  rm -f conftest.er1
4429  cat conftest.err >&5
4430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4431  (exit $ac_status); } &&
4432         { ac_try='test -z "$ac_f77_werror_flag"
4433                         || test ! -s conftest.err'
4434  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4435  (eval $ac_try) 2>&5
4436  ac_status=$?
4437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4438  (exit $ac_status); }; } &&
4439         { ac_try='test -s conftest$ac_exeext'
4440  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4441  (eval $ac_try) 2>&5
4442  ac_status=$?
4443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4444  (exit $ac_status); }; }; then
4445  coin_add_fflags="-mno-cygwin $coin_add_fflags"
4446else
4447  echo "$as_me: failed program was:" >&5
4448sed 's/^/| /' conftest.$ac_ext >&5
4449
4450fi
4451rm -f conftest.err conftest.$ac_objext \
4452      conftest$ac_exeext conftest.$ac_ext
4453        FFLAGS=
4454      ;;
4455    esac
4456  else
4457    case $build in
4458      *-cygwin* | *-mingw*)
4459        case $F77 in
4460          ifort* | */ifort* | IFORT* | */IFORT* )
4461            coin_opt_fflags='-MT -O3'
4462            coin_add_fflags='-fpp -nologo'
4463            coin_dbg_fflags='-MTd -debug'
4464          ;;
4465          compile_f2c*)
4466            coin_opt_fflags='-MT -O2'
4467            coin_add_fflags='-nologo -wd4996'
4468            coin_dbg_fflags='-MTd'
4469          ;;
4470        esac
4471        ;;
4472      *-linux-*)
4473        case $F77 in
4474          ifc* | */ifc* | ifort* | */ifort*)
4475            coin_opt_fflags="-O3 -ip"
4476            coin_add_fflags="-cm -w90 -w95"
4477            coin_dbg_fflags="-g -CA -CB -CS"
4478            # Check if -i_dynamic is necessary (for new glibc library)
4479            FFLAGS=
4480            cat >conftest.$ac_ext <<_ACEOF
4481      program main
4482      write(*,*) 'Hello world'
4483      end
4484_ACEOF
4485rm -f conftest.$ac_objext conftest$ac_exeext
4486if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4487  (eval $ac_link) 2>conftest.er1
4488  ac_status=$?
4489  grep -v '^ *+' conftest.er1 >conftest.err
4490  rm -f conftest.er1
4491  cat conftest.err >&5
4492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493  (exit $ac_status); } &&
4494         { ac_try='test -z "$ac_f77_werror_flag"
4495                         || test ! -s conftest.err'
4496  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4497  (eval $ac_try) 2>&5
4498  ac_status=$?
4499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500  (exit $ac_status); }; } &&
4501         { ac_try='test -s conftest$ac_exeext'
4502  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4503  (eval $ac_try) 2>&5
4504  ac_status=$?
4505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4506  (exit $ac_status); }; }; then
4507  :
4508else
4509  echo "$as_me: failed program was:" >&5
4510sed 's/^/| /' conftest.$ac_ext >&5
4511
4512coin_add_fflags="-i_dynamic $coin_add_fflags"
4513fi
4514rm -f conftest.err conftest.$ac_objext \
4515      conftest$ac_exeext conftest.$ac_ext
4516            ;;
4517          pgf77* | */pgf77* | pgf90* | */pgf90*)
4518            coin_opt_fflags="-fast"
4519            coin_add_fflags="-Kieee -pc 64"
4520            coin_dbg_fflags="-g"
4521          ;;
4522        esac
4523        ;;
4524      *-ibm-*)
4525        case "$F77" in
4526          xlf* | */xlf* | mpxlf* | */mpxlf* )
4527            coin_opt_fflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
4528            coin_add_fflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
4529            coin_dbg_fflags="-g -C"
4530            ;;
4531        esac
4532        ;;
4533      *-hp-*)
4534        coin_opt_fflags="+O3"
4535        coin_add_fflags="+U77"
4536        coin_dbg_fflags="-C -g"
4537        ;;
4538      *-*-solaris*)
4539        coin_opt_fflags="-O4"
4540        coin_dbg_fflags="-g"
4541        ;;
4542      *-sgi-*)
4543        coin_opt_fflags="-O5 -OPT:Olimit=0"
4544        coin_dbg_fflags="-g"
4545        ;;
4546    esac
4547  fi
4548
4549  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
4550    coin_dbg_fflags="-g"
4551  fi
4552
4553  if test -z "$coin_opt_fflags"; then
4554    # Try if -O option works if nothing else is set
4555    FFLAGS=-O
4556    cat >conftest.$ac_ext <<_ACEOF
4557      program main
4558      integer i
4559      end
4560_ACEOF
4561rm -f conftest.$ac_objext conftest$ac_exeext
4562if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4563  (eval $ac_link) 2>conftest.er1
4564  ac_status=$?
4565  grep -v '^ *+' conftest.er1 >conftest.err
4566  rm -f conftest.er1
4567  cat conftest.err >&5
4568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569  (exit $ac_status); } &&
4570         { ac_try='test -z "$ac_f77_werror_flag"
4571                         || test ! -s conftest.err'
4572  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4573  (eval $ac_try) 2>&5
4574  ac_status=$?
4575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576  (exit $ac_status); }; } &&
4577         { ac_try='test -s conftest$ac_exeext'
4578  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4579  (eval $ac_try) 2>&5
4580  ac_status=$?
4581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582  (exit $ac_status); }; }; then
4583  coin_opt_fflags="-O"
4584else
4585  echo "$as_me: failed program was:" >&5
4586sed 's/^/| /' conftest.$ac_ext >&5
4587
4588fi
4589rm -f conftest.err conftest.$ac_objext \
4590      conftest$ac_exeext conftest.$ac_ext
4591  fi
4592
4593  # if PM doesn't want the warning messages, take them out
4594  if test x"$coin_skip_warn_fflags" = xyes; then
4595    coin_warn_fflags=
4596  fi
4597
4598  if test x${DBG_FFLAGS+set} != xset; then
4599    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
4600  fi
4601  if test x${OPT_FFLAGS+set} != xset; then
4602    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
4603  fi
4604
4605  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
4606  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
4607
4608  if test "$coin_debug_compile" = "true"; then
4609    FFLAGS="$DBG_FFLAGS"
4610  else
4611    FFLAGS="$OPT_FFLAGS"
4612  fi
4613else
4614  FFLAGS="$FFLAGS $ADD_FFLAGS"
4615  if test x${DBG_FFLAGS+set} != xset; then
4616    DBG_FFLAGS="$FFLAGS"
4617  fi
4618  if test x${OPT_FFLAGS+set} != xset; then
4619    OPT_FFLAGS="$FFLAGS"
4620  fi
4621fi
4622
4623# If FFLAGS contains -mno-cygwin, CPPFLAGS must have it.
4624case "$FFLAGS" in
4625  *-mno-cygwin*)
4626    if test x${CPPFLAGS+set} != xset ; then
4627      CPPFLAGS="-mno-cygwin"
4628    else
4629      case "$CPPFLAGS" in
4630        *-mno-cygwin*)
4631          ;;
4632        *)
4633          CPPFLAGS="$CPPFLAGS -mno-cygwin"
4634          ;;
4635      esac
4636    fi ;;
4637esac
4638
4639# Try if FFLAGS works
4640if test "$F77" != "unavailable" ; then
4641  cat >conftest.$ac_ext <<_ACEOF
4642      program main
4643      integer i
4644      end
4645_ACEOF
4646rm -f conftest.$ac_objext conftest$ac_exeext
4647if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4648  (eval $ac_link) 2>conftest.er1
4649  ac_status=$?
4650  grep -v '^ *+' conftest.er1 >conftest.err
4651  rm -f conftest.er1
4652  cat conftest.err >&5
4653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654  (exit $ac_status); } &&
4655         { ac_try='test -z "$ac_f77_werror_flag"
4656                         || test ! -s conftest.err'
4657  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4658  (eval $ac_try) 2>&5
4659  ac_status=$?
4660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661  (exit $ac_status); }; } &&
4662         { ac_try='test -s conftest$ac_exeext'
4663  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4664  (eval $ac_try) 2>&5
4665  ac_status=$?
4666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667  (exit $ac_status); }; }; then
4668  :
4669else
4670  echo "$as_me: failed program was:" >&5
4671sed 's/^/| /' conftest.$ac_ext >&5
4672
4673FFLAGS=
4674fi
4675rm -f conftest.err conftest.$ac_objext \
4676      conftest$ac_exeext conftest.$ac_ext
4677  if test -z "$FFLAGS"; then
4678    { echo "$as_me:$LINENO: WARNING: The flags FFLAGS=\"$FFLAGS\" do not work.  I will now just try '-O', but you might want to set FFLAGS manually." >&5
4679echo "$as_me: WARNING: The flags FFLAGS=\"$FFLAGS\" do not work.  I will now just try '-O', but you might want to set FFLAGS manually." >&2;}
4680    FFLAGS='-O'
4681    cat >conftest.$ac_ext <<_ACEOF
4682      program main
4683      integer i
4684      end
4685_ACEOF
4686rm -f conftest.$ac_objext conftest$ac_exeext
4687if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4688  (eval $ac_link) 2>conftest.er1
4689  ac_status=$?
4690  grep -v '^ *+' conftest.er1 >conftest.err
4691  rm -f conftest.er1
4692  cat conftest.err >&5
4693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694  (exit $ac_status); } &&
4695         { ac_try='test -z "$ac_f77_werror_flag"
4696                         || test ! -s conftest.err'
4697  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4698  (eval $ac_try) 2>&5
4699  ac_status=$?
4700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701  (exit $ac_status); }; } &&
4702         { ac_try='test -s conftest$ac_exeext'
4703  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4704  (eval $ac_try) 2>&5
4705  ac_status=$?
4706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707  (exit $ac_status); }; }; then
4708  :
4709else
4710  echo "$as_me: failed program was:" >&5
4711sed 's/^/| /' conftest.$ac_ext >&5
4712
4713FFLAGS=
4714fi
4715rm -f conftest.err conftest.$ac_objext \
4716      conftest$ac_exeext conftest.$ac_ext
4717    if test -z "$FFLAGS"; then
4718      { echo "$as_me:$LINENO: WARNING: This value for FFLAGS does not work.  I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&5
4719echo "$as_me: WARNING: This value for FFLAGS does not work.  I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&2;}
4720    fi
4721  fi
4722fi
4723
4724{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
4725echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
4726
4727
4728if test x"$MPIF77" = x; then :; else
4729  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
4730echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
4731  F77="$MPIF77"
4732fi
4733
4734case "$F77" in
4735  ifort* | */ifort* | IFORT* | */IFORT*)
4736    case $build in
4737  *-mingw*)
4738    if test "${LD+set}" = set; then :; else
4739      LD=link
4740    fi
4741    ;;
4742 esac
4743 case $enable_doscompile in
4744   msvc)
4745     if test "x${LD+set}" = xset; then :; else
4746       LD=link
4747     fi
4748     ;;
4749 esac
4750
4751    ;;
4752esac
4753
4754ac_ext=c
4755ac_cpp='$CPP $CPPFLAGS'
4756ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4757ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4758ac_compiler_gnu=$ac_cv_c_compiler_gnu
4759
4760
4761
4762# Initialize automake and libtool
4763# AC_MSG_NOTICE([Calling INIT_AUTO_TOOLS from CREATE_LIBTOOL.])
4764{
4765
4766
4767
4768# START
4769
4770# Test if force_shared has been set
4771if test "x" = xforce_shared; then
4772  if test x$enable_shared = xno; then
4773    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4774echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4775   { (exit 1); exit 1; }; }
4776  fi
4777  enable_shared=yes;
4778else
4779  # On Cygwin and AIX, building DLLs doesn't work
4780  case $build in
4781    *-cygwin*)
4782      coin_disable_shared=yes
4783      platform=Cygwin
4784    ;;
4785    *-aix*)
4786      coin_disable_shared=yes
4787      platform=AIX
4788    ;;
4789    *-mingw*)
4790      coin_disable_shared=yes
4791      platform="Msys"
4792#      case "$CXX" in
4793#        cl*)
4794#          coin_disable_shared=yes
4795#          platform="Msys with cl"
4796#      ;;
4797#      esac
4798    ;;
4799  esac
4800fi
4801if test x"$coin_disable_shared" = xyes; then
4802  if test x"$enable_shared" = xyes; then
4803    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
4804echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
4805  fi
4806  enable_shared=no
4807fi
4808# By default, we only want the shared objects to be compiled
4809# Check whether --enable-static or --disable-static was given.
4810if test "${enable_static+set}" = set; then
4811  enableval="$enable_static"
4812  p=${PACKAGE-default}
4813    case $enableval in
4814    yes) enable_static=yes ;;
4815    no) enable_static=no ;;
4816    *)
4817     enable_static=no
4818      # Look at the argument we got.  We use all the common list separators.
4819      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4820      for pkg in $enableval; do
4821        IFS="$lt_save_ifs"
4822        if test "X$pkg" = "X$p"; then
4823          enable_static=yes
4824        fi
4825      done
4826      IFS="$lt_save_ifs"
4827      ;;
4828    esac
4829else
4830  enable_static=no
4831fi;
4832
4833
4834
4835
4836# Initialize automake
4837echo "$as_me:$LINENO: checking for egrep" >&5
4838echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4839if test "${ac_cv_prog_egrep+set}" = set; then
4840  echo $ECHO_N "(cached) $ECHO_C" >&6
4841else
4842  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4843    then ac_cv_prog_egrep='grep -E'
4844    else ac_cv_prog_egrep='egrep'
4845    fi
4846fi
4847echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4848echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4849 EGREP=$ac_cv_prog_egrep
4850
4851
4852am__api_version="1.9"
4853# Find a good install program.  We prefer a C program (faster),
4854# so one script is as good as another.  But avoid the broken or
4855# incompatible versions:
4856# SysV /etc/install, /usr/sbin/install
4857# SunOS /usr/etc/install
4858# IRIX /sbin/install
4859# AIX /bin/install
4860# AmigaOS /C/install, which installs bootblocks on floppy discs
4861# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4862# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4863# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4864# OS/2's system install, which has a completely different semantic
4865# ./install, which can be erroneously created by make from ./install.sh.
4866echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4867echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4868if test -z "$INSTALL"; then
4869if test "${ac_cv_path_install+set}" = set; then
4870  echo $ECHO_N "(cached) $ECHO_C" >&6
4871else
4872  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4873for as_dir in $PATH
4874do
4875  IFS=$as_save_IFS
4876  test -z "$as_dir" && as_dir=.
4877  # Account for people who put trailing slashes in PATH elements.
4878case $as_dir/ in
4879  ./ | .// | /cC/* | \
4880  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4881  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4882  /usr/ucb/* ) ;;
4883  *)
4884    # OSF1 and SCO ODT 3.0 have their own names for install.
4885    # Don't use installbsd from OSF since it installs stuff as root
4886    # by default.
4887    for ac_prog in ginstall scoinst install; do
4888      for ac_exec_ext in '' $ac_executable_extensions; do
4889        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4890          if test $ac_prog = install &&
4891            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4892            # AIX install.  It has an incompatible calling convention.
4893            :
4894          elif test $ac_prog = install &&
4895            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4896            # program-specific install script used by HP pwplus--don't use.
4897            :
4898          else
4899            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4900            break 3
4901          fi
4902        fi
4903      done
4904    done
4905    ;;
4906esac
4907done
4908
4909
4910fi
4911  if test "${ac_cv_path_install+set}" = set; then
4912    INSTALL=$ac_cv_path_install
4913  else
4914    # As a last resort, use the slow shell script.  We don't cache a
4915    # path for INSTALL within a source directory, because that will
4916    # break other packages using the cache if that directory is
4917    # removed, or if the path is relative.
4918    INSTALL=$ac_install_sh
4919  fi
4920fi
4921echo "$as_me:$LINENO: result: $INSTALL" >&5
4922echo "${ECHO_T}$INSTALL" >&6
4923
4924# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4925# It thinks the first close brace ends the variable substitution.
4926test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4927
4928test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4929
4930test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4931
4932echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4933echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4934# Just in case
4935sleep 1
4936echo timestamp > conftest.file
4937# Do `set' in a subshell so we don't clobber the current shell's
4938# arguments.  Must try -L first in case configure is actually a
4939# symlink; some systems play weird games with the mod time of symlinks
4940# (eg FreeBSD returns the mod time of the symlink's containing
4941# directory).
4942if (
4943   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4944   if test "$*" = "X"; then
4945      # -L didn't work.
4946      set X `ls -t $srcdir/configure conftest.file`
4947   fi
4948   rm -f conftest.file
4949   if test "$*" != "X $srcdir/configure conftest.file" \
4950      && test "$*" != "X conftest.file $srcdir/configure"; then
4951
4952      # If neither matched, then we have a broken ls.  This can happen
4953      # if, for instance, CONFIG_SHELL is bash and it inherits a
4954      # broken ls alias from the environment.  This has actually
4955      # happened.  Such a system could not be considered "sane".
4956      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4957alias in your environment" >&5
4958echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4959alias in your environment" >&2;}
4960   { (exit 1); exit 1; }; }
4961   fi
4962
4963   test "$2" = conftest.file
4964   )
4965then
4966   # Ok.
4967   :
4968else
4969   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4970Check your system clock" >&5
4971echo "$as_me: error: newly created file is older than distributed files!
4972Check your system clock" >&2;}
4973   { (exit 1); exit 1; }; }
4974fi
4975echo "$as_me:$LINENO: result: yes" >&5
4976echo "${ECHO_T}yes" >&6
4977test "$program_prefix" != NONE &&
4978  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4979# Use a double $ so make ignores it.
4980test "$program_suffix" != NONE &&
4981  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4982# Double any \ or $.  echo might interpret backslashes.
4983# By default was `s,x,x', remove it if useless.
4984cat <<\_ACEOF >conftest.sed
4985s/[\\$]/&&/g;s/;s,x,x,$//
4986_ACEOF
4987program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4988rm conftest.sed
4989
4990# expand $ac_aux_dir to an absolute path
4991am_aux_dir=`cd $ac_aux_dir && pwd`
4992
4993test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4994# Use eval to expand $SHELL
4995if eval "$MISSING --run true"; then
4996  am_missing_run="$MISSING --run "
4997else
4998  am_missing_run=
4999  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
5000echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
5001fi
5002
5003if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
5004  # We used to keeping the `.' as first argument, in order to
5005  # allow $(mkdir_p) to be used without argument.  As in
5006  #   $(mkdir_p) $(somedir)
5007  # where $(somedir) is conditionally defined.  However this is wrong
5008  # for two reasons:
5009  #  1. if the package is installed by a user who cannot write `.'
5010  #     make install will fail,
5011  #  2. the above comment should most certainly read
5012  #     $(mkdir_p) $(DESTDIR)$(somedir)
5013  #     so it does not work when $(somedir) is undefined and
5014  #     $(DESTDIR) is not.
5015  #  To support the latter case, we have to write
5016  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
5017  #  so the `.' trick is pointless.
5018  mkdir_p='mkdir -p --'
5019else
5020  # On NextStep and OpenStep, the `mkdir' command does not
5021  # recognize any option.  It will interpret all options as
5022  # directories to create, and then abort because `.' already
5023  # exists.
5024  for d in ./-p ./--version;
5025  do
5026    test -d $d && rmdir $d
5027  done
5028  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
5029  if test -f "$ac_aux_dir/mkinstalldirs"; then
5030    mkdir_p='$(mkinstalldirs)'
5031  else
5032    mkdir_p='$(install_sh) -d'
5033  fi
5034fi
5035
5036for ac_prog in gawk mawk nawk awk
5037do
5038  # Extract the first word of "$ac_prog", so it can be a program name with args.
5039set dummy $ac_prog; ac_word=$2
5040echo "$as_me:$LINENO: checking for $ac_word" >&5
5041echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5042if test "${ac_cv_prog_AWK+set}" = set; then
5043  echo $ECHO_N "(cached) $ECHO_C" >&6
5044else
5045  if test -n "$AWK"; then
5046  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5047else
5048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5049for as_dir in $PATH
5050do
5051  IFS=$as_save_IFS
5052  test -z "$as_dir" && as_dir=.
5053  for ac_exec_ext in '' $ac_executable_extensions; do
5054  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5055    ac_cv_prog_AWK="$ac_prog"
5056    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5057    break 2
5058  fi
5059done
5060done
5061
5062fi
5063fi
5064AWK=$ac_cv_prog_AWK
5065if test -n "$AWK"; then
5066  echo "$as_me:$LINENO: result: $AWK" >&5
5067echo "${ECHO_T}$AWK" >&6
5068else
5069  echo "$as_me:$LINENO: result: no" >&5
5070echo "${ECHO_T}no" >&6
5071fi
5072
5073  test -n "$AWK" && break
5074done
5075
5076echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5077echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
5078set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
5079if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5080  echo $ECHO_N "(cached) $ECHO_C" >&6
5081else
5082  cat >conftest.make <<\_ACEOF
5083all:
5084        @echo 'ac_maketemp="$(MAKE)"'
5085_ACEOF
5086# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5087eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5088if test -n "$ac_maketemp"; then
5089  eval ac_cv_prog_make_${ac_make}_set=yes
5090else
5091  eval ac_cv_prog_make_${ac_make}_set=no
5092fi
5093rm -f conftest.make
5094fi
5095if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5096  echo "$as_me:$LINENO: result: yes" >&5
5097echo "${ECHO_T}yes" >&6
5098  SET_MAKE=
5099else
5100  echo "$as_me:$LINENO: result: no" >&5
5101echo "${ECHO_T}no" >&6
5102  SET_MAKE="MAKE=${MAKE-make}"
5103fi
5104
5105rm -rf .tst 2>/dev/null
5106mkdir .tst 2>/dev/null
5107if test -d .tst; then
5108  am__leading_dot=.
5109else
5110  am__leading_dot=_
5111fi
5112rmdir .tst 2>/dev/null
5113
5114DEPDIR="${am__leading_dot}deps"
5115
5116          ac_config_commands="$ac_config_commands depfiles"
5117
5118
5119am_make=${MAKE-make}
5120cat > confinc << 'END'
5121am__doit:
5122        @echo done
5123.PHONY: am__doit
5124END
5125# If we don't find an include directive, just comment out the code.
5126echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
5127echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
5128am__include="#"
5129am__quote=
5130_am_result=none
5131# First try GNU make style include.
5132echo "include confinc" > confmf
5133# We grep out `Entering directory' and `Leaving directory'
5134# messages which can occur if `w' ends up in MAKEFLAGS.
5135# In particular we don't look at `^make:' because GNU make might
5136# be invoked under some other name (usually "gmake"), in which
5137# case it prints its new name instead of `make'.
5138if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
5139   am__include=include
5140   am__quote=
5141   _am_result=GNU
5142fi
5143# Now try BSD make style include.
5144if test "$am__include" = "#"; then
5145   echo '.include "confinc"' > confmf
5146   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
5147      am__include=.include
5148      am__quote="\""
5149      _am_result=BSD
5150   fi
5151fi
5152
5153
5154echo "$as_me:$LINENO: result: $_am_result" >&5
5155echo "${ECHO_T}$_am_result" >&6
5156rm -f confinc confmf
5157
5158# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
5159if test "${enable_dependency_tracking+set}" = set; then
5160  enableval="$enable_dependency_tracking"
5161
5162fi;
5163if test "x$enable_dependency_tracking" != xno; then
5164  am_depcomp="$ac_aux_dir/depcomp"
5165  AMDEPBACKSLASH='\'
5166fi
5167
5168
5169if test "x$enable_dependency_tracking" != xno; then
5170  AMDEP_TRUE=
5171  AMDEP_FALSE='#'
5172else
5173  AMDEP_TRUE='#'
5174  AMDEP_FALSE=
5175fi
5176
5177
5178
5179
5180
5181# AC_MSG_NOTICE([Beginning automake initialisation.])
5182# Stuff for automake
5183# test to see if srcdir already configured
5184if test "`cd $srcdir && pwd`" != "`pwd`" &&
5185   test -f $srcdir/config.status; then
5186  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
5187echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
5188   { (exit 1); exit 1; }; }
5189fi
5190
5191# test whether we have cygpath
5192if test -z "$CYGPATH_W"; then
5193  if (cygpath --version) >/dev/null 2>/dev/null; then
5194    CYGPATH_W='cygpath -w'
5195  else
5196    CYGPATH_W=echo
5197  fi
5198fi
5199
5200
5201# Define the identity of the package.
5202 PACKAGE='cbc'
5203 VERSION='2.3stable'
5204
5205
5206cat >>confdefs.h <<_ACEOF
5207#define PACKAGE "$PACKAGE"
5208_ACEOF
5209
5210
5211cat >>confdefs.h <<_ACEOF
5212#define VERSION "$VERSION"
5213_ACEOF
5214
5215# Some tools Automake needs.
5216
5217ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5218
5219
5220AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5221
5222
5223AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5224
5225
5226AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5227
5228
5229MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5230
5231install_sh=${install_sh-"$am_aux_dir/install-sh"}
5232
5233# Installed binaries are usually stripped using `strip' when the user
5234# run `make install-strip'.  However `strip' might not be the right
5235# tool to use in cross-compilation environments, therefore Automake
5236# will honor the `STRIP' environment variable to overrule this program.
5237if test "$cross_compiling" != no; then
5238  if test -n "$ac_tool_prefix"; then
5239  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5240set dummy ${ac_tool_prefix}strip; ac_word=$2
5241echo "$as_me:$LINENO: checking for $ac_word" >&5
5242echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5243if test "${ac_cv_prog_STRIP+set}" = set; then
5244  echo $ECHO_N "(cached) $ECHO_C" >&6
5245else
5246  if test -n "$STRIP"; then
5247  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5248else
5249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5250for as_dir in $PATH
5251do
5252  IFS=$as_save_IFS
5253  test -z "$as_dir" && as_dir=.
5254  for ac_exec_ext in '' $ac_executable_extensions; do
5255  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5256    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5257    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5258    break 2
5259  fi
5260done
5261done
5262
5263fi
5264fi
5265STRIP=$ac_cv_prog_STRIP
5266if test -n "$STRIP"; then
5267  echo "$as_me:$LINENO: result: $STRIP" >&5
5268echo "${ECHO_T}$STRIP" >&6
5269else
5270  echo "$as_me:$LINENO: result: no" >&5
5271echo "${ECHO_T}no" >&6
5272fi
5273
5274fi
5275if test -z "$ac_cv_prog_STRIP"; then
5276  ac_ct_STRIP=$STRIP
5277  # Extract the first word of "strip", so it can be a program name with args.
5278set dummy strip; ac_word=$2
5279echo "$as_me:$LINENO: checking for $ac_word" >&5
5280echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5281if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5282  echo $ECHO_N "(cached) $ECHO_C" >&6
5283else
5284  if test -n "$ac_ct_STRIP"; then
5285  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5286else
5287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5288for as_dir in $PATH
5289do
5290  IFS=$as_save_IFS
5291  test -z "$as_dir" && as_dir=.
5292  for ac_exec_ext in '' $ac_executable_extensions; do
5293  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5294    ac_cv_prog_ac_ct_STRIP="strip"
5295    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5296    break 2
5297  fi
5298done
5299done
5300
5301  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5302fi
5303fi
5304ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5305if test -n "$ac_ct_STRIP"; then
5306  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5307echo "${ECHO_T}$ac_ct_STRIP" >&6
5308else
5309  echo "$as_me:$LINENO: result: no" >&5
5310echo "${ECHO_T}no" >&6
5311fi
5312
5313  STRIP=$ac_ct_STRIP
5314else
5315  STRIP="$ac_cv_prog_STRIP"
5316fi
5317
5318fi
5319INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
5320
5321# We need awk for the "check" target.  The system "awk" is bad on
5322# some platforms.
5323# Always define AMTAR for backward compatibility.
5324
5325AMTAR=${AMTAR-"${am_missing_run}tar"}
5326
5327am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5328
5329
5330
5331
5332depcc="$CC"   am_compiler_list=
5333
5334echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5335echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5336if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5337  echo $ECHO_N "(cached) $ECHO_C" >&6
5338else
5339  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5340  # We make a subdir and do the tests there.  Otherwise we can end up
5341  # making bogus files that we don't know about and never remove.  For
5342  # instance it was reported that on HP-UX the gcc test will end up
5343  # making a dummy file named `D' -- because `-MD' means `put the output
5344  # in D'.
5345  mkdir conftest.dir
5346  # Copy depcomp to subdir because otherwise we won't find it if we're
5347  # using a relative directory.
5348  cp "$am_depcomp" conftest.dir
5349  cd conftest.dir
5350  # We will build objects and dependencies in a subdirectory because
5351  # it helps to detect inapplicable dependency modes.  For instance
5352  # both Tru64's cc and ICC support -MD to output dependencies as a
5353  # side effect of compilation, but ICC will put the dependencies in
5354  # the current directory while Tru64 will put them in the object
5355  # directory.
5356  mkdir sub
5357
5358  am_cv_CC_dependencies_compiler_type=none
5359  if test "$am_compiler_list" = ""; then
5360     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5361  fi
5362  for depmode in $am_compiler_list; do
5363    # Setup a source with many dependencies, because some compilers
5364    # like to wrap large dependency lists on column 80 (with \), and
5365    # we should not choose a depcomp mode which is confused by this.
5366    #
5367    # We need to recreate these files for each test, as the compiler may
5368    # overwrite some of them when testing with obscure command lines.
5369    # This happens at least with the AIX C compiler.
5370    : > sub/conftest.c
5371    for i in 1 2 3 4 5 6; do
5372      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5373      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5374      # Solaris 8's {/usr,}/bin/sh.
5375      touch sub/conftst$i.h
5376    done
5377    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5378
5379    case $depmode in
5380    nosideeffect)
5381      # after this tag, mechanisms are not by side-effect, so they'll
5382      # only be used when explicitly requested
5383      if test "x$enable_dependency_tracking" = xyes; then
5384        continue
5385      else
5386        break
5387      fi
5388      ;;
5389    none) break ;;
5390    esac
5391    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5392    # mode.  It turns out that the SunPro C++ compiler does not properly
5393    # handle `-M -o', and we need to detect this.
5394    if depmode=$depmode \
5395       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5396       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5397       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5398         >/dev/null 2>conftest.err &&
5399       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5400       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5401       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5402      # icc doesn't choke on unknown options, it will just issue warnings
5403      # or remarks (even with -Werror).  So we grep stderr for any message
5404      # that says an option was ignored or not supported.
5405      # When given -MP, icc 7.0 and 7.1 complain thusly:
5406      #   icc: Command line warning: ignoring option '-M'; no argument required
5407      # The diagnosis changed in icc 8.0:
5408      #   icc: Command line remark: option '-MP' not supported
5409      if (grep 'ignoring option' conftest.err ||
5410          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5411        am_cv_CC_dependencies_compiler_type=$depmode
5412        break
5413      fi
5414    fi
5415  done
5416
5417  cd ..
5418  rm -rf conftest.dir
5419else
5420  am_cv_CC_dependencies_compiler_type=none
5421fi
5422
5423fi
5424echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5425echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5426CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5427
5428
5429
5430if
5431  test "x$enable_dependency_tracking" != xno \
5432  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5433  am__fastdepCC_TRUE=
5434  am__fastdepCC_FALSE='#'
5435else
5436  am__fastdepCC_TRUE='#'
5437  am__fastdepCC_FALSE=
5438fi
5439
5440
5441depcc="$CXX"  am_compiler_list=
5442
5443echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5444echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5445if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5446  echo $ECHO_N "(cached) $ECHO_C" >&6
5447else
5448  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5449  # We make a subdir and do the tests there.  Otherwise we can end up
5450  # making bogus files that we don't know about and never remove.  For
5451  # instance it was reported that on HP-UX the gcc test will end up
5452  # making a dummy file named `D' -- because `-MD' means `put the output
5453  # in D'.
5454  mkdir conftest.dir
5455  # Copy depcomp to subdir because otherwise we won't find it if we're
5456  # using a relative directory.
5457  cp "$am_depcomp" conftest.dir
5458  cd conftest.dir
5459  # We will build objects and dependencies in a subdirectory because
5460  # it helps to detect inapplicable dependency modes.  For instance
5461  # both Tru64's cc and ICC support -MD to output dependencies as a
5462  # side effect of compilation, but ICC will put the dependencies in
5463  # the current directory while Tru64 will put them in the object
5464  # directory.
5465  mkdir sub
5466
5467  am_cv_CXX_dependencies_compiler_type=none
5468  if test "$am_compiler_list" = ""; then
5469     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5470  fi
5471  for depmode in $am_compiler_list; do
5472    # Setup a source with many dependencies, because some compilers
5473    # like to wrap large dependency lists on column 80 (with \), and
5474    # we should not choose a depcomp mode which is confused by this.
5475    #
5476    # We need to recreate these files for each test, as the compiler may
5477    # overwrite some of them when testing with obscure command lines.
5478    # This happens at least with the AIX C compiler.
5479    : > sub/conftest.c
5480    for i in 1 2 3 4 5 6; do
5481      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5482      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5483      # Solaris 8's {/usr,}/bin/sh.
5484      touch sub/conftst$i.h
5485    done
5486    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5487
5488    case $depmode in
5489    nosideeffect)
5490      # after this tag, mechanisms are not by side-effect, so they'll
5491      # only be used when explicitly requested
5492      if test "x$enable_dependency_tracking" = xyes; then
5493        continue
5494      else
5495        break
5496      fi
5497      ;;
5498    none) break ;;
5499    esac
5500    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5501    # mode.  It turns out that the SunPro C++ compiler does not properly
5502    # handle `-M -o', and we need to detect this.
5503    if depmode=$depmode \
5504       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5505       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5506       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5507         >/dev/null 2>conftest.err &&
5508       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5509       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5510       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5511      # icc doesn't choke on unknown options, it will just issue warnings
5512      # or remarks (even with -Werror).  So we grep stderr for any message
5513      # that says an option was ignored or not supported.
5514      # When given -MP, icc 7.0 and 7.1 complain thusly:
5515      #   icc: Command line warning: ignoring option '-M'; no argument required
5516      # The diagnosis changed in icc 8.0:
5517      #   icc: Command line remark: option '-MP' not supported
5518      if (grep 'ignoring option' conftest.err ||
5519          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5520        am_cv_CXX_dependencies_compiler_type=$depmode
5521        break
5522      fi
5523    fi
5524  done
5525
5526  cd ..
5527  rm -rf conftest.dir
5528else
5529  am_cv_CXX_dependencies_compiler_type=none
5530fi
5531
5532fi
5533echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5534echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5535CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5536
5537
5538
5539if
5540  test "x$enable_dependency_tracking" != xno \
5541  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5542  am__fastdepCXX_TRUE=
5543  am__fastdepCXX_FALSE='#'
5544else
5545  am__fastdepCXX_TRUE='#'
5546  am__fastdepCXX_FALSE=
5547fi
5548
5549
5550
5551echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5552echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5553    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5554if test "${enable_maintainer_mode+set}" = set; then
5555  enableval="$enable_maintainer_mode"
5556  USE_MAINTAINER_MODE=$enableval
5557else
5558  USE_MAINTAINER_MODE=no
5559fi;
5560  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5561echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5562
5563
5564if test $USE_MAINTAINER_MODE = yes; then
5565  MAINTAINER_MODE_TRUE=
5566  MAINTAINER_MODE_FALSE='#'
5567else
5568  MAINTAINER_MODE_TRUE='#'
5569  MAINTAINER_MODE_FALSE=
5570fi
5571
5572  MAINT=$MAINTAINER_MODE_TRUE
5573
5574
5575
5576coin_have_externals=no
5577if test "$enable_maintainer_mode" = yes; then
5578
5579  # If maintainer mode is chosen, we make sure that the correct versions
5580  # of the tools are used, and that we know where libtool.m4 is (to
5581  # recreate acinclude.m4)
5582
5583
5584  LIBTOOLM4=
5585  # Normally, $HOME
5586  AUTOTOOLS_DFLT=$HOME
5587
5588  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5589echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5590if test "${ac_cv_use_correct_autotools+set}" = set; then
5591  echo $ECHO_N "(cached) $ECHO_C" >&6
5592else
5593  ac_cv_use_correct_autotools=check
5594fi
5595echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5596echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5597
5598  if test $ac_cv_use_correct_autotools = check; then
5599    ac_cv_use_correct_autotools=yes
5600    # Check if we have autoconf
5601    # Extract the first word of "autoconf", so it can be a program name with args.
5602set dummy autoconf; ac_word=$2
5603echo "$as_me:$LINENO: checking for $ac_word" >&5
5604echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5605if test "${ac_cv_prog_have_autoconf+set}" = set; then
5606  echo $ECHO_N "(cached) $ECHO_C" >&6
5607else
5608  if test -n "$have_autoconf"; then
5609  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5610else
5611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5612for as_dir in $PATH
5613do
5614  IFS=$as_save_IFS
5615  test -z "$as_dir" && as_dir=.
5616  for ac_exec_ext in '' $ac_executable_extensions; do
5617  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5618    ac_cv_prog_have_autoconf="yes"
5619    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5620    break 2
5621  fi
5622done
5623done
5624
5625  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5626fi
5627fi
5628have_autoconf=$ac_cv_prog_have_autoconf
5629if test -n "$have_autoconf"; then
5630  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5631echo "${ECHO_T}$have_autoconf" >&6
5632else
5633  echo "$as_me:$LINENO: result: no" >&5
5634echo "${ECHO_T}no" >&6
5635fi
5636
5637    if test $have_autoconf = no; then
5638      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5639echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5640   { (exit 1); exit 1; }; }
5641    fi
5642
5643    # Check whether autoconf is the correct version
5644    correct_version='2.59'
5645    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5646    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5647echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5648    autoconf --version > confauto.out 2>&1
5649    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5650      echo "$as_me:$LINENO: result: yes" >&5
5651echo "${ECHO_T}yes" >&6
5652    else
5653      rm -f confauto.out
5654      echo "$as_me:$LINENO: result: no" >&5
5655echo "${ECHO_T}no" >&6
5656      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5657echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5658   { (exit 1); exit 1; }; }
5659    fi
5660    rm -f confauto.out
5661
5662    # Check if the executable autoconf is picked up from the correct location
5663    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5664echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5665    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5666    autoconf_dir=`cd $autoconf_dir; pwd`
5667    if test x$AUTOTOOLS_DIR = x; then
5668      want_dir=$AUTOTOOLS_DFLT/bin
5669    else
5670      want_dir=$AUTOTOOLS_DIR/bin
5671    fi
5672    if test $autoconf_dir = `cd $want_dir; pwd`; then
5673      echo "$as_me:$LINENO: result: yes" >&5
5674echo "${ECHO_T}yes" >&6
5675    else
5676      rm -f confauto.out
5677      echo "$as_me:$LINENO: result: no" >&5
5678echo "${ECHO_T}no" >&6
5679      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5680echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5681   { (exit 1); exit 1; }; }
5682    fi
5683
5684    # Check if we have automake
5685    # Extract the first word of "automake", so it can be a program name with args.
5686set dummy automake; ac_word=$2
5687echo "$as_me:$LINENO: checking for $ac_word" >&5
5688echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5689if test "${ac_cv_prog_have_automake+set}" = set; then
5690  echo $ECHO_N "(cached) $ECHO_C" >&6
5691else
5692  if test -n "$have_automake"; then
5693  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5694else
5695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5696for as_dir in $PATH
5697do
5698  IFS=$as_save_IFS
5699  test -z "$as_dir" && as_dir=.
5700  for ac_exec_ext in '' $ac_executable_extensions; do
5701  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5702    ac_cv_prog_have_automake="yes"
5703    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5704    break 2
5705  fi
5706done
5707done
5708
5709  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5710fi
5711fi
5712have_automake=$ac_cv_prog_have_automake
5713if test -n "$have_automake"; then
5714  echo "$as_me:$LINENO: result: $have_automake" >&5
5715echo "${ECHO_T}$have_automake" >&6
5716else
5717  echo "$as_me:$LINENO: result: no" >&5
5718echo "${ECHO_T}no" >&6
5719fi
5720
5721    if test $have_automake = no; then
5722      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5723echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5724   { (exit 1); exit 1; }; }
5725    fi
5726
5727    # Check whether automake is the correct version
5728    correct_version='1.9.6'
5729    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5730    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5731echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5732    automake --version > confauto.out 2>&1
5733    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5734      echo "$as_me:$LINENO: result: yes" >&5
5735echo "${ECHO_T}yes" >&6
5736    else
5737      rm -f confauto.out
5738      echo "$as_me:$LINENO: result: no" >&5
5739echo "${ECHO_T}no" >&6
5740      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5741echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5742   { (exit 1); exit 1; }; }
5743    fi
5744    rm -f confauto.out
5745
5746    # Check if the executable automake is picked up from the correct location
5747    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5748echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5749    automake_dir=`which automake | sed -e 's=/automake=='`
5750    automake_dir=`cd $automake_dir; pwd`
5751    if test x$AUTOTOOLS_DIR = x; then
5752      want_dir=$AUTOTOOLS_DFLT/bin
5753    else
5754      want_dir=$AUTOTOOLS_DIR/bin
5755    fi
5756    if test $automake_dir = `cd $want_dir; pwd`; then
5757      echo "$as_me:$LINENO: result: yes" >&5
5758echo "${ECHO_T}yes" >&6
5759    else
5760      rm -f confauto.out
5761      echo "$as_me:$LINENO: result: no" >&5
5762echo "${ECHO_T}no" >&6
5763      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5764echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5765   { (exit 1); exit 1; }; }
5766    fi
5767
5768    # Check if this is the correct version of libtool (with escaped dots)
5769    if test x$AUTOTOOLS_DIR = x; then
5770      want_dir=$AUTOTOOLS_DFLT/share
5771    else
5772      want_dir=$AUTOTOOLS_DIR/share
5773    fi
5774    correct_version='1.5.22'
5775    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5776    if test -r $want_dir/libtool/ltmain.sh; then
5777  have_ltmain=yes
5778  :
5779else
5780  have_ltmain=no
5781  :
5782fi
5783
5784    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5785echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5786    if test $have_ltmain = yes; then
5787    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5788        echo "$as_me:$LINENO: result: yes" >&5
5789echo "${ECHO_T}yes" >&6
5790      else
5791        echo "$as_me:$LINENO: result: no" >&5
5792echo "${ECHO_T}no" >&6
5793        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5794echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5795   { (exit 1); exit 1; }; }
5796      fi
5797    else
5798      echo "$as_me:$LINENO: result: no" >&5
5799echo "${ECHO_T}no" >&6
5800      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5801echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5802   { (exit 1); exit 1; }; }
5803    fi
5804  fi
5805
5806  # Check if we can find the libtool file
5807  if test x$AUTOTOOLS_DIR = x; then
5808    want_dir=$AUTOTOOLS_DFLT/share
5809  else
5810    want_dir=$AUTOTOOLS_DIR/share
5811  fi
5812  if test -r $want_dir/aclocal/libtool.m4; then
5813  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5814  :
5815else
5816  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5817echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5818   { (exit 1); exit 1; }; }
5819  :
5820fi
5821
5822
5823  # Check if we have an Externals file
5824  if test -r $srcdir/Externals; then
5825    coin_have_externals=yes
5826  fi
5827  # Check if subversion is installed and understands https
5828  # Extract the first word of "svn", so it can be a program name with args.
5829set dummy svn; ac_word=$2
5830echo "$as_me:$LINENO: checking for $ac_word" >&5
5831echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5832if test "${ac_cv_prog_have_svn+set}" = set; then
5833  echo $ECHO_N "(cached) $ECHO_C" >&6
5834else
5835  if test -n "$have_svn"; then
5836  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5837else
5838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5839for as_dir in $PATH
5840do
5841  IFS=$as_save_IFS
5842  test -z "$as_dir" && as_dir=.
5843  for ac_exec_ext in '' $ac_executable_extensions; do
5844  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5845    ac_cv_prog_have_svn="yes"
5846    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5847    break 2
5848  fi
5849done
5850done
5851
5852  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5853fi
5854fi
5855have_svn=$ac_cv_prog_have_svn
5856if test -n "$have_svn"; then
5857  echo "$as_me:$LINENO: result: $have_svn" >&5
5858echo "${ECHO_T}$have_svn" >&6
5859else
5860  echo "$as_me:$LINENO: result: no" >&5
5861echo "${ECHO_T}no" >&6
5862fi
5863
5864  if test x$have_svn = xyes; then
5865    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5866echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5867if test "${ac_cv_svn_understands_https+set}" = set; then
5868  echo $ECHO_N "(cached) $ECHO_C" >&6
5869else
5870  svn --version > confauto.out 2>&1
5871                    if $EGREP https confauto.out >/dev/null 2>&1; then
5872                      ac_cv_svn_understands_https=yes
5873                    else
5874                      ac_cv_svn_understands_https=no
5875                      have_svn=no
5876                      ac_cv_prog_have_svn=no
5877                    fi
5878                    rm -f confauto.out
5879fi
5880echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5881echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5882  fi
5883
5884  # Find the location of the BuildTools directory
5885  BUILDTOOLSDIR=
5886  if test -r $srcdir/BuildTools/coin.m4; then
5887    BUILDTOOLSDIR=$srcdir/BuildTools
5888  else
5889    if test -r $srcdir/../BuildTools/coin.m4; then
5890      BUILDTOOLSDIR=$srcdir/../BuildTools
5891    else
5892      if test -r $srcdir/../../BuildTools/coin.m4; then
5893        BUILDTOOLSDIR=$srcdir/../../BuildTools
5894      else
5895        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5896echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5897   { (exit 1); exit 1; }; }
5898      fi
5899    fi
5900  fi
5901
5902
5903  # The following variable is set to the name of the directory where
5904  # the autotool scripts are located
5905
5906  AUX_DIR=$ac_aux_dir
5907fi
5908
5909# helpful variable for the base directory of this package
5910abs_source_dir=`cd $srcdir; pwd`
5911
5912
5913# Stuff for example Makefiles
5914if test x$prefix = xNONE; then
5915  full_prefix=$ac_default_prefix
5916else
5917  full_prefix=$prefix
5918fi
5919full_prefix=`cd $full_prefix ; pwd`
5920
5921abs_lib_dir=$full_prefix/lib
5922
5923abs_include_dir=$full_prefix/include
5924
5925abs_bin_dir=$full_prefix/bin
5926
5927
5928
5929if test $coin_have_externals = yes && test x$have_svn = xyes; then
5930  HAVE_EXTERNALS_TRUE=
5931  HAVE_EXTERNALS_FALSE='#'
5932else
5933  HAVE_EXTERNALS_TRUE='#'
5934  HAVE_EXTERNALS_FALSE=
5935fi
5936
5937
5938# AC_MSG_NOTICE([End automake initialisation.])
5939
5940
5941
5942LIBTOOL=
5943if test -r ../libtool; then
5944  coin_config_dir=..
5945  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5946fi
5947if test "x$LIBTOOL" = x; then
5948  if test -r ../../libtool; then
5949    coin_config_dir=../..
5950    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5951  fi
5952fi
5953
5954if test "x$LIBTOOL" = x; then
5955# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5956  # Stuff for libtool
5957  # Check whether --enable-shared or --disable-shared was given.
5958if test "${enable_shared+set}" = set; then
5959  enableval="$enable_shared"
5960  p=${PACKAGE-default}
5961    case $enableval in
5962    yes) enable_shared=yes ;;
5963    no) enable_shared=no ;;
5964    *)
5965      enable_shared=no
5966      # Look at the argument we got.  We use all the common list separators.
5967      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5968      for pkg in $enableval; do
5969        IFS="$lt_save_ifs"
5970        if test "X$pkg" = "X$p"; then
5971          enable_shared=yes
5972        fi
5973      done
5974      IFS="$lt_save_ifs"
5975      ;;
5976    esac
5977else
5978  enable_shared=yes
5979fi;
5980
5981# Check whether --enable-fast-install or --disable-fast-install was given.
5982if test "${enable_fast_install+set}" = set; then
5983  enableval="$enable_fast_install"
5984  p=${PACKAGE-default}
5985    case $enableval in
5986    yes) enable_fast_install=yes ;;
5987    no) enable_fast_install=no ;;
5988    *)
5989      enable_fast_install=no
5990      # Look at the argument we got.  We use all the common list separators.
5991      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5992      for pkg in $enableval; do
5993        IFS="$lt_save_ifs"
5994        if test "X$pkg" = "X$p"; then
5995          enable_fast_install=yes
5996        fi
5997      done
5998      IFS="$lt_save_ifs"
5999      ;;
6000    esac
6001else
6002  enable_fast_install=yes
6003fi;
6004
6005echo "$as_me:$LINENO: checking host system type" >&5
6006echo $ECHO_N "checking host system type... $ECHO_C" >&6
6007if test "${ac_cv_host+set}" = set; then
6008  echo $ECHO_N "(cached) $ECHO_C" >&6
6009else
6010  ac_cv_host_alias=$host_alias
6011test -z "$ac_cv_host_alias" &&
6012  ac_cv_host_alias=$ac_cv_build_alias
6013ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
6014  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
6015echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
6016   { (exit 1); exit 1; }; }
6017
6018fi
6019echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6020echo "${ECHO_T}$ac_cv_host" >&6
6021host=$ac_cv_host
6022host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
6023host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
6024host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
6025
6026
6027echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
6028echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
6029if test "${lt_cv_path_SED+set}" = set; then
6030  echo $ECHO_N "(cached) $ECHO_C" >&6
6031else
6032  # Loop through the user's path and test for sed and gsed.
6033# Then use that list of sed's as ones to test for truncation.
6034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6035for as_dir in $PATH
6036do
6037  IFS=$as_save_IFS
6038  test -z "$as_dir" && as_dir=.
6039  for lt_ac_prog in sed gsed; do
6040    for ac_exec_ext in '' $ac_executable_extensions; do
6041      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6042        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6043      fi
6044    done
6045  done
6046done
6047lt_ac_max=0
6048lt_ac_count=0
6049# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6050# along with /bin/sed that truncates output.
6051for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6052  test ! -f $lt_ac_sed && continue
6053  cat /dev/null > conftest.in
6054  lt_ac_count=0
6055  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6056  # Check for GNU sed and select it if it is found.
6057  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6058    lt_cv_path_SED=$lt_ac_sed
6059    break
6060  fi
6061  while true; do
6062    cat conftest.in conftest.in >conftest.tmp
6063    mv conftest.tmp conftest.in
6064    cp conftest.in conftest.nl
6065    echo >>conftest.nl
6066    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6067    cmp -s conftest.out conftest.nl || break
6068    # 10000 chars as input seems more than enough
6069    test $lt_ac_count -gt 10 && break
6070    lt_ac_count=`expr $lt_ac_count + 1`
6071    if test $lt_ac_count -gt $lt_ac_max; then
6072      lt_ac_max=$lt_ac_count
6073      lt_cv_path_SED=$lt_ac_sed
6074    fi
6075  done
6076done
6077
6078fi
6079
6080SED=$lt_cv_path_SED
6081echo "$as_me:$LINENO: result: $SED" >&5
6082echo "${ECHO_T}$SED" >&6
6083
6084
6085# Check whether --with-gnu-ld or --without-gnu-ld was given.
6086if test "${with_gnu_ld+set}" = set; then
6087  withval="$with_gnu_ld"
6088  test "$withval" = no || with_gnu_ld=yes
6089else
6090  with_gnu_ld=no
6091fi;
6092ac_prog=ld
6093if test "$GCC" = yes; then
6094  # Check if gcc -print-prog-name=ld gives a path.
6095  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6096echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
6097  case $host in
6098  *-*-mingw*)
6099    # gcc leaves a trailing carriage return which upsets mingw
6100    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6101  *)
6102    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6103  esac
6104  case $ac_prog in
6105    # Accept absolute paths.
6106    [\\/]* | ?:[\\/]*)
6107      re_direlt='/[^/][^/]*/\.\./'
6108      # Canonicalize the pathname of ld
6109      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6110      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6111        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6112      done
6113      test -z "$LD" && LD="$ac_prog"
6114      ;;
6115  "")
6116    # If it fails, then pretend we aren't using GCC.
6117    ac_prog=ld
6118    ;;
6119  *)
6120    # If it is relative, then search for the first ld in PATH.
6121    with_gnu_ld=unknown
6122    ;;
6123  esac
6124elif test "$with_gnu_ld" = yes; then
6125  echo "$as_me:$LINENO: checking for GNU ld" >&5
6126echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6127else
6128  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6129echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6130fi
6131if test "${lt_cv_path_LD+set}" = set; then
6132  echo $ECHO_N "(cached) $ECHO_C" >&6
6133else
6134  if test -z "$LD"; then
6135  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6136  for ac_dir in $PATH; do
6137    IFS="$lt_save_ifs"
6138    test -z "$ac_dir" && ac_dir=.
6139    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6140      lt_cv_path_LD="$ac_dir/$ac_prog"
6141      # Check to see if the program is GNU ld.  I'd rather use --version,
6142      # but apparently some variants of GNU ld only accept -v.
6143      # Break only if it was the GNU/non-GNU ld that we prefer.
6144      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6145      *GNU* | *'with BFD'*)
6146        test "$with_gnu_ld" != no && break
6147        ;;
6148      *)
6149        test "$with_gnu_ld" != yes && break
6150        ;;
6151      esac
6152    fi
6153  done
6154  IFS="$lt_save_ifs"
6155else
6156  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6157fi
6158fi
6159
6160LD="$lt_cv_path_LD"
6161if test -n "$LD"; then
6162  echo "$as_me:$LINENO: result: $LD" >&5
6163echo "${ECHO_T}$LD" >&6
6164else
6165  echo "$as_me:$LINENO: result: no" >&5
6166echo "${ECHO_T}no" >&6
6167fi
6168test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6169echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6170   { (exit 1); exit 1; }; }
6171echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6172echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6173if test "${lt_cv_prog_gnu_ld+set}" = set; then
6174  echo $ECHO_N "(cached) $ECHO_C" >&6
6175else
6176  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6177case `$LD -v 2>&1 </dev/null` in
6178*GNU* | *'with BFD'*)
6179  lt_cv_prog_gnu_ld=yes
6180  ;;
6181*)
6182  lt_cv_prog_gnu_ld=no
6183  ;;
6184esac
6185fi
6186echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6187echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6188with_gnu_ld=$lt_cv_prog_gnu_ld
6189
6190
6191echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6192echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6193if test "${lt_cv_ld_reload_flag+set}" = set; then
6194  echo $ECHO_N "(cached) $ECHO_C" >&6
6195else
6196  lt_cv_ld_reload_flag='-r'
6197fi
6198echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6199echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6200reload_flag=$lt_cv_ld_reload_flag
6201case $reload_flag in
6202"" | " "*) ;;
6203*) reload_flag=" $reload_flag" ;;
6204esac
6205reload_cmds='$LD$reload_flag -o $output$reload_objs'
6206case $host_os in
6207  darwin*)
6208    if test "$GCC" = yes; then
6209      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6210    else
6211      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6212    fi
6213    ;;
6214esac
6215
6216echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6217echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6218if test "${lt_cv_path_NM+set}" = set; then
6219  echo $ECHO_N "(cached) $ECHO_C" >&6
6220else
6221  if test -n "$NM"; then
6222  # Let the user override the test.
6223  lt_cv_path_NM="$NM"
6224else
6225  lt_nm_to_check="${ac_tool_prefix}nm"
6226  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6227    lt_nm_to_check="$lt_nm_to_check nm"
6228  fi
6229  for lt_tmp_nm in $lt_nm_to_check; do
6230    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6231    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6232      IFS="$lt_save_ifs"
6233      test -z "$ac_dir" && ac_dir=.
6234      tmp_nm="$ac_dir/$lt_tmp_nm"
6235      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6236        # Check to see if the nm accepts a BSD-compat flag.
6237        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6238        #   nm: unknown option "B" ignored
6239        # Tru64's nm complains that /dev/null is an invalid object file
6240        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6241        */dev/null* | *'Invalid file or object type'*)
6242          lt_cv_path_NM="$tmp_nm -B"
6243          break
6244          ;;
6245        *)
6246          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6247          */dev/null*)
6248            lt_cv_path_NM="$tmp_nm -p"
6249            break
6250            ;;
6251          *)
6252            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6253            continue # so that we can try to find one that supports BSD flags
6254            ;;
6255          esac
6256          ;;
6257        esac
6258      fi
6259    done
6260    IFS="$lt_save_ifs"
6261  done
6262  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6263fi
6264fi
6265echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6266echo "${ECHO_T}$lt_cv_path_NM" >&6
6267NM="$lt_cv_path_NM"
6268
6269echo "$as_me:$LINENO: checking whether ln -s works" >&5
6270echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
6271LN_S=$as_ln_s
6272if test "$LN_S" = "ln -s"; then
6273  echo "$as_me:$LINENO: result: yes" >&5
6274echo "${ECHO_T}yes" >&6
6275else
6276  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6277echo "${ECHO_T}no, using $LN_S" >&6
6278fi
6279
6280echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6281echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
6282if test "${lt_cv_deplibs_check_method+set}" = set; then
6283  echo $ECHO_N "(cached) $ECHO_C" >&6
6284else
6285  lt_cv_file_magic_cmd='$MAGIC_CMD'
6286lt_cv_file_magic_test_file=
6287lt_cv_deplibs_check_method='unknown'
6288# Need to set the preceding variable on all platforms that support
6289# interlibrary dependencies.
6290# 'none' -- dependencies not supported.
6291# `unknown' -- same as none, but documents that we really don't know.
6292# 'pass_all' -- all dependencies passed with no checks.
6293# 'test_compile' -- check by making test program.
6294# 'file_magic [[regex]]' -- check by looking for files in library path
6295# which responds to the $file_magic_cmd with a given extended regex.
6296# If you have `file' or equivalent on your system and you're not sure
6297# whether `pass_all' will *always* work, you probably want this one.
6298
6299case $host_os in
6300aix4* | aix5*)
6301  lt_cv_deplibs_check_method=pass_all
6302  ;;
6303
6304beos*)
6305  lt_cv_deplibs_check_method=pass_all
6306  ;;
6307
6308bsdi[45]*)
6309  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6310  lt_cv_file_magic_cmd='/usr/bin/file -L'
6311  lt_cv_file_magic_test_file=/shlib/libc.so
6312  ;;
6313
6314cygwin*)
6315  # func_win32_libid is a shell function defined in ltmain.sh
6316  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6317  lt_cv_file_magic_cmd='func_win32_libid'
6318  ;;
6319
6320mingw* | pw32*)
6321  # Base MSYS/MinGW do not provide the 'file' command needed by
6322  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6323  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6324  lt_cv_file_magic_cmd='$OBJDUMP -f'
6325  ;;
6326
6327darwin* | rhapsody*)
6328  lt_cv_deplibs_check_method=pass_all
6329  ;;
6330
6331freebsd* | kfreebsd*-gnu | dragonfly*)
6332  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6333    case $host_cpu in
6334    i*86 )
6335      # Not sure whether the presence of OpenBSD here was a mistake.
6336      # Let's accept both of them until this is cleared up.
6337      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6338      lt_cv_file_magic_cmd=/usr/bin/file
6339      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6340      ;;
6341    esac
6342  else
6343    lt_cv_deplibs_check_method=pass_all
6344  fi
6345  ;;
6346
6347gnu*)
6348  lt_cv_deplibs_check_method=pass_all
6349  ;;
6350
6351hpux10.20* | hpux11*)
6352  lt_cv_file_magic_cmd=/usr/bin/file
6353  case $host_cpu in
6354  ia64*)
6355    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6356    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6357    ;;
6358  hppa*64*)
6359    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]'
6360    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6361    ;;
6362  *)
6363    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6364    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6365    ;;
6366  esac
6367  ;;
6368
6369interix3*)
6370  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6371  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6372  ;;
6373
6374irix5* | irix6* | nonstopux*)
6375  case $LD in
6376  *-32|*"-32 ") libmagic=32-bit;;
6377  *-n32|*"-n32 ") libmagic=N32;;
6378  *-64|*"-64 ") libmagic=64-bit;;
6379  *) libmagic=never-match;;
6380  esac
6381  lt_cv_deplibs_check_method=pass_all
6382  ;;
6383
6384# This must be Linux ELF.
6385linux*)
6386  lt_cv_deplibs_check_method=pass_all
6387  ;;
6388
6389netbsd*)
6390  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6391    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6392  else
6393    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6394  fi
6395  ;;
6396
6397newos6*)
6398  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6399  lt_cv_file_magic_cmd=/usr/bin/file
6400  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6401  ;;
6402
6403nto-qnx*)
6404  lt_cv_deplibs_check_method=unknown
6405  ;;
6406
6407openbsd*)
6408  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6409    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6410  else
6411    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6412  fi
6413  ;;
6414
6415osf3* | osf4* | osf5*)
6416  lt_cv_deplibs_check_method=pass_all
6417  ;;
6418
6419solaris*)
6420  lt_cv_deplibs_check_method=pass_all
6421  ;;
6422
6423sysv4 | sysv4.3*)
6424  case $host_vendor in
6425  motorola)
6426    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]'
6427    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6428    ;;
6429  ncr)
6430    lt_cv_deplibs_check_method=pass_all
6431    ;;
6432  sequent)
6433    lt_cv_file_magic_cmd='/bin/file'
6434    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6435    ;;
6436  sni)
6437    lt_cv_file_magic_cmd='/bin/file'
6438    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6439    lt_cv_file_magic_test_file=/lib/libc.so
6440    ;;
6441  siemens)
6442    lt_cv_deplibs_check_method=pass_all
6443    ;;
6444  pc)
6445    lt_cv_deplibs_check_method=pass_all
6446    ;;
6447  esac
6448  ;;
6449
6450sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6451  lt_cv_deplibs_check_method=pass_all
6452  ;;
6453esac
6454
6455fi
6456echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6457echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6458file_magic_cmd=$lt_cv_file_magic_cmd
6459deplibs_check_method=$lt_cv_deplibs_check_method
6460test -z "$deplibs_check_method" && deplibs_check_method=unknown
6461
6462
6463
6464
6465# If no C compiler was specified, use CC.
6466LTCC=${LTCC-"$CC"}
6467
6468# If no C compiler flags were specified, use CFLAGS.
6469LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6470
6471# Allow CC to be a program name with arguments.
6472compiler=$CC
6473
6474# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6475if test "${enable_libtool_lock+set}" = set; then
6476  enableval="$enable_libtool_lock"
6477
6478fi;
6479test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6480
6481# Some flags need to be propagated to the compiler or linker for good
6482# libtool support.
6483case $host in
6484ia64-*-hpux*)
6485  # Find out which ABI we are using.
6486  echo 'int i;' > conftest.$ac_ext
6487  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6488  (eval $ac_compile) 2>&5
6489  ac_status=$?
6490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491  (exit $ac_status); }; then
6492    case `/usr/bin/file conftest.$ac_objext` in
6493    *ELF-32*)
6494      HPUX_IA64_MODE="32"
6495      ;;
6496    *ELF-64*)
6497      HPUX_IA64_MODE="64"
6498      ;;
6499    esac
6500  fi
6501  rm -rf conftest*
6502  ;;
6503*-*-irix6*)
6504  # Find out which ABI we are using.
6505  echo '#line 6505 "configure"' > conftest.$ac_ext
6506  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6507  (eval $ac_compile) 2>&5
6508  ac_status=$?
6509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6510  (exit $ac_status); }; then
6511   if test "$lt_cv_prog_gnu_ld" = yes; then
6512    case `/usr/bin/file conftest.$ac_objext` in
6513    *32-bit*)
6514      LD="${LD-ld} -melf32bsmip"
6515      ;;
6516    *N32*)
6517      LD="${LD-ld} -melf32bmipn32"
6518      ;;
6519    *64-bit*)
6520      LD="${LD-ld} -melf64bmip"
6521      ;;
6522    esac
6523   else
6524    case `/usr/bin/file conftest.$ac_objext` in
6525    *32-bit*)
6526      LD="${LD-ld} -32"
6527      ;;
6528    *N32*)
6529      LD="${LD-ld} -n32"
6530      ;;
6531    *64-bit*)
6532      LD="${LD-ld} -64"
6533      ;;
6534    esac
6535   fi
6536  fi
6537  rm -rf conftest*
6538  ;;
6539
6540x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6541  # Find out which ABI we are using.
6542  echo 'int i;' > conftest.$ac_ext
6543  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6544  (eval $ac_compile) 2>&5
6545  ac_status=$?
6546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6547  (exit $ac_status); }; then
6548    case `/usr/bin/file conftest.o` in
6549    *32-bit*)
6550      case $host in
6551        x86_64-*linux*)
6552          LD="${LD-ld} -m elf_i386"
6553          ;;
6554        ppc64-*linux*|powerpc64-*linux*)
6555          LD="${LD-ld} -m elf32ppclinux"
6556          ;;
6557        s390x-*linux*)
6558          LD="${LD-ld} -m elf_s390"
6559          ;;
6560        sparc64-*linux*)
6561          LD="${LD-ld} -m elf32_sparc"
6562          ;;
6563      esac
6564      ;;
6565    *64-bit*)
6566      case $host in
6567        x86_64-*linux*)
6568          LD="${LD-ld} -m elf_x86_64"
6569          ;;
6570        ppc*-*linux*|powerpc*-*linux*)
6571          LD="${LD-ld} -m elf64ppc"
6572          ;;
6573        s390*-*linux*)
6574          LD="${LD-ld} -m elf64_s390"
6575          ;;
6576        sparc*-*linux*)
6577          LD="${LD-ld} -m elf64_sparc"
6578          ;;
6579      esac
6580      ;;
6581    esac
6582  fi
6583  rm -rf conftest*
6584  ;;
6585
6586*-*-sco3.2v5*)
6587  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6588  SAVE_CFLAGS="$CFLAGS"
6589  CFLAGS="$CFLAGS -belf"
6590  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6591echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6592if test "${lt_cv_cc_needs_belf+set}" = set; then
6593  echo $ECHO_N "(cached) $ECHO_C" >&6
6594else
6595  ac_ext=c
6596ac_cpp='$CPP $CPPFLAGS'
6597ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6598ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6599ac_compiler_gnu=$ac_cv_c_compiler_gnu
6600
6601     cat >conftest.$ac_ext <<_ACEOF
6602/* confdefs.h.  */
6603_ACEOF
6604cat confdefs.h >>conftest.$ac_ext
6605cat >>conftest.$ac_ext <<_ACEOF
6606/* end confdefs.h.  */
6607
6608int
6609main ()
6610{
6611
6612  ;
6613  return 0;
6614}
6615_ACEOF
6616rm -f conftest.$ac_objext conftest$ac_exeext
6617if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6618  (eval $ac_link) 2>conftest.er1
6619  ac_status=$?
6620  grep -v '^ *+' conftest.er1 >conftest.err
6621  rm -f conftest.er1
6622  cat conftest.err >&5
6623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6624  (exit $ac_status); } &&
6625         { ac_try='test -z "$ac_c_werror_flag"
6626                         || test ! -s conftest.err'
6627  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6628  (eval $ac_try) 2>&5
6629  ac_status=$?
6630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6631  (exit $ac_status); }; } &&
6632         { ac_try='test -s conftest$ac_exeext'
6633  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6634  (eval $ac_try) 2>&5
6635  ac_status=$?
6636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6637  (exit $ac_status); }; }; then
6638  lt_cv_cc_needs_belf=yes
6639else
6640  echo "$as_me: failed program was:" >&5
6641sed 's/^/| /' conftest.$ac_ext >&5
6642
6643lt_cv_cc_needs_belf=no
6644fi
6645rm -f conftest.err conftest.$ac_objext \
6646      conftest$ac_exeext conftest.$ac_ext
6647     ac_ext=c
6648ac_cpp='$CPP $CPPFLAGS'
6649ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6650ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6651ac_compiler_gnu=$ac_cv_c_compiler_gnu
6652
6653fi
6654echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6655echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6656  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6657    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6658    CFLAGS="$SAVE_CFLAGS"
6659  fi
6660  ;;
6661sparc*-*solaris*)
6662  # Find out which ABI we are using.
6663  echo 'int i;' > conftest.$ac_ext
6664  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6665  (eval $ac_compile) 2>&5
6666  ac_status=$?
6667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6668  (exit $ac_status); }; then
6669    case `/usr/bin/file conftest.o` in
6670    *64-bit*)
6671      case $lt_cv_prog_gnu_ld in
6672      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6673      *)    LD="${LD-ld} -64" ;;
6674      esac
6675      ;;
6676    esac
6677  fi
6678  rm -rf conftest*
6679  ;;
6680
6681
6682esac
6683
6684need_locks="$enable_libtool_lock"
6685
6686
6687ac_ext=c
6688ac_cpp='$CPP $CPPFLAGS'
6689ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6690ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6691ac_compiler_gnu=$ac_cv_c_compiler_gnu
6692echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6693echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6694# On Suns, sometimes $CPP names a directory.
6695if test -n "$CPP" && test -d "$CPP"; then
6696  CPP=
6697fi
6698if test -z "$CPP"; then
6699  if test "${ac_cv_prog_CPP+set}" = set; then
6700  echo $ECHO_N "(cached) $ECHO_C" >&6
6701else
6702      # Double quotes because CPP needs to be expanded
6703    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6704    do
6705      ac_preproc_ok=false
6706for ac_c_preproc_warn_flag in '' yes
6707do
6708  # Use a header file that comes with gcc, so configuring glibc
6709  # with a fresh cross-compiler works.
6710  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6711  # <limits.h> exists even on freestanding compilers.
6712  # On the NeXT, cc -E runs the code through the compiler's parser,
6713  # not just through cpp. "Syntax error" is here to catch this case.
6714  cat >conftest.$ac_ext <<_ACEOF
6715/* confdefs.h.  */
6716_ACEOF
6717cat confdefs.h >>conftest.$ac_ext
6718cat >>conftest.$ac_ext <<_ACEOF
6719/* end confdefs.h.  */
6720#ifdef __STDC__
6721# include <limits.h>
6722#else
6723# include <assert.h>
6724#endif
6725                     Syntax error
6726_ACEOF
6727if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6728  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6729  ac_status=$?
6730  grep -v '^ *+' conftest.er1 >conftest.err
6731  rm -f conftest.er1
6732  cat conftest.err >&5
6733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6734  (exit $ac_status); } >/dev/null; then
6735  if test -s conftest.err; then
6736    ac_cpp_err=$ac_c_preproc_warn_flag
6737    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6738  else
6739    ac_cpp_err=
6740  fi
6741else
6742  ac_cpp_err=yes
6743fi
6744if test -z "$ac_cpp_err"; then
6745  :
6746else
6747  echo "$as_me: failed program was:" >&5
6748sed 's/^/| /' conftest.$ac_ext >&5
6749
6750  # Broken: fails on valid input.
6751continue
6752fi
6753rm -f conftest.err conftest.$ac_ext
6754
6755  # OK, works on sane cases.  Now check whether non-existent headers
6756  # can be detected and how.
6757  cat >conftest.$ac_ext <<_ACEOF
6758/* confdefs.h.  */
6759_ACEOF
6760cat confdefs.h >>conftest.$ac_ext
6761cat >>conftest.$ac_ext <<_ACEOF
6762/* end confdefs.h.  */
6763#include <ac_nonexistent.h>
6764_ACEOF
6765if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6766  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6767  ac_status=$?
6768  grep -v '^ *+' conftest.er1 >conftest.err
6769  rm -f conftest.er1
6770  cat conftest.err >&5
6771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6772  (exit $ac_status); } >/dev/null; then
6773  if test -s conftest.err; then
6774    ac_cpp_err=$ac_c_preproc_warn_flag
6775    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6776  else
6777    ac_cpp_err=
6778  fi
6779else
6780  ac_cpp_err=yes
6781fi
6782if test -z "$ac_cpp_err"; then
6783  # Broken: success on invalid input.
6784continue
6785else
6786  echo "$as_me: failed program was:" >&5
6787sed 's/^/| /' conftest.$ac_ext >&5
6788
6789  # Passes both tests.
6790ac_preproc_ok=:
6791break
6792fi
6793rm -f conftest.err conftest.$ac_ext
6794
6795done
6796# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6797rm -f conftest.err conftest.$ac_ext
6798if $ac_preproc_ok; then
6799  break
6800fi
6801
6802    done
6803    ac_cv_prog_CPP=$CPP
6804
6805fi
6806  CPP=$ac_cv_prog_CPP
6807else
6808  ac_cv_prog_CPP=$CPP
6809fi
6810echo "$as_me:$LINENO: result: $CPP" >&5
6811echo "${ECHO_T}$CPP" >&6
6812ac_preproc_ok=false
6813for ac_c_preproc_warn_flag in '' yes
6814do
6815  # Use a header file that comes with gcc, so configuring glibc
6816  # with a fresh cross-compiler works.
6817  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6818  # <limits.h> exists even on freestanding compilers.
6819  # On the NeXT, cc -E runs the code through the compiler's parser,
6820  # not just through cpp. "Syntax error" is here to catch this case.
6821  cat >conftest.$ac_ext <<_ACEOF
6822/* confdefs.h.  */
6823_ACEOF
6824cat confdefs.h >>conftest.$ac_ext
6825cat >>conftest.$ac_ext <<_ACEOF
6826/* end confdefs.h.  */
6827#ifdef __STDC__
6828# include <limits.h>
6829#else
6830# include <assert.h>
6831#endif
6832                     Syntax error
6833_ACEOF
6834if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6835  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6836  ac_status=$?
6837  grep -v '^ *+' conftest.er1 >conftest.err
6838  rm -f conftest.er1
6839  cat conftest.err >&5
6840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6841  (exit $ac_status); } >/dev/null; then
6842  if test -s conftest.err; then
6843    ac_cpp_err=$ac_c_preproc_warn_flag
6844    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6845  else
6846    ac_cpp_err=
6847  fi
6848else
6849  ac_cpp_err=yes
6850fi
6851if test -z "$ac_cpp_err"; then
6852  :
6853else
6854  echo "$as_me: failed program was:" >&5
6855sed 's/^/| /' conftest.$ac_ext >&5
6856
6857  # Broken: fails on valid input.
6858continue
6859fi
6860rm -f conftest.err conftest.$ac_ext
6861
6862  # OK, works on sane cases.  Now check whether non-existent headers
6863  # can be detected and how.
6864  cat >conftest.$ac_ext <<_ACEOF
6865/* confdefs.h.  */
6866_ACEOF
6867cat confdefs.h >>conftest.$ac_ext
6868cat >>conftest.$ac_ext <<_ACEOF
6869/* end confdefs.h.  */
6870#include <ac_nonexistent.h>
6871_ACEOF
6872if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6873  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6874  ac_status=$?
6875  grep -v '^ *+' conftest.er1 >conftest.err
6876  rm -f conftest.er1
6877  cat conftest.err >&5
6878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6879  (exit $ac_status); } >/dev/null; then
6880  if test -s conftest.err; then
6881    ac_cpp_err=$ac_c_preproc_warn_flag
6882    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6883  else
6884    ac_cpp_err=
6885  fi
6886else
6887  ac_cpp_err=yes
6888fi
6889if test -z "$ac_cpp_err"; then
6890  # Broken: success on invalid input.
6891continue
6892else
6893  echo "$as_me: failed program was:" >&5
6894sed 's/^/| /' conftest.$ac_ext >&5
6895
6896  # Passes both tests.
6897ac_preproc_ok=:
6898break
6899fi
6900rm -f conftest.err conftest.$ac_ext
6901
6902done
6903# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6904rm -f conftest.err conftest.$ac_ext
6905if $ac_preproc_ok; then
6906  :
6907else
6908  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6909See \`config.log' for more details." >&5
6910echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6911See \`config.log' for more details." >&2;}
6912   { (exit 1); exit 1; }; }
6913fi
6914
6915ac_ext=c
6916ac_cpp='$CPP $CPPFLAGS'
6917ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6918ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6919ac_compiler_gnu=$ac_cv_c_compiler_gnu
6920
6921
6922echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6923echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6924if test "${ac_cv_header_stdc+set}" = set; then
6925  echo $ECHO_N "(cached) $ECHO_C" >&6
6926else
6927  cat >conftest.$ac_ext <<_ACEOF
6928/* confdefs.h.  */
6929_ACEOF
6930cat confdefs.h >>conftest.$ac_ext
6931cat >>conftest.$ac_ext <<_ACEOF
6932/* end confdefs.h.  */
6933#include <stdlib.h>
6934#include <stdarg.h>
6935#include <string.h>
6936#include <float.h>
6937
6938int
6939main ()
6940{
6941
6942  ;
6943  return 0;
6944}
6945_ACEOF
6946rm -f conftest.$ac_objext
6947if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6948  (eval $ac_compile) 2>conftest.er1
6949  ac_status=$?
6950  grep -v '^ *+' conftest.er1 >conftest.err
6951  rm -f conftest.er1
6952  cat conftest.err >&5
6953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954  (exit $ac_status); } &&
6955         { ac_try='test -z "$ac_c_werror_flag"
6956                         || test ! -s conftest.err'
6957  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6958  (eval $ac_try) 2>&5
6959  ac_status=$?
6960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961  (exit $ac_status); }; } &&
6962         { ac_try='test -s conftest.$ac_objext'
6963  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6964  (eval $ac_try) 2>&5
6965  ac_status=$?
6966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6967  (exit $ac_status); }; }; then
6968  ac_cv_header_stdc=yes
6969else
6970  echo "$as_me: failed program was:" >&5
6971sed 's/^/| /' conftest.$ac_ext >&5
6972
6973ac_cv_header_stdc=no
6974fi
6975rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6976
6977if test $ac_cv_header_stdc = yes; then
6978  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6979  cat >conftest.$ac_ext <<_ACEOF
6980/* confdefs.h.  */
6981_ACEOF
6982cat confdefs.h >>conftest.$ac_ext
6983cat >>conftest.$ac_ext <<_ACEOF
6984/* end confdefs.h.  */
6985#include <string.h>
6986
6987_ACEOF
6988if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6989  $EGREP "memchr" >/dev/null 2>&1; then
6990  :
6991else
6992  ac_cv_header_stdc=no
6993fi
6994rm -f conftest*
6995
6996fi
6997
6998if test $ac_cv_header_stdc = yes; then
6999  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7000  cat >conftest.$ac_ext <<_ACEOF
7001/* confdefs.h.  */
7002_ACEOF
7003cat confdefs.h >>conftest.$ac_ext
7004cat >>conftest.$ac_ext <<_ACEOF
7005/* end confdefs.h.  */
7006#include <stdlib.h>
7007
7008_ACEOF
7009if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7010  $EGREP "free" >/dev/null 2>&1; then
7011  :
7012else
7013  ac_cv_header_stdc=no
7014fi
7015rm -f conftest*
7016
7017fi
7018
7019if test $ac_cv_header_stdc = yes; then
7020  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7021  if test "$cross_compiling" = yes; then
7022  :
7023else
7024  cat >conftest.$ac_ext <<_ACEOF
7025/* confdefs.h.  */
7026_ACEOF
7027cat confdefs.h >>conftest.$ac_ext
7028cat >>conftest.$ac_ext <<_ACEOF
7029/* end confdefs.h.  */
7030#include <ctype.h>
7031#if ((' ' & 0x0FF) == 0x020)
7032# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7033# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7034#else
7035# define ISLOWER(c) \
7036                   (('a' <= (c) && (c) <= 'i') \
7037                     || ('j' <= (c) && (c) <= 'r') \
7038                     || ('s' <= (c) && (c) <= 'z'))
7039# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7040#endif
7041
7042#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7043int
7044main ()
7045{
7046  int i;
7047  for (i = 0; i < 256; i++)
7048    if (XOR (islower (i), ISLOWER (i))
7049        || toupper (i) != TOUPPER (i))
7050      exit(2);
7051  exit (0);
7052}
7053_ACEOF
7054rm -f conftest$ac_exeext
7055if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7056  (eval $ac_link) 2>&5
7057  ac_status=$?
7058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7060  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7061  (eval $ac_try) 2>&5
7062  ac_status=$?
7063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064  (exit $ac_status); }; }; then
7065  :
7066else
7067  echo "$as_me: program exited with status $ac_status" >&5
7068echo "$as_me: failed program was:" >&5
7069sed 's/^/| /' conftest.$ac_ext >&5
7070
7071( exit $ac_status )
7072ac_cv_header_stdc=no
7073fi
7074rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7075fi
7076fi
7077fi
7078echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7079echo "${ECHO_T}$ac_cv_header_stdc" >&6
7080if test $ac_cv_header_stdc = yes; then
7081
7082cat >>confdefs.h <<\_ACEOF
7083#define STDC_HEADERS 1
7084_ACEOF
7085
7086fi
7087
7088# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7099                  inttypes.h stdint.h unistd.h
7100do
7101as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7102echo "$as_me:$LINENO: checking for $ac_header" >&5
7103echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7104if eval "test \"\${$as_ac_Header+set}\" = set"; then
7105  echo $ECHO_N "(cached) $ECHO_C" >&6
7106else
7107  cat >conftest.$ac_ext <<_ACEOF
7108/* confdefs.h.  */
7109_ACEOF
7110cat confdefs.h >>conftest.$ac_ext
7111cat >>conftest.$ac_ext <<_ACEOF
7112/* end confdefs.h.  */
7113$ac_includes_default
7114
7115#include <$ac_header>
7116_ACEOF
7117rm -f conftest.$ac_objext
7118if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7119  (eval $ac_compile) 2>conftest.er1
7120  ac_status=$?
7121  grep -v '^ *+' conftest.er1 >conftest.err
7122  rm -f conftest.er1
7123  cat conftest.err >&5
7124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7125  (exit $ac_status); } &&
7126         { ac_try='test -z "$ac_c_werror_flag"
7127                         || test ! -s conftest.err'
7128  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7129  (eval $ac_try) 2>&5
7130  ac_status=$?
7131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7132  (exit $ac_status); }; } &&
7133         { ac_try='test -s conftest.$ac_objext'
7134  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7135  (eval $ac_try) 2>&5
7136  ac_status=$?
7137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7138  (exit $ac_status); }; }; then
7139  eval "$as_ac_Header=yes"
7140else
7141  echo "$as_me: failed program was:" >&5
7142sed 's/^/| /' conftest.$ac_ext >&5
7143
7144eval "$as_ac_Header=no"
7145fi
7146rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7147fi
7148echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7149echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7150if test `eval echo '${'$as_ac_Header'}'` = yes; then
7151  cat >>confdefs.h <<_ACEOF
7152#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7153_ACEOF
7154
7155fi
7156
7157done
7158
7159
7160
7161for ac_header in dlfcn.h
7162do
7163as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7164if eval "test \"\${$as_ac_Header+set}\" = set"; then
7165  echo "$as_me:$LINENO: checking for $ac_header" >&5
7166echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7167if eval "test \"\${$as_ac_Header+set}\" = set"; then
7168  echo $ECHO_N "(cached) $ECHO_C" >&6
7169fi
7170echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7171echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7172else
7173  # Is the header compilable?
7174echo "$as_me:$LINENO: checking $ac_header usability" >&5
7175echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7176cat >conftest.$ac_ext <<_ACEOF
7177/* confdefs.h.  */
7178_ACEOF
7179cat confdefs.h >>conftest.$ac_ext
7180cat >>conftest.$ac_ext <<_ACEOF
7181/* end confdefs.h.  */
7182$ac_includes_default
7183#include <$ac_header>
7184_ACEOF
7185rm -f conftest.$ac_objext
7186if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7187  (eval $ac_compile) 2>conftest.er1
7188  ac_status=$?
7189  grep -v '^ *+' conftest.er1 >conftest.err
7190  rm -f conftest.er1
7191  cat conftest.err >&5
7192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7193  (exit $ac_status); } &&
7194         { ac_try='test -z "$ac_c_werror_flag"
7195                         || test ! -s conftest.err'
7196  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7197  (eval $ac_try) 2>&5
7198  ac_status=$?
7199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7200  (exit $ac_status); }; } &&
7201         { ac_try='test -s conftest.$ac_objext'
7202  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7203  (eval $ac_try) 2>&5
7204  ac_status=$?
7205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206  (exit $ac_status); }; }; then
7207  ac_header_compiler=yes
7208else
7209  echo "$as_me: failed program was:" >&5
7210sed 's/^/| /' conftest.$ac_ext >&5
7211
7212ac_header_compiler=no
7213fi
7214rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7215echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7216echo "${ECHO_T}$ac_header_compiler" >&6
7217
7218# Is the header present?
7219echo "$as_me:$LINENO: checking $ac_header presence" >&5
7220echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7221cat >conftest.$ac_ext <<_ACEOF
7222/* confdefs.h.  */
7223_ACEOF
7224cat confdefs.h >>conftest.$ac_ext
7225cat >>conftest.$ac_ext <<_ACEOF
7226/* end confdefs.h.  */
7227#include <$ac_header>
7228_ACEOF
7229if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7230  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7231  ac_status=$?
7232  grep -v '^ *+' conftest.er1 >conftest.err
7233  rm -f conftest.er1
7234  cat conftest.err >&5
7235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236  (exit $ac_status); } >/dev/null; then
7237  if test -s conftest.err; then
7238    ac_cpp_err=$ac_c_preproc_warn_flag
7239    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7240  else
7241    ac_cpp_err=
7242  fi
7243else
7244  ac_cpp_err=yes
7245fi
7246if test -z "$ac_cpp_err"; then
7247  ac_header_preproc=yes
7248else
7249  echo "$as_me: failed program was:" >&5
7250sed 's/^/| /' conftest.$ac_ext >&5
7251
7252  ac_header_preproc=no
7253fi
7254rm -f conftest.err conftest.$ac_ext
7255echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7256echo "${ECHO_T}$ac_header_preproc" >&6
7257
7258# So?  What about this header?
7259case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7260  yes:no: )
7261    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7262echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7263    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7264echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7265    ac_header_preproc=yes
7266    ;;
7267  no:yes:* )
7268    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7269echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7270    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7271echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7272    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7273echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7274    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7275echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7276    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7277echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7278    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7279echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7280    (
7281      cat <<\_ASBOX
7282## ----------------------------------------- ##
7283## Report this to coin-cbc@lists.coin-or.org ##
7284## ----------------------------------------- ##
7285_ASBOX
7286    ) |
7287      sed "s/^/$as_me: WARNING:     /" >&2
7288    ;;
7289esac
7290echo "$as_me:$LINENO: checking for $ac_header" >&5
7291echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7292if eval "test \"\${$as_ac_Header+set}\" = set"; then
7293  echo $ECHO_N "(cached) $ECHO_C" >&6
7294else
7295  eval "$as_ac_Header=\$ac_header_preproc"
7296fi
7297echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7298echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7299
7300fi
7301if test `eval echo '${'$as_ac_Header'}'` = yes; then
7302  cat >>confdefs.h <<_ACEOF
7303#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7304_ACEOF
7305
7306fi
7307
7308done
7309
7310
7311
7312if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7313    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7314    (test "X$CXX" != "Xg++"))) ; then
7315  ac_ext=cc
7316ac_cpp='$CXXCPP $CPPFLAGS'
7317ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7318ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7319ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7320echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7321echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7322if test -z "$CXXCPP"; then
7323  if test "${ac_cv_prog_CXXCPP+set}" = set; then
7324  echo $ECHO_N "(cached) $ECHO_C" >&6
7325else
7326      # Double quotes because CXXCPP needs to be expanded
7327    for CXXCPP in "$CXX -E" "/lib/cpp"
7328    do
7329      ac_preproc_ok=false
7330for ac_cxx_preproc_warn_flag in '' yes
7331do
7332  # Use a header file that comes with gcc, so configuring glibc
7333  # with a fresh cross-compiler works.
7334  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7335  # <limits.h> exists even on freestanding compilers.
7336  # On the NeXT, cc -E runs the code through the compiler's parser,
7337  # not just through cpp. "Syntax error" is here to catch this case.
7338  cat >conftest.$ac_ext <<_ACEOF
7339/* confdefs.h.  */
7340_ACEOF
7341cat confdefs.h >>conftest.$ac_ext
7342cat >>conftest.$ac_ext <<_ACEOF
7343/* end confdefs.h.  */
7344#ifdef __STDC__
7345# include <limits.h>
7346#else
7347# include <assert.h>
7348#endif
7349                     Syntax error
7350_ACEOF
7351if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7352  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7353  ac_status=$?
7354  grep -v '^ *+' conftest.er1 >conftest.err
7355  rm -f conftest.er1
7356  cat conftest.err >&5
7357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7358  (exit $ac_status); } >/dev/null; then
7359  if test -s conftest.err; then
7360    ac_cpp_err=$ac_cxx_preproc_warn_flag
7361    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7362  else
7363    ac_cpp_err=
7364  fi
7365else
7366  ac_cpp_err=yes
7367fi
7368if test -z "$ac_cpp_err"; then
7369  :
7370else
7371  echo "$as_me: failed program was:" >&5
7372sed 's/^/| /' conftest.$ac_ext >&5
7373
7374  # Broken: fails on valid input.
7375continue
7376fi
7377rm -f conftest.err conftest.$ac_ext
7378
7379  # OK, works on sane cases.  Now check whether non-existent headers
7380  # can be detected and how.
7381  cat >conftest.$ac_ext <<_ACEOF
7382/* confdefs.h.  */
7383_ACEOF
7384cat confdefs.h >>conftest.$ac_ext
7385cat >>conftest.$ac_ext <<_ACEOF
7386/* end confdefs.h.  */
7387#include <ac_nonexistent.h>
7388_ACEOF
7389if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7390  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7391  ac_status=$?
7392  grep -v '^ *+' conftest.er1 >conftest.err
7393  rm -f conftest.er1
7394  cat conftest.err >&5
7395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396  (exit $ac_status); } >/dev/null; then
7397  if test -s conftest.err; then
7398    ac_cpp_err=$ac_cxx_preproc_warn_flag
7399    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7400  else
7401    ac_cpp_err=
7402  fi
7403else
7404  ac_cpp_err=yes
7405fi
7406if test -z "$ac_cpp_err"; then
7407  # Broken: success on invalid input.
7408continue
7409else
7410  echo "$as_me: failed program was:" >&5
7411sed 's/^/| /' conftest.$ac_ext >&5
7412
7413  # Passes both tests.
7414ac_preproc_ok=:
7415break
7416fi
7417rm -f conftest.err conftest.$ac_ext
7418
7419done
7420# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7421rm -f conftest.err conftest.$ac_ext
7422if $ac_preproc_ok; then
7423  break
7424fi
7425
7426    done
7427    ac_cv_prog_CXXCPP=$CXXCPP
7428
7429fi
7430  CXXCPP=$ac_cv_prog_CXXCPP
7431else
7432  ac_cv_prog_CXXCPP=$CXXCPP
7433fi
7434echo "$as_me:$LINENO: result: $CXXCPP" >&5
7435echo "${ECHO_T}$CXXCPP" >&6
7436ac_preproc_ok=false
7437for ac_cxx_preproc_warn_flag in '' yes
7438do
7439  # Use a header file that comes with gcc, so configuring glibc
7440  # with a fresh cross-compiler works.
7441  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7442  # <limits.h> exists even on freestanding compilers.
7443  # On the NeXT, cc -E runs the code through the compiler's parser,
7444  # not just through cpp. "Syntax error" is here to catch this case.
7445  cat >conftest.$ac_ext <<_ACEOF
7446/* confdefs.h.  */
7447_ACEOF
7448cat confdefs.h >>conftest.$ac_ext
7449cat >>conftest.$ac_ext <<_ACEOF
7450/* end confdefs.h.  */
7451#ifdef __STDC__
7452# include <limits.h>
7453#else
7454# include <assert.h>
7455#endif
7456                     Syntax error
7457_ACEOF
7458if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7459  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7460  ac_status=$?
7461  grep -v '^ *+' conftest.er1 >conftest.err
7462  rm -f conftest.er1
7463  cat conftest.err >&5
7464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7465  (exit $ac_status); } >/dev/null; then
7466  if test -s conftest.err; then
7467    ac_cpp_err=$ac_cxx_preproc_warn_flag
7468    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7469  else
7470    ac_cpp_err=
7471  fi
7472else
7473  ac_cpp_err=yes
7474fi
7475if test -z "$ac_cpp_err"; then
7476  :
7477else
7478  echo "$as_me: failed program was:" >&5
7479sed 's/^/| /' conftest.$ac_ext >&5
7480
7481  # Broken: fails on valid input.
7482continue
7483fi
7484rm -f conftest.err conftest.$ac_ext
7485
7486  # OK, works on sane cases.  Now check whether non-existent headers
7487  # can be detected and how.
7488  cat >conftest.$ac_ext <<_ACEOF
7489/* confdefs.h.  */
7490_ACEOF
7491cat confdefs.h >>conftest.$ac_ext
7492cat >>conftest.$ac_ext <<_ACEOF
7493/* end confdefs.h.  */
7494#include <ac_nonexistent.h>
7495_ACEOF
7496if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7497  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7498  ac_status=$?
7499  grep -v '^ *+' conftest.er1 >conftest.err
7500  rm -f conftest.er1
7501  cat conftest.err >&5
7502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7503  (exit $ac_status); } >/dev/null; then
7504  if test -s conftest.err; then
7505    ac_cpp_err=$ac_cxx_preproc_warn_flag
7506    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7507  else
7508    ac_cpp_err=
7509  fi
7510else
7511  ac_cpp_err=yes
7512fi
7513if test -z "$ac_cpp_err"; then
7514  # Broken: success on invalid input.
7515continue
7516else
7517  echo "$as_me: failed program was:" >&5
7518sed 's/^/| /' conftest.$ac_ext >&5
7519
7520  # Passes both tests.
7521ac_preproc_ok=:
7522break
7523fi
7524rm -f conftest.err conftest.$ac_ext
7525
7526done
7527# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7528rm -f conftest.err conftest.$ac_ext
7529if $ac_preproc_ok; then
7530  :
7531else
7532  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7533See \`config.log' for more details." >&5
7534echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7535See \`config.log' for more details." >&2;}
7536   { (exit 1); exit 1; }; }
7537fi
7538
7539ac_ext=cc
7540ac_cpp='$CXXCPP $CPPFLAGS'
7541ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7542ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7543ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7544
7545fi
7546
7547
7548# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7549
7550# find the maximum length of command line arguments
7551echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7552echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7553if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7554  echo $ECHO_N "(cached) $ECHO_C" >&6
7555else
7556    i=0
7557  teststring="ABCD"
7558
7559  case $build_os in
7560  msdosdjgpp*)
7561    # On DJGPP, this test can blow up pretty badly due to problems in libc
7562    # (any single argument exceeding 2000 bytes causes a buffer overrun
7563    # during glob expansion).  Even if it were fixed, the result of this
7564    # check would be larger than it should be.
7565    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7566    ;;
7567
7568  gnu*)
7569    # Under GNU Hurd, this test is not required because there is
7570    # no limit to the length of command line arguments.
7571    # Libtool will interpret -1 as no limit whatsoever
7572    lt_cv_sys_max_cmd_len=-1;
7573    ;;
7574
7575  cygwin* | mingw*)
7576    # On Win9x/ME, this test blows up -- it succeeds, but takes
7577    # about 5 minutes as the teststring grows exponentially.
7578    # Worse, since 9x/ME are not pre-emptively multitasking,
7579    # you end up with a "frozen" computer, even though with patience
7580    # the test eventually succeeds (with a max line length of 256k).
7581    # Instead, let's just punt: use the minimum linelength reported by
7582    # all of the supported platforms: 8192 (on NT/2K/XP).
7583    lt_cv_sys_max_cmd_len=8192;
7584    ;;
7585
7586  amigaos*)
7587    # On AmigaOS with pdksh, this test takes hours, literally.
7588    # So we just punt and use a minimum line length of 8192.
7589    lt_cv_sys_max_cmd_len=8192;
7590    ;;
7591
7592  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7593    # This has been around since 386BSD, at least.  Likely further.
7594    if test -x /sbin/sysctl; then
7595      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7596    elif test -x /usr/sbin/sysctl; then
7597      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7598    else
7599      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7600    fi
7601    # And add a safety zone
7602    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7603    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7604    ;;
7605
7606  interix*)
7607    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7608    lt_cv_sys_max_cmd_len=196608
7609    ;;
7610
7611  osf*)
7612    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7613    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7614    # nice to cause kernel panics so lets avoid the loop below.
7615    # First set a reasonable default.
7616    lt_cv_sys_max_cmd_len=16384
7617    #
7618    if test -x /sbin/sysconfig; then
7619      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7620        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7621      esac
7622    fi
7623    ;;
7624  sco3.2v5*)
7625    lt_cv_sys_max_cmd_len=102400
7626    ;;
7627  sysv5* | sco5v6* | sysv4.2uw2*)
7628    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7629    if test -n "$kargmax"; then
7630      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7631    else
7632      lt_cv_sys_max_cmd_len=32768
7633    fi
7634    ;;
7635  *)
7636    # If test is not a shell built-in, we'll probably end up computing a
7637    # maximum length that is only half of the actual maximum length, but
7638    # we can't tell.
7639    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7640    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7641               = "XX$teststring") >/dev/null 2>&1 &&
7642            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7643            lt_cv_sys_max_cmd_len=$new_result &&
7644            test $i != 17 # 1/2 MB should be enough
7645    do
7646      i=`expr $i + 1`
7647      teststring=$teststring$teststring
7648    done
7649    teststring=
7650    # Add a significant safety factor because C++ compilers can tack on massive
7651    # amounts of additional arguments before passing them to the linker.
7652    # It appears as though 1/2 is a usable value.
7653    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7654    ;;
7655  esac
7656
7657fi
7658
7659if test -n $lt_cv_sys_max_cmd_len ; then
7660  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7661echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7662else
7663  echo "$as_me:$LINENO: result: none" >&5
7664echo "${ECHO_T}none" >&6
7665fi
7666
7667
7668
7669
7670# Check for command to grab the raw symbol name followed by C symbol from nm.
7671echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7672echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7673if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7674  echo $ECHO_N "(cached) $ECHO_C" >&6
7675else
7676
7677# These are sane defaults that work on at least a few old systems.
7678# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7679
7680# Character class describing NM global symbol codes.
7681symcode='[BCDEGRST]'
7682
7683# Regexp to match symbols that can be accessed directly from C.
7684sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7685
7686# Transform an extracted symbol line into a proper C declaration
7687lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7688
7689# Transform an extracted symbol line into symbol name and symbol address
7690lt_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'"
7691
7692# Define system-specific variables.
7693case $host_os in
7694aix*)
7695  symcode='[BCDT]'
7696  ;;
7697cygwin* | mingw* | pw32*)
7698  symcode='[ABCDGISTW]'
7699  ;;
7700hpux*) # Its linker distinguishes data from code symbols
7701  if test "$host_cpu" = ia64; then
7702    symcode='[ABCDEGRST]'
7703  fi
7704  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7705  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'"
7706  ;;
7707linux*)
7708  if test "$host_cpu" = ia64; then
7709    symcode='[ABCDGIRSTW]'
7710    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7711    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'"
7712  fi
7713  ;;
7714irix* | nonstopux*)
7715  symcode='[BCDEGRST]'
7716  ;;
7717osf*)
7718  symcode='[BCDEGQRST]'
7719  ;;
7720solaris*)
7721  symcode='[BDRT]'
7722  ;;
7723sco3.2v5*)
7724  symcode='[DT]'
7725  ;;
7726sysv4.2uw2*)
7727  symcode='[DT]'
7728  ;;
7729sysv5* | sco5v6* | unixware* | OpenUNIX*)
7730  symcode='[ABDT]'
7731  ;;
7732sysv4)
7733  symcode='[DFNSTU]'
7734  ;;
7735esac
7736
7737# Handle CRLF in mingw tool chain
7738opt_cr=
7739case $build_os in
7740mingw*)
7741  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7742  ;;
7743esac
7744
7745# If we're using GNU nm, then use its standard symbol codes.
7746case `$NM -V 2>&1` in
7747*GNU* | *'with BFD'*)
7748  symcode='[ABCDGIRSTW]' ;;
7749esac
7750
7751# Try without a prefix undercore, then with it.
7752for ac_symprfx in "" "_"; do
7753
7754  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7755  symxfrm="\\1 $ac_symprfx\\2 \\2"
7756
7757  # Write the raw and C identifiers.
7758  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7759
7760  # Check to see that the pipe works correctly.
7761  pipe_works=no
7762
7763  rm -f conftest*
7764  cat > conftest.$ac_ext <<EOF
7765#ifdef __cplusplus
7766extern "C" {
7767#endif
7768char nm_test_var;
7769void nm_test_func(){}
7770#ifdef __cplusplus
7771}
7772#endif
7773int main(){nm_test_var='a';nm_test_func();return(0);}
7774EOF
7775
7776  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7777  (eval $ac_compile) 2>&5
7778  ac_status=$?
7779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780  (exit $ac_status); }; then
7781    # Now try to grab the symbols.
7782    nlist=conftest.nm
7783    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7784  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7785  ac_status=$?
7786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7787  (exit $ac_status); } && test -s "$nlist"; then
7788      # Try sorting and uniquifying the output.
7789      if sort "$nlist" | uniq > "$nlist"T; then
7790        mv -f "$nlist"T "$nlist"
7791      else
7792        rm -f "$nlist"T
7793      fi
7794
7795      # Make sure that we snagged all the symbols we need.
7796      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7797        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7798          cat <<EOF > conftest.$ac_ext
7799#ifdef __cplusplus
7800extern "C" {
7801#endif
7802
7803EOF
7804          # Now generate the symbol file.
7805          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7806
7807          cat <<EOF >> conftest.$ac_ext
7808#if defined (__STDC__) && __STDC__
7809# define lt_ptr_t void *
7810#else
7811# define lt_ptr_t char *
7812# define const
7813#endif
7814
7815/* The mapping between symbol names and symbols. */
7816const struct {
7817  const char *name;
7818  lt_ptr_t address;
7819}
7820lt_preloaded_symbols[] =
7821{
7822EOF
7823          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7824          cat <<\EOF >> conftest.$ac_ext
7825  {0, (lt_ptr_t) 0}
7826};
7827
7828#ifdef __cplusplus
7829}
7830#endif
7831EOF
7832          # Now try linking the two files.
7833          mv conftest.$ac_objext conftstm.$ac_objext
7834          lt_save_LIBS="$LIBS"
7835          lt_save_CFLAGS="$CFLAGS"
7836          LIBS="conftstm.$ac_objext"
7837          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7838          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7839  (eval $ac_link) 2>&5
7840  ac_status=$?
7841  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7843            pipe_works=yes
7844          fi
7845          LIBS="$lt_save_LIBS"
7846          CFLAGS="$lt_save_CFLAGS"
7847        else
7848          echo "cannot find nm_test_func in $nlist" >&5
7849        fi
7850      else
7851        echo "cannot find nm_test_var in $nlist" >&5
7852      fi
7853    else
7854      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7855    fi
7856  else
7857    echo "$progname: failed program was:" >&5
7858    cat conftest.$ac_ext >&5
7859  fi
7860  rm -f conftest* conftst*
7861
7862  # Do not use the global_symbol_pipe unless it works.
7863  if test "$pipe_works" = yes; then
7864    break
7865  else
7866    lt_cv_sys_global_symbol_pipe=
7867  fi
7868done
7869
7870fi
7871
7872if test -z "$lt_cv_sys_global_symbol_pipe"; then
7873  lt_cv_sys_global_symbol_to_cdecl=
7874fi
7875if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7876  echo "$as_me:$LINENO: result: failed" >&5
7877echo "${ECHO_T}failed" >&6
7878else
7879  echo "$as_me:$LINENO: result: ok" >&5
7880echo "${ECHO_T}ok" >&6
7881fi
7882
7883echo "$as_me:$LINENO: checking for objdir" >&5
7884echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7885if test "${lt_cv_objdir+set}" = set; then
7886  echo $ECHO_N "(cached) $ECHO_C" >&6
7887else
7888  rm -f .libs 2>/dev/null
7889mkdir .libs 2>/dev/null
7890if test -d .libs; then
7891  lt_cv_objdir=.libs
7892else
7893  # MS-DOS does not allow filenames that begin with a dot.
7894  lt_cv_objdir=_libs
7895fi
7896rmdir .libs 2>/dev/null
7897fi
7898echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7899echo "${ECHO_T}$lt_cv_objdir" >&6
7900objdir=$lt_cv_objdir
7901
7902
7903
7904
7905
7906case $host_os in
7907aix3*)
7908  # AIX sometimes has problems with the GCC collect2 program.  For some
7909  # reason, if we set the COLLECT_NAMES environment variable, the problems
7910  # vanish in a puff of smoke.
7911  if test "X${COLLECT_NAMES+set}" != Xset; then
7912    COLLECT_NAMES=
7913    export COLLECT_NAMES
7914  fi
7915  ;;
7916esac
7917
7918# Sed substitution that helps us do robust quoting.  It backslashifies
7919# metacharacters that are still active within double-quoted strings.
7920Xsed='sed -e 1s/^X//'
7921sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7922
7923# Same as above, but do not quote variable references.
7924double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7925
7926# Sed substitution to delay expansion of an escaped shell variable in a
7927# double_quote_subst'ed string.
7928delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7929
7930# Sed substitution to avoid accidental globbing in evaled expressions
7931no_glob_subst='s/\*/\\\*/g'
7932
7933# Constants:
7934rm="rm -f"
7935
7936# Global variables:
7937default_ofile=libtool
7938can_build_shared=yes
7939
7940# All known linkers require a `.a' archive for static linking (except MSVC,
7941# which needs '.lib').
7942libext=a
7943ltmain="$ac_aux_dir/ltmain.sh"
7944ofile="$default_ofile"
7945with_gnu_ld="$lt_cv_prog_gnu_ld"
7946
7947if test -n "$ac_tool_prefix"; then
7948  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7949set dummy ${ac_tool_prefix}ar; ac_word=$2
7950echo "$as_me:$LINENO: checking for $ac_word" >&5
7951echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7952if test "${ac_cv_prog_AR+set}" = set; then
7953  echo $ECHO_N "(cached) $ECHO_C" >&6
7954else
7955  if test -n "$AR"; then
7956  ac_cv_prog_AR="$AR" # Let the user override the test.
7957else
7958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7959for as_dir in $PATH
7960do
7961  IFS=$as_save_IFS
7962  test -z "$as_dir" && as_dir=.
7963  for ac_exec_ext in '' $ac_executable_extensions; do
7964  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7965    ac_cv_prog_AR="${ac_tool_prefix}ar"
7966    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7967    break 2
7968  fi
7969done
7970done
7971
7972fi
7973fi
7974AR=$ac_cv_prog_AR
7975if test -n "$AR"; then
7976  echo "$as_me:$LINENO: result: $AR" >&5
7977echo "${ECHO_T}$AR" >&6
7978else
7979  echo "$as_me:$LINENO: result: no" >&5
7980echo "${ECHO_T}no" >&6
7981fi
7982
7983fi
7984if test -z "$ac_cv_prog_AR"; then
7985  ac_ct_AR=$AR
7986  # Extract the first word of "ar", so it can be a program name with args.
7987set dummy ar; ac_word=$2
7988echo "$as_me:$LINENO: checking for $ac_word" >&5
7989echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7990if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7991  echo $ECHO_N "(cached) $ECHO_C" >&6
7992else
7993  if test -n "$ac_ct_AR"; then
7994  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7995else
7996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7997for as_dir in $PATH
7998do
7999  IFS=$as_save_IFS
8000  test -z "$as_dir" && as_dir=.
8001  for ac_exec_ext in '' $ac_executable_extensions; do
8002  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8003    ac_cv_prog_ac_ct_AR="ar"
8004    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8005    break 2
8006  fi
8007done
8008done
8009
8010  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
8011fi
8012fi
8013ac_ct_AR=$ac_cv_prog_ac_ct_AR
8014if test -n "$ac_ct_AR"; then
8015  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8016echo "${ECHO_T}$ac_ct_AR" >&6
8017else
8018  echo "$as_me:$LINENO: result: no" >&5
8019echo "${ECHO_T}no" >&6
8020fi
8021
8022  AR=$ac_ct_AR
8023else
8024  AR="$ac_cv_prog_AR"
8025fi
8026
8027if test -n "$ac_tool_prefix"; then
8028  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8029set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8030echo "$as_me:$LINENO: checking for $ac_word" >&5
8031echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8032if test "${ac_cv_prog_RANLIB+set}" = set; then
8033  echo $ECHO_N "(cached) $ECHO_C" >&6
8034else
8035  if test -n "$RANLIB"; then
8036  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8037else
8038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8039for as_dir in $PATH
8040do
8041  IFS=$as_save_IFS
8042  test -z "$as_dir" && as_dir=.
8043  for ac_exec_ext in '' $ac_executable_extensions; do
8044  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8045    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8046    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8047    break 2
8048  fi
8049done
8050done
8051
8052fi
8053fi
8054RANLIB=$ac_cv_prog_RANLIB
8055if test -n "$RANLIB"; then
8056  echo "$as_me:$LINENO: result: $RANLIB" >&5
8057echo "${ECHO_T}$RANLIB" >&6
8058else
8059  echo "$as_me:$LINENO: result: no" >&5
8060echo "${ECHO_T}no" >&6
8061fi
8062
8063fi
8064if test -z "$ac_cv_prog_RANLIB"; then
8065  ac_ct_RANLIB=$RANLIB
8066  # Extract the first word of "ranlib", so it can be a program name with args.
8067set dummy ranlib; ac_word=$2
8068echo "$as_me:$LINENO: checking for $ac_word" >&5
8069echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8070if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8071  echo $ECHO_N "(cached) $ECHO_C" >&6
8072else
8073  if test -n "$ac_ct_RANLIB"; then
8074  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8075else
8076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8077for as_dir in $PATH
8078do
8079  IFS=$as_save_IFS
8080  test -z "$as_dir" && as_dir=.
8081  for ac_exec_ext in '' $ac_executable_extensions; do
8082  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8083    ac_cv_prog_ac_ct_RANLIB="ranlib"
8084    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8085    break 2
8086  fi
8087done
8088done
8089
8090  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8091fi
8092fi
8093ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8094if test -n "$ac_ct_RANLIB"; then
8095  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8096echo "${ECHO_T}$ac_ct_RANLIB" >&6
8097else
8098  echo "$as_me:$LINENO: result: no" >&5
8099echo "${ECHO_T}no" >&6
8100fi
8101
8102  RANLIB=$ac_ct_RANLIB
8103else
8104  RANLIB="$ac_cv_prog_RANLIB"
8105fi
8106
8107if test -n "$ac_tool_prefix"; then
8108  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8109set dummy ${ac_tool_prefix}strip; ac_word=$2
8110echo "$as_me:$LINENO: checking for $ac_word" >&5
8111echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8112if test "${ac_cv_prog_STRIP+set}" = set; then
8113  echo $ECHO_N "(cached) $ECHO_C" >&6
8114else
8115  if test -n "$STRIP"; then
8116  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8117else
8118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8119for as_dir in $PATH
8120do
8121  IFS=$as_save_IFS
8122  test -z "$as_dir" && as_dir=.
8123  for ac_exec_ext in '' $ac_executable_extensions; do
8124  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8125    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8126    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8127    break 2
8128  fi
8129done
8130done
8131
8132fi
8133fi
8134STRIP=$ac_cv_prog_STRIP
8135if test -n "$STRIP"; then
8136  echo "$as_me:$LINENO: result: $STRIP" >&5
8137echo "${ECHO_T}$STRIP" >&6
8138else
8139  echo "$as_me:$LINENO: result: no" >&5
8140echo "${ECHO_T}no" >&6
8141fi
8142
8143fi
8144if test -z "$ac_cv_prog_STRIP"; then
8145  ac_ct_STRIP=$STRIP
8146  # Extract the first word of "strip", so it can be a program name with args.
8147set dummy strip; ac_word=$2
8148echo "$as_me:$LINENO: checking for $ac_word" >&5
8149echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8150if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8151  echo $ECHO_N "(cached) $ECHO_C" >&6
8152else
8153  if test -n "$ac_ct_STRIP"; then
8154  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8155else
8156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8157for as_dir in $PATH
8158do
8159  IFS=$as_save_IFS
8160  test -z "$as_dir" && as_dir=.
8161  for ac_exec_ext in '' $ac_executable_extensions; do
8162  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8163    ac_cv_prog_ac_ct_STRIP="strip"
8164    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8165    break 2
8166  fi
8167done
8168done
8169
8170  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8171fi
8172fi
8173ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8174if test -n "$ac_ct_STRIP"; then
8175  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8176echo "${ECHO_T}$ac_ct_STRIP" >&6
8177else
8178  echo "$as_me:$LINENO: result: no" >&5
8179echo "${ECHO_T}no" >&6
8180fi
8181
8182  STRIP=$ac_ct_STRIP
8183else
8184  STRIP="$ac_cv_prog_STRIP"
8185fi
8186
8187
8188old_CC="$CC"
8189old_CFLAGS="$CFLAGS"
8190
8191# Set sane defaults for various variables
8192test -z "$AR" && AR=ar
8193test -z "$AR_FLAGS" && AR_FLAGS=cru
8194test -z "$AS" && AS=as
8195test -z "$CC" && CC=cc
8196test -z "$LTCC" && LTCC=$CC
8197test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8198test -z "$DLLTOOL" && DLLTOOL=dlltool
8199test -z "$LD" && LD=ld
8200test -z "$LN_S" && LN_S="ln -s"
8201test -z "$MAGIC_CMD" && MAGIC_CMD=file
8202test -z "$NM" && NM=nm
8203test -z "$SED" && SED=sed
8204test -z "$OBJDUMP" && OBJDUMP=objdump
8205test -z "$RANLIB" && RANLIB=:
8206test -z "$STRIP" && STRIP=:
8207test -z "$ac_objext" && ac_objext=o
8208
8209# Determine commands to create old-style static archives.
8210old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8211old_postinstall_cmds='chmod 644 $oldlib'
8212old_postuninstall_cmds=
8213
8214if test -n "$RANLIB"; then
8215  case $host_os in
8216  openbsd*)
8217    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8218    ;;
8219  *)
8220    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8221    ;;
8222  esac
8223  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8224fi
8225
8226for cc_temp in $compiler""; do
8227  case $cc_temp in
8228    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8229    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8230    \-*) ;;
8231    *) break;;
8232  esac
8233done
8234cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8235
8236
8237# Only perform the check for file, if the check method requires it
8238case $deplibs_check_method in
8239file_magic*)
8240  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8241    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8242echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8243if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8244  echo $ECHO_N "(cached) $ECHO_C" >&6
8245else
8246  case $MAGIC_CMD in
8247[\\/*] |  ?:[\\/]*)
8248  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8249  ;;
8250*)
8251  lt_save_MAGIC_CMD="$MAGIC_CMD"
8252  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8253  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8254  for ac_dir in $ac_dummy; do
8255    IFS="$lt_save_ifs"
8256    test -z "$ac_dir" && ac_dir=.
8257    if test -f $ac_dir/${ac_tool_prefix}file; then
8258      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8259      if test -n "$file_magic_test_file"; then
8260        case $deplibs_check_method in
8261        "file_magic "*)
8262          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8263          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8264          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8265            $EGREP "$file_magic_regex" > /dev/null; then
8266            :
8267          else
8268            cat <<EOF 1>&2
8269
8270*** Warning: the command libtool uses to detect shared libraries,
8271*** $file_magic_cmd, produces output that libtool cannot recognize.
8272*** The result is that libtool may fail to recognize shared libraries
8273*** as such.  This will affect the creation of libtool libraries that
8274*** depend on shared libraries, but programs linked with such libtool
8275*** libraries will work regardless of this problem.  Nevertheless, you
8276*** may want to report the problem to your system manager and/or to
8277*** bug-libtool@gnu.org
8278
8279EOF
8280          fi ;;
8281        esac
8282      fi
8283      break
8284    fi
8285  done
8286  IFS="$lt_save_ifs"
8287  MAGIC_CMD="$lt_save_MAGIC_CMD"
8288  ;;
8289esac
8290fi
8291
8292MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8293if test -n "$MAGIC_CMD"; then
8294  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8295echo "${ECHO_T}$MAGIC_CMD" >&6
8296else
8297  echo "$as_me:$LINENO: result: no" >&5
8298echo "${ECHO_T}no" >&6
8299fi
8300
8301if test -z "$lt_cv_path_MAGIC_CMD"; then
8302  if test -n "$ac_tool_prefix"; then
8303    echo "$as_me:$LINENO: checking for file" >&5
8304echo $ECHO_N "checking for file... $ECHO_C" >&6
8305if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8306  echo $ECHO_N "(cached) $ECHO_C" >&6
8307else
8308  case $MAGIC_CMD in
8309[\\/*] |  ?:[\\/]*)
8310  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8311  ;;
8312*)
8313  lt_save_MAGIC_CMD="$MAGIC_CMD"
8314  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8315  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8316  for ac_dir in $ac_dummy; do
8317    IFS="$lt_save_ifs"
8318    test -z "$ac_dir" && ac_dir=.
8319    if test -f $ac_dir/file; then
8320      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8321      if test -n "$file_magic_test_file"; then
8322        case $deplibs_check_method in
8323        "file_magic "*)
8324          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8325          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8326          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8327            $EGREP "$file_magic_regex" > /dev/null; then
8328            :
8329          else
8330            cat <<EOF 1>&2
8331
8332*** Warning: the command libtool uses to detect shared libraries,
8333*** $file_magic_cmd, produces output that libtool cannot recognize.
8334*** The result is that libtool may fail to recognize shared libraries
8335*** as such.  This will affect the creation of libtool libraries that
8336*** depend on shared libraries, but programs linked with such libtool
8337*** libraries will work regardless of this problem.  Nevertheless, you
8338*** may want to report the problem to your system manager and/or to
8339*** bug-libtool@gnu.org
8340
8341EOF
8342          fi ;;
8343        esac
8344      fi
8345      break
8346    fi
8347  done
8348  IFS="$lt_save_ifs"
8349  MAGIC_CMD="$lt_save_MAGIC_CMD"
8350  ;;
8351esac
8352fi
8353
8354MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8355if test -n "$MAGIC_CMD"; then
8356  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8357echo "${ECHO_T}$MAGIC_CMD" >&6
8358else
8359  echo "$as_me:$LINENO: result: no" >&5
8360echo "${ECHO_T}no" >&6
8361fi
8362
8363  else
8364    MAGIC_CMD=:
8365  fi
8366fi
8367
8368  fi
8369  ;;
8370esac
8371
8372enable_dlopen=no
8373enable_win32_dll=no
8374
8375# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8376if test "${enable_libtool_lock+set}" = set; then
8377  enableval="$enable_libtool_lock"
8378
8379fi;
8380test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8381
8382
8383# Check whether --with-pic or --without-pic was given.
8384if test "${with_pic+set}" = set; then
8385  withval="$with_pic"
8386  pic_mode="$withval"
8387else
8388  pic_mode=default
8389fi;
8390test -z "$pic_mode" && pic_mode=default
8391
8392# Use C for the default configuration in the libtool script
8393tagname=
8394lt_save_CC="$CC"
8395ac_ext=c
8396ac_cpp='$CPP $CPPFLAGS'
8397ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8398ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8399ac_compiler_gnu=$ac_cv_c_compiler_gnu
8400
8401
8402# Source file extension for C test sources.
8403ac_ext=c
8404
8405# Object file extension for compiled C test sources.
8406objext=o
8407objext=$objext
8408
8409# Code to be used in simple compile tests
8410lt_simple_compile_test_code="int some_variable = 0;\n"
8411
8412# Code to be used in simple link tests
8413lt_simple_link_test_code='int main(){return(0);}\n'
8414
8415
8416# If no C compiler was specified, use CC.
8417LTCC=${LTCC-"$CC"}
8418
8419# If no C compiler flags were specified, use CFLAGS.
8420LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8421
8422# Allow CC to be a program name with arguments.
8423compiler=$CC
8424
8425
8426# save warnings/boilerplate of simple test code
8427ac_outfile=conftest.$ac_objext
8428printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8429eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8430_lt_compiler_boilerplate=`cat conftest.err`
8431$rm conftest*
8432
8433ac_outfile=conftest.$ac_objext
8434printf "$lt_simple_link_test_code" >conftest.$ac_ext
8435eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8436_lt_linker_boilerplate=`cat conftest.err`
8437$rm conftest*
8438
8439
8440## CAVEAT EMPTOR:
8441## There is no encapsulation within the following macros, do not change
8442## the running order or otherwise move them around unless you know exactly
8443## what you are doing...
8444
8445lt_prog_compiler_no_builtin_flag=
8446
8447if test "$GCC" = yes; then
8448  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8449
8450
8451echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8452echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8453if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8454  echo $ECHO_N "(cached) $ECHO_C" >&6
8455else
8456  lt_cv_prog_compiler_rtti_exceptions=no
8457  ac_outfile=conftest.$ac_objext
8458   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8459   lt_compiler_flag="-fno-rtti -fno-exceptions"
8460   # Insert the option either (1) after the last *FLAGS variable, or
8461   # (2) before a word containing "conftest.", or (3) at the end.
8462   # Note that $ac_compile itself does not contain backslashes and begins
8463   # with a dollar sign (not a hyphen), so the echo should work correctly.
8464   # The option is referenced via a variable to avoid confusing sed.
8465   lt_compile=`echo "$ac_compile" | $SED \
8466   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8467   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8468   -e 's:$: $lt_compiler_flag:'`
8469   (eval echo "\"\$as_me:8469: $lt_compile\"" >&5)
8470   (eval "$lt_compile" 2>conftest.err)
8471   ac_status=$?
8472   cat conftest.err >&5
8473   echo "$as_me:8473: \$? = $ac_status" >&5
8474   if (exit $ac_status) && test -s "$ac_outfile"; then
8475     # The compiler can only warn and ignore the option if not recognized
8476     # So say no if there are warnings other than the usual output.
8477     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8478     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8479     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8480       lt_cv_prog_compiler_rtti_exceptions=yes
8481     fi
8482   fi
8483   $rm conftest*
8484
8485fi
8486echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8487echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8488
8489if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8490    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8491else
8492    :
8493fi
8494
8495fi
8496
8497lt_prog_compiler_wl=
8498lt_prog_compiler_pic=
8499lt_prog_compiler_static=
8500
8501echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8502echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8503
8504  if test "$GCC" = yes; then
8505    lt_prog_compiler_wl='-Wl,'
8506    lt_prog_compiler_static='-static'
8507
8508    case $host_os in
8509      aix*)
8510      # All AIX code is PIC.
8511      if test "$host_cpu" = ia64; then
8512        # AIX 5 now supports IA64 processor
8513        lt_prog_compiler_static='-Bstatic'
8514      fi
8515      ;;
8516
8517    amigaos*)
8518      # FIXME: we need at least 68020 code to build shared libraries, but
8519      # adding the `-m68020' flag to GCC prevents building anything better,
8520      # like `-m68040'.
8521      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8522      ;;
8523
8524    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8525      # PIC is the default for these OSes.
8526      ;;
8527
8528    mingw* | pw32* | os2*)
8529      # This hack is so that the source file can tell whether it is being
8530      # built for inclusion in a dll (and should export symbols for example).
8531      lt_prog_compiler_pic='-DDLL_EXPORT'
8532      ;;
8533
8534    darwin* | rhapsody*)
8535      # PIC is the default on this platform
8536      # Common symbols not allowed in MH_DYLIB files
8537      lt_prog_compiler_pic='-fno-common'
8538      ;;
8539
8540    interix3*)
8541      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8542      # Instead, we relocate shared libraries at runtime.
8543      ;;
8544
8545    msdosdjgpp*)
8546      # Just because we use GCC doesn't mean we suddenly get shared libraries
8547      # on systems that don't support them.
8548      lt_prog_compiler_can_build_shared=no
8549      enable_shared=no
8550      ;;
8551
8552    sysv4*MP*)
8553      if test -d /usr/nec; then
8554        lt_prog_compiler_pic=-Kconform_pic
8555      fi
8556      ;;
8557
8558    hpux*)
8559      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8560      # not for PA HP-UX.
8561      case $host_cpu in
8562      hppa*64*|ia64*)
8563        # +Z the default
8564        ;;
8565      *)
8566        lt_prog_compiler_pic='-fPIC'
8567        ;;
8568      esac
8569      ;;
8570
8571    *)
8572      lt_prog_compiler_pic='-fPIC'
8573      ;;
8574    esac
8575  else
8576    # PORTME Check for flag to pass linker flags through the system compiler.
8577    case $host_os in
8578    aix*)
8579      lt_prog_compiler_wl='-Wl,'
8580      if test "$host_cpu" = ia64; then
8581        # AIX 5 now supports IA64 processor
8582        lt_prog_compiler_static='-Bstatic'
8583      else
8584        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8585      fi
8586      ;;
8587      darwin*)
8588        # PIC is the default on this platform
8589        # Common symbols not allowed in MH_DYLIB files
8590       case $cc_basename in
8591         xlc*)
8592         lt_prog_compiler_pic='-qnocommon'
8593         lt_prog_compiler_wl='-Wl,'
8594         ;;
8595       esac
8596       ;;
8597
8598    mingw* | pw32* | os2*)
8599      # This hack is so that the source file can tell whether it is being
8600      # built for inclusion in a dll (and should export symbols for example).
8601      lt_prog_compiler_pic='-DDLL_EXPORT'
8602      ;;
8603
8604    hpux9* | hpux10* | hpux11*)
8605      lt_prog_compiler_wl='-Wl,'
8606      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8607      # not for PA HP-UX.
8608      case $host_cpu in
8609      hppa*64*|ia64*)
8610        # +Z the default
8611        ;;
8612      *)
8613        lt_prog_compiler_pic='+Z'
8614        ;;
8615      esac
8616      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8617      lt_prog_compiler_static='${wl}-a ${wl}archive'
8618      ;;
8619
8620    irix5* | irix6* | nonstopux*)
8621      lt_prog_compiler_wl='-Wl,'
8622      # PIC (with -KPIC) is the default.
8623      lt_prog_compiler_static='-non_shared'
8624      ;;
8625
8626    newsos6)
8627      lt_prog_compiler_pic='-KPIC'
8628      lt_prog_compiler_static='-Bstatic'
8629      ;;
8630
8631    linux*)
8632      case $cc_basename in
8633      icc* | ecc*)
8634        lt_prog_compiler_wl='-Wl,'
8635        lt_prog_compiler_pic='-KPIC'
8636        lt_prog_compiler_static='-static'
8637        ;;
8638      pgcc* | pgf77* | pgf90* | pgf95*)
8639        # Portland Group compilers (*not* the Pentium gcc compiler,
8640        # which looks to be a dead project)
8641        lt_prog_compiler_wl='-Wl,'
8642        lt_prog_compiler_pic='-fpic'
8643        lt_prog_compiler_static='-Bstatic'
8644        ;;
8645      ccc*)
8646        lt_prog_compiler_wl='-Wl,'
8647        # All Alpha code is PIC.
8648        lt_prog_compiler_static='-non_shared'
8649        ;;
8650      esac
8651      ;;
8652
8653    osf3* | osf4* | osf5*)
8654      lt_prog_compiler_wl='-Wl,'
8655      # All OSF/1 code is PIC.
8656      lt_prog_compiler_static='-non_shared'
8657      ;;
8658
8659    solaris*)
8660      lt_prog_compiler_pic='-KPIC'
8661      lt_prog_compiler_static='-Bstatic'
8662      case $cc_basename in
8663      f77* | f90* | f95*)
8664        lt_prog_compiler_wl='-Qoption ld ';;
8665      *)
8666        lt_prog_compiler_wl='-Wl,';;
8667      esac
8668      ;;
8669
8670    sunos4*)
8671      lt_prog_compiler_wl='-Qoption ld '
8672      lt_prog_compiler_pic='-PIC'
8673      lt_prog_compiler_static='-Bstatic'
8674      ;;
8675
8676    sysv4 | sysv4.2uw2* | sysv4.3*)
8677      lt_prog_compiler_wl='-Wl,'
8678      lt_prog_compiler_pic='-KPIC'
8679      lt_prog_compiler_static='-Bstatic'
8680      ;;
8681
8682    sysv4*MP*)
8683      if test -d /usr/nec ;then
8684        lt_prog_compiler_pic='-Kconform_pic'
8685        lt_prog_compiler_static='-Bstatic'
8686      fi
8687      ;;
8688
8689    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8690      lt_prog_compiler_wl='-Wl,'
8691      lt_prog_compiler_pic='-KPIC'
8692      lt_prog_compiler_static='-Bstatic'
8693      ;;
8694
8695    unicos*)
8696      lt_prog_compiler_wl='-Wl,'
8697      lt_prog_compiler_can_build_shared=no
8698      ;;
8699
8700    uts4*)
8701      lt_prog_compiler_pic='-pic'
8702      lt_prog_compiler_static='-Bstatic'
8703      ;;
8704
8705    *)
8706      lt_prog_compiler_can_build_shared=no
8707      ;;
8708    esac
8709  fi
8710
8711echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8712echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8713
8714#
8715# Check to make sure the PIC flag actually works.
8716#
8717if test -n "$lt_prog_compiler_pic"; then
8718
8719echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8720echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8721if test "${lt_prog_compiler_pic_works+set}" = set; then
8722  echo $ECHO_N "(cached) $ECHO_C" >&6
8723else
8724  lt_prog_compiler_pic_works=no
8725  ac_outfile=conftest.$ac_objext
8726   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8727   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8728   # Insert the option either (1) after the last *FLAGS variable, or
8729   # (2) before a word containing "conftest.", or (3) at the end.
8730   # Note that $ac_compile itself does not contain backslashes and begins
8731   # with a dollar sign (not a hyphen), so the echo should work correctly.
8732   # The option is referenced via a variable to avoid confusing sed.
8733   lt_compile=`echo "$ac_compile" | $SED \
8734   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8735   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8736   -e 's:$: $lt_compiler_flag:'`
8737   (eval echo "\"\$as_me:8737: $lt_compile\"" >&5)
8738   (eval "$lt_compile" 2>conftest.err)
8739   ac_status=$?
8740   cat conftest.err >&5
8741   echo "$as_me:8741: \$? = $ac_status" >&5
8742   if (exit $ac_status) && test -s "$ac_outfile"; then
8743     # The compiler can only warn and ignore the option if not recognized
8744     # So say no if there are warnings other than the usual output.
8745     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8746     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8747     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8748       lt_prog_compiler_pic_works=yes
8749     fi
8750   fi
8751   $rm conftest*
8752
8753fi
8754echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8755echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8756
8757if test x"$lt_prog_compiler_pic_works" = xyes; then
8758    case $lt_prog_compiler_pic in
8759     "" | " "*) ;;
8760     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8761     esac
8762else
8763    lt_prog_compiler_pic=
8764     lt_prog_compiler_can_build_shared=no
8765fi
8766
8767fi
8768case $host_os in
8769  # For platforms which do not support PIC, -DPIC is meaningless:
8770  *djgpp*)
8771    lt_prog_compiler_pic=
8772    ;;
8773  *)
8774    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8775    ;;
8776esac
8777
8778#
8779# Check to make sure the static flag actually works.
8780#
8781wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8782echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8783echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8784if test "${lt_prog_compiler_static_works+set}" = set; then
8785  echo $ECHO_N "(cached) $ECHO_C" >&6
8786else
8787  lt_prog_compiler_static_works=no
8788   save_LDFLAGS="$LDFLAGS"
8789   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8790   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8791   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8792     # The linker can only warn and ignore the option if not recognized
8793     # So say no if there are warnings
8794     if test -s conftest.err; then
8795       # Append any errors to the config.log.
8796       cat conftest.err 1>&5
8797       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8798       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8799       if diff conftest.exp conftest.er2 >/dev/null; then
8800         lt_prog_compiler_static_works=yes
8801       fi
8802     else
8803       lt_prog_compiler_static_works=yes
8804     fi
8805   fi
8806   $rm conftest*
8807   LDFLAGS="$save_LDFLAGS"
8808
8809fi
8810echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8811echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8812
8813if test x"$lt_prog_compiler_static_works" = xyes; then
8814    :
8815else
8816    lt_prog_compiler_static=
8817fi
8818
8819
8820echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8821echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8822if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8823  echo $ECHO_N "(cached) $ECHO_C" >&6
8824else
8825  lt_cv_prog_compiler_c_o=no
8826   $rm -r conftest 2>/dev/null
8827   mkdir conftest
8828   cd conftest
8829   mkdir out
8830   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8831
8832   lt_compiler_flag="-o out/conftest2.$ac_objext"
8833   # Insert the option either (1) after the last *FLAGS variable, or
8834   # (2) before a word containing "conftest.", or (3) at the end.
8835   # Note that $ac_compile itself does not contain backslashes and begins
8836   # with a dollar sign (not a hyphen), so the echo should work correctly.
8837   lt_compile=`echo "$ac_compile" | $SED \
8838   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8839   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8840   -e 's:$: $lt_compiler_flag:'`
8841   (eval echo "\"\$as_me:8841: $lt_compile\"" >&5)
8842   (eval "$lt_compile" 2>out/conftest.err)
8843   ac_status=$?
8844   cat out/conftest.err >&5
8845   echo "$as_me:8845: \$? = $ac_status" >&5
8846   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8847   then
8848     # The compiler can only warn and ignore the option if not recognized
8849     # So say no if there are warnings
8850     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8851     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8852     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8853       lt_cv_prog_compiler_c_o=yes
8854     fi
8855   fi
8856   chmod u+w . 2>&5
8857   $rm conftest*
8858   # SGI C++ compiler will create directory out/ii_files/ for
8859   # template instantiation
8860   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8861   $rm out/* && rmdir out
8862   cd ..
8863   rmdir conftest
8864   $rm conftest*
8865
8866fi
8867echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8868echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8869
8870
8871hard_links="nottested"
8872if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8873  # do not overwrite the value of need_locks provided by the user
8874  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8875echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8876  hard_links=yes
8877  $rm conftest*
8878  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8879  touch conftest.a
8880  ln conftest.a conftest.b 2>&5 || hard_links=no
8881  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8882  echo "$as_me:$LINENO: result: $hard_links" >&5
8883echo "${ECHO_T}$hard_links" >&6
8884  if test "$hard_links" = no; then
8885    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8886echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8887    need_locks=warn
8888  fi
8889else
8890  need_locks=no
8891fi
8892
8893echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8894echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8895
8896  runpath_var=
8897  allow_undefined_flag=
8898  enable_shared_with_static_runtimes=no
8899  archive_cmds=
8900  archive_expsym_cmds=
8901  old_archive_From_new_cmds=
8902  old_archive_from_expsyms_cmds=
8903  export_dynamic_flag_spec=
8904  whole_archive_flag_spec=
8905  thread_safe_flag_spec=
8906  hardcode_libdir_flag_spec=
8907  hardcode_libdir_flag_spec_ld=
8908  hardcode_libdir_separator=
8909  hardcode_direct=no
8910  hardcode_minus_L=no
8911  hardcode_shlibpath_var=unsupported
8912  link_all_deplibs=unknown
8913  hardcode_automatic=no
8914  module_cmds=
8915  module_expsym_cmds=
8916  always_export_symbols=no
8917  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8918  # include_expsyms should be a list of space-separated symbols to be *always*
8919  # included in the symbol list
8920  include_expsyms=
8921  # exclude_expsyms can be an extended regexp of symbols to exclude
8922  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8923  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8924  # as well as any symbol that contains `d'.
8925  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8926  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8927  # platforms (ab)use it in PIC code, but their linkers get confused if
8928  # the symbol is explicitly referenced.  Since portable code cannot
8929  # rely on this symbol name, it's probably fine to never include it in
8930  # preloaded symbol tables.
8931  extract_expsyms_cmds=
8932  # Just being paranoid about ensuring that cc_basename is set.
8933  for cc_temp in $compiler""; do
8934  case $cc_temp in
8935    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8936    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8937    \-*) ;;
8938    *) break;;
8939  esac
8940done
8941cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8942
8943  case $host_os in
8944  cygwin* | mingw* | pw32*)
8945    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8946    # When not using gcc, we currently assume that we are using
8947    # Microsoft Visual C++.
8948    if test "$GCC" != yes; then
8949      with_gnu_ld=no
8950    fi
8951    ;;
8952  interix*)
8953    # we just hope/assume this is gcc and not c89 (= MSVC++)
8954    with_gnu_ld=yes
8955    ;;
8956  openbsd*)
8957    with_gnu_ld=no
8958    ;;
8959  esac
8960
8961  ld_shlibs=yes
8962  if test "$with_gnu_ld" = yes; then
8963    # If archive_cmds runs LD, not CC, wlarc should be empty
8964    wlarc='${wl}'
8965
8966    # Set some defaults for GNU ld with shared library support. These
8967    # are reset later if shared libraries are not supported. Putting them
8968    # here allows them to be overridden if necessary.
8969    runpath_var=LD_RUN_PATH
8970    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8971    export_dynamic_flag_spec='${wl}--export-dynamic'
8972    # ancient GNU ld didn't support --whole-archive et. al.
8973    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8974        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8975      else
8976        whole_archive_flag_spec=
8977    fi
8978    supports_anon_versioning=no
8979    case `$LD -v 2>/dev/null` in
8980      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8981      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8982      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8983      *\ 2.11.*) ;; # other 2.11 versions
8984      *) supports_anon_versioning=yes ;;
8985    esac
8986
8987    # See if GNU ld supports shared libraries.
8988    case $host_os in
8989    aix3* | aix4* | aix5*)
8990      # On AIX/PPC, the GNU linker is very broken
8991      if test "$host_cpu" != ia64; then
8992        ld_shlibs=no
8993        cat <<EOF 1>&2
8994
8995*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8996*** to be unable to reliably create shared libraries on AIX.
8997*** Therefore, libtool is disabling shared libraries support.  If you
8998*** really care for shared libraries, you may want to modify your PATH
8999*** so that a non-GNU linker is found, and then restart.
9000
9001EOF
9002      fi
9003      ;;
9004
9005    amigaos*)
9006      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)'
9007      hardcode_libdir_flag_spec='-L$libdir'
9008      hardcode_minus_L=yes
9009
9010      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9011      # that the semantics of dynamic libraries on AmigaOS, at least up
9012      # to version 4, is to share data among multiple programs linked
9013      # with the same dynamic library.  Since this doesn't match the
9014      # behavior of shared libraries on other platforms, we can't use
9015      # them.
9016      ld_shlibs=no
9017      ;;
9018
9019    beos*)
9020      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9021        allow_undefined_flag=unsupported
9022        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9023        # support --undefined.  This deserves some investigation.  FIXME
9024        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9025      else
9026        ld_shlibs=no
9027      fi
9028      ;;
9029
9030    cygwin* | mingw* | pw32*)
9031      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9032      # as there is no search path for DLLs.
9033      hardcode_libdir_flag_spec='-L$libdir'
9034      allow_undefined_flag=unsupported
9035      always_export_symbols=no
9036      enable_shared_with_static_runtimes=yes
9037      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9038
9039      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9040        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9041        # If the export-symbols file already is a .def file (1st line
9042        # is EXPORTS), use it as is; otherwise, prepend...
9043        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9044          cp $export_symbols $output_objdir/$soname.def;
9045        else
9046          echo EXPORTS > $output_objdir/$soname.def;
9047          cat $export_symbols >> $output_objdir/$soname.def;
9048        fi~
9049        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9050      else
9051        ld_shlibs=no
9052      fi
9053      ;;
9054
9055    interix3*)
9056      hardcode_direct=no
9057      hardcode_shlibpath_var=no
9058      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9059      export_dynamic_flag_spec='${wl}-E'
9060      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9061      # Instead, shared libraries are loaded at an image base (0x10000000 by
9062      # default) and relocated if they conflict, which is a slow very memory
9063      # consuming and fragmenting process.  To avoid this, we pick a random,
9064      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9065      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9066      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9067      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'
9068      ;;
9069
9070    linux*)
9071      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9072        tmp_addflag=
9073        case $cc_basename,$host_cpu in
9074        pgcc*)                          # Portland Group C compiler
9075          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'
9076          tmp_addflag=' $pic_flag'
9077          ;;
9078        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9079          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'
9080          tmp_addflag=' $pic_flag -Mnomain' ;;
9081        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9082          tmp_addflag=' -i_dynamic' ;;
9083        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9084          tmp_addflag=' -i_dynamic -nofor_main' ;;
9085        ifc* | ifort*)                  # Intel Fortran compiler
9086          tmp_addflag=' -nofor_main' ;;
9087        esac
9088        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9089
9090        if test $supports_anon_versioning = yes; then
9091          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9092  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9093  $echo "local: *; };" >> $output_objdir/$libname.ver~
9094          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9095        fi
9096      else
9097        ld_shlibs=no
9098      fi
9099      ;;
9100
9101    netbsd*)
9102      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9103        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9104        wlarc=
9105      else
9106        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9107        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9108      fi
9109      ;;
9110
9111    solaris*)
9112      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9113        ld_shlibs=no
9114        cat <<EOF 1>&2
9115
9116*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9117*** create shared libraries on Solaris systems.  Therefore, libtool
9118*** is disabling shared libraries support.  We urge you to upgrade GNU
9119*** binutils to release 2.9.1 or newer.  Another option is to modify
9120*** your PATH or compiler configuration so that the native linker is
9121*** used, and then restart.
9122
9123EOF
9124      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9125        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9126        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9127      else
9128        ld_shlibs=no
9129      fi
9130      ;;
9131
9132    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9133      case `$LD -v 2>&1` in
9134        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9135        ld_shlibs=no
9136        cat <<_LT_EOF 1>&2
9137
9138*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9139*** reliably create shared libraries on SCO systems.  Therefore, libtool
9140*** is disabling shared libraries support.  We urge you to upgrade GNU
9141*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9142*** your PATH or compiler configuration so that the native linker is
9143*** used, and then restart.
9144
9145_LT_EOF
9146        ;;
9147        *)
9148          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9149            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9150            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9151            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9152          else
9153            ld_shlibs=no
9154          fi
9155        ;;
9156      esac
9157      ;;
9158
9159    sunos4*)
9160      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9161      wlarc=
9162      hardcode_direct=yes
9163      hardcode_shlibpath_var=no
9164      ;;
9165
9166    *)
9167      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9168        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9169        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9170      else
9171        ld_shlibs=no
9172      fi
9173      ;;
9174    esac
9175
9176    if test "$ld_shlibs" = no; then
9177      runpath_var=
9178      hardcode_libdir_flag_spec=
9179      export_dynamic_flag_spec=
9180      whole_archive_flag_spec=
9181    fi
9182  else
9183    # PORTME fill in a description of your system's linker (not GNU ld)
9184    case $host_os in
9185    aix3*)
9186      allow_undefined_flag=unsupported
9187      always_export_symbols=yes
9188      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'
9189      # Note: this linker hardcodes the directories in LIBPATH if there
9190      # are no directories specified by -L.
9191      hardcode_minus_L=yes
9192      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9193        # Neither direct hardcoding nor static linking is supported with a
9194        # broken collect2.
9195        hardcode_direct=unsupported
9196      fi
9197      ;;
9198
9199    aix4* | aix5*)
9200      if test "$host_cpu" = ia64; then
9201        # On IA64, the linker does run time linking by default, so we don't
9202        # have to do anything special.
9203        aix_use_runtimelinking=no
9204        exp_sym_flag='-Bexport'
9205        no_entry_flag=""
9206      else
9207        # If we're using GNU nm, then we don't want the "-C" option.
9208        # -C means demangle to AIX nm, but means don't demangle with GNU nm
9209        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9210          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'
9211        else
9212          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'
9213        fi
9214        aix_use_runtimelinking=no
9215
9216        # Test if we are trying to use run time linking or normal
9217        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9218        # need to do runtime linking.
9219        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9220          for ld_flag in $LDFLAGS; do
9221          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9222            aix_use_runtimelinking=yes
9223            break
9224          fi
9225          done
9226          ;;
9227        esac
9228
9229        exp_sym_flag='-bexport'
9230        no_entry_flag='-bnoentry'
9231      fi
9232
9233      # When large executables or shared objects are built, AIX ld can
9234      # have problems creating the table of contents.  If linking a library
9235      # or program results in "error TOC overflow" add -mminimal-toc to
9236      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9237      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9238
9239      archive_cmds=''
9240      hardcode_direct=yes
9241      hardcode_libdir_separator=':'
9242      link_all_deplibs=yes
9243
9244      if test "$GCC" = yes; then
9245        case $host_os in aix4.[012]|aix4.[012].*)
9246        # We only want to do this on AIX 4.2 and lower, the check
9247        # below for broken collect2 doesn't work under 4.3+
9248          collect2name=`${CC} -print-prog-name=collect2`
9249          if test -f "$collect2name" && \
9250           strings "$collect2name" | grep resolve_lib_name >/dev/null
9251          then
9252          # We have reworked collect2
9253          hardcode_direct=yes
9254          else
9255          # We have old collect2
9256          hardcode_direct=unsupported
9257          # It fails to find uninstalled libraries when the uninstalled
9258          # path is not listed in the libpath.  Setting hardcode_minus_L
9259          # to unsupported forces relinking
9260          hardcode_minus_L=yes
9261          hardcode_libdir_flag_spec='-L$libdir'
9262          hardcode_libdir_separator=
9263          fi
9264          ;;
9265        esac
9266        shared_flag='-shared'
9267        if test "$aix_use_runtimelinking" = yes; then
9268          shared_flag="$shared_flag "'${wl}-G'
9269        fi
9270      else
9271        # not using gcc
9272        if test "$host_cpu" = ia64; then
9273        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9274        # chokes on -Wl,-G. The following line is correct:
9275          shared_flag='-G'
9276        else
9277          if test "$aix_use_runtimelinking" = yes; then
9278            shared_flag='${wl}-G'
9279          else
9280            shared_flag='${wl}-bM:SRE'
9281          fi
9282        fi
9283      fi
9284
9285      # It seems that -bexpall does not export symbols beginning with
9286      # underscore (_), so it is better to generate a list of symbols to export.
9287      always_export_symbols=yes
9288      if test "$aix_use_runtimelinking" = yes; then
9289        # Warning - without using the other runtime loading flags (-brtl),
9290        # -berok will link without error, but may produce a broken library.
9291        allow_undefined_flag='-berok'
9292       # Determine the default libpath from the value encoded in an empty executable.
9293       cat >conftest.$ac_ext <<_ACEOF
9294/* confdefs.h.  */
9295_ACEOF
9296cat confdefs.h >>conftest.$ac_ext
9297cat >>conftest.$ac_ext <<_ACEOF
9298/* end confdefs.h.  */
9299
9300int
9301main ()
9302{
9303
9304  ;
9305  return 0;
9306}
9307_ACEOF
9308rm -f conftest.$ac_objext conftest$ac_exeext
9309if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9310  (eval $ac_link) 2>conftest.er1
9311  ac_status=$?
9312  grep -v '^ *+' conftest.er1 >conftest.err
9313  rm -f conftest.er1
9314  cat conftest.err >&5
9315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9316  (exit $ac_status); } &&
9317         { ac_try='test -z "$ac_c_werror_flag"
9318                         || test ! -s conftest.err'
9319  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9320  (eval $ac_try) 2>&5
9321  ac_status=$?
9322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323  (exit $ac_status); }; } &&
9324         { ac_try='test -s conftest$ac_exeext'
9325  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9326  (eval $ac_try) 2>&5
9327  ac_status=$?
9328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9329  (exit $ac_status); }; }; then
9330
9331aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9332}'`
9333# Check for a 64-bit object if we didn't find anything.
9334if 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; }
9335}'`; fi
9336else
9337  echo "$as_me: failed program was:" >&5
9338sed 's/^/| /' conftest.$ac_ext >&5
9339
9340fi
9341rm -f conftest.err conftest.$ac_objext \
9342      conftest$ac_exeext conftest.$ac_ext
9343if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9344
9345       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9346        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"
9347       else
9348        if test "$host_cpu" = ia64; then
9349          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9350          allow_undefined_flag="-z nodefs"
9351          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"
9352        else
9353         # Determine the default libpath from the value encoded in an empty executable.
9354         cat >conftest.$ac_ext <<_ACEOF
9355/* confdefs.h.  */
9356_ACEOF
9357cat confdefs.h >>conftest.$ac_ext
9358cat >>conftest.$ac_ext <<_ACEOF
9359/* end confdefs.h.  */
9360
9361int
9362main ()
9363{
9364
9365  ;
9366  return 0;
9367}
9368_ACEOF
9369rm -f conftest.$ac_objext conftest$ac_exeext
9370if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9371  (eval $ac_link) 2>conftest.er1
9372  ac_status=$?
9373  grep -v '^ *+' conftest.er1 >conftest.err
9374  rm -f conftest.er1
9375  cat conftest.err >&5
9376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9377  (exit $ac_status); } &&
9378         { ac_try='test -z "$ac_c_werror_flag"
9379                         || test ! -s conftest.err'
9380  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9381  (eval $ac_try) 2>&5
9382  ac_status=$?
9383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384  (exit $ac_status); }; } &&
9385         { ac_try='test -s conftest$ac_exeext'
9386  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9387  (eval $ac_try) 2>&5
9388  ac_status=$?
9389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9390  (exit $ac_status); }; }; then
9391
9392aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9393}'`
9394# Check for a 64-bit object if we didn't find anything.
9395if 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; }
9396}'`; fi
9397else
9398  echo "$as_me: failed program was:" >&5
9399sed 's/^/| /' conftest.$ac_ext >&5
9400
9401fi
9402rm -f conftest.err conftest.$ac_objext \
9403      conftest$ac_exeext conftest.$ac_ext
9404if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9405
9406         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9407          # Warning - without using the other run time loading flags,
9408          # -berok will link without error, but may produce a broken library.
9409          no_undefined_flag=' ${wl}-bernotok'
9410          allow_undefined_flag=' ${wl}-berok'
9411          # Exported symbols can be pulled into shared objects from archives
9412          whole_archive_flag_spec='$convenience'
9413          archive_cmds_need_lc=yes
9414          # This is similar to how AIX traditionally builds its shared libraries.
9415          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'
9416        fi
9417      fi
9418      ;;
9419
9420    amigaos*)
9421      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)'
9422      hardcode_libdir_flag_spec='-L$libdir'
9423      hardcode_minus_L=yes
9424      # see comment about different semantics on the GNU ld section
9425      ld_shlibs=no
9426      ;;
9427
9428    bsdi[45]*)
9429      export_dynamic_flag_spec=-rdynamic
9430      ;;
9431
9432    cygwin* | mingw* | pw32*)
9433      # When not using gcc, we currently assume that we are using
9434      # Microsoft Visual C++.
9435      # hardcode_libdir_flag_spec is actually meaningless, as there is
9436      # no search path for DLLs.
9437      hardcode_libdir_flag_spec=' '
9438      allow_undefined_flag=unsupported
9439      # Tell ltmain to make .lib files, not .a files.
9440      libext=lib
9441      # Tell ltmain to make .dll files, not .so files.
9442      shrext_cmds=".dll"
9443      # FIXME: Setting linknames here is a bad hack.
9444      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9445      # The linker will automatically build a .lib file if we build a DLL.
9446      old_archive_From_new_cmds='true'
9447      # FIXME: Should let the user specify the lib program.
9448      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9449      fix_srcfile_path='`cygpath -w "$srcfile"`'
9450      enable_shared_with_static_runtimes=yes
9451      ;;
9452
9453    darwin* | rhapsody*)
9454      case $host_os in
9455        rhapsody* | darwin1.[012])
9456         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9457         ;;
9458       *) # Darwin 1.3 on
9459         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9460           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9461         else
9462           case ${MACOSX_DEPLOYMENT_TARGET} in
9463             10.[012])
9464               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9465               ;;
9466             10.*)
9467               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9468               ;;
9469           esac
9470         fi
9471         ;;
9472      esac
9473      archive_cmds_need_lc=no
9474      hardcode_direct=no
9475      hardcode_automatic=yes
9476      hardcode_shlibpath_var=unsupported
9477      whole_archive_flag_spec=''
9478      link_all_deplibs=yes
9479    if test "$GCC" = yes ; then
9480        output_verbose_link_cmd='echo'
9481        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9482      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9483      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9484      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}'
9485      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}'
9486    else
9487      case $cc_basename in
9488        xlc*)
9489         output_verbose_link_cmd='echo'
9490         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9491         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9492          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9493         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}'
9494          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}'
9495          ;;
9496       *)
9497         ld_shlibs=no
9498          ;;
9499      esac
9500    fi
9501      ;;
9502
9503    dgux*)
9504      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9505      hardcode_libdir_flag_spec='-L$libdir'
9506      hardcode_shlibpath_var=no
9507      ;;
9508
9509    freebsd1*)
9510      ld_shlibs=no
9511      ;;
9512
9513    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9514    # support.  Future versions do this automatically, but an explicit c++rt0.o
9515    # does not break anything, and helps significantly (at the cost of a little
9516    # extra space).
9517    freebsd2.2*)
9518      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9519      hardcode_libdir_flag_spec='-R$libdir'
9520      hardcode_direct=yes
9521      hardcode_shlibpath_var=no
9522      ;;
9523
9524    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9525    freebsd2*)
9526      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9527      hardcode_direct=yes
9528      hardcode_minus_L=yes
9529      hardcode_shlibpath_var=no
9530      ;;
9531
9532    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9533    freebsd* | kfreebsd*-gnu | dragonfly*)
9534      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9535      hardcode_libdir_flag_spec='-R$libdir'
9536      hardcode_direct=yes
9537      hardcode_shlibpath_var=no
9538      ;;
9539
9540    hpux9*)
9541      if test "$GCC" = yes; then
9542        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'
9543      else
9544        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'
9545      fi
9546      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9547      hardcode_libdir_separator=:
9548      hardcode_direct=yes
9549
9550      # hardcode_minus_L: Not really in the search PATH,
9551      # but as the default location of the library.
9552      hardcode_minus_L=yes
9553      export_dynamic_flag_spec='${wl}-E'
9554      ;;
9555
9556    hpux10*)
9557      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9558        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9559      else
9560        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9561      fi
9562      if test "$with_gnu_ld" = no; then
9563        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9564        hardcode_libdir_separator=:
9565
9566        hardcode_direct=yes
9567        export_dynamic_flag_spec='${wl}-E'
9568
9569        # hardcode_minus_L: Not really in the search PATH,
9570        # but as the default location of the library.
9571        hardcode_minus_L=yes
9572      fi
9573      ;;
9574
9575    hpux11*)
9576      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9577        case $host_cpu in
9578        hppa*64*)
9579          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9580          ;;
9581        ia64*)
9582          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9583          ;;
9584        *)
9585          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9586          ;;
9587        esac
9588      else
9589        case $host_cpu in
9590        hppa*64*)
9591          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9592          ;;
9593        ia64*)
9594          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9595          ;;
9596        *)
9597          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9598          ;;
9599        esac
9600      fi
9601      if test "$with_gnu_ld" = no; then
9602        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9603        hardcode_libdir_separator=:
9604
9605        case $host_cpu in
9606        hppa*64*|ia64*)
9607          hardcode_libdir_flag_spec_ld='+b $libdir'
9608          hardcode_direct=no
9609          hardcode_shlibpath_var=no
9610          ;;
9611        *)
9612          hardcode_direct=yes
9613          export_dynamic_flag_spec='${wl}-E'
9614
9615          # hardcode_minus_L: Not really in the search PATH,
9616          # but as the default location of the library.
9617          hardcode_minus_L=yes
9618          ;;
9619        esac
9620      fi
9621      ;;
9622
9623    irix5* | irix6* | nonstopux*)
9624      if test "$GCC" = yes; then
9625        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'
9626      else
9627        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'
9628        hardcode_libdir_flag_spec_ld='-rpath $libdir'
9629      fi
9630      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9631      hardcode_libdir_separator=:
9632      link_all_deplibs=yes
9633      ;;
9634
9635    netbsd*)
9636      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9637        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9638      else
9639        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9640      fi
9641      hardcode_libdir_flag_spec='-R$libdir'
9642      hardcode_direct=yes
9643      hardcode_shlibpath_var=no
9644      ;;
9645
9646    newsos6)
9647      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9648      hardcode_direct=yes
9649      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9650      hardcode_libdir_separator=:
9651      hardcode_shlibpath_var=no
9652      ;;
9653
9654    openbsd*)
9655      hardcode_direct=yes
9656      hardcode_shlibpath_var=no
9657      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9658        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9659        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9660        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9661        export_dynamic_flag_spec='${wl}-E'
9662      else
9663       case $host_os in
9664         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9665           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9666           hardcode_libdir_flag_spec='-R$libdir'
9667           ;;
9668         *)
9669           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9670           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9671           ;;
9672       esac
9673      fi
9674      ;;
9675
9676    os2*)
9677      hardcode_libdir_flag_spec='-L$libdir'
9678      hardcode_minus_L=yes
9679      allow_undefined_flag=unsupported
9680      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'
9681      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9682      ;;
9683
9684    osf3*)
9685      if test "$GCC" = yes; then
9686        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9687        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'
9688      else
9689        allow_undefined_flag=' -expect_unresolved \*'
9690        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'
9691      fi
9692      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9693      hardcode_libdir_separator=:
9694      ;;
9695
9696    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9697      if test "$GCC" = yes; then
9698        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9699        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'
9700        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9701      else
9702        allow_undefined_flag=' -expect_unresolved \*'
9703        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'
9704        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9705        $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'
9706
9707        # Both c and cxx compiler support -rpath directly
9708        hardcode_libdir_flag_spec='-rpath $libdir'
9709      fi
9710      hardcode_libdir_separator=:
9711      ;;
9712
9713    solaris*)
9714      no_undefined_flag=' -z text'
9715      if test "$GCC" = yes; then
9716        wlarc='${wl}'
9717        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9718        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9719          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9720      else
9721        wlarc=''
9722        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9723        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9724        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9725      fi
9726      hardcode_libdir_flag_spec='-R$libdir'
9727      hardcode_shlibpath_var=no
9728      case $host_os in
9729      solaris2.[0-5] | solaris2.[0-5].*) ;;
9730      *)
9731        # The compiler driver will combine linker options so we
9732        # cannot just pass the convience library names through
9733        # without $wl, iff we do not link with $LD.
9734        # Luckily, gcc supports the same syntax we need for Sun Studio.
9735        # Supported since Solaris 2.6 (maybe 2.5.1?)
9736        case $wlarc in
9737        '')
9738          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9739        *)
9740          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' ;;
9741        esac ;;
9742      esac
9743      link_all_deplibs=yes
9744      ;;
9745
9746    sunos4*)
9747      if test "x$host_vendor" = xsequent; then
9748        # Use $CC to link under sequent, because it throws in some extra .o
9749        # files that make .init and .fini sections work.
9750        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9751      else
9752        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9753      fi
9754      hardcode_libdir_flag_spec='-L$libdir'
9755      hardcode_direct=yes
9756      hardcode_minus_L=yes
9757      hardcode_shlibpath_var=no
9758      ;;
9759
9760    sysv4)
9761      case $host_vendor in
9762        sni)
9763          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9764          hardcode_direct=yes # is this really true???
9765        ;;
9766        siemens)
9767          ## LD is ld it makes a PLAMLIB
9768          ## CC just makes a GrossModule.
9769          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9770          reload_cmds='$CC -r -o $output$reload_objs'
9771          hardcode_direct=no
9772        ;;
9773        motorola)
9774          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9775          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9776        ;;
9777      esac
9778      runpath_var='LD_RUN_PATH'
9779      hardcode_shlibpath_var=no
9780      ;;
9781
9782    sysv4.3*)
9783      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9784      hardcode_shlibpath_var=no
9785      export_dynamic_flag_spec='-Bexport'
9786      ;;
9787
9788    sysv4*MP*)
9789      if test -d /usr/nec; then
9790        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9791        hardcode_shlibpath_var=no
9792        runpath_var=LD_RUN_PATH
9793        hardcode_runpath_var=yes
9794        ld_shlibs=yes
9795      fi
9796      ;;
9797
9798    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9799      no_undefined_flag='${wl}-z,text'
9800      archive_cmds_need_lc=no
9801      hardcode_shlibpath_var=no
9802      runpath_var='LD_RUN_PATH'
9803
9804      if test "$GCC" = yes; then
9805        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9806        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9807      else
9808        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9809        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9810      fi
9811      ;;
9812
9813    sysv5* | sco3.2v5* | sco5v6*)
9814      # Note: We can NOT use -z defs as we might desire, because we do not
9815      # link with -lc, and that would cause any symbols used from libc to
9816      # always be unresolved, which means just about no library would
9817      # ever link correctly.  If we're not using GNU ld we use -z text
9818      # though, which does catch some bad symbols but isn't as heavy-handed
9819      # as -z defs.
9820      no_undefined_flag='${wl}-z,text'
9821      allow_undefined_flag='${wl}-z,nodefs'
9822      archive_cmds_need_lc=no
9823      hardcode_shlibpath_var=no
9824      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9825      hardcode_libdir_separator=':'
9826      link_all_deplibs=yes
9827      export_dynamic_flag_spec='${wl}-Bexport'
9828      runpath_var='LD_RUN_PATH'
9829
9830      if test "$GCC" = yes; then
9831        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9832        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9833      else
9834        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9835        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9836      fi
9837      ;;
9838
9839    uts4*)
9840      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9841      hardcode_libdir_flag_spec='-L$libdir'
9842      hardcode_shlibpath_var=no
9843      ;;
9844
9845    *)
9846      ld_shlibs=no
9847      ;;
9848    esac
9849  fi
9850
9851echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9852echo "${ECHO_T}$ld_shlibs" >&6
9853test "$ld_shlibs" = no && can_build_shared=no
9854
9855#
9856# Do we need to explicitly link libc?
9857#
9858case "x$archive_cmds_need_lc" in
9859x|xyes)
9860  # Assume -lc should be added
9861  archive_cmds_need_lc=yes
9862
9863  if test "$enable_shared" = yes && test "$GCC" = yes; then
9864    case $archive_cmds in
9865    *'~'*)
9866      # FIXME: we may have to deal with multi-command sequences.
9867      ;;
9868    '$CC '*)
9869      # Test whether the compiler implicitly links with -lc since on some
9870      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9871      # to ld, don't add -lc before -lgcc.
9872      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9873echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9874      $rm conftest*
9875      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9876
9877      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9878  (eval $ac_compile) 2>&5
9879  ac_status=$?
9880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881  (exit $ac_status); } 2>conftest.err; then
9882        soname=conftest
9883        lib=conftest
9884        libobjs=conftest.$ac_objext
9885        deplibs=
9886        wl=$lt_prog_compiler_wl
9887        pic_flag=$lt_prog_compiler_pic
9888        compiler_flags=-v
9889        linker_flags=-v
9890        verstring=
9891        output_objdir=.
9892        libname=conftest
9893        lt_save_allow_undefined_flag=$allow_undefined_flag
9894        allow_undefined_flag=
9895        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9896  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9897  ac_status=$?
9898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899  (exit $ac_status); }
9900        then
9901          archive_cmds_need_lc=no
9902        else
9903          archive_cmds_need_lc=yes
9904        fi
9905        allow_undefined_flag=$lt_save_allow_undefined_flag
9906      else
9907        cat conftest.err 1>&5
9908      fi
9909      $rm conftest*
9910      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9911echo "${ECHO_T}$archive_cmds_need_lc" >&6
9912      ;;
9913    esac
9914  fi
9915  ;;
9916esac
9917
9918echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9919echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9920library_names_spec=
9921libname_spec='lib$name'
9922soname_spec=
9923shrext_cmds=".so"
9924postinstall_cmds=
9925postuninstall_cmds=
9926finish_cmds=
9927finish_eval=
9928shlibpath_var=
9929shlibpath_overrides_runpath=unknown
9930version_type=none
9931dynamic_linker="$host_os ld.so"
9932sys_lib_dlsearch_path_spec="/lib /usr/lib"
9933if test "$GCC" = yes; then
9934  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9935  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9936    # if the path contains ";" then we assume it to be the separator
9937    # otherwise default to the standard path separator (i.e. ":") - it is
9938    # assumed that no part of a normal pathname contains ";" but that should
9939    # okay in the real world where ";" in dirpaths is itself problematic.
9940    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9941  else
9942    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9943  fi
9944else
9945  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9946fi
9947need_lib_prefix=unknown
9948hardcode_into_libs=no
9949
9950# when you set need_version to no, make sure it does not cause -set_version
9951# flags to be left without arguments
9952need_version=unknown
9953
9954case $host_os in
9955aix3*)
9956  version_type=linux
9957  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9958  shlibpath_var=LIBPATH
9959
9960  # AIX 3 has no versioning support, so we append a major version to the name.
9961  soname_spec='${libname}${release}${shared_ext}$major'
9962  ;;
9963
9964aix4* | aix5*)
9965  version_type=linux
9966  need_lib_prefix=no
9967  need_version=no
9968  hardcode_into_libs=yes
9969  if test "$host_cpu" = ia64; then
9970    # AIX 5 supports IA64
9971    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9972    shlibpath_var=LD_LIBRARY_PATH
9973  else
9974    # With GCC up to 2.95.x, collect2 would create an import file
9975    # for dependence libraries.  The import file would start with
9976    # the line `#! .'.  This would cause the generated library to
9977    # depend on `.', always an invalid library.  This was fixed in
9978    # development snapshots of GCC prior to 3.0.
9979    case $host_os in
9980      aix4 | aix4.[01] | aix4.[01].*)
9981      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9982           echo ' yes '
9983           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9984        :
9985      else
9986        can_build_shared=no
9987      fi
9988      ;;
9989    esac
9990    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9991    # soname into executable. Probably we can add versioning support to
9992    # collect2, so additional links can be useful in future.
9993    if test "$aix_use_runtimelinking" = yes; then
9994      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9995      # instead of lib<name>.a to let people know that these are not
9996      # typical AIX shared libraries.
9997      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9998    else
9999      # We preserve .a as extension for shared libraries through AIX4.2
10000      # and later when we are not doing run time linking.
10001      library_names_spec='${libname}${release}.a $libname.a'
10002      soname_spec='${libname}${release}${shared_ext}$major'
10003    fi
10004    shlibpath_var=LIBPATH
10005  fi
10006  ;;
10007
10008amigaos*)
10009  library_names_spec='$libname.ixlibrary $libname.a'
10010  # Create ${libname}_ixlibrary.a entries in /sys/libs.
10011  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'
10012  ;;
10013
10014beos*)
10015  library_names_spec='${libname}${shared_ext}'
10016  dynamic_linker="$host_os ld.so"
10017  shlibpath_var=LIBRARY_PATH
10018  ;;
10019
10020bsdi[45]*)
10021  version_type=linux
10022  need_version=no
10023  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10024  soname_spec='${libname}${release}${shared_ext}$major'
10025  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10026  shlibpath_var=LD_LIBRARY_PATH
10027  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10028  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10029  # the default ld.so.conf also contains /usr/contrib/lib and
10030  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10031  # libtool to hard-code these into programs
10032  ;;
10033
10034cygwin* | mingw* | pw32*)
10035  version_type=windows
10036  shrext_cmds=".dll"
10037  need_version=no
10038  need_lib_prefix=no
10039
10040  case $GCC,$host_os in
10041  yes,cygwin* | yes,mingw* | yes,pw32*)
10042    library_names_spec='$libname.dll.a'
10043    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10044    postinstall_cmds='base_file=`basename \${file}`~
10045      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10046      dldir=$destdir/`dirname \$dlpath`~
10047      test -d \$dldir || mkdir -p \$dldir~
10048      $install_prog $dir/$dlname \$dldir/$dlname~
10049      chmod a+x \$dldir/$dlname'
10050    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10051      dlpath=$dir/\$dldll~
10052       $rm \$dlpath'
10053    shlibpath_overrides_runpath=yes
10054
10055    case $host_os in
10056    cygwin*)
10057      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10058      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10059      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10060      ;;
10061    mingw*)
10062      # MinGW DLLs use traditional 'lib' prefix
10063      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10064      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10065      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10066        # It is most probably a Windows format PATH printed by
10067        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10068        # path with ; separators, and with drive letters. We can handle the
10069        # drive letters (cygwin fileutils understands them), so leave them,
10070        # especially as we might pass files found there to a mingw objdump,
10071        # which wouldn't understand a cygwinified path. Ahh.
10072        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10073      else
10074        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10075      fi
10076      ;;
10077    pw32*)
10078      # pw32 DLLs use 'pw' prefix rather than 'lib'
10079      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10080      ;;
10081    esac
10082    ;;
10083
10084  *)
10085    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10086    ;;
10087  esac
10088  dynamic_linker='Win32 ld.exe'
10089  # FIXME: first we should search . and the directory the executable is in
10090  shlibpath_var=PATH
10091  ;;
10092
10093darwin* | rhapsody*)
10094  dynamic_linker="$host_os dyld"
10095  version_type=darwin
10096  need_lib_prefix=no
10097  need_version=no
10098  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10099  soname_spec='${libname}${release}${major}$shared_ext'
10100  shlibpath_overrides_runpath=yes
10101  shlibpath_var=DYLD_LIBRARY_PATH
10102  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10103  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10104  if test "$GCC" = yes; then
10105    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"`
10106  else
10107    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10108  fi
10109  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10110  ;;
10111
10112dgux*)
10113  version_type=linux
10114  need_lib_prefix=no
10115  need_version=no
10116  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10117  soname_spec='${libname}${release}${shared_ext}$major'
10118  shlibpath_var=LD_LIBRARY_PATH
10119  ;;
10120
10121freebsd1*)
10122  dynamic_linker=no
10123  ;;
10124
10125kfreebsd*-gnu)
10126  version_type=linux
10127  need_lib_prefix=no
10128  need_version=no
10129  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10130  soname_spec='${libname}${release}${shared_ext}$major'
10131  shlibpath_var=LD_LIBRARY_PATH
10132  shlibpath_overrides_runpath=no
10133  hardcode_into_libs=yes
10134  dynamic_linker='GNU ld.so'
10135  ;;
10136
10137freebsd* | dragonfly*)
10138  # DragonFly does not have aout.  When/if they implement a new
10139  # versioning mechanism, adjust this.
10140  if test -x /usr/bin/objformat; then
10141    objformat=`/usr/bin/objformat`
10142  else
10143    case $host_os in
10144    freebsd[123]*) objformat=aout ;;
10145    *) objformat=elf ;;
10146    esac
10147  fi
10148  version_type=freebsd-$objformat
10149  case $version_type in
10150    freebsd-elf*)
10151      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10152      need_version=no
10153      need_lib_prefix=no
10154      ;;
10155    freebsd-*)
10156      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10157      need_version=yes
10158      ;;
10159  esac
10160  shlibpath_var=LD_LIBRARY_PATH
10161  case $host_os in
10162  freebsd2*)
10163    shlibpath_overrides_runpath=yes
10164    ;;
10165  freebsd3.[01]* | freebsdelf3.[01]*)
10166    shlibpath_overrides_runpath=yes
10167    hardcode_into_libs=yes
10168    ;;
10169  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10170  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10171    shlibpath_overrides_runpath=no
10172    hardcode_into_libs=yes
10173    ;;
10174  freebsd*) # from 4.6 on
10175    shlibpath_overrides_runpath=yes
10176    hardcode_into_libs=yes
10177    ;;
10178  esac
10179  ;;
10180
10181gnu*)
10182  version_type=linux
10183  need_lib_prefix=no
10184  need_version=no
10185  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10186  soname_spec='${libname}${release}${shared_ext}$major'
10187  shlibpath_var=LD_LIBRARY_PATH
10188  hardcode_into_libs=yes
10189  ;;
10190
10191hpux9* | hpux10* | hpux11*)
10192  # Give a soname corresponding to the major version so that dld.sl refuses to
10193  # link against other versions.
10194  version_type=sunos
10195  need_lib_prefix=no
10196  need_version=no
10197  case $host_cpu in
10198  ia64*)
10199    shrext_cmds='.so'
10200    hardcode_into_libs=yes
10201    dynamic_linker="$host_os dld.so"
10202    shlibpath_var=LD_LIBRARY_PATH
10203    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10204    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10205    soname_spec='${libname}${release}${shared_ext}$major'
10206    if test "X$HPUX_IA64_MODE" = X32; then
10207      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10208    else
10209      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10210    fi
10211    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10212    ;;
10213   hppa*64*)
10214     shrext_cmds='.sl'
10215     hardcode_into_libs=yes
10216     dynamic_linker="$host_os dld.sl"
10217     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10218     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10219     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10220     soname_spec='${libname}${release}${shared_ext}$major'
10221     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10222     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10223     ;;
10224   *)
10225    shrext_cmds='.sl'
10226    dynamic_linker="$host_os dld.sl"
10227    shlibpath_var=SHLIB_PATH
10228    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10229    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10230    soname_spec='${libname}${release}${shared_ext}$major'
10231    ;;
10232  esac
10233  # HP-UX runs *really* slowly unless shared libraries are mode 555.
10234  postinstall_cmds='chmod 555 $lib'
10235  ;;
10236
10237interix3*)
10238  version_type=linux
10239  need_lib_prefix=no
10240  need_version=no
10241  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10242  soname_spec='${libname}${release}${shared_ext}$major'
10243  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10244  shlibpath_var=LD_LIBRARY_PATH
10245  shlibpath_overrides_runpath=no
10246  hardcode_into_libs=yes
10247  ;;
10248
10249irix5* | irix6* | nonstopux*)
10250  case $host_os in
10251    nonstopux*) version_type=nonstopux ;;
10252    *)
10253        if test "$lt_cv_prog_gnu_ld" = yes; then
10254                version_type=linux
10255        else
10256                version_type=irix
10257        fi ;;
10258  esac
10259  need_lib_prefix=no
10260  need_version=no
10261  soname_spec='${libname}${release}${shared_ext}$major'
10262  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10263  case $host_os in
10264  irix5* | nonstopux*)
10265    libsuff= shlibsuff=
10266    ;;
10267  *)
10268    case $LD in # libtool.m4 will add one of these switches to LD
10269    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10270      libsuff= shlibsuff= libmagic=32-bit;;
10271    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10272      libsuff=32 shlibsuff=N32 libmagic=N32;;
10273    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10274      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10275    *) libsuff= shlibsuff= libmagic=never-match;;
10276    esac
10277    ;;
10278  esac
10279  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10280  shlibpath_overrides_runpath=no
10281  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10282  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10283  hardcode_into_libs=yes
10284  ;;
10285
10286# No shared lib support for Linux oldld, aout, or coff.
10287linux*oldld* | linux*aout* | linux*coff*)
10288  dynamic_linker=no
10289  ;;
10290
10291# This must be Linux ELF.
10292linux*)
10293  version_type=linux
10294  need_lib_prefix=no
10295  need_version=no
10296  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10297  soname_spec='${libname}${release}${shared_ext}$major'
10298  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10299  shlibpath_var=LD_LIBRARY_PATH
10300  shlibpath_overrides_runpath=no
10301  # This implies no fast_install, which is unacceptable.
10302  # Some rework will be needed to allow for fast_install
10303  # before this can be enabled.
10304  hardcode_into_libs=yes
10305
10306  # Append ld.so.conf contents to the search path
10307  if test -f /etc/ld.so.conf; then
10308    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' ' '`
10309    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10310  fi
10311
10312  # We used to test for /lib/ld.so.1 and disable shared libraries on
10313  # powerpc, because MkLinux only supported shared libraries with the
10314  # GNU dynamic linker.  Since this was broken with cross compilers,
10315  # most powerpc-linux boxes support dynamic linking these days and
10316  # people can always --disable-shared, the test was removed, and we
10317  # assume the GNU/Linux dynamic linker is in use.
10318  dynamic_linker='GNU/Linux ld.so'
10319  ;;
10320
10321knetbsd*-gnu)
10322  version_type=linux
10323  need_lib_prefix=no
10324  need_version=no
10325  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10326  soname_spec='${libname}${release}${shared_ext}$major'
10327  shlibpath_var=LD_LIBRARY_PATH
10328  shlibpath_overrides_runpath=no
10329  hardcode_into_libs=yes
10330  dynamic_linker='GNU ld.so'
10331  ;;
10332
10333netbsd*)
10334  version_type=sunos
10335  need_lib_prefix=no
10336  need_version=no
10337  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10338    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10339    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10340    dynamic_linker='NetBSD (a.out) ld.so'
10341  else
10342    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10343    soname_spec='${libname}${release}${shared_ext}$major'
10344    dynamic_linker='NetBSD ld.elf_so'
10345  fi
10346  shlibpath_var=LD_LIBRARY_PATH
10347  shlibpath_overrides_runpath=yes
10348  hardcode_into_libs=yes
10349  ;;
10350
10351newsos6)
10352  version_type=linux
10353  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10354  shlibpath_var=LD_LIBRARY_PATH
10355  shlibpath_overrides_runpath=yes
10356  ;;
10357
10358nto-qnx*)
10359  version_type=linux
10360  need_lib_prefix=no
10361  need_version=no
10362  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10363  soname_spec='${libname}${release}${shared_ext}$major'
10364  shlibpath_var=LD_LIBRARY_PATH
10365  shlibpath_overrides_runpath=yes
10366  ;;
10367
10368openbsd*)
10369  version_type=sunos
10370  sys_lib_dlsearch_path_spec="/usr/lib"
10371  need_lib_prefix=no
10372  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10373  case $host_os in
10374    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10375    *)                         need_version=no  ;;
10376  esac
10377  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10378  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10379  shlibpath_var=LD_LIBRARY_PATH
10380  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10381    case $host_os in
10382      openbsd2.[89] | openbsd2.[89].*)
10383        shlibpath_overrides_runpath=no
10384        ;;
10385      *)
10386        shlibpath_overrides_runpath=yes
10387        ;;
10388      esac
10389  else
10390    shlibpath_overrides_runpath=yes
10391  fi
10392  ;;
10393
10394os2*)
10395  libname_spec='$name'
10396  shrext_cmds=".dll"
10397  need_lib_prefix=no
10398  library_names_spec='$libname${shared_ext} $libname.a'
10399  dynamic_linker='OS/2 ld.exe'
10400  shlibpath_var=LIBPATH
10401  ;;
10402
10403osf3* | osf4* | osf5*)
10404  version_type=osf
10405  need_lib_prefix=no
10406  need_version=no
10407  soname_spec='${libname}${release}${shared_ext}$major'
10408  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10409  shlibpath_var=LD_LIBRARY_PATH
10410  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10411  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10412  ;;
10413
10414solaris*)
10415  version_type=linux
10416  need_lib_prefix=no
10417  need_version=no
10418  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10419  soname_spec='${libname}${release}${shared_ext}$major'
10420  shlibpath_var=LD_LIBRARY_PATH
10421  shlibpath_overrides_runpath=yes
10422  hardcode_into_libs=yes
10423  # ldd complains unless libraries are executable
10424  postinstall_cmds='chmod +x $lib'
10425  ;;
10426
10427sunos4*)
10428  version_type=sunos
10429  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10430  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10431  shlibpath_var=LD_LIBRARY_PATH
10432  shlibpath_overrides_runpath=yes
10433  if test "$with_gnu_ld" = yes; then
10434    need_lib_prefix=no
10435  fi
10436  need_version=yes
10437  ;;
10438
10439sysv4 | sysv4.3*)
10440  version_type=linux
10441  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10442  soname_spec='${libname}${release}${shared_ext}$major'
10443  shlibpath_var=LD_LIBRARY_PATH
10444  case $host_vendor in
10445    sni)
10446      shlibpath_overrides_runpath=no
10447      need_lib_prefix=no
10448      export_dynamic_flag_spec='${wl}-Blargedynsym'
10449      runpath_var=LD_RUN_PATH
10450      ;;
10451    siemens)
10452      need_lib_prefix=no
10453      ;;
10454    motorola)
10455      need_lib_prefix=no
10456      need_version=no
10457      shlibpath_overrides_runpath=no
10458      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10459      ;;
10460  esac
10461  ;;
10462
10463sysv4*MP*)
10464  if test -d /usr/nec ;then
10465    version_type=linux
10466    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10467    soname_spec='$libname${shared_ext}.$major'
10468    shlibpath_var=LD_LIBRARY_PATH
10469  fi
10470  ;;
10471
10472sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10473  version_type=freebsd-elf
10474  need_lib_prefix=no
10475  need_version=no
10476  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10477  soname_spec='${libname}${release}${shared_ext}$major'
10478  shlibpath_var=LD_LIBRARY_PATH
10479  hardcode_into_libs=yes
10480  if test "$with_gnu_ld" = yes; then
10481    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10482    shlibpath_overrides_runpath=no
10483  else
10484    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10485    shlibpath_overrides_runpath=yes
10486    case $host_os in
10487      sco3.2v5*)
10488        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10489        ;;
10490    esac
10491  fi
10492  sys_lib_dlsearch_path_spec='/usr/lib'
10493  ;;
10494
10495uts4*)
10496  version_type=linux
10497  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10498  soname_spec='${libname}${release}${shared_ext}$major'
10499  shlibpath_var=LD_LIBRARY_PATH
10500  ;;
10501
10502*)
10503  dynamic_linker=no
10504  ;;
10505esac
10506echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10507echo "${ECHO_T}$dynamic_linker" >&6
10508test "$dynamic_linker" = no && can_build_shared=no
10509
10510variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10511if test "$GCC" = yes; then
10512  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10513fi
10514
10515echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10516echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10517hardcode_action=
10518if test -n "$hardcode_libdir_flag_spec" || \
10519   test -n "$runpath_var" || \
10520   test "X$hardcode_automatic" = "Xyes" ; then
10521
10522  # We can hardcode non-existant directories.
10523  if test "$hardcode_direct" != no &&
10524     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10525     # have to relink, otherwise we might link with an installed library
10526     # when we should be linking with a yet-to-be-installed one
10527     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10528     test "$hardcode_minus_L" != no; then
10529    # Linking always hardcodes the temporary library directory.
10530    hardcode_action=relink
10531  else
10532    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10533    hardcode_action=immediate
10534  fi
10535else
10536  # We cannot hardcode anything, or else we can only hardcode existing
10537  # directories.
10538  hardcode_action=unsupported
10539fi
10540echo "$as_me:$LINENO: result: $hardcode_action" >&5
10541echo "${ECHO_T}$hardcode_action" >&6
10542
10543if test "$hardcode_action" = relink; then
10544  # Fast installation is not supported
10545  enable_fast_install=no
10546elif test "$shlibpath_overrides_runpath" = yes ||
10547     test "$enable_shared" = no; then
10548  # Fast installation is not necessary
10549  enable_fast_install=needless
10550fi
10551
10552striplib=
10553old_striplib=
10554echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10555echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10556if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10557  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10558  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10559  echo "$as_me:$LINENO: result: yes" >&5
10560echo "${ECHO_T}yes" >&6
10561else
10562# FIXME - insert some real tests, host_os isn't really good enough
10563  case $host_os in
10564   darwin*)
10565       if test -n "$STRIP" ; then
10566         striplib="$STRIP -x"
10567         echo "$as_me:$LINENO: result: yes" >&5
10568echo "${ECHO_T}yes" >&6
10569       else
10570  echo "$as_me:$LINENO: result: no" >&5
10571echo "${ECHO_T}no" >&6
10572fi
10573       ;;
10574   *)
10575  echo "$as_me:$LINENO: result: no" >&5
10576echo "${ECHO_T}no" >&6
10577    ;;
10578  esac
10579fi
10580
10581if test "x$enable_dlopen" != xyes; then
10582  enable_dlopen=unknown
10583  enable_dlopen_self=unknown
10584  enable_dlopen_self_static=unknown
10585else
10586  lt_cv_dlopen=no
10587  lt_cv_dlopen_libs=
10588
10589  case $host_os in
10590  beos*)
10591    lt_cv_dlopen="load_add_on"
10592    lt_cv_dlopen_libs=
10593    lt_cv_dlopen_self=yes
10594    ;;
10595
10596  mingw* | pw32*)
10597    lt_cv_dlopen="LoadLibrary"
10598    lt_cv_dlopen_libs=
10599   ;;
10600
10601  cygwin*)
10602    lt_cv_dlopen="dlopen"
10603    lt_cv_dlopen_libs=
10604   ;;
10605
10606  darwin*)
10607  # if libdl is installed we need to link against it
10608    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10609echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10610if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10611  echo $ECHO_N "(cached) $ECHO_C" >&6
10612else
10613  ac_check_lib_save_LIBS=$LIBS
10614LIBS="-ldl  $LIBS"
10615cat >conftest.$ac_ext <<_ACEOF
10616/* confdefs.h.  */
10617_ACEOF
10618cat confdefs.h >>conftest.$ac_ext
10619cat >>conftest.$ac_ext <<_ACEOF
10620/* end confdefs.h.  */
10621
10622/* Override any gcc2 internal prototype to avoid an error.  */
10623#ifdef __cplusplus
10624extern "C"
10625#endif
10626/* We use char because int might match the return type of a gcc2
10627   builtin and then its argument prototype would still apply.  */
10628char dlopen ();
10629int
10630main ()
10631{
10632dlopen ();
10633  ;
10634  return 0;
10635}
10636_ACEOF
10637rm -f conftest.$ac_objext conftest$ac_exeext
10638if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10639  (eval $ac_link) 2>conftest.er1
10640  ac_status=$?
10641  grep -v '^ *+' conftest.er1 >conftest.err
10642  rm -f conftest.er1
10643  cat conftest.err >&5
10644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10645  (exit $ac_status); } &&
10646         { ac_try='test -z "$ac_c_werror_flag"
10647                         || test ! -s conftest.err'
10648  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10649  (eval $ac_try) 2>&5
10650  ac_status=$?
10651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652  (exit $ac_status); }; } &&
10653         { ac_try='test -s conftest$ac_exeext'
10654  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10655  (eval $ac_try) 2>&5
10656  ac_status=$?
10657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10658  (exit $ac_status); }; }; then
10659  ac_cv_lib_dl_dlopen=yes
10660else
10661  echo "$as_me: failed program was:" >&5
10662sed 's/^/| /' conftest.$ac_ext >&5
10663
10664ac_cv_lib_dl_dlopen=no
10665fi
10666rm -f conftest.err conftest.$ac_objext \
10667      conftest$ac_exeext conftest.$ac_ext
10668LIBS=$ac_check_lib_save_LIBS
10669fi
10670echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10671echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10672if test $ac_cv_lib_dl_dlopen = yes; then
10673  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10674else
10675
10676    lt_cv_dlopen="dyld"
10677    lt_cv_dlopen_libs=
10678    lt_cv_dlopen_self=yes
10679
10680fi
10681
10682   ;;
10683
10684  *)
10685    echo "$as_me:$LINENO: checking for shl_load" >&5
10686echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10687if test "${ac_cv_func_shl_load+set}" = set; then
10688  echo $ECHO_N "(cached) $ECHO_C" >&6
10689else
10690  cat >conftest.$ac_ext <<_ACEOF
10691/* confdefs.h.  */
10692_ACEOF
10693cat confdefs.h >>conftest.$ac_ext
10694cat >>conftest.$ac_ext <<_ACEOF
10695/* end confdefs.h.  */
10696/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10697   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10698#define shl_load innocuous_shl_load
10699
10700/* System header to define __stub macros and hopefully few prototypes,
10701    which can conflict with char shl_load (); below.
10702    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10703    <limits.h> exists even on freestanding compilers.  */
10704
10705#ifdef __STDC__
10706# include <limits.h>
10707#else
10708# include <assert.h>
10709#endif
10710
10711#undef shl_load
10712
10713/* Override any gcc2 internal prototype to avoid an error.  */
10714#ifdef __cplusplus
10715extern "C"
10716{
10717#endif
10718/* We use char because int might match the return type of a gcc2
10719</