source: trunk/Cbc/configure @ 1583

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

fix addlibs file for cygwin/cl build; rerun autotools

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