source: trunk/Cbc/configure @ 1635

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