source: stable/2.9/Cbc/configure @ 2224

Last change on this file since 2224 was 2224, checked in by tkr, 3 years ago

temporarily committing release candidate

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