source: stable/1.13/Clp/configure @ 1713

Last change on this file since 1713 was 1713, checked in by tkr, 9 years ago

temporarily committing release candidate

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