source: stable/2.6/Cbc/configure @ 1628

Last change on this file since 1628 was 1628, checked in by tkr, 8 years ago

temporarily committing release candidate

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