source: stable/2.6/Cbc/configure @ 1525

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

temporarily committing release candidate

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