source: trunk/Cbc/configure @ 1604

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

remove unnessary last argument of AC_COIN_MAIN_PACKAGEDIR; rerun autotools

  • Property svn:executable set to *
File size: 1017.0 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for Cbc trunk.
4#
5# Report bugs to <cbc@lists.coin-or.org>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='Cbc'
431PACKAGE_TARNAME='cbc'
432PACKAGE_VERSION='trunk'
433PACKAGE_STRING='Cbc trunk'
434PACKAGE_BUGREPORT='cbc@lists.coin-or.org'
435
436ac_unique_file="src/CbcTree.hpp"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion CBC_SVN_REV COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX COIN_CXX_IS_CL_TRUE COIN_CXX_IS_CL_FALSE MPICXX EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS PKG_CONFIG ac_pt_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED COINDEPEND_LIBS COINDEPEND_CFLAGS COINDEPEND_DATA COINDEPEND_DEPENDENCIES COINDEPEND_LIBS_INSTALLED COINDEPEND_CFLAGS_INSTALLED COINDEPEND_DATA_INSTALLED CBCLIB_CFLAGS CBCLIB_LIBS CBCLIB_PCLIBS CBCLIB_PCREQUIRES CBCLIB_DEPENDENCIES CBCLIB_CFLAGS_INSTALLED CBCLIB_LIBS_INSTALLED CBCGENERIC_CFLAGS CBCGENERIC_LIBS CBCGENERIC_PCLIBS CBCGENERIC_PCREQUIRES CBCGENERIC_DEPENDENCIES CBCGENERIC_CFLAGS_INSTALLED CBCGENERIC_LIBS_INSTALLED COIN_HAS_COINDEPEND_TRUE COIN_HAS_COINDEPEND_FALSE CLP_LIBS CLP_CFLAGS CLP_DATA CLP_DEPENDENCIES CLP_LIBS_INSTALLED CLP_CFLAGS_INSTALLED CLP_DATA_INSTALLED COIN_HAS_CLP_TRUE COIN_HAS_CLP_FALSE OSITESTS_LIBS OSITESTS_CFLAGS OSITESTS_DATA OSITESTS_DEPENDENCIES OSITESTS_LIBS_INSTALLED OSITESTS_CFLAGS_INSTALLED OSITESTS_DATA_INSTALLED COIN_HAS_OSITESTS_TRUE COIN_HAS_OSITESTS_FALSE SAMPLE_LIBS SAMPLE_CFLAGS SAMPLE_DATA SAMPLE_DEPENDENCIES SAMPLE_LIBS_INSTALLED SAMPLE_CFLAGS_INSTALLED SAMPLE_DATA_INSTALLED COIN_HAS_SAMPLE_TRUE COIN_HAS_SAMPLE_FALSE NETLIB_LIBS NETLIB_CFLAGS NETLIB_DATA NETLIB_DEPENDENCIES NETLIB_LIBS_INSTALLED NETLIB_CFLAGS_INSTALLED NETLIB_DATA_INSTALLED COIN_HAS_NETLIB_TRUE COIN_HAS_NETLIB_FALSE MIPLIB3_LIBS MIPLIB3_CFLAGS MIPLIB3_DATA MIPLIB3_DEPENDENCIES MIPLIB3_LIBS_INSTALLED MIPLIB3_CFLAGS_INSTALLED MIPLIB3_DATA_INSTALLED COIN_HAS_MIPLIB3_TRUE COIN_HAS_MIPLIB3_FALSE DYLP_LIBS DYLP_CFLAGS DYLP_DATA DYLP_DEPENDENCIES DYLP_LIBS_INSTALLED DYLP_CFLAGS_INSTALLED DYLP_DATA_INSTALLED COIN_HAS_DYLP_TRUE COIN_HAS_DYLP_FALSE VOL_LIBS VOL_CFLAGS VOL_DATA VOL_DEPENDENCIES VOL_LIBS_INSTALLED VOL_CFLAGS_INSTALLED VOL_DATA_INSTALLED COIN_HAS_VOL_TRUE COIN_HAS_VOL_FALSE CPX_LIBS CPX_CFLAGS CPX_DATA CPX_DEPENDENCIES CPX_LIBS_INSTALLED CPX_CFLAGS_INSTALLED CPX_DATA_INSTALLED COIN_HAS_CPX_TRUE COIN_HAS_CPX_FALSE GLPK_LIBS GLPK_CFLAGS GLPK_DATA GLPK_DEPENDENCIES GLPK_LIBS_INSTALLED GLPK_CFLAGS_INSTALLED GLPK_DATA_INSTALLED COIN_HAS_GLPK_TRUE COIN_HAS_GLPK_FALSE GRB_LIBS GRB_CFLAGS GRB_DATA GRB_DEPENDENCIES GRB_LIBS_INSTALLED GRB_CFLAGS_INSTALLED GRB_DATA_INSTALLED COIN_HAS_GRB_TRUE COIN_HAS_GRB_FALSE MSK_LIBS MSK_CFLAGS MSK_DATA MSK_DEPENDENCIES MSK_LIBS_INSTALLED MSK_CFLAGS_INSTALLED MSK_DATA_INSTALLED COIN_HAS_MSK_TRUE COIN_HAS_MSK_FALSE SPX_LIBS SPX_CFLAGS SPX_DATA SPX_DEPENDENCIES SPX_LIBS_INSTALLED SPX_CFLAGS_INSTALLED SPX_DATA_INSTALLED COIN_HAS_SPX_TRUE COIN_HAS_SPX_FALSE XPR_LIBS XPR_CFLAGS XPR_DATA XPR_DEPENDENCIES XPR_LIBS_INSTALLED XPR_CFLAGS_INSTALLED XPR_DATA_INSTALLED COIN_HAS_XPR_TRUE COIN_HAS_XPR_FALSE ASL_LIBS ASL_CFLAGS ASL_DATA ASL_DEPENDENCIES ASL_LIBS_INSTALLED ASL_CFLAGS_INSTALLED ASL_DATA_INSTALLED COIN_HAS_ASL_TRUE COIN_HAS_ASL_FALSE CBC_BUILD_CBC_GENERIC_TRUE CBC_BUILD_CBC_GENERIC_FALSE OSICBC_DFLT_SOLVER_CLP_TRUE OSICBC_DFLT_SOLVER_CLP_FALSE OSICBC_DFLT_SOLVER_CPX_TRUE OSICBC_DFLT_SOLVER_CPX_FALSE OSICBC_DFLT_SOLVER_DYLP_TRUE OSICBC_DFLT_SOLVER_DYLP_FALSE OSICBC_DFLT_SOLVER_GLPK_TRUE OSICBC_DFLT_SOLVER_GLPK_FALSE OSICBC_DFLT_SOLVER_GRB_TRUE OSICBC_DFLT_SOLVER_GRB_FALSE OSICBC_DFLT_SOLVER_MSK_TRUE OSICBC_DFLT_SOLVER_MSK_FALSE OSICBC_DFLT_SOLVER_SPX_TRUE OSICBC_DFLT_SOLVER_SPX_FALSE OSICBC_DFLT_SOLVER_SYM_TRUE OSICBC_DFLT_SOLVER_SYM_FALSE OSICBC_DFLT_SOLVER_VOL_TRUE OSICBC_DFLT_SOLVER_VOL_FALSE OSICBC_DFLT_SOLVER_XPR_TRUE OSICBC_DFLT_SOLVER_XPR_FALSE coin_have_doxygen coin_doxy_usedot coin_doxy_tagname coin_doxy_logname coin_doxy_tagfiles coin_doxy_excludes LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_CXXDEFS_set=${CXXDEFS+set}
953ac_env_CXXDEFS_value=$CXXDEFS
954ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
955ac_cv_env_CXXDEFS_value=$CXXDEFS
956ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
957ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
958ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
959ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
960ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
961ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
962ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
963ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
964ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
965ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
966ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
967ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
968ac_env_CXX_set=${CXX+set}
969ac_env_CXX_value=$CXX
970ac_cv_env_CXX_set=${CXX+set}
971ac_cv_env_CXX_value=$CXX
972ac_env_CXXFLAGS_set=${CXXFLAGS+set}
973ac_env_CXXFLAGS_value=$CXXFLAGS
974ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
975ac_cv_env_CXXFLAGS_value=$CXXFLAGS
976ac_env_MPICXX_set=${MPICXX+set}
977ac_env_MPICXX_value=$MPICXX
978ac_cv_env_MPICXX_set=${MPICXX+set}
979ac_cv_env_MPICXX_value=$MPICXX
980ac_env_CPP_set=${CPP+set}
981ac_env_CPP_value=$CPP
982ac_cv_env_CPP_set=${CPP+set}
983ac_cv_env_CPP_value=$CPP
984ac_env_CXXCPP_set=${CXXCPP+set}
985ac_env_CXXCPP_value=$CXXCPP
986ac_cv_env_CXXCPP_set=${CXXCPP+set}
987ac_cv_env_CXXCPP_value=$CXXCPP
988ac_env_F77_set=${F77+set}
989ac_env_F77_value=$F77
990ac_cv_env_F77_set=${F77+set}
991ac_cv_env_F77_value=$F77
992ac_env_FFLAGS_set=${FFLAGS+set}
993ac_env_FFLAGS_value=$FFLAGS
994ac_cv_env_FFLAGS_set=${FFLAGS+set}
995ac_cv_env_FFLAGS_value=$FFLAGS
996ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
997ac_env_PKG_CONFIG_value=$PKG_CONFIG
998ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
999ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
1000
1001#
1002# Report the --help message.
1003#
1004if test "$ac_init_help" = "long"; then
1005  # Omit some internal or obsolete options to make the list less imposing.
1006  # This message is too long to be a string in the A/UX 3.1 sh.
1007  cat <<_ACEOF
1008\`configure' configures Cbc trunk to adapt to many kinds of systems.
1009
1010Usage: $0 [OPTION]... [VAR=VALUE]...
1011
1012To assign environment variables (e.g., CC, CFLAGS...), specify them as
1013VAR=VALUE.  See below for descriptions of some of the useful variables.
1014
1015Defaults for the options are specified in brackets.
1016
1017Configuration:
1018  -h, --help              display this help and exit
1019      --help=short        display options specific to this package
1020      --help=recursive    display the short help of all the included packages
1021  -V, --version           display version information and exit
1022  -q, --quiet, --silent   do not print \`checking...' messages
1023      --cache-file=FILE   cache test results in FILE [disabled]
1024  -C, --config-cache      alias for \`--cache-file=config.cache'
1025  -n, --no-create         do not create output files
1026      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1027
1028_ACEOF
1029
1030  cat <<_ACEOF
1031Installation directories:
1032  --prefix=PREFIX         install architecture-independent files in PREFIX
1033                          [$ac_default_prefix]
1034  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1035                          [PREFIX]
1036
1037By default, \`make install' will install all the files in
1038\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1039an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1040for instance \`--prefix=\$HOME'.
1041
1042For better control, use the options below.
1043
1044Fine tuning of the installation directories:
1045  --bindir=DIR           user executables [EPREFIX/bin]
1046  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1047  --libexecdir=DIR       program executables [EPREFIX/libexec]
1048  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1049  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1050  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1051  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1052  --libdir=DIR           object code libraries [EPREFIX/lib]
1053  --includedir=DIR       C header files [PREFIX/include]
1054  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1055  --infodir=DIR          info documentation [PREFIX/info]
1056  --mandir=DIR           man documentation [PREFIX/man]
1057_ACEOF
1058
1059  cat <<\_ACEOF
1060
1061Program names:
1062  --program-prefix=PREFIX            prepend PREFIX to installed program names
1063  --program-suffix=SUFFIX            append SUFFIX to installed program names
1064  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1065
1066System types:
1067  --build=BUILD     configure for building on BUILD [guessed]
1068  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1069_ACEOF
1070fi
1071
1072if test -n "$ac_init_help"; then
1073  case $ac_init_help in
1074     short | recursive ) echo "Configuration of Cbc trunk:";;
1075   esac
1076  cat <<\_ACEOF
1077
1078Optional Features:
1079  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1080  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1081  --enable-debug          compile all projects with debug options tests
1082  --enable-debug-cbc compile this project (Cbc) with debug options
1083  --enable-doscompile     Under Cygwin, compile so that executables run under
1084                          DOS. Set to mingw to use gcc/g++/ld with
1085                          -mno-cygwin. Set to msvc to use cl/link (or
1086                          icl/link). Default when mentioned: mingw. Default
1087                          when not mentioned: disabled.
1088  --enable-static[=PKGS]
1089                          build static libraries [default=no]
1090  --disable-dependency-tracking  speeds up one-time build
1091  --enable-dependency-tracking   do not reject slow dependency extractors
1092  --enable-maintainer-mode  enable make rules and dependencies not useful
1093                          (and sometimes confusing) to the casual installer
1094  --enable-shared[=PKGS]
1095                          build shared libraries [default=yes]
1096  --enable-fast-install[=PKGS]
1097                          optimize for fast installation [default=yes]
1098  --disable-libtool-lock  avoid locking (might break parallel builds)
1099  --enable-pkg-config     use pkg-config if available (default is yes)
1100  --enable-interpackage-dependencies
1101                          whether to deduce Makefile dependencies from package
1102                          linker flags (default: yes)
1103  --enable-cbc-parallel   enables compilation of the SMP version of Cbc
1104
1105Optional Packages:
1106  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1107  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1108  --with-cbc-verbosity specify the debug verbosity level for project Cbc
1109  --with-cbc-checklevel specify the sanity check level for project Cbc
1110  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1111  --with-pic              try to use only PIC/non-PIC objects [default=use
1112                          both]
1113  --with-tags[=TAGS]
1114                          include additional configurations [automatic]
1115  --with-coin-instdir     prefix of installation directory for precompiled
1116                          COIN packages
1117  --with-coindepend-lib linker flags for using package CoinDepend
1118  --with-coindepend-incdir
1119                          directory with header files for using package
1120                          CoinDepend
1121  --with-coindepend-datadir
1122                          directory with data files for using package
1123                          CoinDepend
1124  --with-clp-lib linker flags for using package Clp
1125  --with-clp-incdir directory with header files for using package Clp
1126  --with-clp-datadir directory with data files for using package Clp
1127  --with-ositests-lib linker flags for using package OsiTests
1128  --with-ositests-incdir directory with header files for using package
1129                          OsiTests
1130  --with-ositests-datadir directory with data files for using package OsiTests
1131  --with-sample-lib linker flags for using package Sample
1132  --with-sample-incdir directory with header files for using package Sample
1133  --with-sample-datadir directory with data files for using package Sample
1134  --with-netlib-lib linker flags for using package Netlib
1135  --with-netlib-incdir directory with header files for using package Netlib
1136  --with-netlib-datadir directory with data files for using package Netlib
1137  --with-miplib3-lib linker flags for using package Miplib3
1138  --with-miplib3-incdir directory with header files for using package Miplib3
1139  --with-miplib3-datadir directory with data files for using package Miplib3
1140  --with-dylp-lib linker flags for using package DyLP
1141  --with-dylp-incdir directory with header files for using package DyLP
1142  --with-dylp-datadir directory with data files for using package DyLP
1143  --with-vol-lib linker flags for using package Vol
1144  --with-vol-incdir directory with header files for using package Vol
1145  --with-vol-datadir directory with data files for using package Vol
1146  --with-cpx-lib linker flags for using package Cpx
1147  --with-cpx-incdir directory with header files for using package Cpx
1148  --with-cpx-datadir directory with data files for using package Cpx
1149  --with-glpk-lib linker flags for using package Glpk
1150  --with-glpk-incdir directory with header files for using package Glpk
1151  --with-glpk-datadir directory with data files for using package Glpk
1152  --with-grb-lib linker flags for using package Grb
1153  --with-grb-incdir directory with header files for using package Grb
1154  --with-grb-datadir directory with data files for using package Grb
1155  --with-msk-lib linker flags for using package Msk
1156  --with-msk-incdir directory with header files for using package Msk
1157  --with-msk-datadir directory with data files for using package Msk
1158  --with-spx-lib linker flags for using package Spx
1159  --with-spx-incdir directory with header files for using package Spx
1160  --with-spx-datadir directory with data files for using package Spx
1161  --with-xpr-lib linker flags for using package Xpr
1162  --with-xpr-incdir directory with header files for using package Xpr
1163  --with-xpr-datadir directory with data files for using package Xpr
1164  --with-asl-lib linker flags for using package ASL
1165  --with-asl-incdir directory with header files for using package ASL
1166  --with-asl-datadir directory with data files for using package ASL
1167  --with-cbc-generic      specify whether to build cbc-generic (default: no)
1168  --with-cbc-generic-solver
1169                          specify default solver for cbc-generic in lower case
1170                          letters (if not given, clp is assumed)
1171  --with-osicbc-default-solver
1172                          specify underlying solver for OsiCbc (default clp)
1173  --with-dot              use dot (from graphviz) when creating documentation
1174                          with doxygen if available; --without-dot to disable
1175
1176Some influential environment variables:
1177  CDEFS       Additional -D flags to be used when compiling C code.
1178  ADD_CFLAGS  Additional C compiler options
1179  DBG_CFLAGS  Debug C compiler options
1180  OPT_CFLAGS  Optimize C compiler options
1181  CC          C compiler command
1182  CFLAGS      C compiler flags
1183  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1184              nonstandard directory <lib dir>
1185  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1186              headers in a nonstandard directory <include dir>
1187  MPICC       C MPI Compiler
1188  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1189  ADD_CXXFLAGS
1190              Additional C++ compiler options
1191  DBG_CXXFLAGS
1192              Debug C++ compiler options
1193  OPT_CXXFLAGS
1194              Optimize C++ compiler options
1195  CXX         C++ compiler command
1196  CXXFLAGS    C++ compiler flags
1197  MPICXX      C++ MPI Compiler
1198  CPP         C preprocessor
1199  CXXCPP      C++ preprocessor
1200  F77         Fortran 77 compiler command
1201  FFLAGS      Fortran 77 compiler flags
1202  PKG_CONFIG  path to pkg-config utility
1203
1204Use these variables to override the choices made by `configure' or to help
1205it to find libraries and programs with nonstandard names/locations.
1206
1207Report bugs to <cbc@lists.coin-or.org>.
1208_ACEOF
1209fi
1210
1211if test "$ac_init_help" = "recursive"; then
1212  # If there are subdirs, report their specific --help.
1213  ac_popdir=`pwd`
1214  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1215    test -d $ac_dir || continue
1216    ac_builddir=.
1217
1218if test "$ac_dir" != .; then
1219  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1220  # A "../" for each directory in $ac_dir_suffix.
1221  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1222else
1223  ac_dir_suffix= ac_top_builddir=
1224fi
1225
1226case $srcdir in
1227  .)  # No --srcdir option.  We are building in place.
1228    ac_srcdir=.
1229    if test -z "$ac_top_builddir"; then
1230       ac_top_srcdir=.
1231    else
1232       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1233    fi ;;
1234  [\\/]* | ?:[\\/]* )  # Absolute path.
1235    ac_srcdir=$srcdir$ac_dir_suffix;
1236    ac_top_srcdir=$srcdir ;;
1237  *) # Relative path.
1238    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1239    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1240esac
1241
1242# Do not use `cd foo && pwd` to compute absolute paths, because
1243# the directories may not exist.
1244case `pwd` in
1245.) ac_abs_builddir="$ac_dir";;
1246*)
1247  case "$ac_dir" in
1248  .) ac_abs_builddir=`pwd`;;
1249  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1250  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1251  esac;;
1252esac
1253case $ac_abs_builddir in
1254.) ac_abs_top_builddir=${ac_top_builddir}.;;
1255*)
1256  case ${ac_top_builddir}. in
1257  .) ac_abs_top_builddir=$ac_abs_builddir;;
1258  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1259  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1260  esac;;
1261esac
1262case $ac_abs_builddir in
1263.) ac_abs_srcdir=$ac_srcdir;;
1264*)
1265  case $ac_srcdir in
1266  .) ac_abs_srcdir=$ac_abs_builddir;;
1267  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1268  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1269  esac;;
1270esac
1271case $ac_abs_builddir in
1272.) ac_abs_top_srcdir=$ac_top_srcdir;;
1273*)
1274  case $ac_top_srcdir in
1275  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1276  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1277  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1278  esac;;
1279esac
1280
1281    cd $ac_dir
1282    # Check for guested configure; otherwise get Cygnus style configure.
1283    if test -f $ac_srcdir/configure.gnu; then
1284      echo
1285      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1286    elif test -f $ac_srcdir/configure; then
1287      echo
1288      $SHELL $ac_srcdir/configure  --help=recursive
1289    elif test -f $ac_srcdir/configure.ac ||
1290           test -f $ac_srcdir/configure.in; then
1291      echo
1292      $ac_configure --help
1293    else
1294      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1295    fi
1296    cd $ac_popdir
1297  done
1298fi
1299
1300test -n "$ac_init_help" && exit 0
1301if $ac_init_version; then
1302  cat <<\_ACEOF
1303Cbc configure trunk
1304generated by GNU Autoconf 2.59
1305
1306Copyright (C) 2003 Free Software Foundation, Inc.
1307This configure script is free software; the Free Software Foundation
1308gives unlimited permission to copy, distribute and modify it.
1309
1310
1311Copyright 2006 International Business Machines and others.
1312All Rights Reserved.
1313This file is part of the open source package Coin which is distributed
1314under the Eclipse Public License.
1315_ACEOF
1316  exit 0
1317fi
1318exec 5>config.log
1319cat >&5 <<_ACEOF
1320This file contains any messages produced by compilers while
1321running configure, to aid debugging if configure makes a mistake.
1322
1323It was created by Cbc $as_me trunk, which was
1324generated by GNU Autoconf 2.59.  Invocation command line was
1325
1326  $ $0 $@
1327
1328_ACEOF
1329{
1330cat <<_ASUNAME
1331## --------- ##
1332## Platform. ##
1333## --------- ##
1334
1335hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1336uname -m = `(uname -m) 2>/dev/null || echo unknown`
1337uname -r = `(uname -r) 2>/dev/null || echo unknown`
1338uname -s = `(uname -s) 2>/dev/null || echo unknown`
1339uname -v = `(uname -v) 2>/dev/null || echo unknown`
1340
1341/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1342/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1343
1344/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1345/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1346/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1347hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1348/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1349/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1350/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1351
1352_ASUNAME
1353
1354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1355for as_dir in $PATH
1356do
1357  IFS=$as_save_IFS
1358  test -z "$as_dir" && as_dir=.
1359  echo "PATH: $as_dir"
1360done
1361
1362} >&5
1363
1364cat >&5 <<_ACEOF
1365
1366
1367## ----------- ##
1368## Core tests. ##
1369## ----------- ##
1370
1371_ACEOF
1372
1373
1374# Keep a trace of the command line.
1375# Strip out --no-create and --no-recursion so they do not pile up.
1376# Strip out --silent because we don't want to record it for future runs.
1377# Also quote any args containing shell meta-characters.
1378# Make two passes to allow for proper duplicate-argument suppression.
1379ac_configure_args=
1380ac_configure_args0=
1381ac_configure_args1=
1382ac_sep=
1383ac_must_keep_next=false
1384for ac_pass in 1 2
1385do
1386  for ac_arg
1387  do
1388    case $ac_arg in
1389    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1390    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1391    | -silent | --silent | --silen | --sile | --sil)
1392      continue ;;
1393    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1394      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1395    esac
1396    case $ac_pass in
1397    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1398    2)
1399      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1400      if test $ac_must_keep_next = true; then
1401        ac_must_keep_next=false # Got value, back to normal.
1402      else
1403        case $ac_arg in
1404          *=* | --config-cache | -C | -disable-* | --disable-* \
1405          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1406          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1407          | -with-* | --with-* | -without-* | --without-* | --x)
1408            case "$ac_configure_args0 " in
1409              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1410            esac
1411            ;;
1412          -* ) ac_must_keep_next=true ;;
1413        esac
1414      fi
1415      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1416      # Get rid of the leading space.
1417      ac_sep=" "
1418      ;;
1419    esac
1420  done
1421done
1422$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1423$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1424
1425# When interrupted or exit'd, cleanup temporary files, and complete
1426# config.log.  We remove comments because anyway the quotes in there
1427# would cause problems or look ugly.
1428# WARNING: Be sure not to use single quotes in there, as some shells,
1429# such as our DU 5.0 friend, will then `close' the trap.
1430trap 'exit_status=$?
1431  # Save into config.log some information that might help in debugging.
1432  {
1433    echo
1434
1435    cat <<\_ASBOX
1436## ---------------- ##
1437## Cache variables. ##
1438## ---------------- ##
1439_ASBOX
1440    echo
1441    # The following way of writing the cache mishandles newlines in values,
1442{
1443  (set) 2>&1 |
1444    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1445    *ac_space=\ *)
1446      sed -n \
1447        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1448          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1449      ;;
1450    *)
1451      sed -n \
1452        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1453      ;;
1454    esac;
1455}
1456    echo
1457
1458    cat <<\_ASBOX
1459## ----------------- ##
1460## Output variables. ##
1461## ----------------- ##
1462_ASBOX
1463    echo
1464    for ac_var in $ac_subst_vars
1465    do
1466      eval ac_val=$`echo $ac_var`
1467      echo "$ac_var='"'"'$ac_val'"'"'"
1468    done | sort
1469    echo
1470
1471    if test -n "$ac_subst_files"; then
1472      cat <<\_ASBOX
1473## ------------- ##
1474## Output files. ##
1475## ------------- ##
1476_ASBOX
1477      echo
1478      for ac_var in $ac_subst_files
1479      do
1480        eval ac_val=$`echo $ac_var`
1481        echo "$ac_var='"'"'$ac_val'"'"'"
1482      done | sort
1483      echo
1484    fi
1485
1486    if test -s confdefs.h; then
1487      cat <<\_ASBOX
1488## ----------- ##
1489## confdefs.h. ##
1490## ----------- ##
1491_ASBOX
1492      echo
1493      sed "/^$/d" confdefs.h | sort
1494      echo
1495    fi
1496    test "$ac_signal" != 0 &&
1497      echo "$as_me: caught signal $ac_signal"
1498    echo "$as_me: exit $exit_status"
1499  } >&5
1500  rm -f core *.core &&
1501  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1502    exit $exit_status
1503     ' 0
1504for ac_signal in 1 2 13 15; do
1505  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1506done
1507ac_signal=0
1508
1509# confdefs.h avoids OS command line length limits that DEFS can exceed.
1510rm -rf conftest* confdefs.h
1511# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1512echo >confdefs.h
1513
1514# Predefined preprocessor variables.
1515
1516cat >>confdefs.h <<_ACEOF
1517#define PACKAGE_NAME "$PACKAGE_NAME"
1518_ACEOF
1519
1520
1521cat >>confdefs.h <<_ACEOF
1522#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1523_ACEOF
1524
1525
1526cat >>confdefs.h <<_ACEOF
1527#define PACKAGE_VERSION "$PACKAGE_VERSION"
1528_ACEOF
1529
1530
1531cat >>confdefs.h <<_ACEOF
1532#define PACKAGE_STRING "$PACKAGE_STRING"
1533_ACEOF
1534
1535
1536cat >>confdefs.h <<_ACEOF
1537#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1538_ACEOF
1539
1540
1541# Let the site file select an alternate cache file if it wants to.
1542# Prefer explicitly selected file to automatically selected ones.
1543if test -z "$CONFIG_SITE"; then
1544  if test "x$prefix" != xNONE; then
1545    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1546  else
1547    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1548  fi
1549fi
1550for ac_site_file in $CONFIG_SITE; do
1551  if test -r "$ac_site_file"; then
1552    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1553echo "$as_me: loading site script $ac_site_file" >&6;}
1554    sed 's/^/| /' "$ac_site_file" >&5
1555    . "$ac_site_file"
1556  fi
1557done
1558
1559if test -r "$cache_file"; then
1560  # Some versions of bash will fail to source /dev/null (special
1561  # files actually), so we avoid doing that.
1562  if test -f "$cache_file"; then
1563    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1564echo "$as_me: loading cache $cache_file" >&6;}
1565    case $cache_file in
1566      [\\/]* | ?:[\\/]* ) . $cache_file;;
1567      *)                      . ./$cache_file;;
1568    esac
1569  fi
1570else
1571  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1572echo "$as_me: creating cache $cache_file" >&6;}
1573  >$cache_file
1574fi
1575
1576# Check that the precious variables saved in the cache have kept the same
1577# value.
1578ac_cache_corrupted=false
1579for ac_var in `(set) 2>&1 |
1580               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1581  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1582  eval ac_new_set=\$ac_env_${ac_var}_set
1583  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1584  eval ac_new_val="\$ac_env_${ac_var}_value"
1585  case $ac_old_set,$ac_new_set in
1586    set,)
1587      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1588echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1589      ac_cache_corrupted=: ;;
1590    ,set)
1591      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1592echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1593      ac_cache_corrupted=: ;;
1594    ,);;
1595    *)
1596      if test "x$ac_old_val" != "x$ac_new_val"; then
1597        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1598echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1599        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1600echo "$as_me:   former value:  $ac_old_val" >&2;}
1601        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1602echo "$as_me:   current value: $ac_new_val" >&2;}
1603        ac_cache_corrupted=:
1604      fi;;
1605  esac
1606  # Pass precious variables to config.status.
1607  if test "$ac_new_set" = set; then
1608    case $ac_new_val in
1609    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1610      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1611    *) ac_arg=$ac_var=$ac_new_val ;;
1612    esac
1613    case " $ac_configure_args " in
1614      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1615      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1616    esac
1617  fi
1618done
1619if $ac_cache_corrupted; then
1620  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1621echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1622  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1623echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1624   { (exit 1); exit 1; }; }
1625fi
1626
1627ac_ext=c
1628ac_cpp='$CPP $CPPFLAGS'
1629ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1630ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1631ac_compiler_gnu=$ac_cv_c_compiler_gnu
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662# List one file in the package so that the configure script can test
1663# whether the package is actually there
1664
1665
1666# Where should everything be installed by default?  Here, we want it
1667# to be installed directly in 'bin', 'lib', 'include' subdirectories
1668# of the directory where configure is run.  The default would be
1669# /usr/local.
1670
1671
1672#############################################################################
1673#                         Standard build tool stuff                         #
1674#############################################################################
1675
1676# Get the system type
1677ac_aux_dir=
1678for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1679  if test -f $ac_dir/install-sh; then
1680    ac_aux_dir=$ac_dir
1681    ac_install_sh="$ac_aux_dir/install-sh -c"
1682    break
1683  elif test -f $ac_dir/install.sh; then
1684    ac_aux_dir=$ac_dir
1685    ac_install_sh="$ac_aux_dir/install.sh -c"
1686    break
1687  elif test -f $ac_dir/shtool; then
1688    ac_aux_dir=$ac_dir
1689    ac_install_sh="$ac_aux_dir/shtool install -c"
1690    break
1691  fi
1692done
1693if test -z "$ac_aux_dir"; then
1694  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1695echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1696   { (exit 1); exit 1; }; }
1697fi
1698ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1699ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1700ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1701
1702# Make sure we can run config.sub.
1703$ac_config_sub sun4 >/dev/null 2>&1 ||
1704  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1705echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1706   { (exit 1); exit 1; }; }
1707
1708echo "$as_me:$LINENO: checking build system type" >&5
1709echo $ECHO_N "checking build system type... $ECHO_C" >&6
1710if test "${ac_cv_build+set}" = set; then
1711  echo $ECHO_N "(cached) $ECHO_C" >&6
1712else
1713  ac_cv_build_alias=$build_alias
1714test -z "$ac_cv_build_alias" &&
1715  ac_cv_build_alias=`$ac_config_guess`
1716test -z "$ac_cv_build_alias" &&
1717  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1718echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1719   { (exit 1); exit 1; }; }
1720ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1721  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1722echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1723   { (exit 1); exit 1; }; }
1724
1725fi
1726echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1727echo "${ECHO_T}$ac_cv_build" >&6
1728build=$ac_cv_build
1729build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1730build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1731build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1732
1733
1734
1735# If this project depends on external projects, the Externals file in
1736# the source root directory contains definition of where to find those
1737# externals.  The following macro ensures that those externals are
1738# retrieved by svn if they are not there yet.
1739
1740# As backup, we make sure we don't loose an FLIBS if it has been set
1741# by the user
1742save_FLIBS="$FLIBS"
1743
1744# A useful makefile conditional that is always false
1745
1746
1747if false; then
1748  ALWAYS_FALSE_TRUE=
1749  ALWAYS_FALSE_FALSE='#'
1750else
1751  ALWAYS_FALSE_TRUE='#'
1752  ALWAYS_FALSE_FALSE=
1753fi
1754
1755
1756# We set the following variable so that we know later in AC_COIN_FINALIZE
1757# that we are in a project main directory
1758coin_projectdir=yes
1759
1760# Set the project's version number
1761
1762
1763cat >>confdefs.h <<_ACEOF
1764#define CBC_VERSION "$PACKAGE_VERSION"
1765_ACEOF
1766
1767
1768  # We use the following variable to have a string with the upper case
1769  # version of the project name
1770  COIN_PRJCT=CBC
1771
1772  # Set the project's SVN revision number. The complicated sed expression
1773  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1774  # as a single number.
1775  # Extract the first word of "svnversion", so it can be a program name with args.
1776set dummy svnversion; ac_word=$2
1777echo "$as_me:$LINENO: checking for $ac_word" >&5
1778echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1779if test "${ac_cv_prog_have_svnversion+set}" = set; then
1780  echo $ECHO_N "(cached) $ECHO_C" >&6
1781else
1782  if test -n "$have_svnversion"; then
1783  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1784else
1785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1786for as_dir in $PATH
1787do
1788  IFS=$as_save_IFS
1789  test -z "$as_dir" && as_dir=.
1790  for ac_exec_ext in '' $ac_executable_extensions; do
1791  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1792    ac_cv_prog_have_svnversion="yes"
1793    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1794    break 2
1795  fi
1796done
1797done
1798
1799  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1800fi
1801fi
1802have_svnversion=$ac_cv_prog_have_svnversion
1803if test -n "$have_svnversion"; then
1804  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1805echo "${ECHO_T}$have_svnversion" >&6
1806else
1807  echo "$as_me:$LINENO: result: no" >&5
1808echo "${ECHO_T}no" >&6
1809fi
1810
1811  if test "x$have_svnversion" = xyes; then
1812
1813    svn_rev_tmp=`cd $srcdir/$coin_has_cbc ; svnversion`
1814    CBC_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1815    if test $CBC_SVN_REV != exported; then
1816
1817cat >>confdefs.h <<_ACEOF
1818#define CBC_SVN_REV $CBC_SVN_REV
1819_ACEOF
1820
1821    fi
1822  fi
1823
1824
1825
1826# Capture libtool library version, if given.
1827
1828
1829
1830
1831# Check if user wants to produce debugging code
1832
1833echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1834echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1835
1836# Check whether --enable-debug or --disable-debug was given.
1837if test "${enable_debug+set}" = set; then
1838  enableval="$enable_debug"
1839  case "${enableval}" in
1840   yes) coin_debug_compile=true
1841        if test "${enable_shared+set}" = set; then :; else
1842          enable_shared=no
1843        fi
1844        ;;
1845   no)  coin_debug_compile=false
1846        ;;
1847   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1848echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1849   { (exit 1); exit 1; }; }
1850        ;;
1851esac
1852else
1853  coin_debug_compile=false
1854fi;
1855
1856# Check whether --enable-debug-cbc or --disable-debug-cbc was given.
1857if test "${enable_debug_cbc+set}" = set; then
1858  enableval="$enable_debug_cbc"
1859  case "${enableval}" in
1860    yes) coin_debug_compile=true
1861         enable_shared=no
1862         ;;
1863    no)  coin_debug_compile=false
1864         ;;
1865    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-cbc" >&5
1866echo "$as_me: error: bad value ${enableval} for --enable-debug-cbc" >&2;}
1867   { (exit 1); exit 1; }; }
1868         ;;
1869 esac
1870else
1871  :
1872fi;
1873
1874 # m4_ifvaln([Cbc],
1875
1876if test $coin_debug_compile = true; then
1877  echo "$as_me:$LINENO: result: yes" >&5
1878echo "${ECHO_T}yes" >&6
1879else
1880  echo "$as_me:$LINENO: result: no" >&5
1881echo "${ECHO_T}no" >&6
1882fi
1883
1884
1885# Check whether --with-cbc-verbosity or --without-cbc-verbosity was given.
1886if test "${with_cbc_verbosity+set}" = set; then
1887  withval="$with_cbc_verbosity"
1888  if test "$withval" = yes; then
1889                withval=1
1890              fi
1891              coin_cbc_verbosity=$withval
1892else
1893  coin_cbc_verbosity=0
1894fi;
1895
1896cat >>confdefs.h <<_ACEOF
1897#define COIN_CBC_VERBOSITY $coin_cbc_verbosity
1898_ACEOF
1899
1900
1901
1902# Check whether --with-cbc-checklevel or --without-cbc-checklevel was given.
1903if test "${with_cbc_checklevel+set}" = set; then
1904  withval="$with_cbc_checklevel"
1905  if test "$withval" = yes; then
1906                withval=1
1907              fi
1908              coin_cbc_checklevel=$withval
1909else
1910  coin_cbc_checklevel=0
1911fi;
1912
1913cat >>confdefs.h <<_ACEOF
1914#define COIN_CBC_CHECKLEVEL $coin_cbc_checklevel
1915_ACEOF
1916
1917
1918 # m4_ifvaln([Cbc],
1919
1920
1921
1922# Get the name of the C++ compiler and appropriate compiler options
1923case $build in
1924  *-mingw*)
1925    if test "${LD+set}" = set; then :; else
1926      LD=link
1927    fi
1928    ;;
1929 esac
1930 case $enable_doscompile in
1931   msvc)
1932     if test "x${LD+set}" = xset; then :; else
1933       LD=link
1934     fi
1935     ;;
1936 esac
1937
1938
1939 # Check whether --enable-doscompile or --disable-doscompile was given.
1940if test "${enable_doscompile+set}" = set; then
1941  enableval="$enable_doscompile"
1942  if test "$enable_doscompile" != no; then
1943     case $build in
1944       *-cygwin* | *-mingw*) ;;
1945       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1946echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1947   { (exit 1); exit 1; }; } ;;
1948     esac
1949   fi
1950else
1951  enable_doscompile=no
1952fi;
1953 case "$enable_doscompile" in
1954   mingw)
1955     case $build in
1956       *-mingw*) enable_doscompile=no ;;
1957     esac
1958     ;;
1959   msvc|no) ;;
1960   yes) enable_doscompile=mingw ;;
1961   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1962                    Try configure --help=recursive." >&5
1963echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1964                    Try configure --help=recursive." >&2;}
1965   { (exit 1); exit 1; }; }
1966      ;;
1967  esac
1968  if test "$enable_doscompile" != no ; then
1969    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1970echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1971  fi
1972
1973
1974
1975
1976ac_ext=c
1977ac_cpp='$CPP $CPPFLAGS'
1978ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1979ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1980ac_compiler_gnu=$ac_cv_c_compiler_gnu
1981
1982
1983# For consistency, we set the C compiler to the same value of the C++
1984# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1985if test x"$CXX" != x; then
1986  case "$CXX" in
1987    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1988      if test x"$CC" = x; then
1989        CC="$CXX"
1990        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1991echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1992      fi
1993      ;;
1994  esac
1995fi
1996
1997# add automake conditional so we can recognize cl compiler in makefile
1998coin_cc_is_cl=false
1999if test x"$CXX" != x; then
2000  case "$CXX" in
2001    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2002      coin_cc_is_cl=true
2003      ;;
2004  esac
2005fi
2006
2007
2008if test $coin_cc_is_cl = true; then
2009  COIN_CC_IS_CL_TRUE=
2010  COIN_CC_IS_CL_FALSE='#'
2011else
2012  COIN_CC_IS_CL_TRUE='#'
2013  COIN_CC_IS_CL_FALSE=
2014fi
2015
2016
2017
2018
2019
2020
2021
2022coin_has_cc=yes
2023
2024save_cflags="$CFLAGS"
2025
2026# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
2027# Depending on the user's PATH, when Studio/Workshop cc is not present we may
2028# find /usr/ucb/cc, which is almost certainly not a good choice for the C
2029# compiler. In this case, put cc after gcc.
2030
2031case $build in
2032  *-cygwin* | *-mingw*)
2033             if test "$enable_doscompile" = msvc ; then
2034               comps="icl cl"
2035             else
2036               comps="gcc cl"
2037             fi ;;
2038  *-*-solaris*)
2039             # Extract the first word of "cc", so it can be a program name with args.
2040set dummy cc; ac_word=$2
2041echo "$as_me:$LINENO: checking for $ac_word" >&5
2042echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2043if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
2044  echo $ECHO_N "(cached) $ECHO_C" >&6
2045else
2046  if test -n "$sol_cc_compiler"; then
2047  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
2048else
2049  ac_prog_rejected=no
2050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2051for as_dir in $PATH
2052do
2053  IFS=$as_save_IFS
2054  test -z "$as_dir" && as_dir=.
2055  for ac_exec_ext in '' $ac_executable_extensions; do
2056  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2057    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2058       ac_prog_rejected=yes
2059       continue
2060     fi
2061    ac_cv_prog_sol_cc_compiler="cc"
2062    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2063    break 2
2064  fi
2065done
2066done
2067
2068if test $ac_prog_rejected = yes; then
2069  # We found a bogon in the path, so make sure we never use it.
2070  set dummy $ac_cv_prog_sol_cc_compiler
2071  shift
2072  if test $# != 0; then
2073    # We chose a different compiler from the bogus one.
2074    # However, it has the same basename, so the bogon will be chosen
2075    # first if we set sol_cc_compiler to just the basename; use the full file name.
2076    shift
2077    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2078  fi
2079fi
2080fi
2081fi
2082sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2083if test -n "$sol_cc_compiler"; then
2084  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2085echo "${ECHO_T}$sol_cc_compiler" >&6
2086else
2087  echo "$as_me:$LINENO: result: no" >&5
2088echo "${ECHO_T}no" >&6
2089fi
2090
2091             if test "$sol_cc_compiler" = "cc" ; then
2092               comps="cc xlc gcc pgcc icc"
2093             else
2094               comps="xlc gcc pgcc icc cc"
2095             fi
2096             ;;
2097  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2098  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2099  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2100esac
2101
2102# We delete the cached value, since the test might not have been
2103# performed with our choice of compilers earlier
2104$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2105# AC_MSG_NOTICE([C compiler candidates: $comps])
2106ac_ext=c
2107ac_cpp='$CPP $CPPFLAGS'
2108ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2109ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2110ac_compiler_gnu=$ac_cv_c_compiler_gnu
2111if test -n "$ac_tool_prefix"; then
2112  for ac_prog in $comps
2113  do
2114    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2115set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2116echo "$as_me:$LINENO: checking for $ac_word" >&5
2117echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2118if test "${ac_cv_prog_CC+set}" = set; then
2119  echo $ECHO_N "(cached) $ECHO_C" >&6
2120else
2121  if test -n "$CC"; then
2122  ac_cv_prog_CC="$CC" # Let the user override the test.
2123else
2124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2125for as_dir in $PATH
2126do
2127  IFS=$as_save_IFS
2128  test -z "$as_dir" && as_dir=.
2129  for ac_exec_ext in '' $ac_executable_extensions; do
2130  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2131    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2132    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2133    break 2
2134  fi
2135done
2136done
2137
2138fi
2139fi
2140CC=$ac_cv_prog_CC
2141if test -n "$CC"; then
2142  echo "$as_me:$LINENO: result: $CC" >&5
2143echo "${ECHO_T}$CC" >&6
2144else
2145  echo "$as_me:$LINENO: result: no" >&5
2146echo "${ECHO_T}no" >&6
2147fi
2148
2149    test -n "$CC" && break
2150  done
2151fi
2152if test -z "$CC"; then
2153  ac_ct_CC=$CC
2154  for ac_prog in $comps
2155do
2156  # Extract the first word of "$ac_prog", so it can be a program name with args.
2157set dummy $ac_prog; ac_word=$2
2158echo "$as_me:$LINENO: checking for $ac_word" >&5
2159echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2160if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2161  echo $ECHO_N "(cached) $ECHO_C" >&6
2162else
2163  if test -n "$ac_ct_CC"; then
2164  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2165else
2166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2167for as_dir in $PATH
2168do
2169  IFS=$as_save_IFS
2170  test -z "$as_dir" && as_dir=.
2171  for ac_exec_ext in '' $ac_executable_extensions; do
2172  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2173    ac_cv_prog_ac_ct_CC="$ac_prog"
2174    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2175    break 2
2176  fi
2177done
2178done
2179
2180fi
2181fi
2182ac_ct_CC=$ac_cv_prog_ac_ct_CC
2183if test -n "$ac_ct_CC"; then
2184  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2185echo "${ECHO_T}$ac_ct_CC" >&6
2186else
2187  echo "$as_me:$LINENO: result: no" >&5
2188echo "${ECHO_T}no" >&6
2189fi
2190
2191  test -n "$ac_ct_CC" && break
2192done
2193
2194  CC=$ac_ct_CC
2195fi
2196
2197
2198test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2199See \`config.log' for more details." >&5
2200echo "$as_me: error: no acceptable C compiler found in \$PATH
2201See \`config.log' for more details." >&2;}
2202   { (exit 1); exit 1; }; }
2203
2204# Provide some information about the compiler.
2205echo "$as_me:$LINENO:" \
2206     "checking for C compiler version" >&5
2207ac_compiler=`set X $ac_compile; echo $2`
2208{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2209  (eval $ac_compiler --version </dev/null >&5) 2>&5
2210  ac_status=$?
2211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2212  (exit $ac_status); }
2213{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2214  (eval $ac_compiler -v </dev/null >&5) 2>&5
2215  ac_status=$?
2216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2217  (exit $ac_status); }
2218{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2219  (eval $ac_compiler -V </dev/null >&5) 2>&5
2220  ac_status=$?
2221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2222  (exit $ac_status); }
2223
2224cat >conftest.$ac_ext <<_ACEOF
2225/* confdefs.h.  */
2226_ACEOF
2227cat confdefs.h >>conftest.$ac_ext
2228cat >>conftest.$ac_ext <<_ACEOF
2229/* end confdefs.h.  */
2230
2231int
2232main ()
2233{
2234
2235  ;
2236  return 0;
2237}
2238_ACEOF
2239ac_clean_files_save=$ac_clean_files
2240ac_clean_files="$ac_clean_files a.out a.exe b.out"
2241# Try to create an executable without -o first, disregard a.out.
2242# It will help us diagnose broken compilers, and finding out an intuition
2243# of exeext.
2244echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2245echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2246ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2247if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2248  (eval $ac_link_default) 2>&5
2249  ac_status=$?
2250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251  (exit $ac_status); }; then
2252  # Find the output, starting from the most likely.  This scheme is
2253# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2254# resort.
2255
2256# Be careful to initialize this variable, since it used to be cached.
2257# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2258ac_cv_exeext=
2259# b.out is created by i960 compilers.
2260for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2261do
2262  test -f "$ac_file" || continue
2263  case $ac_file in
2264    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2265        ;;
2266    conftest.$ac_ext )
2267        # This is the source file.
2268        ;;
2269    [ab].out )
2270        # We found the default executable, but exeext='' is most
2271        # certainly right.
2272        break;;
2273    *.* )
2274        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2275        # FIXME: I believe we export ac_cv_exeext for Libtool,
2276        # but it would be cool to find out if it's true.  Does anybody
2277        # maintain Libtool? --akim.
2278        export ac_cv_exeext
2279        break;;
2280    * )
2281        break;;
2282  esac
2283done
2284else
2285  echo "$as_me: failed program was:" >&5
2286sed 's/^/| /' conftest.$ac_ext >&5
2287
2288{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2289See \`config.log' for more details." >&5
2290echo "$as_me: error: C compiler cannot create executables
2291See \`config.log' for more details." >&2;}
2292   { (exit 77); exit 77; }; }
2293fi
2294
2295ac_exeext=$ac_cv_exeext
2296echo "$as_me:$LINENO: result: $ac_file" >&5
2297echo "${ECHO_T}$ac_file" >&6
2298
2299# Check the compiler produces executables we can run.  If not, either
2300# the compiler is broken, or we cross compile.
2301echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2302echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2303# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2304# If not cross compiling, check that we can run a simple program.
2305if test "$cross_compiling" != yes; then
2306  if { ac_try='./$ac_file'
2307  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2308  (eval $ac_try) 2>&5
2309  ac_status=$?
2310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2311  (exit $ac_status); }; }; then
2312    cross_compiling=no
2313  else
2314    if test "$cross_compiling" = maybe; then
2315        cross_compiling=yes
2316    else
2317        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2318If you meant to cross compile, use \`--host'.
2319See \`config.log' for more details." >&5
2320echo "$as_me: error: cannot run C compiled programs.
2321If you meant to cross compile, use \`--host'.
2322See \`config.log' for more details." >&2;}
2323   { (exit 1); exit 1; }; }
2324    fi
2325  fi
2326fi
2327echo "$as_me:$LINENO: result: yes" >&5
2328echo "${ECHO_T}yes" >&6
2329
2330rm -f a.out a.exe conftest$ac_cv_exeext b.out
2331ac_clean_files=$ac_clean_files_save
2332# Check the compiler produces executables we can run.  If not, either
2333# the compiler is broken, or we cross compile.
2334echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2335echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2336echo "$as_me:$LINENO: result: $cross_compiling" >&5
2337echo "${ECHO_T}$cross_compiling" >&6
2338
2339echo "$as_me:$LINENO: checking for suffix of executables" >&5
2340echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2341if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2342  (eval $ac_link) 2>&5
2343  ac_status=$?
2344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345  (exit $ac_status); }; then
2346  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2347# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2348# work properly (i.e., refer to `conftest.exe'), while it won't with
2349# `rm'.
2350for ac_file in conftest.exe conftest conftest.*; do
2351  test -f "$ac_file" || continue
2352  case $ac_file in
2353    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2354    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2355          export ac_cv_exeext
2356          break;;
2357    * ) break;;
2358  esac
2359done
2360else
2361  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2362See \`config.log' for more details." >&5
2363echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2364See \`config.log' for more details." >&2;}
2365   { (exit 1); exit 1; }; }
2366fi
2367
2368rm -f conftest$ac_cv_exeext
2369echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2370echo "${ECHO_T}$ac_cv_exeext" >&6
2371
2372rm -f conftest.$ac_ext
2373EXEEXT=$ac_cv_exeext
2374ac_exeext=$EXEEXT
2375echo "$as_me:$LINENO: checking for suffix of object files" >&5
2376echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2377if test "${ac_cv_objext+set}" = set; then
2378  echo $ECHO_N "(cached) $ECHO_C" >&6
2379else
2380  cat >conftest.$ac_ext <<_ACEOF
2381/* confdefs.h.  */
2382_ACEOF
2383cat confdefs.h >>conftest.$ac_ext
2384cat >>conftest.$ac_ext <<_ACEOF
2385/* end confdefs.h.  */
2386
2387int
2388main ()
2389{
2390
2391  ;
2392  return 0;
2393}
2394_ACEOF
2395rm -f conftest.o conftest.obj
2396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2397  (eval $ac_compile) 2>&5
2398  ac_status=$?
2399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400  (exit $ac_status); }; then
2401  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2402  case $ac_file in
2403    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2404    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2405       break;;
2406  esac
2407done
2408else
2409  echo "$as_me: failed program was:" >&5
2410sed 's/^/| /' conftest.$ac_ext >&5
2411
2412{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2413See \`config.log' for more details." >&5
2414echo "$as_me: error: cannot compute suffix of object files: cannot compile
2415See \`config.log' for more details." >&2;}
2416   { (exit 1); exit 1; }; }
2417fi
2418
2419rm -f conftest.$ac_cv_objext conftest.$ac_ext
2420fi
2421echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2422echo "${ECHO_T}$ac_cv_objext" >&6
2423OBJEXT=$ac_cv_objext
2424ac_objext=$OBJEXT
2425echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2426echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2427if test "${ac_cv_c_compiler_gnu+set}" = set; then
2428  echo $ECHO_N "(cached) $ECHO_C" >&6
2429else
2430  cat >conftest.$ac_ext <<_ACEOF
2431/* confdefs.h.  */
2432_ACEOF
2433cat confdefs.h >>conftest.$ac_ext
2434cat >>conftest.$ac_ext <<_ACEOF
2435/* end confdefs.h.  */
2436
2437int
2438main ()
2439{
2440#ifndef __GNUC__
2441       choke me
2442#endif
2443
2444  ;
2445  return 0;
2446}
2447_ACEOF
2448rm -f conftest.$ac_objext
2449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2450  (eval $ac_compile) 2>conftest.er1
2451  ac_status=$?
2452  grep -v '^ *+' conftest.er1 >conftest.err
2453  rm -f conftest.er1
2454  cat conftest.err >&5
2455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456  (exit $ac_status); } &&
2457         { ac_try='test -z "$ac_c_werror_flag"
2458                         || test ! -s conftest.err'
2459  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2460  (eval $ac_try) 2>&5
2461  ac_status=$?
2462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463  (exit $ac_status); }; } &&
2464         { ac_try='test -s conftest.$ac_objext'
2465  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2466  (eval $ac_try) 2>&5
2467  ac_status=$?
2468  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469  (exit $ac_status); }; }; then
2470  ac_compiler_gnu=yes
2471else
2472  echo "$as_me: failed program was:" >&5
2473sed 's/^/| /' conftest.$ac_ext >&5
2474
2475ac_compiler_gnu=no
2476fi
2477rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2478ac_cv_c_compiler_gnu=$ac_compiler_gnu
2479
2480fi
2481echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2482echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2483GCC=`test $ac_compiler_gnu = yes && echo yes`
2484ac_test_CFLAGS=${CFLAGS+set}
2485ac_save_CFLAGS=$CFLAGS
2486CFLAGS="-g"
2487echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2488echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2489if test "${ac_cv_prog_cc_g+set}" = set; then
2490  echo $ECHO_N "(cached) $ECHO_C" >&6
2491else
2492  cat >conftest.$ac_ext <<_ACEOF
2493/* confdefs.h.  */
2494_ACEOF
2495cat confdefs.h >>conftest.$ac_ext
2496cat >>conftest.$ac_ext <<_ACEOF
2497/* end confdefs.h.  */
2498
2499int
2500main ()
2501{
2502
2503  ;
2504  return 0;
2505}
2506_ACEOF
2507rm -f conftest.$ac_objext
2508if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2509  (eval $ac_compile) 2>conftest.er1
2510  ac_status=$?
2511  grep -v '^ *+' conftest.er1 >conftest.err
2512  rm -f conftest.er1
2513  cat conftest.err >&5
2514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515  (exit $ac_status); } &&
2516         { ac_try='test -z "$ac_c_werror_flag"
2517                         || test ! -s conftest.err'
2518  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2519  (eval $ac_try) 2>&5
2520  ac_status=$?
2521  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522  (exit $ac_status); }; } &&
2523         { ac_try='test -s conftest.$ac_objext'
2524  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2525  (eval $ac_try) 2>&5
2526  ac_status=$?
2527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528  (exit $ac_status); }; }; then
2529  ac_cv_prog_cc_g=yes
2530else
2531  echo "$as_me: failed program was:" >&5
2532sed 's/^/| /' conftest.$ac_ext >&5
2533
2534ac_cv_prog_cc_g=no
2535fi
2536rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2537fi
2538echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2539echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2540if test "$ac_test_CFLAGS" = set; then
2541  CFLAGS=$ac_save_CFLAGS
2542elif test $ac_cv_prog_cc_g = yes; then
2543  if test "$GCC" = yes; then
2544    CFLAGS="-g -O2"
2545  else
2546    CFLAGS="-g"
2547  fi
2548else
2549  if test "$GCC" = yes; then
2550    CFLAGS="-O2"
2551  else
2552    CFLAGS=
2553  fi
2554fi
2555echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2556echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2557if test "${ac_cv_prog_cc_stdc+set}" = set; then
2558  echo $ECHO_N "(cached) $ECHO_C" >&6
2559else
2560  ac_cv_prog_cc_stdc=no
2561ac_save_CC=$CC
2562cat >conftest.$ac_ext <<_ACEOF
2563/* confdefs.h.  */
2564_ACEOF
2565cat confdefs.h >>conftest.$ac_ext
2566cat >>conftest.$ac_ext <<_ACEOF
2567/* end confdefs.h.  */
2568#include <stdarg.h>
2569#include <stdio.h>
2570#include <sys/types.h>
2571#include <sys/stat.h>
2572/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2573struct buf { int x; };
2574FILE * (*rcsopen) (struct buf *, struct stat *, int);
2575static char *e (p, i)
2576     char **p;
2577     int i;
2578{
2579  return p[i];
2580}
2581static char *f (char * (*g) (char **, int), char **p, ...)
2582{
2583  char *s;
2584  va_list v;
2585  va_start (v,p);
2586  s = g (p, va_arg (v,int));
2587  va_end (v);
2588  return s;
2589}
2590
2591/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2592   function prototypes and stuff, but not '\xHH' hex character constants.
2593   These don't provoke an error unfortunately, instead are silently treated
2594   as 'x'.  The following induces an error, until -std1 is added to get
2595   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2596   array size at least.  It's necessary to write '\x00'==0 to get something
2597   that's true only with -std1.  */
2598int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2599
2600int test (int i, double x);
2601struct s1 {int (*f) (int a);};
2602struct s2 {int (*f) (double a);};
2603int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2604int argc;
2605char **argv;
2606int
2607main ()
2608{
2609return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2610  ;
2611  return 0;
2612}
2613_ACEOF
2614# Don't try gcc -ansi; that turns off useful extensions and
2615# breaks some systems' header files.
2616# AIX                   -qlanglvl=ansi
2617# Ultrix and OSF/1      -std1
2618# HP-UX 10.20 and later -Ae
2619# HP-UX older versions  -Aa -D_HPUX_SOURCE
2620# SVR4                  -Xc -D__EXTENSIONS__
2621for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2622do
2623  CC="$ac_save_CC $ac_arg"
2624  rm -f conftest.$ac_objext
2625if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2626  (eval $ac_compile) 2>conftest.er1
2627  ac_status=$?
2628  grep -v '^ *+' conftest.er1 >conftest.err
2629  rm -f conftest.er1
2630  cat conftest.err >&5
2631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632  (exit $ac_status); } &&
2633         { ac_try='test -z "$ac_c_werror_flag"
2634                         || test ! -s conftest.err'
2635  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2636  (eval $ac_try) 2>&5
2637  ac_status=$?
2638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639  (exit $ac_status); }; } &&
2640         { ac_try='test -s conftest.$ac_objext'
2641  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2642  (eval $ac_try) 2>&5
2643  ac_status=$?
2644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2645  (exit $ac_status); }; }; then
2646  ac_cv_prog_cc_stdc=$ac_arg
2647break
2648else
2649  echo "$as_me: failed program was:" >&5
2650sed 's/^/| /' conftest.$ac_ext >&5
2651
2652fi
2653rm -f conftest.err conftest.$ac_objext
2654done
2655rm -f conftest.$ac_ext conftest.$ac_objext
2656CC=$ac_save_CC
2657
2658fi
2659
2660case "x$ac_cv_prog_cc_stdc" in
2661  x|xno)
2662    echo "$as_me:$LINENO: result: none needed" >&5
2663echo "${ECHO_T}none needed" >&6 ;;
2664  *)
2665    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2666echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2667    CC="$CC $ac_cv_prog_cc_stdc" ;;
2668esac
2669
2670# Some people use a C++ compiler to compile C.  Since we use `exit',
2671# in C++ we need to declare it.  In case someone uses the same compiler
2672# for both compiling C and C++ we need to have the C++ compiler decide
2673# the declaration of exit, since it's the most demanding environment.
2674cat >conftest.$ac_ext <<_ACEOF
2675#ifndef __cplusplus
2676  choke me
2677#endif
2678_ACEOF
2679rm -f conftest.$ac_objext
2680if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2681  (eval $ac_compile) 2>conftest.er1
2682  ac_status=$?
2683  grep -v '^ *+' conftest.er1 >conftest.err
2684  rm -f conftest.er1
2685  cat conftest.err >&5
2686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687  (exit $ac_status); } &&
2688         { ac_try='test -z "$ac_c_werror_flag"
2689                         || test ! -s conftest.err'
2690  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2691  (eval $ac_try) 2>&5
2692  ac_status=$?
2693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694  (exit $ac_status); }; } &&
2695         { ac_try='test -s conftest.$ac_objext'
2696  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2697  (eval $ac_try) 2>&5
2698  ac_status=$?
2699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700  (exit $ac_status); }; }; then
2701  for ac_declaration in \
2702   '' \
2703   'extern "C" void std::exit (int) throw (); using std::exit;' \
2704   'extern "C" void std::exit (int); using std::exit;' \
2705   'extern "C" void exit (int) throw ();' \
2706   'extern "C" void exit (int);' \
2707   'void exit (int);'
2708do
2709  cat >conftest.$ac_ext <<_ACEOF
2710/* confdefs.h.  */
2711_ACEOF
2712cat confdefs.h >>conftest.$ac_ext
2713cat >>conftest.$ac_ext <<_ACEOF
2714/* end confdefs.h.  */
2715$ac_declaration
2716#include <stdlib.h>
2717int
2718main ()
2719{
2720exit (42);
2721  ;
2722  return 0;
2723}
2724_ACEOF
2725rm -f conftest.$ac_objext
2726if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2727  (eval $ac_compile) 2>conftest.er1
2728  ac_status=$?
2729  grep -v '^ *+' conftest.er1 >conftest.err
2730  rm -f conftest.er1
2731  cat conftest.err >&5
2732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733  (exit $ac_status); } &&
2734         { ac_try='test -z "$ac_c_werror_flag"
2735                         || test ! -s conftest.err'
2736  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2737  (eval $ac_try) 2>&5
2738  ac_status=$?
2739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740  (exit $ac_status); }; } &&
2741         { ac_try='test -s conftest.$ac_objext'
2742  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2743  (eval $ac_try) 2>&5
2744  ac_status=$?
2745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746  (exit $ac_status); }; }; then
2747  :
2748else
2749  echo "$as_me: failed program was:" >&5
2750sed 's/^/| /' conftest.$ac_ext >&5
2751
2752continue
2753fi
2754rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2755  cat >conftest.$ac_ext <<_ACEOF
2756/* confdefs.h.  */
2757_ACEOF
2758cat confdefs.h >>conftest.$ac_ext
2759cat >>conftest.$ac_ext <<_ACEOF
2760/* end confdefs.h.  */
2761$ac_declaration
2762int
2763main ()
2764{
2765exit (42);
2766  ;
2767  return 0;
2768}
2769_ACEOF
2770rm -f conftest.$ac_objext
2771if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2772  (eval $ac_compile) 2>conftest.er1
2773  ac_status=$?
2774  grep -v '^ *+' conftest.er1 >conftest.err
2775  rm -f conftest.er1
2776  cat conftest.err >&5
2777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778  (exit $ac_status); } &&
2779         { ac_try='test -z "$ac_c_werror_flag"
2780                         || test ! -s conftest.err'
2781  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2782  (eval $ac_try) 2>&5
2783  ac_status=$?
2784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785  (exit $ac_status); }; } &&
2786         { ac_try='test -s conftest.$ac_objext'
2787  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2788  (eval $ac_try) 2>&5
2789  ac_status=$?
2790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791  (exit $ac_status); }; }; then
2792  break
2793else
2794  echo "$as_me: failed program was:" >&5
2795sed 's/^/| /' conftest.$ac_ext >&5
2796
2797fi
2798rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2799done
2800rm -f conftest*
2801if test -n "$ac_declaration"; then
2802  echo '#ifdef __cplusplus' >>confdefs.h
2803  echo $ac_declaration      >>confdefs.h
2804  echo '#endif'             >>confdefs.h
2805fi
2806
2807else
2808  echo "$as_me: failed program was:" >&5
2809sed 's/^/| /' conftest.$ac_ext >&5
2810
2811fi
2812rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2813ac_ext=c
2814ac_cpp='$CPP $CPPFLAGS'
2815ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2816ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2817ac_compiler_gnu=$ac_cv_c_compiler_gnu
2818
2819if test -z "$CC" ; then
2820  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2821echo "$as_me: error: Failed to find a C compiler!" >&2;}
2822   { (exit 1); exit 1; }; }
2823fi
2824# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2825case "$CC" in
2826  cl* | */cl* | CL* | */CL* )
2827    if test "$ac_cv_prog_cc_g" = yes ; then
2828      ac_cv_prog_cc_g=no
2829      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2830echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2831    fi ;;
2832esac
2833CFLAGS="$save_cflags"
2834
2835# Check if a project specific CFLAGS variable has been set
2836if test x$COIN_PRJCT != x; then
2837  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2838  if test x$coin_tmp = xset; then
2839    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2840  fi
2841fi
2842
2843if test x"$CFLAGS" = x; then
2844
2845  coin_add_cflags=
2846  coin_opt_cflags=
2847  coin_dbg_cflags=
2848  coin_warn_cflags=
2849
2850  if test "$GCC" = "yes"; then
2851    case "$CC" in
2852      icc* | */icc*)
2853        ;;
2854      *)
2855        coin_opt_cflags="-O3"
2856        coin_add_cflags="-pipe"
2857        coin_dbg_cflags="-g"
2858        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas"
2859        case $build in
2860          *-darwin*)
2861            ;;
2862          *)
2863            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2864            ;;
2865        esac
2866        case $enable_doscompile in
2867          mingw)
2868            CFLAGS="-mno-cygwin"
2869            cat >conftest.$ac_ext <<_ACEOF
2870/* confdefs.h.  */
2871_ACEOF
2872cat confdefs.h >>conftest.$ac_ext
2873cat >>conftest.$ac_ext <<_ACEOF
2874/* end confdefs.h.  */
2875
2876int
2877main ()
2878{
2879int i=0; i++;
2880  ;
2881  return 0;
2882}
2883_ACEOF
2884rm -f conftest.$ac_objext conftest$ac_exeext
2885if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2886  (eval $ac_link) 2>conftest.er1
2887  ac_status=$?
2888  grep -v '^ *+' conftest.er1 >conftest.err
2889  rm -f conftest.er1
2890  cat conftest.err >&5
2891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892  (exit $ac_status); } &&
2893         { ac_try='test -z "$ac_c_werror_flag"
2894                         || test ! -s conftest.err'
2895  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2896  (eval $ac_try) 2>&5
2897  ac_status=$?
2898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899  (exit $ac_status); }; } &&
2900         { ac_try='test -s conftest$ac_exeext'
2901  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2902  (eval $ac_try) 2>&5
2903  ac_status=$?
2904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905  (exit $ac_status); }; }; then
2906  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2907else
2908  echo "$as_me: failed program was:" >&5
2909sed 's/^/| /' conftest.$ac_ext >&5
2910
2911fi
2912rm -f conftest.err conftest.$ac_objext \
2913      conftest$ac_exeext conftest.$ac_ext
2914            CFLAGS=
2915          ;;
2916        esac
2917    esac
2918  fi
2919  if test -z "$coin_opt_cflags"; then
2920    case $build in
2921      *-cygwin* | *-mingw*)
2922        case "$CC" in
2923          cl* | */cl* | CL* | */CL*)
2924            coin_opt_cflags='-MT -O2'
2925            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2926            coin_dbg_cflags='-MTd'
2927            ;;
2928          icl* | */icl* | ICL* | */ICL*)
2929            coin_opt_cflags='-MT -Ox'
2930            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2931            coin_dbg_cflags='-MTd -debug'
2932            ;;
2933        esac
2934        ;;
2935      *-linux-*)
2936        case "$CC" in
2937          icc* | */icc*)
2938            coin_opt_cflags="-O3 -ip -mp1"
2939            coin_add_cflags=""
2940            coin_dbg_cflags="-g"
2941            # Check if -i_dynamic is necessary (for new glibc library)
2942            CFLAGS=
2943            cat >conftest.$ac_ext <<_ACEOF
2944/* confdefs.h.  */
2945_ACEOF
2946cat confdefs.h >>conftest.$ac_ext
2947cat >>conftest.$ac_ext <<_ACEOF
2948/* end confdefs.h.  */
2949
2950int
2951main ()
2952{
2953int i=0; i++;
2954  ;
2955  return 0;
2956}
2957_ACEOF
2958rm -f conftest.$ac_objext conftest$ac_exeext
2959if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2960  (eval $ac_link) 2>conftest.er1
2961  ac_status=$?
2962  grep -v '^ *+' conftest.er1 >conftest.err
2963  rm -f conftest.er1
2964  cat conftest.err >&5
2965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966  (exit $ac_status); } &&
2967         { ac_try='test -z "$ac_c_werror_flag"
2968                         || test ! -s conftest.err'
2969  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2970  (eval $ac_try) 2>&5
2971  ac_status=$?
2972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973  (exit $ac_status); }; } &&
2974         { ac_try='test -s conftest$ac_exeext'
2975  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2976  (eval $ac_try) 2>&5
2977  ac_status=$?
2978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979  (exit $ac_status); }; }; then
2980  :
2981else
2982  echo "$as_me: failed program was:" >&5
2983sed 's/^/| /' conftest.$ac_ext >&5
2984
2985coin_add_cflags="-i_dynamic $coin_add_cflags"
2986fi
2987rm -f conftest.err conftest.$ac_objext \
2988      conftest$ac_exeext conftest.$ac_ext
2989            ;;
2990          pgcc* | */pgcc*)
2991            coin_opt_cflags="-fast"
2992            coin_add_cflags="-Kieee -pc 64"
2993            coin_dbg_cflags="-g"
2994            ;;
2995        esac
2996        ;;
2997      *-ibm-*)
2998        case "$CC" in
2999          xlc* | */xlc* | mpxlc* | */mpxlc*)
3000            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3001            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
3002            coin_dbg_cflags="-g"
3003          ;;
3004        esac
3005        ;;
3006      *-hp-*)
3007        coin_opt_cflags="-O"
3008        coin_add_cflags="-Ae"
3009        coin_dbg_cflags="-g"
3010        ;;
3011      *-*-solaris*)
3012        coin_opt_cflags="-xO4"
3013        coin_dbg_cflags="-g"
3014        ;;
3015      *-sgi-*)
3016        coin_opt_cflags="-O -OPT:Olimit=0"
3017        coin_dbg_cflags="-g"
3018        ;;
3019    esac
3020  fi
3021
3022  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
3023    coin_dbg_cflags="-g"
3024  fi
3025
3026  if test -z "$coin_opt_cflags"; then
3027    # Try if -O option works if nothing else is set
3028    CFLAGS="-O"
3029    cat >conftest.$ac_ext <<_ACEOF
3030/* confdefs.h.  */
3031_ACEOF
3032cat confdefs.h >>conftest.$ac_ext
3033cat >>conftest.$ac_ext <<_ACEOF
3034/* end confdefs.h.  */
3035
3036int
3037main ()
3038{
3039int i=0; i++;
3040  ;
3041  return 0;
3042}
3043_ACEOF
3044rm -f conftest.$ac_objext conftest$ac_exeext
3045if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3046  (eval $ac_link) 2>conftest.er1
3047  ac_status=$?
3048  grep -v '^ *+' conftest.er1 >conftest.err
3049  rm -f conftest.er1
3050  cat conftest.err >&5
3051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052  (exit $ac_status); } &&
3053         { ac_try='test -z "$ac_c_werror_flag"
3054                         || test ! -s conftest.err'
3055  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3056  (eval $ac_try) 2>&5
3057  ac_status=$?
3058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059  (exit $ac_status); }; } &&
3060         { ac_try='test -s conftest$ac_exeext'
3061  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3062  (eval $ac_try) 2>&5
3063  ac_status=$?
3064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065  (exit $ac_status); }; }; then
3066  coin_opt_cflags="-O"
3067else
3068  echo "$as_me: failed program was:" >&5
3069sed 's/^/| /' conftest.$ac_ext >&5
3070
3071fi
3072rm -f conftest.err conftest.$ac_objext \
3073      conftest$ac_exeext conftest.$ac_ext
3074  fi
3075
3076  # if PM doesn't want the warning messages, take them out
3077  if test x"$coin_skip_warn_cflags" = xyes; then
3078    coin_warn_cflags=
3079  fi
3080
3081  if test x${DBG_CFLAGS+set} != xset; then
3082    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3083  fi
3084  if test x${OPT_CFLAGS+set} != xset; then
3085    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3086  fi
3087
3088  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3089  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3090
3091  if test "$coin_debug_compile" = "true"; then
3092    CFLAGS="$DBG_CFLAGS"
3093  else
3094    CFLAGS="$OPT_CFLAGS"
3095  fi
3096else
3097  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3098  if test x${DBG_CFLAGS+set} != xset; then
3099    DBG_CFLAGS="$CFLAGS"
3100  fi
3101  if test x${OPT_CFLAGS+set} != xset; then
3102    OPT_CFLAGS="$CFLAGS"
3103  fi
3104fi
3105
3106# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3107
3108case "$CFLAGS" in
3109  *-mno-cygwin*)
3110    if test x${CPPFLAGS+set} != xset ; then
3111      CPPFLAGS="-mno-cygwin"
3112    else
3113      case "$CPPFLAGS" in
3114        *-mno-cygwin*)
3115          ;;
3116        *)
3117          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3118          ;;
3119      esac
3120    fi ;;
3121esac
3122
3123# Try if CFLAGS works
3124save_CFLAGS="$CFLAGS"
3125cat >conftest.$ac_ext <<_ACEOF
3126/* confdefs.h.  */
3127_ACEOF
3128cat confdefs.h >>conftest.$ac_ext
3129cat >>conftest.$ac_ext <<_ACEOF
3130/* end confdefs.h.  */
3131
3132int
3133main ()
3134{
3135int i=0; i++;
3136  ;
3137  return 0;
3138}
3139_ACEOF
3140rm -f conftest.$ac_objext conftest$ac_exeext
3141if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3142  (eval $ac_link) 2>conftest.er1
3143  ac_status=$?
3144  grep -v '^ *+' conftest.er1 >conftest.err
3145  rm -f conftest.er1
3146  cat conftest.err >&5
3147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148  (exit $ac_status); } &&
3149         { ac_try='test -z "$ac_c_werror_flag"
3150                         || test ! -s conftest.err'
3151  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3152  (eval $ac_try) 2>&5
3153  ac_status=$?
3154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155  (exit $ac_status); }; } &&
3156         { ac_try='test -s conftest$ac_exeext'
3157  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3158  (eval $ac_try) 2>&5
3159  ac_status=$?
3160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161  (exit $ac_status); }; }; then
3162  :
3163else
3164  echo "$as_me: failed program was:" >&5
3165sed 's/^/| /' conftest.$ac_ext >&5
3166
3167CFLAGS=
3168fi
3169rm -f conftest.err conftest.$ac_objext \
3170      conftest$ac_exeext conftest.$ac_ext
3171if test -z "$CFLAGS"; then
3172  { 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
3173echo "$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;}
3174  CFLAGS='-O'
3175  cat >conftest.$ac_ext <<_ACEOF
3176/* confdefs.h.  */
3177_ACEOF
3178cat confdefs.h >>conftest.$ac_ext
3179cat >>conftest.$ac_ext <<_ACEOF
3180/* end confdefs.h.  */
3181
3182int
3183main ()
3184{
3185int i=0; i++;
3186  ;
3187  return 0;
3188}
3189_ACEOF
3190rm -f conftest.$ac_objext conftest$ac_exeext
3191if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3192  (eval $ac_link) 2>conftest.er1
3193  ac_status=$?
3194  grep -v '^ *+' conftest.er1 >conftest.err
3195  rm -f conftest.er1
3196  cat conftest.err >&5
3197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198  (exit $ac_status); } &&
3199         { ac_try='test -z "$ac_c_werror_flag"
3200                         || test ! -s conftest.err'
3201  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3202  (eval $ac_try) 2>&5
3203  ac_status=$?
3204  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205  (exit $ac_status); }; } &&
3206         { ac_try='test -s conftest$ac_exeext'
3207  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3208  (eval $ac_try) 2>&5
3209  ac_status=$?
3210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211  (exit $ac_status); }; }; then
3212  :
3213else
3214  echo "$as_me: failed program was:" >&5
3215sed 's/^/| /' conftest.$ac_ext >&5
3216
3217CFLAGS=
3218fi
3219rm -f conftest.err conftest.$ac_objext \
3220      conftest$ac_exeext conftest.$ac_ext
3221  if test -z "$CFLAGS"; then
3222    { 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
3223echo "$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;}
3224  fi
3225fi
3226
3227{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3228echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3229
3230
3231if test x"$MPICC" = x; then :; else
3232  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3233echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3234  CC="$MPICC"
3235fi
3236
3237# Correct the LD variable if we are using the MS or Intel-windows compiler
3238case "$CC" in
3239  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3240    case $build in
3241  *-mingw*)
3242    if test "${LD+set}" = set; then :; else
3243      LD=link
3244    fi
3245    ;;
3246 esac
3247 case $enable_doscompile in
3248   msvc)
3249     if test "x${LD+set}" = xset; then :; else
3250       LD=link
3251     fi
3252     ;;
3253 esac
3254
3255    ;;
3256esac
3257
3258ac_ext=c
3259ac_cpp='$CPP $CPPFLAGS'
3260ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3261ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3262ac_compiler_gnu=$ac_cv_c_compiler_gnu
3263
3264
3265
3266 #Let's try if that overcomes configuration problem with VC++ 6.0
3267
3268ac_ext=cc
3269ac_cpp='$CXXCPP $CPPFLAGS'
3270ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3271ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3272ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3273
3274
3275
3276
3277
3278
3279
3280coin_has_cxx=yes
3281
3282save_cxxflags="$CXXFLAGS"
3283# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3284case $build in
3285  *-cygwin* | *-mingw*)
3286             if test "$enable_doscompile" = msvc ; then
3287               comps="icl cl"
3288             else
3289               comps="g++ cl"
3290             fi ;;
3291  *-*-solaris*)
3292             comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3293  *-darwin*) comps="g++ c++ CC" ;;
3294  *-linux-gnu*)
3295             comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;;
3296          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3297esac
3298
3299# We delete the cached value, since the test might not have been
3300# performed with our choice of compilers earlier
3301$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3302# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3303ac_ext=cc
3304ac_cpp='$CXXCPP $CPPFLAGS'
3305ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3306ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3307ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3308if test -n "$ac_tool_prefix"; then
3309  for ac_prog in $CCC $comps
3310  do
3311    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3312set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3313echo "$as_me:$LINENO: checking for $ac_word" >&5
3314echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3315if test "${ac_cv_prog_CXX+set}" = set; then
3316  echo $ECHO_N "(cached) $ECHO_C" >&6
3317else
3318  if test -n "$CXX"; then
3319  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3320else
3321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3322for as_dir in $PATH
3323do
3324  IFS=$as_save_IFS
3325  test -z "$as_dir" && as_dir=.
3326  for ac_exec_ext in '' $ac_executable_extensions; do
3327  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3328    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3329    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3330    break 2
3331  fi
3332done
3333done
3334
3335fi
3336fi
3337CXX=$ac_cv_prog_CXX
3338if test -n "$CXX"; then
3339  echo "$as_me:$LINENO: result: $CXX" >&5
3340echo "${ECHO_T}$CXX" >&6
3341else
3342  echo "$as_me:$LINENO: result: no" >&5
3343echo "${ECHO_T}no" >&6
3344fi
3345
3346    test -n "$CXX" && break
3347  done
3348fi
3349if test -z "$CXX"; then
3350  ac_ct_CXX=$CXX
3351  for ac_prog in $CCC $comps
3352do
3353  # Extract the first word of "$ac_prog", so it can be a program name with args.
3354set dummy $ac_prog; ac_word=$2
3355echo "$as_me:$LINENO: checking for $ac_word" >&5
3356echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3357if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3358  echo $ECHO_N "(cached) $ECHO_C" >&6
3359else
3360  if test -n "$ac_ct_CXX"; then
3361  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3362else
3363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3364for as_dir in $PATH
3365do
3366  IFS=$as_save_IFS
3367  test -z "$as_dir" && as_dir=.
3368  for ac_exec_ext in '' $ac_executable_extensions; do
3369  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3370    ac_cv_prog_ac_ct_CXX="$ac_prog"
3371    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3372    break 2
3373  fi
3374done
3375done
3376
3377fi
3378fi
3379ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3380if test -n "$ac_ct_CXX"; then
3381  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3382echo "${ECHO_T}$ac_ct_CXX" >&6
3383else
3384  echo "$as_me:$LINENO: result: no" >&5
3385echo "${ECHO_T}no" >&6
3386fi
3387
3388  test -n "$ac_ct_CXX" && break
3389done
3390test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3391
3392  CXX=$ac_ct_CXX
3393fi
3394
3395
3396# Provide some information about the compiler.
3397echo "$as_me:$LINENO:" \
3398     "checking for C++ compiler version" >&5
3399ac_compiler=`set X $ac_compile; echo $2`
3400{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3401  (eval $ac_compiler --version </dev/null >&5) 2>&5
3402  ac_status=$?
3403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404  (exit $ac_status); }
3405{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3406  (eval $ac_compiler -v </dev/null >&5) 2>&5
3407  ac_status=$?
3408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409  (exit $ac_status); }
3410{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3411  (eval $ac_compiler -V </dev/null >&5) 2>&5
3412  ac_status=$?
3413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414  (exit $ac_status); }
3415
3416echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3417echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3418if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3419  echo $ECHO_N "(cached) $ECHO_C" >&6
3420else
3421  cat >conftest.$ac_ext <<_ACEOF
3422/* confdefs.h.  */
3423_ACEOF
3424cat confdefs.h >>conftest.$ac_ext
3425cat >>conftest.$ac_ext <<_ACEOF
3426/* end confdefs.h.  */
3427
3428int
3429main ()
3430{
3431#ifndef __GNUC__
3432       choke me
3433#endif
3434
3435  ;
3436  return 0;
3437}
3438_ACEOF
3439rm -f conftest.$ac_objext
3440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3441  (eval $ac_compile) 2>conftest.er1
3442  ac_status=$?
3443  grep -v '^ *+' conftest.er1 >conftest.err
3444  rm -f conftest.er1
3445  cat conftest.err >&5
3446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447  (exit $ac_status); } &&
3448         { ac_try='test -z "$ac_cxx_werror_flag"
3449                         || test ! -s conftest.err'
3450  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3451  (eval $ac_try) 2>&5
3452  ac_status=$?
3453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454  (exit $ac_status); }; } &&
3455         { ac_try='test -s conftest.$ac_objext'
3456  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3457  (eval $ac_try) 2>&5
3458  ac_status=$?
3459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460  (exit $ac_status); }; }; then
3461  ac_compiler_gnu=yes
3462else
3463  echo "$as_me: failed program was:" >&5
3464sed 's/^/| /' conftest.$ac_ext >&5
3465
3466ac_compiler_gnu=no
3467fi
3468rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3469ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3470
3471fi
3472echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3473echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3474GXX=`test $ac_compiler_gnu = yes && echo yes`
3475ac_test_CXXFLAGS=${CXXFLAGS+set}
3476ac_save_CXXFLAGS=$CXXFLAGS
3477CXXFLAGS="-g"
3478echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3479echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3480if test "${ac_cv_prog_cxx_g+set}" = set; then
3481  echo $ECHO_N "(cached) $ECHO_C" >&6
3482else
3483  cat >conftest.$ac_ext <<_ACEOF
3484/* confdefs.h.  */
3485_ACEOF
3486cat confdefs.h >>conftest.$ac_ext
3487cat >>conftest.$ac_ext <<_ACEOF
3488/* end confdefs.h.  */
3489
3490int
3491main ()
3492{
3493
3494  ;
3495  return 0;
3496}
3497_ACEOF
3498rm -f conftest.$ac_objext
3499if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3500  (eval $ac_compile) 2>conftest.er1
3501  ac_status=$?
3502  grep -v '^ *+' conftest.er1 >conftest.err
3503  rm -f conftest.er1
3504  cat conftest.err >&5
3505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506  (exit $ac_status); } &&
3507         { ac_try='test -z "$ac_cxx_werror_flag"
3508                         || test ! -s conftest.err'
3509  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3510  (eval $ac_try) 2>&5
3511  ac_status=$?
3512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513  (exit $ac_status); }; } &&
3514         { ac_try='test -s conftest.$ac_objext'
3515  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3516  (eval $ac_try) 2>&5
3517  ac_status=$?
3518  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519  (exit $ac_status); }; }; then
3520  ac_cv_prog_cxx_g=yes
3521else
3522  echo "$as_me: failed program was:" >&5
3523sed 's/^/| /' conftest.$ac_ext >&5
3524
3525ac_cv_prog_cxx_g=no
3526fi
3527rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3528fi
3529echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3530echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3531if test "$ac_test_CXXFLAGS" = set; then
3532  CXXFLAGS=$ac_save_CXXFLAGS
3533elif test $ac_cv_prog_cxx_g = yes; then
3534  if test "$GXX" = yes; then
3535    CXXFLAGS="-g -O2"
3536  else
3537    CXXFLAGS="-g"
3538  fi
3539else
3540  if test "$GXX" = yes; then
3541    CXXFLAGS="-O2"
3542  else
3543    CXXFLAGS=
3544  fi
3545fi
3546for ac_declaration in \
3547   '' \
3548   'extern "C" void std::exit (int) throw (); using std::exit;' \
3549   'extern "C" void std::exit (int); using std::exit;' \
3550   'extern "C" void exit (int) throw ();' \
3551   'extern "C" void exit (int);' \
3552   'void exit (int);'
3553do
3554  cat >conftest.$ac_ext <<_ACEOF
3555/* confdefs.h.  */
3556_ACEOF
3557cat confdefs.h >>conftest.$ac_ext
3558cat >>conftest.$ac_ext <<_ACEOF
3559/* end confdefs.h.  */
3560$ac_declaration
3561#include <stdlib.h>
3562int
3563main ()
3564{
3565exit (42);
3566  ;
3567  return 0;
3568}
3569_ACEOF
3570rm -f conftest.$ac_objext
3571if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3572  (eval $ac_compile) 2>conftest.er1
3573  ac_status=$?
3574  grep -v '^ *+' conftest.er1 >conftest.err
3575  rm -f conftest.er1
3576  cat conftest.err >&5
3577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578  (exit $ac_status); } &&
3579         { ac_try='test -z "$ac_cxx_werror_flag"
3580                         || test ! -s conftest.err'
3581  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3582  (eval $ac_try) 2>&5
3583  ac_status=$?
3584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585  (exit $ac_status); }; } &&
3586         { ac_try='test -s conftest.$ac_objext'
3587  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3588  (eval $ac_try) 2>&5
3589  ac_status=$?
3590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3591  (exit $ac_status); }; }; then
3592  :
3593else
3594  echo "$as_me: failed program was:" >&5
3595sed 's/^/| /' conftest.$ac_ext >&5
3596
3597continue
3598fi
3599rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3600  cat >conftest.$ac_ext <<_ACEOF
3601/* confdefs.h.  */
3602_ACEOF
3603cat confdefs.h >>conftest.$ac_ext
3604cat >>conftest.$ac_ext <<_ACEOF
3605/* end confdefs.h.  */
3606$ac_declaration
3607int
3608main ()
3609{
3610exit (42);
3611  ;
3612  return 0;
3613}
3614_ACEOF
3615rm -f conftest.$ac_objext
3616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3617  (eval $ac_compile) 2>conftest.er1
3618  ac_status=$?
3619  grep -v '^ *+' conftest.er1 >conftest.err
3620  rm -f conftest.er1
3621  cat conftest.err >&5
3622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623  (exit $ac_status); } &&
3624         { ac_try='test -z "$ac_cxx_werror_flag"
3625                         || test ! -s conftest.err'
3626  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3627  (eval $ac_try) 2>&5
3628  ac_status=$?
3629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630  (exit $ac_status); }; } &&
3631         { ac_try='test -s conftest.$ac_objext'
3632  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3633  (eval $ac_try) 2>&5
3634  ac_status=$?
3635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636  (exit $ac_status); }; }; then
3637  break
3638else
3639  echo "$as_me: failed program was:" >&5
3640sed 's/^/| /' conftest.$ac_ext >&5
3641
3642fi
3643rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3644done
3645rm -f conftest*
3646if test -n "$ac_declaration"; then
3647  echo '#ifdef __cplusplus' >>confdefs.h
3648  echo $ac_declaration      >>confdefs.h
3649  echo '#endif'             >>confdefs.h
3650fi
3651
3652ac_ext=cc
3653ac_cpp='$CXXCPP $CPPFLAGS'
3654ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3655ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3656ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3657
3658
3659#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3660#thus, we test here whether $CXX is actually working
3661ac_ext=cc
3662ac_cpp='$CXXCPP $CPPFLAGS'
3663ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3664ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3665ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3666
3667echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3668echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3669cat >conftest.$ac_ext <<_ACEOF
3670/* confdefs.h.  */
3671_ACEOF
3672cat confdefs.h >>conftest.$ac_ext
3673cat >>conftest.$ac_ext <<_ACEOF
3674/* end confdefs.h.  */
3675
3676int
3677main ()
3678{
3679int i=0;
3680  ;
3681  return 0;
3682}
3683_ACEOF
3684rm -f conftest.$ac_objext
3685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3686  (eval $ac_compile) 2>conftest.er1
3687  ac_status=$?
3688  grep -v '^ *+' conftest.er1 >conftest.err
3689  rm -f conftest.er1
3690  cat conftest.err >&5
3691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692  (exit $ac_status); } &&
3693         { ac_try='test -z "$ac_cxx_werror_flag"
3694                         || test ! -s conftest.err'
3695  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3696  (eval $ac_try) 2>&5
3697  ac_status=$?
3698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699  (exit $ac_status); }; } &&
3700         { ac_try='test -s conftest.$ac_objext'
3701  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3702  (eval $ac_try) 2>&5
3703  ac_status=$?
3704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705  (exit $ac_status); }; }; then
3706  echo "$as_me:$LINENO: result: yes" >&5
3707echo "${ECHO_T}yes" >&6
3708else
3709  echo "$as_me: failed program was:" >&5
3710sed 's/^/| /' conftest.$ac_ext >&5
3711
3712echo "$as_me:$LINENO: result: no" >&5
3713echo "${ECHO_T}no" >&6
3714   { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3715echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3716   { (exit 1); exit 1; }; }
3717
3718fi
3719rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3720ac_ext=cc
3721ac_cpp='$CXXCPP $CPPFLAGS'
3722ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3723ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3724ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3725
3726
3727coin_cxx_is_cl=false
3728# It seems that we need to cleanup something here for the Windows
3729case "$CXX" in
3730  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3731    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3732    mv confdefs.hh confdefs.h
3733    coin_cxx_is_cl=true
3734    ;;
3735esac
3736
3737# add automake conditional so we can recognize cl compiler in makefile
3738
3739
3740if test $coin_cxx_is_cl = true; then
3741  COIN_CXX_IS_CL_TRUE=
3742  COIN_CXX_IS_CL_FALSE='#'
3743else
3744  COIN_CXX_IS_CL_TRUE='#'
3745  COIN_CXX_IS_CL_FALSE=
3746fi
3747
3748
3749# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3750case "$CXX" in
3751  cl* | */cl* | CL* | */CL* )
3752    if test "$ac_cv_prog_cxx_g" = yes ; then
3753      ac_cv_prog_cxx_g=no
3754      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3755echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3756    fi ;;
3757esac
3758CXXFLAGS="$save_cxxflags"
3759
3760# Check if a project specific CXXFLAGS variable has been set
3761if test x$COIN_PRJCT != x; then
3762  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3763  if test x$coin_tmp = xset; then
3764    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3765  fi
3766fi
3767
3768if test x"$CXXFLAGS" = x; then
3769
3770# ToDo decide whether we want -DNDEBUG for optimization
3771  coin_add_cxxflags=
3772  coin_opt_cxxflags=
3773  coin_dbg_cxxflags=
3774  coin_warn_cxxflags=
3775
3776  if test "$GXX" = "yes"; then
3777    case "$CXX" in
3778      icpc* | */icpc*)
3779        ;;
3780      *)
3781# ToDo decide about unroll-loops
3782        coin_opt_cxxflags="-O3"
3783        coin_add_cxxflags="-pipe"
3784        coin_dbg_cxxflags="-g"
3785        coin_warn_cxxflags="-Wimplicit -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas"
3786        case $build in
3787          *-darwin*)
3788            ;;
3789          *)
3790            coin_warn_cxxflags="-pedantic-errors $coin_warn_cxxflags"
3791            ;;
3792        esac
3793
3794        case $enable_doscompile in
3795          mingw)
3796            CXXFLAGS="-mno-cygwin"
3797            cat >conftest.$ac_ext <<_ACEOF
3798/* confdefs.h.  */
3799_ACEOF
3800cat confdefs.h >>conftest.$ac_ext
3801cat >>conftest.$ac_ext <<_ACEOF
3802/* end confdefs.h.  */
3803
3804int
3805main ()
3806{
3807int i=0; i++;
3808  ;
3809  return 0;
3810}
3811_ACEOF
3812rm -f conftest.$ac_objext conftest$ac_exeext
3813if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3814  (eval $ac_link) 2>conftest.er1
3815  ac_status=$?
3816  grep -v '^ *+' conftest.er1 >conftest.err
3817  rm -f conftest.er1
3818  cat conftest.err >&5
3819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820  (exit $ac_status); } &&
3821         { ac_try='test -z "$ac_cxx_werror_flag"
3822                         || test ! -s conftest.err'
3823  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3824  (eval $ac_try) 2>&5
3825  ac_status=$?
3826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827  (exit $ac_status); }; } &&
3828         { ac_try='test -s conftest$ac_exeext'
3829  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3830  (eval $ac_try) 2>&5
3831  ac_status=$?
3832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833  (exit $ac_status); }; }; then
3834  coin_add_cxxflags="-mno-cygwin $coin_add_cxxflags"
3835else
3836  echo "$as_me: failed program was:" >&5
3837sed 's/^/| /' conftest.$ac_ext >&5
3838
3839fi
3840rm -f conftest.err conftest.$ac_objext \
3841      conftest$ac_exeext conftest.$ac_ext
3842            CXXFLAGS=
3843          ;;
3844        esac
3845    esac
3846  fi
3847
3848# Note that we do not need to cover GCC in the following tests.
3849
3850  if test -z "$coin_opt_cxxflags"; then
3851    case $build in
3852      *-cygwin* | *-mingw*)
3853        case "$CXX" in
3854          cl* | */cl* | CL* | */CL*)
3855            # The MT and MTd options are mutually exclusive
3856            coin_opt_cxxflags='-MT -O2'
3857            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3858            coin_dbg_cxxflags='-MTd'
3859            ;;
3860          icl* | */icl* | ICL* | */ICL*)
3861            # The MT and MTd options are mutually exclusive
3862            coin_opt_cxxflags='-MT -Ox'
3863            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3864            coin_dbg_cxxflags='-MTd -debug'
3865            ;;
3866        esac
3867        ;;
3868      *-linux-*)
3869        case "$CXX" in
3870          icpc* | */icpc*)
3871            coin_opt_cxxflags="-O3 -ip -mp1"
3872            coin_add_cxxflags=""
3873            coin_dbg_cxxflags="-g"
3874            # Check if -i_dynamic is necessary (for new glibc library)
3875            CXXFLAGS=
3876            cat >conftest.$ac_ext <<_ACEOF
3877/* confdefs.h.  */
3878_ACEOF
3879cat confdefs.h >>conftest.$ac_ext
3880cat >>conftest.$ac_ext <<_ACEOF
3881/* end confdefs.h.  */
3882
3883int
3884main ()
3885{
3886int i=0; i++;
3887  ;
3888  return 0;
3889}
3890_ACEOF
3891rm -f conftest.$ac_objext conftest$ac_exeext
3892if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3893  (eval $ac_link) 2>conftest.er1
3894  ac_status=$?
3895  grep -v '^ *+' conftest.er1 >conftest.err
3896  rm -f conftest.er1
3897  cat conftest.err >&5
3898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899  (exit $ac_status); } &&
3900         { ac_try='test -z "$ac_cxx_werror_flag"
3901                         || test ! -s conftest.err'
3902  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3903  (eval $ac_try) 2>&5
3904  ac_status=$?
3905  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3906  (exit $ac_status); }; } &&
3907         { ac_try='test -s conftest$ac_exeext'
3908  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3909  (eval $ac_try) 2>&5
3910  ac_status=$?
3911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912  (exit $ac_status); }; }; then
3913  :
3914else
3915  echo "$as_me: failed program was:" >&5
3916sed 's/^/| /' conftest.$ac_ext >&5
3917
3918coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3919fi
3920rm -f conftest.err conftest.$ac_objext \
3921      conftest$ac_exeext conftest.$ac_ext
3922            ;;
3923          pgCC* | */pgCC*)
3924            coin_opt_cxxflags="-fast"
3925            coin_add_cxxflags="-Kieee -pc 64"
3926            coin_dbg_cxxflags="-g"
3927            ;;
3928        esac
3929        ;;
3930      *-ibm-*)
3931        case "$CXX" in
3932          xlC* | */xlC* | mpxlC* | */mpxlC*)
3933            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3934            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3935            coin_dbg_cxxflags="-g"
3936            ;;
3937        esac
3938        ;;
3939      *-hp-*)
3940        case "$CXX" in
3941          aCC* | */aCC* )
3942            coin_opt_cxxflags="-O"
3943            coin_add_cxxflags="-AA"
3944            coin_dbg_cxxflags="-g"
3945            ;;
3946        esac
3947        ;;
3948      *-*-solaris*)
3949          coin_opt_cxxflags="-O4"
3950          coin_dbg_cxxflags="-g"
3951        ;;
3952    esac
3953  fi
3954
3955# Generic flag settings. If these don't work, add a case above.
3956
3957  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3958    coin_dbg_cxxflags="-g"
3959  fi
3960
3961  if test -z "$coin_opt_cxxflags"; then
3962    # Try if -O option works if nothing else is set
3963    CXXFLAGS=-O
3964    cat >conftest.$ac_ext <<_ACEOF
3965/* confdefs.h.  */
3966_ACEOF
3967cat confdefs.h >>conftest.$ac_ext
3968cat >>conftest.$ac_ext <<_ACEOF
3969/* end confdefs.h.  */
3970
3971int
3972main ()
3973{
3974int i=0; i++;
3975  ;
3976  return 0;
3977}
3978_ACEOF
3979rm -f conftest.$ac_objext conftest$ac_exeext
3980if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3981  (eval $ac_link) 2>conftest.er1
3982  ac_status=$?
3983  grep -v '^ *+' conftest.er1 >conftest.err
3984  rm -f conftest.er1
3985  cat conftest.err >&5
3986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3987  (exit $ac_status); } &&
3988         { ac_try='test -z "$ac_cxx_werror_flag"
3989                         || test ! -s conftest.err'
3990  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3991  (eval $ac_try) 2>&5
3992  ac_status=$?
3993  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994  (exit $ac_status); }; } &&
3995         { ac_try='test -s conftest$ac_exeext'
3996  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3997  (eval $ac_try) 2>&5
3998  ac_status=$?
3999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000  (exit $ac_status); }; }; then
4001  coin_opt_cxxflags="-O"
4002else
4003  echo "$as_me: failed program was:" >&5
4004sed 's/^/| /' conftest.$ac_ext >&5
4005
4006fi
4007rm -f conftest.err conftest.$ac_objext \
4008      conftest$ac_exeext conftest.$ac_ext
4009  fi
4010
4011  # if PM doesn't want the warning messages, take them out
4012  if test x"$coin_skip_warn_cxxflags" = xyes; then
4013    coin_warn_cxxflags=
4014  fi
4015
4016# Do final setup of flags based on values determined above.
4017
4018  if test x${DBG_CXXFLAGS+set} != xset; then
4019    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
4020  fi
4021  if test x${OPT_CXXFLAGS+set} != xset; then
4022    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
4023  fi
4024
4025  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
4026  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
4027
4028  if test "$coin_debug_compile" = "true"; then
4029    CXXFLAGS="$DBG_CXXFLAGS"
4030  else
4031    CXXFLAGS="$OPT_CXXFLAGS"
4032  fi
4033
4034# Handle the case where CXXFLAGS was set externally.
4035else
4036  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
4037  if test x${DBG_CXXFLAGS+set} != xset; then
4038    DBG_CXXFLAGS="$CXXFLAGS"
4039  fi
4040  if test x${OPT_CXXFLAGS+set} != xset; then
4041    OPT_CXXFLAGS="$CXXFLAGS"
4042  fi
4043fi
4044
4045# If CXXFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
4046
4047case "$CXXFLAGS" in
4048  *-mno-cygwin*)
4049    if test x${CPPFLAGS+set} != xset ; then
4050      CPPFLAGS="-mno-cygwin"
4051    else
4052      case "$CPPFLAGS" in
4053        *-mno-cygwin*)
4054          ;;
4055        *)
4056          CPPFLAGS="$CPPFLAGS -mno-cygwin"
4057          ;;
4058      esac
4059    fi ;;
4060esac
4061
4062# Try if CXXFLAGS works
4063save_CXXFLAGS="$CXXFLAGS"
4064cat >conftest.$ac_ext <<_ACEOF
4065/* confdefs.h.  */
4066_ACEOF
4067cat confdefs.h >>conftest.$ac_ext
4068cat >>conftest.$ac_ext <<_ACEOF
4069/* end confdefs.h.  */
4070
4071int
4072main ()
4073{
4074int i=0; i++;
4075  ;
4076  return 0;
4077}
4078_ACEOF
4079rm -f conftest.$ac_objext conftest$ac_exeext
4080if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4081  (eval $ac_link) 2>conftest.er1
4082  ac_status=$?
4083  grep -v '^ *+' conftest.er1 >conftest.err
4084  rm -f conftest.er1
4085  cat conftest.err >&5
4086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087  (exit $ac_status); } &&
4088         { ac_try='test -z "$ac_cxx_werror_flag"
4089                         || test ! -s conftest.err'
4090  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4091  (eval $ac_try) 2>&5
4092  ac_status=$?
4093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094  (exit $ac_status); }; } &&
4095         { ac_try='test -s conftest$ac_exeext'
4096  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4097  (eval $ac_try) 2>&5
4098  ac_status=$?
4099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4100  (exit $ac_status); }; }; then
4101  :
4102else
4103  echo "$as_me: failed program was:" >&5
4104sed 's/^/| /' conftest.$ac_ext >&5
4105
4106CXXFLAGS=
4107fi
4108rm -f conftest.err conftest.$ac_objext \
4109      conftest$ac_exeext conftest.$ac_ext
4110if test -z "$CXXFLAGS"; then
4111  { 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
4112echo "$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;}
4113  CXXFLAGS='-O'
4114  cat >conftest.$ac_ext <<_ACEOF
4115/* confdefs.h.  */
4116_ACEOF
4117cat confdefs.h >>conftest.$ac_ext
4118cat >>conftest.$ac_ext <<_ACEOF
4119/* end confdefs.h.  */
4120
4121int
4122main ()
4123{
4124int i=0; i++;
4125  ;
4126  return 0;
4127}
4128_ACEOF
4129rm -f conftest.$ac_objext conftest$ac_exeext
4130if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4131  (eval $ac_link) 2>conftest.er1
4132  ac_status=$?
4133  grep -v '^ *+' conftest.er1 >conftest.err
4134  rm -f conftest.er1
4135  cat conftest.err >&5
4136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137  (exit $ac_status); } &&
4138         { ac_try='test -z "$ac_cxx_werror_flag"
4139                         || test ! -s conftest.err'
4140  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4141  (eval $ac_try) 2>&5
4142  ac_status=$?
4143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144  (exit $ac_status); }; } &&
4145         { ac_try='test -s conftest$ac_exeext'
4146  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4147  (eval $ac_try) 2>&5
4148  ac_status=$?
4149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150  (exit $ac_status); }; }; then
4151  :
4152else
4153  echo "$as_me: failed program was:" >&5
4154sed 's/^/| /' conftest.$ac_ext >&5
4155
4156CXXFLAGS=
4157fi
4158rm -f conftest.err conftest.$ac_objext \
4159      conftest$ac_exeext conftest.$ac_ext
4160  if test -z "$CXXFLAGS"; then
4161    { 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
4162echo "$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;}
4163  fi
4164fi
4165
4166{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
4167echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
4168
4169
4170if test x"$MPICXX" = x; then :; else
4171  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
4172echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
4173  CXX="$MPICXX"
4174fi
4175
4176# correct the LD variable in a mingw build with MS or intel compiler
4177case "$CXX" in
4178  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4179    case $build in
4180  *-mingw*)
4181    if test "${LD+set}" = set; then :; else
4182      LD=link
4183    fi
4184    ;;
4185 esac
4186 case $enable_doscompile in
4187   msvc)
4188     if test "x${LD+set}" = xset; then :; else
4189       LD=link
4190     fi
4191     ;;
4192 esac
4193
4194    ;;
4195esac
4196
4197ac_ext=c
4198ac_cpp='$CPP $CPPFLAGS'
4199ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4200ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4201ac_compiler_gnu=$ac_cv_c_compiler_gnu
4202
4203
4204
4205# Initialize automake and libtool
4206{
4207
4208
4209
4210# START
4211
4212# Test if force_shared has been set
4213if test "x" = xforce_shared; then
4214  if test x$enable_shared = xno; then
4215    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4216echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4217   { (exit 1); exit 1; }; }
4218  fi
4219  enable_shared=yes;
4220else
4221  # On Cygwin and AIX, building DLLs doesn't work
4222  case $build in
4223    *-cygwin*)
4224      coin_disable_shared=yes
4225      platform=Cygwin
4226    ;;
4227    *-aix*)
4228      coin_disable_shared=yes
4229      platform=AIX
4230    ;;
4231    *-mingw*)
4232      coin_disable_shared=yes
4233      platform="Msys"
4234#      case "$CXX" in
4235#        cl*)
4236#          coin_disable_shared=yes
4237#          platform="Msys with cl"
4238#      ;;
4239#      esac
4240    ;;
4241  esac
4242fi
4243if test x"$coin_disable_shared" = xyes; then
4244  if test x"$enable_shared" = xyes; then
4245    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
4246echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
4247  fi
4248  enable_shared=no
4249fi
4250# By default, we only want the shared objects to be compiled
4251# Check whether --enable-static or --disable-static was given.
4252if test "${enable_static+set}" = set; then
4253  enableval="$enable_static"
4254  p=${PACKAGE-default}
4255    case $enableval in
4256    yes) enable_static=yes ;;
4257    no) enable_static=no ;;
4258    *)
4259     enable_static=no
4260      # Look at the argument we got.  We use all the common list separators.
4261      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4262      for pkg in $enableval; do
4263        IFS="$lt_save_ifs"
4264        if test "X$pkg" = "X$p"; then
4265          enable_static=yes
4266        fi
4267      done
4268      IFS="$lt_save_ifs"
4269      ;;
4270    esac
4271else
4272  enable_static=no
4273fi;
4274
4275
4276
4277
4278# Initialize automake
4279echo "$as_me:$LINENO: checking for egrep" >&5
4280echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4281if test "${ac_cv_prog_egrep+set}" = set; then
4282  echo $ECHO_N "(cached) $ECHO_C" >&6
4283else
4284  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4285    then ac_cv_prog_egrep='grep -E'
4286    else ac_cv_prog_egrep='egrep'
4287    fi
4288fi
4289echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4290echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4291 EGREP=$ac_cv_prog_egrep
4292
4293
4294echo "$as_me:$LINENO: checking whether ln -s works" >&5
4295echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4296LN_S=$as_ln_s
4297if test "$LN_S" = "ln -s"; then
4298  echo "$as_me:$LINENO: result: yes" >&5
4299echo "${ECHO_T}yes" >&6
4300else
4301  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4302echo "${ECHO_T}no, using $LN_S" >&6
4303fi
4304
4305am__api_version="1.9"
4306# Find a good install program.  We prefer a C program (faster),
4307# so one script is as good as another.  But avoid the broken or
4308# incompatible versions:
4309# SysV /etc/install, /usr/sbin/install
4310# SunOS /usr/etc/install
4311# IRIX /sbin/install
4312# AIX /bin/install
4313# AmigaOS /C/install, which installs bootblocks on floppy discs
4314# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4315# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4316# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4317# OS/2's system install, which has a completely different semantic
4318# ./install, which can be erroneously created by make from ./install.sh.
4319echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4320echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4321if test -z "$INSTALL"; then
4322if test "${ac_cv_path_install+set}" = set; then
4323  echo $ECHO_N "(cached) $ECHO_C" >&6
4324else
4325  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4326for as_dir in $PATH
4327do
4328  IFS=$as_save_IFS
4329  test -z "$as_dir" && as_dir=.
4330  # Account for people who put trailing slashes in PATH elements.
4331case $as_dir/ in
4332  ./ | .// | /cC/* | \
4333  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4334  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4335  /usr/ucb/* ) ;;
4336  *)
4337    # OSF1 and SCO ODT 3.0 have their own names for install.
4338    # Don't use installbsd from OSF since it installs stuff as root
4339    # by default.
4340    for ac_prog in ginstall scoinst install; do
4341      for ac_exec_ext in '' $ac_executable_extensions; do
4342        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4343          if test $ac_prog = install &&
4344            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4345            # AIX install.  It has an incompatible calling convention.
4346            :
4347          elif test $ac_prog = install &&
4348            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4349            # program-specific install script used by HP pwplus--don't use.
4350            :
4351          else
4352            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4353            break 3
4354          fi
4355        fi
4356      done
4357    done
4358    ;;
4359esac
4360done
4361
4362
4363fi
4364  if test "${ac_cv_path_install+set}" = set; then
4365    INSTALL=$ac_cv_path_install
4366  else
4367    # As a last resort, use the slow shell script.  We don't cache a
4368    # path for INSTALL within a source directory, because that will
4369    # break other packages using the cache if that directory is
4370    # removed, or if the path is relative.
4371    INSTALL=$ac_install_sh
4372  fi
4373fi
4374echo "$as_me:$LINENO: result: $INSTALL" >&5
4375echo "${ECHO_T}$INSTALL" >&6
4376
4377# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4378# It thinks the first close brace ends the variable substitution.
4379test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4380
4381test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4382
4383test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4384
4385echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4386echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4387# Just in case
4388sleep 1
4389echo timestamp > conftest.file
4390# Do `set' in a subshell so we don't clobber the current shell's
4391# arguments.  Must try -L first in case configure is actually a
4392# symlink; some systems play weird games with the mod time of symlinks
4393# (eg FreeBSD returns the mod time of the symlink's containing
4394# directory).
4395if (
4396   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4397   if test "$*" = "X"; then
4398      # -L didn't work.
4399      set X `ls -t $srcdir/configure conftest.file`
4400   fi
4401   rm -f conftest.file
4402   if test "$*" != "X $srcdir/configure conftest.file" \
4403      && test "$*" != "X conftest.file $srcdir/configure"; then
4404
4405      # If neither matched, then we have a broken ls.  This can happen
4406      # if, for instance, CONFIG_SHELL is bash and it inherits a
4407      # broken ls alias from the environment.  This has actually
4408      # happened.  Such a system could not be considered "sane".
4409      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4410alias in your environment" >&5
4411echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4412alias in your environment" >&2;}
4413   { (exit 1); exit 1; }; }
4414   fi
4415
4416   test "$2" = conftest.file
4417   )
4418then
4419   # Ok.
4420   :
4421else
4422   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4423Check your system clock" >&5
4424echo "$as_me: error: newly created file is older than distributed files!
4425Check your system clock" >&2;}
4426   { (exit 1); exit 1; }; }
4427fi
4428echo "$as_me:$LINENO: result: yes" >&5
4429echo "${ECHO_T}yes" >&6
4430test "$program_prefix" != NONE &&
4431  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4432# Use a double $ so make ignores it.
4433test "$program_suffix" != NONE &&
4434  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4435# Double any \ or $.  echo might interpret backslashes.
4436# By default was `s,x,x', remove it if useless.
4437cat <<\_ACEOF >conftest.sed
4438s/[\\$]/&&/g;s/;s,x,x,$//
4439_ACEOF
4440program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4441rm conftest.sed
4442
4443# expand $ac_aux_dir to an absolute path
4444am_aux_dir=`cd $ac_aux_dir && pwd`
4445
4446test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4447# Use eval to expand $SHELL
4448if eval "$MISSING --run true"; then
4449  am_missing_run="$MISSING --run "
4450else
4451  am_missing_run=
4452  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4453echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4454fi
4455
4456if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4457  # We used to keeping the `.' as first argument, in order to
4458  # allow $(mkdir_p) to be used without argument.  As in
4459  #   $(mkdir_p) $(somedir)
4460  # where $(somedir) is conditionally defined.  However this is wrong
4461  # for two reasons:
4462  #  1. if the package is installed by a user who cannot write `.'
4463  #     make install will fail,
4464  #  2. the above comment should most certainly read
4465  #     $(mkdir_p) $(DESTDIR)$(somedir)
4466  #     so it does not work when $(somedir) is undefined and
4467  #     $(DESTDIR) is not.
4468  #  To support the latter case, we have to write
4469  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4470  #  so the `.' trick is pointless.
4471  mkdir_p='mkdir -p --'
4472else
4473  # On NextStep and OpenStep, the `mkdir' command does not
4474  # recognize any option.  It will interpret all options as
4475  # directories to create, and then abort because `.' already
4476  # exists.
4477  for d in ./-p ./--version;
4478  do
4479    test -d $d && rmdir $d
4480  done
4481  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4482  if test -f "$ac_aux_dir/mkinstalldirs"; then
4483    mkdir_p='$(mkinstalldirs)'
4484  else
4485    mkdir_p='$(install_sh) -d'
4486  fi
4487fi
4488
4489for ac_prog in gawk mawk nawk awk
4490do
4491  # Extract the first word of "$ac_prog", so it can be a program name with args.
4492set dummy $ac_prog; ac_word=$2
4493echo "$as_me:$LINENO: checking for $ac_word" >&5
4494echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4495if test "${ac_cv_prog_AWK+set}" = set; then
4496  echo $ECHO_N "(cached) $ECHO_C" >&6
4497else
4498  if test -n "$AWK"; then
4499  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4500else
4501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4502for as_dir in $PATH
4503do
4504  IFS=$as_save_IFS
4505  test -z "$as_dir" && as_dir=.
4506  for ac_exec_ext in '' $ac_executable_extensions; do
4507  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4508    ac_cv_prog_AWK="$ac_prog"
4509    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4510    break 2
4511  fi
4512done
4513done
4514
4515fi
4516fi
4517AWK=$ac_cv_prog_AWK
4518if test -n "$AWK"; then
4519  echo "$as_me:$LINENO: result: $AWK" >&5
4520echo "${ECHO_T}$AWK" >&6
4521else
4522  echo "$as_me:$LINENO: result: no" >&5
4523echo "${ECHO_T}no" >&6
4524fi
4525
4526  test -n "$AWK" && break
4527done
4528
4529echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4530echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4531set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4532if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4533  echo $ECHO_N "(cached) $ECHO_C" >&6
4534else
4535  cat >conftest.make <<\_ACEOF
4536all:
4537        @echo 'ac_maketemp="$(MAKE)"'
4538_ACEOF
4539# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4540eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4541if test -n "$ac_maketemp"; then
4542  eval ac_cv_prog_make_${ac_make}_set=yes
4543else
4544  eval ac_cv_prog_make_${ac_make}_set=no
4545fi
4546rm -f conftest.make
4547fi
4548if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4549  echo "$as_me:$LINENO: result: yes" >&5
4550echo "${ECHO_T}yes" >&6
4551  SET_MAKE=
4552else
4553  echo "$as_me:$LINENO: result: no" >&5
4554echo "${ECHO_T}no" >&6
4555  SET_MAKE="MAKE=${MAKE-make}"
4556fi
4557
4558rm -rf .tst 2>/dev/null
4559mkdir .tst 2>/dev/null
4560if test -d .tst; then
4561  am__leading_dot=.
4562else
4563  am__leading_dot=_
4564fi
4565rmdir .tst 2>/dev/null
4566
4567DEPDIR="${am__leading_dot}deps"
4568
4569          ac_config_commands="$ac_config_commands depfiles"
4570
4571
4572am_make=${MAKE-make}
4573cat > confinc << 'END'
4574am__doit:
4575        @echo done
4576.PHONY: am__doit
4577END
4578# If we don't find an include directive, just comment out the code.
4579echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4580echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4581am__include="#"
4582am__quote=
4583_am_result=none
4584# First try GNU make style include.
4585echo "include confinc" > confmf
4586# We grep out `Entering directory' and `Leaving directory'
4587# messages which can occur if `w' ends up in MAKEFLAGS.
4588# In particular we don't look at `^make:' because GNU make might
4589# be invoked under some other name (usually "gmake"), in which
4590# case it prints its new name instead of `make'.
4591if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4592   am__include=include
4593   am__quote=
4594   _am_result=GNU
4595fi
4596# Now try BSD make style include.
4597if test "$am__include" = "#"; then
4598   echo '.include "confinc"' > confmf
4599   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4600      am__include=.include
4601      am__quote="\""
4602      _am_result=BSD
4603   fi
4604fi
4605
4606
4607echo "$as_me:$LINENO: result: $_am_result" >&5
4608echo "${ECHO_T}$_am_result" >&6
4609rm -f confinc confmf
4610
4611# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4612if test "${enable_dependency_tracking+set}" = set; then
4613  enableval="$enable_dependency_tracking"
4614
4615fi;
4616if test "x$enable_dependency_tracking" != xno; then
4617  am_depcomp="$ac_aux_dir/depcomp"
4618  AMDEPBACKSLASH='\'
4619fi
4620
4621
4622if test "x$enable_dependency_tracking" != xno; then
4623  AMDEP_TRUE=
4624  AMDEP_FALSE='#'
4625else
4626  AMDEP_TRUE='#'
4627  AMDEP_FALSE=
4628fi
4629
4630
4631
4632
4633
4634
4635# AC_MSG_NOTICE([Beginning automake initialisation.])
4636# Stuff for automake
4637# test to see if srcdir already configured
4638if test "`cd $srcdir && pwd`" != "`pwd`" &&
4639   test -f $srcdir/config.status; then
4640  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4641echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4642   { (exit 1); exit 1; }; }
4643fi
4644
4645# test whether we have cygpath
4646if test -z "$CYGPATH_W"; then
4647  if (cygpath --version) >/dev/null 2>/dev/null; then
4648    CYGPATH_W='cygpath -w'
4649  else
4650    CYGPATH_W=echo
4651  fi
4652fi
4653
4654
4655# Define the identity of the package.
4656 PACKAGE='cbc'
4657 VERSION='trunk'
4658
4659
4660cat >>confdefs.h <<_ACEOF
4661#define PACKAGE "$PACKAGE"
4662_ACEOF
4663
4664
4665cat >>confdefs.h <<_ACEOF
4666#define VERSION "$VERSION"
4667_ACEOF
4668
4669# Some tools Automake needs.
4670
4671ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4672
4673
4674AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4675
4676
4677AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4678
4679
4680AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4681
4682
4683MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4684
4685install_sh=${install_sh-"$am_aux_dir/install-sh"}
4686
4687# Installed binaries are usually stripped using `strip' when the user
4688# run `make install-strip'.  However `strip' might not be the right
4689# tool to use in cross-compilation environments, therefore Automake
4690# will honor the `STRIP' environment variable to overrule this program.
4691if test "$cross_compiling" != no; then
4692  if test -n "$ac_tool_prefix"; then
4693  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4694set dummy ${ac_tool_prefix}strip; ac_word=$2
4695echo "$as_me:$LINENO: checking for $ac_word" >&5
4696echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4697if test "${ac_cv_prog_STRIP+set}" = set; then
4698  echo $ECHO_N "(cached) $ECHO_C" >&6
4699else
4700  if test -n "$STRIP"; then
4701  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4702else
4703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4704for as_dir in $PATH
4705do
4706  IFS=$as_save_IFS
4707  test -z "$as_dir" && as_dir=.
4708  for ac_exec_ext in '' $ac_executable_extensions; do
4709  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4710    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4711    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4712    break 2
4713  fi
4714done
4715done
4716
4717fi
4718fi
4719STRIP=$ac_cv_prog_STRIP
4720if test -n "$STRIP"; then
4721  echo "$as_me:$LINENO: result: $STRIP" >&5
4722echo "${ECHO_T}$STRIP" >&6
4723else
4724  echo "$as_me:$LINENO: result: no" >&5
4725echo "${ECHO_T}no" >&6
4726fi
4727
4728fi
4729if test -z "$ac_cv_prog_STRIP"; then
4730  ac_ct_STRIP=$STRIP
4731  # Extract the first word of "strip", so it can be a program name with args.
4732set dummy strip; ac_word=$2
4733echo "$as_me:$LINENO: checking for $ac_word" >&5
4734echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4735if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4736  echo $ECHO_N "(cached) $ECHO_C" >&6
4737else
4738  if test -n "$ac_ct_STRIP"; then
4739  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4740else
4741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4742for as_dir in $PATH
4743do
4744  IFS=$as_save_IFS
4745  test -z "$as_dir" && as_dir=.
4746  for ac_exec_ext in '' $ac_executable_extensions; do
4747  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4748    ac_cv_prog_ac_ct_STRIP="strip"
4749    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4750    break 2
4751  fi
4752done
4753done
4754
4755  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4756fi
4757fi
4758ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4759if test -n "$ac_ct_STRIP"; then
4760  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4761echo "${ECHO_T}$ac_ct_STRIP" >&6
4762else
4763  echo "$as_me:$LINENO: result: no" >&5
4764echo "${ECHO_T}no" >&6
4765fi
4766
4767  STRIP=$ac_ct_STRIP
4768else
4769  STRIP="$ac_cv_prog_STRIP"
4770fi
4771
4772fi
4773INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4774
4775# We need awk for the "check" target.  The system "awk" is bad on
4776# some platforms.
4777# Always define AMTAR for backward compatibility.
4778
4779AMTAR=${AMTAR-"${am_missing_run}tar"}
4780
4781am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4782
4783
4784
4785
4786depcc="$CC"   am_compiler_list=
4787
4788echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4789echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4790if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4791  echo $ECHO_N "(cached) $ECHO_C" >&6
4792else
4793  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4794  # We make a subdir and do the tests there.  Otherwise we can end up
4795  # making bogus files that we don't know about and never remove.  For
4796  # instance it was reported that on HP-UX the gcc test will end up
4797  # making a dummy file named `D' -- because `-MD' means `put the output
4798  # in D'.
4799  mkdir conftest.dir
4800  # Copy depcomp to subdir because otherwise we won't find it if we're
4801  # using a relative directory.
4802  cp "$am_depcomp" conftest.dir
4803  cd conftest.dir
4804  # We will build objects and dependencies in a subdirectory because
4805  # it helps to detect inapplicable dependency modes.  For instance
4806  # both Tru64's cc and ICC support -MD to output dependencies as a
4807  # side effect of compilation, but ICC will put the dependencies in
4808  # the current directory while Tru64 will put them in the object
4809  # directory.
4810  mkdir sub
4811
4812  am_cv_CC_dependencies_compiler_type=none
4813  if test "$am_compiler_list" = ""; then
4814     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4815  fi
4816  for depmode in $am_compiler_list; do
4817    # Setup a source with many dependencies, because some compilers
4818    # like to wrap large dependency lists on column 80 (with \), and
4819    # we should not choose a depcomp mode which is confused by this.
4820    #
4821    # We need to recreate these files for each test, as the compiler may
4822    # overwrite some of them when testing with obscure command lines.
4823    # This happens at least with the AIX C compiler.
4824    : > sub/conftest.c
4825    for i in 1 2 3 4 5 6; do
4826      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4827      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4828      # Solaris 8's {/usr,}/bin/sh.
4829      touch sub/conftst$i.h
4830    done
4831    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4832
4833    case $depmode in
4834    nosideeffect)
4835      # after this tag, mechanisms are not by side-effect, so they'll
4836      # only be used when explicitly requested
4837      if test "x$enable_dependency_tracking" = xyes; then
4838        continue
4839      else
4840        break
4841      fi
4842      ;;
4843    none) break ;;
4844    esac
4845    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4846    # mode.  It turns out that the SunPro C++ compiler does not properly
4847    # handle `-M -o', and we need to detect this.
4848    if depmode=$depmode \
4849       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4850       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4851       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4852         >/dev/null 2>conftest.err &&
4853       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4854       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4855       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4856      # icc doesn't choke on unknown options, it will just issue warnings
4857      # or remarks (even with -Werror).  So we grep stderr for any message
4858      # that says an option was ignored or not supported.
4859      # When given -MP, icc 7.0 and 7.1 complain thusly:
4860      #   icc: Command line warning: ignoring option '-M'; no argument required
4861      # The diagnosis changed in icc 8.0:
4862      #   icc: Command line remark: option '-MP' not supported
4863      if (grep 'ignoring option' conftest.err ||
4864          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4865        am_cv_CC_dependencies_compiler_type=$depmode
4866        break
4867      fi
4868    fi
4869  done
4870
4871  cd ..
4872  rm -rf conftest.dir
4873else
4874  am_cv_CC_dependencies_compiler_type=none
4875fi
4876
4877fi
4878echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4879echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4880CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4881
4882
4883
4884if
4885  test "x$enable_dependency_tracking" != xno \
4886  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4887  am__fastdepCC_TRUE=
4888  am__fastdepCC_FALSE='#'
4889else
4890  am__fastdepCC_TRUE='#'
4891  am__fastdepCC_FALSE=
4892fi
4893
4894
4895depcc="$CXX"  am_compiler_list=
4896
4897echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4898echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4899if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4900  echo $ECHO_N "(cached) $ECHO_C" >&6
4901else
4902  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4903  # We make a subdir and do the tests there.  Otherwise we can end up
4904  # making bogus files that we don't know about and never remove.  For
4905  # instance it was reported that on HP-UX the gcc test will end up
4906  # making a dummy file named `D' -- because `-MD' means `put the output
4907  # in D'.
4908  mkdir conftest.dir
4909  # Copy depcomp to subdir because otherwise we won't find it if we're
4910  # using a relative directory.
4911  cp "$am_depcomp" conftest.dir
4912  cd conftest.dir
4913  # We will build objects and dependencies in a subdirectory because
4914  # it helps to detect inapplicable dependency modes.  For instance
4915  # both Tru64's cc and ICC support -MD to output dependencies as a
4916  # side effect of compilation, but ICC will put the dependencies in
4917  # the current directory while Tru64 will put them in the object
4918  # directory.
4919  mkdir sub
4920
4921  am_cv_CXX_dependencies_compiler_type=none
4922  if test "$am_compiler_list" = ""; then
4923     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4924  fi
4925  for depmode in $am_compiler_list; do
4926    # Setup a source with many dependencies, because some compilers
4927    # like to wrap large dependency lists on column 80 (with \), and
4928    # we should not choose a depcomp mode which is confused by this.
4929    #
4930    # We need to recreate these files for each test, as the compiler may
4931    # overwrite some of them when testing with obscure command lines.
4932    # This happens at least with the AIX C compiler.
4933    : > sub/conftest.c
4934    for i in 1 2 3 4 5 6; do
4935      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4936      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4937      # Solaris 8's {/usr,}/bin/sh.
4938      touch sub/conftst$i.h
4939    done
4940    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4941
4942    case $depmode in
4943    nosideeffect)
4944      # after this tag, mechanisms are not by side-effect, so they'll
4945      # only be used when explicitly requested
4946      if test "x$enable_dependency_tracking" = xyes; then
4947        continue
4948      else
4949        break
4950      fi
4951      ;;
4952    none) break ;;
4953    esac
4954    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4955    # mode.  It turns out that the SunPro C++ compiler does not properly
4956    # handle `-M -o', and we need to detect this.
4957    if depmode=$depmode \
4958       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4959       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4960       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4961         >/dev/null 2>conftest.err &&
4962       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4963       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4964       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4965      # icc doesn't choke on unknown options, it will just issue warnings
4966      # or remarks (even with -Werror).  So we grep stderr for any message
4967      # that says an option was ignored or not supported.
4968      # When given -MP, icc 7.0 and 7.1 complain thusly:
4969      #   icc: Command line warning: ignoring option '-M'; no argument required
4970      # The diagnosis changed in icc 8.0:
4971      #   icc: Command line remark: option '-MP' not supported
4972      if (grep 'ignoring option' conftest.err ||
4973          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4974        am_cv_CXX_dependencies_compiler_type=$depmode
4975        break
4976      fi
4977    fi
4978  done
4979
4980  cd ..
4981  rm -rf conftest.dir
4982else
4983  am_cv_CXX_dependencies_compiler_type=none
4984fi
4985
4986fi
4987echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4988echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4989CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4990
4991
4992
4993if
4994  test "x$enable_dependency_tracking" != xno \
4995  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4996  am__fastdepCXX_TRUE=
4997  am__fastdepCXX_FALSE='#'
4998else
4999  am__fastdepCXX_TRUE='#'
5000  am__fastdepCXX_FALSE=
5001fi
5002
5003
5004
5005echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5006echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5007    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5008if test "${enable_maintainer_mode+set}" = set; then
5009  enableval="$enable_maintainer_mode"
5010  USE_MAINTAINER_MODE=$enableval
5011else
5012  USE_MAINTAINER_MODE=no
5013fi;
5014  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5015echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5016
5017
5018if test $USE_MAINTAINER_MODE = yes; then
5019  MAINTAINER_MODE_TRUE=
5020  MAINTAINER_MODE_FALSE='#'
5021else
5022  MAINTAINER_MODE_TRUE='#'
5023  MAINTAINER_MODE_FALSE=
5024fi
5025
5026  MAINT=$MAINTAINER_MODE_TRUE
5027
5028
5029
5030coin_have_externals=no
5031if test "$enable_maintainer_mode" = yes; then
5032
5033  # If maintainer mode is chosen, we make sure that the correct versions
5034  # of the tools are used, and that we know where libtool.m4 is (to
5035  # recreate acinclude.m4)
5036
5037
5038  LIBTOOLM4=
5039  # Normally, $HOME
5040  AUTOTOOLS_DFLT=$HOME
5041
5042  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5043echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5044if test "${ac_cv_use_correct_autotools+set}" = set; then
5045  echo $ECHO_N "(cached) $ECHO_C" >&6
5046else
5047  ac_cv_use_correct_autotools=check
5048fi
5049echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5050echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5051
5052  if test $ac_cv_use_correct_autotools = check; then
5053    ac_cv_use_correct_autotools=yes
5054    # Check if we have autoconf
5055    # Extract the first word of "autoconf", so it can be a program name with args.
5056set dummy autoconf; ac_word=$2
5057echo "$as_me:$LINENO: checking for $ac_word" >&5
5058echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5059if test "${ac_cv_prog_have_autoconf+set}" = set; then
5060  echo $ECHO_N "(cached) $ECHO_C" >&6
5061else
5062  if test -n "$have_autoconf"; then
5063  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5064else
5065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5066for as_dir in $PATH
5067do
5068  IFS=$as_save_IFS
5069  test -z "$as_dir" && as_dir=.
5070  for ac_exec_ext in '' $ac_executable_extensions; do
5071  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5072    ac_cv_prog_have_autoconf="yes"
5073    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5074    break 2
5075  fi
5076done
5077done
5078
5079  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5080fi
5081fi
5082have_autoconf=$ac_cv_prog_have_autoconf
5083if test -n "$have_autoconf"; then
5084  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5085echo "${ECHO_T}$have_autoconf" >&6
5086else
5087  echo "$as_me:$LINENO: result: no" >&5
5088echo "${ECHO_T}no" >&6
5089fi
5090
5091    if test $have_autoconf = no; then
5092      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5093echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5094   { (exit 1); exit 1; }; }
5095    fi
5096
5097    # Check whether autoconf is the correct version
5098    correct_version='2.59'
5099    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5100    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5101echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5102    autoconf --version > confauto.out 2>&1
5103    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5104      echo "$as_me:$LINENO: result: yes" >&5
5105echo "${ECHO_T}yes" >&6
5106    else
5107      rm -f confauto.out
5108      echo "$as_me:$LINENO: result: no" >&5
5109echo "${ECHO_T}no" >&6
5110      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5111echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5112   { (exit 1); exit 1; }; }
5113    fi
5114    rm -f confauto.out
5115
5116    # Check if the executable autoconf is picked up from the correct location
5117    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5118echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5119    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5120    autoconf_dir=`cd $autoconf_dir; pwd`
5121    if test x$AUTOTOOLS_DIR = x; then
5122      want_dir=$AUTOTOOLS_DFLT/bin
5123    else
5124      want_dir=$AUTOTOOLS_DIR/bin
5125    fi
5126    if test $autoconf_dir = `cd $want_dir; pwd`; then
5127      echo "$as_me:$LINENO: result: yes" >&5
5128echo "${ECHO_T}yes" >&6
5129    else
5130      rm -f confauto.out
5131      echo "$as_me:$LINENO: result: no" >&5
5132echo "${ECHO_T}no" >&6
5133      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5134echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5135   { (exit 1); exit 1; }; }
5136    fi
5137
5138    # Check if we have automake
5139    # Extract the first word of "automake", so it can be a program name with args.
5140set dummy automake; ac_word=$2
5141echo "$as_me:$LINENO: checking for $ac_word" >&5
5142echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5143if test "${ac_cv_prog_have_automake+set}" = set; then
5144  echo $ECHO_N "(cached) $ECHO_C" >&6
5145else
5146  if test -n "$have_automake"; then
5147  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5148else
5149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5150for as_dir in $PATH
5151do
5152  IFS=$as_save_IFS
5153  test -z "$as_dir" && as_dir=.
5154  for ac_exec_ext in '' $ac_executable_extensions; do
5155  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5156    ac_cv_prog_have_automake="yes"
5157    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5158    break 2
5159  fi
5160done
5161done
5162
5163  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5164fi
5165fi
5166have_automake=$ac_cv_prog_have_automake
5167if test -n "$have_automake"; then
5168  echo "$as_me:$LINENO: result: $have_automake" >&5
5169echo "${ECHO_T}$have_automake" >&6
5170else
5171  echo "$as_me:$LINENO: result: no" >&5
5172echo "${ECHO_T}no" >&6
5173fi
5174
5175    if test $have_automake = no; then
5176      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5177echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5178   { (exit 1); exit 1; }; }
5179    fi
5180
5181    # Check whether automake is the correct version
5182    correct_version='1.9.6'
5183    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5184    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5185echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5186    automake --version > confauto.out 2>&1
5187    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5188      echo "$as_me:$LINENO: result: yes" >&5
5189echo "${ECHO_T}yes" >&6
5190    else
5191      rm -f confauto.out
5192      echo "$as_me:$LINENO: result: no" >&5
5193echo "${ECHO_T}no" >&6
5194      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5195echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5196   { (exit 1); exit 1; }; }
5197    fi
5198    rm -f confauto.out
5199
5200    # Check if the executable automake is picked up from the correct location
5201    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5202echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5203    automake_dir=`which automake | sed -e 's=/automake=='`
5204    automake_dir=`cd $automake_dir; pwd`
5205    if test x$AUTOTOOLS_DIR = x; then
5206      want_dir=$AUTOTOOLS_DFLT/bin
5207    else
5208      want_dir=$AUTOTOOLS_DIR/bin
5209    fi
5210    if test $automake_dir = `cd $want_dir; pwd`; then
5211      echo "$as_me:$LINENO: result: yes" >&5
5212echo "${ECHO_T}yes" >&6
5213    else
5214      rm -f confauto.out
5215      echo "$as_me:$LINENO: result: no" >&5
5216echo "${ECHO_T}no" >&6
5217      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5218echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5219   { (exit 1); exit 1; }; }
5220    fi
5221
5222    # Check if this is the correct version of libtool (with escaped dots)
5223    if test x$AUTOTOOLS_DIR = x; then
5224      want_dir=$AUTOTOOLS_DFLT/share
5225    else
5226      want_dir=$AUTOTOOLS_DIR/share
5227    fi
5228    correct_version='1.5.22'
5229    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5230    if test -r $want_dir/libtool/ltmain.sh; then
5231  have_ltmain=yes
5232  :
5233else
5234  have_ltmain=no
5235  :
5236fi
5237
5238    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5239echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5240    if test $have_ltmain = yes; then
5241    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5242        echo "$as_me:$LINENO: result: yes" >&5
5243echo "${ECHO_T}yes" >&6
5244      else
5245        echo "$as_me:$LINENO: result: no" >&5
5246echo "${ECHO_T}no" >&6
5247        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5248echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5249   { (exit 1); exit 1; }; }
5250      fi
5251    else
5252      echo "$as_me:$LINENO: result: no" >&5
5253echo "${ECHO_T}no" >&6
5254      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5255echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5256   { (exit 1); exit 1; }; }
5257    fi
5258  fi
5259
5260  # Check if we can find the libtool file
5261  if test x$AUTOTOOLS_DIR = x; then
5262    want_dir=$AUTOTOOLS_DFLT/share
5263  else
5264    want_dir=$AUTOTOOLS_DIR/share
5265  fi
5266  if test -r $want_dir/aclocal/libtool.m4; then
5267  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5268  :
5269else
5270  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5271echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5272   { (exit 1); exit 1; }; }
5273  :
5274fi
5275
5276
5277  # Check if we have an Dependencies file
5278  if test -r $srcdir/Dependencies; then
5279    coin_have_externals=yes
5280  fi
5281  # Check if subversion is installed and understands https
5282  # Extract the first word of "svn", so it can be a program name with args.
5283set dummy svn; ac_word=$2
5284echo "$as_me:$LINENO: checking for $ac_word" >&5
5285echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5286if test "${ac_cv_prog_have_svn+set}" = set; then
5287  echo $ECHO_N "(cached) $ECHO_C" >&6
5288else
5289  if test -n "$have_svn"; then
5290  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5291else
5292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5293for as_dir in $PATH
5294do
5295  IFS=$as_save_IFS
5296  test -z "$as_dir" && as_dir=.
5297  for ac_exec_ext in '' $ac_executable_extensions; do
5298  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5299    ac_cv_prog_have_svn="yes"
5300    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5301    break 2
5302  fi
5303done
5304done
5305
5306  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5307fi
5308fi
5309have_svn=$ac_cv_prog_have_svn
5310if test -n "$have_svn"; then
5311  echo "$as_me:$LINENO: result: $have_svn" >&5
5312echo "${ECHO_T}$have_svn" >&6
5313else
5314  echo "$as_me:$LINENO: result: no" >&5
5315echo "${ECHO_T}no" >&6
5316fi
5317
5318  if test x$have_svn = xyes; then
5319    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5320echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5321if test "${ac_cv_svn_understands_https+set}" = set; then
5322  echo $ECHO_N "(cached) $ECHO_C" >&6
5323else
5324  svn --version > confauto.out 2>&1
5325                    if $EGREP https confauto.out >/dev/null 2>&1; then
5326                      ac_cv_svn_understands_https=yes
5327                    else
5328                      ac_cv_svn_understands_https=no
5329                      have_svn=no
5330                      ac_cv_prog_have_svn=no
5331                    fi
5332                    rm -f confauto.out
5333fi
5334echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5335echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5336  fi
5337
5338  # Find the location of the BuildTools directory
5339  BUILDTOOLSDIR=
5340  if test -r $srcdir/BuildTools/coin.m4; then
5341    BUILDTOOLSDIR=$srcdir/BuildTools
5342  else
5343    if test -r $srcdir/../BuildTools/coin.m4; then
5344      BUILDTOOLSDIR=$srcdir/../BuildTools
5345    else
5346      if test -r $srcdir/../../BuildTools/coin.m4; then
5347        BUILDTOOLSDIR=$srcdir/../../BuildTools
5348      else
5349        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5350echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5351   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
5352      fi
5353    fi
5354  fi
5355
5356
5357  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
5358  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
5359    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
5360  fi
5361
5362  # The following variable is set to the name of the directory where
5363  # the autotool scripts are located
5364
5365  AUX_DIR=$ac_aux_dir
5366fi
5367
5368# helpful variable for the base directory of this package
5369abs_source_dir=`cd $srcdir; pwd`
5370
5371
5372# Stuff for example Makefiles
5373if test x$prefix = xNONE; then
5374  full_prefix=$ac_default_prefix
5375else
5376  full_prefix=$prefix
5377fi
5378full_prefix=`cd $full_prefix ; pwd`
5379
5380abs_lib_dir=$full_prefix/lib
5381
5382abs_include_dir=$full_prefix/include
5383
5384abs_bin_dir=$full_prefix/bin
5385
5386
5387
5388if test $coin_have_externals = yes && test x$have_svn = xyes; then
5389  HAVE_EXTERNALS_TRUE=
5390  HAVE_EXTERNALS_FALSE='#'
5391else
5392  HAVE_EXTERNALS_TRUE='#'
5393  HAVE_EXTERNALS_FALSE=
5394fi
5395
5396
5397# AC_MSG_NOTICE([End automake initialisation.])
5398
5399
5400
5401LIBTOOL=
5402if test -r ../libtool; then
5403  coin_config_dir=..
5404  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5405fi
5406if test "x$LIBTOOL" = x; then
5407  if test -r ../../libtool; then
5408    coin_config_dir=../..
5409    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5410  fi
5411fi
5412
5413if test "x$LIBTOOL" = x; then
5414# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5415  # Stuff for libtool
5416  # Check whether --enable-shared or --disable-shared was given.
5417if test "${enable_shared+set}" = set; then
5418  enableval="$enable_shared"
5419  p=${PACKAGE-default}
5420    case $enableval in
5421    yes) enable_shared=yes ;;
5422    no) enable_shared=no ;;
5423    *)
5424      enable_shared=no
5425      # Look at the argument we got.  We use all the common list separators.
5426      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5427      for pkg in $enableval; do
5428        IFS="$lt_save_ifs"
5429        if test "X$pkg" = "X$p"; then
5430          enable_shared=yes
5431        fi
5432      done
5433      IFS="$lt_save_ifs"
5434      ;;
5435    esac
5436else
5437  enable_shared=yes
5438fi;
5439
5440# Check whether --enable-fast-install or --disable-fast-install was given.
5441if test "${enable_fast_install+set}" = set; then
5442  enableval="$enable_fast_install"
5443  p=${PACKAGE-default}
5444    case $enableval in
5445    yes) enable_fast_install=yes ;;
5446    no) enable_fast_install=no ;;
5447    *)
5448      enable_fast_install=no
5449      # Look at the argument we got.  We use all the common list separators.
5450      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5451      for pkg in $enableval; do
5452        IFS="$lt_save_ifs"
5453        if test "X$pkg" = "X$p"; then
5454          enable_fast_install=yes
5455        fi
5456      done
5457      IFS="$lt_save_ifs"
5458      ;;
5459    esac
5460else
5461  enable_fast_install=yes
5462fi;
5463
5464echo "$as_me:$LINENO: checking host system type" >&5
5465echo $ECHO_N "checking host system type... $ECHO_C" >&6
5466if test "${ac_cv_host+set}" = set; then
5467  echo $ECHO_N "(cached) $ECHO_C" >&6
5468else
5469  ac_cv_host_alias=$host_alias
5470test -z "$ac_cv_host_alias" &&
5471  ac_cv_host_alias=$ac_cv_build_alias
5472ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5473  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5474echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5475   { (exit 1); exit 1; }; }
5476
5477fi
5478echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5479echo "${ECHO_T}$ac_cv_host" >&6
5480host=$ac_cv_host
5481host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5482host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5483host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5484
5485
5486echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5487echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5488if test "${lt_cv_path_SED+set}" = set; then
5489  echo $ECHO_N "(cached) $ECHO_C" >&6
5490else
5491  # Loop through the user's path and test for sed and gsed.
5492# Then use that list of sed's as ones to test for truncation.
5493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5494for as_dir in $PATH
5495do
5496  IFS=$as_save_IFS
5497  test -z "$as_dir" && as_dir=.
5498  for lt_ac_prog in sed gsed; do
5499    for ac_exec_ext in '' $ac_executable_extensions; do
5500      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5501        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5502      fi
5503    done
5504  done
5505done
5506lt_ac_max=0
5507lt_ac_count=0
5508# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5509# along with /bin/sed that truncates output.
5510for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5511  test ! -f $lt_ac_sed && continue
5512  cat /dev/null > conftest.in
5513  lt_ac_count=0
5514  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5515  # Check for GNU sed and select it if it is found.
5516  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5517    lt_cv_path_SED=$lt_ac_sed
5518    break
5519  fi
5520  while true; do
5521    cat conftest.in conftest.in >conftest.tmp
5522    mv conftest.tmp conftest.in
5523    cp conftest.in conftest.nl
5524    echo >>conftest.nl
5525    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5526    cmp -s conftest.out conftest.nl || break
5527    # 10000 chars as input seems more than enough
5528    test $lt_ac_count -gt 10 && break
5529    lt_ac_count=`expr $lt_ac_count + 1`
5530    if test $lt_ac_count -gt $lt_ac_max; then
5531      lt_ac_max=$lt_ac_count
5532      lt_cv_path_SED=$lt_ac_sed
5533    fi
5534  done
5535done
5536
5537fi
5538
5539SED=$lt_cv_path_SED
5540echo "$as_me:$LINENO: result: $SED" >&5
5541echo "${ECHO_T}$SED" >&6
5542
5543
5544# Check whether --with-gnu-ld or --without-gnu-ld was given.
5545if test "${with_gnu_ld+set}" = set; then
5546  withval="$with_gnu_ld"
5547  test "$withval" = no || with_gnu_ld=yes
5548else
5549  with_gnu_ld=no
5550fi;
5551ac_prog=ld
5552if test "$GCC" = yes; then
5553  # Check if gcc -print-prog-name=ld gives a path.
5554  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5555echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5556  case $host in
5557  *-*-mingw*)
5558    # gcc leaves a trailing carriage return which upsets mingw
5559    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5560  *)
5561    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5562  esac
5563  case $ac_prog in
5564    # Accept absolute paths.
5565    [\\/]* | ?:[\\/]*)
5566      re_direlt='/[^/][^/]*/\.\./'
5567      # Canonicalize the pathname of ld
5568      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5569      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5570        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5571      done
5572      test -z "$LD" && LD="$ac_prog"
5573      ;;
5574  "")
5575    # If it fails, then pretend we aren't using GCC.
5576    ac_prog=ld
5577    ;;
5578  *)
5579    # If it is relative, then search for the first ld in PATH.
5580    with_gnu_ld=unknown
5581    ;;
5582  esac
5583elif test "$with_gnu_ld" = yes; then
5584  echo "$as_me:$LINENO: checking for GNU ld" >&5
5585echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5586else
5587  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5588echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5589fi
5590if test "${lt_cv_path_LD+set}" = set; then
5591  echo $ECHO_N "(cached) $ECHO_C" >&6
5592else
5593  if test -z "$LD"; then
5594  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5595  for ac_dir in $PATH; do
5596    IFS="$lt_save_ifs"
5597    test -z "$ac_dir" && ac_dir=.
5598    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5599      lt_cv_path_LD="$ac_dir/$ac_prog"
5600      # Check to see if the program is GNU ld.  I'd rather use --version,
5601      # but apparently some variants of GNU ld only accept -v.
5602      # Break only if it was the GNU/non-GNU ld that we prefer.
5603      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5604      *GNU* | *'with BFD'*)
5605        test "$with_gnu_ld" != no && break
5606        ;;
5607      *)
5608        test "$with_gnu_ld" != yes && break
5609        ;;
5610      esac
5611    fi
5612  done
5613  IFS="$lt_save_ifs"
5614else
5615  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5616fi
5617fi
5618
5619LD="$lt_cv_path_LD"
5620if test -n "$LD"; then
5621  echo "$as_me:$LINENO: result: $LD" >&5
5622echo "${ECHO_T}$LD" >&6
5623else
5624  echo "$as_me:$LINENO: result: no" >&5
5625echo "${ECHO_T}no" >&6
5626fi
5627test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5628echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5629   { (exit 1); exit 1; }; }
5630echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5631echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5632if test "${lt_cv_prog_gnu_ld+set}" = set; then
5633  echo $ECHO_N "(cached) $ECHO_C" >&6
5634else
5635  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5636case `$LD -v 2>&1 </dev/null` in
5637*GNU* | *'with BFD'*)
5638  lt_cv_prog_gnu_ld=yes
5639  ;;
5640*)
5641  lt_cv_prog_gnu_ld=no
5642  ;;
5643esac
5644fi
5645echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5646echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5647with_gnu_ld=$lt_cv_prog_gnu_ld
5648
5649
5650echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5651echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5652if test "${lt_cv_ld_reload_flag+set}" = set; then
5653  echo $ECHO_N "(cached) $ECHO_C" >&6
5654else
5655  lt_cv_ld_reload_flag='-r'
5656fi
5657echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5658echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5659reload_flag=$lt_cv_ld_reload_flag
5660case $reload_flag in
5661"" | " "*) ;;
5662*) reload_flag=" $reload_flag" ;;
5663esac
5664reload_cmds='$LD$reload_flag -o $output$reload_objs'
5665case $host_os in
5666  darwin*)
5667    if test "$GCC" = yes; then
5668      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5669    else
5670      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5671    fi
5672    ;;
5673esac
5674
5675echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5676echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5677if test "${lt_cv_path_NM+set}" = set; then
5678  echo $ECHO_N "(cached) $ECHO_C" >&6
5679else
5680  if test -n "$NM"; then
5681  # Let the user override the test.
5682  lt_cv_path_NM="$NM"
5683else
5684  lt_nm_to_check="${ac_tool_prefix}nm"
5685  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5686    lt_nm_to_check="$lt_nm_to_check nm"
5687  fi
5688  for lt_tmp_nm in $lt_nm_to_check; do
5689    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5690    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5691      IFS="$lt_save_ifs"
5692      test -z "$ac_dir" && ac_dir=.
5693      tmp_nm="$ac_dir/$lt_tmp_nm"
5694      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5695        # Check to see if the nm accepts a BSD-compat flag.
5696        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5697        #   nm: unknown option "B" ignored
5698        # Tru64's nm complains that /dev/null is an invalid object file
5699        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5700        */dev/null* | *'Invalid file or object type'*)
5701          lt_cv_path_NM="$tmp_nm -B"
5702          break
5703          ;;
5704        *)
5705          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5706          */dev/null*)
5707            lt_cv_path_NM="$tmp_nm -p"
5708            break
5709            ;;
5710          *)
5711            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5712            continue # so that we can try to find one that supports BSD flags
5713            ;;
5714          esac
5715          ;;
5716        esac
5717      fi
5718    done
5719    IFS="$lt_save_ifs"
5720  done
5721  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5722fi
5723fi
5724echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5725echo "${ECHO_T}$lt_cv_path_NM" >&6
5726NM="$lt_cv_path_NM"
5727
5728echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5729echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5730if test "${lt_cv_deplibs_check_method+set}" = set; then
5731  echo $ECHO_N "(cached) $ECHO_C" >&6
5732else
5733  lt_cv_file_magic_cmd='$MAGIC_CMD'
5734lt_cv_file_magic_test_file=
5735lt_cv_deplibs_check_method='unknown'
5736# Need to set the preceding variable on all platforms that support
5737# interlibrary dependencies.
5738# 'none' -- dependencies not supported.
5739# `unknown' -- same as none, but documents that we really don't know.
5740# 'pass_all' -- all dependencies passed with no checks.
5741# 'test_compile' -- check by making test program.
5742# 'file_magic [[regex]]' -- check by looking for files in library path
5743# which responds to the $file_magic_cmd with a given extended regex.
5744# If you have `file' or equivalent on your system and you're not sure
5745# whether `pass_all' will *always* work, you probably want this one.
5746
5747case $host_os in
5748aix4* | aix5*)
5749  lt_cv_deplibs_check_method=pass_all
5750  ;;
5751
5752beos*)
5753  lt_cv_deplibs_check_method=pass_all
5754  ;;
5755
5756bsdi[45]*)
5757  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5758  lt_cv_file_magic_cmd='/usr/bin/file -L'
5759  lt_cv_file_magic_test_file=/shlib/libc.so
5760  ;;
5761
5762cygwin*)
5763  # func_win32_libid is a shell function defined in ltmain.sh
5764  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5765  lt_cv_file_magic_cmd='func_win32_libid'
5766  ;;
5767
5768mingw* | pw32*)
5769  # Base MSYS/MinGW do not provide the 'file' command needed by
5770  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5771  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5772  lt_cv_file_magic_cmd='$OBJDUMP -f'
5773  ;;
5774
5775darwin* | rhapsody*)
5776  lt_cv_deplibs_check_method=pass_all
5777  ;;
5778
5779freebsd* | kfreebsd*-gnu | dragonfly*)
5780  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5781    case $host_cpu in
5782    i*86 )
5783      # Not sure whether the presence of OpenBSD here was a mistake.
5784      # Let's accept both of them until this is cleared up.
5785      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5786      lt_cv_file_magic_cmd=/usr/bin/file
5787      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5788      ;;
5789    esac
5790  else
5791    lt_cv_deplibs_check_method=pass_all
5792  fi
5793  ;;
5794
5795gnu*)
5796  lt_cv_deplibs_check_method=pass_all
5797  ;;
5798
5799hpux10.20* | hpux11*)
5800  lt_cv_file_magic_cmd=/usr/bin/file
5801  case $host_cpu in
5802  ia64*)
5803    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5804    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5805    ;;
5806  hppa*64*)
5807    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]'
5808    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5809    ;;
5810  *)
5811    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5812    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5813    ;;
5814  esac
5815  ;;
5816
5817interix3*)
5818  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5819  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5820  ;;
5821
5822irix5* | irix6* | nonstopux*)
5823  case $LD in
5824  *-32|*"-32 ") libmagic=32-bit;;
5825  *-n32|*"-n32 ") libmagic=N32;;
5826  *-64|*"-64 ") libmagic=64-bit;;
5827  *) libmagic=never-match;;
5828  esac
5829  lt_cv_deplibs_check_method=pass_all
5830  ;;
5831
5832# This must be Linux ELF.
5833linux*)
5834  lt_cv_deplibs_check_method=pass_all
5835  ;;
5836
5837netbsd*)
5838  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5839    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5840  else
5841    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5842  fi
5843  ;;
5844
5845newos6*)
5846  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5847  lt_cv_file_magic_cmd=/usr/bin/file
5848  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5849  ;;
5850
5851nto-qnx*)
5852  lt_cv_deplibs_check_method=unknown
5853  ;;
5854
5855openbsd*)
5856  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5857    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5858  else
5859    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5860  fi
5861  ;;
5862
5863osf3* | osf4* | osf5*)
5864  lt_cv_deplibs_check_method=pass_all
5865  ;;
5866
5867solaris*)
5868  lt_cv_deplibs_check_method=pass_all
5869  ;;
5870
5871sysv4 | sysv4.3*)
5872  case $host_vendor in
5873  motorola)
5874    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]'
5875    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5876    ;;
5877  ncr)
5878    lt_cv_deplibs_check_method=pass_all
5879    ;;
5880  sequent)
5881    lt_cv_file_magic_cmd='/bin/file'
5882    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5883    ;;
5884  sni)
5885    lt_cv_file_magic_cmd='/bin/file'
5886    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5887    lt_cv_file_magic_test_file=/lib/libc.so
5888    ;;
5889  siemens)
5890    lt_cv_deplibs_check_method=pass_all
5891    ;;
5892  pc)
5893    lt_cv_deplibs_check_method=pass_all
5894    ;;
5895  esac
5896  ;;
5897
5898sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5899  lt_cv_deplibs_check_method=pass_all
5900  ;;
5901esac
5902
5903fi
5904echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5905echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5906file_magic_cmd=$lt_cv_file_magic_cmd
5907deplibs_check_method=$lt_cv_deplibs_check_method
5908test -z "$deplibs_check_method" && deplibs_check_method=unknown
5909
5910
5911
5912
5913# If no C compiler was specified, use CC.
5914LTCC=${LTCC-"$CC"}
5915
5916# If no C compiler flags were specified, use CFLAGS.
5917LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5918
5919# Allow CC to be a program name with arguments.
5920compiler=$CC
5921
5922# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5923if test "${enable_libtool_lock+set}" = set; then
5924  enableval="$enable_libtool_lock"
5925
5926fi;
5927test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5928
5929# Some flags need to be propagated to the compiler or linker for good
5930# libtool support.
5931case $host in
5932ia64-*-hpux*)
5933  # Find out which ABI we are using.
5934  echo 'int i;' > conftest.$ac_ext
5935  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5936  (eval $ac_compile) 2>&5
5937  ac_status=$?
5938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939  (exit $ac_status); }; then
5940    case `/usr/bin/file conftest.$ac_objext` in
5941    *ELF-32*)
5942      HPUX_IA64_MODE="32"
5943      ;;
5944    *ELF-64*)
5945      HPUX_IA64_MODE="64"
5946      ;;
5947    esac
5948  fi
5949  rm -rf conftest*
5950  ;;
5951*-*-irix6*)
5952  # Find out which ABI we are using.
5953  echo '#line 5953 "configure"' > conftest.$ac_ext
5954  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5955  (eval $ac_compile) 2>&5
5956  ac_status=$?
5957  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958  (exit $ac_status); }; then
5959   if test "$lt_cv_prog_gnu_ld" = yes; then
5960    case `/usr/bin/file conftest.$ac_objext` in
5961    *32-bit*)
5962      LD="${LD-ld} -melf32bsmip"
5963      ;;
5964    *N32*)
5965      LD="${LD-ld} -melf32bmipn32"
5966      ;;
5967    *64-bit*)
5968      LD="${LD-ld} -melf64bmip"
5969      ;;
5970    esac
5971   else
5972    case `/usr/bin/file conftest.$ac_objext` in
5973    *32-bit*)
5974      LD="${LD-ld} -32"
5975      ;;
5976    *N32*)
5977      LD="${LD-ld} -n32"
5978      ;;
5979    *64-bit*)
5980      LD="${LD-ld} -64"
5981      ;;
5982    esac
5983   fi
5984  fi
5985  rm -rf conftest*
5986  ;;
5987
5988x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5989  # Find out which ABI we are using.
5990  echo 'int i;' > conftest.$ac_ext
5991  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5992  (eval $ac_compile) 2>&5
5993  ac_status=$?
5994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995  (exit $ac_status); }; then
5996    case `/usr/bin/file conftest.o` in
5997    *32-bit*)
5998      case $host in
5999        x86_64-*linux*)
6000          LD="${LD-ld} -m elf_i386"
6001          ;;
6002        ppc64-*linux*|powerpc64-*linux*)
6003          LD="${LD-ld} -m elf32ppclinux"
6004          ;;
6005        s390x-*linux*)
6006          LD="${LD-ld} -m elf_s390"
6007          ;;
6008        sparc64-*linux*)
6009          LD="${LD-ld} -m elf32_sparc"
6010          ;;
6011      esac
6012      ;;
6013    *64-bit*)
6014      case $host in
6015        x86_64-*linux*)
6016          LD="${LD-ld} -m elf_x86_64"
6017          ;;
6018        ppc*-*linux*|powerpc*-*linux*)
6019          LD="${LD-ld} -m elf64ppc"
6020          ;;
6021        s390*-*linux*)
6022          LD="${LD-ld} -m elf64_s390"
6023          ;;
6024        sparc*-*linux*)
6025          LD="${LD-ld} -m elf64_sparc"
6026          ;;
6027      esac
6028      ;;
6029    esac
6030  fi
6031  rm -rf conftest*
6032  ;;
6033
6034*-*-sco3.2v5*)
6035  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6036  SAVE_CFLAGS="$CFLAGS"
6037  CFLAGS="$CFLAGS -belf"
6038  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6039echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6040if test "${lt_cv_cc_needs_belf+set}" = set; then
6041  echo $ECHO_N "(cached) $ECHO_C" >&6
6042else
6043  ac_ext=c
6044ac_cpp='$CPP $CPPFLAGS'
6045ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6046ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6047ac_compiler_gnu=$ac_cv_c_compiler_gnu
6048
6049     cat >conftest.$ac_ext <<_ACEOF
6050/* confdefs.h.  */
6051_ACEOF
6052cat confdefs.h >>conftest.$ac_ext
6053cat >>conftest.$ac_ext <<_ACEOF
6054/* end confdefs.h.  */
6055
6056int
6057main ()
6058{
6059
6060  ;
6061  return 0;
6062}
6063_ACEOF
6064rm -f conftest.$ac_objext conftest$ac_exeext
6065if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6066  (eval $ac_link) 2>conftest.er1
6067  ac_status=$?
6068  grep -v '^ *+' conftest.er1 >conftest.err
6069  rm -f conftest.er1
6070  cat conftest.err >&5
6071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072  (exit $ac_status); } &&
6073         { ac_try='test -z "$ac_c_werror_flag"
6074                         || test ! -s conftest.err'
6075  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6076  (eval $ac_try) 2>&5
6077  ac_status=$?
6078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6079  (exit $ac_status); }; } &&
6080         { ac_try='test -s conftest$ac_exeext'
6081  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6082  (eval $ac_try) 2>&5
6083  ac_status=$?
6084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085  (exit $ac_status); }; }; then
6086  lt_cv_cc_needs_belf=yes
6087else
6088  echo "$as_me: failed program was:" >&5
6089sed 's/^/| /' conftest.$ac_ext >&5
6090
6091lt_cv_cc_needs_belf=no
6092fi
6093rm -f conftest.err conftest.$ac_objext \
6094      conftest$ac_exeext conftest.$ac_ext
6095     ac_ext=c
6096ac_cpp='$CPP $CPPFLAGS'
6097ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6098ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6099ac_compiler_gnu=$ac_cv_c_compiler_gnu
6100
6101fi
6102echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6103echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6104  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6105    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6106    CFLAGS="$SAVE_CFLAGS"
6107  fi
6108  ;;
6109sparc*-*solaris*)
6110  # Find out which ABI we are using.
6111  echo 'int i;' > conftest.$ac_ext
6112  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6113  (eval $ac_compile) 2>&5
6114  ac_status=$?
6115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116  (exit $ac_status); }; then
6117    case `/usr/bin/file conftest.o` in
6118    *64-bit*)
6119      case $lt_cv_prog_gnu_ld in
6120      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6121      *)    LD="${LD-ld} -64" ;;
6122      esac
6123      ;;
6124    esac
6125  fi
6126  rm -rf conftest*
6127  ;;
6128
6129
6130esac
6131
6132need_locks="$enable_libtool_lock"
6133
6134
6135ac_ext=c
6136ac_cpp='$CPP $CPPFLAGS'
6137ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6138ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6139ac_compiler_gnu=$ac_cv_c_compiler_gnu
6140echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6141echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6142# On Suns, sometimes $CPP names a directory.
6143if test -n "$CPP" && test -d "$CPP"; then
6144  CPP=
6145fi
6146if test -z "$CPP"; then
6147  if test "${ac_cv_prog_CPP+set}" = set; then
6148  echo $ECHO_N "(cached) $ECHO_C" >&6
6149else
6150      # Double quotes because CPP needs to be expanded
6151    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6152    do
6153      ac_preproc_ok=false
6154for ac_c_preproc_warn_flag in '' yes
6155do
6156  # Use a header file that comes with gcc, so configuring glibc
6157  # with a fresh cross-compiler works.
6158  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6159  # <limits.h> exists even on freestanding compilers.
6160  # On the NeXT, cc -E runs the code through the compiler's parser,
6161  # not just through cpp. "Syntax error" is here to catch this case.
6162  cat >conftest.$ac_ext <<_ACEOF
6163/* confdefs.h.  */
6164_ACEOF
6165cat confdefs.h >>conftest.$ac_ext
6166cat >>conftest.$ac_ext <<_ACEOF
6167/* end confdefs.h.  */
6168#ifdef __STDC__
6169# include <limits.h>
6170#else
6171# include <assert.h>
6172#endif
6173                     Syntax error
6174_ACEOF
6175if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6176  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6177  ac_status=$?
6178  grep -v '^ *+' conftest.er1 >conftest.err
6179  rm -f conftest.er1
6180  cat conftest.err >&5
6181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182  (exit $ac_status); } >/dev/null; then
6183  if test -s conftest.err; then
6184    ac_cpp_err=$ac_c_preproc_warn_flag
6185    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6186  else
6187    ac_cpp_err=
6188  fi
6189else
6190  ac_cpp_err=yes
6191fi
6192if test -z "$ac_cpp_err"; then
6193  :
6194else
6195  echo "$as_me: failed program was:" >&5
6196sed 's/^/| /' conftest.$ac_ext >&5
6197
6198  # Broken: fails on valid input.
6199continue
6200fi
6201rm -f conftest.err conftest.$ac_ext
6202
6203  # OK, works on sane cases.  Now check whether non-existent headers
6204  # can be detected and how.
6205  cat >conftest.$ac_ext <<_ACEOF
6206/* confdefs.h.  */
6207_ACEOF
6208cat confdefs.h >>conftest.$ac_ext
6209cat >>conftest.$ac_ext <<_ACEOF
6210/* end confdefs.h.  */
6211#include <ac_nonexistent.h>
6212_ACEOF
6213if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6214  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6215  ac_status=$?
6216  grep -v '^ *+' conftest.er1 >conftest.err
6217  rm -f conftest.er1
6218  cat conftest.err >&5
6219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6220  (exit $ac_status); } >/dev/null; then
6221  if test -s conftest.err; then
6222    ac_cpp_err=$ac_c_preproc_warn_flag
6223    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6224  else
6225    ac_cpp_err=
6226  fi
6227else
6228  ac_cpp_err=yes
6229fi
6230if test -z "$ac_cpp_err"; then
6231  # Broken: success on invalid input.
6232continue
6233else
6234  echo "$as_me: failed program was:" >&5
6235sed 's/^/| /' conftest.$ac_ext >&5
6236
6237  # Passes both tests.
6238ac_preproc_ok=:
6239break
6240fi
6241rm -f conftest.err conftest.$ac_ext
6242
6243done
6244# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6245rm -f conftest.err conftest.$ac_ext
6246if $ac_preproc_ok; then
6247  break
6248fi
6249
6250    done
6251    ac_cv_prog_CPP=$CPP
6252
6253fi
6254  CPP=$ac_cv_prog_CPP
6255else
6256  ac_cv_prog_CPP=$CPP
6257fi
6258echo "$as_me:$LINENO: result: $CPP" >&5
6259echo "${ECHO_T}$CPP" >&6
6260ac_preproc_ok=false
6261for ac_c_preproc_warn_flag in '' yes
6262do
6263  # Use a header file that comes with gcc, so configuring glibc
6264  # with a fresh cross-compiler works.
6265  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6266  # <limits.h> exists even on freestanding compilers.
6267  # On the NeXT, cc -E runs the code through the compiler's parser,
6268  # not just through cpp. "Syntax error" is here to catch this case.
6269  cat >conftest.$ac_ext <<_ACEOF
6270/* confdefs.h.  */
6271_ACEOF
6272cat confdefs.h >>conftest.$ac_ext
6273cat >>conftest.$ac_ext <<_ACEOF
6274/* end confdefs.h.  */
6275#ifdef __STDC__
6276# include <limits.h>
6277#else
6278# include <assert.h>
6279#endif
6280                     Syntax error
6281_ACEOF
6282if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6283  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6284  ac_status=$?
6285  grep -v '^ *+' conftest.er1 >conftest.err
6286  rm -f conftest.er1
6287  cat conftest.err >&5
6288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289  (exit $ac_status); } >/dev/null; then
6290  if test -s conftest.err; then
6291    ac_cpp_err=$ac_c_preproc_warn_flag
6292    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6293  else
6294    ac_cpp_err=
6295  fi
6296else
6297  ac_cpp_err=yes
6298fi
6299if test -z "$ac_cpp_err"; then
6300  :
6301else
6302  echo "$as_me: failed program was:" >&5
6303sed 's/^/| /' conftest.$ac_ext >&5
6304
6305  # Broken: fails on valid input.
6306continue
6307fi
6308rm -f conftest.err conftest.$ac_ext
6309
6310  # OK, works on sane cases.  Now check whether non-existent headers
6311  # can be detected and how.
6312  cat >conftest.$ac_ext <<_ACEOF
6313/* confdefs.h.  */
6314_ACEOF
6315cat confdefs.h >>conftest.$ac_ext
6316cat >>conftest.$ac_ext <<_ACEOF
6317/* end confdefs.h.  */
6318#include <ac_nonexistent.h>
6319_ACEOF
6320if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6321  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6322  ac_status=$?
6323  grep -v '^ *+' conftest.er1 >conftest.err
6324  rm -f conftest.er1
6325  cat conftest.err >&5
6326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327  (exit $ac_status); } >/dev/null; then
6328  if test -s conftest.err; then
6329    ac_cpp_err=$ac_c_preproc_warn_flag
6330    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6331  else
6332    ac_cpp_err=
6333  fi
6334else
6335  ac_cpp_err=yes
6336fi
6337if test -z "$ac_cpp_err"; then
6338  # Broken: success on invalid input.
6339continue
6340else
6341  echo "$as_me: failed program was:" >&5
6342sed 's/^/| /' conftest.$ac_ext >&5
6343
6344  # Passes both tests.
6345ac_preproc_ok=:
6346break
6347fi
6348rm -f conftest.err conftest.$ac_ext
6349
6350done
6351# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6352rm -f conftest.err conftest.$ac_ext
6353if $ac_preproc_ok; then
6354  :
6355else
6356  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6357See \`config.log' for more details." >&5
6358echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6359See \`config.log' for more details." >&2;}
6360   { (exit 1); exit 1; }; }
6361fi
6362
6363ac_ext=c
6364ac_cpp='$CPP $CPPFLAGS'
6365ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6366ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6367ac_compiler_gnu=$ac_cv_c_compiler_gnu
6368
6369
6370echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6371echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6372if test "${ac_cv_header_stdc+set}" = set; then
6373  echo $ECHO_N "(cached) $ECHO_C" >&6
6374else
6375  cat >conftest.$ac_ext <<_ACEOF
6376/* confdefs.h.  */
6377_ACEOF
6378cat confdefs.h >>conftest.$ac_ext
6379cat >>conftest.$ac_ext <<_ACEOF
6380/* end confdefs.h.  */
6381#include <stdlib.h>
6382#include <stdarg.h>
6383#include <string.h>
6384#include <float.h>
6385
6386int
6387main ()
6388{
6389
6390  ;
6391  return 0;
6392}
6393_ACEOF
6394rm -f conftest.$ac_objext
6395if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6396  (eval $ac_compile) 2>conftest.er1
6397  ac_status=$?
6398  grep -v '^ *+' conftest.er1 >conftest.err
6399  rm -f conftest.er1
6400  cat conftest.err >&5
6401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402  (exit $ac_status); } &&
6403         { ac_try='test -z "$ac_c_werror_flag"
6404                         || test ! -s conftest.err'
6405  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6406  (eval $ac_try) 2>&5
6407  ac_status=$?
6408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409  (exit $ac_status); }; } &&
6410         { ac_try='test -s conftest.$ac_objext'
6411  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6412  (eval $ac_try) 2>&5
6413  ac_status=$?
6414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415  (exit $ac_status); }; }; then
6416  ac_cv_header_stdc=yes
6417else
6418  echo "$as_me: failed program was:" >&5
6419sed 's/^/| /' conftest.$ac_ext >&5
6420
6421ac_cv_header_stdc=no
6422fi
6423rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6424
6425if test $ac_cv_header_stdc = yes; then
6426  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6427  cat >conftest.$ac_ext <<_ACEOF
6428/* confdefs.h.  */
6429_ACEOF
6430cat confdefs.h >>conftest.$ac_ext
6431cat >>conftest.$ac_ext <<_ACEOF
6432/* end confdefs.h.  */
6433#include <string.h>
6434
6435_ACEOF
6436if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6437  $EGREP "memchr" >/dev/null 2>&1; then
6438  :
6439else
6440  ac_cv_header_stdc=no
6441fi
6442rm -f conftest*
6443
6444fi
6445
6446if test $ac_cv_header_stdc = yes; then
6447  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6448  cat >conftest.$ac_ext <<_ACEOF
6449/* confdefs.h.  */
6450_ACEOF
6451cat confdefs.h >>conftest.$ac_ext
6452cat >>conftest.$ac_ext <<_ACEOF
6453/* end confdefs.h.  */
6454#include <stdlib.h>
6455
6456_ACEOF
6457if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6458  $EGREP "free" >/dev/null 2>&1; then
6459  :
6460else
6461  ac_cv_header_stdc=no
6462fi
6463rm -f conftest*
6464
6465fi
6466
6467if test $ac_cv_header_stdc = yes; then
6468  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6469  if test "$cross_compiling" = yes; then
6470  :
6471else
6472  cat >conftest.$ac_ext <<_ACEOF
6473/* confdefs.h.  */
6474_ACEOF
6475cat confdefs.h >>conftest.$ac_ext
6476cat >>conftest.$ac_ext <<_ACEOF
6477/* end confdefs.h.  */
6478#include <ctype.h>
6479#if ((' ' & 0x0FF) == 0x020)
6480# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6481# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6482#else
6483# define ISLOWER(c) \
6484                   (('a' <= (c) && (c) <= 'i') \
6485                     || ('j' <= (c) && (c) <= 'r') \
6486                     || ('s' <= (c) && (c) <= 'z'))
6487# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6488#endif
6489
6490#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6491int
6492main ()
6493{
6494  int i;
6495  for (i = 0; i < 256; i++)
6496    if (XOR (islower (i), ISLOWER (i))
6497        || toupper (i) != TOUPPER (i))
6498      exit(2);
6499  exit (0);
6500}
6501_ACEOF
6502rm -f conftest$ac_exeext
6503if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6504  (eval $ac_link) 2>&5
6505  ac_status=$?
6506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6508  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6509  (eval $ac_try) 2>&5
6510  ac_status=$?
6511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6512  (exit $ac_status); }; }; then
6513  :
6514else
6515  echo "$as_me: program exited with status $ac_status" >&5
6516echo "$as_me: failed program was:" >&5
6517sed 's/^/| /' conftest.$ac_ext >&5
6518
6519( exit $ac_status )
6520ac_cv_header_stdc=no
6521fi
6522rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6523fi
6524fi
6525fi
6526echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6527echo "${ECHO_T}$ac_cv_header_stdc" >&6
6528if test $ac_cv_header_stdc = yes; then
6529
6530cat >>confdefs.h <<\_ACEOF
6531#define STDC_HEADERS 1
6532_ACEOF
6533
6534fi
6535
6536# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6547                  inttypes.h stdint.h unistd.h
6548do
6549as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6550echo "$as_me:$LINENO: checking for $ac_header" >&5
6551echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6552if eval "test \"\${$as_ac_Header+set}\" = set"; then
6553  echo $ECHO_N "(cached) $ECHO_C" >&6
6554else
6555  cat >conftest.$ac_ext <<_ACEOF
6556/* confdefs.h.  */
6557_ACEOF
6558cat confdefs.h >>conftest.$ac_ext
6559cat >>conftest.$ac_ext <<_ACEOF
6560/* end confdefs.h.  */
6561$ac_includes_default
6562
6563#include <$ac_header>
6564_ACEOF
6565rm -f conftest.$ac_objext
6566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6567  (eval $ac_compile) 2>conftest.er1
6568  ac_status=$?
6569  grep -v '^ *+' conftest.er1 >conftest.err
6570  rm -f conftest.er1
6571  cat conftest.err >&5
6572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573  (exit $ac_status); } &&
6574         { ac_try='test -z "$ac_c_werror_flag"
6575                         || test ! -s conftest.err'
6576  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6577  (eval $ac_try) 2>&5
6578  ac_status=$?
6579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580  (exit $ac_status); }; } &&
6581         { ac_try='test -s conftest.$ac_objext'
6582  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6583  (eval $ac_try) 2>&5
6584  ac_status=$?
6585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586  (exit $ac_status); }; }; then
6587  eval "$as_ac_Header=yes"
6588else
6589  echo "$as_me: failed program was:" >&5
6590sed 's/^/| /' conftest.$ac_ext >&5
6591
6592eval "$as_ac_Header=no"
6593fi
6594rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6595fi
6596echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6597echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6598if test `eval echo '${'$as_ac_Header'}'` = yes; then
6599  cat >>confdefs.h <<_ACEOF
6600#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6601_ACEOF
6602
6603fi
6604
6605done
6606
6607
6608
6609for ac_header in dlfcn.h
6610do
6611as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6612if eval "test \"\${$as_ac_Header+set}\" = set"; then
6613  echo "$as_me:$LINENO: checking for $ac_header" >&5
6614echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6615if eval "test \"\${$as_ac_Header+set}\" = set"; then
6616  echo $ECHO_N "(cached) $ECHO_C" >&6
6617fi
6618echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6619echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6620else
6621  # Is the header compilable?
6622echo "$as_me:$LINENO: checking $ac_header usability" >&5
6623echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6624cat >conftest.$ac_ext <<_ACEOF
6625/* confdefs.h.  */
6626_ACEOF
6627cat confdefs.h >>conftest.$ac_ext
6628cat >>conftest.$ac_ext <<_ACEOF
6629/* end confdefs.h.  */
6630$ac_includes_default
6631#include <$ac_header>
6632_ACEOF
6633rm -f conftest.$ac_objext
6634if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6635  (eval $ac_compile) 2>conftest.er1
6636  ac_status=$?
6637  grep -v '^ *+' conftest.er1 >conftest.err
6638  rm -f conftest.er1
6639  cat conftest.err >&5
6640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641  (exit $ac_status); } &&
6642         { ac_try='test -z "$ac_c_werror_flag"
6643                         || test ! -s conftest.err'
6644  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6645  (eval $ac_try) 2>&5
6646  ac_status=$?
6647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648  (exit $ac_status); }; } &&
6649         { ac_try='test -s conftest.$ac_objext'
6650  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6651  (eval $ac_try) 2>&5
6652  ac_status=$?
6653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654  (exit $ac_status); }; }; then
6655  ac_header_compiler=yes
6656else
6657  echo "$as_me: failed program was:" >&5
6658sed 's/^/| /' conftest.$ac_ext >&5
6659
6660ac_header_compiler=no
6661fi
6662rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6663echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6664echo "${ECHO_T}$ac_header_compiler" >&6
6665
6666# Is the header present?
6667echo "$as_me:$LINENO: checking $ac_header presence" >&5
6668echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6669cat >conftest.$ac_ext <<_ACEOF
6670/* confdefs.h.  */
6671_ACEOF
6672cat confdefs.h >>conftest.$ac_ext
6673cat >>conftest.$ac_ext <<_ACEOF
6674/* end confdefs.h.  */
6675#include <$ac_header>
6676_ACEOF
6677if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6678  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6679  ac_status=$?
6680  grep -v '^ *+' conftest.er1 >conftest.err
6681  rm -f conftest.er1
6682  cat conftest.err >&5
6683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6684  (exit $ac_status); } >/dev/null; then
6685  if test -s conftest.err; then
6686    ac_cpp_err=$ac_c_preproc_warn_flag
6687    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6688  else
6689    ac_cpp_err=
6690  fi
6691else
6692  ac_cpp_err=yes
6693fi
6694if test -z "$ac_cpp_err"; then
6695  ac_header_preproc=yes
6696else
6697  echo "$as_me: failed program was:" >&5
6698sed 's/^/| /' conftest.$ac_ext >&5
6699
6700  ac_header_preproc=no
6701fi
6702rm -f conftest.err conftest.$ac_ext
6703echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6704echo "${ECHO_T}$ac_header_preproc" >&6
6705
6706# So?  What about this header?
6707case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6708  yes:no: )
6709    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6710echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6711    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6712echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6713    ac_header_preproc=yes
6714    ;;
6715  no:yes:* )
6716    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6717echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6718    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6719echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6720    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6721echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6722    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6723echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6724    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6725echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6726    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6727echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6728    (
6729      cat <<\_ASBOX
6730## ------------------------------------ ##
6731## Report this to cbc@lists.coin-or.org ##
6732## ------------------------------------ ##
6733_ASBOX
6734    ) |
6735      sed "s/^/$as_me: WARNING:     /" >&2
6736    ;;
6737esac
6738echo "$as_me:$LINENO: checking for $ac_header" >&5
6739echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6740if eval "test \"\${$as_ac_Header+set}\" = set"; then
6741  echo $ECHO_N "(cached) $ECHO_C" >&6
6742else
6743  eval "$as_ac_Header=\$ac_header_preproc"
6744fi
6745echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6746echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6747
6748fi
6749if test `eval echo '${'$as_ac_Header'}'` = yes; then
6750  cat >>confdefs.h <<_ACEOF
6751#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6752_ACEOF
6753
6754fi
6755
6756done
6757
6758
6759
6760if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6761    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6762    (test "X$CXX" != "Xg++"))) ; then
6763  ac_ext=cc
6764ac_cpp='$CXXCPP $CPPFLAGS'
6765ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6766ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6767ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6768echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6769echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6770if test -z "$CXXCPP"; then
6771  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6772  echo $ECHO_N "(cached) $ECHO_C" >&6
6773else
6774      # Double quotes because CXXCPP needs to be expanded
6775    for CXXCPP in "$CXX -E" "/lib/cpp"
6776    do
6777      ac_preproc_ok=false
6778for ac_cxx_preproc_warn_flag in '' yes
6779do
6780  # Use a header file that comes with gcc, so configuring glibc
6781  # with a fresh cross-compiler works.
6782  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6783  # <limits.h> exists even on freestanding compilers.
6784  # On the NeXT, cc -E runs the code through the compiler's parser,
6785  # not just through cpp. "Syntax error" is here to catch this case.
6786  cat >conftest.$ac_ext <<_ACEOF
6787/* confdefs.h.  */
6788_ACEOF
6789cat confdefs.h >>conftest.$ac_ext
6790cat >>conftest.$ac_ext <<_ACEOF
6791/* end confdefs.h.  */
6792#ifdef __STDC__
6793# include <limits.h>
6794#else
6795# include <assert.h>
6796#endif
6797                     Syntax error
6798_ACEOF
6799if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6800  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6801  ac_status=$?
6802  grep -v '^ *+' conftest.er1 >conftest.err
6803  rm -f conftest.er1
6804  cat conftest.err >&5
6805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6806  (exit $ac_status); } >/dev/null; then
6807  if test -s conftest.err; then
6808    ac_cpp_err=$ac_cxx_preproc_warn_flag
6809    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6810  else
6811    ac_cpp_err=
6812  fi
6813else
6814  ac_cpp_err=yes
6815fi
6816if test -z "$ac_cpp_err"; then
6817  :
6818else
6819  echo "$as_me: failed program was:" >&5
6820sed 's/^/| /' conftest.$ac_ext >&5
6821
6822  # Broken: fails on valid input.
6823continue
6824fi
6825rm -f conftest.err conftest.$ac_ext
6826
6827  # OK, works on sane cases.  Now check whether non-existent headers
6828  # can be detected and how.
6829  cat >conftest.$ac_ext <<_ACEOF
6830/* confdefs.h.  */
6831_ACEOF
6832cat confdefs.h >>conftest.$ac_ext
6833cat >>conftest.$ac_ext <<_ACEOF
6834/* end confdefs.h.  */
6835#include <ac_nonexistent.h>
6836_ACEOF
6837if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6838  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6839  ac_status=$?
6840  grep -v '^ *+' conftest.er1 >conftest.err
6841  rm -f conftest.er1
6842  cat conftest.err >&5
6843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6844  (exit $ac_status); } >/dev/null; then
6845  if test -s conftest.err; then
6846    ac_cpp_err=$ac_cxx_preproc_warn_flag
6847    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6848  else
6849    ac_cpp_err=
6850  fi
6851else
6852  ac_cpp_err=yes
6853fi
6854if test -z "$ac_cpp_err"; then
6855  # Broken: success on invalid input.
6856continue
6857else
6858  echo "$as_me: failed program was:" >&5
6859sed 's/^/| /' conftest.$ac_ext >&5
6860
6861  # Passes both tests.
6862ac_preproc_ok=:
6863break
6864fi
6865rm -f conftest.err conftest.$ac_ext
6866
6867done
6868# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6869rm -f conftest.err conftest.$ac_ext
6870if $ac_preproc_ok; then
6871  break
6872fi
6873
6874    done
6875    ac_cv_prog_CXXCPP=$CXXCPP
6876
6877fi
6878  CXXCPP=$ac_cv_prog_CXXCPP
6879else
6880  ac_cv_prog_CXXCPP=$CXXCPP
6881fi
6882echo "$as_me:$LINENO: result: $CXXCPP" >&5
6883echo "${ECHO_T}$CXXCPP" >&6
6884ac_preproc_ok=false
6885for ac_cxx_preproc_warn_flag in '' yes
6886do
6887  # Use a header file that comes with gcc, so configuring glibc
6888  # with a fresh cross-compiler works.
6889  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6890  # <limits.h> exists even on freestanding compilers.
6891  # On the NeXT, cc -E runs the code through the compiler's parser,
6892  # not just through cpp. "Syntax error" is here to catch this case.
6893  cat >conftest.$ac_ext <<_ACEOF
6894/* confdefs.h.  */
6895_ACEOF
6896cat confdefs.h >>conftest.$ac_ext
6897cat >>conftest.$ac_ext <<_ACEOF
6898/* end confdefs.h.  */
6899#ifdef __STDC__
6900# include <limits.h>
6901#else
6902# include <assert.h>
6903#endif
6904                     Syntax error
6905_ACEOF
6906if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6907  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6908  ac_status=$?
6909  grep -v '^ *+' conftest.er1 >conftest.err
6910  rm -f conftest.er1
6911  cat conftest.err >&5
6912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913  (exit $ac_status); } >/dev/null; then
6914  if test -s conftest.err; then
6915    ac_cpp_err=$ac_cxx_preproc_warn_flag
6916    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6917  else
6918    ac_cpp_err=
6919  fi
6920else
6921  ac_cpp_err=yes
6922fi
6923if test -z "$ac_cpp_err"; then
6924  :
6925else
6926  echo "$as_me: failed program was:" >&5
6927sed 's/^/| /' conftest.$ac_ext >&5
6928
6929  # Broken: fails on valid input.
6930continue
6931fi
6932rm -f conftest.err conftest.$ac_ext
6933
6934  # OK, works on sane cases.  Now check whether non-existent headers
6935  # can be detected and how.
6936  cat >conftest.$ac_ext <<_ACEOF
6937/* confdefs.h.  */
6938_ACEOF
6939cat confdefs.h >>conftest.$ac_ext
6940cat >>conftest.$ac_ext <<_ACEOF
6941/* end confdefs.h.  */
6942#include <ac_nonexistent.h>
6943_ACEOF
6944if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6945  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6946  ac_status=$?
6947  grep -v '^ *+' conftest.er1 >conftest.err
6948  rm -f conftest.er1
6949  cat conftest.err >&5
6950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6951  (exit $ac_status); } >/dev/null; then
6952  if test -s conftest.err; then
6953    ac_cpp_err=$ac_cxx_preproc_warn_flag
6954    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6955  else
6956    ac_cpp_err=
6957  fi
6958else
6959  ac_cpp_err=yes
6960fi
6961if test -z "$ac_cpp_err"; then
6962  # Broken: success on invalid input.
6963continue
6964else
6965  echo "$as_me: failed program was:" >&5
6966sed 's/^/| /' conftest.$ac_ext >&5
6967
6968  # Passes both tests.
6969ac_preproc_ok=:
6970break
6971fi
6972rm -f conftest.err conftest.$ac_ext
6973
6974done
6975# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6976rm -f conftest.err conftest.$ac_ext
6977if $ac_preproc_ok; then
6978  :
6979else
6980  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6981See \`config.log' for more details." >&5
6982echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6983See \`config.log' for more details." >&2;}
6984   { (exit 1); exit 1; }; }
6985fi
6986
6987ac_ext=cc
6988ac_cpp='$CXXCPP $CPPFLAGS'
6989ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6990ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6991ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6992
6993fi
6994
6995ac_ext=f
6996ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6997ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6998ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6999if test -n "$ac_tool_prefix"; then
7000  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7001  do
7002    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7003set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7004echo "$as_me:$LINENO: checking for $ac_word" >&5
7005echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7006if test "${ac_cv_prog_F77+set}" = set; then
7007  echo $ECHO_N "(cached) $ECHO_C" >&6
7008else
7009  if test -n "$F77"; then
7010  ac_cv_prog_F77="$F77" # Let the user override the test.
7011else
7012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7013for as_dir in $PATH
7014do
7015  IFS=$as_save_IFS
7016  test -z "$as_dir" && as_dir=.
7017  for ac_exec_ext in '' $ac_executable_extensions; do
7018  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7019    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7020    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7021    break 2
7022  fi
7023done
7024done
7025
7026fi
7027fi
7028F77=$ac_cv_prog_F77
7029if test -n "$F77"; then
7030  echo "$as_me:$LINENO: result: $F77" >&5
7031echo "${ECHO_T}$F77" >&6
7032else
7033  echo "$as_me:$LINENO: result: no" >&5
7034echo "${ECHO_T}no" >&6
7035fi
7036
7037    test -n "$F77" && break
7038  done
7039fi
7040if test -z "$F77"; then
7041  ac_ct_F77=$F77
7042  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7043do
7044  # Extract the first word of "$ac_prog", so it can be a program name with args.
7045set dummy $ac_prog; ac_word=$2
7046echo "$as_me:$LINENO: checking for $ac_word" >&5
7047echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7048if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7049  echo $ECHO_N "(cached) $ECHO_C" >&6
7050else
7051  if test -n "$ac_ct_F77"; then
7052  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7053else
7054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7055for as_dir in $PATH
7056do
7057  IFS=$as_save_IFS
7058  test -z "$as_dir" && as_dir=.
7059  for ac_exec_ext in '' $ac_executable_extensions; do
7060  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7061    ac_cv_prog_ac_ct_F77="$ac_prog"
7062    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7063    break 2
7064  fi
7065done
7066done
7067
7068fi
7069fi
7070ac_ct_F77=$ac_cv_prog_ac_ct_F77
7071if test -n "$ac_ct_F77"; then
7072  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7073echo "${ECHO_T}$ac_ct_F77" >&6
7074else
7075  echo "$as_me:$LINENO: result: no" >&5
7076echo "${ECHO_T}no" >&6
7077fi
7078
7079  test -n "$ac_ct_F77" && break
7080done
7081
7082  F77=$ac_ct_F77
7083fi
7084
7085
7086# Provide some information about the compiler.
7087echo "$as_me:7087:" \
7088     "checking for Fortran 77 compiler version" >&5
7089ac_compiler=`set X $ac_compile; echo $2`
7090{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7091  (eval $ac_compiler --version </dev/null >&5) 2>&5
7092  ac_status=$?
7093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7094  (exit $ac_status); }
7095{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7096  (eval $ac_compiler -v </dev/null >&5) 2>&5
7097  ac_status=$?
7098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7099  (exit $ac_status); }
7100{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7101  (eval $ac_compiler -V </dev/null >&5) 2>&5
7102  ac_status=$?
7103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7104  (exit $ac_status); }
7105rm -f a.out
7106
7107# If we don't use `.F' as extension, the preprocessor is not run on the
7108# input file.  (Note that this only needs to work for GNU compilers.)
7109ac_save_ext=$ac_ext
7110ac_ext=F
7111echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7112echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
7113if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7114  echo $ECHO_N "(cached) $ECHO_C" >&6
7115else
7116  cat >conftest.$ac_ext <<_ACEOF
7117      program main
7118#ifndef __GNUC__
7119       choke me
7120#endif
7121
7122      end
7123_ACEOF
7124rm -f conftest.$ac_objext
7125if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7126  (eval $ac_compile) 2>conftest.er1
7127  ac_status=$?
7128  grep -v '^ *+' conftest.er1 >conftest.err
7129  rm -f conftest.er1
7130  cat conftest.err >&5
7131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7132  (exit $ac_status); } &&
7133         { ac_try='test -z "$ac_f77_werror_flag"
7134                         || test ! -s conftest.err'
7135  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7136  (eval $ac_try) 2>&5
7137  ac_status=$?
7138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7139  (exit $ac_status); }; } &&
7140         { ac_try='test -s conftest.$ac_objext'
7141  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7142  (eval $ac_try) 2>&5
7143  ac_status=$?
7144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7145  (exit $ac_status); }; }; then
7146  ac_compiler_gnu=yes
7147else
7148  echo "$as_me: failed program was:" >&5
7149sed 's/^/| /' conftest.$ac_ext >&5
7150
7151ac_compiler_gnu=no
7152fi
7153rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7154ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7155
7156fi
7157echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7158echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7159ac_ext=$ac_save_ext
7160ac_test_FFLAGS=${FFLAGS+set}
7161ac_save_FFLAGS=$FFLAGS
7162FFLAGS=
7163echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7164echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7165if test "${ac_cv_prog_f77_g+set}" = set; then
7166  echo $ECHO_N "(cached) $ECHO_C" >&6
7167else
7168  FFLAGS=-g
7169cat >conftest.$ac_ext <<_ACEOF
7170      program main
7171
7172      end
7173_ACEOF
7174rm -f conftest.$ac_objext
7175if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7176  (eval $ac_compile) 2>conftest.er1
7177  ac_status=$?
7178  grep -v '^ *+' conftest.er1 >conftest.err
7179  rm -f conftest.er1
7180  cat conftest.err >&5
7181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7182  (exit $ac_status); } &&
7183         { ac_try='test -z "$ac_f77_werror_flag"
7184                         || test ! -s conftest.err'
7185  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7186  (eval $ac_try) 2>&5
7187  ac_status=$?
7188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7189  (exit $ac_status); }; } &&
7190         { ac_try='test -s conftest.$ac_objext'
7191  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7192  (eval $ac_try) 2>&5
7193  ac_status=$?
7194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7195  (exit $ac_status); }; }; then
7196  ac_cv_prog_f77_g=yes
7197else
7198  echo "$as_me: failed program was:" >&5
7199sed 's/^/| /' conftest.$ac_ext >&5
7200
7201ac_cv_prog_f77_g=no
7202fi
7203rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7204
7205fi
7206echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7207echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7208if test "$ac_test_FFLAGS" = set; then
7209  FFLAGS=$ac_save_FFLAGS
7210elif test $ac_cv_prog_f77_g = yes; then
7211  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7212    FFLAGS="-g -O2"
7213  else
7214    FFLAGS="-g"
7215  fi
7216else
7217  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7218    FFLAGS="-O2"
7219  else
7220    FFLAGS=
7221  fi
7222fi
7223
7224G77=`test $ac_compiler_gnu = yes && echo yes`
7225ac_ext=c
7226ac_cpp='$CPP $CPPFLAGS'
7227ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7228ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7229ac_compiler_gnu=$ac_cv_c_compiler_gnu
7230
7231
7232
7233# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7234
7235# find the maximum length of command line arguments
7236echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7237echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7238if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7239  echo $ECHO_N "(cached) $ECHO_C" >&6
7240else
7241    i=0
7242  teststring="ABCD"
7243
7244  case $build_os in
7245  msdosdjgpp*)
7246    # On DJGPP, this test can blow up pretty badly due to problems in libc
7247    # (any single argument exceeding 2000 bytes causes a buffer overrun
7248    # during glob expansion).  Even if it were fixed, the result of this
7249    # check would be larger than it should be.
7250    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7251    ;;
7252
7253  gnu*)
7254    # Under GNU Hurd, this test is not required because there is
7255    # no limit to the length of command line arguments.
7256    # Libtool will interpret -1 as no limit whatsoever
7257    lt_cv_sys_max_cmd_len=-1;
7258    ;;
7259
7260  cygwin* | mingw*)
7261    # On Win9x/ME, this test blows up -- it succeeds, but takes
7262    # about 5 minutes as the teststring grows exponentially.
7263    # Worse, since 9x/ME are not pre-emptively multitasking,
7264    # you end up with a "frozen" computer, even though with patience
7265    # the test eventually succeeds (with a max line length of 256k).
7266    # Instead, let's just punt: use the minimum linelength reported by
7267    # all of the supported platforms: 8192 (on NT/2K/XP).
7268    lt_cv_sys_max_cmd_len=8192;
7269    ;;
7270
7271  amigaos*)
7272    # On AmigaOS with pdksh, this test takes hours, literally.
7273    # So we just punt and use a minimum line length of 8192.
7274    lt_cv_sys_max_cmd_len=8192;
7275    ;;
7276
7277  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7278    # This has been around since 386BSD, at least.  Likely further.
7279    if test -x /sbin/sysctl; then
7280      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7281    elif test -x /usr/sbin/sysctl; then
7282      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7283    else
7284      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7285    fi
7286    # And add a safety zone
7287    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7288    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7289    ;;
7290
7291  interix*)
7292    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7293    lt_cv_sys_max_cmd_len=196608
7294    ;;
7295
7296  osf*)
7297    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7298    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7299    # nice to cause kernel panics so lets avoid the loop below.
7300    # First set a reasonable default.
7301    lt_cv_sys_max_cmd_len=16384
7302    #
7303    if test -x /sbin/sysconfig; then
7304      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7305        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7306      esac
7307    fi
7308    ;;
7309  sco3.2v5*)
7310    lt_cv_sys_max_cmd_len=102400
7311    ;;
7312  sysv5* | sco5v6* | sysv4.2uw2*)
7313    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7314    if test -n "$kargmax"; then
7315      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7316    else
7317      lt_cv_sys_max_cmd_len=32768
7318    fi
7319    ;;
7320  *)
7321    # If test is not a shell built-in, we'll probably end up computing a
7322    # maximum length that is only half of the actual maximum length, but
7323    # we can't tell.
7324    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7325    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7326               = "XX$teststring") >/dev/null 2>&1 &&
7327            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7328            lt_cv_sys_max_cmd_len=$new_result &&
7329            test $i != 17 # 1/2 MB should be enough
7330    do
7331      i=`expr $i + 1`
7332      teststring=$teststring$teststring
7333    done
7334    teststring=
7335    # Add a significant safety factor because C++ compilers can tack on massive
7336    # amounts of additional arguments before passing them to the linker.
7337    # It appears as though 1/2 is a usable value.
7338    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7339    ;;
7340  esac
7341
7342fi
7343
7344if test -n $lt_cv_sys_max_cmd_len ; then
7345  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7346echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7347else
7348  echo "$as_me:$LINENO: result: none" >&5
7349echo "${ECHO_T}none" >&6
7350fi
7351
7352
7353
7354
7355# Check for command to grab the raw symbol name followed by C symbol from nm.
7356echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7357echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7358if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7359  echo $ECHO_N "(cached) $ECHO_C" >&6
7360else
7361
7362# These are sane defaults that work on at least a few old systems.
7363# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7364
7365# Character class describing NM global symbol codes.
7366symcode='[BCDEGRST]'
7367
7368# Regexp to match symbols that can be accessed directly from C.
7369sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7370
7371# Transform an extracted symbol line into a proper C declaration
7372lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7373
7374# Transform an extracted symbol line into symbol name and symbol address
7375lt_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'"
7376
7377# Define system-specific variables.
7378case $host_os in
7379aix*)
7380  symcode='[BCDT]'
7381  ;;
7382cygwin* | mingw* | pw32*)
7383  symcode='[ABCDGISTW]'
7384  ;;
7385hpux*) # Its linker distinguishes data from code symbols
7386  if test "$host_cpu" = ia64; then
7387    symcode='[ABCDEGRST]'
7388  fi
7389  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7390  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'"
7391  ;;
7392linux*)
7393  if test "$host_cpu" = ia64; then
7394    symcode='[ABCDGIRSTW]'
7395    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7396    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'"
7397  fi
7398  ;;
7399irix* | nonstopux*)
7400  symcode='[BCDEGRST]'
7401  ;;
7402osf*)
7403  symcode='[BCDEGQRST]'
7404  ;;
7405solaris*)
7406  symcode='[BDRT]'
7407  ;;
7408sco3.2v5*)
7409  symcode='[DT]'
7410  ;;
7411sysv4.2uw2*)
7412  symcode='[DT]'
7413  ;;
7414sysv5* | sco5v6* | unixware* | OpenUNIX*)
7415  symcode='[ABDT]'
7416  ;;
7417sysv4)
7418  symcode='[DFNSTU]'
7419  ;;
7420esac
7421
7422# Handle CRLF in mingw tool chain
7423opt_cr=
7424case $build_os in
7425mingw*)
7426  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7427  ;;
7428esac
7429
7430# If we're using GNU nm, then use its standard symbol codes.
7431case `$NM -V 2>&1` in
7432*GNU* | *'with BFD'*)
7433  symcode='[ABCDGIRSTW]' ;;
7434esac
7435
7436# Try without a prefix undercore, then with it.
7437for ac_symprfx in "" "_"; do
7438
7439  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7440  symxfrm="\\1 $ac_symprfx\\2 \\2"
7441
7442  # Write the raw and C identifiers.
7443  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7444
7445  # Check to see that the pipe works correctly.
7446  pipe_works=no
7447
7448  rm -f conftest*
7449  cat > conftest.$ac_ext <<EOF
7450#ifdef __cplusplus
7451extern "C" {
7452#endif
7453char nm_test_var;
7454void nm_test_func(){}
7455#ifdef __cplusplus
7456}
7457#endif
7458int main(){nm_test_var='a';nm_test_func();return(0);}
7459EOF
7460
7461  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7462  (eval $ac_compile) 2>&5
7463  ac_status=$?
7464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7465  (exit $ac_status); }; then
7466    # Now try to grab the symbols.
7467    nlist=conftest.nm
7468    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7469  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7470  ac_status=$?
7471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7472  (exit $ac_status); } && test -s "$nlist"; then
7473      # Try sorting and uniquifying the output.
7474      if sort "$nlist" | uniq > "$nlist"T; then
7475        mv -f "$nlist"T "$nlist"
7476      else
7477        rm -f "$nlist"T
7478      fi
7479
7480      # Make sure that we snagged all the symbols we need.
7481      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7482        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7483          cat <<EOF > conftest.$ac_ext
7484#ifdef __cplusplus
7485extern "C" {
7486#endif
7487
7488EOF
7489          # Now generate the symbol file.
7490          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7491
7492          cat <<EOF >> conftest.$ac_ext
7493#if defined (__STDC__) && __STDC__
7494# define lt_ptr_t void *
7495#else
7496# define lt_ptr_t char *
7497# define const
7498#endif
7499
7500/* The mapping between symbol names and symbols. */
7501const struct {
7502  const char *name;
7503  lt_ptr_t address;
7504}
7505lt_preloaded_symbols[] =
7506{
7507EOF
7508          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7509          cat <<\EOF >> conftest.$ac_ext
7510  {0, (lt_ptr_t) 0}
7511};
7512
7513#ifdef __cplusplus
7514}
7515#endif
7516EOF
7517          # Now try linking the two files.
7518          mv conftest.$ac_objext conftstm.$ac_objext
7519          lt_save_LIBS="$LIBS"
7520          lt_save_CFLAGS="$CFLAGS"
7521          LIBS="conftstm.$ac_objext"
7522          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7523          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7524  (eval $ac_link) 2>&5
7525  ac_status=$?
7526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7527  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7528            pipe_works=yes
7529          fi
7530          LIBS="$lt_save_LIBS"
7531          CFLAGS="$lt_save_CFLAGS"
7532        else
7533          echo "cannot find nm_test_func in $nlist" >&5
7534        fi
7535      else
7536        echo "cannot find nm_test_var in $nlist" >&5
7537      fi
7538    else
7539      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7540    fi
7541  else
7542    echo "$progname: failed program was:" >&5
7543    cat conftest.$ac_ext >&5
7544  fi
7545  rm -f conftest* conftst*
7546
7547  # Do not use the global_symbol_pipe unless it works.
7548  if test "$pipe_works" = yes; then
7549    break
7550  else
7551    lt_cv_sys_global_symbol_pipe=
7552  fi
7553done
7554
7555fi
7556
7557if test -z "$lt_cv_sys_global_symbol_pipe"; then
7558  lt_cv_sys_global_symbol_to_cdecl=
7559fi
7560if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7561  echo "$as_me:$LINENO: result: failed" >&5
7562echo "${ECHO_T}failed" >&6
7563else
7564  echo "$as_me:$LINENO: result: ok" >&5
7565echo "${ECHO_T}ok" >&6
7566fi
7567
7568echo "$as_me:$LINENO: checking for objdir" >&5
7569echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7570if test "${lt_cv_objdir+set}" = set; then
7571  echo $ECHO_N "(cached) $ECHO_C" >&6
7572else
7573  rm -f .libs 2>/dev/null
7574mkdir .libs 2>/dev/null
7575if test -d .libs; then
7576  lt_cv_objdir=.libs
7577else
7578  # MS-DOS does not allow filenames that begin with a dot.
7579  lt_cv_objdir=_libs
7580fi
7581rmdir .libs 2>/dev/null
7582fi
7583echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7584echo "${ECHO_T}$lt_cv_objdir" >&6
7585objdir=$lt_cv_objdir
7586
7587
7588
7589
7590
7591case $host_os in
7592aix3*)
7593  # AIX sometimes has problems with the GCC collect2 program.  For some
7594  # reason, if we set the COLLECT_NAMES environment variable, the problems
7595  # vanish in a puff of smoke.
7596  if test "X${COLLECT_NAMES+set}" != Xset; then
7597    COLLECT_NAMES=
7598    export COLLECT_NAMES
7599  fi
7600  ;;
7601esac
7602
7603# Sed substitution that helps us do robust quoting.  It backslashifies
7604# metacharacters that are still active within double-quoted strings.
7605Xsed='sed -e 1s/^X//'
7606sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7607
7608# Same as above, but do not quote variable references.
7609double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7610
7611# Sed substitution to delay expansion of an escaped shell variable in a
7612# double_quote_subst'ed string.
7613delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7614
7615# Sed substitution to avoid accidental globbing in evaled expressions
7616no_glob_subst='s/\*/\\\*/g'
7617
7618# Constants:
7619rm="rm -f"
7620
7621# Global variables:
7622default_ofile=libtool
7623can_build_shared=yes
7624
7625# All known linkers require a `.a' archive for static linking (except MSVC,
7626# which needs '.lib').
7627libext=a
7628ltmain="$ac_aux_dir/ltmain.sh"
7629ofile="$default_ofile"
7630with_gnu_ld="$lt_cv_prog_gnu_ld"
7631
7632if test -n "$ac_tool_prefix"; then
7633  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7634set dummy ${ac_tool_prefix}ar; ac_word=$2
7635echo "$as_me:$LINENO: checking for $ac_word" >&5
7636echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7637if test "${ac_cv_prog_AR+set}" = set; then
7638  echo $ECHO_N "(cached) $ECHO_C" >&6
7639else
7640  if test -n "$AR"; then
7641  ac_cv_prog_AR="$AR" # Let the user override the test.
7642else
7643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7644for as_dir in $PATH
7645do
7646  IFS=$as_save_IFS
7647  test -z "$as_dir" && as_dir=.
7648  for ac_exec_ext in '' $ac_executable_extensions; do
7649  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7650    ac_cv_prog_AR="${ac_tool_prefix}ar"
7651    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7652    break 2
7653  fi
7654done
7655done
7656
7657fi
7658fi
7659AR=$ac_cv_prog_AR
7660if test -n "$AR"; then
7661  echo "$as_me:$LINENO: result: $AR" >&5
7662echo "${ECHO_T}$AR" >&6
7663else
7664  echo "$as_me:$LINENO: result: no" >&5
7665echo "${ECHO_T}no" >&6
7666fi
7667
7668fi
7669if test -z "$ac_cv_prog_AR"; then
7670  ac_ct_AR=$AR
7671  # Extract the first word of "ar", so it can be a program name with args.
7672set dummy ar; ac_word=$2
7673echo "$as_me:$LINENO: checking for $ac_word" >&5
7674echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7675if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7676  echo $ECHO_N "(cached) $ECHO_C" >&6
7677else
7678  if test -n "$ac_ct_AR"; then
7679  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7680else
7681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7682for as_dir in $PATH
7683do
7684  IFS=$as_save_IFS
7685  test -z "$as_dir" && as_dir=.
7686  for ac_exec_ext in '' $ac_executable_extensions; do
7687  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7688    ac_cv_prog_ac_ct_AR="ar"
7689    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7690    break 2
7691  fi
7692done
7693done
7694
7695  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7696fi
7697fi
7698ac_ct_AR=$ac_cv_prog_ac_ct_AR
7699if test -n "$ac_ct_AR"; then
7700  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7701echo "${ECHO_T}$ac_ct_AR" >&6
7702else
7703  echo "$as_me:$LINENO: result: no" >&5
7704echo "${ECHO_T}no" >&6
7705fi
7706
7707  AR=$ac_ct_AR
7708else
7709  AR="$ac_cv_prog_AR"
7710fi
7711
7712if test -n "$ac_tool_prefix"; then
7713  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7714set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7715echo "$as_me:$LINENO: checking for $ac_word" >&5
7716echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7717if test "${ac_cv_prog_RANLIB+set}" = set; then
7718  echo $ECHO_N "(cached) $ECHO_C" >&6
7719else
7720  if test -n "$RANLIB"; then
7721  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7722else
7723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7724for as_dir in $PATH
7725do
7726  IFS=$as_save_IFS
7727  test -z "$as_dir" && as_dir=.
7728  for ac_exec_ext in '' $ac_executable_extensions; do
7729  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7730    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7731    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7732    break 2
7733  fi
7734done
7735done
7736
7737fi
7738fi
7739RANLIB=$ac_cv_prog_RANLIB
7740if test -n "$RANLIB"; then
7741  echo "$as_me:$LINENO: result: $RANLIB" >&5
7742echo "${ECHO_T}$RANLIB" >&6
7743else
7744  echo "$as_me:$LINENO: result: no" >&5
7745echo "${ECHO_T}no" >&6
7746fi
7747
7748fi
7749if test -z "$ac_cv_prog_RANLIB"; then
7750  ac_ct_RANLIB=$RANLIB
7751  # Extract the first word of "ranlib", so it can be a program name with args.
7752set dummy ranlib; ac_word=$2
7753echo "$as_me:$LINENO: checking for $ac_word" >&5
7754echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7755if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7756  echo $ECHO_N "(cached) $ECHO_C" >&6
7757else
7758  if test -n "$ac_ct_RANLIB"; then
7759  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7760else
7761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7762for as_dir in $PATH
7763do
7764  IFS=$as_save_IFS
7765  test -z "$as_dir" && as_dir=.
7766  for ac_exec_ext in '' $ac_executable_extensions; do
7767  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7768    ac_cv_prog_ac_ct_RANLIB="ranlib"
7769    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7770    break 2
7771  fi
7772done
7773done
7774
7775  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7776fi
7777fi
7778ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7779if test -n "$ac_ct_RANLIB"; then
7780  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7781echo "${ECHO_T}$ac_ct_RANLIB" >&6
7782else
7783  echo "$as_me:$LINENO: result: no" >&5
7784echo "${ECHO_T}no" >&6
7785fi
7786
7787  RANLIB=$ac_ct_RANLIB
7788else
7789  RANLIB="$ac_cv_prog_RANLIB"
7790fi
7791
7792if test -n "$ac_tool_prefix"; then
7793  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7794set dummy ${ac_tool_prefix}strip; ac_word=$2
7795echo "$as_me:$LINENO: checking for $ac_word" >&5
7796echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7797if test "${ac_cv_prog_STRIP+set}" = set; then
7798  echo $ECHO_N "(cached) $ECHO_C" >&6
7799else
7800  if test -n "$STRIP"; then
7801  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7802else
7803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7804for as_dir in $PATH
7805do
7806  IFS=$as_save_IFS
7807  test -z "$as_dir" && as_dir=.
7808  for ac_exec_ext in '' $ac_executable_extensions; do
7809  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7810    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7811    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7812    break 2
7813  fi
7814done
7815done
7816
7817fi
7818fi
7819STRIP=$ac_cv_prog_STRIP
7820if test -n "$STRIP"; then
7821  echo "$as_me:$LINENO: result: $STRIP" >&5
7822echo "${ECHO_T}$STRIP" >&6
7823else
7824  echo "$as_me:$LINENO: result: no" >&5
7825echo "${ECHO_T}no" >&6
7826fi
7827
7828fi
7829if test -z "$ac_cv_prog_STRIP"; then
7830  ac_ct_STRIP=$STRIP
7831  # Extract the first word of "strip", so it can be a program name with args.
7832set dummy strip; ac_word=$2
7833echo "$as_me:$LINENO: checking for $ac_word" >&5
7834echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7835if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7836  echo $ECHO_N "(cached) $ECHO_C" >&6
7837else
7838  if test -n "$ac_ct_STRIP"; then
7839  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7840else
7841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7842for as_dir in $PATH
7843do
7844  IFS=$as_save_IFS
7845  test -z "$as_dir" && as_dir=.
7846  for ac_exec_ext in '' $ac_executable_extensions; do
7847  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7848    ac_cv_prog_ac_ct_STRIP="strip"
7849    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7850    break 2
7851  fi
7852done
7853done
7854
7855  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7856fi
7857fi
7858ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7859if test -n "$ac_ct_STRIP"; then
7860  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7861echo "${ECHO_T}$ac_ct_STRIP" >&6
7862else
7863  echo "$as_me:$LINENO: result: no" >&5
7864echo "${ECHO_T}no" >&6
7865fi
7866
7867  STRIP=$ac_ct_STRIP
7868else
7869  STRIP="$ac_cv_prog_STRIP"
7870fi
7871
7872
7873old_CC="$CC"
7874old_CFLAGS="$CFLAGS"
7875
7876# Set sane defaults for various variables
7877test -z "$AR" && AR=ar
7878test -z "$AR_FLAGS" && AR_FLAGS=cru
7879test -z "$AS" && AS=as
7880test -z "$CC" && CC=cc
7881test -z "$LTCC" && LTCC=$CC
7882test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7883test -z "$DLLTOOL" && DLLTOOL=dlltool
7884test -z "$LD" && LD=ld
7885test -z "$LN_S" && LN_S="ln -s"
7886test -z "$MAGIC_CMD" && MAGIC_CMD=file
7887test -z "$NM" && NM=nm
7888test -z "$SED" && SED=sed
7889test -z "$OBJDUMP" && OBJDUMP=objdump
7890test -z "$RANLIB" && RANLIB=:
7891test -z "$STRIP" && STRIP=:
7892test -z "$ac_objext" && ac_objext=o
7893
7894# Determine commands to create old-style static archives.
7895old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7896old_postinstall_cmds='chmod 644 $oldlib'
7897old_postuninstall_cmds=
7898
7899if test -n "$RANLIB"; then
7900  case $host_os in
7901  openbsd*)
7902    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7903    ;;
7904  *)
7905    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7906    ;;
7907  esac
7908  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7909fi
7910
7911for cc_temp in $compiler""; do
7912  case $cc_temp in
7913    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7914    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7915    \-*) ;;
7916    *) break;;
7917  esac
7918done
7919cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7920
7921
7922# Only perform the check for file, if the check method requires it
7923case $deplibs_check_method in
7924file_magic*)
7925  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7926    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7927echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7928if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7929  echo $ECHO_N "(cached) $ECHO_C" >&6
7930else
7931  case $MAGIC_CMD in
7932[\\/*] |  ?:[\\/]*)
7933  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7934  ;;
7935*)
7936  lt_save_MAGIC_CMD="$MAGIC_CMD"
7937  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7938  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7939  for ac_dir in $ac_dummy; do
7940    IFS="$lt_save_ifs"
7941    test -z "$ac_dir" && ac_dir=.
7942    if test -f $ac_dir/${ac_tool_prefix}file; then
7943      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7944      if test -n "$file_magic_test_file"; then
7945        case $deplibs_check_method in
7946        "file_magic "*)
7947          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7948          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7949          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7950            $EGREP "$file_magic_regex" > /dev/null; then
7951            :
7952          else
7953            cat <<EOF 1>&2
7954
7955*** Warning: the command libtool uses to detect shared libraries,
7956*** $file_magic_cmd, produces output that libtool cannot recognize.
7957*** The result is that libtool may fail to recognize shared libraries
7958*** as such.  This will affect the creation of libtool libraries that
7959*** depend on shared libraries, but programs linked with such libtool
7960*** libraries will work regardless of this problem.  Nevertheless, you
7961*** may want to report the problem to your system manager and/or to
7962*** bug-libtool@gnu.org
7963
7964EOF
7965          fi ;;
7966        esac
7967      fi
7968      break
7969    fi
7970  done
7971  IFS="$lt_save_ifs"
7972  MAGIC_CMD="$lt_save_MAGIC_CMD"
7973  ;;
7974esac
7975fi
7976
7977MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7978if test -n "$MAGIC_CMD"; then
7979  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7980echo "${ECHO_T}$MAGIC_CMD" >&6
7981else
7982  echo "$as_me:$LINENO: result: no" >&5
7983echo "${ECHO_T}no" >&6
7984fi
7985
7986if test -z "$lt_cv_path_MAGIC_CMD"; then
7987  if test -n "$ac_tool_prefix"; then
7988    echo "$as_me:$LINENO: checking for file" >&5
7989echo $ECHO_N "checking for file... $ECHO_C" >&6
7990if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7991  echo $ECHO_N "(cached) $ECHO_C" >&6
7992else
7993  case $MAGIC_CMD in
7994[\\/*] |  ?:[\\/]*)
7995  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7996  ;;
7997*)
7998  lt_save_MAGIC_CMD="$MAGIC_CMD"
7999  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8000  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8001  for ac_dir in $ac_dummy; do
8002    IFS="$lt_save_ifs"
8003    test -z "$ac_dir" && ac_dir=.
8004    if test -f $ac_dir/file; then
8005      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8006      if test -n "$file_magic_test_file"; then
8007        case $deplibs_check_method in
8008        "file_magic "*)
8009          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8010          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8011          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8012            $EGREP "$file_magic_regex" > /dev/null; then
8013            :
8014          else
8015            cat <<EOF 1>&2
8016
8017*** Warning: the command libtool uses to detect shared libraries,
8018*** $file_magic_cmd, produces output that libtool cannot recognize.
8019*** The result is that libtool may fail to recognize shared libraries
8020*** as such.  This will affect the creation of libtool libraries that
8021*** depend on shared libraries, but programs linked with such libtool
8022*** libraries will work regardless of this problem.  Nevertheless, you
8023*** may want to report the problem to your system manager and/or to
8024*** bug-libtool@gnu.org
8025
8026EOF
8027          fi ;;
8028        esac
8029      fi
8030      break
8031    fi
8032  done
8033  IFS="$lt_save_ifs"
8034  MAGIC_CMD="$lt_save_MAGIC_CMD"
8035  ;;
8036esac
8037fi
8038
8039MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8040if test -n "$MAGIC_CMD"; then
8041  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8042echo "${ECHO_T}$MAGIC_CMD" >&6
8043else
8044  echo "$as_me:$LINENO: result: no" >&5
8045echo "${ECHO_T}no" >&6
8046fi
8047
8048  else
8049    MAGIC_CMD=:
8050  fi
8051fi
8052
8053  fi
8054  ;;
8055esac
8056
8057enable_dlopen=no
8058enable_win32_dll=no
8059
8060# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8061if test "${enable_libtool_lock+set}" = set; then
8062  enableval="$enable_libtool_lock"
8063
8064fi;
8065test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8066
8067
8068# Check whether --with-pic or --without-pic was given.
8069if test "${with_pic+set}" = set; then
8070  withval="$with_pic"
8071  pic_mode="$withval"
8072else
8073  pic_mode=default
8074fi;
8075test -z "$pic_mode" && pic_mode=default
8076
8077# Use C for the default configuration in the libtool script
8078tagname=
8079lt_save_CC="$CC"
8080ac_ext=c
8081ac_cpp='$CPP $CPPFLAGS'
8082ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8083ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8084ac_compiler_gnu=$ac_cv_c_compiler_gnu
8085
8086
8087# Source file extension for C test sources.
8088ac_ext=c
8089
8090# Object file extension for compiled C test sources.
8091objext=o
8092objext=$objext
8093
8094# Code to be used in simple compile tests
8095lt_simple_compile_test_code="int some_variable = 0;\n"
8096
8097# Code to be used in simple link tests
8098lt_simple_link_test_code='int main(){return(0);}\n'
8099
8100
8101# If no C compiler was specified, use CC.
8102LTCC=${LTCC-"$CC"}
8103
8104# If no C compiler flags were specified, use CFLAGS.
8105LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8106
8107# Allow CC to be a program name with arguments.
8108compiler=$CC
8109
8110
8111# save warnings/boilerplate of simple test code
8112ac_outfile=conftest.$ac_objext
8113printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8114eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8115_lt_compiler_boilerplate=`cat conftest.err`
8116$rm conftest*
8117
8118ac_outfile=conftest.$ac_objext
8119printf "$lt_simple_link_test_code" >conftest.$ac_ext
8120eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8121_lt_linker_boilerplate=`cat conftest.err`
8122$rm conftest*
8123
8124
8125## CAVEAT EMPTOR:
8126## There is no encapsulation within the following macros, do not change
8127## the running order or otherwise move them around unless you know exactly
8128## what you are doing...
8129
8130lt_prog_compiler_no_builtin_flag=
8131
8132if test "$GCC" = yes; then
8133  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8134
8135
8136echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8137echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8138if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8139  echo $ECHO_N "(cached) $ECHO_C" >&6
8140else
8141  lt_cv_prog_compiler_rtti_exceptions=no
8142  ac_outfile=conftest.$ac_objext
8143   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8144   lt_compiler_flag="-fno-rtti -fno-exceptions"
8145   # Insert the option either (1) after the last *FLAGS variable, or
8146   # (2) before a word containing "conftest.", or (3) at the end.
8147   # Note that $ac_compile itself does not contain backslashes and begins
8148   # with a dollar sign (not a hyphen), so the echo should work correctly.
8149   # The option is referenced via a variable to avoid confusing sed.
8150   lt_compile=`echo "$ac_compile" | $SED \
8151   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8152   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8153   -e 's:$: $lt_compiler_flag:'`
8154   (eval echo "\"\$as_me:8154: $lt_compile\"" >&5)
8155   (eval "$lt_compile" 2>conftest.err)
8156   ac_status=$?
8157   cat conftest.err >&5
8158   echo "$as_me:8158: \$? = $ac_status" >&5
8159   if (exit $ac_status) && test -s "$ac_outfile"; then
8160     # The compiler can only warn and ignore the option if not recognized
8161     # So say no if there are warnings other than the usual output.
8162     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8163     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8164     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8165       lt_cv_prog_compiler_rtti_exceptions=yes
8166     fi
8167   fi
8168   $rm conftest*
8169
8170fi
8171echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8172echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8173
8174if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8175    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8176else
8177    :
8178fi
8179
8180fi
8181
8182lt_prog_compiler_wl=
8183lt_prog_compiler_pic=
8184lt_prog_compiler_static=
8185
8186echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8187echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8188
8189  if test "$GCC" = yes; then
8190    lt_prog_compiler_wl='-Wl,'
8191    lt_prog_compiler_static='-static'
8192
8193    case $host_os in
8194      aix*)
8195      # All AIX code is PIC.
8196      if test "$host_cpu" = ia64; then
8197        # AIX 5 now supports IA64 processor
8198        lt_prog_compiler_static='-Bstatic'
8199      fi
8200      ;;
8201
8202    amigaos*)
8203      # FIXME: we need at least 68020 code to build shared libraries, but
8204      # adding the `-m68020' flag to GCC prevents building anything better,
8205      # like `-m68040'.
8206      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8207      ;;
8208
8209    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8210      # PIC is the default for these OSes.
8211      ;;
8212
8213    mingw* | pw32* | os2*)
8214      # This hack is so that the source file can tell whether it is being
8215      # built for inclusion in a dll (and should export symbols for example).
8216      lt_prog_compiler_pic='-DDLL_EXPORT'
8217      ;;
8218
8219    darwin* | rhapsody*)
8220      # PIC is the default on this platform
8221      # Common symbols not allowed in MH_DYLIB files
8222      lt_prog_compiler_pic='-fno-common'
8223      ;;
8224
8225    interix3*)
8226      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8227      # Instead, we relocate shared libraries at runtime.
8228      ;;
8229
8230    msdosdjgpp*)
8231      # Just because we use GCC doesn't mean we suddenly get shared libraries
8232      # on systems that don't support them.
8233      lt_prog_compiler_can_build_shared=no
8234      enable_shared=no
8235      ;;
8236
8237    sysv4*MP*)
8238      if test -d /usr/nec; then
8239        lt_prog_compiler_pic=-Kconform_pic
8240      fi
8241      ;;
8242
8243    hpux*)
8244      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8245      # not for PA HP-UX.
8246      case $host_cpu in
8247      hppa*64*|ia64*)
8248        # +Z the default
8249        ;;
8250      *)
8251        lt_prog_compiler_pic='-fPIC'
8252        ;;
8253      esac
8254      ;;
8255
8256    *)
8257      lt_prog_compiler_pic='-fPIC'
8258      ;;
8259    esac
8260  else
8261    # PORTME Check for flag to pass linker flags through the system compiler.
8262    case $host_os in
8263    aix*)
8264      lt_prog_compiler_wl='-Wl,'
8265      if test "$host_cpu" = ia64; then
8266        # AIX 5 now supports IA64 processor
8267        lt_prog_compiler_static='-Bstatic'
8268      else
8269        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8270      fi
8271      ;;
8272      darwin*)
8273        # PIC is the default on this platform
8274        # Common symbols not allowed in MH_DYLIB files
8275       case $cc_basename in
8276         xlc*)
8277         lt_prog_compiler_pic='-qnocommon'
8278         lt_prog_compiler_wl='-Wl,'
8279         ;;
8280       esac
8281       ;;
8282
8283    mingw* | pw32* | os2*)
8284      # This hack is so that the source file can tell whether it is being
8285      # built for inclusion in a dll (and should export symbols for example).
8286      lt_prog_compiler_pic='-DDLL_EXPORT'
8287      ;;
8288
8289    hpux9* | hpux10* | hpux11*)
8290      lt_prog_compiler_wl='-Wl,'
8291      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8292      # not for PA HP-UX.
8293      case $host_cpu in
8294      hppa*64*|ia64*)
8295        # +Z the default
8296        ;;
8297      *)
8298        lt_prog_compiler_pic='+Z'
8299        ;;
8300      esac
8301      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8302      lt_prog_compiler_static='${wl}-a ${wl}archive'
8303      ;;
8304
8305    irix5* | irix6* | nonstopux*)
8306      lt_prog_compiler_wl='-Wl,'
8307      # PIC (with -KPIC) is the default.
8308      lt_prog_compiler_static='-non_shared'
8309      ;;
8310
8311    newsos6)
8312      lt_prog_compiler_pic='-KPIC'
8313      lt_prog_compiler_static='-Bstatic'
8314      ;;
8315
8316    linux*)
8317      case $cc_basename in
8318      icc* | ecc*)
8319        lt_prog_compiler_wl='-Wl,'
8320        lt_prog_compiler_pic='-KPIC'
8321        lt_prog_compiler_static='-static'
8322        ;;
8323      pgcc* | pgf77* | pgf90* | pgf95*)
8324        # Portland Group compilers (*not* the Pentium gcc compiler,
8325        # which looks to be a dead project)
8326        lt_prog_compiler_wl='-Wl,'
8327        lt_prog_compiler_pic='-fpic'
8328        lt_prog_compiler_static='-Bstatic'
8329        ;;
8330      ccc*)
8331        lt_prog_compiler_wl='-Wl,'
8332        # All Alpha code is PIC.
8333        lt_prog_compiler_static='-non_shared'
8334        ;;
8335      esac
8336      ;;
8337
8338    osf3* | osf4* | osf5*)
8339      lt_prog_compiler_wl='-Wl,'
8340      # All OSF/1 code is PIC.
8341      lt_prog_compiler_static='-non_shared'
8342      ;;
8343
8344    solaris*)
8345      lt_prog_compiler_pic='-KPIC'
8346      lt_prog_compiler_static='-Bstatic'
8347      case $cc_basename in
8348      f77* | f90* | f95*)
8349        lt_prog_compiler_wl='-Qoption ld ';;
8350      *)
8351        lt_prog_compiler_wl='-Wl,';;
8352      esac
8353      ;;
8354
8355    sunos4*)
8356      lt_prog_compiler_wl='-Qoption ld '
8357      lt_prog_compiler_pic='-PIC'
8358      lt_prog_compiler_static='-Bstatic'
8359      ;;
8360
8361    sysv4 | sysv4.2uw2* | sysv4.3*)
8362      lt_prog_compiler_wl='-Wl,'
8363      lt_prog_compiler_pic='-KPIC'
8364      lt_prog_compiler_static='-Bstatic'
8365      ;;
8366
8367    sysv4*MP*)
8368      if test -d /usr/nec ;then
8369        lt_prog_compiler_pic='-Kconform_pic'
8370        lt_prog_compiler_static='-Bstatic'
8371      fi
8372      ;;
8373
8374    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8375      lt_prog_compiler_wl='-Wl,'
8376      lt_prog_compiler_pic='-KPIC'
8377      lt_prog_compiler_static='-Bstatic'
8378      ;;
8379
8380    unicos*)
8381      lt_prog_compiler_wl='-Wl,'
8382      lt_prog_compiler_can_build_shared=no
8383      ;;
8384
8385    uts4*)
8386      lt_prog_compiler_pic='-pic'
8387      lt_prog_compiler_static='-Bstatic'
8388      ;;
8389
8390    *)
8391      lt_prog_compiler_can_build_shared=no
8392      ;;
8393    esac
8394  fi
8395
8396echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8397echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8398
8399#
8400# Check to make sure the PIC flag actually works.
8401#
8402if test -n "$lt_prog_compiler_pic"; then
8403
8404echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8405echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8406if test "${lt_prog_compiler_pic_works+set}" = set; then
8407  echo $ECHO_N "(cached) $ECHO_C" >&6
8408else
8409  lt_prog_compiler_pic_works=no
8410  ac_outfile=conftest.$ac_objext
8411   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8412   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8413   # Insert the option either (1) after the last *FLAGS variable, or
8414   # (2) before a word containing "conftest.", or (3) at the end.
8415   # Note that $ac_compile itself does not contain backslashes and begins
8416   # with a dollar sign (not a hyphen), so the echo should work correctly.
8417   # The option is referenced via a variable to avoid confusing sed.
8418   lt_compile=`echo "$ac_compile" | $SED \
8419   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8420   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8421   -e 's:$: $lt_compiler_flag:'`
8422   (eval echo "\"\$as_me:8422: $lt_compile\"" >&5)
8423   (eval "$lt_compile" 2>conftest.err)
8424   ac_status=$?
8425   cat conftest.err >&5
8426   echo "$as_me:8426: \$? = $ac_status" >&5
8427   if (exit $ac_status) && test -s "$ac_outfile"; then
8428     # The compiler can only warn and ignore the option if not recognized
8429     # So say no if there are warnings other than the usual output.
8430     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8431     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8432     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8433       lt_prog_compiler_pic_works=yes
8434     fi
8435   fi
8436   $rm conftest*
8437
8438fi
8439echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8440echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8441
8442if test x"$lt_prog_compiler_pic_works" = xyes; then
8443    case $lt_prog_compiler_pic in
8444     "" | " "*) ;;
8445     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8446     esac
8447else
8448    lt_prog_compiler_pic=
8449     lt_prog_compiler_can_build_shared=no
8450fi
8451
8452fi
8453case $host_os in
8454  # For platforms which do not support PIC, -DPIC is meaningless:
8455  *djgpp*)
8456    lt_prog_compiler_pic=
8457    ;;
8458  *)
8459    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8460    ;;
8461esac
8462
8463#
8464# Check to make sure the static flag actually works.
8465#
8466wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8467echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8468echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8469if test "${lt_prog_compiler_static_works+set}" = set; then
8470  echo $ECHO_N "(cached) $ECHO_C" >&6
8471else
8472  lt_prog_compiler_static_works=no
8473   save_LDFLAGS="$LDFLAGS"
8474   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8475   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8476   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8477     # The linker can only warn and ignore the option if not recognized
8478     # So say no if there are warnings
8479     if test -s conftest.err; then
8480       # Append any errors to the config.log.
8481       cat conftest.err 1>&5
8482       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8483       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8484       if diff conftest.exp conftest.er2 >/dev/null; then
8485         lt_prog_compiler_static_works=yes
8486       fi
8487     else
8488       lt_prog_compiler_static_works=yes
8489     fi
8490   fi
8491   $rm conftest*
8492   LDFLAGS="$save_LDFLAGS"
8493
8494fi
8495echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8496echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8497
8498if test x"$lt_prog_compiler_static_works" = xyes; then
8499    :
8500else
8501    lt_prog_compiler_static=
8502fi
8503
8504
8505echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8506echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8507if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8508  echo $ECHO_N "(cached) $ECHO_C" >&6
8509else
8510  lt_cv_prog_compiler_c_o=no
8511   $rm -r conftest 2>/dev/null
8512   mkdir conftest
8513   cd conftest
8514   mkdir out
8515   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8516
8517   lt_compiler_flag="-o out/conftest2.$ac_objext"
8518   # Insert the option either (1) after the last *FLAGS variable, or
8519   # (2) before a word containing "conftest.", or (3) at the end.
8520   # Note that $ac_compile itself does not contain backslashes and begins
8521   # with a dollar sign (not a hyphen), so the echo should work correctly.
8522   lt_compile=`echo "$ac_compile" | $SED \
8523   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8524   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8525   -e 's:$: $lt_compiler_flag:'`
8526   (eval echo "\"\$as_me:8526: $lt_compile\"" >&5)
8527   (eval "$lt_compile" 2>out/conftest.err)
8528   ac_status=$?
8529   cat out/conftest.err >&5
8530   echo "$as_me:8530: \$? = $ac_status" >&5
8531   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8532   then
8533     # The compiler can only warn and ignore the option if not recognized
8534     # So say no if there are warnings
8535     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8536     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8537     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8538       lt_cv_prog_compiler_c_o=yes
8539     fi
8540   fi
8541   chmod u+w . 2>&5
8542   $rm conftest*
8543   # SGI C++ compiler will create directory out/ii_files/ for
8544   # template instantiation
8545   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8546   $rm out/* && rmdir out
8547   cd ..
8548   rmdir conftest
8549   $rm conftest*
8550
8551fi
8552echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8553echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8554
8555
8556hard_links="nottested"
8557if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8558  # do not overwrite the value of need_locks provided by the user
8559  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8560echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8561  hard_links=yes
8562  $rm conftest*
8563  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8564  touch conftest.a
8565  ln conftest.a conftest.b 2>&5 || hard_links=no
8566  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8567  echo "$as_me:$LINENO: result: $hard_links" >&5
8568echo "${ECHO_T}$hard_links" >&6
8569  if test "$hard_links" = no; then
8570    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8571echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8572    need_locks=warn
8573  fi
8574else
8575  need_locks=no
8576fi
8577
8578echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8579echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8580
8581  runpath_var=
8582  allow_undefined_flag=
8583  enable_shared_with_static_runtimes=no
8584  archive_cmds=
8585  archive_expsym_cmds=
8586  old_archive_From_new_cmds=
8587  old_archive_from_expsyms_cmds=
8588  export_dynamic_flag_spec=
8589  whole_archive_flag_spec=
8590  thread_safe_flag_spec=
8591  hardcode_libdir_flag_spec=
8592  hardcode_libdir_flag_spec_ld=
8593  hardcode_libdir_separator=
8594  hardcode_direct=no
8595  hardcode_minus_L=no
8596  hardcode_shlibpath_var=unsupported
8597  link_all_deplibs=unknown
8598  hardcode_automatic=no
8599  module_cmds=
8600  module_expsym_cmds=
8601  always_export_symbols=no
8602  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8603  # include_expsyms should be a list of space-separated symbols to be *always*
8604  # included in the symbol list
8605  include_expsyms=
8606  # exclude_expsyms can be an extended regexp of symbols to exclude
8607  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8608  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8609  # as well as any symbol that contains `d'.
8610  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8611  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8612  # platforms (ab)use it in PIC code, but their linkers get confused if
8613  # the symbol is explicitly referenced.  Since portable code cannot
8614  # rely on this symbol name, it's probably fine to never include it in
8615  # preloaded symbol tables.
8616  extract_expsyms_cmds=
8617  # Just being paranoid about ensuring that cc_basename is set.
8618  for cc_temp in $compiler""; do
8619  case $cc_temp in
8620    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8621    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8622    \-*) ;;
8623    *) break;;
8624  esac
8625done
8626cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8627
8628  case $host_os in
8629  cygwin* | mingw* | pw32*)
8630    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8631    # When not using gcc, we currently assume that we are using
8632    # Microsoft Visual C++.
8633    if test "$GCC" != yes; then
8634      with_gnu_ld=no
8635    fi
8636    ;;
8637  interix*)
8638    # we just hope/assume this is gcc and not c89 (= MSVC++)
8639    with_gnu_ld=yes
8640    ;;
8641  openbsd*)
8642    with_gnu_ld=no
8643    ;;
8644  esac
8645
8646  ld_shlibs=yes
8647  if test "$with_gnu_ld" = yes; then
8648    # If archive_cmds runs LD, not CC, wlarc should be empty
8649    wlarc='${wl}'
8650
8651    # Set some defaults for GNU ld with shared library support. These
8652    # are reset later if shared libraries are not supported. Putting them
8653    # here allows them to be overridden if necessary.
8654    runpath_var=LD_RUN_PATH
8655    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8656    export_dynamic_flag_spec='${wl}--export-dynamic'
8657    # ancient GNU ld didn't support --whole-archive et. al.
8658    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8659        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8660      else
8661        whole_archive_flag_spec=
8662    fi
8663    supports_anon_versioning=no
8664    case `$LD -v 2>/dev/null` in
8665      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8666      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8667      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8668      *\ 2.11.*) ;; # other 2.11 versions
8669      *) supports_anon_versioning=yes ;;
8670    esac
8671
8672    # See if GNU ld supports shared libraries.
8673    case $host_os in
8674    aix3* | aix4* | aix5*)
8675      # On AIX/PPC, the GNU linker is very broken
8676      if test "$host_cpu" != ia64; then
8677        ld_shlibs=no
8678        cat <<EOF 1>&2
8679
8680*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8681*** to be unable to reliably create shared libraries on AIX.
8682*** Therefore, libtool is disabling shared libraries support.  If you
8683*** really care for shared libraries, you may want to modify your PATH
8684*** so that a non-GNU linker is found, and then restart.
8685
8686EOF
8687      fi
8688      ;;
8689
8690    amigaos*)
8691      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)'
8692      hardcode_libdir_flag_spec='-L$libdir'
8693      hardcode_minus_L=yes
8694
8695      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8696      # that the semantics of dynamic libraries on AmigaOS, at least up
8697      # to version 4, is to share data among multiple programs linked
8698      # with the same dynamic library.  Since this doesn't match the
8699      # behavior of shared libraries on other platforms, we can't use
8700      # them.
8701      ld_shlibs=no
8702      ;;
8703
8704    beos*)
8705      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8706        allow_undefined_flag=unsupported
8707        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8708        # support --undefined.  This deserves some investigation.  FIXME
8709        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8710      else
8711        ld_shlibs=no
8712      fi
8713      ;;
8714
8715    cygwin* | mingw* | pw32*)
8716      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8717      # as there is no search path for DLLs.
8718      hardcode_libdir_flag_spec='-L$libdir'
8719      allow_undefined_flag=unsupported
8720      always_export_symbols=no
8721      enable_shared_with_static_runtimes=yes
8722      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8723
8724      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8725        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8726        # If the export-symbols file already is a .def file (1st line
8727        # is EXPORTS), use it as is; otherwise, prepend...
8728        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8729          cp $export_symbols $output_objdir/$soname.def;
8730        else
8731          echo EXPORTS > $output_objdir/$soname.def;
8732          cat $export_symbols >> $output_objdir/$soname.def;
8733        fi~
8734        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8735      else
8736        ld_shlibs=no
8737      fi
8738      ;;
8739
8740    interix3*)
8741      hardcode_direct=no
8742      hardcode_shlibpath_var=no
8743      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8744      export_dynamic_flag_spec='${wl}-E'
8745      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8746      # Instead, shared libraries are loaded at an image base (0x10000000 by
8747      # default) and relocated if they conflict, which is a slow very memory
8748      # consuming and fragmenting process.  To avoid this, we pick a random,
8749      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8750      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8751      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8752      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'
8753      ;;
8754
8755    linux*)
8756      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8757        tmp_addflag=
8758        case $cc_basename,$host_cpu in
8759        pgcc*)                          # Portland Group C compiler
8760          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'
8761          tmp_addflag=' $pic_flag'
8762          ;;
8763        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8764          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'
8765          tmp_addflag=' $pic_flag -Mnomain' ;;
8766        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8767          tmp_addflag=' -i_dynamic' ;;
8768        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8769          tmp_addflag=' -i_dynamic -nofor_main' ;;
8770        ifc* | ifort*)                  # Intel Fortran compiler
8771          tmp_addflag=' -nofor_main' ;;
8772        esac
8773        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8774
8775        if test $supports_anon_versioning = yes; then
8776          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8777  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8778  $echo "local: *; };" >> $output_objdir/$libname.ver~
8779          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8780        fi
8781      else
8782        ld_shlibs=no
8783      fi
8784      ;;
8785
8786    netbsd*)
8787      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8788        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8789        wlarc=
8790      else
8791        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8792        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8793      fi
8794      ;;
8795
8796    solaris*)
8797      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8798        ld_shlibs=no
8799        cat <<EOF 1>&2
8800
8801*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8802*** create shared libraries on Solaris systems.  Therefore, libtool
8803*** is disabling shared libraries support.  We urge you to upgrade GNU
8804*** binutils to release 2.9.1 or newer.  Another option is to modify
8805*** your PATH or compiler configuration so that the native linker is
8806*** used, and then restart.
8807
8808EOF
8809      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8810        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8811        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8812      else
8813        ld_shlibs=no
8814      fi
8815      ;;
8816
8817    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8818      case `$LD -v 2>&1` in
8819        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8820        ld_shlibs=no
8821        cat <<_LT_EOF 1>&2
8822
8823*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8824*** reliably create shared libraries on SCO systems.  Therefore, libtool
8825*** is disabling shared libraries support.  We urge you to upgrade GNU
8826*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8827*** your PATH or compiler configuration so that the native linker is
8828*** used, and then restart.
8829
8830_LT_EOF
8831        ;;
8832        *)
8833          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8834            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8835            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8836            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8837          else
8838            ld_shlibs=no
8839          fi
8840        ;;
8841      esac
8842      ;;
8843
8844    sunos4*)
8845      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8846      wlarc=
8847      hardcode_direct=yes
8848      hardcode_shlibpath_var=no
8849      ;;
8850
8851    *)
8852      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8853        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8854        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8855      else
8856        ld_shlibs=no
8857      fi
8858      ;;
8859    esac
8860
8861    if test "$ld_shlibs" = no; then
8862      runpath_var=
8863      hardcode_libdir_flag_spec=
8864      export_dynamic_flag_spec=
8865      whole_archive_flag_spec=
8866    fi
8867  else
8868    # PORTME fill in a description of your system's linker (not GNU ld)
8869    case $host_os in
8870    aix3*)
8871      allow_undefined_flag=unsupported
8872      always_export_symbols=yes
8873      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'
8874      # Note: this linker hardcodes the directories in LIBPATH if there
8875      # are no directories specified by -L.
8876      hardcode_minus_L=yes
8877      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8878        # Neither direct hardcoding nor static linking is supported with a
8879        # broken collect2.
8880        hardcode_direct=unsupported
8881      fi
8882      ;;
8883
8884    aix4* | aix5*)
8885      if test "$host_cpu" = ia64; then
8886        # On IA64, the linker does run time linking by default, so we don't
8887        # have to do anything special.
8888        aix_use_runtimelinking=no
8889        exp_sym_flag='-Bexport'
8890        no_entry_flag=""
8891      else
8892        # If we're using GNU nm, then we don't want the "-C" option.
8893        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8894        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8895          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'
8896        else
8897          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'
8898        fi
8899        aix_use_runtimelinking=no
8900
8901        # Test if we are trying to use run time linking or normal
8902        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8903        # need to do runtime linking.
8904        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8905          for ld_flag in $LDFLAGS; do
8906          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8907            aix_use_runtimelinking=yes
8908            break
8909          fi
8910          done
8911          ;;
8912        esac
8913
8914        exp_sym_flag='-bexport'
8915        no_entry_flag='-bnoentry'
8916      fi
8917
8918      # When large executables or shared objects are built, AIX ld can
8919      # have problems creating the table of contents.  If linking a library
8920      # or program results in "error TOC overflow" add -mminimal-toc to
8921      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8922      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8923
8924      archive_cmds=''
8925      hardcode_direct=yes
8926      hardcode_libdir_separator=':'
8927      link_all_deplibs=yes
8928
8929      if test "$GCC" = yes; then
8930        case $host_os in aix4.[012]|aix4.[012].*)
8931        # We only want to do this on AIX 4.2 and lower, the check
8932        # below for broken collect2 doesn't work under 4.3+
8933          collect2name=`${CC} -print-prog-name=collect2`
8934          if test -f "$collect2name" && \
8935           strings "$collect2name" | grep resolve_lib_name >/dev/null
8936          then
8937          # We have reworked collect2
8938          hardcode_direct=yes
8939          else
8940          # We have old collect2
8941          hardcode_direct=unsupported
8942          # It fails to find uninstalled libraries when the uninstalled
8943          # path is not listed in the libpath.  Setting hardcode_minus_L
8944          # to unsupported forces relinking
8945          hardcode_minus_L=yes
8946          hardcode_libdir_flag_spec='-L$libdir'
8947          hardcode_libdir_separator=
8948          fi
8949          ;;
8950        esac
8951        shared_flag='-shared'
8952        if test "$aix_use_runtimelinking" = yes; then
8953          shared_flag="$shared_flag "'${wl}-G'
8954        fi
8955      else
8956        # not using gcc
8957        if test "$host_cpu" = ia64; then
8958        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8959        # chokes on -Wl,-G. The following line is correct:
8960          shared_flag='-G'
8961        else
8962          if test "$aix_use_runtimelinking" = yes; then
8963            shared_flag='${wl}-G'
8964          else
8965            shared_flag='${wl}-bM:SRE'
8966          fi
8967        fi
8968      fi
8969
8970      # It seems that -bexpall does not export symbols beginning with
8971      # underscore (_), so it is better to generate a list of symbols to export.
8972      always_export_symbols=yes
8973      if test "$aix_use_runtimelinking" = yes; then
8974        # Warning - without using the other runtime loading flags (-brtl),
8975        # -berok will link without error, but may produce a broken library.
8976        allow_undefined_flag='-berok'
8977       # Determine the default libpath from the value encoded in an empty executable.
8978       cat >conftest.$ac_ext <<_ACEOF
8979/* confdefs.h.  */
8980_ACEOF
8981cat confdefs.h >>conftest.$ac_ext
8982cat >>conftest.$ac_ext <<_ACEOF
8983/* end confdefs.h.  */
8984
8985int
8986main ()
8987{
8988
8989  ;
8990  return 0;
8991}
8992_ACEOF
8993rm -f conftest.$ac_objext conftest$ac_exeext
8994if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8995  (eval $ac_link) 2>conftest.er1
8996  ac_status=$?
8997  grep -v '^ *+' conftest.er1 >conftest.err
8998  rm -f conftest.er1
8999  cat conftest.err >&5
9000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001  (exit $ac_status); } &&
9002         { ac_try='test -z "$ac_c_werror_flag"
9003                         || test ! -s conftest.err'
9004  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9005  (eval $ac_try) 2>&5
9006  ac_status=$?
9007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008  (exit $ac_status); }; } &&
9009         { ac_try='test -s conftest$ac_exeext'
9010  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9011  (eval $ac_try) 2>&5
9012  ac_status=$?
9013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9014  (exit $ac_status); }; }; then
9015
9016aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9017}'`
9018# Check for a 64-bit object if we didn't find anything.
9019if 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; }
9020}'`; fi
9021else
9022  echo "$as_me: failed program was:" >&5
9023sed 's/^/| /' conftest.$ac_ext >&5
9024
9025fi
9026rm -f conftest.err conftest.$ac_objext \
9027      conftest$ac_exeext conftest.$ac_ext
9028if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9029
9030       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9031        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"
9032       else
9033        if test "$host_cpu" = ia64; then
9034          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9035          allow_undefined_flag="-z nodefs"
9036          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"
9037        else
9038         # Determine the default libpath from the value encoded in an empty executable.
9039         cat >conftest.$ac_ext <<_ACEOF
9040/* confdefs.h.  */
9041_ACEOF
9042cat confdefs.h >>conftest.$ac_ext
9043cat >>conftest.$ac_ext <<_ACEOF
9044/* end confdefs.h.  */
9045
9046int
9047main ()
9048{
9049
9050  ;
9051  return 0;
9052}
9053_ACEOF
9054rm -f conftest.$ac_objext conftest$ac_exeext
9055if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9056  (eval $ac_link) 2>conftest.er1
9057  ac_status=$?
9058  grep -v '^ *+' conftest.er1 >conftest.err
9059  rm -f conftest.er1
9060  cat conftest.err >&5
9061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9062  (exit $ac_status); } &&
9063         { ac_try='test -z "$ac_c_werror_flag"
9064                         || test ! -s conftest.err'
9065  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9066  (eval $ac_try) 2>&5
9067  ac_status=$?
9068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069  (exit $ac_status); }; } &&
9070         { ac_try='test -s conftest$ac_exeext'
9071  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9072  (eval $ac_try) 2>&5
9073  ac_status=$?
9074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075  (exit $ac_status); }; }; then
9076
9077aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9078}'`
9079# Check for a 64-bit object if we didn't find anything.
9080if 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; }
9081}'`; fi
9082else
9083  echo "$as_me: failed program was:" >&5
9084sed 's/^/| /' conftest.$ac_ext >&5
9085
9086fi
9087rm -f conftest.err conftest.$ac_objext \
9088      conftest$ac_exeext conftest.$ac_ext
9089if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9090
9091         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9092          # Warning - without using the other run time loading flags,
9093          # -berok will link without error, but may produce a broken library.
9094          no_undefined_flag=' ${wl}-bernotok'
9095          allow_undefined_flag=' ${wl}-berok'
9096          # Exported symbols can be pulled into shared objects from archives
9097          whole_archive_flag_spec='$convenience'
9098          archive_cmds_need_lc=yes
9099          # This is similar to how AIX traditionally builds its shared libraries.
9100          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'
9101        fi
9102      fi
9103      ;;
9104
9105    amigaos*)
9106      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)'
9107      hardcode_libdir_flag_spec='-L$libdir'
9108      hardcode_minus_L=yes
9109      # see comment about different semantics on the GNU ld section
9110      ld_shlibs=no
9111      ;;
9112
9113    bsdi[45]*)
9114      export_dynamic_flag_spec=-rdynamic
9115      ;;
9116
9117    cygwin* | mingw* | pw32*)
9118      # When not using gcc, we currently assume that we are using
9119      # Microsoft Visual C++.
9120      # hardcode_libdir_flag_spec is actually meaningless, as there is
9121      # no search path for DLLs.
9122      hardcode_libdir_flag_spec=' '
9123      allow_undefined_flag=unsupported
9124      # Tell ltmain to make .lib files, not .a files.
9125      libext=lib
9126      # Tell ltmain to make .dll files, not .so files.
9127      shrext_cmds=".dll"
9128      # FIXME: Setting linknames here is a bad hack.
9129      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9130      # The linker will automatically build a .lib file if we build a DLL.
9131      old_archive_From_new_cmds='true'
9132      # FIXME: Should let the user specify the lib program.
9133      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9134      fix_srcfile_path='`cygpath -w "$srcfile"`'
9135      enable_shared_with_static_runtimes=yes
9136      ;;
9137
9138    darwin* | rhapsody*)
9139      case $host_os in
9140        rhapsody* | darwin1.[012])
9141         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9142         ;;
9143       *) # Darwin 1.3 on
9144         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9145           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9146         else
9147           case ${MACOSX_DEPLOYMENT_TARGET} in
9148             10.[012])
9149               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9150               ;;
9151             10.*)
9152               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9153               ;;
9154           esac
9155         fi
9156         ;;
9157      esac
9158      archive_cmds_need_lc=no
9159      hardcode_direct=no
9160      hardcode_automatic=yes
9161      hardcode_shlibpath_var=unsupported
9162      whole_archive_flag_spec=''
9163      link_all_deplibs=yes
9164    if test "$GCC" = yes ; then
9165        output_verbose_link_cmd='echo'
9166        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9167      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9168      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9169      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}'
9170      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}'
9171    else
9172      case $cc_basename in
9173        xlc*)
9174         output_verbose_link_cmd='echo'
9175         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9176         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9177          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9178         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}'
9179          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}'
9180          ;;
9181       *)
9182         ld_shlibs=no
9183          ;;
9184      esac
9185    fi
9186      ;;
9187
9188    dgux*)
9189      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9190      hardcode_libdir_flag_spec='-L$libdir'
9191      hardcode_shlibpath_var=no
9192      ;;
9193
9194    freebsd1*)
9195      ld_shlibs=no
9196      ;;
9197
9198    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9199    # support.  Future versions do this automatically, but an explicit c++rt0.o
9200    # does not break anything, and helps significantly (at the cost of a little
9201    # extra space).
9202    freebsd2.2*)
9203      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9204      hardcode_libdir_flag_spec='-R$libdir'
9205      hardcode_direct=yes
9206      hardcode_shlibpath_var=no
9207      ;;
9208
9209    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9210    freebsd2*)
9211      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9212      hardcode_direct=yes
9213      hardcode_minus_L=yes
9214      hardcode_shlibpath_var=no
9215      ;;
9216
9217    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9218    freebsd* | kfreebsd*-gnu | dragonfly*)
9219      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9220      hardcode_libdir_flag_spec='-R$libdir'
9221      hardcode_direct=yes
9222      hardcode_shlibpath_var=no
9223      ;;
9224
9225    hpux9*)
9226      if test "$GCC" = yes; then
9227        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'
9228      else
9229        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'
9230      fi
9231      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9232      hardcode_libdir_separator=:
9233      hardcode_direct=yes
9234
9235      # hardcode_minus_L: Not really in the search PATH,
9236      # but as the default location of the library.
9237      hardcode_minus_L=yes
9238      export_dynamic_flag_spec='${wl}-E'
9239      ;;
9240
9241    hpux10*)
9242      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9243        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9244      else
9245        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9246      fi
9247      if test "$with_gnu_ld" = no; then
9248        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9249        hardcode_libdir_separator=:
9250
9251        hardcode_direct=yes
9252        export_dynamic_flag_spec='${wl}-E'
9253
9254        # hardcode_minus_L: Not really in the search PATH,
9255        # but as the default location of the library.
9256        hardcode_minus_L=yes
9257      fi
9258      ;;
9259
9260    hpux11*)
9261      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9262        case $host_cpu in
9263        hppa*64*)
9264          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9265          ;;
9266        ia64*)
9267          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9268          ;;
9269        *)
9270          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9271          ;;
9272        esac
9273      else
9274        case $host_cpu in
9275        hppa*64*)
9276          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9277          ;;
9278        ia64*)
9279          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9280          ;;
9281        *)
9282          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9283          ;;
9284        esac
9285      fi
9286      if test "$with_gnu_ld" = no; then
9287        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9288        hardcode_libdir_separator=:
9289
9290        case $host_cpu in
9291        hppa*64*|ia64*)
9292          hardcode_libdir_flag_spec_ld='+b $libdir'
9293          hardcode_direct=no
9294          hardcode_shlibpath_var=no
9295          ;;
9296        *)
9297          hardcode_direct=yes
9298          export_dynamic_flag_spec='${wl}-E'
9299
9300          # hardcode_minus_L: Not really in the search PATH,
9301          # but as the default location of the library.
9302          hardcode_minus_L=yes
9303          ;;
9304        esac
9305      fi
9306      ;;
9307
9308    irix5* | irix6* | nonstopux*)
9309      if test "$GCC" = yes; then
9310        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'
9311      else
9312        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'
9313        hardcode_libdir_flag_spec_ld='-rpath $libdir'
9314      fi
9315      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9316      hardcode_libdir_separator=:
9317      link_all_deplibs=yes
9318      ;;
9319
9320    netbsd*)
9321      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9322        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9323      else
9324        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9325      fi
9326      hardcode_libdir_flag_spec='-R$libdir'
9327      hardcode_direct=yes
9328      hardcode_shlibpath_var=no
9329      ;;
9330
9331    newsos6)
9332      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9333      hardcode_direct=yes
9334      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9335      hardcode_libdir_separator=:
9336      hardcode_shlibpath_var=no
9337      ;;
9338
9339    openbsd*)
9340      hardcode_direct=yes
9341      hardcode_shlibpath_var=no
9342      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9343        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9344        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9345        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9346        export_dynamic_flag_spec='${wl}-E'
9347      else
9348       case $host_os in
9349         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9350           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9351           hardcode_libdir_flag_spec='-R$libdir'
9352           ;;
9353         *)
9354           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9355           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9356           ;;
9357       esac
9358      fi
9359      ;;
9360
9361    os2*)
9362      hardcode_libdir_flag_spec='-L$libdir'
9363      hardcode_minus_L=yes
9364      allow_undefined_flag=unsupported
9365      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'
9366      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9367      ;;
9368
9369    osf3*)
9370      if test "$GCC" = yes; then
9371        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9372        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'
9373      else
9374        allow_undefined_flag=' -expect_unresolved \*'
9375        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'
9376      fi
9377      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9378      hardcode_libdir_separator=:
9379      ;;
9380
9381    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9382      if test "$GCC" = yes; then
9383        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9384        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'
9385        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9386      else
9387        allow_undefined_flag=' -expect_unresolved \*'
9388        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'
9389        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9390        $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'
9391
9392        # Both c and cxx compiler support -rpath directly
9393        hardcode_libdir_flag_spec='-rpath $libdir'
9394      fi
9395      hardcode_libdir_separator=:
9396      ;;
9397
9398    solaris*)
9399      no_undefined_flag=' -z text'
9400      if test "$GCC" = yes; then
9401        wlarc='${wl}'
9402        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9403        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9404          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9405      else
9406        wlarc=''
9407        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9408        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9409        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9410      fi
9411      hardcode_libdir_flag_spec='-R$libdir'
9412      hardcode_shlibpath_var=no
9413      case $host_os in
9414      solaris2.[0-5] | solaris2.[0-5].*) ;;
9415      *)
9416        # The compiler driver will combine linker options so we
9417        # cannot just pass the convience library names through
9418        # without $wl, iff we do not link with $LD.
9419        # Luckily, gcc supports the same syntax we need for Sun Studio.
9420        # Supported since Solaris 2.6 (maybe 2.5.1?)
9421        case $wlarc in
9422        '')
9423          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9424        *)
9425          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' ;;
9426        esac ;;
9427      esac
9428      link_all_deplibs=yes
9429      ;;
9430
9431    sunos4*)
9432      if test "x$host_vendor" = xsequent; then
9433        # Use $CC to link under sequent, because it throws in some extra .o
9434        # files that make .init and .fini sections work.
9435        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9436      else
9437        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9438      fi
9439      hardcode_libdir_flag_spec='-L$libdir'
9440      hardcode_direct=yes
9441      hardcode_minus_L=yes
9442      hardcode_shlibpath_var=no
9443      ;;
9444
9445    sysv4)
9446      case $host_vendor in
9447        sni)
9448          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9449          hardcode_direct=yes # is this really true???
9450        ;;
9451        siemens)
9452          ## LD is ld it makes a PLAMLIB
9453          ## CC just makes a GrossModule.
9454          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9455          reload_cmds='$CC -r -o $output$reload_objs'
9456          hardcode_direct=no
9457        ;;
9458        motorola)
9459          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9460          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9461        ;;
9462      esac
9463      runpath_var='LD_RUN_PATH'
9464      hardcode_shlibpath_var=no
9465      ;;
9466
9467    sysv4.3*)
9468      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9469      hardcode_shlibpath_var=no
9470      export_dynamic_flag_spec='-Bexport'
9471      ;;
9472
9473    sysv4*MP*)
9474      if test -d /usr/nec; then
9475        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9476        hardcode_shlibpath_var=no
9477        runpath_var=LD_RUN_PATH
9478        hardcode_runpath_var=yes
9479        ld_shlibs=yes
9480      fi
9481      ;;
9482
9483    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9484      no_undefined_flag='${wl}-z,text'
9485      archive_cmds_need_lc=no
9486      hardcode_shlibpath_var=no
9487      runpath_var='LD_RUN_PATH'
9488
9489      if test "$GCC" = yes; then
9490        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9491        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9492      else
9493        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9494        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9495      fi
9496      ;;
9497
9498    sysv5* | sco3.2v5* | sco5v6*)
9499      # Note: We can NOT use -z defs as we might desire, because we do not
9500      # link with -lc, and that would cause any symbols used from libc to
9501      # always be unresolved, which means just about no library would
9502      # ever link correctly.  If we're not using GNU ld we use -z text
9503      # though, which does catch some bad symbols but isn't as heavy-handed
9504      # as -z defs.
9505      no_undefined_flag='${wl}-z,text'
9506      allow_undefined_flag='${wl}-z,nodefs'
9507      archive_cmds_need_lc=no
9508      hardcode_shlibpath_var=no
9509      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9510      hardcode_libdir_separator=':'
9511      link_all_deplibs=yes
9512      export_dynamic_flag_spec='${wl}-Bexport'
9513      runpath_var='LD_RUN_PATH'
9514
9515      if test "$GCC" = yes; then
9516        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9517        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9518      else
9519        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9520        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9521      fi
9522      ;;
9523
9524    uts4*)
9525      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9526      hardcode_libdir_flag_spec='-L$libdir'
9527      hardcode_shlibpath_var=no
9528      ;;
9529
9530    *)
9531      ld_shlibs=no
9532      ;;
9533    esac
9534  fi
9535
9536echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9537echo "${ECHO_T}$ld_shlibs" >&6
9538test "$ld_shlibs" = no && can_build_shared=no
9539
9540#
9541# Do we need to explicitly link libc?
9542#
9543case "x$archive_cmds_need_lc" in
9544x|xyes)
9545  # Assume -lc should be added
9546  archive_cmds_need_lc=yes
9547
9548  if test "$enable_shared" = yes && test "$GCC" = yes; then
9549    case $archive_cmds in
9550    *'~'*)
9551      # FIXME: we may have to deal with multi-command sequences.
9552      ;;
9553    '$CC '*)
9554      # Test whether the compiler implicitly links with -lc since on some
9555      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9556      # to ld, don't add -lc before -lgcc.
9557      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9558echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9559      $rm conftest*
9560      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9561
9562      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9563  (eval $ac_compile) 2>&5
9564  ac_status=$?
9565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9566  (exit $ac_status); } 2>conftest.err; then
9567        soname=conftest
9568        lib=conftest
9569        libobjs=conftest.$ac_objext
9570        deplibs=
9571        wl=$lt_prog_compiler_wl
9572        pic_flag=$lt_prog_compiler_pic
9573        compiler_flags=-v
9574        linker_flags=-v
9575        verstring=
9576        output_objdir=.
9577        libname=conftest
9578        lt_save_allow_undefined_flag=$allow_undefined_flag
9579        allow_undefined_flag=
9580        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9581  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9582  ac_status=$?
9583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9584  (exit $ac_status); }
9585        then
9586          archive_cmds_need_lc=no
9587        else
9588          archive_cmds_need_lc=yes
9589        fi
9590        allow_undefined_flag=$lt_save_allow_undefined_flag
9591      else
9592        cat conftest.err 1>&5
9593      fi
9594      $rm conftest*
9595      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9596echo "${ECHO_T}$archive_cmds_need_lc" >&6
9597      ;;
9598    esac
9599  fi
9600  ;;
9601esac
9602
9603echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9604echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9605library_names_spec=
9606libname_spec='lib$name'
9607soname_spec=
9608shrext_cmds=".so"
9609postinstall_cmds=
9610postuninstall_cmds=
9611finish_cmds=
9612finish_eval=
9613shlibpath_var=
9614shlibpath_overrides_runpath=unknown
9615version_type=none
9616dynamic_linker="$host_os ld.so"
9617sys_lib_dlsearch_path_spec="/lib /usr/lib"
9618if test "$GCC" = yes; then
9619  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9620  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9621    # if the path contains ";" then we assume it to be the separator
9622    # otherwise default to the standard path separator (i.e. ":") - it is
9623    # assumed that no part of a normal pathname contains ";" but that should
9624    # okay in the real world where ";" in dirpaths is itself problematic.
9625    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9626  else
9627    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9628  fi
9629else
9630  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9631fi
9632need_lib_prefix=unknown
9633hardcode_into_libs=no
9634
9635# when you set need_version to no, make sure it does not cause -set_version
9636# flags to be left without arguments
9637need_version=unknown
9638
9639case $host_os in
9640aix3*)
9641  version_type=linux
9642  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9643  shlibpath_var=LIBPATH
9644
9645  # AIX 3 has no versioning support, so we append a major version to the name.
9646  soname_spec='${libname}${release}${shared_ext}$major'
9647  ;;
9648
9649aix4* | aix5*)
9650  version_type=linux
9651  need_lib_prefix=no
9652  need_version=no
9653  hardcode_into_libs=yes
9654  if test "$host_cpu" = ia64; then
9655    # AIX 5 supports IA64
9656    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9657    shlibpath_var=LD_LIBRARY_PATH
9658  else
9659    # With GCC up to 2.95.x, collect2 would create an import file
9660    # for dependence libraries.  The import file would start with
9661    # the line `#! .'.  This would cause the generated library to
9662    # depend on `.', always an invalid library.  This was fixed in
9663    # development snapshots of GCC prior to 3.0.
9664    case $host_os in
9665      aix4 | aix4.[01] | aix4.[01].*)
9666      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9667           echo ' yes '
9668           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9669        :
9670      else
9671        can_build_shared=no
9672      fi
9673      ;;
9674    esac
9675    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9676    # soname into executable. Probably we can add versioning support to
9677    # collect2, so additional links can be useful in future.
9678    if test "$aix_use_runtimelinking" = yes; then
9679      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9680      # instead of lib<name>.a to let people know that these are not
9681      # typical AIX shared libraries.
9682      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9683    else
9684      # We preserve .a as extension for shared libraries through AIX4.2
9685      # and later when we are not doing run time linking.
9686      library_names_spec='${libname}${release}.a $libname.a'
9687      soname_spec='${libname}${release}${shared_ext}$major'
9688    fi
9689    shlibpath_var=LIBPATH
9690  fi
9691  ;;
9692
9693amigaos*)
9694  library_names_spec='$libname.ixlibrary $libname.a'
9695  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9696  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'
9697  ;;
9698
9699beos*)
9700  library_names_spec='${libname}${shared_ext}'
9701  dynamic_linker="$host_os ld.so"
9702  shlibpath_var=LIBRARY_PATH
9703  ;;
9704
9705bsdi[45]*)
9706  version_type=linux
9707  need_version=no
9708  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9709  soname_spec='${libname}${release}${shared_ext}$major'
9710  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9711  shlibpath_var=LD_LIBRARY_PATH
9712  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9713  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9714  # the default ld.so.conf also contains /usr/contrib/lib and
9715  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9716  # libtool to hard-code these into programs
9717  ;;
9718
9719cygwin* | mingw* | pw32*)
9720  version_type=windows
9721  shrext_cmds=".dll"
9722  need_version=no
9723  need_lib_prefix=no
9724
9725  case $GCC,$host_os in
9726  yes,cygwin* | yes,mingw* | yes,pw32*)
9727    library_names_spec='$libname.dll.a'
9728    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9729    postinstall_cmds='base_file=`basename \${file}`~
9730      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9731      dldir=$destdir/`dirname \$dlpath`~
9732      test -d \$dldir || mkdir -p \$dldir~
9733      $install_prog $dir/$dlname \$dldir/$dlname~
9734      chmod a+x \$dldir/$dlname'
9735    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9736      dlpath=$dir/\$dldll~
9737       $rm \$dlpath'
9738    shlibpath_overrides_runpath=yes
9739
9740    case $host_os in
9741    cygwin*)
9742      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9743      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9744      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9745      ;;
9746    mingw*)
9747      # MinGW DLLs use traditional 'lib' prefix
9748      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9749      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9750      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9751        # It is most probably a Windows format PATH printed by
9752        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9753        # path with ; separators, and with drive letters. We can handle the
9754        # drive letters (cygwin fileutils understands them), so leave them,
9755        # especially as we might pass files found there to a mingw objdump,
9756        # which wouldn't understand a cygwinified path. Ahh.
9757        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9758      else
9759        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9760      fi
9761      ;;
9762    pw32*)
9763      # pw32 DLLs use 'pw' prefix rather than 'lib'
9764      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9765      ;;
9766    esac
9767    ;;
9768
9769  *)
9770    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9771    ;;
9772  esac
9773  dynamic_linker='Win32 ld.exe'
9774  # FIXME: first we should search . and the directory the executable is in
9775  shlibpath_var=PATH
9776  ;;
9777
9778darwin* | rhapsody*)
9779  dynamic_linker="$host_os dyld"
9780  version_type=darwin
9781  need_lib_prefix=no
9782  need_version=no
9783  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9784  soname_spec='${libname}${release}${major}$shared_ext'
9785  shlibpath_overrides_runpath=yes
9786  shlibpath_var=DYLD_LIBRARY_PATH
9787  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9788  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9789  if test "$GCC" = yes; then
9790    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"`
9791  else
9792    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9793  fi
9794  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9795  ;;
9796
9797dgux*)
9798  version_type=linux
9799  need_lib_prefix=no
9800  need_version=no
9801  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9802  soname_spec='${libname}${release}${shared_ext}$major'
9803  shlibpath_var=LD_LIBRARY_PATH
9804  ;;
9805
9806freebsd1*)
9807  dynamic_linker=no
9808  ;;
9809
9810kfreebsd*-gnu)
9811  version_type=linux
9812  need_lib_prefix=no
9813  need_version=no
9814  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9815  soname_spec='${libname}${release}${shared_ext}$major'
9816  shlibpath_var=LD_LIBRARY_PATH
9817  shlibpath_overrides_runpath=no
9818  hardcode_into_libs=yes
9819  dynamic_linker='GNU ld.so'
9820  ;;
9821
9822freebsd* | dragonfly*)
9823  # DragonFly does not have aout.  When/if they implement a new
9824  # versioning mechanism, adjust this.
9825  if test -x /usr/bin/objformat; then
9826    objformat=`/usr/bin/objformat`
9827  else
9828    case $host_os in
9829    freebsd[123]*) objformat=aout ;;
9830    *) objformat=elf ;;
9831    esac
9832  fi
9833  version_type=freebsd-$objformat
9834  case $version_type in
9835    freebsd-elf*)
9836      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9837      need_version=no
9838      need_lib_prefix=no
9839      ;;
9840    freebsd-*)
9841      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9842      need_version=yes
9843      ;;
9844  esac
9845  shlibpath_var=LD_LIBRARY_PATH
9846  case $host_os in
9847  freebsd2*)
9848    shlibpath_overrides_runpath=yes
9849    ;;
9850  freebsd3.[01]* | freebsdelf3.[01]*)
9851    shlibpath_overrides_runpath=yes
9852    hardcode_into_libs=yes
9853    ;;
9854  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9855  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9856    shlibpath_overrides_runpath=no
9857    hardcode_into_libs=yes
9858    ;;
9859  freebsd*) # from 4.6 on
9860    shlibpath_overrides_runpath=yes
9861    hardcode_into_libs=yes
9862    ;;
9863  esac
9864  ;;
9865
9866gnu*)
9867  version_type=linux
9868  need_lib_prefix=no
9869  need_version=no
9870  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9871  soname_spec='${libname}${release}${shared_ext}$major'
9872  shlibpath_var=LD_LIBRARY_PATH
9873  hardcode_into_libs=yes
9874  ;;
9875
9876hpux9* | hpux10* | hpux11*)
9877  # Give a soname corresponding to the major version so that dld.sl refuses to
9878  # link against other versions.
9879  version_type=sunos
9880  need_lib_prefix=no
9881  need_version=no
9882  case $host_cpu in
9883  ia64*)
9884    shrext_cmds='.so'
9885    hardcode_into_libs=yes
9886    dynamic_linker="$host_os dld.so"
9887    shlibpath_var=LD_LIBRARY_PATH
9888    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9889    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9890    soname_spec='${libname}${release}${shared_ext}$major'
9891    if test "X$HPUX_IA64_MODE" = X32; then
9892      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9893    else
9894      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9895    fi
9896    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9897    ;;
9898   hppa*64*)
9899     shrext_cmds='.sl'
9900     hardcode_into_libs=yes
9901     dynamic_linker="$host_os dld.sl"
9902     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9903     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9904     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9905     soname_spec='${libname}${release}${shared_ext}$major'
9906     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9907     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9908     ;;
9909   *)
9910    shrext_cmds='.sl'
9911    dynamic_linker="$host_os dld.sl"
9912    shlibpath_var=SHLIB_PATH
9913    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9914    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9915    soname_spec='${libname}${release}${shared_ext}$major'
9916    ;;
9917  esac
9918  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9919  postinstall_cmds='chmod 555 $lib'
9920  ;;
9921
9922interix3*)
9923  version_type=linux
9924  need_lib_prefix=no
9925  need_version=no
9926  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9927  soname_spec='${libname}${release}${shared_ext}$major'
9928  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9929  shlibpath_var=LD_LIBRARY_PATH
9930  shlibpath_overrides_runpath=no
9931  hardcode_into_libs=yes
9932  ;;
9933
9934irix5* | irix6* | nonstopux*)
9935  case $host_os in
9936    nonstopux*) version_type=nonstopux ;;
9937    *)
9938        if test "$lt_cv_prog_gnu_ld" = yes; then
9939                version_type=linux
9940        else
9941                version_type=irix
9942        fi ;;
9943  esac
9944  need_lib_prefix=no
9945  need_version=no
9946  soname_spec='${libname}${release}${shared_ext}$major'
9947  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9948  case $host_os in
9949  irix5* | nonstopux*)
9950    libsuff= shlibsuff=
9951    ;;
9952  *)
9953    case $LD in # libtool.m4 will add one of these switches to LD
9954    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9955      libsuff= shlibsuff= libmagic=32-bit;;
9956    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9957      libsuff=32 shlibsuff=N32 libmagic=N32;;
9958    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9959      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9960    *) libsuff= shlibsuff= libmagic=never-match;;
9961    esac
9962    ;;
9963  esac
9964  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9965  shlibpath_overrides_runpath=no
9966  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9967  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9968  hardcode_into_libs=yes
9969  ;;
9970
9971# No shared lib support for Linux oldld, aout, or coff.
9972linux*oldld* | linux*aout* | linux*coff*)
9973  dynamic_linker=no
9974  ;;
9975
9976# This must be Linux ELF.
9977linux*)
9978  version_type=linux
9979  need_lib_prefix=no
9980  need_version=no
9981  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9982  soname_spec='${libname}${release}${shared_ext}$major'
9983  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9984  shlibpath_var=LD_LIBRARY_PATH
9985  shlibpath_overrides_runpath=no
9986  # This implies no fast_install, which is unacceptable.
9987  # Some rework will be needed to allow for fast_install
9988  # before this can be enabled.
9989  hardcode_into_libs=yes
9990
9991  # Append ld.so.conf contents to the search path
9992  if test -f /etc/ld.so.conf; then
9993    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' ' '`
9994    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9995  fi
9996
9997  # We used to test for /lib/ld.so.1 and disable shared libraries on
9998  # powerpc, because MkLinux only supported shared libraries with the
9999  # GNU dynamic linker.  Since this was broken with cross compilers,
10000  # most powerpc-linux boxes support dynamic linking these days and
10001  # people can always --disable-shared, the test was removed, and we
10002  # assume the GNU/Linux dynamic linker is in use.
10003  dynamic_linker='GNU/Linux ld.so'
10004  ;;
10005
10006knetbsd*-gnu)
10007  version_type=linux
10008  need_lib_prefix=no
10009  need_version=no
10010  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10011  soname_spec='${libname}${release}${shared_ext}$major'
10012  shlibpath_var=LD_LIBRARY_PATH
10013  shlibpath_overrides_runpath=no
10014  hardcode_into_libs=yes
10015  dynamic_linker='GNU ld.so'
10016  ;;
10017
10018netbsd*)
10019  version_type=sunos
10020  need_lib_prefix=no
10021  need_version=no
10022  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10023    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10024    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10025    dynamic_linker='NetBSD (a.out) ld.so'
10026  else
10027    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10028    soname_spec='${libname}${release}${shared_ext}$major'
10029    dynamic_linker='NetBSD ld.elf_so'
10030  fi
10031  shlibpath_var=LD_LIBRARY_PATH
10032  shlibpath_overrides_runpath=yes
10033  hardcode_into_libs=yes
10034  ;;
10035
10036newsos6)
10037  version_type=linux
10038  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10039  shlibpath_var=LD_LIBRARY_PATH
10040  shlibpath_overrides_runpath=yes
10041  ;;
10042
10043nto-qnx*)
10044  version_type=linux
10045  need_lib_prefix=no
10046  need_version=no
10047  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10048  soname_spec='${libname}${release}${shared_ext}$major'
10049  shlibpath_var=LD_LIBRARY_PATH
10050  shlibpath_overrides_runpath=yes
10051  ;;
10052
10053openbsd*)
10054  version_type=sunos
10055  sys_lib_dlsearch_path_spec="/usr/lib"
10056  need_lib_prefix=no
10057  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10058  case $host_os in
10059    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10060    *)                         need_version=no  ;;
10061  esac
10062  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10063  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10064  shlibpath_var=LD_LIBRARY_PATH
10065  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10066    case $host_os in
10067      openbsd2.[89] | openbsd2.[89].*)
10068        shlibpath_overrides_runpath=no
10069        ;;
10070      *)
10071        shlibpath_overrides_runpath=yes
10072        ;;
10073      esac
10074  else
10075    shlibpath_overrides_runpath=yes
10076  fi
10077  ;;
10078
10079os2*)
10080  libname_spec='$name'
10081  shrext_cmds=".dll"
10082  need_lib_prefix=no
10083  library_names_spec='$libname${shared_ext} $libname.a'
10084  dynamic_linker='OS/2 ld.exe'
10085  shlibpath_var=LIBPATH
10086  ;;
10087
10088osf3* | osf4* | osf5*)
10089  version_type=osf
10090  need_lib_prefix=no
10091  need_version=no
10092  soname_spec='${libname}${release}${shared_ext}$major'
10093  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10094  shlibpath_var=LD_LIBRARY_PATH
10095  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10096  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10097  ;;
10098
10099solaris*)
10100  version_type=linux
10101  need_lib_prefix=no
10102  need_version=no
10103  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10104  soname_spec='${libname}${release}${shared_ext}$major'
10105  shlibpath_var=LD_LIBRARY_PATH
10106  shlibpath_overrides_runpath=yes
10107  hardcode_into_libs=yes
10108  # ldd complains unless libraries are executable
10109  postinstall_cmds='chmod +x $lib'
10110  ;;
10111
10112sunos4*)
10113  version_type=sunos
10114  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10115  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10116  shlibpath_var=LD_LIBRARY_PATH
10117  shlibpath_overrides_runpath=yes
10118  if test "$with_gnu_ld" = yes; then
10119    need_lib_prefix=no
10120  fi
10121  need_version=yes
10122  ;;
10123
10124sysv4 | sysv4.3*)
10125  version_type=linux
10126  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10127  soname_spec='${libname}${release}${shared_ext}$major'
10128  shlibpath_var=LD_LIBRARY_PATH
10129  case $host_vendor in
10130    sni)
10131      shlibpath_overrides_runpath=no
10132      need_lib_prefix=no
10133      export_dynamic_flag_spec='${wl}-Blargedynsym'
10134      runpath_var=LD_RUN_PATH
10135      ;;
10136    siemens)
10137      need_lib_prefix=no
10138      ;;
10139    motorola)
10140      need_lib_prefix=no
10141      need_version=no
10142      shlibpath_overrides_runpath=no
10143      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10144      ;;
10145  esac
10146  ;;
10147
10148sysv4*MP*)
10149  if test -d /usr/nec ;then
10150    version_type=linux
10151    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10152    soname_spec='$libname${shared_ext}.$major'
10153    shlibpath_var=LD_LIBRARY_PATH
10154  fi
10155  ;;
10156
10157sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10158  version_type=freebsd-elf
10159  need_lib_prefix=no
10160  need_version=no
10161  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10162  soname_spec='${libname}${release}${shared_ext}$major'
10163  shlibpath_var=LD_LIBRARY_PATH
10164  hardcode_into_libs=yes
10165  if test "$with_gnu_ld" = yes; then
10166    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10167    shlibpath_overrides_runpath=no
10168  else
10169    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10170    shlibpath_overrides_runpath=yes
10171    case $host_os in
10172      sco3.2v5*)
10173        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10174        ;;
10175    esac
10176  fi
10177  sys_lib_dlsearch_path_spec='/usr/lib'
10178  ;;
10179
10180uts4*)
10181  version_type=linux
10182  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10183  soname_spec='${libname}${release}${shared_ext}$major'
10184  shlibpath_var=LD_LIBRARY_PATH
10185  ;;
10186
10187*)
10188  dynamic_linker=no
10189  ;;
10190esac
10191echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10192echo "${ECHO_T}$dynamic_linker" >&6
10193test "$dynamic_linker" = no && can_build_shared=no
10194
10195variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10196if test "$GCC" = yes; then
10197  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10198fi
10199
10200echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10201echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10202hardcode_action=
10203if test -n "$hardcode_libdir_flag_spec" || \
10204   test -n "$runpath_var" || \
10205   test "X$hardcode_automatic" = "Xyes" ; then
10206
10207  # We can hardcode non-existant directories.
10208  if test "$hardcode_direct" != no &&
10209     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10210     # have to relink, otherwise we might link with an installed library
10211     # when we should be linking with a yet-to-be-installed one
10212     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10213     test "$hardcode_minus_L" != no; then
10214    # Linking always hardcodes the temporary library directory.
10215    hardcode_action=relink
10216  else
10217    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10218    hardcode_action=immediate
10219  fi
10220else
10221  # We cannot hardcode anything, or else we can only hardcode existing
10222  # directories.
10223  hardcode_action=unsupported
10224fi
10225echo "$as_me:$LINENO: result: $hardcode_action" >&5
10226echo "${ECHO_T}$hardcode_action" >&6
10227
10228if test "$hardcode_action" = relink; then
10229  # Fast installation is not supported
10230  enable_fast_install=no
10231elif test "$shlibpath_overrides_runpath" = yes ||
10232     test "$enable_shared" = no; then
10233  # Fast installation is not necessary
10234  enable_fast_install=needless
10235fi
10236
10237striplib=
10238old_striplib=
10239echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10240echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10241if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10242  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10243  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10244  echo "$as_me:$LINENO: result: yes" >&5
10245echo "${ECHO_T}yes" >&6
10246else
10247# FIXME - insert some real tests, host_os isn't really good enough
10248  case $host_os in
10249   darwin*)
10250       if test -n "$STRIP" ; then
10251         striplib="$STRIP -x"
10252         echo "$as_me:$LINENO: result: yes" >&5
10253echo "${ECHO_T}yes" >&6
10254       else
10255  echo "$as_me:$LINENO: result: no" >&5
10256echo "${ECHO_T}no" >&6
10257fi
10258       ;;
10259   *)
10260  echo "$as_me:$LINENO: result: no" >&5
10261echo "${ECHO_T}no" >&6
10262    ;;
10263  esac
10264fi
10265
10266if test "x$enable_dlopen" != xyes; then
10267  enable_dlopen=unknown
10268  enable_dlopen_self=unknown
10269  enable_dlopen_self_static=unknown
10270else
10271  lt_cv_dlopen=no
10272  lt_cv_dlopen_libs=
10273
10274  case $host_os in
10275  beos*)
10276    lt_cv_dlopen="load_add_on"
10277    lt_cv_dlopen_libs=
10278    lt_cv_dlopen_self=yes
10279    ;;
10280
10281  mingw* | pw32*)
10282    lt_cv_dlopen="LoadLibrary"
10283    lt_cv_dlopen_libs=
10284   ;;
10285
10286  cygwin*)
10287    lt_cv_dlopen="dlopen"
10288    lt_cv_dlopen_libs=
10289   ;;
10290
10291  darwin*)
10292  # if libdl is installed we need to link against it
10293    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10294echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10295if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10296  echo $ECHO_N "(cached) $ECHO_C" >&6
10297else
10298  ac_check_lib_save_LIBS=$LIBS
10299LIBS="-ldl  $LIBS"
10300cat >conftest.$ac_ext <<_ACEOF
10301/* confdefs.h.  */
10302_ACEOF
10303cat confdefs.h >>conftest.$ac_ext
10304cat >>conftest.$ac_ext <<_ACEOF
10305/* end confdefs.h.  */
10306
10307/* Override any gcc2 internal prototype to avoid an error.  */
10308#ifdef __cplusplus
10309extern "C"
10310#endif
10311/* We use char because int might match the return type of a gcc2
10312   builtin and then its argument prototype would still apply.  */
10313char dlopen ();
10314int
10315main ()
10316{
10317dlopen ();
10318  ;
10319  return 0;
10320}
10321_ACEOF
10322rm -f conftest.$ac_objext conftest$ac_exeext
10323if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10324  (eval $ac_link) 2>conftest.er1
10325  ac_status=$?
10326  grep -v '^ *+' conftest.er1 >conftest.err
10327  rm -f conftest.er1
10328  cat conftest.err >&5
10329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330  (exit $ac_status); } &&
10331         { ac_try='test -z "$ac_c_werror_flag"
10332                         || test ! -s conftest.err'
10333  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10334  (eval $ac_try) 2>&5
10335  ac_status=$?
10336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337  (exit $ac_status); }; } &&
10338         { ac_try='test -s conftest$ac_exeext'
10339  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10340  (eval $ac_try) 2>&5
10341  ac_status=$?
10342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10343  (exit $ac_status); }; }; then
10344  ac_cv_lib_dl_dlopen=yes
10345else
10346  echo "$as_me: failed program was:" >&5
10347sed 's/^/| /' conftest.$ac_ext >&5
10348
10349ac_cv_lib_dl_dlopen=no
10350fi
10351rm -f conftest.err conftest.$ac_objext \
10352      conftest$ac_exeext conftest.$ac_ext
10353LIBS=$ac_check_lib_save_LIBS
10354fi
10355echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10356echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10357if test $ac_cv_lib_dl_dlopen = yes; then
10358  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10359else
10360
10361    lt_cv_dlopen="dyld"
10362    lt_cv_dlopen_libs=
10363    lt_cv_dlopen_self=yes
10364
10365fi
10366
10367   ;;
10368
10369  *)
10370    echo "$as_me:$LINENO: checking for shl_load" >&5
10371echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10372if test "${ac_cv_func_shl_load+set}" = set; then
10373  echo $ECHO_N "(cached) $ECHO_C" >&6
10374else
10375  cat >conftest.$ac_ext <<_ACEOF
10376/* confdefs.h.  */
10377_ACEOF
10378cat confdefs.h >>conftest.$ac_ext
10379cat >>conftest.$ac_ext <<_ACEOF
10380/* end confdefs.h.  */
10381/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10382   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10383#define shl_load innocuous_shl_load
10384
10385/* System header to define __stub macros and hopefully few prototypes,
10386    which can conflict with char shl_load (); below.
10387    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10388    <limits.h> exists even on freestanding compilers.  */
10389
10390#ifdef __STDC__
10391# include <limits.h>
10392#else
10393# include <assert.h>
10394#endif
10395
10396#undef shl_load
10397
10398/* Override any gcc2 internal prototype to avoid an error.  */
10399#ifdef __cplusplus
10400extern "C"
10401{
10402#endif
10403/* We use char because int might match the return type of a gcc2
10404   builtin and then its argument prototype would still apply.  */
10405char shl_load ();
10406/* The GNU C library defines this for functions which it implements
10407    to always fail with ENOSYS.  Some functions are actually named
10408    something starting with __ and the normal name is an alias.  */
10409#if defined (__stub_shl_load) || defined (__stub___shl_load)
10410choke me
10411#else
10412char (*f) () = shl_load;
10413#endif
10414#ifdef __cplusplus
10415}
10416#endif
10417
10418int
10419main ()
10420{
10421return f != shl_load;
10422  ;
10423  return 0;
10424}
10425_ACEOF
10426rm -f conftest.$ac_objext conftest$ac_exeext
10427if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10428  (eval $ac_link) 2>conftest.er1
10429  ac_status=$?
10430  grep -v '^ *+' conftest.er1 >conftest.err
10431  rm -f conftest.er1
10432  cat conftest.err >&5
10433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434  (exit $ac_status); } &&
10435         { ac_try='test -z "$ac_c_werror_flag"
10436                         || test ! -s conftest.err'
10437  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10438  (eval $ac_try) 2>&5
10439  ac_status=$?
10440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10441  (exit $ac_status); }; } &&
10442         { ac_try='test -s conftest$ac_exeext'
10443  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10444  (eval $ac_try) 2>&5
10445  ac_status=$?
10446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10447  (exit $ac_status); }; }; then
10448  ac_cv_func_shl_load=yes
10449else
10450  echo "$as_me: failed program was:" >&5
10451sed 's/^/| /' conftest.$ac_ext >&5
10452
10453ac_cv_func_shl_load=no
10454fi
10455rm -f conftest.err conftest.$ac_objext \
10456      conftest$ac_exeext conftest.$ac_ext
10457fi
10458echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10459echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10460if test $ac_cv_func_shl_load = yes; then
10461  lt_cv_dlopen="shl_load"
10462else
10463  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10464echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10465if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10466  echo $ECHO_N "(cached) $ECHO_C" >&6
10467else
10468  ac_check_lib_save_LIBS=$LIBS
10469LIBS="-ldld  $LIBS"
10470cat >conftest.$ac_ext <<_ACEOF
10471/* confdefs.h.  */
10472_ACEOF
10473cat confdefs.h >>conftest.$ac_ext
10474cat >>conftest.$ac_ext <<_ACEOF
10475/* end confdefs.h.  */
10476
10477/* Override any gcc2 internal prototype to avoid an error.  */
10478#ifdef __cplusplus
10479extern "C"
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 shl_load ();
10484int
10485main ()
10486{
10487shl_load ();
10488  ;
10489  return 0;
10490}
10491_ACEOF
10492rm -f conftest.$ac_objext conftest$ac_exeext
10493if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10494  (eval $ac_link) 2>conftest.er1
10495  ac_status=$?
10496  grep -v '^ *+' conftest.er1 >conftest.err
10497  rm -f conftest.er1
10498  cat conftest.err >&5
10499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10500  (exit $ac_status); } &&
10501         { ac_try='test -z "$ac_c_werror_flag"
10502                         || test ! -s conftest.err'
10503  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10504  (eval $ac_try) 2>&5
10505  ac_status=$?
10506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10507  (exit $ac_status); }; } &&
10508         { ac_try='test -s conftest$ac_exeext'
10509  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10510  (eval $ac_try) 2>&5
10511  ac_status=$?
10512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10513  (exit $ac_status); }; }; then
10514  ac_cv_lib_dld_shl_load=yes
10515else
10516  echo "$as_me: failed program was:" >&5
10517sed 's/^/| /' conftest.$ac_ext >&5
10518
10519ac_cv_lib_dld_shl_load=no
10520fi
10521rm -f conftest.err conftest.$ac_objext \
10522      conftest$ac_exeext conftest.$ac_ext
10523LIBS=$ac_check_lib_save_LIBS
10524fi
10525echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10526echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10527if test $ac_cv_lib_dld_shl_load = yes; then
10528  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10529else
10530  echo "$as_me:$LINENO: checking for dlopen" >&5
10531echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10532if test "${ac_cv_func_dlopen+set}" = set; then
10533  echo $ECHO_N "(cached) $ECHO_C" >&6
10534else
10535  cat >conftest.$ac_ext <<_ACEOF
10536/* confdefs.h.  */
10537_ACEOF
10538cat confdefs.h >>conftest.$ac_ext
10539cat >>conftest.$ac_ext <<_ACEOF
10540/* end confdefs.h.  */
10541/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10542   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10543#define dlopen innocuous_dlopen
10544
10545/* System header to define __stub macros and hopefully few prototypes,
10546    which can conflict with char dlopen (); below.
10547    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10548    <limits.h> exists even on freestanding compilers.  */
10549
10550#ifdef __STDC__
10551# include <limits.h>
10552#else
10553# include <assert.h>
10554#endif
10555
10556#undef dlopen
10557
10558/* Override any gcc2 internal prototype to avoid an error.  */
10559#ifdef __cplusplus
10560extern "C"
10561{
10562#endif
10563/* We use char because int might match the return type of a gcc2
10564   builtin and then its argument prototype would still apply.  */
10565char dlopen ();
10566/* The GNU C library defines this for functions which it implements
10567    to always fail with ENOSYS.  Some functions are actually named
10568    something starting with __ and the normal name is an alias.  */
10569#if defined (__stub_dlopen) || defined (__stub___dlopen)
10570choke me
10571#else
10572char (*f) () = dlopen;
10573#endif
10574#ifdef __cplusplus
10575}
10576#endif
10577
10578int
10579main ()
10580{
10581return f != dlopen;
10582  ;
10583  return 0;
10584}
10585_ACEOF
10586rm -f conftest.$ac_objext conftest$ac_exeext
10587if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10588  (eval $ac_link) 2>conftest.er1
10589  ac_status=$?
10590  grep -v '^ *+' conftest.er1 >conftest.err
10591  rm -f conftest.er1
10592  cat conftest.err >&5
10593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10594  (exit $ac_status); } &&
10595         { ac_try='test -z "$ac_c_werror_flag"
10596                         || test ! -s conftest.err'
10597  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10598  (eval $ac_try) 2>&5
10599  ac_status=$?
10600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601  (exit $ac_status); }; } &&
10602         { ac_try='test -s conftest$ac_exeext'
10603  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10604  (eval $ac_try) 2>&5
10605  ac_status=$?
10606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607  (exit $ac_status); }; }; then
10608  ac_cv_func_dlopen=yes
10609else
10610  echo "$as_me: failed program was:" >&5
10611sed 's/^/| /' conftest.$ac_ext >&5
10612
10613ac_cv_func_dlopen=no
10614fi
10615rm -f conftest.err conftest.$ac_objext \
10616      conftest$ac_exeext conftest.$ac_ext
10617fi
10618echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10619echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10620if test $ac_cv_func_dlopen = yes; then
10621  lt_cv_dlopen="dlopen"
10622else
10623  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10624echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10625if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10626  echo $ECHO_N "(cached) $ECHO_C" >&6
10627else
10628  ac_check_lib_save_LIBS=$LIBS
10629LIBS="-ldl  $LIBS"
10630cat >conftest.$ac_ext <<_ACEOF
10631/* confdefs.h.  */
10632_ACEOF
10633cat confdefs.h >>conftest.$ac_ext
10634cat >>conftest.$ac_ext <<_ACEOF
10635/* end confdefs.h.  */
10636
10637/* Override any gcc2 internal prototype to avoid an error.  */
10638#ifdef __cplusplus
10639extern "C"
10640#endif
10641/* We use char because int might match the return type of a gcc2
10642   builtin and then its argument prototype would still apply.  */
10643char dlopen ();
10644int
10645main ()
10646{
10647dlopen ();
10648  ;
10649  return 0;
10650}
10651_ACEOF
10652rm -f conftest.$ac_objext conftest$ac_exeext
10653if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10654  (eval $ac_link) 2>conftest.er1
10655  ac_status=$?
10656  grep -v '^ *+' conftest.er1 >conftest.err
10657  rm -f conftest.er1
10658  cat conftest.err >&5
10659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10660  (exit $ac_status); } &&
10661         { ac_try='test -z "$ac_c_werror_flag"
10662                         || test ! -s conftest.err'
10663  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10664  (eval $ac_try) 2>&5
10665  ac_status=$?
10666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667  (exit $ac_status); }; } &&
10668         { ac_try='test -s conftest$ac_exeext'
10669  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10670  (eval $ac_try) 2>&5
10671  ac_status=$?
10672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10673  (exit $ac_status); }; }; then
10674  ac_cv_lib_dl_dlopen=yes
10675else
10676  echo "$as_me: failed program was:" >&5
10677sed 's/^/| /' conftest.$ac_ext >&5
10678
10679ac_cv_lib_dl_dlopen=no
10680fi
10681rm -f conftest.err conftest.$ac_objext \
10682      conftest$ac_exeext conftest.$ac_ext
10683LIBS=$ac_check_lib_save_LIBS
10684fi
10685echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10686echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10687if test $ac_cv_lib_dl_dlopen = yes; then
10688  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10689else
10690  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10691echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10692if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10693  echo $ECHO_N "(cached) $ECHO_C" >&6
10694else
10695  ac_check_lib_save_LIBS=$LIBS
10696LIBS="-lsvld  $LIBS"
10697cat >conftest.$ac_ext <<_ACEOF
10698/* confdefs.h.  */
10699_ACEOF
10700cat confdefs.h >>conftest.$ac_ext
10701cat >>conftest.$ac_ext <<_ACEOF
10702/* end confdefs.h.  */
10703
10704/* Override any gcc2 internal prototype to avoid an error.  */
10705#ifdef __cplusplus
10706extern "C"
10707#endif
10708/* We use char because int might match the return type of a gcc2
10709   builtin and then its argument prototype would still apply.  */
10710char dlopen ();
10711int
10712main ()
10713{
10714dlopen ();
10715  ;
10716  return 0;
10717}
10718_ACEOF
10719rm -f conftest.$ac_objext conftest$ac_exeext
10720if { (eval echo "$as_me:$LINENO: \"$ac_link\"") &g