source: stable/2.8/Cbc/configure @ 1976

Last change on this file since 1976 was 1976, checked in by tkr, 6 years ago

temporarily committing release candidate

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