source: stable/2.6/Cbc/configure @ 1527

Last change on this file since 1527 was 1527, checked in by lou, 9 years ago

restoring Cbc/stable/2.6

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