source: stable/2.8/Cbc/configure @ 2068

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