source: stable/1.13/Clp/configure @ 1715

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

restoring Clp/stable/1.13

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