source: stable/BSPsplit/Cbc/configure @ 1187

Last change on this file since 1187 was 1187, checked in by andreasw, 10 years ago

final instdir commits for tonight

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