source: stable/2.8/Cbc/configure @ 2046

Last change on this file since 2046 was 2046, checked in by tkr, 5 years ago

restoring Cbc/stable/2.8

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