source: trunk/Cbc/configure @ 1631

Last change on this file since 1631 was 1631, checked in by stefan, 9 years ago

rerun autotools

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