source: trunk/Cbc/configure @ 1480

Last change on this file since 1480 was 1480, checked in by stefan, 9 years ago

rerun autotools

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