source: stable/2.6/Cbc/configure @ 1562

Last change on this file since 1562 was 1562, checked in by stefan, 9 years ago

restoring Cbc/stable/2.6

  • Property svn:executable set to *
File size: 991.1 KB
<
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for Cbc 2.6.
4#
5# Report bugs to <cbc@lists.coin-or.org>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Common Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='Cbc'
431PACKAGE_TARNAME='cbc'
432PACKAGE_VERSION='2.6'
433PACKAGE_STRING='Cbc 2.6'
434PACKAGE_BUGREPORT='cbc@lists.coin-or.org'
435
436ac_unique_file="src/CbcTree.hpp"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os ADDLIBS PCADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion CBC_SVN_REV COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX COIN_CXX_IS_CL_TRUE COIN_CXX_IS_CL_FALSE MPICXX EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS PKG_CONFIG ac_pt_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED COINDEPEND_LIBS COINDEPEND_CFLAGS COINDEPEND_DATA COINDEPEND_DEPENDENCIES COINDEPEND_LIBS_INSTALLED COINDEPEND_CFLAGS_INSTALLED COINDEPEND_DATA_INSTALLED CBCLIB_CFLAGS CBCLIB_LIBS CBCLIB_PCLIBS CBCLIB_PCREQUIRES CBCLIB_DEPENDENCIES CBCLIB_CFLAGS_INSTALLED CBCLIB_LIBS_INSTALLED CBCGENERIC_CFLAGS CBCGENERIC_LIBS CBCGENERIC_PCLIBS CBCGENERIC_PCREQUIRES CBCGENERIC_DEPENDENCIES CBCGENERIC_CFLAGS_INSTALLED CBCGENERIC_LIBS_INSTALLED COIN_HAS_COINDEPEND_TRUE COIN_HAS_COINDEPEND_FALSE CLP_LIBS CLP_CFLAGS CLP_DATA CLP_DEPENDENCIES CLP_LIBS_INSTALLED CLP_CFLAGS_INSTALLED CLP_DATA_INSTALLED COIN_HAS_CLP_TRUE COIN_HAS_CLP_FALSE OSITESTS_LIBS OSITESTS_CFLAGS OSITESTS_DATA OSITESTS_DEPENDENCIES OSITESTS_LIBS_INSTALLED OSITESTS_CFLAGS_INSTALLED OSITESTS_DATA_INSTALLED COIN_HAS_OSITESTS_TRUE COIN_HAS_OSITESTS_FALSE SAMPLE_LIBS SAMPLE_CFLAGS SAMPLE_DATA SAMPLE_DEPENDENCIES SAMPLE_LIBS_INSTALLED SAMPLE_CFLAGS_INSTALLED SAMPLE_DATA_INSTALLED COIN_HAS_SAMPLE_TRUE COIN_HAS_SAMPLE_FALSE NETLIB_LIBS NETLIB_CFLAGS NETLIB_DATA NETLIB_DEPENDENCIES NETLIB_LIBS_INSTALLED NETLIB_CFLAGS_INSTALLED NETLIB_DATA_INSTALLED COIN_HAS_NETLIB_TRUE COIN_HAS_NETLIB_FALSE MIPLIB3_LIBS MIPLIB3_CFLAGS MIPLIB3_DATA MIPLIB3_DEPENDENCIES MIPLIB3_LIBS_INSTALLED MIPLIB3_CFLAGS_INSTALLED MIPLIB3_DATA_INSTALLED COIN_HAS_MIPLIB3_TRUE COIN_HAS_MIPLIB3_FALSE DYLP_LIBS DYLP_CFLAGS DYLP_DATA DYLP_DEPENDENCIES DYLP_LIBS_INSTALLED DYLP_CFLAGS_INSTALLED DYLP_DATA_INSTALLED COIN_HAS_DYLP_TRUE COIN_HAS_DYLP_FALSE VOL_LIBS VOL_CFLAGS VOL_DATA VOL_DEPENDENCIES VOL_LIBS_INSTALLED VOL_CFLAGS_INSTALLED VOL_DATA_INSTALLED COIN_HAS_VOL_TRUE COIN_HAS_VOL_FALSE CPX_LIBS CPX_CFLAGS CPX_DATA CPX_DEPENDENCIES CPX_LIBS_INSTALLED CPX_CFLAGS_INSTALLED CPX_DATA_INSTALLED COIN_HAS_CPX_TRUE COIN_HAS_CPX_FALSE GLPK_LIBS GLPK_CFLAGS GLPK_DATA GLPK_DEPENDENCIES GLPK_LIBS_INSTALLED GLPK_CFLAGS_INSTALLED GLPK_DATA_INSTALLED COIN_HAS_GLPK_TRUE COIN_HAS_GLPK_FALSE GRB_LIBS GRB_CFLAGS GRB_DATA GRB_DEPENDENCIES GRB_LIBS_INSTALLED GRB_CFLAGS_INSTALLED GRB_DATA_INSTALLED COIN_HAS_GRB_TRUE COIN_HAS_GRB_FALSE MSK_LIBS MSK_CFLAGS MSK_DATA MSK_DEPENDENCIES MSK_LIBS_INSTALLED MSK_CFLAGS_INSTALLED MSK_DATA_INSTALLED COIN_HAS_MSK_TRUE COIN_HAS_MSK_FALSE SPX_LIBS SPX_CFLAGS SPX_DATA SPX_DEPENDENCIES SPX_LIBS_INSTALLED SPX_CFLAGS_INSTALLED SPX_DATA_INSTALLED COIN_HAS_SPX_TRUE COIN_HAS_SPX_FALSE XPR_LIBS XPR_CFLAGS XPR_DATA XPR_DEPENDENCIES XPR_LIBS_INSTALLED XPR_CFLAGS_INSTALLED XPR_DATA_INSTALLED COIN_HAS_XPR_TRUE COIN_HAS_XPR_FALSE ASL_LIBS ASL_CFLAGS ASL_DATA ASL_DEPENDENCIES ASL_LIBS_INSTALLED ASL_CFLAGS_INSTALLED ASL_DATA_INSTALLED COIN_HAS_ASL_TRUE COIN_HAS_ASL_FALSE CBC_BUILD_CBC_GENERIC_TRUE CBC_BUILD_CBC_GENERIC_FALSE OSICBC_DFLT_SOLVER_CLP_TRUE OSICBC_DFLT_SOLVER_CLP_FALSE OSICBC_DFLT_SOLVER_CPX_TRUE OSICBC_DFLT_SOLVER_CPX_FALSE OSICBC_DFLT_SOLVER_DYLP_TRUE OSICBC_DFLT_SOLVER_DYLP_FALSE OSICBC_DFLT_SOLVER_GLPK_TRUE OSICBC_DFLT_SOLVER_GLPK_FALSE OSICBC_DFLT_SOLVER_GRB_TRUE OSICBC_DFLT_SOLVER_GRB_FALSE OSICBC_DFLT_SOLVER_MSK_TRUE OSICBC_DFLT_SOLVER_MSK_FALSE OSICBC_DFLT_SOLVER_SPX_TRUE OSICBC_DFLT_SOLVER_SPX_FALSE OSICBC_DFLT_SOLVER_SYM_TRUE OSICBC_DFLT_SOLVER_SYM_FALSE OSICBC_DFLT_SOLVER_VOL_TRUE OSICBC_DFLT_SOLVER_VOL_FALSE OSICBC_DFLT_SOLVER_XPR_TRUE OSICBC_DFLT_SOLVER_XPR_FALSE coin_have_doxygen coin_doxy_usedot coin_doxy_tagname coin_doxy_logname coin_doxy_tagfiles coin_doxy_excludes LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_CXXDEFS_set=${CXXDEFS+set}
953ac_env_CXXDEFS_value=$CXXDEFS
954ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
955ac_cv_env_CXXDEFS_value=$CXXDEFS
956ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
957ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
958ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
959ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
960ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
961ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
962ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
963ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
964ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
965ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
966ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
967ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
968ac_env_CXX_set=${CXX+set}
969ac_env_CXX_value=$CXX
970ac_cv_env_CXX_set=${CXX+set}
971ac_cv_env_CXX_value=$CXX
972ac_env_CXXFLAGS_set=${CXXFLAGS+set}
973ac_env_CXXFLAGS_value=$CXXFLAGS
974ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
975ac_cv_env_CXXFLAGS_value=$CXXFLAGS
976ac_env_MPICXX_set=${MPICXX+set}
977ac_env_MPICXX_value=$MPICXX
978ac_cv_env_MPICXX_set=${MPICXX+set}
979ac_cv_env_MPICXX_value=$MPICXX
980ac_env_CPP_set=${CPP+set}
981ac_env_CPP_value=$CPP
982ac_cv_env_CPP_set=${CPP+set}
983ac_cv_env_CPP_value=$CPP
984ac_env_CXXCPP_set=${CXXCPP+set}
985ac_env_CXXCPP_value=$CXXCPP
986ac_cv_env_CXXCPP_set=${CXXCPP+set}
987ac_cv_env_CXXCPP_value=$CXXCPP
988ac_env_F77_set=${F77+set}
989ac_env_F77_value=$F77
990ac_cv_env_F77_set=${F77+set}
991ac_cv_env_F77_value=$F77
992ac_env_FFLAGS_set=${FFLAGS+set}
993ac_env_FFLAGS_value=$FFLAGS
994ac_cv_env_FFLAGS_set=${FFLAGS+set}
995ac_cv_env_FFLAGS_value=$FFLAGS
996ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
997ac_env_PKG_CONFIG_value=$PKG_CONFIG
998ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
999ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
1000
1001#
1002# Report the --help message.
1003#
1004if test "$ac_init_help" = "long"; then
1005  # Omit some internal or obsolete options to make the list less imposing.
1006  # This message is too long to be a string in the A/UX 3.1 sh.
1007  cat <<_ACEOF
1008\`configure' configures Cbc 2.6 to adapt to many kinds of systems.
1009
1010Usage: $0 [OPTION]... [VAR=VALUE]...
1011
1012To assign environment variables (e.g., CC, CFLAGS...), specify them as
1013VAR=VALUE.  See below for descriptions of some of the useful variables.
1014
1015Defaults for the options are specified in brackets.
1016
1017Configuration:
1018  -h, --help              display this help and exit
1019      --help=short        display options specific to this package
1020      --help=recursive    display the short help of all the included packages
1021  -V, --version           display version information and exit
1022  -q, --quiet, --silent   do not print \`checking...' messages
1023      --cache-file=FILE   cache test results in FILE [disabled]
1024  -C, --config-cache      alias for \`--cache-file=config.cache'
1025  -n, --no-create         do not create output files
1026      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1027
1028_ACEOF
1029
1030  cat <<_ACEOF
1031Installation directories:
1032  --prefix=PREFIX         install architecture-independent files in PREFIX
1033                          [$ac_default_prefix]
1034  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1035                          [PREFIX]
1036
1037By default, \`make install' will install all the files in
1038\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1039an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1040for instance \`--prefix=\$HOME'.
1041
1042For better control, use the options below.
1043
1044Fine tuning of the installation directories:
1045  --bindir=DIR           user executables [EPREFIX/bin]
1046  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1047  --libexecdir=DIR       program executables [EPREFIX/libexec]
1048  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1049  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1050  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1051  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1052  --libdir=DIR           object code libraries [EPREFIX/lib]
1053  --includedir=DIR       C header files [PREFIX/include]
1054  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1055  --infodir=DIR          info documentation [PREFIX/info]
1056  --mandir=DIR           man documentation [PREFIX/man]
1057_ACEOF
1058
1059  cat <<\_ACEOF
1060
1061Program names:
1062  --program-prefix=PREFIX            prepend PREFIX to installed program names
1063  --program-suffix=SUFFIX            append SUFFIX to installed program names
1064  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1065
1066System types:
1067  --build=BUILD     configure for building on BUILD [guessed]
1068  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1069_ACEOF
1070fi
1071
1072if test -n "$ac_init_help"; then
1073  case $ac_init_help in
1074     short | recursive ) echo "Configuration of Cbc 2.6:";;
1075   esac
1076  cat <<\_ACEOF
1077
1078Optional Features:
1079  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1080  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1081  --enable-debug          compile all projects with debug options tests
1082  --enable-debug-cbc compile this project (Cbc) with debug options
1083  --enable-doscompile     Under Cygwin, compile so that executables run under
1084                          DOS. Set to mingw to use gcc/g++/ld with
1085                          -mno-cygwin. Set to msvc to use cl/link (or
1086                          icl/link). Default when mentioned: mingw. Default
1087                          when not mentioned: disabled.
1088  --enable-static[=PKGS]
1089                          build static libraries [default=no]
1090  --disable-dependency-tracking  speeds up one-time build
1091  --enable-dependency-tracking   do not reject slow dependency extractors
1092  --enable-maintainer-mode  enable make rules and dependencies not useful
1093                          (and sometimes confusing) to the casual installer
1094  --enable-shared[=PKGS]
1095                          build shared libraries [default=yes]
1096  --enable-fast-install[=PKGS]
1097                          optimize for fast installation [default=yes]
1098  --disable-libtool-lock  avoid locking (might break parallel builds)
1099  --enable-pkg-config     use pkg-config if available (default is yes)
1100  --enable-cbc-parallel   enables compilation of the SMP version of Cbc
1101
1102Optional Packages:
1103  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1104  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1105  --with-cbc-verbosity specify the debug verbosity level for project Cbc
1106  --with-cbc-checklevel specify the sanity check level for project Cbc
1107  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1108  --with-pic              try to use only PIC/non-PIC objects [default=use
1109                          both]
1110  --with-tags[=TAGS]
1111                          include additional configurations [automatic]
1112  --with-coin-instdir     prefix of installation directory for precompiled
1113                          COIN packages
1114  --with-coindepend-lib linker flags for using package CoinDepend
1115  --with-coindepend-incdir
1116                          directory with header files for using package
1117                          CoinDepend
1118  --with-coindepend-datadir
1119                          directory with data files for using package
1120                          CoinDepend
1121  --with-clp-lib linker flags for using package Clp
1122  --with-clp-incdir directory with header files for using package Clp
1123  --with-clp-datadir directory with data files for using package Clp
1124  --with-ositests-lib linker flags for using package OsiTests
1125  --with-ositests-incdir directory with header files for using package
1126                          OsiTests
1127  --with-ositests-datadir directory with data files for using package OsiTests
1128  --with-sample-lib linker flags for using package Sample
1129  --with-sample-incdir directory with header files for using package Sample
1130  --with-sample-datadir directory with data files for using package Sample
1131  --with-netlib-lib linker flags for using package Netlib
1132  --with-netlib-incdir directory with header files for using package Netlib
1133  --with-netlib-datadir directory with data files for using package Netlib
1134  --with-miplib3-lib linker flags for using package Miplib3
1135  --with-miplib3-incdir directory with header files for using package Miplib3
1136  --with-miplib3-datadir directory with data files for using package Miplib3
1137  --with-dylp-lib linker flags for using package DyLP
1138  --with-dylp-incdir directory with header files for using package DyLP
1139  --with-dylp-datadir directory with data files for using package DyLP
1140  --with-vol-lib linker flags for using package Vol
1141  --with-vol-incdir directory with header files for using package Vol
1142  --with-vol-datadir directory with data files for using package Vol
1143  --with-cpx-lib linker flags for using package Cpx
1144  --with-cpx-incdir directory with header files for using package Cpx
1145  --with-cpx-datadir directory with data files for using package Cpx
1146  --with-glpk-lib linker flags for using package Glpk
1147  --with-glpk-incdir directory with header files for using package Glpk
1148  --with-glpk-datadir directory with data files for using package Glpk
1149  --with-grb-lib linker flags for using package Grb
1150  --with-grb-incdir directory with header files for using package Grb
1151  --with-grb-datadir directory with data files for using package Grb
1152  --with-msk-lib linker flags for using package Msk
1153  --with-msk-incdir directory with header files for using package Msk
1154  --with-msk-datadir directory with data files for using package Msk
1155  --with-spx-lib linker flags for using package Spx
1156  --with-spx-incdir directory with header files for using package Spx
1157  --with-spx-datadir directory with data files for using package Spx
1158  --with-xpr-lib linker flags for using package Xpr
1159  --with-xpr-incdir directory with header files for using package Xpr
1160  --with-xpr-datadir directory with data files for using package Xpr
1161  --with-asl-lib linker flags for using package ASL
1162  --with-asl-incdir directory with header files for using package ASL
1163  --with-asl-datadir directory with data files for using package ASL
1164  --with-cbc-generic      specify whether to build cbc-generic (default: no)
1165  --with-cbc-generic-solver
1166                          specify default solver for cbc-generic in lower case
1167                          letters (if not given, clp is assumed)
1168  --with-osicbc-default-solver
1169                          specify underlying solver for OsiCbc (default clp)
1170  --with-dot              use dot (from graphviz) when creating documentation
1171                          with doxygen if available; --without-dot to disable
1172
1173Some influential environment variables:
1174  CDEFS       Additional -D flags to be used when compiling C code.
1175  ADD_CFLAGS  Additional C compiler options
1176  DBG_CFLAGS  Debug C compiler options
1177  OPT_CFLAGS  Optimize C compiler options
1178  CC          C compiler command
1179  CFLAGS      C compiler flags
1180  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1181              nonstandard directory <lib dir>
1182  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1183              headers in a nonstandard directory <include dir>
1184  MPICC       C MPI Compiler
1185  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1186  ADD_CXXFLAGS
1187              Additional C++ compiler options
1188  DBG_CXXFLAGS
1189              Debug C++ compiler options
1190  OPT_CXXFLAGS
1191              Optimize C++ compiler options
1192  CXX         C++ compiler command
1193  CXXFLAGS    C++ compiler flags
1194  MPICXX      C++ MPI Compiler
1195  CPP         C preprocessor
1196  CXXCPP      C++ preprocessor
1197  F77         Fortran 77 compiler command
1198  FFLAGS      Fortran 77 compiler flags
1199  PKG_CONFIG  path to pkg-config utility
1200
1201Use these variables to override the choices made by `configure' or to help
1202it to find libraries and programs with nonstandard names/locations.
1203
1204Report bugs to <cbc@lists.coin-or.org>.
1205_ACEOF
1206fi
1207
1208if test "$ac_init_help" = "recursive"; then
1209  # If there are subdirs, report their specific --help.
1210  ac_popdir=`pwd`
1211  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1212    test -d $ac_dir || continue
1213    ac_builddir=.
1214
1215if test "$ac_dir" != .; then
1216  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1217  # A "../" for each directory in $ac_dir_suffix.
1218  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1219else
1220  ac_dir_suffix= ac_top_builddir=
1221fi
1222
1223case $srcdir in
1224  .)  # No --srcdir option.  We are building in place.
1225    ac_srcdir=.
1226    if test -z "$ac_top_builddir"; then
1227       ac_top_srcdir=.
1228    else
1229       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1230    fi ;;
1231  [\\/]* | ?:[\\/]* )  # Absolute path.
1232    ac_srcdir=$srcdir$ac_dir_suffix;
1233    ac_top_srcdir=$srcdir ;;
1234  *) # Relative path.
1235    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1236    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1237esac
1238
1239# Do not use `cd foo && pwd` to compute absolute paths, because
1240# the directories may not exist.
1241case `pwd` in
1242.) ac_abs_builddir="$ac_dir";;
1243*)
1244  case "$ac_dir" in
1245  .) ac_abs_builddir=`pwd`;;
1246  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1247  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1248  esac;;
1249esac
1250case $ac_abs_builddir in
1251.) ac_abs_top_builddir=${ac_top_builddir}.;;
1252*)
1253  case ${ac_top_builddir}. in
1254  .) ac_abs_top_builddir=$ac_abs_builddir;;
1255  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1256  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1257  esac;;
1258esac
1259case $ac_abs_builddir in
1260.) ac_abs_srcdir=$ac_srcdir;;
1261*)
1262  case $ac_srcdir in
1263  .) ac_abs_srcdir=$ac_abs_builddir;;
1264  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1265  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1266  esac;;
1267esac
1268case $ac_abs_builddir in
1269.) ac_abs_top_srcdir=$ac_top_srcdir;;
1270*)
1271  case $ac_top_srcdir in
1272  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1273  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1274  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1275  esac;;
1276esac
1277
1278    cd $ac_dir
1279    # Check for guested configure; otherwise get Cygnus style configure.
1280    if test -f $ac_srcdir/configure.gnu; then
1281      echo
1282      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1283    elif test -f $ac_srcdir/configure; then
1284      echo
1285      $SHELL $ac_srcdir/configure  --help=recursive
1286    elif test -f $ac_srcdir/configure.ac ||
1287           test -f $ac_srcdir/configure.in; then
1288      echo
1289      $ac_configure --help
1290    else
1291      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1292    fi
1293    cd $ac_popdir
1294  done
1295fi
1296
1297test -n "$ac_init_help" && exit 0
1298if $ac_init_version; then
1299  cat <<\_ACEOF
1300Cbc configure 2.6
1301generated by GNU Autoconf 2.59
1302
1303Copyright (C) 2003 Free Software Foundation, Inc.
1304This configure script is free software; the Free Software Foundation
1305gives unlimited permission to copy, distribute and modify it.
1306
1307
1308Copyright 2006 International Business Machines and others.
1309All Rights Reserved.
1310This file is part of the open source package Coin which is distributed
1311under the Common Public License.
1312_ACEOF
1313  exit 0
1314fi
1315exec 5>config.log
1316cat >&5 <<_ACEOF
1317This file contains any messages produced by compilers while
1318running configure, to aid debugging if configure makes a mistake.
1319
1320It was created by Cbc $as_me 2.6, which was
1321generated by GNU Autoconf 2.59.  Invocation command line was
1322
1323  $ $0 $@
1324
1325_ACEOF
1326{
1327cat <<_ASUNAME
1328## --------- ##
1329## Platform. ##
1330## --------- ##
1331
1332hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1333uname -m = `(uname -m) 2>/dev/null || echo unknown`
1334uname -r = `(uname -r) 2>/dev/null || echo unknown`
1335uname -s = `(uname -s) 2>/dev/null || echo unknown`
1336uname -v = `(uname -v) 2>/dev/null || echo unknown`
1337
1338/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1339/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1340
1341/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1342/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1343/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1344hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1345/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1346/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1347/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1348
1349_ASUNAME
1350
1351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1352for as_dir in $PATH
1353do
1354  IFS=$as_save_IFS
1355  test -z "$as_dir" && as_dir=.
1356  echo "PATH: $as_dir"
1357done
1358
1359} >&5
1360
1361cat >&5 <<_ACEOF
1362
1363
1364## ----------- ##
1365## Core tests. ##
1366## ----------- ##
1367
1368_ACEOF
1369
1370
1371# Keep a trace of the command line.
1372# Strip out --no-create and --no-recursion so they do not pile up.
1373# Strip out --silent because we don't want to record it for future runs.
1374# Also quote any args containing shell meta-characters.
1375# Make two passes to allow for proper duplicate-argument suppression.
1376ac_configure_args=
1377ac_configure_args0=
1378ac_configure_args1=
1379ac_sep=
1380ac_must_keep_next=false
1381for ac_pass in 1 2
1382do
1383  for ac_arg
1384  do
1385    case $ac_arg in
1386    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1387    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1388    | -silent | --silent | --silen | --sile | --sil)
1389      continue ;;
1390    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1391      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1392    esac
1393    case $ac_pass in
1394    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1395    2)
1396      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1397      if test $ac_must_keep_next = true; then
1398        ac_must_keep_next=false # Got value, back to normal.
1399      else
1400        case $ac_arg in
1401          *=* | --config-cache | -C | -disable-* | --disable-* \
1402          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1403          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1404          | -with-* | --with-* | -without-* | --without-* | --x)
1405            case "$ac_configure_args0 " in
1406              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1407            esac
1408            ;;
1409          -* ) ac_must_keep_next=true ;;
1410        esac
1411      fi
1412      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1413      # Get rid of the leading space.
1414      ac_sep=" "
1415      ;;
1416    esac
1417  done
1418done
1419$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1420$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1421
1422# When interrupted or exit'd, cleanup temporary files, and complete
1423# config.log.  We remove comments because anyway the quotes in there
1424# would cause problems or look ugly.
1425# WARNING: Be sure not to use single quotes in there, as some shells,
1426# such as our DU 5.0 friend, will then `close' the trap.
1427trap 'exit_status=$?
1428  # Save into config.log some information that might help in debugging.
1429  {
1430    echo
1431
1432    cat <<\_ASBOX
1433## ---------------- ##
1434## Cache variables. ##
1435## ---------------- ##
1436_ASBOX
1437    echo
1438    # The following way of writing the cache mishandles newlines in values,
1439{
1440  (set) 2>&1 |
1441    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1442    *ac_space=\ *)
1443      sed -n \
1444        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1445          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1446      ;;
1447    *)
1448      sed -n \
1449        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1450      ;;
1451    esac;
1452}
1453    echo
1454
1455    cat <<\_ASBOX
1456## ----------------- ##
1457## Output variables. ##
1458## ----------------- ##
1459_ASBOX
1460    echo
1461    for ac_var in $ac_subst_vars
1462    do
1463      eval ac_val=$`echo $ac_var`
1464      echo "$ac_var='"'"'$ac_val'"'"'"
1465    done | sort
1466    echo
1467
1468    if test -n "$ac_subst_files"; then
1469      cat <<\_ASBOX
1470## ------------- ##
1471## Output files. ##
1472## ------------- ##
1473_ASBOX
1474      echo
1475      for ac_var in $ac_subst_files
1476      do
1477        eval ac_val=$`echo $ac_var`
1478        echo "$ac_var='"'"'$ac_val'"'"'"
1479      done | sort
1480      echo
1481    fi
1482
1483    if test -s confdefs.h; then
1484      cat <<\_ASBOX
1485## ----------- ##
1486## confdefs.h. ##
1487## ----------- ##
1488_ASBOX
1489      echo
1490      sed "/^$/d" confdefs.h | sort
1491      echo
1492    fi
1493    test "$ac_signal" != 0 &&
1494      echo "$as_me: caught signal $ac_signal"
1495    echo "$as_me: exit $exit_status"
1496  } >&5
1497  rm -f core *.core &&
1498  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1499    exit $exit_status
1500     ' 0
1501for ac_signal in 1 2 13 15; do
1502  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1503done
1504ac_signal=0
1505
1506# confdefs.h avoids OS command line length limits that DEFS can exceed.
1507rm -rf conftest* confdefs.h
1508# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1509echo >confdefs.h
1510
1511# Predefined preprocessor variables.
1512
1513cat >>confdefs.h <<_ACEOF
1514#define PACKAGE_NAME "$PACKAGE_NAME"
1515_ACEOF
1516
1517
1518cat >>confdefs.h <<_ACEOF
1519#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1520_ACEOF
1521
1522
1523cat >>confdefs.h <<_ACEOF
1524#define PACKAGE_VERSION "$PACKAGE_VERSION"
1525_ACEOF
1526
1527
1528cat >>confdefs.h <<_ACEOF
1529#define PACKAGE_STRING "$PACKAGE_STRING"
1530_ACEOF
1531
1532
1533cat >>confdefs.h <<_ACEOF
1534#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1535_ACEOF
1536
1537
1538# Let the site file select an alternate cache file if it wants to.
1539# Prefer explicitly selected file to automatically selected ones.
1540if test -z "$CONFIG_SITE"; then
1541  if test "x$prefix" != xNONE; then
1542    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1543  else
1544    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1545  fi
1546fi
1547for ac_site_file in $CONFIG_SITE; do
1548  if test -r "$ac_site_file"; then
1549    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1550echo "$as_me: loading site script $ac_site_file" >&6;}
1551    sed 's/^/| /' "$ac_site_file" >&5
1552    . "$ac_site_file"
1553  fi
1554done
1555
1556if test -r "$cache_file"; then
1557  # Some versions of bash will fail to source /dev/null (special
1558  # files actually), so we avoid doing that.
1559  if test -f "$cache_file"; then
1560    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1561echo "$as_me: loading cache $cache_file" >&6;}
1562    case $cache_file in
1563      [\\/]* | ?:[\\/]* ) . $cache_file;;
1564      *)                      . ./$cache_file;;
1565    esac
1566  fi
1567else
1568  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1569echo "$as_me: creating cache $cache_file" >&6;}
1570  >$cache_file
1571fi
1572
1573# Check that the precious variables saved in the cache have kept the same
1574# value.
1575ac_cache_corrupted=false
1576for ac_var in `(set) 2>&1 |
1577               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1578  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1579  eval ac_new_set=\$ac_env_${ac_var}_set
1580  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1581  eval ac_new_val="\$ac_env_${ac_var}_value"
1582  case $ac_old_set,$ac_new_set in
1583    set,)
1584      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1585echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1586      ac_cache_corrupted=: ;;
1587    ,set)
1588      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1589echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1590      ac_cache_corrupted=: ;;
1591    ,);;
1592    *)
1593      if test "x$ac_old_val" != "x$ac_new_val"; then
1594        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1595echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1596        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1597echo "$as_me:   former value:  $ac_old_val" >&2;}
1598        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1599echo "$as_me:   current value: $ac_new_val" >&2;}
1600        ac_cache_corrupted=:
1601      fi;;
1602  esac
1603  # Pass precious variables to config.status.
1604  if test "$ac_new_set" = set; then
1605    case $ac_new_val in
1606    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1607      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1608    *) ac_arg=$ac_var=$ac_new_val ;;
1609    esac
1610    case " $ac_configure_args " in
1611      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1612      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1613    esac
1614  fi
1615done
1616if $ac_cache_corrupted; then
1617  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1618echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1619  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1620echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1621   { (exit 1); exit 1; }; }
1622fi
1623
1624ac_ext=c
1625ac_cpp='$CPP $CPPFLAGS'
1626ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1627ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1628ac_compiler_gnu=$ac_cv_c_compiler_gnu
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659# List one file in the package so that the configure script can test
1660# whether the package is actually there
1661
1662
1663# Where should everything be installed by default?  Here, we want it
1664# to be installed directly in 'bin', 'lib', 'include' subdirectories
1665# of the directory where configure is run.  The default would be
1666# /usr/local.
1667
1668
1669#############################################################################
1670#                         Standard build tool stuff                         #
1671#############################################################################
1672
1673# Get the system type
1674ac_aux_dir=
1675for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1676  if test -f $ac_dir/install-sh; then
1677    ac_aux_dir=$ac_dir
1678    ac_install_sh="$ac_aux_dir/install-sh -c"
1679    break
1680  elif test -f $ac_dir/install.sh; then
1681    ac_aux_dir=$ac_dir
1682    ac_install_sh="$ac_aux_dir/install.sh -c"
1683    break
1684  elif test -f $ac_dir/shtool; then
1685    ac_aux_dir=$ac_dir
1686    ac_install_sh="$ac_aux_dir/shtool install -c"
1687    break
1688  fi
1689done
1690if test -z "$ac_aux_dir"; then
1691  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1692echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1693   { (exit 1); exit 1; }; }
1694fi
1695ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1696ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1697ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1698
1699# Make sure we can run config.sub.
1700$ac_config_sub sun4 >/dev/null 2>&1 ||
1701  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1702echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1703   { (exit 1); exit 1; }; }
1704
1705echo "$as_me:$LINENO: checking build system type" >&5
1706echo $ECHO_N "checking build system type... $ECHO_C" >&6
1707if test "${ac_cv_build+set}" = set; then
1708  echo $ECHO_N "(cached) $ECHO_C" >&6
1709else
1710  ac_cv_build_alias=$build_alias
1711test -z "$ac_cv_build_alias" &&
1712  ac_cv_build_alias=`$ac_config_guess`
1713test -z "$ac_cv_build_alias" &&
1714  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1715echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1716   { (exit 1); exit 1; }; }
1717ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1718  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1719echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1720   { (exit 1); exit 1; }; }
1721
1722fi
1723echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1724echo "${ECHO_T}$ac_cv_build" >&6
1725build=$ac_cv_build
1726build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1727build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1728build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1729
1730
1731
1732# If this project depends on external projects, the Externals file in
1733# the source root directory contains definition of where to find those
1734# externals.  The following macro ensures that those externals are
1735# retrieved by svn if they are not there yet.
1736# Initialize the ADDLIBS variable
1737ADDLIBS="-lm $LIBS"
1738
1739
1740# Initialize the PCADDLIBS variable.
1741# This variable is used to setup library flags for the "Libs:" section in a .pc file.
1742# In certain cases, it may contain more flags than the ADDLIBS variable.
1743PCADDLIBS=""
1744
1745
1746# As backup, we make sure we don't loose an FLIBS if it has been set
1747# by the user
1748save_FLIBS="$FLIBS"
1749
1750# Initialize the FADDLIBS variable (which is to be used with a fortran
1751# compiler and will not include FLIBS)
1752FADDLIBS="$LIBS"
1753
1754
1755# A useful makefile conditional that is always false
1756
1757
1758if false; then
1759  ALWAYS_FALSE_TRUE=
1760  ALWAYS_FALSE_FALSE='#'
1761else
1762  ALWAYS_FALSE_TRUE='#'
1763  ALWAYS_FALSE_FALSE=
1764fi
1765
1766
1767# We set the following variable so that we know later in AC_COIN_FINALIZE
1768# that we are in a project main directory
1769coin_projectdir=yes
1770
1771# Set the project's version number
1772if test "xCbc" != x; then
1773
1774cat >>confdefs.h <<_ACEOF
1775#define CBC_VERSION "$PACKAGE_VERSION"
1776_ACEOF
1777
1778fi
1779
1780# Set the project's SVN revision number. The complicated sed expression
1781# (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1782# as a single number.
1783# Extract the first word of "svnversion", so it can be a program name with args.
1784set dummy svnversion; ac_word=$2
1785echo "$as_me:$LINENO: checking for $ac_word" >&5
1786echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1787if test "${ac_cv_prog_have_svnversion+set}" = set; then
1788  echo $ECHO_N "(cached) $ECHO_C" >&6
1789else
1790  if test -n "$have_svnversion"; then
1791  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1792else
1793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1794for as_dir in $PATH
1795do
1796  IFS=$as_save_IFS
1797  test -z "$as_dir" && as_dir=.
1798  for ac_exec_ext in '' $ac_executable_extensions; do
1799  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1800    ac_cv_prog_have_svnversion="yes"
1801    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1802    break 2
1803  fi
1804done
1805done
1806
1807  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1808fi
1809fi
1810have_svnversion=$ac_cv_prog_have_svnversion
1811if test -n "$have_svnversion"; then
1812  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1813echo "${ECHO_T}$have_svnversion" >&6
1814else
1815  echo "$as_me:$LINENO: result: no" >&5
1816echo "${ECHO_T}no" >&6
1817fi
1818
1819if test "x$have_svnversion" = xyes && test "xCbc" != x; then
1820
1821  svn_rev_tmp=`cd $srcdir/$coin_has_cbc ; svnversion`
1822  CBC_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1823  if test $CBC_SVN_REV != exported; then
1824
1825cat >>confdefs.h <<_ACEOF
1826#define CBC_SVN_REV $CBC_SVN_REV
1827_ACEOF
1828
1829  fi
1830fi
1831
1832# Capture libtool library version, if given.
1833
1834
1835
1836# Check if user wants to produce debugging code
1837
1838echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1839echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1840
1841# Check whether --enable-debug or --disable-debug was given.
1842if test "${enable_debug+set}" = set; then
1843  enableval="$enable_debug"
1844  case "${enableval}" in
1845   yes) coin_debug_compile=true
1846        if test "${enable_shared+set}" = set; then :; else
1847          enable_shared=no
1848        fi
1849        ;;
1850   no)  coin_debug_compile=false
1851        ;;
1852   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1853echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1854   { (exit 1); exit 1; }; }
1855        ;;
1856esac
1857else
1858  coin_debug_compile=false
1859fi;
1860
1861# Check whether --enable-debug-cbc or --disable-debug-cbc was given.
1862if test "${enable_debug_cbc+set}" = set; then
1863  enableval="$enable_debug_cbc"
1864  case "${enableval}" in
1865    yes) coin_debug_compile=true
1866         enable_shared=no
1867         ;;
1868    no)  coin_debug_compile=false
1869         ;;
1870    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-cbc" >&5
1871echo "$as_me: error: bad value ${enableval} for --enable-debug-cbc" >&2;}
1872   { (exit 1); exit 1; }; }
1873         ;;
1874 esac
1875else
1876  :
1877fi;
1878
1879 # m4_ifvaln([Cbc],
1880
1881if test $coin_debug_compile = true; then
1882  echo "$as_me:$LINENO: result: yes" >&5
1883echo "${ECHO_T}yes" >&6
1884else
1885  echo "$as_me:$LINENO: result: no" >&5
1886echo "${ECHO_T}no" >&6
1887fi
1888
1889
1890# Check whether --with-cbc-verbosity or --without-cbc-verbosity was given.
1891if test "${with_cbc_verbosity+set}" = set; then
1892  withval="$with_cbc_verbosity"
1893  if test "$withval" = yes; then
1894                withval=1
1895              fi
1896              coin_cbc_verbosity=$withval
1897else
1898  coin_cbc_verbosity=0
1899fi;
1900
1901cat >>confdefs.h <<_ACEOF
1902#define COIN_CBC_VERBOSITY $coin_cbc_verbosity
1903_ACEOF
1904
1905
1906
1907# Check whether --with-cbc-checklevel or --without-cbc-checklevel was given.
1908if test "${with_cbc_checklevel+set}" = set; then
1909  withval="$with_cbc_checklevel"
1910  if test "$withval" = yes; then
1911                withval=1
1912              fi
1913              coin_cbc_checklevel=$withval
1914else
1915  coin_cbc_checklevel=0
1916fi;
1917
1918cat >>confdefs.h <<_ACEOF
1919#define COIN_CBC_CHECKLEVEL $coin_cbc_checklevel
1920_ACEOF
1921
1922
1923# We use the following variable to have a string with the upper case
1924# version of the project name
1925COIN_PRJCT=CBC
1926
1927
1928 # m4_ifvaln([Cbc],
1929
1930
1931
1932# Get the name of the C++ compiler and appropriate compiler options
1933case $build in
1934  *-mingw*)
1935    if test "${LD+set}" = set; then :; else
1936      LD=link
1937    fi
1938    ;;
1939 esac
1940 case $enable_doscompile in
1941   msvc)
1942     if test "x${LD+set}" = xset; then :; else
1943       LD=link
1944     fi
1945     ;;
1946 esac
1947
1948
1949 # Check whether --enable-doscompile or --disable-doscompile was given.
1950if test "${enable_doscompile+set}" = set; then
1951  enableval="$enable_doscompile"
1952  if test "$enable_doscompile" != no; then
1953     case $build in
1954       *-cygwin* | *-mingw*) ;;
1955       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1956echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1957   { (exit 1); exit 1; }; } ;;
1958     esac
1959   fi
1960else
1961  enable_doscompile=no
1962fi;
1963 case "$enable_doscompile" in
1964   mingw)
1965     case $build in
1966       *-mingw*) enable_doscompile=no ;;
1967     esac
1968     ;;
1969   msvc|no) ;;
1970   yes) enable_doscompile=mingw ;;
1971   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1972                    Try configure --help=recursive." >&5
1973echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1974                    Try configure --help=recursive." >&2;}
1975   { (exit 1); exit 1; }; }
1976      ;;
1977  esac
1978  if test "$enable_doscompile" != no ; then
1979    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1980echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1981  fi
1982
1983
1984
1985
1986ac_ext=c
1987ac_cpp='$CPP $CPPFLAGS'
1988ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1989ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1990ac_compiler_gnu=$ac_cv_c_compiler_gnu
1991
1992
1993# For consistency, we set the C compiler to the same value of the C++
1994# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1995if test x"$CXX" != x; then
1996  case "$CXX" in
1997    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1998      if test x"$CC" = x; then
1999        CC="$CXX"
2000        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
2001echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
2002      fi
2003      ;;
2004  esac
2005fi
2006
2007# add automake conditional so we can recognize cl compiler in makefile
2008coin_cc_is_cl=false
2009if test x"$CXX" != x; then
2010  case "$CXX" in
2011    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2012      coin_cc_is_cl=true
2013      ;;
2014  esac
2015fi
2016
2017
2018if test $coin_cc_is_cl = true; then
2019  COIN_CC_IS_CL_TRUE=
2020  COIN_CC_IS_CL_FALSE='#'
2021else
2022  COIN_CC_IS_CL_TRUE='#'
2023  COIN_CC_IS_CL_FALSE=
2024fi
2025
2026
2027
2028
2029
2030
2031
2032coin_has_cc=yes
2033
2034save_cflags="$CFLAGS"
2035
2036# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
2037# Depending on the user's PATH, when Studio/Workshop cc is not present we may
2038# find /usr/ucb/cc, which is almost certainly not a good choice for the C
2039# compiler. In this case, put cc after gcc.
2040
2041case $build in
2042  *-cygwin* | *-mingw*)
2043             if test "$enable_doscompile" = msvc ; then
2044               comps="icl cl"
2045             else
2046               comps="gcc cl"
2047             fi ;;
2048  *-*-solaris*)
2049             # Extract the first word of "cc", so it can be a program name with args.
2050set dummy cc; ac_word=$2
2051echo "$as_me:$LINENO: checking for $ac_word" >&5
2052echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2053if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
2054  echo $ECHO_N "(cached) $ECHO_C" >&6
2055else
2056  if test -n "$sol_cc_compiler"; then
2057  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
2058else
2059  ac_prog_rejected=no
2060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2061for as_dir in $PATH
2062do
2063  IFS=$as_save_IFS
2064  test -z "$as_dir" && as_dir=.
2065  for ac_exec_ext in '' $ac_executable_extensions; do
2066  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2067    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2068       ac_prog_rejected=yes
2069       continue
2070     fi
2071    ac_cv_prog_sol_cc_compiler="cc"
2072    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2073    break 2
2074  fi
2075done
2076done
2077
2078if test $ac_prog_rejected = yes; then
2079  # We found a bogon in the path, so make sure we never use it.
2080  set dummy $ac_cv_prog_sol_cc_compiler
2081  shift
2082  if test $# != 0; then
2083    # We chose a different compiler from the bogus one.
2084    # However, it has the same basename, so the bogon will be chosen
2085    # first if we set sol_cc_compiler to just the basename; use the full file name.
2086    shift
2087    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2088  fi
2089fi
2090fi
2091fi
2092sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2093if test -n "$sol_cc_compiler"; then
2094  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2095echo "${ECHO_T}$sol_cc_compiler" >&6
2096else
2097  echo "$as_me:$LINENO: result: no" >&5
2098echo "${ECHO_T}no" >&6
2099fi
2100
2101             if test "$sol_cc_compiler" = "cc" ; then
2102               comps="cc xlc gcc pgcc icc"
2103             else
2104               comps="xlc gcc pgcc icc cc"
2105             fi
2106             ;;
2107  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2108  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2109esac
2110
2111# We delete the cached value, since the test might not have been
2112# performed with our choice of compilers earlier
2113$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2114# AC_MSG_NOTICE([C compiler candidates: $comps])
2115ac_ext=c
2116ac_cpp='$CPP $CPPFLAGS'
2117ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2118ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2119ac_compiler_gnu=$ac_cv_c_compiler_gnu
2120if test -n "$ac_tool_prefix"; then
2121  for ac_prog in $comps
2122  do
2123    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2124set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2125echo "$as_me:$LINENO: checking for $ac_word" >&5
2126echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2127if test "${ac_cv_prog_CC+set}" = set; then
2128  echo $ECHO_N "(cached) $ECHO_C" >&6
2129else
2130  if test -n "$CC"; then
2131  ac_cv_prog_CC="$CC" # Let the user override the test.
2132else
2133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2134for as_dir in $PATH
2135do
2136  IFS=$as_save_IFS
2137  test -z "$as_dir" && as_dir=.
2138  for ac_exec_ext in '' $ac_executable_extensions; do
2139  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2140    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2141    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2142    break 2
2143  fi
2144done
2145done
2146
2147fi
2148fi
2149CC=$ac_cv_prog_CC
2150if test -n "$CC"; then
2151  echo "$as_me:$LINENO: result: $CC" >&5
2152echo "${ECHO_T}$CC" >&6
2153else
2154  echo "$as_me:$LINENO: result: no" >&5
2155echo "${ECHO_T}no" >&6
2156fi
2157
2158    test -n "$CC" && break
2159  done
2160fi
2161if test -z "$CC"; then
2162  ac_ct_CC=$CC
2163  for ac_prog in $comps
2164do
2165  # Extract the first word of "$ac_prog", so it can be a program name with args.
2166set dummy $ac_prog; ac_word=$2
2167echo "$as_me:$LINENO: checking for $ac_word" >&5
2168echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2169if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2170  echo $ECHO_N "(cached) $ECHO_C" >&6
2171else
2172  if test -n "$ac_ct_CC"; then
2173  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2174else
2175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2176for as_dir in $PATH
2177do
2178  IFS=$as_save_IFS
2179  test -z "$as_dir" && as_dir=.
2180  for ac_exec_ext in '' $ac_executable_extensions; do
2181  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2182    ac_cv_prog_ac_ct_CC="$ac_prog"
2183    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2184    break 2
2185  fi
2186done
2187done
2188
2189fi
2190fi
2191ac_ct_CC=$ac_cv_prog_ac_ct_CC
2192if test -n "$ac_ct_CC"; then
2193  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2194echo "${ECHO_T}$ac_ct_CC" >&6
2195else
2196  echo "$as_me:$LINENO: result: no" >&5
2197echo "${ECHO_T}no" >&6
2198fi
2199
2200  test -n "$ac_ct_CC" && break
2201done
2202
2203  CC=$ac_ct_CC
2204fi
2205
2206
2207test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2208See \`config.log' for more details." >&5
2209echo "$as_me: error: no acceptable C compiler found in \$PATH
2210See \`config.log' for more details." >&2;}
2211   { (exit 1); exit 1; }; }
2212
2213# Provide some information about the compiler.
2214echo "$as_me:$LINENO:" \
2215     "checking for C compiler version" >&5
2216ac_compiler=`set X $ac_compile; echo $2`
2217{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2218  (eval $ac_compiler --version </dev/null >&5) 2>&5
2219  ac_status=$?
2220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221  (exit $ac_status); }
2222{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2223  (eval $ac_compiler -v </dev/null >&5) 2>&5
2224  ac_status=$?
2225  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2226  (exit $ac_status); }
2227{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2228  (eval $ac_compiler -V </dev/null >&5) 2>&5
2229  ac_status=$?
2230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231  (exit $ac_status); }
2232
2233cat >conftest.$ac_ext <<_ACEOF
2234/* confdefs.h.  */
2235_ACEOF
2236cat confdefs.h >>conftest.$ac_ext
2237cat >>conftest.$ac_ext <<_ACEOF
2238/* end confdefs.h.  */
2239
2240int
2241main ()
2242{
2243
2244  ;
2245  return 0;
2246}
2247_ACEOF
2248ac_clean_files_save=$ac_clean_files
2249ac_clean_files="$ac_clean_files a.out a.exe b.out"
2250# Try to create an executable without -o first, disregard a.out.
2251# It will help us diagnose broken compilers, and finding out an intuition
2252# of exeext.
2253echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2254echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2255ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2256if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2257  (eval $ac_link_default) 2>&5
2258  ac_status=$?
2259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260  (exit $ac_status); }; then
2261  # Find the output, starting from the most likely.  This scheme is
2262# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2263# resort.
2264
2265# Be careful to initialize this variable, since it used to be cached.
2266# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2267ac_cv_exeext=
2268# b.out is created by i960 compilers.
2269for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2270do
2271  test -f "$ac_file" || continue
2272  case $ac_file in
2273    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2274        ;;
2275    conftest.$ac_ext )
2276        # This is the source file.
2277        ;;
2278    [ab].out )
2279        # We found the default executable, but exeext='' is most
2280        # certainly right.
2281        break;;
2282    *.* )
2283        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2284        # FIXME: I believe we export ac_cv_exeext for Libtool,
2285        # but it would be cool to find out if it's true.  Does anybody
2286        # maintain Libtool? --akim.
2287        export ac_cv_exeext
2288        break;;
2289    * )
2290        break;;
2291  esac
2292done
2293else
2294  echo "$as_me: failed program was:" >&5
2295sed 's/^/| /' conftest.$ac_ext >&5
2296
2297{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2298See \`config.log' for more details." >&5
2299echo "$as_me: error: C compiler cannot create executables
2300See \`config.log' for more details." >&2;}
2301   { (exit 77); exit 77; }; }
2302fi
2303
2304ac_exeext=$ac_cv_exeext
2305echo "$as_me:$LINENO: result: $ac_file" >&5
2306echo "${ECHO_T}$ac_file" >&6
2307
2308# Check the compiler produces executables we can run.  If not, either
2309# the compiler is broken, or we cross compile.
2310echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2311echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2312# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2313# If not cross compiling, check that we can run a simple program.
2314if test "$cross_compiling" != yes; then
2315  if { ac_try='./$ac_file'
2316  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2317  (eval $ac_try) 2>&5
2318  ac_status=$?
2319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320  (exit $ac_status); }; }; then
2321    cross_compiling=no
2322  else
2323    if test "$cross_compiling" = maybe; then
2324        cross_compiling=yes
2325    else
2326        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2327If you meant to cross compile, use \`--host'.
2328See \`config.log' for more details." >&5
2329echo "$as_me: error: cannot run C compiled programs.
2330If you meant to cross compile, use \`--host'.
2331See \`config.log' for more details." >&2;}
2332   { (exit 1); exit 1; }; }
2333    fi
2334  fi
2335fi
2336echo "$as_me:$LINENO: result: yes" >&5
2337echo "${ECHO_T}yes" >&6
2338
2339rm -f a.out a.exe conftest$ac_cv_exeext b.out
2340ac_clean_files=$ac_clean_files_save
2341# Check the compiler produces executables we can run.  If not, either
2342# the compiler is broken, or we cross compile.
2343echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2344echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2345echo "$as_me:$LINENO: result: $cross_compiling" >&5
2346echo "${ECHO_T}$cross_compiling" >&6
2347
2348echo "$as_me:$LINENO: checking for suffix of executables" >&5
2349echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2350if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2351  (eval $ac_link) 2>&5
2352  ac_status=$?
2353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354  (exit $ac_status); }; then
2355  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2356# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2357# work properly (i.e., refer to `conftest.exe'), while it won't with
2358# `rm'.
2359for ac_file in conftest.exe conftest conftest.*; do
2360  test -f "$ac_file" || continue
2361  case $ac_file in
2362    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2363    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2364          export ac_cv_exeext
2365          break;;
2366    * ) break;;
2367  esac
2368done
2369else
2370  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2371See \`config.log' for more details." >&5
2372echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2373See \`config.log' for more details." >&2;}
2374   { (exit 1); exit 1; }; }
2375fi
2376
2377rm -f conftest$ac_cv_exeext
2378echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2379echo "${ECHO_T}$ac_cv_exeext" >&6
2380
2381rm -f conftest.$ac_ext
2382EXEEXT=$ac_cv_exeext
2383ac_exeext=$EXEEXT
2384echo "$as_me:$LINENO: checking for suffix of object files" >&5
2385echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2386if test "${ac_cv_objext+set}" = set; then
2387  echo $ECHO_N "(cached) $ECHO_C" >&6
2388else
2389  cat >conftest.$ac_ext <<_ACEOF
2390/* confdefs.h.  */
2391_ACEOF
2392cat confdefs.h >>conftest.$ac_ext
2393cat >>conftest.$ac_ext <<_ACEOF
2394/* end confdefs.h.  */
2395
2396int
2397main ()
2398{
2399
2400  ;
2401  return 0;
2402}
2403_ACEOF
2404rm -f conftest.o conftest.obj
2405if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2406  (eval $ac_compile) 2>&5
2407  ac_status=$?
2408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409  (exit $ac_status); }; then
2410  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2411  case $ac_file in
2412    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2413    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2414       break;;
2415  esac
2416done
2417else
2418  echo "$as_me: failed program was:" >&5
2419sed 's/^/| /' conftest.$ac_ext >&5
2420
2421{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2422See \`config.log' for more details." >&5
2423echo "$as_me: error: cannot compute suffix of object files: cannot compile
2424See \`config.log' for more details." >&2;}
2425   { (exit 1); exit 1; }; }
2426fi
2427
2428rm -f conftest.$ac_cv_objext conftest.$ac_ext
2429fi
2430echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2431echo "${ECHO_T}$ac_cv_objext" >&6
2432OBJEXT=$ac_cv_objext
2433ac_objext=$OBJEXT
2434echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2435echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2436if test "${ac_cv_c_compiler_gnu+set}" = set; then
2437  echo $ECHO_N "(cached) $ECHO_C" >&6
2438else
2439  cat >conftest.$ac_ext <<_ACEOF
2440/* confdefs.h.  */
2441_ACEOF
2442cat confdefs.h >>conftest.$ac_ext
2443cat >>conftest.$ac_ext <<_ACEOF
2444/* end confdefs.h.  */
2445
2446int
2447main ()
2448{
2449#ifndef __GNUC__
2450       choke me
2451#endif
2452
2453  ;
2454  return 0;
2455}
2456_ACEOF
2457rm -f conftest.$ac_objext
2458if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2459  (eval $ac_compile) 2>conftest.er1
2460  ac_status=$?
2461  grep -v '^ *+' conftest.er1 >conftest.err
2462  rm -f conftest.er1
2463  cat conftest.err >&5
2464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465  (exit $ac_status); } &&
2466         { ac_try='test -z "$ac_c_werror_flag"
2467                         || test ! -s conftest.err'
2468  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2469  (eval $ac_try) 2>&5
2470  ac_status=$?
2471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472  (exit $ac_status); }; } &&
2473         { ac_try='test -s conftest.$ac_objext'
2474  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2475  (eval $ac_try) 2>&5
2476  ac_status=$?
2477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478  (exit $ac_status); }; }; then
2479  ac_compiler_gnu=yes
2480else
2481  echo "$as_me: failed program was:" >&5
2482sed 's/^/| /' conftest.$ac_ext >&5
2483
2484ac_compiler_gnu=no
2485fi
2486rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2487ac_cv_c_compiler_gnu=$ac_compiler_gnu
2488
2489fi
2490echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2491echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2492GCC=`test $ac_compiler_gnu = yes && echo yes`
2493ac_test_CFLAGS=${CFLAGS+set}
2494ac_save_CFLAGS=$CFLAGS
2495CFLAGS="-g"
2496echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2497echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2498if test "${ac_cv_prog_cc_g+set}" = set; then
2499  echo $ECHO_N "(cached) $ECHO_C" >&6
2500else
2501  cat >conftest.$ac_ext <<_ACEOF
2502/* confdefs.h.  */
2503_ACEOF
2504cat confdefs.h >>conftest.$ac_ext
2505cat >>conftest.$ac_ext <<_ACEOF
2506/* end confdefs.h.  */
2507
2508int
2509main ()
2510{
2511
2512  ;
2513  return 0;
2514}
2515_ACEOF
2516rm -f conftest.$ac_objext
2517if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2518  (eval $ac_compile) 2>conftest.er1
2519  ac_status=$?
2520  grep -v '^ *+' conftest.er1 >conftest.err
2521  rm -f conftest.er1
2522  cat conftest.err >&5
2523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524  (exit $ac_status); } &&
2525         { ac_try='test -z "$ac_c_werror_flag"
2526                         || test ! -s conftest.err'
2527  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2528  (eval $ac_try) 2>&5
2529  ac_status=$?
2530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531  (exit $ac_status); }; } &&
2532         { ac_try='test -s conftest.$ac_objext'
2533  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2534  (eval $ac_try) 2>&5
2535  ac_status=$?
2536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537  (exit $ac_status); }; }; then
2538  ac_cv_prog_cc_g=yes
2539else
2540  echo "$as_me: failed program was:" >&5
2541sed 's/^/| /' conftest.$ac_ext >&5
2542
2543ac_cv_prog_cc_g=no
2544fi
2545rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2546fi
2547echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2548echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2549if test "$ac_test_CFLAGS" = set; then
2550  CFLAGS=$ac_save_CFLAGS
2551elif test $ac_cv_prog_cc_g = yes; then
2552  if test "$GCC" = yes; then
2553    CFLAGS="-g -O2"
2554  else
2555    CFLAGS="-g"
2556  fi
2557else
2558  if test "$GCC" = yes; then
2559    CFLAGS="-O2"
2560  else
2561    CFLAGS=
2562  fi
2563fi
2564echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2565echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2566if test "${ac_cv_prog_cc_stdc+set}" = set; then
2567  echo $ECHO_N "(cached) $ECHO_C" >&6
2568else
2569  ac_cv_prog_cc_stdc=no
2570ac_save_CC=$CC
2571cat >conftest.$ac_ext <<_ACEOF
2572/* confdefs.h.  */
2573_ACEOF
2574cat confdefs.h >>conftest.$ac_ext
2575cat >>conftest.$ac_ext <<_ACEOF
2576/* end confdefs.h.  */
2577#include <stdarg.h>
2578#include <stdio.h>
2579#include <sys/types.h>
2580#include <sys/stat.h>
2581/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2582struct buf { int x; };
2583FILE * (*rcsopen) (struct buf *, struct stat *, int);
2584static char *e (p, i)
2585     char **p;
2586     int i;
2587{
2588  return p[i];
2589}
2590static char *f (char * (*g) (char **, int), char **p, ...)
2591{
2592  char *s;
2593  va_list v;
2594  va_start (v,p);
2595  s = g (p, va_arg (v,int));
2596  va_end (v);
2597  return s;
2598}
2599
2600/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2601   function prototypes and stuff, but not '\xHH' hex character constants.
2602   These don't provoke an error unfortunately, instead are silently treated
2603   as 'x'.  The following induces an error, until -std1 is added to get
2604   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2605   array size at least.  It's necessary to write '\x00'==0 to get something
2606   that's true only with -std1.  */
2607int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2608
2609int test (int i, double x);
2610struct s1 {int (*f) (int a);};
2611struct s2 {int (*f) (double a);};
2612int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2613int argc;
2614char **argv;
2615int
2616main ()
2617{
2618return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2619  ;
2620  return 0;
2621}
2622_ACEOF
2623# Don't try gcc -ansi; that turns off useful extensions and
2624# breaks some systems' header files.
2625# AIX                   -qlanglvl=ansi
2626# Ultrix and OSF/1      -std1
2627# HP-UX 10.20 and later -Ae
2628# HP-UX older versions  -Aa -D_HPUX_SOURCE
2629# SVR4                  -Xc -D__EXTENSIONS__
2630for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2631do
2632  CC="$ac_save_CC $ac_arg"
2633  rm -f conftest.$ac_objext
2634if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2635  (eval $ac_compile) 2>conftest.er1
2636  ac_status=$?
2637  grep -v '^ *+' conftest.er1 >conftest.err
2638  rm -f conftest.er1
2639  cat conftest.err >&5
2640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641  (exit $ac_status); } &&
2642         { ac_try='test -z "$ac_c_werror_flag"
2643                         || test ! -s conftest.err'
2644  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2645  (eval $ac_try) 2>&5
2646  ac_status=$?
2647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648  (exit $ac_status); }; } &&
2649         { ac_try='test -s conftest.$ac_objext'
2650  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2651  (eval $ac_try) 2>&5
2652  ac_status=$?
2653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654  (exit $ac_status); }; }; then
2655  ac_cv_prog_cc_stdc=$ac_arg
2656break
2657else
2658  echo "$as_me: failed program was:" >&5
2659sed 's/^/| /' conftest.$ac_ext >&5
2660
2661fi
2662rm -f conftest.err conftest.$ac_objext
2663done
2664rm -f conftest.$ac_ext conftest.$ac_objext
2665CC=$ac_save_CC
2666
2667fi
2668
2669case "x$ac_cv_prog_cc_stdc" in
2670  x|xno)
2671    echo "$as_me:$LINENO: result: none needed" >&5
2672echo "${ECHO_T}none needed" >&6 ;;
2673  *)
2674    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2675echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2676    CC="$CC $ac_cv_prog_cc_stdc" ;;
2677esac
2678
2679# Some people use a C++ compiler to compile C.  Since we use `exit',
2680# in C++ we need to declare it.  In case someone uses the same compiler
2681# for both compiling C and C++ we need to have the C++ compiler decide
2682# the declaration of exit, since it's the most demanding environment.
2683cat >conftest.$ac_ext <<_ACEOF
2684#ifndef __cplusplus
2685  choke me
2686#endif
2687_ACEOF
2688rm -f conftest.$ac_objext
2689if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2690  (eval $ac_compile) 2>conftest.er1
2691  ac_status=$?
2692  grep -v '^ *+' conftest.er1 >conftest.err
2693  rm -f conftest.er1
2694  cat conftest.err >&5
2695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696  (exit $ac_status); } &&
2697         { ac_try='test -z "$ac_c_werror_flag"
2698                         || test ! -s conftest.err'
2699  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2700  (eval $ac_try) 2>&5
2701  ac_status=$?
2702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703  (exit $ac_status); }; } &&
2704         { ac_try='test -s conftest.$ac_objext'
2705  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2706  (eval $ac_try) 2>&5
2707  ac_status=$?
2708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709  (exit $ac_status); }; }; then
2710  for ac_declaration in \
2711   '' \
2712   'extern "C" void std::exit (int) throw (); using std::exit;' \
2713   'extern "C" void std::exit (int); using std::exit;' \
2714   'extern "C" void exit (int) throw ();' \
2715   'extern "C" void exit (int);' \
2716   'void exit (int);'
2717do
2718  cat >conftest.$ac_ext <<_ACEOF
2719/* confdefs.h.  */
2720_ACEOF
2721cat confdefs.h >>conftest.$ac_ext
2722cat >>conftest.$ac_ext <<_ACEOF
2723/* end confdefs.h.  */
2724$ac_declaration
2725#include <stdlib.h>
2726int
2727main ()
2728{
2729exit (42);
2730  ;
2731  return 0;
2732}
2733_ACEOF
2734rm -f conftest.$ac_objext
2735if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2736  (eval $ac_compile) 2>conftest.er1
2737  ac_status=$?
2738  grep -v '^ *+' conftest.er1 >conftest.err
2739  rm -f conftest.er1
2740  cat conftest.err >&5
2741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742  (exit $ac_status); } &&
2743         { ac_try='test -z "$ac_c_werror_flag"
2744                         || test ! -s conftest.err'
2745  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2746  (eval $ac_try) 2>&5
2747  ac_status=$?
2748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749  (exit $ac_status); }; } &&
2750         { ac_try='test -s conftest.$ac_objext'
2751  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2752  (eval $ac_try) 2>&5
2753  ac_status=$?
2754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755  (exit $ac_status); }; }; then
2756  :
2757else
2758  echo "$as_me: failed program was:" >&5
2759sed 's/^/| /' conftest.$ac_ext >&5
2760
2761continue
2762fi
2763rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2764  cat >conftest.$ac_ext <<_ACEOF
2765/* confdefs.h.  */
2766_ACEOF
2767cat confdefs.h >>conftest.$ac_ext
2768cat >>conftest.$ac_ext <<_ACEOF
2769/* end confdefs.h.  */
2770$ac_declaration
2771int
2772main ()
2773{
2774exit (42);
2775  ;
2776  return 0;
2777}
2778_ACEOF
2779rm -f conftest.$ac_objext
2780if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2781  (eval $ac_compile) 2>conftest.er1
2782  ac_status=$?
2783  grep -v '^ *+' conftest.er1 >conftest.err
2784  rm -f conftest.er1
2785  cat conftest.err >&5
2786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787  (exit $ac_status); } &&
2788         { ac_try='test -z "$ac_c_werror_flag"
2789                         || test ! -s conftest.err'
2790  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2791  (eval $ac_try) 2>&5
2792  ac_status=$?
2793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794  (exit $ac_status); }; } &&
2795         { ac_try='test -s conftest.$ac_objext'
2796  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2797  (eval $ac_try) 2>&5
2798  ac_status=$?
2799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800  (exit $ac_status); }; }; then
2801  break
2802else
2803  echo "$as_me: failed program was:" >&5
2804sed 's/^/| /' conftest.$ac_ext >&5
2805
2806fi
2807rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2808done
2809rm -f conftest*
2810if test -n "$ac_declaration"; then
2811  echo '#ifdef __cplusplus' >>confdefs.h
2812  echo $ac_declaration      >>confdefs.h
2813  echo '#endif'             >>confdefs.h
2814fi
2815
2816else
2817  echo "$as_me: failed program was:" >&5
2818sed 's/^/| /' conftest.$ac_ext >&5
2819
2820fi
2821rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2822ac_ext=c
2823ac_cpp='$CPP $CPPFLAGS'
2824ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2825ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2826ac_compiler_gnu=$ac_cv_c_compiler_gnu
2827
2828if test -z "$CC" ; then
2829  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2830echo "$as_me: error: Failed to find a C compiler!" >&2;}
2831   { (exit 1); exit 1; }; }
2832fi
2833# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2834case "$CC" in
2835  cl* | */cl* | CL* | */CL* )
2836    if test "$ac_cv_prog_cc_g" = yes ; then
2837      ac_cv_prog_cc_g=no
2838      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2839echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2840    fi ;;
2841esac
2842CFLAGS="$save_cflags"
2843
2844# Check if a project specific CFLAGS variable has been set
2845if test x$COIN_PRJCT != x; then
2846  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2847  if test x$coin_tmp = xset; then
2848    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2849  fi
2850fi
2851
2852if test x"$CFLAGS" = x; then
2853
2854  coin_add_cflags=
2855  coin_opt_cflags=
2856  coin_dbg_cflags=
2857  coin_warn_cflags=
2858
2859  if test "$GCC" = "yes"; then
2860    case "$CC" in
2861      icc* | */icc*)
2862        ;;
2863      *)
2864        coin_opt_cflags="-O3"
2865        coin_add_cflags="-pipe"
2866        coin_dbg_cflags="-g"
2867        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas"
2868        case $build in
2869          *-darwin*)
2870            ;;
2871          *)
2872            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2873            ;;
2874        esac
2875        case $enable_doscompile in
2876          mingw)
2877            CFLAGS="-mno-cygwin"
2878            cat >conftest.$ac_ext <<_ACEOF
2879/* confdefs.h.  */
2880_ACEOF
2881cat confdefs.h >>conftest.$ac_ext
2882cat >>conftest.$ac_ext <<_ACEOF
2883/* end confdefs.h.  */
2884
2885int
2886main ()
2887{
2888int i=0; i++;
2889  ;
2890  return 0;
2891}
2892_ACEOF
2893rm -f conftest.$ac_objext conftest$ac_exeext
2894if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2895  (eval $ac_link) 2>conftest.er1
2896  ac_status=$?
2897  grep -v '^ *+' conftest.er1 >conftest.err
2898  rm -f conftest.er1
2899  cat conftest.err >&5
2900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901  (exit $ac_status); } &&
2902         { ac_try='test -z "$ac_c_werror_flag"
2903                         || test ! -s conftest.err'
2904  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2905  (eval $ac_try) 2>&5
2906  ac_status=$?
2907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908  (exit $ac_status); }; } &&
2909         { ac_try='test -s conftest$ac_exeext'
2910  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2911  (eval $ac_try) 2>&5
2912  ac_status=$?
2913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914  (exit $ac_status); }; }; then
2915  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2916else
2917  echo "$as_me: failed program was:" >&5
2918sed 's/^/| /' conftest.$ac_ext >&5
2919
2920fi
2921rm -f conftest.err conftest.$ac_objext \
2922      conftest$ac_exeext conftest.$ac_ext
2923            CFLAGS=
2924          ;;
2925        esac
2926    esac
2927  fi
2928  if test -z "$coin_opt_cflags"; then
2929    case $build in
2930      *-cygwin* | *-mingw*)
2931        case "$CC" in
2932          cl* | */cl* | CL* | */CL*)
2933            coin_opt_cflags='-MT -O2'
2934            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2935            coin_dbg_cflags='-MTd'
2936            ;;
2937          icl* | */icl* | ICL* | */ICL*)
2938            coin_opt_cflags='-MT -Ox'
2939            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2940            coin_dbg_cflags='-MTd -debug'
2941            ;;
2942        esac
2943        ;;
2944      *-linux-*)
2945        case "$CC" in
2946          icc* | */icc*)
2947            coin_opt_cflags="-O3 -ip -mp1"
2948            coin_add_cflags=""
2949            coin_dbg_cflags="-g"
2950            # Check if -i_dynamic is necessary (for new glibc library)
2951            CFLAGS=
2952            cat >conftest.$ac_ext <<_ACEOF
2953/* confdefs.h.  */
2954_ACEOF
2955cat confdefs.h >>conftest.$ac_ext
2956cat >>conftest.$ac_ext <<_ACEOF
2957/* end confdefs.h.  */
2958
2959int
2960main ()
2961{
2962int i=0; i++;
2963  ;
2964  return 0;
2965}
2966_ACEOF
2967rm -f conftest.$ac_objext conftest$ac_exeext
2968if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2969  (eval $ac_link) 2>conftest.er1
2970  ac_status=$?
2971  grep -v '^ *+' conftest.er1 >conftest.err
2972  rm -f conftest.er1
2973  cat conftest.err >&5
2974  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975  (exit $ac_status); } &&
2976         { ac_try='test -z "$ac_c_werror_flag"
2977                         || test ! -s conftest.err'
2978  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2979  (eval $ac_try) 2>&5
2980  ac_status=$?
2981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982  (exit $ac_status); }; } &&
2983         { ac_try='test -s conftest$ac_exeext'
2984  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2985  (eval $ac_try) 2>&5
2986  ac_status=$?
2987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988  (exit $ac_status); }; }; then
2989  :
2990else
2991  echo "$as_me: failed program was:" >&5
2992sed 's/^/| /' conftest.$ac_ext >&5
2993
2994coin_add_cflags="-i_dynamic $coin_add_cflags"
2995fi
2996rm -f conftest.err conftest.$ac_objext \
2997      conftest$ac_exeext conftest.$ac_ext
2998            ;;
2999          pgcc* | */pgcc*)
3000            coin_opt_cflags="-fast"
3001            coin_add_cflags="-Kieee -pc 64"
3002            coin_dbg_cflags="-g"
3003            ;;
3004        esac
3005        ;;
3006      *-ibm-*)
3007        case "$CC" in
3008          xlc* | */xlc* | mpxlc* | */mpxlc*)
3009            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3010            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
3011            coin_dbg_cflags="-g"
3012          ;;
3013        esac
3014        ;;
3015      *-hp-*)
3016        coin_opt_cflags="-O"
3017        coin_add_cflags="-Ae"
3018        coin_dbg_cflags="-g"
3019        ;;
3020      *-*-solaris*)
3021        coin_opt_cflags="-xO4"
3022        coin_dbg_cflags="-g"
3023        ;;
3024      *-sgi-*)
3025        coin_opt_cflags="-O -OPT:Olimit=0"
3026        coin_dbg_cflags="-g"
3027        ;;
3028    esac
3029  fi
3030
3031  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
3032    coin_dbg_cflags="-g"
3033  fi
3034
3035  if test -z "$coin_opt_cflags"; then
3036    # Try if -O option works if nothing else is set
3037    CFLAGS="-O"
3038    cat >conftest.$ac_ext <<_ACEOF
3039/* confdefs.h.  */
3040_ACEOF
3041cat confdefs.h >>conftest.$ac_ext
3042cat >>conftest.$ac_ext <<_ACEOF
3043/* end confdefs.h.  */
3044
3045int
3046main ()
3047{
3048int i=0; i++;
3049  ;
3050  return 0;
3051}
3052_ACEOF
3053rm -f conftest.$ac_objext conftest$ac_exeext
3054if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3055  (eval $ac_link) 2>conftest.er1
3056  ac_status=$?
3057  grep -v '^ *+' conftest.er1 >conftest.err
3058  rm -f conftest.er1
3059  cat conftest.err >&5
3060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061  (exit $ac_status); } &&
3062         { ac_try='test -z "$ac_c_werror_flag"
3063                         || test ! -s conftest.err'
3064  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3065  (eval $ac_try) 2>&5
3066  ac_status=$?
3067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068  (exit $ac_status); }; } &&
3069         { ac_try='test -s conftest$ac_exeext'
3070  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3071  (eval $ac_try) 2>&5
3072  ac_status=$?
3073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074  (exit $ac_status); }; }; then
3075  coin_opt_cflags="-O"
3076else
3077  echo "$as_me: failed program was:" >&5
3078sed 's/^/| /' conftest.$ac_ext >&5
3079
3080fi
3081rm -f conftest.err conftest.$ac_objext \
3082      conftest$ac_exeext conftest.$ac_ext
3083  fi
3084
3085  # if PM doesn't want the warning messages, take them out
3086  if test x"$coin_skip_warn_cflags" = xyes; then
3087    coin_warn_cflags=
3088  fi
3089
3090  if test x${DBG_CFLAGS+set} != xset; then
3091    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3092  fi
3093  if test x${OPT_CFLAGS+set} != xset; then
3094    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3095  fi
3096
3097  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3098  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3099
3100  if test "$coin_debug_compile" = "true"; then
3101    CFLAGS="$DBG_CFLAGS"
3102  else
3103    CFLAGS="$OPT_CFLAGS"
3104  fi
3105else
3106  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3107  if test x${DBG_CFLAGS+set} != xset; then
3108    DBG_CFLAGS="$CFLAGS"
3109  fi
3110  if test x${OPT_CFLAGS+set} != xset; then
3111    OPT_CFLAGS="$CFLAGS"
3112  fi
3113fi
3114
3115# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3116
3117case "$CFLAGS" in
3118  *-mno-cygwin*)
3119    if test x${CPPFLAGS+set} != xset ; then
3120      CPPFLAGS="-mno-cygwin"
3121    else
3122      case "$CPPFLAGS" in
3123        *-mno-cygwin*)
3124          ;;
3125        *)
3126          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3127          ;;
3128      esac
3129    fi ;;
3130esac
3131
3132# Try if CFLAGS works
3133save_CFLAGS="$CFLAGS"
3134cat >conftest.$ac_ext <<_ACEOF
3135/* confdefs.h.  */
3136_ACEOF
3137cat confdefs.h >>conftest.$ac_ext
3138cat >>conftest.$ac_ext <<_ACEOF
3139/* end confdefs.h.  */
3140
3141int
3142main ()
3143{
3144int i=0; i++;
3145  ;
3146  return 0;
3147}
3148_ACEOF
3149rm -f conftest.$ac_objext conftest$ac_exeext
3150if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3151  (eval $ac_link) 2>conftest.er1
3152  ac_status=$?
3153  grep -v '^ *+' conftest.er1 >conftest.err
3154  rm -f conftest.er1
3155  cat conftest.err >&5
3156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157  (exit $ac_status); } &&
3158         { ac_try='test -z "$ac_c_werror_flag"
3159                         || test ! -s conftest.err'
3160  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3161  (eval $ac_try) 2>&5
3162  ac_status=$?
3163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164  (exit $ac_status); }; } &&
3165         { ac_try='test -s conftest$ac_exeext'
3166  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3167  (eval $ac_try) 2>&5
3168  ac_status=$?
3169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170  (exit $ac_status); }; }; then
3171  :
3172else
3173  echo "$as_me: failed program was:" >&5
3174sed 's/^/| /' conftest.$ac_ext >&5
3175
3176CFLAGS=
3177fi
3178rm -f conftest.err conftest.$ac_objext \
3179      conftest$ac_exeext conftest.$ac_ext
3180if test -z "$CFLAGS"; then
3181  { 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
3182echo "$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;}
3183  CFLAGS='-O'
3184  cat >conftest.$ac_ext <<_ACEOF
3185/* confdefs.h.  */
3186_ACEOF
3187cat confdefs.h >>conftest.$ac_ext
3188cat >>conftest.$ac_ext <<_ACEOF
3189/* end confdefs.h.  */
3190
3191int
3192main ()
3193{
3194int i=0; i++;
3195  ;
3196  return 0;
3197}
3198_ACEOF
3199rm -f conftest.$ac_objext conftest$ac_exeext
3200if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3201  (eval $ac_link) 2>conftest.er1
3202  ac_status=$?
3203  grep -v '^ *+' conftest.er1 >conftest.err
3204  rm -f conftest.er1
3205  cat conftest.err >&5
3206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207  (exit $ac_status); } &&
3208         { ac_try='test -z "$ac_c_werror_flag"
3209                         || test ! -s conftest.err'
3210  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3211  (eval $ac_try) 2>&5
3212  ac_status=$?
3213  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214  (exit $ac_status); }; } &&
3215         { ac_try='test -s conftest$ac_exeext'
3216  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3217  (eval $ac_try) 2>&5
3218  ac_status=$?
3219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220  (exit $ac_status); }; }; then
3221  :
3222else
3223  echo "$as_me: failed program was:" >&5
3224sed 's/^/| /' conftest.$ac_ext >&5
3225
3226CFLAGS=
3227fi
3228rm -f conftest.err conftest.$ac_objext \
3229      conftest$ac_exeext conftest.$ac_ext
3230  if test -z "$CFLAGS"; then
3231    { 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
3232echo "$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;}
3233  fi
3234fi
3235
3236{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3237echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3238
3239
3240if test x"$MPICC" = x; then :; else
3241  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3242echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3243  CC="$MPICC"
3244fi
3245
3246# Correct ADDLIBS initialization if we are using the MS compiler
3247case "$CC" in
3248  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3249    ADDLIBS=
3250    case $build in
3251  *-mingw*)
3252    if test "${LD+set}" = set; then :; else
3253      LD=link
3254    fi
3255    ;;
3256 esac
3257 case $enable_doscompile in
3258   msvc)
3259     if test "x${LD+set}" = xset; then :; else
3260       LD=link
3261     fi
3262     ;;
3263 esac
3264
3265    ;;
3266esac
3267
3268ac_ext=c
3269ac_cpp='$CPP $CPPFLAGS'
3270ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3271ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3272ac_compiler_gnu=$ac_cv_c_compiler_gnu
3273
3274
3275
3276 #Let's try if that overcomes configuration problem with VC++ 6.0
3277
3278ac_ext=cc
3279ac_cpp='$CXXCPP $CPPFLAGS'
3280ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3281ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3282ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3283
3284
3285
3286
3287
3288
3289
3290coin_has_cxx=yes
3291
3292save_cxxflags="$CXXFLAGS"
3293# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3294case $build in
3295  *-cygwin* | *-mingw*)
3296             if test "$enable_doscompile" = msvc ; then
3297               comps="icl cl"
3298             else
3299               comps="g++ cl"
3300             fi ;;
3301  *-*-solaris*)
3302             comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3303  *-darwin*) comps="g++ c++ CC" ;;
3304          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3305esac
3306
3307# We delete the cached value, since the test might not have been
3308# performed with our choice of compilers earlier
3309$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3310# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3311ac_ext=cc
3312ac_cpp='$CXXCPP $CPPFLAGS'
3313ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3314ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3315ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3316if test -n "$ac_tool_prefix"; then
3317  for ac_prog in $CCC $comps
3318  do
3319    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3320set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3321echo "$as_me:$LINENO: checking for $ac_word" >&5
3322echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3323if test "${ac_cv_prog_CXX+set}" = set; then
3324  echo $ECHO_N "(cached) $ECHO_C" >&6
3325else
3326  if test -n "$CXX"; then
3327  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3328else
3329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3330for as_dir in $PATH
3331do
3332  IFS=$as_save_IFS
3333  test -z "$as_dir" && as_dir=.
3334  for ac_exec_ext in '' $ac_executable_extensions; do
3335  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3336    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3337    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3338    break 2
3339  fi
3340done
3341done
3342
3343fi
3344fi
3345CXX=$ac_cv_prog_CXX
3346if test -n "$CXX"; then
3347  echo "$as_me:$LINENO: result: $CXX" >&5
3348echo "${ECHO_T}$CXX" >&6
3349else
3350  echo "$as_me:$LINENO: result: no" >&5
3351echo "${ECHO_T}no" >&6
3352fi
3353
3354    test -n "$CXX" && break
3355  done
3356fi
3357if test -z "$CXX"; then
3358  ac_ct_CXX=$CXX
3359  for ac_prog in $CCC $comps
3360do
3361  # Extract the first word of "$ac_prog", so it can be a program name with args.
3362set dummy $ac_prog; ac_word=$2
3363echo "$as_me:$LINENO: checking for $ac_word" >&5
3364echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3365if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3366  echo $ECHO_N "(cached) $ECHO_C" >&6
3367else
3368  if test -n "$ac_ct_CXX"; then
3369  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3370else
3371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3372for as_dir in $PATH
3373do
3374  IFS=$as_save_IFS
3375  test -z "$as_dir" && as_dir=.
3376  for ac_exec_ext in '' $ac_executable_extensions; do
3377  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3378    ac_cv_prog_ac_ct_CXX="$ac_prog"
3379    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3380    break 2
3381  fi
3382done
3383done
3384
3385fi
3386fi
3387ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3388if test -n "$ac_ct_CXX"; then
3389  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3390echo "${ECHO_T}$ac_ct_CXX" >&6
3391else
3392  echo "$as_me:$LINENO: result: no" >&5
3393echo "${ECHO_T}no" >&6
3394fi
3395
3396  test -n "$ac_ct_CXX" && break
3397done
3398test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3399
3400  CXX=$ac_ct_CXX
3401fi
3402
3403
3404# Provide some information about the compiler.
3405echo "$as_me:$LINENO:" \
3406     "checking for C++ compiler version" >&5
3407ac_compiler=`set X $ac_compile; echo $2`
3408{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3409  (eval $ac_compiler --version </dev/null >&5) 2>&5
3410  ac_status=$?
3411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412  (exit $ac_status); }
3413{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3414  (eval $ac_compiler -v </dev/null >&5) 2>&5
3415  ac_status=$?
3416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417  (exit $ac_status); }
3418{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3419  (eval $ac_compiler -V </dev/null >&5) 2>&5
3420  ac_status=$?
3421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3422  (exit $ac_status); }
3423
3424echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3425echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3426if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3427  echo $ECHO_N "(cached) $ECHO_C" >&6
3428else
3429  cat >conftest.$ac_ext <<_ACEOF
3430/* confdefs.h.  */
3431_ACEOF
3432cat confdefs.h >>conftest.$ac_ext
3433cat >>conftest.$ac_ext <<_ACEOF
3434/* end confdefs.h.  */
3435
3436int
3437main ()
3438{
3439#ifndef __GNUC__
3440       choke me
3441#endif
3442
3443  ;
3444  return 0;
3445}
3446_ACEOF
3447rm -f conftest.$ac_objext
3448if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3449  (eval $ac_compile) 2>conftest.er1
3450  ac_status=$?
3451  grep -v '^ *+' conftest.er1 >conftest.err
3452  rm -f conftest.er1
3453  cat conftest.err >&5
3454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3455  (exit $ac_status); } &&
3456         { ac_try='test -z "$ac_cxx_werror_flag"
3457                         || test ! -s conftest.err'
3458  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3459  (eval $ac_try) 2>&5
3460  ac_status=$?
3461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462  (exit $ac_status); }; } &&
3463         { ac_try='test -s conftest.$ac_objext'
3464  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3465  (eval $ac_try) 2>&5
3466  ac_status=$?
3467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468  (exit $ac_status); }; }; then
3469  ac_compiler_gnu=yes
3470else
3471  echo "$as_me: failed program was:" >&5
3472sed 's/^/| /' conftest.$ac_ext >&5
3473
3474ac_compiler_gnu=no
3475fi
3476rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3477ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3478
3479fi
3480echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3481echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3482GXX=`test $ac_compiler_gnu = yes && echo yes`
3483ac_test_CXXFLAGS=${CXXFLAGS+set}
3484ac_save_CXXFLAGS=$CXXFLAGS
3485CXXFLAGS="-g"
3486echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3487echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3488if test "${ac_cv_prog_cxx_g+set}" = set; then
3489  echo $ECHO_N "(cached) $ECHO_C" >&6
3490else
3491  cat >conftest.$ac_ext <<_ACEOF
3492/* confdefs.h.  */
3493_ACEOF
3494cat confdefs.h >>conftest.$ac_ext
3495cat >>conftest.$ac_ext <<_ACEOF
3496/* end confdefs.h.  */
3497
3498int
3499main ()
3500{
3501
3502  ;
3503  return 0;
3504}
3505_ACEOF
3506rm -f conftest.$ac_objext
3507if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3508  (eval $ac_compile) 2>conftest.er1
3509  ac_status=$?
3510  grep -v '^ *+' conftest.er1 >conftest.err
3511  rm -f conftest.er1
3512  cat conftest.err >&5
3513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514  (exit $ac_status); } &&
3515         { ac_try='test -z "$ac_cxx_werror_flag"
3516                         || test ! -s conftest.err'
3517  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3518  (eval $ac_try) 2>&5
3519  ac_status=$?
3520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521  (exit $ac_status); }; } &&
3522         { ac_try='test -s conftest.$ac_objext'
3523  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3524  (eval $ac_try) 2>&5
3525  ac_status=$?
3526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527  (exit $ac_status); }; }; then
3528  ac_cv_prog_cxx_g=yes
3529else
3530  echo "$as_me: failed program was:" >&5
3531sed 's/^/| /' conftest.$ac_ext >&5
3532
3533ac_cv_prog_cxx_g=no
3534fi
3535rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3536fi
3537echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3538echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3539if test "$ac_test_CXXFLAGS" = set; then
3540  CXXFLAGS=$ac_save_CXXFLAGS
3541elif test $ac_cv_prog_cxx_g = yes; then
3542  if test "$GXX" = yes; then
3543    CXXFLAGS="-g -O2"
3544  else
3545    CXXFLAGS="-g"
3546  fi
3547else
3548  if test "$GXX" = yes; then
3549    CXXFLAGS="-O2"
3550  else
3551    CXXFLAGS=
3552  fi
3553fi
3554for ac_declaration in \
3555   '' \
3556   'extern "C" void std::exit (int) throw (); using std::exit;' \
3557   'extern "C" void std::exit (int); using std::exit;' \
3558   'extern "C" void exit (int) throw ();' \
3559   'extern "C" void exit (int);' \
3560   'void exit (int);'
3561do
3562  cat >conftest.$ac_ext <<_ACEOF
3563/* confdefs.h.  */
3564_ACEOF
3565cat confdefs.h >>conftest.$ac_ext
3566cat >>conftest.$ac_ext <<_ACEOF
3567/* end confdefs.h.  */
3568$ac_declaration
3569#include <stdlib.h>
3570int
3571main ()
3572{
3573exit (42);
3574  ;
3575  return 0;
3576}
3577_ACEOF
3578rm -f conftest.$ac_objext
3579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3580  (eval $ac_compile) 2>conftest.er1
3581  ac_status=$?
3582  grep -v '^ *+' conftest.er1 >conftest.err
3583  rm -f conftest.er1
3584  cat conftest.err >&5
3585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586  (exit $ac_status); } &&
3587         { ac_try='test -z "$ac_cxx_werror_flag"
3588                         || test ! -s conftest.err'
3589  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3590  (eval $ac_try) 2>&5
3591  ac_status=$?
3592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593  (exit $ac_status); }; } &&
3594         { ac_try='test -s conftest.$ac_objext'
3595  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3596  (eval $ac_try) 2>&5
3597  ac_status=$?
3598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599  (exit $ac_status); }; }; then
3600  :
3601else
3602  echo "$as_me: failed program was:" >&5
3603sed 's/^/| /' conftest.$ac_ext >&5
3604
3605continue
3606fi
3607rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3608  cat >conftest.$ac_ext <<_ACEOF
3609/* confdefs.h.  */
3610_ACEOF
3611cat confdefs.h >>conftest.$ac_ext
3612cat >>conftest.$ac_ext <<_ACEOF
3613/* end confdefs.h.  */
3614$ac_declaration
3615int
3616main ()
3617{
3618exit (42);
3619  ;
3620  return 0;
3621}
3622_ACEOF
3623rm -f conftest.$ac_objext
3624if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3625  (eval $ac_compile) 2>conftest.er1
3626  ac_status=$?
3627  grep -v '^ *+' conftest.er1 >conftest.err
3628  rm -f conftest.er1
3629  cat conftest.err >&5
3630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631  (exit $ac_status); } &&
3632         { ac_try='test -z "$ac_cxx_werror_flag"
3633                         || test ! -s conftest.err'
3634  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3635  (eval $ac_try) 2>&5
3636  ac_status=$?
3637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3638  (exit $ac_status); }; } &&
3639         { ac_try='test -s conftest.$ac_objext'
3640  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3641  (eval $ac_try) 2>&5
3642  ac_status=$?
3643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3644  (exit $ac_status); }; }; then
3645  break
3646else
3647  echo "$as_me: failed program was:" >&5
3648sed 's/^/| /' conftest.$ac_ext >&5
3649
3650fi
3651rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3652done
3653rm -f conftest*
3654if test -n "$ac_declaration"; then
3655  echo '#ifdef __cplusplus' >>confdefs.h
3656  echo $ac_declaration      >>confdefs.h
3657  echo '#endif'             >>confdefs.h
3658fi
3659
3660ac_ext=cc
3661ac_cpp='$CXXCPP $CPPFLAGS'
3662ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3663ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3664ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3665
3666
3667#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3668#thus, we test here whether $CXX is actually working
3669ac_ext=cc
3670ac_cpp='$CXXCPP $CPPFLAGS'
3671ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3672ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3673ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3674
3675echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3676echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3677cat >conftest.$ac_ext <<_ACEOF
3678/* confdefs.h.  */
3679_ACEOF
3680cat confdefs.h >>conftest.$ac_ext
3681cat >>conftest.$ac_ext <<_ACEOF
3682/* end confdefs.h.  */
3683
3684int
3685main ()
3686{
3687int i=0;
3688  ;
3689  return 0;
3690}
3691_ACEOF
3692rm -f conftest.$ac_objext
3693if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3694  (eval $ac_compile) 2>conftest.er1
3695  ac_status=$?
3696  grep -v '^ *+' conftest.er1 >conftest.err
3697  rm -f conftest.er1
3698  cat conftest.err >&5
3699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700  (exit $ac_status); } &&
3701         { ac_try='test -z "$ac_cxx_werror_flag"
3702                         || test ! -s conftest.err'
3703  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3704  (eval $ac_try) 2>&5
3705  ac_status=$?
3706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707  (exit $ac_status); }; } &&
3708         { ac_try='test -s conftest.$ac_objext'
3709  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3710  (eval $ac_try) 2>&5
3711  ac_status=$?
3712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713  (exit $ac_status); }; }; then
3714  echo "$as_me:$LINENO: result: yes" >&5
3715echo "${ECHO_T}yes" >&6
3716else
3717  echo "$as_me: failed program was:" >&5
3718sed 's/^/| /' conftest.$ac_ext >&5
3719
3720echo "$as_me:$LINENO: result: no" >&5
3721echo "${ECHO_T}no" >&6
3722   { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3723echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3724   { (exit 1); exit 1; }; }
3725
3726fi
3727rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3728ac_ext=cc
3729ac_cpp='$CXXCPP $CPPFLAGS'
3730ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3731ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3732ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3733
3734
3735coin_cxx_is_cl=false
3736# It seems that we need to cleanup something here for the Windows
3737case "$CXX" in
3738  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3739    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3740    mv confdefs.hh confdefs.h
3741    coin_cxx_is_cl=true
3742    ;;
3743esac
3744
3745# add automake conditional so we can recognize cl compiler in makefile
3746
3747
3748if test $coin_cxx_is_cl = true; then
3749  COIN_CXX_IS_CL_TRUE=
3750  COIN_CXX_IS_CL_FALSE='#'
3751else
3752  COIN_CXX_IS_CL_TRUE='#'
3753  COIN_CXX_IS_CL_FALSE=
3754fi
3755
3756
3757# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3758case "$CXX" in
3759  cl* | */cl* | CL* | */CL* )
3760    if test "$ac_cv_prog_cxx_g" = yes ; then
3761      ac_cv_prog_cxx_g=no
3762      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3763echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3764    fi ;;
3765esac
3766CXXFLAGS="$save_cxxflags"
3767
3768# Check if a project specific CXXFLAGS variable has been set
3769if test x$COIN_PRJCT != x; then
3770  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3771  if test x$coin_tmp = xset; then
3772    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3773  fi
3774fi
3775
3776if test x"$CXXFLAGS" = x; then
3777
3778# ToDo decide whether we want -DNDEBUG for optimization
3779  coin_add_cxxflags=
3780  coin_opt_cxxflags=
3781  coin_dbg_cxxflags=
3782  coin_warn_cxxflags=
3783
3784  if test "$GXX" = "yes"; then
3785    case "$CXX" in
3786      icpc* | */icpc*)
3787        ;;
3788      *)
3789# ToDo decide about unroll-loops
3790        coin_opt_cxxflags="-O3"
3791        coin_add_cxxflags="-pipe"
3792        coin_dbg_cxxflags="-g"
3793        coin_warn_cxxflags="-Wimplicit -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas"
3794        case $build in
3795          *-darwin*)
3796            ;;
3797          *)
3798            coin_warn_cxxflags="-pedantic-errors $coin_warn_cxxflags"
3799            ;;
3800        esac
3801
3802        case $enable_doscompile in
3803          mingw)
3804            CXXFLAGS="-mno-cygwin"
3805            cat >conftest.$ac_ext <<_ACEOF
3806/* confdefs.h.  */
3807_ACEOF
3808cat confdefs.h >>conftest.$ac_ext
3809cat >>conftest.$ac_ext <<_ACEOF
3810/* end confdefs.h.  */
3811
3812int
3813main ()
3814{
3815int i=0; i++;
3816  ;
3817  return 0;
3818}
3819_ACEOF
3820rm -f conftest.$ac_objext conftest$ac_exeext
3821if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3822  (eval $ac_link) 2>conftest.er1
3823  ac_status=$?
3824  grep -v '^ *+' conftest.er1 >conftest.err
3825  rm -f conftest.er1
3826  cat conftest.err >&5
3827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3828  (exit $ac_status); } &&
3829         { ac_try='test -z "$ac_cxx_werror_flag"
3830                         || test ! -s conftest.err'
3831  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3832  (eval $ac_try) 2>&5
3833  ac_status=$?
3834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835  (exit $ac_status); }; } &&
3836         { ac_try='test -s conftest$ac_exeext'
3837  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3838  (eval $ac_try) 2>&5
3839  ac_status=$?
3840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3841  (exit $ac_status); }; }; then
3842  coin_add_cxxflags="-mno-cygwin $coin_add_cxxflags"
3843else
3844  echo "$as_me: failed program was:" >&5
3845sed 's/^/| /' conftest.$ac_ext >&5
3846
3847fi
3848rm -f conftest.err conftest.$ac_objext \
3849      conftest$ac_exeext conftest.$ac_ext
3850            CXXFLAGS=
3851          ;;
3852        esac
3853    esac
3854  fi
3855
3856# Note that we do not need to cover GCC in the following tests.
3857
3858  if test -z "$coin_opt_cxxflags"; then
3859    case $build in
3860      *-cygwin* | *-mingw*)
3861        case "$CXX" in
3862          cl* | */cl* | CL* | */CL*)
3863            # The MT and MTd options are mutually exclusive
3864            coin_opt_cxxflags='-MT -O2'
3865            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3866            coin_dbg_cxxflags='-MTd'
3867            ;;
3868          icl* | */icl* | ICL* | */ICL*)
3869            # The MT and MTd options are mutually exclusive
3870            coin_opt_cxxflags='-MT -Ox'
3871            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3872            coin_dbg_cxxflags='-MTd -debug'
3873            ;;
3874        esac
3875        ;;
3876      *-linux-*)
3877        case "$CXX" in
3878          icpc* | */icpc*)
3879            coin_opt_cxxflags="-O3 -ip -mp1"
3880            coin_add_cxxflags=""
3881            coin_dbg_cxxflags="-g"
3882            # Check if -i_dynamic is necessary (for new glibc library)
3883            CXXFLAGS=
3884            cat >conftest.$ac_ext <<_ACEOF
3885/* confdefs.h.  */
3886_ACEOF
3887cat confdefs.h >>conftest.$ac_ext
3888cat >>conftest.$ac_ext <<_ACEOF
3889/* end confdefs.h.  */
3890
3891int
3892main ()
3893{
3894int i=0; i++;
3895  ;
3896  return 0;
3897}
3898_ACEOF
3899rm -f conftest.$ac_objext conftest$ac_exeext
3900if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3901  (eval $ac_link) 2>conftest.er1
3902  ac_status=$?
3903  grep -v '^ *+' conftest.er1 >conftest.err
3904  rm -f conftest.er1
3905  cat conftest.err >&5
3906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907  (exit $ac_status); } &&
3908         { ac_try='test -z "$ac_cxx_werror_flag"
3909                         || test ! -s conftest.err'
3910  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3911  (eval $ac_try) 2>&5
3912  ac_status=$?
3913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3914  (exit $ac_status); }; } &&
3915         { ac_try='test -s conftest$ac_exeext'
3916  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3917  (eval $ac_try) 2>&5
3918  ac_status=$?
3919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920  (exit $ac_status); }; }; then
3921  :
3922else
3923  echo "$as_me: failed program was:" >&5
3924sed 's/^/| /' conftest.$ac_ext >&5
3925
3926coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3927fi
3928rm -f conftest.err conftest.$ac_objext \
3929      conftest$ac_exeext conftest.$ac_ext
3930            ;;
3931          pgCC* | */pgCC*)
3932            coin_opt_cxxflags="-fast"
3933            coin_add_cxxflags="-Kieee -pc 64"
3934            coin_dbg_cxxflags="-g"
3935            ;;
3936        esac
3937        ;;
3938      *-ibm-*)
3939        case "$CXX" in
3940          xlC* | */xlC* | mpxlC* | */mpxlC*)
3941            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3942            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3943            coin_dbg_cxxflags="-g"
3944            ;;
3945        esac
3946        ;;
3947      *-hp-*)
3948        case "$CXX" in
3949          aCC* | */aCC* )
3950            coin_opt_cxxflags="-O"
3951            coin_add_cxxflags="-AA"
3952            coin_dbg_cxxflags="-g"
3953            ;;
3954        esac
3955        ;;
3956      *-*-solaris*)
3957          coin_opt_cxxflags="-O4"
3958          coin_dbg_cxxflags="-g"
3959        ;;
3960    esac
3961  fi
3962
3963# Generic flag settings. If these don't work, add a case above.
3964
3965  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3966    coin_dbg_cxxflags="-g"
3967  fi
3968
3969  if test -z "$coin_opt_cxxflags"; then
3970    # Try if -O option works if nothing else is set
3971    CXXFLAGS=-O
3972    cat >conftest.$ac_ext <<_ACEOF
3973/* confdefs.h.  */
3974_ACEOF
3975cat confdefs.h >>conftest.$ac_ext
3976cat >>conftest.$ac_ext <<_ACEOF
3977/* end confdefs.h.  */
3978
3979int
3980main ()
3981{
3982int i=0; i++;
3983  ;
3984  return 0;
3985}
3986_ACEOF
3987rm -f conftest.$ac_objext conftest$ac_exeext
3988if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3989  (eval $ac_link) 2>conftest.er1
3990  ac_status=$?
3991  grep -v '^ *+' conftest.er1 >conftest.err
3992  rm -f conftest.er1
3993  cat conftest.err >&5
3994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995  (exit $ac_status); } &&
3996         { ac_try='test -z "$ac_cxx_werror_flag"
3997                         || test ! -s conftest.err'
3998  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3999  (eval $ac_try) 2>&5
4000  ac_status=$?
4001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002  (exit $ac_status); }; } &&
4003         { ac_try='test -s conftest$ac_exeext'
4004  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4005  (eval $ac_try) 2>&5
4006  ac_status=$?
4007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008  (exit $ac_status); }; }; then
4009  coin_opt_cxxflags="-O"
4010else
4011  echo "$as_me: failed program was:" >&5
4012sed 's/^/| /' conftest.$ac_ext >&5
4013
4014fi
4015rm -f conftest.err conftest.$ac_objext \
4016      conftest$ac_exeext conftest.$ac_ext
4017  fi
4018
4019  # if PM doesn't want the warning messages, take them out
4020  if test x"$coin_skip_warn_cxxflags" = xyes; then
4021    coin_warn_cxxflags=
4022  fi
4023
4024# Do final setup of flags based on values determined above.
4025
4026  if test x${DBG_CXXFLAGS+set} != xset; then
4027    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
4028  fi
4029  if test x${OPT_CXXFLAGS+set} != xset; then
4030    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
4031  fi
4032
4033  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
4034  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
4035
4036  if test "$coin_debug_compile" = "true"; then
4037    CXXFLAGS="$DBG_CXXFLAGS"
4038  else
4039    CXXFLAGS="$OPT_CXXFLAGS"
4040  fi
4041
4042# Handle the case where CXXFLAGS was set externally.
4043else
4044  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
4045  if test x${DBG_CXXFLAGS+set} != xset; then
4046    DBG_CXXFLAGS="$CXXFLAGS"
4047  fi
4048  if test x${OPT_CXXFLAGS+set} != xset; then
4049    OPT_CXXFLAGS="$CXXFLAGS"
4050  fi
4051fi
4052
4053# If CXXFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
4054
4055case "$CXXFLAGS" in
4056  *-mno-cygwin*)
4057    if test x${CPPFLAGS+set} != xset ; then
4058      CPPFLAGS="-mno-cygwin"
4059    else
4060      case "$CPPFLAGS" in
4061        *-mno-cygwin*)
4062          ;;
4063        *)
4064          CPPFLAGS="$CPPFLAGS -mno-cygwin"
4065          ;;
4066      esac
4067    fi ;;
4068esac
4069
4070# Try if CXXFLAGS works
4071save_CXXFLAGS="$CXXFLAGS"
4072cat >conftest.$ac_ext <<_ACEOF
4073/* confdefs.h.  */
4074_ACEOF
4075cat confdefs.h >>conftest.$ac_ext
4076cat >>conftest.$ac_ext <<_ACEOF
4077/* end confdefs.h.  */
4078
4079int
4080main ()
4081{
4082int i=0; i++;
4083  ;
4084  return 0;
4085}
4086_ACEOF
4087rm -f conftest.$ac_objext conftest$ac_exeext
4088if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4089  (eval $ac_link) 2>conftest.er1
4090  ac_status=$?
4091  grep -v '^ *+' conftest.er1 >conftest.err
4092  rm -f conftest.er1
4093  cat conftest.err >&5
4094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095  (exit $ac_status); } &&
4096         { ac_try='test -z "$ac_cxx_werror_flag"
4097                         || test ! -s conftest.err'
4098  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4099  (eval $ac_try) 2>&5
4100  ac_status=$?
4101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102  (exit $ac_status); }; } &&
4103         { ac_try='test -s conftest$ac_exeext'
4104  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4105  (eval $ac_try) 2>&5
4106  ac_status=$?
4107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4108  (exit $ac_status); }; }; then
4109  :
4110else
4111  echo "$as_me: failed program was:" >&5
4112sed 's/^/| /' conftest.$ac_ext >&5
4113
4114CXXFLAGS=
4115fi
4116rm -f conftest.err conftest.$ac_objext \
4117      conftest$ac_exeext conftest.$ac_ext
4118if test -z "$CXXFLAGS"; then
4119  { 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
4120echo "$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;}
4121  CXXFLAGS='-O'
4122  cat >conftest.$ac_ext <<_ACEOF
4123/* confdefs.h.  */
4124_ACEOF
4125cat confdefs.h >>conftest.$ac_ext
4126cat >>conftest.$ac_ext <<_ACEOF
4127/* end confdefs.h.  */
4128
4129int
4130main ()
4131{
4132int i=0; i++;
4133  ;
4134  return 0;
4135}
4136_ACEOF
4137rm -f conftest.$ac_objext conftest$ac_exeext
4138if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4139  (eval $ac_link) 2>conftest.er1
4140  ac_status=$?
4141  grep -v '^ *+' conftest.er1 >conftest.err
4142  rm -f conftest.er1
4143  cat conftest.err >&5
4144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145  (exit $ac_status); } &&
4146         { ac_try='test -z "$ac_cxx_werror_flag"
4147                         || test ! -s conftest.err'
4148  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4149  (eval $ac_try) 2>&5
4150  ac_status=$?
4151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152  (exit $ac_status); }; } &&
4153         { ac_try='test -s conftest$ac_exeext'
4154  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4155  (eval $ac_try) 2>&5
4156  ac_status=$?
4157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158  (exit $ac_status); }; }; then
4159  :
4160else
4161  echo "$as_me: failed program was:" >&5
4162sed 's/^/| /' conftest.$ac_ext >&5
4163
4164CXXFLAGS=
4165fi
4166rm -f conftest.err conftest.$ac_objext \
4167      conftest$ac_exeext conftest.$ac_ext
4168  if test -z "$CXXFLAGS"; then
4169    { 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
4170echo "$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;}
4171  fi
4172fi
4173
4174{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
4175echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
4176
4177
4178if test x"$MPICXX" = x; then :; else
4179  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
4180echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
4181  CXX="$MPICXX"
4182fi
4183
4184case "$CXX" in
4185  cl* | */cl* | CL* | */CL* )
4186    case $build in
4187  *-mingw*)
4188    if test "${LD+set}" = set; then :; else
4189      LD=link
4190    fi
4191    ;;
4192 esac
4193 case $enable_doscompile in
4194   msvc)
4195     if test "x${LD+set}" = xset; then :; else
4196       LD=link
4197     fi
4198     ;;
4199 esac
4200
4201    ;;
4202esac
4203
4204ac_ext=c
4205ac_cpp='$CPP $CPPFLAGS'
4206ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4207ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4208ac_compiler_gnu=$ac_cv_c_compiler_gnu
4209
4210
4211
4212# Initialize automake and libtool
4213{
4214
4215
4216
4217# START
4218
4219# Test if force_shared has been set
4220if test "x" = xforce_shared; then
4221  if test x$enable_shared = xno; then
4222    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4223echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4224   { (exit 1); exit 1; }; }
4225  fi
4226  enable_shared=yes;
4227else
4228  # On Cygwin and AIX, building DLLs doesn't work
4229  case $build in
4230    *-cygwin*)
4231      coin_disable_shared=yes
4232      platform=Cygwin
4233    ;;
4234    *-aix*)
4235      coin_disable_shared=yes
4236      platform=AIX
4237    ;;
4238    *-mingw*)
4239      coin_disable_shared=yes
4240      platform="Msys"
4241#      case "$CXX" in
4242#        cl*)
4243#          coin_disable_shared=yes
4244#          platform="Msys with cl"
4245#      ;;
4246#      esac
4247    ;;
4248  esac
4249fi
4250if test x"$coin_disable_shared" = xyes; then
4251  if test x"$enable_shared" = xyes; then
4252    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
4253echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
4254  fi
4255  enable_shared=no
4256fi
4257# By default, we only want the shared objects to be compiled
4258# Check whether --enable-static or --disable-static was given.
4259if test "${enable_static+set}" = set; then
4260  enableval="$enable_static"
4261  p=${PACKAGE-default}
4262    case $enableval in
4263    yes) enable_static=yes ;;
4264    no) enable_static=no ;;
4265    *)
4266     enable_static=no
4267      # Look at the argument we got.  We use all the common list separators.
4268      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4269      for pkg in $enableval; do
4270        IFS="$lt_save_ifs"
4271        if test "X$pkg" = "X$p"; then
4272          enable_static=yes
4273        fi
4274      done
4275      IFS="$lt_save_ifs"
4276      ;;
4277    esac
4278else
4279  enable_static=no
4280fi;
4281
4282
4283
4284
4285# Initialize automake
4286echo "$as_me:$LINENO: checking for egrep" >&5
4287echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4288if test "${ac_cv_prog_egrep+set}" = set; then
4289  echo $ECHO_N "(cached) $ECHO_C" >&6
4290else
4291  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4292    then ac_cv_prog_egrep='grep -E'
4293    else ac_cv_prog_egrep='egrep'
4294    fi
4295fi
4296echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4297echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4298 EGREP=$ac_cv_prog_egrep
4299
4300
4301am__api_version="1.9"
4302# Find a good install program.  We prefer a C program (faster),
4303# so one script is as good as another.  But avoid the broken or
4304# incompatible versions:
4305# SysV /etc/install, /usr/sbin/install
4306# SunOS /usr/etc/install
4307# IRIX /sbin/install
4308# AIX /bin/install
4309# AmigaOS /C/install, which installs bootblocks on floppy discs
4310# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4311# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4312# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4313# OS/2's system install, which has a completely different semantic
4314# ./install, which can be erroneously created by make from ./install.sh.
4315echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4316echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4317if test -z "$INSTALL"; then
4318if test "${ac_cv_path_install+set}" = set; then
4319  echo $ECHO_N "(cached) $ECHO_C" >&6
4320else
4321  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4322for as_dir in $PATH
4323do
4324  IFS=$as_save_IFS
4325  test -z "$as_dir" && as_dir=.
4326  # Account for people who put trailing slashes in PATH elements.
4327case $as_dir/ in
4328  ./ | .// | /cC/* | \
4329  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4330  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4331  /usr/ucb/* ) ;;
4332  *)
4333    # OSF1 and SCO ODT 3.0 have their own names for install.
4334    # Don't use installbsd from OSF since it installs stuff as root
4335    # by default.
4336    for ac_prog in ginstall scoinst install; do
4337      for ac_exec_ext in '' $ac_executable_extensions; do
4338        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4339          if test $ac_prog = install &&
4340            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4341            # AIX install.  It has an incompatible calling convention.
4342            :
4343          elif test $ac_prog = install &&
4344            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4345            # program-specific install script used by HP pwplus--don't use.
4346            :
4347          else
4348            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4349            break 3
4350          fi
4351        fi
4352      done
4353    done
4354    ;;
4355esac
4356done
4357
4358
4359fi
4360  if test "${ac_cv_path_install+set}" = set; then
4361    INSTALL=$ac_cv_path_install
4362  else
4363    # As a last resort, use the slow shell script.  We don't cache a
4364    # path for INSTALL within a source directory, because that will
4365    # break other packages using the cache if that directory is
4366    # removed, or if the path is relative.
4367    INSTALL=$ac_install_sh
4368  fi
4369fi
4370echo "$as_me:$LINENO: result: $INSTALL" >&5
4371echo "${ECHO_T}$INSTALL" >&6
4372
4373# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4374# It thinks the first close brace ends the variable substitution.
4375test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4376
4377test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4378
4379test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4380
4381echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4382echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4383# Just in case
4384sleep 1
4385echo timestamp > conftest.file
4386# Do `set' in a subshell so we don't clobber the current shell's
4387# arguments.  Must try -L first in case configure is actually a
4388# symlink; some systems play weird games with the mod time of symlinks
4389# (eg FreeBSD returns the mod time of the symlink's containing
4390# directory).
4391if (
4392   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4393   if test "$*" = "X"; then
4394      # -L didn't work.
4395      set X `ls -t $srcdir/configure conftest.file`
4396   fi
4397   rm -f conftest.file
4398   if test "$*" != "X $srcdir/configure conftest.file" \
4399      && test "$*" != "X conftest.file $srcdir/configure"; then
4400
4401      # If neither matched, then we have a broken ls.  This can happen
4402      # if, for instance, CONFIG_SHELL is bash and it inherits a
4403      # broken ls alias from the environment.  This has actually
4404      # happened.  Such a system could not be considered "sane".
4405      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4406alias in your environment" >&5
4407echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4408alias in your environment" >&2;}
4409   { (exit 1); exit 1; }; }
4410   fi
4411
4412   test "$2" = conftest.file
4413   )
4414then
4415   # Ok.
4416   :
4417else
4418   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4419Check your system clock" >&5
4420echo "$as_me: error: newly created file is older than distributed files!
4421Check your system clock" >&2;}
4422   { (exit 1); exit 1; }; }
4423fi
4424echo "$as_me:$LINENO: result: yes" >&5
4425echo "${ECHO_T}yes" >&6
4426test "$program_prefix" != NONE &&
4427  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4428# Use a double $ so make ignores it.
4429test "$program_suffix" != NONE &&
4430  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4431# Double any \ or $.  echo might interpret backslashes.
4432# By default was `s,x,x', remove it if useless.
4433cat <<\_ACEOF >conftest.sed
4434s/[\\$]/&&/g;s/;s,x,x,$//
4435_ACEOF
4436program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4437rm conftest.sed
4438
4439# expand $ac_aux_dir to an absolute path
4440am_aux_dir=`cd $ac_aux_dir && pwd`
4441
4442test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4443# Use eval to expand $SHELL
4444if eval "$MISSING --run true"; then
4445  am_missing_run="$MISSING --run "
4446else
4447  am_missing_run=
4448  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4449echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4450fi
4451
4452if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4453  # We used to keeping the `.' as first argument, in order to
4454  # allow $(mkdir_p) to be used without argument.  As in
4455  #   $(mkdir_p) $(somedir)
4456  # where $(somedir) is conditionally defined.  However this is wrong
4457  # for two reasons:
4458  #  1. if the package is installed by a user who cannot write `.'
4459  #     make install will fail,
4460  #  2. the above comment should most certainly read
4461  #     $(mkdir_p) $(DESTDIR)$(somedir)
4462  #     so it does not work when $(somedir) is undefined and
4463  #     $(DESTDIR) is not.
4464  #  To support the latter case, we have to write
4465  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4466  #  so the `.' trick is pointless.
4467  mkdir_p='mkdir -p --'
4468else
4469  # On NextStep and OpenStep, the `mkdir' command does not
4470  # recognize any option.  It will interpret all options as
4471  # directories to create, and then abort because `.' already
4472  # exists.
4473  for d in ./-p ./--version;
4474  do
4475    test -d $d && rmdir $d
4476  done
4477  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4478  if test -f "$ac_aux_dir/mkinstalldirs"; then
4479    mkdir_p='$(mkinstalldirs)'
4480  else
4481    mkdir_p='$(install_sh) -d'
4482  fi
4483fi
4484
4485for ac_prog in gawk mawk nawk awk
4486do
4487  # Extract the first word of "$ac_prog", so it can be a program name with args.
4488set dummy $ac_prog; ac_word=$2
4489echo "$as_me:$LINENO: checking for $ac_word" >&5
4490echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4491if test "${ac_cv_prog_AWK+set}" = set; then
4492  echo $ECHO_N "(cached) $ECHO_C" >&6
4493else
4494  if test -n "$AWK"; then
4495  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4496else
4497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4498for as_dir in $PATH
4499do
4500  IFS=$as_save_IFS
4501  test -z "$as_dir" && as_dir=.
4502  for ac_exec_ext in '' $ac_executable_extensions; do
4503  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4504    ac_cv_prog_AWK="$ac_prog"
4505    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4506    break 2
4507  fi
4508done
4509done
4510
4511fi
4512fi
4513AWK=$ac_cv_prog_AWK
4514if test -n "$AWK"; then
4515  echo "$as_me:$LINENO: result: $AWK" >&5
4516echo "${ECHO_T}$AWK" >&6
4517else
4518  echo "$as_me:$LINENO: result: no" >&5
4519echo "${ECHO_T}no" >&6
4520fi
4521
4522  test -n "$AWK" && break
4523done
4524
4525echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4526echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4527set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4528if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4529  echo $ECHO_N "(cached) $ECHO_C" >&6
4530else
4531  cat >conftest.make <<\_ACEOF
4532all:
4533        @echo 'ac_maketemp="$(MAKE)"'
4534_ACEOF
4535# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4536eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4537if test -n "$ac_maketemp"; then
4538  eval ac_cv_prog_make_${ac_make}_set=yes
4539else
4540  eval ac_cv_prog_make_${ac_make}_set=no
4541fi
4542rm -f conftest.make
4543fi
4544if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4545  echo "$as_me:$LINENO: result: yes" >&5
4546echo "${ECHO_T}yes" >&6
4547  SET_MAKE=
4548else
4549  echo "$as_me:$LINENO: result: no" >&5
4550echo "${ECHO_T}no" >&6
4551  SET_MAKE="MAKE=${MAKE-make}"
4552fi
4553
4554rm -rf .tst 2>/dev/null
4555mkdir .tst 2>/dev/null
4556if test -d .tst; then
4557  am__leading_dot=.
4558else
4559  am__leading_dot=_
4560fi
4561rmdir .tst 2>/dev/null
4562
4563DEPDIR="${am__leading_dot}deps"
4564
4565          ac_config_commands="$ac_config_commands depfiles"
4566
4567
4568am_make=${MAKE-make}
4569cat > confinc << 'END'
4570am__doit:
4571        @echo done
4572.PHONY: am__doit
4573END
4574# If we don't find an include directive, just comment out the code.
4575echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4576echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4577am__include="#"
4578am__quote=
4579_am_result=none
4580# First try GNU make style include.
4581echo "include confinc" > confmf
4582# We grep out `Entering directory' and `Leaving directory'
4583# messages which can occur if `w' ends up in MAKEFLAGS.
4584# In particular we don't look at `^make:' because GNU make might
4585# be invoked under some other name (usually "gmake"), in which
4586# case it prints its new name instead of `make'.
4587if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4588   am__include=include
4589   am__quote=
4590   _am_result=GNU
4591fi
4592# Now try BSD make style include.
4593if test "$am__include" = "#"; then
4594   echo '.include "confinc"' > confmf
4595   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4596      am__include=.include
4597      am__quote="\""
4598      _am_result=BSD
4599   fi
4600fi
4601
4602
4603echo "$as_me:$LINENO: result: $_am_result" >&5
4604echo "${ECHO_T}$_am_result" >&6
4605rm -f confinc confmf
4606
4607# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4608if test "${enable_dependency_tracking+set}" = set; then
4609  enableval="$enable_dependency_tracking"
4610
4611fi;
4612if test "x$enable_dependency_tracking" != xno; then
4613  am_depcomp="$ac_aux_dir/depcomp"
4614  AMDEPBACKSLASH='\'
4615fi
4616
4617
4618if test "x$enable_dependency_tracking" != xno; then
4619  AMDEP_TRUE=
4620  AMDEP_FALSE='#'
4621else
4622  AMDEP_TRUE='#'
4623  AMDEP_FALSE=
4624fi
4625
4626
4627
4628
4629
4630# AC_MSG_NOTICE([Beginning automake initialisation.])
4631# Stuff for automake
4632# test to see if srcdir already configured
4633if test "`cd $srcdir && pwd`" != "`pwd`" &&
4634   test -f $srcdir/config.status; then
4635  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4636echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4637   { (exit 1); exit 1; }; }
4638fi
4639
4640# test whether we have cygpath
4641if test -z "$CYGPATH_W"; then
4642  if (cygpath --version) >/dev/null 2>/dev/null; then
4643    CYGPATH_W='cygpath -w'
4644  else
4645    CYGPATH_W=echo
4646  fi
4647fi
4648
4649
4650# Define the identity of the package.
4651 PACKAGE='cbc'
4652 VERSION='2.6'
4653
4654
4655cat >>confdefs.h <<_ACEOF
4656#define PACKAGE "$PACKAGE"
4657_ACEOF
4658
4659
4660cat >>confdefs.h <<_ACEOF
4661#define VERSION "$VERSION"
4662_ACEOF
4663
4664# Some tools Automake needs.
4665
4666ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4667
4668
4669AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4670
4671
4672AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4673
4674
4675AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4676
4677
4678MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4679
4680install_sh=${install_sh-"$am_aux_dir/install-sh"}
4681
4682# Installed binaries are usually stripped using `strip' when the user
4683# run `make install-strip'.  However `strip' might not be the right
4684# tool to use in cross-compilation environments, therefore Automake
4685# will honor the `STRIP' environment variable to overrule this program.
4686if test "$cross_compiling" != no; then
4687  if test -n "$ac_tool_prefix"; then
4688  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4689set dummy ${ac_tool_prefix}strip; ac_word=$2
4690echo "$as_me:$LINENO: checking for $ac_word" >&5
4691echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4692if test "${ac_cv_prog_STRIP+set}" = set; then
4693  echo $ECHO_N "(cached) $ECHO_C" >&6
4694else
4695  if test -n "$STRIP"; then
4696  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4697else
4698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4699for as_dir in $PATH
4700do
4701  IFS=$as_save_IFS
4702  test -z "$as_dir" && as_dir=.
4703  for ac_exec_ext in '' $ac_executable_extensions; do
4704  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4705    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4706    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4707    break 2
4708  fi
4709done
4710done
4711
4712fi
4713fi
4714STRIP=$ac_cv_prog_STRIP
4715if test -n "$STRIP"; then
4716  echo "$as_me:$LINENO: result: $STRIP" >&5
4717echo "${ECHO_T}$STRIP" >&6
4718else
4719  echo "$as_me:$LINENO: result: no" >&5
4720echo "${ECHO_T}no" >&6
4721fi
4722
4723fi
4724if test -z "$ac_cv_prog_STRIP"; then
4725  ac_ct_STRIP=$STRIP
4726  # Extract the first word of "strip", so it can be a program name with args.
4727set dummy strip; ac_word=$2
4728echo "$as_me:$LINENO: checking for $ac_word" >&5
4729echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4730if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4731  echo $ECHO_N "(cached) $ECHO_C" >&6
4732else
4733  if test -n "$ac_ct_STRIP"; then
4734  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4735else
4736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4737for as_dir in $PATH
4738do
4739  IFS=$as_save_IFS
4740  test -z "$as_dir" && as_dir=.
4741  for ac_exec_ext in '' $ac_executable_extensions; do
4742  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4743    ac_cv_prog_ac_ct_STRIP="strip"
4744    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4745    break 2
4746  fi
4747done
4748done
4749
4750  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4751fi
4752fi
4753ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4754if test -n "$ac_ct_STRIP"; then
4755  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4756echo "${ECHO_T}$ac_ct_STRIP" >&6
4757else
4758  echo "$as_me:$LINENO: result: no" >&5
4759echo "${ECHO_T}no" >&6
4760fi
4761
4762  STRIP=$ac_ct_STRIP
4763else
4764  STRIP="$ac_cv_prog_STRIP"
4765fi
4766
4767fi
4768INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4769
4770# We need awk for the "check" target.  The system "awk" is bad on
4771# some platforms.
4772# Always define AMTAR for backward compatibility.
4773
4774AMTAR=${AMTAR-"${am_missing_run}tar"}
4775
4776am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4777
4778
4779
4780
4781depcc="$CC"   am_compiler_list=
4782
4783echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4784echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4785if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4786  echo $ECHO_N "(cached) $ECHO_C" >&6
4787else
4788  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4789  # We make a subdir and do the tests there.  Otherwise we can end up
4790  # making bogus files that we don't know about and never remove.  For
4791  # instance it was reported that on HP-UX the gcc test will end up
4792  # making a dummy file named `D' -- because `-MD' means `put the output
4793  # in D'.
4794  mkdir conftest.dir
4795  # Copy depcomp to subdir because otherwise we won't find it if we're
4796  # using a relative directory.
4797  cp "$am_depcomp" conftest.dir
4798  cd conftest.dir
4799  # We will build objects and dependencies in a subdirectory because
4800  # it helps to detect inapplicable dependency modes.  For instance
4801  # both Tru64's cc and ICC support -MD to output dependencies as a
4802  # side effect of compilation, but ICC will put the dependencies in
4803  # the current directory while Tru64 will put them in the object
4804  # directory.
4805  mkdir sub
4806
4807  am_cv_CC_dependencies_compiler_type=none
4808  if test "$am_compiler_list" = ""; then
4809     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4810  fi
4811  for depmode in $am_compiler_list; do
4812    # Setup a source with many dependencies, because some compilers
4813    # like to wrap large dependency lists on column 80 (with \), and
4814    # we should not choose a depcomp mode which is confused by this.
4815    #
4816    # We need to recreate these files for each test, as the compiler may
4817    # overwrite some of them when testing with obscure command lines.
4818    # This happens at least with the AIX C compiler.
4819    : > sub/conftest.c
4820    for i in 1 2 3 4 5 6; do
4821      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4822      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4823      # Solaris 8's {/usr,}/bin/sh.
4824      touch sub/conftst$i.h
4825    done
4826    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4827
4828    case $depmode in
4829    nosideeffect)
4830      # after this tag, mechanisms are not by side-effect, so they'll
4831      # only be used when explicitly requested
4832      if test "x$enable_dependency_tracking" = xyes; then
4833        continue
4834      else
4835        break
4836      fi
4837      ;;
4838    none) break ;;
4839    esac
4840    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4841    # mode.  It turns out that the SunPro C++ compiler does not properly
4842    # handle `-M -o', and we need to detect this.
4843    if depmode=$depmode \
4844       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4845       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4846       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4847         >/dev/null 2>conftest.err &&
4848       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4849       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4850       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4851      # icc doesn't choke on unknown options, it will just issue warnings
4852      # or remarks (even with -Werror).  So we grep stderr for any message
4853      # that says an option was ignored or not supported.
4854      # When given -MP, icc 7.0 and 7.1 complain thusly:
4855      #   icc: Command line warning: ignoring option '-M'; no argument required
4856      # The diagnosis changed in icc 8.0:
4857      #   icc: Command line remark: option '-MP' not supported
4858      if (grep 'ignoring option' conftest.err ||
4859          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4860        am_cv_CC_dependencies_compiler_type=$depmode
4861        break
4862      fi
4863    fi
4864  done
4865
4866  cd ..
4867  rm -rf conftest.dir
4868else
4869  am_cv_CC_dependencies_compiler_type=none
4870fi
4871
4872fi
4873echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4874echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4875CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4876
4877
4878
4879if
4880  test "x$enable_dependency_tracking" != xno \
4881  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4882  am__fastdepCC_TRUE=
4883  am__fastdepCC_FALSE='#'
4884else
4885  am__fastdepCC_TRUE='#'
4886  am__fastdepCC_FALSE=
4887fi
4888
4889
4890depcc="$CXX"  am_compiler_list=
4891
4892echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4893echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4894if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4895  echo $ECHO_N "(cached) $ECHO_C" >&6
4896else
4897  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4898  # We make a subdir and do the tests there.  Otherwise we can end up
4899  # making bogus files that we don't know about and never remove.  For
4900  # instance it was reported that on HP-UX the gcc test will end up
4901  # making a dummy file named `D' -- because `-MD' means `put the output
4902  # in D'.
4903  mkdir conftest.dir
4904  # Copy depcomp to subdir because otherwise we won't find it if we're
4905  # using a relative directory.
4906  cp "$am_depcomp" conftest.dir
4907  cd conftest.dir
4908  # We will build objects and dependencies in a subdirectory because
4909  # it helps to detect inapplicable dependency modes.  For instance
4910  # both Tru64's cc and ICC support -MD to output dependencies as a
4911  # side effect of compilation, but ICC will put the dependencies in
4912  # the current directory while Tru64 will put them in the object
4913  # directory.
4914  mkdir sub
4915
4916  am_cv_CXX_dependencies_compiler_type=none
4917  if test "$am_compiler_list" = ""; then
4918     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4919  fi
4920  for depmode in $am_compiler_list; do
4921    # Setup a source with many dependencies, because some compilers
4922    # like to wrap large dependency lists on column 80 (with \), and
4923    # we should not choose a depcomp mode which is confused by this.
4924    #
4925    # We need to recreate these files for each test, as the compiler may
4926    # overwrite some of them when testing with obscure command lines.
4927    # This happens at least with the AIX C compiler.
4928    : > sub/conftest.c
4929    for i in 1 2 3 4 5 6; do
4930      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4931      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4932      # Solaris 8's {/usr,}/bin/sh.
4933      touch sub/conftst$i.h
4934    done
4935    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4936
4937    case $depmode in
4938    nosideeffect)
4939      # after this tag, mechanisms are not by side-effect, so they'll
4940      # only be used when explicitly requested
4941      if test "x$enable_dependency_tracking" = xyes; then
4942        continue
4943      else
4944        break
4945      fi
4946      ;;
4947    none) break ;;
4948    esac
4949    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4950    # mode.  It turns out that the SunPro C++ compiler does not properly
4951    # handle `-M -o', and we need to detect this.
4952    if depmode=$depmode \
4953       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4954       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4955       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4956         >/dev/null 2>conftest.err &&
4957       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4958       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4959       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4960      # icc doesn't choke on unknown options, it will just issue warnings
4961      # or remarks (even with -Werror).  So we grep stderr for any message
4962      # that says an option was ignored or not supported.
4963      # When given -MP, icc 7.0 and 7.1 complain thusly:
4964      #   icc: Command line warning: ignoring option '-M'; no argument required
4965      # The diagnosis changed in icc 8.0:
4966      #   icc: Command line remark: option '-MP' not supported
4967      if (grep 'ignoring option' conftest.err ||
4968          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4969        am_cv_CXX_dependencies_compiler_type=$depmode
4970        break
4971      fi
4972    fi
4973  done
4974
4975  cd ..
4976  rm -rf conftest.dir
4977else
4978  am_cv_CXX_dependencies_compiler_type=none
4979fi
4980
4981fi
4982echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4983echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4984CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4985
4986
4987
4988if
4989  test "x$enable_dependency_tracking" != xno \
4990  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4991  am__fastdepCXX_TRUE=
4992  am__fastdepCXX_FALSE='#'
4993else
4994  am__fastdepCXX_TRUE='#'
4995  am__fastdepCXX_FALSE=
4996fi
4997
4998
4999
5000echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
5001echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
5002    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5003if test "${enable_maintainer_mode+set}" = set; then
5004  enableval="$enable_maintainer_mode"
5005  USE_MAINTAINER_MODE=$enableval
5006else
5007  USE_MAINTAINER_MODE=no
5008fi;
5009  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
5010echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
5011
5012
5013if test $USE_MAINTAINER_MODE = yes; then
5014  MAINTAINER_MODE_TRUE=
5015  MAINTAINER_MODE_FALSE='#'
5016else
5017  MAINTAINER_MODE_TRUE='#'
5018  MAINTAINER_MODE_FALSE=
5019fi
5020
5021  MAINT=$MAINTAINER_MODE_TRUE
5022
5023
5024
5025coin_have_externals=no
5026if test "$enable_maintainer_mode" = yes; then
5027
5028  # If maintainer mode is chosen, we make sure that the correct versions
5029  # of the tools are used, and that we know where libtool.m4 is (to
5030  # recreate acinclude.m4)
5031
5032
5033  LIBTOOLM4=
5034  # Normally, $HOME
5035  AUTOTOOLS_DFLT=$HOME
5036
5037  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5038echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5039if test "${ac_cv_use_correct_autotools+set}" = set; then
5040  echo $ECHO_N "(cached) $ECHO_C" >&6
5041else
5042  ac_cv_use_correct_autotools=check
5043fi
5044echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5045echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5046
5047  if test $ac_cv_use_correct_autotools = check; then
5048    ac_cv_use_correct_autotools=yes
5049    # Check if we have autoconf
5050    # Extract the first word of "autoconf", so it can be a program name with args.
5051set dummy autoconf; ac_word=$2
5052echo "$as_me:$LINENO: checking for $ac_word" >&5
5053echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5054if test "${ac_cv_prog_have_autoconf+set}" = set; then
5055  echo $ECHO_N "(cached) $ECHO_C" >&6
5056else
5057  if test -n "$have_autoconf"; then
5058  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5059else
5060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5061for as_dir in $PATH
5062do
5063  IFS=$as_save_IFS
5064  test -z "$as_dir" && as_dir=.
5065  for ac_exec_ext in '' $ac_executable_extensions; do
5066  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5067    ac_cv_prog_have_autoconf="yes"
5068    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5069    break 2
5070  fi
5071done
5072done
5073
5074  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5075fi
5076fi
5077have_autoconf=$ac_cv_prog_have_autoconf
5078if test -n "$have_autoconf"; then
5079  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5080echo "${ECHO_T}$have_autoconf" >&6
5081else
5082  echo "$as_me:$LINENO: result: no" >&5
5083echo "${ECHO_T}no" >&6
5084fi
5085
5086    if test $have_autoconf = no; then
5087      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5088echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5089   { (exit 1); exit 1; }; }
5090    fi
5091
5092    # Check whether autoconf is the correct version
5093    correct_version='2.59'
5094    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5095    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5096echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5097    autoconf --version > confauto.out 2>&1
5098    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5099      echo "$as_me:$LINENO: result: yes" >&5
5100echo "${ECHO_T}yes" >&6
5101    else
5102      rm -f confauto.out
5103      echo "$as_me:$LINENO: result: no" >&5
5104echo "${ECHO_T}no" >&6
5105      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5106echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5107   { (exit 1); exit 1; }; }
5108    fi
5109    rm -f confauto.out
5110
5111    # Check if the executable autoconf is picked up from the correct location
5112    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5113echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5114    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5115    autoconf_dir=`cd $autoconf_dir; pwd`
5116    if test x$AUTOTOOLS_DIR = x; then
5117      want_dir=$AUTOTOOLS_DFLT/bin
5118    else
5119      want_dir=$AUTOTOOLS_DIR/bin
5120    fi
5121    if test $autoconf_dir = `cd $want_dir; pwd`; then
5122      echo "$as_me:$LINENO: result: yes" >&5
5123echo "${ECHO_T}yes" >&6
5124    else
5125      rm -f confauto.out
5126      echo "$as_me:$LINENO: result: no" >&5
5127echo "${ECHO_T}no" >&6
5128      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5129echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5130   { (exit 1); exit 1; }; }
5131    fi
5132
5133    # Check if we have automake
5134    # Extract the first word of "automake", so it can be a program name with args.
5135set dummy automake; ac_word=$2
5136echo "$as_me:$LINENO: checking for $ac_word" >&5
5137echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5138if test "${ac_cv_prog_have_automake+set}" = set; then
5139  echo $ECHO_N "(cached) $ECHO_C" >&6
5140else
5141  if test -n "$have_automake"; then
5142  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5143else
5144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5145for as_dir in $PATH
5146do
5147  IFS=$as_save_IFS
5148  test -z "$as_dir" && as_dir=.
5149  for ac_exec_ext in '' $ac_executable_extensions; do
5150  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5151    ac_cv_prog_have_automake="yes"
5152    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5153    break 2
5154  fi
5155done
5156done
5157
5158  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5159fi
5160fi
5161have_automake=$ac_cv_prog_have_automake
5162if test -n "$have_automake"; then
5163  echo "$as_me:$LINENO: result: $have_automake" >&5
5164echo "${ECHO_T}$have_automake" >&6
5165else
5166  echo "$as_me:$LINENO: result: no" >&5
5167echo "${ECHO_T}no" >&6
5168fi
5169
5170    if test $have_automake = no; then
5171      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5172echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5173   { (exit 1); exit 1; }; }
5174    fi
5175
5176    # Check whether automake is the correct version
5177    correct_version='1.9.6'
5178    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5179    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5180echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5181    automake --version > confauto.out 2>&1
5182    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5183      echo "$as_me:$LINENO: result: yes" >&5
5184echo "${ECHO_T}yes" >&6
5185    else
5186      rm -f confauto.out
5187      echo "$as_me:$LINENO: result: no" >&5
5188echo "${ECHO_T}no" >&6
5189      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5190echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5191   { (exit 1); exit 1; }; }
5192    fi
5193    rm -f confauto.out
5194
5195    # Check if the executable automake is picked up from the correct location
5196    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5197echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5198    automake_dir=`which automake | sed -e 's=/automake=='`
5199    automake_dir=`cd $automake_dir; pwd`
5200    if test x$AUTOTOOLS_DIR = x; then
5201      want_dir=$AUTOTOOLS_DFLT/bin
5202    else
5203      want_dir=$AUTOTOOLS_DIR/bin
5204    fi
5205    if test $automake_dir = `cd $want_dir; pwd`; then
5206      echo "$as_me:$LINENO: result: yes" >&5
5207echo "${ECHO_T}yes" >&6
5208    else
5209      rm -f confauto.out
5210      echo "$as_me:$LINENO: result: no" >&5
5211echo "${ECHO_T}no" >&6
5212      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5213echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5214   { (exit 1); exit 1; }; }
5215    fi
5216
5217    # Check if this is the correct version of libtool (with escaped dots)
5218    if test x$AUTOTOOLS_DIR = x; then
5219      want_dir=$AUTOTOOLS_DFLT/share
5220    else
5221      want_dir=$AUTOTOOLS_DIR/share
5222    fi
5223    correct_version='1.5.22'
5224    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5225    if test -r $want_dir/libtool/ltmain.sh; then
5226  have_ltmain=yes
5227  :
5228else
5229  have_ltmain=no
5230  :
5231fi
5232
5233    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5234echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5235    if test $have_ltmain = yes; then
5236    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5237        echo "$as_me:$LINENO: result: yes" >&5
5238echo "${ECHO_T}yes" >&6
5239      else
5240        echo "$as_me:$LINENO: result: no" >&5
5241echo "${ECHO_T}no" >&6
5242        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5243echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5244   { (exit 1); exit 1; }; }
5245      fi
5246    else
5247      echo "$as_me:$LINENO: result: no" >&5
5248echo "${ECHO_T}no" >&6
5249      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5250echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5251   { (exit 1); exit 1; }; }
5252    fi
5253  fi
5254
5255  # Check if we can find the libtool file
5256  if test x$AUTOTOOLS_DIR = x; then
5257    want_dir=$AUTOTOOLS_DFLT/share
5258  else
5259    want_dir=$AUTOTOOLS_DIR/share
5260  fi
5261  if test -r $want_dir/aclocal/libtool.m4; then
5262  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5263  :
5264else
5265  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5266echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5267   { (exit 1); exit 1; }; }
5268  :
5269fi
5270
5271
5272  # Check if we have an Externals file
5273  if test -r $srcdir/Externals; then
5274    coin_have_externals=yes
5275  fi
5276  # Check if subversion is installed and understands https
5277  # Extract the first word of "svn", so it can be a program name with args.
5278set dummy svn; ac_word=$2
5279echo "$as_me:$LINENO: checking for $ac_word" >&5
5280echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5281if test "${ac_cv_prog_have_svn+set}" = set; then
5282  echo $ECHO_N "(cached) $ECHO_C" >&6
5283else
5284  if test -n "$have_svn"; then
5285  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5286else
5287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5288for as_dir in $PATH
5289do
5290  IFS=$as_save_IFS
5291  test -z "$as_dir" && as_dir=.
5292  for ac_exec_ext in '' $ac_executable_extensions; do
5293  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5294    ac_cv_prog_have_svn="yes"
5295    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5296    break 2
5297  fi
5298done
5299done
5300
5301  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5302fi
5303fi
5304have_svn=$ac_cv_prog_have_svn
5305if test -n "$have_svn"; then
5306  echo "$as_me:$LINENO: result: $have_svn" >&5
5307echo "${ECHO_T}$have_svn" >&6
5308else
5309  echo "$as_me:$LINENO: result: no" >&5
5310echo "${ECHO_T}no" >&6
5311fi
5312
5313  if test x$have_svn = xyes; then
5314    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5315echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5316if test "${ac_cv_svn_understands_https+set}" = set; then
5317  echo $ECHO_N "(cached) $ECHO_C" >&6
5318else
5319  svn --version > confauto.out 2>&1
5320                    if $EGREP https confauto.out >/dev/null 2>&1; then
5321                      ac_cv_svn_understands_https=yes
5322                    else
5323                      ac_cv_svn_understands_https=no
5324                      have_svn=no
5325                      ac_cv_prog_have_svn=no
5326                    fi
5327                    rm -f confauto.out
5328fi
5329echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5330echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5331  fi
5332
5333  # Find the location of the BuildTools directory
5334  BUILDTOOLSDIR=
5335  if test -r $srcdir/BuildTools/coin.m4; then
5336    BUILDTOOLSDIR=$srcdir/BuildTools
5337  else
5338    if test -r $srcdir/../BuildTools/coin.m4; then
5339      BUILDTOOLSDIR=$srcdir/../BuildTools
5340    else
5341      if test -r $srcdir/../../BuildTools/coin.m4; then
5342        BUILDTOOLSDIR=$srcdir/../../BuildTools
5343      else
5344        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5345echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5346   { (exit 1); exit 1; }; }
5347      fi
5348    fi
5349  fi
5350
5351
5352  # The following variable is set to the name of the directory where
5353  # the autotool scripts are located
5354
5355  AUX_DIR=$ac_aux_dir
5356fi
5357
5358# helpful variable for the base directory of this package
5359abs_source_dir=`cd $srcdir; pwd`
5360
5361
5362# Stuff for example Makefiles
5363if test x$prefix = xNONE; then
5364  full_prefix=$ac_default_prefix
5365else
5366  full_prefix=$prefix
5367fi
5368full_prefix=`cd $full_prefix ; pwd`
5369
5370abs_lib_dir=$full_prefix/lib/coin
5371
5372abs_include_dir=$full_prefix/include
5373
5374abs_bin_dir=$full_prefix/bin
5375
5376
5377
5378if test $coin_have_externals = yes && test x$have_svn = xyes; then
5379  HAVE_EXTERNALS_TRUE=
5380  HAVE_EXTERNALS_FALSE='#'
5381else
5382  HAVE_EXTERNALS_TRUE='#'
5383  HAVE_EXTERNALS_FALSE=
5384fi
5385
5386
5387# AC_MSG_NOTICE([End automake initialisation.])
5388
5389
5390
5391LIBTOOL=
5392if test -r ../libtool; then
5393  coin_config_dir=..
5394  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5395fi
5396if test "x$LIBTOOL" = x; then
5397  if test -r ../../libtool; then
5398    coin_config_dir=../..
5399    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5400  fi
5401fi
5402
5403if test "x$LIBTOOL" = x; then
5404# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5405  # Stuff for libtool
5406  # Check whether --enable-shared or --disable-shared was given.
5407if test "${enable_shared+set}" = set; then
5408  enableval="$enable_shared"
5409  p=${PACKAGE-default}
5410    case $enableval in
5411    yes) enable_shared=yes ;;
5412    no) enable_shared=no ;;
5413    *)
5414      enable_shared=no
5415      # Look at the argument we got.  We use all the common list separators.
5416      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5417      for pkg in $enableval; do
5418        IFS="$lt_save_ifs"
5419        if test "X$pkg" = "X$p"; then
5420          enable_shared=yes
5421        fi
5422      done
5423      IFS="$lt_save_ifs"
5424      ;;
5425    esac
5426else
5427  enable_shared=yes
5428fi;
5429
5430# Check whether --enable-fast-install or --disable-fast-install was given.
5431if test "${enable_fast_install+set}" = set; then
5432  enableval="$enable_fast_install"
5433  p=${PACKAGE-default}
5434    case $enableval in
5435    yes) enable_fast_install=yes ;;
5436    no) enable_fast_install=no ;;
5437    *)
5438      enable_fast_install=no
5439      # Look at the argument we got.  We use all the common list separators.
5440      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5441      for pkg in $enableval; do
5442        IFS="$lt_save_ifs"
5443        if test "X$pkg" = "X$p"; then
5444          enable_fast_install=yes
5445        fi
5446      done
5447      IFS="$lt_save_ifs"
5448      ;;
5449    esac
5450else
5451  enable_fast_install=yes
5452fi;
5453
5454echo "$as_me:$LINENO: checking host system type" >&5
5455echo $ECHO_N "checking host system type... $ECHO_C" >&6
5456if test "${ac_cv_host+set}" = set; then
5457  echo $ECHO_N "(cached) $ECHO_C" >&6
5458else
5459  ac_cv_host_alias=$host_alias
5460test -z "$ac_cv_host_alias" &&
5461  ac_cv_host_alias=$ac_cv_build_alias
5462ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5463  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5464echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5465   { (exit 1); exit 1; }; }
5466
5467fi
5468echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5469echo "${ECHO_T}$ac_cv_host" >&6
5470host=$ac_cv_host
5471host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5472host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5473host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5474
5475
5476echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5477echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5478if test "${lt_cv_path_SED+set}" = set; then
5479  echo $ECHO_N "(cached) $ECHO_C" >&6
5480else
5481  # Loop through the user's path and test for sed and gsed.
5482# Then use that list of sed's as ones to test for truncation.
5483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5484for as_dir in $PATH
5485do
5486  IFS=$as_save_IFS
5487  test -z "$as_dir" && as_dir=.
5488  for lt_ac_prog in sed gsed; do
5489    for ac_exec_ext in '' $ac_executable_extensions; do
5490      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5491        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5492      fi
5493    done
5494  done
5495done
5496lt_ac_max=0
5497lt_ac_count=0
5498# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5499# along with /bin/sed that truncates output.
5500for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5501  test ! -f $lt_ac_sed && continue
5502  cat /dev/null > conftest.in
5503  lt_ac_count=0
5504  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5505  # Check for GNU sed and select it if it is found.
5506  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5507    lt_cv_path_SED=$lt_ac_sed
5508    break
5509  fi
5510  while true; do
5511    cat conftest.in conftest.in >conftest.tmp
5512    mv conftest.tmp conftest.in
5513    cp conftest.in conftest.nl
5514    echo >>conftest.nl
5515    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5516    cmp -s conftest.out conftest.nl || break
5517    # 10000 chars as input seems more than enough
5518    test $lt_ac_count -gt 10 && break
5519    lt_ac_count=`expr $lt_ac_count + 1`
5520    if test $lt_ac_count -gt $lt_ac_max; then
5521      lt_ac_max=$lt_ac_count
5522      lt_cv_path_SED=$lt_ac_sed
5523    fi
5524  done
5525done
5526
5527fi
5528
5529SED=$lt_cv_path_SED
5530echo "$as_me:$LINENO: result: $SED" >&5
5531echo "${ECHO_T}$SED" >&6
5532
5533
5534# Check whether --with-gnu-ld or --without-gnu-ld was given.
5535if test "${with_gnu_ld+set}" = set; then
5536  withval="$with_gnu_ld"
5537  test "$withval" = no || with_gnu_ld=yes
5538else
5539  with_gnu_ld=no
5540fi;
5541ac_prog=ld
5542if test "$GCC" = yes; then
5543  # Check if gcc -print-prog-name=ld gives a path.
5544  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5545echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5546  case $host in
5547  *-*-mingw*)
5548    # gcc leaves a trailing carriage return which upsets mingw
5549    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5550  *)
5551    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5552  esac
5553  case $ac_prog in
5554    # Accept absolute paths.
5555    [\\/]* | ?:[\\/]*)
5556      re_direlt='/[^/][^/]*/\.\./'
5557      # Canonicalize the pathname of ld
5558      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5559      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5560        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5561      done
5562      test -z "$LD" && LD="$ac_prog"
5563      ;;
5564  "")
5565    # If it fails, then pretend we aren't using GCC.
5566    ac_prog=ld
5567    ;;
5568  *)
5569    # If it is relative, then search for the first ld in PATH.
5570    with_gnu_ld=unknown
5571    ;;
5572  esac
5573elif test "$with_gnu_ld" = yes; then
5574  echo "$as_me:$LINENO: checking for GNU ld" >&5
5575echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5576else
5577  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5578echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5579fi
5580if test "${lt_cv_path_LD+set}" = set; then
5581  echo $ECHO_N "(cached) $ECHO_C" >&6
5582else
5583  if test -z "$LD"; then
5584  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5585  for ac_dir in $PATH; do
5586    IFS="$lt_save_ifs"
5587    test -z "$ac_dir" && ac_dir=.
5588    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5589      lt_cv_path_LD="$ac_dir/$ac_prog"
5590      # Check to see if the program is GNU ld.  I'd rather use --version,
5591      # but apparently some variants of GNU ld only accept -v.
5592      # Break only if it was the GNU/non-GNU ld that we prefer.
5593      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5594      *GNU* | *'with BFD'*)
5595        test "$with_gnu_ld" != no && break
5596        ;;
5597      *)
5598        test "$with_gnu_ld" != yes && break
5599        ;;
5600      esac
5601    fi
5602  done
5603  IFS="$lt_save_ifs"
5604else
5605  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5606fi
5607fi
5608
5609LD="$lt_cv_path_LD"
5610if test -n "$LD"; then
5611  echo "$as_me:$LINENO: result: $LD" >&5
5612echo "${ECHO_T}$LD" >&6
5613else
5614  echo "$as_me:$LINENO: result: no" >&5
5615echo "${ECHO_T}no" >&6
5616fi
5617test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5618echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5619   { (exit 1); exit 1; }; }
5620echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5621echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5622if test "${lt_cv_prog_gnu_ld+set}" = set; then
5623  echo $ECHO_N "(cached) $ECHO_C" >&6
5624else
5625  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5626case `$LD -v 2>&1 </dev/null` in
5627*GNU* | *'with BFD'*)
5628  lt_cv_prog_gnu_ld=yes
5629  ;;
5630*)
5631  lt_cv_prog_gnu_ld=no
5632  ;;
5633esac
5634fi
5635echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5636echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5637with_gnu_ld=$lt_cv_prog_gnu_ld
5638
5639
5640echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5641echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5642if test "${lt_cv_ld_reload_flag+set}" = set; then
5643  echo $ECHO_N "(cached) $ECHO_C" >&6
5644else
5645  lt_cv_ld_reload_flag='-r'
5646fi
5647echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5648echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5649reload_flag=$lt_cv_ld_reload_flag
5650case $reload_flag in
5651"" | " "*) ;;
5652*) reload_flag=" $reload_flag" ;;
5653esac
5654reload_cmds='$LD$reload_flag -o $output$reload_objs'
5655case $host_os in
5656  darwin*)
5657    if test "$GCC" = yes; then
5658      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5659    else
5660      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5661    fi
5662    ;;
5663esac
5664
5665echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5666echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5667if test "${lt_cv_path_NM+set}" = set; then
5668  echo $ECHO_N "(cached) $ECHO_C" >&6
5669else
5670  if test -n "$NM"; then
5671  # Let the user override the test.
5672  lt_cv_path_NM="$NM"
5673else
5674  lt_nm_to_check="${ac_tool_prefix}nm"
5675  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5676    lt_nm_to_check="$lt_nm_to_check nm"
5677  fi
5678  for lt_tmp_nm in $lt_nm_to_check; do
5679    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5680    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5681      IFS="$lt_save_ifs"
5682      test -z "$ac_dir" && ac_dir=.
5683      tmp_nm="$ac_dir/$lt_tmp_nm"
5684      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5685        # Check to see if the nm accepts a BSD-compat flag.
5686        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5687        #   nm: unknown option "B" ignored
5688        # Tru64's nm complains that /dev/null is an invalid object file
5689        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5690        */dev/null* | *'Invalid file or object type'*)
5691          lt_cv_path_NM="$tmp_nm -B"
5692          break
5693          ;;
5694        *)
5695          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5696          */dev/null*)
5697            lt_cv_path_NM="$tmp_nm -p"
5698            break
5699            ;;
5700          *)
5701            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5702            continue # so that we can try to find one that supports BSD flags
5703            ;;
5704          esac
5705          ;;
5706        esac
5707      fi
5708    done
5709    IFS="$lt_save_ifs"
5710  done
5711  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5712fi
5713fi
5714echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5715echo "${ECHO_T}$lt_cv_path_NM" >&6
5716NM="$lt_cv_path_NM"
5717
5718echo "$as_me:$LINENO: checking whether ln -s works" >&5
5719echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5720LN_S=$as_ln_s
5721if test "$LN_S" = "ln -s"; then
5722  echo "$as_me:$LINENO: result: yes" >&5
5723echo "${ECHO_T}yes" >&6
5724else
5725  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5726echo "${ECHO_T}no, using $LN_S" >&6
5727fi
5728
5729echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5730echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5731if test "${lt_cv_deplibs_check_method+set}" = set; then
5732  echo $ECHO_N "(cached) $ECHO_C" >&6
5733else
5734  lt_cv_file_magic_cmd='$MAGIC_CMD'
5735lt_cv_file_magic_test_file=
5736lt_cv_deplibs_check_method='unknown'
5737# Need to set the preceding variable on all platforms that support
5738# interlibrary dependencies.
5739# 'none' -- dependencies not supported.
5740# `unknown' -- same as none, but documents that we really don't know.
5741# 'pass_all' -- all dependencies passed with no checks.
5742# 'test_compile' -- check by making test program.
5743# 'file_magic [[regex]]' -- check by looking for files in library path
5744# which responds to the $file_magic_cmd with a given extended regex.
5745# If you have `file' or equivalent on your system and you're not sure
5746# whether `pass_all' will *always* work, you probably want this one.
5747
5748case $host_os in
5749aix4* | aix5*)
5750  lt_cv_deplibs_check_method=pass_all
5751  ;;
5752
5753beos*)
5754  lt_cv_deplibs_check_method=pass_all
5755  ;;
5756
5757bsdi[45]*)
5758  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5759  lt_cv_file_magic_cmd='/usr/bin/file -L'
5760  lt_cv_file_magic_test_file=/shlib/libc.so
5761  ;;
5762
5763cygwin*)
5764  # func_win32_libid is a shell function defined in ltmain.sh
5765  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5766  lt_cv_file_magic_cmd='func_win32_libid'
5767  ;;
5768
5769mingw* | pw32*)
5770  # Base MSYS/MinGW do not provide the 'file' command needed by
5771  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5772  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5773  lt_cv_file_magic_cmd='$OBJDUMP -f'
5774  ;;
5775
5776darwin* | rhapsody*)
5777  lt_cv_deplibs_check_method=pass_all
5778  ;;
5779
5780freebsd* | kfreebsd*-gnu | dragonfly*)
5781  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5782    case $host_cpu in
5783    i*86 )
5784      # Not sure whether the presence of OpenBSD here was a mistake.
5785      # Let's accept both of them until this is cleared up.
5786      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5787      lt_cv_file_magic_cmd=/usr/bin/file
5788      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5789      ;;
5790    esac
5791  else
5792    lt_cv_deplibs_check_method=pass_all
5793  fi
5794  ;;
5795
5796gnu*)
5797  lt_cv_deplibs_check_method=pass_all
5798  ;;
5799
5800hpux10.20* | hpux11*)
5801  lt_cv_file_magic_cmd=/usr/bin/file
5802  case $host_cpu in
5803  ia64*)
5804    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5805    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5806    ;;
5807  hppa*64*)
5808    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]'
5809    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5810    ;;
5811  *)
5812    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5813    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5814    ;;
5815  esac
5816  ;;
5817
5818interix3*)
5819  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5820  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5821  ;;
5822
5823irix5* | irix6* | nonstopux*)
5824  case $LD in
5825  *-32|*"-32 ") libmagic=32-bit;;
5826  *-n32|*"-n32 ") libmagic=N32;;
5827  *-64|*"-64 ") libmagic=64-bit;;
5828  *) libmagic=never-match;;
5829  esac
5830  lt_cv_deplibs_check_method=pass_all
5831  ;;
5832
5833# This must be Linux ELF.
5834linux*)
5835  lt_cv_deplibs_check_method=pass_all
5836  ;;
5837
5838netbsd*)
5839  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5840    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5841  else
5842    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5843  fi
5844  ;;
5845
5846newos6*)
5847  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5848  lt_cv_file_magic_cmd=/usr/bin/file
5849  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5850  ;;
5851
5852nto-qnx*)
5853  lt_cv_deplibs_check_method=unknown
5854  ;;
5855
5856openbsd*)
5857  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5858    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5859  else
5860    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5861  fi
5862  ;;
5863
5864osf3* | osf4* | osf5*)
5865  lt_cv_deplibs_check_method=pass_all
5866  ;;
5867
5868solaris*)
5869  lt_cv_deplibs_check_method=pass_all
5870  ;;
5871
5872sysv4 | sysv4.3*)
5873  case $host_vendor in
5874  motorola)
5875    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]'
5876    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5877    ;;
5878  ncr)
5879    lt_cv_deplibs_check_method=pass_all
5880    ;;
5881  sequent)
5882    lt_cv_file_magic_cmd='/bin/file'
5883    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5884    ;;
5885  sni)
5886    lt_cv_file_magic_cmd='/bin/file'
5887    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5888    lt_cv_file_magic_test_file=/lib/libc.so
5889    ;;
5890  siemens)
5891    lt_cv_deplibs_check_method=pass_all
5892    ;;
5893  pc)
5894    lt_cv_deplibs_check_method=pass_all
5895    ;;
5896  esac
5897  ;;
5898
5899sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5900  lt_cv_deplibs_check_method=pass_all
5901  ;;
5902esac
5903
5904fi
5905echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5906echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5907file_magic_cmd=$lt_cv_file_magic_cmd
5908deplibs_check_method=$lt_cv_deplibs_check_method
5909test -z "$deplibs_check_method" && deplibs_check_method=unknown
5910
5911
5912
5913
5914# If no C compiler was specified, use CC.
5915LTCC=${LTCC-"$CC"}
5916
5917# If no C compiler flags were specified, use CFLAGS.
5918LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5919
5920# Allow CC to be a program name with arguments.
5921compiler=$CC
5922
5923# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5924if test "${enable_libtool_lock+set}" = set; then
5925  enableval="$enable_libtool_lock"
5926
5927fi;
5928test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5929
5930# Some flags need to be propagated to the compiler or linker for good
5931# libtool support.
5932case $host in
5933ia64-*-hpux*)
5934  # Find out which ABI we are using.
5935  echo 'int i;' > conftest.$ac_ext
5936  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5937  (eval $ac_compile) 2>&5
5938  ac_status=$?
5939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940  (exit $ac_status); }; then
5941    case `/usr/bin/file conftest.$ac_objext` in
5942    *ELF-32*)
5943      HPUX_IA64_MODE="32"
5944      ;;
5945    *ELF-64*)
5946      HPUX_IA64_MODE="64"
5947      ;;
5948    esac
5949  fi
5950  rm -rf conftest*
5951  ;;
5952*-*-irix6*)
5953  # Find out which ABI we are using.
5954  echo '#line 5954 "configure"' > conftest.$ac_ext
5955  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5956  (eval $ac_compile) 2>&5
5957  ac_status=$?
5958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959  (exit $ac_status); }; then
5960   if test "$lt_cv_prog_gnu_ld" = yes; then
5961    case `/usr/bin/file conftest.$ac_objext` in
5962    *32-bit*)
5963      LD="${LD-ld} -melf32bsmip"
5964      ;;
5965    *N32*)
5966      LD="${LD-ld} -melf32bmipn32"
5967      ;;
5968    *64-bit*)
5969      LD="${LD-ld} -melf64bmip"
5970      ;;
5971    esac
5972   else
5973    case `/usr/bin/file conftest.$ac_objext` in
5974    *32-bit*)
5975      LD="${LD-ld} -32"
5976      ;;
5977    *N32*)
5978      LD="${LD-ld} -n32"
5979      ;;
5980    *64-bit*)
5981      LD="${LD-ld} -64"
5982      ;;
5983    esac
5984   fi
5985  fi
5986  rm -rf conftest*
5987  ;;
5988
5989x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5990  # Find out which ABI we are using.
5991  echo 'int i;' > conftest.$ac_ext
5992  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5993  (eval $ac_compile) 2>&5
5994  ac_status=$?
5995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5996  (exit $ac_status); }; then
5997    case `/usr/bin/file conftest.o` in
5998    *32-bit*)
5999      case $host in
6000        x86_64-*linux*)
6001          LD="${LD-ld} -m elf_i386"
6002          ;;
6003        ppc64-*linux*|powerpc64-*linux*)
6004          LD="${LD-ld} -m elf32ppclinux"
6005          ;;
6006        s390x-*linux*)
6007          LD="${LD-ld} -m elf_s390"
6008          ;;
6009        sparc64-*linux*)
6010          LD="${LD-ld} -m elf32_sparc"
6011          ;;
6012      esac
6013      ;;
6014    *64-bit*)
6015      case $host in
6016        x86_64-*linux*)
6017          LD="${LD-ld} -m elf_x86_64"
6018          ;;
6019        ppc*-*linux*|powerpc*-*linux*)
6020          LD="${LD-ld} -m elf64ppc"
6021          ;;
6022        s390*-*linux*)
6023          LD="${LD-ld} -m elf64_s390"
6024          ;;
6025        sparc*-*linux*)
6026          LD="${LD-ld} -m elf64_sparc"
6027          ;;
6028      esac
6029      ;;
6030    esac
6031  fi
6032  rm -rf conftest*
6033  ;;
6034
6035*-*-sco3.2v5*)
6036  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6037  SAVE_CFLAGS="$CFLAGS"
6038  CFLAGS="$CFLAGS -belf"
6039  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6040echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6041if test "${lt_cv_cc_needs_belf+set}" = set; then
6042  echo $ECHO_N "(cached) $ECHO_C" >&6
6043else
6044  ac_ext=c
6045ac_cpp='$CPP $CPPFLAGS'
6046ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6047ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6048ac_compiler_gnu=$ac_cv_c_compiler_gnu
6049
6050     cat >conftest.$ac_ext <<_ACEOF
6051/* confdefs.h.  */
6052_ACEOF
6053cat confdefs.h >>conftest.$ac_ext
6054cat >>conftest.$ac_ext <<_ACEOF
6055/* end confdefs.h.  */
6056
6057int
6058main ()
6059{
6060
6061  ;
6062  return 0;
6063}
6064_ACEOF
6065rm -f conftest.$ac_objext conftest$ac_exeext
6066if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6067  (eval $ac_link) 2>conftest.er1
6068  ac_status=$?
6069  grep -v '^ *+' conftest.er1 >conftest.err
6070  rm -f conftest.er1
6071  cat conftest.err >&5
6072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073  (exit $ac_status); } &&
6074         { ac_try='test -z "$ac_c_werror_flag"
6075                         || test ! -s conftest.err'
6076  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6077  (eval $ac_try) 2>&5
6078  ac_status=$?
6079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080  (exit $ac_status); }; } &&
6081         { ac_try='test -s conftest$ac_exeext'
6082  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6083  (eval $ac_try) 2>&5
6084  ac_status=$?
6085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086  (exit $ac_status); }; }; then
6087  lt_cv_cc_needs_belf=yes
6088else
6089  echo "$as_me: failed program was:" >&5
6090sed 's/^/| /' conftest.$ac_ext >&5
6091
6092lt_cv_cc_needs_belf=no
6093fi
6094rm -f conftest.err conftest.$ac_objext \
6095      conftest$ac_exeext conftest.$ac_ext
6096     ac_ext=c
6097ac_cpp='$CPP $CPPFLAGS'
6098ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6099ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6100ac_compiler_gnu=$ac_cv_c_compiler_gnu
6101
6102fi
6103echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6104echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6105  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6106    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6107    CFLAGS="$SAVE_CFLAGS"
6108  fi
6109  ;;
6110sparc*-*solaris*)
6111  # Find out which ABI we are using.
6112  echo 'int i;' > conftest.$ac_ext
6113  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6114  (eval $ac_compile) 2>&5
6115  ac_status=$?
6116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117  (exit $ac_status); }; then
6118    case `/usr/bin/file conftest.o` in
6119    *64-bit*)
6120      case $lt_cv_prog_gnu_ld in
6121      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6122      *)    LD="${LD-ld} -64" ;;
6123      esac
6124      ;;
6125    esac
6126  fi
6127  rm -rf conftest*
6128  ;;
6129
6130
6131esac
6132
6133need_locks="$enable_libtool_lock"
6134
6135
6136ac_ext=c
6137ac_cpp='$CPP $CPPFLAGS'
6138ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6139ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6140ac_compiler_gnu=$ac_cv_c_compiler_gnu
6141echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6142echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6143# On Suns, sometimes $CPP names a directory.
6144if test -n "$CPP" && test -d "$CPP"; then
6145  CPP=
6146fi
6147if test -z "$CPP"; then
6148  if test "${ac_cv_prog_CPP+set}" = set; then
6149  echo $ECHO_N "(cached) $ECHO_C" >&6
6150else
6151      # Double quotes because CPP needs to be expanded
6152    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6153    do
6154      ac_preproc_ok=false
6155for ac_c_preproc_warn_flag in '' yes
6156do
6157  # Use a header file that comes with gcc, so configuring glibc
6158  # with a fresh cross-compiler works.
6159  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6160  # <limits.h> exists even on freestanding compilers.
6161  # On the NeXT, cc -E runs the code through the compiler's parser,
6162  # not just through cpp. "Syntax error" is here to catch this case.
6163  cat >conftest.$ac_ext <<_ACEOF
6164/* confdefs.h.  */
6165_ACEOF
6166cat confdefs.h >>conftest.$ac_ext
6167cat >>conftest.$ac_ext <<_ACEOF
6168/* end confdefs.h.  */
6169#ifdef __STDC__
6170# include <limits.h>
6171#else
6172# include <assert.h>
6173#endif
6174                     Syntax error
6175_ACEOF
6176if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6177  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6178  ac_status=$?
6179  grep -v '^ *+' conftest.er1 >conftest.err
6180  rm -f conftest.er1
6181  cat conftest.err >&5
6182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183  (exit $ac_status); } >/dev/null; then
6184  if test -s conftest.err; then
6185    ac_cpp_err=$ac_c_preproc_warn_flag
6186    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6187  else
6188    ac_cpp_err=
6189  fi
6190else
6191  ac_cpp_err=yes
6192fi
6193if test -z "$ac_cpp_err"; then
6194  :
6195else
6196  echo "$as_me: failed program was:" >&5
6197sed 's/^/| /' conftest.$ac_ext >&5
6198
6199  # Broken: fails on valid input.
6200continue
6201fi
6202rm -f conftest.err conftest.$ac_ext
6203
6204  # OK, works on sane cases.  Now check whether non-existent headers
6205  # can be detected and how.
6206  cat >conftest.$ac_ext <<_ACEOF
6207/* confdefs.h.  */
6208_ACEOF
6209cat confdefs.h >>conftest.$ac_ext
6210cat >>conftest.$ac_ext <<_ACEOF
6211/* end confdefs.h.  */
6212#include <ac_nonexistent.h>
6213_ACEOF
6214if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6215  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6216  ac_status=$?
6217  grep -v '^ *+' conftest.er1 >conftest.err
6218  rm -f conftest.er1
6219  cat conftest.err >&5
6220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221  (exit $ac_status); } >/dev/null; then
6222  if test -s conftest.err; then
6223    ac_cpp_err=$ac_c_preproc_warn_flag
6224    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6225  else
6226    ac_cpp_err=
6227  fi
6228else
6229  ac_cpp_err=yes
6230fi
6231if test -z "$ac_cpp_err"; then
6232  # Broken: success on invalid input.
6233continue
6234else
6235  echo "$as_me: failed program was:" >&5
6236sed 's/^/| /' conftest.$ac_ext >&5
6237
6238  # Passes both tests.
6239ac_preproc_ok=:
6240break
6241fi
6242rm -f conftest.err conftest.$ac_ext
6243
6244done
6245# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6246rm -f conftest.err conftest.$ac_ext
6247if $ac_preproc_ok; then
6248  break
6249fi
6250
6251    done
6252    ac_cv_prog_CPP=$CPP
6253
6254fi
6255  CPP=$ac_cv_prog_CPP
6256else
6257  ac_cv_prog_CPP=$CPP
6258fi
6259echo "$as_me:$LINENO: result: $CPP" >&5
6260echo "${ECHO_T}$CPP" >&6
6261ac_preproc_ok=false
6262for ac_c_preproc_warn_flag in '' yes
6263do
6264  # Use a header file that comes with gcc, so configuring glibc
6265  # with a fresh cross-compiler works.
6266  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6267  # <limits.h> exists even on freestanding compilers.
6268  # On the NeXT, cc -E runs the code through the compiler's parser,
6269  # not just through cpp. "Syntax error" is here to catch this case.
6270  cat >conftest.$ac_ext <<_ACEOF
6271/* confdefs.h.  */
6272_ACEOF
6273cat confdefs.h >>conftest.$ac_ext
6274cat >>conftest.$ac_ext <<_ACEOF
6275/* end confdefs.h.  */
6276#ifdef __STDC__
6277# include <limits.h>
6278#else
6279# include <assert.h>
6280#endif
6281                     Syntax error
6282_ACEOF
6283if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6284  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6285  ac_status=$?
6286  grep -v '^ *+' conftest.er1 >conftest.err
6287  rm -f conftest.er1
6288  cat conftest.err >&5
6289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290  (exit $ac_status); } >/dev/null; then
6291  if test -s conftest.err; then
6292    ac_cpp_err=$ac_c_preproc_warn_flag
6293    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6294  else
6295    ac_cpp_err=
6296  fi
6297else
6298  ac_cpp_err=yes
6299fi
6300if test -z "$ac_cpp_err"; then
6301  :
6302else
6303  echo "$as_me: failed program was:" >&5
6304sed 's/^/| /' conftest.$ac_ext >&5
6305
6306  # Broken: fails on valid input.
6307continue
6308fi
6309rm -f conftest.err conftest.$ac_ext
6310
6311  # OK, works on sane cases.  Now check whether non-existent headers
6312  # can be detected and how.
6313  cat >conftest.$ac_ext <<_ACEOF
6314/* confdefs.h.  */
6315_ACEOF
6316cat confdefs.h >>conftest.$ac_ext
6317cat >>conftest.$ac_ext <<_ACEOF
6318/* end confdefs.h.  */
6319#include <ac_nonexistent.h>
6320_ACEOF
6321if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6322  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6323  ac_status=$?
6324  grep -v '^ *+' conftest.er1 >conftest.err
6325  rm -f conftest.er1
6326  cat conftest.err >&5
6327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328  (exit $ac_status); } >/dev/null; then
6329  if test -s conftest.err; then
6330    ac_cpp_err=$ac_c_preproc_warn_flag
6331    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6332  else
6333    ac_cpp_err=
6334  fi
6335else
6336  ac_cpp_err=yes
6337fi
6338if test -z "$ac_cpp_err"; then
6339  # Broken: success on invalid input.
6340continue
6341else
6342  echo "$as_me: failed program was:" >&5
6343sed 's/^/| /' conftest.$ac_ext >&5
6344
6345  # Passes both tests.
6346ac_preproc_ok=:
6347break
6348fi
6349rm -f conftest.err conftest.$ac_ext
6350
6351done
6352# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6353rm -f conftest.err conftest.$ac_ext
6354if $ac_preproc_ok; then
6355  :
6356else
6357  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6358See \`config.log' for more details." >&5
6359echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6360See \`config.log' for more details." >&2;}
6361   { (exit 1); exit 1; }; }
6362fi
6363
6364ac_ext=c
6365ac_cpp='$CPP $CPPFLAGS'
6366ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6367ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6368ac_compiler_gnu=$ac_cv_c_compiler_gnu
6369
6370
6371echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6372echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6373if test "${ac_cv_header_stdc+set}" = set; then
6374  echo $ECHO_N "(cached) $ECHO_C" >&6
6375else
6376  cat >conftest.$ac_ext <<_ACEOF
6377/* confdefs.h.  */
6378_ACEOF
6379cat confdefs.h >>conftest.$ac_ext
6380cat >>conftest.$ac_ext <<_ACEOF
6381/* end confdefs.h.  */
6382#include <stdlib.h>
6383#include <stdarg.h>
6384#include <string.h>
6385#include <float.h>
6386
6387int
6388main ()
6389{
6390
6391  ;
6392  return 0;
6393}
6394_ACEOF
6395rm -f conftest.$ac_objext
6396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6397  (eval $ac_compile) 2>conftest.er1
6398  ac_status=$?
6399  grep -v '^ *+' conftest.er1 >conftest.err
6400  rm -f conftest.er1
6401  cat conftest.err >&5
6402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403  (exit $ac_status); } &&
6404         { ac_try='test -z "$ac_c_werror_flag"
6405                         || test ! -s conftest.err'
6406  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6407  (eval $ac_try) 2>&5
6408  ac_status=$?
6409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410  (exit $ac_status); }; } &&
6411         { ac_try='test -s conftest.$ac_objext'
6412  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6413  (eval $ac_try) 2>&5
6414  ac_status=$?
6415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416  (exit $ac_status); }; }; then
6417  ac_cv_header_stdc=yes
6418else
6419  echo "$as_me: failed program was:" >&5
6420sed 's/^/| /' conftest.$ac_ext >&5
6421
6422ac_cv_header_stdc=no
6423fi
6424rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6425
6426if test $ac_cv_header_stdc = yes; then
6427  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6428  cat >conftest.$ac_ext <<_ACEOF
6429/* confdefs.h.  */
6430_ACEOF
6431cat confdefs.h >>conftest.$ac_ext
6432cat >>conftest.$ac_ext <<_ACEOF
6433/* end confdefs.h.  */
6434#include <string.h>
6435
6436_ACEOF
6437if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6438  $EGREP "memchr" >/dev/null 2>&1; then
6439  :
6440else
6441  ac_cv_header_stdc=no
6442fi
6443rm -f conftest*
6444
6445fi
6446
6447if test $ac_cv_header_stdc = yes; then
6448  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6449  cat >conftest.$ac_ext <<_ACEOF
6450/* confdefs.h.  */
6451_ACEOF
6452cat confdefs.h >>conftest.$ac_ext
6453cat >>conftest.$ac_ext <<_ACEOF
6454/* end confdefs.h.  */
6455#include <stdlib.h>
6456
6457_ACEOF
6458if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6459  $EGREP "free" >/dev/null 2>&1; then
6460  :
6461else
6462  ac_cv_header_stdc=no
6463fi
6464rm -f conftest*
6465
6466fi
6467
6468if test $ac_cv_header_stdc = yes; then
6469  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6470  if test "$cross_compiling" = yes; then
6471  :
6472else
6473  cat >conftest.$ac_ext <<_ACEOF
6474/* confdefs.h.  */
6475_ACEOF
6476cat confdefs.h >>conftest.$ac_ext
6477cat >>conftest.$ac_ext <<_ACEOF
6478/* end confdefs.h.  */
6479#include <ctype.h>
6480#if ((' ' & 0x0FF) == 0x020)
6481# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6482# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6483#else
6484# define ISLOWER(c) \
6485                   (('a' <= (c) && (c) <= 'i') \
6486                     || ('j' <= (c) && (c) <= 'r') \
6487                     || ('s' <= (c) && (c) <= 'z'))
6488# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6489#endif
6490
6491#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6492int
6493main ()
6494{
6495  int i;
6496  for (i = 0; i < 256; i++)
6497    if (XOR (islower (i), ISLOWER (i))
6498        || toupper (i) != TOUPPER (i))
6499      exit(2);
6500  exit (0);
6501}
6502_ACEOF
6503rm -f conftest$ac_exeext
6504if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6505  (eval $ac_link) 2>&5
6506  ac_status=$?
6507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6509  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6510  (eval $ac_try) 2>&5
6511  ac_status=$?
6512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513  (exit $ac_status); }; }; then
6514  :
6515else
6516  echo "$as_me: program exited with status $ac_status" >&5
6517echo "$as_me: failed program was:" >&5
6518sed 's/^/| /' conftest.$ac_ext >&5
6519
6520( exit $ac_status )
6521ac_cv_header_stdc=no
6522fi
6523rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6524fi
6525fi
6526fi
6527echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6528echo "${ECHO_T}$ac_cv_header_stdc" >&6
6529if test $ac_cv_header_stdc = yes; then
6530
6531cat >>confdefs.h <<\_ACEOF
6532#define STDC_HEADERS 1
6533_ACEOF
6534
6535fi
6536
6537# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6548                  inttypes.h stdint.h unistd.h
6549do
6550as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6551echo "$as_me:$LINENO: checking for $ac_header" >&5
6552echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6553if eval "test \"\${$as_ac_Header+set}\" = set"; then
6554  echo $ECHO_N "(cached) $ECHO_C" >&6
6555else
6556  cat >conftest.$ac_ext <<_ACEOF
6557/* confdefs.h.  */
6558_ACEOF
6559cat confdefs.h >>conftest.$ac_ext
6560cat >>conftest.$ac_ext <<_ACEOF
6561/* end confdefs.h.  */
6562$ac_includes_default
6563
6564#include <$ac_header>
6565_ACEOF
6566rm -f conftest.$ac_objext
6567if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6568  (eval $ac_compile) 2>conftest.er1
6569  ac_status=$?
6570  grep -v '^ *+' conftest.er1 >conftest.err
6571  rm -f conftest.er1
6572  cat conftest.err >&5
6573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574  (exit $ac_status); } &&
6575         { ac_try='test -z "$ac_c_werror_flag"
6576                         || test ! -s conftest.err'
6577  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6578  (eval $ac_try) 2>&5
6579  ac_status=$?
6580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581  (exit $ac_status); }; } &&
6582         { ac_try='test -s conftest.$ac_objext'
6583  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6584  (eval $ac_try) 2>&5
6585  ac_status=$?
6586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587  (exit $ac_status); }; }; then
6588  eval "$as_ac_Header=yes"
6589else
6590  echo "$as_me: failed program was:" >&5
6591sed 's/^/| /' conftest.$ac_ext >&5
6592
6593eval "$as_ac_Header=no"
6594fi
6595rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6596fi
6597echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6598echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6599if test `eval echo '${'$as_ac_Header'}'` = yes; then
6600  cat >>confdefs.h <<_ACEOF
6601#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6602_ACEOF
6603
6604fi
6605
6606done
6607
6608
6609
6610for ac_header in dlfcn.h
6611do
6612as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6613if eval "test \"\${$as_ac_Header+set}\" = set"; then
6614  echo "$as_me:$LINENO: checking for $ac_header" >&5
6615echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6616if eval "test \"\${$as_ac_Header+set}\" = set"; then
6617  echo $ECHO_N "(cached) $ECHO_C" >&6
6618fi
6619echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6620echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6621else
6622  # Is the header compilable?
6623echo "$as_me:$LINENO: checking $ac_header usability" >&5
6624echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6625cat >conftest.$ac_ext <<_ACEOF
6626/* confdefs.h.  */
6627_ACEOF
6628cat confdefs.h >>conftest.$ac_ext
6629cat >>conftest.$ac_ext <<_ACEOF
6630/* end confdefs.h.  */
6631$ac_includes_default
6632#include <$ac_header>
6633_ACEOF
6634rm -f conftest.$ac_objext
6635if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6636  (eval $ac_compile) 2>conftest.er1
6637  ac_status=$?
6638  grep -v '^ *+' conftest.er1 >conftest.err
6639  rm -f conftest.er1
6640  cat conftest.err >&5
6641  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642  (exit $ac_status); } &&
6643         { ac_try='test -z "$ac_c_werror_flag"
6644                         || test ! -s conftest.err'
6645  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6646  (eval $ac_try) 2>&5
6647  ac_status=$?
6648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649  (exit $ac_status); }; } &&
6650         { ac_try='test -s conftest.$ac_objext'
6651  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6652  (eval $ac_try) 2>&5
6653  ac_status=$?
6654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655  (exit $ac_status); }; }; then
6656  ac_header_compiler=yes
6657else
6658  echo "$as_me: failed program was:" >&5
6659sed 's/^/| /' conftest.$ac_ext >&5
6660
6661ac_header_compiler=no
6662fi
6663rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6664echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6665echo "${ECHO_T}$ac_header_compiler" >&6
6666
6667# Is the header present?
6668echo "$as_me:$LINENO: checking $ac_header presence" >&5
6669echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6670cat >conftest.$ac_ext <<_ACEOF
6671/* confdefs.h.  */
6672_ACEOF
6673cat confdefs.h >>conftest.$ac_ext
6674cat >>conftest.$ac_ext <<_ACEOF
6675/* end confdefs.h.  */
6676#include <$ac_header>
6677_ACEOF
6678if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6679  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6680  ac_status=$?
6681  grep -v '^ *+' conftest.er1 >conftest.err
6682  rm -f conftest.er1
6683  cat conftest.err >&5
6684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685  (exit $ac_status); } >/dev/null; then
6686  if test -s conftest.err; then
6687    ac_cpp_err=$ac_c_preproc_warn_flag
6688    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6689  else
6690    ac_cpp_err=
6691  fi
6692else
6693  ac_cpp_err=yes
6694fi
6695if test -z "$ac_cpp_err"; then
6696  ac_header_preproc=yes
6697else
6698  echo "$as_me: failed program was:" >&5
6699sed 's/^/| /' conftest.$ac_ext >&5
6700
6701  ac_header_preproc=no
6702fi
6703rm -f conftest.err conftest.$ac_ext
6704echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6705echo "${ECHO_T}$ac_header_preproc" >&6
6706
6707# So?  What about this header?
6708case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6709  yes:no: )
6710    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6711echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6712    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6713echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6714    ac_header_preproc=yes
6715    ;;
6716  no:yes:* )
6717    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6718echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6719    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6720echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6721    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6722echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6723    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6724echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6725    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6726echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6727    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6728echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6729    (
6730      cat <<\_ASBOX
6731## ------------------------------------ ##
6732## Report this to cbc@lists.coin-or.org ##
6733## ------------------------------------ ##
6734_ASBOX
6735    ) |
6736      sed "s/^/$as_me: WARNING:     /" >&2
6737    ;;
6738esac
6739echo "$as_me:$LINENO: checking for $ac_header" >&5
6740echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6741if eval "test \"\${$as_ac_Header+set}\" = set"; then
6742  echo $ECHO_N "(cached) $ECHO_C" >&6
6743else
6744  eval "$as_ac_Header=\$ac_header_preproc"
6745fi
6746echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6747echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6748
6749fi
6750if test `eval echo '${'$as_ac_Header'}'` = yes; then
6751  cat >>confdefs.h <<_ACEOF
6752#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6753_ACEOF
6754
6755fi
6756
6757done
6758
6759
6760
6761if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6762    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6763    (test "X$CXX" != "Xg++"))) ; then
6764  ac_ext=cc
6765ac_cpp='$CXXCPP $CPPFLAGS'
6766ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6767ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6768ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6769echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6770echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6771if test -z "$CXXCPP"; then
6772  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6773  echo $ECHO_N "(cached) $ECHO_C" >&6
6774else
6775      # Double quotes because CXXCPP needs to be expanded
6776    for CXXCPP in "$CXX -E" "/lib/cpp"
6777    do
6778      ac_preproc_ok=false
6779for ac_cxx_preproc_warn_flag in '' yes
6780do
6781  # Use a header file that comes with gcc, so configuring glibc
6782  # with a fresh cross-compiler works.
6783  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6784  # <limits.h> exists even on freestanding compilers.
6785  # On the NeXT, cc -E runs the code through the compiler's parser,
6786  # not just through cpp. "Syntax error" is here to catch this case.
6787  cat >conftest.$ac_ext <<_ACEOF
6788/* confdefs.h.  */
6789_ACEOF
6790cat confdefs.h >>conftest.$ac_ext
6791cat >>conftest.$ac_ext <<_ACEOF
6792/* end confdefs.h.  */
6793#ifdef __STDC__
6794# include <limits.h>
6795#else
6796# include <assert.h>
6797#endif
6798                     Syntax error
6799_ACEOF
6800if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6801  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6802  ac_status=$?
6803  grep -v '^ *+' conftest.er1 >conftest.err
6804  rm -f conftest.er1
6805  cat conftest.err >&5
6806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6807  (exit $ac_status); } >/dev/null; then
6808  if test -s conftest.err; then
6809    ac_cpp_err=$ac_cxx_preproc_warn_flag
6810    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6811  else
6812    ac_cpp_err=
6813  fi
6814else
6815  ac_cpp_err=yes
6816fi
6817if test -z "$ac_cpp_err"; then
6818  :
6819else
6820  echo "$as_me: failed program was:" >&5
6821sed 's/^/| /' conftest.$ac_ext >&5
6822
6823  # Broken: fails on valid input.
6824continue
6825fi
6826rm -f conftest.err conftest.$ac_ext
6827
6828  # OK, works on sane cases.  Now check whether non-existent headers
6829  # can be detected and how.
6830  cat >conftest.$ac_ext <<_ACEOF
6831/* confdefs.h.  */
6832_ACEOF
6833cat confdefs.h >>conftest.$ac_ext
6834cat >>conftest.$ac_ext <<_ACEOF
6835/* end confdefs.h.  */
6836#include <ac_nonexistent.h>
6837_ACEOF
6838if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6839  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6840  ac_status=$?
6841  grep -v '^ *+' conftest.er1 >conftest.err
6842  rm -f conftest.er1
6843  cat conftest.err >&5
6844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6845  (exit $ac_status); } >/dev/null; then
6846  if test -s conftest.err; then
6847    ac_cpp_err=$ac_cxx_preproc_warn_flag
6848    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6849  else
6850    ac_cpp_err=
6851  fi
6852else
6853  ac_cpp_err=yes
6854fi
6855if test -z "$ac_cpp_err"; then
6856  # Broken: success on invalid input.
6857continue
6858else
6859  echo "$as_me: failed program was:" >&5
6860sed 's/^/| /' conftest.$ac_ext >&5
6861
6862  # Passes both tests.
6863ac_preproc_ok=:
6864break
6865fi
6866rm -f conftest.err conftest.$ac_ext
6867
6868done
6869# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6870rm -f conftest.err conftest.$ac_ext
6871if $ac_preproc_ok; then
6872  break
6873fi
6874
6875    done
6876    ac_cv_prog_CXXCPP=$CXXCPP
6877
6878fi
6879  CXXCPP=$ac_cv_prog_CXXCPP
6880else
6881  ac_cv_prog_CXXCPP=$CXXCPP
6882fi
6883echo "$as_me:$LINENO: result: $CXXCPP" >&5
6884echo "${ECHO_T}$CXXCPP" >&6
6885ac_preproc_ok=false
6886for ac_cxx_preproc_warn_flag in '' yes
6887do
6888  # Use a header file that comes with gcc, so configuring glibc
6889  # with a fresh cross-compiler works.
6890  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6891  # <limits.h> exists even on freestanding compilers.
6892  # On the NeXT, cc -E runs the code through the compiler's parser,
6893  # not just through cpp. "Syntax error" is here to catch this case.
6894  cat >conftest.$ac_ext <<_ACEOF
6895/* confdefs.h.  */
6896_ACEOF
6897cat confdefs.h >>conftest.$ac_ext
6898cat >>conftest.$ac_ext <<_ACEOF
6899/* end confdefs.h.  */
6900#ifdef __STDC__
6901# include <limits.h>
6902#else
6903# include <assert.h>
6904#endif
6905                     Syntax error
6906_ACEOF
6907if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6908  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6909  ac_status=$?
6910  grep -v '^ *+' conftest.er1 >conftest.err
6911  rm -f conftest.er1
6912  cat conftest.err >&5
6913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6914  (exit $ac_status); } >/dev/null; then
6915  if test -s conftest.err; then
6916    ac_cpp_err=$ac_cxx_preproc_warn_flag
6917    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6918  else
6919    ac_cpp_err=
6920  fi
6921else
6922  ac_cpp_err=yes
6923fi
6924if test -z "$ac_cpp_err"; then
6925  :
6926else
6927  echo "$as_me: failed program was:" >&5
6928sed 's/^/| /' conftest.$ac_ext >&5
6929
6930  # Broken: fails on valid input.
6931continue
6932fi
6933rm -f conftest.err conftest.$ac_ext
6934
6935  # OK, works on sane cases.  Now check whether non-existent headers
6936  # can be detected and how.
6937  cat >conftest.$ac_ext <<_ACEOF
6938/* confdefs.h.  */
6939_ACEOF
6940cat confdefs.h >>conftest.$ac_ext
6941cat >>conftest.$ac_ext <<_ACEOF
6942/* end confdefs.h.  */
6943#include <ac_nonexistent.h>
6944_ACEOF
6945if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6946  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6947  ac_status=$?
6948  grep -v '^ *+' conftest.er1 >conftest.err
6949  rm -f conftest.er1
6950  cat conftest.err >&5
6951  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6952  (exit $ac_status); } >/dev/null; then
6953  if test -s conftest.err; then
6954    ac_cpp_err=$ac_cxx_preproc_warn_flag
6955    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6956  else
6957    ac_cpp_err=
6958  fi
6959else
6960  ac_cpp_err=yes
6961fi
6962if test -z "$ac_cpp_err"; then
6963  # Broken: success on invalid input.
6964continue
6965else
6966  echo "$as_me: failed program was:" >&5
6967sed 's/^/| /' conftest.$ac_ext >&5
6968
6969  # Passes both tests.
6970ac_preproc_ok=:
6971break
6972fi
6973rm -f conftest.err conftest.$ac_ext
6974
6975done
6976# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6977rm -f conftest.err conftest.$ac_ext
6978if $ac_preproc_ok; then
6979  :
6980else
6981  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6982See \`config.log' for more details." >&5
6983echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6984See \`config.log' for more details." >&2;}
6985   { (exit 1); exit 1; }; }
6986fi
6987
6988ac_ext=cc
6989ac_cpp='$CXXCPP $CPPFLAGS'
6990ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6991ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6992ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6993
6994fi
6995
6996ac_ext=f
6997ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6998ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6999ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7000if test -n "$ac_tool_prefix"; then
7001  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7002  do
7003    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7004set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7005echo "$as_me:$LINENO: checking for $ac_word" >&5
7006echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7007if test "${ac_cv_prog_F77+set}" = set; then
7008  echo $ECHO_N "(cached) $ECHO_C" >&6
7009else
7010  if test -n "$F77"; then
7011  ac_cv_prog_F77="$F77" # Let the user override the test.
7012else
7013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7014for as_dir in $PATH
7015do
7016  IFS=$as_save_IFS
7017  test -z "$as_dir" && as_dir=.
7018  for ac_exec_ext in '' $ac_executable_extensions; do
7019  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7020    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7021    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7022    break 2
7023  fi
7024done
7025done
7026
7027fi
7028fi
7029F77=$ac_cv_prog_F77
7030if test -n "$F77"; then
7031  echo "$as_me:$LINENO: result: $F77" >&5
7032echo "${ECHO_T}$F77" >&6
7033else
7034  echo "$as_me:$LINENO: result: no" >&5
7035echo "${ECHO_T}no" >&6
7036fi
7037
7038    test -n "$F77" && break
7039  done
7040fi
7041if test -z "$F77"; then
7042  ac_ct_F77=$F77
7043  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7044do
7045  # Extract the first word of "$ac_prog", so it can be a program name with args.
7046set dummy $ac_prog; ac_word=$2
7047echo "$as_me:$LINENO: checking for $ac_word" >&5
7048echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7049if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7050  echo $ECHO_N "(cached) $ECHO_C" >&6
7051else
7052  if test -n "$ac_ct_F77"; then
7053  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7054else
7055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7056for as_dir in $PATH
7057do
7058  IFS=$as_save_IFS
7059  test -z "$as_dir" && as_dir=.
7060  for ac_exec_ext in '' $ac_executable_extensions; do
7061  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7062    ac_cv_prog_ac_ct_F77="$ac_prog"
7063    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7064    break 2
7065  fi
7066done
7067done
7068
7069fi
7070fi
7071ac_ct_F77=$ac_cv_prog_ac_ct_F77
7072if test -n "$ac_ct_F77"; then
7073  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7074echo "${ECHO_T}$ac_ct_F77" >&6
7075else
7076  echo "$as_me:$LINENO: result: no" >&5
7077echo "${ECHO_T}no" >&6
7078fi
7079
7080  test -n "$ac_ct_F77" && break
7081done
7082
7083  F77=$ac_ct_F77
7084fi
7085
7086
7087# Provide some information about the compiler.
7088echo "$as_me:7088:" \
7089     "checking for Fortran 77 compiler version" >&5
7090ac_compiler=`set X $ac_compile; echo $2`
7091{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7092  (eval $ac_compiler --version </dev/null >&5) 2>&5
7093  ac_status=$?
7094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7095  (exit $ac_status); }
7096{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7097  (eval $ac_compiler -v </dev/null >&5) 2>&5
7098  ac_status=$?
7099  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7100  (exit $ac_status); }
7101{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7102  (eval $ac_compiler -V </dev/null >&5) 2>&5
7103  ac_status=$?
7104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7105  (exit $ac_status); }
7106rm -f a.out
7107
7108# If we don't use `.F' as extension, the preprocessor is not run on the
7109# input file.  (Note that this only needs to work for GNU compilers.)
7110ac_save_ext=$ac_ext
7111ac_ext=F
7112echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7113echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
7114if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7115  echo $ECHO_N "(cached) $ECHO_C" >&6
7116else
7117  cat >conftest.$ac_ext <<_ACEOF
7118      program main
7119#ifndef __GNUC__
7120       choke me
7121#endif
7122
7123      end
7124_ACEOF
7125rm -f conftest.$ac_objext
7126if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7127  (eval $ac_compile) 2>conftest.er1
7128  ac_status=$?
7129  grep -v '^ *+' conftest.er1 >conftest.err
7130  rm -f conftest.er1
7131  cat conftest.err >&5
7132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133  (exit $ac_status); } &&
7134         { ac_try='test -z "$ac_f77_werror_flag"
7135                         || test ! -s conftest.err'
7136  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7137  (eval $ac_try) 2>&5
7138  ac_status=$?
7139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7140  (exit $ac_status); }; } &&
7141         { ac_try='test -s conftest.$ac_objext'
7142  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7143  (eval $ac_try) 2>&5
7144  ac_status=$?
7145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7146  (exit $ac_status); }; }; then
7147  ac_compiler_gnu=yes
7148else
7149  echo "$as_me: failed program was:" >&5
7150sed 's/^/| /' conftest.$ac_ext >&5
7151
7152ac_compiler_gnu=no
7153fi
7154rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7155ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7156
7157fi
7158echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7159echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7160ac_ext=$ac_save_ext
7161ac_test_FFLAGS=${FFLAGS+set}
7162ac_save_FFLAGS=$FFLAGS
7163FFLAGS=
7164echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7165echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7166if test "${ac_cv_prog_f77_g+set}" = set; then
7167  echo $ECHO_N "(cached) $ECHO_C" >&6
7168else
7169  FFLAGS=-g
7170cat >conftest.$ac_ext <<_ACEOF
7171      program main
7172
7173      end
7174_ACEOF
7175rm -f conftest.$ac_objext
7176if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7177  (eval $ac_compile) 2>conftest.er1
7178  ac_status=$?
7179  grep -v '^ *+' conftest.er1 >conftest.err
7180  rm -f conftest.er1
7181  cat conftest.err >&5
7182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7183  (exit $ac_status); } &&
7184         { ac_try='test -z "$ac_f77_werror_flag"
7185                         || test ! -s conftest.err'
7186  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7187  (eval $ac_try) 2>&5
7188  ac_status=$?
7189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7190  (exit $ac_status); }; } &&
7191         { ac_try='test -s conftest.$ac_objext'
7192  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7193  (eval $ac_try) 2>&5
7194  ac_status=$?
7195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196  (exit $ac_status); }; }; then
7197  ac_cv_prog_f77_g=yes
7198else
7199  echo "$as_me: failed program was:" >&5
7200sed 's/^/| /' conftest.$ac_ext >&5
7201
7202ac_cv_prog_f77_g=no
7203fi
7204rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7205
7206fi
7207echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7208echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7209if test "$ac_test_FFLAGS" = set; then
7210  FFLAGS=$ac_save_FFLAGS
7211elif test $ac_cv_prog_f77_g = yes; then
7212  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7213    FFLAGS="-g -O2"
7214  else
7215    FFLAGS="-g"
7216  fi
7217else
7218  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7219    FFLAGS="-O2"
7220  else
7221    FFLAGS=
7222  fi
7223fi
7224
7225G77=`test $ac_compiler_gnu = yes && echo yes`
7226ac_ext=c
7227ac_cpp='$CPP $CPPFLAGS'
7228ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7229ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7230ac_compiler_gnu=$ac_cv_c_compiler_gnu
7231
7232
7233
7234# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7235
7236# find the maximum length of command line arguments
7237echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7238echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7239if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7240  echo $ECHO_N "(cached) $ECHO_C" >&6
7241else
7242    i=0
7243  teststring="ABCD"
7244
7245  case $build_os in
7246  msdosdjgpp*)
7247    # On DJGPP, this test can blow up pretty badly due to problems in libc
7248    # (any single argument exceeding 2000 bytes causes a buffer overrun
7249    # during glob expansion).  Even if it were fixed, the result of this
7250    # check would be larger than it should be.
7251    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7252    ;;
7253
7254  gnu*)
7255    # Under GNU Hurd, this test is not required because there is
7256    # no limit to the length of command line arguments.
7257    # Libtool will interpret -1 as no limit whatsoever
7258    lt_cv_sys_max_cmd_len=-1;
7259    ;;
7260
7261  cygwin* | mingw*)
7262    # On Win9x/ME, this test blows up -- it succeeds, but takes
7263    # about 5 minutes as the teststring grows exponentially.
7264    # Worse, since 9x/ME are not pre-emptively multitasking,
7265    # you end up with a "frozen" computer, even though with patience
7266    # the test eventually succeeds (with a max line length of 256k).
7267    # Instead, let's just punt: use the minimum linelength reported by
7268    # all of the supported platforms: 8192 (on NT/2K/XP).
7269    lt_cv_sys_max_cmd_len=8192;
7270    ;;
7271
7272  amigaos*)
7273    # On AmigaOS with pdksh, this test takes hours, literally.
7274    # So we just punt and use a minimum line length of 8192.
7275    lt_cv_sys_max_cmd_len=8192;
7276    ;;
7277
7278  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7279    # This has been around since 386BSD, at least.  Likely further.
7280    if test -x /sbin/sysctl; then
7281      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7282    elif test -x /usr/sbin/sysctl; then
7283      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7284    else
7285      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7286    fi
7287    # And add a safety zone
7288    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7289    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7290    ;;
7291
7292  interix*)
7293    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7294    lt_cv_sys_max_cmd_len=196608
7295    ;;
7296
7297  osf*)
7298    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7299    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7300    # nice to cause kernel panics so lets avoid the loop below.
7301    # First set a reasonable default.
7302    lt_cv_sys_max_cmd_len=16384
7303    #
7304    if test -x /sbin/sysconfig; then
7305      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7306        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7307      esac
7308    fi
7309    ;;
7310  sco3.2v5*)
7311    lt_cv_sys_max_cmd_len=102400
7312    ;;
7313  sysv5* | sco5v6* | sysv4.2uw2*)
7314    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7315    if test -n "$kargmax"; then
7316      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7317    else
7318      lt_cv_sys_max_cmd_len=32768
7319    fi
7320    ;;
7321  *)
7322    # If test is not a shell built-in, we'll probably end up computing a
7323    # maximum length that is only half of the actual maximum length, but
7324    # we can't tell.
7325    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7326    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7327               = "XX$teststring") >/dev/null 2>&1 &&
7328            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7329            lt_cv_sys_max_cmd_len=$new_result &&
7330            test $i != 17 # 1/2 MB should be enough
7331    do
7332      i=`expr $i + 1`
7333      teststring=$teststring$teststring
7334    done
7335    teststring=
7336    # Add a significant safety factor because C++ compilers can tack on massive
7337    # amounts of additional arguments before passing them to the linker.
7338    # It appears as though 1/2 is a usable value.
7339    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7340    ;;
7341  esac
7342
7343fi
7344
7345if test -n $lt_cv_sys_max_cmd_len ; then
7346  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7347echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7348else
7349  echo "$as_me:$LINENO: result: none" >&5
7350echo "${ECHO_T}none" >&6
7351fi
7352
7353
7354
7355
7356# Check for command to grab the raw symbol name followed by C symbol from nm.
7357echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7358echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7359if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7360  echo $ECHO_N "(cached) $ECHO_C" >&6
7361else
7362
7363# These are sane defaults that work on at least a few old systems.
7364# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7365
7366# Character class describing NM global symbol codes.
7367symcode='[BCDEGRST]'
7368
7369# Regexp to match symbols that can be accessed directly from C.
7370sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7371
7372# Transform an extracted symbol line into a proper C declaration
7373lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7374
7375# Transform an extracted symbol line into symbol name and symbol address
7376lt_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'"
7377
7378# Define system-specific variables.
7379case $host_os in
7380aix*)
7381  symcode='[BCDT]'
7382  ;;
7383cygwin* | mingw* | pw32*)
7384  symcode='[ABCDGISTW]'
7385  ;;
7386hpux*) # Its linker distinguishes data from code symbols
7387  if test "$host_cpu" = ia64; then
7388    symcode='[ABCDEGRST]'
7389  fi
7390  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7391  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'"
7392  ;;
7393linux*)
7394  if test "$host_cpu" = ia64; then
7395    symcode='[ABCDGIRSTW]'
7396    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7397    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'"
7398  fi
7399  ;;
7400irix* | nonstopux*)
7401  symcode='[BCDEGRST]'
7402  ;;
7403osf*)
7404  symcode='[BCDEGQRST]'
7405  ;;
7406solaris*)
7407  symcode='[BDRT]'
7408  ;;
7409sco3.2v5*)
7410  symcode='[DT]'
7411  ;;
7412sysv4.2uw2*)
7413  symcode='[DT]'
7414  ;;
7415sysv5* | sco5v6* | unixware* | OpenUNIX*)
7416  symcode='[ABDT]'
7417  ;;
7418sysv4)
7419  symcode='[DFNSTU]'
7420  ;;
7421esac
7422
7423# Handle CRLF in mingw tool chain
7424opt_cr=
7425case $build_os in
7426mingw*)
7427  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7428  ;;
7429esac
7430
7431# If we're using GNU nm, then use its standard symbol codes.
7432case `$NM -V 2>&1` in
7433*GNU* | *'with BFD'*)
7434  symcode='[ABCDGIRSTW]' ;;
7435esac
7436
7437# Try without a prefix undercore, then with it.
7438for ac_symprfx in "" "_"; do
7439
7440  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7441  symxfrm="\\1 $ac_symprfx\\2 \\2"
7442
7443  # Write the raw and C identifiers.
7444  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7445
7446  # Check to see that the pipe works correctly.
7447  pipe_works=no
7448
7449  rm -f conftest*
7450  cat > conftest.$ac_ext <<EOF
7451#ifdef __cplusplus
7452extern "C" {
7453#endif
7454char nm_test_var;
7455void nm_test_func(){}
7456#ifdef __cplusplus
7457}
7458#endif
7459int main(){nm_test_var='a';nm_test_func();return(0);}
7460EOF
7461
7462  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7463  (eval $ac_compile) 2>&5
7464  ac_status=$?
7465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7466  (exit $ac_status); }; then
7467    # Now try to grab the symbols.
7468    nlist=conftest.nm
7469    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7470  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7471  ac_status=$?
7472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7473  (exit $ac_status); } && test -s "$nlist"; then
7474      # Try sorting and uniquifying the output.
7475      if sort "$nlist" | uniq > "$nlist"T; then
7476        mv -f "$nlist"T "$nlist"
7477      else
7478        rm -f "$nlist"T
7479      fi
7480
7481      # Make sure that we snagged all the symbols we need.
7482      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7483        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7484          cat <<EOF > conftest.$ac_ext
7485#ifdef __cplusplus
7486extern "C" {
7487#endif
7488
7489EOF
7490          # Now generate the symbol file.
7491          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7492
7493          cat <<EOF >> conftest.$ac_ext
7494#if defined (__STDC__) && __STDC__
7495# define lt_ptr_t void *
7496#else
7497# define lt_ptr_t char *
7498# define const
7499#endif
7500
7501/* The mapping between symbol names and symbols. */
7502const struct {
7503  const char *name;
7504  lt_ptr_t address;
7505}
7506lt_preloaded_symbols[] =
7507{
7508EOF
7509          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7510          cat <<\EOF >> conftest.$ac_ext
7511  {0, (lt_ptr_t) 0}
7512};
7513
7514#ifdef __cplusplus
7515}
7516#endif
7517EOF
7518          # Now try linking the two files.
7519          mv conftest.$ac_objext conftstm.$ac_objext
7520          lt_save_LIBS="$LIBS"
7521          lt_save_CFLAGS="$CFLAGS"
7522          LIBS="conftstm.$ac_objext"
7523          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7524          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7525  (eval $ac_link) 2>&5
7526  ac_status=$?
7527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7528  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7529            pipe_works=yes
7530          fi
7531          LIBS="$lt_save_LIBS"
7532          CFLAGS="$lt_save_CFLAGS"
7533        else
7534          echo "cannot find nm_test_func in $nlist" >&5
7535        fi
7536      else
7537        echo "cannot find nm_test_var in $nlist" >&5
7538      fi
7539    else
7540      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7541    fi
7542  else
7543    echo "$progname: failed program was:" >&5
7544    cat conftest.$ac_ext >&5
7545  fi
7546  rm -f conftest* conftst*
7547
7548  # Do not use the global_symbol_pipe unless it works.
7549  if test "$pipe_works" = yes; then
7550    break
7551  else
7552    lt_cv_sys_global_symbol_pipe=
7553  fi
7554done
7555
7556fi
7557
7558if test -z "$lt_cv_sys_global_symbol_pipe"; then
7559  lt_cv_sys_global_symbol_to_cdecl=
7560fi
7561if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7562  echo "$as_me:$LINENO: result: failed" >&5
7563echo "${ECHO_T}failed" >&6
7564else
7565  echo "$as_me:$LINENO: result: ok" >&5
7566echo "${ECHO_T}ok" >&6
7567fi
7568
7569echo "$as_me:$LINENO: checking for objdir" >&5
7570echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7571if test "${lt_cv_objdir+set}" = set; then
7572  echo $ECHO_N "(cached) $ECHO_C" >&6
7573else
7574  rm -f .libs 2>/dev/null
7575mkdir .libs 2>/dev/null
7576if test -d .libs; then
7577  lt_cv_objdir=.libs
7578else
7579  # MS-DOS does not allow filenames that begin with a dot.
7580  lt_cv_objdir=_libs
7581fi
7582rmdir .libs 2>/dev/null
7583fi
7584echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7585echo "${ECHO_T}$lt_cv_objdir" >&6
7586objdir=$lt_cv_objdir
7587
7588
7589
7590
7591
7592case $host_os in
7593aix3*)
7594  # AIX sometimes has problems with the GCC collect2 program.  For some
7595  # reason, if we set the COLLECT_NAMES environment variable, the problems
7596  # vanish in a puff of smoke.
7597  if test "X${COLLECT_NAMES+set}" != Xset; then
7598    COLLECT_NAMES=
7599    export COLLECT_NAMES
7600  fi
7601  ;;
7602esac
7603
7604# Sed substitution that helps us do robust quoting.  It backslashifies
7605# metacharacters that are still active within double-quoted strings.
7606Xsed='sed -e 1s/^X//'
7607sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7608
7609# Same as above, but do not quote variable references.
7610double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7611
7612# Sed substitution to delay expansion of an escaped shell variable in a
7613# double_quote_subst'ed string.
7614delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7615
7616# Sed substitution to avoid accidental globbing in evaled expressions
7617no_glob_subst='s/\*/\\\*/g'
7618
7619# Constants:
7620rm="rm -f"
7621
7622# Global variables:
7623default_ofile=libtool
7624can_build_shared=yes
7625
7626# All known linkers require a `.a' archive for static linking (except MSVC,
7627# which needs '.lib').
7628libext=a
7629ltmain="$ac_aux_dir/ltmain.sh"
7630ofile="$default_ofile"
7631with_gnu_ld="$lt_cv_prog_gnu_ld"
7632
7633if test -n "$ac_tool_prefix"; then
7634  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7635set dummy ${ac_tool_prefix}ar; ac_word=$2
7636echo "$as_me:$LINENO: checking for $ac_word" >&5
7637echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7638if test "${ac_cv_prog_AR+set}" = set; then
7639  echo $ECHO_N "(cached) $ECHO_C" >&6
7640else
7641  if test -n "$AR"; then
7642  ac_cv_prog_AR="$AR" # Let the user override the test.
7643else
7644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7645for as_dir in $PATH
7646do
7647  IFS=$as_save_IFS
7648  test -z "$as_dir" && as_dir=.
7649  for ac_exec_ext in '' $ac_executable_extensions; do
7650  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7651    ac_cv_prog_AR="${ac_tool_prefix}ar"
7652    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7653    break 2
7654  fi
7655done
7656done
7657
7658fi
7659fi
7660AR=$ac_cv_prog_AR
7661if test -n "$AR"; then
7662  echo "$as_me:$LINENO: result: $AR" >&5
7663echo "${ECHO_T}$AR" >&6
7664else
7665  echo "$as_me:$LINENO: result: no" >&5
7666echo "${ECHO_T}no" >&6
7667fi
7668
7669fi
7670if test -z "$ac_cv_prog_AR"; then
7671  ac_ct_AR=$AR
7672  # Extract the first word of "ar", so it can be a program name with args.
7673set dummy ar; ac_word=$2
7674echo "$as_me:$LINENO: checking for $ac_word" >&5
7675echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7676if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7677  echo $ECHO_N "(cached) $ECHO_C" >&6
7678else
7679  if test -n "$ac_ct_AR"; then
7680  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7681else
7682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7683for as_dir in $PATH
7684do
7685  IFS=$as_save_IFS
7686  test -z "$as_dir" && as_dir=.
7687  for ac_exec_ext in '' $ac_executable_extensions; do
7688  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7689    ac_cv_prog_ac_ct_AR="ar"
7690    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7691    break 2
7692  fi
7693done
7694done
7695
7696  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7697fi
7698fi
7699ac_ct_AR=$ac_cv_prog_ac_ct_AR
7700if test -n "$ac_ct_AR"; then
7701  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7702echo "${ECHO_T}$ac_ct_AR" >&6
7703else
7704  echo "$as_me:$LINENO: result: no" >&5
7705echo "${ECHO_T}no" >&6
7706fi
7707
7708  AR=$ac_ct_AR
7709else
7710  AR="$ac_cv_prog_AR"
7711fi
7712
7713if test -n "$ac_tool_prefix"; then
7714  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7715set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7716echo "$as_me:$LINENO: checking for $ac_word" >&5
7717echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7718if test "${ac_cv_prog_RANLIB+set}" = set; then
7719  echo $ECHO_N "(cached) $ECHO_C" >&6
7720else
7721  if test -n "$RANLIB"; then
7722  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7723else
7724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7725for as_dir in $PATH
7726do
7727  IFS=$as_save_IFS
7728  test -z "$as_dir" && as_dir=.
7729  for ac_exec_ext in '' $ac_executable_extensions; do
7730  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7731    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7732    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7733    break 2
7734  fi
7735done
7736done
7737
7738fi
7739fi
7740RANLIB=$ac_cv_prog_RANLIB
7741if test -n "$RANLIB"; then
7742  echo "$as_me:$LINENO: result: $RANLIB" >&5
7743echo "${ECHO_T}$RANLIB" >&6
7744else
7745  echo "$as_me:$LINENO: result: no" >&5
7746echo "${ECHO_T}no" >&6
7747fi
7748
7749fi
7750if test -z "$ac_cv_prog_RANLIB"; then
7751  ac_ct_RANLIB=$RANLIB
7752  # Extract the first word of "ranlib", so it can be a program name with args.
7753set dummy ranlib; ac_word=$2
7754echo "$as_me:$LINENO: checking for $ac_word" >&5
7755echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7756if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7757  echo $ECHO_N "(cached) $ECHO_C" >&6
7758else
7759  if test -n "$ac_ct_RANLIB"; then
7760  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7761else
7762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7763for as_dir in $PATH
7764do
7765  IFS=$as_save_IFS
7766  test -z "$as_dir" && as_dir=.
7767  for ac_exec_ext in '' $ac_executable_extensions; do
7768  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7769    ac_cv_prog_ac_ct_RANLIB="ranlib"
7770    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7771    break 2
7772  fi
7773done
7774done
7775
7776  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7777fi
7778fi
7779ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7780if test -n "$ac_ct_RANLIB"; then
7781  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7782echo "${ECHO_T}$ac_ct_RANLIB" >&6
7783else
7784  echo "$as_me:$LINENO: result: no" >&5
7785echo "${ECHO_T}no" >&6
7786fi
7787
7788  RANLIB=$ac_ct_RANLIB
7789else
7790  RANLIB="$ac_cv_prog_RANLIB"
7791fi
7792
7793if test -n "$ac_tool_prefix"; then
7794  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7795set dummy ${ac_tool_prefix}strip; ac_word=$2
7796echo "$as_me:$LINENO: checking for $ac_word" >&5
7797echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7798if test "${ac_cv_prog_STRIP+set}" = set; then
7799  echo $ECHO_N "(cached) $ECHO_C" >&6
7800else
7801  if test -n "$STRIP"; then
7802  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7803else
7804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7805for as_dir in $PATH
7806do
7807  IFS=$as_save_IFS
7808  test -z "$as_dir" && as_dir=.
7809  for ac_exec_ext in '' $ac_executable_extensions; do
7810  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7811    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7812    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7813    break 2
7814  fi
7815done
7816done
7817
7818fi
7819fi
7820STRIP=$ac_cv_prog_STRIP
7821if test -n "$STRIP"; then
7822  echo "$as_me:$LINENO: result: $STRIP" >&5
7823echo "${ECHO_T}$STRIP" >&6
7824else
7825  echo "$as_me:$LINENO: result: no" >&5
7826echo "${ECHO_T}no" >&6
7827fi
7828
7829fi
7830if test -z "$ac_cv_prog_STRIP"; then
7831  ac_ct_STRIP=$STRIP
7832  # Extract the first word of "strip", so it can be a program name with args.
7833set dummy strip; ac_word=$2
7834echo "$as_me:$LINENO: checking for $ac_word" >&5
7835echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7836if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7837  echo $ECHO_N "(cached) $ECHO_C" >&6
7838else
7839  if test -n "$ac_ct_STRIP"; then
7840  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7841else
7842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7843for as_dir in $PATH
7844do
7845  IFS=$as_save_IFS
7846  test -z "$as_dir" && as_dir=.
7847  for ac_exec_ext in '' $ac_executable_extensions; do
7848  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7849    ac_cv_prog_ac_ct_STRIP="strip"
7850    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7851    break 2
7852  fi
7853done
7854done
7855
7856  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7857fi
7858fi
7859ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7860if test -n "$ac_ct_STRIP"; then
7861  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7862echo "${ECHO_T}$ac_ct_STRIP" >&6
7863else
7864  echo "$as_me:$LINENO: result: no" >&5
7865echo "${ECHO_T}no" >&6
7866fi
7867
7868  STRIP=$ac_ct_STRIP
7869else
7870  STRIP="$ac_cv_prog_STRIP"
7871fi
7872
7873
7874old_CC="$CC"
7875old_CFLAGS="$CFLAGS"
7876
7877# Set sane defaults for various variables
7878test -z "$AR" && AR=ar
7879test -z "$AR_FLAGS" && AR_FLAGS=cru
7880test -z "$AS" && AS=as
7881test -z "$CC" && CC=cc
7882test -z "$LTCC" && LTCC=$CC
7883test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7884test -z "$DLLTOOL" && DLLTOOL=dlltool
7885test -z "$LD" && LD=ld
7886test -z "$LN_S" && LN_S="ln -s"
7887test -z "$MAGIC_CMD" && MAGIC_CMD=file
7888test -z "$NM" && NM=nm
7889test -z "$SED" && SED=sed
7890test -z "$OBJDUMP" && OBJDUMP=objdump
7891test -z "$RANLIB" && RANLIB=:
7892test -z "$STRIP" && STRIP=:
7893test -z "$ac_objext" && ac_objext=o
7894
7895# Determine commands to create old-style static archives.
7896old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7897old_postinstall_cmds='chmod 644 $oldlib'
7898old_postuninstall_cmds=
7899
7900if test -n "$RANLIB"; then
7901  case $host_os in
7902  openbsd*)
7903    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7904    ;;
7905  *)
7906    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7907    ;;
7908  esac
7909  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7910fi
7911
7912for cc_temp in $compiler""; do
7913  case $cc_temp in
7914    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7915    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7916    \-*) ;;
7917    *) break;;
7918  esac
7919done
7920cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7921
7922
7923# Only perform the check for file, if the check method requires it
7924case $deplibs_check_method in
7925file_magic*)
7926  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7927    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7928echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7929if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7930  echo $ECHO_N "(cached) $ECHO_C" >&6
7931else
7932  case $MAGIC_CMD in
7933[\\/*] |  ?:[\\/]*)
7934  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7935  ;;
7936*)
7937  lt_save_MAGIC_CMD="$MAGIC_CMD"
7938  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7939  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7940  for ac_dir in $ac_dummy; do
7941    IFS="$lt_save_ifs"
7942    test -z "$ac_dir" && ac_dir=.
7943    if test -f $ac_dir/${ac_tool_prefix}file; then
7944      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7945      if test -n "$file_magic_test_file"; then
7946        case $deplibs_check_method in
7947        "file_magic "*)
7948          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7949          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7950          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7951            $EGREP "$file_magic_regex" > /dev/null; then
7952            :
7953          else
7954            cat <<EOF 1>&2
7955
7956*** Warning: the command libtool uses to detect shared libraries,
7957*** $file_magic_cmd, produces output that libtool cannot recognize.
7958*** The result is that libtool may fail to recognize shared libraries
7959*** as such.  This will affect the creation of libtool libraries that
7960*** depend on shared libraries, but programs linked with such libtool
7961*** libraries will work regardless of this problem.  Nevertheless, you
7962*** may want to report the problem to your system manager and/or to
7963*** bug-libtool@gnu.org
7964
7965EOF
7966          fi ;;
7967        esac
7968      fi
7969      break
7970    fi
7971  done
7972  IFS="$lt_save_ifs"
7973  MAGIC_CMD="$lt_save_MAGIC_CMD"
7974  ;;
7975esac
7976fi
7977
7978MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7979if test -n "$MAGIC_CMD"; then
7980  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7981echo "${ECHO_T}$MAGIC_CMD" >&6
7982else
7983  echo "$as_me:$LINENO: result: no" >&5
7984echo "${ECHO_T}no" >&6
7985fi
7986
7987if test -z "$lt_cv_path_MAGIC_CMD"; then
7988  if test -n "$ac_tool_prefix"; then
7989    echo "$as_me:$LINENO: checking for file" >&5
7990echo $ECHO_N "checking for file... $ECHO_C" >&6
7991if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7992  echo $ECHO_N "(cached) $ECHO_C" >&6
7993else
7994  case $MAGIC_CMD in
7995[\\/*] |  ?:[\\/]*)
7996  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7997  ;;
7998*)
7999  lt_save_MAGIC_CMD="$MAGIC_CMD"
8000  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8001  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8002  for ac_dir in $ac_dummy; do
8003    IFS="$lt_save_ifs"
8004    test -z "$ac_dir" && ac_dir=.
8005    if test -f $ac_dir/file; then
8006      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8007      if test -n "$file_magic_test_file"; then
8008        case $deplibs_check_method in
8009        "file_magic "*)
8010          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8011          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8012          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8013            $EGREP "$file_magic_regex" > /dev/null; then
8014            :
8015          else
8016            cat <<EOF 1>&2
8017
8018*** Warning: the command libtool uses to detect shared libraries,
8019*** $file_magic_cmd, produces output that libtool cannot recognize.
8020*** The result is that libtool may fail to recognize shared libraries
8021*** as such.  This will affect the creation of libtool libraries that
8022*** depend on shared libraries, but programs linked with such libtool
8023*** libraries will work regardless of this problem.  Nevertheless, you
8024*** may want to report the problem to your system manager and/or to
8025*** bug-libtool@gnu.org
8026
8027EOF
8028          fi ;;
8029        esac
8030      fi
8031      break
8032    fi
8033  done
8034  IFS="$lt_save_ifs"
8035  MAGIC_CMD="$lt_save_MAGIC_CMD"
8036  ;;
8037esac
8038fi
8039
8040MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8041if test -n "$MAGIC_CMD"; then
8042  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8043echo "${ECHO_T}$MAGIC_CMD" >&6
8044else
8045  echo "$as_me:$LINENO: result: no" >&5
8046echo "${ECHO_T}no" >&6
8047fi
8048
8049  else
8050    MAGIC_CMD=:
8051  fi
8052fi
8053
8054  fi
8055  ;;
8056esac
8057
8058enable_dlopen=no
8059enable_win32_dll=no
8060
8061# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8062if test "${enable_libtool_lock+set}" = set; then
8063  enableval="$enable_libtool_lock"
8064
8065fi;
8066test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8067
8068
8069# Check whether --with-pic or --without-pic was given.
8070if test "${with_pic+set}" = set; then
8071  withval="$with_pic"
8072  pic_mode="$withval"
8073else
8074  pic_mode=default
8075fi;
8076test -z "$pic_mode" && pic_mode=default
8077
8078# Use C for the default configuration in the libtool script
8079tagname=
8080lt_save_CC="$CC"
8081ac_ext=c
8082ac_cpp='$CPP $CPPFLAGS'
8083ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8084ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8085ac_compiler_gnu=$ac_cv_c_compiler_gnu
8086
8087
8088# Source file extension for C test sources.
8089ac_ext=c
8090
8091# Object file extension for compiled C test sources.
8092objext=o
8093objext=$objext
8094
8095# Code to be used in simple compile tests
8096lt_simple_compile_test_code="int some_variable = 0;\n"
8097
8098# Code to be used in simple link tests
8099lt_simple_link_test_code='int main(){return(0);}\n'
8100
8101
8102# If no C compiler was specified, use CC.
8103LTCC=${LTCC-"$CC"}
8104
8105# If no C compiler flags were specified, use CFLAGS.
8106LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8107
8108# Allow CC to be a program name with arguments.
8109compiler=$CC
8110
8111
8112# save warnings/boilerplate of simple test code
8113ac_outfile=conftest.$ac_objext
8114printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8115eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8116_lt_compiler_boilerplate=`cat conftest.err`
8117$rm conftest*
8118
8119ac_outfile=conftest.$ac_objext
8120printf "$lt_simple_link_test_code" >conftest.$ac_ext
8121eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8122_lt_linker_boilerplate=`cat conftest.err`
8123$rm conftest*
8124
8125
8126## CAVEAT EMPTOR:
8127## There is no encapsulation within the following macros, do not change
8128## the running order or otherwise move them around unless you know exactly
8129## what you are doing...
8130
8131lt_prog_compiler_no_builtin_flag=
8132
8133if test "$GCC" = yes; then
8134  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8135
8136
8137echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8138echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8139if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8140  echo $ECHO_N "(cached) $ECHO_C" >&6
8141else
8142  lt_cv_prog_compiler_rtti_exceptions=no
8143  ac_outfile=conftest.$ac_objext
8144   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8145   lt_compiler_flag="-fno-rtti -fno-exceptions"
8146   # Insert the option either (1) after the last *FLAGS variable, or
8147   # (2) before a word containing "conftest.", or (3) at the end.
8148   # Note that $ac_compile itself does not contain backslashes and begins
8149   # with a dollar sign (not a hyphen), so the echo should work correctly.
8150   # The option is referenced via a variable to avoid confusing sed.
8151   lt_compile=`echo "$ac_compile" | $SED \
8152   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8153   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8154   -e 's:$: $lt_compiler_flag:'`
8155   (eval echo "\"\$as_me:8155: $lt_compile\"" >&5)
8156   (eval "$lt_compile" 2>conftest.err)
8157   ac_status=$?
8158   cat conftest.err >&5
8159   echo "$as_me:8159: \$? = $ac_status" >&5
8160   if (exit $ac_status) && test -s "$ac_outfile"; then
8161     # The compiler can only warn and ignore the option if not recognized
8162     # So say no if there are warnings other than the usual output.
8163     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8164     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8165     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8166       lt_cv_prog_compiler_rtti_exceptions=yes
8167     fi
8168   fi
8169   $rm conftest*
8170
8171fi
8172echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8173echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8174
8175if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8176    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8177else
8178    :
8179fi
8180
8181fi
8182
8183lt_prog_compiler_wl=
8184lt_prog_compiler_pic=
8185lt_prog_compiler_static=
8186
8187echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8188echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8189
8190  if test "$GCC" = yes; then
8191    lt_prog_compiler_wl='-Wl,'
8192    lt_prog_compiler_static='-static'
8193
8194    case $host_os in
8195      aix*)
8196      # All AIX code is PIC.
8197      if test "$host_cpu" = ia64; then
8198        # AIX 5 now supports IA64 processor
8199        lt_prog_compiler_static='-Bstatic'
8200      fi
8201      ;;
8202
8203    amigaos*)
8204      # FIXME: we need at least 68020 code to build shared libraries, but
8205      # adding the `-m68020' flag to GCC prevents building anything better,
8206      # like `-m68040'.
8207      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8208      ;;
8209
8210    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8211      # PIC is the default for these OSes.
8212      ;;
8213
8214    mingw* | pw32* | os2*)
8215      # This hack is so that the source file can tell whether it is being
8216      # built for inclusion in a dll (and should export symbols for example).
8217      lt_prog_compiler_pic='-DDLL_EXPORT'
8218      ;;
8219
8220    darwin* | rhapsody*)
8221      # PIC is the default on this platform
8222      # Common symbols not allowed in MH_DYLIB files
8223      lt_prog_compiler_pic='-fno-common'
8224      ;;
8225
8226    interix3*)
8227      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8228      # Instead, we relocate shared libraries at runtime.
8229      ;;
8230
8231    msdosdjgpp*)
8232      # Just because we use GCC doesn't mean we suddenly get shared libraries
8233      # on systems that don't support them.
8234      lt_prog_compiler_can_build_shared=no
8235      enable_shared=no
8236      ;;
8237
8238    sysv4*MP*)
8239      if test -d /usr/nec; then
8240        lt_prog_compiler_pic=-Kconform_pic
8241      fi
8242      ;;
8243
8244    hpux*)
8245      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8246      # not for PA HP-UX.
8247      case $host_cpu in
8248      hppa*64*|ia64*)
8249        # +Z the default
8250        ;;
8251      *)
8252        lt_prog_compiler_pic='-fPIC'
8253        ;;
8254      esac
8255      ;;
8256
8257    *)
8258      lt_prog_compiler_pic='-fPIC'
8259      ;;
8260    esac
8261  else
8262    # PORTME Check for flag to pass linker flags through the system compiler.
8263    case $host_os in
8264    aix*)
8265      lt_prog_compiler_wl='-Wl,'
8266      if test "$host_cpu" = ia64; then
8267        # AIX 5 now supports IA64 processor
8268        lt_prog_compiler_static='-Bstatic'
8269      else
8270        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8271      fi
8272      ;;
8273      darwin*)
8274        # PIC is the default on this platform
8275        # Common symbols not allowed in MH_DYLIB files
8276       case $cc_basename in
8277         xlc*)
8278         lt_prog_compiler_pic='-qnocommon'
8279         lt_prog_compiler_wl='-Wl,'
8280         ;;
8281       esac
8282       ;;
8283
8284    mingw* | pw32* | os2*)
8285      # This hack is so that the source file can tell whether it is being
8286      # built for inclusion in a dll (and should export symbols for example).
8287      lt_prog_compiler_pic='-DDLL_EXPORT'
8288      ;;
8289
8290    hpux9* | hpux10* | hpux11*)
8291      lt_prog_compiler_wl='-Wl,'
8292      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8293      # not for PA HP-UX.
8294      case $host_cpu in
8295      hppa*64*|ia64*)
8296        # +Z the default
8297        ;;
8298      *)
8299        lt_prog_compiler_pic='+Z'
8300        ;;
8301      esac
8302      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8303      lt_prog_compiler_static='${wl}-a ${wl}archive'
8304      ;;
8305
8306    irix5* | irix6* | nonstopux*)
8307      lt_prog_compiler_wl='-Wl,'
8308      # PIC (with -KPIC) is the default.
8309      lt_prog_compiler_static='-non_shared'
8310      ;;
8311
8312    newsos6)
8313      lt_prog_compiler_pic='-KPIC'
8314      lt_prog_compiler_static='-Bstatic'
8315      ;;
8316
8317    linux*)
8318      case $cc_basename in
8319      icc* | ecc*)
8320        lt_prog_compiler_wl='-Wl,'
8321        lt_prog_compiler_pic='-KPIC'
8322        lt_prog_compiler_static='-static'
8323        ;;
8324      pgcc* | pgf77* | pgf90* | pgf95*)
8325        # Portland Group compilers (*not* the Pentium gcc compiler,
8326        # which looks to be a dead project)
8327        lt_prog_compiler_wl='-Wl,'
8328        lt_prog_compiler_pic='-fpic'
8329        lt_prog_compiler_static='-Bstatic'
8330        ;;
8331      ccc*)
8332        lt_prog_compiler_wl='-Wl,'
8333        # All Alpha code is PIC.
8334        lt_prog_compiler_static='-non_shared'
8335        ;;
8336      esac
8337      ;;
8338
8339    osf3* | osf4* | osf5*)
8340      lt_prog_compiler_wl='-Wl,'
8341      # All OSF/1 code is PIC.
8342      lt_prog_compiler_static='-non_shared'
8343      ;;
8344
8345    solaris*)
8346      lt_prog_compiler_pic='-KPIC'
8347      lt_prog_compiler_static='-Bstatic'
8348      case $cc_basename in
8349      f77* | f90* | f95*)
8350        lt_prog_compiler_wl='-Qoption ld ';;
8351      *)
8352        lt_prog_compiler_wl='-Wl,';;
8353      esac
8354      ;;
8355
8356    sunos4*)
8357      lt_prog_compiler_wl='-Qoption ld '
8358      lt_prog_compiler_pic='-PIC'
8359      lt_prog_compiler_static='-Bstatic'
8360      ;;
8361
8362    sysv4 | sysv4.2uw2* | sysv4.3*)
8363      lt_prog_compiler_wl='-Wl,'
8364      lt_prog_compiler_pic='-KPIC'
8365      lt_prog_compiler_static='-Bstatic'
8366      ;;
8367
8368    sysv4*MP*)
8369      if test -d /usr/nec ;then
8370        lt_prog_compiler_pic='-Kconform_pic'
8371        lt_prog_compiler_static='-Bstatic'
8372      fi
8373      ;;
8374
8375    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8376      lt_prog_compiler_wl='-Wl,'
8377      lt_prog_compiler_pic='-KPIC'
8378      lt_prog_compiler_static='-Bstatic'
8379      ;;
8380
8381    unicos*)
8382      lt_prog_compiler_wl='-Wl,'
8383      lt_prog_compiler_can_build_shared=no
8384      ;;
8385
8386    uts4*)
8387      lt_prog_compiler_pic='-pic'
8388      lt_prog_compiler_static='-Bstatic'
8389      ;;
8390
8391    *)
8392      lt_prog_compiler_can_build_shared=no
8393      ;;
8394    esac
8395  fi
8396
8397echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8398echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8399
8400#
8401# Check to make sure the PIC flag actually works.
8402#
8403if test -n "$lt_prog_compiler_pic"; then
8404
8405echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8406echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8407if test "${lt_prog_compiler_pic_works+set}" = set; then
8408  echo $ECHO_N "(cached) $ECHO_C" >&6
8409else
8410  lt_prog_compiler_pic_works=no
8411  ac_outfile=conftest.$ac_objext
8412   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8413   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8414   # Insert the option either (1) after the last *FLAGS variable, or
8415   # (2) before a word containing "conftest.", or (3) at the end.
8416   # Note that $ac_compile itself does not contain backslashes and begins
8417   # with a dollar sign (not a hyphen), so the echo should work correctly.
8418   # The option is referenced via a variable to avoid confusing sed.
8419   lt_compile=`echo "$ac_compile" | $SED \
8420   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8421   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8422   -e 's:$: $lt_compiler_flag:'`
8423   (eval echo "\"\$as_me:8423: $lt_compile\"" >&5)
8424   (eval "$lt_compile" 2>conftest.err)
8425   ac_status=$?
8426   cat conftest.err >&5
8427   echo "$as_me:8427: \$? = $ac_status" >&5
8428   if (exit $ac_status) && test -s "$ac_outfile"; then
8429     # The compiler can only warn and ignore the option if not recognized
8430     # So say no if there are warnings other than the usual output.
8431     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8432     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8433     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8434       lt_prog_compiler_pic_works=yes
8435     fi
8436   fi
8437   $rm conftest*
8438
8439fi
8440echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8441echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8442
8443if test x"$lt_prog_compiler_pic_works" = xyes; then
8444    case $lt_prog_compiler_pic in
8445     "" | " "*) ;;
8446     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8447     esac
8448else
8449    lt_prog_compiler_pic=
8450     lt_prog_compiler_can_build_shared=no
8451fi
8452
8453fi
8454case $host_os in
8455  # For platforms which do not support PIC, -DPIC is meaningless:
8456  *djgpp*)
8457    lt_prog_compiler_pic=
8458    ;;
8459  *)
8460    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8461    ;;
8462esac
8463
8464#
8465# Check to make sure the static flag actually works.
8466#
8467wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8468echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8469echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8470if test "${lt_prog_compiler_static_works+set}" = set; then
8471  echo $ECHO_N "(cached) $ECHO_C" >&6
8472else
8473  lt_prog_compiler_static_works=no
8474   save_LDFLAGS="$LDFLAGS"
8475   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8476   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8477   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8478     # The linker can only warn and ignore the option if not recognized
8479     # So say no if there are warnings
8480     if test -s conftest.err; then
8481       # Append any errors to the config.log.
8482       cat conftest.err 1>&5
8483       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8484       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8485       if diff conftest.exp conftest.er2 >/dev/null; then
8486         lt_prog_compiler_static_works=yes
8487       fi
8488     else
8489       lt_prog_compiler_static_works=yes
8490     fi
8491   fi
8492   $rm conftest*
8493   LDFLAGS="$save_LDFLAGS"
8494
8495fi
8496echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8497echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8498
8499if test x"$lt_prog_compiler_static_works" = xyes; then
8500    :
8501else
8502    lt_prog_compiler_static=
8503fi
8504
8505
8506echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8507echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8508if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8509  echo $ECHO_N "(cached) $ECHO_C" >&6
8510else
8511  lt_cv_prog_compiler_c_o=no
8512   $rm -r conftest 2>/dev/null
8513   mkdir conftest
8514   cd conftest
8515   mkdir out
8516   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8517
8518   lt_compiler_flag="-o out/conftest2.$ac_objext"
8519   # Insert the option either (1) after the last *FLAGS variable, or
8520   # (2) before a word containing "conftest.", or (3) at the end.
8521   # Note that $ac_compile itself does not contain backslashes and begins
8522   # with a dollar sign (not a hyphen), so the echo should work correctly.
8523   lt_compile=`echo "$ac_compile" | $SED \
8524   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8525   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8526   -e 's:$: $lt_compiler_flag:'`
8527   (eval echo "\"\$as_me:8527: $lt_compile\"" >&5)
8528   (eval "$lt_compile" 2>out/conftest.err)
8529   ac_status=$?
8530   cat out/conftest.err >&5
8531   echo "$as_me:8531: \$? = $ac_status" >&5
8532   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8533   then
8534     # The compiler can only warn and ignore the option if not recognized
8535     # So say no if there are warnings
8536     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8537     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8538     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8539       lt_cv_prog_compiler_c_o=yes
8540     fi
8541   fi
8542   chmod u+w . 2>&5
8543   $rm conftest*
8544   # SGI C++ compiler will create directory out/ii_files/ for
8545   # template instantiation
8546   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8547   $rm out/* && rmdir out
8548   cd ..
8549   rmdir conftest
8550   $rm conftest*
8551
8552fi
8553echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8554echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8555
8556
8557hard_links="nottested"
8558if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8559  # do not overwrite the value of need_locks provided by the user
8560  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8561echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8562  hard_links=yes
8563  $rm conftest*
8564  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8565  touch conftest.a
8566  ln conftest.a conftest.b 2>&5 || hard_links=no
8567  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8568  echo "$as_me:$LINENO: result: $hard_links" >&5
8569echo "${ECHO_T}$hard_links" >&6
8570  if test "$hard_links" = no; then
8571    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8572echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8573    need_locks=warn
8574  fi
8575else
8576  need_locks=no
8577fi
8578
8579echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8580echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8581
8582  runpath_var=
8583  allow_undefined_flag=
8584  enable_shared_with_static_runtimes=no
8585  archive_cmds=
8586  archive_expsym_cmds=
8587  old_archive_From_new_cmds=
8588  old_archive_from_expsyms_cmds=
8589  export_dynamic_flag_spec=
8590  whole_archive_flag_spec=
8591  thread_safe_flag_spec=
8592  hardcode_libdir_flag_spec=
8593  hardcode_libdir_flag_spec_ld=
8594  hardcode_libdir_separator=
8595  hardcode_direct=no
8596  hardcode_minus_L=no
8597  hardcode_shlibpath_var=unsupported
8598  link_all_deplibs=unknown
8599  hardcode_automatic=no
8600  module_cmds=
8601  module_expsym_cmds=
8602  always_export_symbols=no
8603  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8604  # include_expsyms should be a list of space-separated symbols to be *always*
8605  # included in the symbol list
8606  include_expsyms=
8607  # exclude_expsyms can be an extended regexp of symbols to exclude
8608  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8609  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8610  # as well as any symbol that contains `d'.
8611  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8612  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8613  # platforms (ab)use it in PIC code, but their linkers get confused if
8614  # the symbol is explicitly referenced.  Since portable code cannot
8615  # rely on this symbol name, it's probably fine to never include it in
8616  # preloaded symbol tables.
8617  extract_expsyms_cmds=
8618  # Just being paranoid about ensuring that cc_basename is set.
8619  for cc_temp in $compiler""; do
8620  case $cc_temp in
8621    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8622    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8623    \-*) ;;
8624    *) break;;
8625  esac
8626done
8627cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8628
8629  case $host_os in
8630  cygwin* | mingw* | pw32*)
8631    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8632    # When not using gcc, we currently assume that we are using
8633    # Microsoft Visual C++.
8634    if test "$GCC" != yes; then
8635      with_gnu_ld=no
8636    fi
8637    ;;
8638  interix*)
8639    # we just hope/assume this is gcc and not c89 (= MSVC++)
8640    with_gnu_ld=yes
8641    ;;
8642  openbsd*)
8643    with_gnu_ld=no
8644    ;;
8645  esac
8646
8647  ld_shlibs=yes
8648  if test "$with_gnu_ld" = yes; then
8649    # If archive_cmds runs LD, not CC, wlarc should be empty
8650    wlarc='${wl}'
8651
8652    # Set some defaults for GNU ld with shared library support. These
8653    # are reset later if shared libraries are not supported. Putting them
8654    # here allows them to be overridden if necessary.
8655    runpath_var=LD_RUN_PATH
8656    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8657    export_dynamic_flag_spec='${wl}--export-dynamic'
8658    # ancient GNU ld didn't support --whole-archive et. al.
8659    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8660        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8661      else
8662        whole_archive_flag_spec=
8663    fi
8664    supports_anon_versioning=no
8665    case `$LD -v 2>/dev/null` in
8666      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8667      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8668      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8669      *\ 2.11.*) ;; # other 2.11 versions
8670      *) supports_anon_versioning=yes ;;
8671    esac
8672
8673    # See if GNU ld supports shared libraries.
8674    case $host_os in
8675    aix3* | aix4* | aix5*)
8676      # On AIX/PPC, the GNU linker is very broken
8677      if test "$host_cpu" != ia64; then
8678        ld_shlibs=no
8679        cat <<EOF 1>&2
8680
8681*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8682*** to be unable to reliably create shared libraries on AIX.
8683*** Therefore, libtool is disabling shared libraries support.  If you
8684*** really care for shared libraries, you may want to modify your PATH
8685*** so that a non-GNU linker is found, and then restart.
8686
8687EOF
8688      fi
8689      ;;
8690
8691    amigaos*)
8692      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)'
8693      hardcode_libdir_flag_spec='-L$libdir'
8694      hardcode_minus_L=yes
8695
8696      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8697      # that the semantics of dynamic libraries on AmigaOS, at least up
8698      # to version 4, is to share data among multiple programs linked
8699      # with the same dynamic library.  Since this doesn't match the
8700      # behavior of shared libraries on other platforms, we can't use
8701      # them.
8702      ld_shlibs=no
8703      ;;
8704
8705    beos*)
8706      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8707        allow_undefined_flag=unsupported
8708        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8709        # support --undefined.  This deserves some investigation.  FIXME
8710        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8711      else
8712        ld_shlibs=no
8713      fi
8714      ;;
8715
8716    cygwin* | mingw* | pw32*)
8717      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8718      # as there is no search path for DLLs.
8719      hardcode_libdir_flag_spec='-L$libdir'
8720      allow_undefined_flag=unsupported
8721      always_export_symbols=no
8722      enable_shared_with_static_runtimes=yes
8723      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8724
8725      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8726        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8727        # If the export-symbols file already is a .def file (1st line
8728        # is EXPORTS), use it as is; otherwise, prepend...
8729        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8730          cp $export_symbols $output_objdir/$soname.def;
8731        else
8732          echo EXPORTS > $output_objdir/$soname.def;
8733          cat $export_symbols >> $output_objdir/$soname.def;
8734        fi~
8735        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8736      else
8737        ld_shlibs=no
8738      fi
8739      ;;
8740
8741    interix3*)
8742      hardcode_direct=no
8743      hardcode_shlibpath_var=no
8744      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8745      export_dynamic_flag_spec='${wl}-E'
8746      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8747      # Instead, shared libraries are loaded at an image base (0x10000000 by
8748      # default) and relocated if they conflict, which is a slow very memory
8749      # consuming and fragmenting process.  To avoid this, we pick a random,
8750      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8751      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8752      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8753      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'
8754      ;;
8755
8756    linux*)
8757      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8758        tmp_addflag=
8759        case $cc_basename,$host_cpu in
8760        pgcc*)                          # Portland Group C compiler
8761          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'
8762          tmp_addflag=' $pic_flag'
8763          ;;
8764        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8765          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'
8766          tmp_addflag=' $pic_flag -Mnomain' ;;
8767        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8768          tmp_addflag=' -i_dynamic' ;;
8769        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8770          tmp_addflag=' -i_dynamic -nofor_main' ;;
8771        ifc* | ifort*)                  # Intel Fortran compiler
8772          tmp_addflag=' -nofor_main' ;;
8773        esac
8774        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8775
8776        if test $supports_anon_versioning = yes; then
8777          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8778  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8779  $echo "local: *; };" >> $output_objdir/$libname.ver~
8780          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8781        fi
8782      else
8783        ld_shlibs=no
8784      fi
8785      ;;
8786
8787    netbsd*)
8788      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8789        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8790        wlarc=
8791      else
8792        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8793        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8794      fi
8795      ;;
8796
8797    solaris*)
8798      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8799        ld_shlibs=no
8800        cat <<EOF 1>&2
8801
8802*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8803*** create shared libraries on Solaris systems.  Therefore, libtool
8804*** is disabling shared libraries support.  We urge you to upgrade GNU
8805*** binutils to release 2.9.1 or newer.  Another option is to modify
8806*** your PATH or compiler configuration so that the native linker is
8807*** used, and then restart.
8808
8809EOF
8810      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8811        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8812        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8813      else
8814        ld_shlibs=no
8815      fi
8816      ;;
8817
8818    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8819      case `$LD -v 2>&1` in
8820        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8821        ld_shlibs=no
8822        cat <<_LT_EOF 1>&2
8823
8824*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8825*** reliably create shared libraries on SCO systems.  Therefore, libtool
8826*** is disabling shared libraries support.  We urge you to upgrade GNU
8827*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8828*** your PATH or compiler configuration so that the native linker is
8829*** used, and then restart.
8830
8831_LT_EOF
8832        ;;
8833        *)
8834          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8835            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8836            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8837            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8838          else
8839            ld_shlibs=no
8840          fi
8841        ;;
8842      esac
8843      ;;
8844
8845    sunos4*)
8846      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8847      wlarc=
8848      hardcode_direct=yes
8849      hardcode_shlibpath_var=no
8850      ;;
8851
8852    *)
8853      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8854        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8855        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8856      else
8857        ld_shlibs=no
8858      fi
8859      ;;
8860    esac
8861
8862    if test "$ld_shlibs" = no; then
8863      runpath_var=
8864      hardcode_libdir_flag_spec=
8865      export_dynamic_flag_spec=
8866      whole_archive_flag_spec=
8867    fi
8868  else
8869    # PORTME fill in a description of your system's linker (not GNU ld)
8870    case $host_os in
8871    aix3*)
8872      allow_undefined_flag=unsupported
8873      always_export_symbols=yes
8874      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'
8875      # Note: this linker hardcodes the directories in LIBPATH if there
8876      # are no directories specified by -L.
8877      hardcode_minus_L=yes
8878      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8879        # Neither direct hardcoding nor static linking is supported with a
8880        # broken collect2.
8881        hardcode_direct=unsupported
8882      fi
8883      ;;
8884
8885    aix4* | aix5*)
8886      if test "$host_cpu" = ia64; then
8887        # On IA64, the linker does run time linking by default, so we don't
8888        # have to do anything special.
8889        aix_use_runtimelinking=no
8890        exp_sym_flag='-Bexport'
8891        no_entry_flag=""
8892      else
8893        # If we're using GNU nm, then we don't want the "-C" option.
8894        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8895        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8896          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'
8897        else
8898          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'
8899        fi
8900        aix_use_runtimelinking=no
8901
8902        # Test if we are trying to use run time linking or normal
8903        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8904        # need to do runtime linking.
8905        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8906          for ld_flag in $LDFLAGS; do
8907          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8908            aix_use_runtimelinking=yes
8909            break
8910          fi
8911          done
8912          ;;
8913        esac
8914
8915        exp_sym_flag='-bexport'
8916        no_entry_flag='-bnoentry'
8917      fi
8918
8919      # When large executables or shared objects are built, AIX ld can
8920      # have problems creating the table of contents.  If linking a library
8921      # or program results in "error TOC overflow" add -mminimal-toc to
8922      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8923      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8924
8925      archive_cmds=''
8926      hardcode_direct=yes
8927      hardcode_libdir_separator=':'
8928      link_all_deplibs=yes
8929
8930      if test "$GCC" = yes; then
8931        case $host_os in aix4.[012]|aix4.[012].*)
8932        # We only want to do this on AIX 4.2 and lower, the check
8933        # below for broken collect2 doesn't work under 4.3+
8934          collect2name=`${CC} -print-prog-name=collect2`
8935          if test -f "$collect2name" && \
8936           strings "$collect2name" | grep resolve_lib_name >/dev/null
8937          then
8938          # We have reworked collect2
8939          hardcode_direct=yes
8940          else
8941          # We have old collect2
8942          hardcode_direct=unsupported
8943          # It fails to find uninstalled libraries when the uninstalled
8944          # path is not listed in the libpath.  Setting hardcode_minus_L
8945          # to unsupported forces relinking
8946          hardcode_minus_L=yes
8947          hardcode_libdir_flag_spec='-L$libdir'
8948          hardcode_libdir_separator=
8949          fi
8950          ;;
8951        esac
8952        shared_flag='-shared'
8953        if test "$aix_use_runtimelinking" = yes; then
8954          shared_flag="$shared_flag "'${wl}-G'
8955        fi
8956      else
8957        # not using gcc
8958        if test "$host_cpu" = ia64; then
8959        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8960        # chokes on -Wl,-G. The following line is correct:
8961          shared_flag='-G'
8962        else
8963          if test "$aix_use_runtimelinking" = yes; then
8964            shared_flag='${wl}-G'
8965          else
8966            shared_flag='${wl}-bM:SRE'
8967          fi
8968        fi
8969      fi
8970
8971      # It seems that -bexpall does not export symbols beginning with
8972      # underscore (_), so it is better to generate a list of symbols to export.
8973      always_export_symbols=yes
8974      if test "$aix_use_runtimelinking" = yes; then
8975        # Warning - without using the other runtime loading flags (-brtl),
8976        # -berok will link without error, but may produce a broken library.
8977        allow_undefined_flag='-berok'
8978       # Determine the default libpath from the value encoded in an empty executable.
8979       cat >conftest.$ac_ext <<_ACEOF
8980/* confdefs.h.  */
8981_ACEOF
8982cat confdefs.h >>conftest.$ac_ext
8983cat >>conftest.$ac_ext <<_ACEOF
8984/* end confdefs.h.  */
8985
8986int
8987main ()
8988{
8989
8990  ;
8991  return 0;
8992}
8993_ACEOF
8994rm -f conftest.$ac_objext conftest$ac_exeext
8995if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8996  (eval $ac_link) 2>conftest.er1
8997  ac_status=$?
8998  grep -v '^ *+' conftest.er1 >conftest.err
8999  rm -f conftest.er1
9000  cat conftest.err >&5
9001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002  (exit $ac_status); } &&
9003         { ac_try='test -z "$ac_c_werror_flag"
9004                         || test ! -s conftest.err'
9005  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9006  (eval $ac_try) 2>&5
9007  ac_status=$?
9008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9009  (exit $ac_status); }; } &&
9010         { ac_try='test -s conftest$ac_exeext'
9011  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9012  (eval $ac_try) 2>&5
9013  ac_status=$?
9014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9015  (exit $ac_status); }; }; then
9016
9017aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9018}'`
9019# Check for a 64-bit object if we didn't find anything.
9020if 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; }
9021}'`; fi
9022else
9023  echo "$as_me: failed program was:" >&5
9024sed 's/^/| /' conftest.$ac_ext >&5
9025
9026fi
9027rm -f conftest.err conftest.$ac_objext \
9028      conftest$ac_exeext conftest.$ac_ext
9029if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9030
9031       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9032        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"
9033       else
9034        if test "$host_cpu" = ia64; then
9035          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9036          allow_undefined_flag="-z nodefs"
9037          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"
9038        else
9039         # Determine the default libpath from the value encoded in an empty executable.
9040         cat >conftest.$ac_ext <<_ACEOF
9041/* confdefs.h.  */
9042_ACEOF
9043cat confdefs.h >>conftest.$ac_ext
9044cat >>conftest.$ac_ext <<_ACEOF
9045/* end confdefs.h.  */
9046
9047int
9048main ()
9049{
9050
9051  ;
9052  return 0;
9053}
9054_ACEOF
9055rm -f conftest.$ac_objext conftest$ac_exeext
9056if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9057  (eval $ac_link) 2>conftest.er1
9058  ac_status=$?
9059  grep -v '^ *+' conftest.er1 >conftest.err
9060  rm -f conftest.er1
9061  cat conftest.err >&5
9062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063  (exit $ac_status); } &&
9064         { ac_try='test -z "$ac_c_werror_flag"
9065                         || test ! -s conftest.err'
9066  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9067  (eval $ac_try) 2>&5
9068  ac_status=$?
9069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070  (exit $ac_status); }; } &&
9071         { ac_try='test -s conftest$ac_exeext'
9072  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9073  (eval $ac_try) 2>&5
9074  ac_status=$?
9075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9076  (exit $ac_status); }; }; then
9077
9078aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9079}'`
9080# Check for a 64-bit object if we didn't find anything.
9081if 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; }
9082}'`; fi
9083else
9084  echo "$as_me: failed program was:" >&5
9085sed 's/^/| /' conftest.$ac_ext >&5
9086
9087fi
9088rm -f conftest.err conftest.$ac_objext \
9089      conftest$ac_exeext conftest.$ac_ext
9090if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9091
9092         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9093          # Warning - without using the other run time loading flags,
9094          # -berok will link without error, but may produce a broken library.
9095          no_undefined_flag=' ${wl}-bernotok'
9096          allow_undefined_flag=' ${wl}-berok'
9097          # Exported symbols can be pulled into shared objects from archives
9098          whole_archive_flag_spec='$convenience'
9099          archive_cmds_need_lc=yes
9100          # This is similar to how AIX traditionally builds its shared libraries.
9101          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'
9102        fi
9103      fi
9104      ;;
9105
9106    amigaos*)
9107      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)'
9108      hardcode_libdir_flag_spec='-L$libdir'
9109      hardcode_minus_L=yes
9110      # see comment about different semantics on the GNU ld section
9111      ld_shlibs=no
9112      ;;
9113
9114    bsdi[45]*)
9115      export_dynamic_flag_spec=-rdynamic
9116      ;;
9117
9118    cygwin* | mingw* | pw32*)
9119      # When not using gcc, we currently assume that we are using
9120      # Microsoft Visual C++.
9121      # hardcode_libdir_flag_spec is actually meaningless, as there is
9122      # no search path for DLLs.
9123      hardcode_libdir_flag_spec=' '
9124      allow_undefined_flag=unsupported
9125      # Tell ltmain to make .lib files, not .a files.
9126      libext=lib
9127      # Tell ltmain to make .dll files, not .so files.
9128      shrext_cmds=".dll"
9129      # FIXME: Setting linknames here is a bad hack.
9130      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9131      # The linker will automatically build a .lib file if we build a DLL.
9132      old_archive_From_new_cmds='true'
9133      # FIXME: Should let the user specify the lib program.
9134      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9135      fix_srcfile_path='`cygpath -w "$srcfile"`'
9136      enable_shared_with_static_runtimes=yes
9137      ;;
9138
9139    darwin* | rhapsody*)
9140      case $host_os in
9141        rhapsody* | darwin1.[012])
9142         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9143         ;;
9144       *) # Darwin 1.3 on
9145         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9146           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9147         else
9148           case ${MACOSX_DEPLOYMENT_TARGET} in
9149             10.[012])
9150               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9151               ;;
9152             10.*)
9153               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9154               ;;
9155           esac
9156         fi
9157         ;;
9158      esac
9159      archive_cmds_need_lc=no
9160      hardcode_direct=no
9161      hardcode_automatic=yes
9162      hardcode_shlibpath_var=unsupported
9163      whole_archive_flag_spec=''
9164      link_all_deplibs=yes
9165    if test "$GCC" = yes ; then
9166        output_verbose_link_cmd='echo'
9167        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9168      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9169      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9170      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}'
9171      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}'
9172    else
9173      case $cc_basename in
9174        xlc*)
9175         output_verbose_link_cmd='echo'
9176         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9177         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9178          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9179         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}'
9180          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}'
9181          ;;
9182       *)
9183         ld_shlibs=no
9184          ;;
9185      esac
9186    fi
9187      ;;
9188
9189    dgux*)
9190      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9191      hardcode_libdir_flag_spec='-L$libdir'
9192      hardcode_shlibpath_var=no
9193      ;;
9194
9195    freebsd1*)
9196      ld_shlibs=no
9197      ;;
9198
9199    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9200    # support.  Future versions do this automatically, but an explicit c++rt0.o
9201    # does not break anything, and helps significantly (at the cost of a little
9202    # extra space).
9203    freebsd2.2*)
9204      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9205      hardcode_libdir_flag_spec='-R$libdir'
9206      hardcode_direct=yes
9207      hardcode_shlibpath_var=no
9208      ;;
9209
9210    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9211    freebsd2*)
9212      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9213      hardcode_direct=yes
9214      hardcode_minus_L=yes
9215      hardcode_shlibpath_var=no
9216      ;;
9217
9218    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9219    freebsd* | kfreebsd*-gnu | dragonfly*)
9220      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9221      hardcode_libdir_flag_spec='-R$libdir'
9222      hardcode_direct=yes
9223      hardcode_shlibpath_var=no
9224      ;;
9225
9226    hpux9*)
9227      if test "$GCC" = yes; then
9228        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'
9229      else
9230        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'
9231      fi
9232      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9233      hardcode_libdir_separator=:
9234      hardcode_direct=yes
9235
9236      # hardcode_minus_L: Not really in the search PATH,
9237      # but as the default location of the library.
9238      hardcode_minus_L=yes
9239      export_dynamic_flag_spec='${wl}-E'
9240      ;;
9241
9242    hpux10*)
9243      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9244        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9245      else
9246        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9247      fi
9248      if test "$with_gnu_ld" = no; then
9249        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9250        hardcode_libdir_separator=:
9251
9252        hardcode_direct=yes
9253        export_dynamic_flag_spec='${wl}-E'
9254
9255        # hardcode_minus_L: Not really in the search PATH,
9256        # but as the default location of the library.
9257        hardcode_minus_L=yes
9258      fi
9259      ;;
9260
9261    hpux11*)
9262      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9263        case $host_cpu in
9264        hppa*64*)
9265          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9266          ;;
9267        ia64*)
9268          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9269          ;;
9270        *)
9271          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9272          ;;
9273        esac
9274      else
9275        case $host_cpu in
9276        hppa*64*)
9277          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9278          ;;
9279        ia64*)
9280          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9281          ;;
9282        *)
9283          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9284          ;;
9285        esac
9286      fi
9287      if test "$with_gnu_ld" = no; then
9288        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9289        hardcode_libdir_separator=:
9290
9291        case $host_cpu in
9292        hppa*64*|ia64*)
9293          hardcode_libdir_flag_spec_ld='+b $libdir'
9294          hardcode_direct=no
9295          hardcode_shlibpath_var=no
9296          ;;
9297        *)
9298          hardcode_direct=yes
9299          export_dynamic_flag_spec='${wl}-E'
9300
9301          # hardcode_minus_L: Not really in the search PATH,
9302          # but as the default location of the library.
9303          hardcode_minus_L=yes
9304          ;;
9305        esac
9306      fi
9307      ;;
9308
9309    irix5* | irix6* | nonstopux*)
9310      if test "$GCC" = yes; then
9311        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'
9312      else
9313        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'
9314        hardcode_libdir_flag_spec_ld='-rpath $libdir'
9315      fi
9316      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9317      hardcode_libdir_separator=:
9318      link_all_deplibs=yes
9319      ;;
9320
9321    netbsd*)
9322      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9323        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9324      else
9325        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9326      fi
9327      hardcode_libdir_flag_spec='-R$libdir'
9328      hardcode_direct=yes
9329      hardcode_shlibpath_var=no
9330      ;;
9331
9332    newsos6)
9333      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9334      hardcode_direct=yes
9335      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9336      hardcode_libdir_separator=:
9337      hardcode_shlibpath_var=no
9338      ;;
9339
9340    openbsd*)
9341      hardcode_direct=yes
9342      hardcode_shlibpath_var=no
9343      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9344        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9345        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9346        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9347        export_dynamic_flag_spec='${wl}-E'
9348      else
9349       case $host_os in
9350         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9351           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9352           hardcode_libdir_flag_spec='-R$libdir'
9353           ;;
9354         *)
9355           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9356           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9357           ;;
9358       esac
9359      fi
9360      ;;
9361
9362    os2*)
9363      hardcode_libdir_flag_spec='-L$libdir'
9364      hardcode_minus_L=yes
9365      allow_undefined_flag=unsupported
9366      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'
9367      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9368      ;;
9369
9370    osf3*)
9371      if test "$GCC" = yes; then
9372        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9373        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'
9374      else
9375        allow_undefined_flag=' -expect_unresolved \*'
9376        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'
9377      fi
9378      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9379      hardcode_libdir_separator=:
9380      ;;
9381
9382    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9383      if test "$GCC" = yes; then
9384        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9385        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'
9386        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9387      else
9388        allow_undefined_flag=' -expect_unresolved \*'
9389        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'
9390        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9391        $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'
9392
9393        # Both c and cxx compiler support -rpath directly
9394        hardcode_libdir_flag_spec='-rpath $libdir'
9395      fi
9396      hardcode_libdir_separator=:
9397      ;;
9398
9399    solaris*)
9400      no_undefined_flag=' -z text'
9401      if test "$GCC" = yes; then
9402        wlarc='${wl}'
9403        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9404        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9405          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9406      else
9407        wlarc=''
9408        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9409        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9410        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9411      fi
9412      hardcode_libdir_flag_spec='-R$libdir'
9413      hardcode_shlibpath_var=no
9414      case $host_os in
9415      solaris2.[0-5] | solaris2.[0-5].*) ;;
9416      *)
9417        # The compiler driver will combine linker options so we
9418        # cannot just pass the convience library names through
9419        # without $wl, iff we do not link with $LD.
9420        # Luckily, gcc supports the same syntax we need for Sun Studio.
9421        # Supported since Solaris 2.6 (maybe 2.5.1?)
9422        case $wlarc in
9423        '')
9424          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9425        *)
9426          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' ;;
9427        esac ;;
9428      esac
9429      link_all_deplibs=yes
9430      ;;
9431
9432    sunos4*)
9433      if test "x$host_vendor" = xsequent; then
9434        # Use $CC to link under sequent, because it throws in some extra .o
9435        # files that make .init and .fini sections work.
9436        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9437      else
9438        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9439      fi
9440      hardcode_libdir_flag_spec='-L$libdir'
9441      hardcode_direct=yes
9442      hardcode_minus_L=yes
9443      hardcode_shlibpath_var=no
9444      ;;
9445
9446    sysv4)
9447      case $host_vendor in
9448        sni)
9449          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9450          hardcode_direct=yes # is this really true???
9451        ;;
9452        siemens)
9453          ## LD is ld it makes a PLAMLIB
9454          ## CC just makes a GrossModule.
9455          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9456          reload_cmds='$CC -r -o $output$reload_objs'
9457          hardcode_direct=no
9458        ;;
9459        motorola)
9460          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9461          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9462        ;;
9463      esac
9464      runpath_var='LD_RUN_PATH'
9465      hardcode_shlibpath_var=no
9466      ;;
9467
9468    sysv4.3*)
9469      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9470      hardcode_shlibpath_var=no
9471      export_dynamic_flag_spec='-Bexport'
9472      ;;
9473
9474    sysv4*MP*)
9475      if test -d /usr/nec; then
9476        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9477        hardcode_shlibpath_var=no
9478        runpath_var=LD_RUN_PATH
9479        hardcode_runpath_var=yes
9480        ld_shlibs=yes
9481      fi
9482      ;;
9483
9484    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9485      no_undefined_flag='${wl}-z,text'
9486      archive_cmds_need_lc=no
9487      hardcode_shlibpath_var=no
9488      runpath_var='LD_RUN_PATH'
9489
9490      if test "$GCC" = yes; then
9491        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9492        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9493      else
9494        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9495        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9496      fi
9497      ;;
9498
9499    sysv5* | sco3.2v5* | sco5v6*)
9500      # Note: We can NOT use -z defs as we might desire, because we do not
9501      # link with -lc, and that would cause any symbols used from libc to
9502      # always be unresolved, which means just about no library would
9503      # ever link correctly.  If we're not using GNU ld we use -z text
9504      # though, which does catch some bad symbols but isn't as heavy-handed
9505      # as -z defs.
9506      no_undefined_flag='${wl}-z,text'
9507      allow_undefined_flag='${wl}-z,nodefs'
9508      archive_cmds_need_lc=no
9509      hardcode_shlibpath_var=no
9510      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9511      hardcode_libdir_separator=':'
9512      link_all_deplibs=yes
9513      export_dynamic_flag_spec='${wl}-Bexport'
9514      runpath_var='LD_RUN_PATH'
9515
9516      if test "$GCC" = yes; then
9517        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9518        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9519      else
9520        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9521        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9522      fi
9523      ;;
9524
9525    uts4*)
9526      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9527      hardcode_libdir_flag_spec='-L$libdir'
9528      hardcode_shlibpath_var=no
9529      ;;
9530
9531    *)
9532      ld_shlibs=no
9533      ;;
9534    esac
9535  fi
9536
9537echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9538echo "${ECHO_T}$ld_shlibs" >&6
9539test "$ld_shlibs" = no && can_build_shared=no
9540
9541#
9542# Do we need to explicitly link libc?
9543#
9544case "x$archive_cmds_need_lc" in
9545x|xyes)
9546  # Assume -lc should be added
9547  archive_cmds_need_lc=yes
9548
9549  if test "$enable_shared" = yes && test "$GCC" = yes; then
9550    case $archive_cmds in
9551    *'~'*)
9552      # FIXME: we may have to deal with multi-command sequences.
9553      ;;
9554    '$CC '*)
9555      # Test whether the compiler implicitly links with -lc since on some
9556      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9557      # to ld, don't add -lc before -lgcc.
9558      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9559echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9560      $rm conftest*
9561      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9562
9563      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9564  (eval $ac_compile) 2>&5
9565  ac_status=$?
9566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567  (exit $ac_status); } 2>conftest.err; then
9568        soname=conftest
9569        lib=conftest
9570        libobjs=conftest.$ac_objext
9571        deplibs=
9572        wl=$lt_prog_compiler_wl
9573        pic_flag=$lt_prog_compiler_pic
9574        compiler_flags=-v
9575        linker_flags=-v
9576        verstring=
9577        output_objdir=.
9578        libname=conftest
9579        lt_save_allow_undefined_flag=$allow_undefined_flag
9580        allow_undefined_flag=
9581        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9582  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9583  ac_status=$?
9584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585  (exit $ac_status); }
9586        then
9587          archive_cmds_need_lc=no
9588        else
9589          archive_cmds_need_lc=yes
9590        fi
9591        allow_undefined_flag=$lt_save_allow_undefined_flag
9592      else
9593        cat conftest.err 1>&5
9594      fi
9595      $rm conftest*
9596      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9597echo "${ECHO_T}$archive_cmds_need_lc" >&6
9598      ;;
9599    esac
9600  fi
9601  ;;
9602esac
9603
9604echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9605echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9606library_names_spec=
9607libname_spec='lib$name'
9608soname_spec=
9609shrext_cmds=".so"
9610postinstall_cmds=
9611postuninstall_cmds=
9612finish_cmds=
9613finish_eval=
9614shlibpath_var=
9615shlibpath_overrides_runpath=unknown
9616version_type=none
9617dynamic_linker="$host_os ld.so"
9618sys_lib_dlsearch_path_spec="/lib /usr/lib"
9619if test "$GCC" = yes; then
9620  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9621  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9622    # if the path contains ";" then we assume it to be the separator
9623    # otherwise default to the standard path separator (i.e. ":") - it is
9624    # assumed that no part of a normal pathname contains ";" but that should
9625    # okay in the real world where ";" in dirpaths is itself problematic.
9626    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9627  else
9628    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9629  fi
9630else
9631  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9632fi
9633need_lib_prefix=unknown
9634hardcode_into_libs=no
9635
9636# when you set need_version to no, make sure it does not cause -set_version
9637# flags to be left without arguments
9638need_version=unknown
9639
9640case $host_os in
9641aix3*)
9642  version_type=linux
9643  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9644  shlibpath_var=LIBPATH
9645
9646  # AIX 3 has no versioning support, so we append a major version to the name.
9647  soname_spec='${libname}${release}${shared_ext}$major'
9648  ;;
9649
9650aix4* | aix5*)
9651  version_type=linux
9652  need_lib_prefix=no
9653  need_version=no
9654  hardcode_into_libs=yes
9655  if test "$host_cpu" = ia64; then
9656    # AIX 5 supports IA64
9657    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9658    shlibpath_var=LD_LIBRARY_PATH
9659  else
9660    # With GCC up to 2.95.x, collect2 would create an import file
9661    # for dependence libraries.  The import file would start with
9662    # the line `#! .'.  This would cause the generated library to
9663    # depend on `.', always an invalid library.  This was fixed in
9664    # development snapshots of GCC prior to 3.0.
9665    case $host_os in
9666      aix4 | aix4.[01] | aix4.[01].*)
9667      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9668           echo ' yes '
9669           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9670        :
9671      else
9672        can_build_shared=no
9673      fi
9674      ;;
9675    esac
9676    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9677    # soname into executable. Probably we can add versioning support to
9678    # collect2, so additional links can be useful in future.
9679    if test "$aix_use_runtimelinking" = yes; then
9680      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9681      # instead of lib<name>.a to let people know that these are not
9682      # typical AIX shared libraries.
9683      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9684    else
9685      # We preserve .a as extension for shared libraries through AIX4.2
9686      # and later when we are not doing run time linking.
9687      library_names_spec='${libname}${release}.a $libname.a'
9688      soname_spec='${libname}${release}${shared_ext}$major'
9689    fi
9690    shlibpath_var=LIBPATH
9691  fi
9692  ;;
9693
9694amigaos*)
9695  library_names_spec='$libname.ixlibrary $libname.a'
9696  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9697  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'
9698  ;;
9699
9700beos*)
9701  library_names_spec='${libname}${shared_ext}'
9702  dynamic_linker="$host_os ld.so"
9703  shlibpath_var=LIBRARY_PATH
9704  ;;
9705
9706bsdi[45]*)
9707  version_type=linux
9708  need_version=no
9709  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9710  soname_spec='${libname}${release}${shared_ext}$major'
9711  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9712  shlibpath_var=LD_LIBRARY_PATH
9713  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9714  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9715  # the default ld.so.conf also contains /usr/contrib/lib and
9716  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9717  # libtool to hard-code these into programs
9718  ;;
9719
9720cygwin* | mingw* | pw32*)
9721  version_type=windows
9722  shrext_cmds=".dll"
9723  need_version=no
9724  need_lib_prefix=no
9725
9726  case $GCC,$host_os in
9727  yes,cygwin* | yes,mingw* | yes,pw32*)
9728    library_names_spec='$libname.dll.a'
9729    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9730    postinstall_cmds='base_file=`basename \${file}`~
9731      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9732      dldir=$destdir/`dirname \$dlpath`~
9733      test -d \$dldir || mkdir -p \$dldir~
9734      $install_prog $dir/$dlname \$dldir/$dlname~
9735      chmod a+x \$dldir/$dlname'
9736    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9737      dlpath=$dir/\$dldll~
9738       $rm \$dlpath'
9739    shlibpath_overrides_runpath=yes
9740
9741    case $host_os in
9742    cygwin*)
9743      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9744      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9745      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9746      ;;
9747    mingw*)
9748      # MinGW DLLs use traditional 'lib' prefix
9749      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9750      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9751      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9752        # It is most probably a Windows format PATH printed by
9753        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9754        # path with ; separators, and with drive letters. We can handle the
9755        # drive letters (cygwin fileutils understands them), so leave them,
9756        # especially as we might pass files found there to a mingw objdump,
9757        # which wouldn't understand a cygwinified path. Ahh.
9758        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9759      else
9760        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9761      fi
9762      ;;
9763    pw32*)
9764      # pw32 DLLs use 'pw' prefix rather than 'lib'
9765      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9766      ;;
9767    esac
9768    ;;
9769
9770  *)
9771    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9772    ;;
9773  esac
9774  dynamic_linker='Win32 ld.exe'
9775  # FIXME: first we should search . and the directory the executable is in
9776  shlibpath_var=PATH
9777  ;;
9778
9779darwin* | rhapsody*)
9780  dynamic_linker="$host_os dyld"
9781  version_type=darwin
9782  need_lib_prefix=no
9783  need_version=no
9784  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9785  soname_spec='${libname}${release}${major}$shared_ext'
9786  shlibpath_overrides_runpath=yes
9787  shlibpath_var=DYLD_LIBRARY_PATH
9788  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9789  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9790  if test "$GCC" = yes; then
9791    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"`
9792  else
9793    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9794  fi
9795  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9796  ;;
9797
9798dgux*)
9799  version_type=linux
9800  need_lib_prefix=no
9801  need_version=no
9802  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9803  soname_spec='${libname}${release}${shared_ext}$major'
9804  shlibpath_var=LD_LIBRARY_PATH
9805  ;;
9806
9807freebsd1*)
9808  dynamic_linker=no
9809  ;;
9810
9811kfreebsd*-gnu)
9812  version_type=linux
9813  need_lib_prefix=no
9814  need_version=no
9815  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9816  soname_spec='${libname}${release}${shared_ext}$major'
9817  shlibpath_var=LD_LIBRARY_PATH
9818  shlibpath_overrides_runpath=no
9819  hardcode_into_libs=yes
9820  dynamic_linker='GNU ld.so'
9821  ;;
9822
9823freebsd* | dragonfly*)
9824  # DragonFly does not have aout.  When/if they implement a new
9825  # versioning mechanism, adjust this.
9826  if test -x /usr/bin/objformat; then
9827    objformat=`/usr/bin/objformat`
9828  else
9829    case $host_os in
9830    freebsd[123]*) objformat=aout ;;
9831    *) objformat=elf ;;
9832    esac
9833  fi
9834  version_type=freebsd-$objformat
9835  case $version_type in
9836    freebsd-elf*)
9837      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9838      need_version=no
9839      need_lib_prefix=no
9840      ;;
9841    freebsd-*)
9842      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9843      need_version=yes
9844      ;;
9845  esac
9846  shlibpath_var=LD_LIBRARY_PATH
9847  case $host_os in
9848  freebsd2*)
9849    shlibpath_overrides_runpath=yes
9850    ;;
9851  freebsd3.[01]* | freebsdelf3.[01]*)
9852    shlibpath_overrides_runpath=yes
9853    hardcode_into_libs=yes
9854    ;;
9855  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9856  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9857    shlibpath_overrides_runpath=no
9858    hardcode_into_libs=yes
9859    ;;
9860  freebsd*) # from 4.6 on
9861    shlibpath_overrides_runpath=yes
9862    hardcode_into_libs=yes
9863    ;;
9864  esac
9865  ;;
9866
9867gnu*)
9868  version_type=linux
9869  need_lib_prefix=no
9870  need_version=no
9871  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9872  soname_spec='${libname}${release}${shared_ext}$major'
9873  shlibpath_var=LD_LIBRARY_PATH
9874  hardcode_into_libs=yes
9875  ;;
9876
9877hpux9* | hpux10* | hpux11*)
9878  # Give a soname corresponding to the major version so that dld.sl refuses to
9879  # link against other versions.
9880  version_type=sunos
9881  need_lib_prefix=no
9882  need_version=no
9883  case $host_cpu in
9884  ia64*)
9885    shrext_cmds='.so'
9886    hardcode_into_libs=yes
9887    dynamic_linker="$host_os dld.so"
9888    shlibpath_var=LD_LIBRARY_PATH
9889    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9890    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9891    soname_spec='${libname}${release}${shared_ext}$major'
9892    if test "X$HPUX_IA64_MODE" = X32; then
9893      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9894    else
9895      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9896    fi
9897    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9898    ;;
9899   hppa*64*)
9900     shrext_cmds='.sl'
9901     hardcode_into_libs=yes
9902     dynamic_linker="$host_os dld.sl"
9903     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9904     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9905     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9906     soname_spec='${libname}${release}${shared_ext}$major'
9907     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9908     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9909     ;;
9910   *)
9911    shrext_cmds='.sl'
9912    dynamic_linker="$host_os dld.sl"
9913    shlibpath_var=SHLIB_PATH
9914    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9915    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9916    soname_spec='${libname}${release}${shared_ext}$major'
9917    ;;
9918  esac
9919  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9920  postinstall_cmds='chmod 555 $lib'
9921  ;;
9922
9923interix3*)
9924  version_type=linux
9925  need_lib_prefix=no
9926  need_version=no
9927  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9928  soname_spec='${libname}${release}${shared_ext}$major'
9929  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9930  shlibpath_var=LD_LIBRARY_PATH
9931  shlibpath_overrides_runpath=no
9932  hardcode_into_libs=yes
9933  ;;
9934
9935irix5* | irix6* | nonstopux*)
9936  case $host_os in
9937    nonstopux*) version_type=nonstopux ;;
9938    *)
9939        if test "$lt_cv_prog_gnu_ld" = yes; then
9940                version_type=linux
9941        else
9942                version_type=irix
9943        fi ;;
9944  esac
9945  need_lib_prefix=no
9946  need_version=no
9947  soname_spec='${libname}${release}${shared_ext}$major'
9948  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9949  case $host_os in
9950  irix5* | nonstopux*)
9951    libsuff= shlibsuff=
9952    ;;
9953  *)
9954    case $LD in # libtool.m4 will add one of these switches to LD
9955    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9956      libsuff= shlibsuff= libmagic=32-bit;;
9957    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9958      libsuff=32 shlibsuff=N32 libmagic=N32;;
9959    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9960      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9961    *) libsuff= shlibsuff= libmagic=never-match;;
9962    esac
9963    ;;
9964  esac
9965  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9966  shlibpath_overrides_runpath=no
9967  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9968  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9969  hardcode_into_libs=yes
9970  ;;
9971
9972# No shared lib support for Linux oldld, aout, or coff.
9973linux*oldld* | linux*aout* | linux*coff*)
9974  dynamic_linker=no
9975  ;;
9976
9977# This must be Linux ELF.
9978linux*)
9979  version_type=linux
9980  need_lib_prefix=no
9981  need_version=no
9982  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9983  soname_spec='${libname}${release}${shared_ext}$major'
9984  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9985  shlibpath_var=LD_LIBRARY_PATH
9986  shlibpath_overrides_runpath=no
9987  # This implies no fast_install, which is unacceptable.
9988  # Some rework will be needed to allow for fast_install
9989  # before this can be enabled.
9990  hardcode_into_libs=yes
9991
9992  # Append ld.so.conf contents to the search path
9993  if test -f /etc/ld.so.conf; then
9994    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' ' '`
9995    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9996  fi
9997
9998  # We used to test for /lib/ld.so.1 and disable shared libraries on
9999  # powerpc, because MkLinux only supported shared libraries with the
10000  # GNU dynamic linker.  Since this was broken with cross compilers,
10001  # most powerpc-linux boxes support dynamic linking these days and
10002  # people can always --disable-shared, the test was removed, and we
10003  # assume the GNU/Linux dynamic linker is in use.
10004  dynamic_linker='GNU/Linux ld.so'
10005  ;;
10006
10007knetbsd*-gnu)
10008  version_type=linux
10009  need_lib_prefix=no
10010  need_version=no
10011  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10012  soname_spec='${libname}${release}${shared_ext}$major'
10013  shlibpath_var=LD_LIBRARY_PATH
10014  shlibpath_overrides_runpath=no
10015  hardcode_into_libs=yes
10016  dynamic_linker='GNU ld.so'
10017  ;;
10018
10019netbsd*)
10020  version_type=sunos
10021  need_lib_prefix=no
10022  need_version=no
10023  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10024    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10025    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10026    dynamic_linker='NetBSD (a.out) ld.so'
10027  else
10028    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10029    soname_spec='${libname}${release}${shared_ext}$major'
10030    dynamic_linker='NetBSD ld.elf_so'
10031  fi
10032  shlibpath_var=LD_LIBRARY_PATH
10033  shlibpath_overrides_runpath=yes
10034  hardcode_into_libs=yes
10035  ;;
10036
10037newsos6)
10038  version_type=linux
10039  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10040  shlibpath_var=LD_LIBRARY_PATH
10041  shlibpath_overrides_runpath=yes
10042  ;;
10043
10044nto-qnx*)
10045  version_type=linux
10046  need_lib_prefix=no
10047  need_version=no
10048  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10049  soname_spec='${libname}${release}${shared_ext}$major'
10050  shlibpath_var=LD_LIBRARY_PATH
10051  shlibpath_overrides_runpath=yes
10052  ;;
10053
10054openbsd*)
10055  version_type=sunos
10056  sys_lib_dlsearch_path_spec="/usr/lib"
10057  need_lib_prefix=no
10058  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10059  case $host_os in
10060    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10061    *)                         need_version=no  ;;
10062  esac
10063  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10064  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10065  shlibpath_var=LD_LIBRARY_PATH
10066  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10067    case $host_os in
10068      openbsd2.[89] | openbsd2.[89].*)
10069        shlibpath_overrides_runpath=no
10070        ;;
10071      *)
10072        shlibpath_overrides_runpath=yes
10073        ;;
10074      esac
10075  else
10076    shlibpath_overrides_runpath=yes
10077  fi
10078  ;;
10079
10080os2*)
10081  libname_spec='$name'
10082  shrext_cmds=".dll"
10083  need_lib_prefix=no
10084  library_names_spec='$libname${shared_ext} $libname.a'
10085  dynamic_linker='OS/2 ld.exe'
10086  shlibpath_var=LIBPATH
10087  ;;
10088
10089osf3* | osf4* | osf5*)
10090  version_type=osf
10091  need_lib_prefix=no
10092  need_version=no
10093  soname_spec='${libname}${release}${shared_ext}$major'
10094  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10095  shlibpath_var=LD_LIBRARY_PATH
10096  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10097  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10098  ;;
10099
10100solaris*)
10101  version_type=linux
10102  need_lib_prefix=no
10103  need_version=no
10104  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10105  soname_spec='${libname}${release}${shared_ext}$major'
10106  shlibpath_var=LD_LIBRARY_PATH
10107  shlibpath_overrides_runpath=yes
10108  hardcode_into_libs=yes
10109  # ldd complains unless libraries are executable
10110  postinstall_cmds='chmod +x $lib'
10111  ;;
10112
10113sunos4*)
10114  version_type=sunos
10115  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10116  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10117  shlibpath_var=LD_LIBRARY_PATH
10118  shlibpath_overrides_runpath=yes
10119  if test "$with_gnu_ld" = yes; then
10120    need_lib_prefix=no
10121  fi
10122  need_version=yes
10123  ;;
10124
10125sysv4 | sysv4.3*)
10126  version_type=linux
10127  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10128  soname_spec='${libname}${release}${shared_ext}$major'
10129  shlibpath_var=LD_LIBRARY_PATH
10130  case $host_vendor in
10131    sni)
10132      shlibpath_overrides_runpath=no
10133      need_lib_prefix=no
10134      export_dynamic_flag_spec='${wl}-Blargedynsym'
10135      runpath_var=LD_RUN_PATH
10136      ;;
10137    siemens)
10138      need_lib_prefix=no
10139      ;;
10140    motorola)
10141      need_lib_prefix=no
10142      need_version=no
10143      shlibpath_overrides_runpath=no
10144      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10145      ;;
10146  esac
10147  ;;
10148
10149sysv4*MP*)
10150  if test -d /usr/nec ;then
10151    version_type=linux
10152    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10153    soname_spec='$libname${shared_ext}.$major'
10154    shlibpath_var=LD_LIBRARY_PATH
10155  fi
10156  ;;
10157
10158sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10159  version_type=freebsd-elf
10160  need_lib_prefix=no
10161  need_version=no
10162  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10163  soname_spec='${libname}${release}${shared_ext}$major'
10164  shlibpath_var=LD_LIBRARY_PATH
10165  hardcode_into_libs=yes
10166  if test "$with_gnu_ld" = yes; then
10167    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10168    shlibpath_overrides_runpath=no
10169  else
10170    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10171    shlibpath_overrides_runpath=yes
10172    case $host_os in
10173      sco3.2v5*)
10174        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10175        ;;
10176    esac
10177  fi
10178  sys_lib_dlsearch_path_spec='/usr/lib'
10179  ;;
10180
10181uts4*)
10182  version_type=linux
10183  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10184  soname_spec='${libname}${release}${shared_ext}$major'
10185  shlibpath_var=LD_LIBRARY_PATH
10186  ;;
10187
10188*)
10189  dynamic_linker=no
10190  ;;
10191esac
10192echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10193echo "${ECHO_T}$dynamic_linker" >&6
10194test "$dynamic_linker" = no && can_build_shared=no
10195
10196variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10197if test "$GCC" = yes; then
10198  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10199fi
10200
10201echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10202echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10203hardcode_action=
10204if test -n "$hardcode_libdir_flag_spec" || \
10205   test -n "$runpath_var" || \
10206   test "X$hardcode_automatic" = "Xyes" ; then
10207
10208  # We can hardcode non-existant directories.
10209  if test "$hardcode_direct" != no &&
10210     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10211     # have to relink, otherwise we might link with an installed library
10212     # when we should be linking with a yet-to-be-installed one
10213     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10214     test "$hardcode_minus_L" != no; then
10215    # Linking always hardcodes the temporary library directory.
10216    hardcode_action=relink
10217  else
10218    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10219    hardcode_action=immediate
10220  fi
10221else
10222  # We cannot hardcode anything, or else we can only hardcode existing
10223  # directories.
10224  hardcode_action=unsupported
10225fi
10226echo "$as_me:$LINENO: result: $hardcode_action" >&5
10227echo "${ECHO_T}$hardcode_action" >&6
10228
10229if test "$hardcode_action" = relink; then
10230  # Fast installation is not supported
10231  enable_fast_install=no
10232elif test "$shlibpath_overrides_runpath" = yes ||
10233     test "$enable_shared" = no; then
10234  # Fast installation is not necessary
10235  enable_fast_install=needless
10236fi
10237
10238striplib=
10239old_striplib=
10240echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10241echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10242if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10243  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10244  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10245  echo "$as_me:$LINENO: result: yes" >&5
10246echo "${ECHO_T}yes" >&6
10247else
10248# FIXME - insert some real tests, host_os isn't really good enough
10249  case $host_os in
10250   darwin*)
10251       if test -n "$STRIP" ; then
10252         striplib="$STRIP -x"
10253         echo "$as_me:$LINENO: result: yes" >&5
10254echo "${ECHO_T}yes" >&6
10255       else
10256  echo "$as_me:$LINENO: result: no" >&5
10257echo "${ECHO_T}no" >&6
10258fi
10259       ;;
10260   *)
10261  echo "$as_me:$LINENO: result: no" >&5
10262echo "${ECHO_T}no" >&6
10263    ;;
10264  esac
10265fi
10266
10267if test "x$enable_dlopen" != xyes; then
10268  enable_dlopen=unknown
10269  enable_dlopen_self=unknown
10270  enable_dlopen_self_static=unknown
10271else
10272  lt_cv_dlopen=no
10273  lt_cv_dlopen_libs=
10274
10275  case $host_os in
10276  beos*)
10277    lt_cv_dlopen="load_add_on"
10278    lt_cv_dlopen_libs=
10279    lt_cv_dlopen_self=yes
10280    ;;
10281
10282  mingw* | pw32*)
10283    lt_cv_dlopen="LoadLibrary"
10284    lt_cv_dlopen_libs=
10285   ;;
10286
10287  cygwin*)
10288    lt_cv_dlopen="dlopen"
10289    lt_cv_dlopen_libs=
10290   ;;
10291
10292  darwin*)
10293  # if libdl is installed we need to link against it
10294    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10295echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10296if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10297  echo $ECHO_N "(cached) $ECHO_C" >&6
10298else
10299  ac_check_lib_save_LIBS=$LIBS
10300LIBS="-ldl  $LIBS"
10301cat >conftest.$ac_ext <<_ACEOF
10302/* confdefs.h.  */
10303_ACEOF
10304cat confdefs.h >>conftest.$ac_ext
10305cat >>conftest.$ac_ext <<_ACEOF
10306/* end confdefs.h.  */
10307
10308/* Override any gcc2 internal prototype to avoid an error.  */
10309#ifdef __cplusplus
10310extern "C"
10311#endif
10312/* We use char because int might match the return type of a gcc2
10313   builtin and then its argument prototype would still apply.  */
10314char dlopen ();
10315int
10316main ()
10317{
10318dlopen ();
10319  ;
10320  return 0;
10321}
10322_ACEOF
10323rm -f conftest.$ac_objext conftest$ac_exeext
10324if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10325  (eval $ac_link) 2>conftest.er1
10326  ac_status=$?
10327  grep -v '^ *+' conftest.er1 >conftest.err
10328  rm -f conftest.er1
10329  cat conftest.err >&5
10330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331  (exit $ac_status); } &&
10332         { ac_try='test -z "$ac_c_werror_flag"
10333                         || test ! -s conftest.err'
10334  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10335  (eval $ac_try) 2>&5
10336  ac_status=$?
10337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338  (exit $ac_status); }; } &&
10339         { ac_try='test -s conftest$ac_exeext'
10340  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10341  (eval $ac_try) 2>&5
10342  ac_status=$?
10343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10344  (exit $ac_status); }; }; then
10345  ac_cv_lib_dl_dlopen=yes
10346else
10347  echo "$as_me: failed program was:" >&5
10348sed 's/^/| /' conftest.$ac_ext >&5
10349
10350ac_cv_lib_dl_dlopen=no
10351fi
10352rm -f conftest.err conftest.$ac_objext \
10353      conftest$ac_exeext conftest.$ac_ext
10354LIBS=$ac_check_lib_save_LIBS
10355fi
10356echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10357echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10358if test $ac_cv_lib_dl_dlopen = yes; then
10359  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10360else
10361
10362    lt_cv_dlopen="dyld"
10363    lt_cv_dlopen_libs=
10364    lt_cv_dlopen_self=yes
10365
10366fi
10367
10368   ;;
10369
10370  *)
10371    echo "$as_me:$LINENO: checking for shl_load" >&5
10372echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10373if test "${ac_cv_func_shl_load+set}" = set; then
10374  echo $ECHO_N "(cached) $ECHO_C" >&6
10375else
10376  cat >conftest.$ac_ext <<_ACEOF
10377/* confdefs.h.  */
10378_ACEOF
10379cat confdefs.h >>conftest.$ac_ext
10380cat >>conftest.$ac_ext <<_ACEOF
10381/* end confdefs.h.  */
10382/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10383   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10384#define shl_load innocuous_shl_load
10385
10386/* System header to define __stub macros and hopefully few prototypes,
10387    which can conflict with char shl_load (); below.
10388    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10389    <limits.h> exists even on freestanding compilers.  */
10390
10391#ifdef __STDC__
10392# include <limits.h>
10393#else
10394# include <assert.h>
10395#endif
10396
10397#undef shl_load
10398
10399/* Override any gcc2 internal prototype to avoid an error.  */
10400#ifdef __cplusplus
10401extern "C"
10402{
10403#endif
10404/* We use char because int might match the return type of a gcc2
10405   builtin and then its argument prototype would still apply.  */
10406char shl_load ();
10407/* The GNU C library defines this for functions which it implements
10408    to always fail with ENOSYS.  Some functions are actually named
10409    something starting with __ and the normal name is an alias.  */
10410#if defined (__stub_shl_load) || defined (__stub___shl_load)
10411choke me
10412#else
10413char (*f) () = shl_load;
10414#endif
10415#ifdef __cplusplus
10416}
10417#endif
10418
10419int
10420main ()
10421{
10422return f != shl_load;
10423  ;
10424  return 0;
10425}
10426_ACEOF
10427rm -f conftest.$ac_objext conftest$ac_exeext
10428if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10429  (eval $ac_link) 2>conftest.er1
10430  ac_status=$?
10431  grep -v '^ *+' conftest.er1 >conftest.err
10432  rm -f conftest.er1
10433  cat conftest.err >&5
10434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10435  (exit $ac_status); } &&
10436         { ac_try='test -z "$ac_c_werror_flag"
10437                         || test ! -s conftest.err'
10438  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10439  (eval $ac_try) 2>&5
10440  ac_status=$?
10441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442  (exit $ac_status); }; } &&
10443         { ac_try='test -s conftest$ac_exeext'
10444  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10445  (eval $ac_try) 2>&5
10446  ac_status=$?
10447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448  (exit $ac_status); }; }; then
10449  ac_cv_func_shl_load=yes
10450else
10451  echo "$as_me: failed program was:" >&5
10452sed 's/^/| /' conftest.$ac_ext >&5
10453
10454ac_cv_func_shl_load=no
10455fi
10456rm -f conftest.err conftest.$ac_objext \
10457      conftest$ac_exeext conftest.$ac_ext
10458fi
10459echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10460echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10461if test $ac_cv_func_shl_load = yes; then
10462  lt_cv_dlopen="shl_load"
10463else
10464  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10465echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10466if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10467  echo $ECHO_N "(cached) $ECHO_C" >&6
10468else
10469  ac_check_lib_save_LIBS=$LIBS
10470LIBS="-ldld  $LIBS"
10471cat >conftest.$ac_ext <<_ACEOF
10472/* confdefs.h.  */
10473_ACEOF
10474cat confdefs.h >>conftest.$ac_ext
10475cat >>conftest.$ac_ext <<_ACEOF
10476/* end confdefs.h.  */
10477
10478/* Override any gcc2 internal prototype to avoid an error.  */
10479#ifdef __cplusplus
10480extern "C"
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 shl_load ();
10485int
10486main ()
10487{
10488shl_load ();
10489  ;
10490  return 0;
10491}
10492_ACEOF
10493rm -f conftest.$ac_objext conftest$ac_exeext
10494if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10495  (eval $ac_link) 2>conftest.er1
10496  ac_status=$?
10497  grep -v '^ *+' conftest.er1 >conftest.err
10498  rm -f conftest.er1
10499  cat conftest.err >&5
10500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10501  (exit $ac_status); } &&
10502         { ac_try='test -z "$ac_c_werror_flag"
10503                         || test ! -s conftest.err'
10504  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10505  (eval $ac_try) 2>&5
10506  ac_status=$?
10507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10508  (exit $ac_status); }; } &&
10509         { ac_try='test -s conftest$ac_exeext'
10510  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10511  (eval $ac_try) 2>&5
10512  ac_status=$?
10513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10514  (exit $ac_status); }; }; then
10515  ac_cv_lib_dld_shl_load=yes
10516else
10517  echo "$as_me: failed program was:" >&5
10518sed 's/^/| /' conftest.$ac_ext >&5
10519
10520ac_cv_lib_dld_shl_load=no
10521fi
10522rm -f conftest.err conftest.$ac_objext \
10523      conftest$ac_exeext conftest.$ac_ext
10524LIBS=$ac_check_lib_save_LIBS
10525fi
10526echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10527echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10528if test $ac_cv_lib_dld_shl_load = yes; then
10529  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10530else
10531  echo "$as_me:$LINENO: checking for dlopen" >&5
10532echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10533if test "${ac_cv_func_dlopen+set}" = set; then
10534  echo $ECHO_N "(cached) $ECHO_C" >&6
10535else
10536  cat >conftest.$ac_ext <<_ACEOF
10537/* confdefs.h.  */
10538_ACEOF
10539cat confdefs.h >>conftest.$ac_ext
10540cat >>conftest.$ac_ext <<_ACEOF
10541/* end confdefs.h.  */
10542/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10543   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10544#define dlopen innocuous_dlopen
10545
10546/* System header to define __stub macros and hopefully few prototypes,
10547    which can conflict with char dlopen (); below.
10548    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10549    <limits.h> exists even on freestanding compilers.  */
10550
10551#ifdef __STDC__
10552# include <limits.h>
10553#else
10554# include <assert.h>
10555#endif
10556
10557#undef dlopen
10558
10559/* Override any gcc2 internal prototype to avoid an error.  */
10560#ifdef __cplusplus
10561extern "C"
10562{
10563#endif
10564/* We use char because int might match the return type of a gcc2
10565   builtin and then its argument prototype would still apply.  */
10566char dlopen ();
10567/* The GNU C library defines this for functions which it implements
10568    to always fail with ENOSYS.  Some functions are actually named
10569    something starting with __ and the normal name is an alias.  */
10570#if defined (__stub_dlopen) || defined (__stub___dlopen)
10571choke me
10572#else
10573char (*f) () = dlopen;
10574#endif
10575#ifdef __cplusplus
10576}
10577#endif
10578
10579int
10580main ()
10581{
10582return f != dlopen;
10583  ;
10584  return 0;
10585}
10586_ACEOF
10587rm -f conftest.$ac_objext conftest$ac_exeext
10588if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10589  (eval $ac_link) 2>conftest.er1
10590  ac_status=$?
10591  grep -v '^ *+' conftest.er1 >conftest.err
10592  rm -f conftest.er1
10593  cat conftest.err >&5
10594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10595  (exit $ac_status); } &&
10596         { ac_try='test -z "$ac_c_werror_flag"
10597                         || test ! -s conftest.err'
10598  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10599  (eval $ac_try) 2>&5
10600  ac_status=$?
10601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10602  (exit $ac_status); }; } &&
10603         { ac_try='test -s conftest$ac_exeext'
10604  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10605  (eval $ac_try) 2>&5
10606  ac_status=$?
10607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608  (exit $ac_status); }; }; then
10609  ac_cv_func_dlopen=yes
10610else
10611  echo "$as_me: failed program was:" >&5
10612sed 's/^/| /' conftest.$ac_ext >&5
10613
10614ac_cv_func_dlopen=no
10615fi
10616rm -f conftest.err conftest.$ac_objext \
10617      conftest$ac_exeext conftest.$ac_ext
10618fi
10619echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10620echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10621if test $ac_cv_func_dlopen = yes; then
10622  lt_cv_dlopen="dlopen"
10623else
10624  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10625echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10626if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10627  echo $ECHO_N "(cached) $ECHO_C" >&6
10628else
10629  ac_check_lib_save_LIBS=$LIBS
10630LIBS="-ldl  $LIBS"
10631cat >conftest.$ac_ext <<_ACEOF
10632/* confdefs.h.  */
10633_ACEOF
10634cat confdefs.h >>conftest.$ac_ext
10635cat >>conftest.$ac_ext <<_ACEOF
10636/* end confdefs.h.  */
10637
10638/* Override any gcc2 internal prototype to avoid an error.  */
10639#ifdef __cplusplus
10640extern "C"
10641#endif
10642/* We use char because int might match the return type of a gcc2
10643   builtin and then its argument prototype would still apply.  */
10644char dlopen ();
10645int
10646main ()
10647{
10648dlopen ();
10649  ;
10650  return 0;
10651}
10652_ACEOF
10653rm -f conftest.$ac_objext conftest$ac_exeext
10654if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10655  (eval $ac_link) 2>conftest.er1
10656  ac_status=$?
10657  grep -v '^ *+' conftest.er1 >conftest.err
10658  rm -f conftest.er1
10659  cat conftest.err >&5
10660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661  (exit $ac_status); } &&
10662         { ac_try='test -z "$ac_c_werror_flag"
10663                         || test ! -s conftest.err'
10664  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10665  (eval $ac_try) 2>&5
10666  ac_status=$?
10667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668  (exit $ac_status); }; } &&
10669         { ac_try='test -s conftest$ac_exeext'
10670  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10671  (eval $ac_try) 2>&5
10672  ac_status=$?
10673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10674  (exit $ac_status); }; }; then
10675  ac_cv_lib_dl_dlopen=yes
10676else
10677  echo "$as_me: failed program was:" >&5
10678sed 's/^/| /' conftest.$ac_ext >&5
10679
10680ac_cv_lib_dl_dlopen=no
10681fi
10682rm -f conftest.err conftest.$ac_objext \
10683      conftest$ac_exeext conftest.$ac_ext
10684LIBS=$ac_check_lib_save_LIBS
10685fi
10686echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10687echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10688if test $ac_cv_lib_dl_dlopen = yes; then
10689  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10690else
10691  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10692echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10693if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10694  echo $ECHO_N "(cached) $ECHO_C" >&6
10695else
10696  ac_check_lib_save_LIBS=$LIBS
10697LIBS="-lsvld  $LIBS"
10698cat >conftest.$ac_ext <<_ACEOF
10699/* confdefs.h.  */
10700_ACEOF
10701cat confdefs.h >>conftest.$ac_ext
10702cat >>conftest.$ac_ext <<_ACEOF
10703/* end confdefs.h.  */
10704
10705/* Override any gcc2 internal prototype to avoid an error.  */
10706#ifdef __cplusplus
10707extern "C"
10708#endif
10709/* We use char because int might match the return type of a gcc2
10710   builtin and then its argument prototype would still apply.  */
10711char dlopen ();
10712int
10713main ()
10714{
10715dlopen ();
10716  ;
10717  return 0;
10718}
10719_ACEOF
10720rm -f conftest.$ac_objext conftest$ac_exeext
10721if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10722  (eval $ac_link) 2>conftest.er1
10723  ac_status=$?