source: trunk/Cbc/configure @ 2223

Last change on this file since 2223 was 2204, checked in by stefan, 4 years ago

have configure flags to enable nauty use (CbcSymmetry?); disable NAUTY_MAX_LEVEL for now: neither Cbc nor nauty seem to define the nauty_maxalllevel symbol

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