source: stable/2.8/Cbc/configure @ 2007

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

restoring Cbc/stable/2.8

  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 1.1 MB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for Cbc 2.8.
4#
5# Report bugs to <cbc@lists.coin-or.org>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='Cbc'
431PACKAGE_TARNAME='cbc'
432PACKAGE_VERSION='2.8'
433PACKAGE_STRING='Cbc 2.8'
434PACKAGE_BUGREPORT='cbc@lists.coin-or.org'
435
436ac_unique_file="src/CbcTree.hpp"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion CBC_SVN_REV CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX COIN_CXX_IS_CL_TRUE COIN_CXX_IS_CL_FALSE MPICXX EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS DEPENDENCY_LINKING_TRUE DEPENDENCY_LINKING_FALSE LT_LDFLAGS PKG_CONFIG ac_ct_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED COINDEPEND_LIBS COINDEPEND_CFLAGS COINDEPEND_DATA COINDEPEND_DEPENDENCIES COINDEPEND_LIBS_INSTALLED COINDEPEND_CFLAGS_INSTALLED COINDEPEND_DATA_INSTALLED CBCLIB_CFLAGS CBCLIB_LIBS CBCLIB_PCLIBS CBCLIB_PCREQUIRES CBCLIB_DEPENDENCIES CBCLIB_CFLAGS_INSTALLED CBCLIB_LIBS_INSTALLED CBCGENERIC_CFLAGS CBCGENERIC_LIBS CBCGENERIC_PCLIBS CBCGENERIC_PCREQUIRES CBCGENERIC_DEPENDENCIES CBCGENERIC_CFLAGS_INSTALLED CBCGENERIC_LIBS_INSTALLED COIN_HAS_COINDEPEND_TRUE COIN_HAS_COINDEPEND_FALSE CLP_LIBS CLP_CFLAGS CLP_DATA CLP_DEPENDENCIES CLP_LIBS_INSTALLED CLP_CFLAGS_INSTALLED CLP_DATA_INSTALLED COIN_HAS_CLP_TRUE COIN_HAS_CLP_FALSE OSITESTS_LIBS OSITESTS_CFLAGS OSITESTS_DATA OSITESTS_DEPENDENCIES OSITESTS_LIBS_INSTALLED OSITESTS_CFLAGS_INSTALLED OSITESTS_DATA_INSTALLED COIN_HAS_OSITESTS_TRUE COIN_HAS_OSITESTS_FALSE SAMPLE_LIBS SAMPLE_CFLAGS SAMPLE_DATA SAMPLE_DEPENDENCIES SAMPLE_LIBS_INSTALLED SAMPLE_CFLAGS_INSTALLED SAMPLE_DATA_INSTALLED COIN_HAS_SAMPLE_TRUE COIN_HAS_SAMPLE_FALSE NETLIB_LIBS NETLIB_CFLAGS NETLIB_DATA NETLIB_DEPENDENCIES NETLIB_LIBS_INSTALLED NETLIB_CFLAGS_INSTALLED NETLIB_DATA_INSTALLED COIN_HAS_NETLIB_TRUE COIN_HAS_NETLIB_FALSE MIPLIB3_LIBS MIPLIB3_CFLAGS MIPLIB3_DATA MIPLIB3_DEPENDENCIES MIPLIB3_LIBS_INSTALLED MIPLIB3_CFLAGS_INSTALLED MIPLIB3_DATA_INSTALLED COIN_HAS_MIPLIB3_TRUE COIN_HAS_MIPLIB3_FALSE DYLP_LIBS DYLP_CFLAGS DYLP_DATA DYLP_DEPENDENCIES DYLP_LIBS_INSTALLED DYLP_CFLAGS_INSTALLED DYLP_DATA_INSTALLED COIN_HAS_DYLP_TRUE COIN_HAS_DYLP_FALSE VOL_LIBS VOL_CFLAGS VOL_DATA VOL_DEPENDENCIES VOL_LIBS_INSTALLED VOL_CFLAGS_INSTALLED VOL_DATA_INSTALLED COIN_HAS_VOL_TRUE COIN_HAS_VOL_FALSE CPX_LIBS CPX_CFLAGS CPX_DATA CPX_DEPENDENCIES CPX_LIBS_INSTALLED CPX_CFLAGS_INSTALLED CPX_DATA_INSTALLED COIN_HAS_CPX_TRUE COIN_HAS_CPX_FALSE GLPK_LIBS GLPK_CFLAGS GLPK_DATA GLPK_DEPENDENCIES GLPK_LIBS_INSTALLED GLPK_CFLAGS_INSTALLED GLPK_DATA_INSTALLED COIN_HAS_GLPK_TRUE COIN_HAS_GLPK_FALSE GRB_LIBS GRB_CFLAGS GRB_DATA GRB_DEPENDENCIES GRB_LIBS_INSTALLED GRB_CFLAGS_INSTALLED GRB_DATA_INSTALLED COIN_HAS_GRB_TRUE COIN_HAS_GRB_FALSE MSK_LIBS MSK_CFLAGS MSK_DATA MSK_DEPENDENCIES MSK_LIBS_INSTALLED MSK_CFLAGS_INSTALLED MSK_DATA_INSTALLED COIN_HAS_MSK_TRUE COIN_HAS_MSK_FALSE SPX_LIBS SPX_CFLAGS SPX_DATA SPX_DEPENDENCIES SPX_LIBS_INSTALLED SPX_CFLAGS_INSTALLED SPX_DATA_INSTALLED COIN_HAS_SPX_TRUE COIN_HAS_SPX_FALSE XPR_LIBS XPR_CFLAGS XPR_DATA XPR_DEPENDENCIES XPR_LIBS_INSTALLED XPR_CFLAGS_INSTALLED XPR_DATA_INSTALLED COIN_HAS_XPR_TRUE COIN_HAS_XPR_FALSE ASL_LIBS ASL_CFLAGS ASL_DATA ASL_DEPENDENCIES ASL_LIBS_INSTALLED ASL_CFLAGS_INSTALLED ASL_DATA_INSTALLED COIN_HAS_ASL_TRUE COIN_HAS_ASL_FALSE CBC_BUILD_CBC_GENERIC_TRUE CBC_BUILD_CBC_GENERIC_FALSE OSICBC_DFLT_SOLVER_CLP_TRUE OSICBC_DFLT_SOLVER_CLP_FALSE OSICBC_DFLT_SOLVER_CPX_TRUE OSICBC_DFLT_SOLVER_CPX_FALSE OSICBC_DFLT_SOLVER_DYLP_TRUE OSICBC_DFLT_SOLVER_DYLP_FALSE OSICBC_DFLT_SOLVER_GLPK_TRUE OSICBC_DFLT_SOLVER_GLPK_FALSE OSICBC_DFLT_SOLVER_GRB_TRUE OSICBC_DFLT_SOLVER_GRB_FALSE OSICBC_DFLT_SOLVER_MSK_TRUE OSICBC_DFLT_SOLVER_MSK_FALSE OSICBC_DFLT_SOLVER_SPX_TRUE OSICBC_DFLT_SOLVER_SPX_FALSE OSICBC_DFLT_SOLVER_SYM_TRUE OSICBC_DFLT_SOLVER_SYM_FALSE OSICBC_DFLT_SOLVER_VOL_TRUE OSICBC_DFLT_SOLVER_VOL_FALSE OSICBC_DFLT_SOLVER_XPR_TRUE OSICBC_DFLT_SOLVER_XPR_FALSE coin_have_doxygen coin_doxy_usedot coin_doxy_tagname coin_doxy_logname coin_doxy_tagfiles coin_doxy_excludes LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_CXXDEFS_set=${CXXDEFS+set}
953ac_env_CXXDEFS_value=$CXXDEFS
954ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
955ac_cv_env_CXXDEFS_value=$CXXDEFS
956ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
957ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
958ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
959ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
960ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
961ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
962ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
963ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
964ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
965ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
966ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
967ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
968ac_env_CXX_set=${CXX+set}
969ac_env_CXX_value=$CXX
970ac_cv_env_CXX_set=${CXX+set}
971ac_cv_env_CXX_value=$CXX
972ac_env_CXXFLAGS_set=${CXXFLAGS+set}
973ac_env_CXXFLAGS_value=$CXXFLAGS
974ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
975ac_cv_env_CXXFLAGS_value=$CXXFLAGS
976ac_env_MPICXX_set=${MPICXX+set}
977ac_env_MPICXX_value=$MPICXX
978ac_cv_env_MPICXX_set=${MPICXX+set}
979ac_cv_env_MPICXX_value=$MPICXX
980ac_env_CPP_set=${CPP+set}
981ac_env_CPP_value=$CPP
982ac_cv_env_CPP_set=${CPP+set}
983ac_cv_env_CPP_value=$CPP
984ac_env_CXXCPP_set=${CXXCPP+set}
985ac_env_CXXCPP_value=$CXXCPP
986ac_cv_env_CXXCPP_set=${CXXCPP+set}
987ac_cv_env_CXXCPP_value=$CXXCPP
988ac_env_F77_set=${F77+set}
989ac_env_F77_value=$F77
990ac_cv_env_F77_set=${F77+set}
991ac_cv_env_F77_value=$F77
992ac_env_FFLAGS_set=${FFLAGS+set}
993ac_env_FFLAGS_value=$FFLAGS
994ac_cv_env_FFLAGS_set=${FFLAGS+set}
995ac_cv_env_FFLAGS_value=$FFLAGS
996ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
997ac_env_PKG_CONFIG_value=$PKG_CONFIG
998ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
999ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
1000
1001#
1002# Report the --help message.
1003#
1004if test "$ac_init_help" = "long"; then
1005  # Omit some internal or obsolete options to make the list less imposing.
1006  # This message is too long to be a string in the A/UX 3.1 sh.
1007  cat <<_ACEOF
1008\`configure' configures Cbc 2.8 to adapt to many kinds of systems.
1009
1010Usage: $0 [OPTION]... [VAR=VALUE]...
1011
1012To assign environment variables (e.g., CC, CFLAGS...), specify them as
1013VAR=VALUE.  See below for descriptions of some of the useful variables.
1014
1015Defaults for the options are specified in brackets.
1016
1017Configuration:
1018  -h, --help              display this help and exit
1019      --help=short        display options specific to this package
1020      --help=recursive    display the short help of all the included packages
1021  -V, --version           display version information and exit
1022  -q, --quiet, --silent   do not print \`checking...' messages
1023      --cache-file=FILE   cache test results in FILE [disabled]
1024  -C, --config-cache      alias for \`--cache-file=config.cache'
1025  -n, --no-create         do not create output files
1026      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1027
1028_ACEOF
1029
1030  cat <<_ACEOF
1031Installation directories:
1032  --prefix=PREFIX         install architecture-independent files in PREFIX
1033                          [$ac_default_prefix]
1034  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1035                          [PREFIX]
1036
1037By default, \`make install' will install all the files in
1038\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1039an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1040for instance \`--prefix=\$HOME'.
1041
1042For better control, use the options below.
1043
1044Fine tuning of the installation directories:
1045  --bindir=DIR           user executables [EPREFIX/bin]
1046  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1047  --libexecdir=DIR       program executables [EPREFIX/libexec]
1048  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1049  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1050  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1051  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1052  --libdir=DIR           object code libraries [EPREFIX/lib]
1053  --includedir=DIR       C header files [PREFIX/include]
1054  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1055  --infodir=DIR          info documentation [PREFIX/info]
1056  --mandir=DIR           man documentation [PREFIX/man]
1057_ACEOF
1058
1059  cat <<\_ACEOF
1060
1061Program names:
1062  --program-prefix=PREFIX            prepend PREFIX to installed program names
1063  --program-suffix=SUFFIX            append SUFFIX to installed program names
1064  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1065
1066System types:
1067  --build=BUILD     configure for building on BUILD [guessed]
1068  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1069_ACEOF
1070fi
1071
1072if test -n "$ac_init_help"; then
1073  case $ac_init_help in
1074     short | recursive ) echo "Configuration of Cbc 2.8:";;
1075   esac
1076  cat <<\_ACEOF
1077
1078Optional Features:
1079  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1080  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1081  --enable-debug          compile all projects with debug options tests
1082                          (implies --disable-shared)
1083  --enable-debug-cbc compile project Cbc with debug compiler flags
1084
1085  --enable-msvc           Prefer (i)cl/ifort/link over GNU on MinGW/Cygwin.
1086  --enable-static[=PKGS]
1087                          build static libraries [default=no]
1088  --disable-dependency-tracking  speeds up one-time build
1089  --enable-dependency-tracking   do not reject slow dependency extractors
1090  --enable-maintainer-mode  enable make rules and dependencies not useful
1091                          (and sometimes confusing) to the casual installer
1092  --enable-shared[=PKGS]
1093                          build shared libraries [default=yes]
1094  --enable-fast-install[=PKGS]
1095                          optimize for fast installation [default=yes]
1096  --disable-libtool-lock  avoid locking (might break parallel builds)
1097  --disable-pkg-config    disable use of pkg-config (if available)
1098  --disable-interpackage-dependencies
1099                          disables deduction of Makefile dependencies from
1100                          package linker flags
1101  --enable-gnu-packages   compile with GNU packages (disabled by default)
1102  --enable-cbc-parallel   enables compilation of the SMP version of Cbc
1103
1104Optional Packages:
1105  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1106  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1107  --with-cbc-verbosity specify the debug verbosity level for project Cbc
1108  --with-cbc-checklevel specify the sanity check level for project Cbc
1109  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1110  --with-pic              try to use only PIC/non-PIC objects [default=use
1111                          both]
1112  --with-tags[=TAGS]
1113                          include additional configurations [automatic]
1114  --with-coin-instdir     prefix of installation directory for precompiled
1115                          COIN packages
1116
1117  --with-coindepend-lib linker flags for using package CoinDepend
1118  --with-coindepend-incdir
1119                          directory with header files for using package
1120                          CoinDepend
1121  --with-coindepend-datadir
1122                          directory with data files for using package
1123                          CoinDepend
1124  --with-clp-lib linker flags for using package Clp
1125  --with-clp-incdir directory with header files for using package Clp
1126  --with-clp-datadir directory with data files for using package Clp
1127  --with-ositests-lib linker flags for using package OsiTests
1128  --with-ositests-incdir directory with header files for using package
1129                          OsiTests
1130  --with-ositests-datadir directory with data files for using package OsiTests
1131  --with-sample-lib linker flags for using package Sample
1132  --with-sample-incdir directory with header files for using package Sample
1133  --with-sample-datadir directory with data files for using package Sample
1134  --with-netlib-lib linker flags for using package Netlib
1135  --with-netlib-incdir directory with header files for using package Netlib
1136  --with-netlib-datadir directory with data files for using package Netlib
1137  --with-miplib3-lib linker flags for using package Miplib3
1138  --with-miplib3-incdir directory with header files for using package Miplib3
1139  --with-miplib3-datadir directory with data files for using package Miplib3
1140  --with-dylp-lib linker flags for using package DyLP
1141  --with-dylp-incdir directory with header files for using package DyLP
1142  --with-dylp-datadir directory with data files for using package DyLP
1143  --with-vol-lib linker flags for using package Vol
1144  --with-vol-incdir directory with header files for using package Vol
1145  --with-vol-datadir directory with data files for using package Vol
1146  --with-cpx-lib linker flags for using package Cpx
1147  --with-cpx-incdir directory with header files for using package Cpx
1148  --with-cpx-datadir directory with data files for using package Cpx
1149  --with-glpk-lib linker flags for using package Glpk
1150  --with-glpk-incdir directory with header files for using package Glpk
1151  --with-glpk-datadir directory with data files for using package Glpk
1152  --with-grb-lib linker flags for using package Grb
1153  --with-grb-incdir directory with header files for using package Grb
1154  --with-grb-datadir directory with data files for using package Grb
1155  --with-msk-lib linker flags for using package Msk
1156  --with-msk-incdir directory with header files for using package Msk
1157  --with-msk-datadir directory with data files for using package Msk
1158  --with-spx-lib linker flags for using package Spx
1159  --with-spx-incdir directory with header files for using package Spx
1160  --with-spx-datadir directory with data files for using package Spx
1161  --with-xpr-lib linker flags for using package Xpr
1162  --with-xpr-incdir directory with header files for using package Xpr
1163  --with-xpr-datadir directory with data files for using package Xpr
1164  --with-asl-lib linker flags for using package ASL
1165  --with-asl-incdir directory with header files for using package ASL
1166  --with-asl-datadir directory with data files for using package ASL
1167  --with-cbc-generic      specify whether to build cbc-generic (default: no)
1168  --with-cbc-generic-solver
1169                          specify default solver for cbc-generic in lower case
1170                          letters (if not given, clp is assumed)
1171  --with-pthreadsw32-lib  specify the name of the pthreads win32 library (for
1172                          cl/icl builds only)
1173  --with-pthreadsw32-incdir
1174                          specify the path of the pthreads win32 header file
1175                          (for cl/icl builds only)
1176  --with-osicbc-default-solver
1177                          specify underlying solver for OsiCbc (default clp)
1178  --with-dot              use dot (from graphviz) when creating documentation
1179                          with doxygen if available; --without-dot to disable
1180
1181Some influential environment variables:
1182  CDEFS       Additional -D flags to be used when compiling C code.
1183  ADD_CFLAGS  Additional C compiler options
1184  DBG_CFLAGS  Debug C compiler options
1185  OPT_CFLAGS  Optimize C compiler options
1186  CC          C compiler command
1187  CFLAGS      C compiler flags
1188  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1189              nonstandard directory <lib dir>
1190  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1191              headers in a nonstandard directory <include dir>
1192  MPICC       C MPI Compiler
1193  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1194  ADD_CXXFLAGS
1195              Additional C++ compiler options
1196  DBG_CXXFLAGS
1197              Debug C++ compiler options
1198  OPT_CXXFLAGS
1199              Optimize C++ compiler options
1200  CXX         C++ compiler command
1201  CXXFLAGS    C++ compiler flags
1202  MPICXX      C++ MPI Compiler
1203  CPP         C preprocessor
1204  CXXCPP      C++ preprocessor
1205  F77         Fortran 77 compiler command
1206  FFLAGS      Fortran 77 compiler flags
1207  PKG_CONFIG  path to pkg-config utility
1208
1209Use these variables to override the choices made by `configure' or to help
1210it to find libraries and programs with nonstandard names/locations.
1211
1212Report bugs to <cbc@lists.coin-or.org>.
1213_ACEOF
1214fi
1215
1216if test "$ac_init_help" = "recursive"; then
1217  # If there are subdirs, report their specific --help.
1218  ac_popdir=`pwd`
1219  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1220    test -d $ac_dir || continue
1221    ac_builddir=.
1222
1223if test "$ac_dir" != .; then
1224  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1225  # A "../" for each directory in $ac_dir_suffix.
1226  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1227else
1228  ac_dir_suffix= ac_top_builddir=
1229fi
1230
1231case $srcdir in
1232  .)  # No --srcdir option.  We are building in place.
1233    ac_srcdir=.
1234    if test -z "$ac_top_builddir"; then
1235       ac_top_srcdir=.
1236    else
1237       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1238    fi ;;
1239  [\\/]* | ?:[\\/]* )  # Absolute path.
1240    ac_srcdir=$srcdir$ac_dir_suffix;
1241    ac_top_srcdir=$srcdir ;;
1242  *) # Relative path.
1243    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1244    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1245esac
1246
1247# Do not use `cd foo && pwd` to compute absolute paths, because
1248# the directories may not exist.
1249case `pwd` in
1250.) ac_abs_builddir="$ac_dir";;
1251*)
1252  case "$ac_dir" in
1253  .) ac_abs_builddir=`pwd`;;
1254  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1255  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1256  esac;;
1257esac
1258case $ac_abs_builddir in
1259.) ac_abs_top_builddir=${ac_top_builddir}.;;
1260*)
1261  case ${ac_top_builddir}. in
1262  .) ac_abs_top_builddir=$ac_abs_builddir;;
1263  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1264  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1265  esac;;
1266esac
1267case $ac_abs_builddir in
1268.) ac_abs_srcdir=$ac_srcdir;;
1269*)
1270  case $ac_srcdir in
1271  .) ac_abs_srcdir=$ac_abs_builddir;;
1272  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1273  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1274  esac;;
1275esac
1276case $ac_abs_builddir in
1277.) ac_abs_top_srcdir=$ac_top_srcdir;;
1278*)
1279  case $ac_top_srcdir in
1280  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1281  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1282  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1283  esac;;
1284esac
1285
1286    cd $ac_dir
1287    # Check for guested configure; otherwise get Cygnus style configure.
1288    if test -f $ac_srcdir/configure.gnu; then
1289      echo
1290      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1291    elif test -f $ac_srcdir/configure; then
1292      echo
1293      $SHELL $ac_srcdir/configure  --help=recursive
1294    elif test -f $ac_srcdir/configure.ac ||
1295           test -f $ac_srcdir/configure.in; then
1296      echo
1297      $ac_configure --help
1298    else
1299      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1300    fi
1301    cd $ac_popdir
1302  done
1303fi
1304
1305test -n "$ac_init_help" && exit 0
1306if $ac_init_version; then
1307  cat <<\_ACEOF
1308Cbc configure 2.8
1309generated by GNU Autoconf 2.59
1310
1311Copyright (C) 2003 Free Software Foundation, Inc.
1312This configure script is free software; the Free Software Foundation
1313gives unlimited permission to copy, distribute and modify it.
1314
1315
1316Copyright 2006 International Business Machines and others.
1317All Rights Reserved.
1318This file is part of the open source package Coin which is distributed
1319under the Eclipse Public License.
1320_ACEOF
1321  exit 0
1322fi
1323exec 5>config.log
1324cat >&5 <<_ACEOF
1325This file contains any messages produced by compilers while
1326running configure, to aid debugging if configure makes a mistake.
1327
1328It was created by Cbc $as_me 2.8, which was
1329generated by GNU Autoconf 2.59.  Invocation command line was
1330
1331  $ $0 $@
1332
1333_ACEOF
1334{
1335cat <<_ASUNAME
1336## --------- ##
1337## Platform. ##
1338## --------- ##
1339
1340hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1341uname -m = `(uname -m) 2>/dev/null || echo unknown`
1342uname -r = `(uname -r) 2>/dev/null || echo unknown`
1343uname -s = `(uname -s) 2>/dev/null || echo unknown`
1344uname -v = `(uname -v) 2>/dev/null || echo unknown`
1345
1346/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1347/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1348
1349/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1350/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1351/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1352hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1353/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1354/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1355/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1356
1357_ASUNAME
1358
1359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1360for as_dir in $PATH
1361do
1362  IFS=$as_save_IFS
1363  test -z "$as_dir" && as_dir=.
1364  echo "PATH: $as_dir"
1365done
1366
1367} >&5
1368
1369cat >&5 <<_ACEOF
1370
1371
1372## ----------- ##
1373## Core tests. ##
1374## ----------- ##
1375
1376_ACEOF
1377
1378
1379# Keep a trace of the command line.
1380# Strip out --no-create and --no-recursion so they do not pile up.
1381# Strip out --silent because we don't want to record it for future runs.
1382# Also quote any args containing shell meta-characters.
1383# Make two passes to allow for proper duplicate-argument suppression.
1384ac_configure_args=
1385ac_configure_args0=
1386ac_configure_args1=
1387ac_sep=
1388ac_must_keep_next=false
1389for ac_pass in 1 2
1390do
1391  for ac_arg
1392  do
1393    case $ac_arg in
1394    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1395    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1396    | -silent | --silent | --silen | --sile | --sil)
1397      continue ;;
1398    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1399      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1400    esac
1401    case $ac_pass in
1402    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1403    2)
1404      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1405      if test $ac_must_keep_next = true; then
1406        ac_must_keep_next=false # Got value, back to normal.
1407      else
1408        case $ac_arg in
1409          *=* | --config-cache | -C | -disable-* | --disable-* \
1410          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1411          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1412          | -with-* | --with-* | -without-* | --without-* | --x)
1413            case "$ac_configure_args0 " in
1414              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1415            esac
1416            ;;
1417          -* ) ac_must_keep_next=true ;;
1418        esac
1419      fi
1420      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1421      # Get rid of the leading space.
1422      ac_sep=" "
1423      ;;
1424    esac
1425  done
1426done
1427$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1428$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1429
1430# When interrupted or exit'd, cleanup temporary files, and complete
1431# config.log.  We remove comments because anyway the quotes in there
1432# would cause problems or look ugly.
1433# WARNING: Be sure not to use single quotes in there, as some shells,
1434# such as our DU 5.0 friend, will then `close' the trap.
1435trap 'exit_status=$?
1436  # Save into config.log some information that might help in debugging.
1437  {
1438    echo
1439
1440    cat <<\_ASBOX
1441## ---------------- ##
1442## Cache variables. ##
1443## ---------------- ##
1444_ASBOX
1445    echo
1446    # The following way of writing the cache mishandles newlines in values,
1447{
1448  (set) 2>&1 |
1449    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1450    *ac_space=\ *)
1451      sed -n \
1452        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1453          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1454      ;;
1455    *)
1456      sed -n \
1457        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1458      ;;
1459    esac;
1460}
1461    echo
1462
1463    cat <<\_ASBOX
1464## ----------------- ##
1465## Output variables. ##
1466## ----------------- ##
1467_ASBOX
1468    echo
1469    for ac_var in $ac_subst_vars
1470    do
1471      eval ac_val=$`echo $ac_var`
1472      echo "$ac_var='"'"'$ac_val'"'"'"
1473    done | sort
1474    echo
1475
1476    if test -n "$ac_subst_files"; then
1477      cat <<\_ASBOX
1478## ------------- ##
1479## Output files. ##
1480## ------------- ##
1481_ASBOX
1482      echo
1483      for ac_var in $ac_subst_files
1484      do
1485        eval ac_val=$`echo $ac_var`
1486        echo "$ac_var='"'"'$ac_val'"'"'"
1487      done | sort
1488      echo
1489    fi
1490
1491    if test -s confdefs.h; then
1492      cat <<\_ASBOX
1493## ----------- ##
1494## confdefs.h. ##
1495## ----------- ##
1496_ASBOX
1497      echo
1498      sed "/^$/d" confdefs.h | sort
1499      echo
1500    fi
1501    test "$ac_signal" != 0 &&
1502      echo "$as_me: caught signal $ac_signal"
1503    echo "$as_me: exit $exit_status"
1504  } >&5
1505  rm -f core *.core &&
1506  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1507    exit $exit_status
1508     ' 0
1509for ac_signal in 1 2 13 15; do
1510  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1511done
1512ac_signal=0
1513
1514# confdefs.h avoids OS command line length limits that DEFS can exceed.
1515rm -rf conftest* confdefs.h
1516# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1517echo >confdefs.h
1518
1519# Predefined preprocessor variables.
1520
1521cat >>confdefs.h <<_ACEOF
1522#define PACKAGE_NAME "$PACKAGE_NAME"
1523_ACEOF
1524
1525
1526cat >>confdefs.h <<_ACEOF
1527#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1528_ACEOF
1529
1530
1531cat >>confdefs.h <<_ACEOF
1532#define PACKAGE_VERSION "$PACKAGE_VERSION"
1533_ACEOF
1534
1535
1536cat >>confdefs.h <<_ACEOF
1537#define PACKAGE_STRING "$PACKAGE_STRING"
1538_ACEOF
1539
1540
1541cat >>confdefs.h <<_ACEOF
1542#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1543_ACEOF
1544
1545
1546# Let the site file select an alternate cache file if it wants to.
1547# Prefer explicitly selected file to automatically selected ones.
1548if test -z "$CONFIG_SITE"; then
1549  if test "x$prefix" != xNONE; then
1550    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1551  else
1552    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1553  fi
1554fi
1555for ac_site_file in $CONFIG_SITE; do
1556  if test -r "$ac_site_file"; then
1557    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1558echo "$as_me: loading site script $ac_site_file" >&6;}
1559    sed 's/^/| /' "$ac_site_file" >&5
1560    . "$ac_site_file"
1561  fi
1562done
1563
1564if test -r "$cache_file"; then
1565  # Some versions of bash will fail to source /dev/null (special
1566  # files actually), so we avoid doing that.
1567  if test -f "$cache_file"; then
1568    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1569echo "$as_me: loading cache $cache_file" >&6;}
1570    case $cache_file in
1571      [\\/]* | ?:[\\/]* ) . $cache_file;;
1572      *)                      . ./$cache_file;;
1573    esac
1574  fi
1575else
1576  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1577echo "$as_me: creating cache $cache_file" >&6;}
1578  >$cache_file
1579fi
1580
1581# Check that the precious variables saved in the cache have kept the same
1582# value.
1583ac_cache_corrupted=false
1584for ac_var in `(set) 2>&1 |
1585               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1586  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1587  eval ac_new_set=\$ac_env_${ac_var}_set
1588  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1589  eval ac_new_val="\$ac_env_${ac_var}_value"
1590  case $ac_old_set,$ac_new_set in
1591    set,)
1592      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1593echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1594      ac_cache_corrupted=: ;;
1595    ,set)
1596      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1597echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1598      ac_cache_corrupted=: ;;
1599    ,);;
1600    *)
1601      if test "x$ac_old_val" != "x$ac_new_val"; then
1602        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1603echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1604        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1605echo "$as_me:   former value:  $ac_old_val" >&2;}
1606        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1607echo "$as_me:   current value: $ac_new_val" >&2;}
1608        ac_cache_corrupted=:
1609      fi;;
1610  esac
1611  # Pass precious variables to config.status.
1612  if test "$ac_new_set" = set; then
1613    case $ac_new_val in
1614    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1615      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1616    *) ac_arg=$ac_var=$ac_new_val ;;
1617    esac
1618    case " $ac_configure_args " in
1619      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1620      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1621    esac
1622  fi
1623done
1624if $ac_cache_corrupted; then
1625  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1626echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1627  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1628echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1629   { (exit 1); exit 1; }; }
1630fi
1631
1632ac_ext=c
1633ac_cpp='$CPP $CPPFLAGS'
1634ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1635ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1636ac_compiler_gnu=$ac_cv_c_compiler_gnu
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667# List one file in the package so that the configure script can test
1668# whether the package is actually there
1669
1670
1671# Where should everything be installed by default?  Here, we want it
1672# to be installed directly in 'bin', 'lib', 'include' subdirectories
1673# of the directory where configure is run.  The default would be
1674# /usr/local.
1675
1676
1677#############################################################################
1678#                         Standard build tool stuff                         #
1679#############################################################################
1680
1681# Get the system type
1682ac_aux_dir=
1683for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1684  if test -f $ac_dir/install-sh; then
1685    ac_aux_dir=$ac_dir
1686    ac_install_sh="$ac_aux_dir/install-sh -c"
1687    break
1688  elif test -f $ac_dir/install.sh; then
1689    ac_aux_dir=$ac_dir
1690    ac_install_sh="$ac_aux_dir/install.sh -c"
1691    break
1692  elif test -f $ac_dir/shtool; then
1693    ac_aux_dir=$ac_dir
1694    ac_install_sh="$ac_aux_dir/shtool install -c"
1695    break
1696  fi
1697done
1698if test -z "$ac_aux_dir"; then
1699  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1700echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1701   { (exit 1); exit 1; }; }
1702fi
1703ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1704ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1705ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1706
1707# Make sure we can run config.sub.
1708$ac_config_sub sun4 >/dev/null 2>&1 ||
1709  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1710echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1711   { (exit 1); exit 1; }; }
1712
1713echo "$as_me:$LINENO: checking build system type" >&5
1714echo $ECHO_N "checking build system type... $ECHO_C" >&6
1715if test "${ac_cv_build+set}" = set; then
1716  echo $ECHO_N "(cached) $ECHO_C" >&6
1717else
1718  ac_cv_build_alias=$build_alias
1719test -z "$ac_cv_build_alias" &&
1720  ac_cv_build_alias=`$ac_config_guess`
1721test -z "$ac_cv_build_alias" &&
1722  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1723echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1724   { (exit 1); exit 1; }; }
1725ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1726  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1727echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1728   { (exit 1); exit 1; }; }
1729
1730fi
1731echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1732echo "${ECHO_T}$ac_cv_build" >&6
1733build=$ac_cv_build
1734build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1735build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1736build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1737
1738
1739
1740# If this project depends on external projects, the Externals file in
1741# the source root directory contains definition of where to find those
1742# externals.  The following macro ensures that those externals are
1743# retrieved by svn if they are not there yet.
1744
1745# As backup, we make sure we don't loose an FLIBS if it has been set
1746# by the user
1747save_FLIBS="$FLIBS"
1748
1749# A useful makefile conditional that is always false
1750
1751
1752if false; then
1753  ALWAYS_FALSE_TRUE=
1754  ALWAYS_FALSE_FALSE='#'
1755else
1756  ALWAYS_FALSE_TRUE='#'
1757  ALWAYS_FALSE_FALSE=
1758fi
1759
1760
1761# We set the following variable so that we know later in AC_COIN_FINALIZE
1762# that we are in a project main directory
1763coin_projectdir=yes
1764
1765# Set the project's version numbers
1766
1767
1768cat >>confdefs.h <<_ACEOF
1769#define CBC_VERSION "$PACKAGE_VERSION"
1770_ACEOF
1771
1772
1773  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1774  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1775  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1776  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1777  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1778  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1779
1780cat >>confdefs.h <<_ACEOF
1781#define CBC_VERSION_MAJOR $coin_majorver
1782_ACEOF
1783
1784
1785cat >>confdefs.h <<_ACEOF
1786#define CBC_VERSION_MINOR $coin_minorver
1787_ACEOF
1788
1789
1790cat >>confdefs.h <<_ACEOF
1791#define CBC_VERSION_RELEASE $coin_releasever
1792_ACEOF
1793
1794
1795  # We use the following variable to have a string with the upper case
1796  # version of the project name
1797  COIN_PRJCT=CBC
1798
1799  # Set the project's SVN revision number. The complicated sed expression
1800  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1801  # as a single number.
1802  # Extract the first word of "svnversion", so it can be a program name with args.
1803set dummy svnversion; ac_word=$2
1804echo "$as_me:$LINENO: checking for $ac_word" >&5
1805echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1806if test "${ac_cv_prog_have_svnversion+set}" = set; then
1807  echo $ECHO_N "(cached) $ECHO_C" >&6
1808else
1809  if test -n "$have_svnversion"; then
1810  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1811else
1812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1813for as_dir in $PATH
1814do
1815  IFS=$as_save_IFS
1816  test -z "$as_dir" && as_dir=.
1817  for ac_exec_ext in '' $ac_executable_extensions; do
1818  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1819    ac_cv_prog_have_svnversion="yes"
1820    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1821    break 2
1822  fi
1823done
1824done
1825
1826  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1827fi
1828fi
1829have_svnversion=$ac_cv_prog_have_svnversion
1830if test -n "$have_svnversion"; then
1831  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1832echo "${ECHO_T}$have_svnversion" >&6
1833else
1834  echo "$as_me:$LINENO: result: no" >&5
1835echo "${ECHO_T}no" >&6
1836fi
1837
1838  if test "x$have_svnversion" = xyes; then
1839
1840    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1841    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
1842      CBC_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1843
1844cat >>confdefs.h <<_ACEOF
1845#define CBC_SVN_REV $CBC_SVN_REV
1846_ACEOF
1847
1848    fi
1849  fi
1850
1851
1852
1853# Capture libtool library version, if given.
1854
1855
1856
1857
1858# Check if user wants to produce debugging code
1859
1860echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1861echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1862
1863# Check whether --enable-debug or --disable-debug was given.
1864if test "${enable_debug+set}" = set; then
1865  enableval="$enable_debug"
1866  case "${enableval}" in
1867   yes) coin_debug_compile=true
1868        if test "${enable_shared+set}" = set; then :; else
1869          enable_shared=no
1870        fi
1871        ;;
1872   no)  coin_debug_compile=false
1873        ;;
1874   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1875echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1876   { (exit 1); exit 1; }; }
1877        ;;
1878esac
1879else
1880  coin_debug_compile=false
1881fi;
1882
1883# Check whether --enable-debug-cbc or --disable-debug-cbc was given.
1884if test "${enable_debug_cbc+set}" = set; then
1885  enableval="$enable_debug_cbc"
1886  case "${enableval}" in
1887    yes) coin_debug_compile=true
1888         ;;
1889    no)  coin_debug_compile=false
1890         ;;
1891    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-cbc" >&5
1892echo "$as_me: error: bad value ${enableval} for --enable-debug-cbc" >&2;}
1893   { (exit 1); exit 1; }; }
1894         ;;
1895 esac
1896else
1897  :
1898fi;
1899
1900 # m4_ifvaln([Cbc],
1901
1902if test $coin_debug_compile = true; then
1903  echo "$as_me:$LINENO: result: yes" >&5
1904echo "${ECHO_T}yes" >&6
1905else
1906  echo "$as_me:$LINENO: result: no" >&5
1907echo "${ECHO_T}no" >&6
1908fi
1909
1910
1911# Check whether --with-cbc-verbosity or --without-cbc-verbosity was given.
1912if test "${with_cbc_verbosity+set}" = set; then
1913  withval="$with_cbc_verbosity"
1914  if test "$withval" = yes; then
1915                withval=1
1916              fi
1917              coin_cbc_verbosity=$withval
1918else
1919  coin_cbc_verbosity=0
1920fi;
1921
1922cat >>confdefs.h <<_ACEOF
1923#define COIN_CBC_VERBOSITY $coin_cbc_verbosity
1924_ACEOF
1925
1926
1927
1928# Check whether --with-cbc-checklevel or --without-cbc-checklevel was given.
1929if test "${with_cbc_checklevel+set}" = set; then
1930  withval="$with_cbc_checklevel"
1931  if test "$withval" = yes; then
1932                withval=1
1933              fi
1934              coin_cbc_checklevel=$withval
1935else
1936  coin_cbc_checklevel=0
1937fi;
1938
1939cat >>confdefs.h <<_ACEOF
1940#define COIN_CBC_CHECKLEVEL $coin_cbc_checklevel
1941_ACEOF
1942
1943
1944 # m4_ifvaln([Cbc],
1945
1946
1947
1948# Get the name of the C++ compiler and appropriate compiler options
1949
1950
1951  # for backward compatibility
1952  # Check whether --enable-doscompile or --disable-doscompile was given.
1953if test "${enable_doscompile+set}" = set; then
1954  enableval="$enable_doscompile"
1955  enable_doscompile=$enableval
1956else
1957  enable_doscompile=no
1958fi;
1959
1960  # Check whether --enable-msvc or --disable-msvc was given.
1961if test "${enable_msvc+set}" = set; then
1962  enableval="$enable_msvc"
1963  enable_msvc=$enableval
1964else
1965  enable_msvc=no
1966     if test "$enable_doscompile" = msvc ; then
1967       enable_msvc=yes
1968     elif test "$enable_doscompile" != no ; then
1969       { { echo "$as_me:$LINENO: error: --enable-doscompile=$enable_doscompile not supported anymore." >&5
1970echo "$as_me: error: --enable-doscompile=$enable_doscompile not supported anymore." >&2;}
1971   { (exit 1); exit 1; }; }
1972     fi
1973
1974fi;
1975
1976  if test "$enable_msvc" = MD; then
1977    enable_shared=yes
1978    enable_msvc=yes
1979  fi
1980
1981  if test "$enable_msvc" = yes; then
1982    case $build in
1983      *-cygwin* | *-mingw*) ;;
1984      *) { { echo "$as_me:$LINENO: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&5
1985echo "$as_me: error: --enable-msvc option makes sense only under Cygwin or MinGW" >&2;}
1986   { (exit 1); exit 1; }; } ;;
1987    esac
1988  fi
1989
1990
1991 case $build in
1992  *-mingw*)
1993    if test "${LD+set}" = set; then :; else
1994      LD=link
1995    fi
1996    ;;
1997 esac
1998 if test $enable_msvc = yes ; then
1999   if test "x${LD+set}" = xset; then :; else
2000     LD=link
2001   fi
2002 fi
2003
2004
2005
2006
2007ac_ext=c
2008ac_cpp='$CPP $CPPFLAGS'
2009ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2010ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2011ac_compiler_gnu=$ac_cv_c_compiler_gnu
2012
2013
2014# For consistency, we set the C compiler to the same value of the C++
2015# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
2016if test x"$CXX" != x; then
2017  case "$CXX" in
2018    clang* ) ;;
2019    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2020      if test x"$CC" = x; then
2021        CC="$CXX"
2022        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
2023echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
2024      fi
2025      ;;
2026  esac
2027fi
2028
2029
2030
2031
2032
2033
2034coin_has_cc=yes
2035
2036save_cflags="$CFLAGS"
2037
2038# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
2039# Depending on the user's PATH, when Studio/Workshop cc is not present we may
2040# find /usr/ucb/cc, which is almost certainly not a good choice for the C
2041# compiler. In this case, put cc after gcc.
2042
2043case $build in
2044  *-cygwin* | *-mingw*)
2045             if test "$enable_msvc" = yes ; then
2046               comps="icl cl gcc"
2047             else
2048               comps="gcc icl cl"
2049             fi ;;
2050  *-*-solaris*)
2051             # Extract the first word of "cc", so it can be a program name with args.
2052set dummy cc; ac_word=$2
2053echo "$as_me:$LINENO: checking for $ac_word" >&5
2054echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2055if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
2056  echo $ECHO_N "(cached) $ECHO_C" >&6
2057else
2058  if test -n "$sol_cc_compiler"; then
2059  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
2060else
2061  ac_prog_rejected=no
2062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2063for as_dir in $PATH
2064do
2065  IFS=$as_save_IFS
2066  test -z "$as_dir" && as_dir=.
2067  for ac_exec_ext in '' $ac_executable_extensions; do
2068  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2069    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2070       ac_prog_rejected=yes
2071       continue
2072     fi
2073    ac_cv_prog_sol_cc_compiler="cc"
2074    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2075    break 2
2076  fi
2077done
2078done
2079
2080if test $ac_prog_rejected = yes; then
2081  # We found a bogon in the path, so make sure we never use it.
2082  set dummy $ac_cv_prog_sol_cc_compiler
2083  shift
2084  if test $# != 0; then
2085    # We chose a different compiler from the bogus one.
2086    # However, it has the same basename, so the bogon will be chosen
2087    # first if we set sol_cc_compiler to just the basename; use the full file name.
2088    shift
2089    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2090  fi
2091fi
2092fi
2093fi
2094sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2095if test -n "$sol_cc_compiler"; then
2096  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2097echo "${ECHO_T}$sol_cc_compiler" >&6
2098else
2099  echo "$as_me:$LINENO: result: no" >&5
2100echo "${ECHO_T}no" >&6
2101fi
2102
2103             if test "$sol_cc_compiler" = "cc" ; then
2104               comps="cc xlc gcc pgcc icc"
2105             else
2106               comps="xlc gcc pgcc icc cc"
2107             fi
2108             ;;
2109  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2110  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2111  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2112esac
2113
2114# We delete the cached value, since the test might not have been
2115# performed with our choice of compilers earlier
2116$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2117# AC_MSG_NOTICE([C compiler candidates: $comps])
2118ac_ext=c
2119ac_cpp='$CPP $CPPFLAGS'
2120ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2121ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2122ac_compiler_gnu=$ac_cv_c_compiler_gnu
2123if test -n "$ac_tool_prefix"; then
2124  for ac_prog in $comps
2125  do
2126    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2127set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2128echo "$as_me:$LINENO: checking for $ac_word" >&5
2129echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2130if test "${ac_cv_prog_CC+set}" = set; then
2131  echo $ECHO_N "(cached) $ECHO_C" >&6
2132else
2133  if test -n "$CC"; then
2134  ac_cv_prog_CC="$CC" # Let the user override the test.
2135else
2136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2137for as_dir in $PATH
2138do
2139  IFS=$as_save_IFS
2140  test -z "$as_dir" && as_dir=.
2141  for ac_exec_ext in '' $ac_executable_extensions; do
2142  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2143    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2144    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2145    break 2
2146  fi
2147done
2148done
2149
2150fi
2151fi
2152CC=$ac_cv_prog_CC
2153if test -n "$CC"; then
2154  echo "$as_me:$LINENO: result: $CC" >&5
2155echo "${ECHO_T}$CC" >&6
2156else
2157  echo "$as_me:$LINENO: result: no" >&5
2158echo "${ECHO_T}no" >&6
2159fi
2160
2161    test -n "$CC" && break
2162  done
2163fi
2164if test -z "$CC"; then
2165  ac_ct_CC=$CC
2166  for ac_prog in $comps
2167do
2168  # Extract the first word of "$ac_prog", so it can be a program name with args.
2169set dummy $ac_prog; ac_word=$2
2170echo "$as_me:$LINENO: checking for $ac_word" >&5
2171echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2172if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2173  echo $ECHO_N "(cached) $ECHO_C" >&6
2174else
2175  if test -n "$ac_ct_CC"; then
2176  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2177else
2178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2179for as_dir in $PATH
2180do
2181  IFS=$as_save_IFS
2182  test -z "$as_dir" && as_dir=.
2183  for ac_exec_ext in '' $ac_executable_extensions; do
2184  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2185    ac_cv_prog_ac_ct_CC="$ac_prog"
2186    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2187    break 2
2188  fi
2189done
2190done
2191
2192fi
2193fi
2194ac_ct_CC=$ac_cv_prog_ac_ct_CC
2195if test -n "$ac_ct_CC"; then
2196  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2197echo "${ECHO_T}$ac_ct_CC" >&6
2198else
2199  echo "$as_me:$LINENO: result: no" >&5
2200echo "${ECHO_T}no" >&6
2201fi
2202
2203  test -n "$ac_ct_CC" && break
2204done
2205
2206  CC=$ac_ct_CC
2207fi
2208
2209
2210test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2211See \`config.log' for more details." >&5
2212echo "$as_me: error: no acceptable C compiler found in \$PATH
2213See \`config.log' for more details." >&2;}
2214   { (exit 1); exit 1; }; }
2215
2216# Provide some information about the compiler.
2217echo "$as_me:$LINENO:" \
2218     "checking for C compiler version" >&5
2219ac_compiler=`set X $ac_compile; echo $2`
2220{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2221  (eval $ac_compiler --version </dev/null >&5) 2>&5
2222  ac_status=$?
2223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224  (exit $ac_status); }
2225{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2226  (eval $ac_compiler -v </dev/null >&5) 2>&5
2227  ac_status=$?
2228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229  (exit $ac_status); }
2230{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2231  (eval $ac_compiler -V </dev/null >&5) 2>&5
2232  ac_status=$?
2233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234  (exit $ac_status); }
2235
2236cat >conftest.$ac_ext <<_ACEOF
2237/* confdefs.h.  */
2238_ACEOF
2239cat confdefs.h >>conftest.$ac_ext
2240cat >>conftest.$ac_ext <<_ACEOF
2241/* end confdefs.h.  */
2242
2243int
2244main ()
2245{
2246
2247  ;
2248  return 0;
2249}
2250_ACEOF
2251ac_clean_files_save=$ac_clean_files
2252ac_clean_files="$ac_clean_files a.out a.exe b.out"
2253# Try to create an executable without -o first, disregard a.out.
2254# It will help us diagnose broken compilers, and finding out an intuition
2255# of exeext.
2256echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2257echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2258ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2259if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2260  (eval $ac_link_default) 2>&5
2261  ac_status=$?
2262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263  (exit $ac_status); }; then
2264  # Find the output, starting from the most likely.  This scheme is
2265# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2266# resort.
2267
2268# Be careful to initialize this variable, since it used to be cached.
2269# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2270ac_cv_exeext=
2271# b.out is created by i960 compilers.
2272for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2273do
2274  test -f "$ac_file" || continue
2275  case $ac_file in
2276    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2277        ;;
2278    conftest.$ac_ext )
2279        # This is the source file.
2280        ;;
2281    [ab].out )
2282        # We found the default executable, but exeext='' is most
2283        # certainly right.
2284        break;;
2285    *.* )
2286        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2287        # FIXME: I believe we export ac_cv_exeext for Libtool,
2288        # but it would be cool to find out if it's true.  Does anybody
2289        # maintain Libtool? --akim.
2290        export ac_cv_exeext
2291        break;;
2292    * )
2293        break;;
2294  esac
2295done
2296else
2297  echo "$as_me: failed program was:" >&5
2298sed 's/^/| /' conftest.$ac_ext >&5
2299
2300{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2301See \`config.log' for more details." >&5
2302echo "$as_me: error: C compiler cannot create executables
2303See \`config.log' for more details." >&2;}
2304   { (exit 77); exit 77; }; }
2305fi
2306
2307ac_exeext=$ac_cv_exeext
2308echo "$as_me:$LINENO: result: $ac_file" >&5
2309echo "${ECHO_T}$ac_file" >&6
2310
2311# Check the compiler produces executables we can run.  If not, either
2312# the compiler is broken, or we cross compile.
2313echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2314echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2315# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2316# If not cross compiling, check that we can run a simple program.
2317if test "$cross_compiling" != yes; then
2318  if { ac_try='./$ac_file'
2319  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2320  (eval $ac_try) 2>&5
2321  ac_status=$?
2322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323  (exit $ac_status); }; }; then
2324    cross_compiling=no
2325  else
2326    if test "$cross_compiling" = maybe; then
2327        cross_compiling=yes
2328    else
2329        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2330If you meant to cross compile, use \`--host'.
2331See \`config.log' for more details." >&5
2332echo "$as_me: error: cannot run C compiled programs.
2333If you meant to cross compile, use \`--host'.
2334See \`config.log' for more details." >&2;}
2335   { (exit 1); exit 1; }; }
2336    fi
2337  fi
2338fi
2339echo "$as_me:$LINENO: result: yes" >&5
2340echo "${ECHO_T}yes" >&6
2341
2342rm -f a.out a.exe conftest$ac_cv_exeext b.out
2343ac_clean_files=$ac_clean_files_save
2344# Check the compiler produces executables we can run.  If not, either
2345# the compiler is broken, or we cross compile.
2346echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2347echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2348echo "$as_me:$LINENO: result: $cross_compiling" >&5
2349echo "${ECHO_T}$cross_compiling" >&6
2350
2351echo "$as_me:$LINENO: checking for suffix of executables" >&5
2352echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2353if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2354  (eval $ac_link) 2>&5
2355  ac_status=$?
2356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357  (exit $ac_status); }; then
2358  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2359# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2360# work properly (i.e., refer to `conftest.exe'), while it won't with
2361# `rm'.
2362for ac_file in conftest.exe conftest conftest.*; do
2363  test -f "$ac_file" || continue
2364  case $ac_file in
2365    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2366    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2367          export ac_cv_exeext
2368          break;;
2369    * ) break;;
2370  esac
2371done
2372else
2373  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2374See \`config.log' for more details." >&5
2375echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2376See \`config.log' for more details." >&2;}
2377   { (exit 1); exit 1; }; }
2378fi
2379
2380rm -f conftest$ac_cv_exeext
2381echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2382echo "${ECHO_T}$ac_cv_exeext" >&6
2383
2384rm -f conftest.$ac_ext
2385EXEEXT=$ac_cv_exeext
2386ac_exeext=$EXEEXT
2387echo "$as_me:$LINENO: checking for suffix of object files" >&5
2388echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2389if test "${ac_cv_objext+set}" = set; then
2390  echo $ECHO_N "(cached) $ECHO_C" >&6
2391else
2392  cat >conftest.$ac_ext <<_ACEOF
2393/* confdefs.h.  */
2394_ACEOF
2395cat confdefs.h >>conftest.$ac_ext
2396cat >>conftest.$ac_ext <<_ACEOF
2397/* end confdefs.h.  */
2398
2399int
2400main ()
2401{
2402
2403  ;
2404  return 0;
2405}
2406_ACEOF
2407rm -f conftest.o conftest.obj
2408if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2409  (eval $ac_compile) 2>&5
2410  ac_status=$?
2411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412  (exit $ac_status); }; then
2413  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2414  case $ac_file in
2415    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2416    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2417       break;;
2418  esac
2419done
2420else
2421  echo "$as_me: failed program was:" >&5
2422sed 's/^/| /' conftest.$ac_ext >&5
2423
2424{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2425See \`config.log' for more details." >&5
2426echo "$as_me: error: cannot compute suffix of object files: cannot compile
2427See \`config.log' for more details." >&2;}
2428   { (exit 1); exit 1; }; }
2429fi
2430
2431rm -f conftest.$ac_cv_objext conftest.$ac_ext
2432fi
2433echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2434echo "${ECHO_T}$ac_cv_objext" >&6
2435OBJEXT=$ac_cv_objext
2436ac_objext=$OBJEXT
2437echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2438echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2439if test "${ac_cv_c_compiler_gnu+set}" = set; then
2440  echo $ECHO_N "(cached) $ECHO_C" >&6
2441else
2442  cat >conftest.$ac_ext <<_ACEOF
2443/* confdefs.h.  */
2444_ACEOF
2445cat confdefs.h >>conftest.$ac_ext
2446cat >>conftest.$ac_ext <<_ACEOF
2447/* end confdefs.h.  */
2448
2449int
2450main ()
2451{
2452#ifndef __GNUC__
2453       choke me
2454#endif
2455
2456  ;
2457  return 0;
2458}
2459_ACEOF
2460rm -f conftest.$ac_objext
2461if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2462  (eval $ac_compile) 2>conftest.er1
2463  ac_status=$?
2464  grep -v '^ *+' conftest.er1 >conftest.err
2465  rm -f conftest.er1
2466  cat conftest.err >&5
2467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468  (exit $ac_status); } &&
2469         { ac_try='test -z "$ac_c_werror_flag"
2470                         || test ! -s conftest.err'
2471  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2472  (eval $ac_try) 2>&5
2473  ac_status=$?
2474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475  (exit $ac_status); }; } &&
2476         { ac_try='test -s conftest.$ac_objext'
2477  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2478  (eval $ac_try) 2>&5
2479  ac_status=$?
2480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481  (exit $ac_status); }; }; then
2482  ac_compiler_gnu=yes
2483else
2484  echo "$as_me: failed program was:" >&5
2485sed 's/^/| /' conftest.$ac_ext >&5
2486
2487ac_compiler_gnu=no
2488fi
2489rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2490ac_cv_c_compiler_gnu=$ac_compiler_gnu
2491
2492fi
2493echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2494echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2495GCC=`test $ac_compiler_gnu = yes && echo yes`
2496ac_test_CFLAGS=${CFLAGS+set}
2497ac_save_CFLAGS=$CFLAGS
2498CFLAGS="-g"
2499echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2500echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2501if test "${ac_cv_prog_cc_g+set}" = set; then
2502  echo $ECHO_N "(cached) $ECHO_C" >&6
2503else
2504  cat >conftest.$ac_ext <<_ACEOF
2505/* confdefs.h.  */
2506_ACEOF
2507cat confdefs.h >>conftest.$ac_ext
2508cat >>conftest.$ac_ext <<_ACEOF
2509/* end confdefs.h.  */
2510
2511int
2512main ()
2513{
2514
2515  ;
2516  return 0;
2517}
2518_ACEOF
2519rm -f conftest.$ac_objext
2520if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2521  (eval $ac_compile) 2>conftest.er1
2522  ac_status=$?
2523  grep -v '^ *+' conftest.er1 >conftest.err
2524  rm -f conftest.er1
2525  cat conftest.err >&5
2526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527  (exit $ac_status); } &&
2528         { ac_try='test -z "$ac_c_werror_flag"
2529                         || test ! -s conftest.err'
2530  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2531  (eval $ac_try) 2>&5
2532  ac_status=$?
2533  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534  (exit $ac_status); }; } &&
2535         { ac_try='test -s conftest.$ac_objext'
2536  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2537  (eval $ac_try) 2>&5
2538  ac_status=$?
2539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540  (exit $ac_status); }; }; then
2541  ac_cv_prog_cc_g=yes
2542else
2543  echo "$as_me: failed program was:" >&5
2544sed 's/^/| /' conftest.$ac_ext >&5
2545
2546ac_cv_prog_cc_g=no
2547fi
2548rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2549fi
2550echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2551echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2552if test "$ac_test_CFLAGS" = set; then
2553  CFLAGS=$ac_save_CFLAGS
2554elif test $ac_cv_prog_cc_g = yes; then
2555  if test "$GCC" = yes; then
2556    CFLAGS="-g -O2"
2557  else
2558    CFLAGS="-g"
2559  fi
2560else
2561  if test "$GCC" = yes; then
2562    CFLAGS="-O2"
2563  else
2564    CFLAGS=
2565  fi
2566fi
2567echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2568echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2569if test "${ac_cv_prog_cc_stdc+set}" = set; then
2570  echo $ECHO_N "(cached) $ECHO_C" >&6
2571else
2572  ac_cv_prog_cc_stdc=no
2573ac_save_CC=$CC
2574cat >conftest.$ac_ext <<_ACEOF
2575/* confdefs.h.  */
2576_ACEOF
2577cat confdefs.h >>conftest.$ac_ext
2578cat >>conftest.$ac_ext <<_ACEOF
2579/* end confdefs.h.  */
2580#include <stdarg.h>
2581#include <stdio.h>
2582#include <sys/types.h>
2583#include <sys/stat.h>
2584/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2585struct buf { int x; };
2586FILE * (*rcsopen) (struct buf *, struct stat *, int);
2587static char *e (p, i)
2588     char **p;
2589     int i;
2590{
2591  return p[i];
2592}
2593static char *f (char * (*g) (char **, int), char **p, ...)
2594{
2595  char *s;
2596  va_list v;
2597  va_start (v,p);
2598  s = g (p, va_arg (v,int));
2599  va_end (v);
2600  return s;
2601}
2602
2603/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2604   function prototypes and stuff, but not '\xHH' hex character constants.
2605   These don't provoke an error unfortunately, instead are silently treated
2606   as 'x'.  The following induces an error, until -std1 is added to get
2607   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2608   array size at least.  It's necessary to write '\x00'==0 to get something
2609   that's true only with -std1.  */
2610int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2611
2612int test (int i, double x);
2613struct s1 {int (*f) (int a);};
2614struct s2 {int (*f) (double a);};
2615int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2616int argc;
2617char **argv;
2618int
2619main ()
2620{
2621return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2622  ;
2623  return 0;
2624}
2625_ACEOF
2626# Don't try gcc -ansi; that turns off useful extensions and
2627# breaks some systems' header files.
2628# AIX                   -qlanglvl=ansi
2629# Ultrix and OSF/1      -std1
2630# HP-UX 10.20 and later -Ae
2631# HP-UX older versions  -Aa -D_HPUX_SOURCE
2632# SVR4                  -Xc -D__EXTENSIONS__
2633for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2634do
2635  CC="$ac_save_CC $ac_arg"
2636  rm -f conftest.$ac_objext
2637if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2638  (eval $ac_compile) 2>conftest.er1
2639  ac_status=$?
2640  grep -v '^ *+' conftest.er1 >conftest.err
2641  rm -f conftest.er1
2642  cat conftest.err >&5
2643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644  (exit $ac_status); } &&
2645         { ac_try='test -z "$ac_c_werror_flag"
2646                         || test ! -s conftest.err'
2647  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2648  (eval $ac_try) 2>&5
2649  ac_status=$?
2650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651  (exit $ac_status); }; } &&
2652         { ac_try='test -s conftest.$ac_objext'
2653  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2654  (eval $ac_try) 2>&5
2655  ac_status=$?
2656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657  (exit $ac_status); }; }; then
2658  ac_cv_prog_cc_stdc=$ac_arg
2659break
2660else
2661  echo "$as_me: failed program was:" >&5
2662sed 's/^/| /' conftest.$ac_ext >&5
2663
2664fi
2665rm -f conftest.err conftest.$ac_objext
2666done
2667rm -f conftest.$ac_ext conftest.$ac_objext
2668CC=$ac_save_CC
2669
2670fi
2671
2672case "x$ac_cv_prog_cc_stdc" in
2673  x|xno)
2674    echo "$as_me:$LINENO: result: none needed" >&5
2675echo "${ECHO_T}none needed" >&6 ;;
2676  *)
2677    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2678echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2679    CC="$CC $ac_cv_prog_cc_stdc" ;;
2680esac
2681
2682# Some people use a C++ compiler to compile C.  Since we use `exit',
2683# in C++ we need to declare it.  In case someone uses the same compiler
2684# for both compiling C and C++ we need to have the C++ compiler decide
2685# the declaration of exit, since it's the most demanding environment.
2686cat >conftest.$ac_ext <<_ACEOF
2687#ifndef __cplusplus
2688  choke me
2689#endif
2690_ACEOF
2691rm -f conftest.$ac_objext
2692if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2693  (eval $ac_compile) 2>conftest.er1
2694  ac_status=$?
2695  grep -v '^ *+' conftest.er1 >conftest.err
2696  rm -f conftest.er1
2697  cat conftest.err >&5
2698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699  (exit $ac_status); } &&
2700         { ac_try='test -z "$ac_c_werror_flag"
2701                         || test ! -s conftest.err'
2702  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2703  (eval $ac_try) 2>&5
2704  ac_status=$?
2705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706  (exit $ac_status); }; } &&
2707         { ac_try='test -s conftest.$ac_objext'
2708  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2709  (eval $ac_try) 2>&5
2710  ac_status=$?
2711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712  (exit $ac_status); }; }; then
2713  for ac_declaration in \
2714   '' \
2715   'extern "C" void std::exit (int) throw (); using std::exit;' \
2716   'extern "C" void std::exit (int); using std::exit;' \
2717   'extern "C" void exit (int) throw ();' \
2718   'extern "C" void exit (int);' \
2719   'void exit (int);'
2720do
2721  cat >conftest.$ac_ext <<_ACEOF
2722/* confdefs.h.  */
2723_ACEOF
2724cat confdefs.h >>conftest.$ac_ext
2725cat >>conftest.$ac_ext <<_ACEOF
2726/* end confdefs.h.  */
2727$ac_declaration
2728#include <stdlib.h>
2729int
2730main ()
2731{
2732exit (42);
2733  ;
2734  return 0;
2735}
2736_ACEOF
2737rm -f conftest.$ac_objext
2738if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2739  (eval $ac_compile) 2>conftest.er1
2740  ac_status=$?
2741  grep -v '^ *+' conftest.er1 >conftest.err
2742  rm -f conftest.er1
2743  cat conftest.err >&5
2744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745  (exit $ac_status); } &&
2746         { ac_try='test -z "$ac_c_werror_flag"
2747                         || test ! -s conftest.err'
2748  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2749  (eval $ac_try) 2>&5
2750  ac_status=$?
2751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752  (exit $ac_status); }; } &&
2753         { ac_try='test -s conftest.$ac_objext'
2754  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2755  (eval $ac_try) 2>&5
2756  ac_status=$?
2757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758  (exit $ac_status); }; }; then
2759  :
2760else
2761  echo "$as_me: failed program was:" >&5
2762sed 's/^/| /' conftest.$ac_ext >&5
2763
2764continue
2765fi
2766rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2767  cat >conftest.$ac_ext <<_ACEOF
2768/* confdefs.h.  */
2769_ACEOF
2770cat confdefs.h >>conftest.$ac_ext
2771cat >>conftest.$ac_ext <<_ACEOF
2772/* end confdefs.h.  */
2773$ac_declaration
2774int
2775main ()
2776{
2777exit (42);
2778  ;
2779  return 0;
2780}
2781_ACEOF
2782rm -f conftest.$ac_objext
2783if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2784  (eval $ac_compile) 2>conftest.er1
2785  ac_status=$?
2786  grep -v '^ *+' conftest.er1 >conftest.err
2787  rm -f conftest.er1
2788  cat conftest.err >&5
2789  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790  (exit $ac_status); } &&
2791         { ac_try='test -z "$ac_c_werror_flag"
2792                         || test ! -s conftest.err'
2793  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2794  (eval $ac_try) 2>&5
2795  ac_status=$?
2796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797  (exit $ac_status); }; } &&
2798         { ac_try='test -s conftest.$ac_objext'
2799  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2800  (eval $ac_try) 2>&5
2801  ac_status=$?
2802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803  (exit $ac_status); }; }; then
2804  break
2805else
2806  echo "$as_me: failed program was:" >&5
2807sed 's/^/| /' conftest.$ac_ext >&5
2808
2809fi
2810rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2811done
2812rm -f conftest*
2813if test -n "$ac_declaration"; then
2814  echo '#ifdef __cplusplus' >>confdefs.h
2815  echo $ac_declaration      >>confdefs.h
2816  echo '#endif'             >>confdefs.h
2817fi
2818
2819else
2820  echo "$as_me: failed program was:" >&5
2821sed 's/^/| /' conftest.$ac_ext >&5
2822
2823fi
2824rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2825ac_ext=c
2826ac_cpp='$CPP $CPPFLAGS'
2827ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2828ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2829ac_compiler_gnu=$ac_cv_c_compiler_gnu
2830
2831if test -z "$CC" ; then
2832  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2833echo "$as_me: error: Failed to find a C compiler!" >&2;}
2834   { (exit 1); exit 1; }; }
2835fi
2836# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2837case "$CC" in
2838  clang* ) ;;
2839  cl* | */cl* | CL* | */CL* )
2840    if test "$ac_cv_prog_cc_g" = yes ; then
2841      ac_cv_prog_cc_g=no
2842      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2843echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2844    fi ;;
2845  * )
2846    if test x"$CYGPATH_W" = x ; then
2847      CYGPATH_W=echo
2848    fi
2849    ;;
2850esac
2851CFLAGS="$save_cflags"
2852
2853# add automake conditional so we can recognize cl compiler in makefile
2854coin_cc_is_cl=false
2855case "$CC" in
2856  clang* ) ;;
2857  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2858    coin_cc_is_cl=true
2859    ;;
2860esac
2861
2862
2863if test $coin_cc_is_cl = true; then
2864  COIN_CC_IS_CL_TRUE=
2865  COIN_CC_IS_CL_FALSE='#'
2866else
2867  COIN_CC_IS_CL_TRUE='#'
2868  COIN_CC_IS_CL_FALSE=
2869fi
2870
2871
2872# Check if a project specific CFLAGS variable has been set
2873if test x$COIN_PRJCT != x; then
2874  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2875  if test x$coin_tmp = xset; then
2876    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2877  fi
2878fi
2879
2880if test x"$CFLAGS" = x; then
2881
2882  coin_add_cflags=
2883  coin_opt_cflags=
2884  coin_dbg_cflags=
2885  coin_warn_cflags=
2886
2887  if test "$GCC" = "yes"; then
2888    case "$CC" in
2889      icc* | */icc*)
2890        ;;
2891      *)
2892        coin_opt_cflags="-O3"
2893        coin_add_cflags="-pipe"
2894        coin_dbg_cflags="-g -O0"
2895        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2896        case $build in
2897          *-darwin*)
2898            ;;
2899          *)
2900            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2901            ;;
2902        esac
2903    esac
2904  fi
2905  if test -z "$coin_opt_cflags"; then
2906    case $build in
2907      *-cygwin* | *-mingw*)
2908        case "$CC" in
2909          clang* ) ;;
2910          cl* | */cl* | CL* | */CL*)
2911            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2912              coin_opt_cflags='-MD -O2'
2913              coin_dbg_cflags='-MDd'
2914            else
2915              coin_opt_cflags='-MT -O2'
2916              coin_dbg_cflags='-MTd'
2917            fi
2918            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2919            ;;
2920          icl* | */icl* | ICL* | */ICL*)
2921            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
2922              coin_opt_cflags='-MD -Ox'
2923              coin_dbg_cflags='-MDd -debug'
2924            else
2925              coin_opt_cflags='-MT -Ox'
2926              coin_dbg_cflags='-MTd -debug'
2927            fi
2928            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2929            ;;
2930        esac
2931        ;;
2932      *-linux-*)
2933        case "$CC" in
2934          icc* | */icc*)
2935            coin_opt_cflags="-O3 -ip -mp1"
2936            coin_add_cflags=""
2937            coin_dbg_cflags="-g"
2938            # Check if -i_dynamic is necessary (for new glibc library)
2939            CFLAGS=
2940            cat >conftest.$ac_ext <<_ACEOF
2941/* confdefs.h.  */
2942_ACEOF
2943cat confdefs.h >>conftest.$ac_ext
2944cat >>conftest.$ac_ext <<_ACEOF
2945/* end confdefs.h.  */
2946
2947int
2948main ()
2949{
2950int i=0; i++;
2951  ;
2952  return 0;
2953}
2954_ACEOF
2955rm -f conftest.$ac_objext conftest$ac_exeext
2956if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2957  (eval $ac_link) 2>conftest.er1
2958  ac_status=$?
2959  grep -v '^ *+' conftest.er1 >conftest.err
2960  rm -f conftest.er1
2961  cat conftest.err >&5
2962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963  (exit $ac_status); } &&
2964         { ac_try='test -z "$ac_c_werror_flag"
2965                         || test ! -s conftest.err'
2966  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2967  (eval $ac_try) 2>&5
2968  ac_status=$?
2969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970  (exit $ac_status); }; } &&
2971         { ac_try='test -s conftest$ac_exeext'
2972  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2973  (eval $ac_try) 2>&5
2974  ac_status=$?
2975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976  (exit $ac_status); }; }; then
2977  :
2978else
2979  echo "$as_me: failed program was:" >&5
2980sed 's/^/| /' conftest.$ac_ext >&5
2981
2982coin_add_cflags="-i_dynamic $coin_add_cflags"
2983fi
2984rm -f conftest.err conftest.$ac_objext \
2985      conftest$ac_exeext conftest.$ac_ext
2986            ;;
2987          pgcc* | */pgcc*)
2988            coin_opt_cflags="-fast"
2989            coin_add_cflags="-Kieee -pc 64"
2990            coin_dbg_cflags="-g"
2991            ;;
2992        esac
2993        ;;
2994      *-ibm-*)
2995        case "$CC" in
2996          xlc* | */xlc* | mpxlc* | */mpxlc*)
2997            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2998            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2999            coin_dbg_cflags="-g"
3000          ;;
3001        esac
3002        ;;
3003      *-hp-*)
3004        coin_opt_cflags="-O"
3005        coin_add_cflags="-Ae"
3006        coin_dbg_cflags="-g"
3007        ;;
3008      *-*-solaris*)
3009        coin_opt_cflags="-xO4"
3010        coin_dbg_cflags="-g"
3011        ;;
3012      *-sgi-*)
3013        coin_opt_cflags="-O -OPT:Olimit=0"
3014        coin_dbg_cflags="-g"
3015        ;;
3016    esac
3017  fi
3018
3019  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
3020    coin_dbg_cflags="-g"
3021  fi
3022
3023  if test -z "$coin_opt_cflags"; then
3024    # Try if -O option works if nothing else is set
3025    CFLAGS="-O"
3026    cat >conftest.$ac_ext <<_ACEOF
3027/* confdefs.h.  */
3028_ACEOF
3029cat confdefs.h >>conftest.$ac_ext
3030cat >>conftest.$ac_ext <<_ACEOF
3031/* end confdefs.h.  */
3032
3033int
3034main ()
3035{
3036int i=0; i++;
3037  ;
3038  return 0;
3039}
3040_ACEOF
3041rm -f conftest.$ac_objext conftest$ac_exeext
3042if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3043  (eval $ac_link) 2>conftest.er1
3044  ac_status=$?
3045  grep -v '^ *+' conftest.er1 >conftest.err
3046  rm -f conftest.er1
3047  cat conftest.err >&5
3048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049  (exit $ac_status); } &&
3050         { ac_try='test -z "$ac_c_werror_flag"
3051                         || test ! -s conftest.err'
3052  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3053  (eval $ac_try) 2>&5
3054  ac_status=$?
3055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056  (exit $ac_status); }; } &&
3057         { ac_try='test -s conftest$ac_exeext'
3058  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3059  (eval $ac_try) 2>&5
3060  ac_status=$?
3061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062  (exit $ac_status); }; }; then
3063  coin_opt_cflags="-O"
3064else
3065  echo "$as_me: failed program was:" >&5
3066sed 's/^/| /' conftest.$ac_ext >&5
3067
3068fi
3069rm -f conftest.err conftest.$ac_objext \
3070      conftest$ac_exeext conftest.$ac_ext
3071  fi
3072
3073  # if PM doesn't want the warning messages, take them out
3074  if test x"$coin_skip_warn_cflags" = xyes; then
3075    coin_warn_cflags=
3076  fi
3077
3078  if test x${DBG_CFLAGS+set} != xset; then
3079    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3080  fi
3081  if test x${OPT_CFLAGS+set} != xset; then
3082    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3083  fi
3084
3085  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3086  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3087
3088  if test "$coin_debug_compile" = "true"; then
3089    CFLAGS="$DBG_CFLAGS"
3090  else
3091    CFLAGS="$OPT_CFLAGS"
3092  fi
3093else
3094  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3095  if test x${DBG_CFLAGS+set} != xset; then
3096    DBG_CFLAGS="$CFLAGS"
3097  fi
3098  if test x${OPT_CFLAGS+set} != xset; then
3099    OPT_CFLAGS="$CFLAGS"
3100  fi
3101fi
3102
3103# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3104if test x$COIN_PRJCT != x; then
3105  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3106fi
3107
3108# Try if CFLAGS works
3109save_CFLAGS="$CFLAGS"
3110cat >conftest.$ac_ext <<_ACEOF
3111/* confdefs.h.  */
3112_ACEOF
3113cat confdefs.h >>conftest.$ac_ext
3114cat >>conftest.$ac_ext <<_ACEOF
3115/* end confdefs.h.  */
3116
3117int
3118main ()
3119{
3120int i=0; i++;
3121  ;
3122  return 0;
3123}
3124_ACEOF
3125rm -f conftest.$ac_objext conftest$ac_exeext
3126if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3127  (eval $ac_link) 2>conftest.er1
3128  ac_status=$?
3129  grep -v '^ *+' conftest.er1 >conftest.err
3130  rm -f conftest.er1
3131  cat conftest.err >&5
3132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133  (exit $ac_status); } &&
3134         { ac_try='test -z "$ac_c_werror_flag"
3135                         || test ! -s conftest.err'
3136  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3137  (eval $ac_try) 2>&5
3138  ac_status=$?
3139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140  (exit $ac_status); }; } &&
3141         { ac_try='test -s conftest$ac_exeext'
3142  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3143  (eval $ac_try) 2>&5
3144  ac_status=$?
3145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146  (exit $ac_status); }; }; then
3147  :
3148else
3149  echo "$as_me: failed program was:" >&5
3150sed 's/^/| /' conftest.$ac_ext >&5
3151
3152CFLAGS=
3153fi
3154rm -f conftest.err conftest.$ac_objext \
3155      conftest$ac_exeext conftest.$ac_ext
3156if test -z "$CFLAGS"; then
3157  { 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
3158echo "$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;}
3159  CFLAGS='-O'
3160  cat >conftest.$ac_ext <<_ACEOF
3161/* confdefs.h.  */
3162_ACEOF
3163cat confdefs.h >>conftest.$ac_ext
3164cat >>conftest.$ac_ext <<_ACEOF
3165/* end confdefs.h.  */
3166
3167int
3168main ()
3169{
3170int i=0; i++;
3171  ;
3172  return 0;
3173}
3174_ACEOF
3175rm -f conftest.$ac_objext conftest$ac_exeext
3176if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3177  (eval $ac_link) 2>conftest.er1
3178  ac_status=$?
3179  grep -v '^ *+' conftest.er1 >conftest.err
3180  rm -f conftest.er1
3181  cat conftest.err >&5
3182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183  (exit $ac_status); } &&
3184         { ac_try='test -z "$ac_c_werror_flag"
3185                         || test ! -s conftest.err'
3186  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3187  (eval $ac_try) 2>&5
3188  ac_status=$?
3189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190  (exit $ac_status); }; } &&
3191         { ac_try='test -s conftest$ac_exeext'
3192  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3193  (eval $ac_try) 2>&5
3194  ac_status=$?
3195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196  (exit $ac_status); }; }; then
3197  :
3198else
3199  echo "$as_me: failed program was:" >&5
3200sed 's/^/| /' conftest.$ac_ext >&5
3201
3202CFLAGS=
3203fi
3204rm -f conftest.err conftest.$ac_objext \
3205      conftest$ac_exeext conftest.$ac_ext
3206  if test -z "$CFLAGS"; then
3207    { 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
3208echo "$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;}
3209  fi
3210fi
3211
3212{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3213echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3214
3215
3216if test x"$MPICC" = x; then :; else
3217  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3218echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3219  CC="$MPICC"
3220fi
3221
3222# Correct the LD variable if we are using the MS or Intel-windows compiler
3223case "$CC" in
3224  clang* ) ;;
3225  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3226
3227 case $build in
3228  *-mingw*)
3229    if test "${LD+set}" = set; then :; else
3230      LD=link
3231    fi
3232    ;;
3233 esac
3234 if test $enable_msvc = yes ; then
3235   if test "x${LD+set}" = xset; then :; else
3236     LD=link
3237   fi
3238 fi
3239
3240    ;;
3241esac
3242
3243ac_ext=c
3244ac_cpp='$CPP $CPPFLAGS'
3245ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3246ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3247ac_compiler_gnu=$ac_cv_c_compiler_gnu
3248
3249
3250
3251 #Let's try if that overcomes configuration problem with VC++ 6.0
3252
3253ac_ext=cc
3254ac_cpp='$CXXCPP $CPPFLAGS'
3255ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3256ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3257ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3258
3259
3260
3261
3262
3263
3264
3265coin_has_cxx=yes
3266
3267save_cxxflags="$CXXFLAGS"
3268# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3269case $build in
3270  *-cygwin* | *-mingw*)
3271      if test "$enable_msvc" = yes ; then
3272         comps="icl cl g++"
3273      else
3274         comps="g++ icl cl"
3275      fi ;;
3276  *-*-solaris*)
3277             comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3278  *-darwin*) comps="g++ c++ CC" ;;
3279  *-linux-gnu*)
3280             comps="g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC xlC_r aCC CC" ;;
3281          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3282esac
3283
3284# We delete the cached value, since the test might not have been
3285# performed with our choice of compilers earlier
3286$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3287# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3288ac_ext=cc
3289ac_cpp='$CXXCPP $CPPFLAGS'
3290ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3291ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3292ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3293if test -n "$ac_tool_prefix"; then
3294  for ac_prog in $CCC $comps
3295  do
3296    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3297set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3298echo "$as_me:$LINENO: checking for $ac_word" >&5
3299echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3300if test "${ac_cv_prog_CXX+set}" = set; then
3301  echo $ECHO_N "(cached) $ECHO_C" >&6
3302else
3303  if test -n "$CXX"; then
3304  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3305else
3306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3307for as_dir in $PATH
3308do
3309  IFS=$as_save_IFS
3310  test -z "$as_dir" && as_dir=.
3311  for ac_exec_ext in '' $ac_executable_extensions; do
3312  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3313    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3314    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3315    break 2
3316  fi
3317done
3318done
3319
3320fi
3321fi
3322CXX=$ac_cv_prog_CXX
3323if test -n "$CXX"; then
3324  echo "$as_me:$LINENO: result: $CXX" >&5
3325echo "${ECHO_T}$CXX" >&6
3326else
3327  echo "$as_me:$LINENO: result: no" >&5
3328echo "${ECHO_T}no" >&6
3329fi
3330
3331    test -n "$CXX" && break
3332  done
3333fi
3334if test -z "$CXX"; then
3335  ac_ct_CXX=$CXX
3336  for ac_prog in $CCC $comps
3337do
3338  # Extract the first word of "$ac_prog", so it can be a program name with args.
3339set dummy $ac_prog; ac_word=$2
3340echo "$as_me:$LINENO: checking for $ac_word" >&5
3341echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3342if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3343  echo $ECHO_N "(cached) $ECHO_C" >&6
3344else
3345  if test -n "$ac_ct_CXX"; then
3346  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3347else
3348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3349for as_dir in $PATH
3350do
3351  IFS=$as_save_IFS
3352  test -z "$as_dir" && as_dir=.
3353  for ac_exec_ext in '' $ac_executable_extensions; do
3354  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3355    ac_cv_prog_ac_ct_CXX="$ac_prog"
3356    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3357    break 2
3358  fi
3359done
3360done
3361
3362fi
3363fi
3364ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3365if test -n "$ac_ct_CXX"; then
3366  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3367echo "${ECHO_T}$ac_ct_CXX" >&6
3368else
3369  echo "$as_me:$LINENO: result: no" >&5
3370echo "${ECHO_T}no" >&6
3371fi
3372
3373  test -n "$ac_ct_CXX" && break
3374done
3375test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3376
3377  CXX=$ac_ct_CXX
3378fi
3379
3380
3381# Provide some information about the compiler.
3382echo "$as_me:$LINENO:" \
3383     "checking for C++ compiler version" >&5
3384ac_compiler=`set X $ac_compile; echo $2`
3385{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3386  (eval $ac_compiler --version </dev/null >&5) 2>&5
3387  ac_status=$?
3388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389  (exit $ac_status); }
3390{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3391  (eval $ac_compiler -v </dev/null >&5) 2>&5
3392  ac_status=$?
3393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394  (exit $ac_status); }
3395{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3396  (eval $ac_compiler -V </dev/null >&5) 2>&5
3397  ac_status=$?
3398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399  (exit $ac_status); }
3400
3401echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3402echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3403if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3404  echo $ECHO_N "(cached) $ECHO_C" >&6
3405else
3406  cat >conftest.$ac_ext <<_ACEOF
3407/* confdefs.h.  */
3408_ACEOF
3409cat confdefs.h >>conftest.$ac_ext
3410cat >>conftest.$ac_ext <<_ACEOF
3411/* end confdefs.h.  */
3412
3413int
3414main ()
3415{
3416#ifndef __GNUC__
3417       choke me
3418#endif
3419
3420  ;
3421  return 0;
3422}
3423_ACEOF
3424rm -f conftest.$ac_objext
3425if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3426  (eval $ac_compile) 2>conftest.er1
3427  ac_status=$?
3428  grep -v '^ *+' conftest.er1 >conftest.err
3429  rm -f conftest.er1
3430  cat conftest.err >&5
3431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432  (exit $ac_status); } &&
3433         { ac_try='test -z "$ac_cxx_werror_flag"
3434                         || test ! -s conftest.err'
3435  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3436  (eval $ac_try) 2>&5
3437  ac_status=$?
3438  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439  (exit $ac_status); }; } &&
3440         { ac_try='test -s conftest.$ac_objext'
3441  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3442  (eval $ac_try) 2>&5
3443  ac_status=$?
3444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445  (exit $ac_status); }; }; then
3446  ac_compiler_gnu=yes
3447else
3448  echo "$as_me: failed program was:" >&5
3449sed 's/^/| /' conftest.$ac_ext >&5
3450
3451ac_compiler_gnu=no
3452fi
3453rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3454ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3455
3456fi
3457echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3458echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3459GXX=`test $ac_compiler_gnu = yes && echo yes`
3460ac_test_CXXFLAGS=${CXXFLAGS+set}
3461ac_save_CXXFLAGS=$CXXFLAGS
3462CXXFLAGS="-g"
3463echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3464echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3465if test "${ac_cv_prog_cxx_g+set}" = set; then
3466  echo $ECHO_N "(cached) $ECHO_C" >&6
3467else
3468  cat >conftest.$ac_ext <<_ACEOF
3469/* confdefs.h.  */
3470_ACEOF
3471cat confdefs.h >>conftest.$ac_ext
3472cat >>conftest.$ac_ext <<_ACEOF
3473/* end confdefs.h.  */
3474
3475int
3476main ()
3477{
3478
3479  ;
3480  return 0;
3481}
3482_ACEOF
3483rm -f conftest.$ac_objext
3484if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3485  (eval $ac_compile) 2>conftest.er1
3486  ac_status=$?
3487  grep -v '^ *+' conftest.er1 >conftest.err
3488  rm -f conftest.er1
3489  cat conftest.err >&5
3490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491  (exit $ac_status); } &&
3492         { ac_try='test -z "$ac_cxx_werror_flag"
3493                         || test ! -s conftest.err'
3494  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3495  (eval $ac_try) 2>&5
3496  ac_status=$?
3497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498  (exit $ac_status); }; } &&
3499         { ac_try='test -s conftest.$ac_objext'
3500  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3501  (eval $ac_try) 2>&5
3502  ac_status=$?
3503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504  (exit $ac_status); }; }; then
3505  ac_cv_prog_cxx_g=yes
3506else
3507  echo "$as_me: failed program was:" >&5
3508sed 's/^/| /' conftest.$ac_ext >&5
3509
3510ac_cv_prog_cxx_g=no
3511fi
3512rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3513fi
3514echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3515echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3516if test "$ac_test_CXXFLAGS" = set; then
3517  CXXFLAGS=$ac_save_CXXFLAGS
3518elif test $ac_cv_prog_cxx_g = yes; then
3519  if test "$GXX" = yes; then
3520    CXXFLAGS="-g -O2"
3521  else
3522    CXXFLAGS="-g"
3523  fi
3524else
3525  if test "$GXX" = yes; then
3526    CXXFLAGS="-O2"
3527  else
3528    CXXFLAGS=
3529  fi
3530fi
3531for ac_declaration in \
3532   '' \
3533   'extern "C" void std::exit (int) throw (); using std::exit;' \
3534   'extern "C" void std::exit (int); using std::exit;' \
3535   'extern "C" void exit (int) throw ();' \
3536   'extern "C" void exit (int);' \
3537   'void exit (int);'
3538do
3539  cat >conftest.$ac_ext <<_ACEOF
3540/* confdefs.h.  */
3541_ACEOF
3542cat confdefs.h >>conftest.$ac_ext
3543cat >>conftest.$ac_ext <<_ACEOF
3544/* end confdefs.h.  */
3545$ac_declaration
3546#include <stdlib.h>
3547int
3548main ()
3549{
3550exit (42);
3551  ;
3552  return 0;
3553}
3554_ACEOF
3555rm -f conftest.$ac_objext
3556if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3557  (eval $ac_compile) 2>conftest.er1
3558  ac_status=$?
3559  grep -v '^ *+' conftest.er1 >conftest.err
3560  rm -f conftest.er1
3561  cat conftest.err >&5
3562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563  (exit $ac_status); } &&
3564         { ac_try='test -z "$ac_cxx_werror_flag"
3565                         || test ! -s conftest.err'
3566  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3567  (eval $ac_try) 2>&5
3568  ac_status=$?
3569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570  (exit $ac_status); }; } &&
3571         { ac_try='test -s conftest.$ac_objext'
3572  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3573  (eval $ac_try) 2>&5
3574  ac_status=$?
3575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3576  (exit $ac_status); }; }; then
3577  :
3578else
3579  echo "$as_me: failed program was:" >&5
3580sed 's/^/| /' conftest.$ac_ext >&5
3581
3582continue
3583fi
3584rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3585  cat >conftest.$ac_ext <<_ACEOF
3586/* confdefs.h.  */
3587_ACEOF
3588cat confdefs.h >>conftest.$ac_ext
3589cat >>conftest.$ac_ext <<_ACEOF
3590/* end confdefs.h.  */
3591$ac_declaration
3592int
3593main ()
3594{
3595exit (42);
3596  ;
3597  return 0;
3598}
3599_ACEOF
3600rm -f conftest.$ac_objext
3601if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3602  (eval $ac_compile) 2>conftest.er1
3603  ac_status=$?
3604  grep -v '^ *+' conftest.er1 >conftest.err
3605  rm -f conftest.er1
3606  cat conftest.err >&5
3607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608  (exit $ac_status); } &&
3609         { ac_try='test -z "$ac_cxx_werror_flag"
3610                         || test ! -s conftest.err'
3611  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3612  (eval $ac_try) 2>&5
3613  ac_status=$?
3614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615  (exit $ac_status); }; } &&
3616         { ac_try='test -s conftest.$ac_objext'
3617  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3618  (eval $ac_try) 2>&5
3619  ac_status=$?
3620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621  (exit $ac_status); }; }; then
3622  break
3623else
3624  echo "$as_me: failed program was:" >&5
3625sed 's/^/| /' conftest.$ac_ext >&5
3626
3627fi
3628rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3629done
3630rm -f conftest*
3631if test -n "$ac_declaration"; then
3632  echo '#ifdef __cplusplus' >>confdefs.h
3633  echo $ac_declaration      >>confdefs.h
3634  echo '#endif'             >>confdefs.h
3635fi
3636
3637ac_ext=cc
3638ac_cpp='$CXXCPP $CPPFLAGS'
3639ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3640ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3641ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3642
3643
3644#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3645#thus, we test here whether $CXX is actually working
3646ac_ext=cc
3647ac_cpp='$CXXCPP $CPPFLAGS'
3648ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3649ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3650ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3651
3652echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3653echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3654cat >conftest.$ac_ext <<_ACEOF
3655/* confdefs.h.  */
3656_ACEOF
3657cat confdefs.h >>conftest.$ac_ext
3658cat >>conftest.$ac_ext <<_ACEOF
3659/* end confdefs.h.  */
3660
3661int
3662main ()
3663{
3664int i=0;
3665  ;
3666  return 0;
3667}
3668_ACEOF
3669rm -f conftest.$ac_objext
3670if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3671  (eval $ac_compile) 2>conftest.er1
3672  ac_status=$?
3673  grep -v '^ *+' conftest.er1 >conftest.err
3674  rm -f conftest.er1
3675  cat conftest.err >&5
3676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677  (exit $ac_status); } &&
3678         { ac_try='test -z "$ac_cxx_werror_flag"
3679                         || test ! -s conftest.err'
3680  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3681  (eval $ac_try) 2>&5
3682  ac_status=$?
3683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684  (exit $ac_status); }; } &&
3685         { ac_try='test -s conftest.$ac_objext'
3686  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3687  (eval $ac_try) 2>&5
3688  ac_status=$?
3689  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690  (exit $ac_status); }; }; then
3691  echo "$as_me:$LINENO: result: yes" >&5
3692echo "${ECHO_T}yes" >&6
3693else
3694  echo "$as_me: failed program was:" >&5
3695sed 's/^/| /' conftest.$ac_ext >&5
3696
3697echo "$as_me:$LINENO: result: no" >&5
3698echo "${ECHO_T}no" >&6
3699   { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3700echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3701   { (exit 1); exit 1; }; }
3702
3703fi
3704rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3705ac_ext=cc
3706ac_cpp='$CXXCPP $CPPFLAGS'
3707ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3708ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3709ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3710
3711
3712coin_cxx_is_cl=false
3713# It seems that we need to cleanup something here for the Windows
3714case "$CXX" in
3715  clang* ) ;;
3716  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3717    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3718    mv confdefs.hh confdefs.h
3719    coin_cxx_is_cl=true
3720    ;;
3721esac
3722
3723# add automake conditional so we can recognize cl compiler in makefile
3724
3725
3726if test $coin_cxx_is_cl = true; then
3727  COIN_CXX_IS_CL_TRUE=
3728  COIN_CXX_IS_CL_FALSE='#'
3729else
3730  COIN_CXX_IS_CL_TRUE='#'
3731  COIN_CXX_IS_CL_FALSE=
3732fi
3733
3734
3735# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3736case "$CXX" in
3737  clang* ) ;;
3738  cl* | */cl* | CL* | */CL* )
3739    if test "$ac_cv_prog_cxx_g" = yes ; then
3740      ac_cv_prog_cxx_g=no
3741      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3742echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3743    fi ;;
3744  * )
3745    if test x"$CYGPATH_W" = x ; then
3746      CYGPATH_W=echo
3747    fi
3748    ;;
3749esac
3750CXXFLAGS="$save_cxxflags"
3751
3752# Check if a project specific CXXFLAGS variable has been set
3753if test x$COIN_PRJCT != x; then
3754  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3755  if test x$coin_tmp = xset; then
3756    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3757  fi
3758fi
3759
3760if test x"$CXXFLAGS" = x; then
3761
3762# ToDo decide whether we want -DNDEBUG for optimization
3763  coin_add_cxxflags=
3764  coin_opt_cxxflags=
3765  coin_dbg_cxxflags=
3766  coin_warn_cxxflags=
3767
3768  if test "$GXX" = "yes"; then
3769    case "$CXX" in
3770      icpc* | */icpc*)
3771        ;;
3772      *)
3773# ToDo decide about unroll-loops
3774        coin_opt_cxxflags="-O3"
3775        coin_add_cxxflags="-pipe"
3776        coin_dbg_cxxflags="-g -O0"
3777        coin_warn_cxxflags="-Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long"
3778        case $build in
3779          *-darwin*)
3780            ;;
3781          *)
3782            coin_warn_cxxflags="-pedantic-errors $coin_warn_cxxflags"
3783            ;;
3784        esac
3785    esac
3786  fi
3787
3788# Note that we do not need to cover GCC in the following tests.
3789
3790  if test -z "$coin_opt_cxxflags"; then
3791    case $build in
3792      *-cygwin* | *-mingw*)
3793        case "$CXX" in
3794          clang* ) ;;
3795          cl* | */cl* | CL* | */CL*)
3796            # The MT and MTd options are mutually exclusive
3797            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3798               coin_opt_cxxflags='-MD -O2'
3799               coin_dbg_cxxflags='-MDd'
3800            else
3801               coin_opt_cxxflags='-MT -O2'
3802               coin_dbg_cxxflags='-MTd'
3803            fi
3804            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3805            ;;
3806          icl* | */icl* | ICL* | */ICL*)
3807          # The MT and MTd options are mutually exclusive
3808            if test "$coin_disable_shared" = yes || test "$enable_shared" = yes ; then
3809              coin_opt_cxxflags='-MD -Ox'
3810              coin_dbg_cxxflags='-MDd -debug'
3811            else
3812              coin_opt_cxxflags='-MT -Ox'
3813              coin_dbg_cxxflags='-MTd -debug'
3814            fi
3815            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3816            ;;
3817        esac
3818        ;;
3819      *-linux-*)
3820        case "$CXX" in
3821          icpc* | */icpc*)
3822            coin_opt_cxxflags="-O3 -ip -mp1"
3823            coin_add_cxxflags=""
3824            coin_dbg_cxxflags="-g"
3825            # Check if -i_dynamic is necessary (for new glibc library)
3826            CXXFLAGS=
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  :
3865else
3866  echo "$as_me: failed program was:" >&5
3867sed 's/^/| /' conftest.$ac_ext >&5
3868
3869coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3870fi
3871rm -f conftest.err conftest.$ac_objext \
3872      conftest$ac_exeext conftest.$ac_ext
3873            ;;
3874          pgCC* | */pgCC*)
3875            coin_opt_cxxflags="-fast"
3876            coin_add_cxxflags="-Kieee -pc 64"
3877            coin_dbg_cxxflags="-g"
3878            ;;
3879        esac
3880        ;;
3881      *-ibm-*)
3882        case "$CXX" in
3883          xlC* | */xlC* | mpxlC* | */mpxlC*)
3884            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3885            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3886            coin_dbg_cxxflags="-g"
3887            ;;
3888        esac
3889        ;;
3890      *-hp-*)
3891        case "$CXX" in
3892          aCC* | */aCC* )
3893            coin_opt_cxxflags="-O"
3894            coin_add_cxxflags="-AA"
3895            coin_dbg_cxxflags="-g"
3896            ;;
3897        esac
3898        ;;
3899      *-*-solaris*)
3900          coin_opt_cxxflags="-O4"
3901          coin_dbg_cxxflags="-g"
3902        ;;
3903    esac
3904  fi
3905
3906# Generic flag settings. If these don't work, add a case above.
3907
3908  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3909    coin_dbg_cxxflags="-g"
3910  fi
3911
3912  if test -z "$coin_opt_cxxflags"; then
3913    # Try if -O option works if nothing else is set
3914    CXXFLAGS=-O
3915    cat >conftest.$ac_ext <<_ACEOF
3916/* confdefs.h.  */
3917_ACEOF
3918cat confdefs.h >>conftest.$ac_ext
3919cat >>conftest.$ac_ext <<_ACEOF
3920/* end confdefs.h.  */
3921
3922int
3923main ()
3924{
3925int i=0; i++;
3926  ;
3927  return 0;
3928}
3929_ACEOF
3930rm -f conftest.$ac_objext conftest$ac_exeext
3931if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3932  (eval $ac_link) 2>conftest.er1
3933  ac_status=$?
3934  grep -v '^ *+' conftest.er1 >conftest.err
3935  rm -f conftest.er1
3936  cat conftest.err >&5
3937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938  (exit $ac_status); } &&
3939         { ac_try='test -z "$ac_cxx_werror_flag"
3940                         || test ! -s conftest.err'
3941  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3942  (eval $ac_try) 2>&5
3943  ac_status=$?
3944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3945  (exit $ac_status); }; } &&
3946         { ac_try='test -s conftest$ac_exeext'
3947  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3948  (eval $ac_try) 2>&5
3949  ac_status=$?
3950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3951  (exit $ac_status); }; }; then
3952  coin_opt_cxxflags="-O"
3953else
3954  echo "$as_me: failed program was:" >&5
3955sed 's/^/| /' conftest.$ac_ext >&5
3956
3957fi
3958rm -f conftest.err conftest.$ac_objext \
3959      conftest$ac_exeext conftest.$ac_ext
3960  fi
3961
3962  # if PM doesn't want the warning messages, take them out
3963  if test x"$coin_skip_warn_cxxflags" = xyes; then
3964    coin_warn_cxxflags=
3965  fi
3966
3967# Do final setup of flags based on values determined above.
3968
3969  if test x${DBG_CXXFLAGS+set} != xset; then
3970    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3971  fi
3972  if test x${OPT_CXXFLAGS+set} != xset; then
3973    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
3974  fi
3975
3976  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3977  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3978
3979  if test "$coin_debug_compile" = "true"; then
3980    CXXFLAGS="$DBG_CXXFLAGS"
3981  else
3982    CXXFLAGS="$OPT_CXXFLAGS"
3983  fi
3984
3985# Handle the case where CXXFLAGS was set externally.
3986else
3987  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3988  if test x${DBG_CXXFLAGS+set} != xset; then
3989    DBG_CXXFLAGS="$CXXFLAGS"
3990  fi
3991  if test x${OPT_CXXFLAGS+set} != xset; then
3992    OPT_CXXFLAGS="$CXXFLAGS"
3993  fi
3994fi
3995
3996# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3997if test x$COIN_PRJCT != x; then
3998  CXXFLAGS="$CXXFLAGS -D${COIN_PRJCT}_BUILD"
3999fi
4000
4001# Try if CXXFLAGS works
4002save_CXXFLAGS="$CXXFLAGS"
4003cat >conftest.$ac_ext <<_ACEOF
4004/* confdefs.h.  */
4005_ACEOF
4006cat confdefs.h >>conftest.$ac_ext
4007cat >>conftest.$ac_ext <<_ACEOF
4008/* end confdefs.h.  */
4009
4010int
4011main ()
4012{
4013int i=0; i++;
4014  ;
4015  return 0;
4016}
4017_ACEOF
4018rm -f conftest.$ac_objext conftest$ac_exeext
4019if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4020  (eval $ac_link) 2>conftest.er1
4021  ac_status=$?
4022  grep -v '^ *+' conftest.er1 >conftest.err
4023  rm -f conftest.er1
4024  cat conftest.err >&5
4025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4026  (exit $ac_status); } &&
4027         { ac_try='test -z "$ac_cxx_werror_flag"
4028                         || test ! -s conftest.err'
4029  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4030  (eval $ac_try) 2>&5
4031  ac_status=$?
4032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4033  (exit $ac_status); }; } &&
4034         { ac_try='test -s conftest$ac_exeext'
4035  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4036  (eval $ac_try) 2>&5
4037  ac_status=$?
4038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039  (exit $ac_status); }; }; then
4040  :
4041else
4042  echo "$as_me: failed program was:" >&5
4043sed 's/^/| /' conftest.$ac_ext >&5
4044
4045CXXFLAGS=
4046fi
4047rm -f conftest.err conftest.$ac_objext \
4048      conftest$ac_exeext conftest.$ac_ext
4049if test -z "$CXXFLAGS"; then
4050  { 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
4051echo "$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;}
4052  CXXFLAGS='-O'
4053  cat >conftest.$ac_ext <<_ACEOF
4054/* confdefs.h.  */
4055_ACEOF
4056cat confdefs.h >>conftest.$ac_ext
4057cat >>conftest.$ac_ext <<_ACEOF
4058/* end confdefs.h.  */
4059
4060int
4061main ()
4062{
4063int i=0; i++;
4064  ;
4065  return 0;
4066}
4067_ACEOF
4068rm -f conftest.$ac_objext conftest$ac_exeext
4069if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4070  (eval $ac_link) 2>conftest.er1
4071  ac_status=$?
4072  grep -v '^ *+' conftest.er1 >conftest.err
4073  rm -f conftest.er1
4074  cat conftest.err >&5
4075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076  (exit $ac_status); } &&
4077         { ac_try='test -z "$ac_cxx_werror_flag"
4078                         || test ! -s conftest.err'
4079  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4080  (eval $ac_try) 2>&5
4081  ac_status=$?
4082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083  (exit $ac_status); }; } &&
4084         { ac_try='test -s conftest$ac_exeext'
4085  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4086  (eval $ac_try) 2>&5
4087  ac_status=$?
4088  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089  (exit $ac_status); }; }; then
4090  :
4091else
4092  echo "$as_me: failed program was:" >&5
4093sed 's/^/| /' conftest.$ac_ext >&5
4094
4095CXXFLAGS=
4096fi
4097rm -f conftest.err conftest.$ac_objext \
4098      conftest$ac_exeext conftest.$ac_ext
4099  if test -z "$CXXFLAGS"; then
4100    { 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
4101echo "$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;}
4102  fi
4103fi
4104
4105{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
4106echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
4107
4108
4109if test x"$MPICXX" = x; then :; else
4110  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
4111echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
4112  CXX="$MPICXX"
4113fi
4114
4115# correct the LD variable in a mingw build with MS or intel compiler
4116case "$CXX" in
4117  clang* ) ;;
4118  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4119
4120 case $build in
4121  *-mingw*)
4122    if test "${LD+set}" = set; then :; else
4123      LD=link
4124    fi
4125    ;;
4126 esac
4127 if test $enable_msvc = yes ; then
4128   if test "x${LD+set}" = xset; then :; else
4129     LD=link
4130   fi
4131 fi
4132
4133    ;;
4134esac
4135
4136ac_ext=c
4137ac_cpp='$CPP $CPPFLAGS'
4138ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4139ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4140ac_compiler_gnu=$ac_cv_c_compiler_gnu
4141
4142
4143
4144# Initialize automake and libtool
4145{
4146
4147
4148
4149# START
4150
4151coin_disable_shared=no
4152# Test if force_shared has been set
4153if test "x" = xforce_shared; then
4154  if test x$enable_shared = xno; then
4155    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4156echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4157   { (exit 1); exit 1; }; }
4158  fi
4159  enable_shared=yes;
4160else
4161  # On Cygwin and AIX, building DLLs doesn't work
4162  case $build in
4163    *-cygwin* | *-mingw*)
4164      coin_disable_shared=yes
4165      if test x"$enable_shared" = xyes; then
4166        case "$CC" in
4167          clang* )
4168            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5
4169echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;}
4170            ;;
4171          cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
4172            { echo "$as_me:$LINENO: DLL building not supported, but will build with -MD(d) instead of -MT(d)." >&5
4173echo "$as_me: DLL building not supported, but will build with -MD(d) instead of -MT(d)." >&6;}
4174            ;;
4175          *gcc*)
4176            if test x"$enable_dependency_linking" = xyes; then
4177              coin_disable_shared=no
4178            else
4179              { echo "$as_me:$LINENO: WARNING: To build shared libraries with gcc on CYGWIN or MSys, use --enable-dependency-linking" >&5
4180echo "$as_me: WARNING: To build shared libraries with gcc on CYGWIN or MSys, use --enable-dependency-linking" >&2;}
4181            fi
4182            ;;
4183          *)
4184            { echo "$as_me:$LINENO: WARNING: DLL building not supported. I'm disabling your choice." >&5
4185echo "$as_me: WARNING: DLL building not supported. I'm disabling your choice." >&2;}
4186            ;;
4187        esac
4188      fi
4189    ;;
4190    *-aix*)
4191      coin_disable_shared=yes
4192      platform=AIX
4193      if test x"$enable_shared" = xyes; then
4194        { echo "$as_me:$LINENO: WARNING: Shared objects are not supported. I'm disabling your choice." >&5
4195echo "$as_me: WARNING: Shared objects are not supported. I'm disabling your choice." >&2;}
4196      fi
4197    ;;
4198  esac
4199fi
4200if test x"$coin_disable_shared" = xyes; then
4201  if test x"$enable_shared" = xyes; then
4202    :
4203  else
4204    # we don't disable shared, because it was not selected anyway
4205    coin_disable_shared=no
4206  fi
4207  enable_shared=no
4208fi
4209# By default, we only want the shared objects to be compiled
4210# Check whether --enable-static or --disable-static was given.
4211if test "${enable_static+set}" = set; then
4212  enableval="$enable_static"
4213  p=${PACKAGE-default}
4214    case $enableval in
4215    yes) enable_static=yes ;;
4216    no) enable_static=no ;;
4217    *)
4218     enable_static=no
4219      # Look at the argument we got.  We use all the common list separators.
4220      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4221      for pkg in $enableval; do
4222        IFS="$lt_save_ifs"
4223        if test "X$pkg" = "X$p"; then
4224          enable_static=yes
4225        fi
4226      done
4227      IFS="$lt_save_ifs"
4228      ;;
4229    esac
4230else
4231  enable_static=no
4232fi;
4233
4234
4235
4236
4237# Initialize automake
4238echo "$as_me:$LINENO: checking for egrep" >&5
4239echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4240if test "${ac_cv_prog_egrep+set}" = set; then
4241  echo $ECHO_N "(cached) $ECHO_C" >&6
4242else
4243  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4244    then ac_cv_prog_egrep='grep -E'
4245    else ac_cv_prog_egrep='egrep'
4246    fi
4247fi
4248echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4249echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4250 EGREP=$ac_cv_prog_egrep
4251
4252
4253echo "$as_me:$LINENO: checking whether ln -s works" >&5
4254echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4255LN_S=$as_ln_s
4256if test "$LN_S" = "ln -s"; then
4257  echo "$as_me:$LINENO: result: yes" >&5
4258echo "${ECHO_T}yes" >&6
4259else
4260  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4261echo "${ECHO_T}no, using $LN_S" >&6
4262fi
4263
4264am__api_version="1.9"
4265# Find a good install program.  We prefer a C program (faster),
4266# so one script is as good as another.  But avoid the broken or
4267# incompatible versions:
4268# SysV /etc/install, /usr/sbin/install
4269# SunOS /usr/etc/install
4270# IRIX /sbin/install
4271# AIX /bin/install
4272# AmigaOS /C/install, which installs bootblocks on floppy discs
4273# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4274# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4275# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4276# OS/2's system install, which has a completely different semantic
4277# ./install, which can be erroneously created by make from ./install.sh.
4278echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4279echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4280if test -z "$INSTALL"; then
4281if test "${ac_cv_path_install+set}" = set; then
4282  echo $ECHO_N "(cached) $ECHO_C" >&6
4283else
4284  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4285for as_dir in $PATH
4286do
4287  IFS=$as_save_IFS
4288  test -z "$as_dir" && as_dir=.
4289  # Account for people who put trailing slashes in PATH elements.
4290case $as_dir/ in
4291  ./ | .// | /cC/* | \
4292  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4293  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4294  /usr/ucb/* ) ;;
4295  *)
4296    # OSF1 and SCO ODT 3.0 have their own names for install.
4297    # Don't use installbsd from OSF since it installs stuff as root
4298    # by default.
4299    for ac_prog in ginstall scoinst install; do
4300      for ac_exec_ext in '' $ac_executable_extensions; do
4301        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4302          if test $ac_prog = install &&
4303            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4304            # AIX install.  It has an incompatible calling convention.
4305            :
4306          elif test $ac_prog = install &&
4307            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4308            # program-specific install script used by HP pwplus--don't use.
4309            :
4310          else
4311            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4312            break 3
4313          fi
4314        fi
4315      done
4316    done
4317    ;;
4318esac
4319done
4320
4321
4322fi
4323  if test "${ac_cv_path_install+set}" = set; then
4324    INSTALL=$ac_cv_path_install
4325  else
4326    # As a last resort, use the slow shell script.  We don't cache a
4327    # path for INSTALL within a source directory, because that will
4328    # break other packages using the cache if that directory is
4329    # removed, or if the path is relative.
4330    INSTALL=$ac_install_sh
4331  fi
4332fi
4333echo "$as_me:$LINENO: result: $INSTALL" >&5
4334echo "${ECHO_T}$INSTALL" >&6
4335
4336# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4337# It thinks the first close brace ends the variable substitution.
4338test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4339
4340test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4341
4342test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4343
4344echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4345echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4346# Just in case
4347sleep 1
4348echo timestamp > conftest.file
4349# Do `set' in a subshell so we don't clobber the current shell's
4350# arguments.  Must try -L first in case configure is actually a
4351# symlink; some systems play weird games with the mod time of symlinks
4352# (eg FreeBSD returns the mod time of the symlink's containing
4353# directory).
4354if (
4355   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4356   if test "$*" = "X"; then
4357      # -L didn't work.
4358      set X `ls -t $srcdir/configure conftest.file`
4359   fi
4360   rm -f conftest.file
4361   if test "$*" != "X $srcdir/configure conftest.file" \
4362      && test "$*" != "X conftest.file $srcdir/configure"; then
4363
4364      # If neither matched, then we have a broken ls.  This can happen
4365      # if, for instance, CONFIG_SHELL is bash and it inherits a
4366      # broken ls alias from the environment.  This has actually
4367      # happened.  Such a system could not be considered "sane".
4368      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4369alias in your environment" >&5
4370echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4371alias in your environment" >&2;}
4372   { (exit 1); exit 1; }; }
4373   fi
4374
4375   test "$2" = conftest.file
4376   )
4377then
4378   # Ok.
4379   :
4380else
4381   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4382Check your system clock" >&5
4383echo "$as_me: error: newly created file is older than distributed files!
4384Check your system clock" >&2;}
4385   { (exit 1); exit 1; }; }
4386fi
4387echo "$as_me:$LINENO: result: yes" >&5
4388echo "${ECHO_T}yes" >&6
4389test "$program_prefix" != NONE &&
4390  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4391# Use a double $ so make ignores it.
4392test "$program_suffix" != NONE &&
4393  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4394# Double any \ or $.  echo might interpret backslashes.
4395# By default was `s,x,x', remove it if useless.
4396cat <<\_ACEOF >conftest.sed
4397s/[\\$]/&&/g;s/;s,x,x,$//
4398_ACEOF
4399program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4400rm conftest.sed
4401
4402# expand $ac_aux_dir to an absolute path
4403am_aux_dir=`cd $ac_aux_dir && pwd`
4404
4405test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4406# Use eval to expand $SHELL
4407if eval "$MISSING --run true"; then
4408  am_missing_run="$MISSING --run "
4409else
4410  am_missing_run=
4411  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4412echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4413fi
4414
4415if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4416  # We used to keeping the `.' as first argument, in order to
4417  # allow $(mkdir_p) to be used without argument.  As in
4418  #   $(mkdir_p) $(somedir)
4419  # where $(somedir) is conditionally defined.  However this is wrong
4420  # for two reasons:
4421  #  1. if the package is installed by a user who cannot write `.'
4422  #     make install will fail,
4423  #  2. the above comment should most certainly read
4424  #     $(mkdir_p) $(DESTDIR)$(somedir)
4425  #     so it does not work when $(somedir) is undefined and
4426  #     $(DESTDIR) is not.
4427  #  To support the latter case, we have to write
4428  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4429  #  so the `.' trick is pointless.
4430  mkdir_p='mkdir -p --'
4431else
4432  # On NextStep and OpenStep, the `mkdir' command does not
4433  # recognize any option.  It will interpret all options as
4434  # directories to create, and then abort because `.' already
4435  # exists.
4436  for d in ./-p ./--version;
4437  do
4438    test -d $d && rmdir $d
4439  done
4440  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4441  if test -f "$ac_aux_dir/mkinstalldirs"; then
4442    mkdir_p='$(mkinstalldirs)'
4443  else
4444    mkdir_p='$(install_sh) -d'
4445  fi
4446fi
4447
4448for ac_prog in gawk mawk nawk awk
4449do
4450  # Extract the first word of "$ac_prog", so it can be a program name with args.
4451set dummy $ac_prog; ac_word=$2
4452echo "$as_me:$LINENO: checking for $ac_word" >&5
4453echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4454if test "${ac_cv_prog_AWK+set}" = set; then
4455  echo $ECHO_N "(cached) $ECHO_C" >&6
4456else
4457  if test -n "$AWK"; then
4458  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4459else
4460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4461for as_dir in $PATH
4462do
4463  IFS=$as_save_IFS
4464  test -z "$as_dir" && as_dir=.
4465  for ac_exec_ext in '' $ac_executable_extensions; do
4466  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4467    ac_cv_prog_AWK="$ac_prog"
4468    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4469    break 2
4470  fi
4471done
4472done
4473
4474fi
4475fi
4476AWK=$ac_cv_prog_AWK
4477if test -n "$AWK"; then
4478  echo "$as_me:$LINENO: result: $AWK" >&5
4479echo "${ECHO_T}$AWK" >&6
4480else
4481  echo "$as_me:$LINENO: result: no" >&5
4482echo "${ECHO_T}no" >&6
4483fi
4484
4485  test -n "$AWK" && break
4486done
4487
4488echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4489echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4490set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4491if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4492  echo $ECHO_N "(cached) $ECHO_C" >&6
4493else
4494  cat >conftest.make <<\_ACEOF
4495all:
4496        @echo 'ac_maketemp="$(MAKE)"'
4497_ACEOF
4498# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4499eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4500if test -n "$ac_maketemp"; then
4501  eval ac_cv_prog_make_${ac_make}_set=yes
4502else
4503  eval ac_cv_prog_make_${ac_make}_set=no
4504fi
4505rm -f conftest.make
4506fi
4507if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4508  echo "$as_me:$LINENO: result: yes" >&5
4509echo "${ECHO_T}yes" >&6
4510  SET_MAKE=
4511else
4512  echo "$as_me:$LINENO: result: no" >&5
4513echo "${ECHO_T}no" >&6
4514  SET_MAKE="MAKE=${MAKE-make}"
4515fi
4516
4517rm -rf .tst 2>/dev/null
4518mkdir .tst 2>/dev/null
4519if test -d .tst; then
4520  am__leading_dot=.
4521else
4522  am__leading_dot=_
4523fi
4524rmdir .tst 2>/dev/null
4525
4526DEPDIR="${am__leading_dot}deps"
4527
4528          ac_config_commands="$ac_config_commands depfiles"
4529
4530
4531am_make=${MAKE-make}
4532cat > confinc << 'END'
4533am__doit:
4534        @echo done
4535.PHONY: am__doit
4536END
4537# If we don't find an include directive, just comment out the code.
4538echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4539echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4540am__include="#"
4541am__quote=
4542_am_result=none
4543# First try GNU make style include.
4544echo "include confinc" > confmf
4545# We grep out `Entering directory' and `Leaving directory'
4546# messages which can occur if `w' ends up in MAKEFLAGS.
4547# In particular we don't look at `^make:' because GNU make might
4548# be invoked under some other name (usually "gmake"), in which
4549# case it prints its new name instead of `make'.
4550if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4551   am__include=include
4552   am__quote=
4553   _am_result=GNU
4554fi
4555# Now try BSD make style include.
4556if test "$am__include" = "#"; then
4557   echo '.include "confinc"' > confmf
4558   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4559      am__include=.include
4560      am__quote="\""
4561      _am_result=BSD
4562   fi
4563fi
4564
4565
4566echo "$as_me:$LINENO: result: $_am_result" >&5
4567echo "${ECHO_T}$_am_result" >&6
4568rm -f confinc confmf
4569
4570# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4571if test "${enable_dependency_tracking+set}" = set; then
4572  enableval="$enable_dependency_tracking"
4573
4574fi;
4575if test "x$enable_dependency_tracking" != xno; then
4576  am_depcomp="$ac_aux_dir/depcomp"
4577  AMDEPBACKSLASH='\'
4578fi
4579
4580
4581if test "x$enable_dependency_tracking" != xno; then
4582  AMDEP_TRUE=
4583  AMDEP_FALSE='#'
4584else
4585  AMDEP_TRUE='#'
4586  AMDEP_FALSE=
4587fi
4588
4589
4590
4591
4592
4593
4594# AC_MSG_NOTICE([Beginning automake initialisation.])
4595# Stuff for automake
4596# test to see if srcdir already configured
4597if test "`cd $srcdir && pwd`" != "`pwd`" &&
4598   test -f $srcdir/config.status; then
4599  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4600echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4601   { (exit 1); exit 1; }; }
4602fi
4603
4604# test whether we have cygpath
4605if test -z "$CYGPATH_W"; then
4606  if (cygpath --version) >/dev/null 2>/dev/null; then
4607    CYGPATH_W='cygpath -w'
4608  else
4609    CYGPATH_W=echo
4610  fi
4611fi
4612
4613
4614# Define the identity of the package.
4615 PACKAGE='cbc'
4616 VERSION='2.8'
4617
4618
4619cat >>confdefs.h <<_ACEOF
4620#define PACKAGE "$PACKAGE"
4621_ACEOF
4622
4623
4624cat >>confdefs.h <<_ACEOF
4625#define VERSION "$VERSION"
4626_ACEOF
4627
4628# Some tools Automake needs.
4629
4630ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4631
4632
4633AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4634
4635
4636AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4637
4638
4639AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4640
4641
4642MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4643
4644install_sh=${install_sh-"$am_aux_dir/install-sh"}
4645
4646# Installed binaries are usually stripped using `strip' when the user
4647# run `make install-strip'.  However `strip' might not be the right
4648# tool to use in cross-compilation environments, therefore Automake
4649# will honor the `STRIP' environment variable to overrule this program.
4650if test "$cross_compiling" != no; then
4651  if test -n "$ac_tool_prefix"; then
4652  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4653set dummy ${ac_tool_prefix}strip; ac_word=$2
4654echo "$as_me:$LINENO: checking for $ac_word" >&5
4655echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4656if test "${ac_cv_prog_STRIP+set}" = set; then
4657  echo $ECHO_N "(cached) $ECHO_C" >&6
4658else
4659  if test -n "$STRIP"; then
4660  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4661else
4662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4663for as_dir in $PATH
4664do
4665  IFS=$as_save_IFS
4666  test -z "$as_dir" && as_dir=.
4667  for ac_exec_ext in '' $ac_executable_extensions; do
4668  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4669    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4670    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4671    break 2
4672  fi
4673done
4674done
4675
4676fi
4677fi
4678STRIP=$ac_cv_prog_STRIP
4679if test -n "$STRIP"; then
4680  echo "$as_me:$LINENO: result: $STRIP" >&5
4681echo "${ECHO_T}$STRIP" >&6
4682else
4683  echo "$as_me:$LINENO: result: no" >&5
4684echo "${ECHO_T}no" >&6
4685fi
4686
4687fi
4688if test -z "$ac_cv_prog_STRIP"; then
4689  ac_ct_STRIP=$STRIP
4690  # Extract the first word of "strip", so it can be a program name with args.
4691set dummy strip; ac_word=$2
4692echo "$as_me:$LINENO: checking for $ac_word" >&5
4693echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4694if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4695  echo $ECHO_N "(cached) $ECHO_C" >&6
4696else
4697  if test -n "$ac_ct_STRIP"; then
4698  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4699else
4700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4701for as_dir in $PATH
4702do
4703  IFS=$as_save_IFS
4704  test -z "$as_dir" && as_dir=.
4705  for ac_exec_ext in '' $ac_executable_extensions; do
4706  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4707    ac_cv_prog_ac_ct_STRIP="strip"
4708    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4709    break 2
4710  fi
4711done
4712done
4713
4714  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4715fi
4716fi
4717ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4718if test -n "$ac_ct_STRIP"; then
4719  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4720echo "${ECHO_T}$ac_ct_STRIP" >&6
4721else
4722  echo "$as_me:$LINENO: result: no" >&5
4723echo "${ECHO_T}no" >&6
4724fi
4725
4726  STRIP=$ac_ct_STRIP
4727else
4728  STRIP="$ac_cv_prog_STRIP"
4729fi
4730
4731fi
4732INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4733
4734# We need awk for the "check" target.  The system "awk" is bad on
4735# some platforms.
4736# Always define AMTAR for backward compatibility.
4737
4738AMTAR=${AMTAR-"${am_missing_run}tar"}
4739
4740am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4741
4742
4743
4744
4745depcc="$CC"   am_compiler_list=
4746
4747echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4748echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4749if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4750  echo $ECHO_N "(cached) $ECHO_C" >&6
4751else
4752  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4753  # We make a subdir and do the tests there.  Otherwise we can end up
4754  # making bogus files that we don't know about and never remove.  For
4755  # instance it was reported that on HP-UX the gcc test will end up
4756  # making a dummy file named `D' -- because `-MD' means `put the output
4757  # in D'.
4758  mkdir conftest.dir
4759  # Copy depcomp to subdir because otherwise we won't find it if we're
4760  # using a relative directory.
4761  cp "$am_depcomp" conftest.dir
4762  cd conftest.dir
4763  # We will build objects and dependencies in a subdirectory because
4764  # it helps to detect inapplicable dependency modes.  For instance
4765  # both Tru64's cc and ICC support -MD to output dependencies as a
4766  # side effect of compilation, but ICC will put the dependencies in
4767  # the current directory while Tru64 will put them in the object
4768  # directory.
4769  mkdir sub
4770
4771  am_cv_CC_dependencies_compiler_type=none
4772  if test "$am_compiler_list" = ""; then
4773     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4774  fi
4775  for depmode in $am_compiler_list; do
4776    # Setup a source with many dependencies, because some compilers
4777    # like to wrap large dependency lists on column 80 (with \), and
4778    # we should not choose a depcomp mode which is confused by this.
4779    #
4780    # We need to recreate these files for each test, as the compiler may
4781    # overwrite some of them when testing with obscure command lines.
4782    # This happens at least with the AIX C compiler.
4783    : > sub/conftest.c
4784    for i in 1 2 3 4 5 6; do
4785      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4786      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4787      # Solaris 8's {/usr,}/bin/sh.
4788      touch sub/conftst$i.h
4789    done
4790    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4791
4792    case $depmode in
4793    nosideeffect)
4794      # after this tag, mechanisms are not by side-effect, so they'll
4795      # only be used when explicitly requested
4796      if test "x$enable_dependency_tracking" = xyes; then
4797        continue
4798      else
4799        break
4800      fi
4801      ;;
4802    none) break ;;
4803    esac
4804    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4805    # mode.  It turns out that the SunPro C++ compiler does not properly
4806    # handle `-M -o', and we need to detect this.
4807    if depmode=$depmode \
4808       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4809       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4810       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4811         >/dev/null 2>conftest.err &&
4812       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4813       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4814       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4815      # icc doesn't choke on unknown options, it will just issue warnings
4816      # or remarks (even with -Werror).  So we grep stderr for any message
4817      # that says an option was ignored or not supported.
4818      # When given -MP, icc 7.0 and 7.1 complain thusly:
4819      #   icc: Command line warning: ignoring option '-M'; no argument required
4820      # The diagnosis changed in icc 8.0:
4821      #   icc: Command line remark: option '-MP' not supported
4822      if (grep 'ignoring option' conftest.err ||
4823          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4824        am_cv_CC_dependencies_compiler_type=$depmode
4825        break
4826      fi
4827    fi
4828  done
4829
4830  cd ..
4831  rm -rf conftest.dir
4832else
4833  am_cv_CC_dependencies_compiler_type=none
4834fi
4835
4836fi
4837echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4838echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4839CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4840
4841
4842
4843if
4844  test "x$enable_dependency_tracking" != xno \
4845  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4846  am__fastdepCC_TRUE=
4847  am__fastdepCC_FALSE='#'
4848else
4849  am__fastdepCC_TRUE='#'
4850  am__fastdepCC_FALSE=
4851fi
4852
4853
4854depcc="$CXX"  am_compiler_list=
4855
4856echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4857echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4858if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4859  echo $ECHO_N "(cached) $ECHO_C" >&6
4860else
4861  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4862  # We make a subdir and do the tests there.  Otherwise we can end up
4863  # making bogus files that we don't know about and never remove.  For
4864  # instance it was reported that on HP-UX the gcc test will end up
4865  # making a dummy file named `D' -- because `-MD' means `put the output
4866  # in D'.
4867  mkdir conftest.dir
4868  # Copy depcomp to subdir because otherwise we won't find it if we're
4869  # using a relative directory.
4870  cp "$am_depcomp" conftest.dir
4871  cd conftest.dir
4872  # We will build objects and dependencies in a subdirectory because
4873  # it helps to detect inapplicable dependency modes.  For instance
4874  # both Tru64's cc and ICC support -MD to output dependencies as a
4875  # side effect of compilation, but ICC will put the dependencies in
4876  # the current directory while Tru64 will put them in the object
4877  # directory.
4878  mkdir sub
4879
4880  am_cv_CXX_dependencies_compiler_type=none
4881  if test "$am_compiler_list" = ""; then
4882     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4883  fi
4884  for depmode in $am_compiler_list; do
4885    # Setup a source with many dependencies, because some compilers
4886    # like to wrap large dependency lists on column 80 (with \), and
4887    # we should not choose a depcomp mode which is confused by this.
4888    #
4889    # We need to recreate these files for each test, as the compiler may
4890    # overwrite some of them when testing with obscure command lines.
4891    # This happens at least with the AIX C compiler.
4892    : > sub/conftest.c
4893    for i in 1 2 3 4 5 6; do
4894      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4895      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4896      # Solaris 8's {/usr,}/bin/sh.
4897      touch sub/conftst$i.h
4898    done
4899    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4900
4901    case $depmode in
4902    nosideeffect)
4903      # after this tag, mechanisms are not by side-effect, so they'll
4904      # only be used when explicitly requested
4905      if test "x$enable_dependency_tracking" = xyes; then
4906        continue
4907      else
4908        break
4909      fi
4910      ;;
4911    none) break ;;
4912    esac
4913    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4914    # mode.  It turns out that the SunPro C++ compiler does not properly
4915    # handle `-M -o', and we need to detect this.
4916    if depmode=$depmode \
4917       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4918       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4919       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4920         >/dev/null 2>conftest.err &&
4921       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4922       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4923       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4924      # icc doesn't choke on unknown options, it will just issue warnings
4925      # or remarks (even with -Werror).  So we grep stderr for any message
4926      # that says an option was ignored or not supported.
4927      # When given -MP, icc 7.0 and 7.1 complain thusly:
4928      #   icc: Command line warning: ignoring option '-M'; no argument required
4929      # The diagnosis changed in icc 8.0:
4930      #   icc: Command line remark: option '-MP' not supported
4931      if (grep 'ignoring option' conftest.err ||
4932          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4933        am_cv_CXX_dependencies_compiler_type=$depmode
4934        break
4935      fi
4936    fi
4937  done
4938
4939  cd ..
4940  rm -rf conftest.dir
4941else
4942  am_cv_CXX_dependencies_compiler_type=none
4943fi
4944
4945fi
4946echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4947echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4948CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4949
4950
4951
4952if
4953  test "x$enable_dependency_tracking" != xno \
4954  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4955  am__fastdepCXX_TRUE=
4956  am__fastdepCXX_FALSE='#'
4957else
4958  am__fastdepCXX_TRUE='#'
4959  am__fastdepCXX_FALSE=
4960fi
4961
4962
4963
4964echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4965echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4966    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4967if test "${enable_maintainer_mode+set}" = set; then
4968  enableval="$enable_maintainer_mode"
4969  USE_MAINTAINER_MODE=$enableval
4970else
4971  USE_MAINTAINER_MODE=no
4972fi;
4973  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4974echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4975
4976
4977if test $USE_MAINTAINER_MODE = yes; then
4978  MAINTAINER_MODE_TRUE=
4979  MAINTAINER_MODE_FALSE='#'
4980else
4981  MAINTAINER_MODE_TRUE='#'
4982  MAINTAINER_MODE_FALSE=
4983fi
4984
4985  MAINT=$MAINTAINER_MODE_TRUE
4986
4987
4988
4989coin_have_externals=no
4990if test "$enable_maintainer_mode" = yes; then
4991
4992  # If maintainer mode is chosen, we make sure that the correct versions
4993  # of the tools are used, and that we know where libtool.m4 is (to
4994  # recreate acinclude.m4)
4995
4996
4997  LIBTOOLM4=
4998  # Normally, $HOME
4999  AUTOTOOLS_DFLT=$HOME
5000
5001  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5002echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5003if test "${ac_cv_use_correct_autotools+set}" = set; then
5004  echo $ECHO_N "(cached) $ECHO_C" >&6
5005else
5006  ac_cv_use_correct_autotools=check
5007fi
5008echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5009echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5010
5011  if test $ac_cv_use_correct_autotools = check; then
5012    ac_cv_use_correct_autotools=yes
5013    # Check if we have autoconf
5014    # Extract the first word of "autoconf", so it can be a program name with args.
5015set dummy autoconf; ac_word=$2
5016echo "$as_me:$LINENO: checking for $ac_word" >&5
5017echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5018if test "${ac_cv_prog_have_autoconf+set}" = set; then
5019  echo $ECHO_N "(cached) $ECHO_C" >&6
5020else
5021  if test -n "$have_autoconf"; then
5022  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5023else
5024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5025for as_dir in $PATH
5026do
5027  IFS=$as_save_IFS
5028  test -z "$as_dir" && as_dir=.
5029  for ac_exec_ext in '' $ac_executable_extensions; do
5030  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5031    ac_cv_prog_have_autoconf="yes"
5032    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5033    break 2
5034  fi
5035done
5036done
5037
5038  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5039fi
5040fi
5041have_autoconf=$ac_cv_prog_have_autoconf
5042if test -n "$have_autoconf"; then
5043  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5044echo "${ECHO_T}$have_autoconf" >&6
5045else
5046  echo "$as_me:$LINENO: result: no" >&5
5047echo "${ECHO_T}no" >&6
5048fi
5049
5050    if test $have_autoconf = no; then
5051      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5052echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5053   { (exit 1); exit 1; }; }
5054    fi
5055
5056    # Check whether autoconf is the correct version
5057    correct_version='2.59'
5058    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5059    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5060echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5061    autoconf --version > confauto.out 2>&1
5062    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5063      echo "$as_me:$LINENO: result: yes" >&5
5064echo "${ECHO_T}yes" >&6
5065    else
5066      rm -f confauto.out
5067      echo "$as_me:$LINENO: result: no" >&5
5068echo "${ECHO_T}no" >&6
5069      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5070echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5071   { (exit 1); exit 1; }; }
5072    fi
5073    rm -f confauto.out
5074
5075    # Check if the executable autoconf is picked up from the correct location
5076    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5077echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5078    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5079    autoconf_dir=`cd $autoconf_dir; pwd`
5080    if test x$AUTOTOOLS_DIR = x; then
5081      want_dir=$AUTOTOOLS_DFLT/bin
5082    else
5083      want_dir=$AUTOTOOLS_DIR/bin
5084    fi
5085    if test $autoconf_dir = `cd $want_dir; pwd`; then
5086      echo "$as_me:$LINENO: result: yes" >&5
5087echo "${ECHO_T}yes" >&6
5088    else
5089      rm -f confauto.out
5090      echo "$as_me:$LINENO: result: no" >&5
5091echo "${ECHO_T}no" >&6
5092      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5093echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5094   { (exit 1); exit 1; }; }
5095    fi
5096
5097    # Check if we have automake
5098    # Extract the first word of "automake", so it can be a program name with args.
5099set dummy automake; ac_word=$2
5100echo "$as_me:$LINENO: checking for $ac_word" >&5
5101echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5102if test "${ac_cv_prog_have_automake+set}" = set; then
5103  echo $ECHO_N "(cached) $ECHO_C" >&6
5104else
5105  if test -n "$have_automake"; then
5106  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5107else
5108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5109for as_dir in $PATH
5110do
5111  IFS=$as_save_IFS
5112  test -z "$as_dir" && as_dir=.
5113  for ac_exec_ext in '' $ac_executable_extensions; do
5114  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5115    ac_cv_prog_have_automake="yes"
5116    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5117    break 2
5118  fi
5119done
5120done
5121
5122  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5123fi
5124fi
5125have_automake=$ac_cv_prog_have_automake
5126if test -n "$have_automake"; then
5127  echo "$as_me:$LINENO: result: $have_automake" >&5
5128echo "${ECHO_T}$have_automake" >&6
5129else
5130  echo "$as_me:$LINENO: result: no" >&5
5131echo "${ECHO_T}no" >&6
5132fi
5133
5134    if test $have_automake = no; then
5135      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5136echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5137   { (exit 1); exit 1; }; }
5138    fi
5139
5140    # Check whether automake is the correct version
5141    correct_version='1.9.6'
5142    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5143    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5144echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5145    automake --version > confauto.out 2>&1
5146    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5147      echo "$as_me:$LINENO: result: yes" >&5
5148echo "${ECHO_T}yes" >&6
5149    else
5150      rm -f confauto.out
5151      echo "$as_me:$LINENO: result: no" >&5
5152echo "${ECHO_T}no" >&6
5153      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5154echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5155   { (exit 1); exit 1; }; }
5156    fi
5157    rm -f confauto.out
5158
5159    # Check if the executable automake is picked up from the correct location
5160    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5161echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5162    automake_dir=`which automake | sed -e 's=/automake=='`
5163    automake_dir=`cd $automake_dir; pwd`
5164    if test x$AUTOTOOLS_DIR = x; then
5165      want_dir=$AUTOTOOLS_DFLT/bin
5166    else
5167      want_dir=$AUTOTOOLS_DIR/bin
5168    fi
5169    if test $automake_dir = `cd $want_dir; pwd`; then
5170      echo "$as_me:$LINENO: result: yes" >&5
5171echo "${ECHO_T}yes" >&6
5172    else
5173      rm -f confauto.out
5174      echo "$as_me:$LINENO: result: no" >&5
5175echo "${ECHO_T}no" >&6
5176      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5177echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5178   { (exit 1); exit 1; }; }
5179    fi
5180
5181    # Check if this is the correct version of libtool (with escaped dots)
5182    if test x$AUTOTOOLS_DIR = x; then
5183      want_dir=$AUTOTOOLS_DFLT/share
5184    else
5185      want_dir=$AUTOTOOLS_DIR/share
5186    fi
5187    correct_version='1.5.22'
5188    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5189    if test -r $want_dir/libtool/ltmain.sh; then
5190  have_ltmain=yes
5191  :
5192else
5193  have_ltmain=no
5194  :
5195fi
5196
5197    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5198echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5199    if test $have_ltmain = yes; then
5200    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5201        echo "$as_me:$LINENO: result: yes" >&5
5202echo "${ECHO_T}yes" >&6
5203      else
5204        echo "$as_me:$LINENO: result: no" >&5
5205echo "${ECHO_T}no" >&6
5206        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5207echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5208   { (exit 1); exit 1; }; }
5209      fi
5210    else
5211      echo "$as_me:$LINENO: result: no" >&5
5212echo "${ECHO_T}no" >&6
5213      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5214echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5215   { (exit 1); exit 1; }; }
5216    fi
5217  fi
5218
5219  # Check if we can find the libtool file
5220  if test x$AUTOTOOLS_DIR = x; then
5221    want_dir=$AUTOTOOLS_DFLT/share
5222  else
5223    want_dir=$AUTOTOOLS_DIR/share
5224  fi
5225  if test -r $want_dir/aclocal/libtool.m4; then
5226  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5227  :
5228else
5229  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5230echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5231   { (exit 1); exit 1; }; }
5232  :
5233fi
5234
5235
5236  # Check if we have an Dependencies file
5237  if test -r $srcdir/Dependencies; then
5238    coin_have_externals=yes
5239  fi
5240  # Check if subversion is installed and understands https
5241  # Extract the first word of "svn", so it can be a program name with args.
5242set dummy svn; ac_word=$2
5243echo "$as_me:$LINENO: checking for $ac_word" >&5
5244echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5245if test "${ac_cv_prog_have_svn+set}" = set; then
5246  echo $ECHO_N "(cached) $ECHO_C" >&6
5247else
5248  if test -n "$have_svn"; then
5249  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5250else
5251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5252for as_dir in $PATH
5253do
5254  IFS=$as_save_IFS
5255  test -z "$as_dir" && as_dir=.
5256  for ac_exec_ext in '' $ac_executable_extensions; do
5257  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5258    ac_cv_prog_have_svn="yes"
5259    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5260    break 2
5261  fi
5262done
5263done
5264
5265  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5266fi
5267fi
5268have_svn=$ac_cv_prog_have_svn
5269if test -n "$have_svn"; then
5270  echo "$as_me:$LINENO: result: $have_svn" >&5
5271echo "${ECHO_T}$have_svn" >&6
5272else
5273  echo "$as_me:$LINENO: result: no" >&5
5274echo "${ECHO_T}no" >&6
5275fi
5276
5277  if test x$have_svn = xyes; then
5278    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5279echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5280if test "${ac_cv_svn_understands_https+set}" = set; then
5281  echo $ECHO_N "(cached) $ECHO_C" >&6
5282else
5283  svn --version > confauto.out 2>&1
5284                    if $EGREP https confauto.out >/dev/null 2>&1; then
5285                      ac_cv_svn_understands_https=yes
5286                    else
5287                      ac_cv_svn_understands_https=no
5288                      have_svn=no
5289                      ac_cv_prog_have_svn=no
5290                    fi
5291                    rm -f confauto.out
5292fi
5293echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5294echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5295  fi
5296
5297  # Find the location of the BuildTools directory
5298  BUILDTOOLSDIR=
5299  if test -r $srcdir/BuildTools/coin.m4; then
5300    BUILDTOOLSDIR=$srcdir/BuildTools
5301  else
5302    if test -r $srcdir/../BuildTools/coin.m4; then
5303      BUILDTOOLSDIR=$srcdir/../BuildTools
5304    else
5305      if test -r $srcdir/../../BuildTools/coin.m4; then
5306        BUILDTOOLSDIR=$srcdir/../../BuildTools
5307      else
5308        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5309echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5310   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
5311      fi
5312    fi
5313  fi
5314
5315
5316  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
5317  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
5318    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
5319  fi
5320
5321  # The following variable is set to the name of the directory where
5322  # the autotool scripts are located
5323
5324  AUX_DIR=$ac_aux_dir
5325fi
5326
5327# helpful variable for the base directory of this package
5328abs_source_dir=`cd $srcdir; pwd`
5329
5330
5331# Stuff for example Makefiles
5332if test x$prefix = xNONE; then
5333  full_prefix=$ac_default_prefix
5334else
5335  full_prefix=$prefix
5336fi
5337full_prefix=`cd $full_prefix ; pwd`
5338
5339abs_lib_dir=$full_prefix/lib
5340
5341abs_include_dir=$full_prefix/include
5342
5343abs_bin_dir=$full_prefix/bin
5344
5345
5346
5347if test $coin_have_externals = yes && test x$have_svn = xyes; then
5348  HAVE_EXTERNALS_TRUE=
5349  HAVE_EXTERNALS_FALSE='#'
5350else
5351  HAVE_EXTERNALS_TRUE='#'
5352  HAVE_EXTERNALS_FALSE=
5353fi
5354
5355
5356# AC_MSG_NOTICE([End automake initialisation.])
5357
5358
5359
5360LIBTOOL=
5361if test -f ../libtool; then
5362  coin_config_dir=..
5363  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5364fi
5365if test "x$LIBTOOL" = x; then
5366  if test -f ../../libtool; then
5367    coin_config_dir=../..
5368    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5369  fi
5370fi
5371
5372if test "x$LIBTOOL" = x; then
5373# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5374  # Stuff for libtool
5375  # Check whether --enable-shared or --disable-shared was given.
5376if test "${enable_shared+set}" = set; then
5377  enableval="$enable_shared"
5378  p=${PACKAGE-default}
5379    case $enableval in
5380    yes) enable_shared=yes ;;
5381    no) enable_shared=no ;;
5382    *)
5383      enable_shared=no
5384      # Look at the argument we got.  We use all the common list separators.
5385      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5386      for pkg in $enableval; do
5387        IFS="$lt_save_ifs"
5388        if test "X$pkg" = "X$p"; then
5389          enable_shared=yes
5390        fi
5391      done
5392      IFS="$lt_save_ifs"
5393      ;;
5394    esac
5395else
5396  enable_shared=yes
5397fi;
5398
5399# Check whether --enable-fast-install or --disable-fast-install was given.
5400if test "${enable_fast_install+set}" = set; then
5401  enableval="$enable_fast_install"
5402  p=${PACKAGE-default}
5403    case $enableval in
5404    yes) enable_fast_install=yes ;;
5405    no) enable_fast_install=no ;;
5406    *)
5407      enable_fast_install=no
5408      # Look at the argument we got.  We use all the common list separators.
5409      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5410      for pkg in $enableval; do
5411        IFS="$lt_save_ifs"
5412        if test "X$pkg" = "X$p"; then
5413          enable_fast_install=yes
5414        fi
5415      done
5416      IFS="$lt_save_ifs"
5417      ;;
5418    esac
5419else
5420  enable_fast_install=yes
5421fi;
5422
5423echo "$as_me:$LINENO: checking host system type" >&5
5424echo $ECHO_N "checking host system type... $ECHO_C" >&6
5425if test "${ac_cv_host+set}" = set; then
5426  echo $ECHO_N "(cached) $ECHO_C" >&6
5427else
5428  ac_cv_host_alias=$host_alias
5429test -z "$ac_cv_host_alias" &&
5430  ac_cv_host_alias=$ac_cv_build_alias
5431ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5432  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5433echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5434   { (exit 1); exit 1; }; }
5435
5436fi
5437echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5438echo "${ECHO_T}$ac_cv_host" >&6
5439host=$ac_cv_host
5440host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5441host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5442host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5443
5444
5445echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5446echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5447if test "${lt_cv_path_SED+set}" = set; then
5448  echo $ECHO_N "(cached) $ECHO_C" >&6
5449else
5450  # Loop through the user's path and test for sed and gsed.
5451# Then use that list of sed's as ones to test for truncation.
5452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5453for as_dir in $PATH
5454do
5455  IFS=$as_save_IFS
5456  test -z "$as_dir" && as_dir=.
5457  for lt_ac_prog in sed gsed; do
5458    for ac_exec_ext in '' $ac_executable_extensions; do
5459      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5460        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5461      fi
5462    done
5463  done
5464done
5465lt_ac_max=0
5466lt_ac_count=0
5467# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5468# along with /bin/sed that truncates output.
5469for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5470  test ! -f $lt_ac_sed && continue
5471  cat /dev/null > conftest.in
5472  lt_ac_count=0
5473  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5474  # Check for GNU sed and select it if it is found.
5475  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5476    lt_cv_path_SED=$lt_ac_sed
5477    break
5478  fi
5479  while true; do
5480    cat conftest.in conftest.in >conftest.tmp
5481    mv conftest.tmp conftest.in
5482    cp conftest.in conftest.nl
5483    echo >>conftest.nl
5484    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5485    cmp -s conftest.out conftest.nl || break
5486    # 10000 chars as input seems more than enough
5487    test $lt_ac_count -gt 10 && break
5488    lt_ac_count=`expr $lt_ac_count + 1`
5489    if test $lt_ac_count -gt $lt_ac_max; then
5490      lt_ac_max=$lt_ac_count
5491      lt_cv_path_SED=$lt_ac_sed
5492    fi
5493  done
5494done
5495
5496fi
5497
5498SED=$lt_cv_path_SED
5499echo "$as_me:$LINENO: result: $SED" >&5
5500echo "${ECHO_T}$SED" >&6
5501
5502
5503# Check whether --with-gnu-ld or --without-gnu-ld was given.
5504if test "${with_gnu_ld+set}" = set; then
5505  withval="$with_gnu_ld"
5506  test "$withval" = no || with_gnu_ld=yes
5507else
5508  with_gnu_ld=no
5509fi;
5510ac_prog=ld
5511if test "$GCC" = yes; then
5512  # Check if gcc -print-prog-name=ld gives a path.
5513  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5514echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5515  case $host in
5516  *-*-mingw*)
5517    # gcc leaves a trailing carriage return which upsets mingw
5518    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5519  *)
5520    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5521  esac
5522  case $ac_prog in
5523    # Accept absolute paths.
5524    [\\/]* | ?:[\\/]*)
5525      re_direlt='/[^/][^/]*/\.\./'
5526      # Canonicalize the pathname of ld
5527      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5528      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5529        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5530      done
5531      test -z "$LD" && LD="$ac_prog"
5532      ;;
5533  "")
5534    # If it fails, then pretend we aren't using GCC.
5535    ac_prog=ld
5536    ;;
5537  *)
5538    # If it is relative, then search for the first ld in PATH.
5539    with_gnu_ld=unknown
5540    ;;
5541  esac
5542elif test "$with_gnu_ld" = yes; then
5543  echo "$as_me:$LINENO: checking for GNU ld" >&5
5544echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5545else
5546  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5547echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5548fi
5549if test "${lt_cv_path_LD+set}" = set; then
5550  echo $ECHO_N "(cached) $ECHO_C" >&6
5551else
5552  if test -z "$LD"; then
5553  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5554  for ac_dir in $PATH; do
5555    IFS="$lt_save_ifs"
5556    test -z "$ac_dir" && ac_dir=.
5557    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5558      lt_cv_path_LD="$ac_dir/$ac_prog"
5559      # Check to see if the program is GNU ld.  I'd rather use --version,
5560      # but apparently some variants of GNU ld only accept -v.
5561      # Break only if it was the GNU/non-GNU ld that we prefer.
5562      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5563      *GNU* | *'with BFD'*)
5564        test "$with_gnu_ld" != no && break
5565        ;;
5566      *)
5567        test "$with_gnu_ld" != yes && break
5568        ;;
5569      esac
5570    fi
5571  done
5572  IFS="$lt_save_ifs"
5573else
5574  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5575fi
5576fi
5577
5578LD="$lt_cv_path_LD"
5579if test -n "$LD"; then
5580  echo "$as_me:$LINENO: result: $LD" >&5
5581echo "${ECHO_T}$LD" >&6
5582else
5583  echo "$as_me:$LINENO: result: no" >&5
5584echo "${ECHO_T}no" >&6
5585fi
5586test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5587echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5588   { (exit 1); exit 1; }; }
5589echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5590echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5591if test "${lt_cv_prog_gnu_ld+set}" = set; then
5592  echo $ECHO_N "(cached) $ECHO_C" >&6
5593else
5594  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5595case `$LD -v 2>&1 </dev/null` in
5596*GNU* | *'with BFD'*)
5597  lt_cv_prog_gnu_ld=yes
5598  ;;
5599*)
5600  lt_cv_prog_gnu_ld=no
5601  ;;
5602esac
5603fi
5604echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5605echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5606with_gnu_ld=$lt_cv_prog_gnu_ld
5607
5608
5609echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5610echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5611if test "${lt_cv_ld_reload_flag+set}" = set; then
5612  echo $ECHO_N "(cached) $ECHO_C" >&6
5613else
5614  lt_cv_ld_reload_flag='-r'
5615fi
5616echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5617echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5618reload_flag=$lt_cv_ld_reload_flag
5619case $reload_flag in
5620"" | " "*) ;;
5621*) reload_flag=" $reload_flag" ;;
5622esac
5623reload_cmds='$LD$reload_flag -o $output$reload_objs'
5624case $host_os in
5625  darwin*)
5626    if test "$GCC" = yes; then
5627      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5628    else
5629      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5630    fi
5631    ;;
5632esac
5633
5634echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5635echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5636if test "${lt_cv_path_NM+set}" = set; then
5637  echo $ECHO_N "(cached) $ECHO_C" >&6
5638else
5639  if test -n "$NM"; then
5640  # Let the user override the test.
5641  lt_cv_path_NM="$NM"
5642else
5643  lt_nm_to_check="${ac_tool_prefix}nm"
5644  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5645    lt_nm_to_check="$lt_nm_to_check nm"
5646  fi
5647  for lt_tmp_nm in $lt_nm_to_check; do
5648    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5649    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5650      IFS="$lt_save_ifs"
5651      test -z "$ac_dir" && ac_dir=.
5652      tmp_nm="$ac_dir/$lt_tmp_nm"
5653      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5654        # Check to see if the nm accepts a BSD-compat flag.
5655        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5656        #   nm: unknown option "B" ignored
5657        # Tru64's nm complains that /dev/null is an invalid object file
5658        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5659        */dev/null* | *'Invalid file or object type'*)
5660          lt_cv_path_NM="$tmp_nm -B"
5661          break
5662          ;;
5663        *)
5664          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5665          */dev/null*)
5666            lt_cv_path_NM="$tmp_nm -p"
5667            break
5668            ;;
5669          *)
5670            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5671            continue # so that we can try to find one that supports BSD flags
5672            ;;
5673          esac
5674          ;;
5675        esac
5676      fi
5677    done
5678    IFS="$lt_save_ifs"
5679  done
5680  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5681fi
5682fi
5683echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5684echo "${ECHO_T}$lt_cv_path_NM" >&6
5685NM="$lt_cv_path_NM"
5686
5687echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5688echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5689if test "${lt_cv_deplibs_check_method+set}" = set; then
5690  echo $ECHO_N "(cached) $ECHO_C" >&6
5691else
5692  lt_cv_file_magic_cmd='$MAGIC_CMD'
5693lt_cv_file_magic_test_file=
5694lt_cv_deplibs_check_method='unknown'
5695# Need to set the preceding variable on all platforms that support
5696# interlibrary dependencies.
5697# 'none' -- dependencies not supported.
5698# `unknown' -- same as none, but documents that we really don't know.
5699# 'pass_all' -- all dependencies passed with no checks.
5700# 'test_compile' -- check by making test program.
5701# 'file_magic [[regex]]' -- check by looking for files in library path
5702# which responds to the $file_magic_cmd with a given extended regex.
5703# If you have `file' or equivalent on your system and you're not sure
5704# whether `pass_all' will *always* work, you probably want this one.
5705
5706case $host_os in
5707aix4* | aix5*)
5708  lt_cv_deplibs_check_method=pass_all
5709  ;;
5710
5711beos*)
5712  lt_cv_deplibs_check_method=pass_all
5713  ;;
5714
5715bsdi[45]*)
5716  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5717  lt_cv_file_magic_cmd='/usr/bin/file -L'
5718  lt_cv_file_magic_test_file=/shlib/libc.so
5719  ;;
5720
5721cygwin*)
5722  # func_win32_libid is a shell function defined in ltmain.sh
5723  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5724  lt_cv_file_magic_cmd='func_win32_libid'
5725  ;;
5726
5727mingw* | pw32*)
5728  # Base MSYS/MinGW do not provide the 'file' command needed by
5729  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5730  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5731  lt_cv_file_magic_cmd='$OBJDUMP -f'
5732  ;;
5733
5734darwin* | rhapsody*)
5735  lt_cv_deplibs_check_method=pass_all
5736  ;;
5737
5738freebsd* | kfreebsd*-gnu | dragonfly*)
5739  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5740    case $host_cpu in
5741    i*86 )
5742      # Not sure whether the presence of OpenBSD here was a mistake.
5743      # Let's accept both of them until this is cleared up.
5744      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5745      lt_cv_file_magic_cmd=/usr/bin/file
5746      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5747      ;;
5748    esac
5749  else
5750    lt_cv_deplibs_check_method=pass_all
5751  fi
5752  ;;
5753
5754gnu*)
5755  lt_cv_deplibs_check_method=pass_all
5756  ;;
5757
5758hpux10.20* | hpux11*)
5759  lt_cv_file_magic_cmd=/usr/bin/file
5760  case $host_cpu in
5761  ia64*)
5762    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5763    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5764    ;;
5765  hppa*64*)
5766    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]'
5767    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5768    ;;
5769  *)
5770    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5771    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5772    ;;
5773  esac
5774  ;;
5775
5776interix3*)
5777  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5778  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5779  ;;
5780
5781irix5* | irix6* | nonstopux*)
5782  case $LD in
5783  *-32|*"-32 ") libmagic=32-bit;;
5784  *-n32|*"-n32 ") libmagic=N32;;
5785  *-64|*"-64 ") libmagic=64-bit;;
5786  *) libmagic=never-match;;
5787  esac
5788  lt_cv_deplibs_check_method=pass_all
5789  ;;
5790
5791# This must be Linux ELF.
5792linux*)
5793  lt_cv_deplibs_check_method=pass_all
5794  ;;
5795
5796netbsd*)
5797  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5798    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5799  else
5800    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5801  fi
5802  ;;
5803
5804newos6*)
5805  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5806  lt_cv_file_magic_cmd=/usr/bin/file
5807  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5808  ;;
5809
5810nto-qnx*)
5811  lt_cv_deplibs_check_method=unknown
5812  ;;
5813
5814openbsd*)
5815  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5816    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5817  else
5818    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5819  fi
5820  ;;
5821
5822osf3* | osf4* | osf5*)
5823  lt_cv_deplibs_check_method=pass_all
5824  ;;
5825
5826solaris*)
5827  lt_cv_deplibs_check_method=pass_all
5828  ;;
5829
5830sysv4 | sysv4.3*)
5831  case $host_vendor in
5832  motorola)
5833    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]'
5834    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5835    ;;
5836  ncr)
5837    lt_cv_deplibs_check_method=pass_all
5838    ;;
5839  sequent)
5840    lt_cv_file_magic_cmd='/bin/file'
5841    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5842    ;;
5843  sni)
5844    lt_cv_file_magic_cmd='/bin/file'
5845    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5846    lt_cv_file_magic_test_file=/lib/libc.so
5847    ;;
5848  siemens)
5849    lt_cv_deplibs_check_method=pass_all
5850    ;;
5851  pc)
5852    lt_cv_deplibs_check_method=pass_all
5853    ;;
5854  esac
5855  ;;
5856
5857sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5858  lt_cv_deplibs_check_method=pass_all
5859  ;;
5860esac
5861
5862fi
5863echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5864echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5865file_magic_cmd=$lt_cv_file_magic_cmd
5866deplibs_check_method=$lt_cv_deplibs_check_method
5867test -z "$deplibs_check_method" && deplibs_check_method=unknown
5868
5869
5870
5871
5872# If no C compiler was specified, use CC.
5873LTCC=${LTCC-"$CC"}
5874
5875# If no C compiler flags were specified, use CFLAGS.
5876LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5877
5878# Allow CC to be a program name with arguments.
5879compiler=$CC
5880
5881# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5882if test "${enable_libtool_lock+set}" = set; then
5883  enableval="$enable_libtool_lock"
5884
5885fi;
5886test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5887
5888# Some flags need to be propagated to the compiler or linker for good
5889# libtool support.
5890case $host in
5891ia64-*-hpux*)
5892  # Find out which ABI we are using.
5893  echo 'int i;' > conftest.$ac_ext
5894  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5895  (eval $ac_compile) 2>&5
5896  ac_status=$?
5897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5898  (exit $ac_status); }; then
5899    case `/usr/bin/file conftest.$ac_objext` in
5900    *ELF-32*)
5901      HPUX_IA64_MODE="32"
5902      ;;
5903    *ELF-64*)
5904      HPUX_IA64_MODE="64"
5905      ;;
5906    esac
5907  fi
5908  rm -rf conftest*
5909  ;;
5910*-*-irix6*)
5911  # Find out which ABI we are using.
5912  echo '#line 5912 "configure"' > conftest.$ac_ext
5913  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5914  (eval $ac_compile) 2>&5
5915  ac_status=$?
5916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917  (exit $ac_status); }; then
5918   if test "$lt_cv_prog_gnu_ld" = yes; then
5919    case `/usr/bin/file conftest.$ac_objext` in
5920    *32-bit*)
5921      LD="${LD-ld} -melf32bsmip"
5922      ;;
5923    *N32*)
5924      LD="${LD-ld} -melf32bmipn32"
5925      ;;
5926    *64-bit*)
5927      LD="${LD-ld} -melf64bmip"
5928      ;;
5929    esac
5930   else
5931    case `/usr/bin/file conftest.$ac_objext` in
5932    *32-bit*)
5933      LD="${LD-ld} -32"
5934      ;;
5935    *N32*)
5936      LD="${LD-ld} -n32"
5937      ;;
5938    *64-bit*)
5939      LD="${LD-ld} -64"
5940      ;;
5941    esac
5942   fi
5943  fi
5944  rm -rf conftest*
5945  ;;
5946
5947x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5948  # Find out which ABI we are using.
5949  echo 'int i;' > conftest.$ac_ext
5950  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5951  (eval $ac_compile) 2>&5
5952  ac_status=$?
5953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954  (exit $ac_status); }; then
5955    case `/usr/bin/file conftest.o` in
5956    *32-bit*)
5957      case $host in
5958        x86_64-*linux*)
5959          LD="${LD-ld} -m elf_i386"
5960          ;;
5961        ppc64-*linux*|powerpc64-*linux*)
5962          LD="${LD-ld} -m elf32ppclinux"
5963          ;;
5964        s390x-*linux*)
5965          LD="${LD-ld} -m elf_s390"
5966          ;;
5967        sparc64-*linux*)
5968          LD="${LD-ld} -m elf32_sparc"
5969          ;;
5970      esac
5971      ;;
5972    *64-bit*)
5973      case $host in
5974        x86_64-*linux*)
5975          LD="${LD-ld} -m elf_x86_64"
5976          ;;
5977        ppc*-*linux*|powerpc*-*linux*)
5978          LD="${LD-ld} -m elf64ppc"
5979          ;;
5980        s390*-*linux*)
5981          LD="${LD-ld} -m elf64_s390"
5982          ;;
5983        sparc*-*linux*)
5984          LD="${LD-ld} -m elf64_sparc"
5985          ;;
5986      esac
5987      ;;
5988    esac
5989  fi
5990  rm -rf conftest*
5991  ;;
5992
5993*-*-sco3.2v5*)
5994  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5995  SAVE_CFLAGS="$CFLAGS"
5996  CFLAGS="$CFLAGS -belf"
5997  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5998echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5999if test "${lt_cv_cc_needs_belf+set}" = set; then
6000  echo $ECHO_N "(cached) $ECHO_C" >&6
6001else
6002  ac_ext=c
6003ac_cpp='$CPP $CPPFLAGS'
6004ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6005ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6006ac_compiler_gnu=$ac_cv_c_compiler_gnu
6007
6008     cat >conftest.$ac_ext <<_ACEOF
6009/* confdefs.h.  */
6010_ACEOF
6011cat confdefs.h >>conftest.$ac_ext
6012cat >>conftest.$ac_ext <<_ACEOF
6013/* end confdefs.h.  */
6014
6015int
6016main ()
6017{
6018
6019  ;
6020  return 0;
6021}
6022_ACEOF
6023rm -f conftest.$ac_objext conftest$ac_exeext
6024if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6025  (eval $ac_link) 2>conftest.er1
6026  ac_status=$?
6027  grep -v '^ *+' conftest.er1 >conftest.err
6028  rm -f conftest.er1
6029  cat conftest.err >&5
6030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031  (exit $ac_status); } &&
6032         { ac_try='test -z "$ac_c_werror_flag"
6033                         || test ! -s conftest.err'
6034  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6035  (eval $ac_try) 2>&5
6036  ac_status=$?
6037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038  (exit $ac_status); }; } &&
6039         { ac_try='test -s conftest$ac_exeext'
6040  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6041  (eval $ac_try) 2>&5
6042  ac_status=$?
6043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044  (exit $ac_status); }; }; then
6045  lt_cv_cc_needs_belf=yes
6046else
6047  echo "$as_me: failed program was:" >&5
6048sed 's/^/| /' conftest.$ac_ext >&5
6049
6050lt_cv_cc_needs_belf=no
6051fi
6052rm -f conftest.err conftest.$ac_objext \
6053      conftest$ac_exeext conftest.$ac_ext
6054     ac_ext=c
6055ac_cpp='$CPP $CPPFLAGS'
6056ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6057ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6058ac_compiler_gnu=$ac_cv_c_compiler_gnu
6059
6060fi
6061echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6062echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6063  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6064    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6065    CFLAGS="$SAVE_CFLAGS"
6066  fi
6067  ;;
6068sparc*-*solaris*)
6069  # Find out which ABI we are using.
6070  echo 'int i;' > conftest.$ac_ext
6071  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6072  (eval $ac_compile) 2>&5
6073  ac_status=$?
6074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075  (exit $ac_status); }; then
6076    case `/usr/bin/file conftest.o` in
6077    *64-bit*)
6078      case $lt_cv_prog_gnu_ld in
6079      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6080      *)    LD="${LD-ld} -64" ;;
6081      esac
6082      ;;
6083    esac
6084  fi
6085  rm -rf conftest*
6086  ;;
6087
6088
6089esac
6090
6091need_locks="$enable_libtool_lock"
6092
6093
6094ac_ext=c
6095ac_cpp='$CPP $CPPFLAGS'
6096ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6097ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6098ac_compiler_gnu=$ac_cv_c_compiler_gnu
6099echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6100echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6101# On Suns, sometimes $CPP names a directory.
6102if test -n "$CPP" && test -d "$CPP"; then
6103  CPP=
6104fi
6105if test -z "$CPP"; then
6106  if test "${ac_cv_prog_CPP+set}" = set; then
6107  echo $ECHO_N "(cached) $ECHO_C" >&6
6108else
6109      # Double quotes because CPP needs to be expanded
6110    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6111    do
6112      ac_preproc_ok=false
6113for ac_c_preproc_warn_flag in '' yes
6114do
6115  # Use a header file that comes with gcc, so configuring glibc
6116  # with a fresh cross-compiler works.
6117  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6118  # <limits.h> exists even on freestanding compilers.
6119  # On the NeXT, cc -E runs the code through the compiler's parser,
6120  # not just through cpp. "Syntax error" is here to catch this case.
6121  cat >conftest.$ac_ext <<_ACEOF
6122/* confdefs.h.  */
6123_ACEOF
6124cat confdefs.h >>conftest.$ac_ext
6125cat >>conftest.$ac_ext <<_ACEOF
6126/* end confdefs.h.  */
6127#ifdef __STDC__
6128# include <limits.h>
6129#else
6130# include <assert.h>
6131#endif
6132                     Syntax error
6133_ACEOF
6134if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6135  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6136  ac_status=$?
6137  grep -v '^ *+' conftest.er1 >conftest.err
6138  rm -f conftest.er1
6139  cat conftest.err >&5
6140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141  (exit $ac_status); } >/dev/null; then
6142  if test -s conftest.err; then
6143    ac_cpp_err=$ac_c_preproc_warn_flag
6144    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6145  else
6146    ac_cpp_err=
6147  fi
6148else
6149  ac_cpp_err=yes
6150fi
6151if test -z "$ac_cpp_err"; then
6152  :
6153else
6154  echo "$as_me: failed program was:" >&5
6155sed 's/^/| /' conftest.$ac_ext >&5
6156
6157  # Broken: fails on valid input.
6158continue
6159fi
6160rm -f conftest.err conftest.$ac_ext
6161
6162  # OK, works on sane cases.  Now check whether non-existent headers
6163  # can be detected and how.
6164  cat >conftest.$ac_ext <<_ACEOF
6165/* confdefs.h.  */
6166_ACEOF
6167cat confdefs.h >>conftest.$ac_ext
6168cat >>conftest.$ac_ext <<_ACEOF
6169/* end confdefs.h.  */
6170#include <ac_nonexistent.h>
6171_ACEOF
6172if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6173  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6174  ac_status=$?
6175  grep -v '^ *+' conftest.er1 >conftest.err
6176  rm -f conftest.er1
6177  cat conftest.err >&5
6178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179  (exit $ac_status); } >/dev/null; then
6180  if test -s conftest.err; then
6181    ac_cpp_err=$ac_c_preproc_warn_flag
6182    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6183  else
6184    ac_cpp_err=
6185  fi
6186else
6187  ac_cpp_err=yes
6188fi
6189if test -z "$ac_cpp_err"; then
6190  # Broken: success on invalid input.
6191continue
6192else
6193  echo "$as_me: failed program was:" >&5
6194sed 's/^/| /' conftest.$ac_ext >&5
6195
6196  # Passes both tests.
6197ac_preproc_ok=:
6198break
6199fi
6200rm -f conftest.err conftest.$ac_ext
6201
6202done
6203# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6204rm -f conftest.err conftest.$ac_ext
6205if $ac_preproc_ok; then
6206  break
6207fi
6208
6209    done
6210    ac_cv_prog_CPP=$CPP
6211
6212fi
6213  CPP=$ac_cv_prog_CPP
6214else
6215  ac_cv_prog_CPP=$CPP
6216fi
6217echo "$as_me:$LINENO: result: $CPP" >&5
6218echo "${ECHO_T}$CPP" >&6
6219ac_preproc_ok=false
6220for ac_c_preproc_warn_flag in '' yes
6221do
6222  # Use a header file that comes with gcc, so configuring glibc
6223  # with a fresh cross-compiler works.
6224  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6225  # <limits.h> exists even on freestanding compilers.
6226  # On the NeXT, cc -E runs the code through the compiler's parser,
6227  # not just through cpp. "Syntax error" is here to catch this case.
6228  cat >conftest.$ac_ext <<_ACEOF
6229/* confdefs.h.  */
6230_ACEOF
6231cat confdefs.h >>conftest.$ac_ext
6232cat >>conftest.$ac_ext <<_ACEOF
6233/* end confdefs.h.  */
6234#ifdef __STDC__
6235# include <limits.h>
6236#else
6237# include <assert.h>
6238#endif
6239                     Syntax error
6240_ACEOF
6241if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6242  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6243  ac_status=$?
6244  grep -v '^ *+' conftest.er1 >conftest.err
6245  rm -f conftest.er1
6246  cat conftest.err >&5
6247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6248  (exit $ac_status); } >/dev/null; then
6249  if test -s conftest.err; then
6250    ac_cpp_err=$ac_c_preproc_warn_flag
6251    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6252  else
6253    ac_cpp_err=
6254  fi
6255else
6256  ac_cpp_err=yes
6257fi
6258if test -z "$ac_cpp_err"; then
6259  :
6260else
6261  echo "$as_me: failed program was:" >&5
6262sed 's/^/| /' conftest.$ac_ext >&5
6263
6264  # Broken: fails on valid input.
6265continue
6266fi
6267rm -f conftest.err conftest.$ac_ext
6268
6269  # OK, works on sane cases.  Now check whether non-existent headers
6270  # can be detected and how.
6271  cat >conftest.$ac_ext <<_ACEOF
6272/* confdefs.h.  */
6273_ACEOF
6274cat confdefs.h >>conftest.$ac_ext
6275cat >>conftest.$ac_ext <<_ACEOF
6276/* end confdefs.h.  */
6277#include <ac_nonexistent.h>
6278_ACEOF
6279if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6280  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6281  ac_status=$?
6282  grep -v '^ *+' conftest.er1 >conftest.err
6283  rm -f conftest.er1
6284  cat conftest.err >&5
6285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286  (exit $ac_status); } >/dev/null; then
6287  if test -s conftest.err; then
6288    ac_cpp_err=$ac_c_preproc_warn_flag
6289    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6290  else
6291    ac_cpp_err=
6292  fi
6293else
6294  ac_cpp_err=yes
6295fi
6296if test -z "$ac_cpp_err"; then
6297  # Broken: success on invalid input.
6298continue
6299else
6300  echo "$as_me: failed program was:" >&5
6301sed 's/^/| /' conftest.$ac_ext >&5
6302
6303  # Passes both tests.
6304ac_preproc_ok=:
6305break
6306fi
6307rm -f conftest.err conftest.$ac_ext
6308
6309done
6310# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6311rm -f conftest.err conftest.$ac_ext
6312if $ac_preproc_ok; then
6313  :
6314else
6315  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6316See \`config.log' for more details." >&5
6317echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6318See \`config.log' for more details." >&2;}
6319   { (exit 1); exit 1; }; }
6320fi
6321
6322ac_ext=c
6323ac_cpp='$CPP $CPPFLAGS'
6324ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6325ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6326ac_compiler_gnu=$ac_cv_c_compiler_gnu
6327
6328
6329echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6330echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6331if test "${ac_cv_header_stdc+set}" = set; then
6332  echo $ECHO_N "(cached) $ECHO_C" >&6
6333else
6334  cat >conftest.$ac_ext <<_ACEOF
6335/* confdefs.h.  */
6336_ACEOF
6337cat confdefs.h >>conftest.$ac_ext
6338cat >>conftest.$ac_ext <<_ACEOF
6339/* end confdefs.h.  */
6340#include <stdlib.h>
6341#include <stdarg.h>
6342#include <string.h>
6343#include <float.h>
6344
6345int
6346main ()
6347{
6348
6349  ;
6350  return 0;
6351}
6352_ACEOF
6353rm -f conftest.$ac_objext
6354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6355  (eval $ac_compile) 2>conftest.er1
6356  ac_status=$?
6357  grep -v '^ *+' conftest.er1 >conftest.err
6358  rm -f conftest.er1
6359  cat conftest.err >&5
6360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361  (exit $ac_status); } &&
6362         { ac_try='test -z "$ac_c_werror_flag"
6363                         || test ! -s conftest.err'
6364  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6365  (eval $ac_try) 2>&5
6366  ac_status=$?
6367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368  (exit $ac_status); }; } &&
6369         { ac_try='test -s conftest.$ac_objext'
6370  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6371  (eval $ac_try) 2>&5
6372  ac_status=$?
6373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374  (exit $ac_status); }; }; then
6375  ac_cv_header_stdc=yes
6376else
6377  echo "$as_me: failed program was:" >&5
6378sed 's/^/| /' conftest.$ac_ext >&5
6379
6380ac_cv_header_stdc=no
6381fi
6382rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6383
6384if test $ac_cv_header_stdc = yes; then
6385  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6386  cat >conftest.$ac_ext <<_ACEOF
6387/* confdefs.h.  */
6388_ACEOF
6389cat confdefs.h >>conftest.$ac_ext
6390cat >>conftest.$ac_ext <<_ACEOF
6391/* end confdefs.h.  */
6392#include <string.h>
6393
6394_ACEOF
6395if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6396  $EGREP "memchr" >/dev/null 2>&1; then
6397  :
6398else
6399  ac_cv_header_stdc=no
6400fi
6401rm -f conftest*
6402
6403fi
6404
6405if test $ac_cv_header_stdc = yes; then
6406  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6407  cat >conftest.$ac_ext <<_ACEOF
6408/* confdefs.h.  */
6409_ACEOF
6410cat confdefs.h >>conftest.$ac_ext
6411cat >>conftest.$ac_ext <<_ACEOF
6412/* end confdefs.h.  */
6413#include <stdlib.h>
6414
6415_ACEOF
6416if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6417  $EGREP "free" >/dev/null 2>&1; then
6418  :
6419else
6420  ac_cv_header_stdc=no
6421fi
6422rm -f conftest*
6423
6424fi
6425
6426if test $ac_cv_header_stdc = yes; then
6427  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6428  if test "$cross_compiling" = yes; then
6429  :
6430else
6431  cat >conftest.$ac_ext <<_ACEOF
6432/* confdefs.h.  */
6433_ACEOF
6434cat confdefs.h >>conftest.$ac_ext
6435cat >>conftest.$ac_ext <<_ACEOF
6436/* end confdefs.h.  */
6437#include <ctype.h>
6438#if ((' ' & 0x0FF) == 0x020)
6439# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6440# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6441#else
6442# define ISLOWER(c) \
6443                   (('a' <= (c) && (c) <= 'i') \
6444                     || ('j' <= (c) && (c) <= 'r') \
6445                     || ('s' <= (c) && (c) <= 'z'))
6446# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6447#endif
6448
6449#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6450int
6451main ()
6452{
6453  int i;
6454  for (i = 0; i < 256; i++)
6455    if (XOR (islower (i), ISLOWER (i))
6456        || toupper (i) != TOUPPER (i))
6457      exit(2);
6458  exit (0);
6459}
6460_ACEOF
6461rm -f conftest$ac_exeext
6462if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6463  (eval $ac_link) 2>&5
6464  ac_status=$?
6465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6467  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6468  (eval $ac_try) 2>&5
6469  ac_status=$?
6470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471  (exit $ac_status); }; }; then
6472  :
6473else
6474  echo "$as_me: program exited with status $ac_status" >&5
6475echo "$as_me: failed program was:" >&5
6476sed 's/^/| /' conftest.$ac_ext >&5
6477
6478( exit $ac_status )
6479ac_cv_header_stdc=no
6480fi
6481rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6482fi
6483fi
6484fi
6485echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6486echo "${ECHO_T}$ac_cv_header_stdc" >&6
6487if test $ac_cv_header_stdc = yes; then
6488
6489cat >>confdefs.h <<\_ACEOF
6490#define STDC_HEADERS 1
6491_ACEOF
6492
6493fi
6494
6495# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6506                  inttypes.h stdint.h unistd.h
6507do
6508as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6509echo "$as_me:$LINENO: checking for $ac_header" >&5
6510echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6511if eval "test \"\${$as_ac_Header+set}\" = set"; then
6512  echo $ECHO_N "(cached) $ECHO_C" >&6
6513else
6514  cat >conftest.$ac_ext <<_ACEOF
6515/* confdefs.h.  */
6516_ACEOF
6517cat confdefs.h >>conftest.$ac_ext
6518cat >>conftest.$ac_ext <<_ACEOF
6519/* end confdefs.h.  */
6520$ac_includes_default
6521
6522#include <$ac_header>
6523_ACEOF
6524rm -f conftest.$ac_objext
6525if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6526  (eval $ac_compile) 2>conftest.er1
6527  ac_status=$?
6528  grep -v '^ *+' conftest.er1 >conftest.err
6529  rm -f conftest.er1
6530  cat conftest.err >&5
6531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6532  (exit $ac_status); } &&
6533         { ac_try='test -z "$ac_c_werror_flag"
6534                         || test ! -s conftest.err'
6535  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6536  (eval $ac_try) 2>&5
6537  ac_status=$?
6538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539  (exit $ac_status); }; } &&
6540         { ac_try='test -s conftest.$ac_objext'
6541  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6542  (eval $ac_try) 2>&5
6543  ac_status=$?
6544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545  (exit $ac_status); }; }; then
6546  eval "$as_ac_Header=yes"
6547else
6548  echo "$as_me: failed program was:" >&5
6549sed 's/^/| /' conftest.$ac_ext >&5
6550
6551eval "$as_ac_Header=no"
6552fi
6553rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6554fi
6555echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6556echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6557if test `eval echo '${'$as_ac_Header'}'` = yes; then
6558  cat >>confdefs.h <<_ACEOF
6559#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6560_ACEOF
6561
6562fi
6563
6564done
6565
6566
6567
6568for ac_header in dlfcn.h
6569do
6570as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6571if eval "test \"\${$as_ac_Header+set}\" = set"; then
6572  echo "$as_me:$LINENO: checking for $ac_header" >&5
6573echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6574if eval "test \"\${$as_ac_Header+set}\" = set"; then
6575  echo $ECHO_N "(cached) $ECHO_C" >&6
6576fi
6577echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6578echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6579else
6580  # Is the header compilable?
6581echo "$as_me:$LINENO: checking $ac_header usability" >&5
6582echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6583cat >conftest.$ac_ext <<_ACEOF
6584/* confdefs.h.  */
6585_ACEOF
6586cat confdefs.h >>conftest.$ac_ext
6587cat >>conftest.$ac_ext <<_ACEOF
6588/* end confdefs.h.  */
6589$ac_includes_default
6590#include <$ac_header>
6591_ACEOF
6592rm -f conftest.$ac_objext
6593if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6594  (eval $ac_compile) 2>conftest.er1
6595  ac_status=$?
6596  grep -v '^ *+' conftest.er1 >conftest.err
6597  rm -f conftest.er1
6598  cat conftest.err >&5
6599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6600  (exit $ac_status); } &&
6601         { ac_try='test -z "$ac_c_werror_flag"
6602                         || test ! -s conftest.err'
6603  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6604  (eval $ac_try) 2>&5
6605  ac_status=$?
6606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607  (exit $ac_status); }; } &&
6608         { ac_try='test -s conftest.$ac_objext'
6609  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6610  (eval $ac_try) 2>&5
6611  ac_status=$?
6612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613  (exit $ac_status); }; }; then
6614  ac_header_compiler=yes
6615else
6616  echo "$as_me: failed program was:" >&5
6617sed 's/^/| /' conftest.$ac_ext >&5
6618
6619ac_header_compiler=no
6620fi
6621rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6622echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6623echo "${ECHO_T}$ac_header_compiler" >&6
6624
6625# Is the header present?
6626echo "$as_me:$LINENO: checking $ac_header presence" >&5
6627echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6628cat >conftest.$ac_ext <<_ACEOF
6629/* confdefs.h.  */
6630_ACEOF
6631cat confdefs.h >>conftest.$ac_ext
6632cat >>conftest.$ac_ext <<_ACEOF
6633/* end confdefs.h.  */
6634#include <$ac_header>
6635_ACEOF
6636if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6637  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6638  ac_status=$?
6639  grep -v '^ *+' conftest.er1 >conftest.err
6640  rm -f conftest.er1
6641  cat conftest.err >&5
6642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6643  (exit $ac_status); } >/dev/null; then
6644  if test -s conftest.err; then
6645    ac_cpp_err=$ac_c_preproc_warn_flag
6646    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6647  else
6648    ac_cpp_err=
6649  fi
6650else
6651  ac_cpp_err=yes
6652fi
6653if test -z "$ac_cpp_err"; then
6654  ac_header_preproc=yes
6655else
6656  echo "$as_me: failed program was:" >&5
6657sed 's/^/| /' conftest.$ac_ext >&5
6658
6659  ac_header_preproc=no
6660fi
6661rm -f conftest.err conftest.$ac_ext
6662echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6663echo "${ECHO_T}$ac_header_preproc" >&6
6664
6665# So?  What about this header?
6666case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6667  yes:no: )
6668    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6669echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6670    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6671echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6672    ac_header_preproc=yes
6673    ;;
6674  no:yes:* )
6675    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6676echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6677    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6678echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6679    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6680echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6681    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6682echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6683    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6684echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6685    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6686echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6687    (
6688      cat <<\_ASBOX
6689## ------------------------------------ ##
6690## Report this to cbc@lists.coin-or.org ##
6691## ------------------------------------ ##
6692_ASBOX
6693    ) |
6694      sed "s/^/$as_me: WARNING:     /" >&2
6695    ;;
6696esac
6697echo "$as_me:$LINENO: checking for $ac_header" >&5
6698echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6699if eval "test \"\${$as_ac_Header+set}\" = set"; then
6700  echo $ECHO_N "(cached) $ECHO_C" >&6
6701else
6702  eval "$as_ac_Header=\$ac_header_preproc"
6703fi
6704echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6705echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6706
6707fi
6708if test `eval echo '${'$as_ac_Header'}'` = yes; then
6709  cat >>confdefs.h <<_ACEOF
6710#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6711_ACEOF
6712
6713fi
6714
6715done
6716
6717
6718
6719if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6720    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6721    (test "X$CXX" != "Xg++"))) ; then
6722  ac_ext=cc
6723ac_cpp='$CXXCPP $CPPFLAGS'
6724ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6725ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6726ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6727echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6728echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6729if test -z "$CXXCPP"; then
6730  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6731  echo $ECHO_N "(cached) $ECHO_C" >&6
6732else
6733      # Double quotes because CXXCPP needs to be expanded
6734    for CXXCPP in "$CXX -E" "/lib/cpp"
6735    do
6736      ac_preproc_ok=false
6737for ac_cxx_preproc_warn_flag in '' yes
6738do
6739  # Use a header file that comes with gcc, so configuring glibc
6740  # with a fresh cross-compiler works.
6741  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6742  # <limits.h> exists even on freestanding compilers.
6743  # On the NeXT, cc -E runs the code through the compiler's parser,
6744  # not just through cpp. "Syntax error" is here to catch this case.
6745  cat >conftest.$ac_ext <<_ACEOF
6746/* confdefs.h.  */
6747_ACEOF
6748cat confdefs.h >>conftest.$ac_ext
6749cat >>conftest.$ac_ext <<_ACEOF
6750/* end confdefs.h.  */
6751#ifdef __STDC__
6752# include <limits.h>
6753#else
6754# include <assert.h>
6755#endif
6756                     Syntax error
6757_ACEOF
6758if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6759  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6760  ac_status=$?
6761  grep -v '^ *+' conftest.er1 >conftest.err
6762  rm -f conftest.er1
6763  cat conftest.err >&5
6764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6765  (exit $ac_status); } >/dev/null; then
6766  if test -s conftest.err; then
6767    ac_cpp_err=$ac_cxx_preproc_warn_flag
6768    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6769  else
6770    ac_cpp_err=
6771  fi
6772else
6773  ac_cpp_err=yes
6774fi
6775if test -z "$ac_cpp_err"; then
6776  :
6777else
6778  echo "$as_me: failed program was:" >&5
6779sed 's/^/| /' conftest.$ac_ext >&5
6780
6781  # Broken: fails on valid input.
6782continue
6783fi
6784rm -f conftest.err conftest.$ac_ext
6785
6786  # OK, works on sane cases.  Now check whether non-existent headers
6787  # can be detected and how.
6788  cat >conftest.$ac_ext <<_ACEOF
6789/* confdefs.h.  */
6790_ACEOF
6791cat confdefs.h >>conftest.$ac_ext
6792cat >>conftest.$ac_ext <<_ACEOF
6793/* end confdefs.h.  */
6794#include <ac_nonexistent.h>
6795_ACEOF
6796if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6797  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6798  ac_status=$?
6799  grep -v '^ *+' conftest.er1 >conftest.err
6800  rm -f conftest.er1
6801  cat conftest.err >&5
6802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6803  (exit $ac_status); } >/dev/null; then
6804  if test -s conftest.err; then
6805    ac_cpp_err=$ac_cxx_preproc_warn_flag
6806    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6807  else
6808    ac_cpp_err=
6809  fi
6810else
6811  ac_cpp_err=yes
6812fi
6813if test -z "$ac_cpp_err"; then
6814  # Broken: success on invalid input.
6815continue
6816else
6817  echo "$as_me: failed program was:" >&5
6818sed 's/^/| /' conftest.$ac_ext >&5
6819
6820  # Passes both tests.
6821ac_preproc_ok=:
6822break
6823fi
6824rm -f conftest.err conftest.$ac_ext
6825
6826done
6827# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6828rm -f conftest.err conftest.$ac_ext
6829if $ac_preproc_ok; then
6830  break
6831fi
6832
6833    done
6834    ac_cv_prog_CXXCPP=$CXXCPP
6835
6836fi
6837  CXXCPP=$ac_cv_prog_CXXCPP
6838else
6839  ac_cv_prog_CXXCPP=$CXXCPP
6840fi
6841echo "$as_me:$LINENO: result: $CXXCPP" >&5
6842echo "${ECHO_T}$CXXCPP" >&6
6843ac_preproc_ok=false
6844for ac_cxx_preproc_warn_flag in '' yes
6845do
6846  # Use a header file that comes with gcc, so configuring glibc
6847  # with a fresh cross-compiler works.
6848  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6849  # <limits.h> exists even on freestanding compilers.
6850  # On the NeXT, cc -E runs the code through the compiler's parser,
6851  # not just through cpp. "Syntax error" is here to catch this case.
6852  cat >conftest.$ac_ext <<_ACEOF
6853/* confdefs.h.  */
6854_ACEOF
6855cat confdefs.h >>conftest.$ac_ext
6856cat >>conftest.$ac_ext <<_ACEOF
6857/* end confdefs.h.  */
6858#ifdef __STDC__
6859# include <limits.h>
6860#else
6861# include <assert.h>
6862#endif
6863                     Syntax error
6864_ACEOF
6865if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6866  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6867  ac_status=$?
6868  grep -v '^ *+' conftest.er1 >conftest.err
6869  rm -f conftest.er1
6870  cat conftest.err >&5
6871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6872  (exit $ac_status); } >/dev/null; then
6873  if test -s conftest.err; then
6874    ac_cpp_err=$ac_cxx_preproc_warn_flag
6875    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6876  else
6877    ac_cpp_err=
6878  fi
6879else
6880  ac_cpp_err=yes
6881fi
6882if test -z "$ac_cpp_err"; then
6883  :
6884else
6885  echo "$as_me: failed program was:" >&5
6886sed 's/^/| /' conftest.$ac_ext >&5
6887
6888  # Broken: fails on valid input.
6889continue
6890fi
6891rm -f conftest.err conftest.$ac_ext
6892
6893  # OK, works on sane cases.  Now check whether non-existent headers
6894  # can be detected and how.
6895  cat >conftest.$ac_ext <<_ACEOF
6896/* confdefs.h.  */
6897_ACEOF
6898cat confdefs.h >>conftest.$ac_ext
6899cat >>conftest.$ac_ext <<_ACEOF
6900/* end confdefs.h.  */
6901#include <ac_nonexistent.h>
6902_ACEOF
6903if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6904  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6905  ac_status=$?
6906  grep -v '^ *+' conftest.er1 >conftest.err
6907  rm -f conftest.er1
6908  cat conftest.err >&5
6909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910  (exit $ac_status); } >/dev/null; then
6911  if test -s conftest.err; then
6912    ac_cpp_err=$ac_cxx_preproc_warn_flag
6913    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6914  else
6915    ac_cpp_err=
6916  fi
6917else
6918  ac_cpp_err=yes
6919fi
6920if test -z "$ac_cpp_err"; then
6921  # Broken: success on invalid input.
6922continue
6923else
6924  echo "$as_me: failed program was:" >&5
6925sed 's/^/| /' conftest.$ac_ext >&5
6926
6927  # Passes both tests.
6928ac_preproc_ok=:
6929break
6930fi
6931rm -f conftest.err conftest.$ac_ext
6932
6933done
6934# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6935rm -f conftest.err conftest.$ac_ext
6936if $ac_preproc_ok; then
6937  :
6938else
6939  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6940See \`config.log' for more details." >&5
6941echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6942See \`config.log' for more details." >&2;}
6943   { (exit 1); exit 1; }; }
6944fi
6945
6946ac_ext=cc
6947ac_cpp='$CXXCPP $CPPFLAGS'
6948ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6949ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6950ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6951
6952fi
6953
6954ac_ext=f
6955ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6956ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6957ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6958if test -n "$ac_tool_prefix"; then
6959  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6960  do
6961    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6962set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6963echo "$as_me:$LINENO: checking for $ac_word" >&5
6964echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6965if test "${ac_cv_prog_F77+set}" = set; then
6966  echo $ECHO_N "(cached) $ECHO_C" >&6
6967else
6968  if test -n "$F77"; then
6969  ac_cv_prog_F77="$F77" # Let the user override the test.
6970else
6971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6972for as_dir in $PATH
6973do
6974  IFS=$as_save_IFS
6975  test -z "$as_dir" && as_dir=.
6976  for ac_exec_ext in '' $ac_executable_extensions; do
6977  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6978    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6979    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6980    break 2
6981  fi
6982done
6983done
6984
6985fi
6986fi
6987F77=$ac_cv_prog_F77
6988if test -n "$F77"; then
6989  echo "$as_me:$LINENO: result: $F77" >&5
6990echo "${ECHO_T}$F77" >&6
6991else
6992  echo "$as_me:$LINENO: result: no" >&5
6993echo "${ECHO_T}no" >&6
6994fi
6995
6996    test -n "$F77" && break
6997  done
6998fi
6999if test -z "$F77"; then
7000  ac_ct_F77=$F77
7001  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7002do
7003  # Extract the first word of "$ac_prog", so it can be a program name with args.
7004set dummy $ac_prog; ac_word=$2
7005echo "$as_me:$LINENO: checking for $ac_word" >&5
7006echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7007if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7008  echo $ECHO_N "(cached) $ECHO_C" >&6
7009else
7010  if test -n "$ac_ct_F77"; then
7011  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7012else
7013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7014for as_dir in $PATH
7015do
7016  IFS=$as_save_IFS
7017  test -z "$as_dir" && as_dir=.
7018  for ac_exec_ext in '' $ac_executable_extensions; do
7019  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7020    ac_cv_prog_ac_ct_F77="$ac_prog"
7021    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7022    break 2
7023  fi
7024done
7025done
7026
7027fi
7028fi
7029ac_ct_F77=$ac_cv_prog_ac_ct_F77
7030if test -n "$ac_ct_F77"; then
7031  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7032echo "${ECHO_T}$ac_ct_F77" >&6
7033else
7034  echo "$as_me:$LINENO: result: no" >&5
7035echo "${ECHO_T}no" >&6
7036fi
7037
7038  test -n "$ac_ct_F77" && break
7039done
7040
7041  F77=$ac_ct_F77
7042fi
7043
7044
7045# Provide some information about the compiler.
7046echo "$as_me:7046:" \
7047     "checking for Fortran 77 compiler version" >&5
7048ac_compiler=`set X $ac_compile; echo $2`
7049{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7050  (eval $ac_compiler --version </dev/null >&5) 2>&5
7051  ac_status=$?
7052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7053  (exit $ac_status); }
7054{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7055  (eval $ac_compiler -v </dev/null >&5) 2>&5
7056  ac_status=$?
7057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7058  (exit $ac_status); }
7059{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7060  (eval $ac_compiler -V </dev/null >&5) 2>&5
7061  ac_status=$?
7062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7063  (exit $ac_status); }
7064rm -f a.out
7065
7066# If we don't use `.F' as extension, the preprocessor is not run on the
7067# input file.  (Note that this only needs to work for GNU compilers.)
7068ac_save_ext=$ac_ext
7069ac_ext=F
7070echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7071echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
7072if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7073  echo $ECHO_N "(cached) $ECHO_C" >&6
7074else
7075  cat >conftest.$ac_ext <<_ACEOF
7076      program main
7077#ifndef __GNUC__
7078       choke me
7079#endif
7080
7081      end
7082_ACEOF
7083rm -f conftest.$ac_objext
7084if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7085  (eval $ac_compile) 2>conftest.er1
7086  ac_status=$?
7087  grep -v '^ *+' conftest.er1 >conftest.err
7088  rm -f conftest.er1
7089  cat conftest.err >&5
7090  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091  (exit $ac_status); } &&
7092         { ac_try='test -z "$ac_f77_werror_flag"
7093                         || test ! -s conftest.err'
7094  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7095  (eval $ac_try) 2>&5
7096  ac_status=$?
7097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7098  (exit $ac_status); }; } &&
7099         { ac_try='test -s conftest.$ac_objext'
7100  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7101  (eval $ac_try) 2>&5
7102  ac_status=$?
7103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7104  (exit $ac_status); }; }; then
7105  ac_compiler_gnu=yes
7106else
7107  echo "$as_me: failed program was:" >&5
7108sed 's/^/| /' conftest.$ac_ext >&5
7109
7110ac_compiler_gnu=no
7111fi
7112rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7113ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7114
7115fi
7116echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7117echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7118ac_ext=$ac_save_ext
7119ac_test_FFLAGS=${FFLAGS+set}
7120ac_save_FFLAGS=$FFLAGS
7121FFLAGS=
7122echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7123echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7124if test "${ac_cv_prog_f77_g+set}" = set; then
7125  echo $ECHO_N "(cached) $ECHO_C" >&6
7126else
7127  FFLAGS=-g
7128cat >conftest.$ac_ext <<_ACEOF
7129      program main
7130
7131      end
7132_ACEOF
7133rm -f conftest.$ac_objext
7134if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7135  (eval $ac_compile) 2>conftest.er1
7136  ac_status=$?
7137  grep -v '^ *+' conftest.er1 >conftest.err
7138  rm -f conftest.er1
7139  cat conftest.err >&5
7140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7141  (exit $ac_status); } &&
7142         { ac_try='test -z "$ac_f77_werror_flag"
7143                         || test ! -s conftest.err'
7144  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7145  (eval $ac_try) 2>&5
7146  ac_status=$?
7147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7148  (exit $ac_status); }; } &&
7149         { ac_try='test -s conftest.$ac_objext'
7150  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7151  (eval $ac_try) 2>&5
7152  ac_status=$?
7153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7154  (exit $ac_status); }; }; then
7155  ac_cv_prog_f77_g=yes
7156else
7157  echo "$as_me: failed program was:" >&5
7158sed 's/^/| /' conftest.$ac_ext >&5
7159
7160ac_cv_prog_f77_g=no
7161fi
7162rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7163
7164fi
7165echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7166echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7167if test "$ac_test_FFLAGS" = set; then
7168  FFLAGS=$ac_save_FFLAGS
7169elif test $ac_cv_prog_f77_g = yes; then
7170  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7171    FFLAGS="-g -O2"
7172  else
7173    FFLAGS="-g"
7174  fi
7175else
7176  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7177    FFLAGS="-O2"
7178  else
7179    FFLAGS=
7180  fi
7181fi
7182
7183G77=`test $ac_compiler_gnu = yes && echo yes`
7184ac_ext=c
7185ac_cpp='$CPP $CPPFLAGS'
7186ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7187ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7188ac_compiler_gnu=$ac_cv_c_compiler_gnu
7189
7190
7191
7192# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7193
7194# find the maximum length of command line arguments
7195echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7196echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7197if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7198  echo $ECHO_N "(cached) $ECHO_C" >&6
7199else
7200    i=0
7201  teststring="ABCD"
7202
7203  case $build_os in
7204  msdosdjgpp*)
7205    # On DJGPP, this test can blow up pretty badly due to problems in libc
7206    # (any single argument exceeding 2000 bytes causes a buffer overrun
7207    # during glob expansion).  Even if it were fixed, the result of this
7208    # check would be larger than it should be.
7209    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7210    ;;
7211
7212  gnu*)
7213    # Under GNU Hurd, this test is not required because there is
7214    # no limit to the length of command line arguments.
7215    # Libtool will interpret -1 as no limit whatsoever
7216    lt_cv_sys_max_cmd_len=-1;
7217    ;;
7218
7219  cygwin* | mingw*)
7220    # On Win9x/ME, this test blows up -- it succeeds, but takes
7221    # about 5 minutes as the teststring grows exponentially.
7222    # Worse, since 9x/ME are not pre-emptively multitasking,
7223    # you end up with a "frozen" computer, even though with patience
7224    # the test eventually succeeds (with a max line length of 256k).
7225    # Instead, let's just punt: use the minimum linelength reported by
7226    # all of the supported platforms: 8192 (on NT/2K/XP).
7227    lt_cv_sys_max_cmd_len=8192;
7228    ;;
7229
7230  amigaos*)
7231    # On AmigaOS with pdksh, this test takes hours, literally.
7232    # So we just punt and use a minimum line length of 8192.
7233    lt_cv_sys_max_cmd_len=8192;
7234    ;;
7235
7236  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7237    # This has been around since 386BSD, at least.  Likely further.
7238    if test -x /sbin/sysctl; then
7239      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7240    elif test -x /usr/sbin/sysctl; then
7241      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7242    else
7243      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7244    fi
7245    # And add a safety zone
7246    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7247    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7248    ;;
7249
7250  interix*)
7251    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7252    lt_cv_sys_max_cmd_len=196608
7253    ;;
7254
7255  osf*)
7256    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7257    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7258    # nice to cause kernel panics so lets avoid the loop below.
7259    # First set a reasonable default.
7260    lt_cv_sys_max_cmd_len=16384
7261    #
7262    if test -x /sbin/sysconfig; then
7263      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7264        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7265      esac
7266    fi
7267    ;;
7268  sco3.2v5*)
7269    lt_cv_sys_max_cmd_len=102400
7270    ;;
7271  sysv5* | sco5v6* | sysv4.2uw2*)
7272    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7273    if test -n "$kargmax"; then
7274      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7275    else
7276      lt_cv_sys_max_cmd_len=32768
7277    fi
7278    ;;
7279  *)
7280    # If test is not a shell built-in, we'll probably end up computing a
7281    # maximum length that is only half of the actual maximum length, but
7282    # we can't tell.
7283    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7284    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7285               = "XX$teststring") >/dev/null 2>&1 &&
7286            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7287            lt_cv_sys_max_cmd_len=$new_result &&
7288            test $i != 17 # 1/2 MB should be enough
7289    do
7290      i=`expr $i + 1`
7291      teststring=$teststring$teststring
7292    done
7293    teststring=
7294    # Add a significant safety factor because C++ compilers can tack on massive
7295    # amounts of additional arguments before passing them to the linker.
7296    # It appears as though 1/2 is a usable value.
7297    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7298    ;;
7299  esac
7300
7301fi
7302
7303if test -n $lt_cv_sys_max_cmd_len ; then
7304  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7305echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7306else
7307  echo "$as_me:$LINENO: result: none" >&5
7308echo "${ECHO_T}none" >&6
7309fi
7310
7311
7312
7313
7314# Check for command to grab the raw symbol name followed by C symbol from nm.
7315echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7316echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7317if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7318  echo $ECHO_N "(cached) $ECHO_C" >&6
7319else
7320
7321# These are sane defaults that work on at least a few old systems.
7322# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7323
7324# Character class describing NM global symbol codes.
7325symcode='[BCDEGRST]'
7326
7327# Regexp to match symbols that can be accessed directly from C.
7328sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7329
7330# Transform an extracted symbol line into a proper C declaration
7331lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7332
7333# Transform an extracted symbol line into symbol name and symbol address
7334lt_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'"
7335
7336# Define system-specific variables.
7337case $host_os in
7338aix*)
7339  symcode='[BCDT]'
7340  ;;
7341cygwin* | mingw* | pw32*)
7342  symcode='[ABCDGISTW]'
7343  ;;
7344hpux*) # Its linker distinguishes data from code symbols
7345  if test "$host_cpu" = ia64; then
7346    symcode='[ABCDEGRST]'
7347  fi
7348  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7349  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'"
7350  ;;
7351linux*)
7352  if test "$host_cpu" = ia64; then
7353    symcode='[ABCDGIRSTW]'
7354    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7355    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'"
7356  fi
7357  ;;
7358irix* | nonstopux*)
7359  symcode='[BCDEGRST]'
7360  ;;
7361osf*)
7362  symcode='[BCDEGQRST]'
7363  ;;
7364solaris*)
7365  symcode='[BDRT]'
7366  ;;
7367sco3.2v5*)
7368  symcode='[DT]'
7369  ;;
7370sysv4.2uw2*)
7371  symcode='[DT]'
7372  ;;
7373sysv5* | sco5v6* | unixware* | OpenUNIX*)
7374  symcode='[ABDT]'
7375  ;;
7376sysv4)
7377  symcode='[DFNSTU]'
7378  ;;
7379esac
7380
7381# Handle CRLF in mingw tool chain
7382opt_cr=
7383case $build_os in
7384mingw*)
7385  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7386  ;;
7387esac
7388
7389# If we're using GNU nm, then use its standard symbol codes.
7390case `$NM -V 2>&1` in
7391*GNU* | *'with BFD'*)
7392  symcode='[ABCDGIRSTW]' ;;
7393esac
7394
7395# Try without a prefix undercore, then with it.
7396for ac_symprfx in "" "_"; do
7397
7398  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7399  symxfrm="\\1 $ac_symprfx\\2 \\2"
7400
7401  # Write the raw and C identifiers.
7402  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7403
7404  # Check to see that the pipe works correctly.
7405  pipe_works=no
7406
7407  rm -f conftest*
7408  cat > conftest.$ac_ext <<EOF
7409#ifdef __cplusplus
7410extern "C" {
7411#endif
7412char nm_test_var;
7413void nm_test_func(){}
7414#ifdef __cplusplus
7415}
7416#endif
7417int main(){nm_test_var='a';nm_test_func();return(0);}
7418EOF
7419
7420  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7421  (eval $ac_compile) 2>&5
7422  ac_status=$?
7423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424  (exit $ac_status); }; then
7425    # Now try to grab the symbols.
7426    nlist=conftest.nm
7427    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7428  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7429  ac_status=$?
7430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431  (exit $ac_status); } && test -s "$nlist"; then
7432      # Try sorting and uniquifying the output.
7433      if sort "$nlist" | uniq > "$nlist"T; then
7434        mv -f "$nlist"T "$nlist"
7435      else
7436        rm -f "$nlist"T
7437      fi
7438
7439      # Make sure that we snagged all the symbols we need.
7440      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7441        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7442          cat <<EOF > conftest.$ac_ext
7443#ifdef __cplusplus
7444extern "C" {
7445#endif
7446
7447EOF
7448          # Now generate the symbol file.
7449          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7450
7451          cat <<EOF >> conftest.$ac_ext
7452#if defined (__STDC__) && __STDC__
7453# define lt_ptr_t void *
7454#else
7455# define lt_ptr_t char *
7456# define const
7457#endif
7458
7459/* The mapping between symbol names and symbols. */
7460const struct {
7461  const char *name;
7462  lt_ptr_t address;
7463}
7464lt_preloaded_symbols[] =
7465{
7466EOF
7467          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7468          cat <<\EOF >> conftest.$ac_ext
7469  {0, (lt_ptr_t) 0}
7470};
7471
7472#ifdef __cplusplus
7473}
7474#endif
7475EOF
7476          # Now try linking the two files.
7477          mv conftest.$ac_objext conftstm.$ac_objext
7478          lt_save_LIBS="$LIBS"
7479          lt_save_CFLAGS="$CFLAGS"
7480          LIBS="conftstm.$ac_objext"
7481          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7482          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7483  (eval $ac_link) 2>&5
7484  ac_status=$?
7485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7486  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7487            pipe_works=yes
7488          fi
7489          LIBS="$lt_save_LIBS"
7490          CFLAGS="$lt_save_CFLAGS"
7491        else
7492          echo "cannot find nm_test_func in $nlist" >&5
7493        fi
7494      else
7495        echo "cannot find nm_test_var in $nlist" >&5
7496      fi
7497    else
7498      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7499    fi
7500  else
7501    echo "$progname: failed program was:" >&5
7502    cat conftest.$ac_ext >&5
7503  fi
7504  rm -f conftest* conftst*
7505
7506  # Do not use the global_symbol_pipe unless it works.
7507  if test "$pipe_works" = yes; then
7508    break
7509  else
7510    lt_cv_sys_global_symbol_pipe=
7511  fi
7512done
7513
7514fi
7515
7516if test -z "$lt_cv_sys_global_symbol_pipe"; then
7517  lt_cv_sys_global_symbol_to_cdecl=
7518fi
7519if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7520  echo "$as_me:$LINENO: result: failed" >&5
7521echo "${ECHO_T}failed" >&6
7522else
7523  echo "$as_me:$LINENO: result: ok" >&5
7524echo "${ECHO_T}ok" >&6
7525fi
7526
7527echo "$as_me:$LINENO: checking for objdir" >&5
7528echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7529if test "${lt_cv_objdir+set}" = set; then
7530  echo $ECHO_N "(cached) $ECHO_C" >&6
7531else
7532  rm -f .libs 2>/dev/null
7533mkdir .libs 2>/dev/null
7534if test -d .libs; then
7535  lt_cv_objdir=.libs
7536else
7537  # MS-DOS does not allow filenames that begin with a dot.
7538  lt_cv_objdir=_libs
7539fi
7540rmdir .libs 2>/dev/null
7541fi
7542echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7543echo "${ECHO_T}$lt_cv_objdir" >&6
7544objdir=$lt_cv_objdir
7545
7546
7547
7548
7549
7550case $host_os in
7551aix3*)
7552  # AIX sometimes has problems with the GCC collect2 program.  For some
7553  # reason, if we set the COLLECT_NAMES environment variable, the problems
7554  # vanish in a puff of smoke.
7555  if test "X${COLLECT_NAMES+set}" != Xset; then
7556    COLLECT_NAMES=
7557    export COLLECT_NAMES
7558  fi
7559  ;;
7560esac
7561
7562# Sed substitution that helps us do robust quoting.  It backslashifies
7563# metacharacters that are still active within double-quoted strings.
7564Xsed='sed -e 1s/^X//'
7565sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7566
7567# Same as above, but do not quote variable references.
7568double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7569
7570# Sed substitution to delay expansion of an escaped shell variable in a
7571# double_quote_subst'ed string.
7572delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7573
7574# Sed substitution to avoid accidental globbing in evaled expressions
7575no_glob_subst='s/\*/\\\*/g'
7576
7577# Constants:
7578rm="rm -f"
7579
7580# Global variables:
7581default_ofile=libtool
7582can_build_shared=yes
7583
7584# All known linkers require a `.a' archive for static linking (except MSVC,
7585# which needs '.lib').
7586libext=a
7587ltmain="$ac_aux_dir/ltmain.sh"
7588ofile="$default_ofile"
7589with_gnu_ld="$lt_cv_prog_gnu_ld"
7590
7591if test -n "$ac_tool_prefix"; then
7592  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7593set dummy ${ac_tool_prefix}ar; ac_word=$2
7594echo "$as_me:$LINENO: checking for $ac_word" >&5
7595echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7596if test "${ac_cv_prog_AR+set}" = set; then
7597  echo $ECHO_N "(cached) $ECHO_C" >&6
7598else
7599  if test -n "$AR"; then
7600  ac_cv_prog_AR="$AR" # Let the user override the test.
7601else
7602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7603for as_dir in $PATH
7604do
7605  IFS=$as_save_IFS
7606  test -z "$as_dir" && as_dir=.
7607  for ac_exec_ext in '' $ac_executable_extensions; do
7608  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7609    ac_cv_prog_AR="${ac_tool_prefix}ar"
7610    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7611    break 2
7612  fi
7613done
7614done
7615
7616fi
7617fi
7618AR=$ac_cv_prog_AR
7619if test -n "$AR"; then
7620  echo "$as_me:$LINENO: result: $AR" >&5
7621echo "${ECHO_T}$AR" >&6
7622else
7623  echo "$as_me:$LINENO: result: no" >&5
7624echo "${ECHO_T}no" >&6
7625fi
7626
7627fi
7628if test -z "$ac_cv_prog_AR"; then
7629  ac_ct_AR=$AR
7630  # Extract the first word of "ar", so it can be a program name with args.
7631set dummy ar; ac_word=$2
7632echo "$as_me:$LINENO: checking for $ac_word" >&5
7633echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7634if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7635  echo $ECHO_N "(cached) $ECHO_C" >&6
7636else
7637  if test -n "$ac_ct_AR"; then
7638  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7639else
7640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7641for as_dir in $PATH
7642do
7643  IFS=$as_save_IFS
7644  test -z "$as_dir" && as_dir=.
7645  for ac_exec_ext in '' $ac_executable_extensions; do
7646  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7647    ac_cv_prog_ac_ct_AR="ar"
7648    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7649    break 2
7650  fi
7651done
7652done
7653
7654  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7655fi
7656fi
7657ac_ct_AR=$ac_cv_prog_ac_ct_AR
7658if test -n "$ac_ct_AR"; then
7659  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7660echo "${ECHO_T}$ac_ct_AR" >&6
7661else
7662  echo "$as_me:$LINENO: result: no" >&5
7663echo "${ECHO_T}no" >&6
7664fi
7665
7666  AR=$ac_ct_AR
7667else
7668  AR="$ac_cv_prog_AR"
7669fi
7670
7671if test -n "$ac_tool_prefix"; then
7672  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7673set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7674echo "$as_me:$LINENO: checking for $ac_word" >&5
7675echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7676if test "${ac_cv_prog_RANLIB+set}" = set; then
7677  echo $ECHO_N "(cached) $ECHO_C" >&6
7678else
7679  if test -n "$RANLIB"; then
7680  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7681else
7682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7683for as_dir in $PATH
7684do
7685  IFS=$as_save_IFS
7686  test -z "$as_dir" && as_dir=.
7687  for ac_exec_ext in '' $ac_executable_extensions; do
7688  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7689    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7690    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7691    break 2
7692  fi
7693done
7694done
7695
7696fi
7697fi
7698RANLIB=$ac_cv_prog_RANLIB
7699if test -n "$RANLIB"; then
7700  echo "$as_me:$LINENO: result: $RANLIB" >&5
7701echo "${ECHO_T}$RANLIB" >&6
7702else
7703  echo "$as_me:$LINENO: result: no" >&5
7704echo "${ECHO_T}no" >&6
7705fi
7706
7707fi
7708if test -z "$ac_cv_prog_RANLIB"; then
7709  ac_ct_RANLIB=$RANLIB
7710  # Extract the first word of "ranlib", so it can be a program name with args.
7711set dummy ranlib; ac_word=$2
7712echo "$as_me:$LINENO: checking for $ac_word" >&5
7713echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7714if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7715  echo $ECHO_N "(cached) $ECHO_C" >&6
7716else
7717  if test -n "$ac_ct_RANLIB"; then
7718  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7719else
7720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7721for as_dir in $PATH
7722do
7723  IFS=$as_save_IFS
7724  test -z "$as_dir" && as_dir=.
7725  for ac_exec_ext in '' $ac_executable_extensions; do
7726  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7727    ac_cv_prog_ac_ct_RANLIB="ranlib"
7728    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7729    break 2
7730  fi
7731done
7732done
7733
7734  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7735fi
7736fi
7737ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7738if test -n "$ac_ct_RANLIB"; then
7739  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7740echo "${ECHO_T}$ac_ct_RANLIB" >&6
7741else
7742  echo "$as_me:$LINENO: result: no" >&5
7743echo "${ECHO_T}no" >&6
7744fi
7745
7746  RANLIB=$ac_ct_RANLIB
7747else
7748  RANLIB="$ac_cv_prog_RANLIB"
7749fi
7750
7751if test -n "$ac_tool_prefix"; then
7752  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7753set dummy ${ac_tool_prefix}strip; ac_word=$2
7754echo "$as_me:$LINENO: checking for $ac_word" >&5
7755echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7756if test "${ac_cv_prog_STRIP+set}" = set; then
7757  echo $ECHO_N "(cached) $ECHO_C" >&6
7758else
7759  if test -n "$STRIP"; then
7760  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7761else
7762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7763for as_dir in $PATH
7764do
7765  IFS=$as_save_IFS
7766  test -z "$as_dir" && as_dir=.
7767  for ac_exec_ext in '' $ac_executable_extensions; do
7768  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7769    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7770    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7771    break 2
7772  fi
7773done
7774done
7775
7776fi
7777fi
7778STRIP=$ac_cv_prog_STRIP
7779if test -n "$STRIP"; then
7780  echo "$as_me:$LINENO: result: $STRIP" >&5
7781echo "${ECHO_T}$STRIP" >&6
7782else
7783  echo "$as_me:$LINENO: result: no" >&5
7784echo "${ECHO_T}no" >&6
7785fi
7786
7787fi
7788if test -z "$ac_cv_prog_STRIP"; then
7789  ac_ct_STRIP=$STRIP
7790  # Extract the first word of "strip", so it can be a program name with args.
7791set dummy strip; ac_word=$2
7792echo "$as_me:$LINENO: checking for $ac_word" >&5
7793echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7794if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7795  echo $ECHO_N "(cached) $ECHO_C" >&6
7796else
7797  if test -n "$ac_ct_STRIP"; then
7798  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7799else
7800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7801for as_dir in $PATH
7802do
7803  IFS=$as_save_IFS
7804  test -z "$as_dir" && as_dir=.
7805  for ac_exec_ext in '' $ac_executable_extensions; do
7806  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7807    ac_cv_prog_ac_ct_STRIP="strip"
7808    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7809    break 2
7810  fi
7811done
7812done
7813
7814  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7815fi
7816fi
7817ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7818if test -n "$ac_ct_STRIP"; then
7819  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7820echo "${ECHO_T}$ac_ct_STRIP" >&6
7821else
7822  echo "$as_me:$LINENO: result: no" >&5
7823echo "${ECHO_T}no" >&6
7824fi
7825
7826  STRIP=$ac_ct_STRIP
7827else
7828  STRIP="$ac_cv_prog_STRIP"
7829fi
7830
7831
7832old_CC="$CC"
7833old_CFLAGS="$CFLAGS"
7834
7835# Set sane defaults for various variables
7836test -z "$AR" && AR=ar
7837test -z "$AR_FLAGS" && AR_FLAGS=cru
7838test -z "$AS" && AS=as
7839test -z "$CC" && CC=cc
7840test -z "$LTCC" && LTCC=$CC
7841test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7842test -z "$DLLTOOL" && DLLTOOL=dlltool
7843test -z "$LD" && LD=ld
7844test -z "$LN_S" && LN_S="ln -s"
7845test -z "$MAGIC_CMD" && MAGIC_CMD=file
7846test -z "$NM" && NM=nm
7847test -z "$SED" && SED=sed
7848test -z "$OBJDUMP" && OBJDUMP=objdump
7849test -z "$RANLIB" && RANLIB=:
7850test -z "$STRIP" && STRIP=:
7851test -z "$ac_objext" && ac_objext=o
7852
7853# Determine commands to create old-style static archives.
7854old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7855old_postinstall_cmds='chmod 644 $oldlib'
7856old_postuninstall_cmds=
7857
7858if test -n "$RANLIB"; then
7859  case $host_os in
7860  openbsd*)
7861    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7862    ;;
7863  *)
7864    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7865    ;;
7866  esac
7867  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7868fi
7869
7870for cc_temp in $compiler""; do
7871  case $cc_temp in
7872    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7873    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7874    \-*) ;;
7875    *) break;;
7876  esac
7877done
7878cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7879
7880
7881# Only perform the check for file, if the check method requires it
7882case $deplibs_check_method in
7883file_magic*)
7884  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7885    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7886echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7887if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7888  echo $ECHO_N "(cached) $ECHO_C" >&6
7889else
7890  case $MAGIC_CMD in
7891[\\/*] |  ?:[\\/]*)
7892  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7893  ;;
7894*)
7895  lt_save_MAGIC_CMD="$MAGIC_CMD"
7896  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7897  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7898  for ac_dir in $ac_dummy; do
7899    IFS="$lt_save_ifs"
7900    test -z "$ac_dir" && ac_dir=.
7901    if test -f $ac_dir/${ac_tool_prefix}file; then
7902      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7903      if test -n "$file_magic_test_file"; then
7904        case $deplibs_check_method in
7905        "file_magic "*)
7906          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7907          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7908          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7909            $EGREP "$file_magic_regex" > /dev/null; then
7910            :
7911          else
7912            cat <<EOF 1>&2
7913
7914*** Warning: the command libtool uses to detect shared libraries,
7915*** $file_magic_cmd, produces output that libtool cannot recognize.
7916*** The result is that libtool may fail to recognize shared libraries
7917*** as such.  This will affect the creation of libtool libraries that
7918*** depend on shared libraries, but programs linked with such libtool
7919*** libraries will work regardless of this problem.  Nevertheless, you
7920*** may want to report the problem to your system manager and/or to
7921*** bug-libtool@gnu.org
7922
7923EOF
7924          fi ;;
7925        esac
7926      fi
7927      break
7928    fi
7929  done
7930  IFS="$lt_save_ifs"
7931  MAGIC_CMD="$lt_save_MAGIC_CMD"
7932  ;;
7933esac
7934fi
7935
7936MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7937if test -n "$MAGIC_CMD"; then
7938  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7939echo "${ECHO_T}$MAGIC_CMD" >&6
7940else
7941  echo "$as_me:$LINENO: result: no" >&5
7942echo "${ECHO_T}no" >&6
7943fi
7944
7945if test -z "$lt_cv_path_MAGIC_CMD"; then
7946  if test -n "$ac_tool_prefix"; then
7947    echo "$as_me:$LINENO: checking for file" >&5
7948echo $ECHO_N "checking for file... $ECHO_C" >&6
7949if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7950  echo $ECHO_N "(cached) $ECHO_C" >&6
7951else
7952  case $MAGIC_CMD in
7953[\\/*] |  ?:[\\/]*)
7954  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7955  ;;
7956*)
7957  lt_save_MAGIC_CMD="$MAGIC_CMD"
7958  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7959  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7960  for ac_dir in $ac_dummy; do
7961    IFS="$lt_save_ifs"
7962    test -z "$ac_dir" && ac_dir=.
7963    if test -f $ac_dir/file; then
7964      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7965      if test -n "$file_magic_test_file"; then
7966        case $deplibs_check_method in
7967        "file_magic "*)
7968          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7969          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7970          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7971            $EGREP "$file_magic_regex" > /dev/null; then
7972            :
7973          else
7974            cat <<EOF 1>&2
7975
7976*** Warning: the command libtool uses to detect shared libraries,
7977*** $file_magic_cmd, produces output that libtool cannot recognize.
7978*** The result is that libtool may fail to recognize shared libraries
7979*** as such.  This will affect the creation of libtool libraries that
7980*** depend on shared libraries, but programs linked with such libtool
7981*** libraries will work regardless of this problem.  Nevertheless, you
7982*** may want to report the problem to your system manager and/or to
7983*** bug-libtool@gnu.org
7984
7985EOF
7986          fi ;;
7987        esac
7988      fi
7989      break
7990    fi
7991  done
7992  IFS="$lt_save_ifs"
7993  MAGIC_CMD="$lt_save_MAGIC_CMD"
7994  ;;
7995esac
7996fi
7997
7998MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7999if test -n "$MAGIC_CMD"; then
8000  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8001echo "${ECHO_T}$MAGIC_CMD" >&6
8002else
8003  echo "$as_me:$LINENO: result: no" >&5
8004echo "${ECHO_T}no" >&6
8005fi
8006
8007  else
8008    MAGIC_CMD=:
8009  fi
8010fi
8011
8012  fi
8013  ;;
8014esac
8015
8016enable_dlopen=no
8017enable_win32_dll=no
8018
8019# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8020if test "${enable_libtool_lock+set}" = set; then
8021  enableval="$enable_libtool_lock"
8022
8023fi;
8024test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8025
8026
8027# Check whether --with-pic or --without-pic was given.
8028if test "${with_pic+set}" = set; then
8029  withval="$with_pic"
8030  pic_mode="$withval"
8031else
8032  pic_mode=default
8033fi;
8034test -z "$pic_mode" && pic_mode=default
8035
8036# Use C for the default configuration in the libtool script
8037tagname=
8038lt_save_CC="$CC"
8039ac_ext=c
8040ac_cpp='$CPP $CPPFLAGS'
8041ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8042ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8043ac_compiler_gnu=$ac_cv_c_compiler_gnu
8044
8045
8046# Source file extension for C test sources.
8047ac_ext=c
8048
8049# Object file extension for compiled C test sources.
8050objext=o
8051objext=$objext
8052
8053# Code to be used in simple compile tests
8054lt_simple_compile_test_code="int some_variable = 0;\n"
8055
8056# Code to be used in simple link tests
8057lt_simple_link_test_code='int main(){return(0);}\n'
8058
8059
8060# If no C compiler was specified, use CC.
8061LTCC=${LTCC-"$CC"}
8062
8063# If no C compiler flags were specified, use CFLAGS.
8064LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8065
8066# Allow CC to be a program name with arguments.
8067compiler=$CC
8068
8069
8070# save warnings/boilerplate of simple test code
8071ac_outfile=conftest.$ac_objext
8072printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8073eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8074_lt_compiler_boilerplate=`cat conftest.err`
8075$rm conftest*
8076
8077ac_outfile=conftest.$ac_objext
8078printf "$lt_simple_link_test_code" >conftest.$ac_ext
8079eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8080_lt_linker_boilerplate=`cat conftest.err`
8081$rm conftest*
8082
8083
8084## CAVEAT EMPTOR:
8085## There is no encapsulation within the following macros, do not change
8086## the running order or otherwise move them around unless you know exactly
8087## what you are doing...
8088
8089lt_prog_compiler_no_builtin_flag=
8090
8091if test "$GCC" = yes; then
8092  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8093
8094
8095echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8096echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8097if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8098  echo $ECHO_N "(cached) $ECHO_C" >&6
8099else
8100  lt_cv_prog_compiler_rtti_exceptions=no
8101  ac_outfile=conftest.$ac_objext
8102   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8103   lt_compiler_flag="-fno-rtti -fno-exceptions"
8104   # Insert the option either (1) after the last *FLAGS variable, or
8105   # (2) before a word containing "conftest.", or (3) at the end.
8106   # Note that $ac_compile itself does not contain backslashes and begins
8107   # with a dollar sign (not a hyphen), so the echo should work correctly.
8108   # The option is referenced via a variable to avoid confusing sed.
8109   lt_compile=`echo "$ac_compile" | $SED \
8110   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8111   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8112   -e 's:$: $lt_compiler_flag:'`
8113   (eval echo "\"\$as_me:8113: $lt_compile\"" >&5)
8114   (eval "$lt_compile" 2>conftest.err)
8115   ac_status=$?
8116   cat conftest.err >&5
8117   echo "$as_me:8117: \$? = $ac_status" >&5
8118   if (exit $ac_status) && test -s "$ac_outfile"; then
8119     # The compiler can only warn and ignore the option if not recognized
8120     # So say no if there are warnings other than the usual output.
8121     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8122     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8123     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8124       lt_cv_prog_compiler_rtti_exceptions=yes
8125     fi
8126   fi
8127   $rm conftest*
8128
8129fi
8130echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8131echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8132
8133if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8134    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8135else
8136    :
8137fi
8138
8139fi
8140
8141lt_prog_compiler_wl=
8142lt_prog_compiler_pic=
8143lt_prog_compiler_static=
8144
8145echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8146echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8147
8148  if test "$GCC" = yes; then
8149    lt_prog_compiler_wl='-Wl,'
8150    lt_prog_compiler_static='-static'
8151
8152    case $host_os in
8153      aix*)
8154      # All AIX code is PIC.
8155      if test "$host_cpu" = ia64; then
8156        # AIX 5 now supports IA64 processor
8157        lt_prog_compiler_static='-Bstatic'
8158      fi
8159      ;;
8160
8161    amigaos*)
8162      # FIXME: we need at least 68020 code to build shared libraries, but
8163      # adding the `-m68020' flag to GCC prevents building anything better,
8164      # like `-m68040'.
8165      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8166      ;;
8167
8168    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8169      # PIC is the default for these OSes.
8170      ;;
8171
8172    mingw* | pw32* | os2*)
8173      # This hack is so that the source file can tell whether it is being
8174      # built for inclusion in a dll (and should export symbols for example).
8175      lt_prog_compiler_pic='-DDLL_EXPORT'
8176      ;;
8177
8178    darwin* | rhapsody*)
8179      # PIC is the default on this platform
8180      # Common symbols not allowed in MH_DYLIB files
8181      lt_prog_compiler_pic='-fno-common'
8182      ;;
8183
8184    interix3*)
8185      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8186      # Instead, we relocate shared libraries at runtime.
8187      ;;
8188
8189    msdosdjgpp*)
8190      # Just because we use GCC doesn't mean we suddenly get shared libraries
8191      # on systems that don't support them.
8192      lt_prog_compiler_can_build_shared=no
8193      enable_shared=no
8194      ;;
8195
8196    sysv4*MP*)
8197      if test -d /usr/nec; then
8198        lt_prog_compiler_pic=-Kconform_pic
8199      fi
8200      ;;
8201
8202    hpux*)
8203      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8204      # not for PA HP-UX.
8205      case $host_cpu in
8206      hppa*64*|ia64*)
8207        # +Z the default
8208        ;;
8209      *)
8210        lt_prog_compiler_pic='-fPIC'
8211        ;;
8212      esac
8213      ;;
8214
8215    *)
8216      lt_prog_compiler_pic='-fPIC'
8217      ;;
8218    esac
8219  else
8220    # PORTME Check for flag to pass linker flags through the system compiler.
8221    case $host_os in
8222    aix*)
8223      lt_prog_compiler_wl='-Wl,'
8224      if test "$host_cpu" = ia64; then
8225        # AIX 5 now supports IA64 processor
8226        lt_prog_compiler_static='-Bstatic'
8227      else
8228        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8229      fi
8230      ;;
8231      darwin*)
8232        # PIC is the default on this platform
8233        # Common symbols not allowed in MH_DYLIB files
8234       case $cc_basename in
8235         xlc*)
8236         lt_prog_compiler_pic='-qnocommon'
8237         lt_prog_compiler_wl='-Wl,'
8238         ;;
8239       esac
8240       ;;
8241
8242    mingw* | pw32* | os2*)
8243      # This hack is so that the source file can tell whether it is being
8244      # built for inclusion in a dll (and should export symbols for example).
8245      lt_prog_compiler_pic='-DDLL_EXPORT'
8246      ;;
8247
8248    hpux9* | hpux10* | hpux11*)
8249      lt_prog_compiler_wl='-Wl,'
8250      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8251      # not for PA HP-UX.
8252      case $host_cpu in
8253      hppa*64*|ia64*)
8254        # +Z the default
8255        ;;
8256      *)
8257        lt_prog_compiler_pic='+Z'
8258        ;;
8259      esac
8260      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8261      lt_prog_compiler_static='${wl}-a ${wl}archive'
8262      ;;
8263
8264    irix5* | irix6* | nonstopux*)
8265      lt_prog_compiler_wl='-Wl,'
8266      # PIC (with -KPIC) is the default.
8267      lt_prog_compiler_static='-non_shared'
8268      ;;
8269
8270    newsos6)
8271      lt_prog_compiler_pic='-KPIC'
8272      lt_prog_compiler_static='-Bstatic'
8273      ;;
8274
8275    linux*)
8276      case $cc_basename in
8277      icc* | ecc*)
8278        lt_prog_compiler_wl='-Wl,'
8279        lt_prog_compiler_pic='-KPIC'
8280        lt_prog_compiler_static='-static'
8281        ;;
8282      pgcc* | pgf77* | pgf90* | pgf95*)
8283        # Portland Group compilers (*not* the Pentium gcc compiler,
8284        # which looks to be a dead project)
8285        lt_prog_compiler_wl='-Wl,'
8286        lt_prog_compiler_pic='-fpic'
8287        lt_prog_compiler_static='-Bstatic'
8288        ;;
8289      ccc*)
8290        lt_prog_compiler_wl='-Wl,'
8291        # All Alpha code is PIC.
8292        lt_prog_compiler_static='-non_shared'
8293        ;;
8294      esac
8295      ;;
8296
8297    osf3* | osf4* | osf5*)
8298      lt_prog_compiler_wl='-Wl,'
8299      # All OSF/1 code is PIC.
8300      lt_prog_compiler_static='-non_shared'
8301      ;;
8302
8303    solaris*)
8304      lt_prog_compiler_pic='-KPIC'
8305      lt_prog_compiler_static='-Bstatic'
8306      case $cc_basename in
8307      f77* | f90* | f95*)
8308        lt_prog_compiler_wl='-Qoption ld ';;
8309      *)
8310        lt_prog_compiler_wl='-Wl,';;
8311      esac
8312      ;;
8313
8314    sunos4*)
8315      lt_prog_compiler_wl='-Qoption ld '
8316      lt_prog_compiler_pic='-PIC'
8317      lt_prog_compiler_static='-Bstatic'
8318      ;;
8319
8320    sysv4 | sysv4.2uw2* | sysv4.3*)
8321      lt_prog_compiler_wl='-Wl,'
8322      lt_prog_compiler_pic='-KPIC'
8323      lt_prog_compiler_static='-Bstatic'
8324      ;;
8325
8326    sysv4*MP*)
8327      if test -d /usr/nec ;then
8328        lt_prog_compiler_pic='-Kconform_pic'
8329        lt_prog_compiler_static='-Bstatic'
8330      fi
8331      ;;
8332
8333    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8334      lt_prog_compiler_wl='-Wl,'
8335      lt_prog_compiler_pic='-KPIC'
8336      lt_prog_compiler_static='-Bstatic'
8337      ;;
8338
8339    unicos*)
8340      lt_prog_compiler_wl='-Wl,'
8341      lt_prog_compiler_can_build_shared=no
8342      ;;
8343
8344    uts4*)
8345      lt_prog_compiler_pic='-pic'
8346      lt_prog_compiler_static='-Bstatic'
8347      ;;
8348
8349    *)
8350      lt_prog_compiler_can_build_shared=no
8351      ;;
8352    esac
8353  fi
8354
8355echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8356echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8357
8358#
8359# Check to make sure the PIC flag actually works.
8360#
8361if test -n "$lt_prog_compiler_pic"; then
8362
8363echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8364echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8365if test "${lt_prog_compiler_pic_works+set}" = set; then
8366  echo $ECHO_N "(cached) $ECHO_C" >&6
8367else
8368  lt_prog_compiler_pic_works=no
8369  ac_outfile=conftest.$ac_objext
8370   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8371   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8372   # Insert the option either (1) after the last *FLAGS variable, or
8373   # (2) before a word containing "conftest.", or (3) at the end.
8374   # Note that $ac_compile itself does not contain backslashes and begins
8375   # with a dollar sign (not a hyphen), so the echo should work correctly.
8376   # The option is referenced via a variable to avoid confusing sed.
8377   lt_compile=`echo "$ac_compile" | $SED \
8378   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8379   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8380   -e 's:$: $lt_compiler_flag:'`
8381   (eval echo "\"\$as_me:8381: $lt_compile\"" >&5)
8382   (eval "$lt_compile" 2>conftest.err)
8383   ac_status=$?
8384   cat conftest.err >&5
8385   echo "$as_me:8385: \$? = $ac_status" >&5
8386   if (exit $ac_status) && test -s "$ac_outfile"; then
8387     # The compiler can only warn and ignore the option if not recognized
8388     # So say no if there are warnings other than the usual output.
8389     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8390     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8391     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8392       lt_prog_compiler_pic_works=yes
8393     fi
8394   fi
8395   $rm conftest*
8396
8397fi
8398echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8399echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8400
8401if test x"$lt_prog_compiler_pic_works" = xyes; then
8402    case $lt_prog_compiler_pic in
8403     "" | " "*) ;;
8404     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8405     esac
8406else
8407    lt_prog_compiler_pic=
8408     lt_prog_compiler_can_build_shared=no
8409fi
8410
8411fi
8412case $host_os in
8413  # For platforms which do not support PIC, -DPIC is meaningless:
8414  *djgpp*)
8415    lt_prog_compiler_pic=
8416    ;;
8417  *)
8418    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8419    ;;
8420esac
8421
8422#
8423# Check to make sure the static flag actually works.
8424#
8425wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8426echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8427echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8428if test "${lt_prog_compiler_static_works+set}" = set; then
8429  echo $ECHO_N "(cached) $ECHO_C" >&6
8430else
8431  lt_prog_compiler_static_works=no
8432   save_LDFLAGS="$LDFLAGS"
8433   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8434   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8435   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8436     # The linker can only warn and ignore the option if not recognized
8437     # So say no if there are warnings
8438     if test -s conftest.err; then
8439       # Append any errors to the config.log.
8440       cat conftest.err 1>&5
8441       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8442       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8443       if diff conftest.exp conftest.er2 >/dev/null; then
8444         lt_prog_compiler_static_works=yes
8445       fi
8446     else
8447       lt_prog_compiler_static_works=yes
8448     fi
8449   fi
8450   $rm conftest*
8451   LDFLAGS="$save_LDFLAGS"
8452
8453fi
8454echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8455echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8456
8457if test x"$lt_prog_compiler_static_works" = xyes; then
8458    :
8459else
8460    lt_prog_compiler_static=
8461fi
8462
8463
8464echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8465echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8466if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8467  echo $ECHO_N "(cached) $ECHO_C" >&6
8468else
8469  lt_cv_prog_compiler_c_o=no
8470   $rm -r conftest 2>/dev/null
8471   mkdir conftest
8472   cd conftest
8473   mkdir out
8474   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8475
8476   lt_compiler_flag="-o out/conftest2.$ac_objext"
8477   # Insert the option either (1) after the last *FLAGS variable, or
8478   # (2) before a word containing "conftest.", or (3) at the end.
8479   # Note that $ac_compile itself does not contain backslashes and begins
8480   # with a dollar sign (not a hyphen), so the echo should work correctly.
8481   lt_compile=`echo "$ac_compile" | $SED \
8482   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8483   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8484   -e 's:$: $lt_compiler_flag:'`
8485   (eval echo "\"\$as_me:8485: $lt_compile\"" >&5)
8486   (eval "$lt_compile" 2>out/conftest.err)
8487   ac_status=$?
8488   cat out/conftest.err >&5
8489   echo "$as_me:8489: \$? = $ac_status" >&5
8490   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8491   then
8492     # The compiler can only warn and ignore the option if not recognized
8493     # So say no if there are warnings
8494     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8495     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8496     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8497       lt_cv_prog_compiler_c_o=yes
8498     fi
8499   fi
8500   chmod u+w . 2>&5
8501   $rm conftest*
8502   # SGI C++ compiler will create directory out/ii_files/ for
8503   # template instantiation
8504   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8505   $rm out/* && rmdir out
8506   cd ..
8507   rmdir conftest
8508   $rm conftest*
8509
8510fi
8511echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8512echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8513
8514
8515hard_links="nottested"
8516if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8517  # do not overwrite the value of need_locks provided by the user
8518  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8519echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8520  hard_links=yes
8521  $rm conftest*
8522  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8523  touch conftest.a
8524  ln conftest.a conftest.b 2>&5 || hard_links=no
8525  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8526  echo "$as_me:$LINENO: result: $hard_links" >&5
8527echo "${ECHO_T}$hard_links" >&6
8528  if test "$hard_links" = no; then
8529    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8530echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8531    need_locks=warn
8532  fi
8533else
8534  need_locks=no
8535fi
8536
8537echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8538echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8539
8540  runpath_var=
8541  allow_undefined_flag=
8542  enable_shared_with_static_runtimes=no
8543  archive_cmds=
8544  archive_expsym_cmds=
8545  old_archive_From_new_cmds=
8546  old_archive_from_expsyms_cmds=
8547  export_dynamic_flag_spec=
8548  whole_archive_flag_spec=
8549  thread_safe_flag_spec=
8550  hardcode_libdir_flag_spec=
8551  hardcode_libdir_flag_spec_ld=
8552  hardcode_libdir_separator=
8553  hardcode_direct=no
8554  hardcode_minus_L=no
8555  hardcode_shlibpath_var=unsupported
8556  link_all_deplibs=unknown
8557  hardcode_automatic=no
8558  module_cmds=
8559  module_expsym_cmds=
8560  always_export_symbols=no
8561  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8562  # include_expsyms should be a list of space-separated symbols to be *always*
8563  # included in the symbol list
8564  include_expsyms=
8565  # exclude_expsyms can be an extended regexp of symbols to exclude
8566  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8567  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8568  # as well as any symbol that contains `d'.
8569  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8570  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8571  # platforms (ab)use it in PIC code, but their linkers get confused if
8572  # the symbol is explicitly referenced.  Since portable code cannot
8573  # rely on this symbol name, it's probably fine to never include it in
8574  # preloaded symbol tables.
8575  extract_expsyms_cmds=
8576  # Just being paranoid about ensuring that cc_basename is set.
8577  for cc_temp in $compiler""; do
8578  case $cc_temp in
8579    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8580    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8581    \-*) ;;
8582    *) break;;
8583  esac
8584done
8585cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8586
8587  case $host_os in
8588  cygwin* | mingw* | pw32*)
8589    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8590    # When not using gcc, we currently assume that we are using
8591    # Microsoft Visual C++.
8592    if test "$GCC" != yes; then
8593      with_gnu_ld=no
8594    fi
8595    ;;
8596  interix*)
8597    # we just hope/assume this is gcc and not c89 (= MSVC++)
8598    with_gnu_ld=yes
8599    ;;
8600  openbsd*)
8601    with_gnu_ld=no
8602    ;;
8603  esac
8604
8605  ld_shlibs=yes
8606  if test "$with_gnu_ld" = yes; then
8607    # If archive_cmds runs LD, not CC, wlarc should be empty
8608    wlarc='${wl}'
8609
8610    # Set some defaults for GNU ld with shared library support. These
8611    # are reset later if shared libraries are not supported. Putting them
8612    # here allows them to be overridden if necessary.
8613    runpath_var=LD_RUN_PATH
8614    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8615    export_dynamic_flag_spec='${wl}--export-dynamic'
8616    # ancient GNU ld didn't support --whole-archive et. al.
8617    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8618        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8619      else
8620        whole_archive_flag_spec=
8621    fi
8622    supports_anon_versioning=no
8623    case `$LD -v 2>/dev/null` in
8624      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8625      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8626      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8627      *\ 2.11.*) ;; # other 2.11 versions
8628      *) supports_anon_versioning=yes ;;
8629    esac
8630
8631    # See if GNU ld supports shared libraries.
8632    case $host_os in
8633    aix3* | aix4* | aix5*)
8634      # On AIX/PPC, the GNU linker is very broken
8635      if test "$host_cpu" != ia64; then
8636        ld_shlibs=no
8637        cat <<EOF 1>&2
8638
8639*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8640*** to be unable to reliably create shared libraries on AIX.
8641*** Therefore, libtool is disabling shared libraries support.  If you
8642*** really care for shared libraries, you may want to modify your PATH
8643*** so that a non-GNU linker is found, and then restart.
8644
8645EOF
8646      fi
8647      ;;
8648
8649    amigaos*)
8650      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)'
8651      hardcode_libdir_flag_spec='-L$libdir'
8652      hardcode_minus_L=yes
8653
8654      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8655      # that the semantics of dynamic libraries on AmigaOS, at least up
8656      # to version 4, is to share data among multiple programs linked
8657      # with the same dynamic library.  Since this doesn't match the
8658      # behavior of shared libraries on other platforms, we can't use
8659      # them.
8660      ld_shlibs=no
8661      ;;
8662
8663    beos*)
8664      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8665        allow_undefined_flag=unsupported
8666        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8667        # support --undefined.  This deserves some investigation.  FIXME
8668        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8669      else
8670        ld_shlibs=no
8671      fi
8672      ;;
8673
8674    cygwin* | mingw* | pw32*)
8675      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8676      # as there is no search path for DLLs.
8677      hardcode_libdir_flag_spec='-L$libdir'
8678      allow_undefined_flag=unsupported
8679      always_export_symbols=no
8680      enable_shared_with_static_runtimes=yes
8681      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8682
8683      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8684        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8685        # If the export-symbols file already is a .def file (1st line
8686        # is EXPORTS), use it as is; otherwise, prepend...
8687        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8688          cp $export_symbols $output_objdir/$soname.def;
8689        else
8690          echo EXPORTS > $output_objdir/$soname.def;
8691          cat $export_symbols >> $output_objdir/$soname.def;
8692        fi~
8693        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8694      else
8695        ld_shlibs=no
8696      fi
8697      ;;
8698
8699    interix3*)
8700      hardcode_direct=no
8701      hardcode_shlibpath_var=no
8702      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8703      export_dynamic_flag_spec='${wl}-E'
8704      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8705      # Instead, shared libraries are loaded at an image base (0x10000000 by
8706      # default) and relocated if they conflict, which is a slow very memory
8707      # consuming and fragmenting process.  To avoid this, we pick a random,
8708      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8709      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8710      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8711      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'
8712      ;;
8713
8714    linux*)
8715      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8716        tmp_addflag=
8717        case $cc_basename,$host_cpu in
8718        pgcc*)                          # Portland Group C compiler
8719          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'
8720          tmp_addflag=' $pic_flag'
8721          ;;
8722        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8723          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'
8724          tmp_addflag=' $pic_flag -Mnomain' ;;
8725        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8726          tmp_addflag=' -i_dynamic' ;;
8727        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8728          tmp_addflag=' -i_dynamic -nofor_main' ;;
8729        ifc* | ifort*)                  # Intel Fortran compiler
8730          tmp_addflag=' -nofor_main' ;;
8731        esac
8732        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8733
8734        if test $supports_anon_versioning = yes; then
8735          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8736  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8737  $echo "local: *; };" >> $output_objdir/$libname.ver~
8738          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8739        fi
8740      else
8741        ld_shlibs=no
8742      fi
8743      ;;
8744
8745    netbsd*)
8746      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8747        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8748        wlarc=
8749      else
8750        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8751        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8752      fi
8753      ;;
8754
8755    solaris*)
8756      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8757        ld_shlibs=no
8758        cat <<EOF 1>&2
8759
8760*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8761*** create shared libraries on Solaris systems.  Therefore, libtool
8762*** is disabling shared libraries support.  We urge you to upgrade GNU
8763*** binutils to release 2.9.1 or newer.  Another option is to modify
8764*** your PATH or compiler configuration so that the native linker is
8765*** used, and then restart.
8766
8767EOF
8768      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8769        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8770        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8771      else
8772        ld_shlibs=no
8773      fi
8774      ;;
8775
8776    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8777      case `$LD -v 2>&1` in
8778        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8779        ld_shlibs=no
8780        cat <<_LT_EOF 1>&2
8781
8782*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8783*** reliably create shared libraries on SCO systems.  Therefore, libtool
8784*** is disabling shared libraries support.  We urge you to upgrade GNU
8785*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8786*** your PATH or compiler configuration so that the native linker is
8787*** used, and then restart.
8788
8789_LT_EOF
8790        ;;
8791        *)
8792          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8793            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8794            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8795            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8796          else
8797            ld_shlibs=no
8798          fi
8799        ;;
8800      esac
8801      ;;
8802
8803    sunos4*)
8804      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8805      wlarc=
8806      hardcode_direct=yes
8807      hardcode_shlibpath_var=no
8808      ;;
8809
8810    *)
8811      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8812        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8813        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8814      else
8815        ld_shlibs=no
8816      fi
8817      ;;
8818    esac
8819
8820    if test "$ld_shlibs" = no; then
8821      runpath_var=
8822      hardcode_libdir_flag_spec=
8823      export_dynamic_flag_spec=
8824      whole_archive_flag_spec=
8825    fi
8826  else
8827    # PORTME fill in a description of your system's linker (not GNU ld)
8828    case $host_os in
8829    aix3*)
8830      allow_undefined_flag=unsupported
8831      always_export_symbols=yes
8832      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'
8833      # Note: this linker hardcodes the directories in LIBPATH if there
8834      # are no directories specified by -L.
8835      hardcode_minus_L=yes
8836      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8837        # Neither direct hardcoding nor static linking is supported with a
8838        # broken collect2.
8839        hardcode_direct=unsupported
8840      fi
8841      ;;
8842
8843    aix4* | aix5*)
8844      if test "$host_cpu" = ia64; then
8845        # On IA64, the linker does run time linking by default, so we don't
8846        # have to do anything special.
8847        aix_use_runtimelinking=no
8848        exp_sym_flag='-Bexport'
8849        no_entry_flag=""
8850      else
8851        # If we're using GNU nm, then we don't want the "-C" option.
8852        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8853        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8854          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'
8855        else
8856          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'
8857        fi
8858        aix_use_runtimelinking=no
8859
8860        # Test if we are trying to use run time linking or normal
8861        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8862        # need to do runtime linking.
8863        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8864          for ld_flag in $LDFLAGS; do
8865          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8866            aix_use_runtimelinking=yes
8867            break
8868          fi
8869          done
8870          ;;
8871        esac
8872
8873        exp_sym_flag='-bexport'
8874        no_entry_flag='-bnoentry'
8875      fi
8876
8877      # When large executables or shared objects are built, AIX ld can
8878      # have problems creating the table of contents.  If linking a library
8879      # or program results in "error TOC overflow" add -mminimal-toc to
8880      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8881      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8882
8883      archive_cmds=''
8884      hardcode_direct=yes
8885      hardcode_libdir_separator=':'
8886      link_all_deplibs=yes
8887
8888      if test "$GCC" = yes; then
8889        case $host_os in aix4.[012]|aix4.[012].*)
8890        # We only want to do this on AIX 4.2 and lower, the check
8891        # below for broken collect2 doesn't work under 4.3+
8892          collect2name=`${CC} -print-prog-name=collect2`
8893          if test -f "$collect2name" && \
8894           strings "$collect2name" | grep resolve_lib_name >/dev/null
8895          then
8896          # We have reworked collect2
8897          hardcode_direct=yes
8898          else
8899          # We have old collect2
8900          hardcode_direct=unsupported
8901          # It fails to find uninstalled libraries when the uninstalled
8902          # path is not listed in the libpath.  Setting hardcode_minus_L
8903          # to unsupported forces relinking
8904          hardcode_minus_L=yes
8905          hardcode_libdir_flag_spec='-L$libdir'
8906          hardcode_libdir_separator=
8907          fi
8908          ;;
8909        esac
8910        shared_flag='-shared'
8911        if test "$aix_use_runtimelinking" = yes; then
8912          shared_flag="$shared_flag "'${wl}-G'
8913        fi
8914      else
8915        # not using gcc
8916        if test "$host_cpu" = ia64; then
8917        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8918        # chokes on -Wl,-G. The following line is correct:
8919          shared_flag='-G'
8920        else
8921          if test "$aix_use_runtimelinking" = yes; then
8922            shared_flag='${wl}-G'
8923          else
8924            shared_flag='${wl}-bM:SRE'
8925          fi
8926        fi
8927      fi
8928
8929      # It seems that -bexpall does not export symbols beginning with
8930      # underscore (_), so it is better to generate a list of symbols to export.
8931      always_export_symbols=yes
8932      if test "$aix_use_runtimelinking" = yes; then
8933        # Warning - without using the other runtime loading flags (-brtl),
8934        # -berok will link without error, but may produce a broken library.
8935        allow_undefined_flag='-berok'
8936       # Determine the default libpath from the value encoded in an empty executable.
8937       cat >conftest.$ac_ext <<_ACEOF
8938/* confdefs.h.  */
8939_ACEOF
8940cat confdefs.h >>conftest.$ac_ext
8941cat >>conftest.$ac_ext <<_ACEOF
8942/* end confdefs.h.  */
8943
8944int
8945main ()
8946{
8947
8948  ;
8949  return 0;
8950}
8951_ACEOF
8952rm -f conftest.$ac_objext conftest$ac_exeext
8953if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8954  (eval $ac_link) 2>conftest.er1
8955  ac_status=$?
8956  grep -v '^ *+' conftest.er1 >conftest.err
8957  rm -f conftest.er1
8958  cat conftest.err >&5
8959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960  (exit $ac_status); } &&
8961         { ac_try='test -z "$ac_c_werror_flag"
8962                         || test ! -s conftest.err'
8963  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8964  (eval $ac_try) 2>&5
8965  ac_status=$?
8966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967  (exit $ac_status); }; } &&
8968         { ac_try='test -s conftest$ac_exeext'
8969  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8970  (eval $ac_try) 2>&5
8971  ac_status=$?
8972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973  (exit $ac_status); }; }; then
8974
8975aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8976}'`
8977# Check for a 64-bit object if we didn't find anything.
8978if 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; }
8979}'`; fi
8980else
8981  echo "$as_me: failed program was:" >&5
8982sed 's/^/| /' conftest.$ac_ext >&5
8983
8984fi
8985rm -f conftest.err conftest.$ac_objext \
8986      conftest$ac_exeext conftest.$ac_ext
8987if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8988
8989       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8990        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"
8991       else
8992        if test "$host_cpu" = ia64; then
8993          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8994          allow_undefined_flag="-z nodefs"
8995          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"
8996        else
8997         # Determine the default libpath from the value encoded in an empty executable.
8998         cat >conftest.$ac_ext <<_ACEOF
8999/* confdefs.h.  */
9000_ACEOF
9001cat confdefs.h >>conftest.$ac_ext
9002cat >>conftest.$ac_ext <<_ACEOF
9003/* end confdefs.h.  */
9004
9005int
9006main ()
9007{
9008
9009  ;
9010  return 0;
9011}
9012_ACEOF
9013rm -f conftest.$ac_objext conftest$ac_exeext
9014if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9015  (eval $ac_link) 2>conftest.er1
9016  ac_status=$?
9017  grep -v '^ *+' conftest.er1 >conftest.err
9018  rm -f conftest.er1
9019  cat conftest.err >&5
9020  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9021  (exit $ac_status); } &&
9022         { ac_try='test -z "$ac_c_werror_flag"
9023                         || test ! -s conftest.err'
9024  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9025  (eval $ac_try) 2>&5
9026  ac_status=$?
9027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9028  (exit $ac_status); }; } &&
9029         { ac_try='test -s conftest$ac_exeext'
9030  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9031  (eval $ac_try) 2>&5
9032  ac_status=$?
9033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9034  (exit $ac_status); }; }; then
9035
9036aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9037}'`
9038# Check for a 64-bit object if we didn't find anything.
9039if 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; }
9040}'`; fi
9041else
9042  echo "$as_me: failed program was:" >&5
9043sed 's/^/| /' conftest.$ac_ext >&5
9044
9045fi
9046rm -f conftest.err conftest.$ac_objext \
9047      conftest$ac_exeext conftest.$ac_ext
9048if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9049
9050         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9051          # Warning - without using the other run time loading flags,
9052          # -berok will link without error, but may produce a broken library.
9053          no_undefined_flag=' ${wl}-bernotok'
9054          allow_undefined_flag=' ${wl}-berok'
9055          # Exported symbols can be pulled into shared objects from archives
9056          whole_archive_flag_spec='$convenience'
9057          archive_cmds_need_lc=yes
9058          # This is similar to how AIX traditionally builds its shared libraries.
9059          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'
9060        fi
9061      fi
9062      ;;
9063
9064    amigaos*)
9065      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)'
9066      hardcode_libdir_flag_spec='-L$libdir'
9067      hardcode_minus_L=yes
9068      # see comment about different semantics on the GNU ld section
9069      ld_shlibs=no
9070      ;;
9071
9072    bsdi[45]*)
9073      export_dynamic_flag_spec=-rdynamic
9074      ;;
9075
9076    cygwin* | mingw* | pw32*)
9077      # When not using gcc, we currently assume that we are using
9078      # Microsoft Visual C++.
9079      # hardcode_libdir_flag_spec is actually meaningless, as there is
9080      # no search path for DLLs.
9081      hardcode_libdir_flag_spec=' '
9082      allow_undefined_flag=unsupported
9083      # Tell ltmain to make .lib files, not .a files.
9084      libext=lib
9085      # Tell ltmain to make .dll files, not .so files.
9086      shrext_cmds=".dll"
9087      # FIXME: Setting linknames here is a bad hack.
9088      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9089      # The linker will automatically build a .lib file if we build a DLL.
9090      old_archive_From_new_cmds='true'
9091      # FIXME: Should let the user specify the lib program.
9092      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9093      fix_srcfile_path='`cygpath -w "$srcfile"`'
9094      enable_shared_with_static_runtimes=yes
9095      ;;
9096
9097    darwin* | rhapsody*)
9098      case $host_os in
9099        rhapsody* | darwin1.[012])
9100         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9101         ;;
9102       *) # Darwin 1.3 on
9103         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9104           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9105         else
9106           case ${MACOSX_DEPLOYMENT_TARGET} in
9107             10.[012])
9108               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9109               ;;
9110             10.*)
9111               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9112               ;;
9113           esac
9114         fi
9115         ;;
9116      esac
9117      archive_cmds_need_lc=no
9118      hardcode_direct=no
9119      hardcode_automatic=yes
9120      hardcode_shlibpath_var=unsupported
9121      whole_archive_flag_spec=''
9122      link_all_deplibs=yes
9123    if test "$GCC" = yes ; then
9124        output_verbose_link_cmd='echo'
9125        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9126      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9127      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9128      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}'
9129      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}'
9130    else
9131      case $cc_basename in
9132        xlc*)
9133         output_verbose_link_cmd='echo'
9134         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9135         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9136          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9137         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}'
9138          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}'
9139          ;;
9140       *)
9141         ld_shlibs=no
9142          ;;
9143      esac
9144    fi
9145      ;;
9146
9147    dgux*)
9148      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9149      hardcode_libdir_flag_spec='-L$libdir'
9150      hardcode_shlibpath_var=no
9151      ;;
9152
9153    freebsd1*)
9154      ld_shlibs=no
9155      ;;
9156
9157    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9158    # support.  Future versions do this automatically, but an explicit c++rt0.o
9159    # does not break anything, and helps significantly (at the cost of a little
9160    # extra space).
9161    freebsd2.2*)
9162      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9163      hardcode_libdir_flag_spec='-R$libdir'
9164      hardcode_direct=yes
9165      hardcode_shlibpath_var=no
9166      ;;
9167
9168    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9169    freebsd2*)
9170      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9171      hardcode_direct=yes
9172      hardcode_minus_L=yes
9173      hardcode_shlibpath_var=no
9174      ;;
9175
9176    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9177    freebsd* | kfreebsd*-gnu | dragonfly*)
9178      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9179      hardcode_libdir_flag_spec='-R$libdir'
9180      hardcode_direct=yes
9181      hardcode_shlibpath_var=no
9182      ;;
9183
9184    hpux9*)
9185      if test "$GCC" = yes; then
9186        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'
9187      else
9188        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'
9189      fi
9190      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9191      hardcode_libdir_separator=:
9192      hardcode_direct=yes
9193
9194      # hardcode_minus_L: Not really in the search PATH,
9195      # but as the default location of the library.
9196      hardcode_minus_L=yes
9197      export_dynamic_flag_spec='${wl}-E'
9198      ;;
9199
9200    hpux10*)
9201      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9202        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9203      else
9204        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9205      fi
9206      if test "$with_gnu_ld" = no; then
9207        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9208        hardcode_libdir_separator=:
9209
9210        hardcode_direct=yes
9211        export_dynamic_flag_spec='${wl}-E'
9212
9213        # hardcode_minus_L: Not really in the search PATH,
9214        # but as the default location of the library.
9215        hardcode_minus_L=yes
9216      fi
9217      ;;
9218
9219    hpux11*)
9220      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9221        case $host_cpu in
9222        hppa*64*)
9223          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9224          ;;
9225        ia64*)
9226          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9227          ;;
9228        *)
9229          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9230          ;;
9231        esac
9232      else
9233        case $host_cpu in
9234        hppa*64*)
9235          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9236          ;;
9237        ia64*)
9238          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9239          ;;
9240        *)
9241          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9242          ;;
9243        esac
9244      fi
9245      if test "$with_gnu_ld" = no; then
9246        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9247        hardcode_libdir_separator=:
9248
9249        case $host_cpu in
9250        hppa*64*|ia64*)
9251          hardcode_libdir_flag_spec_ld='+b $libdir'
9252          hardcode_direct=no
9253          hardcode_shlibpath_var=no
9254          ;;
9255        *)
9256          hardcode_direct=yes
9257          export_dynamic_flag_spec='${wl}-E'
9258
9259          # hardcode_minus_L: Not really in the search PATH,
9260          # but as the default location of the library.
9261          hardcode_minus_L=yes
9262          ;;
9263        esac
9264      fi
9265      ;;
9266
9267    irix5* | irix6* | nonstopux*)
9268      if test "$GCC" = yes; then
9269        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'
9270      else
9271        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'
9272        hardcode_libdir_flag_spec_ld='-rpath $libdir'
9273      fi
9274      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9275      hardcode_libdir_separator=:
9276      link_all_deplibs=yes
9277      ;;
9278
9279    netbsd*)
9280      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9281        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9282      else
9283        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9284      fi
9285      hardcode_libdir_flag_spec='-R$libdir'
9286      hardcode_direct=yes
9287      hardcode_shlibpath_var=no
9288      ;;
9289
9290    newsos6)
9291      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9292      hardcode_direct=yes
9293      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9294      hardcode_libdir_separator=:
9295      hardcode_shlibpath_var=no
9296      ;;
9297
9298    openbsd*)
9299      hardcode_direct=yes
9300      hardcode_shlibpath_var=no
9301      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9302        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9303        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9304        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9305        export_dynamic_flag_spec='${wl}-E'
9306      else
9307       case $host_os in
9308         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9309           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9310           hardcode_libdir_flag_spec='-R$libdir'
9311           ;;
9312         *)
9313           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9314           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9315           ;;
9316       esac
9317      fi
9318      ;;
9319
9320    os2*)
9321      hardcode_libdir_flag_spec='-L$libdir'
9322      hardcode_minus_L=yes
9323      allow_undefined_flag=unsupported
9324      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'
9325      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9326      ;;
9327
9328    osf3*)
9329      if test "$GCC" = yes; then
9330        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9331        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'
9332      else
9333        allow_undefined_flag=' -expect_unresolved \*'
9334        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'
9335      fi
9336      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9337      hardcode_libdir_separator=:
9338      ;;
9339
9340    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9341      if test "$GCC" = yes; then
9342        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9343        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'
9344        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9345      else
9346        allow_undefined_flag=' -expect_unresolved \*'
9347        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'
9348        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9349        $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'
9350
9351        # Both c and cxx compiler support -rpath directly
9352        hardcode_libdir_flag_spec='-rpath $libdir'
9353      fi
9354      hardcode_libdir_separator=:
9355      ;;
9356
9357    solaris*)
9358      no_undefined_flag=' -z text'
9359      if test "$GCC" = yes; then
9360        wlarc='${wl}'
9361        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9362        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9363          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9364      else
9365        wlarc=''
9366        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9367        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9368        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9369      fi
9370      hardcode_libdir_flag_spec='-R$libdir'
9371      hardcode_shlibpath_var=no
9372      case $host_os in
9373      solaris2.[0-5] | solaris2.[0-5].*) ;;
9374      *)
9375        # The compiler driver will combine linker options so we
9376        # cannot just pass the convience library names through
9377        # without $wl, iff we do not link with $LD.
9378        # Luckily, gcc supports the same syntax we need for Sun Studio.
9379        # Supported since Solaris 2.6 (maybe 2.5.1?)
9380        case $wlarc in
9381        '')
9382          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9383        *)
9384          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' ;;
9385        esac ;;
9386      esac
9387      link_all_deplibs=yes
9388      ;;
9389
9390    sunos4*)
9391      if test "x$host_vendor" = xsequent; then
9392        # Use $CC to link under sequent, because it throws in some extra .o
9393        # files that make .init and .fini sections work.
9394        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9395      else
9396        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9397      fi
9398      hardcode_libdir_flag_spec='-L$libdir'
9399      hardcode_direct=yes
9400      hardcode_minus_L=yes
9401      hardcode_shlibpath_var=no
9402      ;;
9403
9404    sysv4)
9405      case $host_vendor in
9406        sni)
9407          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9408          hardcode_direct=yes # is this really true???
9409        ;;
9410        siemens)
9411          ## LD is ld it makes a PLAMLIB
9412          ## CC just makes a GrossModule.
9413          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9414          reload_cmds='$CC -r -o $output$reload_objs'
9415          hardcode_direct=no
9416        ;;
9417        motorola)
9418          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9419          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9420        ;;
9421      esac
9422      runpath_var='LD_RUN_PATH'
9423      hardcode_shlibpath_var=no
9424      ;;
9425
9426    sysv4.3*)
9427      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9428      hardcode_shlibpath_var=no
9429      export_dynamic_flag_spec='-Bexport'
9430      ;;
9431
9432    sysv4*MP*)
9433      if test -d /usr/nec; then
9434        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9435        hardcode_shlibpath_var=no
9436        runpath_var=LD_RUN_PATH
9437        hardcode_runpath_var=yes
9438        ld_shlibs=yes
9439      fi
9440      ;;
9441
9442    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9443      no_undefined_flag='${wl}-z,text'
9444      archive_cmds_need_lc=no
9445      hardcode_shlibpath_var=no
9446      runpath_var='LD_RUN_PATH'
9447
9448      if test "$GCC" = yes; then
9449        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9450        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9451      else
9452        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9453        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9454      fi
9455      ;;
9456
9457    sysv5* | sco3.2v5* | sco5v6*)
9458      # Note: We can NOT use -z defs as we might desire, because we do not
9459      # link with -lc, and that would cause any symbols used from libc to
9460      # always be unresolved, which means just about no library would
9461      # ever link correctly.  If we're not using GNU ld we use -z text
9462      # though, which does catch some bad symbols but isn't as heavy-handed
9463      # as -z defs.
9464      no_undefined_flag='${wl}-z,text'
9465      allow_undefined_flag='${wl}-z,nodefs'
9466      archive_cmds_need_lc=no
9467      hardcode_shlibpath_var=no
9468      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9469      hardcode_libdir_separator=':'
9470      link_all_deplibs=yes
9471      export_dynamic_flag_spec='${wl}-Bexport'
9472      runpath_var='LD_RUN_PATH'
9473
9474      if test "$GCC" = yes; then
9475        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9476        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9477      else
9478        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9479        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9480      fi
9481      ;;
9482
9483    uts4*)
9484      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9485      hardcode_libdir_flag_spec='-L$libdir'
9486      hardcode_shlibpath_var=no
9487      ;;
9488
9489    *)
9490      ld_shlibs=no
9491      ;;
9492    esac
9493  fi
9494
9495echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9496echo "${ECHO_T}$ld_shlibs" >&6
9497test "$ld_shlibs" = no && can_build_shared=no
9498
9499#
9500# Do we need to explicitly link libc?
9501#
9502case "x$archive_cmds_need_lc" in
9503x|xyes)
9504  # Assume -lc should be added
9505  archive_cmds_need_lc=yes
9506
9507  if test "$enable_shared" = yes && test "$GCC" = yes; then
9508    case $archive_cmds in
9509    *'~'*)
9510      # FIXME: we may have to deal with multi-command sequences.
9511      ;;
9512    '$CC '*)
9513      # Test whether the compiler implicitly links with -lc since on some
9514      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9515      # to ld, don't add -lc before -lgcc.
9516      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9517echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9518      $rm conftest*
9519      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9520
9521      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9522  (eval $ac_compile) 2>&5
9523  ac_status=$?
9524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9525  (exit $ac_status); } 2>conftest.err; then
9526        soname=conftest
9527        lib=conftest
9528        libobjs=conftest.$ac_objext
9529        deplibs=
9530        wl=$lt_prog_compiler_wl
9531        pic_flag=$lt_prog_compiler_pic
9532        compiler_flags=-v
9533        linker_flags=-v
9534        verstring=
9535        output_objdir=.
9536        libname=conftest
9537        lt_save_allow_undefined_flag=$allow_undefined_flag
9538        allow_undefined_flag=
9539        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9540  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9541  ac_status=$?
9542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9543  (exit $ac_status); }
9544        then
9545          archive_cmds_need_lc=no
9546        else
9547          archive_cmds_need_lc=yes
9548        fi
9549        allow_undefined_flag=$lt_save_allow_undefined_flag
9550      else
9551        cat conftest.err 1>&5
9552      fi
9553      $rm conftest*
9554      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9555echo "${ECHO_T}$archive_cmds_need_lc" >&6
9556      ;;
9557    esac
9558  fi
9559  ;;
9560esac
9561
9562echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9563echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9564library_names_spec=
9565libname_spec='lib$name'
9566soname_spec=
9567shrext_cmds=".so"
9568postinstall_cmds=
9569postuninstall_cmds=
9570finish_cmds=
9571finish_eval=
9572shlibpath_var=
9573shlibpath_overrides_runpath=unknown
9574version_type=none
9575dynamic_linker="$host_os ld.so"
9576sys_lib_dlsearch_path_spec="/lib /usr/lib"
9577if test "$GCC" = yes; then
9578  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9579  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9580    # if the path contains ";" then we assume it to be the separator
9581    # otherwise default to the standard path separator (i.e. ":") - it is
9582    # assumed that no part of a normal pathname contains ";" but that should
9583    # okay in the real world where ";" in dirpaths is itself problematic.
9584    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9585  else
9586    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9587  fi
9588else
9589  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9590fi
9591need_lib_prefix=unknown
9592hardcode_into_libs=no
9593
9594# when you set need_version to no, make sure it does not cause -set_version
9595# flags to be left without arguments
9596need_version=unknown
9597
9598case $host_os in
9599aix3*)
9600  version_type=linux
9601  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9602  shlibpath_var=LIBPATH
9603
9604  # AIX 3 has no versioning support, so we append a major version to the name.
9605  soname_spec='${libname}${release}${shared_ext}$major'
9606  ;;
9607
9608aix4* | aix5*)
9609  version_type=linux
9610  need_lib_prefix=no
9611  need_version=no
9612  hardcode_into_libs=yes
9613  if test "$host_cpu" = ia64; then
9614    # AIX 5 supports IA64
9615    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9616    shlibpath_var=LD_LIBRARY_PATH
9617  else
9618    # With GCC up to 2.95.x, collect2 would create an import file
9619    # for dependence libraries.  The import file would start with
9620    # the line `#! .'.  This would cause the generated library to
9621    # depend on `.', always an invalid library.  This was fixed in
9622    # development snapshots of GCC prior to 3.0.
9623    case $host_os in
9624      aix4 | aix4.[01] | aix4.[01].*)
9625      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9626           echo ' yes '
9627           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9628        :
9629      else
9630        can_build_shared=no
9631      fi
9632      ;;
9633    esac
9634    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9635    # soname into executable. Probably we can add versioning support to
9636    # collect2, so additional links can be useful in future.
9637    if test "$aix_use_runtimelinking" = yes; then
9638      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9639      # instead of lib<name>.a to let people know that these are not
9640      # typical AIX shared libraries.
9641      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9642    else
9643      # We preserve .a as extension for shared libraries through AIX4.2
9644      # and later when we are not doing run time linking.
9645      library_names_spec='${libname}${release}.a $libname.a'
9646      soname_spec='${libname}${release}${shared_ext}$major'
9647    fi
9648    shlibpath_var=LIBPATH
9649  fi
9650  ;;
9651
9652amigaos*)
9653  library_names_spec='$libname.ixlibrary $libname.a'
9654  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9655  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'
9656  ;;
9657
9658beos*)
9659  library_names_spec='${libname}${shared_ext}'
9660  dynamic_linker="$host_os ld.so"
9661  shlibpath_var=LIBRARY_PATH
9662  ;;
9663
9664bsdi[45]*)
9665  version_type=linux
9666  need_version=no
9667  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9668  soname_spec='${libname}${release}${shared_ext}$major'
9669  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9670  shlibpath_var=LD_LIBRARY_PATH
9671  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9672  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9673  # the default ld.so.conf also contains /usr/contrib/lib and
9674  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9675  # libtool to hard-code these into programs
9676  ;;
9677
9678cygwin* | mingw* | pw32*)
9679  version_type=windows
9680  shrext_cmds=".dll"
9681  need_version=no
9682  need_lib_prefix=no
9683
9684  case $GCC,$host_os in
9685  yes,cygwin* | yes,mingw* | yes,pw32*)
9686    library_names_spec='$libname.dll.a'
9687    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9688    postinstall_cmds='base_file=`basename \${file}`~
9689      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9690      dldir=$destdir/`dirname \$dlpath`~
9691      test -d \$dldir || mkdir -p \$dldir~
9692      $install_prog $dir/$dlname \$dldir/$dlname~
9693      chmod a+x \$dldir/$dlname'
9694    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9695      dlpath=$dir/\$dldll~
9696       $rm \$dlpath'
9697    shlibpath_overrides_runpath=yes
9698
9699    case $host_os in
9700    cygwin*)
9701      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9702      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9703      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9704      ;;
9705    mingw*)
9706      # MinGW DLLs use traditional 'lib' prefix
9707      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9708      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9709      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9710        # It is most probably a Windows format PATH printed by
9711        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9712        # path with ; separators, and with drive letters. We can handle the
9713        # drive letters (cygwin fileutils understands them), so leave them,
9714        # especially as we might pass files found there to a mingw objdump,
9715        # which wouldn't understand a cygwinified path. Ahh.
9716        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9717      else
9718        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9719      fi
9720      ;;
9721    pw32*)
9722      # pw32 DLLs use 'pw' prefix rather than 'lib'
9723      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9724      ;;
9725    esac
9726    ;;
9727
9728  *)
9729    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9730    ;;
9731  esac
9732  dynamic_linker='Win32 ld.exe'
9733  # FIXME: first we should search . and the directory the executable is in
9734  shlibpath_var=PATH
9735  ;;
9736
9737darwin* | rhapsody*)
9738  dynamic_linker="$host_os dyld"
9739  version_type=darwin
9740  need_lib_prefix=no
9741  need_version=no
9742  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9743  soname_spec='${libname}${release}${major}$shared_ext'
9744  shlibpath_overrides_runpath=yes
9745  shlibpath_var=DYLD_LIBRARY_PATH
9746  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9747  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9748  if test "$GCC" = yes; then
9749    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"`
9750  else
9751    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9752  fi
9753  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9754  ;;
9755
9756dgux*)
9757  version_type=linux
9758  need_lib_prefix=no
9759  need_version=no
9760  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9761  soname_spec='${libname}${release}${shared_ext}$major'
9762  shlibpath_var=LD_LIBRARY_PATH
9763  ;;
9764
9765freebsd1*)
9766  dynamic_linker=no
9767  ;;
9768
9769kfreebsd*-gnu)
9770  version_type=linux
9771  need_lib_prefix=no
9772  need_version=no
9773  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9774  soname_spec='${libname}${release}${shared_ext}$major'
9775  shlibpath_var=LD_LIBRARY_PATH
9776  shlibpath_overrides_runpath=no
9777  hardcode_into_libs=yes
9778  dynamic_linker='GNU ld.so'
9779  ;;
9780
9781freebsd* | dragonfly*)
9782  # DragonFly does not have aout.  When/if they implement a new
9783  # versioning mechanism, adjust this.
9784  if test -x /usr/bin/objformat; then
9785    objformat=`/usr/bin/objformat`
9786  else
9787    case $host_os in
9788    freebsd[123]*) objformat=aout ;;
9789    *) objformat=elf ;;
9790    esac
9791  fi
9792  version_type=freebsd-$objformat
9793  case $version_type in
9794    freebsd-elf*)
9795      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9796      need_version=no
9797      need_lib_prefix=no
9798      ;;
9799    freebsd-*)
9800      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9801      need_version=yes
9802      ;;
9803  esac
9804  shlibpath_var=LD_LIBRARY_PATH
9805  case $host_os in
9806  freebsd2*)
9807    shlibpath_overrides_runpath=yes
9808    ;;
9809  freebsd3.[01]* | freebsdelf3.[01]*)
9810    shlibpath_overrides_runpath=yes
9811    hardcode_into_libs=yes
9812    ;;
9813  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9814  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9815    shlibpath_overrides_runpath=no
9816    hardcode_into_libs=yes
9817    ;;
9818  freebsd*) # from 4.6 on
9819    shlibpath_overrides_runpath=yes
9820    hardcode_into_libs=yes
9821    ;;
9822  esac
9823  ;;
9824
9825gnu*)
9826  version_type=linux
9827  need_lib_prefix=no
9828  need_version=no
9829  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9830  soname_spec='${libname}${release}${shared_ext}$major'
9831  shlibpath_var=LD_LIBRARY_PATH
9832  hardcode_into_libs=yes
9833  ;;
9834
9835hpux9* | hpux10* | hpux11*)
9836  # Give a soname corresponding to the major version so that dld.sl refuses to
9837  # link against other versions.
9838  version_type=sunos
9839  need_lib_prefix=no
9840  need_version=no
9841  case $host_cpu in
9842  ia64*)
9843    shrext_cmds='.so'
9844    hardcode_into_libs=yes
9845    dynamic_linker="$host_os dld.so"
9846    shlibpath_var=LD_LIBRARY_PATH
9847    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9848    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9849    soname_spec='${libname}${release}${shared_ext}$major'
9850    if test "X$HPUX_IA64_MODE" = X32; then
9851      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9852    else
9853      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9854    fi
9855    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9856    ;;
9857   hppa*64*)
9858     shrext_cmds='.sl'
9859     hardcode_into_libs=yes
9860     dynamic_linker="$host_os dld.sl"
9861     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9862     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9863     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9864     soname_spec='${libname}${release}${shared_ext}$major'
9865     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9866     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9867     ;;
9868   *)
9869    shrext_cmds='.sl'
9870    dynamic_linker="$host_os dld.sl"
9871    shlibpath_var=SHLIB_PATH
9872    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9873    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9874    soname_spec='${libname}${release}${shared_ext}$major'
9875    ;;
9876  esac
9877  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9878  postinstall_cmds='chmod 555 $lib'
9879  ;;
9880
9881interix3*)
9882  version_type=linux
9883  need_lib_prefix=no
9884  need_version=no
9885  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9886  soname_spec='${libname}${release}${shared_ext}$major'
9887  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9888  shlibpath_var=LD_LIBRARY_PATH
9889  shlibpath_overrides_runpath=no
9890  hardcode_into_libs=yes
9891  ;;
9892
9893irix5* | irix6* | nonstopux*)
9894  case $host_os in
9895    nonstopux*) version_type=nonstopux ;;
9896    *)
9897        if test "$lt_cv_prog_gnu_ld" = yes; then
9898                version_type=linux
9899        else
9900                version_type=irix
9901        fi ;;
9902  esac
9903  need_lib_prefix=no
9904  need_version=no
9905  soname_spec='${libname}${release}${shared_ext}$major'
9906  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9907  case $host_os in
9908  irix5* | nonstopux*)
9909    libsuff= shlibsuff=
9910    ;;
9911  *)
9912    case $LD in # libtool.m4 will add one of these switches to LD
9913    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9914      libsuff= shlibsuff= libmagic=32-bit;;
9915    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9916      libsuff=32 shlibsuff=N32 libmagic=N32;;
9917    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9918      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9919    *) libsuff= shlibsuff= libmagic=never-match;;
9920    esac
9921    ;;
9922  esac
9923  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9924  shlibpath_overrides_runpath=no
9925  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9926  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9927  hardcode_into_libs=yes
9928  ;;
9929
9930# No shared lib support for Linux oldld, aout, or coff.
9931linux*oldld* | linux*aout* | linux*coff*)
9932  dynamic_linker=no
9933  ;;
9934
9935# This must be Linux ELF.
9936linux*)
9937  version_type=linux
9938  need_lib_prefix=no
9939  need_version=no
9940  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9941  soname_spec='${libname}${release}${shared_ext}$major'
9942  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9943  shlibpath_var=LD_LIBRARY_PATH
9944  shlibpath_overrides_runpath=no
9945  # This implies no fast_install, which is unacceptable.
9946  # Some rework will be needed to allow for fast_install
9947  # before this can be enabled.
9948  hardcode_into_libs=yes
9949
9950  # Append ld.so.conf contents to the search path
9951  if test -f /etc/ld.so.conf; then
9952    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' ' '`
9953    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9954  fi
9955
9956  # We used to test for /lib/ld.so.1 and disable shared libraries on
9957  # powerpc, because MkLinux only supported shared libraries with the
9958  # GNU dynamic linker.  Since this was broken with cross compilers,
9959  # most powerpc-linux boxes support dynamic linking these days and
9960  # people can always --disable-shared, the test was removed, and we
9961  # assume the GNU/Linux dynamic linker is in use.
9962  dynamic_linker='GNU/Linux ld.so'
9963  ;;
9964
9965knetbsd*-gnu)
9966  version_type=linux
9967  need_lib_prefix=no
9968  need_version=no
9969  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9970  soname_spec='${libname}${release}${shared_ext}$major'
9971  shlibpath_var=LD_LIBRARY_PATH
9972  shlibpath_overrides_runpath=no
9973  hardcode_into_libs=yes
9974  dynamic_linker='GNU ld.so'
9975  ;;
9976
9977netbsd*)
9978  version_type=sunos
9979  need_lib_prefix=no
9980  need_version=no
9981  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9982    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9983    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9984    dynamic_linker='NetBSD (a.out) ld.so'
9985  else
9986    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9987    soname_spec='${libname}${release}${shared_ext}$major'
9988    dynamic_linker='NetBSD ld.elf_so'
9989  fi
9990  shlibpath_var=LD_LIBRARY_PATH
9991  shlibpath_overrides_runpath=yes
9992  hardcode_into_libs=yes
9993  ;;
9994
9995newsos6)
9996  version_type=linux
9997  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9998  shlibpath_var=LD_LIBRARY_PATH
9999  shlibpath_overrides_runpath=yes
10000  ;;
10001
10002nto-qnx*)
10003  version_type=linux
10004  need_lib_prefix=no
10005  need_version=no
10006  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10007  soname_spec='${libname}${release}${shared_ext}$major'
10008  shlibpath_var=LD_LIBRARY_PATH
10009  shlibpath_overrides_runpath=yes
10010  ;;
10011
10012openbsd*)
10013  version_type=sunos
10014  sys_lib_dlsearch_path_spec="/usr/lib"
10015  need_lib_prefix=no
10016  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10017  case $host_os in
10018    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10019    *)                         need_version=no  ;;
10020  esac
10021  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10022  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10023  shlibpath_var=LD_LIBRARY_PATH
10024  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10025    case $host_os in
10026      openbsd2.[89] | openbsd2.[89].*)
10027        shlibpath_overrides_runpath=no
10028        ;;
10029      *)
10030        shlibpath_overrides_runpath=yes
10031        ;;
10032      esac
10033  else
10034    shlibpath_overrides_runpath=yes
10035  fi
10036  ;;
10037
10038os2*)
10039  libname_spec='$name'
10040  shrext_cmds=".dll"
10041  need_lib_prefix=no
10042  library_names_spec='$libname${shared_ext} $libname.a'
10043  dynamic_linker='OS/2 ld.exe'
10044  shlibpath_var=LIBPATH
10045  ;;
10046
10047osf3* | osf4* | osf5*)
10048  version_type=osf
10049  need_lib_prefix=no
10050  need_version=no
10051  soname_spec='${libname}${release}${shared_ext}$major'
10052  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10053  shlibpath_var=LD_LIBRARY_PATH
10054  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10055  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10056  ;;
10057
10058solaris*)
10059  version_type=linux
10060  need_lib_prefix=no
10061  need_version=no
10062  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10063  soname_spec='${libname}${release}${shared_ext}$major'
10064  shlibpath_var=LD_LIBRARY_PATH
10065  shlibpath_overrides_runpath=yes
10066  hardcode_into_libs=yes
10067  # ldd complains unless libraries are executable
10068  postinstall_cmds='chmod +x $lib'
10069  ;;
10070
10071sunos4*)
10072  version_type=sunos
10073  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10074  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10075  shlibpath_var=LD_LIBRARY_PATH
10076  shlibpath_overrides_runpath=yes
10077  if test "$with_gnu_ld" = yes; then
10078    need_lib_prefix=no
10079  fi
10080  need_version=yes
10081  ;;
10082
10083sysv4 | sysv4.3*)
10084  version_type=linux
10085  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10086  soname_spec='${libname}${release}${shared_ext}$major'
10087  shlibpath_var=LD_LIBRARY_PATH
10088  case $host_vendor in
10089    sni)
10090      shlibpath_overrides_runpath=no
10091      need_lib_prefix=no
10092      export_dynamic_flag_spec='${wl}-Blargedynsym'
10093      runpath_var=LD_RUN_PATH
10094      ;;
10095    siemens)
10096      need_lib_prefix=no
10097      ;;
10098    motorola)
10099      need_lib_prefix=no
10100      need_version=no
10101      shlibpath_overrides_runpath=no
10102      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10103      ;;
10104  esac
10105  ;;
10106
10107sysv4*MP*)
10108  if test -d /usr/nec ;then
10109    version_type=linux
10110    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10111    soname_spec='$libname${shared_ext}.$major'
10112    shlibpath_var=LD_LIBRARY_PATH
10113  fi
10114  ;;
10115
10116sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10117  version_type=freebsd-elf
10118  need_lib_prefix=no
10119  need_version=no
10120  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10121  soname_spec='${libname}${release}${shared_ext}$major'
10122  shlibpath_var=LD_LIBRARY_PATH
10123  hardcode_into_libs=yes
10124  if test "$with_gnu_ld" = yes; then
10125    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10126    shlibpath_overrides_runpath=no
10127  else
10128    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10129    shlibpath_overrides_runpath=yes
10130    case $host_os in
10131      sco3.2v5*)
10132        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10133        ;;
10134    esac
10135  fi
10136  sys_lib_dlsearch_path_spec='/usr/lib'
10137  ;;
10138
10139uts4*)
10140  version_type=linux
10141  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10142  soname_spec='${libname}${release}${shared_ext}$major'
10143  shlibpath_var=LD_LIBRARY_PATH
10144  ;;
10145
10146*)
10147  dynamic_linker=no
10148  ;;
10149esac
10150echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10151echo "${ECHO_T}$dynamic_linker" >&6
10152test "$dynamic_linker" = no && can_build_shared=no
10153
10154variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10155if test "$GCC" = yes; then
10156  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10157fi
10158
10159echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10160echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10161hardcode_action=
10162if test -n "$hardcode_libdir_flag_spec" || \
10163   test -n "$runpath_var" || \
10164   test "X$hardcode_automatic" = "Xyes" ; then
10165
10166  # We can hardcode non-existant directories.
10167  if test "$hardcode_direct" != no &&
10168     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10169     # have to relink, otherwise we might link with an installed library
10170     # when we should be linking with a yet-to-be-installed one
10171     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10172     test "$hardcode_minus_L" != no; then
10173    # Linking always hardcodes the temporary library directory.
10174    hardcode_action=relink
10175  else
10176    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10177    hardcode_action=immediate
10178  fi
10179else
10180  # We cannot hardcode anything, or else we can only hardcode existing
10181  # directories.
10182  hardcode_action=unsupported
10183fi
10184echo "$as_me:$LINENO: result: $hardcode_action" >&5
10185echo "${ECHO_T}$hardcode_action" >&6
10186
10187if test "$hardcode_action" = relink; then
10188  # Fast installation is not supported
10189  enable_fast_install=no
10190elif test "$shlibpath_overrides_runpath" = yes ||
10191     test "$enable_shared" = no; then
10192  # Fast installation is not necessary
10193  enable_fast_install=needless
10194fi
10195
10196striplib=
10197old_striplib=
10198echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10199echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10200if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10201  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10202  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10203  echo "$as_me:$LINENO: result: yes" >&5
10204echo "${ECHO_T}yes" >&6
10205else
10206# FIXME - insert some real tests, host_os isn't really good enough
10207  case $host_os in
10208   darwin*)
10209       if test -n "$STRIP" ; then
10210         striplib="$STRIP -x"
10211         echo "$as_me:$LINENO: result: yes" >&5
10212echo "${ECHO_T}yes" >&6
10213       else
10214  echo "$as_me:$LINENO: result: no" >&5
10215echo "${ECHO_T}no" >&6
10216fi
10217       ;;
10218   *)
10219  echo "$as_me:$LINENO: result: no" >&5
10220echo "${ECHO_T}no" >&6
10221    ;;
10222  esac
10223fi
10224
10225if test "x$enable_dlopen" != xyes; then
10226  enable_dlopen=unknown
10227  enable_dlopen_self=unknown
10228  enable_dlopen_self_static=unknown
10229else
10230  lt_cv_dlopen=no
10231  lt_cv_dlopen_libs=
10232
10233  case $host_os in
10234  beos*)
10235    lt_cv_dlopen="load_add_on"
10236    lt_cv_dlopen_libs=
10237    lt_cv_dlopen_self=yes
10238    ;;
10239
10240  mingw* | pw32*)
10241    lt_cv_dlopen="LoadLibrary"
10242    lt_cv_dlopen_libs=
10243   ;;
10244
10245  cygwin*)
10246    lt_cv_dlopen="dlopen"
10247    lt_cv_dlopen_libs=
10248   ;;
10249
10250  darwin*)
10251  # if libdl is installed we need to link against it
10252    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10253echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10254if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10255  echo $ECHO_N "(cached) $ECHO_C" >&6
10256else
10257  ac_check_lib_save_LIBS=$LIBS
10258LIBS="-ldl  $LIBS"
10259cat >conftest.$ac_ext <<_ACEOF
10260/* confdefs.h.  */
10261_ACEOF
10262cat confdefs.h >>conftest.$ac_ext
10263cat >>conftest.$ac_ext <<_ACEOF
10264/* end confdefs.h.  */
10265
10266/* Override any gcc2 internal prototype to avoid an error.  */
10267#ifdef __cplusplus
10268extern "C"
10269#endif
10270/* We use char because int might match the return type of a gcc2
10271   builtin and then its argument prototype would still apply.  */
10272char dlopen ();
10273int
10274main ()
10275{
10276dlopen ();
10277  ;
10278  return 0;
10279}
10280_ACEOF
10281rm -f conftest.$ac_objext conftest$ac_exeext
10282if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10283  (eval $ac_link) 2>conftest.er1
10284  ac_status=$?
10285  grep -v '^ *+' conftest.er1 >conftest.err
10286  rm -f conftest.er1
10287  cat conftest.err >&5
10288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289  (exit $ac_status); } &&
10290         { ac_try='test -z "$ac_c_werror_flag"
10291                         || test ! -s conftest.err'
10292  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10293  (eval $ac_try) 2>&5
10294  ac_status=$?
10295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296  (exit $ac_status); }; } &&
10297         { ac_try='test -s conftest$ac_exeext'
10298  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10299  (eval $ac_try) 2>&5
10300  ac_status=$?
10301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302  (exit $ac_status); }; }; then
10303  ac_cv_lib_dl_dlopen=yes
10304else
10305  echo "$as_me: failed program was:" >&5
10306sed 's/^/| /' conftest.$ac_ext >&5
10307
10308ac_cv_lib_dl_dlopen=no
10309fi
10310rm -f conftest.err conftest.$ac_objext \
10311      conftest$ac_exeext conftest.$ac_ext
10312LIBS=$ac_check_lib_save_LIBS
10313fi
10314echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10315echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10316if test $ac_cv_lib_dl_dlopen = yes; then
10317  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10318else
10319
10320    lt_cv_dlopen="dyld"
10321    lt_cv_dlopen_libs=
10322    lt_cv_dlopen_self=yes
10323
10324fi
10325
10326   ;;
10327
10328  *)
10329    echo "$as_me:$LINENO: checking for shl_load" >&5
10330echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10331if test "${ac_cv_func_shl_load+set}" = set; then
10332  echo $ECHO_N "(cached) $ECHO_C" >&6
10333else
10334  cat >conftest.$ac_ext <<_ACEOF
10335/* confdefs.h.  */
10336_ACEOF
10337cat confdefs.h >>conftest.$ac_ext
10338cat >>conftest.$ac_ext <<_ACEOF
10339/* end confdefs.h.  */
10340/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10341   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10342#define shl_load innocuous_shl_load
10343
10344/* System header to define __stub macros and hopefully few prototypes,
10345    which can conflict with char shl_load (); below.
10346    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10347    <limits.h> exists even on freestanding compilers.  */
10348
10349#ifdef __STDC__
10350# include <limits.h>
10351#else
10352# include <assert.h>
10353#endif
10354
10355#undef shl_load
10356
10357/* Override any gcc2 internal prototype to avoid an error.  */
10358#ifdef __cplusplus
10359extern "C"
10360{
10361#endif
10362/* We use char because int might match the return type of a gcc2
10363   builtin and then its argument prototype would still apply.  */
10364char shl_load ();
10365/* The GNU C library defines this for functions which it implements
10366    to always fail with ENOSYS.  Some functions are actually named
10367    something starting with __ and the normal name is an alias.  */
10368#if defined (__stub_shl_load) || defined (__stub___shl_load)
10369choke me
10370#else
10371char (*f) () = shl_load;
10372#endif
10373#ifdef __cplusplus
10374}
10375#endif
10376
10377int
10378main ()
10379{
10380return f != shl_load;
10381  ;
10382  return 0;
10383}
10384_ACEOF
10385rm -f conftest.$ac_objext conftest$ac_exeext
10386if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10387  (eval $ac_link) 2>conftest.er1
10388  ac_status=$?
10389  grep -v '^ *+' conftest.er1 >conftest.err
10390  rm -f conftest.er1
10391  cat conftest.err >&5
10392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10393  (exit $ac_status); } &&
10394         { ac_try='test -z "$ac_c_werror_flag"
10395                         || test ! -s conftest.err'
10396  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10397  (eval $ac_try) 2>&5
10398  ac_status=$?
10399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10400  (exit $ac_status); }; } &&
10401         { ac_try='test -s conftest$ac_exeext'
10402  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10403  (eval $ac_try) 2>&5
10404  ac_status=$?
10405  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406  (exit $ac_status); }; }; then
10407  ac_cv_func_shl_load=yes
10408else
10409  echo "$as_me: failed program was:" >&5
10410sed 's/^/| /' conftest.$ac_ext >&5
10411
10412ac_cv_func_shl_load=no
10413fi
10414rm -f conftest.err conftest.$ac_objext \
10415      conftest$ac_exeext conftest.$ac_ext
10416fi
10417echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10418echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10419if test $ac_cv_func_shl_load = yes; then
10420  lt_cv_dlopen="shl_load"
10421else
10422  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10423echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10424if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10425  echo $ECHO_N "(cached) $ECHO_C" >&6
10426else
10427  ac_check_lib_save_LIBS=$LIBS
10428LIBS="-ldld  $LIBS"
10429cat >conftest.$ac_ext <<_ACEOF
10430/* confdefs.h.  */
10431_ACEOF
10432cat confdefs.h >>conftest.$ac_ext
10433cat >>conftest.$ac_ext <<_ACEOF
10434/* end confdefs.h.  */
10435
10436/* Override any gcc2 internal prototype to avoid an error.  */
10437#ifdef __cplusplus
10438extern "C"
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 ();
10443int
10444main ()
10445{
10446shl_load ();
10447  ;
10448  return 0;
10449}
10450_ACEOF
10451rm -f conftest.$ac_objext conftest$ac_exeext
10452if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10453  (eval $ac_link) 2>conftest.er1
10454  ac_status=$?
10455  grep -v '^ *+' conftest.er1 >conftest.err
10456  rm -f conftest.er1
10457  cat conftest.err >&5
10458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10459  (exit $ac_status); } &&
10460         { ac_try='test -z "$ac_c_werror_flag"
10461                         || test ! -s conftest.err'
10462  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10463  (eval $ac_try) 2>&5
10464  ac_status=$?
10465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10466  (exit $ac_status); }; } &&
10467         { ac_try='test -s conftest$ac_exeext'
10468  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10469  (eval $ac_try) 2>&5
10470  ac_status=$?
10471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472  (exit $ac_status); }; }; then
10473  ac_cv_lib_dld_shl_load=yes
10474else
10475  echo "$as_me: failed program was:" >&5
10476sed 's/^/| /' conftest.$ac_ext >&5
10477
10478ac_cv_lib_dld_shl_load=no
10479fi
10480rm -f conftest.err conftest.$ac_objext \
10481      conftest$ac_exeext conftest.$ac_ext
10482LIBS=$ac_check_lib_save_LIBS
10483fi
10484echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10485echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10486if test $ac_cv_lib_dld_shl_load = yes; then
10487  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10488else
10489  echo "$as_me:$LINENO: checking for dlopen" >&5
10490echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10491if test "${ac_cv_func_dlopen+set}" = set; then
10492  echo $ECHO_N "(cached) $ECHO_C" >&6
10493else
10494  cat >conftest.$ac_ext <<_ACEOF
10495/* confdefs.h.  */
10496_ACEOF
10497cat confdefs.h >>conftest.$ac_ext
10498cat >>conftest.$ac_ext <<_ACEOF
10499/* end confdefs.h.  */
10500/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10501   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10502#define dlopen innocuous_dlopen
10503
10504/* System header to define __stub macros and hopefully few prototypes,
10505    which can conflict with char dlopen (); below.
10506    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10507    <limits.h> exists even on freestanding compilers.  */
10508
10509#ifdef __STDC__
10510# include <limits.h>
10511#else
10512# include <assert.h>
10513#endif
10514
10515#undef dlopen
10516
10517/* Override any gcc2 internal prototype to avoid an error.  */
10518#ifdef __cplusplus
10519extern "C"
10520{
10521#endif
10522/* We use char because int might match the return type of a gcc2
10523   builtin and then its argument prototype would still apply.  */
10524char dlopen ();
10525/* The GNU C library defines this for functions which it implements
10526    to always fail with ENOSYS.  Some functions are actually named
10527    something starting with __ and the normal name is an alias.  */
10528#if defined (__stub_dlopen) || defined (__stub___dlopen)
10529choke me
10530#else
10531char (*f) () = dlopen;
10532#endif
10533#ifdef __cplusplus
10534}
10535#endif
10536
10537int
10538main ()
10539{
10540return f != dlopen;
10541  ;
10542  return 0;
10543}
10544_ACEOF
10545rm -f conftest.$ac_objext conftest$ac_exeext
10546if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10547  (eval $ac_link) 2>conftest.er1
10548  ac_status=$?
10549  grep -v '^ *+' conftest.er1 >conftest.err
10550  rm -f conftest.er1
10551  cat conftest.err >&5
10552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10553  (exit $ac_status); } &&
10554         { ac_try='test -z "$ac_c_werror_flag"
10555                         || test ! -s conftest.err'
10556  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10557  (eval $ac_try) 2>&5
10558  ac_status=$?
10559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10560  (exit $ac_status); }; } &&
10561         { ac_try='test -s conftest$ac_exeext'
10562  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10563  (eval $ac_try) 2>&5
10564  ac_status=$?
10565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10566  (exit $ac_status); }; }; then
10567  ac_cv_func_dlopen=yes
10568else
10569  echo "$as_me: failed program was:" >&5
10570sed 's/^/| /' conftest.$ac_ext >&5
10571
10572ac_cv_func_dlopen=no
10573fi
10574rm -f conftest.err conftest.$ac_objext \
10575      conftest$ac_exeext conftest.$ac_ext
10576fi
10577echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10578echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10579if test $ac_cv_func_dlopen = yes; then
10580  lt_cv_dlopen="dlopen"
10581else
10582  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10583echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10584if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10585  echo $ECHO_N "(cached) $ECHO_C" >&6
10586else
10587  ac_check_lib_save_LIBS=$LIBS
10588LIBS="-ldl  $LIBS"
10589cat >conftest.$ac_ext <<_ACEOF
10590/* confdefs.h.  */
10591_ACEOF
10592cat confdefs.h >>conftest.$ac_ext
10593cat >>conftest.$ac_ext <<_ACEOF
10594/* end confdefs.h.  */
10595
10596/* Override any gcc2 internal prototype to avoid an error.  */
10597#ifdef __cplusplus
10598extern "C"
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 ();
10603int
10604main ()
10605{
10606dlopen ();
10607  ;
10608  return 0;
10609}
10610_ACEOF
10611rm -f conftest.$ac_objext conftest$ac_exeext
10612if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10613  (eval $ac_link) 2>conftest.er1
10614  ac_status=$?
10615  grep -v '^ *+' conftest.er1 >conftest.err
10616  rm -f conftest.er1
10617  cat conftest.err >&5
10618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10619  (exit $ac_status); } &&
10620         { ac_try='test -z "$ac_c_werror_flag"
10621                         || test ! -s conftest.err'
10622  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10623  (eval $ac_try) 2>&5
10624  ac_status=$?
10625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10626  (exit $ac_status); }; } &&
10627         { ac_try='test -s conftest$ac_exeext'
10628  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10629  (eval $ac_try) 2>&5
10630  ac_status=$?
10631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10632  (exit $ac_status); }; }; then
10633  ac_cv_lib_dl_dlopen=yes
10634else
10635  echo "$as_me: failed program was:" >&5
10636sed 's/^/| /' conftest.$ac_ext >&5
10637
10638ac_cv_lib_dl_dlopen=no
10639fi
10640rm -f conftest.err conftest.$ac_objext \
10641      conftest$ac_exeext conftest.$ac_ext
10642LIBS=$ac_check_lib_save_LIBS
10643fi
10644echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10645echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10646if test $ac_cv_lib_dl_dlopen = yes; then
10647  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10648else
10649  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10650echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10651if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10652  echo $ECHO_N "(cached) $ECHO_C" >&6
10653else
10654  ac_check_lib_save_LIBS=$LIBS
10655LIBS="-lsvld  $LIBS"
10656cat >conftest.$ac_ext <<_ACEOF
10657/* confdefs.h.  */
10658_ACEOF
10659cat confdefs.h >>conftest.$ac_ext
10660cat >>conftest.$ac_ext <<_ACEOF
10661/* end confdefs.h.  */
10662
10663/* Override any gcc2 internal prototype to avoid an error.  */
10664#ifdef __cplusplus
10665extern "C"
10666#endif
10667/* We use char because int might match the return type of a gcc2
10668   builtin and then its argument prototype would still apply.  */
10669char dlopen ();
10670int
10671main ()
10672{
10673dlopen ();
10674  ;
10675  return 0;
10676}
10677_ACEOF
10678rm -f conftest.$ac_objext conftest$ac_exeext
10679if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10680  (eval $ac_link) 2>conftest.er1
10681  ac_status=$?
10682  grep -v '^ *+' conftest.er1 >conftest.err
10683  rm -f conftest.er1
10684  cat conftest.err >&5
10685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10686  (exit $ac_status); } &&
10687         { ac_try='test -z "$ac_c_werror_flag"
10688                         || test ! -s conftest.err'
10689  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10690  (eval $ac_try) 2>&5
10691  ac_status=$?
10692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10693  (exit $ac_status); }; } &&
10694         { ac_try='test -s conftest$ac_exeext'
10695  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10696  (eval $ac_try) 2>&5
10697  ac_status=$?
10698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10699  (exit $ac_status); }; }; then
10700  ac_cv_lib_svld_dlopen=yes
10701else
10702  echo "$as_me: failed program was:" >&5
10703sed 's/^/| /' conftest.$ac_ext >&5
10704
107