source: stable/BSPsplit/configure @ 1206

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

adapt to recent changes in BuildTools?; ASL now also an external thirdparty project

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