source: stable/2.8/Cbc/configure @ 1963

Last change on this file since 1963 was 1963, checked in by tkr, 6 years ago

restoring Cbc/stable/2.8

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