source: trunk/Clp/configure @ 1687

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

remove unnessary last argument of AC_COIN_MAIN_PACKAGEDIR; rerun autotools

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