source: trunk/Cbc/configure @ 1484

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

use PCADDLIBS instead of ADDLIBS to setup .pc file; rerun autotools

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