source: stable/BSPsplit/Cbc/configure @ 1194

Last change on this file since 1194 was 1194, checked in by andreasw, 11 years ago

correct -version-info option

  • Property svn:executable set to *
File size: 832.1 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for Cbc 2.3stable.
4#
5# Report bugs to <coin-cbc@list.coin-or.org>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Common Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='Cbc'
431PACKAGE_TARNAME='cbc'
432PACKAGE_VERSION='2.3stable'
433PACKAGE_STRING='Cbc 2.3stable'
434PACKAGE_BUGREPORT='coin-cbc@list.coin-or.org'
435
436ac_unique_file="src/CbcTree.hpp"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX MPICXX EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS CBCSRCDIR CBCOBJDIR CBCDOCDIR CBCINSTDIR COIN_HAS_CBC_TRUE COIN_HAS_CBC_FALSE COIN_HAS_CBC_PREINSTALLED_TRUE COIN_HAS_CBC_PREINSTALLED_FALSE CGLSRCDIR CGLOBJDIR CGLDOCDIR CGLINSTDIR COIN_HAS_CGL_TRUE COIN_HAS_CGL_FALSE COIN_HAS_CGL_PREINSTALLED_TRUE COIN_HAS_CGL_PREINSTALLED_FALSE CLPSRCDIR CLPOBJDIR CLPDOCDIR CLPINSTDIR COIN_HAS_CLP_TRUE COIN_HAS_CLP_FALSE COIN_HAS_CLP_PREINSTALLED_TRUE COIN_HAS_CLP_PREINSTALLED_FALSE COINUTILSSRCDIR COINUTILSOBJDIR COINUTILSDOCDIR COINUTILSINSTDIR COIN_HAS_COINUTILS_TRUE COIN_HAS_COINUTILS_FALSE COIN_HAS_COINUTILS_PREINSTALLED_TRUE COIN_HAS_COINUTILS_PREINSTALLED_FALSE DYLPSRCDIR DYLPOBJDIR DYLPDOCDIR DYLPINSTDIR COIN_HAS_DYLP_TRUE COIN_HAS_DYLP_FALSE COIN_HAS_DYLP_PREINSTALLED_TRUE COIN_HAS_DYLP_PREINSTALLED_FALSE OSISRCDIR OSIOBJDIR OSIDOCDIR OSIINSTDIR COIN_HAS_OSI_TRUE COIN_HAS_OSI_FALSE COIN_HAS_OSI_PREINSTALLED_TRUE COIN_HAS_OSI_PREINSTALLED_FALSE VOLSRCDIR VOLOBJDIR VOLDOCDIR VOLINSTDIR COIN_HAS_VOL_TRUE COIN_HAS_VOL_FALSE COIN_HAS_VOL_PREINSTALLED_TRUE COIN_HAS_VOL_PREINSTALLED_FALSE SYMPHONYSRCDIR SYMPHONYOBJDIR SYMPHONYDOCDIR SYMPHONYINSTDIR COIN_HAS_SYMPHONY_TRUE COIN_HAS_SYMPHONY_FALSE COIN_HAS_SYMPHONY_PREINSTALLED_TRUE COIN_HAS_SYMPHONY_PREINSTALLED_FALSE CPXINCDIR CPXLIB COIN_HAS_CPX_TRUE COIN_HAS_CPX_FALSE FMPINCDIR FMPLIB COIN_HAS_FMP_TRUE COIN_HAS_FMP_FALSE MSKINCDIR MSKLIB COIN_HAS_MSK_TRUE COIN_HAS_MSK_FALSE OSLINCDIR OSLLIB COIN_HAS_OSL_TRUE COIN_HAS_OSL_FALSE SPXINCDIR SPXLIB COIN_HAS_SPX_TRUE COIN_HAS_SPX_FALSE XPRINCDIR XPRLIB COIN_HAS_XPR_TRUE COIN_HAS_XPR_FALSE GLPKINCDIR GLPKLIB COIN_HAS_GLPK_TRUE COIN_HAS_GLPK_FALSE COIN_BUILD_GLPK_TRUE COIN_BUILD_GLPK_FALSE ASLLIB ASL_CPPFLAGS COIN_HAS_ASL_TRUE COIN_HAS_ASL_FALSE CBC_BUILD_CBC_GENERIC_TRUE CBC_BUILD_CBC_GENERIC_FALSE LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_CXXDEFS_set=${CXXDEFS+set}
953ac_env_CXXDEFS_value=$CXXDEFS
954ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
955ac_cv_env_CXXDEFS_value=$CXXDEFS
956ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
957ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
958ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
959ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
960ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
961ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
962ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
963ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
964ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
965ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
966ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
967ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
968ac_env_CXX_set=${CXX+set}
969ac_env_CXX_value=$CXX
970ac_cv_env_CXX_set=${CXX+set}
971ac_cv_env_CXX_value=$CXX
972ac_env_CXXFLAGS_set=${CXXFLAGS+set}
973ac_env_CXXFLAGS_value=$CXXFLAGS
974ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
975ac_cv_env_CXXFLAGS_value=$CXXFLAGS
976ac_env_MPICXX_set=${MPICXX+set}
977ac_env_MPICXX_value=$MPICXX
978ac_cv_env_MPICXX_set=${MPICXX+set}
979ac_cv_env_MPICXX_value=$MPICXX
980ac_env_CPP_set=${CPP+set}
981ac_env_CPP_value=$CPP
982ac_cv_env_CPP_set=${CPP+set}
983ac_cv_env_CPP_value=$CPP
984ac_env_CXXCPP_set=${CXXCPP+set}
985ac_env_CXXCPP_value=$CXXCPP
986ac_cv_env_CXXCPP_set=${CXXCPP+set}
987ac_cv_env_CXXCPP_value=$CXXCPP
988ac_env_F77_set=${F77+set}
989ac_env_F77_value=$F77
990ac_cv_env_F77_set=${F77+set}
991ac_cv_env_F77_value=$F77
992ac_env_FFLAGS_set=${FFLAGS+set}
993ac_env_FFLAGS_value=$FFLAGS
994ac_cv_env_FFLAGS_set=${FFLAGS+set}
995ac_cv_env_FFLAGS_value=$FFLAGS
996
997#
998# Report the --help message.
999#
1000if test "$ac_init_help" = "long"; then
1001  # Omit some internal or obsolete options to make the list less imposing.
1002  # This message is too long to be a string in the A/UX 3.1 sh.
1003  cat <<_ACEOF
1004\`configure' configures Cbc 2.3stable to adapt to many kinds of systems.
1005
1006Usage: $0 [OPTION]... [VAR=VALUE]...
1007
1008To assign environment variables (e.g., CC, CFLAGS...), specify them as
1009VAR=VALUE.  See below for descriptions of some of the useful variables.
1010
1011Defaults for the options are specified in brackets.
1012
1013Configuration:
1014  -h, --help              display this help and exit
1015      --help=short        display options specific to this package
1016      --help=recursive    display the short help of all the included packages
1017  -V, --version           display version information and exit
1018  -q, --quiet, --silent   do not print \`checking...' messages
1019      --cache-file=FILE   cache test results in FILE [disabled]
1020  -C, --config-cache      alias for \`--cache-file=config.cache'
1021  -n, --no-create         do not create output files
1022      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1023
1024_ACEOF
1025
1026  cat <<_ACEOF
1027Installation directories:
1028  --prefix=PREFIX         install architecture-independent files in PREFIX
1029                          [$ac_default_prefix]
1030  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1031                          [PREFIX]
1032
1033By default, \`make install' will install all the files in
1034\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1035an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1036for instance \`--prefix=\$HOME'.
1037
1038For better control, use the options below.
1039
1040Fine tuning of the installation directories:
1041  --bindir=DIR           user executables [EPREFIX/bin]
1042  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1043  --libexecdir=DIR       program executables [EPREFIX/libexec]
1044  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1045  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1046  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1047  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1048  --libdir=DIR           object code libraries [EPREFIX/lib]
1049  --includedir=DIR       C header files [PREFIX/include]
1050  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1051  --infodir=DIR          info documentation [PREFIX/info]
1052  --mandir=DIR           man documentation [PREFIX/man]
1053_ACEOF
1054
1055  cat <<\_ACEOF
1056
1057Program names:
1058  --program-prefix=PREFIX            prepend PREFIX to installed program names
1059  --program-suffix=SUFFIX            append SUFFIX to installed program names
1060  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1061
1062System types:
1063  --build=BUILD     configure for building on BUILD [guessed]
1064  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1065_ACEOF
1066fi
1067
1068if test -n "$ac_init_help"; then
1069  case $ac_init_help in
1070     short | recursive ) echo "Configuration of Cbc 2.3stable:";;
1071   esac
1072  cat <<\_ACEOF
1073
1074Optional Features:
1075  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1076  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1077  --enable-debug          compile all projects with debug options tests
1078  --enable-debug-cbc compile this project (Cbc) with debug options
1079  --enable-doscompile     Under Cygwin, compile so that executables run under
1080                          DOS. Set to mingw to use gcc/g++/ld with
1081                          -mno-cygwin. Set to msvc to use cl/link (or
1082                          icl/link). Default when mentioned: mingw. Default
1083                          when not mentioned: disabled.
1084  --enable-static[=PKGS]
1085                          build static libraries [default=no]
1086  --disable-dependency-tracking  speeds up one-time build
1087  --enable-dependency-tracking   do not reject slow dependency extractors
1088  --enable-maintainer-mode  enable make rules and dependencies not useful
1089                          (and sometimes confusing) to the casual installer
1090  --enable-shared[=PKGS]
1091                          build shared libraries [default=yes]
1092  --enable-fast-install[=PKGS]
1093                          optimize for fast installation [default=yes]
1094  --disable-libtool-lock  avoid locking (might break parallel builds)
1095  --enable-cplex-libcheck use disable-cplex-libcheck to skip the
1096                          link check at configuration time
1097  --enable-fortmp-libcheck
1098                          use disable-fortmp-libcheck to skip the
1099                          link check at configuration time
1100  --enable-mosek-libcheck use disable-mosek-libcheck to skip the
1101                          link check at configuration time
1102  --enable-osl-libcheck use disable-osl-libcheck to skip the link
1103                          check at configuration time
1104  --enable-soplex-libcheck
1105                          use disable-soplex-libcheck to skip the
1106                          link check at configuration time
1107  --enable-xpress-libcheck
1108                          use disable-xpress-libcheck to skip the
1109                          link check at configuration time
1110  --enable-glpk-libcheck use disable-glpk-libcheck to skip the
1111                          link check at configuration time
1112  --enable-cbc-parallel   enables compilation of the SMP version of Cbc
1113
1114Optional Packages:
1115  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1116  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1117  --with-cbc-verbosity specify the debug verbosity level for project Cbc
1118  --with-cbc-checklevel specify the sanity check level for project Cbc
1119  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1120  --with-pic              try to use only PIC/non-PIC objects [default=use
1121                          both]
1122  --with-tags[=TAGS]
1123                          include additional configurations [automatic]
1124  --with-cbc-instdir prefix of installation directory for precompiled Cbc
1125                          package
1126  --with-cbc-srcdir source directory for Cbc package
1127  --with-cbc-objdir object directory for Cbc package (if different from source
1128                          directory in VPATH compilation)
1129  --with-coin-instdir     prefix of installation directory for precompiled
1130                          COIN packages
1131  --with-cgl-instdir prefix of installation directory for precompiled Cgl
1132                          package
1133  --with-cgl-srcdir source directory for Cgl package
1134  --with-cgl-objdir object directory for Cgl package (if different from source
1135                          directory in VPATH compilation)
1136  --with-clp-instdir prefix of installation directory for precompiled Clp
1137                          package
1138  --with-clp-srcdir source directory for Clp package
1139  --with-clp-objdir object directory for Clp package (if different from source
1140                          directory in VPATH compilation)
1141  --with-coinutils-instdir
1142                          prefix of installation directory for precompiled
1143                          CoinUtils package
1144  --with-coinutils-srcdir source directory for CoinUtils package
1145  --with-coinutils-objdir object directory for CoinUtils package (if different
1146                          from source directory in VPATH compilation)
1147  --with-dylp-instdir prefix of installation directory for precompiled DyLP
1148                          package
1149  --with-dylp-srcdir source directory for DyLP package
1150  --with-dylp-objdir object directory for DyLP package (if different from
1151                          source directory in VPATH compilation)
1152  --with-osi-instdir prefix of installation directory for precompiled Osi
1153                          package
1154  --with-osi-srcdir source directory for Osi package
1155  --with-osi-objdir object directory for Osi package (if different from source
1156                          directory in VPATH compilation)
1157  --with-vol-instdir prefix of installation directory for precompiled Vol
1158                          package
1159  --with-vol-srcdir source directory for Vol package
1160  --with-vol-objdir object directory for Vol package (if different from source
1161                          directory in VPATH compilation)
1162  --with-symphony-instdir prefix of installation directory for precompiled
1163                          SYMPHONY package
1164  --with-symphony-srcdir source directory for SYMPHONY package
1165  --with-symphony-objdir object directory for SYMPHONY package (if different
1166                          from source directory in VPATH compilation)
1167  --with-cplex-incdir specify the header file directory for library Cplex
1168  --with-cplex-lib specify the flags used to link with the library Cplex
1169  --with-fortmp-incdir specify the header file directory for library FortMP
1170  --with-fortmp-lib specify the flags used to link with the library FortMP
1171  --with-mosek-incdir specify the header file directory for library Mosek
1172  --with-mosek-lib specify the flags used to link with the library Mosek
1173  --with-osl-incdir specify the header file directory for library Osl
1174  --with-osl-lib specify the flags used to link with the library Osl
1175  --with-soplex-incdir specify the header file directory for library Soplex
1176  --with-soplex-lib specify the flags used to link with the library Soplex
1177  --with-xpress-incdir specify the header file directory for library Xpress
1178  --with-xpress-lib specify the flags used to link with the library Xpress
1179  --with-glpk-incdir specify the header file directory for library Glpk
1180  --with-glpk-lib specify the flags used to link with the library Glpk
1181  --with-asldir           specify path to AMPL solver directory (or BUILD for
1182                          compilation, or "no" for disabling AMPL)
1183  --with-cbc-generic      specify whether to build cbc-generic (default: no)
1184  --with-cbc-generic-solver
1185                          specify default solver for cbc-generic in lower case
1186                          letters (if not given, clp is assumed)
1187
1188Some influential environment variables:
1189  CDEFS       Additional -D flags to be used when compiling C code.
1190  ADD_CFLAGS  Additional C compiler options
1191  DBG_CFLAGS  Debug C compiler options
1192  OPT_CFLAGS  Optimize C compiler options
1193  CC          C compiler command
1194  CFLAGS      C compiler flags
1195  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1196              nonstandard directory <lib dir>
1197  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1198              headers in a nonstandard directory <include dir>
1199  MPICC       C MPI Compiler
1200  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1201  ADD_CXXFLAGS
1202              Additional C++ compiler options
1203  DBG_CXXFLAGS
1204              Debug C++ compiler options
1205  OPT_CXXFLAGS
1206              Optimize C++ compiler options
1207  CXX         C++ compiler command
1208  CXXFLAGS    C++ compiler flags
1209  MPICXX      C++ MPI Compiler
1210  CPP         C preprocessor
1211  CXXCPP      C++ preprocessor
1212  F77         Fortran 77 compiler command
1213  FFLAGS      Fortran 77 compiler flags
1214
1215Use these variables to override the choices made by `configure' or to help
1216it to find libraries and programs with nonstandard names/locations.
1217
1218Report bugs to <coin-cbc@list.coin-or.org>.
1219_ACEOF
1220fi
1221
1222if test "$ac_init_help" = "recursive"; then
1223  # If there are subdirs, report their specific --help.
1224  ac_popdir=`pwd`
1225  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1226    test -d $ac_dir || continue
1227    ac_builddir=.
1228
1229if test "$ac_dir" != .; then
1230  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1231  # A "../" for each directory in $ac_dir_suffix.
1232  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1233else
1234  ac_dir_suffix= ac_top_builddir=
1235fi
1236
1237case $srcdir in
1238  .)  # No --srcdir option.  We are building in place.
1239    ac_srcdir=.
1240    if test -z "$ac_top_builddir"; then
1241       ac_top_srcdir=.
1242    else
1243       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1244    fi ;;
1245  [\\/]* | ?:[\\/]* )  # Absolute path.
1246    ac_srcdir=$srcdir$ac_dir_suffix;
1247    ac_top_srcdir=$srcdir ;;
1248  *) # Relative path.
1249    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1250    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1251esac
1252
1253# Do not use `cd foo && pwd` to compute absolute paths, because
1254# the directories may not exist.
1255case `pwd` in
1256.) ac_abs_builddir="$ac_dir";;
1257*)
1258  case "$ac_dir" in
1259  .) ac_abs_builddir=`pwd`;;
1260  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1261  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1262  esac;;
1263esac
1264case $ac_abs_builddir in
1265.) ac_abs_top_builddir=${ac_top_builddir}.;;
1266*)
1267  case ${ac_top_builddir}. in
1268  .) ac_abs_top_builddir=$ac_abs_builddir;;
1269  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1270  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1271  esac;;
1272esac
1273case $ac_abs_builddir in
1274.) ac_abs_srcdir=$ac_srcdir;;
1275*)
1276  case $ac_srcdir in
1277  .) ac_abs_srcdir=$ac_abs_builddir;;
1278  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1279  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1280  esac;;
1281esac
1282case $ac_abs_builddir in
1283.) ac_abs_top_srcdir=$ac_top_srcdir;;
1284*)
1285  case $ac_top_srcdir in
1286  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1287  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1288  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1289  esac;;
1290esac
1291
1292    cd $ac_dir
1293    # Check for guested configure; otherwise get Cygnus style configure.
1294    if test -f $ac_srcdir/configure.gnu; then
1295      echo
1296      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1297    elif test -f $ac_srcdir/configure; then
1298      echo
1299      $SHELL $ac_srcdir/configure  --help=recursive
1300    elif test -f $ac_srcdir/configure.ac ||
1301           test -f $ac_srcdir/configure.in; then
1302      echo
1303      $ac_configure --help
1304    else
1305      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1306    fi
1307    cd $ac_popdir
1308  done
1309fi
1310
1311test -n "$ac_init_help" && exit 0
1312if $ac_init_version; then
1313  cat <<\_ACEOF
1314Cbc configure 2.3stable
1315generated by GNU Autoconf 2.59
1316
1317Copyright (C) 2003 Free Software Foundation, Inc.
1318This configure script is free software; the Free Software Foundation
1319gives unlimited permission to copy, distribute and modify it.
1320
1321
1322Copyright 2006 International Business Machines and others.
1323All Rights Reserved.
1324This file is part of the open source package Coin which is distributed
1325under the Common Public License.
1326_ACEOF
1327  exit 0
1328fi
1329exec 5>config.log
1330cat >&5 <<_ACEOF
1331This file contains any messages produced by compilers while
1332running configure, to aid debugging if configure makes a mistake.
1333
1334It was created by Cbc $as_me 2.3stable, which was
1335generated by GNU Autoconf 2.59.  Invocation command line was
1336
1337  $ $0 $@
1338
1339_ACEOF
1340{
1341cat <<_ASUNAME
1342## --------- ##
1343## Platform. ##
1344## --------- ##
1345
1346hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1347uname -m = `(uname -m) 2>/dev/null || echo unknown`
1348uname -r = `(uname -r) 2>/dev/null || echo unknown`
1349uname -s = `(uname -s) 2>/dev/null || echo unknown`
1350uname -v = `(uname -v) 2>/dev/null || echo unknown`
1351
1352/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1353/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1354
1355/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1356/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1357/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1358hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1359/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1360/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1361/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1362
1363_ASUNAME
1364
1365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1366for as_dir in $PATH
1367do
1368  IFS=$as_save_IFS
1369  test -z "$as_dir" && as_dir=.
1370  echo "PATH: $as_dir"
1371done
1372
1373} >&5
1374
1375cat >&5 <<_ACEOF
1376
1377
1378## ----------- ##
1379## Core tests. ##
1380## ----------- ##
1381
1382_ACEOF
1383
1384
1385# Keep a trace of the command line.
1386# Strip out --no-create and --no-recursion so they do not pile up.
1387# Strip out --silent because we don't want to record it for future runs.
1388# Also quote any args containing shell meta-characters.
1389# Make two passes to allow for proper duplicate-argument suppression.
1390ac_configure_args=
1391ac_configure_args0=
1392ac_configure_args1=
1393ac_sep=
1394ac_must_keep_next=false
1395for ac_pass in 1 2
1396do
1397  for ac_arg
1398  do
1399    case $ac_arg in
1400    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1401    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1402    | -silent | --silent | --silen | --sile | --sil)
1403      continue ;;
1404    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1405      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1406    esac
1407    case $ac_pass in
1408    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1409    2)
1410      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1411      if test $ac_must_keep_next = true; then
1412        ac_must_keep_next=false # Got value, back to normal.
1413      else
1414        case $ac_arg in
1415          *=* | --config-cache | -C | -disable-* | --disable-* \
1416          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1417          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1418          | -with-* | --with-* | -without-* | --without-* | --x)
1419            case "$ac_configure_args0 " in
1420              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1421            esac
1422            ;;
1423          -* ) ac_must_keep_next=true ;;
1424        esac
1425      fi
1426      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1427      # Get rid of the leading space.
1428      ac_sep=" "
1429      ;;
1430    esac
1431  done
1432done
1433$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1434$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1435
1436# When interrupted or exit'd, cleanup temporary files, and complete
1437# config.log.  We remove comments because anyway the quotes in there
1438# would cause problems or look ugly.
1439# WARNING: Be sure not to use single quotes in there, as some shells,
1440# such as our DU 5.0 friend, will then `close' the trap.
1441trap 'exit_status=$?
1442  # Save into config.log some information that might help in debugging.
1443  {
1444    echo
1445
1446    cat <<\_ASBOX
1447## ---------------- ##
1448## Cache variables. ##
1449## ---------------- ##
1450_ASBOX
1451    echo
1452    # The following way of writing the cache mishandles newlines in values,
1453{
1454  (set) 2>&1 |
1455    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1456    *ac_space=\ *)
1457      sed -n \
1458        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1459          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1460      ;;
1461    *)
1462      sed -n \
1463        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1464      ;;
1465    esac;
1466}
1467    echo
1468
1469    cat <<\_ASBOX
1470## ----------------- ##
1471## Output variables. ##
1472## ----------------- ##
1473_ASBOX
1474    echo
1475    for ac_var in $ac_subst_vars
1476    do
1477      eval ac_val=$`echo $ac_var`
1478      echo "$ac_var='"'"'$ac_val'"'"'"
1479    done | sort
1480    echo
1481
1482    if test -n "$ac_subst_files"; then
1483      cat <<\_ASBOX
1484## ------------- ##
1485## Output files. ##
1486## ------------- ##
1487_ASBOX
1488      echo
1489      for ac_var in $ac_subst_files
1490      do
1491        eval ac_val=$`echo $ac_var`
1492        echo "$ac_var='"'"'$ac_val'"'"'"
1493      done | sort
1494      echo
1495    fi
1496
1497    if test -s confdefs.h; then
1498      cat <<\_ASBOX
1499## ----------- ##
1500## confdefs.h. ##
1501## ----------- ##
1502_ASBOX
1503      echo
1504      sed "/^$/d" confdefs.h | sort
1505      echo
1506    fi
1507    test "$ac_signal" != 0 &&
1508      echo "$as_me: caught signal $ac_signal"
1509    echo "$as_me: exit $exit_status"
1510  } >&5
1511  rm -f core *.core &&
1512  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1513    exit $exit_status
1514     ' 0
1515for ac_signal in 1 2 13 15; do
1516  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1517done
1518ac_signal=0
1519
1520# confdefs.h avoids OS command line length limits that DEFS can exceed.
1521rm -rf conftest* confdefs.h
1522# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1523echo >confdefs.h
1524
1525# Predefined preprocessor variables.
1526
1527cat >>confdefs.h <<_ACEOF
1528#define PACKAGE_NAME "$PACKAGE_NAME"
1529_ACEOF
1530
1531
1532cat >>confdefs.h <<_ACEOF
1533#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1534_ACEOF
1535
1536
1537cat >>confdefs.h <<_ACEOF
1538#define PACKAGE_VERSION "$PACKAGE_VERSION"
1539_ACEOF
1540
1541
1542cat >>confdefs.h <<_ACEOF
1543#define PACKAGE_STRING "$PACKAGE_STRING"
1544_ACEOF
1545
1546
1547cat >>confdefs.h <<_ACEOF
1548#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1549_ACEOF
1550
1551
1552# Let the site file select an alternate cache file if it wants to.
1553# Prefer explicitly selected file to automatically selected ones.
1554if test -z "$CONFIG_SITE"; then
1555  if test "x$prefix" != xNONE; then
1556    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1557  else
1558    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1559  fi
1560fi
1561for ac_site_file in $CONFIG_SITE; do
1562  if test -r "$ac_site_file"; then
1563    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1564echo "$as_me: loading site script $ac_site_file" >&6;}
1565    sed 's/^/| /' "$ac_site_file" >&5
1566    . "$ac_site_file"
1567  fi
1568done
1569
1570if test -r "$cache_file"; then
1571  # Some versions of bash will fail to source /dev/null (special
1572  # files actually), so we avoid doing that.
1573  if test -f "$cache_file"; then
1574    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1575echo "$as_me: loading cache $cache_file" >&6;}
1576    case $cache_file in
1577      [\\/]* | ?:[\\/]* ) . $cache_file;;
1578      *)                      . ./$cache_file;;
1579    esac
1580  fi
1581else
1582  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1583echo "$as_me: creating cache $cache_file" >&6;}
1584  >$cache_file
1585fi
1586
1587# Check that the precious variables saved in the cache have kept the same
1588# value.
1589ac_cache_corrupted=false
1590for ac_var in `(set) 2>&1 |
1591               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1592  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1593  eval ac_new_set=\$ac_env_${ac_var}_set
1594  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1595  eval ac_new_val="\$ac_env_${ac_var}_value"
1596  case $ac_old_set,$ac_new_set in
1597    set,)
1598      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1599echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1600      ac_cache_corrupted=: ;;
1601    ,set)
1602      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1603echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1604      ac_cache_corrupted=: ;;
1605    ,);;
1606    *)
1607      if test "x$ac_old_val" != "x$ac_new_val"; then
1608        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1609echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1610        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1611echo "$as_me:   former value:  $ac_old_val" >&2;}
1612        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1613echo "$as_me:   current value: $ac_new_val" >&2;}
1614        ac_cache_corrupted=:
1615      fi;;
1616  esac
1617  # Pass precious variables to config.status.
1618  if test "$ac_new_set" = set; then
1619    case $ac_new_val in
1620    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1621      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1622    *) ac_arg=$ac_var=$ac_new_val ;;
1623    esac
1624    case " $ac_configure_args " in
1625      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1626      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1627    esac
1628  fi
1629done
1630if $ac_cache_corrupted; then
1631  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1632echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1633  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1634echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1635   { (exit 1); exit 1; }; }
1636fi
1637
1638ac_ext=c
1639ac_cpp='$CPP $CPPFLAGS'
1640ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1641ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1642ac_compiler_gnu=$ac_cv_c_compiler_gnu
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673# List one file in the package so that the configure script can test
1674# whether the package is actually there
1675
1676
1677# Where should everything be installed by default?  Here, we want it
1678# to be installed directly in 'bin', 'lib', 'include' subdirectories
1679# of the directory where configure is run.  The default would be
1680# /usr/local.
1681
1682
1683#############################################################################
1684#                         Standard build tool stuff                         #
1685#############################################################################
1686
1687# Get the system type
1688ac_aux_dir=
1689for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1690  if test -f $ac_dir/install-sh; then
1691    ac_aux_dir=$ac_dir
1692    ac_install_sh="$ac_aux_dir/install-sh -c"
1693    break
1694  elif test -f $ac_dir/install.sh; then
1695    ac_aux_dir=$ac_dir
1696    ac_install_sh="$ac_aux_dir/install.sh -c"
1697    break
1698  elif test -f $ac_dir/shtool; then
1699    ac_aux_dir=$ac_dir
1700    ac_install_sh="$ac_aux_dir/shtool install -c"
1701    break
1702  fi
1703done
1704if test -z "$ac_aux_dir"; then
1705  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1706echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1707   { (exit 1); exit 1; }; }
1708fi
1709ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1710ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1711ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1712
1713# Make sure we can run config.sub.
1714$ac_config_sub sun4 >/dev/null 2>&1 ||
1715  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1716echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1717   { (exit 1); exit 1; }; }
1718
1719echo "$as_me:$LINENO: checking build system type" >&5
1720echo $ECHO_N "checking build system type... $ECHO_C" >&6
1721if test "${ac_cv_build+set}" = set; then
1722  echo $ECHO_N "(cached) $ECHO_C" >&6
1723else
1724  ac_cv_build_alias=$build_alias
1725test -z "$ac_cv_build_alias" &&
1726  ac_cv_build_alias=`$ac_config_guess`
1727test -z "$ac_cv_build_alias" &&
1728  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1729echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1730   { (exit 1); exit 1; }; }
1731ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1732  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1733echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1734   { (exit 1); exit 1; }; }
1735
1736fi
1737echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1738echo "${ECHO_T}$ac_cv_build" >&6
1739build=$ac_cv_build
1740build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1741build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1742build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1743
1744
1745
1746# If this project depends on external projects, the Externals file in
1747# the source root directory contains definition of where to find those
1748# externals.  The following macro ensures that those externals are
1749# retrieved by svn if they are not there yet.
1750# Initialize the ADDLIBS variable
1751ADDLIBS="-lm $LIBS"
1752
1753
1754# Initialize the FADDLIBS variable (which is to be used with a fortran
1755# compiler and will not include FLIBS)
1756FADDLIBS="$LIBS"
1757
1758
1759# A useful makefile conditional that is always false
1760
1761
1762if false; then
1763  ALWAYS_FALSE_TRUE=
1764  ALWAYS_FALSE_FALSE='#'
1765else
1766  ALWAYS_FALSE_TRUE='#'
1767  ALWAYS_FALSE_FALSE=
1768fi
1769
1770
1771# We set the following variable so that we know later in AC_COIN_FINALIZE
1772# that we are in a project main directory
1773coin_projectdir=yes
1774
1775# Check if a library version is set for libtool
1776
1777
1778
1779# Check if user wants to produce debugging code
1780
1781echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1782echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1783
1784# Check whether --enable-debug or --disable-debug was given.
1785if test "${enable_debug+set}" = set; then
1786  enableval="$enable_debug"
1787  case "${enableval}" in
1788   yes) coin_debug_compile=true
1789        if test "${enable_shared+set}" = set; then :; else
1790          enable_shared=no
1791        fi
1792        ;;
1793   no)  coin_debug_compile=false
1794        ;;
1795   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1796echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1797   { (exit 1); exit 1; }; }
1798        ;;
1799esac
1800else
1801  coin_debug_compile=false
1802fi;
1803
1804# Check whether --enable-debug-cbc or --disable-debug-cbc was given.
1805if test "${enable_debug_cbc+set}" = set; then
1806  enableval="$enable_debug_cbc"
1807  case "${enableval}" in
1808    yes) coin_debug_compile=true
1809         enable_shared=no
1810         ;;
1811    no)  coin_debug_compile=false
1812         ;;
1813    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-cbc" >&5
1814echo "$as_me: error: bad value ${enableval} for --enable-debug-cbc" >&2;}
1815   { (exit 1); exit 1; }; }
1816         ;;
1817 esac
1818else
1819  :
1820fi;
1821
1822 # m4_ifvaln([Cbc],
1823
1824if test $coin_debug_compile = true; then
1825  echo "$as_me:$LINENO: result: yes" >&5
1826echo "${ECHO_T}yes" >&6
1827else
1828  echo "$as_me:$LINENO: result: no" >&5
1829echo "${ECHO_T}no" >&6
1830fi
1831
1832
1833# Check whether --with-cbc-verbosity or --without-cbc-verbosity was given.
1834if test "${with_cbc_verbosity+set}" = set; then
1835  withval="$with_cbc_verbosity"
1836  if test "$withval" = yes; then
1837                withval=1
1838              fi
1839              coin_cbc_verbosity=$withval
1840else
1841  coin_cbc_verbosity=0
1842fi;
1843
1844cat >>confdefs.h <<_ACEOF
1845#define COIN_CBC_VERBOSITY $coin_cbc_verbosity
1846_ACEOF
1847
1848
1849
1850# Check whether --with-cbc-checklevel or --without-cbc-checklevel was given.
1851if test "${with_cbc_checklevel+set}" = set; then
1852  withval="$with_cbc_checklevel"
1853  if test "$withval" = yes; then
1854                withval=1
1855              fi
1856              coin_cbc_checklevel=$withval
1857else
1858  coin_cbc_checklevel=0
1859fi;
1860
1861cat >>confdefs.h <<_ACEOF
1862#define COIN_CBC_CHECKLEVEL $coin_cbc_checklevel
1863_ACEOF
1864
1865
1866# We use the following variable to have a string with the upper case
1867# version of the project name
1868COIN_PRJCT=CBC
1869
1870
1871 # m4_ifvaln([Cbc],
1872
1873
1874
1875# Get the name of the C++ compiler and appropriate compiler options
1876case $build in
1877  *-mingw*)
1878    if test "${LD+set}" = set; then :; else
1879      LD=link
1880    fi
1881    ;;
1882 esac
1883 case $enable_doscompile in
1884   msvc)
1885     if test "x${LD+set}" = xset; then :; else
1886       LD=link
1887     fi
1888     ;;
1889 esac
1890
1891
1892 # Check whether --enable-doscompile or --disable-doscompile was given.
1893if test "${enable_doscompile+set}" = set; then
1894  enableval="$enable_doscompile"
1895  if test "$enable_doscompile" != no; then
1896     case $build in
1897       *-cygwin* | *-mingw*) ;;
1898       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1899echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1900   { (exit 1); exit 1; }; } ;;
1901     esac
1902   fi
1903else
1904  enable_doscompile=no
1905fi;
1906 case "$enable_doscompile" in
1907   mingw)
1908     case $build in
1909       *-mingw*) enable_doscompile=no ;;
1910     esac
1911     ;;
1912   msvc|no) ;;
1913   yes) enable_doscompile=mingw ;;
1914   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1915                    Try configure --help=recursive." >&5
1916echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1917                    Try configure --help=recursive." >&2;}
1918   { (exit 1); exit 1; }; }
1919      ;;
1920  esac
1921  if test "$enable_doscompile" != no ; then
1922    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1923echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1924  fi
1925
1926
1927
1928
1929ac_ext=c
1930ac_cpp='$CPP $CPPFLAGS'
1931ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1932ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1933ac_compiler_gnu=$ac_cv_c_compiler_gnu
1934
1935
1936# For consistency, we set the C compiler to the same value of the C++
1937# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1938if test x"$CXX" != x; then
1939  case "$CXX" in
1940    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1941      if test x"$CC" = x; then
1942        CC="$CXX"
1943        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1944echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1945      fi
1946      ;;
1947  esac
1948fi
1949
1950
1951
1952
1953
1954
1955coin_has_cc=yes
1956
1957save_cflags="$CFLAGS"
1958
1959# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
1960# Depending on the user's PATH, when Studio/Workshop cc is not present we may
1961# find /usr/ucb/cc, which is almost certainly not a good choice for the C
1962# compiler. In this case, put cc after gcc.
1963
1964case $build in
1965  *-cygwin* | *-mingw*)
1966             if test "$enable_doscompile" = msvc ; then
1967               comps="icl cl"
1968             else
1969               comps="gcc cl"
1970             fi ;;
1971  *-*-solaris*)
1972             # Extract the first word of "cc", so it can be a program name with args.
1973set dummy cc; ac_word=$2
1974echo "$as_me:$LINENO: checking for $ac_word" >&5
1975echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1976if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
1977  echo $ECHO_N "(cached) $ECHO_C" >&6
1978else
1979  if test -n "$sol_cc_compiler"; then
1980  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
1981else
1982  ac_prog_rejected=no
1983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1984for as_dir in $PATH
1985do
1986  IFS=$as_save_IFS
1987  test -z "$as_dir" && as_dir=.
1988  for ac_exec_ext in '' $ac_executable_extensions; do
1989  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1990    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1991       ac_prog_rejected=yes
1992       continue
1993     fi
1994    ac_cv_prog_sol_cc_compiler="cc"
1995    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1996    break 2
1997  fi
1998done
1999done
2000
2001if test $ac_prog_rejected = yes; then
2002  # We found a bogon in the path, so make sure we never use it.
2003  set dummy $ac_cv_prog_sol_cc_compiler
2004  shift
2005  if test $# != 0; then
2006    # We chose a different compiler from the bogus one.
2007    # However, it has the same basename, so the bogon will be chosen
2008    # first if we set sol_cc_compiler to just the basename; use the full file name.
2009    shift
2010    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2011  fi
2012fi
2013fi
2014fi
2015sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2016if test -n "$sol_cc_compiler"; then
2017  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2018echo "${ECHO_T}$sol_cc_compiler" >&6
2019else
2020  echo "$as_me:$LINENO: result: no" >&5
2021echo "${ECHO_T}no" >&6
2022fi
2023
2024             if test "$sol_cc_compiler" = "cc" ; then
2025               comps="cc xlc gcc pgcc icc"
2026             else
2027               comps="xlc gcc pgcc icc cc"
2028             fi
2029             ;;
2030  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2031  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2032esac
2033
2034# We delete the cached value, since the test might not have been
2035# performed with our choice of compilers earlier
2036$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2037# AC_MSG_NOTICE([C compiler candidates: $comps])
2038ac_ext=c
2039ac_cpp='$CPP $CPPFLAGS'
2040ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2041ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2042ac_compiler_gnu=$ac_cv_c_compiler_gnu
2043if test -n "$ac_tool_prefix"; then
2044  for ac_prog in $comps
2045  do
2046    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2047set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2048echo "$as_me:$LINENO: checking for $ac_word" >&5
2049echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2050if test "${ac_cv_prog_CC+set}" = set; then
2051  echo $ECHO_N "(cached) $ECHO_C" >&6
2052else
2053  if test -n "$CC"; then
2054  ac_cv_prog_CC="$CC" # Let the user override the test.
2055else
2056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2057for as_dir in $PATH
2058do
2059  IFS=$as_save_IFS
2060  test -z "$as_dir" && as_dir=.
2061  for ac_exec_ext in '' $ac_executable_extensions; do
2062  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2063    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2064    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2065    break 2
2066  fi
2067done
2068done
2069
2070fi
2071fi
2072CC=$ac_cv_prog_CC
2073if test -n "$CC"; then
2074  echo "$as_me:$LINENO: result: $CC" >&5
2075echo "${ECHO_T}$CC" >&6
2076else
2077  echo "$as_me:$LINENO: result: no" >&5
2078echo "${ECHO_T}no" >&6
2079fi
2080
2081    test -n "$CC" && break
2082  done
2083fi
2084if test -z "$CC"; then
2085  ac_ct_CC=$CC
2086  for ac_prog in $comps
2087do
2088  # Extract the first word of "$ac_prog", so it can be a program name with args.
2089set dummy $ac_prog; ac_word=$2
2090echo "$as_me:$LINENO: checking for $ac_word" >&5
2091echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2092if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2093  echo $ECHO_N "(cached) $ECHO_C" >&6
2094else
2095  if test -n "$ac_ct_CC"; then
2096  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2097else
2098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2099for as_dir in $PATH
2100do
2101  IFS=$as_save_IFS
2102  test -z "$as_dir" && as_dir=.
2103  for ac_exec_ext in '' $ac_executable_extensions; do
2104  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2105    ac_cv_prog_ac_ct_CC="$ac_prog"
2106    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2107    break 2
2108  fi
2109done
2110done
2111
2112fi
2113fi
2114ac_ct_CC=$ac_cv_prog_ac_ct_CC
2115if test -n "$ac_ct_CC"; then
2116  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2117echo "${ECHO_T}$ac_ct_CC" >&6
2118else
2119  echo "$as_me:$LINENO: result: no" >&5
2120echo "${ECHO_T}no" >&6
2121fi
2122
2123  test -n "$ac_ct_CC" && break
2124done
2125
2126  CC=$ac_ct_CC
2127fi
2128
2129
2130test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2131See \`config.log' for more details." >&5
2132echo "$as_me: error: no acceptable C compiler found in \$PATH
2133See \`config.log' for more details." >&2;}
2134   { (exit 1); exit 1; }; }
2135
2136# Provide some information about the compiler.
2137echo "$as_me:$LINENO:" \
2138     "checking for C compiler version" >&5
2139ac_compiler=`set X $ac_compile; echo $2`
2140{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2141  (eval $ac_compiler --version </dev/null >&5) 2>&5
2142  ac_status=$?
2143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2144  (exit $ac_status); }
2145{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2146  (eval $ac_compiler -v </dev/null >&5) 2>&5
2147  ac_status=$?
2148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2149  (exit $ac_status); }
2150{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2151  (eval $ac_compiler -V </dev/null >&5) 2>&5
2152  ac_status=$?
2153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154  (exit $ac_status); }
2155
2156cat >conftest.$ac_ext <<_ACEOF
2157/* confdefs.h.  */
2158_ACEOF
2159cat confdefs.h >>conftest.$ac_ext
2160cat >>conftest.$ac_ext <<_ACEOF
2161/* end confdefs.h.  */
2162
2163int
2164main ()
2165{
2166
2167  ;
2168  return 0;
2169}
2170_ACEOF
2171ac_clean_files_save=$ac_clean_files
2172ac_clean_files="$ac_clean_files a.out a.exe b.out"
2173# Try to create an executable without -o first, disregard a.out.
2174# It will help us diagnose broken compilers, and finding out an intuition
2175# of exeext.
2176echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2177echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2178ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2179if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2180  (eval $ac_link_default) 2>&5
2181  ac_status=$?
2182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183  (exit $ac_status); }; then
2184  # Find the output, starting from the most likely.  This scheme is
2185# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2186# resort.
2187
2188# Be careful to initialize this variable, since it used to be cached.
2189# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2190ac_cv_exeext=
2191# b.out is created by i960 compilers.
2192for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2193do
2194  test -f "$ac_file" || continue
2195  case $ac_file in
2196    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2197        ;;
2198    conftest.$ac_ext )
2199        # This is the source file.
2200        ;;
2201    [ab].out )
2202        # We found the default executable, but exeext='' is most
2203        # certainly right.
2204        break;;
2205    *.* )
2206        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2207        # FIXME: I believe we export ac_cv_exeext for Libtool,
2208        # but it would be cool to find out if it's true.  Does anybody
2209        # maintain Libtool? --akim.
2210        export ac_cv_exeext
2211        break;;
2212    * )
2213        break;;
2214  esac
2215done
2216else
2217  echo "$as_me: failed program was:" >&5
2218sed 's/^/| /' conftest.$ac_ext >&5
2219
2220{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2221See \`config.log' for more details." >&5
2222echo "$as_me: error: C compiler cannot create executables
2223See \`config.log' for more details." >&2;}
2224   { (exit 77); exit 77; }; }
2225fi
2226
2227ac_exeext=$ac_cv_exeext
2228echo "$as_me:$LINENO: result: $ac_file" >&5
2229echo "${ECHO_T}$ac_file" >&6
2230
2231# Check the compiler produces executables we can run.  If not, either
2232# the compiler is broken, or we cross compile.
2233echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2234echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2235# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2236# If not cross compiling, check that we can run a simple program.
2237if test "$cross_compiling" != yes; then
2238  if { ac_try='./$ac_file'
2239  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2240  (eval $ac_try) 2>&5
2241  ac_status=$?
2242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243  (exit $ac_status); }; }; then
2244    cross_compiling=no
2245  else
2246    if test "$cross_compiling" = maybe; then
2247        cross_compiling=yes
2248    else
2249        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2250If you meant to cross compile, use \`--host'.
2251See \`config.log' for more details." >&5
2252echo "$as_me: error: cannot run C compiled programs.
2253If you meant to cross compile, use \`--host'.
2254See \`config.log' for more details." >&2;}
2255   { (exit 1); exit 1; }; }
2256    fi
2257  fi
2258fi
2259echo "$as_me:$LINENO: result: yes" >&5
2260echo "${ECHO_T}yes" >&6
2261
2262rm -f a.out a.exe conftest$ac_cv_exeext b.out
2263ac_clean_files=$ac_clean_files_save
2264# Check the compiler produces executables we can run.  If not, either
2265# the compiler is broken, or we cross compile.
2266echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2267echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2268echo "$as_me:$LINENO: result: $cross_compiling" >&5
2269echo "${ECHO_T}$cross_compiling" >&6
2270
2271echo "$as_me:$LINENO: checking for suffix of executables" >&5
2272echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2273if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2274  (eval $ac_link) 2>&5
2275  ac_status=$?
2276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277  (exit $ac_status); }; then
2278  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2279# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2280# work properly (i.e., refer to `conftest.exe'), while it won't with
2281# `rm'.
2282for ac_file in conftest.exe conftest conftest.*; do
2283  test -f "$ac_file" || continue
2284  case $ac_file in
2285    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2286    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2287          export ac_cv_exeext
2288          break;;
2289    * ) break;;
2290  esac
2291done
2292else
2293  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2294See \`config.log' for more details." >&5
2295echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2296See \`config.log' for more details." >&2;}
2297   { (exit 1); exit 1; }; }
2298fi
2299
2300rm -f conftest$ac_cv_exeext
2301echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2302echo "${ECHO_T}$ac_cv_exeext" >&6
2303
2304rm -f conftest.$ac_ext
2305EXEEXT=$ac_cv_exeext
2306ac_exeext=$EXEEXT
2307echo "$as_me:$LINENO: checking for suffix of object files" >&5
2308echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2309if test "${ac_cv_objext+set}" = set; then
2310  echo $ECHO_N "(cached) $ECHO_C" >&6
2311else
2312  cat >conftest.$ac_ext <<_ACEOF
2313/* confdefs.h.  */
2314_ACEOF
2315cat confdefs.h >>conftest.$ac_ext
2316cat >>conftest.$ac_ext <<_ACEOF
2317/* end confdefs.h.  */
2318
2319int
2320main ()
2321{
2322
2323  ;
2324  return 0;
2325}
2326_ACEOF
2327rm -f conftest.o conftest.obj
2328if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2329  (eval $ac_compile) 2>&5
2330  ac_status=$?
2331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332  (exit $ac_status); }; then
2333  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2334  case $ac_file in
2335    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2336    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2337       break;;
2338  esac
2339done
2340else
2341  echo "$as_me: failed program was:" >&5
2342sed 's/^/| /' conftest.$ac_ext >&5
2343
2344{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2345See \`config.log' for more details." >&5
2346echo "$as_me: error: cannot compute suffix of object files: cannot compile
2347See \`config.log' for more details." >&2;}
2348   { (exit 1); exit 1; }; }
2349fi
2350
2351rm -f conftest.$ac_cv_objext conftest.$ac_ext
2352fi
2353echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2354echo "${ECHO_T}$ac_cv_objext" >&6
2355OBJEXT=$ac_cv_objext
2356ac_objext=$OBJEXT
2357echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2358echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2359if test "${ac_cv_c_compiler_gnu+set}" = set; then
2360  echo $ECHO_N "(cached) $ECHO_C" >&6
2361else
2362  cat >conftest.$ac_ext <<_ACEOF
2363/* confdefs.h.  */
2364_ACEOF
2365cat confdefs.h >>conftest.$ac_ext
2366cat >>conftest.$ac_ext <<_ACEOF
2367/* end confdefs.h.  */
2368
2369int
2370main ()
2371{
2372#ifndef __GNUC__
2373       choke me
2374#endif
2375
2376  ;
2377  return 0;
2378}
2379_ACEOF
2380rm -f conftest.$ac_objext
2381if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2382  (eval $ac_compile) 2>conftest.er1
2383  ac_status=$?
2384  grep -v '^ *+' conftest.er1 >conftest.err
2385  rm -f conftest.er1
2386  cat conftest.err >&5
2387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388  (exit $ac_status); } &&
2389         { ac_try='test -z "$ac_c_werror_flag"
2390                         || test ! -s conftest.err'
2391  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2392  (eval $ac_try) 2>&5
2393  ac_status=$?
2394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395  (exit $ac_status); }; } &&
2396         { ac_try='test -s conftest.$ac_objext'
2397  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2398  (eval $ac_try) 2>&5
2399  ac_status=$?
2400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401  (exit $ac_status); }; }; then
2402  ac_compiler_gnu=yes
2403else
2404  echo "$as_me: failed program was:" >&5
2405sed 's/^/| /' conftest.$ac_ext >&5
2406
2407ac_compiler_gnu=no
2408fi
2409rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2410ac_cv_c_compiler_gnu=$ac_compiler_gnu
2411
2412fi
2413echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2414echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2415GCC=`test $ac_compiler_gnu = yes && echo yes`
2416ac_test_CFLAGS=${CFLAGS+set}
2417ac_save_CFLAGS=$CFLAGS
2418CFLAGS="-g"
2419echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2420echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2421if test "${ac_cv_prog_cc_g+set}" = set; then
2422  echo $ECHO_N "(cached) $ECHO_C" >&6
2423else
2424  cat >conftest.$ac_ext <<_ACEOF
2425/* confdefs.h.  */
2426_ACEOF
2427cat confdefs.h >>conftest.$ac_ext
2428cat >>conftest.$ac_ext <<_ACEOF
2429/* end confdefs.h.  */
2430
2431int
2432main ()
2433{
2434
2435  ;
2436  return 0;
2437}
2438_ACEOF
2439rm -f conftest.$ac_objext
2440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2441  (eval $ac_compile) 2>conftest.er1
2442  ac_status=$?
2443  grep -v '^ *+' conftest.er1 >conftest.err
2444  rm -f conftest.er1
2445  cat conftest.err >&5
2446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447  (exit $ac_status); } &&
2448         { ac_try='test -z "$ac_c_werror_flag"
2449                         || test ! -s conftest.err'
2450  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2451  (eval $ac_try) 2>&5
2452  ac_status=$?
2453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454  (exit $ac_status); }; } &&
2455         { ac_try='test -s conftest.$ac_objext'
2456  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2457  (eval $ac_try) 2>&5
2458  ac_status=$?
2459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460  (exit $ac_status); }; }; then
2461  ac_cv_prog_cc_g=yes
2462else
2463  echo "$as_me: failed program was:" >&5
2464sed 's/^/| /' conftest.$ac_ext >&5
2465
2466ac_cv_prog_cc_g=no
2467fi
2468rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2469fi
2470echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2471echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2472if test "$ac_test_CFLAGS" = set; then
2473  CFLAGS=$ac_save_CFLAGS
2474elif test $ac_cv_prog_cc_g = yes; then
2475  if test "$GCC" = yes; then
2476    CFLAGS="-g -O2"
2477  else
2478    CFLAGS="-g"
2479  fi
2480else
2481  if test "$GCC" = yes; then
2482    CFLAGS="-O2"
2483  else
2484    CFLAGS=
2485  fi
2486fi
2487echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2488echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2489if test "${ac_cv_prog_cc_stdc+set}" = set; then
2490  echo $ECHO_N "(cached) $ECHO_C" >&6
2491else
2492  ac_cv_prog_cc_stdc=no
2493ac_save_CC=$CC
2494cat >conftest.$ac_ext <<_ACEOF
2495/* confdefs.h.  */
2496_ACEOF
2497cat confdefs.h >>conftest.$ac_ext
2498cat >>conftest.$ac_ext <<_ACEOF
2499/* end confdefs.h.  */
2500#include <stdarg.h>
2501#include <stdio.h>
2502#include <sys/types.h>
2503#include <sys/stat.h>
2504/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2505struct buf { int x; };
2506FILE * (*rcsopen) (struct buf *, struct stat *, int);
2507static char *e (p, i)
2508     char **p;
2509     int i;
2510{
2511  return p[i];
2512}
2513static char *f (char * (*g) (char **, int), char **p, ...)
2514{
2515  char *s;
2516  va_list v;
2517  va_start (v,p);
2518  s = g (p, va_arg (v,int));
2519  va_end (v);
2520  return s;
2521}
2522
2523/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2524   function prototypes and stuff, but not '\xHH' hex character constants.
2525   These don't provoke an error unfortunately, instead are silently treated
2526   as 'x'.  The following induces an error, until -std1 is added to get
2527   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2528   array size at least.  It's necessary to write '\x00'==0 to get something
2529   that's true only with -std1.  */
2530int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2531
2532int test (int i, double x);
2533struct s1 {int (*f) (int a);};
2534struct s2 {int (*f) (double a);};
2535int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2536int argc;
2537char **argv;
2538int
2539main ()
2540{
2541return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2542  ;
2543  return 0;
2544}
2545_ACEOF
2546# Don't try gcc -ansi; that turns off useful extensions and
2547# breaks some systems' header files.
2548# AIX                   -qlanglvl=ansi
2549# Ultrix and OSF/1      -std1
2550# HP-UX 10.20 and later -Ae
2551# HP-UX older versions  -Aa -D_HPUX_SOURCE
2552# SVR4                  -Xc -D__EXTENSIONS__
2553for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2554do
2555  CC="$ac_save_CC $ac_arg"
2556  rm -f conftest.$ac_objext
2557if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2558  (eval $ac_compile) 2>conftest.er1
2559  ac_status=$?
2560  grep -v '^ *+' conftest.er1 >conftest.err
2561  rm -f conftest.er1
2562  cat conftest.err >&5
2563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564  (exit $ac_status); } &&
2565         { ac_try='test -z "$ac_c_werror_flag"
2566                         || test ! -s conftest.err'
2567  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2568  (eval $ac_try) 2>&5
2569  ac_status=$?
2570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571  (exit $ac_status); }; } &&
2572         { ac_try='test -s conftest.$ac_objext'
2573  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2574  (eval $ac_try) 2>&5
2575  ac_status=$?
2576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577  (exit $ac_status); }; }; then
2578  ac_cv_prog_cc_stdc=$ac_arg
2579break
2580else
2581  echo "$as_me: failed program was:" >&5
2582sed 's/^/| /' conftest.$ac_ext >&5
2583
2584fi
2585rm -f conftest.err conftest.$ac_objext
2586done
2587rm -f conftest.$ac_ext conftest.$ac_objext
2588CC=$ac_save_CC
2589
2590fi
2591
2592case "x$ac_cv_prog_cc_stdc" in
2593  x|xno)
2594    echo "$as_me:$LINENO: result: none needed" >&5
2595echo "${ECHO_T}none needed" >&6 ;;
2596  *)
2597    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2598echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2599    CC="$CC $ac_cv_prog_cc_stdc" ;;
2600esac
2601
2602# Some people use a C++ compiler to compile C.  Since we use `exit',
2603# in C++ we need to declare it.  In case someone uses the same compiler
2604# for both compiling C and C++ we need to have the C++ compiler decide
2605# the declaration of exit, since it's the most demanding environment.
2606cat >conftest.$ac_ext <<_ACEOF
2607#ifndef __cplusplus
2608  choke me
2609#endif
2610_ACEOF
2611rm -f conftest.$ac_objext
2612if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2613  (eval $ac_compile) 2>conftest.er1
2614  ac_status=$?
2615  grep -v '^ *+' conftest.er1 >conftest.err
2616  rm -f conftest.er1
2617  cat conftest.err >&5
2618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619  (exit $ac_status); } &&
2620         { ac_try='test -z "$ac_c_werror_flag"
2621                         || test ! -s conftest.err'
2622  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2623  (eval $ac_try) 2>&5
2624  ac_status=$?
2625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626  (exit $ac_status); }; } &&
2627         { ac_try='test -s conftest.$ac_objext'
2628  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2629  (eval $ac_try) 2>&5
2630  ac_status=$?
2631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632  (exit $ac_status); }; }; then
2633  for ac_declaration in \
2634   '' \
2635   'extern "C" void std::exit (int) throw (); using std::exit;' \
2636   'extern "C" void std::exit (int); using std::exit;' \
2637   'extern "C" void exit (int) throw ();' \
2638   'extern "C" void exit (int);' \
2639   'void exit (int);'
2640do
2641  cat >conftest.$ac_ext <<_ACEOF
2642/* confdefs.h.  */
2643_ACEOF
2644cat confdefs.h >>conftest.$ac_ext
2645cat >>conftest.$ac_ext <<_ACEOF
2646/* end confdefs.h.  */
2647$ac_declaration
2648#include <stdlib.h>
2649int
2650main ()
2651{
2652exit (42);
2653  ;
2654  return 0;
2655}
2656_ACEOF
2657rm -f conftest.$ac_objext
2658if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2659  (eval $ac_compile) 2>conftest.er1
2660  ac_status=$?
2661  grep -v '^ *+' conftest.er1 >conftest.err
2662  rm -f conftest.er1
2663  cat conftest.err >&5
2664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665  (exit $ac_status); } &&
2666         { ac_try='test -z "$ac_c_werror_flag"
2667                         || test ! -s conftest.err'
2668  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2669  (eval $ac_try) 2>&5
2670  ac_status=$?
2671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672  (exit $ac_status); }; } &&
2673         { ac_try='test -s conftest.$ac_objext'
2674  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2675  (eval $ac_try) 2>&5
2676  ac_status=$?
2677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678  (exit $ac_status); }; }; then
2679  :
2680else
2681  echo "$as_me: failed program was:" >&5
2682sed 's/^/| /' conftest.$ac_ext >&5
2683
2684continue
2685fi
2686rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2687  cat >conftest.$ac_ext <<_ACEOF
2688/* confdefs.h.  */
2689_ACEOF
2690cat confdefs.h >>conftest.$ac_ext
2691cat >>conftest.$ac_ext <<_ACEOF
2692/* end confdefs.h.  */
2693$ac_declaration
2694int
2695main ()
2696{
2697exit (42);
2698  ;
2699  return 0;
2700}
2701_ACEOF
2702rm -f conftest.$ac_objext
2703if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2704  (eval $ac_compile) 2>conftest.er1
2705  ac_status=$?
2706  grep -v '^ *+' conftest.er1 >conftest.err
2707  rm -f conftest.er1
2708  cat conftest.err >&5
2709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710  (exit $ac_status); } &&
2711         { ac_try='test -z "$ac_c_werror_flag"
2712                         || test ! -s conftest.err'
2713  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2714  (eval $ac_try) 2>&5
2715  ac_status=$?
2716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717  (exit $ac_status); }; } &&
2718         { ac_try='test -s conftest.$ac_objext'
2719  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2720  (eval $ac_try) 2>&5
2721  ac_status=$?
2722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723  (exit $ac_status); }; }; then
2724  break
2725else
2726  echo "$as_me: failed program was:" >&5
2727sed 's/^/| /' conftest.$ac_ext >&5
2728
2729fi
2730rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2731done
2732rm -f conftest*
2733if test -n "$ac_declaration"; then
2734  echo '#ifdef __cplusplus' >>confdefs.h
2735  echo $ac_declaration      >>confdefs.h
2736  echo '#endif'             >>confdefs.h
2737fi
2738
2739else
2740  echo "$as_me: failed program was:" >&5
2741sed 's/^/| /' conftest.$ac_ext >&5
2742
2743fi
2744rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2745ac_ext=c
2746ac_cpp='$CPP $CPPFLAGS'
2747ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2748ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2749ac_compiler_gnu=$ac_cv_c_compiler_gnu
2750
2751if test -z "$CC" ; then
2752  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2753echo "$as_me: error: Failed to find a C compiler!" >&2;}
2754   { (exit 1); exit 1; }; }
2755fi
2756# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2757case "$CC" in
2758  cl* | */cl* | CL* | */CL* )
2759    if test "$ac_cv_prog_cc_g" = yes ; then
2760      ac_cv_prog_cc_g=no
2761      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2762echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2763    fi ;;
2764esac
2765CFLAGS="$save_cflags"
2766
2767# Check if a project specific CFLAGS variable has been set
2768if test x$COIN_PRJCT != x; then
2769  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2770  if test x$coin_tmp = xset; then
2771    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2772  fi
2773fi
2774
2775if test x"$CFLAGS" = x; then
2776
2777  coin_add_cflags=
2778  coin_opt_cflags=
2779  coin_dbg_cflags=
2780  coin_warn_cflags=
2781
2782  if test "$GCC" = "yes"; then
2783    case "$CC" in
2784      icc* | */icc*)
2785        ;;
2786      *)
2787        coin_opt_cflags="-O3 -fomit-frame-pointer"
2788        coin_add_cflags="-pipe"
2789        coin_dbg_cflags="-g"
2790        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas"
2791        case $build in
2792          *-darwin*)
2793            ;;
2794          *)
2795            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2796            ;;
2797        esac
2798        case $enable_doscompile in
2799          mingw)
2800            CFLAGS="-mno-cygwin"
2801            cat >conftest.$ac_ext <<_ACEOF
2802/* confdefs.h.  */
2803_ACEOF
2804cat confdefs.h >>conftest.$ac_ext
2805cat >>conftest.$ac_ext <<_ACEOF
2806/* end confdefs.h.  */
2807
2808int
2809main ()
2810{
2811int i=0; i++;
2812  ;
2813  return 0;
2814}
2815_ACEOF
2816rm -f conftest.$ac_objext conftest$ac_exeext
2817if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2818  (eval $ac_link) 2>conftest.er1
2819  ac_status=$?
2820  grep -v '^ *+' conftest.er1 >conftest.err
2821  rm -f conftest.er1
2822  cat conftest.err >&5
2823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824  (exit $ac_status); } &&
2825         { ac_try='test -z "$ac_c_werror_flag"
2826                         || test ! -s conftest.err'
2827  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2828  (eval $ac_try) 2>&5
2829  ac_status=$?
2830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831  (exit $ac_status); }; } &&
2832         { ac_try='test -s conftest$ac_exeext'
2833  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2834  (eval $ac_try) 2>&5
2835  ac_status=$?
2836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837  (exit $ac_status); }; }; then
2838  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2839else
2840  echo "$as_me: failed program was:" >&5
2841sed 's/^/| /' conftest.$ac_ext >&5
2842
2843fi
2844rm -f conftest.err conftest.$ac_objext \
2845      conftest$ac_exeext conftest.$ac_ext
2846            CFLAGS=
2847          ;;
2848        esac
2849    esac
2850  fi
2851  if test -z "$coin_opt_cflags"; then
2852    case $build in
2853      *-cygwin* | *-mingw*)
2854        case "$CC" in
2855          cl* | */cl* | CL* | */CL*)
2856            coin_opt_cflags='-MT -O2'
2857            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2858            coin_dbg_cflags='-MTd'
2859            ;;
2860          icl* | */icl* | ICL* | */ICL*)
2861            coin_opt_cflags='-MT -Ox'
2862            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2863            coin_dbg_cflags='-MTd -debug'
2864            ;;
2865        esac
2866        ;;
2867      *-linux-*)
2868        case "$CC" in
2869          icc* | */icc*)
2870            coin_opt_cflags="-O3 -ip -mp1"
2871            coin_add_cflags=""
2872            coin_dbg_cflags="-g"
2873            # Check if -i_dynamic is necessary (for new glibc library)
2874            CFLAGS=
2875            cat >conftest.$ac_ext <<_ACEOF
2876/* confdefs.h.  */
2877_ACEOF
2878cat confdefs.h >>conftest.$ac_ext
2879cat >>conftest.$ac_ext <<_ACEOF
2880/* end confdefs.h.  */
2881
2882int
2883main ()
2884{
2885int i=0; i++;
2886  ;
2887  return 0;
2888}
2889_ACEOF
2890rm -f conftest.$ac_objext conftest$ac_exeext
2891if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2892  (eval $ac_link) 2>conftest.er1
2893  ac_status=$?
2894  grep -v '^ *+' conftest.er1 >conftest.err
2895  rm -f conftest.er1
2896  cat conftest.err >&5
2897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898  (exit $ac_status); } &&
2899         { ac_try='test -z "$ac_c_werror_flag"
2900                         || test ! -s conftest.err'
2901  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2902  (eval $ac_try) 2>&5
2903  ac_status=$?
2904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905  (exit $ac_status); }; } &&
2906         { ac_try='test -s conftest$ac_exeext'
2907  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2908  (eval $ac_try) 2>&5
2909  ac_status=$?
2910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911  (exit $ac_status); }; }; then
2912  :
2913else
2914  echo "$as_me: failed program was:" >&5
2915sed 's/^/| /' conftest.$ac_ext >&5
2916
2917coin_add_cflags="-i_dynamic $coin_add_cflags"
2918fi
2919rm -f conftest.err conftest.$ac_objext \
2920      conftest$ac_exeext conftest.$ac_ext
2921            ;;
2922          pgcc* | */pgcc*)
2923            coin_opt_cflags="-fast"
2924            coin_add_cflags="-Kieee -pc 64"
2925            coin_dbg_cflags="-g"
2926            ;;
2927        esac
2928        ;;
2929      *-ibm-*)
2930        case "$CC" in
2931          xlc* | */xlc* | mpxlc* | */mpxlc*)
2932            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2933            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2934            coin_dbg_cflags="-g"
2935          ;;
2936        esac
2937        ;;
2938      *-hp-*)
2939        coin_opt_cflags="-O"
2940        coin_add_cflags="-Ae"
2941        coin_dbg_cflags="-g"
2942        ;;
2943      *-*-solaris*)
2944        coin_opt_cflags="-xO4"
2945        coin_dbg_cflags="-g"
2946        ;;
2947      *-sgi-*)
2948        coin_opt_cflags="-O -OPT:Olimit=0"
2949        coin_dbg_cflags="-g"
2950        ;;
2951    esac
2952  fi
2953
2954  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2955    coin_dbg_cflags="-g"
2956  fi
2957
2958  if test -z "$coin_opt_cflags"; then
2959    # Try if -O option works if nothing else is set
2960    CFLAGS="-O"
2961    cat >conftest.$ac_ext <<_ACEOF
2962/* confdefs.h.  */
2963_ACEOF
2964cat confdefs.h >>conftest.$ac_ext
2965cat >>conftest.$ac_ext <<_ACEOF
2966/* end confdefs.h.  */
2967
2968int
2969main ()
2970{
2971int i=0; i++;
2972  ;
2973  return 0;
2974}
2975_ACEOF
2976rm -f conftest.$ac_objext conftest$ac_exeext
2977if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2978  (eval $ac_link) 2>conftest.er1
2979  ac_status=$?
2980  grep -v '^ *+' conftest.er1 >conftest.err
2981  rm -f conftest.er1
2982  cat conftest.err >&5
2983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984  (exit $ac_status); } &&
2985         { ac_try='test -z "$ac_c_werror_flag"
2986                         || test ! -s conftest.err'
2987  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2988  (eval $ac_try) 2>&5
2989  ac_status=$?
2990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991  (exit $ac_status); }; } &&
2992         { ac_try='test -s conftest$ac_exeext'
2993  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2994  (eval $ac_try) 2>&5
2995  ac_status=$?
2996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997  (exit $ac_status); }; }; then
2998  coin_opt_cflags="-O"
2999else
3000  echo "$as_me: failed program was:" >&5
3001sed 's/^/| /' conftest.$ac_ext >&5
3002
3003fi
3004rm -f conftest.err conftest.$ac_objext \
3005      conftest$ac_exeext conftest.$ac_ext
3006  fi
3007
3008  # if PM doesn't want the warning messages, take them out
3009  if test x"$coin_skip_warn_cflags" = xyes; then
3010    coin_warn_cflags=
3011  fi
3012
3013  if test x${DBG_CFLAGS+set} != xset; then
3014    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3015  fi
3016  if test x${OPT_CFLAGS+set} != xset; then
3017    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3018  fi
3019
3020  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3021  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3022
3023  if test "$coin_debug_compile" = "true"; then
3024    CFLAGS="$DBG_CFLAGS"
3025  else
3026    CFLAGS="$OPT_CFLAGS"
3027  fi
3028else
3029  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3030  if test x${DBG_CFLAGS+set} != xset; then
3031    DBG_CFLAGS="$CFLAGS"
3032  fi
3033  if test x${OPT_CFLAGS+set} != xset; then
3034    OPT_CFLAGS="$CFLAGS"
3035  fi
3036fi
3037
3038# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3039
3040case "$CFLAGS" in
3041  *-mno-cygwin*)
3042    if test x${CPPFLAGS+set} != xset ; then
3043      CPPFLAGS="-mno-cygwin"
3044    else
3045      case "$CPPFLAGS" in
3046        *-mno-cygwin*)
3047          ;;
3048        *)
3049          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3050          ;;
3051      esac
3052    fi ;;
3053esac
3054
3055# Try if CFLAGS works
3056save_CFLAGS="$CFLAGS"
3057cat >conftest.$ac_ext <<_ACEOF
3058/* confdefs.h.  */
3059_ACEOF
3060cat confdefs.h >>conftest.$ac_ext
3061cat >>conftest.$ac_ext <<_ACEOF
3062/* end confdefs.h.  */
3063
3064int
3065main ()
3066{
3067int i=0; i++;
3068  ;
3069  return 0;
3070}
3071_ACEOF
3072rm -f conftest.$ac_objext conftest$ac_exeext
3073if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3074  (eval $ac_link) 2>conftest.er1
3075  ac_status=$?
3076  grep -v '^ *+' conftest.er1 >conftest.err
3077  rm -f conftest.er1
3078  cat conftest.err >&5
3079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080  (exit $ac_status); } &&
3081         { ac_try='test -z "$ac_c_werror_flag"
3082                         || test ! -s conftest.err'
3083  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3084  (eval $ac_try) 2>&5
3085  ac_status=$?
3086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087  (exit $ac_status); }; } &&
3088         { ac_try='test -s conftest$ac_exeext'
3089  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3090  (eval $ac_try) 2>&5
3091  ac_status=$?
3092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093  (exit $ac_status); }; }; then
3094  :
3095else
3096  echo "$as_me: failed program was:" >&5
3097sed 's/^/| /' conftest.$ac_ext >&5
3098
3099CFLAGS=
3100fi
3101rm -f conftest.err conftest.$ac_objext \
3102      conftest$ac_exeext conftest.$ac_ext
3103if test -z "$CFLAGS"; then
3104  { 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
3105echo "$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;}
3106  CFLAGS='-O'
3107  cat >conftest.$ac_ext <<_ACEOF
3108/* confdefs.h.  */
3109_ACEOF
3110cat confdefs.h >>conftest.$ac_ext
3111cat >>conftest.$ac_ext <<_ACEOF
3112/* end confdefs.h.  */
3113
3114int
3115main ()
3116{
3117int i=0; i++;
3118  ;
3119  return 0;
3120}
3121_ACEOF
3122rm -f conftest.$ac_objext conftest$ac_exeext
3123if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3124  (eval $ac_link) 2>conftest.er1
3125  ac_status=$?
3126  grep -v '^ *+' conftest.er1 >conftest.err
3127  rm -f conftest.er1
3128  cat conftest.err >&5
3129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3130  (exit $ac_status); } &&
3131         { ac_try='test -z "$ac_c_werror_flag"
3132                         || test ! -s conftest.err'
3133  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3134  (eval $ac_try) 2>&5
3135  ac_status=$?
3136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137  (exit $ac_status); }; } &&
3138         { ac_try='test -s conftest$ac_exeext'
3139  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3140  (eval $ac_try) 2>&5
3141  ac_status=$?
3142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143  (exit $ac_status); }; }; then
3144  :
3145else
3146  echo "$as_me: failed program was:" >&5
3147sed 's/^/| /' conftest.$ac_ext >&5
3148
3149CFLAGS=
3150fi
3151rm -f conftest.err conftest.$ac_objext \
3152      conftest$ac_exeext conftest.$ac_ext
3153  if test -z "$CFLAGS"; then
3154    { 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
3155echo "$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;}
3156  fi
3157fi
3158
3159{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3160echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3161
3162
3163if test x"$MPICC" = x; then :; else
3164  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3165echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3166  CC="$MPICC"
3167fi
3168
3169# Correct ADDLIBS initialization if we are using the MS compiler
3170case "$CC" in
3171  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3172    ADDLIBS=
3173    case $build in
3174  *-mingw*)
3175    if test "${LD+set}" = set; then :; else
3176      LD=link
3177    fi
3178    ;;
3179 esac
3180 case $enable_doscompile in
3181   msvc)
3182     if test "x${LD+set}" = xset; then :; else
3183       LD=link
3184     fi
3185     ;;
3186 esac
3187
3188    ;;
3189esac
3190
3191ac_ext=c
3192ac_cpp='$CPP $CPPFLAGS'
3193ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3194ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3195ac_compiler_gnu=$ac_cv_c_compiler_gnu
3196
3197
3198
3199 #Let's try if that overcomes configuration problem with VC++ 6.0
3200
3201ac_ext=cc
3202ac_cpp='$CXXCPP $CPPFLAGS'
3203ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3204ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3205ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3206
3207
3208
3209
3210
3211
3212
3213coin_has_cxx=yes
3214
3215save_cxxflags="$CXXFLAGS"
3216# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3217case $build in
3218  *-cygwin* | *-mingw*)
3219             if test "$enable_doscompile" = msvc ; then
3220               comps="icl cl"
3221             else
3222               comps="g++ cl"
3223             fi ;;
3224  *-*-solaris*)
3225             comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3226  *-darwin*) comps="g++ c++ CC" ;;
3227          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3228esac
3229
3230# We delete the cached value, since the test might not have been
3231# performed with our choice of compilers earlier
3232$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3233# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3234ac_ext=cc
3235ac_cpp='$CXXCPP $CPPFLAGS'
3236ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3237ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3238ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3239if test -n "$ac_tool_prefix"; then
3240  for ac_prog in $CCC $comps
3241  do
3242    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3243set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3244echo "$as_me:$LINENO: checking for $ac_word" >&5
3245echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3246if test "${ac_cv_prog_CXX+set}" = set; then
3247  echo $ECHO_N "(cached) $ECHO_C" >&6
3248else
3249  if test -n "$CXX"; then
3250  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3251else
3252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3253for as_dir in $PATH
3254do
3255  IFS=$as_save_IFS
3256  test -z "$as_dir" && as_dir=.
3257  for ac_exec_ext in '' $ac_executable_extensions; do
3258  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3259    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3260    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3261    break 2
3262  fi
3263done
3264done
3265
3266fi
3267fi
3268CXX=$ac_cv_prog_CXX
3269if test -n "$CXX"; then
3270  echo "$as_me:$LINENO: result: $CXX" >&5
3271echo "${ECHO_T}$CXX" >&6
3272else
3273  echo "$as_me:$LINENO: result: no" >&5
3274echo "${ECHO_T}no" >&6
3275fi
3276
3277    test -n "$CXX" && break
3278  done
3279fi
3280if test -z "$CXX"; then
3281  ac_ct_CXX=$CXX
3282  for ac_prog in $CCC $comps
3283do
3284  # Extract the first word of "$ac_prog", so it can be a program name with args.
3285set dummy $ac_prog; ac_word=$2
3286echo "$as_me:$LINENO: checking for $ac_word" >&5
3287echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3288if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3289  echo $ECHO_N "(cached) $ECHO_C" >&6
3290else
3291  if test -n "$ac_ct_CXX"; then
3292  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3293else
3294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3295for as_dir in $PATH
3296do
3297  IFS=$as_save_IFS
3298  test -z "$as_dir" && as_dir=.
3299  for ac_exec_ext in '' $ac_executable_extensions; do
3300  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3301    ac_cv_prog_ac_ct_CXX="$ac_prog"
3302    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3303    break 2
3304  fi
3305done
3306done
3307
3308fi
3309fi
3310ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3311if test -n "$ac_ct_CXX"; then
3312  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3313echo "${ECHO_T}$ac_ct_CXX" >&6
3314else
3315  echo "$as_me:$LINENO: result: no" >&5
3316echo "${ECHO_T}no" >&6
3317fi
3318
3319  test -n "$ac_ct_CXX" && break
3320done
3321test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3322
3323  CXX=$ac_ct_CXX
3324fi
3325
3326
3327# Provide some information about the compiler.
3328echo "$as_me:$LINENO:" \
3329     "checking for C++ compiler version" >&5
3330ac_compiler=`set X $ac_compile; echo $2`
3331{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3332  (eval $ac_compiler --version </dev/null >&5) 2>&5
3333  ac_status=$?
3334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335  (exit $ac_status); }
3336{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3337  (eval $ac_compiler -v </dev/null >&5) 2>&5
3338  ac_status=$?
3339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340  (exit $ac_status); }
3341{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3342  (eval $ac_compiler -V </dev/null >&5) 2>&5
3343  ac_status=$?
3344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345  (exit $ac_status); }
3346
3347echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3348echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3349if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3350  echo $ECHO_N "(cached) $ECHO_C" >&6
3351else
3352  cat >conftest.$ac_ext <<_ACEOF
3353/* confdefs.h.  */
3354_ACEOF
3355cat confdefs.h >>conftest.$ac_ext
3356cat >>conftest.$ac_ext <<_ACEOF
3357/* end confdefs.h.  */
3358
3359int
3360main ()
3361{
3362#ifndef __GNUC__
3363       choke me
3364#endif
3365
3366  ;
3367  return 0;
3368}
3369_ACEOF
3370rm -f conftest.$ac_objext
3371if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3372  (eval $ac_compile) 2>conftest.er1
3373  ac_status=$?
3374  grep -v '^ *+' conftest.er1 >conftest.err
3375  rm -f conftest.er1
3376  cat conftest.err >&5
3377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378  (exit $ac_status); } &&
3379         { ac_try='test -z "$ac_cxx_werror_flag"
3380                         || test ! -s conftest.err'
3381  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3382  (eval $ac_try) 2>&5
3383  ac_status=$?
3384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385  (exit $ac_status); }; } &&
3386         { ac_try='test -s conftest.$ac_objext'
3387  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3388  (eval $ac_try) 2>&5
3389  ac_status=$?
3390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391  (exit $ac_status); }; }; then
3392  ac_compiler_gnu=yes
3393else
3394  echo "$as_me: failed program was:" >&5
3395sed 's/^/| /' conftest.$ac_ext >&5
3396
3397ac_compiler_gnu=no
3398fi
3399rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3400ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3401
3402fi
3403echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3404echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3405GXX=`test $ac_compiler_gnu = yes && echo yes`
3406ac_test_CXXFLAGS=${CXXFLAGS+set}
3407ac_save_CXXFLAGS=$CXXFLAGS
3408CXXFLAGS="-g"
3409echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3410echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3411if test "${ac_cv_prog_cxx_g+set}" = set; then
3412  echo $ECHO_N "(cached) $ECHO_C" >&6
3413else
3414  cat >conftest.$ac_ext <<_ACEOF
3415/* confdefs.h.  */
3416_ACEOF
3417cat confdefs.h >>conftest.$ac_ext
3418cat >>conftest.$ac_ext <<_ACEOF
3419/* end confdefs.h.  */
3420
3421int
3422main ()
3423{
3424
3425  ;
3426  return 0;
3427}
3428_ACEOF
3429rm -f conftest.$ac_objext
3430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3431  (eval $ac_compile) 2>conftest.er1
3432  ac_status=$?
3433  grep -v '^ *+' conftest.er1 >conftest.err
3434  rm -f conftest.er1
3435  cat conftest.err >&5
3436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437  (exit $ac_status); } &&
3438         { ac_try='test -z "$ac_cxx_werror_flag"
3439                         || test ! -s conftest.err'
3440  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3441  (eval $ac_try) 2>&5
3442  ac_status=$?
3443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444  (exit $ac_status); }; } &&
3445         { ac_try='test -s conftest.$ac_objext'
3446  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3447  (eval $ac_try) 2>&5
3448  ac_status=$?
3449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450  (exit $ac_status); }; }; then
3451  ac_cv_prog_cxx_g=yes
3452else
3453  echo "$as_me: failed program was:" >&5
3454sed 's/^/| /' conftest.$ac_ext >&5
3455
3456ac_cv_prog_cxx_g=no
3457fi
3458rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3459fi
3460echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3461echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3462if test "$ac_test_CXXFLAGS" = set; then
3463  CXXFLAGS=$ac_save_CXXFLAGS
3464elif test $ac_cv_prog_cxx_g = yes; then
3465  if test "$GXX" = yes; then
3466    CXXFLAGS="-g -O2"
3467  else
3468    CXXFLAGS="-g"
3469  fi
3470else
3471  if test "$GXX" = yes; then
3472    CXXFLAGS="-O2"
3473  else
3474    CXXFLAGS=
3475  fi
3476fi
3477for ac_declaration in \
3478   '' \
3479   'extern "C" void std::exit (int) throw (); using std::exit;' \
3480   'extern "C" void std::exit (int); using std::exit;' \
3481   'extern "C" void exit (int) throw ();' \
3482   'extern "C" void exit (int);' \
3483   'void exit (int);'
3484do
3485  cat >conftest.$ac_ext <<_ACEOF
3486/* confdefs.h.  */
3487_ACEOF
3488cat confdefs.h >>conftest.$ac_ext
3489cat >>conftest.$ac_ext <<_ACEOF
3490/* end confdefs.h.  */
3491$ac_declaration
3492#include <stdlib.h>
3493int
3494main ()
3495{
3496exit (42);
3497  ;
3498  return 0;
3499}
3500_ACEOF
3501rm -f conftest.$ac_objext
3502if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3503  (eval $ac_compile) 2>conftest.er1
3504  ac_status=$?
3505  grep -v '^ *+' conftest.er1 >conftest.err
3506  rm -f conftest.er1
3507  cat conftest.err >&5
3508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509  (exit $ac_status); } &&
3510         { ac_try='test -z "$ac_cxx_werror_flag"
3511                         || test ! -s conftest.err'
3512  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3513  (eval $ac_try) 2>&5
3514  ac_status=$?
3515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516  (exit $ac_status); }; } &&
3517         { ac_try='test -s conftest.$ac_objext'
3518  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3519  (eval $ac_try) 2>&5
3520  ac_status=$?
3521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522  (exit $ac_status); }; }; then
3523  :
3524else
3525  echo "$as_me: failed program was:" >&5
3526sed 's/^/| /' conftest.$ac_ext >&5
3527
3528continue
3529fi
3530rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3531  cat >conftest.$ac_ext <<_ACEOF
3532/* confdefs.h.  */
3533_ACEOF
3534cat confdefs.h >>conftest.$ac_ext
3535cat >>conftest.$ac_ext <<_ACEOF
3536/* end confdefs.h.  */
3537$ac_declaration
3538int
3539main ()
3540{
3541exit (42);
3542  ;
3543  return 0;
3544}
3545_ACEOF
3546rm -f conftest.$ac_objext
3547if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3548  (eval $ac_compile) 2>conftest.er1
3549  ac_status=$?
3550  grep -v '^ *+' conftest.er1 >conftest.err
3551  rm -f conftest.er1
3552  cat conftest.err >&5
3553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554  (exit $ac_status); } &&
3555         { ac_try='test -z "$ac_cxx_werror_flag"
3556                         || test ! -s conftest.err'
3557  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3558  (eval $ac_try) 2>&5
3559  ac_status=$?
3560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561  (exit $ac_status); }; } &&
3562         { ac_try='test -s conftest.$ac_objext'
3563  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3564  (eval $ac_try) 2>&5
3565  ac_status=$?
3566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567  (exit $ac_status); }; }; then
3568  break
3569else
3570  echo "$as_me: failed program was:" >&5
3571sed 's/^/| /' conftest.$ac_ext >&5
3572
3573fi
3574rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3575done
3576rm -f conftest*
3577if test -n "$ac_declaration"; then
3578  echo '#ifdef __cplusplus' >>confdefs.h
3579  echo $ac_declaration      >>confdefs.h
3580  echo '#endif'             >>confdefs.h
3581fi
3582
3583ac_ext=cc
3584ac_cpp='$CXXCPP $CPPFLAGS'
3585ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3586ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3587ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3588
3589
3590#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3591#thus, we test here whether $CXX is actually working
3592ac_ext=cc
3593ac_cpp='$CXXCPP $CPPFLAGS'
3594ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3595ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3596ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3597
3598echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3599echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3600cat >conftest.$ac_ext <<_ACEOF
3601/* confdefs.h.  */
3602_ACEOF
3603cat confdefs.h >>conftest.$ac_ext
3604cat >>conftest.$ac_ext <<_ACEOF
3605/* end confdefs.h.  */
3606
3607int
3608main ()
3609{
3610int i=0;
3611  ;
3612  return 0;
3613}
3614_ACEOF
3615rm -f conftest.$ac_objext
3616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3617  (eval $ac_compile) 2>conftest.er1
3618  ac_status=$?
3619  grep -v '^ *+' conftest.er1 >conftest.err
3620  rm -f conftest.er1
3621  cat conftest.err >&5
3622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623  (exit $ac_status); } &&
3624         { ac_try='test -z "$ac_cxx_werror_flag"
3625                         || test ! -s conftest.err'
3626  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3627  (eval $ac_try) 2>&5
3628  ac_status=$?
3629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630  (exit $ac_status); }; } &&
3631         { ac_try='test -s conftest.$ac_objext'
3632  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3633  (eval $ac_try) 2>&5
3634  ac_status=$?
3635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636  (exit $ac_status); }; }; then
3637  echo "$as_me:$LINENO: result: yes" >&5
3638echo "${ECHO_T}yes" >&6
3639else
3640  echo "$as_me: failed program was:" >&5
3641sed 's/^/| /' conftest.$ac_ext >&5
3642
3643echo "$as_me:$LINENO: result: no" >&5
3644echo "${ECHO_T}no" >&6
3645   { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3646echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3647   { (exit 1); exit 1; }; }
3648
3649fi
3650rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3651ac_ext=cc
3652ac_cpp='$CXXCPP $CPPFLAGS'
3653ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3654ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3655ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3656
3657
3658# It seems that we need to cleanup something here for the Windows
3659case "$CXX" in
3660  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3661    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3662    mv confdefs.hh confdefs.h
3663    ;;
3664esac
3665
3666# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3667case "$CXX" in
3668  cl* | */cl* | CL* | */CL* )
3669    if test "$ac_cv_prog_cxx_g" = yes ; then
3670      ac_cv_prog_cxx_g=no
3671      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3672echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3673    fi ;;
3674esac
3675CXXFLAGS="$save_cxxflags"
3676
3677# Check if a project specific CXXFLAGS variable has been set
3678if test x$COIN_PRJCT != x; then
3679  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3680  if test x$coin_tmp = xset; then
3681    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3682  fi
3683fi
3684
3685if test x"$CXXFLAGS" = x; then
3686
3687# ToDo decide whether we want -DNDEBUG for optimization
3688  coin_add_cxxflags=
3689  coin_opt_cxxflags=
3690  coin_dbg_cxxflags=
3691  coin_warn_cxxflags=
3692
3693  if test "$GXX" = "yes"; then
3694    case "$CXX" in
3695      icpc* | */icpc*)
3696        ;;
3697      *)
3698# ToDo decide about unroll-loops
3699        coin_opt_cxxflags="-O3 -fomit-frame-pointer"
3700        coin_add_cxxflags="-pipe"
3701        coin_dbg_cxxflags="-g"
3702        coin_warn_cxxflags="-Wimplicit -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas"
3703        case $build in
3704          *-darwin*)
3705            ;;
3706          *)
3707            coin_warn_cxxflags="-pedantic-errors $coin_warn_cxxflags"
3708            ;;
3709        esac
3710
3711        case $enable_doscompile in
3712          mingw)
3713            CXXFLAGS="-mno-cygwin"
3714            cat >conftest.$ac_ext <<_ACEOF
3715/* confdefs.h.  */
3716_ACEOF
3717cat confdefs.h >>conftest.$ac_ext
3718cat >>conftest.$ac_ext <<_ACEOF
3719/* end confdefs.h.  */
3720
3721int
3722main ()
3723{
3724int i=0; i++;
3725  ;
3726  return 0;
3727}
3728_ACEOF
3729rm -f conftest.$ac_objext conftest$ac_exeext
3730if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3731  (eval $ac_link) 2>conftest.er1
3732  ac_status=$?
3733  grep -v '^ *+' conftest.er1 >conftest.err
3734  rm -f conftest.er1
3735  cat conftest.err >&5
3736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3737  (exit $ac_status); } &&
3738         { ac_try='test -z "$ac_cxx_werror_flag"
3739                         || test ! -s conftest.err'
3740  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3741  (eval $ac_try) 2>&5
3742  ac_status=$?
3743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3744  (exit $ac_status); }; } &&
3745         { ac_try='test -s conftest$ac_exeext'
3746  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3747  (eval $ac_try) 2>&5
3748  ac_status=$?
3749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750  (exit $ac_status); }; }; then
3751  coin_add_cxxflags="-mno-cygwin $coin_add_cxxflags"
3752else
3753  echo "$as_me: failed program was:" >&5
3754sed 's/^/| /' conftest.$ac_ext >&5
3755
3756fi
3757rm -f conftest.err conftest.$ac_objext \
3758      conftest$ac_exeext conftest.$ac_ext
3759            CXXFLAGS=
3760          ;;
3761        esac
3762    esac
3763  fi
3764
3765# Note that we do not need to cover GCC in the following tests.
3766
3767  if test -z "$coin_opt_cxxflags"; then
3768    case $build in
3769      *-cygwin* | *-mingw*)
3770        case "$CXX" in
3771          cl* | */cl* | CL* | */CL*)
3772            # The MT and MTd options are mutually exclusive
3773            coin_opt_cxxflags='-MT -O2'
3774            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3775            coin_dbg_cxxflags='-MTd'
3776            ;;
3777          icl* | */icl* | ICL* | */ICL*)
3778            # The MT and MTd options are mutually exclusive
3779            coin_opt_cxxflags='-MT -Ox'
3780            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3781            coin_dbg_cxxflags='-MTd -debug'
3782            ;;
3783        esac
3784        ;;
3785      *-linux-*)
3786        case "$CXX" in
3787          icpc* | */icpc*)
3788            coin_opt_cxxflags="-O3 -ip -mp1"
3789            coin_add_cxxflags=""
3790            coin_dbg_cxxflags="-g"
3791            # Check if -i_dynamic is necessary (for new glibc library)
3792            CXXFLAGS=
3793            cat >conftest.$ac_ext <<_ACEOF
3794/* confdefs.h.  */
3795_ACEOF
3796cat confdefs.h >>conftest.$ac_ext
3797cat >>conftest.$ac_ext <<_ACEOF
3798/* end confdefs.h.  */
3799
3800int
3801main ()
3802{
3803int i=0; i++;
3804  ;
3805  return 0;
3806}
3807_ACEOF
3808rm -f conftest.$ac_objext conftest$ac_exeext
3809if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3810  (eval $ac_link) 2>conftest.er1
3811  ac_status=$?
3812  grep -v '^ *+' conftest.er1 >conftest.err
3813  rm -f conftest.er1
3814  cat conftest.err >&5
3815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816  (exit $ac_status); } &&
3817         { ac_try='test -z "$ac_cxx_werror_flag"
3818                         || test ! -s conftest.err'
3819  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3820  (eval $ac_try) 2>&5
3821  ac_status=$?
3822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3823  (exit $ac_status); }; } &&
3824         { ac_try='test -s conftest$ac_exeext'
3825  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3826  (eval $ac_try) 2>&5
3827  ac_status=$?
3828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829  (exit $ac_status); }; }; then
3830  :
3831else
3832  echo "$as_me: failed program was:" >&5
3833sed 's/^/| /' conftest.$ac_ext >&5
3834
3835coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3836fi
3837rm -f conftest.err conftest.$ac_objext \
3838      conftest$ac_exeext conftest.$ac_ext
3839            ;;
3840          pgCC* | */pgCC*)
3841            coin_opt_cxxflags="-fast"
3842            coin_add_cxxflags="-Kieee -pc 64"
3843            coin_dbg_cxxflags="-g"
3844            ;;
3845        esac
3846        ;;
3847      *-ibm-*)
3848        case "$CXX" in
3849          xlC* | */xlC* | mpxlC* | */mpxlC*)
3850            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3851            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3852            coin_dbg_cxxflags="-g"
3853            ;;
3854        esac
3855        ;;
3856      *-hp-*)
3857        case "$CXX" in
3858          aCC* | */aCC* )
3859            coin_opt_cxxflags="-O"
3860            coin_add_cxxflags="-AA"
3861            coin_dbg_cxxflags="-g"
3862            ;;
3863        esac
3864        ;;
3865      *-*-solaris*)
3866          coin_opt_cxxflags="-O4"
3867          coin_dbg_cxxflags="-g"
3868        ;;
3869    esac
3870  fi
3871
3872# Generic flag settings. If these don't work, add a case above.
3873
3874  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3875    coin_dbg_cxxflags="-g"
3876  fi
3877
3878  if test -z "$coin_opt_cxxflags"; then
3879    # Try if -O option works if nothing else is set
3880    CXXFLAGS=-O
3881    cat >conftest.$ac_ext <<_ACEOF
3882/* confdefs.h.  */
3883_ACEOF
3884cat confdefs.h >>conftest.$ac_ext
3885cat >>conftest.$ac_ext <<_ACEOF
3886/* end confdefs.h.  */
3887
3888int
3889main ()
3890{
3891int i=0; i++;
3892  ;
3893  return 0;
3894}
3895_ACEOF
3896rm -f conftest.$ac_objext conftest$ac_exeext
3897if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3898  (eval $ac_link) 2>conftest.er1
3899  ac_status=$?
3900  grep -v '^ *+' conftest.er1 >conftest.err
3901  rm -f conftest.er1
3902  cat conftest.err >&5
3903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3904  (exit $ac_status); } &&
3905         { ac_try='test -z "$ac_cxx_werror_flag"
3906                         || test ! -s conftest.err'
3907  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3908  (eval $ac_try) 2>&5
3909  ac_status=$?
3910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911  (exit $ac_status); }; } &&
3912         { ac_try='test -s conftest$ac_exeext'
3913  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3914  (eval $ac_try) 2>&5
3915  ac_status=$?
3916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3917  (exit $ac_status); }; }; then
3918  coin_opt_cxxflags="-O"
3919else
3920  echo "$as_me: failed program was:" >&5
3921sed 's/^/| /' conftest.$ac_ext >&5
3922
3923fi
3924rm -f conftest.err conftest.$ac_objext \
3925      conftest$ac_exeext conftest.$ac_ext
3926  fi
3927
3928  # if PM doesn't want the warning messages, take them out
3929  if test x"$coin_skip_warn_cxxflags" = xyes; then
3930    coin_warn_cxxflags=
3931  fi
3932
3933# Do final setup of flags based on values determined above.
3934
3935  if test x${DBG_CXXFLAGS+set} != xset; then
3936    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3937  fi
3938  if test x${OPT_CXXFLAGS+set} != xset; then
3939    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
3940  fi
3941
3942  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3943  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3944
3945  if test "$coin_debug_compile" = "true"; then
3946    CXXFLAGS="$DBG_CXXFLAGS"
3947  else
3948    CXXFLAGS="$OPT_CXXFLAGS"
3949  fi
3950
3951# Handle the case where CXXFLAGS was set externally.
3952else
3953  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3954  if test x${DBG_CXXFLAGS+set} != xset; then
3955    DBG_CXXFLAGS="$CXXFLAGS"
3956  fi
3957  if test x${OPT_CXXFLAGS+set} != xset; then
3958    OPT_CXXFLAGS="$CXXFLAGS"
3959  fi
3960fi
3961
3962# If CXXFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3963
3964case "$CXXFLAGS" in
3965  *-mno-cygwin*)
3966    if test x${CPPFLAGS+set} != xset ; then
3967      CPPFLAGS="-mno-cygwin"
3968    else
3969      case "$CPPFLAGS" in
3970        *-mno-cygwin*)
3971          ;;
3972        *)
3973          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3974          ;;
3975      esac
3976    fi ;;
3977esac
3978
3979# Try if CXXFLAGS works
3980save_CXXFLAGS="$CXXFLAGS"
3981cat >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
4027if test -z "$CXXFLAGS"; then
4028  { 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
4029echo "$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;}
4030  CXXFLAGS='-O'
4031  cat >conftest.$ac_ext <<_ACEOF
4032/* confdefs.h.  */
4033_ACEOF
4034cat confdefs.h >>conftest.$ac_ext
4035cat >>conftest.$ac_ext <<_ACEOF
4036/* end confdefs.h.  */
4037
4038int
4039main ()
4040{
4041int i=0; i++;
4042  ;
4043  return 0;
4044}
4045_ACEOF
4046rm -f conftest.$ac_objext conftest$ac_exeext
4047if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4048  (eval $ac_link) 2>conftest.er1
4049  ac_status=$?
4050  grep -v '^ *+' conftest.er1 >conftest.err
4051  rm -f conftest.er1
4052  cat conftest.err >&5
4053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054  (exit $ac_status); } &&
4055         { ac_try='test -z "$ac_cxx_werror_flag"
4056                         || test ! -s conftest.err'
4057  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4058  (eval $ac_try) 2>&5
4059  ac_status=$?
4060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061  (exit $ac_status); }; } &&
4062         { ac_try='test -s conftest$ac_exeext'
4063  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4064  (eval $ac_try) 2>&5
4065  ac_status=$?
4066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067  (exit $ac_status); }; }; then
4068  :
4069else
4070  echo "$as_me: failed program was:" >&5
4071sed 's/^/| /' conftest.$ac_ext >&5
4072
4073CXXFLAGS=
4074fi
4075rm -f conftest.err conftest.$ac_objext \
4076      conftest$ac_exeext conftest.$ac_ext
4077  if test -z "$CXXFLAGS"; then
4078    { 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
4079echo "$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;}
4080  fi
4081fi
4082
4083{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
4084echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
4085
4086
4087if test x"$MPICXX" = x; then :; else
4088  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
4089echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
4090  CXX="$MPICXX"
4091fi
4092
4093case "$CXX" in
4094  cl* | */cl* | CL* | */CL* )
4095    case $build in
4096  *-mingw*)
4097    if test "${LD+set}" = set; then :; else
4098      LD=link
4099    fi
4100    ;;
4101 esac
4102 case $enable_doscompile in
4103   msvc)
4104     if test "x${LD+set}" = xset; then :; else
4105       LD=link
4106     fi
4107     ;;
4108 esac
4109
4110    ;;
4111esac
4112
4113ac_ext=c
4114ac_cpp='$CPP $CPPFLAGS'
4115ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4116ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4117ac_compiler_gnu=$ac_cv_c_compiler_gnu
4118
4119
4120
4121# Initialize automake and libtool
4122{
4123
4124
4125
4126# START
4127
4128# Test if force_shared has been set
4129if test "x" = xforce_shared; then
4130  if test x$enable_shared = xno; then
4131    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4132echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4133   { (exit 1); exit 1; }; }
4134  fi
4135  enable_shared=yes;
4136else
4137  # On Cygwin and AIX, building DLLs doesn't work
4138  case $build in
4139    *-cygwin*)
4140      coin_disable_shared=yes
4141      platform=Cygwin
4142    ;;
4143    *-aix*)
4144      coin_disable_shared=yes
4145      platform=AIX
4146    ;;
4147    *-mingw*)
4148      coin_disable_shared=yes
4149      platform="Msys"
4150#      case "$CXX" in
4151#        cl*)
4152#          coin_disable_shared=yes
4153#          platform="Msys with cl"
4154#      ;;
4155#      esac
4156    ;;
4157  esac
4158fi
4159if test x"$coin_disable_shared" = xyes; then
4160  if test x"$enable_shared" = xyes; then
4161    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
4162echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
4163  fi
4164  enable_shared=no
4165fi
4166# By default, we only want the shared objects to be compiled
4167# Check whether --enable-static or --disable-static was given.
4168if test "${enable_static+set}" = set; then
4169  enableval="$enable_static"
4170  p=${PACKAGE-default}
4171    case $enableval in
4172    yes) enable_static=yes ;;
4173    no) enable_static=no ;;
4174    *)
4175     enable_static=no
4176      # Look at the argument we got.  We use all the common list separators.
4177      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4178      for pkg in $enableval; do
4179        IFS="$lt_save_ifs"
4180        if test "X$pkg" = "X$p"; then
4181          enable_static=yes
4182        fi
4183      done
4184      IFS="$lt_save_ifs"
4185      ;;
4186    esac
4187else
4188  enable_static=no
4189fi;
4190
4191
4192
4193
4194# Initialize automake
4195echo "$as_me:$LINENO: checking for egrep" >&5
4196echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4197if test "${ac_cv_prog_egrep+set}" = set; then
4198  echo $ECHO_N "(cached) $ECHO_C" >&6
4199else
4200  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4201    then ac_cv_prog_egrep='grep -E'
4202    else ac_cv_prog_egrep='egrep'
4203    fi
4204fi
4205echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4206echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4207 EGREP=$ac_cv_prog_egrep
4208
4209
4210am__api_version="1.9"
4211# Find a good install program.  We prefer a C program (faster),
4212# so one script is as good as another.  But avoid the broken or
4213# incompatible versions:
4214# SysV /etc/install, /usr/sbin/install
4215# SunOS /usr/etc/install
4216# IRIX /sbin/install
4217# AIX /bin/install
4218# AmigaOS /C/install, which installs bootblocks on floppy discs
4219# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4220# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4221# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4222# OS/2's system install, which has a completely different semantic
4223# ./install, which can be erroneously created by make from ./install.sh.
4224echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4225echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4226if test -z "$INSTALL"; then
4227if test "${ac_cv_path_install+set}" = set; then
4228  echo $ECHO_N "(cached) $ECHO_C" >&6
4229else
4230  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4231for as_dir in $PATH
4232do
4233  IFS=$as_save_IFS
4234  test -z "$as_dir" && as_dir=.
4235  # Account for people who put trailing slashes in PATH elements.
4236case $as_dir/ in
4237  ./ | .// | /cC/* | \
4238  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4239  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4240  /usr/ucb/* ) ;;
4241  *)
4242    # OSF1 and SCO ODT 3.0 have their own names for install.
4243    # Don't use installbsd from OSF since it installs stuff as root
4244    # by default.
4245    for ac_prog in ginstall scoinst install; do
4246      for ac_exec_ext in '' $ac_executable_extensions; do
4247        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4248          if test $ac_prog = install &&
4249            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4250            # AIX install.  It has an incompatible calling convention.
4251            :
4252          elif test $ac_prog = install &&
4253            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4254            # program-specific install script used by HP pwplus--don't use.
4255            :
4256          else
4257            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4258            break 3
4259          fi
4260        fi
4261      done
4262    done
4263    ;;
4264esac
4265done
4266
4267
4268fi
4269  if test "${ac_cv_path_install+set}" = set; then
4270    INSTALL=$ac_cv_path_install
4271  else
4272    # As a last resort, use the slow shell script.  We don't cache a
4273    # path for INSTALL within a source directory, because that will
4274    # break other packages using the cache if that directory is
4275    # removed, or if the path is relative.
4276    INSTALL=$ac_install_sh
4277  fi
4278fi
4279echo "$as_me:$LINENO: result: $INSTALL" >&5
4280echo "${ECHO_T}$INSTALL" >&6
4281
4282# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4283# It thinks the first close brace ends the variable substitution.
4284test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4285
4286test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4287
4288test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4289
4290echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4291echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4292# Just in case
4293sleep 1
4294echo timestamp > conftest.file
4295# Do `set' in a subshell so we don't clobber the current shell's
4296# arguments.  Must try -L first in case configure is actually a
4297# symlink; some systems play weird games with the mod time of symlinks
4298# (eg FreeBSD returns the mod time of the symlink's containing
4299# directory).
4300if (
4301   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4302   if test "$*" = "X"; then
4303      # -L didn't work.
4304      set X `ls -t $srcdir/configure conftest.file`
4305   fi
4306   rm -f conftest.file
4307   if test "$*" != "X $srcdir/configure conftest.file" \
4308      && test "$*" != "X conftest.file $srcdir/configure"; then
4309
4310      # If neither matched, then we have a broken ls.  This can happen
4311      # if, for instance, CONFIG_SHELL is bash and it inherits a
4312      # broken ls alias from the environment.  This has actually
4313      # happened.  Such a system could not be considered "sane".
4314      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4315alias in your environment" >&5
4316echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4317alias in your environment" >&2;}
4318   { (exit 1); exit 1; }; }
4319   fi
4320
4321   test "$2" = conftest.file
4322   )
4323then
4324   # Ok.
4325   :
4326else
4327   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4328Check your system clock" >&5
4329echo "$as_me: error: newly created file is older than distributed files!
4330Check your system clock" >&2;}
4331   { (exit 1); exit 1; }; }
4332fi
4333echo "$as_me:$LINENO: result: yes" >&5
4334echo "${ECHO_T}yes" >&6
4335test "$program_prefix" != NONE &&
4336  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4337# Use a double $ so make ignores it.
4338test "$program_suffix" != NONE &&
4339  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4340# Double any \ or $.  echo might interpret backslashes.
4341# By default was `s,x,x', remove it if useless.
4342cat <<\_ACEOF >conftest.sed
4343s/[\\$]/&&/g;s/;s,x,x,$//
4344_ACEOF
4345program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4346rm conftest.sed
4347
4348# expand $ac_aux_dir to an absolute path
4349am_aux_dir=`cd $ac_aux_dir && pwd`
4350
4351test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4352# Use eval to expand $SHELL
4353if eval "$MISSING --run true"; then
4354  am_missing_run="$MISSING --run "
4355else
4356  am_missing_run=
4357  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4358echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4359fi
4360
4361if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4362  # We used to keeping the `.' as first argument, in order to
4363  # allow $(mkdir_p) to be used without argument.  As in
4364  #   $(mkdir_p) $(somedir)
4365  # where $(somedir) is conditionally defined.  However this is wrong
4366  # for two reasons:
4367  #  1. if the package is installed by a user who cannot write `.'
4368  #     make install will fail,
4369  #  2. the above comment should most certainly read
4370  #     $(mkdir_p) $(DESTDIR)$(somedir)
4371  #     so it does not work when $(somedir) is undefined and
4372  #     $(DESTDIR) is not.
4373  #  To support the latter case, we have to write
4374  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4375  #  so the `.' trick is pointless.
4376  mkdir_p='mkdir -p --'
4377else
4378  # On NextStep and OpenStep, the `mkdir' command does not
4379  # recognize any option.  It will interpret all options as
4380  # directories to create, and then abort because `.' already
4381  # exists.
4382  for d in ./-p ./--version;
4383  do
4384    test -d $d && rmdir $d
4385  done
4386  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4387  if test -f "$ac_aux_dir/mkinstalldirs"; then
4388    mkdir_p='$(mkinstalldirs)'
4389  else
4390    mkdir_p='$(install_sh) -d'
4391  fi
4392fi
4393
4394for ac_prog in gawk mawk nawk awk
4395do
4396  # Extract the first word of "$ac_prog", so it can be a program name with args.
4397set dummy $ac_prog; ac_word=$2
4398echo "$as_me:$LINENO: checking for $ac_word" >&5
4399echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4400if test "${ac_cv_prog_AWK+set}" = set; then
4401  echo $ECHO_N "(cached) $ECHO_C" >&6
4402else
4403  if test -n "$AWK"; then
4404  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4405else
4406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4407for as_dir in $PATH
4408do
4409  IFS=$as_save_IFS
4410  test -z "$as_dir" && as_dir=.
4411  for ac_exec_ext in '' $ac_executable_extensions; do
4412  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4413    ac_cv_prog_AWK="$ac_prog"
4414    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4415    break 2
4416  fi
4417done
4418done
4419
4420fi
4421fi
4422AWK=$ac_cv_prog_AWK
4423if test -n "$AWK"; then
4424  echo "$as_me:$LINENO: result: $AWK" >&5
4425echo "${ECHO_T}$AWK" >&6
4426else
4427  echo "$as_me:$LINENO: result: no" >&5
4428echo "${ECHO_T}no" >&6
4429fi
4430
4431  test -n "$AWK" && break
4432done
4433
4434echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4435echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4436set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4437if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4438  echo $ECHO_N "(cached) $ECHO_C" >&6
4439else
4440  cat >conftest.make <<\_ACEOF
4441all:
4442        @echo 'ac_maketemp="$(MAKE)"'
4443_ACEOF
4444# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4445eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4446if test -n "$ac_maketemp"; then
4447  eval ac_cv_prog_make_${ac_make}_set=yes
4448else
4449  eval ac_cv_prog_make_${ac_make}_set=no
4450fi
4451rm -f conftest.make
4452fi
4453if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4454  echo "$as_me:$LINENO: result: yes" >&5
4455echo "${ECHO_T}yes" >&6
4456  SET_MAKE=
4457else
4458  echo "$as_me:$LINENO: result: no" >&5
4459echo "${ECHO_T}no" >&6
4460  SET_MAKE="MAKE=${MAKE-make}"
4461fi
4462
4463rm -rf .tst 2>/dev/null
4464mkdir .tst 2>/dev/null
4465if test -d .tst; then
4466  am__leading_dot=.
4467else
4468  am__leading_dot=_
4469fi
4470rmdir .tst 2>/dev/null
4471
4472DEPDIR="${am__leading_dot}deps"
4473
4474          ac_config_commands="$ac_config_commands depfiles"
4475
4476
4477am_make=${MAKE-make}
4478cat > confinc << 'END'
4479am__doit:
4480        @echo done
4481.PHONY: am__doit
4482END
4483# If we don't find an include directive, just comment out the code.
4484echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4485echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4486am__include="#"
4487am__quote=
4488_am_result=none
4489# First try GNU make style include.
4490echo "include confinc" > confmf
4491# We grep out `Entering directory' and `Leaving directory'
4492# messages which can occur if `w' ends up in MAKEFLAGS.
4493# In particular we don't look at `^make:' because GNU make might
4494# be invoked under some other name (usually "gmake"), in which
4495# case it prints its new name instead of `make'.
4496if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4497   am__include=include
4498   am__quote=
4499   _am_result=GNU
4500fi
4501# Now try BSD make style include.
4502if test "$am__include" = "#"; then
4503   echo '.include "confinc"' > confmf
4504   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4505      am__include=.include
4506      am__quote="\""
4507      _am_result=BSD
4508   fi
4509fi
4510
4511
4512echo "$as_me:$LINENO: result: $_am_result" >&5
4513echo "${ECHO_T}$_am_result" >&6
4514rm -f confinc confmf
4515
4516# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4517if test "${enable_dependency_tracking+set}" = set; then
4518  enableval="$enable_dependency_tracking"
4519
4520fi;
4521if test "x$enable_dependency_tracking" != xno; then
4522  am_depcomp="$ac_aux_dir/depcomp"
4523  AMDEPBACKSLASH='\'
4524fi
4525
4526
4527if test "x$enable_dependency_tracking" != xno; then
4528  AMDEP_TRUE=
4529  AMDEP_FALSE='#'
4530else
4531  AMDEP_TRUE='#'
4532  AMDEP_FALSE=
4533fi
4534
4535
4536
4537
4538
4539# AC_MSG_NOTICE([Beginning automake initialisation.])
4540# Stuff for automake
4541# test to see if srcdir already configured
4542if test "`cd $srcdir && pwd`" != "`pwd`" &&
4543   test -f $srcdir/config.status; then
4544  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4545echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4546   { (exit 1); exit 1; }; }
4547fi
4548
4549# test whether we have cygpath
4550if test -z "$CYGPATH_W"; then
4551  if (cygpath --version) >/dev/null 2>/dev/null; then
4552    CYGPATH_W='cygpath -w'
4553  else
4554    CYGPATH_W=echo
4555  fi
4556fi
4557
4558
4559# Define the identity of the package.
4560 PACKAGE='cbc'
4561 VERSION='2.3stable'
4562
4563
4564cat >>confdefs.h <<_ACEOF
4565#define PACKAGE "$PACKAGE"
4566_ACEOF
4567
4568
4569cat >>confdefs.h <<_ACEOF
4570#define VERSION "$VERSION"
4571_ACEOF
4572
4573# Some tools Automake needs.
4574
4575ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4576
4577
4578AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4579
4580
4581AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4582
4583
4584AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4585
4586
4587MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4588
4589install_sh=${install_sh-"$am_aux_dir/install-sh"}
4590
4591# Installed binaries are usually stripped using `strip' when the user
4592# run `make install-strip'.  However `strip' might not be the right
4593# tool to use in cross-compilation environments, therefore Automake
4594# will honor the `STRIP' environment variable to overrule this program.
4595if test "$cross_compiling" != no; then
4596  if test -n "$ac_tool_prefix"; then
4597  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4598set dummy ${ac_tool_prefix}strip; ac_word=$2
4599echo "$as_me:$LINENO: checking for $ac_word" >&5
4600echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4601if test "${ac_cv_prog_STRIP+set}" = set; then
4602  echo $ECHO_N "(cached) $ECHO_C" >&6
4603else
4604  if test -n "$STRIP"; then
4605  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4606else
4607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4608for as_dir in $PATH
4609do
4610  IFS=$as_save_IFS
4611  test -z "$as_dir" && as_dir=.
4612  for ac_exec_ext in '' $ac_executable_extensions; do
4613  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4614    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4615    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4616    break 2
4617  fi
4618done
4619done
4620
4621fi
4622fi
4623STRIP=$ac_cv_prog_STRIP
4624if test -n "$STRIP"; then
4625  echo "$as_me:$LINENO: result: $STRIP" >&5
4626echo "${ECHO_T}$STRIP" >&6
4627else
4628  echo "$as_me:$LINENO: result: no" >&5
4629echo "${ECHO_T}no" >&6
4630fi
4631
4632fi
4633if test -z "$ac_cv_prog_STRIP"; then
4634  ac_ct_STRIP=$STRIP
4635  # Extract the first word of "strip", so it can be a program name with args.
4636set dummy strip; ac_word=$2
4637echo "$as_me:$LINENO: checking for $ac_word" >&5
4638echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4639if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4640  echo $ECHO_N "(cached) $ECHO_C" >&6
4641else
4642  if test -n "$ac_ct_STRIP"; then
4643  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4644else
4645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4646for as_dir in $PATH
4647do
4648  IFS=$as_save_IFS
4649  test -z "$as_dir" && as_dir=.
4650  for ac_exec_ext in '' $ac_executable_extensions; do
4651  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4652    ac_cv_prog_ac_ct_STRIP="strip"
4653    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4654    break 2
4655  fi
4656done
4657done
4658
4659  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4660fi
4661fi
4662ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4663if test -n "$ac_ct_STRIP"; then
4664  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4665echo "${ECHO_T}$ac_ct_STRIP" >&6
4666else
4667  echo "$as_me:$LINENO: result: no" >&5
4668echo "${ECHO_T}no" >&6
4669fi
4670
4671  STRIP=$ac_ct_STRIP
4672else
4673  STRIP="$ac_cv_prog_STRIP"
4674fi
4675
4676fi
4677INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4678
4679# We need awk for the "check" target.  The system "awk" is bad on
4680# some platforms.
4681# Always define AMTAR for backward compatibility.
4682
4683AMTAR=${AMTAR-"${am_missing_run}tar"}
4684
4685am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4686
4687
4688
4689
4690depcc="$CC"   am_compiler_list=
4691
4692echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4693echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4694if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4695  echo $ECHO_N "(cached) $ECHO_C" >&6
4696else
4697  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4698  # We make a subdir and do the tests there.  Otherwise we can end up
4699  # making bogus files that we don't know about and never remove.  For
4700  # instance it was reported that on HP-UX the gcc test will end up
4701  # making a dummy file named `D' -- because `-MD' means `put the output
4702  # in D'.
4703  mkdir conftest.dir
4704  # Copy depcomp to subdir because otherwise we won't find it if we're
4705  # using a relative directory.
4706  cp "$am_depcomp" conftest.dir
4707  cd conftest.dir
4708  # We will build objects and dependencies in a subdirectory because
4709  # it helps to detect inapplicable dependency modes.  For instance
4710  # both Tru64's cc and ICC support -MD to output dependencies as a
4711  # side effect of compilation, but ICC will put the dependencies in
4712  # the current directory while Tru64 will put them in the object
4713  # directory.
4714  mkdir sub
4715
4716  am_cv_CC_dependencies_compiler_type=none
4717  if test "$am_compiler_list" = ""; then
4718     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4719  fi
4720  for depmode in $am_compiler_list; do
4721    # Setup a source with many dependencies, because some compilers
4722    # like to wrap large dependency lists on column 80 (with \), and
4723    # we should not choose a depcomp mode which is confused by this.
4724    #
4725    # We need to recreate these files for each test, as the compiler may
4726    # overwrite some of them when testing with obscure command lines.
4727    # This happens at least with the AIX C compiler.
4728    : > sub/conftest.c
4729    for i in 1 2 3 4 5 6; do
4730      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4731      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4732      # Solaris 8's {/usr,}/bin/sh.
4733      touch sub/conftst$i.h
4734    done
4735    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4736
4737    case $depmode in
4738    nosideeffect)
4739      # after this tag, mechanisms are not by side-effect, so they'll
4740      # only be used when explicitly requested
4741      if test "x$enable_dependency_tracking" = xyes; then
4742        continue
4743      else
4744        break
4745      fi
4746      ;;
4747    none) break ;;
4748    esac
4749    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4750    # mode.  It turns out that the SunPro C++ compiler does not properly
4751    # handle `-M -o', and we need to detect this.
4752    if depmode=$depmode \
4753       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4754       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4755       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4756         >/dev/null 2>conftest.err &&
4757       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4758       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4759       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4760      # icc doesn't choke on unknown options, it will just issue warnings
4761      # or remarks (even with -Werror).  So we grep stderr for any message
4762      # that says an option was ignored or not supported.
4763      # When given -MP, icc 7.0 and 7.1 complain thusly:
4764      #   icc: Command line warning: ignoring option '-M'; no argument required
4765      # The diagnosis changed in icc 8.0:
4766      #   icc: Command line remark: option '-MP' not supported
4767      if (grep 'ignoring option' conftest.err ||
4768          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4769        am_cv_CC_dependencies_compiler_type=$depmode
4770        break
4771      fi
4772    fi
4773  done
4774
4775  cd ..
4776  rm -rf conftest.dir
4777else
4778  am_cv_CC_dependencies_compiler_type=none
4779fi
4780
4781fi
4782echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4783echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4784CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4785
4786
4787
4788if
4789  test "x$enable_dependency_tracking" != xno \
4790  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4791  am__fastdepCC_TRUE=
4792  am__fastdepCC_FALSE='#'
4793else
4794  am__fastdepCC_TRUE='#'
4795  am__fastdepCC_FALSE=
4796fi
4797
4798
4799depcc="$CXX"  am_compiler_list=
4800
4801echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4802echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4803if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4804  echo $ECHO_N "(cached) $ECHO_C" >&6
4805else
4806  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4807  # We make a subdir and do the tests there.  Otherwise we can end up
4808  # making bogus files that we don't know about and never remove.  For
4809  # instance it was reported that on HP-UX the gcc test will end up
4810  # making a dummy file named `D' -- because `-MD' means `put the output
4811  # in D'.
4812  mkdir conftest.dir
4813  # Copy depcomp to subdir because otherwise we won't find it if we're
4814  # using a relative directory.
4815  cp "$am_depcomp" conftest.dir
4816  cd conftest.dir
4817  # We will build objects and dependencies in a subdirectory because
4818  # it helps to detect inapplicable dependency modes.  For instance
4819  # both Tru64's cc and ICC support -MD to output dependencies as a
4820  # side effect of compilation, but ICC will put the dependencies in
4821  # the current directory while Tru64 will put them in the object
4822  # directory.
4823  mkdir sub
4824
4825  am_cv_CXX_dependencies_compiler_type=none
4826  if test "$am_compiler_list" = ""; then
4827     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4828  fi
4829  for depmode in $am_compiler_list; do
4830    # Setup a source with many dependencies, because some compilers
4831    # like to wrap large dependency lists on column 80 (with \), and
4832    # we should not choose a depcomp mode which is confused by this.
4833    #
4834    # We need to recreate these files for each test, as the compiler may
4835    # overwrite some of them when testing with obscure command lines.
4836    # This happens at least with the AIX C compiler.
4837    : > sub/conftest.c
4838    for i in 1 2 3 4 5 6; do
4839      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4840      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4841      # Solaris 8's {/usr,}/bin/sh.
4842      touch sub/conftst$i.h
4843    done
4844    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4845
4846    case $depmode in
4847    nosideeffect)
4848      # after this tag, mechanisms are not by side-effect, so they'll
4849      # only be used when explicitly requested
4850      if test "x$enable_dependency_tracking" = xyes; then
4851        continue
4852      else
4853        break
4854      fi
4855      ;;
4856    none) break ;;
4857    esac
4858    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4859    # mode.  It turns out that the SunPro C++ compiler does not properly
4860    # handle `-M -o', and we need to detect this.
4861    if depmode=$depmode \
4862       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4863       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4864       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4865         >/dev/null 2>conftest.err &&
4866       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4867       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4868       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4869      # icc doesn't choke on unknown options, it will just issue warnings
4870      # or remarks (even with -Werror).  So we grep stderr for any message
4871      # that says an option was ignored or not supported.
4872      # When given -MP, icc 7.0 and 7.1 complain thusly:
4873      #   icc: Command line warning: ignoring option '-M'; no argument required
4874      # The diagnosis changed in icc 8.0:
4875      #   icc: Command line remark: option '-MP' not supported
4876      if (grep 'ignoring option' conftest.err ||
4877          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4878        am_cv_CXX_dependencies_compiler_type=$depmode
4879        break
4880      fi
4881    fi
4882  done
4883
4884  cd ..
4885  rm -rf conftest.dir
4886else
4887  am_cv_CXX_dependencies_compiler_type=none
4888fi
4889
4890fi
4891echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4892echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4893CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4894
4895
4896
4897if
4898  test "x$enable_dependency_tracking" != xno \
4899  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4900  am__fastdepCXX_TRUE=
4901  am__fastdepCXX_FALSE='#'
4902else
4903  am__fastdepCXX_TRUE='#'
4904  am__fastdepCXX_FALSE=
4905fi
4906
4907
4908
4909echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4910echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4911    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4912if test "${enable_maintainer_mode+set}" = set; then
4913  enableval="$enable_maintainer_mode"
4914  USE_MAINTAINER_MODE=$enableval
4915else
4916  USE_MAINTAINER_MODE=no
4917fi;
4918  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4919echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4920
4921
4922if test $USE_MAINTAINER_MODE = yes; then
4923  MAINTAINER_MODE_TRUE=
4924  MAINTAINER_MODE_FALSE='#'
4925else
4926  MAINTAINER_MODE_TRUE='#'
4927  MAINTAINER_MODE_FALSE=
4928fi
4929
4930  MAINT=$MAINTAINER_MODE_TRUE
4931
4932
4933
4934coin_have_externals=no
4935if test "$enable_maintainer_mode" = yes; then
4936
4937  # If maintainer mode is chosen, we make sure that the correct versions
4938  # of the tools are used, and that we know where libtool.m4 is (to
4939  # recreate acinclude.m4)
4940
4941
4942  LIBTOOLM4=
4943  # Normally, $HOME
4944  AUTOTOOLS_DFLT=$HOME
4945
4946  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
4947echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
4948if test "${ac_cv_use_correct_autotools+set}" = set; then
4949  echo $ECHO_N "(cached) $ECHO_C" >&6
4950else
4951  ac_cv_use_correct_autotools=check
4952fi
4953echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
4954echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
4955
4956  if test $ac_cv_use_correct_autotools = check; then
4957    ac_cv_use_correct_autotools=yes
4958    # Check if we have autoconf
4959    # Extract the first word of "autoconf", so it can be a program name with args.
4960set dummy autoconf; ac_word=$2
4961echo "$as_me:$LINENO: checking for $ac_word" >&5
4962echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4963if test "${ac_cv_prog_have_autoconf+set}" = set; then
4964  echo $ECHO_N "(cached) $ECHO_C" >&6
4965else
4966  if test -n "$have_autoconf"; then
4967  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
4968else
4969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4970for as_dir in $PATH
4971do
4972  IFS=$as_save_IFS
4973  test -z "$as_dir" && as_dir=.
4974  for ac_exec_ext in '' $ac_executable_extensions; do
4975  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4976    ac_cv_prog_have_autoconf="yes"
4977    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4978    break 2
4979  fi
4980done
4981done
4982
4983  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
4984fi
4985fi
4986have_autoconf=$ac_cv_prog_have_autoconf
4987if test -n "$have_autoconf"; then
4988  echo "$as_me:$LINENO: result: $have_autoconf" >&5
4989echo "${ECHO_T}$have_autoconf" >&6
4990else
4991  echo "$as_me:$LINENO: result: no" >&5
4992echo "${ECHO_T}no" >&6
4993fi
4994
4995    if test $have_autoconf = no; then
4996      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
4997echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
4998   { (exit 1); exit 1; }; }
4999    fi
5000
5001    # Check whether autoconf is the correct version
5002    correct_version='2.59'
5003    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5004    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5005echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5006    autoconf --version > confauto.out 2>&1
5007    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5008      echo "$as_me:$LINENO: result: yes" >&5
5009echo "${ECHO_T}yes" >&6
5010    else
5011      rm -f confauto.out
5012      echo "$as_me:$LINENO: result: no" >&5
5013echo "${ECHO_T}no" >&6
5014      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5015echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5016   { (exit 1); exit 1; }; }
5017    fi
5018    rm -f confauto.out
5019
5020    # Check if the executable autoconf is picked up from the correct location
5021    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5022echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5023    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5024    autoconf_dir=`cd $autoconf_dir; pwd`
5025    if test x$AUTOTOOLS_DIR = x; then
5026      want_dir=$AUTOTOOLS_DFLT/bin
5027    else
5028      want_dir=$AUTOTOOLS_DIR/bin
5029    fi
5030    if test $autoconf_dir = `cd $want_dir; pwd`; then
5031      echo "$as_me:$LINENO: result: yes" >&5
5032echo "${ECHO_T}yes" >&6
5033    else
5034      rm -f confauto.out
5035      echo "$as_me:$LINENO: result: no" >&5
5036echo "${ECHO_T}no" >&6
5037      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5038echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5039   { (exit 1); exit 1; }; }
5040    fi
5041
5042    # Check if we have automake
5043    # Extract the first word of "automake", so it can be a program name with args.
5044set dummy automake; ac_word=$2
5045echo "$as_me:$LINENO: checking for $ac_word" >&5
5046echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5047if test "${ac_cv_prog_have_automake+set}" = set; then
5048  echo $ECHO_N "(cached) $ECHO_C" >&6
5049else
5050  if test -n "$have_automake"; then
5051  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5052else
5053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5054for as_dir in $PATH
5055do
5056  IFS=$as_save_IFS
5057  test -z "$as_dir" && as_dir=.
5058  for ac_exec_ext in '' $ac_executable_extensions; do
5059  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5060    ac_cv_prog_have_automake="yes"
5061    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5062    break 2
5063  fi
5064done
5065done
5066
5067  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5068fi
5069fi
5070have_automake=$ac_cv_prog_have_automake
5071if test -n "$have_automake"; then
5072  echo "$as_me:$LINENO: result: $have_automake" >&5
5073echo "${ECHO_T}$have_automake" >&6
5074else
5075  echo "$as_me:$LINENO: result: no" >&5
5076echo "${ECHO_T}no" >&6
5077fi
5078
5079    if test $have_automake = no; then
5080      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5081echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5082   { (exit 1); exit 1; }; }
5083    fi
5084
5085    # Check whether automake is the correct version
5086    correct_version='1.9.6'
5087    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5088    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5089echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5090    automake --version > confauto.out 2>&1
5091    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5092      echo "$as_me:$LINENO: result: yes" >&5
5093echo "${ECHO_T}yes" >&6
5094    else
5095      rm -f confauto.out
5096      echo "$as_me:$LINENO: result: no" >&5
5097echo "${ECHO_T}no" >&6
5098      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5099echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5100   { (exit 1); exit 1; }; }
5101    fi
5102    rm -f confauto.out
5103
5104    # Check if the executable automake is picked up from the correct location
5105    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5106echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5107    automake_dir=`which automake | sed -e 's=/automake=='`
5108    automake_dir=`cd $automake_dir; pwd`
5109    if test x$AUTOTOOLS_DIR = x; then
5110      want_dir=$AUTOTOOLS_DFLT/bin
5111    else
5112      want_dir=$AUTOTOOLS_DIR/bin
5113    fi
5114    if test $automake_dir = `cd $want_dir; pwd`; then
5115      echo "$as_me:$LINENO: result: yes" >&5
5116echo "${ECHO_T}yes" >&6
5117    else
5118      rm -f confauto.out
5119      echo "$as_me:$LINENO: result: no" >&5
5120echo "${ECHO_T}no" >&6
5121      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5122echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5123   { (exit 1); exit 1; }; }
5124    fi
5125
5126    # Check if this is the correct version of libtool (with escaped dots)
5127    if test x$AUTOTOOLS_DIR = x; then
5128      want_dir=$AUTOTOOLS_DFLT/share
5129    else
5130      want_dir=$AUTOTOOLS_DIR/share
5131    fi
5132    correct_version='1.5.22'
5133    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5134    if test -r $want_dir/libtool/ltmain.sh; then
5135  have_ltmain=yes
5136  :
5137else
5138  have_ltmain=no
5139  :
5140fi
5141
5142    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5143echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5144    if test $have_ltmain = yes; then
5145    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5146        echo "$as_me:$LINENO: result: yes" >&5
5147echo "${ECHO_T}yes" >&6
5148      else
5149        echo "$as_me:$LINENO: result: no" >&5
5150echo "${ECHO_T}no" >&6
5151        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5152echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5153   { (exit 1); exit 1; }; }
5154      fi
5155    else
5156      echo "$as_me:$LINENO: result: no" >&5
5157echo "${ECHO_T}no" >&6
5158      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5159echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5160   { (exit 1); exit 1; }; }
5161    fi
5162  fi
5163
5164  # Check if we can find the libtool file
5165  if test x$AUTOTOOLS_DIR = x; then
5166    want_dir=$AUTOTOOLS_DFLT/share
5167  else
5168    want_dir=$AUTOTOOLS_DIR/share
5169  fi
5170  if test -r $want_dir/aclocal/libtool.m4; then
5171  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5172  :
5173else
5174  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5175echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5176   { (exit 1); exit 1; }; }
5177  :
5178fi
5179
5180
5181  # Check if we have an Externals file
5182  if test -r $srcdir/Externals; then
5183    coin_have_externals=yes
5184  fi
5185  # Check if subversion is installed and understands https
5186  # Extract the first word of "svn", so it can be a program name with args.
5187set dummy svn; ac_word=$2
5188echo "$as_me:$LINENO: checking for $ac_word" >&5
5189echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5190if test "${ac_cv_prog_have_svn+set}" = set; then
5191  echo $ECHO_N "(cached) $ECHO_C" >&6
5192else
5193  if test -n "$have_svn"; then
5194  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5195else
5196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5197for as_dir in $PATH
5198do
5199  IFS=$as_save_IFS
5200  test -z "$as_dir" && as_dir=.
5201  for ac_exec_ext in '' $ac_executable_extensions; do
5202  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5203    ac_cv_prog_have_svn="yes"
5204    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5205    break 2
5206  fi
5207done
5208done
5209
5210  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5211fi
5212fi
5213have_svn=$ac_cv_prog_have_svn
5214if test -n "$have_svn"; then
5215  echo "$as_me:$LINENO: result: $have_svn" >&5
5216echo "${ECHO_T}$have_svn" >&6
5217else
5218  echo "$as_me:$LINENO: result: no" >&5
5219echo "${ECHO_T}no" >&6
5220fi
5221
5222  if test x$have_svn = xyes; then
5223    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5224echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5225if test "${ac_cv_svn_understands_https+set}" = set; then
5226  echo $ECHO_N "(cached) $ECHO_C" >&6
5227else
5228  svn --version > confauto.out 2>&1
5229                    if $EGREP https confauto.out >/dev/null 2>&1; then
5230                      ac_cv_svn_understands_https=yes
5231                    else
5232                      ac_cv_svn_understands_https=no
5233                      have_svn=no
5234                      ac_cv_prog_have_svn=no
5235                    fi
5236                    rm -f confauto.out
5237fi
5238echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5239echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5240  fi
5241
5242  # Find the location of the BuildTools directory
5243  BUILDTOOLSDIR=
5244  if test -r $srcdir/BuildTools/coin.m4; then
5245    BUILDTOOLSDIR=$srcdir/BuildTools
5246  else
5247    if test -r $srcdir/../BuildTools/coin.m4; then
5248      BUILDTOOLSDIR=$srcdir/../BuildTools
5249    else
5250      if test -r $srcdir/../../BuildTools/coin.m4; then
5251        BUILDTOOLSDIR=$srcdir/../../BuildTools
5252      else
5253        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5254echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5255   { (exit 1); exit 1; }; }
5256      fi
5257    fi
5258  fi
5259
5260
5261  # The following variable is set to the name of the directory where
5262  # the autotool scripts are located
5263
5264  AUX_DIR=$ac_aux_dir
5265fi
5266
5267# helpful variable for the base directory of this package
5268abs_source_dir=`cd $srcdir; pwd`
5269
5270
5271# Stuff for example Makefiles
5272if test x$prefix = xNONE; then
5273  full_prefix=$ac_default_prefix
5274else
5275  full_prefix=$prefix
5276fi
5277full_prefix=`cd $full_prefix ; pwd`
5278
5279abs_lib_dir=$full_prefix/lib
5280
5281abs_include_dir=$full_prefix/include
5282
5283abs_bin_dir=$full_prefix/bin
5284
5285
5286
5287if test $coin_have_externals = yes && test x$have_svn = xyes; then
5288  HAVE_EXTERNALS_TRUE=
5289  HAVE_EXTERNALS_FALSE='#'
5290else
5291  HAVE_EXTERNALS_TRUE='#'
5292  HAVE_EXTERNALS_FALSE=
5293fi
5294
5295
5296# AC_MSG_NOTICE([End automake initialisation.])
5297
5298
5299
5300LIBTOOL=
5301if test -r ../libtool; then
5302  coin_config_dir=..
5303  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5304fi
5305if test "x$LIBTOOL" = x; then
5306  if test -r ../../libtool; then
5307    coin_config_dir=../..
5308    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5309  fi
5310fi
5311
5312if test "x$LIBTOOL" = x; then
5313# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5314  # Stuff for libtool
5315  # Check whether --enable-shared or --disable-shared was given.
5316if test "${enable_shared+set}" = set; then
5317  enableval="$enable_shared"
5318  p=${PACKAGE-default}
5319    case $enableval in
5320    yes) enable_shared=yes ;;
5321    no) enable_shared=no ;;
5322    *)
5323      enable_shared=no
5324      # Look at the argument we got.  We use all the common list separators.
5325      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5326      for pkg in $enableval; do
5327        IFS="$lt_save_ifs"
5328        if test "X$pkg" = "X$p"; then
5329          enable_shared=yes
5330        fi
5331      done
5332      IFS="$lt_save_ifs"
5333      ;;
5334    esac
5335else
5336  enable_shared=yes
5337fi;
5338
5339# Check whether --enable-fast-install or --disable-fast-install was given.
5340if test "${enable_fast_install+set}" = set; then
5341  enableval="$enable_fast_install"
5342  p=${PACKAGE-default}
5343    case $enableval in
5344    yes) enable_fast_install=yes ;;
5345    no) enable_fast_install=no ;;
5346    *)
5347      enable_fast_install=no
5348      # Look at the argument we got.  We use all the common list separators.
5349      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5350      for pkg in $enableval; do
5351        IFS="$lt_save_ifs"
5352        if test "X$pkg" = "X$p"; then
5353          enable_fast_install=yes
5354        fi
5355      done
5356      IFS="$lt_save_ifs"
5357      ;;
5358    esac
5359else
5360  enable_fast_install=yes
5361fi;
5362
5363echo "$as_me:$LINENO: checking host system type" >&5
5364echo $ECHO_N "checking host system type... $ECHO_C" >&6
5365if test "${ac_cv_host+set}" = set; then
5366  echo $ECHO_N "(cached) $ECHO_C" >&6
5367else
5368  ac_cv_host_alias=$host_alias
5369test -z "$ac_cv_host_alias" &&
5370  ac_cv_host_alias=$ac_cv_build_alias
5371ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5372  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5373echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5374   { (exit 1); exit 1; }; }
5375
5376fi
5377echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5378echo "${ECHO_T}$ac_cv_host" >&6
5379host=$ac_cv_host
5380host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5381host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5382host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5383
5384
5385echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5386echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5387if test "${lt_cv_path_SED+set}" = set; then
5388  echo $ECHO_N "(cached) $ECHO_C" >&6
5389else
5390  # Loop through the user's path and test for sed and gsed.
5391# Then use that list of sed's as ones to test for truncation.
5392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5393for as_dir in $PATH
5394do
5395  IFS=$as_save_IFS
5396  test -z "$as_dir" && as_dir=.
5397  for lt_ac_prog in sed gsed; do
5398    for ac_exec_ext in '' $ac_executable_extensions; do
5399      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5400        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5401      fi
5402    done
5403  done
5404done
5405lt_ac_max=0
5406lt_ac_count=0
5407# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5408# along with /bin/sed that truncates output.
5409for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5410  test ! -f $lt_ac_sed && continue
5411  cat /dev/null > conftest.in
5412  lt_ac_count=0
5413  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5414  # Check for GNU sed and select it if it is found.
5415  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5416    lt_cv_path_SED=$lt_ac_sed
5417    break
5418  fi
5419  while true; do
5420    cat conftest.in conftest.in >conftest.tmp
5421    mv conftest.tmp conftest.in
5422    cp conftest.in conftest.nl
5423    echo >>conftest.nl
5424    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5425    cmp -s conftest.out conftest.nl || break
5426    # 10000 chars as input seems more than enough
5427    test $lt_ac_count -gt 10 && break
5428    lt_ac_count=`expr $lt_ac_count + 1`
5429    if test $lt_ac_count -gt $lt_ac_max; then
5430      lt_ac_max=$lt_ac_count
5431      lt_cv_path_SED=$lt_ac_sed
5432    fi
5433  done
5434done
5435
5436fi
5437
5438SED=$lt_cv_path_SED
5439echo "$as_me:$LINENO: result: $SED" >&5
5440echo "${ECHO_T}$SED" >&6
5441
5442
5443# Check whether --with-gnu-ld or --without-gnu-ld was given.
5444if test "${with_gnu_ld+set}" = set; then
5445  withval="$with_gnu_ld"
5446  test "$withval" = no || with_gnu_ld=yes
5447else
5448  with_gnu_ld=no
5449fi;
5450ac_prog=ld
5451if test "$GCC" = yes; then
5452  # Check if gcc -print-prog-name=ld gives a path.
5453  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5454echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5455  case $host in
5456  *-*-mingw*)
5457    # gcc leaves a trailing carriage return which upsets mingw
5458    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5459  *)
5460    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5461  esac
5462  case $ac_prog in
5463    # Accept absolute paths.
5464    [\\/]* | ?:[\\/]*)
5465      re_direlt='/[^/][^/]*/\.\./'
5466      # Canonicalize the pathname of ld
5467      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5468      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5469        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5470      done
5471      test -z "$LD" && LD="$ac_prog"
5472      ;;
5473  "")
5474    # If it fails, then pretend we aren't using GCC.
5475    ac_prog=ld
5476    ;;
5477  *)
5478    # If it is relative, then search for the first ld in PATH.
5479    with_gnu_ld=unknown
5480    ;;
5481  esac
5482elif test "$with_gnu_ld" = yes; then
5483  echo "$as_me:$LINENO: checking for GNU ld" >&5
5484echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5485else
5486  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5487echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5488fi
5489if test "${lt_cv_path_LD+set}" = set; then
5490  echo $ECHO_N "(cached) $ECHO_C" >&6
5491else
5492  if test -z "$LD"; then
5493  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5494  for ac_dir in $PATH; do
5495    IFS="$lt_save_ifs"
5496    test -z "$ac_dir" && ac_dir=.
5497    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5498      lt_cv_path_LD="$ac_dir/$ac_prog"
5499      # Check to see if the program is GNU ld.  I'd rather use --version,
5500      # but apparently some variants of GNU ld only accept -v.
5501      # Break only if it was the GNU/non-GNU ld that we prefer.
5502      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5503      *GNU* | *'with BFD'*)
5504        test "$with_gnu_ld" != no && break
5505        ;;
5506      *)
5507        test "$with_gnu_ld" != yes && break
5508        ;;
5509      esac
5510    fi
5511  done
5512  IFS="$lt_save_ifs"
5513else
5514  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5515fi
5516fi
5517
5518LD="$lt_cv_path_LD"
5519if test -n "$LD"; then
5520  echo "$as_me:$LINENO: result: $LD" >&5
5521echo "${ECHO_T}$LD" >&6
5522else
5523  echo "$as_me:$LINENO: result: no" >&5
5524echo "${ECHO_T}no" >&6
5525fi
5526test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5527echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5528   { (exit 1); exit 1; }; }
5529echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5530echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5531if test "${lt_cv_prog_gnu_ld+set}" = set; then
5532  echo $ECHO_N "(cached) $ECHO_C" >&6
5533else
5534  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5535case `$LD -v 2>&1 </dev/null` in
5536*GNU* | *'with BFD'*)
5537  lt_cv_prog_gnu_ld=yes
5538  ;;
5539*)
5540  lt_cv_prog_gnu_ld=no
5541  ;;
5542esac
5543fi
5544echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5545echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5546with_gnu_ld=$lt_cv_prog_gnu_ld
5547
5548
5549echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5550echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5551if test "${lt_cv_ld_reload_flag+set}" = set; then
5552  echo $ECHO_N "(cached) $ECHO_C" >&6
5553else
5554  lt_cv_ld_reload_flag='-r'
5555fi
5556echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5557echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5558reload_flag=$lt_cv_ld_reload_flag
5559case $reload_flag in
5560"" | " "*) ;;
5561*) reload_flag=" $reload_flag" ;;
5562esac
5563reload_cmds='$LD$reload_flag -o $output$reload_objs'
5564case $host_os in
5565  darwin*)
5566    if test "$GCC" = yes; then
5567      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5568    else
5569      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5570    fi
5571    ;;
5572esac
5573
5574echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5575echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5576if test "${lt_cv_path_NM+set}" = set; then
5577  echo $ECHO_N "(cached) $ECHO_C" >&6
5578else
5579  if test -n "$NM"; then
5580  # Let the user override the test.
5581  lt_cv_path_NM="$NM"
5582else
5583  lt_nm_to_check="${ac_tool_prefix}nm"
5584  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5585    lt_nm_to_check="$lt_nm_to_check nm"
5586  fi
5587  for lt_tmp_nm in $lt_nm_to_check; do
5588    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5589    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5590      IFS="$lt_save_ifs"
5591      test -z "$ac_dir" && ac_dir=.
5592      tmp_nm="$ac_dir/$lt_tmp_nm"
5593      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5594        # Check to see if the nm accepts a BSD-compat flag.
5595        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5596        #   nm: unknown option "B" ignored
5597        # Tru64's nm complains that /dev/null is an invalid object file
5598        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5599        */dev/null* | *'Invalid file or object type'*)
5600          lt_cv_path_NM="$tmp_nm -B"
5601          break
5602          ;;
5603        *)
5604          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5605          */dev/null*)
5606            lt_cv_path_NM="$tmp_nm -p"
5607            break
5608            ;;
5609          *)
5610            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5611            continue # so that we can try to find one that supports BSD flags
5612            ;;
5613          esac
5614          ;;
5615        esac
5616      fi
5617    done
5618    IFS="$lt_save_ifs"
5619  done
5620  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5621fi
5622fi
5623echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5624echo "${ECHO_T}$lt_cv_path_NM" >&6
5625NM="$lt_cv_path_NM"
5626
5627echo "$as_me:$LINENO: checking whether ln -s works" >&5
5628echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5629LN_S=$as_ln_s
5630if test "$LN_S" = "ln -s"; then
5631  echo "$as_me:$LINENO: result: yes" >&5
5632echo "${ECHO_T}yes" >&6
5633else
5634  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5635echo "${ECHO_T}no, using $LN_S" >&6
5636fi
5637
5638echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5639echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5640if test "${lt_cv_deplibs_check_method+set}" = set; then
5641  echo $ECHO_N "(cached) $ECHO_C" >&6
5642else
5643  lt_cv_file_magic_cmd='$MAGIC_CMD'
5644lt_cv_file_magic_test_file=
5645lt_cv_deplibs_check_method='unknown'
5646# Need to set the preceding variable on all platforms that support
5647# interlibrary dependencies.
5648# 'none' -- dependencies not supported.
5649# `unknown' -- same as none, but documents that we really don't know.
5650# 'pass_all' -- all dependencies passed with no checks.
5651# 'test_compile' -- check by making test program.
5652# 'file_magic [[regex]]' -- check by looking for files in library path
5653# which responds to the $file_magic_cmd with a given extended regex.
5654# If you have `file' or equivalent on your system and you're not sure
5655# whether `pass_all' will *always* work, you probably want this one.
5656
5657case $host_os in
5658aix4* | aix5*)
5659  lt_cv_deplibs_check_method=pass_all
5660  ;;
5661
5662beos*)
5663  lt_cv_deplibs_check_method=pass_all
5664  ;;
5665
5666bsdi[45]*)
5667  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5668  lt_cv_file_magic_cmd='/usr/bin/file -L'
5669  lt_cv_file_magic_test_file=/shlib/libc.so
5670  ;;
5671
5672cygwin*)
5673  # func_win32_libid is a shell function defined in ltmain.sh
5674  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5675  lt_cv_file_magic_cmd='func_win32_libid'
5676  ;;
5677
5678mingw* | pw32*)
5679  # Base MSYS/MinGW do not provide the 'file' command needed by
5680  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5681  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5682  lt_cv_file_magic_cmd='$OBJDUMP -f'
5683  ;;
5684
5685darwin* | rhapsody*)
5686  lt_cv_deplibs_check_method=pass_all
5687  ;;
5688
5689freebsd* | kfreebsd*-gnu | dragonfly*)
5690  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5691    case $host_cpu in
5692    i*86 )
5693      # Not sure whether the presence of OpenBSD here was a mistake.
5694      # Let's accept both of them until this is cleared up.
5695      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5696      lt_cv_file_magic_cmd=/usr/bin/file
5697      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5698      ;;
5699    esac
5700  else
5701    lt_cv_deplibs_check_method=pass_all
5702  fi
5703  ;;
5704
5705gnu*)
5706  lt_cv_deplibs_check_method=pass_all
5707  ;;
5708
5709hpux10.20* | hpux11*)
5710  lt_cv_file_magic_cmd=/usr/bin/file
5711  case $host_cpu in
5712  ia64*)
5713    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5714    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5715    ;;
5716  hppa*64*)
5717    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]'
5718    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5719    ;;
5720  *)
5721    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5722    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5723    ;;
5724  esac
5725  ;;
5726
5727interix3*)
5728  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5729  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5730  ;;
5731
5732irix5* | irix6* | nonstopux*)
5733  case $LD in
5734  *-32|*"-32 ") libmagic=32-bit;;
5735  *-n32|*"-n32 ") libmagic=N32;;
5736  *-64|*"-64 ") libmagic=64-bit;;
5737  *) libmagic=never-match;;
5738  esac
5739  lt_cv_deplibs_check_method=pass_all
5740  ;;
5741
5742# This must be Linux ELF.
5743linux*)
5744  lt_cv_deplibs_check_method=pass_all
5745  ;;
5746
5747netbsd*)
5748  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5749    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5750  else
5751    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5752  fi
5753  ;;
5754
5755newos6*)
5756  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5757  lt_cv_file_magic_cmd=/usr/bin/file
5758  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5759  ;;
5760
5761nto-qnx*)
5762  lt_cv_deplibs_check_method=unknown
5763  ;;
5764
5765openbsd*)
5766  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5767    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5768  else
5769    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5770  fi
5771  ;;
5772
5773osf3* | osf4* | osf5*)
5774  lt_cv_deplibs_check_method=pass_all
5775  ;;
5776
5777solaris*)
5778  lt_cv_deplibs_check_method=pass_all
5779  ;;
5780
5781sysv4 | sysv4.3*)
5782  case $host_vendor in
5783  motorola)
5784    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]'
5785    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5786    ;;
5787  ncr)
5788    lt_cv_deplibs_check_method=pass_all
5789    ;;
5790  sequent)
5791    lt_cv_file_magic_cmd='/bin/file'
5792    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5793    ;;
5794  sni)
5795    lt_cv_file_magic_cmd='/bin/file'
5796    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5797    lt_cv_file_magic_test_file=/lib/libc.so
5798    ;;
5799  siemens)
5800    lt_cv_deplibs_check_method=pass_all
5801    ;;
5802  pc)
5803    lt_cv_deplibs_check_method=pass_all
5804    ;;
5805  esac
5806  ;;
5807
5808sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5809  lt_cv_deplibs_check_method=pass_all
5810  ;;
5811esac
5812
5813fi
5814echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5815echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5816file_magic_cmd=$lt_cv_file_magic_cmd
5817deplibs_check_method=$lt_cv_deplibs_check_method
5818test -z "$deplibs_check_method" && deplibs_check_method=unknown
5819
5820
5821
5822
5823# If no C compiler was specified, use CC.
5824LTCC=${LTCC-"$CC"}
5825
5826# If no C compiler flags were specified, use CFLAGS.
5827LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5828
5829# Allow CC to be a program name with arguments.
5830compiler=$CC
5831
5832# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5833if test "${enable_libtool_lock+set}" = set; then
5834  enableval="$enable_libtool_lock"
5835
5836fi;
5837test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5838
5839# Some flags need to be propagated to the compiler or linker for good
5840# libtool support.
5841case $host in
5842ia64-*-hpux*)
5843  # Find out which ABI we are using.
5844  echo 'int i;' > conftest.$ac_ext
5845  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5846  (eval $ac_compile) 2>&5
5847  ac_status=$?
5848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849  (exit $ac_status); }; then
5850    case `/usr/bin/file conftest.$ac_objext` in
5851    *ELF-32*)
5852      HPUX_IA64_MODE="32"
5853      ;;
5854    *ELF-64*)
5855      HPUX_IA64_MODE="64"
5856      ;;
5857    esac
5858  fi
5859  rm -rf conftest*
5860  ;;
5861*-*-irix6*)
5862  # Find out which ABI we are using.
5863  echo '#line 5863 "configure"' > conftest.$ac_ext
5864  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5865  (eval $ac_compile) 2>&5
5866  ac_status=$?
5867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868  (exit $ac_status); }; then
5869   if test "$lt_cv_prog_gnu_ld" = yes; then
5870    case `/usr/bin/file conftest.$ac_objext` in
5871    *32-bit*)
5872      LD="${LD-ld} -melf32bsmip"
5873      ;;
5874    *N32*)
5875      LD="${LD-ld} -melf32bmipn32"
5876      ;;
5877    *64-bit*)
5878      LD="${LD-ld} -melf64bmip"
5879      ;;
5880    esac
5881   else
5882    case `/usr/bin/file conftest.$ac_objext` in
5883    *32-bit*)
5884      LD="${LD-ld} -32"
5885      ;;
5886    *N32*)
5887      LD="${LD-ld} -n32"
5888      ;;
5889    *64-bit*)
5890      LD="${LD-ld} -64"
5891      ;;
5892    esac
5893   fi
5894  fi
5895  rm -rf conftest*
5896  ;;
5897
5898x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5899  # Find out which ABI we are using.
5900  echo 'int i;' > conftest.$ac_ext
5901  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5902  (eval $ac_compile) 2>&5
5903  ac_status=$?
5904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905  (exit $ac_status); }; then
5906    case `/usr/bin/file conftest.o` in
5907    *32-bit*)
5908      case $host in
5909        x86_64-*linux*)
5910          LD="${LD-ld} -m elf_i386"
5911          ;;
5912        ppc64-*linux*|powerpc64-*linux*)
5913          LD="${LD-ld} -m elf32ppclinux"
5914          ;;
5915        s390x-*linux*)
5916          LD="${LD-ld} -m elf_s390"
5917          ;;
5918        sparc64-*linux*)
5919          LD="${LD-ld} -m elf32_sparc"
5920          ;;
5921      esac
5922      ;;
5923    *64-bit*)
5924      case $host in
5925        x86_64-*linux*)
5926          LD="${LD-ld} -m elf_x86_64"
5927          ;;
5928        ppc*-*linux*|powerpc*-*linux*)
5929          LD="${LD-ld} -m elf64ppc"
5930          ;;
5931        s390*-*linux*)
5932          LD="${LD-ld} -m elf64_s390"
5933          ;;
5934        sparc*-*linux*)
5935          LD="${LD-ld} -m elf64_sparc"
5936          ;;
5937      esac
5938      ;;
5939    esac
5940  fi
5941  rm -rf conftest*
5942  ;;
5943
5944*-*-sco3.2v5*)
5945  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5946  SAVE_CFLAGS="$CFLAGS"
5947  CFLAGS="$CFLAGS -belf"
5948  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5949echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5950if test "${lt_cv_cc_needs_belf+set}" = set; then
5951  echo $ECHO_N "(cached) $ECHO_C" >&6
5952else
5953  ac_ext=c
5954ac_cpp='$CPP $CPPFLAGS'
5955ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5956ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5957ac_compiler_gnu=$ac_cv_c_compiler_gnu
5958
5959     cat >conftest.$ac_ext <<_ACEOF
5960/* confdefs.h.  */
5961_ACEOF
5962cat confdefs.h >>conftest.$ac_ext
5963cat >>conftest.$ac_ext <<_ACEOF
5964/* end confdefs.h.  */
5965
5966int
5967main ()
5968{
5969
5970  ;
5971  return 0;
5972}
5973_ACEOF
5974rm -f conftest.$ac_objext conftest$ac_exeext
5975if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5976  (eval $ac_link) 2>conftest.er1
5977  ac_status=$?
5978  grep -v '^ *+' conftest.er1 >conftest.err
5979  rm -f conftest.er1
5980  cat conftest.err >&5
5981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982  (exit $ac_status); } &&
5983         { ac_try='test -z "$ac_c_werror_flag"
5984                         || test ! -s conftest.err'
5985  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5986  (eval $ac_try) 2>&5
5987  ac_status=$?
5988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989  (exit $ac_status); }; } &&
5990         { ac_try='test -s conftest$ac_exeext'
5991  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5992  (eval $ac_try) 2>&5
5993  ac_status=$?
5994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995  (exit $ac_status); }; }; then
5996  lt_cv_cc_needs_belf=yes
5997else
5998  echo "$as_me: failed program was:" >&5
5999sed 's/^/| /' conftest.$ac_ext >&5
6000
6001lt_cv_cc_needs_belf=no
6002fi
6003rm -f conftest.err conftest.$ac_objext \
6004      conftest$ac_exeext conftest.$ac_ext
6005     ac_ext=c
6006ac_cpp='$CPP $CPPFLAGS'
6007ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6008ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6009ac_compiler_gnu=$ac_cv_c_compiler_gnu
6010
6011fi
6012echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6013echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6014  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6015    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6016    CFLAGS="$SAVE_CFLAGS"
6017  fi
6018  ;;
6019sparc*-*solaris*)
6020  # Find out which ABI we are using.
6021  echo 'int i;' > conftest.$ac_ext
6022  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6023  (eval $ac_compile) 2>&5
6024  ac_status=$?
6025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026  (exit $ac_status); }; then
6027    case `/usr/bin/file conftest.o` in
6028    *64-bit*)
6029      case $lt_cv_prog_gnu_ld in
6030      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6031      *)    LD="${LD-ld} -64" ;;
6032      esac
6033      ;;
6034    esac
6035  fi
6036  rm -rf conftest*
6037  ;;
6038
6039
6040esac
6041
6042need_locks="$enable_libtool_lock"
6043
6044
6045ac_ext=c
6046ac_cpp='$CPP $CPPFLAGS'
6047ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6048ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6049ac_compiler_gnu=$ac_cv_c_compiler_gnu
6050echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6051echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6052# On Suns, sometimes $CPP names a directory.
6053if test -n "$CPP" && test -d "$CPP"; then
6054  CPP=
6055fi
6056if test -z "$CPP"; then
6057  if test "${ac_cv_prog_CPP+set}" = set; then
6058  echo $ECHO_N "(cached) $ECHO_C" >&6
6059else
6060      # Double quotes because CPP needs to be expanded
6061    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6062    do
6063      ac_preproc_ok=false
6064for ac_c_preproc_warn_flag in '' yes
6065do
6066  # Use a header file that comes with gcc, so configuring glibc
6067  # with a fresh cross-compiler works.
6068  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6069  # <limits.h> exists even on freestanding compilers.
6070  # On the NeXT, cc -E runs the code through the compiler's parser,
6071  # not just through cpp. "Syntax error" is here to catch this case.
6072  cat >conftest.$ac_ext <<_ACEOF
6073/* confdefs.h.  */
6074_ACEOF
6075cat confdefs.h >>conftest.$ac_ext
6076cat >>conftest.$ac_ext <<_ACEOF
6077/* end confdefs.h.  */
6078#ifdef __STDC__
6079# include <limits.h>
6080#else
6081# include <assert.h>
6082#endif
6083                     Syntax error
6084_ACEOF
6085if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6086  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6087  ac_status=$?
6088  grep -v '^ *+' conftest.er1 >conftest.err
6089  rm -f conftest.er1
6090  cat conftest.err >&5
6091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092  (exit $ac_status); } >/dev/null; then
6093  if test -s conftest.err; then
6094    ac_cpp_err=$ac_c_preproc_warn_flag
6095    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6096  else
6097    ac_cpp_err=
6098  fi
6099else
6100  ac_cpp_err=yes
6101fi
6102if test -z "$ac_cpp_err"; then
6103  :
6104else
6105  echo "$as_me: failed program was:" >&5
6106sed 's/^/| /' conftest.$ac_ext >&5
6107
6108  # Broken: fails on valid input.
6109continue
6110fi
6111rm -f conftest.err conftest.$ac_ext
6112
6113  # OK, works on sane cases.  Now check whether non-existent headers
6114  # can be detected and how.
6115  cat >conftest.$ac_ext <<_ACEOF
6116/* confdefs.h.  */
6117_ACEOF
6118cat confdefs.h >>conftest.$ac_ext
6119cat >>conftest.$ac_ext <<_ACEOF
6120/* end confdefs.h.  */
6121#include <ac_nonexistent.h>
6122_ACEOF
6123if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6124  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6125  ac_status=$?
6126  grep -v '^ *+' conftest.er1 >conftest.err
6127  rm -f conftest.er1
6128  cat conftest.err >&5
6129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130  (exit $ac_status); } >/dev/null; then
6131  if test -s conftest.err; then
6132    ac_cpp_err=$ac_c_preproc_warn_flag
6133    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6134  else
6135    ac_cpp_err=
6136  fi
6137else
6138  ac_cpp_err=yes
6139fi
6140if test -z "$ac_cpp_err"; then
6141  # Broken: success on invalid input.
6142continue
6143else
6144  echo "$as_me: failed program was:" >&5
6145sed 's/^/| /' conftest.$ac_ext >&5
6146
6147  # Passes both tests.
6148ac_preproc_ok=:
6149break
6150fi
6151rm -f conftest.err conftest.$ac_ext
6152
6153done
6154# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6155rm -f conftest.err conftest.$ac_ext
6156if $ac_preproc_ok; then
6157  break
6158fi
6159
6160    done
6161    ac_cv_prog_CPP=$CPP
6162
6163fi
6164  CPP=$ac_cv_prog_CPP
6165else
6166  ac_cv_prog_CPP=$CPP
6167fi
6168echo "$as_me:$LINENO: result: $CPP" >&5
6169echo "${ECHO_T}$CPP" >&6
6170ac_preproc_ok=false
6171for ac_c_preproc_warn_flag in '' yes
6172do
6173  # Use a header file that comes with gcc, so configuring glibc
6174  # with a fresh cross-compiler works.
6175  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6176  # <limits.h> exists even on freestanding compilers.
6177  # On the NeXT, cc -E runs the code through the compiler's parser,
6178  # not just through cpp. "Syntax error" is here to catch this case.
6179  cat >conftest.$ac_ext <<_ACEOF
6180/* confdefs.h.  */
6181_ACEOF
6182cat confdefs.h >>conftest.$ac_ext
6183cat >>conftest.$ac_ext <<_ACEOF
6184/* end confdefs.h.  */
6185#ifdef __STDC__
6186# include <limits.h>
6187#else
6188# include <assert.h>
6189#endif
6190                     Syntax error
6191_ACEOF
6192if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6193  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6194  ac_status=$?
6195  grep -v '^ *+' conftest.er1 >conftest.err
6196  rm -f conftest.er1
6197  cat conftest.err >&5
6198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199  (exit $ac_status); } >/dev/null; then
6200  if test -s conftest.err; then
6201    ac_cpp_err=$ac_c_preproc_warn_flag
6202    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6203  else
6204    ac_cpp_err=
6205  fi
6206else
6207  ac_cpp_err=yes
6208fi
6209if test -z "$ac_cpp_err"; then
6210  :
6211else
6212  echo "$as_me: failed program was:" >&5
6213sed 's/^/| /' conftest.$ac_ext >&5
6214
6215  # Broken: fails on valid input.
6216continue
6217fi
6218rm -f conftest.err conftest.$ac_ext
6219
6220  # OK, works on sane cases.  Now check whether non-existent headers
6221  # can be detected and how.
6222  cat >conftest.$ac_ext <<_ACEOF
6223/* confdefs.h.  */
6224_ACEOF
6225cat confdefs.h >>conftest.$ac_ext
6226cat >>conftest.$ac_ext <<_ACEOF
6227/* end confdefs.h.  */
6228#include <ac_nonexistent.h>
6229_ACEOF
6230if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6231  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6232  ac_status=$?
6233  grep -v '^ *+' conftest.er1 >conftest.err
6234  rm -f conftest.er1
6235  cat conftest.err >&5
6236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237  (exit $ac_status); } >/dev/null; then
6238  if test -s conftest.err; then
6239    ac_cpp_err=$ac_c_preproc_warn_flag
6240    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6241  else
6242    ac_cpp_err=
6243  fi
6244else
6245  ac_cpp_err=yes
6246fi
6247if test -z "$ac_cpp_err"; then
6248  # Broken: success on invalid input.
6249continue
6250else
6251  echo "$as_me: failed program was:" >&5
6252sed 's/^/| /' conftest.$ac_ext >&5
6253
6254  # Passes both tests.
6255ac_preproc_ok=:
6256break
6257fi
6258rm -f conftest.err conftest.$ac_ext
6259
6260done
6261# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6262rm -f conftest.err conftest.$ac_ext
6263if $ac_preproc_ok; then
6264  :
6265else
6266  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6267See \`config.log' for more details." >&5
6268echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6269See \`config.log' for more details." >&2;}
6270   { (exit 1); exit 1; }; }
6271fi
6272
6273ac_ext=c
6274ac_cpp='$CPP $CPPFLAGS'
6275ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6276ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6277ac_compiler_gnu=$ac_cv_c_compiler_gnu
6278
6279
6280echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6281echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6282if test "${ac_cv_header_stdc+set}" = set; then
6283  echo $ECHO_N "(cached) $ECHO_C" >&6
6284else
6285  cat >conftest.$ac_ext <<_ACEOF
6286/* confdefs.h.  */
6287_ACEOF
6288cat confdefs.h >>conftest.$ac_ext
6289cat >>conftest.$ac_ext <<_ACEOF
6290/* end confdefs.h.  */
6291#include <stdlib.h>
6292#include <stdarg.h>
6293#include <string.h>
6294#include <float.h>
6295
6296int
6297main ()
6298{
6299
6300  ;
6301  return 0;
6302}
6303_ACEOF
6304rm -f conftest.$ac_objext
6305if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6306  (eval $ac_compile) 2>conftest.er1
6307  ac_status=$?
6308  grep -v '^ *+' conftest.er1 >conftest.err
6309  rm -f conftest.er1
6310  cat conftest.err >&5
6311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312  (exit $ac_status); } &&
6313         { ac_try='test -z "$ac_c_werror_flag"
6314                         || test ! -s conftest.err'
6315  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6316  (eval $ac_try) 2>&5
6317  ac_status=$?
6318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319  (exit $ac_status); }; } &&
6320         { ac_try='test -s conftest.$ac_objext'
6321  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6322  (eval $ac_try) 2>&5
6323  ac_status=$?
6324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325  (exit $ac_status); }; }; then
6326  ac_cv_header_stdc=yes
6327else
6328  echo "$as_me: failed program was:" >&5
6329sed 's/^/| /' conftest.$ac_ext >&5
6330
6331ac_cv_header_stdc=no
6332fi
6333rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6334
6335if test $ac_cv_header_stdc = yes; then
6336  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6337  cat >conftest.$ac_ext <<_ACEOF
6338/* confdefs.h.  */
6339_ACEOF
6340cat confdefs.h >>conftest.$ac_ext
6341cat >>conftest.$ac_ext <<_ACEOF
6342/* end confdefs.h.  */
6343#include <string.h>
6344
6345_ACEOF
6346if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6347  $EGREP "memchr" >/dev/null 2>&1; then
6348  :
6349else
6350  ac_cv_header_stdc=no
6351fi
6352rm -f conftest*
6353
6354fi
6355
6356if test $ac_cv_header_stdc = yes; then
6357  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6358  cat >conftest.$ac_ext <<_ACEOF
6359/* confdefs.h.  */
6360_ACEOF
6361cat confdefs.h >>conftest.$ac_ext
6362cat >>conftest.$ac_ext <<_ACEOF
6363/* end confdefs.h.  */
6364#include <stdlib.h>
6365
6366_ACEOF
6367if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6368  $EGREP "free" >/dev/null 2>&1; then
6369  :
6370else
6371  ac_cv_header_stdc=no
6372fi
6373rm -f conftest*
6374
6375fi
6376
6377if test $ac_cv_header_stdc = yes; then
6378  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6379  if test "$cross_compiling" = yes; then
6380  :
6381else
6382  cat >conftest.$ac_ext <<_ACEOF
6383/* confdefs.h.  */
6384_ACEOF
6385cat confdefs.h >>conftest.$ac_ext
6386cat >>conftest.$ac_ext <<_ACEOF
6387/* end confdefs.h.  */
6388#include <ctype.h>
6389#if ((' ' & 0x0FF) == 0x020)
6390# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6391# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6392#else
6393# define ISLOWER(c) \
6394                   (('a' <= (c) && (c) <= 'i') \
6395                     || ('j' <= (c) && (c) <= 'r') \
6396                     || ('s' <= (c) && (c) <= 'z'))
6397# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6398#endif
6399
6400#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6401int
6402main ()
6403{
6404  int i;
6405  for (i = 0; i < 256; i++)
6406    if (XOR (islower (i), ISLOWER (i))
6407        || toupper (i) != TOUPPER (i))
6408      exit(2);
6409  exit (0);
6410}
6411_ACEOF
6412rm -f conftest$ac_exeext
6413if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6414  (eval $ac_link) 2>&5
6415  ac_status=$?
6416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6418  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6419  (eval $ac_try) 2>&5
6420  ac_status=$?
6421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422  (exit $ac_status); }; }; then
6423  :
6424else
6425  echo "$as_me: program exited with status $ac_status" >&5
6426echo "$as_me: failed program was:" >&5
6427sed 's/^/| /' conftest.$ac_ext >&5
6428
6429( exit $ac_status )
6430ac_cv_header_stdc=no
6431fi
6432rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6433fi
6434fi
6435fi
6436echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6437echo "${ECHO_T}$ac_cv_header_stdc" >&6
6438if test $ac_cv_header_stdc = yes; then
6439
6440cat >>confdefs.h <<\_ACEOF
6441#define STDC_HEADERS 1
6442_ACEOF
6443
6444fi
6445
6446# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6457                  inttypes.h stdint.h unistd.h
6458do
6459as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6460echo "$as_me:$LINENO: checking for $ac_header" >&5
6461echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6462if eval "test \"\${$as_ac_Header+set}\" = set"; then
6463  echo $ECHO_N "(cached) $ECHO_C" >&6
6464else
6465  cat >conftest.$ac_ext <<_ACEOF
6466/* confdefs.h.  */
6467_ACEOF
6468cat confdefs.h >>conftest.$ac_ext
6469cat >>conftest.$ac_ext <<_ACEOF
6470/* end confdefs.h.  */
6471$ac_includes_default
6472
6473#include <$ac_header>
6474_ACEOF
6475rm -f conftest.$ac_objext
6476if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6477  (eval $ac_compile) 2>conftest.er1
6478  ac_status=$?
6479  grep -v '^ *+' conftest.er1 >conftest.err
6480  rm -f conftest.er1
6481  cat conftest.err >&5
6482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6483  (exit $ac_status); } &&
6484         { ac_try='test -z "$ac_c_werror_flag"
6485                         || test ! -s conftest.err'
6486  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6487  (eval $ac_try) 2>&5
6488  ac_status=$?
6489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490  (exit $ac_status); }; } &&
6491         { ac_try='test -s conftest.$ac_objext'
6492  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6493  (eval $ac_try) 2>&5
6494  ac_status=$?
6495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496  (exit $ac_status); }; }; then
6497  eval "$as_ac_Header=yes"
6498else
6499  echo "$as_me: failed program was:" >&5
6500sed 's/^/| /' conftest.$ac_ext >&5
6501
6502eval "$as_ac_Header=no"
6503fi
6504rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6505fi
6506echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6507echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6508if test `eval echo '${'$as_ac_Header'}'` = yes; then
6509  cat >>confdefs.h <<_ACEOF
6510#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6511_ACEOF
6512
6513fi
6514
6515done
6516
6517
6518
6519for ac_header in dlfcn.h
6520do
6521as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6522if eval "test \"\${$as_ac_Header+set}\" = set"; then
6523  echo "$as_me:$LINENO: checking for $ac_header" >&5
6524echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6525if eval "test \"\${$as_ac_Header+set}\" = set"; then
6526  echo $ECHO_N "(cached) $ECHO_C" >&6
6527fi
6528echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6529echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6530else
6531  # Is the header compilable?
6532echo "$as_me:$LINENO: checking $ac_header usability" >&5
6533echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6534cat >conftest.$ac_ext <<_ACEOF
6535/* confdefs.h.  */
6536_ACEOF
6537cat confdefs.h >>conftest.$ac_ext
6538cat >>conftest.$ac_ext <<_ACEOF
6539/* end confdefs.h.  */
6540$ac_includes_default
6541#include <$ac_header>
6542_ACEOF
6543rm -f conftest.$ac_objext
6544if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6545  (eval $ac_compile) 2>conftest.er1
6546  ac_status=$?
6547  grep -v '^ *+' conftest.er1 >conftest.err
6548  rm -f conftest.er1
6549  cat conftest.err >&5
6550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6551  (exit $ac_status); } &&
6552         { ac_try='test -z "$ac_c_werror_flag"
6553                         || test ! -s conftest.err'
6554  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6555  (eval $ac_try) 2>&5
6556  ac_status=$?
6557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558  (exit $ac_status); }; } &&
6559         { ac_try='test -s conftest.$ac_objext'
6560  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6561  (eval $ac_try) 2>&5
6562  ac_status=$?
6563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6564  (exit $ac_status); }; }; then
6565  ac_header_compiler=yes
6566else
6567  echo "$as_me: failed program was:" >&5
6568sed 's/^/| /' conftest.$ac_ext >&5
6569
6570ac_header_compiler=no
6571fi
6572rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6573echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6574echo "${ECHO_T}$ac_header_compiler" >&6
6575
6576# Is the header present?
6577echo "$as_me:$LINENO: checking $ac_header presence" >&5
6578echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6579cat >conftest.$ac_ext <<_ACEOF
6580/* confdefs.h.  */
6581_ACEOF
6582cat confdefs.h >>conftest.$ac_ext
6583cat >>conftest.$ac_ext <<_ACEOF
6584/* end confdefs.h.  */
6585#include <$ac_header>
6586_ACEOF
6587if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6588  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6589  ac_status=$?
6590  grep -v '^ *+' conftest.er1 >conftest.err
6591  rm -f conftest.er1
6592  cat conftest.err >&5
6593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594  (exit $ac_status); } >/dev/null; then
6595  if test -s conftest.err; then
6596    ac_cpp_err=$ac_c_preproc_warn_flag
6597    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6598  else
6599    ac_cpp_err=
6600  fi
6601else
6602  ac_cpp_err=yes
6603fi
6604if test -z "$ac_cpp_err"; then
6605  ac_header_preproc=yes
6606else
6607  echo "$as_me: failed program was:" >&5
6608sed 's/^/| /' conftest.$ac_ext >&5
6609
6610  ac_header_preproc=no
6611fi
6612rm -f conftest.err conftest.$ac_ext
6613echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6614echo "${ECHO_T}$ac_header_preproc" >&6
6615
6616# So?  What about this header?
6617case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6618  yes:no: )
6619    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6620echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6621    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6622echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6623    ac_header_preproc=yes
6624    ;;
6625  no:yes:* )
6626    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6627echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6628    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6629echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6630    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6631echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6632    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6633echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6634    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6635echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6636    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6637echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6638    (
6639      cat <<\_ASBOX
6640## ---------------------------------------- ##
6641## Report this to coin-cbc@list.coin-or.org ##
6642## ---------------------------------------- ##
6643_ASBOX
6644    ) |
6645      sed "s/^/$as_me: WARNING:     /" >&2
6646    ;;
6647esac
6648echo "$as_me:$LINENO: checking for $ac_header" >&5
6649echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6650if eval "test \"\${$as_ac_Header+set}\" = set"; then
6651  echo $ECHO_N "(cached) $ECHO_C" >&6
6652else
6653  eval "$as_ac_Header=\$ac_header_preproc"
6654fi
6655echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6656echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6657
6658fi
6659if test `eval echo '${'$as_ac_Header'}'` = yes; then
6660  cat >>confdefs.h <<_ACEOF
6661#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6662_ACEOF
6663
6664fi
6665
6666done
6667
6668
6669
6670if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6671    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6672    (test "X$CXX" != "Xg++"))) ; then
6673  ac_ext=cc
6674ac_cpp='$CXXCPP $CPPFLAGS'
6675ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6676ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6677ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6678echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6679echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6680if test -z "$CXXCPP"; then
6681  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6682  echo $ECHO_N "(cached) $ECHO_C" >&6
6683else
6684      # Double quotes because CXXCPP needs to be expanded
6685    for CXXCPP in "$CXX -E" "/lib/cpp"
6686    do
6687      ac_preproc_ok=false
6688for ac_cxx_preproc_warn_flag in '' yes
6689do
6690  # Use a header file that comes with gcc, so configuring glibc
6691  # with a fresh cross-compiler works.
6692  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6693  # <limits.h> exists even on freestanding compilers.
6694  # On the NeXT, cc -E runs the code through the compiler's parser,
6695  # not just through cpp. "Syntax error" is here to catch this case.
6696  cat >conftest.$ac_ext <<_ACEOF
6697/* confdefs.h.  */
6698_ACEOF
6699cat confdefs.h >>conftest.$ac_ext
6700cat >>conftest.$ac_ext <<_ACEOF
6701/* end confdefs.h.  */
6702#ifdef __STDC__
6703# include <limits.h>
6704#else
6705# include <assert.h>
6706#endif
6707                     Syntax error
6708_ACEOF
6709if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6710  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6711  ac_status=$?
6712  grep -v '^ *+' conftest.er1 >conftest.err
6713  rm -f conftest.er1
6714  cat conftest.err >&5
6715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716  (exit $ac_status); } >/dev/null; then
6717  if test -s conftest.err; then
6718    ac_cpp_err=$ac_cxx_preproc_warn_flag
6719    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6720  else
6721    ac_cpp_err=
6722  fi
6723else
6724  ac_cpp_err=yes
6725fi
6726if test -z "$ac_cpp_err"; then
6727  :
6728else
6729  echo "$as_me: failed program was:" >&5
6730sed 's/^/| /' conftest.$ac_ext >&5
6731
6732  # Broken: fails on valid input.
6733continue
6734fi
6735rm -f conftest.err conftest.$ac_ext
6736
6737  # OK, works on sane cases.  Now check whether non-existent headers
6738  # can be detected and how.
6739  cat >conftest.$ac_ext <<_ACEOF
6740/* confdefs.h.  */
6741_ACEOF
6742cat confdefs.h >>conftest.$ac_ext
6743cat >>conftest.$ac_ext <<_ACEOF
6744/* end confdefs.h.  */
6745#include <ac_nonexistent.h>
6746_ACEOF
6747if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6748  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6749  ac_status=$?
6750  grep -v '^ *+' conftest.er1 >conftest.err
6751  rm -f conftest.er1
6752  cat conftest.err >&5
6753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754  (exit $ac_status); } >/dev/null; then
6755  if test -s conftest.err; then
6756    ac_cpp_err=$ac_cxx_preproc_warn_flag
6757    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6758  else
6759    ac_cpp_err=
6760  fi
6761else
6762  ac_cpp_err=yes
6763fi
6764if test -z "$ac_cpp_err"; then
6765  # Broken: success on invalid input.
6766continue
6767else
6768  echo "$as_me: failed program was:" >&5
6769sed 's/^/| /' conftest.$ac_ext >&5
6770
6771  # Passes both tests.
6772ac_preproc_ok=:
6773break
6774fi
6775rm -f conftest.err conftest.$ac_ext
6776
6777done
6778# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6779rm -f conftest.err conftest.$ac_ext
6780if $ac_preproc_ok; then
6781  break
6782fi
6783
6784    done
6785    ac_cv_prog_CXXCPP=$CXXCPP
6786
6787fi
6788  CXXCPP=$ac_cv_prog_CXXCPP
6789else
6790  ac_cv_prog_CXXCPP=$CXXCPP
6791fi
6792echo "$as_me:$LINENO: result: $CXXCPP" >&5
6793echo "${ECHO_T}$CXXCPP" >&6
6794ac_preproc_ok=false
6795for ac_cxx_preproc_warn_flag in '' yes
6796do
6797  # Use a header file that comes with gcc, so configuring glibc
6798  # with a fresh cross-compiler works.
6799  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6800  # <limits.h> exists even on freestanding compilers.
6801  # On the NeXT, cc -E runs the code through the compiler's parser,
6802  # not just through cpp. "Syntax error" is here to catch this case.
6803  cat >conftest.$ac_ext <<_ACEOF
6804/* confdefs.h.  */
6805_ACEOF
6806cat confdefs.h >>conftest.$ac_ext
6807cat >>conftest.$ac_ext <<_ACEOF
6808/* end confdefs.h.  */
6809#ifdef __STDC__
6810# include <limits.h>
6811#else
6812# include <assert.h>
6813#endif
6814                     Syntax error
6815_ACEOF
6816if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6817  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6818  ac_status=$?
6819  grep -v '^ *+' conftest.er1 >conftest.err
6820  rm -f conftest.er1
6821  cat conftest.err >&5
6822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823  (exit $ac_status); } >/dev/null; then
6824  if test -s conftest.err; then
6825    ac_cpp_err=$ac_cxx_preproc_warn_flag
6826    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6827  else
6828    ac_cpp_err=
6829  fi
6830else
6831  ac_cpp_err=yes
6832fi
6833if test -z "$ac_cpp_err"; then
6834  :
6835else
6836  echo "$as_me: failed program was:" >&5
6837sed 's/^/| /' conftest.$ac_ext >&5
6838
6839  # Broken: fails on valid input.
6840continue
6841fi
6842rm -f conftest.err conftest.$ac_ext
6843
6844  # OK, works on sane cases.  Now check whether non-existent headers
6845  # can be detected and how.
6846  cat >conftest.$ac_ext <<_ACEOF
6847/* confdefs.h.  */
6848_ACEOF
6849cat confdefs.h >>conftest.$ac_ext
6850cat >>conftest.$ac_ext <<_ACEOF
6851/* end confdefs.h.  */
6852#include <ac_nonexistent.h>
6853_ACEOF
6854if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6855  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6856  ac_status=$?
6857  grep -v '^ *+' conftest.er1 >conftest.err
6858  rm -f conftest.er1
6859  cat conftest.err >&5
6860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6861  (exit $ac_status); } >/dev/null; then
6862  if test -s conftest.err; then
6863    ac_cpp_err=$ac_cxx_preproc_warn_flag
6864    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6865  else
6866    ac_cpp_err=
6867  fi
6868else
6869  ac_cpp_err=yes
6870fi
6871if test -z "$ac_cpp_err"; then
6872  # Broken: success on invalid input.
6873continue
6874else
6875  echo "$as_me: failed program was:" >&5
6876sed 's/^/| /' conftest.$ac_ext >&5
6877
6878  # Passes both tests.
6879ac_preproc_ok=:
6880break
6881fi
6882rm -f conftest.err conftest.$ac_ext
6883
6884done
6885# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6886rm -f conftest.err conftest.$ac_ext
6887if $ac_preproc_ok; then
6888  :
6889else
6890  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6891See \`config.log' for more details." >&5
6892echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6893See \`config.log' for more details." >&2;}
6894   { (exit 1); exit 1; }; }
6895fi
6896
6897ac_ext=cc
6898ac_cpp='$CXXCPP $CPPFLAGS'
6899ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6900ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6901ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6902
6903fi
6904
6905ac_ext=f
6906ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6907ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6908ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6909if test -n "$ac_tool_prefix"; then
6910  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6911  do
6912    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6913set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6914echo "$as_me:$LINENO: checking for $ac_word" >&5
6915echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6916if test "${ac_cv_prog_F77+set}" = set; then
6917  echo $ECHO_N "(cached) $ECHO_C" >&6
6918else
6919  if test -n "$F77"; then
6920  ac_cv_prog_F77="$F77" # Let the user override the test.
6921else
6922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6923for as_dir in $PATH
6924do
6925  IFS=$as_save_IFS
6926  test -z "$as_dir" && as_dir=.
6927  for ac_exec_ext in '' $ac_executable_extensions; do
6928  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6929    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6930    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6931    break 2
6932  fi
6933done
6934done
6935
6936fi
6937fi
6938F77=$ac_cv_prog_F77
6939if test -n "$F77"; then
6940  echo "$as_me:$LINENO: result: $F77" >&5
6941echo "${ECHO_T}$F77" >&6
6942else
6943  echo "$as_me:$LINENO: result: no" >&5
6944echo "${ECHO_T}no" >&6
6945fi
6946
6947    test -n "$F77" && break
6948  done
6949fi
6950if test -z "$F77"; then
6951  ac_ct_F77=$F77
6952  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6953do
6954  # Extract the first word of "$ac_prog", so it can be a program name with args.
6955set dummy $ac_prog; ac_word=$2
6956echo "$as_me:$LINENO: checking for $ac_word" >&5
6957echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6958if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6959  echo $ECHO_N "(cached) $ECHO_C" >&6
6960else
6961  if test -n "$ac_ct_F77"; then
6962  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6963else
6964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6965for as_dir in $PATH
6966do
6967  IFS=$as_save_IFS
6968  test -z "$as_dir" && as_dir=.
6969  for ac_exec_ext in '' $ac_executable_extensions; do
6970  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6971    ac_cv_prog_ac_ct_F77="$ac_prog"
6972    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6973    break 2
6974  fi
6975done
6976done
6977
6978fi
6979fi
6980ac_ct_F77=$ac_cv_prog_ac_ct_F77
6981if test -n "$ac_ct_F77"; then
6982  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6983echo "${ECHO_T}$ac_ct_F77" >&6
6984else
6985  echo "$as_me:$LINENO: result: no" >&5
6986echo "${ECHO_T}no" >&6
6987fi
6988
6989  test -n "$ac_ct_F77" && break
6990done
6991
6992  F77=$ac_ct_F77
6993fi
6994
6995
6996# Provide some information about the compiler.
6997echo "$as_me:6997:" \
6998     "checking for Fortran 77 compiler version" >&5
6999ac_compiler=`set X $ac_compile; echo $2`
7000{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7001  (eval $ac_compiler --version </dev/null >&5) 2>&5
7002  ac_status=$?
7003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7004  (exit $ac_status); }
7005{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7006  (eval $ac_compiler -v </dev/null >&5) 2>&5
7007  ac_status=$?
7008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009  (exit $ac_status); }
7010{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7011  (eval $ac_compiler -V </dev/null >&5) 2>&5
7012  ac_status=$?
7013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7014  (exit $ac_status); }
7015rm -f a.out
7016
7017# If we don't use `.F' as extension, the preprocessor is not run on the
7018# input file.  (Note that this only needs to work for GNU compilers.)
7019ac_save_ext=$ac_ext
7020ac_ext=F
7021echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7022echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
7023if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7024  echo $ECHO_N "(cached) $ECHO_C" >&6
7025else
7026  cat >conftest.$ac_ext <<_ACEOF
7027      program main
7028#ifndef __GNUC__
7029       choke me
7030#endif
7031
7032      end
7033_ACEOF
7034rm -f conftest.$ac_objext
7035if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7036  (eval $ac_compile) 2>conftest.er1
7037  ac_status=$?
7038  grep -v '^ *+' conftest.er1 >conftest.err
7039  rm -f conftest.er1
7040  cat conftest.err >&5
7041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7042  (exit $ac_status); } &&
7043         { ac_try='test -z "$ac_f77_werror_flag"
7044                         || test ! -s conftest.err'
7045  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7046  (eval $ac_try) 2>&5
7047  ac_status=$?
7048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7049  (exit $ac_status); }; } &&
7050         { ac_try='test -s conftest.$ac_objext'
7051  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7052  (eval $ac_try) 2>&5
7053  ac_status=$?
7054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055  (exit $ac_status); }; }; then
7056  ac_compiler_gnu=yes
7057else
7058  echo "$as_me: failed program was:" >&5
7059sed 's/^/| /' conftest.$ac_ext >&5
7060
7061ac_compiler_gnu=no
7062fi
7063rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7064ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7065
7066fi
7067echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7068echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7069ac_ext=$ac_save_ext
7070ac_test_FFLAGS=${FFLAGS+set}
7071ac_save_FFLAGS=$FFLAGS
7072FFLAGS=
7073echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7074echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7075if test "${ac_cv_prog_f77_g+set}" = set; then
7076  echo $ECHO_N "(cached) $ECHO_C" >&6
7077else
7078  FFLAGS=-g
7079cat >conftest.$ac_ext <<_ACEOF
7080      program main
7081
7082      end
7083_ACEOF
7084rm -f conftest.$ac_objext
7085if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7086  (eval $ac_compile) 2>conftest.er1
7087  ac_status=$?
7088  grep -v '^ *+' conftest.er1 >conftest.err
7089  rm -f conftest.er1
7090  cat conftest.err >&5
7091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7092  (exit $ac_status); } &&
7093         { ac_try='test -z "$ac_f77_werror_flag"
7094                         || test ! -s conftest.err'
7095  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7096  (eval $ac_try) 2>&5
7097  ac_status=$?
7098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7099  (exit $ac_status); }; } &&
7100         { ac_try='test -s conftest.$ac_objext'
7101  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7102  (eval $ac_try) 2>&5
7103  ac_status=$?
7104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7105  (exit $ac_status); }; }; then
7106  ac_cv_prog_f77_g=yes
7107else
7108  echo "$as_me: failed program was:" >&5
7109sed 's/^/| /' conftest.$ac_ext >&5
7110
7111ac_cv_prog_f77_g=no
7112fi
7113rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7114
7115fi
7116echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7117echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7118if test "$ac_test_FFLAGS" = set; then
7119  FFLAGS=$ac_save_FFLAGS
7120elif test $ac_cv_prog_f77_g = yes; then
7121  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7122    FFLAGS="-g -O2"
7123  else
7124    FFLAGS="-g"
7125  fi
7126else
7127  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7128    FFLAGS="-O2"
7129  else
7130    FFLAGS=
7131  fi
7132fi
7133
7134G77=`test $ac_compiler_gnu = yes && echo yes`
7135ac_ext=c
7136ac_cpp='$CPP $CPPFLAGS'
7137ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7138ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7139ac_compiler_gnu=$ac_cv_c_compiler_gnu
7140
7141
7142
7143# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7144
7145# find the maximum length of command line arguments
7146echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7147echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7148if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7149  echo $ECHO_N "(cached) $ECHO_C" >&6
7150else
7151    i=0
7152  teststring="ABCD"
7153
7154  case $build_os in
7155  msdosdjgpp*)
7156    # On DJGPP, this test can blow up pretty badly due to problems in libc
7157    # (any single argument exceeding 2000 bytes causes a buffer overrun
7158    # during glob expansion).  Even if it were fixed, the result of this
7159    # check would be larger than it should be.
7160    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7161    ;;
7162
7163  gnu*)
7164    # Under GNU Hurd, this test is not required because there is
7165    # no limit to the length of command line arguments.
7166    # Libtool will interpret -1 as no limit whatsoever
7167    lt_cv_sys_max_cmd_len=-1;
7168    ;;
7169
7170  cygwin* | mingw*)
7171    # On Win9x/ME, this test blows up -- it succeeds, but takes
7172    # about 5 minutes as the teststring grows exponentially.
7173    # Worse, since 9x/ME are not pre-emptively multitasking,
7174    # you end up with a "frozen" computer, even though with patience
7175    # the test eventually succeeds (with a max line length of 256k).
7176    # Instead, let's just punt: use the minimum linelength reported by
7177    # all of the supported platforms: 8192 (on NT/2K/XP).
7178    lt_cv_sys_max_cmd_len=8192;
7179    ;;
7180
7181  amigaos*)
7182    # On AmigaOS with pdksh, this test takes hours, literally.
7183    # So we just punt and use a minimum line length of 8192.
7184    lt_cv_sys_max_cmd_len=8192;
7185    ;;
7186
7187  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7188    # This has been around since 386BSD, at least.  Likely further.
7189    if test -x /sbin/sysctl; then
7190      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7191    elif test -x /usr/sbin/sysctl; then
7192      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7193    else
7194      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7195    fi
7196    # And add a safety zone
7197    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7198    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7199    ;;
7200
7201  interix*)
7202    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7203    lt_cv_sys_max_cmd_len=196608
7204    ;;
7205
7206  osf*)
7207    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7208    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7209    # nice to cause kernel panics so lets avoid the loop below.
7210    # First set a reasonable default.
7211    lt_cv_sys_max_cmd_len=16384
7212    #
7213    if test -x /sbin/sysconfig; then
7214      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7215        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7216      esac
7217    fi
7218    ;;
7219  sco3.2v5*)
7220    lt_cv_sys_max_cmd_len=102400
7221    ;;
7222  sysv5* | sco5v6* | sysv4.2uw2*)
7223    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7224    if test -n "$kargmax"; then
7225      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7226    else
7227      lt_cv_sys_max_cmd_len=32768
7228    fi
7229    ;;
7230  *)
7231    # If test is not a shell built-in, we'll probably end up computing a
7232    # maximum length that is only half of the actual maximum length, but
7233    # we can't tell.
7234    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7235    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7236               = "XX$teststring") >/dev/null 2>&1 &&
7237            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7238            lt_cv_sys_max_cmd_len=$new_result &&
7239            test $i != 17 # 1/2 MB should be enough
7240    do
7241      i=`expr $i + 1`
7242      teststring=$teststring$teststring
7243    done
7244    teststring=
7245    # Add a significant safety factor because C++ compilers can tack on massive
7246    # amounts of additional arguments before passing them to the linker.
7247    # It appears as though 1/2 is a usable value.
7248    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7249    ;;
7250  esac
7251
7252fi
7253
7254if test -n $lt_cv_sys_max_cmd_len ; then
7255  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7256echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7257else
7258  echo "$as_me:$LINENO: result: none" >&5
7259echo "${ECHO_T}none" >&6
7260fi
7261
7262
7263
7264
7265# Check for command to grab the raw symbol name followed by C symbol from nm.
7266echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7267echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7268if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7269  echo $ECHO_N "(cached) $ECHO_C" >&6
7270else
7271
7272# These are sane defaults that work on at least a few old systems.
7273# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7274
7275# Character class describing NM global symbol codes.
7276symcode='[BCDEGRST]'
7277
7278# Regexp to match symbols that can be accessed directly from C.
7279sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7280
7281# Transform an extracted symbol line into a proper C declaration
7282lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7283
7284# Transform an extracted symbol line into symbol name and symbol address
7285lt_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'"
7286
7287# Define system-specific variables.
7288case $host_os in
7289aix*)
7290  symcode='[BCDT]'
7291  ;;
7292cygwin* | mingw* | pw32*)
7293  symcode='[ABCDGISTW]'
7294  ;;
7295hpux*) # Its linker distinguishes data from code symbols
7296  if test "$host_cpu" = ia64; then
7297    symcode='[ABCDEGRST]'
7298  fi
7299  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7300  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'"
7301  ;;
7302linux*)
7303  if test "$host_cpu" = ia64; then
7304    symcode='[ABCDGIRSTW]'
7305    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7306    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'"
7307  fi
7308  ;;
7309irix* | nonstopux*)
7310  symcode='[BCDEGRST]'
7311  ;;
7312osf*)
7313  symcode='[BCDEGQRST]'
7314  ;;
7315solaris*)
7316  symcode='[BDRT]'
7317  ;;
7318sco3.2v5*)
7319  symcode='[DT]'
7320  ;;
7321sysv4.2uw2*)
7322  symcode='[DT]'
7323  ;;
7324sysv5* | sco5v6* | unixware* | OpenUNIX*)
7325  symcode='[ABDT]'
7326  ;;
7327sysv4)
7328  symcode='[DFNSTU]'
7329  ;;
7330esac
7331
7332# Handle CRLF in mingw tool chain
7333opt_cr=
7334case $build_os in
7335mingw*)
7336  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7337  ;;
7338esac
7339
7340# If we're using GNU nm, then use its standard symbol codes.
7341case `$NM -V 2>&1` in
7342*GNU* | *'with BFD'*)
7343  symcode='[ABCDGIRSTW]' ;;
7344esac
7345
7346# Try without a prefix undercore, then with it.
7347for ac_symprfx in "" "_"; do
7348
7349  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7350  symxfrm="\\1 $ac_symprfx\\2 \\2"
7351
7352  # Write the raw and C identifiers.
7353  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7354
7355  # Check to see that the pipe works correctly.
7356  pipe_works=no
7357
7358  rm -f conftest*
7359  cat > conftest.$ac_ext <<EOF
7360#ifdef __cplusplus
7361extern "C" {
7362#endif
7363char nm_test_var;
7364void nm_test_func(){}
7365#ifdef __cplusplus
7366}
7367#endif
7368int main(){nm_test_var='a';nm_test_func();return(0);}
7369EOF
7370
7371  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7372  (eval $ac_compile) 2>&5
7373  ac_status=$?
7374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7375  (exit $ac_status); }; then
7376    # Now try to grab the symbols.
7377    nlist=conftest.nm
7378    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7379  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7380  ac_status=$?
7381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7382  (exit $ac_status); } && test -s "$nlist"; then
7383      # Try sorting and uniquifying the output.
7384      if sort "$nlist" | uniq > "$nlist"T; then
7385        mv -f "$nlist"T "$nlist"
7386      else
7387        rm -f "$nlist"T
7388      fi
7389
7390      # Make sure that we snagged all the symbols we need.
7391      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7392        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7393          cat <<EOF > conftest.$ac_ext
7394#ifdef __cplusplus
7395extern "C" {
7396#endif
7397
7398EOF
7399          # Now generate the symbol file.
7400          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7401
7402          cat <<EOF >> conftest.$ac_ext
7403#if defined (__STDC__) && __STDC__
7404# define lt_ptr_t void *
7405#else
7406# define lt_ptr_t char *
7407# define const
7408#endif
7409
7410/* The mapping between symbol names and symbols. */
7411const struct {
7412  const char *name;
7413  lt_ptr_t address;
7414}
7415lt_preloaded_symbols[] =
7416{
7417EOF
7418          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7419          cat <<\EOF >> conftest.$ac_ext
7420  {0, (lt_ptr_t) 0}
7421};
7422
7423#ifdef __cplusplus
7424}
7425#endif
7426EOF
7427          # Now try linking the two files.
7428          mv conftest.$ac_objext conftstm.$ac_objext
7429          lt_save_LIBS="$LIBS"
7430          lt_save_CFLAGS="$CFLAGS"
7431          LIBS="conftstm.$ac_objext"
7432          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7433          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7434  (eval $ac_link) 2>&5
7435  ac_status=$?
7436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7437  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7438            pipe_works=yes
7439          fi
7440          LIBS="$lt_save_LIBS"
7441          CFLAGS="$lt_save_CFLAGS"
7442        else
7443          echo "cannot find nm_test_func in $nlist" >&5
7444        fi
7445      else
7446        echo "cannot find nm_test_var in $nlist" >&5
7447      fi
7448    else
7449      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7450    fi
7451  else
7452    echo "$progname: failed program was:" >&5
7453    cat conftest.$ac_ext >&5
7454  fi
7455  rm -f conftest* conftst*
7456
7457  # Do not use the global_symbol_pipe unless it works.
7458  if test "$pipe_works" = yes; then
7459    break
7460  else
7461    lt_cv_sys_global_symbol_pipe=
7462  fi
7463done
7464
7465fi
7466
7467if test -z "$lt_cv_sys_global_symbol_pipe"; then
7468  lt_cv_sys_global_symbol_to_cdecl=
7469fi
7470if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7471  echo "$as_me:$LINENO: result: failed" >&5
7472echo "${ECHO_T}failed" >&6
7473else
7474  echo "$as_me:$LINENO: result: ok" >&5
7475echo "${ECHO_T}ok" >&6
7476fi
7477
7478echo "$as_me:$LINENO: checking for objdir" >&5
7479echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7480if test "${lt_cv_objdir+set}" = set; then
7481  echo $ECHO_N "(cached) $ECHO_C" >&6
7482else
7483  rm -f .libs 2>/dev/null
7484mkdir .libs 2>/dev/null
7485if test -d .libs; then
7486  lt_cv_objdir=.libs
7487else
7488  # MS-DOS does not allow filenames that begin with a dot.
7489  lt_cv_objdir=_libs
7490fi
7491rmdir .libs 2>/dev/null
7492fi
7493echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7494echo "${ECHO_T}$lt_cv_objdir" >&6
7495objdir=$lt_cv_objdir
7496
7497
7498
7499
7500
7501case $host_os in
7502aix3*)
7503  # AIX sometimes has problems with the GCC collect2 program.  For some
7504  # reason, if we set the COLLECT_NAMES environment variable, the problems
7505  # vanish in a puff of smoke.
7506  if test "X${COLLECT_NAMES+set}" != Xset; then
7507    COLLECT_NAMES=
7508    export COLLECT_NAMES
7509  fi
7510  ;;
7511esac
7512
7513# Sed substitution that helps us do robust quoting.  It backslashifies
7514# metacharacters that are still active within double-quoted strings.
7515Xsed='sed -e 1s/^X//'
7516sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7517
7518# Same as above, but do not quote variable references.
7519double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7520
7521# Sed substitution to delay expansion of an escaped shell variable in a
7522# double_quote_subst'ed string.
7523delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7524
7525# Sed substitution to avoid accidental globbing in evaled expressions
7526no_glob_subst='s/\*/\\\*/g'
7527
7528# Constants:
7529rm="rm -f"
7530
7531# Global variables:
7532default_ofile=libtool
7533can_build_shared=yes
7534
7535# All known linkers require a `.a' archive for static linking (except MSVC,
7536# which needs '.lib').
7537libext=a
7538ltmain="$ac_aux_dir/ltmain.sh"
7539ofile="$default_ofile"
7540with_gnu_ld="$lt_cv_prog_gnu_ld"
7541
7542if test -n "$ac_tool_prefix"; then
7543  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7544set dummy ${ac_tool_prefix}ar; ac_word=$2
7545echo "$as_me:$LINENO: checking for $ac_word" >&5
7546echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7547if test "${ac_cv_prog_AR+set}" = set; then
7548  echo $ECHO_N "(cached) $ECHO_C" >&6
7549else
7550  if test -n "$AR"; then
7551  ac_cv_prog_AR="$AR" # Let the user override the test.
7552else
7553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7554for as_dir in $PATH
7555do
7556  IFS=$as_save_IFS
7557  test -z "$as_dir" && as_dir=.
7558  for ac_exec_ext in '' $ac_executable_extensions; do
7559  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7560    ac_cv_prog_AR="${ac_tool_prefix}ar"
7561    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7562    break 2
7563  fi
7564done
7565done
7566
7567fi
7568fi
7569AR=$ac_cv_prog_AR
7570if test -n "$AR"; then
7571  echo "$as_me:$LINENO: result: $AR" >&5
7572echo "${ECHO_T}$AR" >&6
7573else
7574  echo "$as_me:$LINENO: result: no" >&5
7575echo "${ECHO_T}no" >&6
7576fi
7577
7578fi
7579if test -z "$ac_cv_prog_AR"; then
7580  ac_ct_AR=$AR
7581  # Extract the first word of "ar", so it can be a program name with args.
7582set dummy ar; ac_word=$2
7583echo "$as_me:$LINENO: checking for $ac_word" >&5
7584echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7585if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7586  echo $ECHO_N "(cached) $ECHO_C" >&6
7587else
7588  if test -n "$ac_ct_AR"; then
7589  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7590else
7591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7592for as_dir in $PATH
7593do
7594  IFS=$as_save_IFS
7595  test -z "$as_dir" && as_dir=.
7596  for ac_exec_ext in '' $ac_executable_extensions; do
7597  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7598    ac_cv_prog_ac_ct_AR="ar"
7599    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7600    break 2
7601  fi
7602done
7603done
7604
7605  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7606fi
7607fi
7608ac_ct_AR=$ac_cv_prog_ac_ct_AR
7609if test -n "$ac_ct_AR"; then
7610  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7611echo "${ECHO_T}$ac_ct_AR" >&6
7612else
7613  echo "$as_me:$LINENO: result: no" >&5
7614echo "${ECHO_T}no" >&6
7615fi
7616
7617  AR=$ac_ct_AR
7618else
7619  AR="$ac_cv_prog_AR"
7620fi
7621
7622if test -n "$ac_tool_prefix"; then
7623  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7624set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7625echo "$as_me:$LINENO: checking for $ac_word" >&5
7626echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7627if test "${ac_cv_prog_RANLIB+set}" = set; then
7628  echo $ECHO_N "(cached) $ECHO_C" >&6
7629else
7630  if test -n "$RANLIB"; then
7631  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7632else
7633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7634for as_dir in $PATH
7635do
7636  IFS=$as_save_IFS
7637  test -z "$as_dir" && as_dir=.
7638  for ac_exec_ext in '' $ac_executable_extensions; do
7639  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7640    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7641    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7642    break 2
7643  fi
7644done
7645done
7646
7647fi
7648fi
7649RANLIB=$ac_cv_prog_RANLIB
7650if test -n "$RANLIB"; then
7651  echo "$as_me:$LINENO: result: $RANLIB" >&5
7652echo "${ECHO_T}$RANLIB" >&6
7653else
7654  echo "$as_me:$LINENO: result: no" >&5
7655echo "${ECHO_T}no" >&6
7656fi
7657
7658fi
7659if test -z "$ac_cv_prog_RANLIB"; then
7660  ac_ct_RANLIB=$RANLIB
7661  # Extract the first word of "ranlib", so it can be a program name with args.
7662set dummy ranlib; ac_word=$2
7663echo "$as_me:$LINENO: checking for $ac_word" >&5
7664echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7665if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7666  echo $ECHO_N "(cached) $ECHO_C" >&6
7667else
7668  if test -n "$ac_ct_RANLIB"; then
7669  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7670else
7671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7672for as_dir in $PATH
7673do
7674  IFS=$as_save_IFS
7675  test -z "$as_dir" && as_dir=.
7676  for ac_exec_ext in '' $ac_executable_extensions; do
7677  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7678    ac_cv_prog_ac_ct_RANLIB="ranlib"
7679    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7680    break 2
7681  fi
7682done
7683done
7684
7685  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7686fi
7687fi
7688ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7689if test -n "$ac_ct_RANLIB"; then
7690  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7691echo "${ECHO_T}$ac_ct_RANLIB" >&6
7692else
7693  echo "$as_me:$LINENO: result: no" >&5
7694echo "${ECHO_T}no" >&6
7695fi
7696
7697  RANLIB=$ac_ct_RANLIB
7698else
7699  RANLIB="$ac_cv_prog_RANLIB"
7700fi
7701
7702if test -n "$ac_tool_prefix"; then
7703  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7704set dummy ${ac_tool_prefix}strip; ac_word=$2
7705echo "$as_me:$LINENO: checking for $ac_word" >&5
7706echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7707if test "${ac_cv_prog_STRIP+set}" = set; then
7708  echo $ECHO_N "(cached) $ECHO_C" >&6
7709else
7710  if test -n "$STRIP"; then
7711  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7712else
7713as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7714for as_dir in $PATH
7715do
7716  IFS=$as_save_IFS
7717  test -z "$as_dir" && as_dir=.
7718  for ac_exec_ext in '' $ac_executable_extensions; do
7719  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7720    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7721    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7722    break 2
7723  fi
7724done
7725done
7726
7727fi
7728fi
7729STRIP=$ac_cv_prog_STRIP
7730if test -n "$STRIP"; then
7731  echo "$as_me:$LINENO: result: $STRIP" >&5
7732echo "${ECHO_T}$STRIP" >&6
7733else
7734  echo "$as_me:$LINENO: result: no" >&5
7735echo "${ECHO_T}no" >&6
7736fi
7737
7738fi
7739if test -z "$ac_cv_prog_STRIP"; then
7740  ac_ct_STRIP=$STRIP
7741  # Extract the first word of "strip", so it can be a program name with args.
7742set dummy strip; ac_word=$2
7743echo "$as_me:$LINENO: checking for $ac_word" >&5
7744echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7745if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7746  echo $ECHO_N "(cached) $ECHO_C" >&6
7747else
7748  if test -n "$ac_ct_STRIP"; then
7749  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7750else
7751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7752for as_dir in $PATH
7753do
7754  IFS=$as_save_IFS
7755  test -z "$as_dir" && as_dir=.
7756  for ac_exec_ext in '' $ac_executable_extensions; do
7757  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7758    ac_cv_prog_ac_ct_STRIP="strip"
7759    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7760    break 2
7761  fi
7762done
7763done
7764
7765  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7766fi
7767fi
7768ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7769if test -n "$ac_ct_STRIP"; then
7770  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7771echo "${ECHO_T}$ac_ct_STRIP" >&6
7772else
7773  echo "$as_me:$LINENO: result: no" >&5
7774echo "${ECHO_T}no" >&6
7775fi
7776
7777  STRIP=$ac_ct_STRIP
7778else
7779  STRIP="$ac_cv_prog_STRIP"
7780fi
7781
7782
7783old_CC="$CC"
7784old_CFLAGS="$CFLAGS"
7785
7786# Set sane defaults for various variables
7787test -z "$AR" && AR=ar
7788test -z "$AR_FLAGS" && AR_FLAGS=cru
7789test -z "$AS" && AS=as
7790test -z "$CC" && CC=cc
7791test -z "$LTCC" && LTCC=$CC
7792test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7793test -z "$DLLTOOL" && DLLTOOL=dlltool
7794test -z "$LD" && LD=ld
7795test -z "$LN_S" && LN_S="ln -s"
7796test -z "$MAGIC_CMD" && MAGIC_CMD=file
7797test -z "$NM" && NM=nm
7798test -z "$SED" && SED=sed
7799test -z "$OBJDUMP" && OBJDUMP=objdump
7800test -z "$RANLIB" && RANLIB=:
7801test -z "$STRIP" && STRIP=:
7802test -z "$ac_objext" && ac_objext=o
7803
7804# Determine commands to create old-style static archives.
7805old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7806old_postinstall_cmds='chmod 644 $oldlib'
7807old_postuninstall_cmds=
7808
7809if test -n "$RANLIB"; then
7810  case $host_os in
7811  openbsd*)
7812    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7813    ;;
7814  *)
7815    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7816    ;;
7817  esac
7818  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7819fi
7820
7821for cc_temp in $compiler""; do
7822  case $cc_temp in
7823    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7824    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7825    \-*) ;;
7826    *) break;;
7827  esac
7828done
7829cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7830
7831
7832# Only perform the check for file, if the check method requires it
7833case $deplibs_check_method in
7834file_magic*)
7835  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7836    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7837echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7838if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7839  echo $ECHO_N "(cached) $ECHO_C" >&6
7840else
7841  case $MAGIC_CMD in
7842[\\/*] |  ?:[\\/]*)
7843  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7844  ;;
7845*)
7846  lt_save_MAGIC_CMD="$MAGIC_CMD"
7847  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7848  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7849  for ac_dir in $ac_dummy; do
7850    IFS="$lt_save_ifs"
7851    test -z "$ac_dir" && ac_dir=.
7852    if test -f $ac_dir/${ac_tool_prefix}file; then
7853      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7854      if test -n "$file_magic_test_file"; then
7855        case $deplibs_check_method in
7856        "file_magic "*)
7857          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7858          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7859          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7860            $EGREP "$file_magic_regex" > /dev/null; then
7861            :
7862          else
7863            cat <<EOF 1>&2
7864
7865*** Warning: the command libtool uses to detect shared libraries,
7866*** $file_magic_cmd, produces output that libtool cannot recognize.
7867*** The result is that libtool may fail to recognize shared libraries
7868*** as such.  This will affect the creation of libtool libraries that
7869*** depend on shared libraries, but programs linked with such libtool
7870*** libraries will work regardless of this problem.  Nevertheless, you
7871*** may want to report the problem to your system manager and/or to
7872*** bug-libtool@gnu.org
7873
7874EOF
7875          fi ;;
7876        esac
7877      fi
7878      break
7879    fi
7880  done
7881  IFS="$lt_save_ifs"
7882  MAGIC_CMD="$lt_save_MAGIC_CMD"
7883  ;;
7884esac
7885fi
7886
7887MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7888if test -n "$MAGIC_CMD"; then
7889  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7890echo "${ECHO_T}$MAGIC_CMD" >&6
7891else
7892  echo "$as_me:$LINENO: result: no" >&5
7893echo "${ECHO_T}no" >&6
7894fi
7895
7896if test -z "$lt_cv_path_MAGIC_CMD"; then
7897  if test -n "$ac_tool_prefix"; then
7898    echo "$as_me:$LINENO: checking for file" >&5
7899echo $ECHO_N "checking for file... $ECHO_C" >&6
7900if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7901  echo $ECHO_N "(cached) $ECHO_C" >&6
7902else
7903  case $MAGIC_CMD in
7904[\\/*] |  ?:[\\/]*)
7905  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7906  ;;
7907*)
7908  lt_save_MAGIC_CMD="$MAGIC_CMD"
7909  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7910  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7911  for ac_dir in $ac_dummy; do
7912    IFS="$lt_save_ifs"
7913    test -z "$ac_dir" && ac_dir=.
7914    if test -f $ac_dir/file; then
7915      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7916      if test -n "$file_magic_test_file"; then
7917        case $deplibs_check_method in
7918        "file_magic "*)
7919          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7920          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7921          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7922            $EGREP "$file_magic_regex" > /dev/null; then
7923            :
7924          else
7925            cat <<EOF 1>&2
7926
7927*** Warning: the command libtool uses to detect shared libraries,
7928*** $file_magic_cmd, produces output that libtool cannot recognize.
7929*** The result is that libtool may fail to recognize shared libraries
7930*** as such.  This will affect the creation of libtool libraries that
7931*** depend on shared libraries, but programs linked with such libtool
7932*** libraries will work regardless of this problem.  Nevertheless, you
7933*** may want to report the problem to your system manager and/or to
7934*** bug-libtool@gnu.org
7935
7936EOF
7937          fi ;;
7938        esac
7939      fi
7940      break
7941    fi
7942  done
7943  IFS="$lt_save_ifs"
7944  MAGIC_CMD="$lt_save_MAGIC_CMD"
7945  ;;
7946esac
7947fi
7948
7949MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7950if test -n "$MAGIC_CMD"; then
7951  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7952echo "${ECHO_T}$MAGIC_CMD" >&6
7953else
7954  echo "$as_me:$LINENO: result: no" >&5
7955echo "${ECHO_T}no" >&6
7956fi
7957
7958  else
7959    MAGIC_CMD=:
7960  fi
7961fi
7962
7963  fi
7964  ;;
7965esac
7966
7967enable_dlopen=no
7968enable_win32_dll=no
7969
7970# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7971if test "${enable_libtool_lock+set}" = set; then
7972  enableval="$enable_libtool_lock"
7973
7974fi;
7975test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7976
7977
7978# Check whether --with-pic or --without-pic was given.
7979if test "${with_pic+set}" = set; then
7980  withval="$with_pic"
7981  pic_mode="$withval"
7982else
7983  pic_mode=default
7984fi;
7985test -z "$pic_mode" && pic_mode=default
7986
7987# Use C for the default configuration in the libtool script
7988tagname=
7989lt_save_CC="$CC"
7990ac_ext=c
7991ac_cpp='$CPP $CPPFLAGS'
7992ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7993ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7994ac_compiler_gnu=$ac_cv_c_compiler_gnu
7995
7996
7997# Source file extension for C test sources.
7998ac_ext=c
7999
8000# Object file extension for compiled C test sources.
8001objext=o
8002objext=$objext
8003
8004# Code to be used in simple compile tests
8005lt_simple_compile_test_code="int some_variable = 0;\n"
8006
8007# Code to be used in simple link tests
8008lt_simple_link_test_code='int main(){return(0);}\n'
8009
8010
8011# If no C compiler was specified, use CC.
8012LTCC=${LTCC-"$CC"}
8013
8014# If no C compiler flags were specified, use CFLAGS.
8015LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8016
8017# Allow CC to be a program name with arguments.
8018compiler=$CC
8019
8020
8021# save warnings/boilerplate of simple test code
8022ac_outfile=conftest.$ac_objext
8023printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8024eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8025_lt_compiler_boilerplate=`cat conftest.err`
8026$rm conftest*
8027
8028ac_outfile=conftest.$ac_objext
8029printf "$lt_simple_link_test_code" >conftest.$ac_ext
8030eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8031_lt_linker_boilerplate=`cat conftest.err`
8032$rm conftest*
8033
8034
8035## CAVEAT EMPTOR:
8036## There is no encapsulation within the following macros, do not change
8037## the running order or otherwise move them around unless you know exactly
8038## what you are doing...
8039
8040lt_prog_compiler_no_builtin_flag=
8041
8042if test "$GCC" = yes; then
8043  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8044
8045
8046echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8047echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8048if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8049  echo $ECHO_N "(cached) $ECHO_C" >&6
8050else
8051  lt_cv_prog_compiler_rtti_exceptions=no
8052  ac_outfile=conftest.$ac_objext
8053   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8054   lt_compiler_flag="-fno-rtti -fno-exceptions"
8055   # Insert the option either (1) after the last *FLAGS variable, or
8056   # (2) before a word containing "conftest.", or (3) at the end.
8057   # Note that $ac_compile itself does not contain backslashes and begins
8058   # with a dollar sign (not a hyphen), so the echo should work correctly.
8059   # The option is referenced via a variable to avoid confusing sed.
8060   lt_compile=`echo "$ac_compile" | $SED \
8061   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8062   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8063   -e 's:$: $lt_compiler_flag:'`
8064   (eval echo "\"\$as_me:8064: $lt_compile\"" >&5)
8065   (eval "$lt_compile" 2>conftest.err)
8066   ac_status=$?
8067   cat conftest.err >&5
8068   echo "$as_me:8068: \$? = $ac_status" >&5
8069   if (exit $ac_status) && test -s "$ac_outfile"; then
8070     # The compiler can only warn and ignore the option if not recognized
8071     # So say no if there are warnings other than the usual output.
8072     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8073     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8074     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8075       lt_cv_prog_compiler_rtti_exceptions=yes
8076     fi
8077   fi
8078   $rm conftest*
8079
8080fi
8081echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8082echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8083
8084if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8085    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8086else
8087    :
8088fi
8089
8090fi
8091
8092lt_prog_compiler_wl=
8093lt_prog_compiler_pic=
8094lt_prog_compiler_static=
8095
8096echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8097echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8098
8099  if test "$GCC" = yes; then
8100    lt_prog_compiler_wl='-Wl,'
8101    lt_prog_compiler_static='-static'
8102
8103    case $host_os in
8104      aix*)
8105      # All AIX code is PIC.
8106      if test "$host_cpu" = ia64; then
8107        # AIX 5 now supports IA64 processor
8108        lt_prog_compiler_static='-Bstatic'
8109      fi
8110      ;;
8111
8112    amigaos*)
8113      # FIXME: we need at least 68020 code to build shared libraries, but
8114      # adding the `-m68020' flag to GCC prevents building anything better,
8115      # like `-m68040'.
8116      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8117      ;;
8118
8119    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8120      # PIC is the default for these OSes.
8121      ;;
8122
8123    mingw* | pw32* | os2*)
8124      # This hack is so that the source file can tell whether it is being
8125      # built for inclusion in a dll (and should export symbols for example).
8126      lt_prog_compiler_pic='-DDLL_EXPORT'
8127      ;;
8128
8129    darwin* | rhapsody*)
8130      # PIC is the default on this platform
8131      # Common symbols not allowed in MH_DYLIB files
8132      lt_prog_compiler_pic='-fno-common'
8133      ;;
8134
8135    interix3*)
8136      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8137      # Instead, we relocate shared libraries at runtime.
8138      ;;
8139
8140    msdosdjgpp*)
8141      # Just because we use GCC doesn't mean we suddenly get shared libraries
8142      # on systems that don't support them.
8143      lt_prog_compiler_can_build_shared=no
8144      enable_shared=no
8145      ;;
8146
8147    sysv4*MP*)
8148      if test -d /usr/nec; then
8149        lt_prog_compiler_pic=-Kconform_pic
8150      fi
8151      ;;
8152
8153    hpux*)
8154      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8155      # not for PA HP-UX.
8156      case $host_cpu in
8157      hppa*64*|ia64*)
8158        # +Z the default
8159        ;;
8160      *)
8161        lt_prog_compiler_pic='-fPIC'
8162        ;;
8163      esac
8164      ;;
8165
8166    *)
8167      lt_prog_compiler_pic='-fPIC'
8168      ;;
8169    esac
8170  else
8171    # PORTME Check for flag to pass linker flags through the system compiler.
8172    case $host_os in
8173    aix*)
8174      lt_prog_compiler_wl='-Wl,'
8175      if test "$host_cpu" = ia64; then
8176        # AIX 5 now supports IA64 processor
8177        lt_prog_compiler_static='-Bstatic'
8178      else
8179        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8180      fi
8181      ;;
8182      darwin*)
8183        # PIC is the default on this platform
8184        # Common symbols not allowed in MH_DYLIB files
8185       case $cc_basename in
8186         xlc*)
8187         lt_prog_compiler_pic='-qnocommon'
8188         lt_prog_compiler_wl='-Wl,'
8189         ;;
8190       esac
8191       ;;
8192
8193    mingw* | pw32* | os2*)
8194      # This hack is so that the source file can tell whether it is being
8195      # built for inclusion in a dll (and should export symbols for example).
8196      lt_prog_compiler_pic='-DDLL_EXPORT'
8197      ;;
8198
8199    hpux9* | hpux10* | hpux11*)
8200      lt_prog_compiler_wl='-Wl,'
8201      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8202      # not for PA HP-UX.
8203      case $host_cpu in
8204      hppa*64*|ia64*)
8205        # +Z the default
8206        ;;
8207      *)
8208        lt_prog_compiler_pic='+Z'
8209        ;;
8210      esac
8211      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8212      lt_prog_compiler_static='${wl}-a ${wl}archive'
8213      ;;
8214
8215    irix5* | irix6* | nonstopux*)
8216      lt_prog_compiler_wl='-Wl,'
8217      # PIC (with -KPIC) is the default.
8218      lt_prog_compiler_static='-non_shared'
8219      ;;
8220
8221    newsos6)
8222      lt_prog_compiler_pic='-KPIC'
8223      lt_prog_compiler_static='-Bstatic'
8224      ;;
8225
8226    linux*)
8227      case $cc_basename in
8228      icc* | ecc*)
8229        lt_prog_compiler_wl='-Wl,'
8230        lt_prog_compiler_pic='-KPIC'
8231        lt_prog_compiler_static='-static'
8232        ;;
8233      pgcc* | pgf77* | pgf90* | pgf95*)
8234        # Portland Group compilers (*not* the Pentium gcc compiler,
8235        # which looks to be a dead project)
8236        lt_prog_compiler_wl='-Wl,'
8237        lt_prog_compiler_pic='-fpic'
8238        lt_prog_compiler_static='-Bstatic'
8239        ;;
8240      ccc*)
8241        lt_prog_compiler_wl='-Wl,'
8242        # All Alpha code is PIC.
8243        lt_prog_compiler_static='-non_shared'
8244        ;;
8245      esac
8246      ;;
8247
8248    osf3* | osf4* | osf5*)
8249      lt_prog_compiler_wl='-Wl,'
8250      # All OSF/1 code is PIC.
8251      lt_prog_compiler_static='-non_shared'
8252      ;;
8253
8254    solaris*)
8255      lt_prog_compiler_pic='-KPIC'
8256      lt_prog_compiler_static='-Bstatic'
8257      case $cc_basename in
8258      f77* | f90* | f95*)
8259        lt_prog_compiler_wl='-Qoption ld ';;
8260      *)
8261        lt_prog_compiler_wl='-Wl,';;
8262      esac
8263      ;;
8264
8265    sunos4*)
8266      lt_prog_compiler_wl='-Qoption ld '
8267      lt_prog_compiler_pic='-PIC'
8268      lt_prog_compiler_static='-Bstatic'
8269      ;;
8270
8271    sysv4 | sysv4.2uw2* | sysv4.3*)
8272      lt_prog_compiler_wl='-Wl,'
8273      lt_prog_compiler_pic='-KPIC'
8274      lt_prog_compiler_static='-Bstatic'
8275      ;;
8276
8277    sysv4*MP*)
8278      if test -d /usr/nec ;then
8279        lt_prog_compiler_pic='-Kconform_pic'
8280        lt_prog_compiler_static='-Bstatic'
8281      fi
8282      ;;
8283
8284    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8285      lt_prog_compiler_wl='-Wl,'
8286      lt_prog_compiler_pic='-KPIC'
8287      lt_prog_compiler_static='-Bstatic'
8288      ;;
8289
8290    unicos*)
8291      lt_prog_compiler_wl='-Wl,'
8292      lt_prog_compiler_can_build_shared=no
8293      ;;
8294
8295    uts4*)
8296      lt_prog_compiler_pic='-pic'
8297      lt_prog_compiler_static='-Bstatic'
8298      ;;
8299
8300    *)
8301      lt_prog_compiler_can_build_shared=no
8302      ;;
8303    esac
8304  fi
8305
8306echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8307echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8308
8309#
8310# Check to make sure the PIC flag actually works.
8311#
8312if test -n "$lt_prog_compiler_pic"; then
8313
8314echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8315echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8316if test "${lt_prog_compiler_pic_works+set}" = set; then
8317  echo $ECHO_N "(cached) $ECHO_C" >&6
8318else
8319  lt_prog_compiler_pic_works=no
8320  ac_outfile=conftest.$ac_objext
8321   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8322   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8323   # Insert the option either (1) after the last *FLAGS variable, or
8324   # (2) before a word containing "conftest.", or (3) at the end.
8325   # Note that $ac_compile itself does not contain backslashes and begins
8326   # with a dollar sign (not a hyphen), so the echo should work correctly.
8327   # The option is referenced via a variable to avoid confusing sed.
8328   lt_compile=`echo "$ac_compile" | $SED \
8329   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8330   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8331   -e 's:$: $lt_compiler_flag:'`
8332   (eval echo "\"\$as_me:8332: $lt_compile\"" >&5)
8333   (eval "$lt_compile" 2>conftest.err)
8334   ac_status=$?
8335   cat conftest.err >&5
8336   echo "$as_me:8336: \$? = $ac_status" >&5
8337   if (exit $ac_status) && test -s "$ac_outfile"; then
8338     # The compiler can only warn and ignore the option if not recognized
8339     # So say no if there are warnings other than the usual output.
8340     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8341     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8342     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8343       lt_prog_compiler_pic_works=yes
8344     fi
8345   fi
8346   $rm conftest*
8347
8348fi
8349echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8350echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8351
8352if test x"$lt_prog_compiler_pic_works" = xyes; then
8353    case $lt_prog_compiler_pic in
8354     "" | " "*) ;;
8355     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8356     esac
8357else
8358    lt_prog_compiler_pic=
8359     lt_prog_compiler_can_build_shared=no
8360fi
8361
8362fi
8363case $host_os in
8364  # For platforms which do not support PIC, -DPIC is meaningless:
8365  *djgpp*)
8366    lt_prog_compiler_pic=
8367    ;;
8368  *)
8369    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8370    ;;
8371esac
8372
8373#
8374# Check to make sure the static flag actually works.
8375#
8376wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8377echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8378echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8379if test "${lt_prog_compiler_static_works+set}" = set; then
8380  echo $ECHO_N "(cached) $ECHO_C" >&6
8381else
8382  lt_prog_compiler_static_works=no
8383   save_LDFLAGS="$LDFLAGS"
8384   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8385   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8386   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8387     # The linker can only warn and ignore the option if not recognized
8388     # So say no if there are warnings
8389     if test -s conftest.err; then
8390       # Append any errors to the config.log.
8391       cat conftest.err 1>&5
8392       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8393       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8394       if diff conftest.exp conftest.er2 >/dev/null; then
8395         lt_prog_compiler_static_works=yes
8396       fi
8397     else
8398       lt_prog_compiler_static_works=yes
8399     fi
8400   fi
8401   $rm conftest*
8402   LDFLAGS="$save_LDFLAGS"
8403
8404fi
8405echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8406echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8407
8408if test x"$lt_prog_compiler_static_works" = xyes; then
8409    :
8410else
8411    lt_prog_compiler_static=
8412fi
8413
8414
8415echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8416echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8417if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8418  echo $ECHO_N "(cached) $ECHO_C" >&6
8419else
8420  lt_cv_prog_compiler_c_o=no
8421   $rm -r conftest 2>/dev/null
8422   mkdir conftest
8423   cd conftest
8424   mkdir out
8425   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8426
8427   lt_compiler_flag="-o out/conftest2.$ac_objext"
8428   # Insert the option either (1) after the last *FLAGS variable, or
8429   # (2) before a word containing "conftest.", or (3) at the end.
8430   # Note that $ac_compile itself does not contain backslashes and begins
8431   # with a dollar sign (not a hyphen), so the echo should work correctly.
8432   lt_compile=`echo "$ac_compile" | $SED \
8433   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8434   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8435   -e 's:$: $lt_compiler_flag:'`
8436   (eval echo "\"\$as_me:8436: $lt_compile\"" >&5)
8437   (eval "$lt_compile" 2>out/conftest.err)
8438   ac_status=$?
8439   cat out/conftest.err >&5
8440   echo "$as_me:8440: \$? = $ac_status" >&5
8441   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8442   then
8443     # The compiler can only warn and ignore the option if not recognized
8444     # So say no if there are warnings
8445     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8446     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8447     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8448       lt_cv_prog_compiler_c_o=yes
8449     fi
8450   fi
8451   chmod u+w . 2>&5
8452   $rm conftest*
8453   # SGI C++ compiler will create directory out/ii_files/ for
8454   # template instantiation
8455   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8456   $rm out/* && rmdir out
8457   cd ..
8458   rmdir conftest
8459   $rm conftest*
8460
8461fi
8462echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8463echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8464
8465
8466hard_links="nottested"
8467if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8468  # do not overwrite the value of need_locks provided by the user
8469  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8470echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8471  hard_links=yes
8472  $rm conftest*
8473  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8474  touch conftest.a
8475  ln conftest.a conftest.b 2>&5 || hard_links=no
8476  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8477  echo "$as_me:$LINENO: result: $hard_links" >&5
8478echo "${ECHO_T}$hard_links" >&6
8479  if test "$hard_links" = no; then
8480    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8481echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8482    need_locks=warn
8483  fi
8484else
8485  need_locks=no
8486fi
8487
8488echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8489echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8490
8491  runpath_var=
8492  allow_undefined_flag=
8493  enable_shared_with_static_runtimes=no
8494  archive_cmds=
8495  archive_expsym_cmds=
8496  old_archive_From_new_cmds=
8497  old_archive_from_expsyms_cmds=
8498  export_dynamic_flag_spec=
8499  whole_archive_flag_spec=
8500  thread_safe_flag_spec=
8501  hardcode_libdir_flag_spec=
8502  hardcode_libdir_flag_spec_ld=
8503  hardcode_libdir_separator=
8504  hardcode_direct=no
8505  hardcode_minus_L=no
8506  hardcode_shlibpath_var=unsupported
8507  link_all_deplibs=unknown
8508  hardcode_automatic=no
8509  module_cmds=
8510  module_expsym_cmds=
8511  always_export_symbols=no
8512  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8513  # include_expsyms should be a list of space-separated symbols to be *always*
8514  # included in the symbol list
8515  include_expsyms=
8516  # exclude_expsyms can be an extended regexp of symbols to exclude
8517  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8518  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8519  # as well as any symbol that contains `d'.
8520  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8521  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8522  # platforms (ab)use it in PIC code, but their linkers get confused if
8523  # the symbol is explicitly referenced.  Since portable code cannot
8524  # rely on this symbol name, it's probably fine to never include it in
8525  # preloaded symbol tables.
8526  extract_expsyms_cmds=
8527  # Just being paranoid about ensuring that cc_basename is set.
8528  for cc_temp in $compiler""; do
8529  case $cc_temp in
8530    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8531    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8532    \-*) ;;
8533    *) break;;
8534  esac
8535done
8536cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8537
8538  case $host_os in
8539  cygwin* | mingw* | pw32*)
8540    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8541    # When not using gcc, we currently assume that we are using
8542    # Microsoft Visual C++.
8543    if test "$GCC" != yes; then
8544      with_gnu_ld=no
8545    fi
8546    ;;
8547  interix*)
8548    # we just hope/assume this is gcc and not c89 (= MSVC++)
8549    with_gnu_ld=yes
8550    ;;
8551  openbsd*)
8552    with_gnu_ld=no
8553    ;;
8554  esac
8555
8556  ld_shlibs=yes
8557  if test "$with_gnu_ld" = yes; then
8558    # If archive_cmds runs LD, not CC, wlarc should be empty
8559    wlarc='${wl}'
8560
8561    # Set some defaults for GNU ld with shared library support. These
8562    # are reset later if shared libraries are not supported. Putting them
8563    # here allows them to be overridden if necessary.
8564    runpath_var=LD_RUN_PATH
8565    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8566    export_dynamic_flag_spec='${wl}--export-dynamic'
8567    # ancient GNU ld didn't support --whole-archive et. al.
8568    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8569        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8570      else
8571        whole_archive_flag_spec=
8572    fi
8573    supports_anon_versioning=no
8574    case `$LD -v 2>/dev/null` in
8575      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8576      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8577      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8578      *\ 2.11.*) ;; # other 2.11 versions
8579      *) supports_anon_versioning=yes ;;
8580    esac
8581
8582    # See if GNU ld supports shared libraries.
8583    case $host_os in
8584    aix3* | aix4* | aix5*)
8585      # On AIX/PPC, the GNU linker is very broken
8586      if test "$host_cpu" != ia64; then
8587        ld_shlibs=no
8588        cat <<EOF 1>&2
8589
8590*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8591*** to be unable to reliably create shared libraries on AIX.
8592*** Therefore, libtool is disabling shared libraries support.  If you
8593*** really care for shared libraries, you may want to modify your PATH
8594*** so that a non-GNU linker is found, and then restart.
8595
8596EOF
8597      fi
8598      ;;
8599
8600    amigaos*)
8601      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)'
8602      hardcode_libdir_flag_spec='-L$libdir'
8603      hardcode_minus_L=yes
8604
8605      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8606      # that the semantics of dynamic libraries on AmigaOS, at least up
8607      # to version 4, is to share data among multiple programs linked
8608      # with the same dynamic library.  Since this doesn't match the
8609      # behavior of shared libraries on other platforms, we can't use
8610      # them.
8611      ld_shlibs=no
8612      ;;
8613
8614    beos*)
8615      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8616        allow_undefined_flag=unsupported
8617        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8618        # support --undefined.  This deserves some investigation.  FIXME
8619        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8620      else
8621        ld_shlibs=no
8622      fi
8623      ;;
8624
8625    cygwin* | mingw* | pw32*)
8626      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8627      # as there is no search path for DLLs.
8628      hardcode_libdir_flag_spec='-L$libdir'
8629      allow_undefined_flag=unsupported
8630      always_export_symbols=no
8631      enable_shared_with_static_runtimes=yes
8632      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8633
8634      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8635        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8636        # If the export-symbols file already is a .def file (1st line
8637        # is EXPORTS), use it as is; otherwise, prepend...
8638        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8639          cp $export_symbols $output_objdir/$soname.def;
8640        else
8641          echo EXPORTS > $output_objdir/$soname.def;
8642          cat $export_symbols >> $output_objdir/$soname.def;
8643        fi~
8644        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8645      else
8646        ld_shlibs=no
8647      fi
8648      ;;
8649
8650    interix3*)
8651      hardcode_direct=no
8652      hardcode_shlibpath_var=no
8653      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8654      export_dynamic_flag_spec='${wl}-E'
8655      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8656      # Instead, shared libraries are loaded at an image base (0x10000000 by
8657      # default) and relocated if they conflict, which is a slow very memory
8658      # consuming and fragmenting process.  To avoid this, we pick a random,
8659      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8660      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8661      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8662      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'
8663      ;;
8664
8665    linux*)
8666      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8667        tmp_addflag=
8668        case $cc_basename,$host_cpu in
8669        pgcc*)                          # Portland Group C compiler
8670          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'
8671          tmp_addflag=' $pic_flag'
8672          ;;
8673        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8674          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'
8675          tmp_addflag=' $pic_flag -Mnomain' ;;
8676        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8677          tmp_addflag=' -i_dynamic' ;;
8678        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8679          tmp_addflag=' -i_dynamic -nofor_main' ;;
8680        ifc* | ifort*)                  # Intel Fortran compiler
8681          tmp_addflag=' -nofor_main' ;;
8682        esac
8683        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8684
8685        if test $supports_anon_versioning = yes; then
8686          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8687  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8688  $echo "local: *; };" >> $output_objdir/$libname.ver~
8689          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8690        fi
8691      else
8692        ld_shlibs=no
8693      fi
8694      ;;
8695
8696    netbsd*)
8697      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8698        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8699        wlarc=
8700      else
8701        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8702        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8703      fi
8704      ;;
8705
8706    solaris*)
8707      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8708        ld_shlibs=no
8709        cat <<EOF 1>&2
8710
8711*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8712*** create shared libraries on Solaris systems.  Therefore, libtool
8713*** is disabling shared libraries support.  We urge you to upgrade GNU
8714*** binutils to release 2.9.1 or newer.  Another option is to modify
8715*** your PATH or compiler configuration so that the native linker is
8716*** used, and then restart.
8717
8718EOF
8719      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8720        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8721        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8722      else
8723        ld_shlibs=no
8724      fi
8725      ;;
8726
8727    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8728      case `$LD -v 2>&1` in
8729        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8730        ld_shlibs=no
8731        cat <<_LT_EOF 1>&2
8732
8733*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8734*** reliably create shared libraries on SCO systems.  Therefore, libtool
8735*** is disabling shared libraries support.  We urge you to upgrade GNU
8736*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8737*** your PATH or compiler configuration so that the native linker is
8738*** used, and then restart.
8739
8740_LT_EOF
8741        ;;
8742        *)
8743          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8744            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8745            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8746            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8747          else
8748            ld_shlibs=no
8749          fi
8750        ;;
8751      esac
8752      ;;
8753
8754    sunos4*)
8755      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8756      wlarc=
8757      hardcode_direct=yes
8758      hardcode_shlibpath_var=no
8759      ;;
8760
8761    *)
8762      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8763        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8764        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8765      else
8766        ld_shlibs=no
8767      fi
8768      ;;
8769    esac
8770
8771    if test "$ld_shlibs" = no; then
8772      runpath_var=
8773      hardcode_libdir_flag_spec=
8774      export_dynamic_flag_spec=
8775      whole_archive_flag_spec=
8776    fi
8777  else
8778    # PORTME fill in a description of your system's linker (not GNU ld)
8779    case $host_os in
8780    aix3*)
8781      allow_undefined_flag=unsupported
8782      always_export_symbols=yes
8783      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'
8784      # Note: this linker hardcodes the directories in LIBPATH if there
8785      # are no directories specified by -L.
8786      hardcode_minus_L=yes
8787      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8788        # Neither direct hardcoding nor static linking is supported with a
8789        # broken collect2.
8790        hardcode_direct=unsupported
8791      fi
8792      ;;
8793
8794    aix4* | aix5*)
8795      if test "$host_cpu" = ia64; then
8796        # On IA64, the linker does run time linking by default, so we don't
8797        # have to do anything special.
8798        aix_use_runtimelinking=no
8799        exp_sym_flag='-Bexport'
8800        no_entry_flag=""
8801      else
8802        # If we're using GNU nm, then we don't want the "-C" option.
8803        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8804        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8805          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'
8806        else
8807          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'
8808        fi
8809        aix_use_runtimelinking=no
8810
8811        # Test if we are trying to use run time linking or normal
8812        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8813        # need to do runtime linking.
8814        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8815          for ld_flag in $LDFLAGS; do
8816          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8817            aix_use_runtimelinking=yes
8818            break
8819          fi
8820          done
8821          ;;
8822        esac
8823
8824        exp_sym_flag='-bexport'
8825        no_entry_flag='-bnoentry'
8826      fi
8827
8828      # When large executables or shared objects are built, AIX ld can
8829      # have problems creating the table of contents.  If linking a library
8830      # or program results in "error TOC overflow" add -mminimal-toc to
8831      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8832      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8833
8834      archive_cmds=''
8835      hardcode_direct=yes
8836      hardcode_libdir_separator=':'
8837      link_all_deplibs=yes
8838
8839      if test "$GCC" = yes; then
8840        case $host_os in aix4.[012]|aix4.[012].*)
8841        # We only want to do this on AIX 4.2 and lower, the check
8842        # below for broken collect2 doesn't work under 4.3+
8843          collect2name=`${CC} -print-prog-name=collect2`
8844          if test -f "$collect2name" && \
8845           strings "$collect2name" | grep resolve_lib_name >/dev/null
8846          then
8847          # We have reworked collect2
8848          hardcode_direct=yes
8849          else
8850          # We have old collect2
8851          hardcode_direct=unsupported
8852          # It fails to find uninstalled libraries when the uninstalled
8853          # path is not listed in the libpath.  Setting hardcode_minus_L
8854          # to unsupported forces relinking
8855          hardcode_minus_L=yes
8856          hardcode_libdir_flag_spec='-L$libdir'
8857          hardcode_libdir_separator=
8858          fi
8859          ;;
8860        esac
8861        shared_flag='-shared'
8862        if test "$aix_use_runtimelinking" = yes; then
8863          shared_flag="$shared_flag "'${wl}-G'
8864        fi
8865      else
8866        # not using gcc
8867        if test "$host_cpu" = ia64; then
8868        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8869        # chokes on -Wl,-G. The following line is correct:
8870          shared_flag='-G'
8871        else
8872          if test "$aix_use_runtimelinking" = yes; then
8873            shared_flag='${wl}-G'
8874          else
8875            shared_flag='${wl}-bM:SRE'
8876          fi
8877        fi
8878      fi
8879
8880      # It seems that -bexpall does not export symbols beginning with
8881      # underscore (_), so it is better to generate a list of symbols to export.
8882      always_export_symbols=yes
8883      if test "$aix_use_runtimelinking" = yes; then
8884        # Warning - without using the other runtime loading flags (-brtl),
8885        # -berok will link without error, but may produce a broken library.
8886        allow_undefined_flag='-berok'
8887       # Determine the default libpath from the value encoded in an empty executable.
8888       cat >conftest.$ac_ext <<_ACEOF
8889/* confdefs.h.  */
8890_ACEOF
8891cat confdefs.h >>conftest.$ac_ext
8892cat >>conftest.$ac_ext <<_ACEOF
8893/* end confdefs.h.  */
8894
8895int
8896main ()
8897{
8898
8899  ;
8900  return 0;
8901}
8902_ACEOF
8903rm -f conftest.$ac_objext conftest$ac_exeext
8904if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8905  (eval $ac_link) 2>conftest.er1
8906  ac_status=$?
8907  grep -v '^ *+' conftest.er1 >conftest.err
8908  rm -f conftest.er1
8909  cat conftest.err >&5
8910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8911  (exit $ac_status); } &&
8912         { ac_try='test -z "$ac_c_werror_flag"
8913                         || test ! -s conftest.err'
8914  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8915  (eval $ac_try) 2>&5
8916  ac_status=$?
8917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8918  (exit $ac_status); }; } &&
8919         { ac_try='test -s conftest$ac_exeext'
8920  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8921  (eval $ac_try) 2>&5
8922  ac_status=$?
8923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8924  (exit $ac_status); }; }; then
8925
8926aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8927}'`
8928# Check for a 64-bit object if we didn't find anything.
8929if 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; }
8930}'`; fi
8931else
8932  echo "$as_me: failed program was:" >&5
8933sed 's/^/| /' conftest.$ac_ext >&5
8934
8935fi
8936rm -f conftest.err conftest.$ac_objext \
8937      conftest$ac_exeext conftest.$ac_ext
8938if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8939
8940       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8941        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"
8942       else
8943        if test "$host_cpu" = ia64; then
8944          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8945          allow_undefined_flag="-z nodefs"
8946          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"
8947        else
8948         # Determine the default libpath from the value encoded in an empty executable.
8949         cat >conftest.$ac_ext <<_ACEOF
8950/* confdefs.h.  */
8951_ACEOF
8952cat confdefs.h >>conftest.$ac_ext
8953cat >>conftest.$ac_ext <<_ACEOF
8954/* end confdefs.h.  */
8955
8956int
8957main ()
8958{
8959
8960  ;
8961  return 0;
8962}
8963_ACEOF
8964rm -f conftest.$ac_objext conftest$ac_exeext
8965if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8966  (eval $ac_link) 2>conftest.er1
8967  ac_status=$?
8968  grep -v '^ *+' conftest.er1 >conftest.err
8969  rm -f conftest.er1
8970  cat conftest.err >&5
8971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8972  (exit $ac_status); } &&
8973         { ac_try='test -z "$ac_c_werror_flag"
8974                         || test ! -s conftest.err'
8975  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8976  (eval $ac_try) 2>&5
8977  ac_status=$?
8978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979  (exit $ac_status); }; } &&
8980         { ac_try='test -s conftest$ac_exeext'
8981  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8982  (eval $ac_try) 2>&5
8983  ac_status=$?
8984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985  (exit $ac_status); }; }; then
8986
8987aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8988}'`
8989# Check for a 64-bit object if we didn't find anything.
8990if 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; }
8991}'`; fi
8992else
8993  echo "$as_me: failed program was:" >&5
8994sed 's/^/| /' conftest.$ac_ext >&5
8995
8996fi
8997rm -f conftest.err conftest.$ac_objext \
8998      conftest$ac_exeext conftest.$ac_ext
8999if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9000
9001         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9002          # Warning - without using the other run time loading flags,
9003          # -berok will link without error, but may produce a broken library.
9004          no_undefined_flag=' ${wl}-bernotok'
9005          allow_undefined_flag=' ${wl}-berok'
9006          # Exported symbols can be pulled into shared objects from archives
9007          whole_archive_flag_spec='$convenience'
9008          archive_cmds_need_lc=yes
9009          # This is similar to how AIX traditionally builds its shared libraries.
9010          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'
9011        fi
9012      fi
9013      ;;
9014
9015    amigaos*)
9016      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)'
9017      hardcode_libdir_flag_spec='-L$libdir'
9018      hardcode_minus_L=yes
9019      # see comment about different semantics on the GNU ld section
9020      ld_shlibs=no
9021      ;;
9022
9023    bsdi[45]*)
9024      export_dynamic_flag_spec=-rdynamic
9025      ;;
9026
9027    cygwin* | mingw* | pw32*)
9028      # When not using gcc, we currently assume that we are using
9029      # Microsoft Visual C++.
9030      # hardcode_libdir_flag_spec is actually meaningless, as there is
9031      # no search path for DLLs.
9032      hardcode_libdir_flag_spec=' '
9033      allow_undefined_flag=unsupported
9034      # Tell ltmain to make .lib files, not .a files.
9035      libext=lib
9036      # Tell ltmain to make .dll files, not .so files.
9037      shrext_cmds=".dll"
9038      # FIXME: Setting linknames here is a bad hack.
9039      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9040      # The linker will automatically build a .lib file if we build a DLL.
9041      old_archive_From_new_cmds='true'
9042      # FIXME: Should let the user specify the lib program.
9043      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9044      fix_srcfile_path='`cygpath -w "$srcfile"`'
9045      enable_shared_with_static_runtimes=yes
9046      ;;
9047
9048    darwin* | rhapsody*)
9049      case $host_os in
9050        rhapsody* | darwin1.[012])
9051         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9052         ;;
9053       *) # Darwin 1.3 on
9054         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9055           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9056         else
9057           case ${MACOSX_DEPLOYMENT_TARGET} in
9058             10.[012])
9059               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9060               ;;
9061             10.*)
9062               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9063               ;;
9064           esac
9065         fi
9066         ;;
9067      esac
9068      archive_cmds_need_lc=no
9069      hardcode_direct=no
9070      hardcode_automatic=yes
9071      hardcode_shlibpath_var=unsupported
9072      whole_archive_flag_spec=''
9073      link_all_deplibs=yes
9074    if test "$GCC" = yes ; then
9075        output_verbose_link_cmd='echo'
9076        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9077      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9078      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9079      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}'
9080      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}'
9081    else
9082      case $cc_basename in
9083        xlc*)
9084         output_verbose_link_cmd='echo'
9085         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9086         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9087          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9088         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}'
9089          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}'
9090          ;;
9091       *)
9092         ld_shlibs=no
9093          ;;
9094      esac
9095    fi
9096      ;;
9097
9098    dgux*)
9099      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9100      hardcode_libdir_flag_spec='-L$libdir'
9101      hardcode_shlibpath_var=no
9102      ;;
9103
9104    freebsd1*)
9105      ld_shlibs=no
9106      ;;
9107
9108    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9109    # support.  Future versions do this automatically, but an explicit c++rt0.o
9110    # does not break anything, and helps significantly (at the cost of a little
9111    # extra space).
9112    freebsd2.2*)
9113      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9114      hardcode_libdir_flag_spec='-R$libdir'
9115      hardcode_direct=yes
9116      hardcode_shlibpath_var=no
9117      ;;
9118
9119    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9120    freebsd2*)
9121      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9122      hardcode_direct=yes
9123      hardcode_minus_L=yes
9124      hardcode_shlibpath_var=no
9125      ;;
9126
9127    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9128    freebsd* | kfreebsd*-gnu | dragonfly*)
9129      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9130      hardcode_libdir_flag_spec='-R$libdir'
9131      hardcode_direct=yes
9132      hardcode_shlibpath_var=no
9133      ;;
9134
9135    hpux9*)
9136      if test "$GCC" = yes; then
9137        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'
9138      else
9139        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'
9140      fi
9141      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9142      hardcode_libdir_separator=:
9143      hardcode_direct=yes
9144
9145      # hardcode_minus_L: Not really in the search PATH,
9146      # but as the default location of the library.
9147      hardcode_minus_L=yes
9148      export_dynamic_flag_spec='${wl}-E'
9149      ;;
9150
9151    hpux10*)
9152      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9153        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9154      else
9155        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9156      fi
9157      if test "$with_gnu_ld" = no; then
9158        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9159        hardcode_libdir_separator=:
9160
9161        hardcode_direct=yes
9162        export_dynamic_flag_spec='${wl}-E'
9163
9164        # hardcode_minus_L: Not really in the search PATH,
9165        # but as the default location of the library.
9166        hardcode_minus_L=yes
9167      fi
9168      ;;
9169
9170    hpux11*)
9171      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9172        case $host_cpu in
9173        hppa*64*)
9174          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9175          ;;
9176        ia64*)
9177          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9178          ;;
9179        *)
9180          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9181          ;;
9182        esac
9183      else
9184        case $host_cpu in
9185        hppa*64*)
9186          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9187          ;;
9188        ia64*)
9189          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9190          ;;
9191        *)
9192          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9193          ;;
9194        esac
9195      fi
9196      if test "$with_gnu_ld" = no; then
9197        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9198        hardcode_libdir_separator=:
9199
9200        case $host_cpu in
9201        hppa*64*|ia64*)
9202          hardcode_libdir_flag_spec_ld='+b $libdir'
9203          hardcode_direct=no
9204          hardcode_shlibpath_var=no
9205          ;;
9206        *)
9207          hardcode_direct=yes
9208          export_dynamic_flag_spec='${wl}-E'
9209
9210          # hardcode_minus_L: Not really in the search PATH,
9211          # but as the default location of the library.
9212          hardcode_minus_L=yes
9213          ;;
9214        esac
9215      fi
9216      ;;
9217
9218    irix5* | irix6* | nonstopux*)
9219      if test "$GCC" = yes; then
9220        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'
9221      else
9222        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'
9223        hardcode_libdir_flag_spec_ld='-rpath $libdir'
9224      fi
9225      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9226      hardcode_libdir_separator=:
9227      link_all_deplibs=yes
9228      ;;
9229
9230    netbsd*)
9231      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9232        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9233      else
9234        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9235      fi
9236      hardcode_libdir_flag_spec='-R$libdir'
9237      hardcode_direct=yes
9238      hardcode_shlibpath_var=no
9239      ;;
9240
9241    newsos6)
9242      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9243      hardcode_direct=yes
9244      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9245      hardcode_libdir_separator=:
9246      hardcode_shlibpath_var=no
9247      ;;
9248
9249    openbsd*)
9250      hardcode_direct=yes
9251      hardcode_shlibpath_var=no
9252      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9253        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9254        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9255        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9256        export_dynamic_flag_spec='${wl}-E'
9257      else
9258       case $host_os in
9259         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9260           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9261           hardcode_libdir_flag_spec='-R$libdir'
9262           ;;
9263         *)
9264           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9265           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9266           ;;
9267       esac
9268      fi
9269      ;;
9270
9271    os2*)
9272      hardcode_libdir_flag_spec='-L$libdir'
9273      hardcode_minus_L=yes
9274      allow_undefined_flag=unsupported
9275      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'
9276      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9277      ;;
9278
9279    osf3*)
9280      if test "$GCC" = yes; then
9281        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9282        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'
9283      else
9284        allow_undefined_flag=' -expect_unresolved \*'
9285        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'
9286      fi
9287      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9288      hardcode_libdir_separator=:
9289      ;;
9290
9291    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9292      if test "$GCC" = yes; then
9293        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9294        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'
9295        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9296      else
9297        allow_undefined_flag=' -expect_unresolved \*'
9298        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'
9299        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9300        $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'
9301
9302        # Both c and cxx compiler support -rpath directly
9303        hardcode_libdir_flag_spec='-rpath $libdir'
9304      fi
9305      hardcode_libdir_separator=:
9306      ;;
9307
9308    solaris*)
9309      no_undefined_flag=' -z text'
9310      if test "$GCC" = yes; then
9311        wlarc='${wl}'
9312        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9313        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9314          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9315      else
9316        wlarc=''
9317        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9318        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9319        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9320      fi
9321      hardcode_libdir_flag_spec='-R$libdir'
9322      hardcode_shlibpath_var=no
9323      case $host_os in
9324      solaris2.[0-5] | solaris2.[0-5].*) ;;
9325      *)
9326        # The compiler driver will combine linker options so we
9327        # cannot just pass the convience library names through
9328        # without $wl, iff we do not link with $LD.
9329        # Luckily, gcc supports the same syntax we need for Sun Studio.
9330        # Supported since Solaris 2.6 (maybe 2.5.1?)
9331        case $wlarc in
9332        '')
9333          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9334        *)
9335          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' ;;
9336        esac ;;
9337      esac
9338      link_all_deplibs=yes
9339      ;;
9340
9341    sunos4*)
9342      if test "x$host_vendor" = xsequent; then
9343        # Use $CC to link under sequent, because it throws in some extra .o
9344        # files that make .init and .fini sections work.
9345        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9346      else
9347        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9348      fi
9349      hardcode_libdir_flag_spec='-L$libdir'
9350      hardcode_direct=yes
9351      hardcode_minus_L=yes
9352      hardcode_shlibpath_var=no
9353      ;;
9354
9355    sysv4)
9356      case $host_vendor in
9357        sni)
9358          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9359          hardcode_direct=yes # is this really true???
9360        ;;
9361        siemens)
9362          ## LD is ld it makes a PLAMLIB
9363          ## CC just makes a GrossModule.
9364          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9365          reload_cmds='$CC -r -o $output$reload_objs'
9366          hardcode_direct=no
9367        ;;
9368        motorola)
9369          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9370          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9371        ;;
9372      esac
9373      runpath_var='LD_RUN_PATH'
9374      hardcode_shlibpath_var=no
9375      ;;
9376
9377    sysv4.3*)
9378      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9379      hardcode_shlibpath_var=no
9380      export_dynamic_flag_spec='-Bexport'
9381      ;;
9382
9383    sysv4*MP*)
9384      if test -d /usr/nec; then
9385        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9386        hardcode_shlibpath_var=no
9387        runpath_var=LD_RUN_PATH
9388        hardcode_runpath_var=yes
9389        ld_shlibs=yes
9390      fi
9391      ;;
9392
9393    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9394      no_undefined_flag='${wl}-z,text'
9395      archive_cmds_need_lc=no
9396      hardcode_shlibpath_var=no
9397      runpath_var='LD_RUN_PATH'
9398
9399      if test "$GCC" = yes; then
9400        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9401        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9402      else
9403        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9404        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9405      fi
9406      ;;
9407
9408    sysv5* | sco3.2v5* | sco5v6*)
9409      # Note: We can NOT use -z defs as we might desire, because we do not
9410      # link with -lc, and that would cause any symbols used from libc to
9411      # always be unresolved, which means just about no library would
9412      # ever link correctly.  If we're not using GNU ld we use -z text
9413      # though, which does catch some bad symbols but isn't as heavy-handed
9414      # as -z defs.
9415      no_undefined_flag='${wl}-z,text'
9416      allow_undefined_flag='${wl}-z,nodefs'
9417      archive_cmds_need_lc=no
9418      hardcode_shlibpath_var=no
9419      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9420      hardcode_libdir_separator=':'
9421      link_all_deplibs=yes
9422      export_dynamic_flag_spec='${wl}-Bexport'
9423      runpath_var='LD_RUN_PATH'
9424
9425      if test "$GCC" = yes; then
9426        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9427        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9428      else
9429        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9430        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9431      fi
9432      ;;
9433
9434    uts4*)
9435      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9436      hardcode_libdir_flag_spec='-L$libdir'
9437      hardcode_shlibpath_var=no
9438      ;;
9439
9440    *)
9441      ld_shlibs=no
9442      ;;
9443    esac
9444  fi
9445
9446echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9447echo "${ECHO_T}$ld_shlibs" >&6
9448test "$ld_shlibs" = no && can_build_shared=no
9449
9450#
9451# Do we need to explicitly link libc?
9452#
9453case "x$archive_cmds_need_lc" in
9454x|xyes)
9455  # Assume -lc should be added
9456  archive_cmds_need_lc=yes
9457
9458  if test "$enable_shared" = yes && test "$GCC" = yes; then
9459    case $archive_cmds in
9460    *'~'*)
9461      # FIXME: we may have to deal with multi-command sequences.
9462      ;;
9463    '$CC '*)
9464      # Test whether the compiler implicitly links with -lc since on some
9465      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9466      # to ld, don't add -lc before -lgcc.
9467      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9468echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9469      $rm conftest*
9470      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9471
9472      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9473  (eval $ac_compile) 2>&5
9474  ac_status=$?
9475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9476  (exit $ac_status); } 2>conftest.err; then
9477        soname=conftest
9478        lib=conftest
9479        libobjs=conftest.$ac_objext
9480        deplibs=
9481        wl=$lt_prog_compiler_wl
9482        pic_flag=$lt_prog_compiler_pic
9483        compiler_flags=-v
9484        linker_flags=-v
9485        verstring=
9486        output_objdir=.
9487        libname=conftest
9488        lt_save_allow_undefined_flag=$allow_undefined_flag
9489        allow_undefined_flag=
9490        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9491  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9492  ac_status=$?
9493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494  (exit $ac_status); }
9495        then
9496          archive_cmds_need_lc=no
9497        else
9498          archive_cmds_need_lc=yes
9499        fi
9500        allow_undefined_flag=$lt_save_allow_undefined_flag
9501      else
9502        cat conftest.err 1>&5
9503      fi
9504      $rm conftest*
9505      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9506echo "${ECHO_T}$archive_cmds_need_lc" >&6
9507      ;;
9508    esac
9509  fi
9510  ;;
9511esac
9512
9513echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9514echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9515library_names_spec=
9516libname_spec='lib$name'
9517soname_spec=
9518shrext_cmds=".so"
9519postinstall_cmds=
9520postuninstall_cmds=
9521finish_cmds=
9522finish_eval=
9523shlibpath_var=
9524shlibpath_overrides_runpath=unknown
9525version_type=none
9526dynamic_linker="$host_os ld.so"
9527sys_lib_dlsearch_path_spec="/lib /usr/lib"
9528if test "$GCC" = yes; then
9529  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9530  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9531    # if the path contains ";" then we assume it to be the separator
9532    # otherwise default to the standard path separator (i.e. ":") - it is
9533    # assumed that no part of a normal pathname contains ";" but that should
9534    # okay in the real world where ";" in dirpaths is itself problematic.
9535    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9536  else
9537    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9538  fi
9539else
9540  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9541fi
9542need_lib_prefix=unknown
9543hardcode_into_libs=no
9544
9545# when you set need_version to no, make sure it does not cause -set_version
9546# flags to be left without arguments
9547need_version=unknown
9548
9549case $host_os in
9550aix3*)
9551  version_type=linux
9552  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9553  shlibpath_var=LIBPATH
9554
9555  # AIX 3 has no versioning support, so we append a major version to the name.
9556  soname_spec='${libname}${release}${shared_ext}$major'
9557  ;;
9558
9559aix4* | aix5*)
9560  version_type=linux
9561  need_lib_prefix=no
9562  need_version=no
9563  hardcode_into_libs=yes
9564  if test "$host_cpu" = ia64; then
9565    # AIX 5 supports IA64
9566    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9567    shlibpath_var=LD_LIBRARY_PATH
9568  else
9569    # With GCC up to 2.95.x, collect2 would create an import file
9570    # for dependence libraries.  The import file would start with
9571    # the line `#! .'.  This would cause the generated library to
9572    # depend on `.', always an invalid library.  This was fixed in
9573    # development snapshots of GCC prior to 3.0.
9574    case $host_os in
9575      aix4 | aix4.[01] | aix4.[01].*)
9576      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9577           echo ' yes '
9578           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9579        :
9580      else
9581        can_build_shared=no
9582      fi
9583      ;;
9584    esac
9585    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9586    # soname into executable. Probably we can add versioning support to
9587    # collect2, so additional links can be useful in future.
9588    if test "$aix_use_runtimelinking" = yes; then
9589      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9590      # instead of lib<name>.a to let people know that these are not
9591      # typical AIX shared libraries.
9592      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9593    else
9594      # We preserve .a as extension for shared libraries through AIX4.2
9595      # and later when we are not doing run time linking.
9596      library_names_spec='${libname}${release}.a $libname.a'
9597      soname_spec='${libname}${release}${shared_ext}$major'
9598    fi
9599    shlibpath_var=LIBPATH
9600  fi
9601  ;;
9602
9603amigaos*)
9604  library_names_spec='$libname.ixlibrary $libname.a'
9605  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9606  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'
9607  ;;
9608
9609beos*)
9610  library_names_spec='${libname}${shared_ext}'
9611  dynamic_linker="$host_os ld.so"
9612  shlibpath_var=LIBRARY_PATH
9613  ;;
9614
9615bsdi[45]*)
9616  version_type=linux
9617  need_version=no
9618  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9619  soname_spec='${libname}${release}${shared_ext}$major'
9620  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9621  shlibpath_var=LD_LIBRARY_PATH
9622  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9623  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9624  # the default ld.so.conf also contains /usr/contrib/lib and
9625  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9626  # libtool to hard-code these into programs
9627  ;;
9628
9629cygwin* | mingw* | pw32*)
9630  version_type=windows
9631  shrext_cmds=".dll"
9632  need_version=no
9633  need_lib_prefix=no
9634
9635  case $GCC,$host_os in
9636  yes,cygwin* | yes,mingw* | yes,pw32*)
9637    library_names_spec='$libname.dll.a'
9638    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9639    postinstall_cmds='base_file=`basename \${file}`~
9640      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9641      dldir=$destdir/`dirname \$dlpath`~
9642      test -d \$dldir || mkdir -p \$dldir~
9643      $install_prog $dir/$dlname \$dldir/$dlname~
9644      chmod a+x \$dldir/$dlname'
9645    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9646      dlpath=$dir/\$dldll~
9647       $rm \$dlpath'
9648    shlibpath_overrides_runpath=yes
9649
9650    case $host_os in
9651    cygwin*)
9652      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9653      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9654      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9655      ;;
9656    mingw*)
9657      # MinGW DLLs use traditional 'lib' prefix
9658      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9659      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9660      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9661        # It is most probably a Windows format PATH printed by
9662        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9663        # path with ; separators, and with drive letters. We can handle the
9664        # drive letters (cygwin fileutils understands them), so leave them,
9665        # especially as we might pass files found there to a mingw objdump,
9666        # which wouldn't understand a cygwinified path. Ahh.
9667        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9668      else
9669        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9670      fi
9671      ;;
9672    pw32*)
9673      # pw32 DLLs use 'pw' prefix rather than 'lib'
9674      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9675      ;;
9676    esac
9677    ;;
9678
9679  *)
9680    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9681    ;;
9682  esac
9683  dynamic_linker='Win32 ld.exe'
9684  # FIXME: first we should search . and the directory the executable is in
9685  shlibpath_var=PATH
9686  ;;
9687
9688darwin* | rhapsody*)
9689  dynamic_linker="$host_os dyld"
9690  version_type=darwin
9691  need_lib_prefix=no
9692  need_version=no
9693  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9694  soname_spec='${libname}${release}${major}$shared_ext'
9695  shlibpath_overrides_runpath=yes
9696  shlibpath_var=DYLD_LIBRARY_PATH
9697  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9698  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9699  if test "$GCC" = yes; then
9700    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"`
9701  else
9702    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9703  fi
9704  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9705  ;;
9706
9707dgux*)
9708  version_type=linux
9709  need_lib_prefix=no
9710  need_version=no
9711  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9712  soname_spec='${libname}${release}${shared_ext}$major'
9713  shlibpath_var=LD_LIBRARY_PATH
9714  ;;
9715
9716freebsd1*)
9717  dynamic_linker=no
9718  ;;
9719
9720kfreebsd*-gnu)
9721  version_type=linux
9722  need_lib_prefix=no
9723  need_version=no
9724  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9725  soname_spec='${libname}${release}${shared_ext}$major'
9726  shlibpath_var=LD_LIBRARY_PATH
9727  shlibpath_overrides_runpath=no
9728  hardcode_into_libs=yes
9729  dynamic_linker='GNU ld.so'
9730  ;;
9731
9732freebsd* | dragonfly*)
9733  # DragonFly does not have aout.  When/if they implement a new
9734  # versioning mechanism, adjust this.
9735  if test -x /usr/bin/objformat; then
9736    objformat=`/usr/bin/objformat`
9737  else
9738    case $host_os in
9739    freebsd[123]*) objformat=aout ;;
9740    *) objformat=elf ;;
9741    esac
9742  fi
9743  version_type=freebsd-$objformat
9744  case $version_type in
9745    freebsd-elf*)
9746      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9747      need_version=no
9748      need_lib_prefix=no
9749      ;;
9750    freebsd-*)
9751      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9752      need_version=yes
9753      ;;
9754  esac
9755  shlibpath_var=LD_LIBRARY_PATH
9756  case $host_os in
9757  freebsd2*)
9758    shlibpath_overrides_runpath=yes
9759    ;;
9760  freebsd3.[01]* | freebsdelf3.[01]*)
9761    shlibpath_overrides_runpath=yes
9762    hardcode_into_libs=yes
9763    ;;
9764  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9765  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9766    shlibpath_overrides_runpath=no
9767    hardcode_into_libs=yes
9768    ;;
9769  freebsd*) # from 4.6 on
9770    shlibpath_overrides_runpath=yes
9771    hardcode_into_libs=yes
9772    ;;
9773  esac
9774  ;;
9775
9776gnu*)
9777  version_type=linux
9778  need_lib_prefix=no
9779  need_version=no
9780  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9781  soname_spec='${libname}${release}${shared_ext}$major'
9782  shlibpath_var=LD_LIBRARY_PATH
9783  hardcode_into_libs=yes
9784  ;;
9785
9786hpux9* | hpux10* | hpux11*)
9787  # Give a soname corresponding to the major version so that dld.sl refuses to
9788  # link against other versions.
9789  version_type=sunos
9790  need_lib_prefix=no
9791  need_version=no
9792  case $host_cpu in
9793  ia64*)
9794    shrext_cmds='.so'
9795    hardcode_into_libs=yes
9796    dynamic_linker="$host_os dld.so"
9797    shlibpath_var=LD_LIBRARY_PATH
9798    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9799    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9800    soname_spec='${libname}${release}${shared_ext}$major'
9801    if test "X$HPUX_IA64_MODE" = X32; then
9802      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9803    else
9804      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9805    fi
9806    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9807    ;;
9808   hppa*64*)
9809     shrext_cmds='.sl'
9810     hardcode_into_libs=yes
9811     dynamic_linker="$host_os dld.sl"
9812     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9813     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9814     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9815     soname_spec='${libname}${release}${shared_ext}$major'
9816     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9817     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9818     ;;
9819   *)
9820    shrext_cmds='.sl'
9821    dynamic_linker="$host_os dld.sl"
9822    shlibpath_var=SHLIB_PATH
9823    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9824    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9825    soname_spec='${libname}${release}${shared_ext}$major'
9826    ;;
9827  esac
9828  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9829  postinstall_cmds='chmod 555 $lib'
9830  ;;
9831
9832interix3*)
9833  version_type=linux
9834  need_lib_prefix=no
9835  need_version=no
9836  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9837  soname_spec='${libname}${release}${shared_ext}$major'
9838  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9839  shlibpath_var=LD_LIBRARY_PATH
9840  shlibpath_overrides_runpath=no
9841  hardcode_into_libs=yes
9842  ;;
9843
9844irix5* | irix6* | nonstopux*)
9845  case $host_os in
9846    nonstopux*) version_type=nonstopux ;;
9847    *)
9848        if test "$lt_cv_prog_gnu_ld" = yes; then
9849                version_type=linux
9850        else
9851                version_type=irix
9852        fi ;;
9853  esac
9854  need_lib_prefix=no
9855  need_version=no
9856  soname_spec='${libname}${release}${shared_ext}$major'
9857  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9858  case $host_os in
9859  irix5* | nonstopux*)
9860    libsuff= shlibsuff=
9861    ;;
9862  *)
9863    case $LD in # libtool.m4 will add one of these switches to LD
9864    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9865      libsuff= shlibsuff= libmagic=32-bit;;
9866    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9867      libsuff=32 shlibsuff=N32 libmagic=N32;;
9868    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9869      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9870    *) libsuff= shlibsuff= libmagic=never-match;;
9871    esac
9872    ;;
9873  esac
9874  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9875  shlibpath_overrides_runpath=no
9876  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9877  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9878  hardcode_into_libs=yes
9879  ;;
9880
9881# No shared lib support for Linux oldld, aout, or coff.
9882linux*oldld* | linux*aout* | linux*coff*)
9883  dynamic_linker=no
9884  ;;
9885
9886# This must be Linux ELF.
9887linux*)
9888  version_type=linux
9889  need_lib_prefix=no
9890  need_version=no
9891  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9892  soname_spec='${libname}${release}${shared_ext}$major'
9893  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9894  shlibpath_var=LD_LIBRARY_PATH
9895  shlibpath_overrides_runpath=no
9896  # This implies no fast_install, which is unacceptable.
9897  # Some rework will be needed to allow for fast_install
9898  # before this can be enabled.
9899  hardcode_into_libs=yes
9900
9901  # Append ld.so.conf contents to the search path
9902  if test -f /etc/ld.so.conf; then
9903    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' ' '`
9904    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9905  fi
9906
9907  # We used to test for /lib/ld.so.1 and disable shared libraries on
9908  # powerpc, because MkLinux only supported shared libraries with the
9909  # GNU dynamic linker.  Since this was broken with cross compilers,
9910  # most powerpc-linux boxes support dynamic linking these days and
9911  # people can always --disable-shared, the test was removed, and we
9912  # assume the GNU/Linux dynamic linker is in use.
9913  dynamic_linker='GNU/Linux ld.so'
9914  ;;
9915
9916knetbsd*-gnu)
9917  version_type=linux
9918  need_lib_prefix=no
9919  need_version=no
9920  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9921  soname_spec='${libname}${release}${shared_ext}$major'
9922  shlibpath_var=LD_LIBRARY_PATH
9923  shlibpath_overrides_runpath=no
9924  hardcode_into_libs=yes
9925  dynamic_linker='GNU ld.so'
9926  ;;
9927
9928netbsd*)
9929  version_type=sunos
9930  need_lib_prefix=no
9931  need_version=no
9932  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9933    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9934    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9935    dynamic_linker='NetBSD (a.out) ld.so'
9936  else
9937    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9938    soname_spec='${libname}${release}${shared_ext}$major'
9939    dynamic_linker='NetBSD ld.elf_so'
9940  fi
9941  shlibpath_var=LD_LIBRARY_PATH
9942  shlibpath_overrides_runpath=yes
9943  hardcode_into_libs=yes
9944  ;;
9945
9946newsos6)
9947  version_type=linux
9948  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9949  shlibpath_var=LD_LIBRARY_PATH
9950  shlibpath_overrides_runpath=yes
9951  ;;
9952
9953nto-qnx*)
9954  version_type=linux
9955  need_lib_prefix=no
9956  need_version=no
9957  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9958  soname_spec='${libname}${release}${shared_ext}$major'
9959  shlibpath_var=LD_LIBRARY_PATH
9960  shlibpath_overrides_runpath=yes
9961  ;;
9962
9963openbsd*)
9964  version_type=sunos
9965  sys_lib_dlsearch_path_spec="/usr/lib"
9966  need_lib_prefix=no
9967  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9968  case $host_os in
9969    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9970    *)                         need_version=no  ;;
9971  esac
9972  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9973  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9974  shlibpath_var=LD_LIBRARY_PATH
9975  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9976    case $host_os in
9977      openbsd2.[89] | openbsd2.[89].*)
9978        shlibpath_overrides_runpath=no
9979        ;;
9980      *)
9981        shlibpath_overrides_runpath=yes
9982        ;;
9983      esac
9984  else
9985    shlibpath_overrides_runpath=yes
9986  fi
9987  ;;
9988
9989os2*)
9990  libname_spec='$name'
9991  shrext_cmds=".dll"
9992  need_lib_prefix=no
9993  library_names_spec='$libname${shared_ext} $libname.a'
9994  dynamic_linker='OS/2 ld.exe'
9995  shlibpath_var=LIBPATH
9996  ;;
9997
9998osf3* | osf4* | osf5*)
9999  version_type=osf
10000  need_lib_prefix=no
10001  need_version=no
10002  soname_spec='${libname}${release}${shared_ext}$major'
10003  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10004  shlibpath_var=LD_LIBRARY_PATH
10005  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10006  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10007  ;;
10008
10009solaris*)
10010  version_type=linux
10011  need_lib_prefix=no
10012  need_version=no
10013  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10014  soname_spec='${libname}${release}${shared_ext}$major'
10015  shlibpath_var=LD_LIBRARY_PATH
10016  shlibpath_overrides_runpath=yes
10017  hardcode_into_libs=yes
10018  # ldd complains unless libraries are executable
10019  postinstall_cmds='chmod +x $lib'
10020  ;;
10021
10022sunos4*)
10023  version_type=sunos
10024  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10025  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10026  shlibpath_var=LD_LIBRARY_PATH
10027  shlibpath_overrides_runpath=yes
10028  if test "$with_gnu_ld" = yes; then
10029    need_lib_prefix=no
10030  fi
10031  need_version=yes
10032  ;;
10033
10034sysv4 | sysv4.3*)
10035  version_type=linux
10036  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10037  soname_spec='${libname}${release}${shared_ext}$major'
10038  shlibpath_var=LD_LIBRARY_PATH
10039  case $host_vendor in
10040    sni)
10041      shlibpath_overrides_runpath=no
10042      need_lib_prefix=no
10043      export_dynamic_flag_spec='${wl}-Blargedynsym'
10044      runpath_var=LD_RUN_PATH
10045      ;;
10046    siemens)
10047      need_lib_prefix=no
10048      ;;
10049    motorola)
10050      need_lib_prefix=no
10051      need_version=no
10052      shlibpath_overrides_runpath=no
10053      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10054      ;;
10055  esac
10056  ;;
10057
10058sysv4*MP*)
10059  if test -d /usr/nec ;then
10060    version_type=linux
10061    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10062    soname_spec='$libname${shared_ext}.$major'
10063    shlibpath_var=LD_LIBRARY_PATH
10064  fi
10065  ;;
10066
10067sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10068  version_type=freebsd-elf
10069  need_lib_prefix=no
10070  need_version=no
10071  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10072  soname_spec='${libname}${release}${shared_ext}$major'
10073  shlibpath_var=LD_LIBRARY_PATH
10074  hardcode_into_libs=yes
10075  if test "$with_gnu_ld" = yes; then
10076    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10077    shlibpath_overrides_runpath=no
10078  else
10079    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10080    shlibpath_overrides_runpath=yes
10081    case $host_os in
10082      sco3.2v5*)
10083        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10084        ;;
10085    esac
10086  fi
10087  sys_lib_dlsearch_path_spec='/usr/lib'
10088  ;;
10089
10090uts4*)
10091  version_type=linux
10092  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10093  soname_spec='${libname}${release}${shared_ext}$major'
10094  shlibpath_var=LD_LIBRARY_PATH
10095  ;;
10096
10097*)
10098  dynamic_linker=no
10099  ;;
10100esac
10101echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10102echo "${ECHO_T}$dynamic_linker" >&6
10103test "$dynamic_linker" = no && can_build_shared=no
10104
10105variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10106if test "$GCC" = yes; then
10107  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10108fi
10109
10110echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10111echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10112hardcode_action=
10113if test -n "$hardcode_libdir_flag_spec" || \
10114   test -n "$runpath_var" || \
10115   test "X$hardcode_automatic" = "Xyes" ; then
10116
10117  # We can hardcode non-existant directories.
10118  if test "$hardcode_direct" != no &&
10119     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10120     # have to relink, otherwise we might link with an installed library
10121     # when we should be linking with a yet-to-be-installed one
10122     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10123     test "$hardcode_minus_L" != no; then
10124    # Linking always hardcodes the temporary library directory.
10125    hardcode_action=relink
10126  else
10127    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10128    hardcode_action=immediate
10129  fi
10130else
10131  # We cannot hardcode anything, or else we can only hardcode existing
10132  # directories.
10133  hardcode_action=unsupported
10134fi
10135echo "$as_me:$LINENO: result: $hardcode_action" >&5
10136echo "${ECHO_T}$hardcode_action" >&6
10137
10138if test "$hardcode_action" = relink; then
10139  # Fast installation is not supported
10140  enable_fast_install=no
10141elif test "$shlibpath_overrides_runpath" = yes ||
10142     test "$enable_shared" = no; then
10143  # Fast installation is not necessary
10144  enable_fast_install=needless
10145fi
10146
10147striplib=
10148old_striplib=
10149echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10150echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10151if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10152  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10153  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10154  echo "$as_me:$LINENO: result: yes" >&5
10155echo "${ECHO_T}yes" >&6
10156else
10157# FIXME - insert some real tests, host_os isn't really good enough
10158  case $host_os in
10159   darwin*)
10160       if test -n "$STRIP" ; then
10161         striplib="$STRIP -x"
10162         echo "$as_me:$LINENO: result: yes" >&5
10163echo "${ECHO_T}yes" >&6
10164       else
10165  echo "$as_me:$LINENO: result: no" >&5
10166echo "${ECHO_T}no" >&6
10167fi
10168       ;;
10169   *)
10170  echo "$as_me:$LINENO: result: no" >&5
10171echo "${ECHO_T}no" >&6
10172    ;;
10173  esac
10174fi
10175
10176if test "x$enable_dlopen" != xyes; then
10177  enable_dlopen=unknown
10178  enable_dlopen_self=unknown
10179  enable_dlopen_self_static=unknown
10180else
10181  lt_cv_dlopen=no
10182  lt_cv_dlopen_libs=
10183
10184  case $host_os in
10185  beos*)
10186    lt_cv_dlopen="load_add_on"
10187    lt_cv_dlopen_libs=
10188    lt_cv_dlopen_self=yes
10189    ;;
10190
10191  mingw* | pw32*)
10192    lt_cv_dlopen="LoadLibrary"
10193    lt_cv_dlopen_libs=
10194   ;;
10195
10196  cygwin*)
10197    lt_cv_dlopen="dlopen"
10198    lt_cv_dlopen_libs=
10199   ;;
10200
10201  darwin*)
10202  # if libdl is installed we need to link against it
10203    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10204echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10205if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10206  echo $ECHO_N "(cached) $ECHO_C" >&6
10207else
10208  ac_check_lib_save_LIBS=$LIBS
10209LIBS="-ldl  $LIBS"
10210cat >conftest.$ac_ext <<_ACEOF
10211/* confdefs.h.  */
10212_ACEOF
10213cat confdefs.h >>conftest.$ac_ext
10214cat >>conftest.$ac_ext <<_ACEOF
10215/* end confdefs.h.  */
10216
10217/* Override any gcc2 internal prototype to avoid an error.  */
10218#ifdef __cplusplus
10219extern "C"
10220#endif
10221/* We use char because int might match the return type of a gcc2
10222   builtin and then its argument prototype would still apply.  */
10223char dlopen ();
10224int
10225main ()
10226{
10227dlopen ();
10228  ;
10229  return 0;
10230}
10231_ACEOF
10232rm -f conftest.$ac_objext conftest$ac_exeext
10233if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10234  (eval $ac_link) 2>conftest.er1
10235  ac_status=$?
10236  grep -v '^ *+' conftest.er1 >conftest.err
10237  rm -f conftest.er1
10238  cat conftest.err >&5
10239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240  (exit $ac_status); } &&
10241         { ac_try='test -z "$ac_c_werror_flag"
10242                         || test ! -s conftest.err'
10243  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10244  (eval $ac_try) 2>&5
10245  ac_status=$?
10246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10247  (exit $ac_status); }; } &&
10248         { ac_try='test -s conftest$ac_exeext'
10249  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10250  (eval $ac_try) 2>&5
10251  ac_status=$?
10252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253  (exit $ac_status); }; }; then
10254  ac_cv_lib_dl_dlopen=yes
10255else
10256  echo "$as_me: failed program was:" >&5
10257sed 's/^/| /' conftest.$ac_ext >&5
10258
10259ac_cv_lib_dl_dlopen=no
10260fi
10261rm -f conftest.err conftest.$ac_objext \
10262      conftest$ac_exeext conftest.$ac_ext
10263LIBS=$ac_check_lib_save_LIBS
10264fi
10265echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10266echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10267if test $ac_cv_lib_dl_dlopen = yes; then
10268  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10269else
10270
10271    lt_cv_dlopen="dyld"
10272    lt_cv_dlopen_libs=
10273    lt_cv_dlopen_self=yes
10274
10275fi
10276
10277   ;;
10278
10279  *)
10280    echo "$as_me:$LINENO: checking for shl_load" >&5
10281echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10282if test "${ac_cv_func_shl_load+set}" = set; then
10283  echo $ECHO_N "(cached) $ECHO_C" >&6
10284else
10285  cat >conftest.$ac_ext <<_ACEOF
10286/* confdefs.h.  */
10287_ACEOF
10288cat confdefs.h >>conftest.$ac_ext
10289cat >>conftest.$ac_ext <<_ACEOF
10290/* end confdefs.h.  */
10291/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10292   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10293#define shl_load innocuous_shl_load
10294
10295/* System header to define __stub macros and hopefully few prototypes,
10296    which can conflict with char shl_load (); below.
10297    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10298    <limits.h> exists even on freestanding compilers.  */
10299
10300#ifdef __STDC__
10301# include <limits.h>
10302#else
10303# include <assert.h>
10304#endif
10305
10306#undef shl_load
10307
10308/* Override any gcc2 internal prototype to avoid an error.  */
10309#ifdef __cplusplus
10310extern "C"
10311{
10312#endif
10313/* We use char because int might match the return type of a gcc2
10314   builtin and then its argument prototype would still apply.  */
10315char shl_load ();
10316/* The GNU C library defines this for functions which it implements
10317    to always fail with ENOSYS.  Some functions are actually named
10318    something starting with __ and the normal name is an alias.  */
10319#if defined (__stub_shl_load) || defined (__stub___shl_load)
10320choke me
10321#else
10322char (*f) () = shl_load;
10323#endif
10324#ifdef __cplusplus
10325}
10326#endif
10327
10328int
10329main ()
10330{
10331return f != shl_load;
10332  ;
10333  return 0;
10334}
10335_ACEOF
10336rm -f conftest.$ac_objext conftest$ac_exeext
10337if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10338  (eval $ac_link) 2>conftest.er1
10339  ac_status=$?
10340  grep -v '^ *+' conftest.er1 >conftest.err
10341  rm -f conftest.er1
10342  cat conftest.err >&5
10343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10344  (exit $ac_status); } &&
10345         { ac_try='test -z "$ac_c_werror_flag"
10346                         || test ! -s conftest.err'
10347  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10348  (eval $ac_try) 2>&5
10349  ac_status=$?
10350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351  (exit $ac_status); }; } &&
10352         { ac_try='test -s conftest$ac_exeext'
10353  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10354  (eval $ac_try) 2>&5
10355  ac_status=$?
10356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357  (exit $ac_status); }; }; then
10358  ac_cv_func_shl_load=yes
10359else
10360  echo "$as_me: failed program was:" >&5
10361sed 's/^/| /' conftest.$ac_ext >&5
10362
10363ac_cv_func_shl_load=no
10364fi
10365rm -f conftest.err conftest.$ac_objext \
10366      conftest$ac_exeext conftest.$ac_ext
10367fi
10368echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10369echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10370if test $ac_cv_func_shl_load = yes; then
10371  lt_cv_dlopen="shl_load"
10372else
10373  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10374echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10375if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10376  echo $ECHO_N "(cached) $ECHO_C" >&6
10377else
10378  ac_check_lib_save_LIBS=$LIBS
10379LIBS="-ldld  $LIBS"
10380cat >conftest.$ac_ext <<_ACEOF
10381/* confdefs.h.  */
10382_ACEOF
10383cat confdefs.h >>conftest.$ac_ext
10384cat >>conftest.$ac_ext <<_ACEOF
10385/* end confdefs.h.  */
10386
10387/* Override any gcc2 internal prototype to avoid an error.  */
10388#ifdef __cplusplus
10389extern "C"
10390#endif
10391/* We use char because int might match the return type of a gcc2
10392   builtin and then its argument prototype would still apply.  */
10393char shl_load ();
10394int
10395main ()
10396{
10397shl_load ();
10398  ;
10399  return 0;
10400}
10401_ACEOF
10402rm -f conftest.$ac_objext conftest$ac_exeext
10403if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10404  (eval $ac_link) 2>conftest.er1
10405  ac_status=$?
10406  grep -v '^ *+' conftest.er1 >conftest.err
10407  rm -f conftest.er1
10408  cat conftest.err >&5
10409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10410  (exit $ac_status); } &&
10411         { ac_try='test -z "$ac_c_werror_flag"
10412                         || test ! -s conftest.err'
10413  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10414  (eval $ac_try) 2>&5
10415  ac_status=$?
10416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10417  (exit $ac_status); }; } &&
10418         { ac_try='test -s conftest$ac_exeext'
10419  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10420  (eval $ac_try) 2>&5
10421  ac_status=$?
10422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10423  (exit $ac_status); }; }; then
10424  ac_cv_lib_dld_shl_load=yes
10425else
10426  echo "$as_me: failed program was:" >&5
10427sed 's/^/| /' conftest.$ac_ext >&5
10428
10429ac_cv_lib_dld_shl_load=no
10430fi
10431rm -f conftest.err conftest.$ac_objext \
10432      conftest$ac_exeext conftest.$ac_ext
10433LIBS=$ac_check_lib_save_LIBS
10434fi
10435echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10436echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10437if test $ac_cv_lib_dld_shl_load = yes; then
10438  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10439else
10440  echo "$as_me:$LINENO: checking for dlopen" >&5
10441echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10442if test "${ac_cv_func_dlopen+set}" = set; then
10443  echo $ECHO_N "(cached) $ECHO_C" >&6
10444else
10445  cat >conftest.$ac_ext <<_ACEOF
10446/* confdefs.h.  */
10447_ACEOF
10448cat confdefs.h >>conftest.$ac_ext
10449cat >>conftest.$ac_ext <<_ACEOF
10450/* end confdefs.h.  */
10451/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10452   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10453#define dlopen innocuous_dlopen
10454
10455/* System header to define __stub macros and hopefully few prototypes,
10456    which can conflict with char dlopen (); below.
10457    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10458    <limits.h> exists even on freestanding compilers.  */
10459
10460#ifdef __STDC__
10461# include <limits.h>
10462#else
10463# include <assert.h>
10464#endif
10465
10466#undef dlopen
10467
10468/* Override any gcc2 internal prototype to avoid an error.  */
10469#ifdef __cplusplus
10470extern "C"
10471{
10472#endif
10473/* We use char because int might match the return type of a gcc2
10474   builtin and then its argument prototype would still apply.  */
10475char dlopen ();
10476/* The GNU C library defines this for functions which it implements
10477    to always fail with ENOSYS.  Some functions are actually named
10478    something starting with __ and the normal name is an alias.  */
10479#if defined (__stub_dlopen) || defined (__stub___dlopen)
10480choke me
10481#else
10482char (*f) () = dlopen;
10483#endif
10484#ifdef __cplusplus
10485}
10486#endif
10487
10488int
10489main ()
10490{
10491return f != dlopen;
10492  ;
10493  return 0;
10494}
10495_ACEOF
10496rm -f conftest.$ac_objext conftest$ac_exeext
10497if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10498  (eval $ac_link) 2>conftest.er1
10499  ac_status=$?
10500  grep -v '^ *+' conftest.er1 >conftest.err
10501  rm -f conftest.er1
10502  cat conftest.err >&5
10503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504  (exit $ac_status); } &&
10505         { ac_try='test -z "$ac_c_werror_flag"
10506                         || test ! -s conftest.err'
10507  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10508  (eval $ac_try) 2>&5
10509  ac_status=$?
10510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511  (exit $ac_status); }; } &&
10512         { ac_try='test -s conftest$ac_exeext'
10513  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10514  (eval $ac_try) 2>&5
10515  ac_status=$?
10516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10517  (exit $ac_status); }; }; then
10518  ac_cv_func_dlopen=yes
10519else
10520  echo "$as_me: failed program was:" >&5
10521sed 's/^/| /' conftest.$ac_ext >&5
10522
10523ac_cv_func_dlopen=no
10524fi
10525rm -f conftest.err conftest.$ac_objext \
10526      conftest$ac_exeext conftest.$ac_ext
10527fi
10528echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10529echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10530if test $ac_cv_func_dlopen = yes; then
10531  lt_cv_dlopen="dlopen"
10532else
10533  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10534echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10535if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10536  echo $ECHO_N "(cached) $ECHO_C" >&6
10537else
10538  ac_check_lib_save_LIBS=$LIBS
10539LIBS="-ldl  $LIBS"
10540cat >conftest.$ac_ext <<_ACEOF
10541/* confdefs.h.  */
10542_ACEOF
10543cat confdefs.h >>conftest.$ac_ext
10544cat >>conftest.$ac_ext <<_ACEOF
10545/* end confdefs.h.  */
10546
10547/* Override any gcc2 internal prototype to avoid an error.  */
10548#ifdef __cplusplus
10549extern "C"
10550#endif
10551/* We use char because int might match the return type of a gcc2
10552   builtin and then its argument prototype would still apply.  */
10553char dlopen ();
10554int
10555main ()
10556{
10557dlopen ();
10558  ;
10559  return 0;
10560}
10561_ACEOF
10562rm -f conftest.$ac_objext conftest$ac_exeext
10563if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10564  (eval $ac_link) 2>conftest.er1
10565  ac_status=$?
10566  grep -v '^ *+' conftest.er1 >conftest.err
10567  rm -f conftest.er1
10568  cat conftest.err >&5
10569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10570  (exit $ac_status); } &&
10571         { ac_try='test -z "$ac_c_werror_flag"
10572                         || test ! -s conftest.err'
10573  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10574  (eval $ac_try) 2>&5
10575  ac_status=$?
10576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577  (exit $ac_status); }; } &&
10578         { ac_try='test -s conftest$ac_exeext'
10579  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10580  (eval $ac_try) 2>&5
10581  ac_status=$?
10582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10583  (exit $ac_status); }; }; then
10584  ac_cv_lib_dl_dlopen=yes
10585else
10586  echo "$as_me: failed program was:" >&5
10587sed 's/^/| /' conftest.$ac_ext >&5
10588
10589ac_cv_lib_dl_dlopen=no
10590fi
10591rm -f conftest.err conftest.$ac_objext \
10592      conftest$ac_exeext conftest.$ac_ext
10593LIBS=$ac_check_lib_save_LIBS
10594fi
10595echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10596echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10597if test $ac_cv_lib_dl_dlopen = yes; then
10598  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10599else
10600  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10601echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10602if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10603  echo $ECHO_N "(cached) $ECHO_C" >&6
10604else
10605  ac_check_lib_save_LIBS=$LIBS
10606LIBS="-lsvld  $LIBS"
10607cat >conftest.$ac_ext <<_ACEOF
10608/* confdefs.h.  */
10609_ACEOF
10610cat confdefs.h >>conftest.$ac_ext
10611cat >>conftest.$ac_ext <<_ACEOF
10612/* end confdefs.h.  */
10613
10614/* Override any gcc2 internal prototype to avoid an error.  */
10615#ifdef __cplusplus
10616extern "C"
10617#endif
10618/* We use char because int might match the return type of a gcc2
10619   builtin and then its argument prototype would still apply.  */
10620char dlopen ();
10621int
10622main ()
10623{
10624dlopen ();
10625  ;
10626  return 0;
10627}
10628_ACEOF
10629rm -f conftest.$ac_objext conftest$ac_exeext
10630if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10631  (eval $ac_link) 2>conftest.er1
10632  ac_status=$?
10633  grep -v '^ *+' conftest.er1 >conftest.err
10634  rm -f conftest.er1
10635  cat conftest.err >&5
10636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637  (exit $ac_status); } &&
10638         { ac_try='test -z "$ac_c_werror_flag"
10639                         || test ! -s conftest.err'
10640  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10641  (eval $ac_try) 2>&5
10642  ac_status=$?
10643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644  (exit $ac_status); }; } &&
10645         { ac_try='test -s conftest$ac_exeext'
10646  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10647  (eval $ac_try) 2>&5
10648  ac_status=$?
10649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10650  (exit $ac_status); }; }; then
10651  ac_cv_lib_svld_dlopen=yes
10652else
10653  echo "$as_me: failed program was:" >&5
10654sed 's/^/| /' conftest.$ac_ext >&5
10655
10656ac_cv_lib_svld_dlopen=no
10657fi
10658rm -f conftest.err conftest.$ac_objext \
10659      conftest$ac_exeext conftest.$ac_ext
10660LIBS=$ac_check_lib_save_LIBS
10661fi
10662echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10663echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10664if test $ac_cv_lib_svld_dlopen = yes; then
10665  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10666else
10667  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10668echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10669if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10670  echo $ECHO_N "(cached) $ECHO_C" >&6
10671else
10672  ac_check_lib_save_LIBS=$LIBS
10673LIBS="-ldld  $LIBS"
10674cat >conftest.$ac_ext <<_ACEOF
10675/* confdefs.h.  */
10676_ACEOF
10677cat confdefs.h >>conftest.$ac_ext
10678cat >>conftest.$ac_ext <<_ACEOF
10679/* end confdefs.h.  */
10680
10681/* Override any gcc2 internal prototype to avoid an error.  */
10682#ifdef __cplusplus
10683extern "C"
10684#endif
10685/* We use char because int might match the return type of a gcc2
10686   builtin and then its argument prototype would still apply.  */
10687char dld_link ();
10688int
10689main ()
10690{
10691dld_link ();
10692  ;
10693  return 0;
10694}
10695_ACEOF
10696rm -f conftest.$ac_objext conftest$ac_exeext
10697if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10698  (eval $ac_link) 2>conftest.er1
10699  ac_status=$?
10700  grep -v '^ *+' conftest.er1 >conftest.err
10701  rm -f conftest.er1
10702  cat conftest.err >&5
10703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10704  (exit $ac_status); } &&
10705         { ac_try='test -z "$ac_c_werror_flag"
10706                         || test ! -s conftest.err'
10707  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10708  (eval $ac_try) 2>&5
10709  ac_status=$?
10710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711  (exit $ac_status); }; } &&
10712         { ac_try='test -s conftest$ac_exeext'
10713  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10714  (eval $ac_try) 2>&5
10715  ac_status=$?
10716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717  (exit $ac_status); }; }; then
10718  ac_cv_lib_dld_dld_link=yes
10719else
10720  echo "$as_me: failed program was:" >&5
10721sed 's/^/| /' conftest.$ac_ext >&5
10722
10723ac_cv_lib_dld_dld_link=no
10724fi
10725rm -f conftest.err conftest.$ac_objext \