source: stable/2.10/Cbc/configure @ 2896

Last change on this file since 2896 was 2896, checked in by stefan, 19 months ago

restoring Cbc/stable/2.10

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