source: trunk/Clp/configure @ 1655

Last change on this file since 1655 was 1655, checked in by mjs, 8 years ago

Relicense under the Eclipse Public License.

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