source: trunk/Cbc/configure @ 2464

Last change on this file since 2464 was 2392, checked in by lou, 10 months ago

Add a check for Mumps to configure.ac so that COIN_HAS_MUMPS is defined when
CbcOrClpParam?.cpp is pulled into CbcCbcParam?.cpp.

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