source: stable/2.8/Cbc/configure @ 1821

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

remove OsiCbc? from stable branch: not maintained anymore and not advised for usage (bad performance)

  • Property svn:executable set to *
File size: 1.0 MB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for Cbc 2.8.
4#
5# Report bugs to <cbc@lists.coin-or.org>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='Cbc'
431PACKAGE_TARNAME='cbc'
432PACKAGE_VERSION='2.8'
433PACKAGE_STRING='Cbc 2.8'
434PACKAGE_BUGREPORT='cbc@lists.coin-or.org'
435
436ac_unique_file="src/CbcTree.hpp"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion CBC_SVN_REV CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX COIN_CXX_IS_CL_TRUE COIN_CXX_IS_CL_FALSE MPICXX EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS 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 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 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 coin_have_doxygen coin_doxy_usedot coin_doxy_tagname coin_doxy_logname coin_doxy_tagfiles coin_doxy_excludes LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_CXXDEFS_set=${CXXDEFS+set}
953ac_env_CXXDEFS_value=$CXXDEFS
954ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
955ac_cv_env_CXXDEFS_value=$CXXDEFS
956ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
957ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
958ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
959ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
960ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
961ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
962ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
963ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
964ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
965ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
966ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
967ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
968ac_env_CXX_set=${CXX+set}
969ac_env_CXX_value=$CXX
970ac_cv_env_CXX_set=${CXX+set}
971ac_cv_env_CXX_value=$CXX
972ac_env_CXXFLAGS_set=${CXXFLAGS+set}
973ac_env_CXXFLAGS_value=$CXXFLAGS
974ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
975ac_cv_env_CXXFLAGS_value=$CXXFLAGS
976ac_env_MPICXX_set=${MPICXX+set}
977ac_env_MPICXX_value=$MPICXX
978ac_cv_env_MPICXX_set=${MPICXX+set}
979ac_cv_env_MPICXX_value=$MPICXX
980ac_env_CPP_set=${CPP+set}
981ac_env_CPP_value=$CPP
982ac_cv_env_CPP_set=${CPP+set}
983ac_cv_env_CPP_value=$CPP
984ac_env_CXXCPP_set=${CXXCPP+set}
985ac_env_CXXCPP_value=$CXXCPP
986ac_cv_env_CXXCPP_set=${CXXCPP+set}
987ac_cv_env_CXXCPP_value=$CXXCPP
988ac_env_F77_set=${F77+set}
989ac_env_F77_value=$F77
990ac_cv_env_F77_set=${F77+set}
991ac_cv_env_F77_value=$F77
992ac_env_FFLAGS_set=${FFLAGS+set}
993ac_env_FFLAGS_value=$FFLAGS
994ac_cv_env_FFLAGS_set=${FFLAGS+set}
995ac_cv_env_FFLAGS_value=$FFLAGS
996ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
997ac_env_PKG_CONFIG_value=$PKG_CONFIG
998ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
999ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
1000
1001#
1002# Report the --help message.
1003#
1004if test "$ac_init_help" = "long"; then
1005  # Omit some internal or obsolete options to make the list less imposing.
1006  # This message is too long to be a string in the A/UX 3.1 sh.
1007  cat <<_ACEOF
1008\`configure' configures Cbc 2.8 to adapt to many kinds of systems.
1009
1010Usage: $0 [OPTION]... [VAR=VALUE]...
1011
1012To assign environment variables (e.g., CC, CFLAGS...), specify them as
1013VAR=VALUE.  See below for descriptions of some of the useful variables.
1014
1015Defaults for the options are specified in brackets.
1016
1017Configuration:
1018  -h, --help              display this help and exit
1019      --help=short        display options specific to this package
1020      --help=recursive    display the short help of all the included packages
1021  -V, --version           display version information and exit
1022  -q, --quiet, --silent   do not print \`checking...' messages
1023      --cache-file=FILE   cache test results in FILE [disabled]
1024  -C, --config-cache      alias for \`--cache-file=config.cache'
1025  -n, --no-create         do not create output files
1026      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1027
1028_ACEOF
1029
1030  cat <<_ACEOF
1031Installation directories:
1032  --prefix=PREFIX         install architecture-independent files in PREFIX
1033                          [$ac_default_prefix]
1034  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1035                          [PREFIX]
1036
1037By default, \`make install' will install all the files in
1038\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1039an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1040for instance \`--prefix=\$HOME'.
1041
1042For better control, use the options below.
1043
1044Fine tuning of the installation directories:
1045  --bindir=DIR           user executables [EPREFIX/bin]
1046  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1047  --libexecdir=DIR       program executables [EPREFIX/libexec]
1048  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1049  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1050  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1051  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1052  --libdir=DIR           object code libraries [EPREFIX/lib]
1053  --includedir=DIR       C header files [PREFIX/include]
1054  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1055  --infodir=DIR          info documentation [PREFIX/info]
1056  --mandir=DIR           man documentation [PREFIX/man]
1057_ACEOF
1058
1059  cat <<\_ACEOF
1060
1061Program names:
1062  --program-prefix=PREFIX            prepend PREFIX to installed program names
1063  --program-suffix=SUFFIX            append SUFFIX to installed program names
1064  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1065
1066System types:
1067  --build=BUILD     configure for building on BUILD [guessed]
1068  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1069_ACEOF
1070fi
1071
1072if test -n "$ac_init_help"; then
1073  case $ac_init_help in
1074     short | recursive ) echo "Configuration of Cbc 2.8:";;
1075   esac
1076  cat <<\_ACEOF
1077
1078Optional Features:
1079  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1080  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1081  --enable-debug          compile all projects with debug options tests
1082                          (implies --disable-shared)
1083  --enable-debug-cbc compile project Cbc with debug compiler flags
1084  --enable-doscompile     Under Cygwin, compile so that executables run under
1085                          DOS. Set to mingw to use gcc/g++/ld with
1086                          -mno-cygwin. Set to msvc to use cl/link (or
1087                          icl/link). Default when mentioned: mingw. Default
1088                          when not mentioned: disabled.
1089  --enable-static[=PKGS]
1090                          build static libraries [default=no]
1091  --disable-dependency-tracking  speeds up one-time build
1092  --enable-dependency-tracking   do not reject slow dependency extractors
1093  --enable-maintainer-mode  enable make rules and dependencies not useful
1094                          (and sometimes confusing) to the casual installer
1095  --enable-shared[=PKGS]
1096                          build shared libraries [default=yes]
1097  --enable-fast-install[=PKGS]
1098                          optimize for fast installation [default=yes]
1099  --disable-libtool-lock  avoid locking (might break parallel builds)
1100  --disable-pkg-config    disable use of pkg-config (if available)
1101  --disable-interpackage-dependencies
1102                          disables deduction of Makefile dependencies from
1103                          package linker flags
1104  --enable-gnu-packages   compile with GNU packages (disabled by default)
1105  --enable-cbc-parallel   enables compilation of the SMP version of Cbc
1106
1107Optional Packages:
1108  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1109  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1110  --with-cbc-verbosity specify the debug verbosity level for project Cbc
1111  --with-cbc-checklevel specify the sanity check level for project Cbc
1112  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1113  --with-pic              try to use only PIC/non-PIC objects [default=use
1114                          both]
1115  --with-tags[=TAGS]
1116                          include additional configurations [automatic]
1117  --with-coin-instdir     prefix of installation directory for precompiled
1118                          COIN packages
1119
1120  --with-coindepend-lib linker flags for using package CoinDepend
1121  --with-coindepend-incdir
1122                          directory with header files for using package
1123                          CoinDepend
1124  --with-coindepend-datadir
1125                          directory with data files for using package
1126                          CoinDepend
1127  --with-clp-lib linker flags for using package Clp
1128  --with-clp-incdir directory with header files for using package Clp
1129  --with-clp-datadir directory with data files for using package Clp
1130  --with-sample-lib linker flags for using package Sample
1131  --with-sample-incdir directory with header files for using package Sample
1132  --with-sample-datadir directory with data files for using package Sample
1133  --with-miplib3-lib linker flags for using package Miplib3
1134  --with-miplib3-incdir directory with header files for using package Miplib3
1135  --with-miplib3-datadir directory with data files for using package Miplib3
1136  --with-dylp-lib linker flags for using package DyLP
1137  --with-dylp-incdir directory with header files for using package DyLP
1138  --with-dylp-datadir directory with data files for using package DyLP
1139  --with-vol-lib linker flags for using package Vol
1140  --with-vol-incdir directory with header files for using package Vol
1141  --with-vol-datadir directory with data files for using package Vol
1142  --with-cpx-lib linker flags for using package Cpx
1143  --with-cpx-incdir directory with header files for using package Cpx
1144  --with-cpx-datadir directory with data files for using package Cpx
1145  --with-glpk-lib linker flags for using package Glpk
1146  --with-glpk-incdir directory with header files for using package Glpk
1147  --with-glpk-datadir directory with data files for using package Glpk
1148  --with-grb-lib linker flags for using package Grb
1149  --with-grb-incdir directory with header files for using package Grb
1150  --with-grb-datadir directory with data files for using package Grb
1151  --with-msk-lib linker flags for using package Msk
1152  --with-msk-incdir directory with header files for using package Msk
1153  --with-msk-datadir directory with data files for using package Msk
1154  --with-spx-lib linker flags for using package Spx
1155  --with-spx-incdir directory with header files for using package Spx
1156  --with-spx-datadir directory with data files for using package Spx
1157  --with-xpr-lib linker flags for using package Xpr
1158  --with-xpr-incdir directory with header files for using package Xpr
1159  --with-xpr-datadir directory with data files for using package Xpr
1160  --with-asl-lib linker flags for using package ASL
1161  --with-asl-incdir directory with header files for using package ASL
1162  --with-asl-datadir directory with data files for using package ASL
1163  --with-cbc-generic      specify whether to build cbc-generic (default: no)
1164  --with-cbc-generic-solver
1165                          specify default solver for cbc-generic in lower case
1166                          letters (if not given, clp is assumed)
1167  --with-pthreadsw32-lib  specify the name of the pthreads win32 library (for
1168                          cl/icl builds only)
1169  --with-pthreadsw32-incdir
1170                          specify the path of the pthreads win32 header file
1171                          (for cl/icl builds only)
1172  --with-dot              use dot (from graphviz) when creating documentation
1173                          with doxygen if available; --without-dot to disable
1174
1175Some influential environment variables:
1176  CDEFS       Additional -D flags to be used when compiling C code.
1177  ADD_CFLAGS  Additional C compiler options
1178  DBG_CFLAGS  Debug C compiler options
1179  OPT_CFLAGS  Optimize C compiler options
1180  CC          C compiler command
1181  CFLAGS      C compiler flags
1182  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1183              nonstandard directory <lib dir>
1184  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1185              headers in a nonstandard directory <include dir>
1186  MPICC       C MPI Compiler
1187  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1188  ADD_CXXFLAGS
1189              Additional C++ compiler options
1190  DBG_CXXFLAGS
1191              Debug C++ compiler options
1192  OPT_CXXFLAGS
1193              Optimize C++ compiler options
1194  CXX         C++ compiler command
1195  CXXFLAGS    C++ compiler flags
1196  MPICXX      C++ MPI Compiler
1197  CPP         C preprocessor
1198  CXXCPP      C++ preprocessor
1199  F77         Fortran 77 compiler command
1200  FFLAGS      Fortran 77 compiler flags
1201  PKG_CONFIG  path to pkg-config utility
1202
1203Use these variables to override the choices made by `configure' or to help
1204it to find libraries and programs with nonstandard names/locations.
1205
1206Report bugs to <cbc@lists.coin-or.org>.
1207_ACEOF
1208fi
1209
1210if test "$ac_init_help" = "recursive"; then
1211  # If there are subdirs, report their specific --help.
1212  ac_popdir=`pwd`
1213  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1214    test -d $ac_dir || continue
1215    ac_builddir=.
1216
1217if test "$ac_dir" != .; then
1218  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1219  # A "../" for each directory in $ac_dir_suffix.
1220  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1221else
1222  ac_dir_suffix= ac_top_builddir=
1223fi
1224
1225case $srcdir in
1226  .)  # No --srcdir option.  We are building in place.
1227    ac_srcdir=.
1228    if test -z "$ac_top_builddir"; then
1229       ac_top_srcdir=.
1230    else
1231       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1232    fi ;;
1233  [\\/]* | ?:[\\/]* )  # Absolute path.
1234    ac_srcdir=$srcdir$ac_dir_suffix;
1235    ac_top_srcdir=$srcdir ;;
1236  *) # Relative path.
1237    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1238    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1239esac
1240
1241# Do not use `cd foo && pwd` to compute absolute paths, because
1242# the directories may not exist.
1243case `pwd` in
1244.) ac_abs_builddir="$ac_dir";;
1245*)
1246  case "$ac_dir" in
1247  .) ac_abs_builddir=`pwd`;;
1248  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1249  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1250  esac;;
1251esac
1252case $ac_abs_builddir in
1253.) ac_abs_top_builddir=${ac_top_builddir}.;;
1254*)
1255  case ${ac_top_builddir}. in
1256  .) ac_abs_top_builddir=$ac_abs_builddir;;
1257  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1258  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1259  esac;;
1260esac
1261case $ac_abs_builddir in
1262.) ac_abs_srcdir=$ac_srcdir;;
1263*)
1264  case $ac_srcdir in
1265  .) ac_abs_srcdir=$ac_abs_builddir;;
1266  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1267  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1268  esac;;
1269esac
1270case $ac_abs_builddir in
1271.) ac_abs_top_srcdir=$ac_top_srcdir;;
1272*)
1273  case $ac_top_srcdir in
1274  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1275  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1276  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1277  esac;;
1278esac
1279
1280    cd $ac_dir
1281    # Check for guested configure; otherwise get Cygnus style configure.
1282    if test -f $ac_srcdir/configure.gnu; then
1283      echo
1284      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1285    elif test -f $ac_srcdir/configure; then
1286      echo
1287      $SHELL $ac_srcdir/configure  --help=recursive
1288    elif test -f $ac_srcdir/configure.ac ||
1289           test -f $ac_srcdir/configure.in; then
1290      echo
1291      $ac_configure --help
1292    else
1293      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1294    fi
1295    cd $ac_popdir
1296  done
1297fi
1298
1299test -n "$ac_init_help" && exit 0
1300if $ac_init_version; then
1301  cat <<\_ACEOF
1302Cbc configure 2.8
1303generated by GNU Autoconf 2.59
1304
1305Copyright (C) 2003 Free Software Foundation, Inc.
1306This configure script is free software; the Free Software Foundation
1307gives unlimited permission to copy, distribute and modify it.
1308
1309
1310Copyright 2006 International Business Machines and others.
1311All Rights Reserved.
1312This file is part of the open source package Coin which is distributed
1313under the Eclipse Public License.
1314_ACEOF
1315  exit 0
1316fi
1317exec 5>config.log
1318cat >&5 <<_ACEOF
1319This file contains any messages produced by compilers while
1320running configure, to aid debugging if configure makes a mistake.
1321
1322It was created by Cbc $as_me 2.8, which was
1323generated by GNU Autoconf 2.59.  Invocation command line was
1324
1325  $ $0 $@
1326
1327_ACEOF
1328{
1329cat <<_ASUNAME
1330## --------- ##
1331## Platform. ##
1332## --------- ##
1333
1334hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1335uname -m = `(uname -m) 2>/dev/null || echo unknown`
1336uname -r = `(uname -r) 2>/dev/null || echo unknown`
1337uname -s = `(uname -s) 2>/dev/null || echo unknown`
1338uname -v = `(uname -v) 2>/dev/null || echo unknown`
1339
1340/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1341/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1342
1343/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1344/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1345/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1346hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1347/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1348/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1349/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1350
1351_ASUNAME
1352
1353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1354for as_dir in $PATH
1355do
1356  IFS=$as_save_IFS
1357  test -z "$as_dir" && as_dir=.
1358  echo "PATH: $as_dir"
1359done
1360
1361} >&5
1362
1363cat >&5 <<_ACEOF
1364
1365
1366## ----------- ##
1367## Core tests. ##
1368## ----------- ##
1369
1370_ACEOF
1371
1372
1373# Keep a trace of the command line.
1374# Strip out --no-create and --no-recursion so they do not pile up.
1375# Strip out --silent because we don't want to record it for future runs.
1376# Also quote any args containing shell meta-characters.
1377# Make two passes to allow for proper duplicate-argument suppression.
1378ac_configure_args=
1379ac_configure_args0=
1380ac_configure_args1=
1381ac_sep=
1382ac_must_keep_next=false
1383for ac_pass in 1 2
1384do
1385  for ac_arg
1386  do
1387    case $ac_arg in
1388    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1389    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1390    | -silent | --silent | --silen | --sile | --sil)
1391      continue ;;
1392    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1393      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1394    esac
1395    case $ac_pass in
1396    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1397    2)
1398      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1399      if test $ac_must_keep_next = true; then
1400        ac_must_keep_next=false # Got value, back to normal.
1401      else
1402        case $ac_arg in
1403          *=* | --config-cache | -C | -disable-* | --disable-* \
1404          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1405          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1406          | -with-* | --with-* | -without-* | --without-* | --x)
1407            case "$ac_configure_args0 " in
1408              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1409            esac
1410            ;;
1411          -* ) ac_must_keep_next=true ;;
1412        esac
1413      fi
1414      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1415      # Get rid of the leading space.
1416      ac_sep=" "
1417      ;;
1418    esac
1419  done
1420done
1421$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1422$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1423
1424# When interrupted or exit'd, cleanup temporary files, and complete
1425# config.log.  We remove comments because anyway the quotes in there
1426# would cause problems or look ugly.
1427# WARNING: Be sure not to use single quotes in there, as some shells,
1428# such as our DU 5.0 friend, will then `close' the trap.
1429trap 'exit_status=$?
1430  # Save into config.log some information that might help in debugging.
1431  {
1432    echo
1433
1434    cat <<\_ASBOX
1435## ---------------- ##
1436## Cache variables. ##
1437## ---------------- ##
1438_ASBOX
1439    echo
1440    # The following way of writing the cache mishandles newlines in values,
1441{
1442  (set) 2>&1 |
1443    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1444    *ac_space=\ *)
1445      sed -n \
1446        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1447          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1448      ;;
1449    *)
1450      sed -n \
1451        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1452      ;;
1453    esac;
1454}
1455    echo
1456
1457    cat <<\_ASBOX
1458## ----------------- ##
1459## Output variables. ##
1460## ----------------- ##
1461_ASBOX
1462    echo
1463    for ac_var in $ac_subst_vars
1464    do
1465      eval ac_val=$`echo $ac_var`
1466      echo "$ac_var='"'"'$ac_val'"'"'"
1467    done | sort
1468    echo
1469
1470    if test -n "$ac_subst_files"; then
1471      cat <<\_ASBOX
1472## ------------- ##
1473## Output files. ##
1474## ------------- ##
1475_ASBOX
1476      echo
1477      for ac_var in $ac_subst_files
1478      do
1479        eval ac_val=$`echo $ac_var`
1480        echo "$ac_var='"'"'$ac_val'"'"'"
1481      done | sort
1482      echo
1483    fi
1484
1485    if test -s confdefs.h; then
1486      cat <<\_ASBOX
1487## ----------- ##
1488## confdefs.h. ##
1489## ----------- ##
1490_ASBOX
1491      echo
1492      sed "/^$/d" confdefs.h | sort
1493      echo
1494    fi
1495    test "$ac_signal" != 0 &&
1496      echo "$as_me: caught signal $ac_signal"
1497    echo "$as_me: exit $exit_status"
1498  } >&5
1499  rm -f core *.core &&
1500  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1501    exit $exit_status
1502     ' 0
1503for ac_signal in 1 2 13 15; do
1504  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1505done
1506ac_signal=0
1507
1508# confdefs.h avoids OS command line length limits that DEFS can exceed.
1509rm -rf conftest* confdefs.h
1510# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1511echo >confdefs.h
1512
1513# Predefined preprocessor variables.
1514
1515cat >>confdefs.h <<_ACEOF
1516#define PACKAGE_NAME "$PACKAGE_NAME"
1517_ACEOF
1518
1519
1520cat >>confdefs.h <<_ACEOF
1521#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1522_ACEOF
1523
1524
1525cat >>confdefs.h <<_ACEOF
1526#define PACKAGE_VERSION "$PACKAGE_VERSION"
1527_ACEOF
1528
1529
1530cat >>confdefs.h <<_ACEOF
1531#define PACKAGE_STRING "$PACKAGE_STRING"
1532_ACEOF
1533
1534
1535cat >>confdefs.h <<_ACEOF
1536#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1537_ACEOF
1538
1539
1540# Let the site file select an alternate cache file if it wants to.
1541# Prefer explicitly selected file to automatically selected ones.
1542if test -z "$CONFIG_SITE"; then
1543  if test "x$prefix" != xNONE; then
1544    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1545  else
1546    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1547  fi
1548fi
1549for ac_site_file in $CONFIG_SITE; do
1550  if test -r "$ac_site_file"; then
1551    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1552echo "$as_me: loading site script $ac_site_file" >&6;}
1553    sed 's/^/| /' "$ac_site_file" >&5
1554    . "$ac_site_file"
1555  fi
1556done
1557
1558if test -r "$cache_file"; then
1559  # Some versions of bash will fail to source /dev/null (special
1560  # files actually), so we avoid doing that.
1561  if test -f "$cache_file"; then
1562    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1563echo "$as_me: loading cache $cache_file" >&6;}
1564    case $cache_file in
1565      [\\/]* | ?:[\\/]* ) . $cache_file;;
1566      *)                      . ./$cache_file;;
1567    esac
1568  fi
1569else
1570  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1571echo "$as_me: creating cache $cache_file" >&6;}
1572  >$cache_file
1573fi
1574
1575# Check that the precious variables saved in the cache have kept the same
1576# value.
1577ac_cache_corrupted=false
1578for ac_var in `(set) 2>&1 |
1579               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1580  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1581  eval ac_new_set=\$ac_env_${ac_var}_set
1582  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1583  eval ac_new_val="\$ac_env_${ac_var}_value"
1584  case $ac_old_set,$ac_new_set in
1585    set,)
1586      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1587echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1588      ac_cache_corrupted=: ;;
1589    ,set)
1590      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1591echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1592      ac_cache_corrupted=: ;;
1593    ,);;
1594    *)
1595      if test "x$ac_old_val" != "x$ac_new_val"; then
1596        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1597echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1598        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1599echo "$as_me:   former value:  $ac_old_val" >&2;}
1600        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1601echo "$as_me:   current value: $ac_new_val" >&2;}
1602        ac_cache_corrupted=:
1603      fi;;
1604  esac
1605  # Pass precious variables to config.status.
1606  if test "$ac_new_set" = set; then
1607    case $ac_new_val in
1608    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1609      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1610    *) ac_arg=$ac_var=$ac_new_val ;;
1611    esac
1612    case " $ac_configure_args " in
1613      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1614      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1615    esac
1616  fi
1617done
1618if $ac_cache_corrupted; then
1619  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1620echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1621  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1622echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1623   { (exit 1); exit 1; }; }
1624fi
1625
1626ac_ext=c
1627ac_cpp='$CPP $CPPFLAGS'
1628ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1629ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1630ac_compiler_gnu=$ac_cv_c_compiler_gnu
1631
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# List one file in the package so that the configure script can test
1662# whether the package is actually there
1663
1664
1665# Where should everything be installed by default?  Here, we want it
1666# to be installed directly in 'bin', 'lib', 'include' subdirectories
1667# of the directory where configure is run.  The default would be
1668# /usr/local.
1669
1670
1671#############################################################################
1672#                         Standard build tool stuff                         #
1673#############################################################################
1674
1675# Get the system type
1676ac_aux_dir=
1677for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1678  if test -f $ac_dir/install-sh; then
1679    ac_aux_dir=$ac_dir
1680    ac_install_sh="$ac_aux_dir/install-sh -c"
1681    break
1682  elif test -f $ac_dir/install.sh; then
1683    ac_aux_dir=$ac_dir
1684    ac_install_sh="$ac_aux_dir/install.sh -c"
1685    break
1686  elif test -f $ac_dir/shtool; then
1687    ac_aux_dir=$ac_dir
1688    ac_install_sh="$ac_aux_dir/shtool install -c"
1689    break
1690  fi
1691done
1692if test -z "$ac_aux_dir"; then
1693  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1694echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1695   { (exit 1); exit 1; }; }
1696fi
1697ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1698ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1699ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1700
1701# Make sure we can run config.sub.
1702$ac_config_sub sun4 >/dev/null 2>&1 ||
1703  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1704echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1705   { (exit 1); exit 1; }; }
1706
1707echo "$as_me:$LINENO: checking build system type" >&5
1708echo $ECHO_N "checking build system type... $ECHO_C" >&6
1709if test "${ac_cv_build+set}" = set; then
1710  echo $ECHO_N "(cached) $ECHO_C" >&6
1711else
1712  ac_cv_build_alias=$build_alias
1713test -z "$ac_cv_build_alias" &&
1714  ac_cv_build_alias=`$ac_config_guess`
1715test -z "$ac_cv_build_alias" &&
1716  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1717echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1718   { (exit 1); exit 1; }; }
1719ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1720  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1721echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1722   { (exit 1); exit 1; }; }
1723
1724fi
1725echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1726echo "${ECHO_T}$ac_cv_build" >&6
1727build=$ac_cv_build
1728build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1729build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1730build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1731
1732
1733
1734# If this project depends on external projects, the Externals file in
1735# the source root directory contains definition of where to find those
1736# externals.  The following macro ensures that those externals are
1737# retrieved by svn if they are not there yet.
1738
1739# As backup, we make sure we don't loose an FLIBS if it has been set
1740# by the user
1741save_FLIBS="$FLIBS"
1742
1743# A useful makefile conditional that is always false
1744
1745
1746if false; then
1747  ALWAYS_FALSE_TRUE=
1748  ALWAYS_FALSE_FALSE='#'
1749else
1750  ALWAYS_FALSE_TRUE='#'
1751  ALWAYS_FALSE_FALSE=
1752fi
1753
1754
1755# We set the following variable so that we know later in AC_COIN_FINALIZE
1756# that we are in a project main directory
1757coin_projectdir=yes
1758
1759# Set the project's version numbers
1760
1761
1762cat >>confdefs.h <<_ACEOF
1763#define CBC_VERSION "$PACKAGE_VERSION"
1764_ACEOF
1765
1766
1767  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1768  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1769  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1770  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1771  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1772  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1773
1774cat >>confdefs.h <<_ACEOF
1775#define CBC_VERSION_MAJOR $coin_majorver
1776_ACEOF
1777
1778
1779cat >>confdefs.h <<_ACEOF
1780#define CBC_VERSION_MINOR $coin_minorver
1781_ACEOF
1782
1783
1784cat >>confdefs.h <<_ACEOF
1785#define CBC_VERSION_RELEASE $coin_releasever
1786_ACEOF
1787
1788
1789  # We use the following variable to have a string with the upper case
1790  # version of the project name
1791  COIN_PRJCT=CBC
1792
1793  # Set the project's SVN revision number. The complicated sed expression
1794  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1795  # as a single number.
1796  # Extract the first word of "svnversion", so it can be a program name with args.
1797set dummy svnversion; ac_word=$2
1798echo "$as_me:$LINENO: checking for $ac_word" >&5
1799echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1800if test "${ac_cv_prog_have_svnversion+set}" = set; then
1801  echo $ECHO_N "(cached) $ECHO_C" >&6
1802else
1803  if test -n "$have_svnversion"; then
1804  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1805else
1806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1807for as_dir in $PATH
1808do
1809  IFS=$as_save_IFS
1810  test -z "$as_dir" && as_dir=.
1811  for ac_exec_ext in '' $ac_executable_extensions; do
1812  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1813    ac_cv_prog_have_svnversion="yes"
1814    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1815    break 2
1816  fi
1817done
1818done
1819
1820  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1821fi
1822fi
1823have_svnversion=$ac_cv_prog_have_svnversion
1824if test -n "$have_svnversion"; then
1825  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1826echo "${ECHO_T}$have_svnversion" >&6
1827else
1828  echo "$as_me:$LINENO: result: no" >&5
1829echo "${ECHO_T}no" >&6
1830fi
1831
1832  if test "x$have_svnversion" = xyes; then
1833
1834    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1835    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
1836      CBC_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1837
1838cat >>confdefs.h <<_ACEOF
1839#define CBC_SVN_REV $CBC_SVN_REV
1840_ACEOF
1841
1842    fi
1843  fi
1844
1845
1846
1847# Capture libtool library version, if given.
1848
1849
1850
1851
1852# Check if user wants to produce debugging code
1853
1854echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1855echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1856
1857# Check whether --enable-debug or --disable-debug was given.
1858if test "${enable_debug+set}" = set; then
1859  enableval="$enable_debug"
1860  case "${enableval}" in
1861   yes) coin_debug_compile=true
1862        if test "${enable_shared+set}" = set; then :; else
1863          enable_shared=no
1864        fi
1865        ;;
1866   no)  coin_debug_compile=false
1867        ;;
1868   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1869echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1870   { (exit 1); exit 1; }; }
1871        ;;
1872esac
1873else
1874  coin_debug_compile=false
1875fi;
1876
1877# Check whether --enable-debug-cbc or --disable-debug-cbc was given.
1878if test "${enable_debug_cbc+set}" = set; then
1879  enableval="$enable_debug_cbc"
1880  case "${enableval}" in
1881    yes) coin_debug_compile=true
1882         ;;
1883    no)  coin_debug_compile=false
1884         ;;
1885    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-cbc" >&5
1886echo "$as_me: error: bad value ${enableval} for --enable-debug-cbc" >&2;}
1887   { (exit 1); exit 1; }; }
1888         ;;
1889 esac
1890else
1891  :
1892fi;
1893
1894 # m4_ifvaln([Cbc],
1895
1896if test $coin_debug_compile = true; then
1897  echo "$as_me:$LINENO: result: yes" >&5
1898echo "${ECHO_T}yes" >&6
1899else
1900  echo "$as_me:$LINENO: result: no" >&5
1901echo "${ECHO_T}no" >&6
1902fi
1903
1904
1905# Check whether --with-cbc-verbosity or --without-cbc-verbosity was given.
1906if test "${with_cbc_verbosity+set}" = set; then
1907  withval="$with_cbc_verbosity"
1908  if test "$withval" = yes; then
1909                withval=1
1910              fi
1911              coin_cbc_verbosity=$withval
1912else
1913  coin_cbc_verbosity=0
1914fi;
1915
1916cat >>confdefs.h <<_ACEOF
1917#define COIN_CBC_VERBOSITY $coin_cbc_verbosity
1918_ACEOF
1919
1920
1921
1922# Check whether --with-cbc-checklevel or --without-cbc-checklevel was given.
1923if test "${with_cbc_checklevel+set}" = set; then
1924  withval="$with_cbc_checklevel"
1925  if test "$withval" = yes; then
1926                withval=1
1927              fi
1928              coin_cbc_checklevel=$withval
1929else
1930  coin_cbc_checklevel=0
1931fi;
1932
1933cat >>confdefs.h <<_ACEOF
1934#define COIN_CBC_CHECKLEVEL $coin_cbc_checklevel
1935_ACEOF
1936
1937
1938 # m4_ifvaln([Cbc],
1939
1940
1941
1942# Get the name of the C++ compiler and appropriate compiler options
1943case $build in
1944  *-mingw*)
1945    if test "${LD+set}" = set; then :; else
1946      LD=link
1947    fi
1948    ;;
1949 esac
1950 case $enable_doscompile in
1951   msvc)
1952     if test "x${LD+set}" = xset; then :; else
1953       LD=link
1954     fi
1955     ;;
1956 esac
1957
1958
1959 # Check whether --enable-doscompile or --disable-doscompile was given.
1960if test "${enable_doscompile+set}" = set; then
1961  enableval="$enable_doscompile"
1962  if test "$enable_doscompile" != no; then
1963     case $build in
1964       *-cygwin* | *-mingw*) ;;
1965       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1966echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1967   { (exit 1); exit 1; }; } ;;
1968     esac
1969   fi
1970else
1971  enable_doscompile=no
1972fi;
1973 case "$enable_doscompile" in
1974   mingw)
1975     case $build in
1976       *-mingw*) enable_doscompile=no ;;
1977     esac
1978     ;;
1979   msvc|no) ;;
1980   yes) enable_doscompile=mingw ;;
1981   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1982                    Try configure --help=recursive." >&5
1983echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1984                    Try configure --help=recursive." >&2;}
1985   { (exit 1); exit 1; }; }
1986      ;;
1987  esac
1988  if test "$enable_doscompile" != no ; then
1989    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1990echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1991  fi
1992
1993
1994
1995
1996ac_ext=c
1997ac_cpp='$CPP $CPPFLAGS'
1998ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1999ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2000ac_compiler_gnu=$ac_cv_c_compiler_gnu
2001
2002
2003# For consistency, we set the C compiler to the same value of the C++
2004# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
2005if test x"$CXX" != x; then
2006  case "$CXX" in
2007    clang* ) ;;
2008    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2009      if test x"$CC" = x; then
2010        CC="$CXX"
2011        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
2012echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
2013      fi
2014      ;;
2015  esac
2016fi
2017
2018
2019
2020
2021
2022
2023coin_has_cc=yes
2024
2025save_cflags="$CFLAGS"
2026
2027# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
2028# Depending on the user's PATH, when Studio/Workshop cc is not present we may
2029# find /usr/ucb/cc, which is almost certainly not a good choice for the C
2030# compiler. In this case, put cc after gcc.
2031
2032case $build in
2033  *-cygwin* | *-mingw*)
2034             if test "$enable_doscompile" = msvc ; then
2035               comps="icl cl"
2036             else
2037               comps="gcc cl"
2038             fi ;;
2039  *-*-solaris*)
2040             # Extract the first word of "cc", so it can be a program name with args.
2041set dummy cc; ac_word=$2
2042echo "$as_me:$LINENO: checking for $ac_word" >&5
2043echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2044if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
2045  echo $ECHO_N "(cached) $ECHO_C" >&6
2046else
2047  if test -n "$sol_cc_compiler"; then
2048  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
2049else
2050  ac_prog_rejected=no
2051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2052for as_dir in $PATH
2053do
2054  IFS=$as_save_IFS
2055  test -z "$as_dir" && as_dir=.
2056  for ac_exec_ext in '' $ac_executable_extensions; do
2057  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2058    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2059       ac_prog_rejected=yes
2060       continue
2061     fi
2062    ac_cv_prog_sol_cc_compiler="cc"
2063    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2064    break 2
2065  fi
2066done
2067done
2068
2069if test $ac_prog_rejected = yes; then
2070  # We found a bogon in the path, so make sure we never use it.
2071  set dummy $ac_cv_prog_sol_cc_compiler
2072  shift
2073  if test $# != 0; then
2074    # We chose a different compiler from the bogus one.
2075    # However, it has the same basename, so the bogon will be chosen
2076    # first if we set sol_cc_compiler to just the basename; use the full file name.
2077    shift
2078    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2079  fi
2080fi
2081fi
2082fi
2083sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2084if test -n "$sol_cc_compiler"; then
2085  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2086echo "${ECHO_T}$sol_cc_compiler" >&6
2087else
2088  echo "$as_me:$LINENO: result: no" >&5
2089echo "${ECHO_T}no" >&6
2090fi
2091
2092             if test "$sol_cc_compiler" = "cc" ; then
2093               comps="cc xlc gcc pgcc icc"
2094             else
2095               comps="xlc gcc pgcc icc cc"
2096             fi
2097             ;;
2098  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2099  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2100  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2101esac
2102
2103# We delete the cached value, since the test might not have been
2104# performed with our choice of compilers earlier
2105$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2106# AC_MSG_NOTICE([C compiler candidates: $comps])
2107ac_ext=c
2108ac_cpp='$CPP $CPPFLAGS'
2109ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2110ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2111ac_compiler_gnu=$ac_cv_c_compiler_gnu
2112if test -n "$ac_tool_prefix"; then
2113  for ac_prog in $comps
2114  do
2115    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2116set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2117echo "$as_me:$LINENO: checking for $ac_word" >&5
2118echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2119if test "${ac_cv_prog_CC+set}" = set; then
2120  echo $ECHO_N "(cached) $ECHO_C" >&6
2121else
2122  if test -n "$CC"; then
2123  ac_cv_prog_CC="$CC" # Let the user override the test.
2124else
2125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2126for as_dir in $PATH
2127do
2128  IFS=$as_save_IFS
2129  test -z "$as_dir" && as_dir=.
2130  for ac_exec_ext in '' $ac_executable_extensions; do
2131  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2132    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2133    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2134    break 2
2135  fi
2136done
2137done
2138
2139fi
2140fi
2141CC=$ac_cv_prog_CC
2142if test -n "$CC"; then
2143  echo "$as_me:$LINENO: result: $CC" >&5
2144echo "${ECHO_T}$CC" >&6
2145else
2146  echo "$as_me:$LINENO: result: no" >&5
2147echo "${ECHO_T}no" >&6
2148fi
2149
2150    test -n "$CC" && break
2151  done
2152fi
2153if test -z "$CC"; then
2154  ac_ct_CC=$CC
2155  for ac_prog in $comps
2156do
2157  # Extract the first word of "$ac_prog", so it can be a program name with args.
2158set dummy $ac_prog; ac_word=$2
2159echo "$as_me:$LINENO: checking for $ac_word" >&5
2160echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2161if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2162  echo $ECHO_N "(cached) $ECHO_C" >&6
2163else
2164  if test -n "$ac_ct_CC"; then
2165  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2166else
2167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2168for as_dir in $PATH
2169do
2170  IFS=$as_save_IFS
2171  test -z "$as_dir" && as_dir=.
2172  for ac_exec_ext in '' $ac_executable_extensions; do
2173  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2174    ac_cv_prog_ac_ct_CC="$ac_prog"
2175    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2176    break 2
2177  fi
2178done
2179done
2180
2181fi
2182fi
2183ac_ct_CC=$ac_cv_prog_ac_ct_CC
2184if test -n "$ac_ct_CC"; then
2185  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2186echo "${ECHO_T}$ac_ct_CC" >&6
2187else
2188  echo "$as_me:$LINENO: result: no" >&5
2189echo "${ECHO_T}no" >&6
2190fi
2191
2192  test -n "$ac_ct_CC" && break
2193done
2194
2195  CC=$ac_ct_CC
2196fi
2197
2198
2199test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2200See \`config.log' for more details." >&5
2201echo "$as_me: error: no acceptable C compiler found in \$PATH
2202See \`config.log' for more details." >&2;}
2203   { (exit 1); exit 1; }; }
2204
2205# Provide some information about the compiler.
2206echo "$as_me:$LINENO:" \
2207     "checking for C compiler version" >&5
2208ac_compiler=`set X $ac_compile; echo $2`
2209{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2210  (eval $ac_compiler --version </dev/null >&5) 2>&5
2211  ac_status=$?
2212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2213  (exit $ac_status); }
2214{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2215  (eval $ac_compiler -v </dev/null >&5) 2>&5
2216  ac_status=$?
2217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218  (exit $ac_status); }
2219{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2220  (eval $ac_compiler -V </dev/null >&5) 2>&5
2221  ac_status=$?
2222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223  (exit $ac_status); }
2224
2225cat >conftest.$ac_ext <<_ACEOF
2226/* confdefs.h.  */
2227_ACEOF
2228cat confdefs.h >>conftest.$ac_ext
2229cat >>conftest.$ac_ext <<_ACEOF
2230/* end confdefs.h.  */
2231
2232int
2233main ()
2234{
2235
2236  ;
2237  return 0;
2238}
2239_ACEOF
2240ac_clean_files_save=$ac_clean_files
2241ac_clean_files="$ac_clean_files a.out a.exe b.out"
2242# Try to create an executable without -o first, disregard a.out.
2243# It will help us diagnose broken compilers, and finding out an intuition
2244# of exeext.
2245echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2246echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2247ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2248if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2249  (eval $ac_link_default) 2>&5
2250  ac_status=$?
2251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252  (exit $ac_status); }; then
2253  # Find the output, starting from the most likely.  This scheme is
2254# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2255# resort.
2256
2257# Be careful to initialize this variable, since it used to be cached.
2258# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2259ac_cv_exeext=
2260# b.out is created by i960 compilers.
2261for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2262do
2263  test -f "$ac_file" || continue
2264  case $ac_file in
2265    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2266        ;;
2267    conftest.$ac_ext )
2268        # This is the source file.
2269        ;;
2270    [ab].out )
2271        # We found the default executable, but exeext='' is most
2272        # certainly right.
2273        break;;
2274    *.* )
2275        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2276        # FIXME: I believe we export ac_cv_exeext for Libtool,
2277        # but it would be cool to find out if it's true.  Does anybody
2278        # maintain Libtool? --akim.
2279        export ac_cv_exeext
2280        break;;
2281    * )
2282        break;;
2283  esac
2284done
2285else
2286  echo "$as_me: failed program was:" >&5
2287sed 's/^/| /' conftest.$ac_ext >&5
2288
2289{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2290See \`config.log' for more details." >&5
2291echo "$as_me: error: C compiler cannot create executables
2292See \`config.log' for more details." >&2;}
2293   { (exit 77); exit 77; }; }
2294fi
2295
2296ac_exeext=$ac_cv_exeext
2297echo "$as_me:$LINENO: result: $ac_file" >&5
2298echo "${ECHO_T}$ac_file" >&6
2299
2300# Check the compiler produces executables we can run.  If not, either
2301# the compiler is broken, or we cross compile.
2302echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2303echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2304# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2305# If not cross compiling, check that we can run a simple program.
2306if test "$cross_compiling" != yes; then
2307  if { ac_try='./$ac_file'
2308  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2309  (eval $ac_try) 2>&5
2310  ac_status=$?
2311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312  (exit $ac_status); }; }; then
2313    cross_compiling=no
2314  else
2315    if test "$cross_compiling" = maybe; then
2316        cross_compiling=yes
2317    else
2318        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2319If you meant to cross compile, use \`--host'.
2320See \`config.log' for more details." >&5
2321echo "$as_me: error: cannot run C compiled programs.
2322If you meant to cross compile, use \`--host'.
2323See \`config.log' for more details." >&2;}
2324   { (exit 1); exit 1; }; }
2325    fi
2326  fi
2327fi
2328echo "$as_me:$LINENO: result: yes" >&5
2329echo "${ECHO_T}yes" >&6
2330
2331rm -f a.out a.exe conftest$ac_cv_exeext b.out
2332ac_clean_files=$ac_clean_files_save
2333# Check the compiler produces executables we can run.  If not, either
2334# the compiler is broken, or we cross compile.
2335echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2336echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2337echo "$as_me:$LINENO: result: $cross_compiling" >&5
2338echo "${ECHO_T}$cross_compiling" >&6
2339
2340echo "$as_me:$LINENO: checking for suffix of executables" >&5
2341echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2342if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2343  (eval $ac_link) 2>&5
2344  ac_status=$?
2345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346  (exit $ac_status); }; then
2347  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2348# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2349# work properly (i.e., refer to `conftest.exe'), while it won't with
2350# `rm'.
2351for ac_file in conftest.exe conftest conftest.*; do
2352  test -f "$ac_file" || continue
2353  case $ac_file in
2354    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2355    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2356          export ac_cv_exeext
2357          break;;
2358    * ) break;;
2359  esac
2360done
2361else
2362  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2363See \`config.log' for more details." >&5
2364echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2365See \`config.log' for more details." >&2;}
2366   { (exit 1); exit 1; }; }
2367fi
2368
2369rm -f conftest$ac_cv_exeext
2370echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2371echo "${ECHO_T}$ac_cv_exeext" >&6
2372
2373rm -f conftest.$ac_ext
2374EXEEXT=$ac_cv_exeext
2375ac_exeext=$EXEEXT
2376echo "$as_me:$LINENO: checking for suffix of object files" >&5
2377echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2378if test "${ac_cv_objext+set}" = set; then
2379  echo $ECHO_N "(cached) $ECHO_C" >&6
2380else
2381  cat >conftest.$ac_ext <<_ACEOF
2382/* confdefs.h.  */
2383_ACEOF
2384cat confdefs.h >>conftest.$ac_ext
2385cat >>conftest.$ac_ext <<_ACEOF
2386/* end confdefs.h.  */
2387
2388int
2389main ()
2390{
2391
2392  ;
2393  return 0;
2394}
2395_ACEOF
2396rm -f conftest.o conftest.obj
2397if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2398  (eval $ac_compile) 2>&5
2399  ac_status=$?
2400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401  (exit $ac_status); }; then
2402  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2403  case $ac_file in
2404    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2405    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2406       break;;
2407  esac
2408done
2409else
2410  echo "$as_me: failed program was:" >&5
2411sed 's/^/| /' conftest.$ac_ext >&5
2412
2413{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2414See \`config.log' for more details." >&5
2415echo "$as_me: error: cannot compute suffix of object files: cannot compile
2416See \`config.log' for more details." >&2;}
2417   { (exit 1); exit 1; }; }
2418fi
2419
2420rm -f conftest.$ac_cv_objext conftest.$ac_ext
2421fi
2422echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2423echo "${ECHO_T}$ac_cv_objext" >&6
2424OBJEXT=$ac_cv_objext
2425ac_objext=$OBJEXT
2426echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2427echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2428if test "${ac_cv_c_compiler_gnu+set}" = set; then
2429  echo $ECHO_N "(cached) $ECHO_C" >&6
2430else
2431  cat >conftest.$ac_ext <<_ACEOF
2432/* confdefs.h.  */
2433_ACEOF
2434cat confdefs.h >>conftest.$ac_ext
2435cat >>conftest.$ac_ext <<_ACEOF
2436/* end confdefs.h.  */
2437
2438int
2439main ()
2440{
2441#ifndef __GNUC__
2442       choke me
2443#endif
2444
2445  ;
2446  return 0;
2447}
2448_ACEOF
2449rm -f conftest.$ac_objext
2450if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2451  (eval $ac_compile) 2>conftest.er1
2452  ac_status=$?
2453  grep -v '^ *+' conftest.er1 >conftest.err
2454  rm -f conftest.er1
2455  cat conftest.err >&5
2456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457  (exit $ac_status); } &&
2458         { ac_try='test -z "$ac_c_werror_flag"
2459                         || test ! -s conftest.err'
2460  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2461  (eval $ac_try) 2>&5
2462  ac_status=$?
2463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464  (exit $ac_status); }; } &&
2465         { ac_try='test -s conftest.$ac_objext'
2466  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2467  (eval $ac_try) 2>&5
2468  ac_status=$?
2469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470  (exit $ac_status); }; }; then
2471  ac_compiler_gnu=yes
2472else
2473  echo "$as_me: failed program was:" >&5
2474sed 's/^/| /' conftest.$ac_ext >&5
2475
2476ac_compiler_gnu=no
2477fi
2478rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2479ac_cv_c_compiler_gnu=$ac_compiler_gnu
2480
2481fi
2482echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2483echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2484GCC=`test $ac_compiler_gnu = yes && echo yes`
2485ac_test_CFLAGS=${CFLAGS+set}
2486ac_save_CFLAGS=$CFLAGS
2487CFLAGS="-g"
2488echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2489echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2490if test "${ac_cv_prog_cc_g+set}" = set; then
2491  echo $ECHO_N "(cached) $ECHO_C" >&6
2492else
2493  cat >conftest.$ac_ext <<_ACEOF
2494/* confdefs.h.  */
2495_ACEOF
2496cat confdefs.h >>conftest.$ac_ext
2497cat >>conftest.$ac_ext <<_ACEOF
2498/* end confdefs.h.  */
2499
2500int
2501main ()
2502{
2503
2504  ;
2505  return 0;
2506}
2507_ACEOF
2508rm -f conftest.$ac_objext
2509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2510  (eval $ac_compile) 2>conftest.er1
2511  ac_status=$?
2512  grep -v '^ *+' conftest.er1 >conftest.err
2513  rm -f conftest.er1
2514  cat conftest.err >&5
2515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516  (exit $ac_status); } &&
2517         { ac_try='test -z "$ac_c_werror_flag"
2518                         || test ! -s conftest.err'
2519  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2520  (eval $ac_try) 2>&5
2521  ac_status=$?
2522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2523  (exit $ac_status); }; } &&
2524         { ac_try='test -s conftest.$ac_objext'
2525  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2526  (eval $ac_try) 2>&5
2527  ac_status=$?
2528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529  (exit $ac_status); }; }; then
2530  ac_cv_prog_cc_g=yes
2531else
2532  echo "$as_me: failed program was:" >&5
2533sed 's/^/| /' conftest.$ac_ext >&5
2534
2535ac_cv_prog_cc_g=no
2536fi
2537rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2538fi
2539echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2540echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2541if test "$ac_test_CFLAGS" = set; then
2542  CFLAGS=$ac_save_CFLAGS
2543elif test $ac_cv_prog_cc_g = yes; then
2544  if test "$GCC" = yes; then
2545    CFLAGS="-g -O2"
2546  else
2547    CFLAGS="-g"
2548  fi
2549else
2550  if test "$GCC" = yes; then
2551    CFLAGS="-O2"
2552  else
2553    CFLAGS=
2554  fi
2555fi
2556echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2557echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2558if test "${ac_cv_prog_cc_stdc+set}" = set; then
2559  echo $ECHO_N "(cached) $ECHO_C" >&6
2560else
2561  ac_cv_prog_cc_stdc=no
2562ac_save_CC=$CC
2563cat >conftest.$ac_ext <<_ACEOF
2564/* confdefs.h.  */
2565_ACEOF
2566cat confdefs.h >>conftest.$ac_ext
2567cat >>conftest.$ac_ext <<_ACEOF
2568/* end confdefs.h.  */
2569#include <stdarg.h>
2570#include <stdio.h>
2571#include <sys/types.h>
2572#include <sys/stat.h>
2573/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2574struct buf { int x; };
2575FILE * (*rcsopen) (struct buf *, struct stat *, int);
2576static char *e (p, i)
2577     char **p;
2578     int i;
2579{
2580  return p[i];
2581}
2582static char *f (char * (*g) (char **, int), char **p, ...)
2583{
2584  char *s;
2585  va_list v;
2586  va_start (v,p);
2587  s = g (p, va_arg (v,int));
2588  va_end (v);
2589  return s;
2590}
2591
2592/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2593   function prototypes and stuff, but not '\xHH' hex character constants.
2594   These don't provoke an error unfortunately, instead are silently treated
2595   as 'x'.  The following induces an error, until -std1 is added to get
2596   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2597   array size at least.  It's necessary to write '\x00'==0 to get something
2598   that's true only with -std1.  */
2599int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2600
2601int test (int i, double x);
2602struct s1 {int (*f) (int a);};
2603struct s2 {int (*f) (double a);};
2604int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2605int argc;
2606char **argv;
2607int
2608main ()
2609{
2610return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2611  ;
2612  return 0;
2613}
2614_ACEOF
2615# Don't try gcc -ansi; that turns off useful extensions and
2616# breaks some systems' header files.
2617# AIX                   -qlanglvl=ansi
2618# Ultrix and OSF/1      -std1
2619# HP-UX 10.20 and later -Ae
2620# HP-UX older versions  -Aa -D_HPUX_SOURCE
2621# SVR4                  -Xc -D__EXTENSIONS__
2622for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2623do
2624  CC="$ac_save_CC $ac_arg"
2625  rm -f conftest.$ac_objext
2626if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2627  (eval $ac_compile) 2>conftest.er1
2628  ac_status=$?
2629  grep -v '^ *+' conftest.er1 >conftest.err
2630  rm -f conftest.er1
2631  cat conftest.err >&5
2632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633  (exit $ac_status); } &&
2634         { ac_try='test -z "$ac_c_werror_flag"
2635                         || test ! -s conftest.err'
2636  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2637  (eval $ac_try) 2>&5
2638  ac_status=$?
2639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640  (exit $ac_status); }; } &&
2641         { ac_try='test -s conftest.$ac_objext'
2642  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2643  (eval $ac_try) 2>&5
2644  ac_status=$?
2645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646  (exit $ac_status); }; }; then
2647  ac_cv_prog_cc_stdc=$ac_arg
2648break
2649else
2650  echo "$as_me: failed program was:" >&5
2651sed 's/^/| /' conftest.$ac_ext >&5
2652
2653fi
2654rm -f conftest.err conftest.$ac_objext
2655done
2656rm -f conftest.$ac_ext conftest.$ac_objext
2657CC=$ac_save_CC
2658
2659fi
2660
2661case "x$ac_cv_prog_cc_stdc" in
2662  x|xno)
2663    echo "$as_me:$LINENO: result: none needed" >&5
2664echo "${ECHO_T}none needed" >&6 ;;
2665  *)
2666    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2667echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2668    CC="$CC $ac_cv_prog_cc_stdc" ;;
2669esac
2670
2671# Some people use a C++ compiler to compile C.  Since we use `exit',
2672# in C++ we need to declare it.  In case someone uses the same compiler
2673# for both compiling C and C++ we need to have the C++ compiler decide
2674# the declaration of exit, since it's the most demanding environment.
2675cat >conftest.$ac_ext <<_ACEOF
2676#ifndef __cplusplus
2677  choke me
2678#endif
2679_ACEOF
2680rm -f conftest.$ac_objext
2681if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2682  (eval $ac_compile) 2>conftest.er1
2683  ac_status=$?
2684  grep -v '^ *+' conftest.er1 >conftest.err
2685  rm -f conftest.er1
2686  cat conftest.err >&5
2687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688  (exit $ac_status); } &&
2689         { ac_try='test -z "$ac_c_werror_flag"
2690                         || test ! -s conftest.err'
2691  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2692  (eval $ac_try) 2>&5
2693  ac_status=$?
2694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695  (exit $ac_status); }; } &&
2696         { ac_try='test -s conftest.$ac_objext'
2697  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2698  (eval $ac_try) 2>&5
2699  ac_status=$?
2700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701  (exit $ac_status); }; }; then
2702  for ac_declaration in \
2703   '' \
2704   'extern "C" void std::exit (int) throw (); using std::exit;' \
2705   'extern "C" void std::exit (int); using std::exit;' \
2706   'extern "C" void exit (int) throw ();' \
2707   'extern "C" void exit (int);' \
2708   'void exit (int);'
2709do
2710  cat >conftest.$ac_ext <<_ACEOF
2711/* confdefs.h.  */
2712_ACEOF
2713cat confdefs.h >>conftest.$ac_ext
2714cat >>conftest.$ac_ext <<_ACEOF
2715/* end confdefs.h.  */
2716$ac_declaration
2717#include <stdlib.h>
2718int
2719main ()
2720{
2721exit (42);
2722  ;
2723  return 0;
2724}
2725_ACEOF
2726rm -f conftest.$ac_objext
2727if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2728  (eval $ac_compile) 2>conftest.er1
2729  ac_status=$?
2730  grep -v '^ *+' conftest.er1 >conftest.err
2731  rm -f conftest.er1
2732  cat conftest.err >&5
2733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734  (exit $ac_status); } &&
2735         { ac_try='test -z "$ac_c_werror_flag"
2736                         || test ! -s conftest.err'
2737  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2738  (eval $ac_try) 2>&5
2739  ac_status=$?
2740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741  (exit $ac_status); }; } &&
2742         { ac_try='test -s conftest.$ac_objext'
2743  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2744  (eval $ac_try) 2>&5
2745  ac_status=$?
2746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747  (exit $ac_status); }; }; then
2748  :
2749else
2750  echo "$as_me: failed program was:" >&5
2751sed 's/^/| /' conftest.$ac_ext >&5
2752
2753continue
2754fi
2755rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2756  cat >conftest.$ac_ext <<_ACEOF
2757/* confdefs.h.  */
2758_ACEOF
2759cat confdefs.h >>conftest.$ac_ext
2760cat >>conftest.$ac_ext <<_ACEOF
2761/* end confdefs.h.  */
2762$ac_declaration
2763int
2764main ()
2765{
2766exit (42);
2767  ;
2768  return 0;
2769}
2770_ACEOF
2771rm -f conftest.$ac_objext
2772if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2773  (eval $ac_compile) 2>conftest.er1
2774  ac_status=$?
2775  grep -v '^ *+' conftest.er1 >conftest.err
2776  rm -f conftest.er1
2777  cat conftest.err >&5
2778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779  (exit $ac_status); } &&
2780         { ac_try='test -z "$ac_c_werror_flag"
2781                         || test ! -s conftest.err'
2782  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2783  (eval $ac_try) 2>&5
2784  ac_status=$?
2785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786  (exit $ac_status); }; } &&
2787         { ac_try='test -s conftest.$ac_objext'
2788  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2789  (eval $ac_try) 2>&5
2790  ac_status=$?
2791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792  (exit $ac_status); }; }; then
2793  break
2794else
2795  echo "$as_me: failed program was:" >&5
2796sed 's/^/| /' conftest.$ac_ext >&5
2797
2798fi
2799rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2800done
2801rm -f conftest*
2802if test -n "$ac_declaration"; then
2803  echo '#ifdef __cplusplus' >>confdefs.h
2804  echo $ac_declaration      >>confdefs.h
2805  echo '#endif'             >>confdefs.h
2806fi
2807
2808else
2809  echo "$as_me: failed program was:" >&5
2810sed 's/^/| /' conftest.$ac_ext >&5
2811
2812fi
2813rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2814ac_ext=c
2815ac_cpp='$CPP $CPPFLAGS'
2816ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2817ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2818ac_compiler_gnu=$ac_cv_c_compiler_gnu
2819
2820if test -z "$CC" ; then
2821  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2822echo "$as_me: error: Failed to find a C compiler!" >&2;}
2823   { (exit 1); exit 1; }; }
2824fi
2825# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2826case "$CC" in
2827  clang* ) ;;
2828  cl* | */cl* | CL* | */CL* )
2829    if test "$ac_cv_prog_cc_g" = yes ; then
2830      ac_cv_prog_cc_g=no
2831      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2832echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2833    fi ;;
2834esac
2835CFLAGS="$save_cflags"
2836
2837# add automake conditional so we can recognize cl compiler in makefile
2838coin_cc_is_cl=false
2839case "$CC" in
2840  clang* ) ;;
2841  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2842    coin_cc_is_cl=true
2843    ;;
2844esac
2845
2846
2847if test $coin_cc_is_cl = true; then
2848  COIN_CC_IS_CL_TRUE=
2849  COIN_CC_IS_CL_FALSE='#'
2850else
2851  COIN_CC_IS_CL_TRUE='#'
2852  COIN_CC_IS_CL_FALSE=
2853fi
2854
2855
2856# Check if a project specific CFLAGS variable has been set
2857if test x$COIN_PRJCT != x; then
2858  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2859  if test x$coin_tmp = xset; then
2860    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2861  fi
2862fi
2863
2864if test x"$CFLAGS" = x; then
2865
2866  coin_add_cflags=
2867  coin_opt_cflags=
2868  coin_dbg_cflags=
2869  coin_warn_cflags=
2870
2871  if test "$GCC" = "yes"; then
2872    case "$CC" in
2873      icc* | */icc*)
2874        ;;
2875      *)
2876        coin_opt_cflags="-O3"
2877        coin_add_cflags="-pipe"
2878        coin_dbg_cflags="-g -O0"
2879        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2880        case $build in
2881          *-darwin*)
2882            ;;
2883          *)
2884            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2885            ;;
2886        esac
2887        case $enable_doscompile in
2888          mingw)
2889            CFLAGS="-mno-cygwin"
2890            cat >conftest.$ac_ext <<_ACEOF
2891/* confdefs.h.  */
2892_ACEOF
2893cat confdefs.h >>conftest.$ac_ext
2894cat >>conftest.$ac_ext <<_ACEOF
2895/* end confdefs.h.  */
2896
2897int
2898main ()
2899{
2900int i=0; i++;
2901  ;
2902  return 0;
2903}
2904_ACEOF
2905rm -f conftest.$ac_objext conftest$ac_exeext
2906if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2907  (eval $ac_link) 2>conftest.er1
2908  ac_status=$?
2909  grep -v '^ *+' conftest.er1 >conftest.err
2910  rm -f conftest.er1
2911  cat conftest.err >&5
2912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913  (exit $ac_status); } &&
2914         { ac_try='test -z "$ac_c_werror_flag"
2915                         || test ! -s conftest.err'
2916  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2917  (eval $ac_try) 2>&5
2918  ac_status=$?
2919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920  (exit $ac_status); }; } &&
2921         { ac_try='test -s conftest$ac_exeext'
2922  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2923  (eval $ac_try) 2>&5
2924  ac_status=$?
2925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926  (exit $ac_status); }; }; then
2927  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2928else
2929  echo "$as_me: failed program was:" >&5
2930sed 's/^/| /' conftest.$ac_ext >&5
2931
2932fi
2933rm -f conftest.err conftest.$ac_objext \
2934      conftest$ac_exeext conftest.$ac_ext
2935            CFLAGS=
2936          ;;
2937        esac
2938    esac
2939  fi
2940  if test -z "$coin_opt_cflags"; then
2941    case $build in
2942      *-cygwin* | *-mingw*)
2943        case "$CC" in
2944          clang* ) ;;
2945          cl* | */cl* | CL* | */CL*)
2946            coin_opt_cflags='-MT -O2'
2947            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2948            coin_dbg_cflags='-MTd'
2949            ;;
2950          icl* | */icl* | ICL* | */ICL*)
2951            coin_opt_cflags='-MT -Ox'
2952            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2953            coin_dbg_cflags='-MTd -debug'
2954            ;;
2955        esac
2956        ;;
2957      *-linux-*)
2958        case "$CC" in
2959          icc* | */icc*)
2960            coin_opt_cflags="-O3 -ip -mp1"
2961            coin_add_cflags=""
2962            coin_dbg_cflags="-g"
2963            # Check if -i_dynamic is necessary (for new glibc library)
2964            CFLAGS=
2965            cat >conftest.$ac_ext <<_ACEOF
2966/* confdefs.h.  */
2967_ACEOF
2968cat confdefs.h >>conftest.$ac_ext
2969cat >>conftest.$ac_ext <<_ACEOF
2970/* end confdefs.h.  */
2971
2972int
2973main ()
2974{
2975int i=0; i++;
2976  ;
2977  return 0;
2978}
2979_ACEOF
2980rm -f conftest.$ac_objext conftest$ac_exeext
2981if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2982  (eval $ac_link) 2>conftest.er1
2983  ac_status=$?
2984  grep -v '^ *+' conftest.er1 >conftest.err
2985  rm -f conftest.er1
2986  cat conftest.err >&5
2987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988  (exit $ac_status); } &&
2989         { ac_try='test -z "$ac_c_werror_flag"
2990                         || test ! -s conftest.err'
2991  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2992  (eval $ac_try) 2>&5
2993  ac_status=$?
2994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995  (exit $ac_status); }; } &&
2996         { ac_try='test -s conftest$ac_exeext'
2997  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2998  (eval $ac_try) 2>&5
2999  ac_status=$?
3000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001  (exit $ac_status); }; }; then
3002  :
3003else
3004  echo "$as_me: failed program was:" >&5
3005sed 's/^/| /' conftest.$ac_ext >&5
3006
3007coin_add_cflags="-i_dynamic $coin_add_cflags"
3008fi
3009rm -f conftest.err conftest.$ac_objext \
3010      conftest$ac_exeext conftest.$ac_ext
3011            ;;
3012          pgcc* | */pgcc*)
3013            coin_opt_cflags="-fast"
3014            coin_add_cflags="-Kieee -pc 64"
3015            coin_dbg_cflags="-g"
3016            ;;
3017        esac
3018        ;;
3019      *-ibm-*)
3020        case "$CC" in
3021          xlc* | */xlc* | mpxlc* | */mpxlc*)
3022            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3023            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
3024            coin_dbg_cflags="-g"
3025          ;;
3026        esac
3027        ;;
3028      *-hp-*)
3029        coin_opt_cflags="-O"
3030        coin_add_cflags="-Ae"
3031        coin_dbg_cflags="-g"
3032        ;;
3033      *-*-solaris*)
3034        coin_opt_cflags="-xO4"
3035        coin_dbg_cflags="-g"
3036        ;;
3037      *-sgi-*)
3038        coin_opt_cflags="-O -OPT:Olimit=0"
3039        coin_dbg_cflags="-g"
3040        ;;
3041    esac
3042  fi
3043
3044  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
3045    coin_dbg_cflags="-g"
3046  fi
3047
3048  if test -z "$coin_opt_cflags"; then
3049    # Try if -O option works if nothing else is set
3050    CFLAGS="-O"
3051    cat >conftest.$ac_ext <<_ACEOF
3052/* confdefs.h.  */
3053_ACEOF
3054cat confdefs.h >>conftest.$ac_ext
3055cat >>conftest.$ac_ext <<_ACEOF
3056/* end confdefs.h.  */
3057
3058int
3059main ()
3060{
3061int i=0; i++;
3062  ;
3063  return 0;
3064}
3065_ACEOF
3066rm -f conftest.$ac_objext conftest$ac_exeext
3067if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3068  (eval $ac_link) 2>conftest.er1
3069  ac_status=$?
3070  grep -v '^ *+' conftest.er1 >conftest.err
3071  rm -f conftest.er1
3072  cat conftest.err >&5
3073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074  (exit $ac_status); } &&
3075         { ac_try='test -z "$ac_c_werror_flag"
3076                         || test ! -s conftest.err'
3077  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3078  (eval $ac_try) 2>&5
3079  ac_status=$?
3080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081  (exit $ac_status); }; } &&
3082         { ac_try='test -s conftest$ac_exeext'
3083  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3084  (eval $ac_try) 2>&5
3085  ac_status=$?
3086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087  (exit $ac_status); }; }; then
3088  coin_opt_cflags="-O"
3089else
3090  echo "$as_me: failed program was:" >&5
3091sed 's/^/| /' conftest.$ac_ext >&5
3092
3093fi
3094rm -f conftest.err conftest.$ac_objext \
3095      conftest$ac_exeext conftest.$ac_ext
3096  fi
3097
3098  # if PM doesn't want the warning messages, take them out
3099  if test x"$coin_skip_warn_cflags" = xyes; then
3100    coin_warn_cflags=
3101  fi
3102
3103  if test x${DBG_CFLAGS+set} != xset; then
3104    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3105  fi
3106  if test x${OPT_CFLAGS+set} != xset; then
3107    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3108  fi
3109
3110  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3111  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3112
3113  if test "$coin_debug_compile" = "true"; then
3114    CFLAGS="$DBG_CFLAGS"
3115  else
3116    CFLAGS="$OPT_CFLAGS"
3117  fi
3118else
3119  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3120  if test x${DBG_CFLAGS+set} != xset; then
3121    DBG_CFLAGS="$CFLAGS"
3122  fi
3123  if test x${OPT_CFLAGS+set} != xset; then
3124    OPT_CFLAGS="$CFLAGS"
3125  fi
3126fi
3127
3128# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3129
3130case "$CFLAGS" in
3131  *-mno-cygwin*)
3132    if test x${CPPFLAGS+set} != xset ; then
3133      CPPFLAGS="-mno-cygwin"
3134    else
3135      case "$CPPFLAGS" in
3136        *-mno-cygwin*)
3137          ;;
3138        *)
3139          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3140          ;;
3141      esac
3142    fi ;;
3143esac
3144
3145# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3146if test x$COIN_PRJCT != x; then
3147  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3148fi
3149
3150# Try if CFLAGS works
3151save_CFLAGS="$CFLAGS"
3152cat >conftest.$ac_ext <<_ACEOF
3153/* confdefs.h.  */
3154_ACEOF
3155cat confdefs.h >>conftest.$ac_ext
3156cat >>conftest.$ac_ext <<_ACEOF
3157/* end confdefs.h.  */
3158
3159int
3160main ()
3161{
3162int i=0; i++;
3163  ;
3164  return 0;
3165}
3166_ACEOF
3167rm -f conftest.$ac_objext conftest$ac_exeext
3168if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3169  (eval $ac_link) 2>conftest.er1
3170  ac_status=$?
3171  grep -v '^ *+' conftest.er1 >conftest.err
3172  rm -f conftest.er1
3173  cat conftest.err >&5
3174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175  (exit $ac_status); } &&
3176         { ac_try='test -z "$ac_c_werror_flag"
3177                         || test ! -s conftest.err'
3178  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3179  (eval $ac_try) 2>&5
3180  ac_status=$?
3181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182  (exit $ac_status); }; } &&
3183         { ac_try='test -s conftest$ac_exeext'
3184  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3185  (eval $ac_try) 2>&5
3186  ac_status=$?
3187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188  (exit $ac_status); }; }; then
3189  :
3190else
3191  echo "$as_me: failed program was:" >&5
3192sed 's/^/| /' conftest.$ac_ext >&5
3193
3194CFLAGS=
3195fi
3196rm -f conftest.err conftest.$ac_objext \
3197      conftest$ac_exeext conftest.$ac_ext
3198if test -z "$CFLAGS"; then
3199  { 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
3200echo "$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;}
3201  CFLAGS='-O'
3202  cat >conftest.$ac_ext <<_ACEOF
3203/* confdefs.h.  */
3204_ACEOF
3205cat confdefs.h >>conftest.$ac_ext
3206cat >>conftest.$ac_ext <<_ACEOF
3207/* end confdefs.h.  */
3208
3209int
3210main ()
3211{
3212int i=0; i++;
3213  ;
3214  return 0;
3215}
3216_ACEOF
3217rm -f conftest.$ac_objext conftest$ac_exeext
3218if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3219  (eval $ac_link) 2>conftest.er1
3220  ac_status=$?
3221  grep -v '^ *+' conftest.er1 >conftest.err
3222  rm -f conftest.er1
3223  cat conftest.err >&5
3224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3225  (exit $ac_status); } &&
3226         { ac_try='test -z "$ac_c_werror_flag"
3227                         || test ! -s conftest.err'
3228  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3229  (eval $ac_try) 2>&5
3230  ac_status=$?
3231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3232  (exit $ac_status); }; } &&
3233         { ac_try='test -s conftest$ac_exeext'
3234  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3235  (eval $ac_try) 2>&5
3236  ac_status=$?
3237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238  (exit $ac_status); }; }; then
3239  :
3240else
3241  echo "$as_me: failed program was:" >&5
3242sed 's/^/| /' conftest.$ac_ext >&5
3243
3244CFLAGS=
3245fi
3246rm -f conftest.err conftest.$ac_objext \
3247      conftest$ac_exeext conftest.$ac_ext
3248  if test -z "$CFLAGS"; then
3249    { 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
3250echo "$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;}
3251  fi
3252fi
3253
3254{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3255echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3256
3257
3258if test x"$MPICC" = x; then :; else
3259  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3260echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3261  CC="$MPICC"
3262fi
3263
3264# Correct the LD variable if we are using the MS or Intel-windows compiler
3265case "$CC" in
3266  clang* ) ;;
3267  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3268    case $build in
3269  *-mingw*)
3270    if test "${LD+set}" = set; then :; else
3271      LD=link
3272    fi
3273    ;;
3274 esac
3275 case $enable_doscompile in
3276   msvc)
3277     if test "x${LD+set}" = xset; then :; else
3278       LD=link
3279     fi
3280     ;;
3281 esac
3282
3283    ;;
3284esac
3285
3286ac_ext=c
3287ac_cpp='$CPP $CPPFLAGS'
3288ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3289ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3290ac_compiler_gnu=$ac_cv_c_compiler_gnu
3291
3292
3293
3294 #Let's try if that overcomes configuration problem with VC++ 6.0
3295
3296ac_ext=cc
3297ac_cpp='$CXXCPP $CPPFLAGS'
3298ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3299ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3300ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3301
3302
3303
3304
3305
3306
3307
3308coin_has_cxx=yes
3309
3310save_cxxflags="$CXXFLAGS"
3311# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3312case $build in
3313  *-cygwin* | *-mingw*)
3314             if test "$enable_doscompile" = msvc ; then
3315               comps="icl cl"
3316             else
3317               comps="g++ cl"
3318             fi ;;
3319  *-*-solaris*)
3320             comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3321  *-darwin*) comps="g++ c++ CC" ;;
3322  *-linux-gnu*)
3323             comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;;
3324          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3325esac
3326
3327# We delete the cached value, since the test might not have been
3328# performed with our choice of compilers earlier
3329$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3330# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3331ac_ext=cc
3332ac_cpp='$CXXCPP $CPPFLAGS'
3333ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3334ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3335ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3336if test -n "$ac_tool_prefix"; then
3337  for ac_prog in $CCC $comps
3338  do
3339    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3340set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3341echo "$as_me:$LINENO: checking for $ac_word" >&5
3342echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3343if test "${ac_cv_prog_CXX+set}" = set; then
3344  echo $ECHO_N "(cached) $ECHO_C" >&6
3345else
3346  if test -n "$CXX"; then
3347  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3348else
3349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3350for as_dir in $PATH
3351do
3352  IFS=$as_save_IFS
3353  test -z "$as_dir" && as_dir=.
3354  for ac_exec_ext in '' $ac_executable_extensions; do
3355  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3356    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3357    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3358    break 2
3359  fi
3360done
3361done
3362
3363fi
3364fi
3365CXX=$ac_cv_prog_CXX
3366if test -n "$CXX"; then
3367  echo "$as_me:$LINENO: result: $CXX" >&5
3368echo "${ECHO_T}$CXX" >&6
3369else
3370  echo "$as_me:$LINENO: result: no" >&5
3371echo "${ECHO_T}no" >&6
3372fi
3373
3374    test -n "$CXX" && break
3375  done
3376fi
3377if test -z "$CXX"; then
3378  ac_ct_CXX=$CXX
3379  for ac_prog in $CCC $comps
3380do
3381  # Extract the first word of "$ac_prog", so it can be a program name with args.
3382set dummy $ac_prog; ac_word=$2
3383echo "$as_me:$LINENO: checking for $ac_word" >&5
3384echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3385if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3386  echo $ECHO_N "(cached) $ECHO_C" >&6
3387else
3388  if test -n "$ac_ct_CXX"; then
3389  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3390else
3391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3392for as_dir in $PATH
3393do
3394  IFS=$as_save_IFS
3395  test -z "$as_dir" && as_dir=.
3396  for ac_exec_ext in '' $ac_executable_extensions; do
3397  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3398    ac_cv_prog_ac_ct_CXX="$ac_prog"
3399    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3400    break 2
3401  fi
3402done
3403done
3404
3405fi
3406fi
3407ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3408if test -n "$ac_ct_CXX"; then
3409  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3410echo "${ECHO_T}$ac_ct_CXX" >&6
3411else
3412  echo "$as_me:$LINENO: result: no" >&5
3413echo "${ECHO_T}no" >&6
3414fi
3415
3416  test -n "$ac_ct_CXX" && break
3417done
3418test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3419
3420  CXX=$ac_ct_CXX
3421fi
3422
3423
3424# Provide some information about the compiler.
3425echo "$as_me:$LINENO:" \
3426     "checking for C++ compiler version" >&5
3427ac_compiler=`set X $ac_compile; echo $2`
3428{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3429  (eval $ac_compiler --version </dev/null >&5) 2>&5
3430  ac_status=$?
3431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432  (exit $ac_status); }
3433{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3434  (eval $ac_compiler -v </dev/null >&5) 2>&5
3435  ac_status=$?
3436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437  (exit $ac_status); }
3438{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3439  (eval $ac_compiler -V </dev/null >&5) 2>&5
3440  ac_status=$?
3441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442  (exit $ac_status); }
3443
3444echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3445echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3446if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3447  echo $ECHO_N "(cached) $ECHO_C" >&6
3448else
3449  cat >conftest.$ac_ext <<_ACEOF
3450/* confdefs.h.  */
3451_ACEOF
3452cat confdefs.h >>conftest.$ac_ext
3453cat >>conftest.$ac_ext <<_ACEOF
3454/* end confdefs.h.  */
3455
3456int
3457main ()
3458{
3459#ifndef __GNUC__
3460       choke me
3461#endif
3462
3463  ;
3464  return 0;
3465}
3466_ACEOF
3467rm -f conftest.$ac_objext
3468if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3469  (eval $ac_compile) 2>conftest.er1
3470  ac_status=$?
3471  grep -v '^ *+' conftest.er1 >conftest.err
3472  rm -f conftest.er1
3473  cat conftest.err >&5
3474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475  (exit $ac_status); } &&
3476         { ac_try='test -z "$ac_cxx_werror_flag"
3477                         || test ! -s conftest.err'
3478  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3479  (eval $ac_try) 2>&5
3480  ac_status=$?
3481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482  (exit $ac_status); }; } &&
3483         { ac_try='test -s conftest.$ac_objext'
3484  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3485  (eval $ac_try) 2>&5
3486  ac_status=$?
3487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488  (exit $ac_status); }; }; then
3489  ac_compiler_gnu=yes
3490else
3491  echo "$as_me: failed program was:" >&5
3492sed 's/^/| /' conftest.$ac_ext >&5
3493
3494ac_compiler_gnu=no
3495fi
3496rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3497ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3498
3499fi
3500echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3501echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3502GXX=`test $ac_compiler_gnu = yes && echo yes`
3503ac_test_CXXFLAGS=${CXXFLAGS+set}
3504ac_save_CXXFLAGS=$CXXFLAGS
3505CXXFLAGS="-g"
3506echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3507echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3508if test "${ac_cv_prog_cxx_g+set}" = set; then
3509  echo $ECHO_N "(cached) $ECHO_C" >&6
3510else
3511  cat >conftest.$ac_ext <<_ACEOF
3512/* confdefs.h.  */
3513_ACEOF
3514cat confdefs.h >>conftest.$ac_ext
3515cat >>conftest.$ac_ext <<_ACEOF
3516/* end confdefs.h.  */
3517
3518int
3519main ()
3520{
3521
3522  ;
3523  return 0;
3524}
3525_ACEOF
3526rm -f conftest.$ac_objext
3527if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3528  (eval $ac_compile) 2>conftest.er1
3529  ac_status=$?
3530  grep -v '^ *+' conftest.er1 >conftest.err
3531  rm -f conftest.er1
3532  cat conftest.err >&5
3533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534  (exit $ac_status); } &&
3535         { ac_try='test -z "$ac_cxx_werror_flag"
3536                         || test ! -s conftest.err'
3537  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3538  (eval $ac_try) 2>&5
3539  ac_status=$?
3540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541  (exit $ac_status); }; } &&
3542         { ac_try='test -s conftest.$ac_objext'
3543  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3544  (eval $ac_try) 2>&5
3545  ac_status=$?
3546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547  (exit $ac_status); }; }; then
3548  ac_cv_prog_cxx_g=yes
3549else
3550  echo "$as_me: failed program was:" >&5
3551sed 's/^/| /' conftest.$ac_ext >&5
3552
3553ac_cv_prog_cxx_g=no
3554fi
3555rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3556fi
3557echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3558echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3559if test "$ac_test_CXXFLAGS" = set; then
3560  CXXFLAGS=$ac_save_CXXFLAGS
3561elif test $ac_cv_prog_cxx_g = yes; then
3562  if test "$GXX" = yes; then
3563    CXXFLAGS="-g -O2"
3564  else
3565    CXXFLAGS="-g"
3566  fi
3567else
3568  if test "$GXX" = yes; then
3569    CXXFLAGS="-O2"
3570  else
3571    CXXFLAGS=
3572  fi
3573fi
3574for ac_declaration in \
3575   '' \
3576   'extern "C" void std::exit (int) throw (); using std::exit;' \
3577   'extern "C" void std::exit (int); using std::exit;' \
3578   'extern "C" void exit (int) throw ();' \
3579   'extern "C" void exit (int);' \
3580   'void exit (int);'
3581do
3582  cat >conftest.$ac_ext <<_ACEOF
3583/* confdefs.h.  */
3584_ACEOF
3585cat confdefs.h >>conftest.$ac_ext
3586cat >>conftest.$ac_ext <<_ACEOF
3587/* end confdefs.h.  */
3588$ac_declaration
3589#include <stdlib.h>
3590int
3591main ()
3592{
3593exit (42);
3594  ;
3595  return 0;
3596}
3597_ACEOF
3598rm -f conftest.$ac_objext
3599if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3600  (eval $ac_compile) 2>conftest.er1
3601  ac_status=$?
3602  grep -v '^ *+' conftest.er1 >conftest.err
3603  rm -f conftest.er1
3604  cat conftest.err >&5
3605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606  (exit $ac_status); } &&
3607         { ac_try='test -z "$ac_cxx_werror_flag"
3608                         || test ! -s conftest.err'
3609  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3610  (eval $ac_try) 2>&5
3611  ac_status=$?
3612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613  (exit $ac_status); }; } &&
3614         { ac_try='test -s conftest.$ac_objext'
3615  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3616  (eval $ac_try) 2>&5
3617  ac_status=$?
3618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619  (exit $ac_status); }; }; then
3620  :
3621else
3622  echo "$as_me: failed program was:" >&5
3623sed 's/^/| /' conftest.$ac_ext >&5
3624
3625continue
3626fi
3627rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3628  cat >conftest.$ac_ext <<_ACEOF
3629/* confdefs.h.  */
3630_ACEOF
3631cat confdefs.h >>conftest.$ac_ext
3632cat >>conftest.$ac_ext <<_ACEOF
3633/* end confdefs.h.  */
3634$ac_declaration
3635int
3636main ()
3637{
3638exit (42);
3639  ;
3640  return 0;
3641}
3642_ACEOF
3643rm -f conftest.$ac_objext
3644if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3645  (eval $ac_compile) 2>conftest.er1
3646  ac_status=$?
3647  grep -v '^ *+' conftest.er1 >conftest.err
3648  rm -f conftest.er1
3649  cat conftest.err >&5
3650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651  (exit $ac_status); } &&
3652         { ac_try='test -z "$ac_cxx_werror_flag"
3653                         || test ! -s conftest.err'
3654  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3655  (eval $ac_try) 2>&5
3656  ac_status=$?
3657  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658  (exit $ac_status); }; } &&
3659         { ac_try='test -s conftest.$ac_objext'
3660  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3661  (eval $ac_try) 2>&5
3662  ac_status=$?
3663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664  (exit $ac_status); }; }; then
3665  break
3666else
3667  echo "$as_me: failed program was:" >&5
3668sed 's/^/| /' conftest.$ac_ext >&5
3669
3670fi
3671rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3672done
3673rm -f conftest*
3674if test -n "$ac_declaration"; then
3675  echo '#ifdef __cplusplus' >>confdefs.h
3676  echo $ac_declaration      >>confdefs.h
3677  echo '#endif'             >>confdefs.h
3678fi
3679
3680ac_ext=cc
3681ac_cpp='$CXXCPP $CPPFLAGS'
3682ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3683ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3684ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3685
3686
3687#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3688#thus, we test here whether $CXX is actually working
3689ac_ext=cc
3690ac_cpp='$CXXCPP $CPPFLAGS'
3691ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3692ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3693ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3694
3695echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3696echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3697cat >conftest.$ac_ext <<_ACEOF
3698/* confdefs.h.  */
3699_ACEOF
3700cat confdefs.h >>conftest.$ac_ext
3701cat >>conftest.$ac_ext <<_ACEOF
3702/* end confdefs.h.  */
3703
3704int
3705main ()
3706{
3707int i=0;
3708  ;
3709  return 0;
3710}
3711_ACEOF
3712rm -f conftest.$ac_objext
3713if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3714  (eval $ac_compile) 2>conftest.er1
3715  ac_status=$?
3716  grep -v '^ *+' conftest.er1 >conftest.err
3717  rm -f conftest.er1
3718  cat conftest.err >&5
3719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720  (exit $ac_status); } &&
3721         { ac_try='test -z "$ac_cxx_werror_flag"
3722                         || test ! -s conftest.err'
3723  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3724  (eval $ac_try) 2>&5
3725  ac_status=$?
3726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727  (exit $ac_status); }; } &&
3728         { ac_try='test -s conftest.$ac_objext'
3729  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3730  (eval $ac_try) 2>&5
3731  ac_status=$?
3732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733  (exit $ac_status); }; }; then
3734  echo "$as_me:$LINENO: result: yes" >&5
3735echo "${ECHO_T}yes" >&6
3736else
3737  echo "$as_me: failed program was:" >&5
3738sed 's/^/| /' conftest.$ac_ext >&5
3739
3740echo "$as_me:$LINENO: result: no" >&5
3741echo "${ECHO_T}no" >&6
3742   { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3743echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3744   { (exit 1); exit 1; }; }
3745
3746fi
3747rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3748ac_ext=cc
3749ac_cpp='$CXXCPP $CPPFLAGS'
3750ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3751ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3752ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3753
3754
3755coin_cxx_is_cl=false
3756# It seems that we need to cleanup something here for the Windows
3757case "$CXX" in
3758  clang* ) ;;
3759  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3760    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3761    mv confdefs.hh confdefs.h
3762    coin_cxx_is_cl=true
3763    ;;
3764esac
3765
3766# add automake conditional so we can recognize cl compiler in makefile
3767
3768
3769if test $coin_cxx_is_cl = true; then
3770  COIN_CXX_IS_CL_TRUE=
3771  COIN_CXX_IS_CL_FALSE='#'
3772else
3773  COIN_CXX_IS_CL_TRUE='#'
3774  COIN_CXX_IS_CL_FALSE=
3775fi
3776
3777
3778# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3779case "$CXX" in
3780  clang* ) ;;
3781  cl* | */cl* | CL* | */CL* )
3782    if test "$ac_cv_prog_cxx_g" = yes ; then
3783      ac_cv_prog_cxx_g=no
3784      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3785echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3786    fi ;;
3787esac
3788CXXFLAGS="$save_cxxflags"
3789
3790# Check if a project specific CXXFLAGS variable has been set
3791if test x$COIN_PRJCT != x; then
3792  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3793  if test x$coin_tmp = xset; then
3794    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3795  fi
3796fi
3797
3798if test x"$CXXFLAGS" = x; then
3799
3800# ToDo decide whether we want -DNDEBUG for optimization
3801  coin_add_cxxflags=
3802  coin_opt_cxxflags=
3803  coin_dbg_cxxflags=
3804  coin_warn_cxxflags=
3805
3806  if test "$GXX" = "yes"; then
3807    case "$CXX" in
3808      icpc* | */icpc*)
3809        ;;
3810      *)
3811# ToDo decide about unroll-loops
3812        coin_opt_cxxflags="-O3"
3813        coin_add_cxxflags="-pipe"
3814        coin_dbg_cxxflags="-g -O0"
3815        coin_warn_cxxflags="-Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long"
3816        case $build in
3817          *-darwin*)
3818            ;;
3819          *)
3820            coin_warn_cxxflags="-pedantic-errors $coin_warn_cxxflags"
3821            ;;
3822        esac
3823
3824        case $enable_doscompile in
3825          mingw)
3826            CXXFLAGS="-mno-cygwin"
3827            cat >conftest.$ac_ext <<_ACEOF
3828/* confdefs.h.  */
3829_ACEOF
3830cat confdefs.h >>conftest.$ac_ext
3831cat >>conftest.$ac_ext <<_ACEOF
3832/* end confdefs.h.  */
3833
3834int
3835main ()
3836{
3837int i=0; i++;
3838  ;
3839  return 0;
3840}
3841_ACEOF
3842rm -f conftest.$ac_objext conftest$ac_exeext
3843if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3844  (eval $ac_link) 2>conftest.er1
3845  ac_status=$?
3846  grep -v '^ *+' conftest.er1 >conftest.err
3847  rm -f conftest.er1
3848  cat conftest.err >&5
3849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850  (exit $ac_status); } &&
3851         { ac_try='test -z "$ac_cxx_werror_flag"
3852                         || test ! -s conftest.err'
3853  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3854  (eval $ac_try) 2>&5
3855  ac_status=$?
3856  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3857  (exit $ac_status); }; } &&
3858         { ac_try='test -s conftest$ac_exeext'
3859  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3860  (eval $ac_try) 2>&5
3861  ac_status=$?
3862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863  (exit $ac_status); }; }; then
3864  coin_add_cxxflags="-mno-cygwin $coin_add_cxxflags"
3865else
3866  echo "$as_me: failed program was:" >&5
3867sed 's/^/| /' conftest.$ac_ext >&5
3868
3869fi
3870rm -f conftest.err conftest.$ac_objext \
3871      conftest$ac_exeext conftest.$ac_ext
3872            CXXFLAGS=
3873          ;;
3874        esac
3875    esac
3876  fi
3877
3878# Note that we do not need to cover GCC in the following tests.
3879
3880  if test -z "$coin_opt_cxxflags"; then
3881    case $build in
3882      *-cygwin* | *-mingw*)
3883        case "$CXX" in
3884          clang* ) ;;
3885          cl* | */cl* | CL* | */CL*)
3886            # The MT and MTd options are mutually exclusive
3887            coin_opt_cxxflags='-MT -O2'
3888            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3889            coin_dbg_cxxflags='-MTd'
3890            ;;
3891          icl* | */icl* | ICL* | */ICL*)
3892            # The MT and MTd options are mutually exclusive
3893            coin_opt_cxxflags='-MT -Ox'
3894            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3895            coin_dbg_cxxflags='-MTd -debug'
3896            ;;
3897        esac
3898        ;;
3899      *-linux-*)
3900        case "$CXX" in
3901          icpc* | */icpc*)
3902            coin_opt_cxxflags="-O3 -ip -mp1"
3903            coin_add_cxxflags=""
3904            coin_dbg_cxxflags="-g"
3905            # Check if -i_dynamic is necessary (for new glibc library)
3906            CXXFLAGS=
3907            cat >conftest.$ac_ext <<_ACEOF
3908/* confdefs.h.  */
3909_ACEOF
3910cat confdefs.h >>conftest.$ac_ext
3911cat >>conftest.$ac_ext <<_ACEOF
3912/* end confdefs.h.  */
3913
3914int
3915main ()
3916{
3917int i=0; i++;
3918  ;
3919  return 0;
3920}
3921_ACEOF
3922rm -f conftest.$ac_objext conftest$ac_exeext
3923if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3924  (eval $ac_link) 2>conftest.er1
3925  ac_status=$?
3926  grep -v '^ *+' conftest.er1 >conftest.err
3927  rm -f conftest.er1
3928  cat conftest.err >&5
3929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3930  (exit $ac_status); } &&
3931         { ac_try='test -z "$ac_cxx_werror_flag"
3932                         || test ! -s conftest.err'
3933  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3934  (eval $ac_try) 2>&5
3935  ac_status=$?
3936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937  (exit $ac_status); }; } &&
3938         { ac_try='test -s conftest$ac_exeext'
3939  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3940  (eval $ac_try) 2>&5
3941  ac_status=$?
3942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943  (exit $ac_status); }; }; then
3944  :
3945else
3946  echo "$as_me: failed program was:" >&5
3947sed 's/^/| /' conftest.$ac_ext >&5
3948
3949coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3950fi
3951rm -f conftest.err conftest.$ac_objext \
3952      conftest$ac_exeext conftest.$ac_ext
3953            ;;
3954          pgCC* | */pgCC*)
3955            coin_opt_cxxflags="-fast"
3956            coin_add_cxxflags="-Kieee -pc 64"
3957            coin_dbg_cxxflags="-g"
3958            ;;
3959        esac
3960        ;;
3961      *-ibm-*)
3962        case "$CXX" in
3963          xlC* | */xlC* | mpxlC* | */mpxlC*)
3964            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3965            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3966            coin_dbg_cxxflags="-g"
3967            ;;
3968        esac
3969        ;;
3970      *-hp-*)
3971        case "$CXX" in
3972          aCC* | */aCC* )
3973            coin_opt_cxxflags="-O"
3974            coin_add_cxxflags="-AA"
3975            coin_dbg_cxxflags="-g"
3976            ;;
3977        esac
3978        ;;
3979      *-*-solaris*)
3980          coin_opt_cxxflags="-O4"
3981          coin_dbg_cxxflags="-g"
3982        ;;
3983    esac
3984  fi
3985
3986# Generic flag settings. If these don't work, add a case above.
3987
3988  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3989    coin_dbg_cxxflags="-g"
3990  fi
3991
3992  if test -z "$coin_opt_cxxflags"; then
3993    # Try if -O option works if nothing else is set
3994    CXXFLAGS=-O
3995    cat >conftest.$ac_ext <<_ACEOF
3996/* confdefs.h.  */
3997_ACEOF
3998cat confdefs.h >>conftest.$ac_ext
3999cat >>conftest.$ac_ext <<_ACEOF
4000/* end confdefs.h.  */
4001
4002int
4003main ()
4004{
4005int i=0; i++;
4006  ;
4007  return 0;
4008}
4009_ACEOF
4010rm -f conftest.$ac_objext conftest$ac_exeext
4011if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4012  (eval $ac_link) 2>conftest.er1
4013  ac_status=$?
4014  grep -v '^ *+' conftest.er1 >conftest.err
4015  rm -f conftest.er1
4016  cat conftest.err >&5
4017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018  (exit $ac_status); } &&
4019         { ac_try='test -z "$ac_cxx_werror_flag"
4020                         || test ! -s conftest.err'
4021  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4022  (eval $ac_try) 2>&5
4023  ac_status=$?
4024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025  (exit $ac_status); }; } &&
4026         { ac_try='test -s conftest$ac_exeext'
4027  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4028  (eval $ac_try) 2>&5
4029  ac_status=$?
4030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031  (exit $ac_status); }; }; then
4032  coin_opt_cxxflags="-O"
4033else
4034  echo "$as_me: failed program was:" >&5
4035sed 's/^/| /' conftest.$ac_ext >&5
4036
4037fi
4038rm -f conftest.err conftest.$ac_objext \
4039      conftest$ac_exeext conftest.$ac_ext
4040  fi
4041
4042  # if PM doesn't want the warning messages, take them out
4043  if test x"$coin_skip_warn_cxxflags" = xyes; then
4044    coin_warn_cxxflags=
4045  fi
4046
4047# Do final setup of flags based on values determined above.
4048
4049  if test x${DBG_CXXFLAGS+set} != xset; then
4050    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
4051  fi
4052  if test x${OPT_CXXFLAGS+set} != xset; then
4053    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
4054  fi
4055
4056  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
4057  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
4058
4059  if test "$coin_debug_compile" = "true"; then
4060    CXXFLAGS="$DBG_CXXFLAGS"
4061  else
4062    CXXFLAGS="$OPT_CXXFLAGS"
4063  fi
4064
4065# Handle the case where CXXFLAGS was set externally.
4066else
4067  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
4068  if test x${DBG_CXXFLAGS+set} != xset; then
4069    DBG_CXXFLAGS="$CXXFLAGS"
4070  fi
4071  if test x${OPT_CXXFLAGS+set} != xset; then
4072    OPT_CXXFLAGS="$CXXFLAGS"
4073  fi
4074fi
4075
4076# If CXXFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
4077
4078case "$CXXFLAGS" in
4079  *-mno-cygwin*)
4080    if test x${CPPFLAGS+set} != xset ; then
4081      CPPFLAGS="-mno-cygwin"
4082    else
4083      case "$CPPFLAGS" in
4084        *-mno-cygwin*)
4085          ;;
4086        *)
4087          CPPFLAGS="$CPPFLAGS -mno-cygwin"
4088          ;;
4089      esac
4090    fi ;;
4091esac
4092
4093# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
4094if test x$COIN_PRJCT != x; then
4095  CXXFLAGS="$CXXFLAGS -D${COIN_PRJCT}_BUILD"
4096fi
4097
4098# Try if CXXFLAGS works
4099save_CXXFLAGS="$CXXFLAGS"
4100cat >conftest.$ac_ext <<_ACEOF
4101/* confdefs.h.  */
4102_ACEOF
4103cat confdefs.h >>conftest.$ac_ext
4104cat >>conftest.$ac_ext <<_ACEOF
4105/* end confdefs.h.  */
4106
4107int
4108main ()
4109{
4110int i=0; i++;
4111  ;
4112  return 0;
4113}
4114_ACEOF
4115rm -f conftest.$ac_objext conftest$ac_exeext
4116if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4117  (eval $ac_link) 2>conftest.er1
4118  ac_status=$?
4119  grep -v '^ *+' conftest.er1 >conftest.err
4120  rm -f conftest.er1
4121  cat conftest.err >&5
4122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123  (exit $ac_status); } &&
4124         { ac_try='test -z "$ac_cxx_werror_flag"
4125                         || test ! -s conftest.err'
4126  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4127  (eval $ac_try) 2>&5
4128  ac_status=$?
4129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130  (exit $ac_status); }; } &&
4131         { ac_try='test -s conftest$ac_exeext'
4132  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4133  (eval $ac_try) 2>&5
4134  ac_status=$?
4135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4136  (exit $ac_status); }; }; then
4137  :
4138else
4139  echo "$as_me: failed program was:" >&5
4140sed 's/^/| /' conftest.$ac_ext >&5
4141
4142CXXFLAGS=
4143fi
4144rm -f conftest.err conftest.$ac_objext \
4145      conftest$ac_exeext conftest.$ac_ext
4146if test -z "$CXXFLAGS"; then
4147  { 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
4148echo "$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;}
4149  CXXFLAGS='-O'
4150  cat >conftest.$ac_ext <<_ACEOF
4151/* confdefs.h.  */
4152_ACEOF
4153cat confdefs.h >>conftest.$ac_ext
4154cat >>conftest.$ac_ext <<_ACEOF
4155/* end confdefs.h.  */
4156
4157int
4158main ()
4159{
4160int i=0; i++;
4161  ;
4162  return 0;
4163}
4164_ACEOF
4165rm -f conftest.$ac_objext conftest$ac_exeext
4166if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4167  (eval $ac_link) 2>conftest.er1
4168  ac_status=$?
4169  grep -v '^ *+' conftest.er1 >conftest.err
4170  rm -f conftest.er1
4171  cat conftest.err >&5
4172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173  (exit $ac_status); } &&
4174         { ac_try='test -z "$ac_cxx_werror_flag"
4175                         || test ! -s conftest.err'
4176  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4177  (eval $ac_try) 2>&5
4178  ac_status=$?
4179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180  (exit $ac_status); }; } &&
4181         { ac_try='test -s conftest$ac_exeext'
4182  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4183  (eval $ac_try) 2>&5
4184  ac_status=$?
4185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186  (exit $ac_status); }; }; then
4187  :
4188else
4189  echo "$as_me: failed program was:" >&5
4190sed 's/^/| /' conftest.$ac_ext >&5
4191
4192CXXFLAGS=
4193fi
4194rm -f conftest.err conftest.$ac_objext \
4195      conftest$ac_exeext conftest.$ac_ext
4196  if test -z "$CXXFLAGS"; then
4197    { 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
4198echo "$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;}
4199  fi
4200fi
4201
4202{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
4203echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
4204
4205
4206if test x"$MPICXX" = x; then :; else
4207  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
4208echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
4209  CXX="$MPICXX"
4210fi
4211
4212# correct the LD variable in a mingw build with MS or intel compiler
4213case "$CXX" in
4214  clang* ) ;;
4215  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4216    case $build in
4217  *-mingw*)
4218    if test "${LD+set}" = set; then :; else
4219      LD=link
4220    fi
4221    ;;
4222 esac
4223 case $enable_doscompile in
4224   msvc)
4225     if test "x${LD+set}" = xset; then :; else
4226       LD=link
4227     fi
4228     ;;
4229 esac
4230
4231    ;;
4232esac
4233
4234ac_ext=c
4235ac_cpp='$CPP $CPPFLAGS'
4236ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4237ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4238ac_compiler_gnu=$ac_cv_c_compiler_gnu
4239
4240
4241
4242# Initialize automake and libtool
4243{
4244
4245
4246
4247# START
4248
4249# Test if force_shared has been set
4250if test "x" = xforce_shared; then
4251  if test x$enable_shared = xno; then
4252    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4253echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4254   { (exit 1); exit 1; }; }
4255  fi
4256  enable_shared=yes;
4257else
4258  # On Cygwin and AIX, building DLLs doesn't work
4259  case $build in
4260    *-cygwin*)
4261      coin_disable_shared=yes
4262      platform=Cygwin
4263    ;;
4264    *-aix*)
4265      coin_disable_shared=yes
4266      platform=AIX
4267    ;;
4268    *-mingw*)
4269      coin_disable_shared=yes
4270      platform="Msys"
4271#      case "$CXX" in
4272#        cl*)
4273#          coin_disable_shared=yes
4274#          platform="Msys with cl"
4275#      ;;
4276#      esac
4277    ;;
4278  esac
4279fi
4280if test x"$coin_disable_shared" = xyes; then
4281  if test x"$enable_shared" = xyes; then
4282    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
4283echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
4284  fi
4285  enable_shared=no
4286fi
4287# By default, we only want the shared objects to be compiled
4288# Check whether --enable-static or --disable-static was given.
4289if test "${enable_static+set}" = set; then
4290  enableval="$enable_static"
4291  p=${PACKAGE-default}
4292    case $enableval in
4293    yes) enable_static=yes ;;
4294    no) enable_static=no ;;
4295    *)
4296     enable_static=no
4297      # Look at the argument we got.  We use all the common list separators.
4298      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4299      for pkg in $enableval; do
4300        IFS="$lt_save_ifs"
4301        if test "X$pkg" = "X$p"; then
4302          enable_static=yes
4303        fi
4304      done
4305      IFS="$lt_save_ifs"
4306      ;;
4307    esac
4308else
4309  enable_static=no
4310fi;
4311
4312
4313
4314
4315# Initialize automake
4316echo "$as_me:$LINENO: checking for egrep" >&5
4317echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4318if test "${ac_cv_prog_egrep+set}" = set; then
4319  echo $ECHO_N "(cached) $ECHO_C" >&6
4320else
4321  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4322    then ac_cv_prog_egrep='grep -E'
4323    else ac_cv_prog_egrep='egrep'
4324    fi
4325fi
4326echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4327echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4328 EGREP=$ac_cv_prog_egrep
4329
4330
4331echo "$as_me:$LINENO: checking whether ln -s works" >&5
4332echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4333LN_S=$as_ln_s
4334if test "$LN_S" = "ln -s"; then
4335  echo "$as_me:$LINENO: result: yes" >&5
4336echo "${ECHO_T}yes" >&6
4337else
4338  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4339echo "${ECHO_T}no, using $LN_S" >&6
4340fi
4341
4342am__api_version="1.9"
4343# Find a good install program.  We prefer a C program (faster),
4344# so one script is as good as another.  But avoid the broken or
4345# incompatible versions:
4346# SysV /etc/install, /usr/sbin/install
4347# SunOS /usr/etc/install
4348# IRIX /sbin/install
4349# AIX /bin/install
4350# AmigaOS /C/install, which installs bootblocks on floppy discs
4351# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4352# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4353# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4354# OS/2's system install, which has a completely different semantic
4355# ./install, which can be erroneously created by make from ./install.sh.
4356echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4357echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4358if test -z "$INSTALL"; then
4359if test "${ac_cv_path_install+set}" = set; then
4360  echo $ECHO_N "(cached) $ECHO_C" >&6
4361else
4362  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4363for as_dir in $PATH
4364do
4365  IFS=$as_save_IFS
4366  test -z "$as_dir" && as_dir=.
4367  # Account for people who put trailing slashes in PATH elements.
4368case $as_dir/ in
4369  ./ | .// | /cC/* | \
4370  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4371  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4372  /usr/ucb/* ) ;;
4373  *)
4374    # OSF1 and SCO ODT 3.0 have their own names for install.
4375    # Don't use installbsd from OSF since it installs stuff as root
4376    # by default.
4377    for ac_prog in ginstall scoinst install; do
4378      for ac_exec_ext in '' $ac_executable_extensions; do
4379        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4380          if test $ac_prog = install &&
4381            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4382            # AIX install.  It has an incompatible calling convention.
4383            :
4384          elif test $ac_prog = install &&
4385            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4386            # program-specific install script used by HP pwplus--don't use.
4387            :
4388          else
4389            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4390            break 3
4391          fi
4392        fi
4393      done
4394    done
4395    ;;
4396esac
4397done
4398
4399
4400fi
4401  if test "${ac_cv_path_install+set}" = set; then
4402    INSTALL=$ac_cv_path_install
4403  else
4404    # As a last resort, use the slow shell script.  We don't cache a
4405    # path for INSTALL within a source directory, because that will
4406    # break other packages using the cache if that directory is
4407    # removed, or if the path is relative.
4408    INSTALL=$ac_install_sh
4409  fi
4410fi
4411echo "$as_me:$LINENO: result: $INSTALL" >&5
4412echo "${ECHO_T}$INSTALL" >&6
4413
4414# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4415# It thinks the first close brace ends the variable substitution.
4416test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4417
4418test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4419
4420test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4421
4422echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4423echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4424# Just in case
4425sleep 1
4426echo timestamp > conftest.file
4427# Do `set' in a subshell so we don't clobber the current shell's
4428# arguments.  Must try -L first in case configure is actually a
4429# symlink; some systems play weird games with the mod time of symlinks
4430# (eg FreeBSD returns the mod time of the symlink's containing
4431# directory).
4432if (
4433   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4434   if test "$*" = "X"; then
4435      # -L didn't work.
4436      set X `ls -t $srcdir/configure conftest.file`
4437   fi
4438   rm -f conftest.file
4439   if test "$*" != "X $srcdir/configure conftest.file" \
4440      && test "$*" != "X conftest.file $srcdir/configure"; then
4441
4442      # If neither matched, then we have a broken ls.  This can happen
4443      # if, for instance, CONFIG_SHELL is bash and it inherits a
4444      # broken ls alias from the environment.  This has actually
4445      # happened.  Such a system could not be considered "sane".
4446      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4447alias in your environment" >&5
4448echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4449alias in your environment" >&2;}
4450   { (exit 1); exit 1; }; }
4451   fi
4452
4453   test "$2" = conftest.file
4454   )
4455then
4456   # Ok.
4457   :
4458else
4459   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4460Check your system clock" >&5
4461echo "$as_me: error: newly created file is older than distributed files!
4462Check your system clock" >&2;}
4463   { (exit 1); exit 1; }; }
4464fi
4465echo "$as_me:$LINENO: result: yes" >&5
4466echo "${ECHO_T}yes" >&6
4467test "$program_prefix" != NONE &&
4468  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4469# Use a double $ so make ignores it.
4470test "$program_suffix" != NONE &&
4471  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4472# Double any \ or $.  echo might interpret backslashes.
4473# By default was `s,x,x', remove it if useless.
4474cat <<\_ACEOF >conftest.sed
4475s/[\\$]/&&/g;s/;s,x,x,$//
4476_ACEOF
4477program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4478rm conftest.sed
4479
4480# expand $ac_aux_dir to an absolute path
4481am_aux_dir=`cd $ac_aux_dir && pwd`
4482
4483test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4484# Use eval to expand $SHELL
4485if eval "$MISSING --run true"; then
4486  am_missing_run="$MISSING --run "
4487else
4488  am_missing_run=
4489  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4490echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4491fi
4492
4493if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4494  # We used to keeping the `.' as first argument, in order to
4495  # allow $(mkdir_p) to be used without argument.  As in
4496  #   $(mkdir_p) $(somedir)
4497  # where $(somedir) is conditionally defined.  However this is wrong
4498  # for two reasons:
4499  #  1. if the package is installed by a user who cannot write `.'
4500  #     make install will fail,
4501  #  2. the above comment should most certainly read
4502  #     $(mkdir_p) $(DESTDIR)$(somedir)
4503  #     so it does not work when $(somedir) is undefined and
4504  #     $(DESTDIR) is not.
4505  #  To support the latter case, we have to write
4506  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4507  #  so the `.' trick is pointless.
4508  mkdir_p='mkdir -p --'
4509else
4510  # On NextStep and OpenStep, the `mkdir' command does not
4511  # recognize any option.  It will interpret all options as
4512  # directories to create, and then abort because `.' already
4513  # exists.
4514  for d in ./-p ./--version;
4515  do
4516    test -d $d && rmdir $d
4517  done
4518  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4519  if test -f "$ac_aux_dir/mkinstalldirs"; then
4520    mkdir_p='$(mkinstalldirs)'
4521  else
4522    mkdir_p='$(install_sh) -d'
4523  fi
4524fi
4525
4526for ac_prog in gawk mawk nawk awk
4527do
4528  # Extract the first word of "$ac_prog", so it can be a program name with args.
4529set dummy $ac_prog; ac_word=$2
4530echo "$as_me:$LINENO: checking for $ac_word" >&5
4531echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4532if test "${ac_cv_prog_AWK+set}" = set; then
4533  echo $ECHO_N "(cached) $ECHO_C" >&6
4534else
4535  if test -n "$AWK"; then
4536  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4537else
4538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4539for as_dir in $PATH
4540do
4541  IFS=$as_save_IFS
4542  test -z "$as_dir" && as_dir=.
4543  for ac_exec_ext in '' $ac_executable_extensions; do
4544  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4545    ac_cv_prog_AWK="$ac_prog"
4546    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4547    break 2
4548  fi
4549done
4550done
4551
4552fi
4553fi
4554AWK=$ac_cv_prog_AWK
4555if test -n "$AWK"; then
4556  echo "$as_me:$LINENO: result: $AWK" >&5
4557echo "${ECHO_T}$AWK" >&6
4558else
4559  echo "$as_me:$LINENO: result: no" >&5
4560echo "${ECHO_T}no" >&6
4561fi
4562
4563  test -n "$AWK" && break
4564done
4565
4566echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4567echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4568set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4569if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4570  echo $ECHO_N "(cached) $ECHO_C" >&6
4571else
4572  cat >conftest.make <<\_ACEOF
4573all:
4574        @echo 'ac_maketemp="$(MAKE)"'
4575_ACEOF
4576# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4577eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4578if test -n "$ac_maketemp"; then
4579  eval ac_cv_prog_make_${ac_make}_set=yes
4580else
4581  eval ac_cv_prog_make_${ac_make}_set=no
4582fi
4583rm -f conftest.make
4584fi
4585if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4586  echo "$as_me:$LINENO: result: yes" >&5
4587echo "${ECHO_T}yes" >&6
4588  SET_MAKE=
4589else
4590  echo "$as_me:$LINENO: result: no" >&5
4591echo "${ECHO_T}no" >&6
4592  SET_MAKE="MAKE=${MAKE-make}"
4593fi
4594
4595rm -rf .tst 2>/dev/null
4596mkdir .tst 2>/dev/null
4597if test -d .tst; then
4598  am__leading_dot=.
4599else
4600  am__leading_dot=_
4601fi
4602rmdir .tst 2>/dev/null
4603
4604DEPDIR="${am__leading_dot}deps"
4605
4606          ac_config_commands="$ac_config_commands depfiles"
4607
4608
4609am_make=${MAKE-make}
4610cat > confinc << 'END'
4611am__doit:
4612        @echo done
4613.PHONY: am__doit
4614END
4615# If we don't find an include directive, just comment out the code.
4616echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4617echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4618am__include="#"
4619am__quote=
4620_am_result=none
4621# First try GNU make style include.
4622echo "include confinc" > confmf
4623# We grep out `Entering directory' and `Leaving directory'
4624# messages which can occur if `w' ends up in MAKEFLAGS.
4625# In particular we don't look at `^make:' because GNU make might
4626# be invoked under some other name (usually "gmake"), in which
4627# case it prints its new name instead of `make'.
4628if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4629   am__include=include
4630   am__quote=
4631   _am_result=GNU
4632fi
4633# Now try BSD make style include.
4634if test "$am__include" = "#"; then
4635   echo '.include "confinc"' > confmf
4636   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4637      am__include=.include
4638      am__quote="\""
4639      _am_result=BSD
4640   fi
4641fi
4642
4643
4644echo "$as_me:$LINENO: result: $_am_result" >&5
4645echo "${ECHO_T}$_am_result" >&6
4646rm -f confinc confmf
4647
4648# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4649if test "${enable_dependency_tracking+set}" = set; then
4650  enableval="$enable_dependency_tracking"
4651
4652fi;
4653if test "x$enable_dependency_tracking" != xno; then
4654  am_depcomp="$ac_aux_dir/depcomp"
4655  AMDEPBACKSLASH='\'
4656fi
4657
4658
4659if test "x$enable_dependency_tracking" != xno; then
4660  AMDEP_TRUE=
4661  AMDEP_FALSE='#'
4662else
4663  AMDEP_TRUE='#'
4664  AMDEP_FALSE=
4665fi
4666
4667
4668
4669
4670
4671
4672# AC_MSG_NOTICE([Beginning automake initialisation.])
4673# Stuff for automake
4674# test to see if srcdir already configured
4675if test "`cd $srcdir && pwd`" != "`pwd`" &&
4676   test -f $srcdir/config.status; then
4677  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4678echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4679   { (exit 1); exit 1; }; }
4680fi
4681
4682# test whether we have cygpath
4683if test -z "$CYGPATH_W"; then
4684  if (cygpath --version) >/dev/null 2>/dev/null; then
4685    CYGPATH_W='cygpath -w'
4686  else
4687    CYGPATH_W=echo
4688  fi
4689fi
4690
4691
4692# Define the identity of the package.
4693 PACKAGE='cbc'
4694 VERSION='2.8'
4695
4696
4697cat >>confdefs.h <<_ACEOF
4698#define PACKAGE "$PACKAGE"
4699_ACEOF
4700
4701
4702cat >>confdefs.h <<_ACEOF
4703#define VERSION "$VERSION"
4704_ACEOF
4705
4706# Some tools Automake needs.
4707
4708ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4709
4710
4711AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4712
4713
4714AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4715
4716
4717AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4718
4719
4720MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4721
4722install_sh=${install_sh-"$am_aux_dir/install-sh"}
4723
4724# Installed binaries are usually stripped using `strip' when the user
4725# run `make install-strip'.  However `strip' might not be the right
4726# tool to use in cross-compilation environments, therefore Automake
4727# will honor the `STRIP' environment variable to overrule this program.
4728if test "$cross_compiling" != no; then
4729  if test -n "$ac_tool_prefix"; then
4730  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4731set dummy ${ac_tool_prefix}strip; ac_word=$2
4732echo "$as_me:$LINENO: checking for $ac_word" >&5
4733echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4734if test "${ac_cv_prog_STRIP+set}" = set; then
4735  echo $ECHO_N "(cached) $ECHO_C" >&6
4736else
4737  if test -n "$STRIP"; then
4738  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4739else
4740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4741for as_dir in $PATH
4742do
4743  IFS=$as_save_IFS
4744  test -z "$as_dir" && as_dir=.
4745  for ac_exec_ext in '' $ac_executable_extensions; do
4746  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4747    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4748    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4749    break 2
4750  fi
4751done
4752done
4753
4754fi
4755fi
4756STRIP=$ac_cv_prog_STRIP
4757if test -n "$STRIP"; then
4758  echo "$as_me:$LINENO: result: $STRIP" >&5
4759echo "${ECHO_T}$STRIP" >&6
4760else
4761  echo "$as_me:$LINENO: result: no" >&5
4762echo "${ECHO_T}no" >&6
4763fi
4764
4765fi
4766if test -z "$ac_cv_prog_STRIP"; then
4767  ac_ct_STRIP=$STRIP
4768  # Extract the first word of "strip", so it can be a program name with args.
4769set dummy strip; ac_word=$2
4770echo "$as_me:$LINENO: checking for $ac_word" >&5
4771echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4772if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4773  echo $ECHO_N "(cached) $ECHO_C" >&6
4774else
4775  if test -n "$ac_ct_STRIP"; then
4776  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4777else
4778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4779for as_dir in $PATH
4780do
4781  IFS=$as_save_IFS
4782  test -z "$as_dir" && as_dir=.
4783  for ac_exec_ext in '' $ac_executable_extensions; do
4784  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4785    ac_cv_prog_ac_ct_STRIP="strip"
4786    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4787    break 2
4788  fi
4789done
4790done
4791
4792  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4793fi
4794fi
4795ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4796if test -n "$ac_ct_STRIP"; then
4797  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4798echo "${ECHO_T}$ac_ct_STRIP" >&6
4799else
4800  echo "$as_me:$LINENO: result: no" >&5
4801echo "${ECHO_T}no" >&6
4802fi
4803
4804  STRIP=$ac_ct_STRIP
4805else
4806  STRIP="$ac_cv_prog_STRIP"
4807fi
4808
4809fi
4810INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4811
4812# We need awk for the "check" target.  The system "awk" is bad on
4813# some platforms.
4814# Always define AMTAR for backward compatibility.
4815
4816AMTAR=${AMTAR-"${am_missing_run}tar"}
4817
4818am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4819
4820
4821
4822
4823depcc="$CC"   am_compiler_list=
4824
4825echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4826echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4827if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4828  echo $ECHO_N "(cached) $ECHO_C" >&6
4829else
4830  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4831  # We make a subdir and do the tests there.  Otherwise we can end up
4832  # making bogus files that we don't know about and never remove.  For
4833  # instance it was reported that on HP-UX the gcc test will end up
4834  # making a dummy file named `D' -- because `-MD' means `put the output
4835  # in D'.
4836  mkdir conftest.dir
4837  # Copy depcomp to subdir because otherwise we won't find it if we're
4838  # using a relative directory.
4839  cp "$am_depcomp" conftest.dir
4840  cd conftest.dir
4841  # We will build objects and dependencies in a subdirectory because
4842  # it helps to detect inapplicable dependency modes.  For instance
4843  # both Tru64's cc and ICC support -MD to output dependencies as a
4844  # side effect of compilation, but ICC will put the dependencies in
4845  # the current directory while Tru64 will put them in the object
4846  # directory.
4847  mkdir sub
4848
4849  am_cv_CC_dependencies_compiler_type=none
4850  if test "$am_compiler_list" = ""; then
4851     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4852  fi
4853  for depmode in $am_compiler_list; do
4854    # Setup a source with many dependencies, because some compilers
4855    # like to wrap large dependency lists on column 80 (with \), and
4856    # we should not choose a depcomp mode which is confused by this.
4857    #
4858    # We need to recreate these files for each test, as the compiler may
4859    # overwrite some of them when testing with obscure command lines.
4860    # This happens at least with the AIX C compiler.
4861    : > sub/conftest.c
4862    for i in 1 2 3 4 5 6; do
4863      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4864      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4865      # Solaris 8's {/usr,}/bin/sh.
4866      touch sub/conftst$i.h
4867    done
4868    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4869
4870    case $depmode in
4871    nosideeffect)
4872      # after this tag, mechanisms are not by side-effect, so they'll
4873      # only be used when explicitly requested
4874      if test "x$enable_dependency_tracking" = xyes; then
4875        continue
4876      else
4877        break
4878      fi
4879      ;;
4880    none) break ;;
4881    esac
4882    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4883    # mode.  It turns out that the SunPro C++ compiler does not properly
4884    # handle `-M -o', and we need to detect this.
4885    if depmode=$depmode \
4886       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4887       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4888       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4889         >/dev/null 2>conftest.err &&
4890       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4891       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4892       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4893      # icc doesn't choke on unknown options, it will just issue warnings
4894      # or remarks (even with -Werror).  So we grep stderr for any message
4895      # that says an option was ignored or not supported.
4896      # When given -MP, icc 7.0 and 7.1 complain thusly:
4897      #   icc: Command line warning: ignoring option '-M'; no argument required
4898      # The diagnosis changed in icc 8.0:
4899      #   icc: Command line remark: option '-MP' not supported
4900      if (grep 'ignoring option' conftest.err ||
4901          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4902        am_cv_CC_dependencies_compiler_type=$depmode
4903        break
4904      fi
4905    fi
4906  done
4907
4908  cd ..
4909  rm -rf conftest.dir
4910else
4911  am_cv_CC_dependencies_compiler_type=none
4912fi
4913
4914fi
4915echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4916echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4917CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4918
4919
4920
4921if
4922  test "x$enable_dependency_tracking" != xno \
4923  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4924  am__fastdepCC_TRUE=
4925  am__fastdepCC_FALSE='#'
4926else
4927  am__fastdepCC_TRUE='#'
4928  am__fastdepCC_FALSE=
4929fi
4930
4931
4932depcc="$CXX"  am_compiler_list=
4933
4934echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4935echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4936if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4937  echo $ECHO_N "(cached) $ECHO_C" >&6
4938else
4939  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4940  # We make a subdir and do the tests there.  Otherwise we can end up
4941  # making bogus files that we don't know about and never remove.  For
4942  # instance it was reported that on HP-UX the gcc test will end up
4943  # making a dummy file named `D' -- because `-MD' means `put the output
4944  # in D'.
4945  mkdir conftest.dir
4946  # Copy depcomp to subdir because otherwise we won't find it if we're
4947  # using a relative directory.
4948  cp "$am_depcomp" conftest.dir
4949  cd conftest.dir
4950  # We will build objects and dependencies in a subdirectory because
4951  # it helps to detect inapplicable dependency modes.  For instance
4952  # both Tru64's cc and ICC support -MD to output dependencies as a
4953  # side effect of compilation, but ICC will put the dependencies in
4954  # the current directory while Tru64 will put them in the object
4955  # directory.
4956  mkdir sub
4957
4958  am_cv_CXX_dependencies_compiler_type=none
4959  if test "$am_compiler_list" = ""; then
4960     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4961  fi
4962  for depmode in $am_compiler_list; do
4963    # Setup a source with many dependencies, because some compilers
4964    # like to wrap large dependency lists on column 80 (with \), and
4965    # we should not choose a depcomp mode which is confused by this.
4966    #
4967    # We need to recreate these files for each test, as the compiler may
4968    # overwrite some of them when testing with obscure command lines.
4969    # This happens at least with the AIX C compiler.
4970    : > sub/conftest.c
4971    for i in 1 2 3 4 5 6; do
4972      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4973      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4974      # Solaris 8's {/usr,}/bin/sh.
4975      touch sub/conftst$i.h
4976    done
4977    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4978
4979    case $depmode in
4980    nosideeffect)
4981      # after this tag, mechanisms are not by side-effect, so they'll
4982      # only be used when explicitly requested
4983      if test "x$enable_dependency_tracking" = xyes; then
4984        continue
4985      else
4986        break
4987      fi
4988      ;;
4989    none) break ;;
4990    esac
4991    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4992    # mode.  It turns out that the SunPro C++ compiler does not properly
4993    # handle `-M -o', and we need to detect this.
4994    if depmode=$depmode \
4995       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4996       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4997       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4998         >/dev/null 2>conftest.err &&
4999       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5000       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5001       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5002      # icc doesn't choke on unknown options, it will just issue warnings
5003      # or remarks (even with -Werror).  So we grep stderr for any message
5004      # that says an option was ignored or not supported.
5005      # When given -MP, icc 7.0 and 7.1 complain thusly:
5006      #   icc: Command line warning: ignoring option '-M'; no argument required
5007      # The diagnosis changed in icc 8.0:
5008      #   icc: Command line remark: option '-MP' not supported
5009      if (grep 'ignoring option' conftest.err ||
5010          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5011        am_cv_CXX_dependencies_compiler_type=$depmode
5012        break
5013      fi
5014    fi
5015  done
5016
5017  cd ..
5018  rm -rf conftest.dir
5019else
5020  am_cv_CXX_dependencies_compiler_type=none
5021fi
5022
5023fi
5024echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5025echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5026CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5027
5028
5029
5030if
5031  test "x$enable_dependency_tracking" != xno \
5032  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5033  am__fastdepCXX_TRUE=
5034  am__fastdepCXX_FALSE='#'
5035else
5036  am__fastdepCXX_TRUE='#'
5037  am__fastdepCXX_FALSE=
5038fi
5039
5040
5041
5042echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5043echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5044    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5045if test "${enable_maintainer_mode+set}" = set; then
5046  enableval="$enable_maintainer_mode"
5047  USE_MAINTAINER_MODE=$enableval
5048else
5049  USE_MAINTAINER_MODE=no
5050fi;
5051  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5052echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5053
5054
5055if test $USE_MAINTAINER_MODE = yes; then
5056  MAINTAINER_MODE_TRUE=
5057  MAINTAINER_MODE_FALSE='#'
5058else
5059  MAINTAINER_MODE_TRUE='#'
5060  MAINTAINER_MODE_FALSE=
5061fi
5062
5063  MAINT=$MAINTAINER_MODE_TRUE
5064
5065
5066
5067coin_have_externals=no
5068if test "$enable_maintainer_mode" = yes; then
5069
5070  # If maintainer mode is chosen, we make sure that the correct versions
5071  # of the tools are used, and that we know where libtool.m4 is (to
5072  # recreate acinclude.m4)
5073
5074
5075  LIBTOOLM4=
5076  # Normally, $HOME
5077  AUTOTOOLS_DFLT=$HOME
5078
5079  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5080echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5081if test "${ac_cv_use_correct_autotools+set}" = set; then
5082  echo $ECHO_N "(cached) $ECHO_C" >&6
5083else
5084  ac_cv_use_correct_autotools=check
5085fi
5086echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5087echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5088
5089  if test $ac_cv_use_correct_autotools = check; then
5090    ac_cv_use_correct_autotools=yes
5091    # Check if we have autoconf
5092    # Extract the first word of "autoconf", so it can be a program name with args.
5093set dummy autoconf; ac_word=$2
5094echo "$as_me:$LINENO: checking for $ac_word" >&5
5095echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5096if test "${ac_cv_prog_have_autoconf+set}" = set; then
5097  echo $ECHO_N "(cached) $ECHO_C" >&6
5098else
5099  if test -n "$have_autoconf"; then
5100  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5101else
5102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5103for as_dir in $PATH
5104do
5105  IFS=$as_save_IFS
5106  test -z "$as_dir" && as_dir=.
5107  for ac_exec_ext in '' $ac_executable_extensions; do
5108  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5109    ac_cv_prog_have_autoconf="yes"
5110    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5111    break 2
5112  fi
5113done
5114done
5115
5116  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5117fi
5118fi
5119have_autoconf=$ac_cv_prog_have_autoconf
5120if test -n "$have_autoconf"; then
5121  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5122echo "${ECHO_T}$have_autoconf" >&6
5123else
5124  echo "$as_me:$LINENO: result: no" >&5
5125echo "${ECHO_T}no" >&6
5126fi
5127
5128    if test $have_autoconf = no; then
5129      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5130echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5131   { (exit 1); exit 1; }; }
5132    fi
5133
5134    # Check whether autoconf is the correct version
5135    correct_version='2.59'
5136    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5137    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5138echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5139    autoconf --version > confauto.out 2>&1
5140    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5141      echo "$as_me:$LINENO: result: yes" >&5
5142echo "${ECHO_T}yes" >&6
5143    else
5144      rm -f confauto.out
5145      echo "$as_me:$LINENO: result: no" >&5
5146echo "${ECHO_T}no" >&6
5147      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5148echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5149   { (exit 1); exit 1; }; }
5150    fi
5151    rm -f confauto.out
5152
5153    # Check if the executable autoconf is picked up from the correct location
5154    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5155echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5156    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5157    autoconf_dir=`cd $autoconf_dir; pwd`
5158    if test x$AUTOTOOLS_DIR = x; then
5159      want_dir=$AUTOTOOLS_DFLT/bin
5160    else
5161      want_dir=$AUTOTOOLS_DIR/bin
5162    fi
5163    if test $autoconf_dir = `cd $want_dir; pwd`; then
5164      echo "$as_me:$LINENO: result: yes" >&5
5165echo "${ECHO_T}yes" >&6
5166    else
5167      rm -f confauto.out
5168      echo "$as_me:$LINENO: result: no" >&5
5169echo "${ECHO_T}no" >&6
5170      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5171echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5172   { (exit 1); exit 1; }; }
5173    fi
5174
5175    # Check if we have automake
5176    # Extract the first word of "automake", so it can be a program name with args.
5177set dummy automake; ac_word=$2
5178echo "$as_me:$LINENO: checking for $ac_word" >&5
5179echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5180if test "${ac_cv_prog_have_automake+set}" = set; then
5181  echo $ECHO_N "(cached) $ECHO_C" >&6
5182else
5183  if test -n "$have_automake"; then
5184  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5185else
5186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5187for as_dir in $PATH
5188do
5189  IFS=$as_save_IFS
5190  test -z "$as_dir" && as_dir=.
5191  for ac_exec_ext in '' $ac_executable_extensions; do
5192  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5193    ac_cv_prog_have_automake="yes"
5194    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5195    break 2
5196  fi
5197done
5198done
5199
5200  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5201fi
5202fi
5203have_automake=$ac_cv_prog_have_automake
5204if test -n "$have_automake"; then
5205  echo "$as_me:$LINENO: result: $have_automake" >&5
5206echo "${ECHO_T}$have_automake" >&6
5207else
5208  echo "$as_me:$LINENO: result: no" >&5
5209echo "${ECHO_T}no" >&6
5210fi
5211
5212    if test $have_automake = no; then
5213      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5214echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5215   { (exit 1); exit 1; }; }
5216    fi
5217
5218    # Check whether automake is the correct version
5219    correct_version='1.9.6'
5220    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5221    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5222echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5223    automake --version > confauto.out 2>&1
5224    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5225      echo "$as_me:$LINENO: result: yes" >&5
5226echo "${ECHO_T}yes" >&6
5227    else
5228      rm -f confauto.out
5229      echo "$as_me:$LINENO: result: no" >&5
5230echo "${ECHO_T}no" >&6
5231      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5232echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5233   { (exit 1); exit 1; }; }
5234    fi
5235    rm -f confauto.out
5236
5237    # Check if the executable automake is picked up from the correct location
5238    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5239echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5240    automake_dir=`which automake | sed -e 's=/automake=='`
5241    automake_dir=`cd $automake_dir; pwd`
5242    if test x$AUTOTOOLS_DIR = x; then
5243      want_dir=$AUTOTOOLS_DFLT/bin
5244    else
5245      want_dir=$AUTOTOOLS_DIR/bin
5246    fi
5247    if test $automake_dir = `cd $want_dir; pwd`; then
5248      echo "$as_me:$LINENO: result: yes" >&5
5249echo "${ECHO_T}yes" >&6
5250    else
5251      rm -f confauto.out
5252      echo "$as_me:$LINENO: result: no" >&5
5253echo "${ECHO_T}no" >&6
5254      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5255echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5256   { (exit 1); exit 1; }; }
5257    fi
5258
5259    # Check if this is the correct version of libtool (with escaped dots)
5260    if test x$AUTOTOOLS_DIR = x; then
5261      want_dir=$AUTOTOOLS_DFLT/share
5262    else
5263      want_dir=$AUTOTOOLS_DIR/share
5264    fi
5265    correct_version='1.5.22'
5266    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5267    if test -r $want_dir/libtool/ltmain.sh; then
5268  have_ltmain=yes
5269  :
5270else
5271  have_ltmain=no
5272  :
5273fi
5274
5275    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5276echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5277    if test $have_ltmain = yes; then
5278    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5279        echo "$as_me:$LINENO: result: yes" >&5
5280echo "${ECHO_T}yes" >&6
5281      else
5282        echo "$as_me:$LINENO: result: no" >&5
5283echo "${ECHO_T}no" >&6
5284        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5285echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5286   { (exit 1); exit 1; }; }
5287      fi
5288    else
5289      echo "$as_me:$LINENO: result: no" >&5
5290echo "${ECHO_T}no" >&6
5291      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5292echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5293   { (exit 1); exit 1; }; }
5294    fi
5295  fi
5296
5297  # Check if we can find the libtool file
5298  if test x$AUTOTOOLS_DIR = x; then
5299    want_dir=$AUTOTOOLS_DFLT/share
5300  else
5301    want_dir=$AUTOTOOLS_DIR/share
5302  fi
5303  if test -r $want_dir/aclocal/libtool.m4; then
5304  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5305  :
5306else
5307  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5308echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5309   { (exit 1); exit 1; }; }
5310  :
5311fi
5312
5313
5314  # Check if we have an Dependencies file
5315  if test -r $srcdir/Dependencies; then
5316    coin_have_externals=yes
5317  fi
5318  # Check if subversion is installed and understands https
5319  # Extract the first word of "svn", so it can be a program name with args.
5320set dummy svn; ac_word=$2
5321echo "$as_me:$LINENO: checking for $ac_word" >&5
5322echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5323if test "${ac_cv_prog_have_svn+set}" = set; then
5324  echo $ECHO_N "(cached) $ECHO_C" >&6
5325else
5326  if test -n "$have_svn"; then
5327  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5328else
5329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5330for as_dir in $PATH
5331do
5332  IFS=$as_save_IFS
5333  test -z "$as_dir" && as_dir=.
5334  for ac_exec_ext in '' $ac_executable_extensions; do
5335  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5336    ac_cv_prog_have_svn="yes"
5337    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5338    break 2
5339  fi
5340done
5341done
5342
5343  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5344fi
5345fi
5346have_svn=$ac_cv_prog_have_svn
5347if test -n "$have_svn"; then
5348  echo "$as_me:$LINENO: result: $have_svn" >&5
5349echo "${ECHO_T}$have_svn" >&6
5350else
5351  echo "$as_me:$LINENO: result: no" >&5
5352echo "${ECHO_T}no" >&6
5353fi
5354
5355  if test x$have_svn = xyes; then
5356    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5357echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5358if test "${ac_cv_svn_understands_https+set}" = set; then
5359  echo $ECHO_N "(cached) $ECHO_C" >&6
5360else
5361  svn --version > confauto.out 2>&1
5362                    if $EGREP https confauto.out >/dev/null 2>&1; then
5363                      ac_cv_svn_understands_https=yes
5364                    else
5365                      ac_cv_svn_understands_https=no
5366                      have_svn=no
5367                      ac_cv_prog_have_svn=no
5368                    fi
5369                    rm -f confauto.out
5370fi
5371echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5372echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5373  fi
5374
5375  # Find the location of the BuildTools directory
5376  BUILDTOOLSDIR=
5377  if test -r $srcdir/BuildTools/coin.m4; then
5378    BUILDTOOLSDIR=$srcdir/BuildTools
5379  else
5380    if test -r $srcdir/../BuildTools/coin.m4; then
5381      BUILDTOOLSDIR=$srcdir/../BuildTools
5382    else
5383      if test -r $srcdir/../../BuildTools/coin.m4; then
5384        BUILDTOOLSDIR=$srcdir/../../BuildTools
5385      else
5386        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5387echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5388   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
5389      fi
5390    fi
5391  fi
5392
5393
5394  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
5395  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
5396    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
5397  fi
5398
5399  # The following variable is set to the name of the directory where
5400  # the autotool scripts are located
5401
5402  AUX_DIR=$ac_aux_dir
5403fi
5404
5405# helpful variable for the base directory of this package
5406abs_source_dir=`cd $srcdir; pwd`
5407
5408
5409# Stuff for example Makefiles
5410if test x$prefix = xNONE; then
5411  full_prefix=$ac_default_prefix
5412else
5413  full_prefix=$prefix
5414fi
5415full_prefix=`cd $full_prefix ; pwd`
5416
5417abs_lib_dir=$full_prefix/lib
5418
5419abs_include_dir=$full_prefix/include
5420
5421abs_bin_dir=$full_prefix/bin
5422
5423
5424
5425if test $coin_have_externals = yes && test x$have_svn = xyes; then
5426  HAVE_EXTERNALS_TRUE=
5427  HAVE_EXTERNALS_FALSE='#'
5428else
5429  HAVE_EXTERNALS_TRUE='#'
5430  HAVE_EXTERNALS_FALSE=
5431fi
5432
5433
5434# AC_MSG_NOTICE([End automake initialisation.])
5435
5436
5437
5438LIBTOOL=
5439if test -r ../libtool; then
5440  coin_config_dir=..
5441  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5442fi
5443if test "x$LIBTOOL" = x; then
5444  if test -r ../../libtool; then
5445    coin_config_dir=../..
5446    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5447  fi
5448fi
5449
5450if test "x$LIBTOOL" = x; then
5451# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5452  # Stuff for libtool
5453  # Check whether --enable-shared or --disable-shared was given.
5454if test "${enable_shared+set}" = set; then
5455  enableval="$enable_shared"
5456  p=${PACKAGE-default}
5457    case $enableval in
5458    yes) enable_shared=yes ;;
5459    no) enable_shared=no ;;
5460    *)
5461      enable_shared=no
5462      # Look at the argument we got.  We use all the common list separators.
5463      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5464      for pkg in $enableval; do
5465        IFS="$lt_save_ifs"
5466        if test "X$pkg" = "X$p"; then
5467          enable_shared=yes
5468        fi
5469      done
5470      IFS="$lt_save_ifs"
5471      ;;
5472    esac
5473else
5474  enable_shared=yes
5475fi;
5476
5477# Check whether --enable-fast-install or --disable-fast-install was given.
5478if test "${enable_fast_install+set}" = set; then
5479  enableval="$enable_fast_install"
5480  p=${PACKAGE-default}
5481    case $enableval in
5482    yes) enable_fast_install=yes ;;
5483    no) enable_fast_install=no ;;
5484    *)
5485      enable_fast_install=no
5486      # Look at the argument we got.  We use all the common list separators.
5487      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5488      for pkg in $enableval; do
5489        IFS="$lt_save_ifs"
5490        if test "X$pkg" = "X$p"; then
5491          enable_fast_install=yes
5492        fi
5493      done
5494      IFS="$lt_save_ifs"
5495      ;;
5496    esac
5497else
5498  enable_fast_install=yes
5499fi;
5500
5501echo "$as_me:$LINENO: checking host system type" >&5
5502echo $ECHO_N "checking host system type... $ECHO_C" >&6
5503if test "${ac_cv_host+set}" = set; then
5504  echo $ECHO_N "(cached) $ECHO_C" >&6
5505else
5506  ac_cv_host_alias=$host_alias
5507test -z "$ac_cv_host_alias" &&
5508  ac_cv_host_alias=$ac_cv_build_alias
5509ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5510  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5511echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5512   { (exit 1); exit 1; }; }
5513
5514fi
5515echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5516echo "${ECHO_T}$ac_cv_host" >&6
5517host=$ac_cv_host
5518host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5519host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5520host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5521
5522
5523echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5524echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5525if test "${lt_cv_path_SED+set}" = set; then
5526  echo $ECHO_N "(cached) $ECHO_C" >&6
5527else
5528  # Loop through the user's path and test for sed and gsed.
5529# Then use that list of sed's as ones to test for truncation.
5530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5531for as_dir in $PATH
5532do
5533  IFS=$as_save_IFS
5534  test -z "$as_dir" && as_dir=.
5535  for lt_ac_prog in sed gsed; do
5536    for ac_exec_ext in '' $ac_executable_extensions; do
5537      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5538        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5539      fi
5540    done
5541  done
5542done
5543lt_ac_max=0
5544lt_ac_count=0
5545# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5546# along with /bin/sed that truncates output.
5547for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5548  test ! -f $lt_ac_sed && continue
5549  cat /dev/null > conftest.in
5550  lt_ac_count=0
5551  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5552  # Check for GNU sed and select it if it is found.
5553  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5554    lt_cv_path_SED=$lt_ac_sed
5555    break
5556  fi
5557  while true; do
5558    cat conftest.in conftest.in >conftest.tmp
5559    mv conftest.tmp conftest.in
5560    cp conftest.in conftest.nl
5561    echo >>conftest.nl
5562    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5563    cmp -s conftest.out conftest.nl || break
5564    # 10000 chars as input seems more than enough
5565    test $lt_ac_count -gt 10 && break
5566    lt_ac_count=`expr $lt_ac_count + 1`
5567    if test $lt_ac_count -gt $lt_ac_max; then
5568      lt_ac_max=$lt_ac_count
5569      lt_cv_path_SED=$lt_ac_sed
5570    fi
5571  done
5572done
5573
5574fi
5575
5576SED=$lt_cv_path_SED
5577echo "$as_me:$LINENO: result: $SED" >&5
5578echo "${ECHO_T}$SED" >&6
5579
5580
5581# Check whether --with-gnu-ld or --without-gnu-ld was given.
5582if test "${with_gnu_ld+set}" = set; then
5583  withval="$with_gnu_ld"
5584  test "$withval" = no || with_gnu_ld=yes
5585else
5586  with_gnu_ld=no
5587fi;
5588ac_prog=ld
5589if test "$GCC" = yes; then
5590  # Check if gcc -print-prog-name=ld gives a path.
5591  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5592echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5593  case $host in
5594  *-*-mingw*)
5595    # gcc leaves a trailing carriage return which upsets mingw
5596    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5597  *)
5598    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5599  esac
5600  case $ac_prog in
5601    # Accept absolute paths.
5602    [\\/]* | ?:[\\/]*)
5603      re_direlt='/[^/][^/]*/\.\./'
5604      # Canonicalize the pathname of ld
5605      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5606      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5607        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5608      done
5609      test -z "$LD" && LD="$ac_prog"
5610      ;;
5611  "")
5612    # If it fails, then pretend we aren't using GCC.
5613    ac_prog=ld
5614    ;;
5615  *)
5616    # If it is relative, then search for the first ld in PATH.
5617    with_gnu_ld=unknown
5618    ;;
5619  esac
5620elif test "$with_gnu_ld" = yes; then
5621  echo "$as_me:$LINENO: checking for GNU ld" >&5
5622echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5623else
5624  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5625echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5626fi
5627if test "${lt_cv_path_LD+set}" = set; then
5628  echo $ECHO_N "(cached) $ECHO_C" >&6
5629else
5630  if test -z "$LD"; then
5631  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5632  for ac_dir in $PATH; do
5633    IFS="$lt_save_ifs"
5634    test -z "$ac_dir" && ac_dir=.
5635    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5636      lt_cv_path_LD="$ac_dir/$ac_prog"
5637      # Check to see if the program is GNU ld.  I'd rather use --version,
5638      # but apparently some variants of GNU ld only accept -v.
5639      # Break only if it was the GNU/non-GNU ld that we prefer.
5640      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5641      *GNU* | *'with BFD'*)
5642        test "$with_gnu_ld" != no && break
5643        ;;
5644      *)
5645        test "$with_gnu_ld" != yes && break
5646        ;;
5647      esac
5648    fi
5649  done
5650  IFS="$lt_save_ifs"
5651else
5652  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5653fi
5654fi
5655
5656LD="$lt_cv_path_LD"
5657if test -n "$LD"; then
5658  echo "$as_me:$LINENO: result: $LD" >&5
5659echo "${ECHO_T}$LD" >&6
5660else
5661  echo "$as_me:$LINENO: result: no" >&5
5662echo "${ECHO_T}no" >&6
5663fi
5664test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5665echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5666   { (exit 1); exit 1; }; }
5667echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5668echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5669if test "${lt_cv_prog_gnu_ld+set}" = set; then
5670  echo $ECHO_N "(cached) $ECHO_C" >&6
5671else
5672  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5673case `$LD -v 2>&1 </dev/null` in
5674*GNU* | *'with BFD'*)
5675  lt_cv_prog_gnu_ld=yes
5676  ;;
5677*)
5678  lt_cv_prog_gnu_ld=no
5679  ;;
5680esac
5681fi
5682echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5683echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5684with_gnu_ld=$lt_cv_prog_gnu_ld
5685
5686
5687echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5688echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5689if test "${lt_cv_ld_reload_flag+set}" = set; then
5690  echo $ECHO_N "(cached) $ECHO_C" >&6
5691else
5692  lt_cv_ld_reload_flag='-r'
5693fi
5694echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5695echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5696reload_flag=$lt_cv_ld_reload_flag
5697case $reload_flag in
5698"" | " "*) ;;
5699*) reload_flag=" $reload_flag" ;;
5700esac
5701reload_cmds='$LD$reload_flag -o $output$reload_objs'
5702case $host_os in
5703  darwin*)
5704    if test "$GCC" = yes; then
5705      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5706    else
5707      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5708    fi
5709    ;;
5710esac
5711
5712echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5713echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5714if test "${lt_cv_path_NM+set}" = set; then
5715  echo $ECHO_N "(cached) $ECHO_C" >&6
5716else
5717  if test -n "$NM"; then
5718  # Let the user override the test.
5719  lt_cv_path_NM="$NM"
5720else
5721  lt_nm_to_check="${ac_tool_prefix}nm"
5722  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5723    lt_nm_to_check="$lt_nm_to_check nm"
5724  fi
5725  for lt_tmp_nm in $lt_nm_to_check; do
5726    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5727    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5728      IFS="$lt_save_ifs"
5729      test -z "$ac_dir" && ac_dir=.
5730      tmp_nm="$ac_dir/$lt_tmp_nm"
5731      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5732        # Check to see if the nm accepts a BSD-compat flag.
5733        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5734        #   nm: unknown option "B" ignored
5735        # Tru64's nm complains that /dev/null is an invalid object file
5736        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5737        */dev/null* | *'Invalid file or object type'*)
5738          lt_cv_path_NM="$tmp_nm -B"
5739          break
5740          ;;
5741        *)
5742          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5743          */dev/null*)
5744            lt_cv_path_NM="$tmp_nm -p"
5745            break
5746            ;;
5747          *)
5748            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5749            continue # so that we can try to find one that supports BSD flags
5750            ;;
5751          esac
5752          ;;
5753        esac
5754      fi
5755    done
5756    IFS="$lt_save_ifs"
5757  done
5758  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5759fi
5760fi
5761echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5762echo "${ECHO_T}$lt_cv_path_NM" >&6
5763NM="$lt_cv_path_NM"
5764
5765echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5766echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5767if test "${lt_cv_deplibs_check_method+set}" = set; then
5768  echo $ECHO_N "(cached) $ECHO_C" >&6
5769else
5770  lt_cv_file_magic_cmd='$MAGIC_CMD'
5771lt_cv_file_magic_test_file=
5772lt_cv_deplibs_check_method='unknown'
5773# Need to set the preceding variable on all platforms that support
5774# interlibrary dependencies.
5775# 'none' -- dependencies not supported.
5776# `unknown' -- same as none, but documents that we really don't know.
5777# 'pass_all' -- all dependencies passed with no checks.
5778# 'test_compile' -- check by making test program.
5779# 'file_magic [[regex]]' -- check by looking for files in library path
5780# which responds to the $file_magic_cmd with a given extended regex.
5781# If you have `file' or equivalent on your system and you're not sure
5782# whether `pass_all' will *always* work, you probably want this one.
5783
5784case $host_os in
5785aix4* | aix5*)
5786  lt_cv_deplibs_check_method=pass_all
5787  ;;
5788
5789beos*)
5790  lt_cv_deplibs_check_method=pass_all
5791  ;;
5792
5793bsdi[45]*)
5794  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5795  lt_cv_file_magic_cmd='/usr/bin/file -L'
5796  lt_cv_file_magic_test_file=/shlib/libc.so
5797  ;;
5798
5799cygwin*)
5800  # func_win32_libid is a shell function defined in ltmain.sh
5801  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5802  lt_cv_file_magic_cmd='func_win32_libid'
5803  ;;
5804
5805mingw* | pw32*)
5806  # Base MSYS/MinGW do not provide the 'file' command needed by
5807  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5808  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5809  lt_cv_file_magic_cmd='$OBJDUMP -f'
5810  ;;
5811
5812darwin* | rhapsody*)
5813  lt_cv_deplibs_check_method=pass_all
5814  ;;
5815
5816freebsd* | kfreebsd*-gnu | dragonfly*)
5817  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5818    case $host_cpu in
5819    i*86 )
5820      # Not sure whether the presence of OpenBSD here was a mistake.
5821      # Let's accept both of them until this is cleared up.
5822      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5823      lt_cv_file_magic_cmd=/usr/bin/file
5824      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5825      ;;
5826    esac
5827  else
5828    lt_cv_deplibs_check_method=pass_all
5829  fi
5830  ;;
5831
5832gnu*)
5833  lt_cv_deplibs_check_method=pass_all
5834  ;;
5835
5836hpux10.20* | hpux11*)
5837  lt_cv_file_magic_cmd=/usr/bin/file
5838  case $host_cpu in
5839  ia64*)
5840    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5841    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5842    ;;
5843  hppa*64*)
5844    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]'
5845    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5846    ;;
5847  *)
5848    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5849    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5850    ;;
5851  esac
5852  ;;
5853
5854interix3*)
5855  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5856  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5857  ;;
5858
5859irix5* | irix6* | nonstopux*)
5860  case $LD in
5861  *-32|*"-32 ") libmagic=32-bit;;
5862  *-n32|*"-n32 ") libmagic=N32;;
5863  *-64|*"-64 ") libmagic=64-bit;;
5864  *) libmagic=never-match;;
5865  esac
5866  lt_cv_deplibs_check_method=pass_all
5867  ;;
5868
5869# This must be Linux ELF.
5870linux*)
5871  lt_cv_deplibs_check_method=pass_all
5872  ;;
5873
5874netbsd*)
5875  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5876    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5877  else
5878    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5879  fi
5880  ;;
5881
5882newos6*)
5883  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5884  lt_cv_file_magic_cmd=/usr/bin/file
5885  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5886  ;;
5887
5888nto-qnx*)
5889  lt_cv_deplibs_check_method=unknown
5890  ;;
5891
5892openbsd*)
5893  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5894    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5895  else
5896    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5897  fi
5898  ;;
5899
5900osf3* | osf4* | osf5*)
5901  lt_cv_deplibs_check_method=pass_all
5902  ;;
5903
5904solaris*)
5905  lt_cv_deplibs_check_method=pass_all
5906  ;;
5907
5908sysv4 | sysv4.3*)
5909  case $host_vendor in
5910  motorola)
5911    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]'
5912    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5913    ;;
5914  ncr)
5915    lt_cv_deplibs_check_method=pass_all
5916    ;;
5917  sequent)
5918    lt_cv_file_magic_cmd='/bin/file'
5919    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5920    ;;
5921  sni)
5922    lt_cv_file_magic_cmd='/bin/file'
5923    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5924    lt_cv_file_magic_test_file=/lib/libc.so
5925    ;;
5926  siemens)
5927    lt_cv_deplibs_check_method=pass_all
5928    ;;
5929  pc)
5930    lt_cv_deplibs_check_method=pass_all
5931    ;;
5932  esac
5933  ;;
5934
5935sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5936  lt_cv_deplibs_check_method=pass_all
5937  ;;
5938esac
5939
5940fi
5941echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5942echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5943file_magic_cmd=$lt_cv_file_magic_cmd
5944deplibs_check_method=$lt_cv_deplibs_check_method
5945test -z "$deplibs_check_method" && deplibs_check_method=unknown
5946
5947
5948
5949
5950# If no C compiler was specified, use CC.
5951LTCC=${LTCC-"$CC"}
5952
5953# If no C compiler flags were specified, use CFLAGS.
5954LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5955
5956# Allow CC to be a program name with arguments.
5957compiler=$CC
5958
5959# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5960if test "${enable_libtool_lock+set}" = set; then
5961  enableval="$enable_libtool_lock"
5962
5963fi;
5964test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5965
5966# Some flags need to be propagated to the compiler or linker for good
5967# libtool support.
5968case $host in
5969ia64-*-hpux*)
5970  # Find out which ABI we are using.
5971  echo 'int i;' > conftest.$ac_ext
5972  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5973  (eval $ac_compile) 2>&5
5974  ac_status=$?
5975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976  (exit $ac_status); }; then
5977    case `/usr/bin/file conftest.$ac_objext` in
5978    *ELF-32*)
5979      HPUX_IA64_MODE="32"
5980      ;;
5981    *ELF-64*)
5982      HPUX_IA64_MODE="64"
5983      ;;
5984    esac
5985  fi
5986  rm -rf conftest*
5987  ;;
5988*-*-irix6*)
5989  # Find out which ABI we are using.
5990  echo '#line 5990 "configure"' > conftest.$ac_ext
5991  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5992  (eval $ac_compile) 2>&5
5993  ac_status=$?
5994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995  (exit $ac_status); }; then
5996   if test "$lt_cv_prog_gnu_ld" = yes; then
5997    case `/usr/bin/file conftest.$ac_objext` in
5998    *32-bit*)
5999      LD="${LD-ld} -melf32bsmip"
6000      ;;
6001    *N32*)
6002      LD="${LD-ld} -melf32bmipn32"
6003      ;;
6004    *64-bit*)
6005      LD="${LD-ld} -melf64bmip"
6006      ;;
6007    esac
6008   else
6009    case `/usr/bin/file conftest.$ac_objext` in
6010    *32-bit*)
6011      LD="${LD-ld} -32"
6012      ;;
6013    *N32*)
6014      LD="${LD-ld} -n32"
6015      ;;
6016    *64-bit*)
6017      LD="${LD-ld} -64"
6018      ;;
6019    esac
6020   fi
6021  fi
6022  rm -rf conftest*
6023  ;;
6024
6025x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6026  # Find out which ABI we are using.
6027  echo 'int i;' > conftest.$ac_ext
6028  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6029  (eval $ac_compile) 2>&5
6030  ac_status=$?
6031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032  (exit $ac_status); }; then
6033    case `/usr/bin/file conftest.o` in
6034    *32-bit*)
6035      case $host in
6036        x86_64-*linux*)
6037          LD="${LD-ld} -m elf_i386"
6038          ;;
6039        ppc64-*linux*|powerpc64-*linux*)
6040          LD="${LD-ld} -m elf32ppclinux"
6041          ;;
6042        s390x-*linux*)
6043          LD="${LD-ld} -m elf_s390"
6044          ;;
6045        sparc64-*linux*)
6046          LD="${LD-ld} -m elf32_sparc"
6047          ;;
6048      esac
6049      ;;
6050    *64-bit*)
6051      case $host in
6052        x86_64-*linux*)
6053          LD="${LD-ld} -m elf_x86_64"
6054          ;;
6055        ppc*-*linux*|powerpc*-*linux*)
6056          LD="${LD-ld} -m elf64ppc"
6057          ;;
6058        s390*-*linux*)
6059          LD="${LD-ld} -m elf64_s390"
6060          ;;
6061        sparc*-*linux*)
6062          LD="${LD-ld} -m elf64_sparc"
6063          ;;
6064      esac
6065      ;;
6066    esac
6067  fi
6068  rm -rf conftest*
6069  ;;
6070
6071*-*-sco3.2v5*)
6072  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6073  SAVE_CFLAGS="$CFLAGS"
6074  CFLAGS="$CFLAGS -belf"
6075  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6076echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6077if test "${lt_cv_cc_needs_belf+set}" = set; then
6078  echo $ECHO_N "(cached) $ECHO_C" >&6
6079else
6080  ac_ext=c
6081ac_cpp='$CPP $CPPFLAGS'
6082ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6083ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6084ac_compiler_gnu=$ac_cv_c_compiler_gnu
6085
6086     cat >conftest.$ac_ext <<_ACEOF
6087/* confdefs.h.  */
6088_ACEOF
6089cat confdefs.h >>conftest.$ac_ext
6090cat >>conftest.$ac_ext <<_ACEOF
6091/* end confdefs.h.  */
6092
6093int
6094main ()
6095{
6096
6097  ;
6098  return 0;
6099}
6100_ACEOF
6101rm -f conftest.$ac_objext conftest$ac_exeext
6102if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6103  (eval $ac_link) 2>conftest.er1
6104  ac_status=$?
6105  grep -v '^ *+' conftest.er1 >conftest.err
6106  rm -f conftest.er1
6107  cat conftest.err >&5
6108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109  (exit $ac_status); } &&
6110         { ac_try='test -z "$ac_c_werror_flag"
6111                         || test ! -s conftest.err'
6112  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6113  (eval $ac_try) 2>&5
6114  ac_status=$?
6115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116  (exit $ac_status); }; } &&
6117         { ac_try='test -s conftest$ac_exeext'
6118  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6119  (eval $ac_try) 2>&5
6120  ac_status=$?
6121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122  (exit $ac_status); }; }; then
6123  lt_cv_cc_needs_belf=yes
6124else
6125  echo "$as_me: failed program was:" >&5
6126sed 's/^/| /' conftest.$ac_ext >&5
6127
6128lt_cv_cc_needs_belf=no
6129fi
6130rm -f conftest.err conftest.$ac_objext \
6131      conftest$ac_exeext conftest.$ac_ext
6132     ac_ext=c
6133ac_cpp='$CPP $CPPFLAGS'
6134ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6135ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6136ac_compiler_gnu=$ac_cv_c_compiler_gnu
6137
6138fi
6139echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6140echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6141  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6142    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6143    CFLAGS="$SAVE_CFLAGS"
6144  fi
6145  ;;
6146sparc*-*solaris*)
6147  # Find out which ABI we are using.
6148  echo 'int i;' > conftest.$ac_ext
6149  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6150  (eval $ac_compile) 2>&5
6151  ac_status=$?
6152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153  (exit $ac_status); }; then
6154    case `/usr/bin/file conftest.o` in
6155    *64-bit*)
6156      case $lt_cv_prog_gnu_ld in
6157      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6158      *)    LD="${LD-ld} -64" ;;
6159      esac
6160      ;;
6161    esac
6162  fi
6163  rm -rf conftest*
6164  ;;
6165
6166
6167esac
6168
6169need_locks="$enable_libtool_lock"
6170
6171
6172ac_ext=c
6173ac_cpp='$CPP $CPPFLAGS'
6174ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6175ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6176ac_compiler_gnu=$ac_cv_c_compiler_gnu
6177echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6178echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6179# On Suns, sometimes $CPP names a directory.
6180if test -n "$CPP" && test -d "$CPP"; then
6181  CPP=
6182fi
6183if test -z "$CPP"; then
6184  if test "${ac_cv_prog_CPP+set}" = set; then
6185  echo $ECHO_N "(cached) $ECHO_C" >&6
6186else
6187      # Double quotes because CPP needs to be expanded
6188    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6189    do
6190      ac_preproc_ok=false
6191for ac_c_preproc_warn_flag in '' yes
6192do
6193  # Use a header file that comes with gcc, so configuring glibc
6194  # with a fresh cross-compiler works.
6195  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6196  # <limits.h> exists even on freestanding compilers.
6197  # On the NeXT, cc -E runs the code through the compiler's parser,
6198  # not just through cpp. "Syntax error" is here to catch this case.
6199  cat >conftest.$ac_ext <<_ACEOF
6200/* confdefs.h.  */
6201_ACEOF
6202cat confdefs.h >>conftest.$ac_ext
6203cat >>conftest.$ac_ext <<_ACEOF
6204/* end confdefs.h.  */
6205#ifdef __STDC__
6206# include <limits.h>
6207#else
6208# include <assert.h>
6209#endif
6210                     Syntax error
6211_ACEOF
6212if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6213  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6214  ac_status=$?
6215  grep -v '^ *+' conftest.er1 >conftest.err
6216  rm -f conftest.er1
6217  cat conftest.err >&5
6218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219  (exit $ac_status); } >/dev/null; then
6220  if test -s conftest.err; then
6221    ac_cpp_err=$ac_c_preproc_warn_flag
6222    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6223  else
6224    ac_cpp_err=
6225  fi
6226else
6227  ac_cpp_err=yes
6228fi
6229if test -z "$ac_cpp_err"; then
6230  :
6231else
6232  echo "$as_me: failed program was:" >&5
6233sed 's/^/| /' conftest.$ac_ext >&5
6234
6235  # Broken: fails on valid input.
6236continue
6237fi
6238rm -f conftest.err conftest.$ac_ext
6239
6240  # OK, works on sane cases.  Now check whether non-existent headers
6241  # can be detected and how.
6242  cat >conftest.$ac_ext <<_ACEOF
6243/* confdefs.h.  */
6244_ACEOF
6245cat confdefs.h >>conftest.$ac_ext
6246cat >>conftest.$ac_ext <<_ACEOF
6247/* end confdefs.h.  */
6248#include <ac_nonexistent.h>
6249_ACEOF
6250if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6251  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6252  ac_status=$?
6253  grep -v '^ *+' conftest.er1 >conftest.err
6254  rm -f conftest.er1
6255  cat conftest.err >&5
6256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257  (exit $ac_status); } >/dev/null; then
6258  if test -s conftest.err; then
6259    ac_cpp_err=$ac_c_preproc_warn_flag
6260    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6261  else
6262    ac_cpp_err=
6263  fi
6264else
6265  ac_cpp_err=yes
6266fi
6267if test -z "$ac_cpp_err"; then
6268  # Broken: success on invalid input.
6269continue
6270else
6271  echo "$as_me: failed program was:" >&5
6272sed 's/^/| /' conftest.$ac_ext >&5
6273
6274  # Passes both tests.
6275ac_preproc_ok=:
6276break
6277fi
6278rm -f conftest.err conftest.$ac_ext
6279
6280done
6281# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6282rm -f conftest.err conftest.$ac_ext
6283if $ac_preproc_ok; then
6284  break
6285fi
6286
6287    done
6288    ac_cv_prog_CPP=$CPP
6289
6290fi
6291  CPP=$ac_cv_prog_CPP
6292else
6293  ac_cv_prog_CPP=$CPP
6294fi
6295echo "$as_me:$LINENO: result: $CPP" >&5
6296echo "${ECHO_T}$CPP" >&6
6297ac_preproc_ok=false
6298for ac_c_preproc_warn_flag in '' yes
6299do
6300  # Use a header file that comes with gcc, so configuring glibc
6301  # with a fresh cross-compiler works.
6302  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6303  # <limits.h> exists even on freestanding compilers.
6304  # On the NeXT, cc -E runs the code through the compiler's parser,
6305  # not just through cpp. "Syntax error" is here to catch this case.
6306  cat >conftest.$ac_ext <<_ACEOF
6307/* confdefs.h.  */
6308_ACEOF
6309cat confdefs.h >>conftest.$ac_ext
6310cat >>conftest.$ac_ext <<_ACEOF
6311/* end confdefs.h.  */
6312#ifdef __STDC__
6313# include <limits.h>
6314#else
6315# include <assert.h>
6316#endif
6317                     Syntax error
6318_ACEOF
6319if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6320  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6321  ac_status=$?
6322  grep -v '^ *+' conftest.er1 >conftest.err
6323  rm -f conftest.er1
6324  cat conftest.err >&5
6325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326  (exit $ac_status); } >/dev/null; then
6327  if test -s conftest.err; then
6328    ac_cpp_err=$ac_c_preproc_warn_flag
6329    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6330  else
6331    ac_cpp_err=
6332  fi
6333else
6334  ac_cpp_err=yes
6335fi
6336if test -z "$ac_cpp_err"; then
6337  :
6338else
6339  echo "$as_me: failed program was:" >&5
6340sed 's/^/| /' conftest.$ac_ext >&5
6341
6342  # Broken: fails on valid input.
6343continue
6344fi
6345rm -f conftest.err conftest.$ac_ext
6346
6347  # OK, works on sane cases.  Now check whether non-existent headers
6348  # can be detected and how.
6349  cat >conftest.$ac_ext <<_ACEOF
6350/* confdefs.h.  */
6351_ACEOF
6352cat confdefs.h >>conftest.$ac_ext
6353cat >>conftest.$ac_ext <<_ACEOF
6354/* end confdefs.h.  */
6355#include <ac_nonexistent.h>
6356_ACEOF
6357if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6358  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6359  ac_status=$?
6360  grep -v '^ *+' conftest.er1 >conftest.err
6361  rm -f conftest.er1
6362  cat conftest.err >&5
6363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364  (exit $ac_status); } >/dev/null; then
6365  if test -s conftest.err; then
6366    ac_cpp_err=$ac_c_preproc_warn_flag
6367    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6368  else
6369    ac_cpp_err=
6370  fi
6371else
6372  ac_cpp_err=yes
6373fi
6374if test -z "$ac_cpp_err"; then
6375  # Broken: success on invalid input.
6376continue
6377else
6378  echo "$as_me: failed program was:" >&5
6379sed 's/^/| /' conftest.$ac_ext >&5
6380
6381  # Passes both tests.
6382ac_preproc_ok=:
6383break
6384fi
6385rm -f conftest.err conftest.$ac_ext
6386
6387done
6388# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6389rm -f conftest.err conftest.$ac_ext
6390if $ac_preproc_ok; then
6391  :
6392else
6393  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6394See \`config.log' for more details." >&5
6395echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6396See \`config.log' for more details." >&2;}
6397   { (exit 1); exit 1; }; }
6398fi
6399
6400ac_ext=c
6401ac_cpp='$CPP $CPPFLAGS'
6402ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6403ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6404ac_compiler_gnu=$ac_cv_c_compiler_gnu
6405
6406
6407echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6408echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6409if test "${ac_cv_header_stdc+set}" = set; then
6410  echo $ECHO_N "(cached) $ECHO_C" >&6
6411else
6412  cat >conftest.$ac_ext <<_ACEOF
6413/* confdefs.h.  */
6414_ACEOF
6415cat confdefs.h >>conftest.$ac_ext
6416cat >>conftest.$ac_ext <<_ACEOF
6417/* end confdefs.h.  */
6418#include <stdlib.h>
6419#include <stdarg.h>
6420#include <string.h>
6421#include <float.h>
6422
6423int
6424main ()
6425{
6426
6427  ;
6428  return 0;
6429}
6430_ACEOF
6431rm -f conftest.$ac_objext
6432if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6433  (eval $ac_compile) 2>conftest.er1
6434  ac_status=$?
6435  grep -v '^ *+' conftest.er1 >conftest.err
6436  rm -f conftest.er1
6437  cat conftest.err >&5
6438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6439  (exit $ac_status); } &&
6440         { ac_try='test -z "$ac_c_werror_flag"
6441                         || test ! -s conftest.err'
6442  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6443  (eval $ac_try) 2>&5
6444  ac_status=$?
6445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446  (exit $ac_status); }; } &&
6447         { ac_try='test -s conftest.$ac_objext'
6448  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6449  (eval $ac_try) 2>&5
6450  ac_status=$?
6451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6452  (exit $ac_status); }; }; then
6453  ac_cv_header_stdc=yes
6454else
6455  echo "$as_me: failed program was:" >&5
6456sed 's/^/| /' conftest.$ac_ext >&5
6457
6458ac_cv_header_stdc=no
6459fi
6460rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6461
6462if test $ac_cv_header_stdc = yes; then
6463  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6464  cat >conftest.$ac_ext <<_ACEOF
6465/* confdefs.h.  */
6466_ACEOF
6467cat confdefs.h >>conftest.$ac_ext
6468cat >>conftest.$ac_ext <<_ACEOF
6469/* end confdefs.h.  */
6470#include <string.h>
6471
6472_ACEOF
6473if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6474  $EGREP "memchr" >/dev/null 2>&1; then
6475  :
6476else
6477  ac_cv_header_stdc=no
6478fi
6479rm -f conftest*
6480
6481fi
6482
6483if test $ac_cv_header_stdc = yes; then
6484  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6485  cat >conftest.$ac_ext <<_ACEOF
6486/* confdefs.h.  */
6487_ACEOF
6488cat confdefs.h >>conftest.$ac_ext
6489cat >>conftest.$ac_ext <<_ACEOF
6490/* end confdefs.h.  */
6491#include <stdlib.h>
6492
6493_ACEOF
6494if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6495  $EGREP "free" >/dev/null 2>&1; then
6496  :
6497else
6498  ac_cv_header_stdc=no
6499fi
6500rm -f conftest*
6501
6502fi
6503
6504if test $ac_cv_header_stdc = yes; then
6505  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6506  if test "$cross_compiling" = yes; then
6507  :
6508else
6509  cat >conftest.$ac_ext <<_ACEOF
6510/* confdefs.h.  */
6511_ACEOF
6512cat confdefs.h >>conftest.$ac_ext
6513cat >>conftest.$ac_ext <<_ACEOF
6514/* end confdefs.h.  */
6515#include <ctype.h>
6516#if ((' ' & 0x0FF) == 0x020)
6517# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6518# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6519#else
6520# define ISLOWER(c) \
6521                   (('a' <= (c) && (c) <= 'i') \
6522                     || ('j' <= (c) && (c) <= 'r') \
6523                     || ('s' <= (c) && (c) <= 'z'))
6524# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6525#endif
6526
6527#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6528int
6529main ()
6530{
6531  int i;
6532  for (i = 0; i < 256; i++)
6533    if (XOR (islower (i), ISLOWER (i))
6534        || toupper (i) != TOUPPER (i))
6535      exit(2);
6536  exit (0);
6537}
6538_ACEOF
6539rm -f conftest$ac_exeext
6540if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6541  (eval $ac_link) 2>&5
6542  ac_status=$?
6543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6544  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6545  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6546  (eval $ac_try) 2>&5
6547  ac_status=$?
6548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549  (exit $ac_status); }; }; then
6550  :
6551else
6552  echo "$as_me: program exited with status $ac_status" >&5
6553echo "$as_me: failed program was:" >&5
6554sed 's/^/| /' conftest.$ac_ext >&5
6555
6556( exit $ac_status )
6557ac_cv_header_stdc=no
6558fi
6559rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6560fi
6561fi
6562fi
6563echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6564echo "${ECHO_T}$ac_cv_header_stdc" >&6
6565if test $ac_cv_header_stdc = yes; then
6566
6567cat >>confdefs.h <<\_ACEOF
6568#define STDC_HEADERS 1
6569_ACEOF
6570
6571fi
6572
6573# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6584                  inttypes.h stdint.h unistd.h
6585do
6586as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6587echo "$as_me:$LINENO: checking for $ac_header" >&5
6588echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6589if eval "test \"\${$as_ac_Header+set}\" = set"; then
6590  echo $ECHO_N "(cached) $ECHO_C" >&6
6591else
6592  cat >conftest.$ac_ext <<_ACEOF
6593/* confdefs.h.  */
6594_ACEOF
6595cat confdefs.h >>conftest.$ac_ext
6596cat >>conftest.$ac_ext <<_ACEOF
6597/* end confdefs.h.  */
6598$ac_includes_default
6599
6600#include <$ac_header>
6601_ACEOF
6602rm -f conftest.$ac_objext
6603if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6604  (eval $ac_compile) 2>conftest.er1
6605  ac_status=$?
6606  grep -v '^ *+' conftest.er1 >conftest.err
6607  rm -f conftest.er1
6608  cat conftest.err >&5
6609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610  (exit $ac_status); } &&
6611         { ac_try='test -z "$ac_c_werror_flag"
6612                         || test ! -s conftest.err'
6613  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6614  (eval $ac_try) 2>&5
6615  ac_status=$?
6616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617  (exit $ac_status); }; } &&
6618         { ac_try='test -s conftest.$ac_objext'
6619  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6620  (eval $ac_try) 2>&5
6621  ac_status=$?
6622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6623  (exit $ac_status); }; }; then
6624  eval "$as_ac_Header=yes"
6625else
6626  echo "$as_me: failed program was:" >&5
6627sed 's/^/| /' conftest.$ac_ext >&5
6628
6629eval "$as_ac_Header=no"
6630fi
6631rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6632fi
6633echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6634echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6635if test `eval echo '${'$as_ac_Header'}'` = yes; then
6636  cat >>confdefs.h <<_ACEOF
6637#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6638_ACEOF
6639
6640fi
6641
6642done
6643
6644
6645
6646for ac_header in dlfcn.h
6647do
6648as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6649if eval "test \"\${$as_ac_Header+set}\" = set"; then
6650  echo "$as_me:$LINENO: checking for $ac_header" >&5
6651echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6652if eval "test \"\${$as_ac_Header+set}\" = set"; then
6653  echo $ECHO_N "(cached) $ECHO_C" >&6
6654fi
6655echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6656echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6657else
6658  # Is the header compilable?
6659echo "$as_me:$LINENO: checking $ac_header usability" >&5
6660echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6661cat >conftest.$ac_ext <<_ACEOF
6662/* confdefs.h.  */
6663_ACEOF
6664cat confdefs.h >>conftest.$ac_ext
6665cat >>conftest.$ac_ext <<_ACEOF
6666/* end confdefs.h.  */
6667$ac_includes_default
6668#include <$ac_header>
6669_ACEOF
6670rm -f conftest.$ac_objext
6671if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6672  (eval $ac_compile) 2>conftest.er1
6673  ac_status=$?
6674  grep -v '^ *+' conftest.er1 >conftest.err
6675  rm -f conftest.er1
6676  cat conftest.err >&5
6677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6678  (exit $ac_status); } &&
6679         { ac_try='test -z "$ac_c_werror_flag"
6680                         || test ! -s conftest.err'
6681  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6682  (eval $ac_try) 2>&5
6683  ac_status=$?
6684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685  (exit $ac_status); }; } &&
6686         { ac_try='test -s conftest.$ac_objext'
6687  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6688  (eval $ac_try) 2>&5
6689  ac_status=$?
6690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6691  (exit $ac_status); }; }; then
6692  ac_header_compiler=yes
6693else
6694  echo "$as_me: failed program was:" >&5
6695sed 's/^/| /' conftest.$ac_ext >&5
6696
6697ac_header_compiler=no
6698fi
6699rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6700echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6701echo "${ECHO_T}$ac_header_compiler" >&6
6702
6703# Is the header present?
6704echo "$as_me:$LINENO: checking $ac_header presence" >&5
6705echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6706cat >conftest.$ac_ext <<_ACEOF
6707/* confdefs.h.  */
6708_ACEOF
6709cat confdefs.h >>conftest.$ac_ext
6710cat >>conftest.$ac_ext <<_ACEOF
6711/* end confdefs.h.  */
6712#include <$ac_header>
6713_ACEOF
6714if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6715  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6716  ac_status=$?
6717  grep -v '^ *+' conftest.er1 >conftest.err
6718  rm -f conftest.er1
6719  cat conftest.err >&5
6720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6721  (exit $ac_status); } >/dev/null; then
6722  if test -s conftest.err; then
6723    ac_cpp_err=$ac_c_preproc_warn_flag
6724    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6725  else
6726    ac_cpp_err=
6727  fi
6728else
6729  ac_cpp_err=yes
6730fi
6731if test -z "$ac_cpp_err"; then
6732  ac_header_preproc=yes
6733else
6734  echo "$as_me: failed program was:" >&5
6735sed 's/^/| /' conftest.$ac_ext >&5
6736
6737  ac_header_preproc=no
6738fi
6739rm -f conftest.err conftest.$ac_ext
6740echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6741echo "${ECHO_T}$ac_header_preproc" >&6
6742
6743# So?  What about this header?
6744case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6745  yes:no: )
6746    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6747echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6748    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6749echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6750    ac_header_preproc=yes
6751    ;;
6752  no:yes:* )
6753    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6754echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6755    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6756echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6757    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6758echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6759    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6760echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6761    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6762echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6763    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6764echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6765    (
6766      cat <<\_ASBOX
6767## ------------------------------------ ##
6768## Report this to cbc@lists.coin-or.org ##
6769## ------------------------------------ ##
6770_ASBOX
6771    ) |
6772      sed "s/^/$as_me: WARNING:     /" >&2
6773    ;;
6774esac
6775echo "$as_me:$LINENO: checking for $ac_header" >&5
6776echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6777if eval "test \"\${$as_ac_Header+set}\" = set"; then
6778  echo $ECHO_N "(cached) $ECHO_C" >&6
6779else
6780  eval "$as_ac_Header=\$ac_header_preproc"
6781fi
6782echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6783echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6784
6785fi
6786if test `eval echo '${'$as_ac_Header'}'` = yes; then
6787  cat >>confdefs.h <<_ACEOF
6788#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6789_ACEOF
6790
6791fi
6792
6793done
6794
6795
6796
6797if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6798    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6799    (test "X$CXX" != "Xg++"))) ; then
6800  ac_ext=cc
6801ac_cpp='$CXXCPP $CPPFLAGS'
6802ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6803ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6804ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6805echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6806echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6807if test -z "$CXXCPP"; then
6808  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6809  echo $ECHO_N "(cached) $ECHO_C" >&6
6810else
6811      # Double quotes because CXXCPP needs to be expanded
6812    for CXXCPP in "$CXX -E" "/lib/cpp"
6813    do
6814      ac_preproc_ok=false
6815for ac_cxx_preproc_warn_flag in '' yes
6816do
6817  # Use a header file that comes with gcc, so configuring glibc
6818  # with a fresh cross-compiler works.
6819  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6820  # <limits.h> exists even on freestanding compilers.
6821  # On the NeXT, cc -E runs the code through the compiler's parser,
6822  # not just through cpp. "Syntax error" is here to catch this case.
6823  cat >conftest.$ac_ext <<_ACEOF
6824/* confdefs.h.  */
6825_ACEOF
6826cat confdefs.h >>conftest.$ac_ext
6827cat >>conftest.$ac_ext <<_ACEOF
6828/* end confdefs.h.  */
6829#ifdef __STDC__
6830# include <limits.h>
6831#else
6832# include <assert.h>
6833#endif
6834                     Syntax error
6835_ACEOF
6836if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6837  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6838  ac_status=$?
6839  grep -v '^ *+' conftest.er1 >conftest.err
6840  rm -f conftest.er1
6841  cat conftest.err >&5
6842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6843  (exit $ac_status); } >/dev/null; then
6844  if test -s conftest.err; then
6845    ac_cpp_err=$ac_cxx_preproc_warn_flag
6846    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6847  else
6848    ac_cpp_err=
6849  fi
6850else
6851  ac_cpp_err=yes
6852fi
6853if test -z "$ac_cpp_err"; then
6854  :
6855else
6856  echo "$as_me: failed program was:" >&5
6857sed 's/^/| /' conftest.$ac_ext >&5
6858
6859  # Broken: fails on valid input.
6860continue
6861fi
6862rm -f conftest.err conftest.$ac_ext
6863
6864  # OK, works on sane cases.  Now check whether non-existent headers
6865  # can be detected and how.
6866  cat >conftest.$ac_ext <<_ACEOF
6867/* confdefs.h.  */
6868_ACEOF
6869cat confdefs.h >>conftest.$ac_ext
6870cat >>conftest.$ac_ext <<_ACEOF
6871/* end confdefs.h.  */
6872#include <ac_nonexistent.h>
6873_ACEOF
6874if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6875  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6876  ac_status=$?
6877  grep -v '^ *+' conftest.er1 >conftest.err
6878  rm -f conftest.er1
6879  cat conftest.err >&5
6880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6881  (exit $ac_status); } >/dev/null; then
6882  if test -s conftest.err; then
6883    ac_cpp_err=$ac_cxx_preproc_warn_flag
6884    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6885  else
6886    ac_cpp_err=
6887  fi
6888else
6889  ac_cpp_err=yes
6890fi
6891if test -z "$ac_cpp_err"; then
6892  # Broken: success on invalid input.
6893continue
6894else
6895  echo "$as_me: failed program was:" >&5
6896sed 's/^/| /' conftest.$ac_ext >&5
6897
6898  # Passes both tests.
6899ac_preproc_ok=:
6900break
6901fi
6902rm -f conftest.err conftest.$ac_ext
6903
6904done
6905# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6906rm -f conftest.err conftest.$ac_ext
6907if $ac_preproc_ok; then
6908  break
6909fi
6910
6911    done
6912    ac_cv_prog_CXXCPP=$CXXCPP
6913
6914fi
6915  CXXCPP=$ac_cv_prog_CXXCPP
6916else
6917  ac_cv_prog_CXXCPP=$CXXCPP
6918fi
6919echo "$as_me:$LINENO: result: $CXXCPP" >&5
6920echo "${ECHO_T}$CXXCPP" >&6
6921ac_preproc_ok=false
6922for ac_cxx_preproc_warn_flag in '' yes
6923do
6924  # Use a header file that comes with gcc, so configuring glibc
6925  # with a fresh cross-compiler works.
6926  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6927  # <limits.h> exists even on freestanding compilers.
6928  # On the NeXT, cc -E runs the code through the compiler's parser,
6929  # not just through cpp. "Syntax error" is here to catch this case.
6930  cat >conftest.$ac_ext <<_ACEOF
6931/* confdefs.h.  */
6932_ACEOF
6933cat confdefs.h >>conftest.$ac_ext
6934cat >>conftest.$ac_ext <<_ACEOF
6935/* end confdefs.h.  */
6936#ifdef __STDC__
6937# include <limits.h>
6938#else
6939# include <assert.h>
6940#endif
6941                     Syntax error
6942_ACEOF
6943if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6944  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6945  ac_status=$?
6946  grep -v '^ *+' conftest.er1 >conftest.err
6947  rm -f conftest.er1
6948  cat conftest.err >&5
6949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6950  (exit $ac_status); } >/dev/null; then
6951  if test -s conftest.err; then
6952    ac_cpp_err=$ac_cxx_preproc_warn_flag
6953    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6954  else
6955    ac_cpp_err=
6956  fi
6957else
6958  ac_cpp_err=yes
6959fi
6960if test -z "$ac_cpp_err"; then
6961  :
6962else
6963  echo "$as_me: failed program was:" >&5
6964sed 's/^/| /' conftest.$ac_ext >&5
6965
6966  # Broken: fails on valid input.
6967continue
6968fi
6969rm -f conftest.err conftest.$ac_ext
6970
6971  # OK, works on sane cases.  Now check whether non-existent headers
6972  # can be detected and how.
6973  cat >conftest.$ac_ext <<_ACEOF
6974/* confdefs.h.  */
6975_ACEOF
6976cat confdefs.h >>conftest.$ac_ext
6977cat >>conftest.$ac_ext <<_ACEOF
6978/* end confdefs.h.  */
6979#include <ac_nonexistent.h>
6980_ACEOF
6981if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6982  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6983  ac_status=$?
6984  grep -v '^ *+' conftest.er1 >conftest.err
6985  rm -f conftest.er1
6986  cat conftest.err >&5
6987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6988  (exit $ac_status); } >/dev/null; then
6989  if test -s conftest.err; then
6990    ac_cpp_err=$ac_cxx_preproc_warn_flag
6991    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6992  else
6993    ac_cpp_err=
6994  fi
6995else
6996  ac_cpp_err=yes
6997fi
6998if test -z "$ac_cpp_err"; then
6999  # Broken: success on invalid input.
7000continue
7001else
7002  echo "$as_me: failed program was:" >&5
7003sed 's/^/| /' conftest.$ac_ext >&5
7004
7005  # Passes both tests.
7006ac_preproc_ok=:
7007break
7008fi
7009rm -f conftest.err conftest.$ac_ext
7010
7011done
7012# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7013rm -f conftest.err conftest.$ac_ext
7014if $ac_preproc_ok; then
7015  :
7016else
7017  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7018See \`config.log' for more details." >&5
7019echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7020See \`config.log' for more details." >&2;}
7021   { (exit 1); exit 1; }; }
7022fi
7023
7024ac_ext=cc
7025ac_cpp='$CXXCPP $CPPFLAGS'
7026ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7027ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7028ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7029
7030fi
7031
7032ac_ext=f
7033ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7034ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7035ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7036if test -n "$ac_tool_prefix"; then
7037  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7038  do
7039    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7040set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7041echo "$as_me:$LINENO: checking for $ac_word" >&5
7042echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7043if test "${ac_cv_prog_F77+set}" = set; then
7044  echo $ECHO_N "(cached) $ECHO_C" >&6
7045else
7046  if test -n "$F77"; then
7047  ac_cv_prog_F77="$F77" # Let the user override the test.
7048else
7049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7050for as_dir in $PATH
7051do
7052  IFS=$as_save_IFS
7053  test -z "$as_dir" && as_dir=.
7054  for ac_exec_ext in '' $ac_executable_extensions; do
7055  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7056    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7057    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7058    break 2
7059  fi
7060done
7061done
7062
7063fi
7064fi
7065F77=$ac_cv_prog_F77
7066if test -n "$F77"; then
7067  echo "$as_me:$LINENO: result: $F77" >&5
7068echo "${ECHO_T}$F77" >&6
7069else
7070  echo "$as_me:$LINENO: result: no" >&5
7071echo "${ECHO_T}no" >&6
7072fi
7073
7074    test -n "$F77" && break
7075  done
7076fi
7077if test -z "$F77"; then
7078  ac_ct_F77=$F77
7079  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7080do
7081  # Extract the first word of "$ac_prog", so it can be a program name with args.
7082set dummy $ac_prog; ac_word=$2
7083echo "$as_me:$LINENO: checking for $ac_word" >&5
7084echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7085if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7086  echo $ECHO_N "(cached) $ECHO_C" >&6
7087else
7088  if test -n "$ac_ct_F77"; then
7089  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7090else
7091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7092for as_dir in $PATH
7093do
7094  IFS=$as_save_IFS
7095  test -z "$as_dir" && as_dir=.
7096  for ac_exec_ext in '' $ac_executable_extensions; do
7097  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7098    ac_cv_prog_ac_ct_F77="$ac_prog"
7099    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7100    break 2
7101  fi
7102done
7103done
7104
7105fi
7106fi
7107ac_ct_F77=$ac_cv_prog_ac_ct_F77
7108if test -n "$ac_ct_F77"; then
7109  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7110echo "${ECHO_T}$ac_ct_F77" >&6
7111else
7112  echo "$as_me:$LINENO: result: no" >&5
7113echo "${ECHO_T}no" >&6
7114fi
7115
7116  test -n "$ac_ct_F77" && break
7117done
7118
7119  F77=$ac_ct_F77
7120fi
7121
7122
7123# Provide some information about the compiler.
7124echo "$as_me:7124:" \
7125     "checking for Fortran 77 compiler version" >&5
7126ac_compiler=`set X $ac_compile; echo $2`
7127{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7128  (eval $ac_compiler --version </dev/null >&5) 2>&5
7129  ac_status=$?
7130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7131  (exit $ac_status); }
7132{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7133  (eval $ac_compiler -v </dev/null >&5) 2>&5
7134  ac_status=$?
7135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7136  (exit $ac_status); }
7137{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7138  (eval $ac_compiler -V </dev/null >&5) 2>&5
7139  ac_status=$?
7140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7141  (exit $ac_status); }
7142rm -f a.out
7143
7144# If we don't use `.F' as extension, the preprocessor is not run on the
7145# input file.  (Note that this only needs to work for GNU compilers.)
7146ac_save_ext=$ac_ext
7147ac_ext=F
7148echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7149echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
7150if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7151  echo $ECHO_N "(cached) $ECHO_C" >&6
7152else
7153  cat >conftest.$ac_ext <<_ACEOF
7154      program main
7155#ifndef __GNUC__
7156       choke me
7157#endif
7158
7159      end
7160_ACEOF
7161rm -f conftest.$ac_objext
7162if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7163  (eval $ac_compile) 2>conftest.er1
7164  ac_status=$?
7165  grep -v '^ *+' conftest.er1 >conftest.err
7166  rm -f conftest.er1
7167  cat conftest.err >&5
7168  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7169  (exit $ac_status); } &&
7170         { ac_try='test -z "$ac_f77_werror_flag"
7171                         || test ! -s conftest.err'
7172  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7173  (eval $ac_try) 2>&5
7174  ac_status=$?
7175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7176  (exit $ac_status); }; } &&
7177         { ac_try='test -s conftest.$ac_objext'
7178  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7179  (eval $ac_try) 2>&5
7180  ac_status=$?
7181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7182  (exit $ac_status); }; }; then
7183  ac_compiler_gnu=yes
7184else
7185  echo "$as_me: failed program was:" >&5
7186sed 's/^/| /' conftest.$ac_ext >&5
7187
7188ac_compiler_gnu=no
7189fi
7190rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7191ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7192
7193fi
7194echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7195echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7196ac_ext=$ac_save_ext
7197ac_test_FFLAGS=${FFLAGS+set}
7198ac_save_FFLAGS=$FFLAGS
7199FFLAGS=
7200echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7201echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7202if test "${ac_cv_prog_f77_g+set}" = set; then
7203  echo $ECHO_N "(cached) $ECHO_C" >&6
7204else
7205  FFLAGS=-g
7206cat >conftest.$ac_ext <<_ACEOF
7207      program main
7208
7209      end
7210_ACEOF
7211rm -f conftest.$ac_objext
7212if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7213  (eval $ac_compile) 2>conftest.er1
7214  ac_status=$?
7215  grep -v '^ *+' conftest.er1 >conftest.err
7216  rm -f conftest.er1
7217  cat conftest.err >&5
7218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7219  (exit $ac_status); } &&
7220         { ac_try='test -z "$ac_f77_werror_flag"
7221                         || test ! -s conftest.err'
7222  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7223  (eval $ac_try) 2>&5
7224  ac_status=$?
7225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7226  (exit $ac_status); }; } &&
7227         { ac_try='test -s conftest.$ac_objext'
7228  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7229  (eval $ac_try) 2>&5
7230  ac_status=$?
7231  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7232  (exit $ac_status); }; }; then
7233  ac_cv_prog_f77_g=yes
7234else
7235  echo "$as_me: failed program was:" >&5
7236sed 's/^/| /' conftest.$ac_ext >&5
7237
7238ac_cv_prog_f77_g=no
7239fi
7240rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7241
7242fi
7243echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7244echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7245if test "$ac_test_FFLAGS" = set; then
7246  FFLAGS=$ac_save_FFLAGS
7247elif test $ac_cv_prog_f77_g = yes; then
7248  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7249    FFLAGS="-g -O2"
7250  else
7251    FFLAGS="-g"
7252  fi
7253else
7254  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7255    FFLAGS="-O2"
7256  else
7257    FFLAGS=
7258  fi
7259fi
7260
7261G77=`test $ac_compiler_gnu = yes && echo yes`
7262ac_ext=c
7263ac_cpp='$CPP $CPPFLAGS'
7264ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7265ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7266ac_compiler_gnu=$ac_cv_c_compiler_gnu
7267
7268
7269
7270# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7271
7272# find the maximum length of command line arguments
7273echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7274echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7275if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7276  echo $ECHO_N "(cached) $ECHO_C" >&6
7277else
7278    i=0
7279  teststring="ABCD"
7280
7281  case $build_os in
7282  msdosdjgpp*)
7283    # On DJGPP, this test can blow up pretty badly due to problems in libc
7284    # (any single argument exceeding 2000 bytes causes a buffer overrun
7285    # during glob expansion).  Even if it were fixed, the result of this
7286    # check would be larger than it should be.
7287    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7288    ;;
7289
7290  gnu*)
7291    # Under GNU Hurd, this test is not required because there is
7292    # no limit to the length of command line arguments.
7293    # Libtool will interpret -1 as no limit whatsoever
7294    lt_cv_sys_max_cmd_len=-1;
7295    ;;
7296
7297  cygwin* | mingw*)
7298    # On Win9x/ME, this test blows up -- it succeeds, but takes
7299    # about 5 minutes as the teststring grows exponentially.
7300    # Worse, since 9x/ME are not pre-emptively multitasking,
7301    # you end up with a "frozen" computer, even though with patience
7302    # the test eventually succeeds (with a max line length of 256k).
7303    # Instead, let's just punt: use the minimum linelength reported by
7304    # all of the supported platforms: 8192 (on NT/2K/XP).
7305    lt_cv_sys_max_cmd_len=8192;
7306    ;;
7307
7308  amigaos*)
7309    # On AmigaOS with pdksh, this test takes hours, literally.
7310    # So we just punt and use a minimum line length of 8192.
7311    lt_cv_sys_max_cmd_len=8192;
7312    ;;
7313
7314  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7315    # This has been around since 386BSD, at least.  Likely further.
7316    if test -x /sbin/sysctl; then
7317      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7318    elif test -x /usr/sbin/sysctl; then
7319      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7320    else
7321      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7322    fi
7323    # And add a safety zone
7324    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7325    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7326    ;;
7327
7328  interix*)
7329    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7330    lt_cv_sys_max_cmd_len=196608
7331    ;;
7332
7333  osf*)
7334    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7335    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7336    # nice to cause kernel panics so lets avoid the loop below.
7337    # First set a reasonable default.
7338    lt_cv_sys_max_cmd_len=16384
7339    #
7340    if test -x /sbin/sysconfig; then
7341      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7342        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7343      esac
7344    fi
7345    ;;
7346  sco3.2v5*)
7347    lt_cv_sys_max_cmd_len=102400
7348    ;;
7349  sysv5* | sco5v6* | sysv4.2uw2*)
7350    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7351    if test -n "$kargmax"; then
7352      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7353    else
7354      lt_cv_sys_max_cmd_len=32768
7355    fi
7356    ;;
7357  *)
7358    # If test is not a shell built-in, we'll probably end up computing a
7359    # maximum length that is only half of the actual maximum length, but
7360    # we can't tell.
7361    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7362    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7363               = "XX$teststring") >/dev/null 2>&1 &&
7364            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7365            lt_cv_sys_max_cmd_len=$new_result &&
7366            test $i != 17 # 1/2 MB should be enough
7367    do
7368      i=`expr $i + 1`
7369      teststring=$teststring$teststring
7370    done
7371    teststring=
7372    # Add a significant safety factor because C++ compilers can tack on massive
7373    # amounts of additional arguments before passing them to the linker.
7374    # It appears as though 1/2 is a usable value.
7375    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7376    ;;
7377  esac
7378
7379fi
7380
7381if test -n $lt_cv_sys_max_cmd_len ; then
7382  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7383echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7384else
7385  echo "$as_me:$LINENO: result: none" >&5
7386echo "${ECHO_T}none" >&6
7387fi
7388
7389
7390
7391
7392# Check for command to grab the raw symbol name followed by C symbol from nm.
7393echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7394echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7395if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7396  echo $ECHO_N "(cached) $ECHO_C" >&6
7397else
7398
7399# These are sane defaults that work on at least a few old systems.
7400# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7401
7402# Character class describing NM global symbol codes.
7403symcode='[BCDEGRST]'
7404
7405# Regexp to match symbols that can be accessed directly from C.
7406sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7407
7408# Transform an extracted symbol line into a proper C declaration
7409lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7410
7411# Transform an extracted symbol line into symbol name and symbol address
7412lt_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'"
7413
7414# Define system-specific variables.
7415case $host_os in
7416aix*)
7417  symcode='[BCDT]'
7418  ;;
7419cygwin* | mingw* | pw32*)
7420  symcode='[ABCDGISTW]'
7421  ;;
7422hpux*) # Its linker distinguishes data from code symbols
7423  if test "$host_cpu" = ia64; then
7424    symcode='[ABCDEGRST]'
7425  fi
7426  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7427  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'"
7428  ;;
7429linux*)
7430  if test "$host_cpu" = ia64; then
7431    symcode='[ABCDGIRSTW]'
7432    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7433    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'"
7434  fi
7435  ;;
7436irix* | nonstopux*)
7437  symcode='[BCDEGRST]'
7438  ;;
7439osf*)
7440  symcode='[BCDEGQRST]'
7441  ;;
7442solaris*)
7443  symcode='[BDRT]'
7444  ;;
7445sco3.2v5*)
7446  symcode='[DT]'
7447  ;;
7448sysv4.2uw2*)
7449  symcode='[DT]'
7450  ;;
7451sysv5* | sco5v6* | unixware* | OpenUNIX*)
7452  symcode='[ABDT]'
7453  ;;
7454sysv4)
7455  symcode='[DFNSTU]'
7456  ;;
7457esac
7458
7459# Handle CRLF in mingw tool chain
7460opt_cr=
7461case $build_os in
7462mingw*)
7463  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7464  ;;
7465esac
7466
7467# If we're using GNU nm, then use its standard symbol codes.
7468case `$NM -V 2>&1` in
7469*GNU* | *'with BFD'*)
7470  symcode='[ABCDGIRSTW]' ;;
7471esac
7472
7473# Try without a prefix undercore, then with it.
7474for ac_symprfx in "" "_"; do
7475
7476  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7477  symxfrm="\\1 $ac_symprfx\\2 \\2"
7478
7479  # Write the raw and C identifiers.
7480  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7481
7482  # Check to see that the pipe works correctly.
7483  pipe_works=no
7484
7485  rm -f conftest*
7486  cat > conftest.$ac_ext <<EOF
7487#ifdef __cplusplus
7488extern "C" {
7489#endif
7490char nm_test_var;
7491void nm_test_func(){}
7492#ifdef __cplusplus
7493}
7494#endif
7495int main(){nm_test_var='a';nm_test_func();return(0);}
7496EOF
7497
7498  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7499  (eval $ac_compile) 2>&5
7500  ac_status=$?
7501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7502  (exit $ac_status); }; then
7503    # Now try to grab the symbols.
7504    nlist=conftest.nm
7505    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7506  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7507  ac_status=$?
7508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7509  (exit $ac_status); } && test -s "$nlist"; then
7510      # Try sorting and uniquifying the output.
7511      if sort "$nlist" | uniq > "$nlist"T; then
7512        mv -f "$nlist"T "$nlist"
7513      else
7514        rm -f "$nlist"T
7515      fi
7516
7517      # Make sure that we snagged all the symbols we need.
7518      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7519        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7520          cat <<EOF > conftest.$ac_ext
7521#ifdef __cplusplus
7522extern "C" {
7523#endif
7524
7525EOF
7526          # Now generate the symbol file.
7527          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7528
7529          cat <<EOF >> conftest.$ac_ext
7530#if defined (__STDC__) && __STDC__
7531# define lt_ptr_t void *
7532#else
7533# define lt_ptr_t char *
7534# define const
7535#endif
7536
7537/* The mapping between symbol names and symbols. */
7538const struct {
7539  const char *name;
7540  lt_ptr_t address;
7541}
7542lt_preloaded_symbols[] =
7543{
7544EOF
7545          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7546          cat <<\EOF >> conftest.$ac_ext
7547  {0, (lt_ptr_t) 0}
7548};
7549
7550#ifdef __cplusplus
7551}
7552#endif
7553EOF
7554          # Now try linking the two files.
7555          mv conftest.$ac_objext conftstm.$ac_objext
7556          lt_save_LIBS="$LIBS"
7557          lt_save_CFLAGS="$CFLAGS"
7558          LIBS="conftstm.$ac_objext"
7559          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7560          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7561  (eval $ac_link) 2>&5
7562  ac_status=$?
7563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7564  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7565            pipe_works=yes
7566          fi
7567          LIBS="$lt_save_LIBS"
7568          CFLAGS="$lt_save_CFLAGS"
7569        else
7570          echo "cannot find nm_test_func in $nlist" >&5
7571        fi
7572      else
7573        echo "cannot find nm_test_var in $nlist" >&5
7574      fi
7575    else
7576      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7577    fi
7578  else
7579    echo "$progname: failed program was:" >&5
7580    cat conftest.$ac_ext >&5
7581  fi
7582  rm -f conftest* conftst*
7583
7584  # Do not use the global_symbol_pipe unless it works.
7585  if test "$pipe_works" = yes; then
7586    break
7587  else
7588    lt_cv_sys_global_symbol_pipe=
7589  fi
7590done
7591
7592fi
7593
7594if test -z "$lt_cv_sys_global_symbol_pipe"; then
7595  lt_cv_sys_global_symbol_to_cdecl=
7596fi
7597if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7598  echo "$as_me:$LINENO: result: failed" >&5
7599echo "${ECHO_T}failed" >&6
7600else
7601  echo "$as_me:$LINENO: result: ok" >&5
7602echo "${ECHO_T}ok" >&6
7603fi
7604
7605echo "$as_me:$LINENO: checking for objdir" >&5
7606echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7607if test "${lt_cv_objdir+set}" = set; then
7608  echo $ECHO_N "(cached) $ECHO_C" >&6
7609else
7610  rm -f .libs 2>/dev/null
7611mkdir .libs 2>/dev/null
7612if test -d .libs; then
7613  lt_cv_objdir=.libs
7614else
7615  # MS-DOS does not allow filenames that begin with a dot.
7616  lt_cv_objdir=_libs
7617fi
7618rmdir .libs 2>/dev/null
7619fi
7620echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7621echo "${ECHO_T}$lt_cv_objdir" >&6
7622objdir=$lt_cv_objdir
7623
7624
7625
7626
7627
7628case $host_os in
7629aix3*)
7630  # AIX sometimes has problems with the GCC collect2 program.  For some
7631  # reason, if we set the COLLECT_NAMES environment variable, the problems
7632  # vanish in a puff of smoke.
7633  if test "X${COLLECT_NAMES+set}" != Xset; then
7634    COLLECT_NAMES=
7635    export COLLECT_NAMES
7636  fi
7637  ;;
7638esac
7639
7640# Sed substitution that helps us do robust quoting.  It backslashifies
7641# metacharacters that are still active within double-quoted strings.
7642Xsed='sed -e 1s/^X//'
7643sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7644
7645# Same as above, but do not quote variable references.
7646double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7647
7648# Sed substitution to delay expansion of an escaped shell variable in a
7649# double_quote_subst'ed string.
7650delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7651
7652# Sed substitution to avoid accidental globbing in evaled expressions
7653no_glob_subst='s/\*/\\\*/g'
7654
7655# Constants:
7656rm="rm -f"
7657
7658# Global variables:
7659default_ofile=libtool
7660can_build_shared=yes
7661
7662# All known linkers require a `.a' archive for static linking (except MSVC,
7663# which needs '.lib').
7664libext=a
7665ltmain="$ac_aux_dir/ltmain.sh"
7666ofile="$default_ofile"
7667with_gnu_ld="$lt_cv_prog_gnu_ld"
7668
7669if test -n "$ac_tool_prefix"; then
7670  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7671set dummy ${ac_tool_prefix}ar; ac_word=$2
7672echo "$as_me:$LINENO: checking for $ac_word" >&5
7673echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7674if test "${ac_cv_prog_AR+set}" = set; then
7675  echo $ECHO_N "(cached) $ECHO_C" >&6
7676else
7677  if test -n "$AR"; then
7678  ac_cv_prog_AR="$AR" # Let the user override the test.
7679else
7680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7681for as_dir in $PATH
7682do
7683  IFS=$as_save_IFS
7684  test -z "$as_dir" && as_dir=.
7685  for ac_exec_ext in '' $ac_executable_extensions; do
7686  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7687    ac_cv_prog_AR="${ac_tool_prefix}ar"
7688    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7689    break 2
7690  fi
7691done
7692done
7693
7694fi
7695fi
7696AR=$ac_cv_prog_AR
7697if test -n "$AR"; then
7698  echo "$as_me:$LINENO: result: $AR" >&5
7699echo "${ECHO_T}$AR" >&6
7700else
7701  echo "$as_me:$LINENO: result: no" >&5
7702echo "${ECHO_T}no" >&6
7703fi
7704
7705fi
7706if test -z "$ac_cv_prog_AR"; then
7707  ac_ct_AR=$AR
7708  # Extract the first word of "ar", so it can be a program name with args.
7709set dummy ar; ac_word=$2
7710echo "$as_me:$LINENO: checking for $ac_word" >&5
7711echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7712if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7713  echo $ECHO_N "(cached) $ECHO_C" >&6
7714else
7715  if test -n "$ac_ct_AR"; then
7716  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7717else
7718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7719for as_dir in $PATH
7720do
7721  IFS=$as_save_IFS
7722  test -z "$as_dir" && as_dir=.
7723  for ac_exec_ext in '' $ac_executable_extensions; do
7724  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7725    ac_cv_prog_ac_ct_AR="ar"
7726    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7727    break 2
7728  fi
7729done
7730done
7731
7732  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7733fi
7734fi
7735ac_ct_AR=$ac_cv_prog_ac_ct_AR
7736if test -n "$ac_ct_AR"; then
7737  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7738echo "${ECHO_T}$ac_ct_AR" >&6
7739else
7740  echo "$as_me:$LINENO: result: no" >&5
7741echo "${ECHO_T}no" >&6
7742fi
7743
7744  AR=$ac_ct_AR
7745else
7746  AR="$ac_cv_prog_AR"
7747fi
7748
7749if test -n "$ac_tool_prefix"; then
7750  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7751set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7752echo "$as_me:$LINENO: checking for $ac_word" >&5
7753echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7754if test "${ac_cv_prog_RANLIB+set}" = set; then
7755  echo $ECHO_N "(cached) $ECHO_C" >&6
7756else
7757  if test -n "$RANLIB"; then
7758  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7759else
7760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7761for as_dir in $PATH
7762do
7763  IFS=$as_save_IFS
7764  test -z "$as_dir" && as_dir=.
7765  for ac_exec_ext in '' $ac_executable_extensions; do
7766  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7767    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7768    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7769    break 2
7770  fi
7771done
7772done
7773
7774fi
7775fi
7776RANLIB=$ac_cv_prog_RANLIB
7777if test -n "$RANLIB"; then
7778  echo "$as_me:$LINENO: result: $RANLIB" >&5
7779echo "${ECHO_T}$RANLIB" >&6
7780else
7781  echo "$as_me:$LINENO: result: no" >&5
7782echo "${ECHO_T}no" >&6
7783fi
7784
7785fi
7786if test -z "$ac_cv_prog_RANLIB"; then
7787  ac_ct_RANLIB=$RANLIB
7788  # Extract the first word of "ranlib", so it can be a program name with args.
7789set dummy ranlib; ac_word=$2
7790echo "$as_me:$LINENO: checking for $ac_word" >&5
7791echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7792if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7793  echo $ECHO_N "(cached) $ECHO_C" >&6
7794else
7795  if test -n "$ac_ct_RANLIB"; then
7796  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7797else
7798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7799for as_dir in $PATH
7800do
7801  IFS=$as_save_IFS
7802  test -z "$as_dir" && as_dir=.
7803  for ac_exec_ext in '' $ac_executable_extensions; do
7804  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7805    ac_cv_prog_ac_ct_RANLIB="ranlib"
7806    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7807    break 2
7808  fi
7809done
7810done
7811
7812  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7813fi
7814fi
7815ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7816if test -n "$ac_ct_RANLIB"; then
7817  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7818echo "${ECHO_T}$ac_ct_RANLIB" >&6
7819else
7820  echo "$as_me:$LINENO: result: no" >&5
7821echo "${ECHO_T}no" >&6
7822fi
7823
7824  RANLIB=$ac_ct_RANLIB
7825else
7826  RANLIB="$ac_cv_prog_RANLIB"
7827fi
7828
7829if test -n "$ac_tool_prefix"; then
7830  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7831set dummy ${ac_tool_prefix}strip; ac_word=$2
7832echo "$as_me:$LINENO: checking for $ac_word" >&5
7833echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7834if test "${ac_cv_prog_STRIP+set}" = set; then
7835  echo $ECHO_N "(cached) $ECHO_C" >&6
7836else
7837  if test -n "$STRIP"; then
7838  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7839else
7840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7841for as_dir in $PATH
7842do
7843  IFS=$as_save_IFS
7844  test -z "$as_dir" && as_dir=.
7845  for ac_exec_ext in '' $ac_executable_extensions; do
7846  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7847    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7848    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7849    break 2
7850  fi
7851done
7852done
7853
7854fi
7855fi
7856STRIP=$ac_cv_prog_STRIP
7857if test -n "$STRIP"; then
7858  echo "$as_me:$LINENO: result: $STRIP" >&5
7859echo "${ECHO_T}$STRIP" >&6
7860else
7861  echo "$as_me:$LINENO: result: no" >&5
7862echo "${ECHO_T}no" >&6
7863fi
7864
7865fi
7866if test -z "$ac_cv_prog_STRIP"; then
7867  ac_ct_STRIP=$STRIP
7868  # Extract the first word of "strip", so it can be a program name with args.
7869set dummy strip; ac_word=$2
7870echo "$as_me:$LINENO: checking for $ac_word" >&5
7871echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7872if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7873  echo $ECHO_N "(cached) $ECHO_C" >&6
7874else
7875  if test -n "$ac_ct_STRIP"; then
7876  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7877else
7878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7879for as_dir in $PATH
7880do
7881  IFS=$as_save_IFS
7882  test -z "$as_dir" && as_dir=.
7883  for ac_exec_ext in '' $ac_executable_extensions; do
7884  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7885    ac_cv_prog_ac_ct_STRIP="strip"
7886    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7887    break 2
7888  fi
7889done
7890done
7891
7892  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7893fi
7894fi
7895ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7896if test -n "$ac_ct_STRIP"; then
7897  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7898echo "${ECHO_T}$ac_ct_STRIP" >&6
7899else
7900  echo "$as_me:$LINENO: result: no" >&5
7901echo "${ECHO_T}no" >&6
7902fi
7903
7904  STRIP=$ac_ct_STRIP
7905else
7906  STRIP="$ac_cv_prog_STRIP"
7907fi
7908
7909
7910old_CC="$CC"
7911old_CFLAGS="$CFLAGS"
7912
7913# Set sane defaults for various variables
7914test -z "$AR" && AR=ar
7915test -z "$AR_FLAGS" && AR_FLAGS=cru
7916test -z "$AS" && AS=as
7917test -z "$CC" && CC=cc
7918test -z "$LTCC" && LTCC=$CC
7919test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7920test -z "$DLLTOOL" && DLLTOOL=dlltool
7921test -z "$LD" && LD=ld
7922test -z "$LN_S" && LN_S="ln -s"
7923test -z "$MAGIC_CMD" && MAGIC_CMD=file
7924test -z "$NM" && NM=nm
7925test -z "$SED" && SED=sed
7926test -z "$OBJDUMP" && OBJDUMP=objdump
7927test -z "$RANLIB" && RANLIB=:
7928test -z "$STRIP" && STRIP=:
7929test -z "$ac_objext" && ac_objext=o
7930
7931# Determine commands to create old-style static archives.
7932old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7933old_postinstall_cmds='chmod 644 $oldlib'
7934old_postuninstall_cmds=
7935
7936if test -n "$RANLIB"; then
7937  case $host_os in
7938  openbsd*)
7939    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7940    ;;
7941  *)
7942    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7943    ;;
7944  esac
7945  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7946fi
7947
7948for cc_temp in $compiler""; do
7949  case $cc_temp in
7950    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7951    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7952    \-*) ;;
7953    *) break;;
7954  esac
7955done
7956cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7957
7958
7959# Only perform the check for file, if the check method requires it
7960case $deplibs_check_method in
7961file_magic*)
7962  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7963    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7964echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7965if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7966  echo $ECHO_N "(cached) $ECHO_C" >&6
7967else
7968  case $MAGIC_CMD in
7969[\\/*] |  ?:[\\/]*)
7970  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7971  ;;
7972*)
7973  lt_save_MAGIC_CMD="$MAGIC_CMD"
7974  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7975  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7976  for ac_dir in $ac_dummy; do
7977    IFS="$lt_save_ifs"
7978    test -z "$ac_dir" && ac_dir=.
7979    if test -f $ac_dir/${ac_tool_prefix}file; then
7980      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7981      if test -n "$file_magic_test_file"; then
7982        case $deplibs_check_method in
7983        "file_magic "*)
7984          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7985          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7986          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7987            $EGREP "$file_magic_regex" > /dev/null; then
7988            :
7989          else
7990            cat <<EOF 1>&2
7991
7992*** Warning: the command libtool uses to detect shared libraries,
7993*** $file_magic_cmd, produces output that libtool cannot recognize.
7994*** The result is that libtool may fail to recognize shared libraries
7995*** as such.  This will affect the creation of libtool libraries that
7996*** depend on shared libraries, but programs linked with such libtool
7997*** libraries will work regardless of this problem.  Nevertheless, you
7998*** may want to report the problem to your system manager and/or to
7999*** bug-libtool@gnu.org
8000
8001EOF
8002          fi ;;
8003        esac
8004      fi
8005      break
8006    fi
8007  done
8008  IFS="$lt_save_ifs"
8009  MAGIC_CMD="$lt_save_MAGIC_CMD"
8010  ;;
8011esac
8012fi
8013
8014MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8015if test -n "$MAGIC_CMD"; then
8016  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8017echo "${ECHO_T}$MAGIC_CMD" >&6
8018else
8019  echo "$as_me:$LINENO: result: no" >&5
8020echo "${ECHO_T}no" >&6
8021fi
8022
8023if test -z "$lt_cv_path_MAGIC_CMD"; then
8024  if test -n "$ac_tool_prefix"; then
8025    echo "$as_me:$LINENO: checking for file" >&5
8026echo $ECHO_N "checking for file... $ECHO_C" >&6
8027if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8028  echo $ECHO_N "(cached) $ECHO_C" >&6
8029else
8030  case $MAGIC_CMD in
8031[\\/*] |  ?:[\\/]*)
8032  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8033  ;;
8034*)
8035  lt_save_MAGIC_CMD="$MAGIC_CMD"
8036  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8037  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8038  for ac_dir in $ac_dummy; do
8039    IFS="$lt_save_ifs"
8040    test -z "$ac_dir" && ac_dir=.
8041    if test -f $ac_dir/file; then
8042      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8043      if test -n "$file_magic_test_file"; then
8044        case $deplibs_check_method in
8045        "file_magic "*)
8046          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8047          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8048          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8049            $EGREP "$file_magic_regex" > /dev/null; then
8050            :
8051          else
8052            cat <<EOF 1>&2
8053
8054*** Warning: the command libtool uses to detect shared libraries,
8055*** $file_magic_cmd, produces output that libtool cannot recognize.
8056*** The result is that libtool may fail to recognize shared libraries
8057*** as such.  This will affect the creation of libtool libraries that
8058*** depend on shared libraries, but programs linked with such libtool
8059*** libraries will work regardless of this problem.  Nevertheless, you
8060*** may want to report the problem to your system manager and/or to
8061*** bug-libtool@gnu.org
8062
8063EOF
8064          fi ;;
8065        esac
8066      fi
8067      break
8068    fi
8069  done
8070  IFS="$lt_save_ifs"
8071  MAGIC_CMD="$lt_save_MAGIC_CMD"
8072  ;;
8073esac
8074fi
8075
8076MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8077if test -n "$MAGIC_CMD"; then
8078  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8079echo "${ECHO_T}$MAGIC_CMD" >&6
8080else
8081  echo "$as_me:$LINENO: result: no" >&5
8082echo "${ECHO_T}no" >&6
8083fi
8084
8085  else
8086    MAGIC_CMD=:
8087  fi
8088fi
8089
8090  fi
8091  ;;
8092esac
8093
8094enable_dlopen=no
8095enable_win32_dll=no
8096
8097# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8098if test "${enable_libtool_lock+set}" = set; then
8099  enableval="$enable_libtool_lock"
8100
8101fi;
8102test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8103
8104
8105# Check whether --with-pic or --without-pic was given.
8106if test "${with_pic+set}" = set; then
8107  withval="$with_pic"
8108  pic_mode="$withval"
8109else
8110  pic_mode=default
8111fi;
8112test -z "$pic_mode" && pic_mode=default
8113
8114# Use C for the default configuration in the libtool script
8115tagname=
8116lt_save_CC="$CC"
8117ac_ext=c
8118ac_cpp='$CPP $CPPFLAGS'
8119ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8120ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8121ac_compiler_gnu=$ac_cv_c_compiler_gnu
8122
8123
8124# Source file extension for C test sources.
8125ac_ext=c
8126
8127# Object file extension for compiled C test sources.
8128objext=o
8129objext=$objext
8130
8131# Code to be used in simple compile tests
8132lt_simple_compile_test_code="int some_variable = 0;\n"
8133
8134# Code to be used in simple link tests
8135lt_simple_link_test_code='int main(){return(0);}\n'
8136
8137
8138# If no C compiler was specified, use CC.
8139LTCC=${LTCC-"$CC"}
8140
8141# If no C compiler flags were specified, use CFLAGS.
8142LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8143
8144# Allow CC to be a program name with arguments.
8145compiler=$CC
8146
8147
8148# save warnings/boilerplate of simple test code
8149ac_outfile=conftest.$ac_objext
8150printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8151eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8152_lt_compiler_boilerplate=`cat conftest.err`
8153$rm conftest*
8154
8155ac_outfile=conftest.$ac_objext
8156printf "$lt_simple_link_test_code" >conftest.$ac_ext
8157eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8158_lt_linker_boilerplate=`cat conftest.err`
8159$rm conftest*
8160
8161
8162## CAVEAT EMPTOR:
8163## There is no encapsulation within the following macros, do not change
8164## the running order or otherwise move them around unless you know exactly
8165## what you are doing...
8166
8167lt_prog_compiler_no_builtin_flag=
8168
8169if test "$GCC" = yes; then
8170  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8171
8172
8173echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8174echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8175if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8176  echo $ECHO_N "(cached) $ECHO_C" >&6
8177else
8178  lt_cv_prog_compiler_rtti_exceptions=no
8179  ac_outfile=conftest.$ac_objext
8180   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8181   lt_compiler_flag="-fno-rtti -fno-exceptions"
8182   # Insert the option either (1) after the last *FLAGS variable, or
8183   # (2) before a word containing "conftest.", or (3) at the end.
8184   # Note that $ac_compile itself does not contain backslashes and begins
8185   # with a dollar sign (not a hyphen), so the echo should work correctly.
8186   # The option is referenced via a variable to avoid confusing sed.
8187   lt_compile=`echo "$ac_compile" | $SED \
8188   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8189   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8190   -e 's:$: $lt_compiler_flag:'`
8191   (eval echo "\"\$as_me:8191: $lt_compile\"" >&5)
8192   (eval "$lt_compile" 2>conftest.err)
8193   ac_status=$?
8194   cat conftest.err >&5
8195   echo "$as_me:8195: \$? = $ac_status" >&5
8196   if (exit $ac_status) && test -s "$ac_outfile"; then
8197     # The compiler can only warn and ignore the option if not recognized
8198     # So say no if there are warnings other than the usual output.
8199     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8200     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8201     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8202       lt_cv_prog_compiler_rtti_exceptions=yes
8203     fi
8204   fi
8205   $rm conftest*
8206
8207fi
8208echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8209echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8210
8211if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8212    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8213else
8214    :
8215fi
8216
8217fi
8218
8219lt_prog_compiler_wl=
8220lt_prog_compiler_pic=
8221lt_prog_compiler_static=
8222
8223echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8224echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8225
8226  if test "$GCC" = yes; then
8227    lt_prog_compiler_wl='-Wl,'
8228    lt_prog_compiler_static='-static'
8229
8230    case $host_os in
8231      aix*)
8232      # All AIX code is PIC.
8233      if test "$host_cpu" = ia64; then
8234        # AIX 5 now supports IA64 processor
8235        lt_prog_compiler_static='-Bstatic'
8236      fi
8237      ;;
8238
8239    amigaos*)
8240      # FIXME: we need at least 68020 code to build shared libraries, but
8241      # adding the `-m68020' flag to GCC prevents building anything better,
8242      # like `-m68040'.
8243      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8244      ;;
8245
8246    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8247      # PIC is the default for these OSes.
8248      ;;
8249
8250    mingw* | pw32* | os2*)
8251      # This hack is so that the source file can tell whether it is being
8252      # built for inclusion in a dll (and should export symbols for example).
8253      lt_prog_compiler_pic='-DDLL_EXPORT'
8254      ;;
8255
8256    darwin* | rhapsody*)
8257      # PIC is the default on this platform
8258      # Common symbols not allowed in MH_DYLIB files
8259      lt_prog_compiler_pic='-fno-common'
8260      ;;
8261
8262    interix3*)
8263      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8264      # Instead, we relocate shared libraries at runtime.
8265      ;;
8266
8267    msdosdjgpp*)
8268      # Just because we use GCC doesn't mean we suddenly get shared libraries
8269      # on systems that don't support them.
8270      lt_prog_compiler_can_build_shared=no
8271      enable_shared=no
8272      ;;
8273
8274    sysv4*MP*)
8275      if test -d /usr/nec; then
8276        lt_prog_compiler_pic=-Kconform_pic
8277      fi
8278      ;;
8279
8280    hpux*)
8281      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8282      # not for PA HP-UX.
8283      case $host_cpu in
8284      hppa*64*|ia64*)
8285        # +Z the default
8286        ;;
8287      *)
8288        lt_prog_compiler_pic='-fPIC'
8289        ;;
8290      esac
8291      ;;
8292
8293    *)
8294      lt_prog_compiler_pic='-fPIC'
8295      ;;
8296    esac
8297  else
8298    # PORTME Check for flag to pass linker flags through the system compiler.
8299    case $host_os in
8300    aix*)
8301      lt_prog_compiler_wl='-Wl,'
8302      if test "$host_cpu" = ia64; then
8303        # AIX 5 now supports IA64 processor
8304        lt_prog_compiler_static='-Bstatic'
8305      else
8306        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8307      fi
8308      ;;
8309      darwin*)
8310        # PIC is the default on this platform
8311        # Common symbols not allowed in MH_DYLIB files
8312       case $cc_basename in
8313         xlc*)
8314         lt_prog_compiler_pic='-qnocommon'
8315         lt_prog_compiler_wl='-Wl,'
8316         ;;
8317       esac
8318       ;;
8319
8320    mingw* | pw32* | os2*)
8321      # This hack is so that the source file can tell whether it is being
8322      # built for inclusion in a dll (and should export symbols for example).
8323      lt_prog_compiler_pic='-DDLL_EXPORT'
8324      ;;
8325
8326    hpux9* | hpux10* | hpux11*)
8327      lt_prog_compiler_wl='-Wl,'
8328      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8329      # not for PA HP-UX.
8330      case $host_cpu in
8331      hppa*64*|ia64*)
8332        # +Z the default
8333        ;;
8334      *)
8335        lt_prog_compiler_pic='+Z'
8336        ;;
8337      esac
8338      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8339      lt_prog_compiler_static='${wl}-a ${wl}archive'
8340      ;;
8341
8342    irix5* | irix6* | nonstopux*)
8343      lt_prog_compiler_wl='-Wl,'
8344      # PIC (with -KPIC) is the default.
8345      lt_prog_compiler_static='-non_shared'
8346      ;;
8347
8348    newsos6)
8349      lt_prog_compiler_pic='-KPIC'
8350      lt_prog_compiler_static='-Bstatic'
8351      ;;
8352
8353    linux*)
8354      case $cc_basename in
8355      icc* | ecc*)
8356        lt_prog_compiler_wl='-Wl,'
8357        lt_prog_compiler_pic='-KPIC'
8358        lt_prog_compiler_static='-static'
8359        ;;
8360      pgcc* | pgf77* | pgf90* | pgf95*)
8361        # Portland Group compilers (*not* the Pentium gcc compiler,
8362        # which looks to be a dead project)
8363        lt_prog_compiler_wl='-Wl,'
8364        lt_prog_compiler_pic='-fpic'
8365        lt_prog_compiler_static='-Bstatic'
8366        ;;
8367      ccc*)
8368        lt_prog_compiler_wl='-Wl,'
8369        # All Alpha code is PIC.
8370        lt_prog_compiler_static='-non_shared'
8371        ;;
8372      esac
8373      ;;
8374
8375    osf3* | osf4* | osf5*)
8376      lt_prog_compiler_wl='-Wl,'
8377      # All OSF/1 code is PIC.
8378      lt_prog_compiler_static='-non_shared'
8379      ;;
8380
8381    solaris*)
8382      lt_prog_compiler_pic='-KPIC'
8383      lt_prog_compiler_static='-Bstatic'
8384      case $cc_basename in
8385      f77* | f90* | f95*)
8386        lt_prog_compiler_wl='-Qoption ld ';;
8387      *)
8388        lt_prog_compiler_wl='-Wl,';;
8389      esac
8390      ;;
8391
8392    sunos4*)
8393      lt_prog_compiler_wl='-Qoption ld '
8394      lt_prog_compiler_pic='-PIC'
8395      lt_prog_compiler_static='-Bstatic'
8396      ;;
8397
8398    sysv4 | sysv4.2uw2* | sysv4.3*)
8399      lt_prog_compiler_wl='-Wl,'
8400      lt_prog_compiler_pic='-KPIC'
8401      lt_prog_compiler_static='-Bstatic'
8402      ;;
8403
8404    sysv4*MP*)
8405      if test -d /usr/nec ;then
8406        lt_prog_compiler_pic='-Kconform_pic'
8407        lt_prog_compiler_static='-Bstatic'
8408      fi
8409      ;;
8410
8411    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8412      lt_prog_compiler_wl='-Wl,'
8413      lt_prog_compiler_pic='-KPIC'
8414      lt_prog_compiler_static='-Bstatic'
8415      ;;
8416
8417    unicos*)
8418      lt_prog_compiler_wl='-Wl,'
8419      lt_prog_compiler_can_build_shared=no
8420      ;;
8421
8422    uts4*)
8423      lt_prog_compiler_pic='-pic'
8424      lt_prog_compiler_static='-Bstatic'
8425      ;;
8426
8427    *)
8428      lt_prog_compiler_can_build_shared=no
8429      ;;
8430    esac
8431  fi
8432
8433echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8434echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8435
8436#
8437# Check to make sure the PIC flag actually works.
8438#
8439if test -n "$lt_prog_compiler_pic"; then
8440
8441echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8442echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8443if test "${lt_prog_compiler_pic_works+set}" = set; then
8444  echo $ECHO_N "(cached) $ECHO_C" >&6
8445else
8446  lt_prog_compiler_pic_works=no
8447  ac_outfile=conftest.$ac_objext
8448   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8449   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8450   # Insert the option either (1) after the last *FLAGS variable, or
8451   # (2) before a word containing "conftest.", or (3) at the end.
8452   # Note that $ac_compile itself does not contain backslashes and begins
8453   # with a dollar sign (not a hyphen), so the echo should work correctly.
8454   # The option is referenced via a variable to avoid confusing sed.
8455   lt_compile=`echo "$ac_compile" | $SED \
8456   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8457   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8458   -e 's:$: $lt_compiler_flag:'`
8459   (eval echo "\"\$as_me:8459: $lt_compile\"" >&5)
8460   (eval "$lt_compile" 2>conftest.err)
8461   ac_status=$?
8462   cat conftest.err >&5
8463   echo "$as_me:8463: \$? = $ac_status" >&5
8464   if (exit $ac_status) && test -s "$ac_outfile"; then
8465     # The compiler can only warn and ignore the option if not recognized
8466     # So say no if there are warnings other than the usual output.
8467     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8468     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8469     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8470       lt_prog_compiler_pic_works=yes
8471     fi
8472   fi
8473   $rm conftest*
8474
8475fi
8476echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8477echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8478
8479if test x"$lt_prog_compiler_pic_works" = xyes; then
8480    case $lt_prog_compiler_pic in
8481     "" | " "*) ;;
8482     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8483     esac
8484else
8485    lt_prog_compiler_pic=
8486     lt_prog_compiler_can_build_shared=no
8487fi
8488
8489fi
8490case $host_os in
8491  # For platforms which do not support PIC, -DPIC is meaningless:
8492  *djgpp*)
8493    lt_prog_compiler_pic=
8494    ;;
8495  *)
8496    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8497    ;;
8498esac
8499
8500#
8501# Check to make sure the static flag actually works.
8502#
8503wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8504echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8505echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8506if test "${lt_prog_compiler_static_works+set}" = set; then
8507  echo $ECHO_N "(cached) $ECHO_C" >&6
8508else
8509  lt_prog_compiler_static_works=no
8510   save_LDFLAGS="$LDFLAGS"
8511   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8512   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8513   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8514     # The linker can only warn and ignore the option if not recognized
8515     # So say no if there are warnings
8516     if test -s conftest.err; then
8517       # Append any errors to the config.log.
8518       cat conftest.err 1>&5
8519       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8520       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8521       if diff conftest.exp conftest.er2 >/dev/null; then
8522         lt_prog_compiler_static_works=yes
8523       fi
8524     else
8525       lt_prog_compiler_static_works=yes
8526     fi
8527   fi
8528   $rm conftest*
8529   LDFLAGS="$save_LDFLAGS"
8530
8531fi
8532echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8533echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8534
8535if test x"$lt_prog_compiler_static_works" = xyes; then
8536    :
8537else
8538    lt_prog_compiler_static=
8539fi
8540
8541
8542echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8543echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8544if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8545  echo $ECHO_N "(cached) $ECHO_C" >&6
8546else
8547  lt_cv_prog_compiler_c_o=no
8548   $rm -r conftest 2>/dev/null
8549   mkdir conftest
8550   cd conftest
8551   mkdir out
8552   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8553
8554   lt_compiler_flag="-o out/conftest2.$ac_objext"
8555   # Insert the option either (1) after the last *FLAGS variable, or
8556   # (2) before a word containing "conftest.", or (3) at the end.
8557   # Note that $ac_compile itself does not contain backslashes and begins
8558   # with a dollar sign (not a hyphen), so the echo should work correctly.
8559   lt_compile=`echo "$ac_compile" | $SED \
8560   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8561   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8562   -e 's:$: $lt_compiler_flag:'`
8563   (eval echo "\"\$as_me:8563: $lt_compile\"" >&5)
8564   (eval "$lt_compile" 2>out/conftest.err)
8565   ac_status=$?
8566   cat out/conftest.err >&5
8567   echo "$as_me:8567: \$? = $ac_status" >&5
8568   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8569   then
8570     # The compiler can only warn and ignore the option if not recognized
8571     # So say no if there are warnings
8572     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8573     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8574     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8575       lt_cv_prog_compiler_c_o=yes
8576     fi
8577   fi
8578   chmod u+w . 2>&5
8579   $rm conftest*
8580   # SGI C++ compiler will create directory out/ii_files/ for
8581   # template instantiation
8582   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8583   $rm out/* && rmdir out
8584   cd ..
8585   rmdir conftest
8586   $rm conftest*
8587
8588fi
8589echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8590echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8591
8592
8593hard_links="nottested"
8594if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8595  # do not overwrite the value of need_locks provided by the user
8596  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8597echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8598  hard_links=yes
8599  $rm conftest*
8600  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8601  touch conftest.a
8602  ln conftest.a conftest.b 2>&5 || hard_links=no
8603  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8604  echo "$as_me:$LINENO: result: $hard_links" >&5
8605echo "${ECHO_T}$hard_links" >&6
8606  if test "$hard_links" = no; then
8607    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8608echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8609    need_locks=warn
8610  fi
8611else
8612  need_locks=no
8613fi
8614
8615echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8616echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8617
8618  runpath_var=
8619  allow_undefined_flag=
8620  enable_shared_with_static_runtimes=no
8621  archive_cmds=
8622  archive_expsym_cmds=
8623  old_archive_From_new_cmds=
8624  old_archive_from_expsyms_cmds=
8625  export_dynamic_flag_spec=
8626  whole_archive_flag_spec=
8627  thread_safe_flag_spec=
8628  hardcode_libdir_flag_spec=
8629  hardcode_libdir_flag_spec_ld=
8630  hardcode_libdir_separator=
8631  hardcode_direct=no
8632  hardcode_minus_L=no
8633  hardcode_shlibpath_var=unsupported
8634  link_all_deplibs=unknown
8635  hardcode_automatic=no
8636  module_cmds=
8637  module_expsym_cmds=
8638  always_export_symbols=no
8639  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8640  # include_expsyms should be a list of space-separated symbols to be *always*
8641  # included in the symbol list
8642  include_expsyms=
8643  # exclude_expsyms can be an extended regexp of symbols to exclude
8644  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8645  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8646  # as well as any symbol that contains `d'.
8647  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8648  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8649  # platforms (ab)use it in PIC code, but their linkers get confused if
8650  # the symbol is explicitly referenced.  Since portable code cannot
8651  # rely on this symbol name, it's probably fine to never include it in
8652  # preloaded symbol tables.
8653  extract_expsyms_cmds=
8654  # Just being paranoid about ensuring that cc_basename is set.
8655  for cc_temp in $compiler""; do
8656  case $cc_temp in
8657    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8658    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8659    \-*) ;;
8660    *) break;;
8661  esac
8662done
8663cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8664
8665  case $host_os in
8666  cygwin* | mingw* | pw32*)
8667    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8668    # When not using gcc, we currently assume that we are using
8669    # Microsoft Visual C++.
8670    if test "$GCC" != yes; then
8671      with_gnu_ld=no
8672    fi
8673    ;;
8674  interix*)
8675    # we just hope/assume this is gcc and not c89 (= MSVC++)
8676    with_gnu_ld=yes
8677    ;;
8678  openbsd*)
8679    with_gnu_ld=no
8680    ;;
8681  esac
8682
8683  ld_shlibs=yes
8684  if test "$with_gnu_ld" = yes; then
8685    # If archive_cmds runs LD, not CC, wlarc should be empty
8686    wlarc='${wl}'
8687
8688    # Set some defaults for GNU ld with shared library support. These
8689    # are reset later if shared libraries are not supported. Putting them
8690    # here allows them to be overridden if necessary.
8691    runpath_var=LD_RUN_PATH
8692    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8693    export_dynamic_flag_spec='${wl}--export-dynamic'
8694    # ancient GNU ld didn't support --whole-archive et. al.
8695    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8696        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8697      else
8698        whole_archive_flag_spec=
8699    fi
8700    supports_anon_versioning=no
8701    case `$LD -v 2>/dev/null` in
8702      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8703      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8704      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8705      *\ 2.11.*) ;; # other 2.11 versions
8706      *) supports_anon_versioning=yes ;;
8707    esac
8708
8709    # See if GNU ld supports shared libraries.
8710    case $host_os in
8711    aix3* | aix4* | aix5*)
8712      # On AIX/PPC, the GNU linker is very broken
8713      if test "$host_cpu" != ia64; then
8714        ld_shlibs=no
8715        cat <<EOF 1>&2
8716
8717*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8718*** to be unable to reliably create shared libraries on AIX.
8719*** Therefore, libtool is disabling shared libraries support.  If you
8720*** really care for shared libraries, you may want to modify your PATH
8721*** so that a non-GNU linker is found, and then restart.
8722
8723EOF
8724      fi
8725      ;;
8726
8727    amigaos*)
8728      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)'
8729      hardcode_libdir_flag_spec='-L$libdir'
8730      hardcode_minus_L=yes
8731
8732      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8733      # that the semantics of dynamic libraries on AmigaOS, at least up
8734      # to version 4, is to share data among multiple programs linked
8735      # with the same dynamic library.  Since this doesn't match the
8736      # behavior of shared libraries on other platforms, we can't use
8737      # them.
8738      ld_shlibs=no
8739      ;;
8740
8741    beos*)
8742      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8743        allow_undefined_flag=unsupported
8744        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8745        # support --undefined.  This deserves some investigation.  FIXME
8746        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8747      else
8748        ld_shlibs=no
8749      fi
8750      ;;
8751
8752    cygwin* | mingw* | pw32*)
8753      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8754      # as there is no search path for DLLs.
8755      hardcode_libdir_flag_spec='-L$libdir'
8756      allow_undefined_flag=unsupported
8757      always_export_symbols=no
8758      enable_shared_with_static_runtimes=yes
8759      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8760
8761      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8762        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8763        # If the export-symbols file already is a .def file (1st line
8764        # is EXPORTS), use it as is; otherwise, prepend...
8765        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8766          cp $export_symbols $output_objdir/$soname.def;
8767        else
8768          echo EXPORTS > $output_objdir/$soname.def;
8769          cat $export_symbols >> $output_objdir/$soname.def;
8770        fi~
8771        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8772      else
8773        ld_shlibs=no
8774      fi
8775      ;;
8776
8777    interix3*)
8778      hardcode_direct=no
8779      hardcode_shlibpath_var=no
8780      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8781      export_dynamic_flag_spec='${wl}-E'
8782      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8783      # Instead, shared libraries are loaded at an image base (0x10000000 by
8784      # default) and relocated if they conflict, which is a slow very memory
8785      # consuming and fragmenting process.  To avoid this, we pick a random,
8786      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8787      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8788      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8789      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'
8790      ;;
8791
8792    linux*)
8793      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8794        tmp_addflag=
8795        case $cc_basename,$host_cpu in
8796        pgcc*)                          # Portland Group C compiler
8797          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'
8798          tmp_addflag=' $pic_flag'
8799          ;;
8800        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8801          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'
8802          tmp_addflag=' $pic_flag -Mnomain' ;;
8803        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8804          tmp_addflag=' -i_dynamic' ;;
8805        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8806          tmp_addflag=' -i_dynamic -nofor_main' ;;
8807        ifc* | ifort*)                  # Intel Fortran compiler
8808          tmp_addflag=' -nofor_main' ;;
8809        esac
8810        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8811
8812        if test $supports_anon_versioning = yes; then
8813          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8814  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8815  $echo "local: *; };" >> $output_objdir/$libname.ver~
8816          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8817        fi
8818      else
8819        ld_shlibs=no
8820      fi
8821      ;;
8822
8823    netbsd*)
8824      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8825        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8826        wlarc=
8827      else
8828        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8829        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8830      fi
8831      ;;
8832
8833    solaris*)
8834      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8835        ld_shlibs=no
8836        cat <<EOF 1>&2
8837
8838*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8839*** create shared libraries on Solaris systems.  Therefore, libtool
8840*** is disabling shared libraries support.  We urge you to upgrade GNU
8841*** binutils to release 2.9.1 or newer.  Another option is to modify
8842*** your PATH or compiler configuration so that the native linker is
8843*** used, and then restart.
8844
8845EOF
8846      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8847        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8848        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8849      else
8850        ld_shlibs=no
8851      fi
8852      ;;
8853
8854    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8855      case `$LD -v 2>&1` in
8856        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8857        ld_shlibs=no
8858        cat <<_LT_EOF 1>&2
8859
8860*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8861*** reliably create shared libraries on SCO systems.  Therefore, libtool
8862*** is disabling shared libraries support.  We urge you to upgrade GNU
8863*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8864*** your PATH or compiler configuration so that the native linker is
8865*** used, and then restart.
8866
8867_LT_EOF
8868        ;;
8869        *)
8870          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8871            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8872            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8873            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8874          else
8875            ld_shlibs=no
8876          fi
8877        ;;
8878      esac
8879      ;;
8880
8881    sunos4*)
8882      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8883      wlarc=
8884      hardcode_direct=yes
8885      hardcode_shlibpath_var=no
8886      ;;
8887
8888    *)
8889      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8890        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8891        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8892      else
8893        ld_shlibs=no
8894      fi
8895      ;;
8896    esac
8897
8898    if test "$ld_shlibs" = no; then
8899      runpath_var=
8900      hardcode_libdir_flag_spec=
8901      export_dynamic_flag_spec=
8902      whole_archive_flag_spec=
8903    fi
8904  else
8905    # PORTME fill in a description of your system's linker (not GNU ld)
8906    case $host_os in
8907    aix3*)
8908      allow_undefined_flag=unsupported
8909      always_export_symbols=yes
8910      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'
8911      # Note: this linker hardcodes the directories in LIBPATH if there
8912      # are no directories specified by -L.
8913      hardcode_minus_L=yes
8914      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8915        # Neither direct hardcoding nor static linking is supported with a
8916        # broken collect2.
8917        hardcode_direct=unsupported
8918      fi
8919      ;;
8920
8921    aix4* | aix5*)
8922      if test "$host_cpu" = ia64; then
8923        # On IA64, the linker does run time linking by default, so we don't
8924        # have to do anything special.
8925        aix_use_runtimelinking=no
8926        exp_sym_flag='-Bexport'
8927        no_entry_flag=""
8928      else
8929        # If we're using GNU nm, then we don't want the "-C" option.
8930        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8931        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8932          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'
8933        else
8934          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'
8935        fi
8936        aix_use_runtimelinking=no
8937
8938        # Test if we are trying to use run time linking or normal
8939        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8940        # need to do runtime linking.
8941        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8942          for ld_flag in $LDFLAGS; do
8943          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8944            aix_use_runtimelinking=yes
8945            break
8946          fi
8947          done
8948          ;;
8949        esac
8950
8951        exp_sym_flag='-bexport'
8952        no_entry_flag='-bnoentry'
8953      fi
8954
8955      # When large executables or shared objects are built, AIX ld can
8956      # have problems creating the table of contents.  If linking a library
8957      # or program results in "error TOC overflow" add -mminimal-toc to
8958      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8959      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8960
8961      archive_cmds=''
8962      hardcode_direct=yes
8963      hardcode_libdir_separator=':'
8964      link_all_deplibs=yes
8965
8966      if test "$GCC" = yes; then
8967        case $host_os in aix4.[012]|aix4.[012].*)
8968        # We only want to do this on AIX 4.2 and lower, the check
8969        # below for broken collect2 doesn't work under 4.3+
8970          collect2name=`${CC} -print-prog-name=collect2`
8971          if test -f "$collect2name" && \
8972           strings "$collect2name" | grep resolve_lib_name >/dev/null
8973          then
8974          # We have reworked collect2
8975          hardcode_direct=yes
8976          else
8977          # We have old collect2
8978          hardcode_direct=unsupported
8979          # It fails to find uninstalled libraries when the uninstalled
8980          # path is not listed in the libpath.  Setting hardcode_minus_L
8981          # to unsupported forces relinking
8982          hardcode_minus_L=yes
8983          hardcode_libdir_flag_spec='-L$libdir'
8984          hardcode_libdir_separator=
8985          fi
8986          ;;
8987        esac
8988        shared_flag='-shared'
8989        if test "$aix_use_runtimelinking" = yes; then
8990          shared_flag="$shared_flag "'${wl}-G'
8991        fi
8992      else
8993        # not using gcc
8994        if test "$host_cpu" = ia64; then
8995        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8996        # chokes on -Wl,-G. The following line is correct:
8997          shared_flag='-G'
8998        else
8999          if test "$aix_use_runtimelinking" = yes; then
9000            shared_flag='${wl}-G'
9001          else
9002            shared_flag='${wl}-bM:SRE'
9003          fi
9004        fi
9005      fi
9006
9007      # It seems that -bexpall does not export symbols beginning with
9008      # underscore (_), so it is better to generate a list of symbols to export.
9009      always_export_symbols=yes
9010      if test "$aix_use_runtimelinking" = yes; then
9011        # Warning - without using the other runtime loading flags (-brtl),
9012        # -berok will link without error, but may produce a broken library.
9013        allow_undefined_flag='-berok'
9014       # Determine the default libpath from the value encoded in an empty executable.
9015       cat >conftest.$ac_ext <<_ACEOF
9016/* confdefs.h.  */
9017_ACEOF
9018cat confdefs.h >>conftest.$ac_ext
9019cat >>conftest.$ac_ext <<_ACEOF
9020/* end confdefs.h.  */
9021
9022int
9023main ()
9024{
9025
9026  ;
9027  return 0;
9028}
9029_ACEOF
9030rm -f conftest.$ac_objext conftest$ac_exeext
9031if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9032  (eval $ac_link) 2>conftest.er1
9033  ac_status=$?
9034  grep -v '^ *+' conftest.er1 >conftest.err
9035  rm -f conftest.er1
9036  cat conftest.err >&5
9037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038  (exit $ac_status); } &&
9039         { ac_try='test -z "$ac_c_werror_flag"
9040                         || test ! -s conftest.err'
9041  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9042  (eval $ac_try) 2>&5
9043  ac_status=$?
9044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045  (exit $ac_status); }; } &&
9046         { ac_try='test -s conftest$ac_exeext'
9047  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9048  (eval $ac_try) 2>&5
9049  ac_status=$?
9050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051  (exit $ac_status); }; }; then
9052
9053aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9054}'`
9055# Check for a 64-bit object if we didn't find anything.
9056if 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; }
9057}'`; fi
9058else
9059  echo "$as_me: failed program was:" >&5
9060sed 's/^/| /' conftest.$ac_ext >&5
9061
9062fi
9063rm -f conftest.err conftest.$ac_objext \
9064      conftest$ac_exeext conftest.$ac_ext
9065if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9066
9067       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9068        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"
9069       else
9070        if test "$host_cpu" = ia64; then
9071          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9072          allow_undefined_flag="-z nodefs"
9073          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"
9074        else
9075         # Determine the default libpath from the value encoded in an empty executable.
9076         cat >conftest.$ac_ext <<_ACEOF
9077/* confdefs.h.  */
9078_ACEOF
9079cat confdefs.h >>conftest.$ac_ext
9080cat >>conftest.$ac_ext <<_ACEOF
9081/* end confdefs.h.  */
9082
9083int
9084main ()
9085{
9086
9087  ;
9088  return 0;
9089}
9090_ACEOF
9091rm -f conftest.$ac_objext conftest$ac_exeext
9092if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9093  (eval $ac_link) 2>conftest.er1
9094  ac_status=$?
9095  grep -v '^ *+' conftest.er1 >conftest.err
9096  rm -f conftest.er1
9097  cat conftest.err >&5
9098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099  (exit $ac_status); } &&
9100         { ac_try='test -z "$ac_c_werror_flag"
9101                         || test ! -s conftest.err'
9102  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9103  (eval $ac_try) 2>&5
9104  ac_status=$?
9105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106  (exit $ac_status); }; } &&
9107         { ac_try='test -s conftest$ac_exeext'
9108  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9109  (eval $ac_try) 2>&5
9110  ac_status=$?
9111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112  (exit $ac_status); }; }; then
9113
9114aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9115}'`
9116# Check for a 64-bit object if we didn't find anything.
9117if 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; }
9118}'`; fi
9119else
9120  echo "$as_me: failed program was:" >&5
9121sed 's/^/| /' conftest.$ac_ext >&5
9122
9123fi
9124rm -f conftest.err conftest.$ac_objext \
9125      conftest$ac_exeext conftest.$ac_ext
9126if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9127
9128         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9129          # Warning - without using the other run time loading flags,
9130          # -berok will link without error, but may produce a broken library.
9131          no_undefined_flag=' ${wl}-bernotok'
9132          allow_undefined_flag=' ${wl}-berok'
9133          # Exported symbols can be pulled into shared objects from archives
9134          whole_archive_flag_spec='$convenience'
9135          archive_cmds_need_lc=yes
9136          # This is similar to how AIX traditionally builds its shared libraries.
9137          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'
9138        fi
9139      fi
9140      ;;
9141
9142    amigaos*)
9143      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)'
9144      hardcode_libdir_flag_spec='-L$libdir'
9145      hardcode_minus_L=yes
9146      # see comment about different semantics on the GNU ld section
9147      ld_shlibs=no
9148      ;;
9149
9150    bsdi[45]*)
9151      export_dynamic_flag_spec=-rdynamic
9152      ;;
9153
9154    cygwin* | mingw* | pw32*)
9155      # When not using gcc, we currently assume that we are using
9156      # Microsoft Visual C++.
9157      # hardcode_libdir_flag_spec is actually meaningless, as there is
9158      # no search path for DLLs.
9159      hardcode_libdir_flag_spec=' '
9160      allow_undefined_flag=unsupported
9161      # Tell ltmain to make .lib files, not .a files.
9162      libext=lib
9163      # Tell ltmain to make .dll files, not .so files.
9164      shrext_cmds=".dll"
9165      # FIXME: Setting linknames here is a bad hack.
9166      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9167      # The linker will automatically build a .lib file if we build a DLL.
9168      old_archive_From_new_cmds='true'
9169      # FIXME: Should let the user specify the lib program.
9170      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9171      fix_srcfile_path='`cygpath -w "$srcfile"`'
9172      enable_shared_with_static_runtimes=yes
9173      ;;
9174
9175    darwin* | rhapsody*)
9176      case $host_os in
9177        rhapsody* | darwin1.[012])
9178         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9179         ;;
9180       *) # Darwin 1.3 on
9181         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9182           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9183         else
9184           case ${MACOSX_DEPLOYMENT_TARGET} in
9185             10.[012])
9186               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9187               ;;
9188             10.*)
9189               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9190               ;;
9191           esac
9192         fi
9193         ;;
9194      esac
9195      archive_cmds_need_lc=no
9196      hardcode_direct=no
9197      hardcode_automatic=yes
9198      hardcode_shlibpath_var=unsupported
9199      whole_archive_flag_spec=''
9200      link_all_deplibs=yes
9201    if test "$GCC" = yes ; then
9202        output_verbose_link_cmd='echo'
9203        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9204      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9205      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9206      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}'
9207      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}'
9208    else
9209      case $cc_basename in
9210        xlc*)
9211         output_verbose_link_cmd='echo'
9212         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9213         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9214          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9215         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}'
9216          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}'
9217          ;;
9218       *)
9219         ld_shlibs=no
9220          ;;
9221      esac
9222    fi
9223      ;;
9224
9225    dgux*)
9226      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9227      hardcode_libdir_flag_spec='-L$libdir'
9228      hardcode_shlibpath_var=no
9229      ;;
9230
9231    freebsd1*)
9232      ld_shlibs=no
9233      ;;
9234
9235    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9236    # support.  Future versions do this automatically, but an explicit c++rt0.o
9237    # does not break anything, and helps significantly (at the cost of a little
9238    # extra space).
9239    freebsd2.2*)
9240      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9241      hardcode_libdir_flag_spec='-R$libdir'
9242      hardcode_direct=yes
9243      hardcode_shlibpath_var=no
9244      ;;
9245
9246    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9247    freebsd2*)
9248      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9249      hardcode_direct=yes
9250      hardcode_minus_L=yes
9251      hardcode_shlibpath_var=no
9252      ;;
9253
9254    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9255    freebsd* | kfreebsd*-gnu | dragonfly*)
9256      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9257      hardcode_libdir_flag_spec='-R$libdir'
9258      hardcode_direct=yes
9259      hardcode_shlibpath_var=no
9260      ;;
9261
9262    hpux9*)
9263      if test "$GCC" = yes; then
9264        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'
9265      else
9266        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'
9267      fi
9268      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9269      hardcode_libdir_separator=:
9270      hardcode_direct=yes
9271
9272      # hardcode_minus_L: Not really in the search PATH,
9273      # but as the default location of the library.
9274      hardcode_minus_L=yes
9275      export_dynamic_flag_spec='${wl}-E'
9276      ;;
9277
9278    hpux10*)
9279      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9280        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9281      else
9282        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9283      fi
9284      if test "$with_gnu_ld" = no; then
9285        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9286        hardcode_libdir_separator=:
9287
9288        hardcode_direct=yes
9289        export_dynamic_flag_spec='${wl}-E'
9290
9291        # hardcode_minus_L: Not really in the search PATH,
9292        # but as the default location of the library.
9293        hardcode_minus_L=yes
9294      fi
9295      ;;
9296
9297    hpux11*)
9298      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9299        case $host_cpu in
9300        hppa*64*)
9301          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9302          ;;
9303        ia64*)
9304          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9305          ;;
9306        *)
9307          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9308          ;;
9309        esac
9310      else
9311        case $host_cpu in
9312        hppa*64*)
9313          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9314          ;;
9315        ia64*)
9316          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9317          ;;
9318        *)
9319          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9320          ;;
9321        esac
9322      fi
9323      if test "$with_gnu_ld" = no; then
9324        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9325        hardcode_libdir_separator=:
9326
9327        case $host_cpu in
9328        hppa*64*|ia64*)
9329          hardcode_libdir_flag_spec_ld='+b $libdir'
9330          hardcode_direct=no
9331          hardcode_shlibpath_var=no
9332          ;;
9333        *)
9334          hardcode_direct=yes
9335          export_dynamic_flag_spec='${wl}-E'
9336
9337          # hardcode_minus_L: Not really in the search PATH,
9338          # but as the default location of the library.
9339          hardcode_minus_L=yes
9340          ;;
9341        esac
9342      fi
9343      ;;
9344
9345    irix5* | irix6* | nonstopux*)
9346      if test "$GCC" = yes; then
9347        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'
9348      else
9349        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'
9350        hardcode_libdir_flag_spec_ld='-rpath $libdir'
9351      fi
9352      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9353      hardcode_libdir_separator=:
9354      link_all_deplibs=yes
9355      ;;
9356
9357    netbsd*)
9358      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9359        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9360      else
9361        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9362      fi
9363      hardcode_libdir_flag_spec='-R$libdir'
9364      hardcode_direct=yes
9365      hardcode_shlibpath_var=no
9366      ;;
9367
9368    newsos6)
9369      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9370      hardcode_direct=yes
9371      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9372      hardcode_libdir_separator=:
9373      hardcode_shlibpath_var=no
9374      ;;
9375
9376    openbsd*)
9377      hardcode_direct=yes
9378      hardcode_shlibpath_var=no
9379      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9380        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9381        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9382        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9383        export_dynamic_flag_spec='${wl}-E'
9384      else
9385       case $host_os in
9386         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9387           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9388           hardcode_libdir_flag_spec='-R$libdir'
9389           ;;
9390         *)
9391           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9392           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9393           ;;
9394       esac
9395      fi
9396      ;;
9397
9398    os2*)
9399      hardcode_libdir_flag_spec='-L$libdir'
9400      hardcode_minus_L=yes
9401      allow_undefined_flag=unsupported
9402      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'
9403      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9404      ;;
9405
9406    osf3*)
9407      if test "$GCC" = yes; then
9408        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9409        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'
9410      else
9411        allow_undefined_flag=' -expect_unresolved \*'
9412        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'
9413      fi
9414      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9415      hardcode_libdir_separator=:
9416      ;;
9417
9418    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9419      if test "$GCC" = yes; then
9420        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9421        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'
9422        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9423      else
9424        allow_undefined_flag=' -expect_unresolved \*'
9425        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'
9426        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9427        $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'
9428
9429        # Both c and cxx compiler support -rpath directly
9430        hardcode_libdir_flag_spec='-rpath $libdir'
9431      fi
9432      hardcode_libdir_separator=:
9433      ;;
9434
9435    solaris*)
9436      no_undefined_flag=' -z text'
9437      if test "$GCC" = yes; then
9438        wlarc='${wl}'
9439        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9440        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9441          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9442      else
9443        wlarc=''
9444        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9445        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9446        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9447      fi
9448      hardcode_libdir_flag_spec='-R$libdir'
9449      hardcode_shlibpath_var=no
9450      case $host_os in
9451      solaris2.[0-5] | solaris2.[0-5].*) ;;
9452      *)
9453        # The compiler driver will combine linker options so we
9454        # cannot just pass the convience library names through
9455        # without $wl, iff we do not link with $LD.
9456        # Luckily, gcc supports the same syntax we need for Sun Studio.
9457        # Supported since Solaris 2.6 (maybe 2.5.1?)
9458        case $wlarc in
9459        '')
9460          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9461        *)
9462          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' ;;
9463        esac ;;
9464      esac
9465      link_all_deplibs=yes
9466      ;;
9467
9468    sunos4*)
9469      if test "x$host_vendor" = xsequent; then
9470        # Use $CC to link under sequent, because it throws in some extra .o
9471        # files that make .init and .fini sections work.
9472        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9473      else
9474        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9475      fi
9476      hardcode_libdir_flag_spec='-L$libdir'
9477      hardcode_direct=yes
9478      hardcode_minus_L=yes
9479      hardcode_shlibpath_var=no
9480      ;;
9481
9482    sysv4)
9483      case $host_vendor in
9484        sni)
9485          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9486          hardcode_direct=yes # is this really true???
9487        ;;
9488        siemens)
9489          ## LD is ld it makes a PLAMLIB
9490          ## CC just makes a GrossModule.
9491          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9492          reload_cmds='$CC -r -o $output$reload_objs'
9493          hardcode_direct=no
9494        ;;
9495        motorola)
9496          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9497          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9498        ;;
9499      esac
9500      runpath_var='LD_RUN_PATH'
9501      hardcode_shlibpath_var=no
9502      ;;
9503
9504    sysv4.3*)
9505      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9506      hardcode_shlibpath_var=no
9507      export_dynamic_flag_spec='-Bexport'
9508      ;;
9509
9510    sysv4*MP*)
9511      if test -d /usr/nec; then
9512        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9513        hardcode_shlibpath_var=no
9514        runpath_var=LD_RUN_PATH
9515        hardcode_runpath_var=yes
9516        ld_shlibs=yes
9517      fi
9518      ;;
9519
9520    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9521      no_undefined_flag='${wl}-z,text'
9522      archive_cmds_need_lc=no
9523      hardcode_shlibpath_var=no
9524      runpath_var='LD_RUN_PATH'
9525
9526      if test "$GCC" = yes; then
9527        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9528        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9529      else
9530        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9531        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9532      fi
9533      ;;
9534
9535    sysv5* | sco3.2v5* | sco5v6*)
9536      # Note: We can NOT use -z defs as we might desire, because we do not
9537      # link with -lc, and that would cause any symbols used from libc to
9538      # always be unresolved, which means just about no library would
9539      # ever link correctly.  If we're not using GNU ld we use -z text
9540      # though, which does catch some bad symbols but isn't as heavy-handed
9541      # as -z defs.
9542      no_undefined_flag='${wl}-z,text'
9543      allow_undefined_flag='${wl}-z,nodefs'
9544      archive_cmds_need_lc=no
9545      hardcode_shlibpath_var=no
9546      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9547      hardcode_libdir_separator=':'
9548      link_all_deplibs=yes
9549      export_dynamic_flag_spec='${wl}-Bexport'
9550      runpath_var='LD_RUN_PATH'
9551
9552      if test "$GCC" = yes; then
9553        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9554        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9555      else
9556        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9557        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9558      fi
9559      ;;
9560
9561    uts4*)
9562      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9563      hardcode_libdir_flag_spec='-L$libdir'
9564      hardcode_shlibpath_var=no
9565      ;;
9566
9567    *)
9568      ld_shlibs=no
9569      ;;
9570    esac
9571  fi
9572
9573echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9574echo "${ECHO_T}$ld_shlibs" >&6
9575test "$ld_shlibs" = no && can_build_shared=no
9576
9577#
9578# Do we need to explicitly link libc?
9579#
9580case "x$archive_cmds_need_lc" in
9581x|xyes)
9582  # Assume -lc should be added
9583  archive_cmds_need_lc=yes
9584
9585  if test "$enable_shared" = yes && test "$GCC" = yes; then
9586    case $archive_cmds in
9587    *'~'*)
9588      # FIXME: we may have to deal with multi-command sequences.
9589      ;;
9590    '$CC '*)
9591      # Test whether the compiler implicitly links with -lc since on some
9592      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9593      # to ld, don't add -lc before -lgcc.
9594      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9595echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9596      $rm conftest*
9597      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9598
9599      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9600  (eval $ac_compile) 2>&5
9601  ac_status=$?
9602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603  (exit $ac_status); } 2>conftest.err; then
9604        soname=conftest
9605        lib=conftest
9606        libobjs=conftest.$ac_objext
9607        deplibs=
9608        wl=$lt_prog_compiler_wl
9609        pic_flag=$lt_prog_compiler_pic
9610        compiler_flags=-v
9611        linker_flags=-v
9612        verstring=
9613        output_objdir=.
9614        libname=conftest
9615        lt_save_allow_undefined_flag=$allow_undefined_flag
9616        allow_undefined_flag=
9617        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9618  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9619  ac_status=$?
9620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9621  (exit $ac_status); }
9622        then
9623          archive_cmds_need_lc=no
9624        else
9625          archive_cmds_need_lc=yes
9626        fi
9627        allow_undefined_flag=$lt_save_allow_undefined_flag
9628      else
9629        cat conftest.err 1>&5
9630      fi
9631      $rm conftest*
9632      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9633echo "${ECHO_T}$archive_cmds_need_lc" >&6
9634      ;;
9635    esac
9636  fi
9637  ;;
9638esac
9639
9640echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9641echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9642library_names_spec=
9643libname_spec='lib$name'
9644soname_spec=
9645shrext_cmds=".so"
9646postinstall_cmds=
9647postuninstall_cmds=
9648finish_cmds=
9649finish_eval=
9650shlibpath_var=
9651shlibpath_overrides_runpath=unknown
9652version_type=none
9653dynamic_linker="$host_os ld.so"
9654sys_lib_dlsearch_path_spec="/lib /usr/lib"
9655if test "$GCC" = yes; then
9656  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9657  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9658    # if the path contains ";" then we assume it to be the separator
9659    # otherwise default to the standard path separator (i.e. ":") - it is
9660    # assumed that no part of a normal pathname contains ";" but that should
9661    # okay in the real world where ";" in dirpaths is itself problematic.
9662    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9663  else
9664    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9665  fi
9666else
9667  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9668fi
9669need_lib_prefix=unknown
9670hardcode_into_libs=no
9671
9672# when you set need_version to no, make sure it does not cause -set_version
9673# flags to be left without arguments
9674need_version=unknown
9675
9676case $host_os in
9677aix3*)
9678  version_type=linux
9679  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9680  shlibpath_var=LIBPATH
9681
9682  # AIX 3 has no versioning support, so we append a major version to the name.
9683  soname_spec='${libname}${release}${shared_ext}$major'
9684  ;;
9685
9686aix4* | aix5*)
9687  version_type=linux
9688  need_lib_prefix=no
9689  need_version=no
9690  hardcode_into_libs=yes
9691  if test "$host_cpu" = ia64; then
9692    # AIX 5 supports IA64
9693    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9694    shlibpath_var=LD_LIBRARY_PATH
9695  else
9696    # With GCC up to 2.95.x, collect2 would create an import file
9697    # for dependence libraries.  The import file would start with
9698    # the line `#! .'.  This would cause the generated library to
9699    # depend on `.', always an invalid library.  This was fixed in
9700    # development snapshots of GCC prior to 3.0.
9701    case $host_os in
9702      aix4 | aix4.[01] | aix4.[01].*)
9703      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9704           echo ' yes '
9705           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9706        :
9707      else
9708        can_build_shared=no
9709      fi
9710      ;;
9711    esac
9712    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9713    # soname into executable. Probably we can add versioning support to
9714    # collect2, so additional links can be useful in future.
9715    if test "$aix_use_runtimelinking" = yes; then
9716      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9717      # instead of lib<name>.a to let people know that these are not
9718      # typical AIX shared libraries.
9719      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9720    else
9721      # We preserve .a as extension for shared libraries through AIX4.2
9722      # and later when we are not doing run time linking.
9723      library_names_spec='${libname}${release}.a $libname.a'
9724      soname_spec='${libname}${release}${shared_ext}$major'
9725    fi
9726    shlibpath_var=LIBPATH
9727  fi
9728  ;;
9729
9730amigaos*)
9731  library_names_spec='$libname.ixlibrary $libname.a'
9732  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9733  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'
9734  ;;
9735
9736beos*)
9737  library_names_spec='${libname}${shared_ext}'
9738  dynamic_linker="$host_os ld.so"
9739  shlibpath_var=LIBRARY_PATH
9740  ;;
9741
9742bsdi[45]*)
9743  version_type=linux
9744  need_version=no
9745  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9746  soname_spec='${libname}${release}${shared_ext}$major'
9747  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9748  shlibpath_var=LD_LIBRARY_PATH
9749  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9750  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9751  # the default ld.so.conf also contains /usr/contrib/lib and
9752  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9753  # libtool to hard-code these into programs
9754  ;;
9755
9756cygwin* | mingw* | pw32*)
9757  version_type=windows
9758  shrext_cmds=".dll"
9759  need_version=no
9760  need_lib_prefix=no
9761
9762  case $GCC,$host_os in
9763  yes,cygwin* | yes,mingw* | yes,pw32*)
9764    library_names_spec='$libname.dll.a'
9765    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9766    postinstall_cmds='base_file=`basename \${file}`~
9767      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9768      dldir=$destdir/`dirname \$dlpath`~
9769      test -d \$dldir || mkdir -p \$dldir~
9770      $install_prog $dir/$dlname \$dldir/$dlname~
9771      chmod a+x \$dldir/$dlname'
9772    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9773      dlpath=$dir/\$dldll~
9774       $rm \$dlpath'
9775    shlibpath_overrides_runpath=yes
9776
9777    case $host_os in
9778    cygwin*)
9779      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9780      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9781      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9782      ;;
9783    mingw*)
9784      # MinGW DLLs use traditional 'lib' prefix
9785      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9786      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9787      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9788        # It is most probably a Windows format PATH printed by
9789        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9790        # path with ; separators, and with drive letters. We can handle the
9791        # drive letters (cygwin fileutils understands them), so leave them,
9792        # especially as we might pass files found there to a mingw objdump,
9793        # which wouldn't understand a cygwinified path. Ahh.
9794        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9795      else
9796        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9797      fi
9798      ;;
9799    pw32*)
9800      # pw32 DLLs use 'pw' prefix rather than 'lib'
9801      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9802      ;;
9803    esac
9804    ;;
9805
9806  *)
9807    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9808    ;;
9809  esac
9810  dynamic_linker='Win32 ld.exe'
9811  # FIXME: first we should search . and the directory the executable is in
9812  shlibpath_var=PATH
9813  ;;
9814
9815darwin* | rhapsody*)
9816  dynamic_linker="$host_os dyld"
9817  version_type=darwin
9818  need_lib_prefix=no
9819  need_version=no
9820  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9821  soname_spec='${libname}${release}${major}$shared_ext'
9822  shlibpath_overrides_runpath=yes
9823  shlibpath_var=DYLD_LIBRARY_PATH
9824  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9825  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9826  if test "$GCC" = yes; then
9827    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"`
9828  else
9829    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9830  fi
9831  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9832  ;;
9833
9834dgux*)
9835  version_type=linux
9836  need_lib_prefix=no
9837  need_version=no
9838  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9839  soname_spec='${libname}${release}${shared_ext}$major'
9840  shlibpath_var=LD_LIBRARY_PATH
9841  ;;
9842
9843freebsd1*)
9844  dynamic_linker=no
9845  ;;
9846
9847kfreebsd*-gnu)
9848  version_type=linux
9849  need_lib_prefix=no
9850  need_version=no
9851  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9852  soname_spec='${libname}${release}${shared_ext}$major'
9853  shlibpath_var=LD_LIBRARY_PATH
9854  shlibpath_overrides_runpath=no
9855  hardcode_into_libs=yes
9856  dynamic_linker='GNU ld.so'
9857  ;;
9858
9859freebsd* | dragonfly*)
9860  # DragonFly does not have aout.  When/if they implement a new
9861  # versioning mechanism, adjust this.
9862  if test -x /usr/bin/objformat; then
9863    objformat=`/usr/bin/objformat`
9864  else
9865    case $host_os in
9866    freebsd[123]*) objformat=aout ;;
9867    *) objformat=elf ;;
9868    esac
9869  fi
9870  version_type=freebsd-$objformat
9871  case $version_type in
9872    freebsd-elf*)
9873      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9874      need_version=no
9875      need_lib_prefix=no
9876      ;;
9877    freebsd-*)
9878      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9879      need_version=yes
9880      ;;
9881  esac
9882  shlibpath_var=LD_LIBRARY_PATH
9883  case $host_os in
9884  freebsd2*)
9885    shlibpath_overrides_runpath=yes
9886    ;;
9887  freebsd3.[01]* | freebsdelf3.[01]*)
9888    shlibpath_overrides_runpath=yes
9889    hardcode_into_libs=yes
9890    ;;
9891  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9892  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9893    shlibpath_overrides_runpath=no
9894    hardcode_into_libs=yes
9895    ;;
9896  freebsd*) # from 4.6 on
9897    shlibpath_overrides_runpath=yes
9898    hardcode_into_libs=yes
9899    ;;
9900  esac
9901  ;;
9902
9903gnu*)
9904  version_type=linux
9905  need_lib_prefix=no
9906  need_version=no
9907  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9908  soname_spec='${libname}${release}${shared_ext}$major'
9909  shlibpath_var=LD_LIBRARY_PATH
9910  hardcode_into_libs=yes
9911  ;;
9912
9913hpux9* | hpux10* | hpux11*)
9914  # Give a soname corresponding to the major version so that dld.sl refuses to
9915  # link against other versions.
9916  version_type=sunos
9917  need_lib_prefix=no
9918  need_version=no
9919  case $host_cpu in
9920  ia64*)
9921    shrext_cmds='.so'
9922    hardcode_into_libs=yes
9923    dynamic_linker="$host_os dld.so"
9924    shlibpath_var=LD_LIBRARY_PATH
9925    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9926    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9927    soname_spec='${libname}${release}${shared_ext}$major'
9928    if test "X$HPUX_IA64_MODE" = X32; then
9929      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9930    else
9931      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9932    fi
9933    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9934    ;;
9935   hppa*64*)
9936     shrext_cmds='.sl'
9937     hardcode_into_libs=yes
9938     dynamic_linker="$host_os dld.sl"
9939     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9940     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9941     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9942     soname_spec='${libname}${release}${shared_ext}$major'
9943     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9944     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9945     ;;
9946   *)
9947    shrext_cmds='.sl'
9948    dynamic_linker="$host_os dld.sl"
9949    shlibpath_var=SHLIB_PATH
9950    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9951    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9952    soname_spec='${libname}${release}${shared_ext}$major'
9953    ;;
9954  esac
9955  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9956  postinstall_cmds='chmod 555 $lib'
9957  ;;
9958
9959interix3*)
9960  version_type=linux
9961  need_lib_prefix=no
9962  need_version=no
9963  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9964  soname_spec='${libname}${release}${shared_ext}$major'
9965  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9966  shlibpath_var=LD_LIBRARY_PATH
9967  shlibpath_overrides_runpath=no
9968  hardcode_into_libs=yes
9969  ;;
9970
9971irix5* | irix6* | nonstopux*)
9972  case $host_os in
9973    nonstopux*) version_type=nonstopux ;;
9974    *)
9975        if test "$lt_cv_prog_gnu_ld" = yes; then
9976                version_type=linux
9977        else
9978                version_type=irix
9979        fi ;;
9980  esac
9981  need_lib_prefix=no
9982  need_version=no
9983  soname_spec='${libname}${release}${shared_ext}$major'
9984  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9985  case $host_os in
9986  irix5* | nonstopux*)
9987    libsuff= shlibsuff=
9988    ;;
9989  *)
9990    case $LD in # libtool.m4 will add one of these switches to LD
9991    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9992      libsuff= shlibsuff= libmagic=32-bit;;
9993    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9994      libsuff=32 shlibsuff=N32 libmagic=N32;;
9995    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9996      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9997    *) libsuff= shlibsuff= libmagic=never-match;;
9998    esac
9999    ;;
10000  esac
10001  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10002  shlibpath_overrides_runpath=no
10003  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10004  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10005  hardcode_into_libs=yes
10006  ;;
10007
10008# No shared lib support for Linux oldld, aout, or coff.
10009linux*oldld* | linux*aout* | linux*coff*)
10010  dynamic_linker=no
10011  ;;
10012
10013# This must be Linux ELF.
10014linux*)
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  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10021  shlibpath_var=LD_LIBRARY_PATH
10022  shlibpath_overrides_runpath=no
10023  # This implies no fast_install, which is unacceptable.
10024  # Some rework will be needed to allow for fast_install
10025  # before this can be enabled.
10026  hardcode_into_libs=yes
10027
10028  # Append ld.so.conf contents to the search path
10029  if test -f /etc/ld.so.conf; then
10030    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' ' '`
10031    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10032  fi
10033
10034  # We used to test for /lib/ld.so.1 and disable shared libraries on
10035  # powerpc, because MkLinux only supported shared libraries with the
10036  # GNU dynamic linker.  Since this was broken with cross compilers,
10037  # most powerpc-linux boxes support dynamic linking these days and
10038  # people can always --disable-shared, the test was removed, and we
10039  # assume the GNU/Linux dynamic linker is in use.
10040  dynamic_linker='GNU/Linux ld.so'
10041  ;;
10042
10043knetbsd*-gnu)
10044  version_type=linux
10045  need_lib_prefix=no
10046  need_version=no
10047  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10048  soname_spec='${libname}${release}${shared_ext}$major'
10049  shlibpath_var=LD_LIBRARY_PATH
10050  shlibpath_overrides_runpath=no
10051  hardcode_into_libs=yes
10052  dynamic_linker='GNU ld.so'
10053  ;;
10054
10055netbsd*)
10056  version_type=sunos
10057  need_lib_prefix=no
10058  need_version=no
10059  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10060    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10061    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10062    dynamic_linker='NetBSD (a.out) ld.so'
10063  else
10064    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10065    soname_spec='${libname}${release}${shared_ext}$major'
10066    dynamic_linker='NetBSD ld.elf_so'
10067  fi
10068  shlibpath_var=LD_LIBRARY_PATH
10069  shlibpath_overrides_runpath=yes
10070  hardcode_into_libs=yes
10071  ;;
10072
10073newsos6)
10074  version_type=linux
10075  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10076  shlibpath_var=LD_LIBRARY_PATH
10077  shlibpath_overrides_runpath=yes
10078  ;;
10079
10080nto-qnx*)
10081  version_type=linux
10082  need_lib_prefix=no
10083  need_version=no
10084  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10085  soname_spec='${libname}${release}${shared_ext}$major'
10086  shlibpath_var=LD_LIBRARY_PATH
10087  shlibpath_overrides_runpath=yes
10088  ;;
10089
10090openbsd*)
10091  version_type=sunos
10092  sys_lib_dlsearch_path_spec="/usr/lib"
10093  need_lib_prefix=no
10094  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10095  case $host_os in
10096    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10097    *)                         need_version=no  ;;
10098  esac
10099  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10100  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10101  shlibpath_var=LD_LIBRARY_PATH
10102  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10103    case $host_os in
10104      openbsd2.[89] | openbsd2.[89].*)
10105        shlibpath_overrides_runpath=no
10106        ;;
10107      *)
10108        shlibpath_overrides_runpath=yes
10109        ;;
10110      esac
10111  else
10112    shlibpath_overrides_runpath=yes
10113  fi
10114  ;;
10115
10116os2*)
10117  libname_spec='$name'
10118  shrext_cmds=".dll"
10119  need_lib_prefix=no
10120  library_names_spec='$libname${shared_ext} $libname.a'
10121  dynamic_linker='OS/2 ld.exe'
10122  shlibpath_var=LIBPATH
10123  ;;
10124
10125osf3* | osf4* | osf5*)
10126  version_type=osf
10127  need_lib_prefix=no
10128  need_version=no
10129  soname_spec='${libname}${release}${shared_ext}$major'
10130  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10131  shlibpath_var=LD_LIBRARY_PATH
10132  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10133  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10134  ;;
10135
10136solaris*)
10137  version_type=linux
10138  need_lib_prefix=no
10139  need_version=no
10140  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10141  soname_spec='${libname}${release}${shared_ext}$major'
10142  shlibpath_var=LD_LIBRARY_PATH
10143  shlibpath_overrides_runpath=yes
10144  hardcode_into_libs=yes
10145  # ldd complains unless libraries are executable
10146  postinstall_cmds='chmod +x $lib'
10147  ;;
10148
10149sunos4*)
10150  version_type=sunos
10151  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10152  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10153  shlibpath_var=LD_LIBRARY_PATH
10154  shlibpath_overrides_runpath=yes
10155  if test "$with_gnu_ld" = yes; then
10156    need_lib_prefix=no
10157  fi
10158  need_version=yes
10159  ;;
10160
10161sysv4 | sysv4.3*)
10162  version_type=linux
10163  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10164  soname_spec='${libname}${release}${shared_ext}$major'
10165  shlibpath_var=LD_LIBRARY_PATH
10166  case $host_vendor in
10167    sni)
10168      shlibpath_overrides_runpath=no
10169      need_lib_prefix=no
10170      export_dynamic_flag_spec='${wl}-Blargedynsym'
10171      runpath_var=LD_RUN_PATH
10172      ;;
10173    siemens)
10174      need_lib_prefix=no
10175      ;;
10176    motorola)
10177      need_lib_prefix=no
10178      need_version=no
10179      shlibpath_overrides_runpath=no
10180      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10181      ;;
10182  esac
10183  ;;
10184
10185sysv4*MP*)
10186  if test -d /usr/nec ;then
10187    version_type=linux
10188    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10189    soname_spec='$libname${shared_ext}.$major'
10190    shlibpath_var=LD_LIBRARY_PATH
10191  fi
10192  ;;
10193
10194sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10195  version_type=freebsd-elf
10196  need_lib_prefix=no
10197  need_version=no
10198  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10199  soname_spec='${libname}${release}${shared_ext}$major'
10200  shlibpath_var=LD_LIBRARY_PATH
10201  hardcode_into_libs=yes
10202  if test "$with_gnu_ld" = yes; then
10203    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10204    shlibpath_overrides_runpath=no
10205  else
10206    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10207    shlibpath_overrides_runpath=yes
10208    case $host_os in
10209      sco3.2v5*)
10210        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10211        ;;
10212    esac
10213  fi
10214  sys_lib_dlsearch_path_spec='/usr/lib'
10215  ;;
10216
10217uts4*)
10218  version_type=linux
10219  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10220  soname_spec='${libname}${release}${shared_ext}$major'
10221  shlibpath_var=LD_LIBRARY_PATH
10222  ;;
10223
10224*)
10225  dynamic_linker=no
10226  ;;
10227esac
10228echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10229echo "${ECHO_T}$dynamic_linker" >&6
10230test "$dynamic_linker" = no && can_build_shared=no
10231
10232variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10233if test "$GCC" = yes; then
10234  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10235fi
10236
10237echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10238echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10239hardcode_action=
10240if test -n "$hardcode_libdir_flag_spec" || \
10241   test -n "$runpath_var" || \
10242   test "X$hardcode_automatic" = "Xyes" ; then
10243
10244  # We can hardcode non-existant directories.
10245  if test "$hardcode_direct" != no &&
10246     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10247     # have to relink, otherwise we might link with an installed library
10248     # when we should be linking with a yet-to-be-installed one
10249     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10250     test "$hardcode_minus_L" != no; then
10251    # Linking always hardcodes the temporary library directory.
10252    hardcode_action=relink
10253  else
10254    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10255    hardcode_action=immediate
10256  fi
10257else
10258  # We cannot hardcode anything, or else we can only hardcode existing
10259  # directories.
10260  hardcode_action=unsupported
10261fi
10262echo "$as_me:$LINENO: result: $hardcode_action" >&5
10263echo "${ECHO_T}$hardcode_action" >&6
10264
10265if test "$hardcode_action" = relink; then
10266  # Fast installation is not supported
10267  enable_fast_install=no
10268elif test "$shlibpath_overrides_runpath" = yes ||
10269     test "$enable_shared" = no; then
10270  # Fast installation is not necessary
10271  enable_fast_install=needless
10272fi
10273
10274striplib=
10275old_striplib=
10276echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10277echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10278if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10279  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10280  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10281  echo "$as_me:$LINENO: result: yes" >&5
10282echo "${ECHO_T}yes" >&6
10283else
10284# FIXME - insert some real tests, host_os isn't really good enough
10285  case $host_os in
10286   darwin*)
10287       if test -n "$STRIP" ; then
10288         striplib="$STRIP -x"
10289         echo "$as_me:$LINENO: result: yes" >&5
10290echo "${ECHO_T}yes" >&6
10291       else
10292  echo "$as_me:$LINENO: result: no" >&5
10293echo "${ECHO_T}no" >&6
10294fi
10295       ;;
10296   *)
10297  echo "$as_me:$LINENO: result: no" >&5
10298echo "${ECHO_T}no" >&6
10299    ;;
10300  esac
10301fi
10302
10303if test "x$enable_dlopen" != xyes; then
10304  enable_dlopen=unknown
10305  enable_dlopen_self=unknown
10306  enable_dlopen_self_static=unknown
10307else
10308  lt_cv_dlopen=no
10309  lt_cv_dlopen_libs=
10310
10311  case $host_os in
10312  beos*)
10313    lt_cv_dlopen="load_add_on"
10314    lt_cv_dlopen_libs=
10315    lt_cv_dlopen_self=yes
10316    ;;
10317
10318  mingw* | pw32*)
10319    lt_cv_dlopen="LoadLibrary"
10320    lt_cv_dlopen_libs=
10321   ;;
10322
10323  cygwin*)
10324    lt_cv_dlopen="dlopen"
10325    lt_cv_dlopen_libs=
10326   ;;
10327
10328  darwin*)
10329  # if libdl is installed we need to link against it
10330    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10331echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10332if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10333  echo $ECHO_N "(cached) $ECHO_C" >&6
10334else
10335  ac_check_lib_save_LIBS=$LIBS
10336LIBS="-ldl  $LIBS"
10337cat >conftest.$ac_ext <<_ACEOF
10338/* confdefs.h.  */
10339_ACEOF
10340cat confdefs.h >>conftest.$ac_ext
10341cat >>conftest.$ac_ext <<_ACEOF
10342/* end confdefs.h.  */
10343
10344/* Override any gcc2 internal prototype to avoid an error.  */
10345#ifdef __cplusplus
10346extern "C"
10347#endif
10348/* We use char because int might match the return type of a gcc2
10349   builtin and then its argument prototype would still apply.  */
10350char dlopen ();
10351int
10352main ()
10353{
10354dlopen ();
10355  ;
10356  return 0;
10357}
10358_ACEOF
10359rm -f conftest.$ac_objext conftest$ac_exeext
10360if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10361  (eval $ac_link) 2>conftest.er1
10362  ac_status=$?
10363  grep -v '^ *+' conftest.er1 >conftest.err
10364  rm -f conftest.er1
10365  cat conftest.err >&5
10366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10367  (exit $ac_status); } &&
10368         { ac_try='test -z "$ac_c_werror_flag"
10369                         || test ! -s conftest.err'
10370  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10371  (eval $ac_try) 2>&5
10372  ac_status=$?
10373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10374  (exit $ac_status); }; } &&
10375         { ac_try='test -s conftest$ac_exeext'
10376  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10377  (eval $ac_try) 2>&5
10378  ac_status=$?
10379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380  (exit $ac_status); }; }; then
10381  ac_cv_lib_dl_dlopen=yes
10382else
10383  echo "$as_me: failed program was:" >&5
10384sed 's/^/| /' conftest.$ac_ext >&5
10385
10386ac_cv_lib_dl_dlopen=no
10387fi
10388rm -f conftest.err conftest.$ac_objext \
10389      conftest$ac_exeext conftest.$ac_ext
10390LIBS=$ac_check_lib_save_LIBS
10391fi
10392echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10393echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10394if test $ac_cv_lib_dl_dlopen = yes; then
10395  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10396else
10397
10398    lt_cv_dlopen="dyld"
10399    lt_cv_dlopen_libs=
10400    lt_cv_dlopen_self=yes
10401
10402fi
10403
10404   ;;
10405
10406  *)
10407    echo "$as_me:$LINENO: checking for shl_load" >&5
10408echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10409if test "${ac_cv_func_shl_load+set}" = set; then
10410  echo $ECHO_N "(cached) $ECHO_C" >&6
10411else
10412  cat >conftest.$ac_ext <<_ACEOF
10413/* confdefs.h.  */
10414_ACEOF
10415cat confdefs.h >>conftest.$ac_ext
10416cat >>conftest.$ac_ext <<_ACEOF
10417/* end confdefs.h.  */
10418/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10419   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10420#define shl_load innocuous_shl_load
10421
10422/* System header to define __stub macros and hopefully few prototypes,
10423    which can conflict with char shl_load (); below.
10424    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10425    <limits.h> exists even on freestanding compilers.  */
10426
10427#ifdef __STDC__
10428# include <limits.h>
10429#else
10430# include <assert.h>
10431#endif
10432
10433#undef shl_load
10434
10435/* Override any gcc2 internal prototype to avoid an error.  */
10436#ifdef __cplusplus
10437extern "C"
10438{
10439#endif
10440/* We use char because int might match the return type of a gcc2
10441   builtin and then its argument prototype would still apply.  */
10442char shl_load ();
10443/* The GNU C library defines this for functions which it implements
10444    to always fail with ENOSYS.  Some functions are actually named
10445    something starting with __ and the normal name is an alias.  */
10446#if defined (__stub_shl_load) || defined (__stub___shl_load)
10447choke me
10448#else
10449char (*f) () = shl_load;
10450#endif
10451#ifdef __cplusplus
10452}
10453#endif
10454
10455int
10456main ()
10457{
10458return f != shl_load;
10459  ;
10460  return 0;
10461}
10462_ACEOF
10463rm -f conftest.$ac_objext conftest$ac_exeext
10464if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10465  (eval $ac_link) 2>conftest.er1
10466  ac_status=$?
10467  grep -v '^ *+' conftest.er1 >conftest.err
10468  rm -f conftest.er1
10469  cat conftest.err >&5
10470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471  (exit $ac_status); } &&
10472         { ac_try='test -z "$ac_c_werror_flag"
10473                         || test ! -s conftest.err'
10474  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10475  (eval $ac_try) 2>&5
10476  ac_status=$?
10477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10478  (exit $ac_status); }; } &&
10479         { ac_try='test -s conftest$ac_exeext'
10480  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10481  (eval $ac_try) 2>&5
10482  ac_status=$?
10483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10484  (exit $ac_status); }; }; then
10485  ac_cv_func_shl_load=yes
10486else
10487  echo "$as_me: failed program was:" >&5
10488sed 's/^/| /' conftest.$ac_ext >&5
10489
10490ac_cv_func_shl_load=no
10491fi
10492rm -f conftest.err conftest.$ac_objext \
10493      conftest$ac_exeext conftest.$ac_ext
10494fi
10495echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10496echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10497if test $ac_cv_func_shl_load = yes; then
10498  lt_cv_dlopen="shl_load"
10499else
10500  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10501echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10502if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10503  echo $ECHO_N "(cached) $ECHO_C" >&6
10504else
10505  ac_check_lib_save_LIBS=$LIBS
10506LIBS="-ldld  $LIBS"
10507cat >conftest.$ac_ext <<_ACEOF
10508/* confdefs.h.  */
10509_ACEOF
10510cat confdefs.h >>conftest.$ac_ext
10511cat >>conftest.$ac_ext <<_ACEOF
10512/* end confdefs.h.  */
10513
10514/* Override any gcc2 internal prototype to avoid an error.  */
10515#ifdef __cplusplus
10516extern "C"
10517#endif
10518/* We use char because int might match the return type of a gcc2
10519   builtin and then its argument prototype would still apply.  */
10520char shl_load ();
10521int
10522main ()
10523{
10524shl_load ();
10525  ;
10526  return 0;
10527}
10528_ACEOF
10529rm -f conftest.$ac_objext conftest$ac_exeext
10530if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10531  (eval $ac_link) 2>conftest.er1
10532  ac_status=$?
10533  grep -v '^ *+' conftest.er1 >conftest.err
10534  rm -f conftest.er1
10535  cat conftest.err >&5
10536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10537  (exit $ac_status); } &&
10538         { ac_try='test -z "$ac_c_werror_flag"
10539                         || test ! -s conftest.err'
10540  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10541  (eval $ac_try) 2>&5
10542  ac_status=$?
10543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544  (exit $ac_status); }; } &&
10545         { ac_try='test -s conftest$ac_exeext'
10546  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10547  (eval $ac_try) 2>&5
10548  ac_status=$?
10549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550  (exit $ac_status); }; }; then
10551  ac_cv_lib_dld_shl_load=yes
10552else
10553  echo "$as_me: failed program was:" >&5
10554sed 's/^/| /' conftest.$ac_ext >&5
10555
10556ac_cv_lib_dld_shl_load=no
10557fi
10558rm -f conftest.err conftest.$ac_objext \
10559      conftest$ac_exeext conftest.$ac_ext
10560LIBS=$ac_check_lib_save_LIBS
10561fi
10562echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10563echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10564if test $ac_cv_lib_dld_shl_load = yes; then
10565  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10566else
10567  echo "$as_me:$LINENO: checking for dlopen" >&5
10568echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10569if test "${ac_cv_func_dlopen+set}" = set; then
10570  echo $ECHO_N "(cached) $ECHO_C" >&6
10571else
10572  cat >conftest.$ac_ext <<_ACEOF
10573/* confdefs.h.  */
10574_ACEOF
10575cat confdefs.h >>conftest.$ac_ext
10576cat >>conftest.$ac_ext <<_ACEOF
10577/* end confdefs.h.  */
10578/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10579   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10580#define dlopen innocuous_dlopen
10581
10582/* System header to define __stub macros and hopefully few prototypes,
10583    which can conflict with char dlopen (); below.
10584    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10585    <limits.h> exists even on freestanding compilers.  */
10586
10587#ifdef __STDC__
10588# include <limits.h>
10589#else
10590# include <assert.h>
10591#endif
10592
10593#undef dlopen
10594
10595/* Override any gcc2 internal prototype to avoid an error.  */
10596#ifdef __cplusplus
10597extern "C"
10598{
10599#endif
10600/* We use char because int might match the return type of a gcc2
10601   builtin and then its argument prototype would still apply.  */
10602char dlopen ();
10603/* The GNU C library defines this for functions which it implements
10604    to always fail with ENOSYS.  Some functions are actually named
10605    something starting with __ and the normal name is an alias.  */
10606#if defined (__stub_dlopen) || defined (__stub___dlopen)
10607choke me
10608#else
10609char (*f) () = dlopen;
10610#endif
10611#ifdef __cplusplus
10612}
10613#endif
10614
10615int
10616main ()
10617{
10618return f != dlopen;
10619  ;
10620  return 0;
10621}
10622_ACEOF
10623rm -f conftest.$ac_objext conftest$ac_exeext
10624if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10625  (eval $ac_link) 2>conftest.er1
10626  ac_status=$?
10627  grep -v '^ *+' conftest.er1 >conftest.err
10628  rm -f conftest.er1
10629  cat conftest.err >&5
10630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631  (exit $ac_status); } &&
10632         { ac_try='test -z "$ac_c_werror_flag"
10633                         || test ! -s conftest.err'
10634  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10635  (eval $ac_try) 2>&5
10636  ac_status=$?
10637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10638  (exit $ac_status); }; } &&
10639         { ac_try='test -s conftest$ac_exeext'
10640  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10641  (eval $ac_try) 2>&5
10642  ac_status=$?
10643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644  (exit $ac_status); }; }; then
10645  ac_cv_func_dlopen=yes
10646else
10647  echo "$as_me: failed program was:" >&5
10648sed 's/^/| /' conftest.$ac_ext >&5
10649
10650ac_cv_func_dlopen=no
10651fi
10652rm -f conftest.err conftest.$ac_objext \
10653      conftest$ac_exeext conftest.$ac_ext
10654fi
10655echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10656echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10657if test $ac_cv_func_dlopen = yes; then
10658  lt_cv_dlopen="dlopen"
10659else
10660  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10661echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10662if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10663  echo $ECHO_N "(cached) $ECHO_C" >&6
10664else
10665  ac_check_lib_save_LIBS=$LIBS
10666LIBS="-ldl  $LIBS"
10667cat >conftest.$ac_ext <<_ACEOF
10668/* confdefs.h.  */
10669_ACEOF
10670cat confdefs.h >>conftest.$ac_ext
10671cat >>conftest.$ac_ext <<_ACEOF
10672/* end confdefs.h.  */
10673
10674/* Override any gcc2 internal prototype to avoid an error.  */
10675#ifdef __cplusplus
10676extern "C"
10677#endif
10678/* We use char because int might match the return type of a gcc2
10679   builtin and then its argument prototype would still apply.  */
10680char dlopen ();
10681int
10682main ()
10683{
10684dlopen ();
10685  ;
10686  return 0;
10687}
10688_ACEOF
10689rm -f conftest.$ac_objext conftest$ac_exeext
10690if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10691  (eval $ac_link) 2>conftest.er1
10692  ac_status=$?
10693  grep -v '^ *+' conftest.er1 >conftest.err
10694  rm -f conftest.er1
10695  cat conftest.err >&5
10696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10697  (exit $ac_status); } &&
10698         { ac_try='test -z "$ac_c_werror_flag"
10699                         || test ! -s conftest.err'
10700  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10701  (eval $ac_try) 2>&5
10702  ac_status=$?
10703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10704  (exit $ac_status); }; } &&
10705         { ac_try='test -s conftest$ac_exeext'
10706  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10707  (eval $ac_try) 2>&5
10708  ac_status=$?
10709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10710  (exit $ac_status); }; }; then
10711  ac_cv_lib_dl_dlopen=yes
10712else
10713  echo "$as_me: failed program was:" >&5
10714sed 's/^/| /' conftest.$ac_ext >&5
10715
10716ac_cv_lib_dl_dlopen=no
10717fi
10718rm -f conftest.err conftest.$ac_objext \
10719      conftest$ac_exeext conftest.$ac_ext
10720LIBS=$ac_check_lib_save_LIBS
10721fi
10722echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10723echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10724if test $ac_cv_lib_dl_dlopen = yes; then
10725  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10726else