source: stable/2.6/Cbc/configure @ 1672

Last change on this file since 1672 was 1672, checked in by stefan, 8 years ago

rerun autotools; merge fixes in example Makefiles for mingw/cl from trunk

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