source: stable/1.13/Clp/configure @ 1651

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

temporarily committing release candidate

  • Property svn:executable set to *
File size: 824.4 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for Clp 1.13.1.
4#
5# Report bugs to <clp@list.coin-or.org>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Common Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='Clp'
431PACKAGE_TARNAME='clp'
432PACKAGE_VERSION='1.13.1'
433PACKAGE_STRING='Clp 1.13.1'
434PACKAGE_BUGREPORT='clp@list.coin-or.org'
435
436ac_unique_file="src/ClpSimplex.cpp"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os ADDLIBS PCADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion CLP_SVN_REV COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC CXXDEFS ADD_CXXFLAGS DBG_CXXFLAGS OPT_CXXFLAGS CXX CXXFLAGS ac_ct_CXX COIN_CXX_IS_CL_TRUE COIN_CXX_IS_CL_FALSE MPICXX EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS PKG_CONFIG ac_pt_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED COINUTILS_LIBS COINUTILS_CFLAGS COINUTILS_DATA COINUTILS_DEPENDENCIES COINUTILS_LIBS_INSTALLED COINUTILS_CFLAGS_INSTALLED COINUTILS_DATA_INSTALLED CLPLIB_CFLAGS CLPLIB_LIBS CLPLIB_PCLIBS CLPLIB_PCREQUIRES CLPLIB_DEPENDENCIES CLPLIB_CFLAGS_INSTALLED CLPLIB_LIBS_INSTALLED COIN_HAS_COINUTILS_TRUE COIN_HAS_COINUTILS_FALSE OSI_LIBS OSI_CFLAGS OSI_DATA OSI_DEPENDENCIES OSI_LIBS_INSTALLED OSI_CFLAGS_INSTALLED OSI_DATA_INSTALLED OSICLPLIB_CFLAGS OSICLPLIB_LIBS OSICLPLIB_PCLIBS OSICLPLIB_PCREQUIRES OSICLPLIB_DEPENDENCIES OSICLPLIB_CFLAGS_INSTALLED OSICLPLIB_LIBS_INSTALLED COIN_HAS_OSI_TRUE COIN_HAS_OSI_FALSE OSITESTS_LIBS OSITESTS_CFLAGS OSITESTS_DATA OSITESTS_DEPENDENCIES OSITESTS_LIBS_INSTALLED OSITESTS_CFLAGS_INSTALLED OSITESTS_DATA_INSTALLED COIN_HAS_OSITESTS_TRUE COIN_HAS_OSITESTS_FALSE SAMPLE_LIBS SAMPLE_CFLAGS SAMPLE_DATA SAMPLE_DEPENDENCIES SAMPLE_LIBS_INSTALLED SAMPLE_CFLAGS_INSTALLED SAMPLE_DATA_INSTALLED COIN_HAS_SAMPLE_TRUE COIN_HAS_SAMPLE_FALSE NETLIB_LIBS NETLIB_CFLAGS NETLIB_DATA NETLIB_DEPENDENCIES NETLIB_LIBS_INSTALLED NETLIB_CFLAGS_INSTALLED NETLIB_DATA_INSTALLED COIN_HAS_NETLIB_TRUE COIN_HAS_NETLIB_FALSE coin_have_doxygen coin_doxy_usedot coin_doxy_tagname coin_doxy_logname coin_doxy_tagfiles coin_doxy_excludes LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_CXXDEFS_set=${CXXDEFS+set}
953ac_env_CXXDEFS_value=$CXXDEFS
954ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
955ac_cv_env_CXXDEFS_value=$CXXDEFS
956ac_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
957ac_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
958ac_cv_env_ADD_CXXFLAGS_set=${ADD_CXXFLAGS+set}
959ac_cv_env_ADD_CXXFLAGS_value=$ADD_CXXFLAGS
960ac_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
961ac_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
962ac_cv_env_DBG_CXXFLAGS_set=${DBG_CXXFLAGS+set}
963ac_cv_env_DBG_CXXFLAGS_value=$DBG_CXXFLAGS
964ac_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
965ac_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
966ac_cv_env_OPT_CXXFLAGS_set=${OPT_CXXFLAGS+set}
967ac_cv_env_OPT_CXXFLAGS_value=$OPT_CXXFLAGS
968ac_env_CXX_set=${CXX+set}
969ac_env_CXX_value=$CXX
970ac_cv_env_CXX_set=${CXX+set}
971ac_cv_env_CXX_value=$CXX
972ac_env_CXXFLAGS_set=${CXXFLAGS+set}
973ac_env_CXXFLAGS_value=$CXXFLAGS
974ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
975ac_cv_env_CXXFLAGS_value=$CXXFLAGS
976ac_env_MPICXX_set=${MPICXX+set}
977ac_env_MPICXX_value=$MPICXX
978ac_cv_env_MPICXX_set=${MPICXX+set}
979ac_cv_env_MPICXX_value=$MPICXX
980ac_env_CPP_set=${CPP+set}
981ac_env_CPP_value=$CPP
982ac_cv_env_CPP_set=${CPP+set}
983ac_cv_env_CPP_value=$CPP
984ac_env_CXXCPP_set=${CXXCPP+set}
985ac_env_CXXCPP_value=$CXXCPP
986ac_cv_env_CXXCPP_set=${CXXCPP+set}
987ac_cv_env_CXXCPP_value=$CXXCPP
988ac_env_F77_set=${F77+set}
989ac_env_F77_value=$F77
990ac_cv_env_F77_set=${F77+set}
991ac_cv_env_F77_value=$F77
992ac_env_FFLAGS_set=${FFLAGS+set}
993ac_env_FFLAGS_value=$FFLAGS
994ac_cv_env_FFLAGS_set=${FFLAGS+set}
995ac_cv_env_FFLAGS_value=$FFLAGS
996ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
997ac_env_PKG_CONFIG_value=$PKG_CONFIG
998ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
999ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
1000
1001#
1002# Report the --help message.
1003#
1004if test "$ac_init_help" = "long"; then
1005  # Omit some internal or obsolete options to make the list less imposing.
1006  # This message is too long to be a string in the A/UX 3.1 sh.
1007  cat <<_ACEOF
1008\`configure' configures Clp 1.13.1 to adapt to many kinds of systems.
1009
1010Usage: $0 [OPTION]... [VAR=VALUE]...
1011
1012To assign environment variables (e.g., CC, CFLAGS...), specify them as
1013VAR=VALUE.  See below for descriptions of some of the useful variables.
1014
1015Defaults for the options are specified in brackets.
1016
1017Configuration:
1018  -h, --help              display this help and exit
1019      --help=short        display options specific to this package
1020      --help=recursive    display the short help of all the included packages
1021  -V, --version           display version information and exit
1022  -q, --quiet, --silent   do not print \`checking...' messages
1023      --cache-file=FILE   cache test results in FILE [disabled]
1024  -C, --config-cache      alias for \`--cache-file=config.cache'
1025  -n, --no-create         do not create output files
1026      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1027
1028_ACEOF
1029
1030  cat <<_ACEOF
1031Installation directories:
1032  --prefix=PREFIX         install architecture-independent files in PREFIX
1033                          [$ac_default_prefix]
1034  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1035                          [PREFIX]
1036
1037By default, \`make install' will install all the files in
1038\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1039an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1040for instance \`--prefix=\$HOME'.
1041
1042For better control, use the options below.
1043
1044Fine tuning of the installation directories:
1045  --bindir=DIR           user executables [EPREFIX/bin]
1046  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1047  --libexecdir=DIR       program executables [EPREFIX/libexec]
1048  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1049  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1050  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1051  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1052  --libdir=DIR           object code libraries [EPREFIX/lib]
1053  --includedir=DIR       C header files [PREFIX/include]
1054  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1055  --infodir=DIR          info documentation [PREFIX/info]
1056  --mandir=DIR           man documentation [PREFIX/man]
1057_ACEOF
1058
1059  cat <<\_ACEOF
1060
1061Program names:
1062  --program-prefix=PREFIX            prepend PREFIX to installed program names
1063  --program-suffix=SUFFIX            append SUFFIX to installed program names
1064  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1065
1066System types:
1067  --build=BUILD     configure for building on BUILD [guessed]
1068  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1069_ACEOF
1070fi
1071
1072if test -n "$ac_init_help"; then
1073  case $ac_init_help in
1074     short | recursive ) echo "Configuration of Clp 1.13.1:";;
1075   esac
1076  cat <<\_ACEOF
1077
1078Optional Features:
1079  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1080  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1081  --enable-debug          compile all projects with debug options tests
1082  --enable-debug-clp compile this project (Clp) with debug options
1083  --enable-doscompile     Under Cygwin, compile so that executables run under
1084                          DOS. Set to mingw to use gcc/g++/ld with
1085                          -mno-cygwin. Set to msvc to use cl/link (or
1086                          icl/link). Default when mentioned: mingw. Default
1087                          when not mentioned: disabled.
1088  --enable-static[=PKGS]
1089                          build static libraries [default=no]
1090  --disable-dependency-tracking  speeds up one-time build
1091  --enable-dependency-tracking   do not reject slow dependency extractors
1092  --enable-maintainer-mode  enable make rules and dependencies not useful
1093                          (and sometimes confusing) to the casual installer
1094  --enable-shared[=PKGS]
1095                          build shared libraries [default=yes]
1096  --enable-fast-install[=PKGS]
1097                          optimize for fast installation [default=yes]
1098  --disable-libtool-lock  avoid locking (might break parallel builds)
1099  --enable-pkg-config     use pkg-config if available (default is yes)
1100  --enable-gnu-packages   compile with GNU packages (disabled by default)
1101
1102Optional Packages:
1103  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1104  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1105  --with-clp-verbosity specify the debug verbosity level for project Clp
1106  --with-clp-checklevel specify the sanity check level for project Clp
1107  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1108  --with-pic              try to use only PIC/non-PIC objects [default=use
1109                          both]
1110  --with-tags[=TAGS]
1111                          include additional configurations [automatic]
1112  --with-coin-instdir     prefix of installation directory for precompiled
1113                          COIN packages
1114  --with-coinutils-lib linker flags for using package CoinUtils
1115  --with-coinutils-incdir directory with header files for using package
1116                          CoinUtils
1117  --with-coinutils-datadir
1118                          directory with data files for using package
1119                          CoinUtils
1120  --with-osi-lib linker flags for using package Osi
1121  --with-osi-incdir directory with header files for using package Osi
1122  --with-osi-datadir directory with data files for using package Osi
1123  --with-ositests-lib linker flags for using package OsiTests
1124  --with-ositests-incdir directory with header files for using package
1125                          OsiTests
1126  --with-ositests-datadir directory with data files for using package OsiTests
1127  --with-sample-lib linker flags for using package Sample
1128  --with-sample-incdir directory with header files for using package Sample
1129  --with-sample-datadir directory with data files for using package Sample
1130  --with-netlib-lib linker flags for using package Netlib
1131  --with-netlib-incdir directory with header files for using package Netlib
1132  --with-netlib-datadir directory with data files for using package Netlib
1133  --with-wsmp             specify WSMP library
1134  --with-dot              use dot (from graphviz) when creating documentation
1135                          with doxygen if available; --without-dot to disable
1136
1137Some influential environment variables:
1138  CDEFS       Additional -D flags to be used when compiling C code.
1139  ADD_CFLAGS  Additional C compiler options
1140  DBG_CFLAGS  Debug C compiler options
1141  OPT_CFLAGS  Optimize C compiler options
1142  CC          C compiler command
1143  CFLAGS      C compiler flags
1144  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1145              nonstandard directory <lib dir>
1146  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1147              headers in a nonstandard directory <include dir>
1148  MPICC       C MPI Compiler
1149  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1150  ADD_CXXFLAGS
1151              Additional C++ compiler options
1152  DBG_CXXFLAGS
1153              Debug C++ compiler options
1154  OPT_CXXFLAGS
1155              Optimize C++ compiler options
1156  CXX         C++ compiler command
1157  CXXFLAGS    C++ compiler flags
1158  MPICXX      C++ MPI Compiler
1159  CPP         C preprocessor
1160  CXXCPP      C++ preprocessor
1161  F77         Fortran 77 compiler command
1162  FFLAGS      Fortran 77 compiler flags
1163  PKG_CONFIG  path to pkg-config utility
1164
1165Use these variables to override the choices made by `configure' or to help
1166it to find libraries and programs with nonstandard names/locations.
1167
1168Report bugs to <clp@list.coin-or.org>.
1169_ACEOF
1170fi
1171
1172if test "$ac_init_help" = "recursive"; then
1173  # If there are subdirs, report their specific --help.
1174  ac_popdir=`pwd`
1175  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1176    test -d $ac_dir || continue
1177    ac_builddir=.
1178
1179if test "$ac_dir" != .; then
1180  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1181  # A "../" for each directory in $ac_dir_suffix.
1182  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1183else
1184  ac_dir_suffix= ac_top_builddir=
1185fi
1186
1187case $srcdir in
1188  .)  # No --srcdir option.  We are building in place.
1189    ac_srcdir=.
1190    if test -z "$ac_top_builddir"; then
1191       ac_top_srcdir=.
1192    else
1193       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1194    fi ;;
1195  [\\/]* | ?:[\\/]* )  # Absolute path.
1196    ac_srcdir=$srcdir$ac_dir_suffix;
1197    ac_top_srcdir=$srcdir ;;
1198  *) # Relative path.
1199    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1200    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1201esac
1202
1203# Do not use `cd foo && pwd` to compute absolute paths, because
1204# the directories may not exist.
1205case `pwd` in
1206.) ac_abs_builddir="$ac_dir";;
1207*)
1208  case "$ac_dir" in
1209  .) ac_abs_builddir=`pwd`;;
1210  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1211  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1212  esac;;
1213esac
1214case $ac_abs_builddir in
1215.) ac_abs_top_builddir=${ac_top_builddir}.;;
1216*)
1217  case ${ac_top_builddir}. in
1218  .) ac_abs_top_builddir=$ac_abs_builddir;;
1219  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1220  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1221  esac;;
1222esac
1223case $ac_abs_builddir in
1224.) ac_abs_srcdir=$ac_srcdir;;
1225*)
1226  case $ac_srcdir in
1227  .) ac_abs_srcdir=$ac_abs_builddir;;
1228  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1229  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1230  esac;;
1231esac
1232case $ac_abs_builddir in
1233.) ac_abs_top_srcdir=$ac_top_srcdir;;
1234*)
1235  case $ac_top_srcdir in
1236  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1237  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1238  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1239  esac;;
1240esac
1241
1242    cd $ac_dir
1243    # Check for guested configure; otherwise get Cygnus style configure.
1244    if test -f $ac_srcdir/configure.gnu; then
1245      echo
1246      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1247    elif test -f $ac_srcdir/configure; then
1248      echo
1249      $SHELL $ac_srcdir/configure  --help=recursive
1250    elif test -f $ac_srcdir/configure.ac ||
1251           test -f $ac_srcdir/configure.in; then
1252      echo
1253      $ac_configure --help
1254    else
1255      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1256    fi
1257    cd $ac_popdir
1258  done
1259fi
1260
1261test -n "$ac_init_help" && exit 0
1262if $ac_init_version; then
1263  cat <<\_ACEOF
1264Clp configure 1.13.1
1265generated by GNU Autoconf 2.59
1266
1267Copyright (C) 2003 Free Software Foundation, Inc.
1268This configure script is free software; the Free Software Foundation
1269gives unlimited permission to copy, distribute and modify it.
1270
1271
1272Copyright 2006 International Business Machines and others.
1273All Rights Reserved.
1274This file is part of the open source package Coin which is distributed
1275under the Common Public License.
1276_ACEOF
1277  exit 0
1278fi
1279exec 5>config.log
1280cat >&5 <<_ACEOF
1281This file contains any messages produced by compilers while
1282running configure, to aid debugging if configure makes a mistake.
1283
1284It was created by Clp $as_me 1.13.1, which was
1285generated by GNU Autoconf 2.59.  Invocation command line was
1286
1287  $ $0 $@
1288
1289_ACEOF
1290{
1291cat <<_ASUNAME
1292## --------- ##
1293## Platform. ##
1294## --------- ##
1295
1296hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1297uname -m = `(uname -m) 2>/dev/null || echo unknown`
1298uname -r = `(uname -r) 2>/dev/null || echo unknown`
1299uname -s = `(uname -s) 2>/dev/null || echo unknown`
1300uname -v = `(uname -v) 2>/dev/null || echo unknown`
1301
1302/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1303/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1304
1305/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1306/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1307/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1308hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1309/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1310/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1311/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1312
1313_ASUNAME
1314
1315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1316for as_dir in $PATH
1317do
1318  IFS=$as_save_IFS
1319  test -z "$as_dir" && as_dir=.
1320  echo "PATH: $as_dir"
1321done
1322
1323} >&5
1324
1325cat >&5 <<_ACEOF
1326
1327
1328## ----------- ##
1329## Core tests. ##
1330## ----------- ##
1331
1332_ACEOF
1333
1334
1335# Keep a trace of the command line.
1336# Strip out --no-create and --no-recursion so they do not pile up.
1337# Strip out --silent because we don't want to record it for future runs.
1338# Also quote any args containing shell meta-characters.
1339# Make two passes to allow for proper duplicate-argument suppression.
1340ac_configure_args=
1341ac_configure_args0=
1342ac_configure_args1=
1343ac_sep=
1344ac_must_keep_next=false
1345for ac_pass in 1 2
1346do
1347  for ac_arg
1348  do
1349    case $ac_arg in
1350    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1351    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1352    | -silent | --silent | --silen | --sile | --sil)
1353      continue ;;
1354    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1355      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1356    esac
1357    case $ac_pass in
1358    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1359    2)
1360      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1361      if test $ac_must_keep_next = true; then
1362        ac_must_keep_next=false # Got value, back to normal.
1363      else
1364        case $ac_arg in
1365          *=* | --config-cache | -C | -disable-* | --disable-* \
1366          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1367          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1368          | -with-* | --with-* | -without-* | --without-* | --x)
1369            case "$ac_configure_args0 " in
1370              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1371            esac
1372            ;;
1373          -* ) ac_must_keep_next=true ;;
1374        esac
1375      fi
1376      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1377      # Get rid of the leading space.
1378      ac_sep=" "
1379      ;;
1380    esac
1381  done
1382done
1383$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1384$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1385
1386# When interrupted or exit'd, cleanup temporary files, and complete
1387# config.log.  We remove comments because anyway the quotes in there
1388# would cause problems or look ugly.
1389# WARNING: Be sure not to use single quotes in there, as some shells,
1390# such as our DU 5.0 friend, will then `close' the trap.
1391trap 'exit_status=$?
1392  # Save into config.log some information that might help in debugging.
1393  {
1394    echo
1395
1396    cat <<\_ASBOX
1397## ---------------- ##
1398## Cache variables. ##
1399## ---------------- ##
1400_ASBOX
1401    echo
1402    # The following way of writing the cache mishandles newlines in values,
1403{
1404  (set) 2>&1 |
1405    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1406    *ac_space=\ *)
1407      sed -n \
1408        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1409          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1410      ;;
1411    *)
1412      sed -n \
1413        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1414      ;;
1415    esac;
1416}
1417    echo
1418
1419    cat <<\_ASBOX
1420## ----------------- ##
1421## Output variables. ##
1422## ----------------- ##
1423_ASBOX
1424    echo
1425    for ac_var in $ac_subst_vars
1426    do
1427      eval ac_val=$`echo $ac_var`
1428      echo "$ac_var='"'"'$ac_val'"'"'"
1429    done | sort
1430    echo
1431
1432    if test -n "$ac_subst_files"; then
1433      cat <<\_ASBOX
1434## ------------- ##
1435## Output files. ##
1436## ------------- ##
1437_ASBOX
1438      echo
1439      for ac_var in $ac_subst_files
1440      do
1441        eval ac_val=$`echo $ac_var`
1442        echo "$ac_var='"'"'$ac_val'"'"'"
1443      done | sort
1444      echo
1445    fi
1446
1447    if test -s confdefs.h; then
1448      cat <<\_ASBOX
1449## ----------- ##
1450## confdefs.h. ##
1451## ----------- ##
1452_ASBOX
1453      echo
1454      sed "/^$/d" confdefs.h | sort
1455      echo
1456    fi
1457    test "$ac_signal" != 0 &&
1458      echo "$as_me: caught signal $ac_signal"
1459    echo "$as_me: exit $exit_status"
1460  } >&5
1461  rm -f core *.core &&
1462  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1463    exit $exit_status
1464     ' 0
1465for ac_signal in 1 2 13 15; do
1466  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1467done
1468ac_signal=0
1469
1470# confdefs.h avoids OS command line length limits that DEFS can exceed.
1471rm -rf conftest* confdefs.h
1472# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1473echo >confdefs.h
1474
1475# Predefined preprocessor variables.
1476
1477cat >>confdefs.h <<_ACEOF
1478#define PACKAGE_NAME "$PACKAGE_NAME"
1479_ACEOF
1480
1481
1482cat >>confdefs.h <<_ACEOF
1483#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1484_ACEOF
1485
1486
1487cat >>confdefs.h <<_ACEOF
1488#define PACKAGE_VERSION "$PACKAGE_VERSION"
1489_ACEOF
1490
1491
1492cat >>confdefs.h <<_ACEOF
1493#define PACKAGE_STRING "$PACKAGE_STRING"
1494_ACEOF
1495
1496
1497cat >>confdefs.h <<_ACEOF
1498#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1499_ACEOF
1500
1501
1502# Let the site file select an alternate cache file if it wants to.
1503# Prefer explicitly selected file to automatically selected ones.
1504if test -z "$CONFIG_SITE"; then
1505  if test "x$prefix" != xNONE; then
1506    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1507  else
1508    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1509  fi
1510fi
1511for ac_site_file in $CONFIG_SITE; do
1512  if test -r "$ac_site_file"; then
1513    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1514echo "$as_me: loading site script $ac_site_file" >&6;}
1515    sed 's/^/| /' "$ac_site_file" >&5
1516    . "$ac_site_file"
1517  fi
1518done
1519
1520if test -r "$cache_file"; then
1521  # Some versions of bash will fail to source /dev/null (special
1522  # files actually), so we avoid doing that.
1523  if test -f "$cache_file"; then
1524    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1525echo "$as_me: loading cache $cache_file" >&6;}
1526    case $cache_file in
1527      [\\/]* | ?:[\\/]* ) . $cache_file;;
1528      *)                      . ./$cache_file;;
1529    esac
1530  fi
1531else
1532  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1533echo "$as_me: creating cache $cache_file" >&6;}
1534  >$cache_file
1535fi
1536
1537# Check that the precious variables saved in the cache have kept the same
1538# value.
1539ac_cache_corrupted=false
1540for ac_var in `(set) 2>&1 |
1541               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1542  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1543  eval ac_new_set=\$ac_env_${ac_var}_set
1544  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1545  eval ac_new_val="\$ac_env_${ac_var}_value"
1546  case $ac_old_set,$ac_new_set in
1547    set,)
1548      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1549echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1550      ac_cache_corrupted=: ;;
1551    ,set)
1552      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1553echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1554      ac_cache_corrupted=: ;;
1555    ,);;
1556    *)
1557      if test "x$ac_old_val" != "x$ac_new_val"; then
1558        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1559echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1560        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1561echo "$as_me:   former value:  $ac_old_val" >&2;}
1562        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1563echo "$as_me:   current value: $ac_new_val" >&2;}
1564        ac_cache_corrupted=:
1565      fi;;
1566  esac
1567  # Pass precious variables to config.status.
1568  if test "$ac_new_set" = set; then
1569    case $ac_new_val in
1570    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1571      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1572    *) ac_arg=$ac_var=$ac_new_val ;;
1573    esac
1574    case " $ac_configure_args " in
1575      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1576      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1577    esac
1578  fi
1579done
1580if $ac_cache_corrupted; then
1581  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1582echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1583  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1584echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1585   { (exit 1); exit 1; }; }
1586fi
1587
1588ac_ext=c
1589ac_cpp='$CPP $CPPFLAGS'
1590ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1591ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1592ac_compiler_gnu=$ac_cv_c_compiler_gnu
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623# List one file in the package so that the configure script can test
1624# whether the package is actually there
1625
1626
1627# Where should everything be installed by default?  Here, we want it
1628# to be installed directly in 'bin', 'lib', 'include' subdirectories
1629# of the directory where configure is run.  The default would be
1630# /usr/local.
1631
1632
1633#############################################################################
1634#                         Standard build tool stuff                         #
1635#############################################################################
1636
1637# Get the system type
1638ac_aux_dir=
1639for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1640  if test -f $ac_dir/install-sh; then
1641    ac_aux_dir=$ac_dir
1642    ac_install_sh="$ac_aux_dir/install-sh -c"
1643    break
1644  elif test -f $ac_dir/install.sh; then
1645    ac_aux_dir=$ac_dir
1646    ac_install_sh="$ac_aux_dir/install.sh -c"
1647    break
1648  elif test -f $ac_dir/shtool; then
1649    ac_aux_dir=$ac_dir
1650    ac_install_sh="$ac_aux_dir/shtool install -c"
1651    break
1652  fi
1653done
1654if test -z "$ac_aux_dir"; then
1655  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1656echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1657   { (exit 1); exit 1; }; }
1658fi
1659ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1660ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1661ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1662
1663# Make sure we can run config.sub.
1664$ac_config_sub sun4 >/dev/null 2>&1 ||
1665  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1666echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1667   { (exit 1); exit 1; }; }
1668
1669echo "$as_me:$LINENO: checking build system type" >&5
1670echo $ECHO_N "checking build system type... $ECHO_C" >&6
1671if test "${ac_cv_build+set}" = set; then
1672  echo $ECHO_N "(cached) $ECHO_C" >&6
1673else
1674  ac_cv_build_alias=$build_alias
1675test -z "$ac_cv_build_alias" &&
1676  ac_cv_build_alias=`$ac_config_guess`
1677test -z "$ac_cv_build_alias" &&
1678  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1679echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1680   { (exit 1); exit 1; }; }
1681ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1682  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1683echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1684   { (exit 1); exit 1; }; }
1685
1686fi
1687echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1688echo "${ECHO_T}$ac_cv_build" >&6
1689build=$ac_cv_build
1690build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1691build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1692build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1693
1694
1695
1696# If this project depends on external projects, the Externals file in
1697# the source root directory contains definition of where to find those
1698# externals.  The following macro ensures that those externals are
1699# retrieved by svn if they are not there yet.
1700# Initialize the ADDLIBS variable
1701ADDLIBS="-lm $LIBS"
1702
1703
1704# Initialize the PCADDLIBS variable.
1705# This variable is used to setup library flags for the "Libs:" section in a .pc file.
1706# In certain cases, it may contain more flags than the ADDLIBS variable.
1707PCADDLIBS=""
1708
1709
1710# As backup, we make sure we don't loose an FLIBS if it has been set
1711# by the user
1712save_FLIBS="$FLIBS"
1713
1714# Initialize the FADDLIBS variable (which is to be used with a fortran
1715# compiler and will not include FLIBS)
1716FADDLIBS="$LIBS"
1717
1718
1719# A useful makefile conditional that is always false
1720
1721
1722if false; then
1723  ALWAYS_FALSE_TRUE=
1724  ALWAYS_FALSE_FALSE='#'
1725else
1726  ALWAYS_FALSE_TRUE='#'
1727  ALWAYS_FALSE_FALSE=
1728fi
1729
1730
1731# We set the following variable so that we know later in AC_COIN_FINALIZE
1732# that we are in a project main directory
1733coin_projectdir=yes
1734
1735# Set the project's version number
1736if test "xClp" != x; then
1737
1738cat >>confdefs.h <<_ACEOF
1739#define CLP_VERSION "$PACKAGE_VERSION"
1740_ACEOF
1741
1742fi
1743
1744# Set the project's SVN revision number. The complicated sed expression
1745# (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1746# as a single number.
1747# Extract the first word of "svnversion", so it can be a program name with args.
1748set dummy svnversion; ac_word=$2
1749echo "$as_me:$LINENO: checking for $ac_word" >&5
1750echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1751if test "${ac_cv_prog_have_svnversion+set}" = set; then
1752  echo $ECHO_N "(cached) $ECHO_C" >&6
1753else
1754  if test -n "$have_svnversion"; then
1755  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1756else
1757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1758for as_dir in $PATH
1759do
1760  IFS=$as_save_IFS
1761  test -z "$as_dir" && as_dir=.
1762  for ac_exec_ext in '' $ac_executable_extensions; do
1763  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1764    ac_cv_prog_have_svnversion="yes"
1765    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1766    break 2
1767  fi
1768done
1769done
1770
1771  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1772fi
1773fi
1774have_svnversion=$ac_cv_prog_have_svnversion
1775if test -n "$have_svnversion"; then
1776  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1777echo "${ECHO_T}$have_svnversion" >&6
1778else
1779  echo "$as_me:$LINENO: result: no" >&5
1780echo "${ECHO_T}no" >&6
1781fi
1782
1783if test "x$have_svnversion" = xyes && test "xClp" != x; then
1784
1785  svn_rev_tmp=`cd $srcdir/$coin_has_clp ; svnversion`
1786  CLP_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1787  if test $CLP_SVN_REV != exported; then
1788
1789cat >>confdefs.h <<_ACEOF
1790#define CLP_SVN_REV $CLP_SVN_REV
1791_ACEOF
1792
1793  fi
1794fi
1795
1796# Capture libtool library version, if given.
1797coin_libversion=11:1:10
1798
1799
1800
1801# Check if user wants to produce debugging code
1802
1803echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1804echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1805
1806# Check whether --enable-debug or --disable-debug was given.
1807if test "${enable_debug+set}" = set; then
1808  enableval="$enable_debug"
1809  case "${enableval}" in
1810   yes) coin_debug_compile=true
1811        if test "${enable_shared+set}" = set; then :; else
1812          enable_shared=no
1813        fi
1814        ;;
1815   no)  coin_debug_compile=false
1816        ;;
1817   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1818echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1819   { (exit 1); exit 1; }; }
1820        ;;
1821esac
1822else
1823  coin_debug_compile=false
1824fi;
1825
1826# Check whether --enable-debug-clp or --disable-debug-clp was given.
1827if test "${enable_debug_clp+set}" = set; then
1828  enableval="$enable_debug_clp"
1829  case "${enableval}" in
1830    yes) coin_debug_compile=true
1831         enable_shared=no
1832         ;;
1833    no)  coin_debug_compile=false
1834         ;;
1835    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-clp" >&5
1836echo "$as_me: error: bad value ${enableval} for --enable-debug-clp" >&2;}
1837   { (exit 1); exit 1; }; }
1838         ;;
1839 esac
1840else
1841  :
1842fi;
1843
1844 # m4_ifvaln([Clp],
1845
1846if test $coin_debug_compile = true; then
1847  echo "$as_me:$LINENO: result: yes" >&5
1848echo "${ECHO_T}yes" >&6
1849else
1850  echo "$as_me:$LINENO: result: no" >&5
1851echo "${ECHO_T}no" >&6
1852fi
1853
1854
1855# Check whether --with-clp-verbosity or --without-clp-verbosity was given.
1856if test "${with_clp_verbosity+set}" = set; then
1857  withval="$with_clp_verbosity"
1858  if test "$withval" = yes; then
1859                withval=1
1860              fi
1861              coin_clp_verbosity=$withval
1862else
1863  coin_clp_verbosity=0
1864fi;
1865
1866cat >>confdefs.h <<_ACEOF
1867#define COIN_CLP_VERBOSITY $coin_clp_verbosity
1868_ACEOF
1869
1870
1871
1872# Check whether --with-clp-checklevel or --without-clp-checklevel was given.
1873if test "${with_clp_checklevel+set}" = set; then
1874  withval="$with_clp_checklevel"
1875  if test "$withval" = yes; then
1876                withval=1
1877              fi
1878              coin_clp_checklevel=$withval
1879else
1880  coin_clp_checklevel=0
1881fi;
1882
1883cat >>confdefs.h <<_ACEOF
1884#define COIN_CLP_CHECKLEVEL $coin_clp_checklevel
1885_ACEOF
1886
1887
1888# We use the following variable to have a string with the upper case
1889# version of the project name
1890COIN_PRJCT=CLP
1891
1892
1893 # m4_ifvaln([Clp],
1894
1895
1896
1897# Get the name of the C++ compiler and appropriate compiler options
1898case $build in
1899  *-mingw*)
1900    if test "${LD+set}" = set; then :; else
1901      LD=link
1902    fi
1903    ;;
1904 esac
1905 case $enable_doscompile in
1906   msvc)
1907     if test "x${LD+set}" = xset; then :; else
1908       LD=link
1909     fi
1910     ;;
1911 esac
1912
1913
1914 # Check whether --enable-doscompile or --disable-doscompile was given.
1915if test "${enable_doscompile+set}" = set; then
1916  enableval="$enable_doscompile"
1917  if test "$enable_doscompile" != no; then
1918     case $build in
1919       *-cygwin* | *-mingw*) ;;
1920       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1921echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1922   { (exit 1); exit 1; }; } ;;
1923     esac
1924   fi
1925else
1926  enable_doscompile=no
1927fi;
1928 case "$enable_doscompile" in
1929   mingw)
1930     case $build in
1931       *-mingw*) enable_doscompile=no ;;
1932     esac
1933     ;;
1934   msvc|no) ;;
1935   yes) enable_doscompile=mingw ;;
1936   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1937                    Try configure --help=recursive." >&5
1938echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1939                    Try configure --help=recursive." >&2;}
1940   { (exit 1); exit 1; }; }
1941      ;;
1942  esac
1943  if test "$enable_doscompile" != no ; then
1944    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1945echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1946  fi
1947
1948
1949
1950
1951ac_ext=c
1952ac_cpp='$CPP $CPPFLAGS'
1953ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1954ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1955ac_compiler_gnu=$ac_cv_c_compiler_gnu
1956
1957
1958# For consistency, we set the C compiler to the same value of the C++
1959# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1960if test x"$CXX" != x; then
1961  case "$CXX" in
1962    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1963      if test x"$CC" = x; then
1964        CC="$CXX"
1965        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1966echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1967      fi
1968      ;;
1969  esac
1970fi
1971
1972# add automake conditional so we can recognize cl compiler in makefile
1973coin_cc_is_cl=false
1974if test x"$CXX" != x; then
1975  case "$CXX" in
1976    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1977      coin_cc_is_cl=true
1978      ;;
1979  esac
1980fi
1981
1982
1983if test $coin_cc_is_cl = true; then
1984  COIN_CC_IS_CL_TRUE=
1985  COIN_CC_IS_CL_FALSE='#'
1986else
1987  COIN_CC_IS_CL_TRUE='#'
1988  COIN_CC_IS_CL_FALSE=
1989fi
1990
1991
1992
1993
1994
1995
1996
1997coin_has_cc=yes
1998
1999save_cflags="$CFLAGS"
2000
2001# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
2002# Depending on the user's PATH, when Studio/Workshop cc is not present we may
2003# find /usr/ucb/cc, which is almost certainly not a good choice for the C
2004# compiler. In this case, put cc after gcc.
2005
2006case $build in
2007  *-cygwin* | *-mingw*)
2008             if test "$enable_doscompile" = msvc ; then
2009               comps="icl cl"
2010             else
2011               comps="gcc cl"
2012             fi ;;
2013  *-*-solaris*)
2014             # Extract the first word of "cc", so it can be a program name with args.
2015set dummy cc; ac_word=$2
2016echo "$as_me:$LINENO: checking for $ac_word" >&5
2017echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2018if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
2019  echo $ECHO_N "(cached) $ECHO_C" >&6
2020else
2021  if test -n "$sol_cc_compiler"; then
2022  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
2023else
2024  ac_prog_rejected=no
2025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2026for as_dir in $PATH
2027do
2028  IFS=$as_save_IFS
2029  test -z "$as_dir" && as_dir=.
2030  for ac_exec_ext in '' $ac_executable_extensions; do
2031  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2032    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2033       ac_prog_rejected=yes
2034       continue
2035     fi
2036    ac_cv_prog_sol_cc_compiler="cc"
2037    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2038    break 2
2039  fi
2040done
2041done
2042
2043if test $ac_prog_rejected = yes; then
2044  # We found a bogon in the path, so make sure we never use it.
2045  set dummy $ac_cv_prog_sol_cc_compiler
2046  shift
2047  if test $# != 0; then
2048    # We chose a different compiler from the bogus one.
2049    # However, it has the same basename, so the bogon will be chosen
2050    # first if we set sol_cc_compiler to just the basename; use the full file name.
2051    shift
2052    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2053  fi
2054fi
2055fi
2056fi
2057sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2058if test -n "$sol_cc_compiler"; then
2059  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2060echo "${ECHO_T}$sol_cc_compiler" >&6
2061else
2062  echo "$as_me:$LINENO: result: no" >&5
2063echo "${ECHO_T}no" >&6
2064fi
2065
2066             if test "$sol_cc_compiler" = "cc" ; then
2067               comps="cc xlc gcc pgcc icc"
2068             else
2069               comps="xlc gcc pgcc icc cc"
2070             fi
2071             ;;
2072  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2073  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2074esac
2075
2076# We delete the cached value, since the test might not have been
2077# performed with our choice of compilers earlier
2078$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2079# AC_MSG_NOTICE([C compiler candidates: $comps])
2080ac_ext=c
2081ac_cpp='$CPP $CPPFLAGS'
2082ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2083ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2084ac_compiler_gnu=$ac_cv_c_compiler_gnu
2085if test -n "$ac_tool_prefix"; then
2086  for ac_prog in $comps
2087  do
2088    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2089set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2090echo "$as_me:$LINENO: checking for $ac_word" >&5
2091echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2092if test "${ac_cv_prog_CC+set}" = set; then
2093  echo $ECHO_N "(cached) $ECHO_C" >&6
2094else
2095  if test -n "$CC"; then
2096  ac_cv_prog_CC="$CC" # Let the user override the test.
2097else
2098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2099for as_dir in $PATH
2100do
2101  IFS=$as_save_IFS
2102  test -z "$as_dir" && as_dir=.
2103  for ac_exec_ext in '' $ac_executable_extensions; do
2104  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2105    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2106    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2107    break 2
2108  fi
2109done
2110done
2111
2112fi
2113fi
2114CC=$ac_cv_prog_CC
2115if test -n "$CC"; then
2116  echo "$as_me:$LINENO: result: $CC" >&5
2117echo "${ECHO_T}$CC" >&6
2118else
2119  echo "$as_me:$LINENO: result: no" >&5
2120echo "${ECHO_T}no" >&6
2121fi
2122
2123    test -n "$CC" && break
2124  done
2125fi
2126if test -z "$CC"; then
2127  ac_ct_CC=$CC
2128  for ac_prog in $comps
2129do
2130  # Extract the first word of "$ac_prog", so it can be a program name with args.
2131set dummy $ac_prog; ac_word=$2
2132echo "$as_me:$LINENO: checking for $ac_word" >&5
2133echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2134if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2135  echo $ECHO_N "(cached) $ECHO_C" >&6
2136else
2137  if test -n "$ac_ct_CC"; then
2138  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2139else
2140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2141for as_dir in $PATH
2142do
2143  IFS=$as_save_IFS
2144  test -z "$as_dir" && as_dir=.
2145  for ac_exec_ext in '' $ac_executable_extensions; do
2146  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2147    ac_cv_prog_ac_ct_CC="$ac_prog"
2148    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2149    break 2
2150  fi
2151done
2152done
2153
2154fi
2155fi
2156ac_ct_CC=$ac_cv_prog_ac_ct_CC
2157if test -n "$ac_ct_CC"; then
2158  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2159echo "${ECHO_T}$ac_ct_CC" >&6
2160else
2161  echo "$as_me:$LINENO: result: no" >&5
2162echo "${ECHO_T}no" >&6
2163fi
2164
2165  test -n "$ac_ct_CC" && break
2166done
2167
2168  CC=$ac_ct_CC
2169fi
2170
2171
2172test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2173See \`config.log' for more details." >&5
2174echo "$as_me: error: no acceptable C compiler found in \$PATH
2175See \`config.log' for more details." >&2;}
2176   { (exit 1); exit 1; }; }
2177
2178# Provide some information about the compiler.
2179echo "$as_me:$LINENO:" \
2180     "checking for C compiler version" >&5
2181ac_compiler=`set X $ac_compile; echo $2`
2182{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2183  (eval $ac_compiler --version </dev/null >&5) 2>&5
2184  ac_status=$?
2185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186  (exit $ac_status); }
2187{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2188  (eval $ac_compiler -v </dev/null >&5) 2>&5
2189  ac_status=$?
2190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191  (exit $ac_status); }
2192{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2193  (eval $ac_compiler -V </dev/null >&5) 2>&5
2194  ac_status=$?
2195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2196  (exit $ac_status); }
2197
2198cat >conftest.$ac_ext <<_ACEOF
2199/* confdefs.h.  */
2200_ACEOF
2201cat confdefs.h >>conftest.$ac_ext
2202cat >>conftest.$ac_ext <<_ACEOF
2203/* end confdefs.h.  */
2204
2205int
2206main ()
2207{
2208
2209  ;
2210  return 0;
2211}
2212_ACEOF
2213ac_clean_files_save=$ac_clean_files
2214ac_clean_files="$ac_clean_files a.out a.exe b.out"
2215# Try to create an executable without -o first, disregard a.out.
2216# It will help us diagnose broken compilers, and finding out an intuition
2217# of exeext.
2218echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2219echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2220ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2221if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2222  (eval $ac_link_default) 2>&5
2223  ac_status=$?
2224  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2225  (exit $ac_status); }; then
2226  # Find the output, starting from the most likely.  This scheme is
2227# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2228# resort.
2229
2230# Be careful to initialize this variable, since it used to be cached.
2231# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2232ac_cv_exeext=
2233# b.out is created by i960 compilers.
2234for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2235do
2236  test -f "$ac_file" || continue
2237  case $ac_file in
2238    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2239        ;;
2240    conftest.$ac_ext )
2241        # This is the source file.
2242        ;;
2243    [ab].out )
2244        # We found the default executable, but exeext='' is most
2245        # certainly right.
2246        break;;
2247    *.* )
2248        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2249        # FIXME: I believe we export ac_cv_exeext for Libtool,
2250        # but it would be cool to find out if it's true.  Does anybody
2251        # maintain Libtool? --akim.
2252        export ac_cv_exeext
2253        break;;
2254    * )
2255        break;;
2256  esac
2257done
2258else
2259  echo "$as_me: failed program was:" >&5
2260sed 's/^/| /' conftest.$ac_ext >&5
2261
2262{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2263See \`config.log' for more details." >&5
2264echo "$as_me: error: C compiler cannot create executables
2265See \`config.log' for more details." >&2;}
2266   { (exit 77); exit 77; }; }
2267fi
2268
2269ac_exeext=$ac_cv_exeext
2270echo "$as_me:$LINENO: result: $ac_file" >&5
2271echo "${ECHO_T}$ac_file" >&6
2272
2273# Check the compiler produces executables we can run.  If not, either
2274# the compiler is broken, or we cross compile.
2275echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2276echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2277# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2278# If not cross compiling, check that we can run a simple program.
2279if test "$cross_compiling" != yes; then
2280  if { ac_try='./$ac_file'
2281  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2282  (eval $ac_try) 2>&5
2283  ac_status=$?
2284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2285  (exit $ac_status); }; }; then
2286    cross_compiling=no
2287  else
2288    if test "$cross_compiling" = maybe; then
2289        cross_compiling=yes
2290    else
2291        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2292If you meant to cross compile, use \`--host'.
2293See \`config.log' for more details." >&5
2294echo "$as_me: error: cannot run C compiled programs.
2295If you meant to cross compile, use \`--host'.
2296See \`config.log' for more details." >&2;}
2297   { (exit 1); exit 1; }; }
2298    fi
2299  fi
2300fi
2301echo "$as_me:$LINENO: result: yes" >&5
2302echo "${ECHO_T}yes" >&6
2303
2304rm -f a.out a.exe conftest$ac_cv_exeext b.out
2305ac_clean_files=$ac_clean_files_save
2306# Check the compiler produces executables we can run.  If not, either
2307# the compiler is broken, or we cross compile.
2308echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2309echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2310echo "$as_me:$LINENO: result: $cross_compiling" >&5
2311echo "${ECHO_T}$cross_compiling" >&6
2312
2313echo "$as_me:$LINENO: checking for suffix of executables" >&5
2314echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2315if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2316  (eval $ac_link) 2>&5
2317  ac_status=$?
2318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319  (exit $ac_status); }; then
2320  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2321# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2322# work properly (i.e., refer to `conftest.exe'), while it won't with
2323# `rm'.
2324for ac_file in conftest.exe conftest conftest.*; do
2325  test -f "$ac_file" || continue
2326  case $ac_file in
2327    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2328    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2329          export ac_cv_exeext
2330          break;;
2331    * ) break;;
2332  esac
2333done
2334else
2335  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2336See \`config.log' for more details." >&5
2337echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2338See \`config.log' for more details." >&2;}
2339   { (exit 1); exit 1; }; }
2340fi
2341
2342rm -f conftest$ac_cv_exeext
2343echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2344echo "${ECHO_T}$ac_cv_exeext" >&6
2345
2346rm -f conftest.$ac_ext
2347EXEEXT=$ac_cv_exeext
2348ac_exeext=$EXEEXT
2349echo "$as_me:$LINENO: checking for suffix of object files" >&5
2350echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2351if test "${ac_cv_objext+set}" = set; then
2352  echo $ECHO_N "(cached) $ECHO_C" >&6
2353else
2354  cat >conftest.$ac_ext <<_ACEOF
2355/* confdefs.h.  */
2356_ACEOF
2357cat confdefs.h >>conftest.$ac_ext
2358cat >>conftest.$ac_ext <<_ACEOF
2359/* end confdefs.h.  */
2360
2361int
2362main ()
2363{
2364
2365  ;
2366  return 0;
2367}
2368_ACEOF
2369rm -f conftest.o conftest.obj
2370if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2371  (eval $ac_compile) 2>&5
2372  ac_status=$?
2373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374  (exit $ac_status); }; then
2375  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2376  case $ac_file in
2377    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2378    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2379       break;;
2380  esac
2381done
2382else
2383  echo "$as_me: failed program was:" >&5
2384sed 's/^/| /' conftest.$ac_ext >&5
2385
2386{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2387See \`config.log' for more details." >&5
2388echo "$as_me: error: cannot compute suffix of object files: cannot compile
2389See \`config.log' for more details." >&2;}
2390   { (exit 1); exit 1; }; }
2391fi
2392
2393rm -f conftest.$ac_cv_objext conftest.$ac_ext
2394fi
2395echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2396echo "${ECHO_T}$ac_cv_objext" >&6
2397OBJEXT=$ac_cv_objext
2398ac_objext=$OBJEXT
2399echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2400echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2401if test "${ac_cv_c_compiler_gnu+set}" = set; then
2402  echo $ECHO_N "(cached) $ECHO_C" >&6
2403else
2404  cat >conftest.$ac_ext <<_ACEOF
2405/* confdefs.h.  */
2406_ACEOF
2407cat confdefs.h >>conftest.$ac_ext
2408cat >>conftest.$ac_ext <<_ACEOF
2409/* end confdefs.h.  */
2410
2411int
2412main ()
2413{
2414#ifndef __GNUC__
2415       choke me
2416#endif
2417
2418  ;
2419  return 0;
2420}
2421_ACEOF
2422rm -f conftest.$ac_objext
2423if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2424  (eval $ac_compile) 2>conftest.er1
2425  ac_status=$?
2426  grep -v '^ *+' conftest.er1 >conftest.err
2427  rm -f conftest.er1
2428  cat conftest.err >&5
2429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430  (exit $ac_status); } &&
2431         { ac_try='test -z "$ac_c_werror_flag"
2432                         || test ! -s conftest.err'
2433  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2434  (eval $ac_try) 2>&5
2435  ac_status=$?
2436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437  (exit $ac_status); }; } &&
2438         { ac_try='test -s conftest.$ac_objext'
2439  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2440  (eval $ac_try) 2>&5
2441  ac_status=$?
2442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443  (exit $ac_status); }; }; then
2444  ac_compiler_gnu=yes
2445else
2446  echo "$as_me: failed program was:" >&5
2447sed 's/^/| /' conftest.$ac_ext >&5
2448
2449ac_compiler_gnu=no
2450fi
2451rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2452ac_cv_c_compiler_gnu=$ac_compiler_gnu
2453
2454fi
2455echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2456echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2457GCC=`test $ac_compiler_gnu = yes && echo yes`
2458ac_test_CFLAGS=${CFLAGS+set}
2459ac_save_CFLAGS=$CFLAGS
2460CFLAGS="-g"
2461echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2462echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2463if test "${ac_cv_prog_cc_g+set}" = set; then
2464  echo $ECHO_N "(cached) $ECHO_C" >&6
2465else
2466  cat >conftest.$ac_ext <<_ACEOF
2467/* confdefs.h.  */
2468_ACEOF
2469cat confdefs.h >>conftest.$ac_ext
2470cat >>conftest.$ac_ext <<_ACEOF
2471/* end confdefs.h.  */
2472
2473int
2474main ()
2475{
2476
2477  ;
2478  return 0;
2479}
2480_ACEOF
2481rm -f conftest.$ac_objext
2482if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2483  (eval $ac_compile) 2>conftest.er1
2484  ac_status=$?
2485  grep -v '^ *+' conftest.er1 >conftest.err
2486  rm -f conftest.er1
2487  cat conftest.err >&5
2488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489  (exit $ac_status); } &&
2490         { ac_try='test -z "$ac_c_werror_flag"
2491                         || test ! -s conftest.err'
2492  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2493  (eval $ac_try) 2>&5
2494  ac_status=$?
2495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496  (exit $ac_status); }; } &&
2497         { ac_try='test -s conftest.$ac_objext'
2498  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2499  (eval $ac_try) 2>&5
2500  ac_status=$?
2501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502  (exit $ac_status); }; }; then
2503  ac_cv_prog_cc_g=yes
2504else
2505  echo "$as_me: failed program was:" >&5
2506sed 's/^/| /' conftest.$ac_ext >&5
2507
2508ac_cv_prog_cc_g=no
2509fi
2510rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2511fi
2512echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2513echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2514if test "$ac_test_CFLAGS" = set; then
2515  CFLAGS=$ac_save_CFLAGS
2516elif test $ac_cv_prog_cc_g = yes; then
2517  if test "$GCC" = yes; then
2518    CFLAGS="-g -O2"
2519  else
2520    CFLAGS="-g"
2521  fi
2522else
2523  if test "$GCC" = yes; then
2524    CFLAGS="-O2"
2525  else
2526    CFLAGS=
2527  fi
2528fi
2529echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2530echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2531if test "${ac_cv_prog_cc_stdc+set}" = set; then
2532  echo $ECHO_N "(cached) $ECHO_C" >&6
2533else
2534  ac_cv_prog_cc_stdc=no
2535ac_save_CC=$CC
2536cat >conftest.$ac_ext <<_ACEOF
2537/* confdefs.h.  */
2538_ACEOF
2539cat confdefs.h >>conftest.$ac_ext
2540cat >>conftest.$ac_ext <<_ACEOF
2541/* end confdefs.h.  */
2542#include <stdarg.h>
2543#include <stdio.h>
2544#include <sys/types.h>
2545#include <sys/stat.h>
2546/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2547struct buf { int x; };
2548FILE * (*rcsopen) (struct buf *, struct stat *, int);
2549static char *e (p, i)
2550     char **p;
2551     int i;
2552{
2553  return p[i];
2554}
2555static char *f (char * (*g) (char **, int), char **p, ...)
2556{
2557  char *s;
2558  va_list v;
2559  va_start (v,p);
2560  s = g (p, va_arg (v,int));
2561  va_end (v);
2562  return s;
2563}
2564
2565/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2566   function prototypes and stuff, but not '\xHH' hex character constants.
2567   These don't provoke an error unfortunately, instead are silently treated
2568   as 'x'.  The following induces an error, until -std1 is added to get
2569   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2570   array size at least.  It's necessary to write '\x00'==0 to get something
2571   that's true only with -std1.  */
2572int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2573
2574int test (int i, double x);
2575struct s1 {int (*f) (int a);};
2576struct s2 {int (*f) (double a);};
2577int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2578int argc;
2579char **argv;
2580int
2581main ()
2582{
2583return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2584  ;
2585  return 0;
2586}
2587_ACEOF
2588# Don't try gcc -ansi; that turns off useful extensions and
2589# breaks some systems' header files.
2590# AIX                   -qlanglvl=ansi
2591# Ultrix and OSF/1      -std1
2592# HP-UX 10.20 and later -Ae
2593# HP-UX older versions  -Aa -D_HPUX_SOURCE
2594# SVR4                  -Xc -D__EXTENSIONS__
2595for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2596do
2597  CC="$ac_save_CC $ac_arg"
2598  rm -f conftest.$ac_objext
2599if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2600  (eval $ac_compile) 2>conftest.er1
2601  ac_status=$?
2602  grep -v '^ *+' conftest.er1 >conftest.err
2603  rm -f conftest.er1
2604  cat conftest.err >&5
2605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606  (exit $ac_status); } &&
2607         { ac_try='test -z "$ac_c_werror_flag"
2608                         || test ! -s conftest.err'
2609  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2610  (eval $ac_try) 2>&5
2611  ac_status=$?
2612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613  (exit $ac_status); }; } &&
2614         { ac_try='test -s conftest.$ac_objext'
2615  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2616  (eval $ac_try) 2>&5
2617  ac_status=$?
2618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619  (exit $ac_status); }; }; then
2620  ac_cv_prog_cc_stdc=$ac_arg
2621break
2622else
2623  echo "$as_me: failed program was:" >&5
2624sed 's/^/| /' conftest.$ac_ext >&5
2625
2626fi
2627rm -f conftest.err conftest.$ac_objext
2628done
2629rm -f conftest.$ac_ext conftest.$ac_objext
2630CC=$ac_save_CC
2631
2632fi
2633
2634case "x$ac_cv_prog_cc_stdc" in
2635  x|xno)
2636    echo "$as_me:$LINENO: result: none needed" >&5
2637echo "${ECHO_T}none needed" >&6 ;;
2638  *)
2639    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2640echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2641    CC="$CC $ac_cv_prog_cc_stdc" ;;
2642esac
2643
2644# Some people use a C++ compiler to compile C.  Since we use `exit',
2645# in C++ we need to declare it.  In case someone uses the same compiler
2646# for both compiling C and C++ we need to have the C++ compiler decide
2647# the declaration of exit, since it's the most demanding environment.
2648cat >conftest.$ac_ext <<_ACEOF
2649#ifndef __cplusplus
2650  choke me
2651#endif
2652_ACEOF
2653rm -f conftest.$ac_objext
2654if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2655  (eval $ac_compile) 2>conftest.er1
2656  ac_status=$?
2657  grep -v '^ *+' conftest.er1 >conftest.err
2658  rm -f conftest.er1
2659  cat conftest.err >&5
2660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661  (exit $ac_status); } &&
2662         { ac_try='test -z "$ac_c_werror_flag"
2663                         || test ! -s conftest.err'
2664  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2665  (eval $ac_try) 2>&5
2666  ac_status=$?
2667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668  (exit $ac_status); }; } &&
2669         { ac_try='test -s conftest.$ac_objext'
2670  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2671  (eval $ac_try) 2>&5
2672  ac_status=$?
2673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674  (exit $ac_status); }; }; then
2675  for ac_declaration in \
2676   '' \
2677   'extern "C" void std::exit (int) throw (); using std::exit;' \
2678   'extern "C" void std::exit (int); using std::exit;' \
2679   'extern "C" void exit (int) throw ();' \
2680   'extern "C" void exit (int);' \
2681   'void exit (int);'
2682do
2683  cat >conftest.$ac_ext <<_ACEOF
2684/* confdefs.h.  */
2685_ACEOF
2686cat confdefs.h >>conftest.$ac_ext
2687cat >>conftest.$ac_ext <<_ACEOF
2688/* end confdefs.h.  */
2689$ac_declaration
2690#include <stdlib.h>
2691int
2692main ()
2693{
2694exit (42);
2695  ;
2696  return 0;
2697}
2698_ACEOF
2699rm -f conftest.$ac_objext
2700if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2701  (eval $ac_compile) 2>conftest.er1
2702  ac_status=$?
2703  grep -v '^ *+' conftest.er1 >conftest.err
2704  rm -f conftest.er1
2705  cat conftest.err >&5
2706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707  (exit $ac_status); } &&
2708         { ac_try='test -z "$ac_c_werror_flag"
2709                         || test ! -s conftest.err'
2710  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2711  (eval $ac_try) 2>&5
2712  ac_status=$?
2713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714  (exit $ac_status); }; } &&
2715         { ac_try='test -s conftest.$ac_objext'
2716  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2717  (eval $ac_try) 2>&5
2718  ac_status=$?
2719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720  (exit $ac_status); }; }; then
2721  :
2722else
2723  echo "$as_me: failed program was:" >&5
2724sed 's/^/| /' conftest.$ac_ext >&5
2725
2726continue
2727fi
2728rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2729  cat >conftest.$ac_ext <<_ACEOF
2730/* confdefs.h.  */
2731_ACEOF
2732cat confdefs.h >>conftest.$ac_ext
2733cat >>conftest.$ac_ext <<_ACEOF
2734/* end confdefs.h.  */
2735$ac_declaration
2736int
2737main ()
2738{
2739exit (42);
2740  ;
2741  return 0;
2742}
2743_ACEOF
2744rm -f conftest.$ac_objext
2745if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2746  (eval $ac_compile) 2>conftest.er1
2747  ac_status=$?
2748  grep -v '^ *+' conftest.er1 >conftest.err
2749  rm -f conftest.er1
2750  cat conftest.err >&5
2751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752  (exit $ac_status); } &&
2753         { ac_try='test -z "$ac_c_werror_flag"
2754                         || test ! -s conftest.err'
2755  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2756  (eval $ac_try) 2>&5
2757  ac_status=$?
2758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759  (exit $ac_status); }; } &&
2760         { ac_try='test -s conftest.$ac_objext'
2761  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2762  (eval $ac_try) 2>&5
2763  ac_status=$?
2764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765  (exit $ac_status); }; }; then
2766  break
2767else
2768  echo "$as_me: failed program was:" >&5
2769sed 's/^/| /' conftest.$ac_ext >&5
2770
2771fi
2772rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2773done
2774rm -f conftest*
2775if test -n "$ac_declaration"; then
2776  echo '#ifdef __cplusplus' >>confdefs.h
2777  echo $ac_declaration      >>confdefs.h
2778  echo '#endif'             >>confdefs.h
2779fi
2780
2781else
2782  echo "$as_me: failed program was:" >&5
2783sed 's/^/| /' conftest.$ac_ext >&5
2784
2785fi
2786rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2787ac_ext=c
2788ac_cpp='$CPP $CPPFLAGS'
2789ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2790ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2791ac_compiler_gnu=$ac_cv_c_compiler_gnu
2792
2793if test -z "$CC" ; then
2794  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2795echo "$as_me: error: Failed to find a C compiler!" >&2;}
2796   { (exit 1); exit 1; }; }
2797fi
2798# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2799case "$CC" in
2800  cl* | */cl* | CL* | */CL* )
2801    if test "$ac_cv_prog_cc_g" = yes ; then
2802      ac_cv_prog_cc_g=no
2803      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2804echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2805    fi ;;
2806esac
2807CFLAGS="$save_cflags"
2808
2809# Check if a project specific CFLAGS variable has been set
2810if test x$COIN_PRJCT != x; then
2811  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2812  if test x$coin_tmp = xset; then
2813    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2814  fi
2815fi
2816
2817if test x"$CFLAGS" = x; then
2818
2819  coin_add_cflags=
2820  coin_opt_cflags=
2821  coin_dbg_cflags=
2822  coin_warn_cflags=
2823
2824  if test "$GCC" = "yes"; then
2825    case "$CC" in
2826      icc* | */icc*)
2827        ;;
2828      *)
2829        coin_opt_cflags="-O3"
2830        coin_add_cflags="-pipe"
2831        coin_dbg_cflags="-g"
2832        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas"
2833        case $build in
2834          *-darwin*)
2835            ;;
2836          *)
2837            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2838            ;;
2839        esac
2840        case $enable_doscompile in
2841          mingw)
2842            CFLAGS="-mno-cygwin"
2843            cat >conftest.$ac_ext <<_ACEOF
2844/* confdefs.h.  */
2845_ACEOF
2846cat confdefs.h >>conftest.$ac_ext
2847cat >>conftest.$ac_ext <<_ACEOF
2848/* end confdefs.h.  */
2849
2850int
2851main ()
2852{
2853int i=0; i++;
2854  ;
2855  return 0;
2856}
2857_ACEOF
2858rm -f conftest.$ac_objext conftest$ac_exeext
2859if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2860  (eval $ac_link) 2>conftest.er1
2861  ac_status=$?
2862  grep -v '^ *+' conftest.er1 >conftest.err
2863  rm -f conftest.er1
2864  cat conftest.err >&5
2865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2866  (exit $ac_status); } &&
2867         { ac_try='test -z "$ac_c_werror_flag"
2868                         || test ! -s conftest.err'
2869  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2870  (eval $ac_try) 2>&5
2871  ac_status=$?
2872  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873  (exit $ac_status); }; } &&
2874         { ac_try='test -s conftest$ac_exeext'
2875  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2876  (eval $ac_try) 2>&5
2877  ac_status=$?
2878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879  (exit $ac_status); }; }; then
2880  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2881else
2882  echo "$as_me: failed program was:" >&5
2883sed 's/^/| /' conftest.$ac_ext >&5
2884
2885fi
2886rm -f conftest.err conftest.$ac_objext \
2887      conftest$ac_exeext conftest.$ac_ext
2888            CFLAGS=
2889          ;;
2890        esac
2891    esac
2892  fi
2893  if test -z "$coin_opt_cflags"; then
2894    case $build in
2895      *-cygwin* | *-mingw*)
2896        case "$CC" in
2897          cl* | */cl* | CL* | */CL*)
2898            coin_opt_cflags='-MT -O2'
2899            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2900            coin_dbg_cflags='-MTd'
2901            ;;
2902          icl* | */icl* | ICL* | */ICL*)
2903            coin_opt_cflags='-MT -Ox'
2904            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2905            coin_dbg_cflags='-MTd -debug'
2906            ;;
2907        esac
2908        ;;
2909      *-linux-*)
2910        case "$CC" in
2911          icc* | */icc*)
2912            coin_opt_cflags="-O3 -ip -mp1"
2913            coin_add_cflags=""
2914            coin_dbg_cflags="-g"
2915            # Check if -i_dynamic is necessary (for new glibc library)
2916            CFLAGS=
2917            cat >conftest.$ac_ext <<_ACEOF
2918/* confdefs.h.  */
2919_ACEOF
2920cat confdefs.h >>conftest.$ac_ext
2921cat >>conftest.$ac_ext <<_ACEOF
2922/* end confdefs.h.  */
2923
2924int
2925main ()
2926{
2927int i=0; i++;
2928  ;
2929  return 0;
2930}
2931_ACEOF
2932rm -f conftest.$ac_objext conftest$ac_exeext
2933if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2934  (eval $ac_link) 2>conftest.er1
2935  ac_status=$?
2936  grep -v '^ *+' conftest.er1 >conftest.err
2937  rm -f conftest.er1
2938  cat conftest.err >&5
2939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940  (exit $ac_status); } &&
2941         { ac_try='test -z "$ac_c_werror_flag"
2942                         || test ! -s conftest.err'
2943  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2944  (eval $ac_try) 2>&5
2945  ac_status=$?
2946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947  (exit $ac_status); }; } &&
2948         { ac_try='test -s conftest$ac_exeext'
2949  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2950  (eval $ac_try) 2>&5
2951  ac_status=$?
2952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953  (exit $ac_status); }; }; then
2954  :
2955else
2956  echo "$as_me: failed program was:" >&5
2957sed 's/^/| /' conftest.$ac_ext >&5
2958
2959coin_add_cflags="-i_dynamic $coin_add_cflags"
2960fi
2961rm -f conftest.err conftest.$ac_objext \
2962      conftest$ac_exeext conftest.$ac_ext
2963            ;;
2964          pgcc* | */pgcc*)
2965            coin_opt_cflags="-fast"
2966            coin_add_cflags="-Kieee -pc 64"
2967            coin_dbg_cflags="-g"
2968            ;;
2969        esac
2970        ;;
2971      *-ibm-*)
2972        case "$CC" in
2973          xlc* | */xlc* | mpxlc* | */mpxlc*)
2974            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
2975            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
2976            coin_dbg_cflags="-g"
2977          ;;
2978        esac
2979        ;;
2980      *-hp-*)
2981        coin_opt_cflags="-O"
2982        coin_add_cflags="-Ae"
2983        coin_dbg_cflags="-g"
2984        ;;
2985      *-*-solaris*)
2986        coin_opt_cflags="-xO4"
2987        coin_dbg_cflags="-g"
2988        ;;
2989      *-sgi-*)
2990        coin_opt_cflags="-O -OPT:Olimit=0"
2991        coin_dbg_cflags="-g"
2992        ;;
2993    esac
2994  fi
2995
2996  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2997    coin_dbg_cflags="-g"
2998  fi
2999
3000  if test -z "$coin_opt_cflags"; then
3001    # Try if -O option works if nothing else is set
3002    CFLAGS="-O"
3003    cat >conftest.$ac_ext <<_ACEOF
3004/* confdefs.h.  */
3005_ACEOF
3006cat confdefs.h >>conftest.$ac_ext
3007cat >>conftest.$ac_ext <<_ACEOF
3008/* end confdefs.h.  */
3009
3010int
3011main ()
3012{
3013int i=0; i++;
3014  ;
3015  return 0;
3016}
3017_ACEOF
3018rm -f conftest.$ac_objext conftest$ac_exeext
3019if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3020  (eval $ac_link) 2>conftest.er1
3021  ac_status=$?
3022  grep -v '^ *+' conftest.er1 >conftest.err
3023  rm -f conftest.er1
3024  cat conftest.err >&5
3025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026  (exit $ac_status); } &&
3027         { ac_try='test -z "$ac_c_werror_flag"
3028                         || test ! -s conftest.err'
3029  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3030  (eval $ac_try) 2>&5
3031  ac_status=$?
3032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033  (exit $ac_status); }; } &&
3034         { ac_try='test -s conftest$ac_exeext'
3035  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3036  (eval $ac_try) 2>&5
3037  ac_status=$?
3038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039  (exit $ac_status); }; }; then
3040  coin_opt_cflags="-O"
3041else
3042  echo "$as_me: failed program was:" >&5
3043sed 's/^/| /' conftest.$ac_ext >&5
3044
3045fi
3046rm -f conftest.err conftest.$ac_objext \
3047      conftest$ac_exeext conftest.$ac_ext
3048  fi
3049
3050  # if PM doesn't want the warning messages, take them out
3051  if test x"$coin_skip_warn_cflags" = xyes; then
3052    coin_warn_cflags=
3053  fi
3054
3055  if test x${DBG_CFLAGS+set} != xset; then
3056    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3057  fi
3058  if test x${OPT_CFLAGS+set} != xset; then
3059    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3060  fi
3061
3062  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3063  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3064
3065  if test "$coin_debug_compile" = "true"; then
3066    CFLAGS="$DBG_CFLAGS"
3067  else
3068    CFLAGS="$OPT_CFLAGS"
3069  fi
3070else
3071  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3072  if test x${DBG_CFLAGS+set} != xset; then
3073    DBG_CFLAGS="$CFLAGS"
3074  fi
3075  if test x${OPT_CFLAGS+set} != xset; then
3076    OPT_CFLAGS="$CFLAGS"
3077  fi
3078fi
3079
3080# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3081
3082case "$CFLAGS" in
3083  *-mno-cygwin*)
3084    if test x${CPPFLAGS+set} != xset ; then
3085      CPPFLAGS="-mno-cygwin"
3086    else
3087      case "$CPPFLAGS" in
3088        *-mno-cygwin*)
3089          ;;
3090        *)
3091          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3092          ;;
3093      esac
3094    fi ;;
3095esac
3096
3097# Try if CFLAGS works
3098save_CFLAGS="$CFLAGS"
3099cat >conftest.$ac_ext <<_ACEOF
3100/* confdefs.h.  */
3101_ACEOF
3102cat confdefs.h >>conftest.$ac_ext
3103cat >>conftest.$ac_ext <<_ACEOF
3104/* end confdefs.h.  */
3105
3106int
3107main ()
3108{
3109int i=0; i++;
3110  ;
3111  return 0;
3112}
3113_ACEOF
3114rm -f conftest.$ac_objext conftest$ac_exeext
3115if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3116  (eval $ac_link) 2>conftest.er1
3117  ac_status=$?
3118  grep -v '^ *+' conftest.er1 >conftest.err
3119  rm -f conftest.er1
3120  cat conftest.err >&5
3121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122  (exit $ac_status); } &&
3123         { ac_try='test -z "$ac_c_werror_flag"
3124                         || test ! -s conftest.err'
3125  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3126  (eval $ac_try) 2>&5
3127  ac_status=$?
3128  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129  (exit $ac_status); }; } &&
3130         { ac_try='test -s conftest$ac_exeext'
3131  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3132  (eval $ac_try) 2>&5
3133  ac_status=$?
3134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135  (exit $ac_status); }; }; then
3136  :
3137else
3138  echo "$as_me: failed program was:" >&5
3139sed 's/^/| /' conftest.$ac_ext >&5
3140
3141CFLAGS=
3142fi
3143rm -f conftest.err conftest.$ac_objext \
3144      conftest$ac_exeext conftest.$ac_ext
3145if test -z "$CFLAGS"; then
3146  { 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
3147echo "$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;}
3148  CFLAGS='-O'
3149  cat >conftest.$ac_ext <<_ACEOF
3150/* confdefs.h.  */
3151_ACEOF
3152cat confdefs.h >>conftest.$ac_ext
3153cat >>conftest.$ac_ext <<_ACEOF
3154/* end confdefs.h.  */
3155
3156int
3157main ()
3158{
3159int i=0; i++;
3160  ;
3161  return 0;
3162}
3163_ACEOF
3164rm -f conftest.$ac_objext conftest$ac_exeext
3165if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3166  (eval $ac_link) 2>conftest.er1
3167  ac_status=$?
3168  grep -v '^ *+' conftest.er1 >conftest.err
3169  rm -f conftest.er1
3170  cat conftest.err >&5
3171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172  (exit $ac_status); } &&
3173         { ac_try='test -z "$ac_c_werror_flag"
3174                         || test ! -s conftest.err'
3175  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3176  (eval $ac_try) 2>&5
3177  ac_status=$?
3178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179  (exit $ac_status); }; } &&
3180         { ac_try='test -s conftest$ac_exeext'
3181  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3182  (eval $ac_try) 2>&5
3183  ac_status=$?
3184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185  (exit $ac_status); }; }; then
3186  :
3187else
3188  echo "$as_me: failed program was:" >&5
3189sed 's/^/| /' conftest.$ac_ext >&5
3190
3191CFLAGS=
3192fi
3193rm -f conftest.err conftest.$ac_objext \
3194      conftest$ac_exeext conftest.$ac_ext
3195  if test -z "$CFLAGS"; then
3196    { 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
3197echo "$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;}
3198  fi
3199fi
3200
3201{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3202echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3203
3204
3205if test x"$MPICC" = x; then :; else
3206  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3207echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3208  CC="$MPICC"
3209fi
3210
3211# Correct ADDLIBS initialization if we are using the MS compiler
3212case "$CC" in
3213  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3214    ADDLIBS=
3215    case $build in
3216  *-mingw*)
3217    if test "${LD+set}" = set; then :; else
3218      LD=link
3219    fi
3220    ;;
3221 esac
3222 case $enable_doscompile in
3223   msvc)
3224     if test "x${LD+set}" = xset; then :; else
3225       LD=link
3226     fi
3227     ;;
3228 esac
3229
3230    ;;
3231esac
3232
3233ac_ext=c
3234ac_cpp='$CPP $CPPFLAGS'
3235ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3236ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3237ac_compiler_gnu=$ac_cv_c_compiler_gnu
3238
3239
3240
3241 #Let's try if that overcomes configuration problem with VC++ 6.0
3242
3243ac_ext=cc
3244ac_cpp='$CXXCPP $CPPFLAGS'
3245ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3246ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3247ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3248
3249
3250
3251
3252
3253
3254
3255coin_has_cxx=yes
3256
3257save_cxxflags="$CXXFLAGS"
3258# For *-*-solaris*, promote Studio/Workshop compiler to front of list.
3259case $build in
3260  *-cygwin* | *-mingw*)
3261             if test "$enable_doscompile" = msvc ; then
3262               comps="icl cl"
3263             else
3264               comps="g++ cl"
3265             fi ;;
3266  *-*-solaris*)
3267             comps="CC xlC_r aCC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3268  *-darwin*) comps="g++ c++ CC" ;;
3269          *) comps="xlC_r aCC CC g++ c++ pgCC icpc gpp cxx cc++ cl FCC KCC RCC" ;;
3270esac
3271
3272# We delete the cached value, since the test might not have been
3273# performed with our choice of compilers earlier
3274$as_unset ac_cv_prog_CXX || test "${ac_cv_prog_CXX+set}" != set || { ac_cv_prog_CXX=; export ac_cv_prog_CXX; }
3275# AC_MSG_NOTICE([C++ compiler candidates: $comps])
3276ac_ext=cc
3277ac_cpp='$CXXCPP $CPPFLAGS'
3278ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3279ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3280ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3281if test -n "$ac_tool_prefix"; then
3282  for ac_prog in $CCC $comps
3283  do
3284    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3285set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3286echo "$as_me:$LINENO: checking for $ac_word" >&5
3287echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3288if test "${ac_cv_prog_CXX+set}" = set; then
3289  echo $ECHO_N "(cached) $ECHO_C" >&6
3290else
3291  if test -n "$CXX"; then
3292  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3293else
3294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3295for as_dir in $PATH
3296do
3297  IFS=$as_save_IFS
3298  test -z "$as_dir" && as_dir=.
3299  for ac_exec_ext in '' $ac_executable_extensions; do
3300  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3301    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3302    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3303    break 2
3304  fi
3305done
3306done
3307
3308fi
3309fi
3310CXX=$ac_cv_prog_CXX
3311if test -n "$CXX"; then
3312  echo "$as_me:$LINENO: result: $CXX" >&5
3313echo "${ECHO_T}$CXX" >&6
3314else
3315  echo "$as_me:$LINENO: result: no" >&5
3316echo "${ECHO_T}no" >&6
3317fi
3318
3319    test -n "$CXX" && break
3320  done
3321fi
3322if test -z "$CXX"; then
3323  ac_ct_CXX=$CXX
3324  for ac_prog in $CCC $comps
3325do
3326  # Extract the first word of "$ac_prog", so it can be a program name with args.
3327set dummy $ac_prog; ac_word=$2
3328echo "$as_me:$LINENO: checking for $ac_word" >&5
3329echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3330if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3331  echo $ECHO_N "(cached) $ECHO_C" >&6
3332else
3333  if test -n "$ac_ct_CXX"; then
3334  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3335else
3336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3337for as_dir in $PATH
3338do
3339  IFS=$as_save_IFS
3340  test -z "$as_dir" && as_dir=.
3341  for ac_exec_ext in '' $ac_executable_extensions; do
3342  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3343    ac_cv_prog_ac_ct_CXX="$ac_prog"
3344    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3345    break 2
3346  fi
3347done
3348done
3349
3350fi
3351fi
3352ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3353if test -n "$ac_ct_CXX"; then
3354  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3355echo "${ECHO_T}$ac_ct_CXX" >&6
3356else
3357  echo "$as_me:$LINENO: result: no" >&5
3358echo "${ECHO_T}no" >&6
3359fi
3360
3361  test -n "$ac_ct_CXX" && break
3362done
3363test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3364
3365  CXX=$ac_ct_CXX
3366fi
3367
3368
3369# Provide some information about the compiler.
3370echo "$as_me:$LINENO:" \
3371     "checking for C++ compiler version" >&5
3372ac_compiler=`set X $ac_compile; echo $2`
3373{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3374  (eval $ac_compiler --version </dev/null >&5) 2>&5
3375  ac_status=$?
3376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377  (exit $ac_status); }
3378{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3379  (eval $ac_compiler -v </dev/null >&5) 2>&5
3380  ac_status=$?
3381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382  (exit $ac_status); }
3383{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3384  (eval $ac_compiler -V </dev/null >&5) 2>&5
3385  ac_status=$?
3386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387  (exit $ac_status); }
3388
3389echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3390echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3391if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3392  echo $ECHO_N "(cached) $ECHO_C" >&6
3393else
3394  cat >conftest.$ac_ext <<_ACEOF
3395/* confdefs.h.  */
3396_ACEOF
3397cat confdefs.h >>conftest.$ac_ext
3398cat >>conftest.$ac_ext <<_ACEOF
3399/* end confdefs.h.  */
3400
3401int
3402main ()
3403{
3404#ifndef __GNUC__
3405       choke me
3406#endif
3407
3408  ;
3409  return 0;
3410}
3411_ACEOF
3412rm -f conftest.$ac_objext
3413if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3414  (eval $ac_compile) 2>conftest.er1
3415  ac_status=$?
3416  grep -v '^ *+' conftest.er1 >conftest.err
3417  rm -f conftest.er1
3418  cat conftest.err >&5
3419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420  (exit $ac_status); } &&
3421         { ac_try='test -z "$ac_cxx_werror_flag"
3422                         || test ! -s conftest.err'
3423  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3424  (eval $ac_try) 2>&5
3425  ac_status=$?
3426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427  (exit $ac_status); }; } &&
3428         { ac_try='test -s conftest.$ac_objext'
3429  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3430  (eval $ac_try) 2>&5
3431  ac_status=$?
3432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433  (exit $ac_status); }; }; then
3434  ac_compiler_gnu=yes
3435else
3436  echo "$as_me: failed program was:" >&5
3437sed 's/^/| /' conftest.$ac_ext >&5
3438
3439ac_compiler_gnu=no
3440fi
3441rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3442ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3443
3444fi
3445echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3446echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3447GXX=`test $ac_compiler_gnu = yes && echo yes`
3448ac_test_CXXFLAGS=${CXXFLAGS+set}
3449ac_save_CXXFLAGS=$CXXFLAGS
3450CXXFLAGS="-g"
3451echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3452echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3453if test "${ac_cv_prog_cxx_g+set}" = set; then
3454  echo $ECHO_N "(cached) $ECHO_C" >&6
3455else
3456  cat >conftest.$ac_ext <<_ACEOF
3457/* confdefs.h.  */
3458_ACEOF
3459cat confdefs.h >>conftest.$ac_ext
3460cat >>conftest.$ac_ext <<_ACEOF
3461/* end confdefs.h.  */
3462
3463int
3464main ()
3465{
3466
3467  ;
3468  return 0;
3469}
3470_ACEOF
3471rm -f conftest.$ac_objext
3472if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3473  (eval $ac_compile) 2>conftest.er1
3474  ac_status=$?
3475  grep -v '^ *+' conftest.er1 >conftest.err
3476  rm -f conftest.er1
3477  cat conftest.err >&5
3478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479  (exit $ac_status); } &&
3480         { ac_try='test -z "$ac_cxx_werror_flag"
3481                         || test ! -s conftest.err'
3482  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3483  (eval $ac_try) 2>&5
3484  ac_status=$?
3485  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486  (exit $ac_status); }; } &&
3487         { ac_try='test -s conftest.$ac_objext'
3488  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3489  (eval $ac_try) 2>&5
3490  ac_status=$?
3491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492  (exit $ac_status); }; }; then
3493  ac_cv_prog_cxx_g=yes
3494else
3495  echo "$as_me: failed program was:" >&5
3496sed 's/^/| /' conftest.$ac_ext >&5
3497
3498ac_cv_prog_cxx_g=no
3499fi
3500rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3501fi
3502echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3503echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3504if test "$ac_test_CXXFLAGS" = set; then
3505  CXXFLAGS=$ac_save_CXXFLAGS
3506elif test $ac_cv_prog_cxx_g = yes; then
3507  if test "$GXX" = yes; then
3508    CXXFLAGS="-g -O2"
3509  else
3510    CXXFLAGS="-g"
3511  fi
3512else
3513  if test "$GXX" = yes; then
3514    CXXFLAGS="-O2"
3515  else
3516    CXXFLAGS=
3517  fi
3518fi
3519for ac_declaration in \
3520   '' \
3521   'extern "C" void std::exit (int) throw (); using std::exit;' \
3522   'extern "C" void std::exit (int); using std::exit;' \
3523   'extern "C" void exit (int) throw ();' \
3524   'extern "C" void exit (int);' \
3525   'void exit (int);'
3526do
3527  cat >conftest.$ac_ext <<_ACEOF
3528/* confdefs.h.  */
3529_ACEOF
3530cat confdefs.h >>conftest.$ac_ext
3531cat >>conftest.$ac_ext <<_ACEOF
3532/* end confdefs.h.  */
3533$ac_declaration
3534#include <stdlib.h>
3535int
3536main ()
3537{
3538exit (42);
3539  ;
3540  return 0;
3541}
3542_ACEOF
3543rm -f conftest.$ac_objext
3544if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3545  (eval $ac_compile) 2>conftest.er1
3546  ac_status=$?
3547  grep -v '^ *+' conftest.er1 >conftest.err
3548  rm -f conftest.er1
3549  cat conftest.err >&5
3550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551  (exit $ac_status); } &&
3552         { ac_try='test -z "$ac_cxx_werror_flag"
3553                         || test ! -s conftest.err'
3554  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3555  (eval $ac_try) 2>&5
3556  ac_status=$?
3557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558  (exit $ac_status); }; } &&
3559         { ac_try='test -s conftest.$ac_objext'
3560  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3561  (eval $ac_try) 2>&5
3562  ac_status=$?
3563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564  (exit $ac_status); }; }; then
3565  :
3566else
3567  echo "$as_me: failed program was:" >&5
3568sed 's/^/| /' conftest.$ac_ext >&5
3569
3570continue
3571fi
3572rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3573  cat >conftest.$ac_ext <<_ACEOF
3574/* confdefs.h.  */
3575_ACEOF
3576cat confdefs.h >>conftest.$ac_ext
3577cat >>conftest.$ac_ext <<_ACEOF
3578/* end confdefs.h.  */
3579$ac_declaration
3580int
3581main ()
3582{
3583exit (42);
3584  ;
3585  return 0;
3586}
3587_ACEOF
3588rm -f conftest.$ac_objext
3589if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3590  (eval $ac_compile) 2>conftest.er1
3591  ac_status=$?
3592  grep -v '^ *+' conftest.er1 >conftest.err
3593  rm -f conftest.er1
3594  cat conftest.err >&5
3595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596  (exit $ac_status); } &&
3597         { ac_try='test -z "$ac_cxx_werror_flag"
3598                         || test ! -s conftest.err'
3599  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3600  (eval $ac_try) 2>&5
3601  ac_status=$?
3602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603  (exit $ac_status); }; } &&
3604         { ac_try='test -s conftest.$ac_objext'
3605  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3606  (eval $ac_try) 2>&5
3607  ac_status=$?
3608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609  (exit $ac_status); }; }; then
3610  break
3611else
3612  echo "$as_me: failed program was:" >&5
3613sed 's/^/| /' conftest.$ac_ext >&5
3614
3615fi
3616rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3617done
3618rm -f conftest*
3619if test -n "$ac_declaration"; then
3620  echo '#ifdef __cplusplus' >>confdefs.h
3621  echo $ac_declaration      >>confdefs.h
3622  echo '#endif'             >>confdefs.h
3623fi
3624
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
3631
3632#AC_PROG_CXX sets CXX to g++ if it cannot find a working C++ compiler
3633#thus, we test here whether $CXX is actually working
3634ac_ext=cc
3635ac_cpp='$CXXCPP $CPPFLAGS'
3636ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3637ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3638ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3639
3640echo "$as_me:$LINENO: checking whether C++ compiler $CXX works" >&5
3641echo $ECHO_N "checking whether C++ compiler $CXX works... $ECHO_C" >&6;
3642cat >conftest.$ac_ext <<_ACEOF
3643/* confdefs.h.  */
3644_ACEOF
3645cat confdefs.h >>conftest.$ac_ext
3646cat >>conftest.$ac_ext <<_ACEOF
3647/* end confdefs.h.  */
3648
3649int
3650main ()
3651{
3652int i=0;
3653  ;
3654  return 0;
3655}
3656_ACEOF
3657rm -f conftest.$ac_objext
3658if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3659  (eval $ac_compile) 2>conftest.er1
3660  ac_status=$?
3661  grep -v '^ *+' conftest.er1 >conftest.err
3662  rm -f conftest.er1
3663  cat conftest.err >&5
3664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665  (exit $ac_status); } &&
3666         { ac_try='test -z "$ac_cxx_werror_flag"
3667                         || test ! -s conftest.err'
3668  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3669  (eval $ac_try) 2>&5
3670  ac_status=$?
3671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672  (exit $ac_status); }; } &&
3673         { ac_try='test -s conftest.$ac_objext'
3674  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3675  (eval $ac_try) 2>&5
3676  ac_status=$?
3677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678  (exit $ac_status); }; }; then
3679  echo "$as_me:$LINENO: result: yes" >&5
3680echo "${ECHO_T}yes" >&6
3681else
3682  echo "$as_me: failed program was:" >&5
3683sed 's/^/| /' conftest.$ac_ext >&5
3684
3685echo "$as_me:$LINENO: result: no" >&5
3686echo "${ECHO_T}no" >&6
3687   { { echo "$as_me:$LINENO: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&5
3688echo "$as_me: error: failed to find a C++ compiler or C++ compiler $CXX does not work" >&2;}
3689   { (exit 1); exit 1; }; }
3690
3691fi
3692rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3693ac_ext=cc
3694ac_cpp='$CXXCPP $CPPFLAGS'
3695ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3696ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3697ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3698
3699
3700coin_cxx_is_cl=false
3701# It seems that we need to cleanup something here for the Windows
3702case "$CXX" in
3703  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3704    sed -e 's/^void exit (int);//' confdefs.h >> confdefs.hh
3705    mv confdefs.hh confdefs.h
3706    coin_cxx_is_cl=true
3707    ;;
3708esac
3709
3710# add automake conditional so we can recognize cl compiler in makefile
3711
3712
3713if test $coin_cxx_is_cl = true; then
3714  COIN_CXX_IS_CL_TRUE=
3715  COIN_CXX_IS_CL_FALSE='#'
3716else
3717  COIN_CXX_IS_CL_TRUE='#'
3718  COIN_CXX_IS_CL_FALSE=
3719fi
3720
3721
3722# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
3723case "$CXX" in
3724  cl* | */cl* | CL* | */CL* )
3725    if test "$ac_cv_prog_cxx_g" = yes ; then
3726      ac_cv_prog_cxx_g=no
3727      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
3728echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
3729    fi ;;
3730esac
3731CXXFLAGS="$save_cxxflags"
3732
3733# Check if a project specific CXXFLAGS variable has been set
3734if test x$COIN_PRJCT != x; then
3735  eval coin_tmp=\${${COIN_PRJCT}_CXXFLAGS+set}
3736  if test x$coin_tmp = xset; then
3737    eval CXXFLAGS=\${${COIN_PRJCT}_CXXFLAGS}
3738  fi
3739fi
3740
3741if test x"$CXXFLAGS" = x; then
3742
3743# ToDo decide whether we want -DNDEBUG for optimization
3744  coin_add_cxxflags=
3745  coin_opt_cxxflags=
3746  coin_dbg_cxxflags=
3747  coin_warn_cxxflags=
3748
3749  if test "$GXX" = "yes"; then
3750    case "$CXX" in
3751      icpc* | */icpc*)
3752        ;;
3753      *)
3754# ToDo decide about unroll-loops
3755        coin_opt_cxxflags="-O3"
3756        coin_add_cxxflags="-pipe"
3757        coin_dbg_cxxflags="-g"
3758        coin_warn_cxxflags="-Wimplicit -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas"
3759        case $build in
3760          *-darwin*)
3761            ;;
3762          *)
3763            coin_warn_cxxflags="-pedantic-errors $coin_warn_cxxflags"
3764            ;;
3765        esac
3766
3767        case $enable_doscompile in
3768          mingw)
3769            CXXFLAGS="-mno-cygwin"
3770            cat >conftest.$ac_ext <<_ACEOF
3771/* confdefs.h.  */
3772_ACEOF
3773cat confdefs.h >>conftest.$ac_ext
3774cat >>conftest.$ac_ext <<_ACEOF
3775/* end confdefs.h.  */
3776
3777int
3778main ()
3779{
3780int i=0; i++;
3781  ;
3782  return 0;
3783}
3784_ACEOF
3785rm -f conftest.$ac_objext conftest$ac_exeext
3786if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3787  (eval $ac_link) 2>conftest.er1
3788  ac_status=$?
3789  grep -v '^ *+' conftest.er1 >conftest.err
3790  rm -f conftest.er1
3791  cat conftest.err >&5
3792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793  (exit $ac_status); } &&
3794         { ac_try='test -z "$ac_cxx_werror_flag"
3795                         || test ! -s conftest.err'
3796  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3797  (eval $ac_try) 2>&5
3798  ac_status=$?
3799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800  (exit $ac_status); }; } &&
3801         { ac_try='test -s conftest$ac_exeext'
3802  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3803  (eval $ac_try) 2>&5
3804  ac_status=$?
3805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806  (exit $ac_status); }; }; then
3807  coin_add_cxxflags="-mno-cygwin $coin_add_cxxflags"
3808else
3809  echo "$as_me: failed program was:" >&5
3810sed 's/^/| /' conftest.$ac_ext >&5
3811
3812fi
3813rm -f conftest.err conftest.$ac_objext \
3814      conftest$ac_exeext conftest.$ac_ext
3815            CXXFLAGS=
3816          ;;
3817        esac
3818    esac
3819  fi
3820
3821# Note that we do not need to cover GCC in the following tests.
3822
3823  if test -z "$coin_opt_cxxflags"; then
3824    case $build in
3825      *-cygwin* | *-mingw*)
3826        case "$CXX" in
3827          cl* | */cl* | CL* | */CL*)
3828            # The MT and MTd options are mutually exclusive
3829            coin_opt_cxxflags='-MT -O2'
3830            coin_add_cxxflags='-nologo -EHsc -GR -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
3831            coin_dbg_cxxflags='-MTd'
3832            ;;
3833          icl* | */icl* | ICL* | */ICL*)
3834            # The MT and MTd options are mutually exclusive
3835            coin_opt_cxxflags='-MT -Ox'
3836            coin_add_cxxflags='-nologo -EHsc -GR -D_CRT_SECURE_NO_DEPRECATE'
3837            coin_dbg_cxxflags='-MTd -debug'
3838            ;;
3839        esac
3840        ;;
3841      *-linux-*)
3842        case "$CXX" in
3843          icpc* | */icpc*)
3844            coin_opt_cxxflags="-O3 -ip -mp1"
3845            coin_add_cxxflags=""
3846            coin_dbg_cxxflags="-g"
3847            # Check if -i_dynamic is necessary (for new glibc library)
3848            CXXFLAGS=
3849            cat >conftest.$ac_ext <<_ACEOF
3850/* confdefs.h.  */
3851_ACEOF
3852cat confdefs.h >>conftest.$ac_ext
3853cat >>conftest.$ac_ext <<_ACEOF
3854/* end confdefs.h.  */
3855
3856int
3857main ()
3858{
3859int i=0; i++;
3860  ;
3861  return 0;
3862}
3863_ACEOF
3864rm -f conftest.$ac_objext conftest$ac_exeext
3865if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3866  (eval $ac_link) 2>conftest.er1
3867  ac_status=$?
3868  grep -v '^ *+' conftest.er1 >conftest.err
3869  rm -f conftest.er1
3870  cat conftest.err >&5
3871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872  (exit $ac_status); } &&
3873         { ac_try='test -z "$ac_cxx_werror_flag"
3874                         || test ! -s conftest.err'
3875  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3876  (eval $ac_try) 2>&5
3877  ac_status=$?
3878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879  (exit $ac_status); }; } &&
3880         { ac_try='test -s conftest$ac_exeext'
3881  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3882  (eval $ac_try) 2>&5
3883  ac_status=$?
3884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885  (exit $ac_status); }; }; then
3886  :
3887else
3888  echo "$as_me: failed program was:" >&5
3889sed 's/^/| /' conftest.$ac_ext >&5
3890
3891coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3892fi
3893rm -f conftest.err conftest.$ac_objext \
3894      conftest$ac_exeext conftest.$ac_ext
3895            ;;
3896          pgCC* | */pgCC*)
3897            coin_opt_cxxflags="-fast"
3898            coin_add_cxxflags="-Kieee -pc 64"
3899            coin_dbg_cxxflags="-g"
3900            ;;
3901        esac
3902        ;;
3903      *-ibm-*)
3904        case "$CXX" in
3905          xlC* | */xlC* | mpxlC* | */mpxlC*)
3906            coin_opt_cxxflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3907            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna -qsuppress=1500-036 -qsuppress=1500-029 -qsourcetype=c++"
3908            coin_dbg_cxxflags="-g"
3909            ;;
3910        esac
3911        ;;
3912      *-hp-*)
3913        case "$CXX" in
3914          aCC* | */aCC* )
3915            coin_opt_cxxflags="-O"
3916            coin_add_cxxflags="-AA"
3917            coin_dbg_cxxflags="-g"
3918            ;;
3919        esac
3920        ;;
3921      *-*-solaris*)
3922          coin_opt_cxxflags="-O4"
3923          coin_dbg_cxxflags="-g"
3924        ;;
3925    esac
3926  fi
3927
3928# Generic flag settings. If these don't work, add a case above.
3929
3930  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3931    coin_dbg_cxxflags="-g"
3932  fi
3933
3934  if test -z "$coin_opt_cxxflags"; then
3935    # Try if -O option works if nothing else is set
3936    CXXFLAGS=-O
3937    cat >conftest.$ac_ext <<_ACEOF
3938/* confdefs.h.  */
3939_ACEOF
3940cat confdefs.h >>conftest.$ac_ext
3941cat >>conftest.$ac_ext <<_ACEOF
3942/* end confdefs.h.  */
3943
3944int
3945main ()
3946{
3947int i=0; i++;
3948  ;
3949  return 0;
3950}
3951_ACEOF
3952rm -f conftest.$ac_objext conftest$ac_exeext
3953if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3954  (eval $ac_link) 2>conftest.er1
3955  ac_status=$?
3956  grep -v '^ *+' conftest.er1 >conftest.err
3957  rm -f conftest.er1
3958  cat conftest.err >&5
3959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960  (exit $ac_status); } &&
3961         { ac_try='test -z "$ac_cxx_werror_flag"
3962                         || test ! -s conftest.err'
3963  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3964  (eval $ac_try) 2>&5
3965  ac_status=$?
3966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967  (exit $ac_status); }; } &&
3968         { ac_try='test -s conftest$ac_exeext'
3969  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3970  (eval $ac_try) 2>&5
3971  ac_status=$?
3972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973  (exit $ac_status); }; }; then
3974  coin_opt_cxxflags="-O"
3975else
3976  echo "$as_me: failed program was:" >&5
3977sed 's/^/| /' conftest.$ac_ext >&5
3978
3979fi
3980rm -f conftest.err conftest.$ac_objext \
3981      conftest$ac_exeext conftest.$ac_ext
3982  fi
3983
3984  # if PM doesn't want the warning messages, take them out
3985  if test x"$coin_skip_warn_cxxflags" = xyes; then
3986    coin_warn_cxxflags=
3987  fi
3988
3989# Do final setup of flags based on values determined above.
3990
3991  if test x${DBG_CXXFLAGS+set} != xset; then
3992    DBG_CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3993  fi
3994  if test x${OPT_CXXFLAGS+set} != xset; then
3995    OPT_CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $coin_warn_cxxflags"
3996  fi
3997
3998  DBG_CXXFLAGS="$DBG_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
3999  OPT_CXXFLAGS="$OPT_CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
4000
4001  if test "$coin_debug_compile" = "true"; then
4002    CXXFLAGS="$DBG_CXXFLAGS"
4003  else
4004    CXXFLAGS="$OPT_CXXFLAGS"
4005  fi
4006
4007# Handle the case where CXXFLAGS was set externally.
4008else
4009  CXXFLAGS="$CXXFLAGS $ADD_CXXFLAGS $CXXDEFS"
4010  if test x${DBG_CXXFLAGS+set} != xset; then
4011    DBG_CXXFLAGS="$CXXFLAGS"
4012  fi
4013  if test x${OPT_CXXFLAGS+set} != xset; then
4014    OPT_CXXFLAGS="$CXXFLAGS"
4015  fi
4016fi
4017
4018# If CXXFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
4019
4020case "$CXXFLAGS" in
4021  *-mno-cygwin*)
4022    if test x${CPPFLAGS+set} != xset ; then
4023      CPPFLAGS="-mno-cygwin"
4024    else
4025      case "$CPPFLAGS" in
4026        *-mno-cygwin*)
4027          ;;
4028        *)
4029          CPPFLAGS="$CPPFLAGS -mno-cygwin"
4030          ;;
4031      esac
4032    fi ;;
4033esac
4034
4035# Try if CXXFLAGS works
4036save_CXXFLAGS="$CXXFLAGS"
4037cat >conftest.$ac_ext <<_ACEOF
4038/* confdefs.h.  */
4039_ACEOF
4040cat confdefs.h >>conftest.$ac_ext
4041cat >>conftest.$ac_ext <<_ACEOF
4042/* end confdefs.h.  */
4043
4044int
4045main ()
4046{
4047int i=0; i++;
4048  ;
4049  return 0;
4050}
4051_ACEOF
4052rm -f conftest.$ac_objext conftest$ac_exeext
4053if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4054  (eval $ac_link) 2>conftest.er1
4055  ac_status=$?
4056  grep -v '^ *+' conftest.er1 >conftest.err
4057  rm -f conftest.er1
4058  cat conftest.err >&5
4059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060  (exit $ac_status); } &&
4061         { ac_try='test -z "$ac_cxx_werror_flag"
4062                         || test ! -s conftest.err'
4063  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4064  (eval $ac_try) 2>&5
4065  ac_status=$?
4066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067  (exit $ac_status); }; } &&
4068         { ac_try='test -s conftest$ac_exeext'
4069  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4070  (eval $ac_try) 2>&5
4071  ac_status=$?
4072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073  (exit $ac_status); }; }; then
4074  :
4075else
4076  echo "$as_me: failed program was:" >&5
4077sed 's/^/| /' conftest.$ac_ext >&5
4078
4079CXXFLAGS=
4080fi
4081rm -f conftest.err conftest.$ac_objext \
4082      conftest$ac_exeext conftest.$ac_ext
4083if test -z "$CXXFLAGS"; then
4084  { 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
4085echo "$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;}
4086  CXXFLAGS='-O'
4087  cat >conftest.$ac_ext <<_ACEOF
4088/* confdefs.h.  */
4089_ACEOF
4090cat confdefs.h >>conftest.$ac_ext
4091cat >>conftest.$ac_ext <<_ACEOF
4092/* end confdefs.h.  */
4093
4094int
4095main ()
4096{
4097int i=0; i++;
4098  ;
4099  return 0;
4100}
4101_ACEOF
4102rm -f conftest.$ac_objext conftest$ac_exeext
4103if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4104  (eval $ac_link) 2>conftest.er1
4105  ac_status=$?
4106  grep -v '^ *+' conftest.er1 >conftest.err
4107  rm -f conftest.er1
4108  cat conftest.err >&5
4109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110  (exit $ac_status); } &&
4111         { ac_try='test -z "$ac_cxx_werror_flag"
4112                         || test ! -s conftest.err'
4113  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4114  (eval $ac_try) 2>&5
4115  ac_status=$?
4116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117  (exit $ac_status); }; } &&
4118         { ac_try='test -s conftest$ac_exeext'
4119  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4120  (eval $ac_try) 2>&5
4121  ac_status=$?
4122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123  (exit $ac_status); }; }; then
4124  :
4125else
4126  echo "$as_me: failed program was:" >&5
4127sed 's/^/| /' conftest.$ac_ext >&5
4128
4129CXXFLAGS=
4130fi
4131rm -f conftest.err conftest.$ac_objext \
4132      conftest$ac_exeext conftest.$ac_ext
4133  if test -z "$CXXFLAGS"; then
4134    { 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
4135echo "$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;}
4136  fi
4137fi
4138
4139{ echo "$as_me:$LINENO: C++ compiler options are: $CXXFLAGS" >&5
4140echo "$as_me: C++ compiler options are: $CXXFLAGS" >&6;}
4141
4142
4143if test x"$MPICXX" = x; then :; else
4144  { echo "$as_me:$LINENO: Will use MPI C++ compiler $MPICXX" >&5
4145echo "$as_me: Will use MPI C++ compiler $MPICXX" >&6;}
4146  CXX="$MPICXX"
4147fi
4148
4149case "$CXX" in
4150  cl* | */cl* | CL* | */CL* )
4151    case $build in
4152  *-mingw*)
4153    if test "${LD+set}" = set; then :; else
4154      LD=link
4155    fi
4156    ;;
4157 esac
4158 case $enable_doscompile in
4159   msvc)
4160     if test "x${LD+set}" = xset; then :; else
4161       LD=link
4162     fi
4163     ;;
4164 esac
4165
4166    ;;
4167esac
4168
4169ac_ext=c
4170ac_cpp='$CPP $CPPFLAGS'
4171ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4172ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4173ac_compiler_gnu=$ac_cv_c_compiler_gnu
4174
4175
4176
4177# Initialize automake and libtool
4178{
4179
4180
4181
4182# START
4183
4184# Test if force_shared has been set
4185if test "x" = xforce_shared; then
4186  if test x$enable_shared = xno; then
4187    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
4188echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
4189   { (exit 1); exit 1; }; }
4190  fi
4191  enable_shared=yes;
4192else
4193  # On Cygwin and AIX, building DLLs doesn't work
4194  case $build in
4195    *-cygwin*)
4196      coin_disable_shared=yes
4197      platform=Cygwin
4198    ;;
4199    *-aix*)
4200      coin_disable_shared=yes
4201      platform=AIX
4202    ;;
4203    *-mingw*)
4204      coin_disable_shared=yes
4205      platform="Msys"
4206#      case "$CXX" in
4207#        cl*)
4208#          coin_disable_shared=yes
4209#          platform="Msys with cl"
4210#      ;;
4211#      esac
4212    ;;
4213  esac
4214fi
4215if test x"$coin_disable_shared" = xyes; then
4216  if test x"$enable_shared" = xyes; then
4217    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
4218echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
4219  fi
4220  enable_shared=no
4221fi
4222# By default, we only want the shared objects to be compiled
4223# Check whether --enable-static or --disable-static was given.
4224if test "${enable_static+set}" = set; then
4225  enableval="$enable_static"
4226  p=${PACKAGE-default}
4227    case $enableval in
4228    yes) enable_static=yes ;;
4229    no) enable_static=no ;;
4230    *)
4231     enable_static=no
4232      # Look at the argument we got.  We use all the common list separators.
4233      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4234      for pkg in $enableval; do
4235        IFS="$lt_save_ifs"
4236        if test "X$pkg" = "X$p"; then
4237          enable_static=yes
4238        fi
4239      done
4240      IFS="$lt_save_ifs"
4241      ;;
4242    esac
4243else
4244  enable_static=no
4245fi;
4246
4247
4248
4249
4250# Initialize automake
4251echo "$as_me:$LINENO: checking for egrep" >&5
4252echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4253if test "${ac_cv_prog_egrep+set}" = set; then
4254  echo $ECHO_N "(cached) $ECHO_C" >&6
4255else
4256  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4257    then ac_cv_prog_egrep='grep -E'
4258    else ac_cv_prog_egrep='egrep'
4259    fi
4260fi
4261echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4262echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4263 EGREP=$ac_cv_prog_egrep
4264
4265
4266am__api_version="1.9"
4267# Find a good install program.  We prefer a C program (faster),
4268# so one script is as good as another.  But avoid the broken or
4269# incompatible versions:
4270# SysV /etc/install, /usr/sbin/install
4271# SunOS /usr/etc/install
4272# IRIX /sbin/install
4273# AIX /bin/install
4274# AmigaOS /C/install, which installs bootblocks on floppy discs
4275# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4276# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4277# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4278# OS/2's system install, which has a completely different semantic
4279# ./install, which can be erroneously created by make from ./install.sh.
4280echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4281echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4282if test -z "$INSTALL"; then
4283if test "${ac_cv_path_install+set}" = set; then
4284  echo $ECHO_N "(cached) $ECHO_C" >&6
4285else
4286  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4287for as_dir in $PATH
4288do
4289  IFS=$as_save_IFS
4290  test -z "$as_dir" && as_dir=.
4291  # Account for people who put trailing slashes in PATH elements.
4292case $as_dir/ in
4293  ./ | .// | /cC/* | \
4294  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4295  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4296  /usr/ucb/* ) ;;
4297  *)
4298    # OSF1 and SCO ODT 3.0 have their own names for install.
4299    # Don't use installbsd from OSF since it installs stuff as root
4300    # by default.
4301    for ac_prog in ginstall scoinst install; do
4302      for ac_exec_ext in '' $ac_executable_extensions; do
4303        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4304          if test $ac_prog = install &&
4305            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4306            # AIX install.  It has an incompatible calling convention.
4307            :
4308          elif test $ac_prog = install &&
4309            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4310            # program-specific install script used by HP pwplus--don't use.
4311            :
4312          else
4313            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4314            break 3
4315          fi
4316        fi
4317      done
4318    done
4319    ;;
4320esac
4321done
4322
4323
4324fi
4325  if test "${ac_cv_path_install+set}" = set; then
4326    INSTALL=$ac_cv_path_install
4327  else
4328    # As a last resort, use the slow shell script.  We don't cache a
4329    # path for INSTALL within a source directory, because that will
4330    # break other packages using the cache if that directory is
4331    # removed, or if the path is relative.
4332    INSTALL=$ac_install_sh
4333  fi
4334fi
4335echo "$as_me:$LINENO: result: $INSTALL" >&5
4336echo "${ECHO_T}$INSTALL" >&6
4337
4338# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4339# It thinks the first close brace ends the variable substitution.
4340test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4341
4342test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4343
4344test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4345
4346echo "$as_me:$LINENO: checking whether build environment is sane" >&5
4347echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
4348# Just in case
4349sleep 1
4350echo timestamp > conftest.file
4351# Do `set' in a subshell so we don't clobber the current shell's
4352# arguments.  Must try -L first in case configure is actually a
4353# symlink; some systems play weird games with the mod time of symlinks
4354# (eg FreeBSD returns the mod time of the symlink's containing
4355# directory).
4356if (
4357   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
4358   if test "$*" = "X"; then
4359      # -L didn't work.
4360      set X `ls -t $srcdir/configure conftest.file`
4361   fi
4362   rm -f conftest.file
4363   if test "$*" != "X $srcdir/configure conftest.file" \
4364      && test "$*" != "X conftest.file $srcdir/configure"; then
4365
4366      # If neither matched, then we have a broken ls.  This can happen
4367      # if, for instance, CONFIG_SHELL is bash and it inherits a
4368      # broken ls alias from the environment.  This has actually
4369      # happened.  Such a system could not be considered "sane".
4370      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4371alias in your environment" >&5
4372echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4373alias in your environment" >&2;}
4374   { (exit 1); exit 1; }; }
4375   fi
4376
4377   test "$2" = conftest.file
4378   )
4379then
4380   # Ok.
4381   :
4382else
4383   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4384Check your system clock" >&5
4385echo "$as_me: error: newly created file is older than distributed files!
4386Check your system clock" >&2;}
4387   { (exit 1); exit 1; }; }
4388fi
4389echo "$as_me:$LINENO: result: yes" >&5
4390echo "${ECHO_T}yes" >&6
4391test "$program_prefix" != NONE &&
4392  program_transform_name="s,^,$program_prefix,;$program_transform_name"
4393# Use a double $ so make ignores it.
4394test "$program_suffix" != NONE &&
4395  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
4396# Double any \ or $.  echo might interpret backslashes.
4397# By default was `s,x,x', remove it if useless.
4398cat <<\_ACEOF >conftest.sed
4399s/[\\$]/&&/g;s/;s,x,x,$//
4400_ACEOF
4401program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4402rm conftest.sed
4403
4404# expand $ac_aux_dir to an absolute path
4405am_aux_dir=`cd $ac_aux_dir && pwd`
4406
4407test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4408# Use eval to expand $SHELL
4409if eval "$MISSING --run true"; then
4410  am_missing_run="$MISSING --run "
4411else
4412  am_missing_run=
4413  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4414echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4415fi
4416
4417if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
4418  # We used to keeping the `.' as first argument, in order to
4419  # allow $(mkdir_p) to be used without argument.  As in
4420  #   $(mkdir_p) $(somedir)
4421  # where $(somedir) is conditionally defined.  However this is wrong
4422  # for two reasons:
4423  #  1. if the package is installed by a user who cannot write `.'
4424  #     make install will fail,
4425  #  2. the above comment should most certainly read
4426  #     $(mkdir_p) $(DESTDIR)$(somedir)
4427  #     so it does not work when $(somedir) is undefined and
4428  #     $(DESTDIR) is not.
4429  #  To support the latter case, we have to write
4430  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
4431  #  so the `.' trick is pointless.
4432  mkdir_p='mkdir -p --'
4433else
4434  # On NextStep and OpenStep, the `mkdir' command does not
4435  # recognize any option.  It will interpret all options as
4436  # directories to create, and then abort because `.' already
4437  # exists.
4438  for d in ./-p ./--version;
4439  do
4440    test -d $d && rmdir $d
4441  done
4442  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
4443  if test -f "$ac_aux_dir/mkinstalldirs"; then
4444    mkdir_p='$(mkinstalldirs)'
4445  else
4446    mkdir_p='$(install_sh) -d'
4447  fi
4448fi
4449
4450for ac_prog in gawk mawk nawk awk
4451do
4452  # Extract the first word of "$ac_prog", so it can be a program name with args.
4453set dummy $ac_prog; ac_word=$2
4454echo "$as_me:$LINENO: checking for $ac_word" >&5
4455echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4456if test "${ac_cv_prog_AWK+set}" = set; then
4457  echo $ECHO_N "(cached) $ECHO_C" >&6
4458else
4459  if test -n "$AWK"; then
4460  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4461else
4462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4463for as_dir in $PATH
4464do
4465  IFS=$as_save_IFS
4466  test -z "$as_dir" && as_dir=.
4467  for ac_exec_ext in '' $ac_executable_extensions; do
4468  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4469    ac_cv_prog_AWK="$ac_prog"
4470    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4471    break 2
4472  fi
4473done
4474done
4475
4476fi
4477fi
4478AWK=$ac_cv_prog_AWK
4479if test -n "$AWK"; then
4480  echo "$as_me:$LINENO: result: $AWK" >&5
4481echo "${ECHO_T}$AWK" >&6
4482else
4483  echo "$as_me:$LINENO: result: no" >&5
4484echo "${ECHO_T}no" >&6
4485fi
4486
4487  test -n "$AWK" && break
4488done
4489
4490echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4491echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4492set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4493if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4494  echo $ECHO_N "(cached) $ECHO_C" >&6
4495else
4496  cat >conftest.make <<\_ACEOF
4497all:
4498        @echo 'ac_maketemp="$(MAKE)"'
4499_ACEOF
4500# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4501eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4502if test -n "$ac_maketemp"; then
4503  eval ac_cv_prog_make_${ac_make}_set=yes
4504else
4505  eval ac_cv_prog_make_${ac_make}_set=no
4506fi
4507rm -f conftest.make
4508fi
4509if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4510  echo "$as_me:$LINENO: result: yes" >&5
4511echo "${ECHO_T}yes" >&6
4512  SET_MAKE=
4513else
4514  echo "$as_me:$LINENO: result: no" >&5
4515echo "${ECHO_T}no" >&6
4516  SET_MAKE="MAKE=${MAKE-make}"
4517fi
4518
4519rm -rf .tst 2>/dev/null
4520mkdir .tst 2>/dev/null
4521if test -d .tst; then
4522  am__leading_dot=.
4523else
4524  am__leading_dot=_
4525fi
4526rmdir .tst 2>/dev/null
4527
4528DEPDIR="${am__leading_dot}deps"
4529
4530          ac_config_commands="$ac_config_commands depfiles"
4531
4532
4533am_make=${MAKE-make}
4534cat > confinc << 'END'
4535am__doit:
4536        @echo done
4537.PHONY: am__doit
4538END
4539# If we don't find an include directive, just comment out the code.
4540echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4541echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4542am__include="#"
4543am__quote=
4544_am_result=none
4545# First try GNU make style include.
4546echo "include confinc" > confmf
4547# We grep out `Entering directory' and `Leaving directory'
4548# messages which can occur if `w' ends up in MAKEFLAGS.
4549# In particular we don't look at `^make:' because GNU make might
4550# be invoked under some other name (usually "gmake"), in which
4551# case it prints its new name instead of `make'.
4552if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4553   am__include=include
4554   am__quote=
4555   _am_result=GNU
4556fi
4557# Now try BSD make style include.
4558if test "$am__include" = "#"; then
4559   echo '.include "confinc"' > confmf
4560   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4561      am__include=.include
4562      am__quote="\""
4563      _am_result=BSD
4564   fi
4565fi
4566
4567
4568echo "$as_me:$LINENO: result: $_am_result" >&5
4569echo "${ECHO_T}$_am_result" >&6
4570rm -f confinc confmf
4571
4572# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4573if test "${enable_dependency_tracking+set}" = set; then
4574  enableval="$enable_dependency_tracking"
4575
4576fi;
4577if test "x$enable_dependency_tracking" != xno; then
4578  am_depcomp="$ac_aux_dir/depcomp"
4579  AMDEPBACKSLASH='\'
4580fi
4581
4582
4583if test "x$enable_dependency_tracking" != xno; then
4584  AMDEP_TRUE=
4585  AMDEP_FALSE='#'
4586else
4587  AMDEP_TRUE='#'
4588  AMDEP_FALSE=
4589fi
4590
4591
4592
4593
4594
4595# AC_MSG_NOTICE([Beginning automake initialisation.])
4596# Stuff for automake
4597# test to see if srcdir already configured
4598if test "`cd $srcdir && pwd`" != "`pwd`" &&
4599   test -f $srcdir/config.status; then
4600  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4601echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4602   { (exit 1); exit 1; }; }
4603fi
4604
4605# test whether we have cygpath
4606if test -z "$CYGPATH_W"; then
4607  if (cygpath --version) >/dev/null 2>/dev/null; then
4608    CYGPATH_W='cygpath -w'
4609  else
4610    CYGPATH_W=echo
4611  fi
4612fi
4613
4614
4615# Define the identity of the package.
4616 PACKAGE='clp'
4617 VERSION='1.13.1'
4618
4619
4620cat >>confdefs.h <<_ACEOF
4621#define PACKAGE "$PACKAGE"
4622_ACEOF
4623
4624
4625cat >>confdefs.h <<_ACEOF
4626#define VERSION "$VERSION"
4627_ACEOF
4628
4629# Some tools Automake needs.
4630
4631ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4632
4633
4634AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4635
4636
4637AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4638
4639
4640AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4641
4642
4643MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4644
4645install_sh=${install_sh-"$am_aux_dir/install-sh"}
4646
4647# Installed binaries are usually stripped using `strip' when the user
4648# run `make install-strip'.  However `strip' might not be the right
4649# tool to use in cross-compilation environments, therefore Automake
4650# will honor the `STRIP' environment variable to overrule this program.
4651if test "$cross_compiling" != no; then
4652  if test -n "$ac_tool_prefix"; then
4653  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4654set dummy ${ac_tool_prefix}strip; ac_word=$2
4655echo "$as_me:$LINENO: checking for $ac_word" >&5
4656echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4657if test "${ac_cv_prog_STRIP+set}" = set; then
4658  echo $ECHO_N "(cached) $ECHO_C" >&6
4659else
4660  if test -n "$STRIP"; then
4661  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4662else
4663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4664for as_dir in $PATH
4665do
4666  IFS=$as_save_IFS
4667  test -z "$as_dir" && as_dir=.
4668  for ac_exec_ext in '' $ac_executable_extensions; do
4669  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4670    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4671    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4672    break 2
4673  fi
4674done
4675done
4676
4677fi
4678fi
4679STRIP=$ac_cv_prog_STRIP
4680if test -n "$STRIP"; then
4681  echo "$as_me:$LINENO: result: $STRIP" >&5
4682echo "${ECHO_T}$STRIP" >&6
4683else
4684  echo "$as_me:$LINENO: result: no" >&5
4685echo "${ECHO_T}no" >&6
4686fi
4687
4688fi
4689if test -z "$ac_cv_prog_STRIP"; then
4690  ac_ct_STRIP=$STRIP
4691  # Extract the first word of "strip", so it can be a program name with args.
4692set dummy strip; ac_word=$2
4693echo "$as_me:$LINENO: checking for $ac_word" >&5
4694echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4695if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4696  echo $ECHO_N "(cached) $ECHO_C" >&6
4697else
4698  if test -n "$ac_ct_STRIP"; then
4699  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4700else
4701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4702for as_dir in $PATH
4703do
4704  IFS=$as_save_IFS
4705  test -z "$as_dir" && as_dir=.
4706  for ac_exec_ext in '' $ac_executable_extensions; do
4707  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4708    ac_cv_prog_ac_ct_STRIP="strip"
4709    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4710    break 2
4711  fi
4712done
4713done
4714
4715  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4716fi
4717fi
4718ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4719if test -n "$ac_ct_STRIP"; then
4720  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4721echo "${ECHO_T}$ac_ct_STRIP" >&6
4722else
4723  echo "$as_me:$LINENO: result: no" >&5
4724echo "${ECHO_T}no" >&6
4725fi
4726
4727  STRIP=$ac_ct_STRIP
4728else
4729  STRIP="$ac_cv_prog_STRIP"
4730fi
4731
4732fi
4733INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
4734
4735# We need awk for the "check" target.  The system "awk" is bad on
4736# some platforms.
4737# Always define AMTAR for backward compatibility.
4738
4739AMTAR=${AMTAR-"${am_missing_run}tar"}
4740
4741am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4742
4743
4744
4745
4746depcc="$CC"   am_compiler_list=
4747
4748echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4749echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4750if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4751  echo $ECHO_N "(cached) $ECHO_C" >&6
4752else
4753  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4754  # We make a subdir and do the tests there.  Otherwise we can end up
4755  # making bogus files that we don't know about and never remove.  For
4756  # instance it was reported that on HP-UX the gcc test will end up
4757  # making a dummy file named `D' -- because `-MD' means `put the output
4758  # in D'.
4759  mkdir conftest.dir
4760  # Copy depcomp to subdir because otherwise we won't find it if we're
4761  # using a relative directory.
4762  cp "$am_depcomp" conftest.dir
4763  cd conftest.dir
4764  # We will build objects and dependencies in a subdirectory because
4765  # it helps to detect inapplicable dependency modes.  For instance
4766  # both Tru64's cc and ICC support -MD to output dependencies as a
4767  # side effect of compilation, but ICC will put the dependencies in
4768  # the current directory while Tru64 will put them in the object
4769  # directory.
4770  mkdir sub
4771
4772  am_cv_CC_dependencies_compiler_type=none
4773  if test "$am_compiler_list" = ""; then
4774     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4775  fi
4776  for depmode in $am_compiler_list; do
4777    # Setup a source with many dependencies, because some compilers
4778    # like to wrap large dependency lists on column 80 (with \), and
4779    # we should not choose a depcomp mode which is confused by this.
4780    #
4781    # We need to recreate these files for each test, as the compiler may
4782    # overwrite some of them when testing with obscure command lines.
4783    # This happens at least with the AIX C compiler.
4784    : > sub/conftest.c
4785    for i in 1 2 3 4 5 6; do
4786      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4787      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4788      # Solaris 8's {/usr,}/bin/sh.
4789      touch sub/conftst$i.h
4790    done
4791    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4792
4793    case $depmode in
4794    nosideeffect)
4795      # after this tag, mechanisms are not by side-effect, so they'll
4796      # only be used when explicitly requested
4797      if test "x$enable_dependency_tracking" = xyes; then
4798        continue
4799      else
4800        break
4801      fi
4802      ;;
4803    none) break ;;
4804    esac
4805    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4806    # mode.  It turns out that the SunPro C++ compiler does not properly
4807    # handle `-M -o', and we need to detect this.
4808    if depmode=$depmode \
4809       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4810       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4811       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4812         >/dev/null 2>conftest.err &&
4813       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4814       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4815       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4816      # icc doesn't choke on unknown options, it will just issue warnings
4817      # or remarks (even with -Werror).  So we grep stderr for any message
4818      # that says an option was ignored or not supported.
4819      # When given -MP, icc 7.0 and 7.1 complain thusly:
4820      #   icc: Command line warning: ignoring option '-M'; no argument required
4821      # The diagnosis changed in icc 8.0:
4822      #   icc: Command line remark: option '-MP' not supported
4823      if (grep 'ignoring option' conftest.err ||
4824          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4825        am_cv_CC_dependencies_compiler_type=$depmode
4826        break
4827      fi
4828    fi
4829  done
4830
4831  cd ..
4832  rm -rf conftest.dir
4833else
4834  am_cv_CC_dependencies_compiler_type=none
4835fi
4836
4837fi
4838echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4839echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4840CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4841
4842
4843
4844if
4845  test "x$enable_dependency_tracking" != xno \
4846  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4847  am__fastdepCC_TRUE=
4848  am__fastdepCC_FALSE='#'
4849else
4850  am__fastdepCC_TRUE='#'
4851  am__fastdepCC_FALSE=
4852fi
4853
4854
4855depcc="$CXX"  am_compiler_list=
4856
4857echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4858echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4859if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4860  echo $ECHO_N "(cached) $ECHO_C" >&6
4861else
4862  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4863  # We make a subdir and do the tests there.  Otherwise we can end up
4864  # making bogus files that we don't know about and never remove.  For
4865  # instance it was reported that on HP-UX the gcc test will end up
4866  # making a dummy file named `D' -- because `-MD' means `put the output
4867  # in D'.
4868  mkdir conftest.dir
4869  # Copy depcomp to subdir because otherwise we won't find it if we're
4870  # using a relative directory.
4871  cp "$am_depcomp" conftest.dir
4872  cd conftest.dir
4873  # We will build objects and dependencies in a subdirectory because
4874  # it helps to detect inapplicable dependency modes.  For instance
4875  # both Tru64's cc and ICC support -MD to output dependencies as a
4876  # side effect of compilation, but ICC will put the dependencies in
4877  # the current directory while Tru64 will put them in the object
4878  # directory.
4879  mkdir sub
4880
4881  am_cv_CXX_dependencies_compiler_type=none
4882  if test "$am_compiler_list" = ""; then
4883     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4884  fi
4885  for depmode in $am_compiler_list; do
4886    # Setup a source with many dependencies, because some compilers
4887    # like to wrap large dependency lists on column 80 (with \), and
4888    # we should not choose a depcomp mode which is confused by this.
4889    #
4890    # We need to recreate these files for each test, as the compiler may
4891    # overwrite some of them when testing with obscure command lines.
4892    # This happens at least with the AIX C compiler.
4893    : > sub/conftest.c
4894    for i in 1 2 3 4 5 6; do
4895      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4896      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4897      # Solaris 8's {/usr,}/bin/sh.
4898      touch sub/conftst$i.h
4899    done
4900    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4901
4902    case $depmode in
4903    nosideeffect)
4904      # after this tag, mechanisms are not by side-effect, so they'll
4905      # only be used when explicitly requested
4906      if test "x$enable_dependency_tracking" = xyes; then
4907        continue
4908      else
4909        break
4910      fi
4911      ;;
4912    none) break ;;
4913    esac
4914    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4915    # mode.  It turns out that the SunPro C++ compiler does not properly
4916    # handle `-M -o', and we need to detect this.
4917    if depmode=$depmode \
4918       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4919       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4920       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4921         >/dev/null 2>conftest.err &&
4922       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4923       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4924       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4925      # icc doesn't choke on unknown options, it will just issue warnings
4926      # or remarks (even with -Werror).  So we grep stderr for any message
4927      # that says an option was ignored or not supported.
4928      # When given -MP, icc 7.0 and 7.1 complain thusly:
4929      #   icc: Command line warning: ignoring option '-M'; no argument required
4930      # The diagnosis changed in icc 8.0:
4931      #   icc: Command line remark: option '-MP' not supported
4932      if (grep 'ignoring option' conftest.err ||
4933          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4934        am_cv_CXX_dependencies_compiler_type=$depmode
4935        break
4936      fi
4937    fi
4938  done
4939
4940  cd ..
4941  rm -rf conftest.dir
4942else
4943  am_cv_CXX_dependencies_compiler_type=none
4944fi
4945
4946fi
4947echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4948echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4949CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4950
4951
4952
4953if
4954  test "x$enable_dependency_tracking" != xno \
4955  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4956  am__fastdepCXX_TRUE=
4957  am__fastdepCXX_FALSE='#'
4958else
4959  am__fastdepCXX_TRUE='#'
4960  am__fastdepCXX_FALSE=
4961fi
4962
4963
4964
4965echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4966echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4967    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4968if test "${enable_maintainer_mode+set}" = set; then
4969  enableval="$enable_maintainer_mode"
4970  USE_MAINTAINER_MODE=$enableval
4971else
4972  USE_MAINTAINER_MODE=no
4973fi;
4974  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4975echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4976
4977
4978if test $USE_MAINTAINER_MODE = yes; then
4979  MAINTAINER_MODE_TRUE=
4980  MAINTAINER_MODE_FALSE='#'
4981else
4982  MAINTAINER_MODE_TRUE='#'
4983  MAINTAINER_MODE_FALSE=
4984fi
4985
4986  MAINT=$MAINTAINER_MODE_TRUE
4987
4988
4989
4990coin_have_externals=no
4991if test "$enable_maintainer_mode" = yes; then
4992
4993  # If maintainer mode is chosen, we make sure that the correct versions
4994  # of the tools are used, and that we know where libtool.m4 is (to
4995  # recreate acinclude.m4)
4996
4997
4998  LIBTOOLM4=
4999  # Normally, $HOME
5000  AUTOTOOLS_DFLT=$HOME
5001
5002  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
5003echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
5004if test "${ac_cv_use_correct_autotools+set}" = set; then
5005  echo $ECHO_N "(cached) $ECHO_C" >&6
5006else
5007  ac_cv_use_correct_autotools=check
5008fi
5009echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
5010echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
5011
5012  if test $ac_cv_use_correct_autotools = check; then
5013    ac_cv_use_correct_autotools=yes
5014    # Check if we have autoconf
5015    # Extract the first word of "autoconf", so it can be a program name with args.
5016set dummy autoconf; ac_word=$2
5017echo "$as_me:$LINENO: checking for $ac_word" >&5
5018echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5019if test "${ac_cv_prog_have_autoconf+set}" = set; then
5020  echo $ECHO_N "(cached) $ECHO_C" >&6
5021else
5022  if test -n "$have_autoconf"; then
5023  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
5024else
5025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5026for as_dir in $PATH
5027do
5028  IFS=$as_save_IFS
5029  test -z "$as_dir" && as_dir=.
5030  for ac_exec_ext in '' $ac_executable_extensions; do
5031  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5032    ac_cv_prog_have_autoconf="yes"
5033    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5034    break 2
5035  fi
5036done
5037done
5038
5039  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
5040fi
5041fi
5042have_autoconf=$ac_cv_prog_have_autoconf
5043if test -n "$have_autoconf"; then
5044  echo "$as_me:$LINENO: result: $have_autoconf" >&5
5045echo "${ECHO_T}$have_autoconf" >&6
5046else
5047  echo "$as_me:$LINENO: result: no" >&5
5048echo "${ECHO_T}no" >&6
5049fi
5050
5051    if test $have_autoconf = no; then
5052      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
5053echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
5054   { (exit 1); exit 1; }; }
5055    fi
5056
5057    # Check whether autoconf is the correct version
5058    correct_version='2.59'
5059    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5060    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
5061echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
5062    autoconf --version > confauto.out 2>&1
5063    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5064      echo "$as_me:$LINENO: result: yes" >&5
5065echo "${ECHO_T}yes" >&6
5066    else
5067      rm -f confauto.out
5068      echo "$as_me:$LINENO: result: no" >&5
5069echo "${ECHO_T}no" >&6
5070      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
5071echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
5072   { (exit 1); exit 1; }; }
5073    fi
5074    rm -f confauto.out
5075
5076    # Check if the executable autoconf is picked up from the correct location
5077    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
5078echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
5079    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
5080    autoconf_dir=`cd $autoconf_dir; pwd`
5081    if test x$AUTOTOOLS_DIR = x; then
5082      want_dir=$AUTOTOOLS_DFLT/bin
5083    else
5084      want_dir=$AUTOTOOLS_DIR/bin
5085    fi
5086    if test $autoconf_dir = `cd $want_dir; pwd`; then
5087      echo "$as_me:$LINENO: result: yes" >&5
5088echo "${ECHO_T}yes" >&6
5089    else
5090      rm -f confauto.out
5091      echo "$as_me:$LINENO: result: no" >&5
5092echo "${ECHO_T}no" >&6
5093      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5094echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5095   { (exit 1); exit 1; }; }
5096    fi
5097
5098    # Check if we have automake
5099    # Extract the first word of "automake", so it can be a program name with args.
5100set dummy automake; ac_word=$2
5101echo "$as_me:$LINENO: checking for $ac_word" >&5
5102echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5103if test "${ac_cv_prog_have_automake+set}" = set; then
5104  echo $ECHO_N "(cached) $ECHO_C" >&6
5105else
5106  if test -n "$have_automake"; then
5107  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
5108else
5109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5110for as_dir in $PATH
5111do
5112  IFS=$as_save_IFS
5113  test -z "$as_dir" && as_dir=.
5114  for ac_exec_ext in '' $ac_executable_extensions; do
5115  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5116    ac_cv_prog_have_automake="yes"
5117    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5118    break 2
5119  fi
5120done
5121done
5122
5123  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
5124fi
5125fi
5126have_automake=$ac_cv_prog_have_automake
5127if test -n "$have_automake"; then
5128  echo "$as_me:$LINENO: result: $have_automake" >&5
5129echo "${ECHO_T}$have_automake" >&6
5130else
5131  echo "$as_me:$LINENO: result: no" >&5
5132echo "${ECHO_T}no" >&6
5133fi
5134
5135    if test $have_automake = no; then
5136      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
5137echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
5138   { (exit 1); exit 1; }; }
5139    fi
5140
5141    # Check whether automake is the correct version
5142    correct_version='1.9.6'
5143    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5144    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
5145echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
5146    automake --version > confauto.out 2>&1
5147    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
5148      echo "$as_me:$LINENO: result: yes" >&5
5149echo "${ECHO_T}yes" >&6
5150    else
5151      rm -f confauto.out
5152      echo "$as_me:$LINENO: result: no" >&5
5153echo "${ECHO_T}no" >&6
5154      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
5155echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
5156   { (exit 1); exit 1; }; }
5157    fi
5158    rm -f confauto.out
5159
5160    # Check if the executable automake is picked up from the correct location
5161    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
5162echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
5163    automake_dir=`which automake | sed -e 's=/automake=='`
5164    automake_dir=`cd $automake_dir; pwd`
5165    if test x$AUTOTOOLS_DIR = x; then
5166      want_dir=$AUTOTOOLS_DFLT/bin
5167    else
5168      want_dir=$AUTOTOOLS_DIR/bin
5169    fi
5170    if test $automake_dir = `cd $want_dir; pwd`; then
5171      echo "$as_me:$LINENO: result: yes" >&5
5172echo "${ECHO_T}yes" >&6
5173    else
5174      rm -f confauto.out
5175      echo "$as_me:$LINENO: result: no" >&5
5176echo "${ECHO_T}no" >&6
5177      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
5178echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
5179   { (exit 1); exit 1; }; }
5180    fi
5181
5182    # Check if this is the correct version of libtool (with escaped dots)
5183    if test x$AUTOTOOLS_DIR = x; then
5184      want_dir=$AUTOTOOLS_DFLT/share
5185    else
5186      want_dir=$AUTOTOOLS_DIR/share
5187    fi
5188    correct_version='1.5.22'
5189    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
5190    if test -r $want_dir/libtool/ltmain.sh; then
5191  have_ltmain=yes
5192  :
5193else
5194  have_ltmain=no
5195  :
5196fi
5197
5198    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
5199echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
5200    if test $have_ltmain = yes; then
5201    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
5202        echo "$as_me:$LINENO: result: yes" >&5
5203echo "${ECHO_T}yes" >&6
5204      else
5205        echo "$as_me:$LINENO: result: no" >&5
5206echo "${ECHO_T}no" >&6
5207        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
5208echo "$as_me: error: You don't have the correct version of libtool." >&2;}
5209   { (exit 1); exit 1; }; }
5210      fi
5211    else
5212      echo "$as_me:$LINENO: result: no" >&5
5213echo "${ECHO_T}no" >&6
5214      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
5215echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
5216   { (exit 1); exit 1; }; }
5217    fi
5218  fi
5219
5220  # Check if we can find the libtool file
5221  if test x$AUTOTOOLS_DIR = x; then
5222    want_dir=$AUTOTOOLS_DFLT/share
5223  else
5224    want_dir=$AUTOTOOLS_DIR/share
5225  fi
5226  if test -r $want_dir/aclocal/libtool.m4; then
5227  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
5228  :
5229else
5230  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
5231echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
5232   { (exit 1); exit 1; }; }
5233  :
5234fi
5235
5236
5237  # Check if we have an Externals file
5238  if test -r $srcdir/Externals; then
5239    coin_have_externals=yes
5240  fi
5241  # Check if subversion is installed and understands https
5242  # Extract the first word of "svn", so it can be a program name with args.
5243set dummy svn; ac_word=$2
5244echo "$as_me:$LINENO: checking for $ac_word" >&5
5245echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5246if test "${ac_cv_prog_have_svn+set}" = set; then
5247  echo $ECHO_N "(cached) $ECHO_C" >&6
5248else
5249  if test -n "$have_svn"; then
5250  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
5251else
5252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5253for as_dir in $PATH
5254do
5255  IFS=$as_save_IFS
5256  test -z "$as_dir" && as_dir=.
5257  for ac_exec_ext in '' $ac_executable_extensions; do
5258  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5259    ac_cv_prog_have_svn="yes"
5260    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5261    break 2
5262  fi
5263done
5264done
5265
5266  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
5267fi
5268fi
5269have_svn=$ac_cv_prog_have_svn
5270if test -n "$have_svn"; then
5271  echo "$as_me:$LINENO: result: $have_svn" >&5
5272echo "${ECHO_T}$have_svn" >&6
5273else
5274  echo "$as_me:$LINENO: result: no" >&5
5275echo "${ECHO_T}no" >&6
5276fi
5277
5278  if test x$have_svn = xyes; then
5279    echo "$as_me:$LINENO: checking whether svn understands https" >&5
5280echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
5281if test "${ac_cv_svn_understands_https+set}" = set; then
5282  echo $ECHO_N "(cached) $ECHO_C" >&6
5283else
5284  svn --version > confauto.out 2>&1
5285                    if $EGREP https confauto.out >/dev/null 2>&1; then
5286                      ac_cv_svn_understands_https=yes
5287                    else
5288                      ac_cv_svn_understands_https=no
5289                      have_svn=no
5290                      ac_cv_prog_have_svn=no
5291                    fi
5292                    rm -f confauto.out
5293fi
5294echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
5295echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
5296  fi
5297
5298  # Find the location of the BuildTools directory
5299  BUILDTOOLSDIR=
5300  if test -r $srcdir/BuildTools/coin.m4; then
5301    BUILDTOOLSDIR=$srcdir/BuildTools
5302  else
5303    if test -r $srcdir/../BuildTools/coin.m4; then
5304      BUILDTOOLSDIR=$srcdir/../BuildTools
5305    else
5306      if test -r $srcdir/../../BuildTools/coin.m4; then
5307        BUILDTOOLSDIR=$srcdir/../../BuildTools
5308      else
5309        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
5310echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
5311   { (exit 1); exit 1; }; }
5312      fi
5313    fi
5314  fi
5315
5316
5317  # The following variable is set to the name of the directory where
5318  # the autotool scripts are located
5319
5320  AUX_DIR=$ac_aux_dir
5321fi
5322
5323# helpful variable for the base directory of this package
5324abs_source_dir=`cd $srcdir; pwd`
5325
5326
5327# Stuff for example Makefiles
5328if test x$prefix = xNONE; then
5329  full_prefix=$ac_default_prefix
5330else
5331  full_prefix=$prefix
5332fi
5333full_prefix=`cd $full_prefix ; pwd`
5334
5335abs_lib_dir=$full_prefix/lib/coin
5336
5337abs_include_dir=$full_prefix/include
5338
5339abs_bin_dir=$full_prefix/bin
5340
5341
5342
5343if test $coin_have_externals = yes && test x$have_svn = xyes; then
5344  HAVE_EXTERNALS_TRUE=
5345  HAVE_EXTERNALS_FALSE='#'
5346else
5347  HAVE_EXTERNALS_TRUE='#'
5348  HAVE_EXTERNALS_FALSE=
5349fi
5350
5351
5352# AC_MSG_NOTICE([End automake initialisation.])
5353
5354
5355
5356LIBTOOL=
5357if test -r ../libtool; then
5358  coin_config_dir=..
5359  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
5360fi
5361if test "x$LIBTOOL" = x; then
5362  if test -r ../../libtool; then
5363    coin_config_dir=../..
5364    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
5365  fi
5366fi
5367
5368if test "x$LIBTOOL" = x; then
5369# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
5370  # Stuff for libtool
5371  # Check whether --enable-shared or --disable-shared was given.
5372if test "${enable_shared+set}" = set; then
5373  enableval="$enable_shared"
5374  p=${PACKAGE-default}
5375    case $enableval in
5376    yes) enable_shared=yes ;;
5377    no) enable_shared=no ;;
5378    *)
5379      enable_shared=no
5380      # Look at the argument we got.  We use all the common list separators.
5381      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5382      for pkg in $enableval; do
5383        IFS="$lt_save_ifs"
5384        if test "X$pkg" = "X$p"; then
5385          enable_shared=yes
5386        fi
5387      done
5388      IFS="$lt_save_ifs"
5389      ;;
5390    esac
5391else
5392  enable_shared=yes
5393fi;
5394
5395# Check whether --enable-fast-install or --disable-fast-install was given.
5396if test "${enable_fast_install+set}" = set; then
5397  enableval="$enable_fast_install"
5398  p=${PACKAGE-default}
5399    case $enableval in
5400    yes) enable_fast_install=yes ;;
5401    no) enable_fast_install=no ;;
5402    *)
5403      enable_fast_install=no
5404      # Look at the argument we got.  We use all the common list separators.
5405      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5406      for pkg in $enableval; do
5407        IFS="$lt_save_ifs"
5408        if test "X$pkg" = "X$p"; then
5409          enable_fast_install=yes
5410        fi
5411      done
5412      IFS="$lt_save_ifs"
5413      ;;
5414    esac
5415else
5416  enable_fast_install=yes
5417fi;
5418
5419echo "$as_me:$LINENO: checking host system type" >&5
5420echo $ECHO_N "checking host system type... $ECHO_C" >&6
5421if test "${ac_cv_host+set}" = set; then
5422  echo $ECHO_N "(cached) $ECHO_C" >&6
5423else
5424  ac_cv_host_alias=$host_alias
5425test -z "$ac_cv_host_alias" &&
5426  ac_cv_host_alias=$ac_cv_build_alias
5427ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5428  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5429echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5430   { (exit 1); exit 1; }; }
5431
5432fi
5433echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5434echo "${ECHO_T}$ac_cv_host" >&6
5435host=$ac_cv_host
5436host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5437host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5438host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5439
5440
5441echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5442echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5443if test "${lt_cv_path_SED+set}" = set; then
5444  echo $ECHO_N "(cached) $ECHO_C" >&6
5445else
5446  # Loop through the user's path and test for sed and gsed.
5447# Then use that list of sed's as ones to test for truncation.
5448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5449for as_dir in $PATH
5450do
5451  IFS=$as_save_IFS
5452  test -z "$as_dir" && as_dir=.
5453  for lt_ac_prog in sed gsed; do
5454    for ac_exec_ext in '' $ac_executable_extensions; do
5455      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5456        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5457      fi
5458    done
5459  done
5460done
5461lt_ac_max=0
5462lt_ac_count=0
5463# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5464# along with /bin/sed that truncates output.
5465for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5466  test ! -f $lt_ac_sed && continue
5467  cat /dev/null > conftest.in
5468  lt_ac_count=0
5469  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5470  # Check for GNU sed and select it if it is found.
5471  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5472    lt_cv_path_SED=$lt_ac_sed
5473    break
5474  fi
5475  while true; do
5476    cat conftest.in conftest.in >conftest.tmp
5477    mv conftest.tmp conftest.in
5478    cp conftest.in conftest.nl
5479    echo >>conftest.nl
5480    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5481    cmp -s conftest.out conftest.nl || break
5482    # 10000 chars as input seems more than enough
5483    test $lt_ac_count -gt 10 && break
5484    lt_ac_count=`expr $lt_ac_count + 1`
5485    if test $lt_ac_count -gt $lt_ac_max; then
5486      lt_ac_max=$lt_ac_count
5487      lt_cv_path_SED=$lt_ac_sed
5488    fi
5489  done
5490done
5491
5492fi
5493
5494SED=$lt_cv_path_SED
5495echo "$as_me:$LINENO: result: $SED" >&5
5496echo "${ECHO_T}$SED" >&6
5497
5498
5499# Check whether --with-gnu-ld or --without-gnu-ld was given.
5500if test "${with_gnu_ld+set}" = set; then
5501  withval="$with_gnu_ld"
5502  test "$withval" = no || with_gnu_ld=yes
5503else
5504  with_gnu_ld=no
5505fi;
5506ac_prog=ld
5507if test "$GCC" = yes; then
5508  # Check if gcc -print-prog-name=ld gives a path.
5509  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5510echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5511  case $host in
5512  *-*-mingw*)
5513    # gcc leaves a trailing carriage return which upsets mingw
5514    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5515  *)
5516    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5517  esac
5518  case $ac_prog in
5519    # Accept absolute paths.
5520    [\\/]* | ?:[\\/]*)
5521      re_direlt='/[^/][^/]*/\.\./'
5522      # Canonicalize the pathname of ld
5523      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5524      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5525        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5526      done
5527      test -z "$LD" && LD="$ac_prog"
5528      ;;
5529  "")
5530    # If it fails, then pretend we aren't using GCC.
5531    ac_prog=ld
5532    ;;
5533  *)
5534    # If it is relative, then search for the first ld in PATH.
5535    with_gnu_ld=unknown
5536    ;;
5537  esac
5538elif test "$with_gnu_ld" = yes; then
5539  echo "$as_me:$LINENO: checking for GNU ld" >&5
5540echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5541else
5542  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5543echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5544fi
5545if test "${lt_cv_path_LD+set}" = set; then
5546  echo $ECHO_N "(cached) $ECHO_C" >&6
5547else
5548  if test -z "$LD"; then
5549  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5550  for ac_dir in $PATH; do
5551    IFS="$lt_save_ifs"
5552    test -z "$ac_dir" && ac_dir=.
5553    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5554      lt_cv_path_LD="$ac_dir/$ac_prog"
5555      # Check to see if the program is GNU ld.  I'd rather use --version,
5556      # but apparently some variants of GNU ld only accept -v.
5557      # Break only if it was the GNU/non-GNU ld that we prefer.
5558      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5559      *GNU* | *'with BFD'*)
5560        test "$with_gnu_ld" != no && break
5561        ;;
5562      *)
5563        test "$with_gnu_ld" != yes && break
5564        ;;
5565      esac
5566    fi
5567  done
5568  IFS="$lt_save_ifs"
5569else
5570  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5571fi
5572fi
5573
5574LD="$lt_cv_path_LD"
5575if test -n "$LD"; then
5576  echo "$as_me:$LINENO: result: $LD" >&5
5577echo "${ECHO_T}$LD" >&6
5578else
5579  echo "$as_me:$LINENO: result: no" >&5
5580echo "${ECHO_T}no" >&6
5581fi
5582test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5583echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5584   { (exit 1); exit 1; }; }
5585echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5586echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5587if test "${lt_cv_prog_gnu_ld+set}" = set; then
5588  echo $ECHO_N "(cached) $ECHO_C" >&6
5589else
5590  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5591case `$LD -v 2>&1 </dev/null` in
5592*GNU* | *'with BFD'*)
5593  lt_cv_prog_gnu_ld=yes
5594  ;;
5595*)
5596  lt_cv_prog_gnu_ld=no
5597  ;;
5598esac
5599fi
5600echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5601echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5602with_gnu_ld=$lt_cv_prog_gnu_ld
5603
5604
5605echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5606echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5607if test "${lt_cv_ld_reload_flag+set}" = set; then
5608  echo $ECHO_N "(cached) $ECHO_C" >&6
5609else
5610  lt_cv_ld_reload_flag='-r'
5611fi
5612echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5613echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5614reload_flag=$lt_cv_ld_reload_flag
5615case $reload_flag in
5616"" | " "*) ;;
5617*) reload_flag=" $reload_flag" ;;
5618esac
5619reload_cmds='$LD$reload_flag -o $output$reload_objs'
5620case $host_os in
5621  darwin*)
5622    if test "$GCC" = yes; then
5623      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5624    else
5625      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5626    fi
5627    ;;
5628esac
5629
5630echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5631echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5632if test "${lt_cv_path_NM+set}" = set; then
5633  echo $ECHO_N "(cached) $ECHO_C" >&6
5634else
5635  if test -n "$NM"; then
5636  # Let the user override the test.
5637  lt_cv_path_NM="$NM"
5638else
5639  lt_nm_to_check="${ac_tool_prefix}nm"
5640  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5641    lt_nm_to_check="$lt_nm_to_check nm"
5642  fi
5643  for lt_tmp_nm in $lt_nm_to_check; do
5644    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5645    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5646      IFS="$lt_save_ifs"
5647      test -z "$ac_dir" && ac_dir=.
5648      tmp_nm="$ac_dir/$lt_tmp_nm"
5649      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5650        # Check to see if the nm accepts a BSD-compat flag.
5651        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5652        #   nm: unknown option "B" ignored
5653        # Tru64's nm complains that /dev/null is an invalid object file
5654        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5655        */dev/null* | *'Invalid file or object type'*)
5656          lt_cv_path_NM="$tmp_nm -B"
5657          break
5658          ;;
5659        *)
5660          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5661          */dev/null*)
5662            lt_cv_path_NM="$tmp_nm -p"
5663            break
5664            ;;
5665          *)
5666            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5667            continue # so that we can try to find one that supports BSD flags
5668            ;;
5669          esac
5670          ;;
5671        esac
5672      fi
5673    done
5674    IFS="$lt_save_ifs"
5675  done
5676  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5677fi
5678fi
5679echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5680echo "${ECHO_T}$lt_cv_path_NM" >&6
5681NM="$lt_cv_path_NM"
5682
5683echo "$as_me:$LINENO: checking whether ln -s works" >&5
5684echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5685LN_S=$as_ln_s
5686if test "$LN_S" = "ln -s"; then
5687  echo "$as_me:$LINENO: result: yes" >&5
5688echo "${ECHO_T}yes" >&6
5689else
5690  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5691echo "${ECHO_T}no, using $LN_S" >&6
5692fi
5693
5694echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5695echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5696if test "${lt_cv_deplibs_check_method+set}" = set; then
5697  echo $ECHO_N "(cached) $ECHO_C" >&6
5698else
5699  lt_cv_file_magic_cmd='$MAGIC_CMD'
5700lt_cv_file_magic_test_file=
5701lt_cv_deplibs_check_method='unknown'
5702# Need to set the preceding variable on all platforms that support
5703# interlibrary dependencies.
5704# 'none' -- dependencies not supported.
5705# `unknown' -- same as none, but documents that we really don't know.
5706# 'pass_all' -- all dependencies passed with no checks.
5707# 'test_compile' -- check by making test program.
5708# 'file_magic [[regex]]' -- check by looking for files in library path
5709# which responds to the $file_magic_cmd with a given extended regex.
5710# If you have `file' or equivalent on your system and you're not sure
5711# whether `pass_all' will *always* work, you probably want this one.
5712
5713case $host_os in
5714aix4* | aix5*)
5715  lt_cv_deplibs_check_method=pass_all
5716  ;;
5717
5718beos*)
5719  lt_cv_deplibs_check_method=pass_all
5720  ;;
5721
5722bsdi[45]*)
5723  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5724  lt_cv_file_magic_cmd='/usr/bin/file -L'
5725  lt_cv_file_magic_test_file=/shlib/libc.so
5726  ;;
5727
5728cygwin*)
5729  # func_win32_libid is a shell function defined in ltmain.sh
5730  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5731  lt_cv_file_magic_cmd='func_win32_libid'
5732  ;;
5733
5734mingw* | pw32*)
5735  # Base MSYS/MinGW do not provide the 'file' command needed by
5736  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5737  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5738  lt_cv_file_magic_cmd='$OBJDUMP -f'
5739  ;;
5740
5741darwin* | rhapsody*)
5742  lt_cv_deplibs_check_method=pass_all
5743  ;;
5744
5745freebsd* | kfreebsd*-gnu | dragonfly*)
5746  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5747    case $host_cpu in
5748    i*86 )
5749      # Not sure whether the presence of OpenBSD here was a mistake.
5750      # Let's accept both of them until this is cleared up.
5751      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5752      lt_cv_file_magic_cmd=/usr/bin/file
5753      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5754      ;;
5755    esac
5756  else
5757    lt_cv_deplibs_check_method=pass_all
5758  fi
5759  ;;
5760
5761gnu*)
5762  lt_cv_deplibs_check_method=pass_all
5763  ;;
5764
5765hpux10.20* | hpux11*)
5766  lt_cv_file_magic_cmd=/usr/bin/file
5767  case $host_cpu in
5768  ia64*)
5769    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5770    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5771    ;;
5772  hppa*64*)
5773    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]'
5774    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5775    ;;
5776  *)
5777    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5778    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5779    ;;
5780  esac
5781  ;;
5782
5783interix3*)
5784  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5785  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5786  ;;
5787
5788irix5* | irix6* | nonstopux*)
5789  case $LD in
5790  *-32|*"-32 ") libmagic=32-bit;;
5791  *-n32|*"-n32 ") libmagic=N32;;
5792  *-64|*"-64 ") libmagic=64-bit;;
5793  *) libmagic=never-match;;
5794  esac
5795  lt_cv_deplibs_check_method=pass_all
5796  ;;
5797
5798# This must be Linux ELF.
5799linux*)
5800  lt_cv_deplibs_check_method=pass_all
5801  ;;
5802
5803netbsd*)
5804  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5805    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5806  else
5807    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5808  fi
5809  ;;
5810
5811newos6*)
5812  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5813  lt_cv_file_magic_cmd=/usr/bin/file
5814  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5815  ;;
5816
5817nto-qnx*)
5818  lt_cv_deplibs_check_method=unknown
5819  ;;
5820
5821openbsd*)
5822  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5823    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5824  else
5825    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5826  fi
5827  ;;
5828
5829osf3* | osf4* | osf5*)
5830  lt_cv_deplibs_check_method=pass_all
5831  ;;
5832
5833solaris*)
5834  lt_cv_deplibs_check_method=pass_all
5835  ;;
5836
5837sysv4 | sysv4.3*)
5838  case $host_vendor in
5839  motorola)
5840    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]'
5841    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5842    ;;
5843  ncr)
5844    lt_cv_deplibs_check_method=pass_all
5845    ;;
5846  sequent)
5847    lt_cv_file_magic_cmd='/bin/file'
5848    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5849    ;;
5850  sni)
5851    lt_cv_file_magic_cmd='/bin/file'
5852    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5853    lt_cv_file_magic_test_file=/lib/libc.so
5854    ;;
5855  siemens)
5856    lt_cv_deplibs_check_method=pass_all
5857    ;;
5858  pc)
5859    lt_cv_deplibs_check_method=pass_all
5860    ;;
5861  esac
5862  ;;
5863
5864sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5865  lt_cv_deplibs_check_method=pass_all
5866  ;;
5867esac
5868
5869fi
5870echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5871echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5872file_magic_cmd=$lt_cv_file_magic_cmd
5873deplibs_check_method=$lt_cv_deplibs_check_method
5874test -z "$deplibs_check_method" && deplibs_check_method=unknown
5875
5876
5877
5878
5879# If no C compiler was specified, use CC.
5880LTCC=${LTCC-"$CC"}
5881
5882# If no C compiler flags were specified, use CFLAGS.
5883LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5884
5885# Allow CC to be a program name with arguments.
5886compiler=$CC
5887
5888# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5889if test "${enable_libtool_lock+set}" = set; then
5890  enableval="$enable_libtool_lock"
5891
5892fi;
5893test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5894
5895# Some flags need to be propagated to the compiler or linker for good
5896# libtool support.
5897case $host in
5898ia64-*-hpux*)
5899  # Find out which ABI we are using.
5900  echo 'int i;' > conftest.$ac_ext
5901  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5902  (eval $ac_compile) 2>&5
5903  ac_status=$?
5904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905  (exit $ac_status); }; then
5906    case `/usr/bin/file conftest.$ac_objext` in
5907    *ELF-32*)
5908      HPUX_IA64_MODE="32"
5909      ;;
5910    *ELF-64*)
5911      HPUX_IA64_MODE="64"
5912      ;;
5913    esac
5914  fi
5915  rm -rf conftest*
5916  ;;
5917*-*-irix6*)
5918  # Find out which ABI we are using.
5919  echo '#line 5919 "configure"' > conftest.$ac_ext
5920  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5921  (eval $ac_compile) 2>&5
5922  ac_status=$?
5923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924  (exit $ac_status); }; then
5925   if test "$lt_cv_prog_gnu_ld" = yes; then
5926    case `/usr/bin/file conftest.$ac_objext` in
5927    *32-bit*)
5928      LD="${LD-ld} -melf32bsmip"
5929      ;;
5930    *N32*)
5931      LD="${LD-ld} -melf32bmipn32"
5932      ;;
5933    *64-bit*)
5934      LD="${LD-ld} -melf64bmip"
5935      ;;
5936    esac
5937   else
5938    case `/usr/bin/file conftest.$ac_objext` in
5939    *32-bit*)
5940      LD="${LD-ld} -32"
5941      ;;
5942    *N32*)
5943      LD="${LD-ld} -n32"
5944      ;;
5945    *64-bit*)
5946      LD="${LD-ld} -64"
5947      ;;
5948    esac
5949   fi
5950  fi
5951  rm -rf conftest*
5952  ;;
5953
5954x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5955  # Find out which ABI we are using.
5956  echo 'int i;' > conftest.$ac_ext
5957  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5958  (eval $ac_compile) 2>&5
5959  ac_status=$?
5960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961  (exit $ac_status); }; then
5962    case `/usr/bin/file conftest.o` in
5963    *32-bit*)
5964      case $host in
5965        x86_64-*linux*)
5966          LD="${LD-ld} -m elf_i386"
5967          ;;
5968        ppc64-*linux*|powerpc64-*linux*)
5969          LD="${LD-ld} -m elf32ppclinux"
5970          ;;
5971        s390x-*linux*)
5972          LD="${LD-ld} -m elf_s390"
5973          ;;
5974        sparc64-*linux*)
5975          LD="${LD-ld} -m elf32_sparc"
5976          ;;
5977      esac
5978      ;;
5979    *64-bit*)
5980      case $host in
5981        x86_64-*linux*)
5982          LD="${LD-ld} -m elf_x86_64"
5983          ;;
5984        ppc*-*linux*|powerpc*-*linux*)
5985          LD="${LD-ld} -m elf64ppc"
5986          ;;
5987        s390*-*linux*)
5988          LD="${LD-ld} -m elf64_s390"
5989          ;;
5990        sparc*-*linux*)
5991          LD="${LD-ld} -m elf64_sparc"
5992          ;;
5993      esac
5994      ;;
5995    esac
5996  fi
5997  rm -rf conftest*
5998  ;;
5999
6000*-*-sco3.2v5*)
6001  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6002  SAVE_CFLAGS="$CFLAGS"
6003  CFLAGS="$CFLAGS -belf"
6004  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6005echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6006if test "${lt_cv_cc_needs_belf+set}" = set; then
6007  echo $ECHO_N "(cached) $ECHO_C" >&6
6008else
6009  ac_ext=c
6010ac_cpp='$CPP $CPPFLAGS'
6011ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6012ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6013ac_compiler_gnu=$ac_cv_c_compiler_gnu
6014
6015     cat >conftest.$ac_ext <<_ACEOF
6016/* confdefs.h.  */
6017_ACEOF
6018cat confdefs.h >>conftest.$ac_ext
6019cat >>conftest.$ac_ext <<_ACEOF
6020/* end confdefs.h.  */
6021
6022int
6023main ()
6024{
6025
6026  ;
6027  return 0;
6028}
6029_ACEOF
6030rm -f conftest.$ac_objext conftest$ac_exeext
6031if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6032  (eval $ac_link) 2>conftest.er1
6033  ac_status=$?
6034  grep -v '^ *+' conftest.er1 >conftest.err
6035  rm -f conftest.er1
6036  cat conftest.err >&5
6037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038  (exit $ac_status); } &&
6039         { ac_try='test -z "$ac_c_werror_flag"
6040                         || test ! -s conftest.err'
6041  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6042  (eval $ac_try) 2>&5
6043  ac_status=$?
6044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6045  (exit $ac_status); }; } &&
6046         { ac_try='test -s conftest$ac_exeext'
6047  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6048  (eval $ac_try) 2>&5
6049  ac_status=$?
6050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051  (exit $ac_status); }; }; then
6052  lt_cv_cc_needs_belf=yes
6053else
6054  echo "$as_me: failed program was:" >&5
6055sed 's/^/| /' conftest.$ac_ext >&5
6056
6057lt_cv_cc_needs_belf=no
6058fi
6059rm -f conftest.err conftest.$ac_objext \
6060      conftest$ac_exeext conftest.$ac_ext
6061     ac_ext=c
6062ac_cpp='$CPP $CPPFLAGS'
6063ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6064ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6065ac_compiler_gnu=$ac_cv_c_compiler_gnu
6066
6067fi
6068echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6069echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6070  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6071    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6072    CFLAGS="$SAVE_CFLAGS"
6073  fi
6074  ;;
6075sparc*-*solaris*)
6076  # Find out which ABI we are using.
6077  echo 'int i;' > conftest.$ac_ext
6078  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6079  (eval $ac_compile) 2>&5
6080  ac_status=$?
6081  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082  (exit $ac_status); }; then
6083    case `/usr/bin/file conftest.o` in
6084    *64-bit*)
6085      case $lt_cv_prog_gnu_ld in
6086      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6087      *)    LD="${LD-ld} -64" ;;
6088      esac
6089      ;;
6090    esac
6091  fi
6092  rm -rf conftest*
6093  ;;
6094
6095
6096esac
6097
6098need_locks="$enable_libtool_lock"
6099
6100
6101ac_ext=c
6102ac_cpp='$CPP $CPPFLAGS'
6103ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6104ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6105ac_compiler_gnu=$ac_cv_c_compiler_gnu
6106echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6107echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6108# On Suns, sometimes $CPP names a directory.
6109if test -n "$CPP" && test -d "$CPP"; then
6110  CPP=
6111fi
6112if test -z "$CPP"; then
6113  if test "${ac_cv_prog_CPP+set}" = set; then
6114  echo $ECHO_N "(cached) $ECHO_C" >&6
6115else
6116      # Double quotes because CPP needs to be expanded
6117    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6118    do
6119      ac_preproc_ok=false
6120for ac_c_preproc_warn_flag in '' yes
6121do
6122  # Use a header file that comes with gcc, so configuring glibc
6123  # with a fresh cross-compiler works.
6124  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6125  # <limits.h> exists even on freestanding compilers.
6126  # On the NeXT, cc -E runs the code through the compiler's parser,
6127  # not just through cpp. "Syntax error" is here to catch this case.
6128  cat >conftest.$ac_ext <<_ACEOF
6129/* confdefs.h.  */
6130_ACEOF
6131cat confdefs.h >>conftest.$ac_ext
6132cat >>conftest.$ac_ext <<_ACEOF
6133/* end confdefs.h.  */
6134#ifdef __STDC__
6135# include <limits.h>
6136#else
6137# include <assert.h>
6138#endif
6139                     Syntax error
6140_ACEOF
6141if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6142  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6143  ac_status=$?
6144  grep -v '^ *+' conftest.er1 >conftest.err
6145  rm -f conftest.er1
6146  cat conftest.err >&5
6147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6148  (exit $ac_status); } >/dev/null; then
6149  if test -s conftest.err; then
6150    ac_cpp_err=$ac_c_preproc_warn_flag
6151    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6152  else
6153    ac_cpp_err=
6154  fi
6155else
6156  ac_cpp_err=yes
6157fi
6158if test -z "$ac_cpp_err"; then
6159  :
6160else
6161  echo "$as_me: failed program was:" >&5
6162sed 's/^/| /' conftest.$ac_ext >&5
6163
6164  # Broken: fails on valid input.
6165continue
6166fi
6167rm -f conftest.err conftest.$ac_ext
6168
6169  # OK, works on sane cases.  Now check whether non-existent headers
6170  # can be detected and how.
6171  cat >conftest.$ac_ext <<_ACEOF
6172/* confdefs.h.  */
6173_ACEOF
6174cat confdefs.h >>conftest.$ac_ext
6175cat >>conftest.$ac_ext <<_ACEOF
6176/* end confdefs.h.  */
6177#include <ac_nonexistent.h>
6178_ACEOF
6179if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6180  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6181  ac_status=$?
6182  grep -v '^ *+' conftest.er1 >conftest.err
6183  rm -f conftest.er1
6184  cat conftest.err >&5
6185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186  (exit $ac_status); } >/dev/null; then
6187  if test -s conftest.err; then
6188    ac_cpp_err=$ac_c_preproc_warn_flag
6189    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6190  else
6191    ac_cpp_err=
6192  fi
6193else
6194  ac_cpp_err=yes
6195fi
6196if test -z "$ac_cpp_err"; then
6197  # Broken: success on invalid input.
6198continue
6199else
6200  echo "$as_me: failed program was:" >&5
6201sed 's/^/| /' conftest.$ac_ext >&5
6202
6203  # Passes both tests.
6204ac_preproc_ok=:
6205break
6206fi
6207rm -f conftest.err conftest.$ac_ext
6208
6209done
6210# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6211rm -f conftest.err conftest.$ac_ext
6212if $ac_preproc_ok; then
6213  break
6214fi
6215
6216    done
6217    ac_cv_prog_CPP=$CPP
6218
6219fi
6220  CPP=$ac_cv_prog_CPP
6221else
6222  ac_cv_prog_CPP=$CPP
6223fi
6224echo "$as_me:$LINENO: result: $CPP" >&5
6225echo "${ECHO_T}$CPP" >&6
6226ac_preproc_ok=false
6227for ac_c_preproc_warn_flag in '' yes
6228do
6229  # Use a header file that comes with gcc, so configuring glibc
6230  # with a fresh cross-compiler works.
6231  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6232  # <limits.h> exists even on freestanding compilers.
6233  # On the NeXT, cc -E runs the code through the compiler's parser,
6234  # not just through cpp. "Syntax error" is here to catch this case.
6235  cat >conftest.$ac_ext <<_ACEOF
6236/* confdefs.h.  */
6237_ACEOF
6238cat confdefs.h >>conftest.$ac_ext
6239cat >>conftest.$ac_ext <<_ACEOF
6240/* end confdefs.h.  */
6241#ifdef __STDC__
6242# include <limits.h>
6243#else
6244# include <assert.h>
6245#endif
6246                     Syntax error
6247_ACEOF
6248if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6249  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6250  ac_status=$?
6251  grep -v '^ *+' conftest.er1 >conftest.err
6252  rm -f conftest.er1
6253  cat conftest.err >&5
6254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255  (exit $ac_status); } >/dev/null; then
6256  if test -s conftest.err; then
6257    ac_cpp_err=$ac_c_preproc_warn_flag
6258    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6259  else
6260    ac_cpp_err=
6261  fi
6262else
6263  ac_cpp_err=yes
6264fi
6265if test -z "$ac_cpp_err"; then
6266  :
6267else
6268  echo "$as_me: failed program was:" >&5
6269sed 's/^/| /' conftest.$ac_ext >&5
6270
6271  # Broken: fails on valid input.
6272continue
6273fi
6274rm -f conftest.err conftest.$ac_ext
6275
6276  # OK, works on sane cases.  Now check whether non-existent headers
6277  # can be detected and how.
6278  cat >conftest.$ac_ext <<_ACEOF
6279/* confdefs.h.  */
6280_ACEOF
6281cat confdefs.h >>conftest.$ac_ext
6282cat >>conftest.$ac_ext <<_ACEOF
6283/* end confdefs.h.  */
6284#include <ac_nonexistent.h>
6285_ACEOF
6286if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6287  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6288  ac_status=$?
6289  grep -v '^ *+' conftest.er1 >conftest.err
6290  rm -f conftest.er1
6291  cat conftest.err >&5
6292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293  (exit $ac_status); } >/dev/null; then
6294  if test -s conftest.err; then
6295    ac_cpp_err=$ac_c_preproc_warn_flag
6296    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6297  else
6298    ac_cpp_err=
6299  fi
6300else
6301  ac_cpp_err=yes
6302fi
6303if test -z "$ac_cpp_err"; then
6304  # Broken: success on invalid input.
6305continue
6306else
6307  echo "$as_me: failed program was:" >&5
6308sed 's/^/| /' conftest.$ac_ext >&5
6309
6310  # Passes both tests.
6311ac_preproc_ok=:
6312break
6313fi
6314rm -f conftest.err conftest.$ac_ext
6315
6316done
6317# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6318rm -f conftest.err conftest.$ac_ext
6319if $ac_preproc_ok; then
6320  :
6321else
6322  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6323See \`config.log' for more details." >&5
6324echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6325See \`config.log' for more details." >&2;}
6326   { (exit 1); exit 1; }; }
6327fi
6328
6329ac_ext=c
6330ac_cpp='$CPP $CPPFLAGS'
6331ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6332ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6333ac_compiler_gnu=$ac_cv_c_compiler_gnu
6334
6335
6336echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6337echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6338if test "${ac_cv_header_stdc+set}" = set; then
6339  echo $ECHO_N "(cached) $ECHO_C" >&6
6340else
6341  cat >conftest.$ac_ext <<_ACEOF
6342/* confdefs.h.  */
6343_ACEOF
6344cat confdefs.h >>conftest.$ac_ext
6345cat >>conftest.$ac_ext <<_ACEOF
6346/* end confdefs.h.  */
6347#include <stdlib.h>
6348#include <stdarg.h>
6349#include <string.h>
6350#include <float.h>
6351
6352int
6353main ()
6354{
6355
6356  ;
6357  return 0;
6358}
6359_ACEOF
6360rm -f conftest.$ac_objext
6361if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6362  (eval $ac_compile) 2>conftest.er1
6363  ac_status=$?
6364  grep -v '^ *+' conftest.er1 >conftest.err
6365  rm -f conftest.er1
6366  cat conftest.err >&5
6367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368  (exit $ac_status); } &&
6369         { ac_try='test -z "$ac_c_werror_flag"
6370                         || test ! -s conftest.err'
6371  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6372  (eval $ac_try) 2>&5
6373  ac_status=$?
6374  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375  (exit $ac_status); }; } &&
6376         { ac_try='test -s conftest.$ac_objext'
6377  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6378  (eval $ac_try) 2>&5
6379  ac_status=$?
6380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6381  (exit $ac_status); }; }; then
6382  ac_cv_header_stdc=yes
6383else
6384  echo "$as_me: failed program was:" >&5
6385sed 's/^/| /' conftest.$ac_ext >&5
6386
6387ac_cv_header_stdc=no
6388fi
6389rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6390
6391if test $ac_cv_header_stdc = yes; then
6392  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6393  cat >conftest.$ac_ext <<_ACEOF
6394/* confdefs.h.  */
6395_ACEOF
6396cat confdefs.h >>conftest.$ac_ext
6397cat >>conftest.$ac_ext <<_ACEOF
6398/* end confdefs.h.  */
6399#include <string.h>
6400
6401_ACEOF
6402if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6403  $EGREP "memchr" >/dev/null 2>&1; then
6404  :
6405else
6406  ac_cv_header_stdc=no
6407fi
6408rm -f conftest*
6409
6410fi
6411
6412if test $ac_cv_header_stdc = yes; then
6413  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6414  cat >conftest.$ac_ext <<_ACEOF
6415/* confdefs.h.  */
6416_ACEOF
6417cat confdefs.h >>conftest.$ac_ext
6418cat >>conftest.$ac_ext <<_ACEOF
6419/* end confdefs.h.  */
6420#include <stdlib.h>
6421
6422_ACEOF
6423if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6424  $EGREP "free" >/dev/null 2>&1; then
6425  :
6426else
6427  ac_cv_header_stdc=no
6428fi
6429rm -f conftest*
6430
6431fi
6432
6433if test $ac_cv_header_stdc = yes; then
6434  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6435  if test "$cross_compiling" = yes; then
6436  :
6437else
6438  cat >conftest.$ac_ext <<_ACEOF
6439/* confdefs.h.  */
6440_ACEOF
6441cat confdefs.h >>conftest.$ac_ext
6442cat >>conftest.$ac_ext <<_ACEOF
6443/* end confdefs.h.  */
6444#include <ctype.h>
6445#if ((' ' & 0x0FF) == 0x020)
6446# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6447# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6448#else
6449# define ISLOWER(c) \
6450                   (('a' <= (c) && (c) <= 'i') \
6451                     || ('j' <= (c) && (c) <= 'r') \
6452                     || ('s' <= (c) && (c) <= 'z'))
6453# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6454#endif
6455
6456#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6457int
6458main ()
6459{
6460  int i;
6461  for (i = 0; i < 256; i++)
6462    if (XOR (islower (i), ISLOWER (i))
6463        || toupper (i) != TOUPPER (i))
6464      exit(2);
6465  exit (0);
6466}
6467_ACEOF
6468rm -f conftest$ac_exeext
6469if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6470  (eval $ac_link) 2>&5
6471  ac_status=$?
6472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6474  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6475  (eval $ac_try) 2>&5
6476  ac_status=$?
6477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478  (exit $ac_status); }; }; then
6479  :
6480else
6481  echo "$as_me: program exited with status $ac_status" >&5
6482echo "$as_me: failed program was:" >&5
6483sed 's/^/| /' conftest.$ac_ext >&5
6484
6485( exit $ac_status )
6486ac_cv_header_stdc=no
6487fi
6488rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6489fi
6490fi
6491fi
6492echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6493echo "${ECHO_T}$ac_cv_header_stdc" >&6
6494if test $ac_cv_header_stdc = yes; then
6495
6496cat >>confdefs.h <<\_ACEOF
6497#define STDC_HEADERS 1
6498_ACEOF
6499
6500fi
6501
6502# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6513                  inttypes.h stdint.h unistd.h
6514do
6515as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6516echo "$as_me:$LINENO: checking for $ac_header" >&5
6517echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6518if eval "test \"\${$as_ac_Header+set}\" = set"; then
6519  echo $ECHO_N "(cached) $ECHO_C" >&6
6520else
6521  cat >conftest.$ac_ext <<_ACEOF
6522/* confdefs.h.  */
6523_ACEOF
6524cat confdefs.h >>conftest.$ac_ext
6525cat >>conftest.$ac_ext <<_ACEOF
6526/* end confdefs.h.  */
6527$ac_includes_default
6528
6529#include <$ac_header>
6530_ACEOF
6531rm -f conftest.$ac_objext
6532if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6533  (eval $ac_compile) 2>conftest.er1
6534  ac_status=$?
6535  grep -v '^ *+' conftest.er1 >conftest.err
6536  rm -f conftest.er1
6537  cat conftest.err >&5
6538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539  (exit $ac_status); } &&
6540         { ac_try='test -z "$ac_c_werror_flag"
6541                         || test ! -s conftest.err'
6542  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6543  (eval $ac_try) 2>&5
6544  ac_status=$?
6545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546  (exit $ac_status); }; } &&
6547         { ac_try='test -s conftest.$ac_objext'
6548  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6549  (eval $ac_try) 2>&5
6550  ac_status=$?
6551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552  (exit $ac_status); }; }; then
6553  eval "$as_ac_Header=yes"
6554else
6555  echo "$as_me: failed program was:" >&5
6556sed 's/^/| /' conftest.$ac_ext >&5
6557
6558eval "$as_ac_Header=no"
6559fi
6560rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6561fi
6562echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6563echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6564if test `eval echo '${'$as_ac_Header'}'` = yes; then
6565  cat >>confdefs.h <<_ACEOF
6566#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6567_ACEOF
6568
6569fi
6570
6571done
6572
6573
6574
6575for ac_header in dlfcn.h
6576do
6577as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6578if eval "test \"\${$as_ac_Header+set}\" = set"; then
6579  echo "$as_me:$LINENO: checking for $ac_header" >&5
6580echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6581if eval "test \"\${$as_ac_Header+set}\" = set"; then
6582  echo $ECHO_N "(cached) $ECHO_C" >&6
6583fi
6584echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6585echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6586else
6587  # Is the header compilable?
6588echo "$as_me:$LINENO: checking $ac_header usability" >&5
6589echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6590cat >conftest.$ac_ext <<_ACEOF
6591/* confdefs.h.  */
6592_ACEOF
6593cat confdefs.h >>conftest.$ac_ext
6594cat >>conftest.$ac_ext <<_ACEOF
6595/* end confdefs.h.  */
6596$ac_includes_default
6597#include <$ac_header>
6598_ACEOF
6599rm -f conftest.$ac_objext
6600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6601  (eval $ac_compile) 2>conftest.er1
6602  ac_status=$?
6603  grep -v '^ *+' conftest.er1 >conftest.err
6604  rm -f conftest.er1
6605  cat conftest.err >&5
6606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607  (exit $ac_status); } &&
6608         { ac_try='test -z "$ac_c_werror_flag"
6609                         || test ! -s conftest.err'
6610  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6611  (eval $ac_try) 2>&5
6612  ac_status=$?
6613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614  (exit $ac_status); }; } &&
6615         { ac_try='test -s conftest.$ac_objext'
6616  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6617  (eval $ac_try) 2>&5
6618  ac_status=$?
6619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620  (exit $ac_status); }; }; then
6621  ac_header_compiler=yes
6622else
6623  echo "$as_me: failed program was:" >&5
6624sed 's/^/| /' conftest.$ac_ext >&5
6625
6626ac_header_compiler=no
6627fi
6628rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6629echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6630echo "${ECHO_T}$ac_header_compiler" >&6
6631
6632# Is the header present?
6633echo "$as_me:$LINENO: checking $ac_header presence" >&5
6634echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6635cat >conftest.$ac_ext <<_ACEOF
6636/* confdefs.h.  */
6637_ACEOF
6638cat confdefs.h >>conftest.$ac_ext
6639cat >>conftest.$ac_ext <<_ACEOF
6640/* end confdefs.h.  */
6641#include <$ac_header>
6642_ACEOF
6643if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6644  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6645  ac_status=$?
6646  grep -v '^ *+' conftest.er1 >conftest.err
6647  rm -f conftest.er1
6648  cat conftest.err >&5
6649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6650  (exit $ac_status); } >/dev/null; then
6651  if test -s conftest.err; then
6652    ac_cpp_err=$ac_c_preproc_warn_flag
6653    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6654  else
6655    ac_cpp_err=
6656  fi
6657else
6658  ac_cpp_err=yes
6659fi
6660if test -z "$ac_cpp_err"; then
6661  ac_header_preproc=yes
6662else
6663  echo "$as_me: failed program was:" >&5
6664sed 's/^/| /' conftest.$ac_ext >&5
6665
6666  ac_header_preproc=no
6667fi
6668rm -f conftest.err conftest.$ac_ext
6669echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6670echo "${ECHO_T}$ac_header_preproc" >&6
6671
6672# So?  What about this header?
6673case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6674  yes:no: )
6675    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6676echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6677    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6678echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6679    ac_header_preproc=yes
6680    ;;
6681  no:yes:* )
6682    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6683echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6684    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6685echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6686    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6687echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6688    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6689echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6690    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6691echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6692    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6693echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6694    (
6695      cat <<\_ASBOX
6696## ----------------------------------- ##
6697## Report this to clp@list.coin-or.org ##
6698## ----------------------------------- ##
6699_ASBOX
6700    ) |
6701      sed "s/^/$as_me: WARNING:     /" >&2
6702    ;;
6703esac
6704echo "$as_me:$LINENO: checking for $ac_header" >&5
6705echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6706if eval "test \"\${$as_ac_Header+set}\" = set"; then
6707  echo $ECHO_N "(cached) $ECHO_C" >&6
6708else
6709  eval "$as_ac_Header=\$ac_header_preproc"
6710fi
6711echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6712echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6713
6714fi
6715if test `eval echo '${'$as_ac_Header'}'` = yes; then
6716  cat >>confdefs.h <<_ACEOF
6717#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6718_ACEOF
6719
6720fi
6721
6722done
6723
6724
6725
6726if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6727    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6728    (test "X$CXX" != "Xg++"))) ; then
6729  ac_ext=cc
6730ac_cpp='$CXXCPP $CPPFLAGS'
6731ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6732ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6733ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6734echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6735echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6736if test -z "$CXXCPP"; then
6737  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6738  echo $ECHO_N "(cached) $ECHO_C" >&6
6739else
6740      # Double quotes because CXXCPP needs to be expanded
6741    for CXXCPP in "$CXX -E" "/lib/cpp"
6742    do
6743      ac_preproc_ok=false
6744for ac_cxx_preproc_warn_flag in '' yes
6745do
6746  # Use a header file that comes with gcc, so configuring glibc
6747  # with a fresh cross-compiler works.
6748  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6749  # <limits.h> exists even on freestanding compilers.
6750  # On the NeXT, cc -E runs the code through the compiler's parser,
6751  # not just through cpp. "Syntax error" is here to catch this case.
6752  cat >conftest.$ac_ext <<_ACEOF
6753/* confdefs.h.  */
6754_ACEOF
6755cat confdefs.h >>conftest.$ac_ext
6756cat >>conftest.$ac_ext <<_ACEOF
6757/* end confdefs.h.  */
6758#ifdef __STDC__
6759# include <limits.h>
6760#else
6761# include <assert.h>
6762#endif
6763                     Syntax error
6764_ACEOF
6765if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6766  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6767  ac_status=$?
6768  grep -v '^ *+' conftest.er1 >conftest.err
6769  rm -f conftest.er1
6770  cat conftest.err >&5
6771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6772  (exit $ac_status); } >/dev/null; then
6773  if test -s conftest.err; then
6774    ac_cpp_err=$ac_cxx_preproc_warn_flag
6775    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6776  else
6777    ac_cpp_err=
6778  fi
6779else
6780  ac_cpp_err=yes
6781fi
6782if test -z "$ac_cpp_err"; then
6783  :
6784else
6785  echo "$as_me: failed program was:" >&5
6786sed 's/^/| /' conftest.$ac_ext >&5
6787
6788  # Broken: fails on valid input.
6789continue
6790fi
6791rm -f conftest.err conftest.$ac_ext
6792
6793  # OK, works on sane cases.  Now check whether non-existent headers
6794  # can be detected and how.
6795  cat >conftest.$ac_ext <<_ACEOF
6796/* confdefs.h.  */
6797_ACEOF
6798cat confdefs.h >>conftest.$ac_ext
6799cat >>conftest.$ac_ext <<_ACEOF
6800/* end confdefs.h.  */
6801#include <ac_nonexistent.h>
6802_ACEOF
6803if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6804  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6805  ac_status=$?
6806  grep -v '^ *+' conftest.er1 >conftest.err
6807  rm -f conftest.er1
6808  cat conftest.err >&5
6809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810  (exit $ac_status); } >/dev/null; then
6811  if test -s conftest.err; then
6812    ac_cpp_err=$ac_cxx_preproc_warn_flag
6813    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6814  else
6815    ac_cpp_err=
6816  fi
6817else
6818  ac_cpp_err=yes
6819fi
6820if test -z "$ac_cpp_err"; then
6821  # Broken: success on invalid input.
6822continue
6823else
6824  echo "$as_me: failed program was:" >&5
6825sed 's/^/| /' conftest.$ac_ext >&5
6826
6827  # Passes both tests.
6828ac_preproc_ok=:
6829break
6830fi
6831rm -f conftest.err conftest.$ac_ext
6832
6833done
6834# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6835rm -f conftest.err conftest.$ac_ext
6836if $ac_preproc_ok; then
6837  break
6838fi
6839
6840    done
6841    ac_cv_prog_CXXCPP=$CXXCPP
6842
6843fi
6844  CXXCPP=$ac_cv_prog_CXXCPP
6845else
6846  ac_cv_prog_CXXCPP=$CXXCPP
6847fi
6848echo "$as_me:$LINENO: result: $CXXCPP" >&5
6849echo "${ECHO_T}$CXXCPP" >&6
6850ac_preproc_ok=false
6851for ac_cxx_preproc_warn_flag in '' yes
6852do
6853  # Use a header file that comes with gcc, so configuring glibc
6854  # with a fresh cross-compiler works.
6855  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6856  # <limits.h> exists even on freestanding compilers.
6857  # On the NeXT, cc -E runs the code through the compiler's parser,
6858  # not just through cpp. "Syntax error" is here to catch this case.
6859  cat >conftest.$ac_ext <<_ACEOF
6860/* confdefs.h.  */
6861_ACEOF
6862cat confdefs.h >>conftest.$ac_ext
6863cat >>conftest.$ac_ext <<_ACEOF
6864/* end confdefs.h.  */
6865#ifdef __STDC__
6866# include <limits.h>
6867#else
6868# include <assert.h>
6869#endif
6870                     Syntax error
6871_ACEOF
6872if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6873  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6874  ac_status=$?
6875  grep -v '^ *+' conftest.er1 >conftest.err
6876  rm -f conftest.er1
6877  cat conftest.err >&5
6878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6879  (exit $ac_status); } >/dev/null; then
6880  if test -s conftest.err; then
6881    ac_cpp_err=$ac_cxx_preproc_warn_flag
6882    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6883  else
6884    ac_cpp_err=
6885  fi
6886else
6887  ac_cpp_err=yes
6888fi
6889if test -z "$ac_cpp_err"; then
6890  :
6891else
6892  echo "$as_me: failed program was:" >&5
6893sed 's/^/| /' conftest.$ac_ext >&5
6894
6895  # Broken: fails on valid input.
6896continue
6897fi
6898rm -f conftest.err conftest.$ac_ext
6899
6900  # OK, works on sane cases.  Now check whether non-existent headers
6901  # can be detected and how.
6902  cat >conftest.$ac_ext <<_ACEOF
6903/* confdefs.h.  */
6904_ACEOF
6905cat confdefs.h >>conftest.$ac_ext
6906cat >>conftest.$ac_ext <<_ACEOF
6907/* end confdefs.h.  */
6908#include <ac_nonexistent.h>
6909_ACEOF
6910if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6911  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6912  ac_status=$?
6913  grep -v '^ *+' conftest.er1 >conftest.err
6914  rm -f conftest.er1
6915  cat conftest.err >&5
6916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6917  (exit $ac_status); } >/dev/null; then
6918  if test -s conftest.err; then
6919    ac_cpp_err=$ac_cxx_preproc_warn_flag
6920    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6921  else
6922    ac_cpp_err=
6923  fi
6924else
6925  ac_cpp_err=yes
6926fi
6927if test -z "$ac_cpp_err"; then
6928  # Broken: success on invalid input.
6929continue
6930else
6931  echo "$as_me: failed program was:" >&5
6932sed 's/^/| /' conftest.$ac_ext >&5
6933
6934  # Passes both tests.
6935ac_preproc_ok=:
6936break
6937fi
6938rm -f conftest.err conftest.$ac_ext
6939
6940done
6941# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6942rm -f conftest.err conftest.$ac_ext
6943if $ac_preproc_ok; then
6944  :
6945else
6946  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6947See \`config.log' for more details." >&5
6948echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6949See \`config.log' for more details." >&2;}
6950   { (exit 1); exit 1; }; }
6951fi
6952
6953ac_ext=cc
6954ac_cpp='$CXXCPP $CPPFLAGS'
6955ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6956ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6957ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6958
6959fi
6960
6961ac_ext=f
6962ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6963ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6964ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6965if test -n "$ac_tool_prefix"; then
6966  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6967  do
6968    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6969set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6970echo "$as_me:$LINENO: checking for $ac_word" >&5
6971echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6972if test "${ac_cv_prog_F77+set}" = set; then
6973  echo $ECHO_N "(cached) $ECHO_C" >&6
6974else
6975  if test -n "$F77"; then
6976  ac_cv_prog_F77="$F77" # Let the user override the test.
6977else
6978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6979for as_dir in $PATH
6980do
6981  IFS=$as_save_IFS
6982  test -z "$as_dir" && as_dir=.
6983  for ac_exec_ext in '' $ac_executable_extensions; do
6984  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6985    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6986    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6987    break 2
6988  fi
6989done
6990done
6991
6992fi
6993fi
6994F77=$ac_cv_prog_F77
6995if test -n "$F77"; then
6996  echo "$as_me:$LINENO: result: $F77" >&5
6997echo "${ECHO_T}$F77" >&6
6998else
6999  echo "$as_me:$LINENO: result: no" >&5
7000echo "${ECHO_T}no" >&6
7001fi
7002
7003    test -n "$F77" && break
7004  done
7005fi
7006if test -z "$F77"; then
7007  ac_ct_F77=$F77
7008  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7009do
7010  # Extract the first word of "$ac_prog", so it can be a program name with args.
7011set dummy $ac_prog; ac_word=$2
7012echo "$as_me:$LINENO: checking for $ac_word" >&5
7013echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7014if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7015  echo $ECHO_N "(cached) $ECHO_C" >&6
7016else
7017  if test -n "$ac_ct_F77"; then
7018  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7019else
7020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7021for as_dir in $PATH
7022do
7023  IFS=$as_save_IFS
7024  test -z "$as_dir" && as_dir=.
7025  for ac_exec_ext in '' $ac_executable_extensions; do
7026  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7027    ac_cv_prog_ac_ct_F77="$ac_prog"
7028    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7029    break 2
7030  fi
7031done
7032done
7033
7034fi
7035fi
7036ac_ct_F77=$ac_cv_prog_ac_ct_F77
7037if test -n "$ac_ct_F77"; then
7038  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7039echo "${ECHO_T}$ac_ct_F77" >&6
7040else
7041  echo "$as_me:$LINENO: result: no" >&5
7042echo "${ECHO_T}no" >&6
7043fi
7044
7045  test -n "$ac_ct_F77" && break
7046done
7047
7048  F77=$ac_ct_F77
7049fi
7050
7051
7052# Provide some information about the compiler.
7053echo "$as_me:7053:" \
7054     "checking for Fortran 77 compiler version" >&5
7055ac_compiler=`set X $ac_compile; echo $2`
7056{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7057  (eval $ac_compiler --version </dev/null >&5) 2>&5
7058  ac_status=$?
7059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060  (exit $ac_status); }
7061{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7062  (eval $ac_compiler -v </dev/null >&5) 2>&5
7063  ac_status=$?
7064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065  (exit $ac_status); }
7066{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7067  (eval $ac_compiler -V </dev/null >&5) 2>&5
7068  ac_status=$?
7069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7070  (exit $ac_status); }
7071rm -f a.out
7072
7073# If we don't use `.F' as extension, the preprocessor is not run on the
7074# input file.  (Note that this only needs to work for GNU compilers.)
7075ac_save_ext=$ac_ext
7076ac_ext=F
7077echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7078echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
7079if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7080  echo $ECHO_N "(cached) $ECHO_C" >&6
7081else
7082  cat >conftest.$ac_ext <<_ACEOF
7083      program main
7084#ifndef __GNUC__
7085       choke me
7086#endif
7087
7088      end
7089_ACEOF
7090rm -f conftest.$ac_objext
7091if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7092  (eval $ac_compile) 2>conftest.er1
7093  ac_status=$?
7094  grep -v '^ *+' conftest.er1 >conftest.err
7095  rm -f conftest.er1
7096  cat conftest.err >&5
7097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7098  (exit $ac_status); } &&
7099         { ac_try='test -z "$ac_f77_werror_flag"
7100                         || test ! -s conftest.err'
7101  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7102  (eval $ac_try) 2>&5
7103  ac_status=$?
7104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7105  (exit $ac_status); }; } &&
7106         { ac_try='test -s conftest.$ac_objext'
7107  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7108  (eval $ac_try) 2>&5
7109  ac_status=$?
7110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7111  (exit $ac_status); }; }; then
7112  ac_compiler_gnu=yes
7113else
7114  echo "$as_me: failed program was:" >&5
7115sed 's/^/| /' conftest.$ac_ext >&5
7116
7117ac_compiler_gnu=no
7118fi
7119rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7120ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7121
7122fi
7123echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7124echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7125ac_ext=$ac_save_ext
7126ac_test_FFLAGS=${FFLAGS+set}
7127ac_save_FFLAGS=$FFLAGS
7128FFLAGS=
7129echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7130echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7131if test "${ac_cv_prog_f77_g+set}" = set; then
7132  echo $ECHO_N "(cached) $ECHO_C" >&6
7133else
7134  FFLAGS=-g
7135cat >conftest.$ac_ext <<_ACEOF
7136      program main
7137
7138      end
7139_ACEOF
7140rm -f conftest.$ac_objext
7141if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7142  (eval $ac_compile) 2>conftest.er1
7143  ac_status=$?
7144  grep -v '^ *+' conftest.er1 >conftest.err
7145  rm -f conftest.er1
7146  cat conftest.err >&5
7147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7148  (exit $ac_status); } &&
7149         { ac_try='test -z "$ac_f77_werror_flag"
7150                         || test ! -s conftest.err'
7151  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7152  (eval $ac_try) 2>&5
7153  ac_status=$?
7154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155  (exit $ac_status); }; } &&
7156         { ac_try='test -s conftest.$ac_objext'
7157  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7158  (eval $ac_try) 2>&5
7159  ac_status=$?
7160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7161  (exit $ac_status); }; }; then
7162  ac_cv_prog_f77_g=yes
7163else
7164  echo "$as_me: failed program was:" >&5
7165sed 's/^/| /' conftest.$ac_ext >&5
7166
7167ac_cv_prog_f77_g=no
7168fi
7169rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7170
7171fi
7172echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7173echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7174if test "$ac_test_FFLAGS" = set; then
7175  FFLAGS=$ac_save_FFLAGS
7176elif test $ac_cv_prog_f77_g = yes; then
7177  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7178    FFLAGS="-g -O2"
7179  else
7180    FFLAGS="-g"
7181  fi
7182else
7183  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7184    FFLAGS="-O2"
7185  else
7186    FFLAGS=
7187  fi
7188fi
7189
7190G77=`test $ac_compiler_gnu = yes && echo yes`
7191ac_ext=c
7192ac_cpp='$CPP $CPPFLAGS'
7193ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7194ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7195ac_compiler_gnu=$ac_cv_c_compiler_gnu
7196
7197
7198
7199# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7200
7201# find the maximum length of command line arguments
7202echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7203echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7204if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7205  echo $ECHO_N "(cached) $ECHO_C" >&6
7206else
7207    i=0
7208  teststring="ABCD"
7209
7210  case $build_os in
7211  msdosdjgpp*)
7212    # On DJGPP, this test can blow up pretty badly due to problems in libc
7213    # (any single argument exceeding 2000 bytes causes a buffer overrun
7214    # during glob expansion).  Even if it were fixed, the result of this
7215    # check would be larger than it should be.
7216    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7217    ;;
7218
7219  gnu*)
7220    # Under GNU Hurd, this test is not required because there is
7221    # no limit to the length of command line arguments.
7222    # Libtool will interpret -1 as no limit whatsoever
7223    lt_cv_sys_max_cmd_len=-1;
7224    ;;
7225
7226  cygwin* | mingw*)
7227    # On Win9x/ME, this test blows up -- it succeeds, but takes
7228    # about 5 minutes as the teststring grows exponentially.
7229    # Worse, since 9x/ME are not pre-emptively multitasking,
7230    # you end up with a "frozen" computer, even though with patience
7231    # the test eventually succeeds (with a max line length of 256k).
7232    # Instead, let's just punt: use the minimum linelength reported by
7233    # all of the supported platforms: 8192 (on NT/2K/XP).
7234    lt_cv_sys_max_cmd_len=8192;
7235    ;;
7236
7237  amigaos*)
7238    # On AmigaOS with pdksh, this test takes hours, literally.
7239    # So we just punt and use a minimum line length of 8192.
7240    lt_cv_sys_max_cmd_len=8192;
7241    ;;
7242
7243  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7244    # This has been around since 386BSD, at least.  Likely further.
7245    if test -x /sbin/sysctl; then
7246      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7247    elif test -x /usr/sbin/sysctl; then
7248      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7249    else
7250      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7251    fi
7252    # And add a safety zone
7253    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7254    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7255    ;;
7256
7257  interix*)
7258    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7259    lt_cv_sys_max_cmd_len=196608
7260    ;;
7261
7262  osf*)
7263    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7264    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7265    # nice to cause kernel panics so lets avoid the loop below.
7266    # First set a reasonable default.
7267    lt_cv_sys_max_cmd_len=16384
7268    #
7269    if test -x /sbin/sysconfig; then
7270      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7271        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7272      esac
7273    fi
7274    ;;
7275  sco3.2v5*)
7276    lt_cv_sys_max_cmd_len=102400
7277    ;;
7278  sysv5* | sco5v6* | sysv4.2uw2*)
7279    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7280    if test -n "$kargmax"; then
7281      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7282    else
7283      lt_cv_sys_max_cmd_len=32768
7284    fi
7285    ;;
7286  *)
7287    # If test is not a shell built-in, we'll probably end up computing a
7288    # maximum length that is only half of the actual maximum length, but
7289    # we can't tell.
7290    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7291    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7292               = "XX$teststring") >/dev/null 2>&1 &&
7293            new_result=`expr "X$teststring" : ".*" 2>&1` &&
7294            lt_cv_sys_max_cmd_len=$new_result &&
7295            test $i != 17 # 1/2 MB should be enough
7296    do
7297      i=`expr $i + 1`
7298      teststring=$teststring$teststring
7299    done
7300    teststring=
7301    # Add a significant safety factor because C++ compilers can tack on massive
7302    # amounts of additional arguments before passing them to the linker.
7303    # It appears as though 1/2 is a usable value.
7304    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7305    ;;
7306  esac
7307
7308fi
7309
7310if test -n $lt_cv_sys_max_cmd_len ; then
7311  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7312echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7313else
7314  echo "$as_me:$LINENO: result: none" >&5
7315echo "${ECHO_T}none" >&6
7316fi
7317
7318
7319
7320
7321# Check for command to grab the raw symbol name followed by C symbol from nm.
7322echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7323echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7324if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7325  echo $ECHO_N "(cached) $ECHO_C" >&6
7326else
7327
7328# These are sane defaults that work on at least a few old systems.
7329# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7330
7331# Character class describing NM global symbol codes.
7332symcode='[BCDEGRST]'
7333
7334# Regexp to match symbols that can be accessed directly from C.
7335sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7336
7337# Transform an extracted symbol line into a proper C declaration
7338lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7339
7340# Transform an extracted symbol line into symbol name and symbol address
7341lt_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'"
7342
7343# Define system-specific variables.
7344case $host_os in
7345aix*)
7346  symcode='[BCDT]'
7347  ;;
7348cygwin* | mingw* | pw32*)
7349  symcode='[ABCDGISTW]'
7350  ;;
7351hpux*) # Its linker distinguishes data from code symbols
7352  if test "$host_cpu" = ia64; then
7353    symcode='[ABCDEGRST]'
7354  fi
7355  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7356  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'"
7357  ;;
7358linux*)
7359  if test "$host_cpu" = ia64; then
7360    symcode='[ABCDGIRSTW]'
7361    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7362    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
7363  fi
7364  ;;
7365irix* | nonstopux*)
7366  symcode='[BCDEGRST]'
7367  ;;
7368osf*)
7369  symcode='[BCDEGQRST]'
7370  ;;
7371solaris*)
7372  symcode='[BDRT]'
7373  ;;
7374sco3.2v5*)
7375  symcode='[DT]'
7376  ;;
7377sysv4.2uw2*)
7378  symcode='[DT]'
7379  ;;
7380sysv5* | sco5v6* | unixware* | OpenUNIX*)
7381  symcode='[ABDT]'
7382  ;;
7383sysv4)
7384  symcode='[DFNSTU]'
7385  ;;
7386esac
7387
7388# Handle CRLF in mingw tool chain
7389opt_cr=
7390case $build_os in
7391mingw*)
7392  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7393  ;;
7394esac
7395
7396# If we're using GNU nm, then use its standard symbol codes.
7397case `$NM -V 2>&1` in
7398*GNU* | *'with BFD'*)
7399  symcode='[ABCDGIRSTW]' ;;
7400esac
7401
7402# Try without a prefix undercore, then with it.
7403for ac_symprfx in "" "_"; do
7404
7405  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7406  symxfrm="\\1 $ac_symprfx\\2 \\2"
7407
7408  # Write the raw and C identifiers.
7409  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7410
7411  # Check to see that the pipe works correctly.
7412  pipe_works=no
7413
7414  rm -f conftest*
7415  cat > conftest.$ac_ext <<EOF
7416#ifdef __cplusplus
7417extern "C" {
7418#endif
7419char nm_test_var;
7420void nm_test_func(){}
7421#ifdef __cplusplus
7422}
7423#endif
7424int main(){nm_test_var='a';nm_test_func();return(0);}
7425EOF
7426
7427  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7428  (eval $ac_compile) 2>&5
7429  ac_status=$?
7430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431  (exit $ac_status); }; then
7432    # Now try to grab the symbols.
7433    nlist=conftest.nm
7434    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7435  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7436  ac_status=$?
7437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7438  (exit $ac_status); } && test -s "$nlist"; then
7439      # Try sorting and uniquifying the output.
7440      if sort "$nlist" | uniq > "$nlist"T; then
7441        mv -f "$nlist"T "$nlist"
7442      else
7443        rm -f "$nlist"T
7444      fi
7445
7446      # Make sure that we snagged all the symbols we need.
7447      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7448        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7449          cat <<EOF > conftest.$ac_ext
7450#ifdef __cplusplus
7451extern "C" {
7452#endif
7453
7454EOF
7455          # Now generate the symbol file.
7456          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7457
7458          cat <<EOF >> conftest.$ac_ext
7459#if defined (__STDC__) && __STDC__
7460# define lt_ptr_t void *
7461#else
7462# define lt_ptr_t char *
7463# define const
7464#endif
7465
7466/* The mapping between symbol names and symbols. */
7467const struct {
7468  const char *name;
7469  lt_ptr_t address;
7470}
7471lt_preloaded_symbols[] =
7472{
7473EOF
7474          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7475          cat <<\EOF >> conftest.$ac_ext
7476  {0, (lt_ptr_t) 0}
7477};
7478
7479#ifdef __cplusplus
7480}
7481#endif
7482EOF
7483          # Now try linking the two files.
7484          mv conftest.$ac_objext conftstm.$ac_objext
7485          lt_save_LIBS="$LIBS"
7486          lt_save_CFLAGS="$CFLAGS"
7487          LIBS="conftstm.$ac_objext"
7488          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7489          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7490  (eval $ac_link) 2>&5
7491  ac_status=$?
7492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7493  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7494            pipe_works=yes
7495          fi
7496          LIBS="$lt_save_LIBS"
7497          CFLAGS="$lt_save_CFLAGS"
7498        else
7499          echo "cannot find nm_test_func in $nlist" >&5
7500        fi
7501      else
7502        echo "cannot find nm_test_var in $nlist" >&5
7503      fi
7504    else
7505      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7506    fi
7507  else
7508    echo "$progname: failed program was:" >&5
7509    cat conftest.$ac_ext >&5
7510  fi
7511  rm -f conftest* conftst*
7512
7513  # Do not use the global_symbol_pipe unless it works.
7514  if test "$pipe_works" = yes; then
7515    break
7516  else
7517    lt_cv_sys_global_symbol_pipe=
7518  fi
7519done
7520
7521fi
7522
7523if test -z "$lt_cv_sys_global_symbol_pipe"; then
7524  lt_cv_sys_global_symbol_to_cdecl=
7525fi
7526if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7527  echo "$as_me:$LINENO: result: failed" >&5
7528echo "${ECHO_T}failed" >&6
7529else
7530  echo "$as_me:$LINENO: result: ok" >&5
7531echo "${ECHO_T}ok" >&6
7532fi
7533
7534echo "$as_me:$LINENO: checking for objdir" >&5
7535echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7536if test "${lt_cv_objdir+set}" = set; then
7537  echo $ECHO_N "(cached) $ECHO_C" >&6
7538else
7539  rm -f .libs 2>/dev/null
7540mkdir .libs 2>/dev/null
7541if test -d .libs; then
7542  lt_cv_objdir=.libs
7543else
7544  # MS-DOS does not allow filenames that begin with a dot.
7545  lt_cv_objdir=_libs
7546fi
7547rmdir .libs 2>/dev/null
7548fi
7549echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7550echo "${ECHO_T}$lt_cv_objdir" >&6
7551objdir=$lt_cv_objdir
7552
7553
7554
7555
7556
7557case $host_os in
7558aix3*)
7559  # AIX sometimes has problems with the GCC collect2 program.  For some
7560  # reason, if we set the COLLECT_NAMES environment variable, the problems
7561  # vanish in a puff of smoke.
7562  if test "X${COLLECT_NAMES+set}" != Xset; then
7563    COLLECT_NAMES=
7564    export COLLECT_NAMES
7565  fi
7566  ;;
7567esac
7568
7569# Sed substitution that helps us do robust quoting.  It backslashifies
7570# metacharacters that are still active within double-quoted strings.
7571Xsed='sed -e 1s/^X//'
7572sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7573
7574# Same as above, but do not quote variable references.
7575double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7576
7577# Sed substitution to delay expansion of an escaped shell variable in a
7578# double_quote_subst'ed string.
7579delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7580
7581# Sed substitution to avoid accidental globbing in evaled expressions
7582no_glob_subst='s/\*/\\\*/g'
7583
7584# Constants:
7585rm="rm -f"
7586
7587# Global variables:
7588default_ofile=libtool
7589can_build_shared=yes
7590
7591# All known linkers require a `.a' archive for static linking (except MSVC,
7592# which needs '.lib').
7593libext=a
7594ltmain="$ac_aux_dir/ltmain.sh"
7595ofile="$default_ofile"
7596with_gnu_ld="$lt_cv_prog_gnu_ld"
7597
7598if test -n "$ac_tool_prefix"; then
7599  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7600set dummy ${ac_tool_prefix}ar; ac_word=$2
7601echo "$as_me:$LINENO: checking for $ac_word" >&5
7602echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7603if test "${ac_cv_prog_AR+set}" = set; then
7604  echo $ECHO_N "(cached) $ECHO_C" >&6
7605else
7606  if test -n "$AR"; then
7607  ac_cv_prog_AR="$AR" # Let the user override the test.
7608else
7609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7610for as_dir in $PATH
7611do
7612  IFS=$as_save_IFS
7613  test -z "$as_dir" && as_dir=.
7614  for ac_exec_ext in '' $ac_executable_extensions; do
7615  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7616    ac_cv_prog_AR="${ac_tool_prefix}ar"
7617    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7618    break 2
7619  fi
7620done
7621done
7622
7623fi
7624fi
7625AR=$ac_cv_prog_AR
7626if test -n "$AR"; then
7627  echo "$as_me:$LINENO: result: $AR" >&5
7628echo "${ECHO_T}$AR" >&6
7629else
7630  echo "$as_me:$LINENO: result: no" >&5
7631echo "${ECHO_T}no" >&6
7632fi
7633
7634fi
7635if test -z "$ac_cv_prog_AR"; then
7636  ac_ct_AR=$AR
7637  # Extract the first word of "ar", so it can be a program name with args.
7638set dummy ar; ac_word=$2
7639echo "$as_me:$LINENO: checking for $ac_word" >&5
7640echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7641if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7642  echo $ECHO_N "(cached) $ECHO_C" >&6
7643else
7644  if test -n "$ac_ct_AR"; then
7645  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7646else
7647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7648for as_dir in $PATH
7649do
7650  IFS=$as_save_IFS
7651  test -z "$as_dir" && as_dir=.
7652  for ac_exec_ext in '' $ac_executable_extensions; do
7653  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7654    ac_cv_prog_ac_ct_AR="ar"
7655    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7656    break 2
7657  fi
7658done
7659done
7660
7661  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7662fi
7663fi
7664ac_ct_AR=$ac_cv_prog_ac_ct_AR
7665if test -n "$ac_ct_AR"; then
7666  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7667echo "${ECHO_T}$ac_ct_AR" >&6
7668else
7669  echo "$as_me:$LINENO: result: no" >&5
7670echo "${ECHO_T}no" >&6
7671fi
7672
7673  AR=$ac_ct_AR
7674else
7675  AR="$ac_cv_prog_AR"
7676fi
7677
7678if test -n "$ac_tool_prefix"; then
7679  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7680set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7681echo "$as_me:$LINENO: checking for $ac_word" >&5
7682echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7683if test "${ac_cv_prog_RANLIB+set}" = set; then
7684  echo $ECHO_N "(cached) $ECHO_C" >&6
7685else
7686  if test -n "$RANLIB"; then
7687  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7688else
7689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7690for as_dir in $PATH
7691do
7692  IFS=$as_save_IFS
7693  test -z "$as_dir" && as_dir=.
7694  for ac_exec_ext in '' $ac_executable_extensions; do
7695  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7696    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7697    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7698    break 2
7699  fi
7700done
7701done
7702
7703fi
7704fi
7705RANLIB=$ac_cv_prog_RANLIB
7706if test -n "$RANLIB"; then
7707  echo "$as_me:$LINENO: result: $RANLIB" >&5
7708echo "${ECHO_T}$RANLIB" >&6
7709else
7710  echo "$as_me:$LINENO: result: no" >&5
7711echo "${ECHO_T}no" >&6
7712fi
7713
7714fi
7715if test -z "$ac_cv_prog_RANLIB"; then
7716  ac_ct_RANLIB=$RANLIB
7717  # Extract the first word of "ranlib", so it can be a program name with args.
7718set dummy ranlib; ac_word=$2
7719echo "$as_me:$LINENO: checking for $ac_word" >&5
7720echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7721if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7722  echo $ECHO_N "(cached) $ECHO_C" >&6
7723else
7724  if test -n "$ac_ct_RANLIB"; then
7725  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7726else
7727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7728for as_dir in $PATH
7729do
7730  IFS=$as_save_IFS
7731  test -z "$as_dir" && as_dir=.
7732  for ac_exec_ext in '' $ac_executable_extensions; do
7733  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7734    ac_cv_prog_ac_ct_RANLIB="ranlib"
7735    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7736    break 2
7737  fi
7738done
7739done
7740
7741  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7742fi
7743fi
7744ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7745if test -n "$ac_ct_RANLIB"; then
7746  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7747echo "${ECHO_T}$ac_ct_RANLIB" >&6
7748else
7749  echo "$as_me:$LINENO: result: no" >&5
7750echo "${ECHO_T}no" >&6
7751fi
7752
7753  RANLIB=$ac_ct_RANLIB
7754else
7755  RANLIB="$ac_cv_prog_RANLIB"
7756fi
7757
7758if test -n "$ac_tool_prefix"; then
7759  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7760set dummy ${ac_tool_prefix}strip; ac_word=$2
7761echo "$as_me:$LINENO: checking for $ac_word" >&5
7762echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7763if test "${ac_cv_prog_STRIP+set}" = set; then
7764  echo $ECHO_N "(cached) $ECHO_C" >&6
7765else
7766  if test -n "$STRIP"; then
7767  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7768else
7769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7770for as_dir in $PATH
7771do
7772  IFS=$as_save_IFS
7773  test -z "$as_dir" && as_dir=.
7774  for ac_exec_ext in '' $ac_executable_extensions; do
7775  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7776    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7777    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7778    break 2
7779  fi
7780done
7781done
7782
7783fi
7784fi
7785STRIP=$ac_cv_prog_STRIP
7786if test -n "$STRIP"; then
7787  echo "$as_me:$LINENO: result: $STRIP" >&5
7788echo "${ECHO_T}$STRIP" >&6
7789else
7790  echo "$as_me:$LINENO: result: no" >&5
7791echo "${ECHO_T}no" >&6
7792fi
7793
7794fi
7795if test -z "$ac_cv_prog_STRIP"; then
7796  ac_ct_STRIP=$STRIP
7797  # Extract the first word of "strip", so it can be a program name with args.
7798set dummy strip; ac_word=$2
7799echo "$as_me:$LINENO: checking for $ac_word" >&5
7800echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7801if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7802  echo $ECHO_N "(cached) $ECHO_C" >&6
7803else
7804  if test -n "$ac_ct_STRIP"; then
7805  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7806else
7807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7808for as_dir in $PATH
7809do
7810  IFS=$as_save_IFS
7811  test -z "$as_dir" && as_dir=.
7812  for ac_exec_ext in '' $ac_executable_extensions; do
7813  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7814    ac_cv_prog_ac_ct_STRIP="strip"
7815    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7816    break 2
7817  fi
7818done
7819done
7820
7821  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7822fi
7823fi
7824ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7825if test -n "$ac_ct_STRIP"; then
7826  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7827echo "${ECHO_T}$ac_ct_STRIP" >&6
7828else
7829  echo "$as_me:$LINENO: result: no" >&5
7830echo "${ECHO_T}no" >&6
7831fi
7832
7833  STRIP=$ac_ct_STRIP
7834else
7835  STRIP="$ac_cv_prog_STRIP"
7836fi
7837
7838
7839old_CC="$CC"
7840old_CFLAGS="$CFLAGS"
7841
7842# Set sane defaults for various variables
7843test -z "$AR" && AR=ar
7844test -z "$AR_FLAGS" && AR_FLAGS=cru
7845test -z "$AS" && AS=as
7846test -z "$CC" && CC=cc
7847test -z "$LTCC" && LTCC=$CC
7848test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7849test -z "$DLLTOOL" && DLLTOOL=dlltool
7850test -z "$LD" && LD=ld
7851test -z "$LN_S" && LN_S="ln -s"
7852test -z "$MAGIC_CMD" && MAGIC_CMD=file
7853test -z "$NM" && NM=nm
7854test -z "$SED" && SED=sed
7855test -z "$OBJDUMP" && OBJDUMP=objdump
7856test -z "$RANLIB" && RANLIB=:
7857test -z "$STRIP" && STRIP=:
7858test -z "$ac_objext" && ac_objext=o
7859
7860# Determine commands to create old-style static archives.
7861old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7862old_postinstall_cmds='chmod 644 $oldlib'
7863old_postuninstall_cmds=
7864
7865if test -n "$RANLIB"; then
7866  case $host_os in
7867  openbsd*)
7868    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7869    ;;
7870  *)
7871    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7872    ;;
7873  esac
7874  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7875fi
7876
7877for cc_temp in $compiler""; do
7878  case $cc_temp in
7879    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7880    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7881    \-*) ;;
7882    *) break;;
7883  esac
7884done
7885cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7886
7887
7888# Only perform the check for file, if the check method requires it
7889case $deplibs_check_method in
7890file_magic*)
7891  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7892    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7893echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7894if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7895  echo $ECHO_N "(cached) $ECHO_C" >&6
7896else
7897  case $MAGIC_CMD in
7898[\\/*] |  ?:[\\/]*)
7899  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7900  ;;
7901*)
7902  lt_save_MAGIC_CMD="$MAGIC_CMD"
7903  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7904  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7905  for ac_dir in $ac_dummy; do
7906    IFS="$lt_save_ifs"
7907    test -z "$ac_dir" && ac_dir=.
7908    if test -f $ac_dir/${ac_tool_prefix}file; then
7909      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7910      if test -n "$file_magic_test_file"; then
7911        case $deplibs_check_method in
7912        "file_magic "*)
7913          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7914          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7915          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7916            $EGREP "$file_magic_regex" > /dev/null; then
7917            :
7918          else
7919            cat <<EOF 1>&2
7920
7921*** Warning: the command libtool uses to detect shared libraries,
7922*** $file_magic_cmd, produces output that libtool cannot recognize.
7923*** The result is that libtool may fail to recognize shared libraries
7924*** as such.  This will affect the creation of libtool libraries that
7925*** depend on shared libraries, but programs linked with such libtool
7926*** libraries will work regardless of this problem.  Nevertheless, you
7927*** may want to report the problem to your system manager and/or to
7928*** bug-libtool@gnu.org
7929
7930EOF
7931          fi ;;
7932        esac
7933      fi
7934      break
7935    fi
7936  done
7937  IFS="$lt_save_ifs"
7938  MAGIC_CMD="$lt_save_MAGIC_CMD"
7939  ;;
7940esac
7941fi
7942
7943MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7944if test -n "$MAGIC_CMD"; then
7945  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7946echo "${ECHO_T}$MAGIC_CMD" >&6
7947else
7948  echo "$as_me:$LINENO: result: no" >&5
7949echo "${ECHO_T}no" >&6
7950fi
7951
7952if test -z "$lt_cv_path_MAGIC_CMD"; then
7953  if test -n "$ac_tool_prefix"; then
7954    echo "$as_me:$LINENO: checking for file" >&5
7955echo $ECHO_N "checking for file... $ECHO_C" >&6
7956if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7957  echo $ECHO_N "(cached) $ECHO_C" >&6
7958else
7959  case $MAGIC_CMD in
7960[\\/*] |  ?:[\\/]*)
7961  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7962  ;;
7963*)
7964  lt_save_MAGIC_CMD="$MAGIC_CMD"
7965  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7966  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7967  for ac_dir in $ac_dummy; do
7968    IFS="$lt_save_ifs"
7969    test -z "$ac_dir" && ac_dir=.
7970    if test -f $ac_dir/file; then
7971      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7972      if test -n "$file_magic_test_file"; then
7973        case $deplibs_check_method in
7974        "file_magic "*)
7975          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7976          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7977          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7978            $EGREP "$file_magic_regex" > /dev/null; then
7979            :
7980          else
7981            cat <<EOF 1>&2
7982
7983*** Warning: the command libtool uses to detect shared libraries,
7984*** $file_magic_cmd, produces output that libtool cannot recognize.
7985*** The result is that libtool may fail to recognize shared libraries
7986*** as such.  This will affect the creation of libtool libraries that
7987*** depend on shared libraries, but programs linked with such libtool
7988*** libraries will work regardless of this problem.  Nevertheless, you
7989*** may want to report the problem to your system manager and/or to
7990*** bug-libtool@gnu.org
7991
7992EOF
7993          fi ;;
7994        esac
7995      fi
7996      break
7997    fi
7998  done
7999  IFS="$lt_save_ifs"
8000  MAGIC_CMD="$lt_save_MAGIC_CMD"
8001  ;;
8002esac
8003fi
8004
8005MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8006if test -n "$MAGIC_CMD"; then
8007  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8008echo "${ECHO_T}$MAGIC_CMD" >&6
8009else
8010  echo "$as_me:$LINENO: result: no" >&5
8011echo "${ECHO_T}no" >&6
8012fi
8013
8014  else
8015    MAGIC_CMD=:
8016  fi
8017fi
8018
8019  fi
8020  ;;
8021esac
8022
8023enable_dlopen=no
8024enable_win32_dll=no
8025
8026# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8027if test "${enable_libtool_lock+set}" = set; then
8028  enableval="$enable_libtool_lock"
8029
8030fi;
8031test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8032
8033
8034# Check whether --with-pic or --without-pic was given.
8035if test "${with_pic+set}" = set; then
8036  withval="$with_pic"
8037  pic_mode="$withval"
8038else
8039  pic_mode=default
8040fi;
8041test -z "$pic_mode" && pic_mode=default
8042
8043# Use C for the default configuration in the libtool script
8044tagname=
8045lt_save_CC="$CC"
8046ac_ext=c
8047ac_cpp='$CPP $CPPFLAGS'
8048ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8049ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8050ac_compiler_gnu=$ac_cv_c_compiler_gnu
8051
8052
8053# Source file extension for C test sources.
8054ac_ext=c
8055
8056# Object file extension for compiled C test sources.
8057objext=o
8058objext=$objext
8059
8060# Code to be used in simple compile tests
8061lt_simple_compile_test_code="int some_variable = 0;\n"
8062
8063# Code to be used in simple link tests
8064lt_simple_link_test_code='int main(){return(0);}\n'
8065
8066
8067# If no C compiler was specified, use CC.
8068LTCC=${LTCC-"$CC"}
8069
8070# If no C compiler flags were specified, use CFLAGS.
8071LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8072
8073# Allow CC to be a program name with arguments.
8074compiler=$CC
8075
8076
8077# save warnings/boilerplate of simple test code
8078ac_outfile=conftest.$ac_objext
8079printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8080eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8081_lt_compiler_boilerplate=`cat conftest.err`
8082$rm conftest*
8083
8084ac_outfile=conftest.$ac_objext
8085printf "$lt_simple_link_test_code" >conftest.$ac_ext
8086eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8087_lt_linker_boilerplate=`cat conftest.err`
8088$rm conftest*
8089
8090
8091## CAVEAT EMPTOR:
8092## There is no encapsulation within the following macros, do not change
8093## the running order or otherwise move them around unless you know exactly
8094## what you are doing...
8095
8096lt_prog_compiler_no_builtin_flag=
8097
8098if test "$GCC" = yes; then
8099  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8100
8101
8102echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8103echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8104if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8105  echo $ECHO_N "(cached) $ECHO_C" >&6
8106else
8107  lt_cv_prog_compiler_rtti_exceptions=no
8108  ac_outfile=conftest.$ac_objext
8109   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8110   lt_compiler_flag="-fno-rtti -fno-exceptions"
8111   # Insert the option either (1) after the last *FLAGS variable, or
8112   # (2) before a word containing "conftest.", or (3) at the end.
8113   # Note that $ac_compile itself does not contain backslashes and begins
8114   # with a dollar sign (not a hyphen), so the echo should work correctly.
8115   # The option is referenced via a variable to avoid confusing sed.
8116   lt_compile=`echo "$ac_compile" | $SED \
8117   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8118   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8119   -e 's:$: $lt_compiler_flag:'`
8120   (eval echo "\"\$as_me:8120: $lt_compile\"" >&5)
8121   (eval "$lt_compile" 2>conftest.err)
8122   ac_status=$?
8123   cat conftest.err >&5
8124   echo "$as_me:8124: \$? = $ac_status" >&5
8125   if (exit $ac_status) && test -s "$ac_outfile"; then
8126     # The compiler can only warn and ignore the option if not recognized
8127     # So say no if there are warnings other than the usual output.
8128     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8129     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8130     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8131       lt_cv_prog_compiler_rtti_exceptions=yes
8132     fi
8133   fi
8134   $rm conftest*
8135
8136fi
8137echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8138echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8139
8140if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8141    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8142else
8143    :
8144fi
8145
8146fi
8147
8148lt_prog_compiler_wl=
8149lt_prog_compiler_pic=
8150lt_prog_compiler_static=
8151
8152echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8153echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8154
8155  if test "$GCC" = yes; then
8156    lt_prog_compiler_wl='-Wl,'
8157    lt_prog_compiler_static='-static'
8158
8159    case $host_os in
8160      aix*)
8161      # All AIX code is PIC.
8162      if test "$host_cpu" = ia64; then
8163        # AIX 5 now supports IA64 processor
8164        lt_prog_compiler_static='-Bstatic'
8165      fi
8166      ;;
8167
8168    amigaos*)
8169      # FIXME: we need at least 68020 code to build shared libraries, but
8170      # adding the `-m68020' flag to GCC prevents building anything better,
8171      # like `-m68040'.
8172      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8173      ;;
8174
8175    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8176      # PIC is the default for these OSes.
8177      ;;
8178
8179    mingw* | pw32* | os2*)
8180      # This hack is so that the source file can tell whether it is being
8181      # built for inclusion in a dll (and should export symbols for example).
8182      lt_prog_compiler_pic='-DDLL_EXPORT'
8183      ;;
8184
8185    darwin* | rhapsody*)
8186      # PIC is the default on this platform
8187      # Common symbols not allowed in MH_DYLIB files
8188      lt_prog_compiler_pic='-fno-common'
8189      ;;
8190
8191    interix3*)
8192      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8193      # Instead, we relocate shared libraries at runtime.
8194      ;;
8195
8196    msdosdjgpp*)
8197      # Just because we use GCC doesn't mean we suddenly get shared libraries
8198      # on systems that don't support them.
8199      lt_prog_compiler_can_build_shared=no
8200      enable_shared=no
8201      ;;
8202
8203    sysv4*MP*)
8204      if test -d /usr/nec; then
8205        lt_prog_compiler_pic=-Kconform_pic
8206      fi
8207      ;;
8208
8209    hpux*)
8210      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8211      # not for PA HP-UX.
8212      case $host_cpu in
8213      hppa*64*|ia64*)
8214        # +Z the default
8215        ;;
8216      *)
8217        lt_prog_compiler_pic='-fPIC'
8218        ;;
8219      esac
8220      ;;
8221
8222    *)
8223      lt_prog_compiler_pic='-fPIC'
8224      ;;
8225    esac
8226  else
8227    # PORTME Check for flag to pass linker flags through the system compiler.
8228    case $host_os in
8229    aix*)
8230      lt_prog_compiler_wl='-Wl,'
8231      if test "$host_cpu" = ia64; then
8232        # AIX 5 now supports IA64 processor
8233        lt_prog_compiler_static='-Bstatic'
8234      else
8235        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8236      fi
8237      ;;
8238      darwin*)
8239        # PIC is the default on this platform
8240        # Common symbols not allowed in MH_DYLIB files
8241       case $cc_basename in
8242         xlc*)
8243         lt_prog_compiler_pic='-qnocommon'
8244         lt_prog_compiler_wl='-Wl,'
8245         ;;
8246       esac
8247       ;;
8248
8249    mingw* | pw32* | os2*)
8250      # This hack is so that the source file can tell whether it is being
8251      # built for inclusion in a dll (and should export symbols for example).
8252      lt_prog_compiler_pic='-DDLL_EXPORT'
8253      ;;
8254
8255    hpux9* | hpux10* | hpux11*)
8256      lt_prog_compiler_wl='-Wl,'
8257      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8258      # not for PA HP-UX.
8259      case $host_cpu in
8260      hppa*64*|ia64*)
8261        # +Z the default
8262        ;;
8263      *)
8264        lt_prog_compiler_pic='+Z'
8265        ;;
8266      esac
8267      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8268      lt_prog_compiler_static='${wl}-a ${wl}archive'
8269      ;;
8270
8271    irix5* | irix6* | nonstopux*)
8272      lt_prog_compiler_wl='-Wl,'
8273      # PIC (with -KPIC) is the default.
8274      lt_prog_compiler_static='-non_shared'
8275      ;;
8276
8277    newsos6)
8278      lt_prog_compiler_pic='-KPIC'
8279      lt_prog_compiler_static='-Bstatic'
8280      ;;
8281
8282    linux*)
8283      case $cc_basename in
8284      icc* | ecc*)
8285        lt_prog_compiler_wl='-Wl,'
8286        lt_prog_compiler_pic='-KPIC'
8287        lt_prog_compiler_static='-static'
8288        ;;
8289      pgcc* | pgf77* | pgf90* | pgf95*)
8290        # Portland Group compilers (*not* the Pentium gcc compiler,
8291        # which looks to be a dead project)
8292        lt_prog_compiler_wl='-Wl,'
8293        lt_prog_compiler_pic='-fpic'
8294        lt_prog_compiler_static='-Bstatic'
8295        ;;
8296      ccc*)
8297        lt_prog_compiler_wl='-Wl,'
8298        # All Alpha code is PIC.
8299        lt_prog_compiler_static='-non_shared'
8300        ;;
8301      esac
8302      ;;
8303
8304    osf3* | osf4* | osf5*)
8305      lt_prog_compiler_wl='-Wl,'
8306      # All OSF/1 code is PIC.
8307      lt_prog_compiler_static='-non_shared'
8308      ;;
8309
8310    solaris*)
8311      lt_prog_compiler_pic='-KPIC'
8312      lt_prog_compiler_static='-Bstatic'
8313      case $cc_basename in
8314      f77* | f90* | f95*)
8315        lt_prog_compiler_wl='-Qoption ld ';;
8316      *)
8317        lt_prog_compiler_wl='-Wl,';;
8318      esac
8319      ;;
8320
8321    sunos4*)
8322      lt_prog_compiler_wl='-Qoption ld '
8323      lt_prog_compiler_pic='-PIC'
8324      lt_prog_compiler_static='-Bstatic'
8325      ;;
8326
8327    sysv4 | sysv4.2uw2* | sysv4.3*)
8328      lt_prog_compiler_wl='-Wl,'
8329      lt_prog_compiler_pic='-KPIC'
8330      lt_prog_compiler_static='-Bstatic'
8331      ;;
8332
8333    sysv4*MP*)
8334      if test -d /usr/nec ;then
8335        lt_prog_compiler_pic='-Kconform_pic'
8336        lt_prog_compiler_static='-Bstatic'
8337      fi
8338      ;;
8339
8340    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8341      lt_prog_compiler_wl='-Wl,'
8342      lt_prog_compiler_pic='-KPIC'
8343      lt_prog_compiler_static='-Bstatic'
8344      ;;
8345
8346    unicos*)
8347      lt_prog_compiler_wl='-Wl,'
8348      lt_prog_compiler_can_build_shared=no
8349      ;;
8350
8351    uts4*)
8352      lt_prog_compiler_pic='-pic'
8353      lt_prog_compiler_static='-Bstatic'
8354      ;;
8355
8356    *)
8357      lt_prog_compiler_can_build_shared=no
8358      ;;
8359    esac
8360  fi
8361
8362echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8363echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8364
8365#
8366# Check to make sure the PIC flag actually works.
8367#
8368if test -n "$lt_prog_compiler_pic"; then
8369
8370echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8371echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8372if test "${lt_prog_compiler_pic_works+set}" = set; then
8373  echo $ECHO_N "(cached) $ECHO_C" >&6
8374else
8375  lt_prog_compiler_pic_works=no
8376  ac_outfile=conftest.$ac_objext
8377   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8378   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8379   # Insert the option either (1) after the last *FLAGS variable, or
8380   # (2) before a word containing "conftest.", or (3) at the end.
8381   # Note that $ac_compile itself does not contain backslashes and begins
8382   # with a dollar sign (not a hyphen), so the echo should work correctly.
8383   # The option is referenced via a variable to avoid confusing sed.
8384   lt_compile=`echo "$ac_compile" | $SED \
8385   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8386   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8387   -e 's:$: $lt_compiler_flag:'`
8388   (eval echo "\"\$as_me:8388: $lt_compile\"" >&5)
8389   (eval "$lt_compile" 2>conftest.err)
8390   ac_status=$?
8391   cat conftest.err >&5
8392   echo "$as_me:8392: \$? = $ac_status" >&5
8393   if (exit $ac_status) && test -s "$ac_outfile"; then
8394     # The compiler can only warn and ignore the option if not recognized
8395     # So say no if there are warnings other than the usual output.
8396     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8397     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8398     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8399       lt_prog_compiler_pic_works=yes
8400     fi
8401   fi
8402   $rm conftest*
8403
8404fi
8405echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8406echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8407
8408if test x"$lt_prog_compiler_pic_works" = xyes; then
8409    case $lt_prog_compiler_pic in
8410     "" | " "*) ;;
8411     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8412     esac
8413else
8414    lt_prog_compiler_pic=
8415     lt_prog_compiler_can_build_shared=no
8416fi
8417
8418fi
8419case $host_os in
8420  # For platforms which do not support PIC, -DPIC is meaningless:
8421  *djgpp*)
8422    lt_prog_compiler_pic=
8423    ;;
8424  *)
8425    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8426    ;;
8427esac
8428
8429#
8430# Check to make sure the static flag actually works.
8431#
8432wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8433echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8434echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8435if test "${lt_prog_compiler_static_works+set}" = set; then
8436  echo $ECHO_N "(cached) $ECHO_C" >&6
8437else
8438  lt_prog_compiler_static_works=no
8439   save_LDFLAGS="$LDFLAGS"
8440   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8441   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8442   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8443     # The linker can only warn and ignore the option if not recognized
8444     # So say no if there are warnings
8445     if test -s conftest.err; then
8446       # Append any errors to the config.log.
8447       cat conftest.err 1>&5
8448       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8449       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8450       if diff conftest.exp conftest.er2 >/dev/null; then
8451         lt_prog_compiler_static_works=yes
8452       fi
8453     else
8454       lt_prog_compiler_static_works=yes
8455     fi
8456   fi
8457   $rm conftest*
8458   LDFLAGS="$save_LDFLAGS"
8459
8460fi
8461echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8462echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8463
8464if test x"$lt_prog_compiler_static_works" = xyes; then
8465    :
8466else
8467    lt_prog_compiler_static=
8468fi
8469
8470
8471echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8472echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8473if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8474  echo $ECHO_N "(cached) $ECHO_C" >&6
8475else
8476  lt_cv_prog_compiler_c_o=no
8477   $rm -r conftest 2>/dev/null
8478   mkdir conftest
8479   cd conftest
8480   mkdir out
8481   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8482
8483   lt_compiler_flag="-o out/conftest2.$ac_objext"
8484   # Insert the option either (1) after the last *FLAGS variable, or
8485   # (2) before a word containing "conftest.", or (3) at the end.
8486   # Note that $ac_compile itself does not contain backslashes and begins
8487   # with a dollar sign (not a hyphen), so the echo should work correctly.
8488   lt_compile=`echo "$ac_compile" | $SED \
8489   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8490   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8491   -e 's:$: $lt_compiler_flag:'`
8492   (eval echo "\"\$as_me:8492: $lt_compile\"" >&5)
8493   (eval "$lt_compile" 2>out/conftest.err)
8494   ac_status=$?
8495   cat out/conftest.err >&5
8496   echo "$as_me:8496: \$? = $ac_status" >&5
8497   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8498   then
8499     # The compiler can only warn and ignore the option if not recognized
8500     # So say no if there are warnings
8501     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8502     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8503     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8504       lt_cv_prog_compiler_c_o=yes
8505     fi
8506   fi
8507   chmod u+w . 2>&5
8508   $rm conftest*
8509   # SGI C++ compiler will create directory out/ii_files/ for
8510   # template instantiation
8511   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8512   $rm out/* && rmdir out
8513   cd ..
8514   rmdir conftest
8515   $rm conftest*
8516
8517fi
8518echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8519echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8520
8521
8522hard_links="nottested"
8523if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8524  # do not overwrite the value of need_locks provided by the user
8525  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8526echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8527  hard_links=yes
8528  $rm conftest*
8529  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8530  touch conftest.a
8531  ln conftest.a conftest.b 2>&5 || hard_links=no
8532  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8533  echo "$as_me:$LINENO: result: $hard_links" >&5
8534echo "${ECHO_T}$hard_links" >&6
8535  if test "$hard_links" = no; then
8536    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8537echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8538    need_locks=warn
8539  fi
8540else
8541  need_locks=no
8542fi
8543
8544echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8545echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8546
8547  runpath_var=
8548  allow_undefined_flag=
8549  enable_shared_with_static_runtimes=no
8550  archive_cmds=
8551  archive_expsym_cmds=
8552  old_archive_From_new_cmds=
8553  old_archive_from_expsyms_cmds=
8554  export_dynamic_flag_spec=
8555  whole_archive_flag_spec=
8556  thread_safe_flag_spec=
8557  hardcode_libdir_flag_spec=
8558  hardcode_libdir_flag_spec_ld=
8559  hardcode_libdir_separator=
8560  hardcode_direct=no
8561  hardcode_minus_L=no
8562  hardcode_shlibpath_var=unsupported
8563  link_all_deplibs=unknown
8564  hardcode_automatic=no
8565  module_cmds=
8566  module_expsym_cmds=
8567  always_export_symbols=no
8568  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8569  # include_expsyms should be a list of space-separated symbols to be *always*
8570  # included in the symbol list
8571  include_expsyms=
8572  # exclude_expsyms can be an extended regexp of symbols to exclude
8573  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8574  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8575  # as well as any symbol that contains `d'.
8576  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8577  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8578  # platforms (ab)use it in PIC code, but their linkers get confused if
8579  # the symbol is explicitly referenced.  Since portable code cannot
8580  # rely on this symbol name, it's probably fine to never include it in
8581  # preloaded symbol tables.
8582  extract_expsyms_cmds=
8583  # Just being paranoid about ensuring that cc_basename is set.
8584  for cc_temp in $compiler""; do
8585  case $cc_temp in
8586    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8587    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8588    \-*) ;;
8589    *) break;;
8590  esac
8591done
8592cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8593
8594  case $host_os in
8595  cygwin* | mingw* | pw32*)
8596    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8597    # When not using gcc, we currently assume that we are using
8598    # Microsoft Visual C++.
8599    if test "$GCC" != yes; then
8600      with_gnu_ld=no
8601    fi
8602    ;;
8603  interix*)
8604    # we just hope/assume this is gcc and not c89 (= MSVC++)
8605    with_gnu_ld=yes
8606    ;;
8607  openbsd*)
8608    with_gnu_ld=no
8609    ;;
8610  esac
8611
8612  ld_shlibs=yes
8613  if test "$with_gnu_ld" = yes; then
8614    # If archive_cmds runs LD, not CC, wlarc should be empty
8615    wlarc='${wl}'
8616
8617    # Set some defaults for GNU ld with shared library support. These
8618    # are reset later if shared libraries are not supported. Putting them
8619    # here allows them to be overridden if necessary.
8620    runpath_var=LD_RUN_PATH
8621    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8622    export_dynamic_flag_spec='${wl}--export-dynamic'
8623    # ancient GNU ld didn't support --whole-archive et. al.
8624    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8625        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8626      else
8627        whole_archive_flag_spec=
8628    fi
8629    supports_anon_versioning=no
8630    case `$LD -v 2>/dev/null` in
8631      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8632      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8633      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8634      *\ 2.11.*) ;; # other 2.11 versions
8635      *) supports_anon_versioning=yes ;;
8636    esac
8637
8638    # See if GNU ld supports shared libraries.
8639    case $host_os in
8640    aix3* | aix4* | aix5*)
8641      # On AIX/PPC, the GNU linker is very broken
8642      if test "$host_cpu" != ia64; then
8643        ld_shlibs=no
8644        cat <<EOF 1>&2
8645
8646*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8647*** to be unable to reliably create shared libraries on AIX.
8648*** Therefore, libtool is disabling shared libraries support.  If you
8649*** really care for shared libraries, you may want to modify your PATH
8650*** so that a non-GNU linker is found, and then restart.
8651
8652EOF
8653      fi
8654      ;;
8655
8656    amigaos*)
8657      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)'
8658      hardcode_libdir_flag_spec='-L$libdir'
8659      hardcode_minus_L=yes
8660
8661      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8662      # that the semantics of dynamic libraries on AmigaOS, at least up
8663      # to version 4, is to share data among multiple programs linked
8664      # with the same dynamic library.  Since this doesn't match the
8665      # behavior of shared libraries on other platforms, we can't use
8666      # them.
8667      ld_shlibs=no
8668      ;;
8669
8670    beos*)
8671      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8672        allow_undefined_flag=unsupported
8673        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8674        # support --undefined.  This deserves some investigation.  FIXME
8675        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8676      else
8677        ld_shlibs=no
8678      fi
8679      ;;
8680
8681    cygwin* | mingw* | pw32*)
8682      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8683      # as there is no search path for DLLs.
8684      hardcode_libdir_flag_spec='-L$libdir'
8685      allow_undefined_flag=unsupported
8686      always_export_symbols=no
8687      enable_shared_with_static_runtimes=yes
8688      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8689
8690      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8691        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8692        # If the export-symbols file already is a .def file (1st line
8693        # is EXPORTS), use it as is; otherwise, prepend...
8694        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8695          cp $export_symbols $output_objdir/$soname.def;
8696        else
8697          echo EXPORTS > $output_objdir/$soname.def;
8698          cat $export_symbols >> $output_objdir/$soname.def;
8699        fi~
8700        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8701      else
8702        ld_shlibs=no
8703      fi
8704      ;;
8705
8706    interix3*)
8707      hardcode_direct=no
8708      hardcode_shlibpath_var=no
8709      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8710      export_dynamic_flag_spec='${wl}-E'
8711      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8712      # Instead, shared libraries are loaded at an image base (0x10000000 by
8713      # default) and relocated if they conflict, which is a slow very memory
8714      # consuming and fragmenting process.  To avoid this, we pick a random,
8715      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8716      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8717      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8718      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'
8719      ;;
8720
8721    linux*)
8722      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8723        tmp_addflag=
8724        case $cc_basename,$host_cpu in
8725        pgcc*)                          # Portland Group C compiler
8726          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'
8727          tmp_addflag=' $pic_flag'
8728          ;;
8729        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8730          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'
8731          tmp_addflag=' $pic_flag -Mnomain' ;;
8732        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8733          tmp_addflag=' -i_dynamic' ;;
8734        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8735          tmp_addflag=' -i_dynamic -nofor_main' ;;
8736        ifc* | ifort*)                  # Intel Fortran compiler
8737          tmp_addflag=' -nofor_main' ;;
8738        esac
8739        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8740
8741        if test $supports_anon_versioning = yes; then
8742          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8743  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8744  $echo "local: *; };" >> $output_objdir/$libname.ver~
8745          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8746        fi
8747      else
8748        ld_shlibs=no
8749      fi
8750      ;;
8751
8752    netbsd*)
8753      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8754        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8755        wlarc=
8756      else
8757        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8758        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8759      fi
8760      ;;
8761
8762    solaris*)
8763      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8764        ld_shlibs=no
8765        cat <<EOF 1>&2
8766
8767*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8768*** create shared libraries on Solaris systems.  Therefore, libtool
8769*** is disabling shared libraries support.  We urge you to upgrade GNU
8770*** binutils to release 2.9.1 or newer.  Another option is to modify
8771*** your PATH or compiler configuration so that the native linker is
8772*** used, and then restart.
8773
8774EOF
8775      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8776        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8777        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8778      else
8779        ld_shlibs=no
8780      fi
8781      ;;
8782
8783    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8784      case `$LD -v 2>&1` in
8785        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8786        ld_shlibs=no
8787        cat <<_LT_EOF 1>&2
8788
8789*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8790*** reliably create shared libraries on SCO systems.  Therefore, libtool
8791*** is disabling shared libraries support.  We urge you to upgrade GNU
8792*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8793*** your PATH or compiler configuration so that the native linker is
8794*** used, and then restart.
8795
8796_LT_EOF
8797        ;;
8798        *)
8799          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8800            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8801            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8802            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8803          else
8804            ld_shlibs=no
8805          fi
8806        ;;
8807      esac
8808      ;;
8809
8810    sunos4*)
8811      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8812      wlarc=
8813      hardcode_direct=yes
8814      hardcode_shlibpath_var=no
8815      ;;
8816
8817    *)
8818      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8819        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8820        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8821      else
8822        ld_shlibs=no
8823      fi
8824      ;;
8825    esac
8826
8827    if test "$ld_shlibs" = no; then
8828      runpath_var=
8829      hardcode_libdir_flag_spec=
8830      export_dynamic_flag_spec=
8831      whole_archive_flag_spec=
8832    fi
8833  else
8834    # PORTME fill in a description of your system's linker (not GNU ld)
8835    case $host_os in
8836    aix3*)
8837      allow_undefined_flag=unsupported
8838      always_export_symbols=yes
8839      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'
8840      # Note: this linker hardcodes the directories in LIBPATH if there
8841      # are no directories specified by -L.
8842      hardcode_minus_L=yes
8843      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8844        # Neither direct hardcoding nor static linking is supported with a
8845        # broken collect2.
8846        hardcode_direct=unsupported
8847      fi
8848      ;;
8849
8850    aix4* | aix5*)
8851      if test "$host_cpu" = ia64; then
8852        # On IA64, the linker does run time linking by default, so we don't
8853        # have to do anything special.
8854        aix_use_runtimelinking=no
8855        exp_sym_flag='-Bexport'
8856        no_entry_flag=""
8857      else
8858        # If we're using GNU nm, then we don't want the "-C" option.
8859        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8860        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8861          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'
8862        else
8863          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'
8864        fi
8865        aix_use_runtimelinking=no
8866
8867        # Test if we are trying to use run time linking or normal
8868        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8869        # need to do runtime linking.
8870        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8871          for ld_flag in $LDFLAGS; do
8872          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8873            aix_use_runtimelinking=yes
8874            break
8875          fi
8876          done
8877          ;;
8878        esac
8879
8880        exp_sym_flag='-bexport'
8881        no_entry_flag='-bnoentry'
8882      fi
8883
8884      # When large executables or shared objects are built, AIX ld can
8885      # have problems creating the table of contents.  If linking a library
8886      # or program results in "error TOC overflow" add -mminimal-toc to
8887      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8888      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8889
8890      archive_cmds=''
8891      hardcode_direct=yes
8892      hardcode_libdir_separator=':'
8893      link_all_deplibs=yes
8894
8895      if test "$GCC" = yes; then
8896        case $host_os in aix4.[012]|aix4.[012].*)
8897        # We only want to do this on AIX 4.2 and lower, the check
8898        # below for broken collect2 doesn't work under 4.3+
8899          collect2name=`${CC} -print-prog-name=collect2`
8900          if test -f "$collect2name" && \
8901           strings "$collect2name" | grep resolve_lib_name >/dev/null
8902          then
8903          # We have reworked collect2
8904          hardcode_direct=yes
8905          else
8906          # We have old collect2
8907          hardcode_direct=unsupported
8908          # It fails to find uninstalled libraries when the uninstalled
8909          # path is not listed in the libpath.  Setting hardcode_minus_L
8910          # to unsupported forces relinking
8911          hardcode_minus_L=yes
8912          hardcode_libdir_flag_spec='-L$libdir'
8913          hardcode_libdir_separator=
8914          fi
8915          ;;
8916        esac
8917        shared_flag='-shared'
8918        if test "$aix_use_runtimelinking" = yes; then
8919          shared_flag="$shared_flag "'${wl}-G'
8920        fi
8921      else
8922        # not using gcc
8923        if test "$host_cpu" = ia64; then
8924        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8925        # chokes on -Wl,-G. The following line is correct:
8926          shared_flag='-G'
8927        else
8928          if test "$aix_use_runtimelinking" = yes; then
8929            shared_flag='${wl}-G'
8930          else
8931            shared_flag='${wl}-bM:SRE'
8932          fi
8933        fi
8934      fi
8935
8936      # It seems that -bexpall does not export symbols beginning with
8937      # underscore (_), so it is better to generate a list of symbols to export.
8938      always_export_symbols=yes
8939      if test "$aix_use_runtimelinking" = yes; then
8940        # Warning - without using the other runtime loading flags (-brtl),
8941        # -berok will link without error, but may produce a broken library.
8942        allow_undefined_flag='-berok'
8943       # Determine the default libpath from the value encoded in an empty executable.
8944       cat >conftest.$ac_ext <<_ACEOF
8945/* confdefs.h.  */
8946_ACEOF
8947cat confdefs.h >>conftest.$ac_ext
8948cat >>conftest.$ac_ext <<_ACEOF
8949/* end confdefs.h.  */
8950
8951int
8952main ()
8953{
8954
8955  ;
8956  return 0;
8957}
8958_ACEOF
8959rm -f conftest.$ac_objext conftest$ac_exeext
8960if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8961  (eval $ac_link) 2>conftest.er1
8962  ac_status=$?
8963  grep -v '^ *+' conftest.er1 >conftest.err
8964  rm -f conftest.er1
8965  cat conftest.err >&5
8966  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967  (exit $ac_status); } &&
8968         { ac_try='test -z "$ac_c_werror_flag"
8969                         || test ! -s conftest.err'
8970  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8971  (eval $ac_try) 2>&5
8972  ac_status=$?
8973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974  (exit $ac_status); }; } &&
8975         { ac_try='test -s conftest$ac_exeext'
8976  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8977  (eval $ac_try) 2>&5
8978  ac_status=$?
8979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980  (exit $ac_status); }; }; then
8981
8982aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8983}'`
8984# Check for a 64-bit object if we didn't find anything.
8985if 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; }
8986}'`; fi
8987else
8988  echo "$as_me: failed program was:" >&5
8989sed 's/^/| /' conftest.$ac_ext >&5
8990
8991fi
8992rm -f conftest.err conftest.$ac_objext \
8993      conftest$ac_exeext conftest.$ac_ext
8994if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8995
8996       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8997        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"
8998       else
8999        if test "$host_cpu" = ia64; then
9000          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9001          allow_undefined_flag="-z nodefs"
9002          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"
9003        else
9004         # Determine the default libpath from the value encoded in an empty executable.
9005         cat >conftest.$ac_ext <<_ACEOF
9006/* confdefs.h.  */
9007_ACEOF
9008cat confdefs.h >>conftest.$ac_ext
9009cat >>conftest.$ac_ext <<_ACEOF
9010/* end confdefs.h.  */
9011
9012int
9013main ()
9014{
9015
9016  ;
9017  return 0;
9018}
9019_ACEOF
9020rm -f conftest.$ac_objext conftest$ac_exeext
9021if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9022  (eval $ac_link) 2>conftest.er1
9023  ac_status=$?
9024  grep -v '^ *+' conftest.er1 >conftest.err
9025  rm -f conftest.er1
9026  cat conftest.err >&5
9027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9028  (exit $ac_status); } &&
9029         { ac_try='test -z "$ac_c_werror_flag"
9030                         || test ! -s conftest.err'
9031  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9032  (eval $ac_try) 2>&5
9033  ac_status=$?
9034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9035  (exit $ac_status); }; } &&
9036         { ac_try='test -s conftest$ac_exeext'
9037  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9038  (eval $ac_try) 2>&5
9039  ac_status=$?
9040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9041  (exit $ac_status); }; }; then
9042
9043aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9044}'`
9045# Check for a 64-bit object if we didn't find anything.
9046if 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; }
9047}'`; fi
9048else
9049  echo "$as_me: failed program was:" >&5
9050sed 's/^/| /' conftest.$ac_ext >&5
9051
9052fi
9053rm -f conftest.err conftest.$ac_objext \
9054      conftest$ac_exeext conftest.$ac_ext
9055if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9056
9057         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9058          # Warning - without using the other run time loading flags,
9059          # -berok will link without error, but may produce a broken library.
9060          no_undefined_flag=' ${wl}-bernotok'
9061          allow_undefined_flag=' ${wl}-berok'
9062          # Exported symbols can be pulled into shared objects from archives
9063          whole_archive_flag_spec='$convenience'
9064          archive_cmds_need_lc=yes
9065          # This is similar to how AIX traditionally builds its shared libraries.
9066          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'
9067        fi
9068      fi
9069      ;;
9070
9071    amigaos*)
9072      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)'
9073      hardcode_libdir_flag_spec='-L$libdir'
9074      hardcode_minus_L=yes
9075      # see comment about different semantics on the GNU ld section
9076      ld_shlibs=no
9077      ;;
9078
9079    bsdi[45]*)
9080      export_dynamic_flag_spec=-rdynamic
9081      ;;
9082
9083    cygwin* | mingw* | pw32*)
9084      # When not using gcc, we currently assume that we are using
9085      # Microsoft Visual C++.
9086      # hardcode_libdir_flag_spec is actually meaningless, as there is
9087      # no search path for DLLs.
9088      hardcode_libdir_flag_spec=' '
9089      allow_undefined_flag=unsupported
9090      # Tell ltmain to make .lib files, not .a files.
9091      libext=lib
9092      # Tell ltmain to make .dll files, not .so files.
9093      shrext_cmds=".dll"
9094      # FIXME: Setting linknames here is a bad hack.
9095      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9096      # The linker will automatically build a .lib file if we build a DLL.
9097      old_archive_From_new_cmds='true'
9098      # FIXME: Should let the user specify the lib program.
9099      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9100      fix_srcfile_path='`cygpath -w "$srcfile"`'
9101      enable_shared_with_static_runtimes=yes
9102      ;;
9103
9104    darwin* | rhapsody*)
9105      case $host_os in
9106        rhapsody* | darwin1.[012])
9107         allow_undefined_flag='${wl}-undefined ${wl}suppress'
9108         ;;
9109       *) # Darwin 1.3 on
9110         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9111           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9112         else
9113           case ${MACOSX_DEPLOYMENT_TARGET} in
9114             10.[012])
9115               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9116               ;;
9117             10.*)
9118               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9119               ;;
9120           esac
9121         fi
9122         ;;
9123      esac
9124      archive_cmds_need_lc=no
9125      hardcode_direct=no
9126      hardcode_automatic=yes
9127      hardcode_shlibpath_var=unsupported
9128      whole_archive_flag_spec=''
9129      link_all_deplibs=yes
9130    if test "$GCC" = yes ; then
9131        output_verbose_link_cmd='echo'
9132        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9133      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9134      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9135      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}'
9136      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}'
9137    else
9138      case $cc_basename in
9139        xlc*)
9140         output_verbose_link_cmd='echo'
9141         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9142         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9143          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9144         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}'
9145          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}'
9146          ;;
9147       *)
9148         ld_shlibs=no
9149          ;;
9150      esac
9151    fi
9152      ;;
9153
9154    dgux*)
9155      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9156      hardcode_libdir_flag_spec='-L$libdir'
9157      hardcode_shlibpath_var=no
9158      ;;
9159
9160    freebsd1*)
9161      ld_shlibs=no
9162      ;;
9163
9164    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9165    # support.  Future versions do this automatically, but an explicit c++rt0.o
9166    # does not break anything, and helps significantly (at the cost of a little
9167    # extra space).
9168    freebsd2.2*)
9169      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9170      hardcode_libdir_flag_spec='-R$libdir'
9171      hardcode_direct=yes
9172      hardcode_shlibpath_var=no
9173      ;;
9174
9175    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9176    freebsd2*)
9177      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9178      hardcode_direct=yes
9179      hardcode_minus_L=yes
9180      hardcode_shlibpath_var=no
9181      ;;
9182
9183    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9184    freebsd* | kfreebsd*-gnu | dragonfly*)
9185      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9186      hardcode_libdir_flag_spec='-R$libdir'
9187      hardcode_direct=yes
9188      hardcode_shlibpath_var=no
9189      ;;
9190
9191    hpux9*)
9192      if test "$GCC" = yes; then
9193        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'
9194      else
9195        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'
9196      fi
9197      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9198      hardcode_libdir_separator=:
9199      hardcode_direct=yes
9200
9201      # hardcode_minus_L: Not really in the search PATH,
9202      # but as the default location of the library.
9203      hardcode_minus_L=yes
9204      export_dynamic_flag_spec='${wl}-E'
9205      ;;
9206
9207    hpux10*)
9208      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9209        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9210      else
9211        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9212      fi
9213      if test "$with_gnu_ld" = no; then
9214        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9215        hardcode_libdir_separator=:
9216
9217        hardcode_direct=yes
9218        export_dynamic_flag_spec='${wl}-E'
9219
9220        # hardcode_minus_L: Not really in the search PATH,
9221        # but as the default location of the library.
9222        hardcode_minus_L=yes
9223      fi
9224      ;;
9225
9226    hpux11*)
9227      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9228        case $host_cpu in
9229        hppa*64*)
9230          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9231          ;;
9232        ia64*)
9233          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9234          ;;
9235        *)
9236          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9237          ;;
9238        esac
9239      else
9240        case $host_cpu in
9241        hppa*64*)
9242          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9243          ;;
9244        ia64*)
9245          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9246          ;;
9247        *)
9248          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9249          ;;
9250        esac
9251      fi
9252      if test "$with_gnu_ld" = no; then
9253        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9254        hardcode_libdir_separator=:
9255
9256        case $host_cpu in
9257        hppa*64*|ia64*)
9258          hardcode_libdir_flag_spec_ld='+b $libdir'
9259          hardcode_direct=no
9260          hardcode_shlibpath_var=no
9261          ;;
9262        *)
9263          hardcode_direct=yes
9264          export_dynamic_flag_spec='${wl}-E'
9265
9266          # hardcode_minus_L: Not really in the search PATH,
9267          # but as the default location of the library.
9268          hardcode_minus_L=yes
9269          ;;
9270        esac
9271      fi
9272      ;;
9273
9274    irix5* | irix6* | nonstopux*)
9275      if test "$GCC" = yes; then
9276        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'
9277      else
9278        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'
9279        hardcode_libdir_flag_spec_ld='-rpath $libdir'
9280      fi
9281      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9282      hardcode_libdir_separator=:
9283      link_all_deplibs=yes
9284      ;;
9285
9286    netbsd*)
9287      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9288        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9289      else
9290        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9291      fi
9292      hardcode_libdir_flag_spec='-R$libdir'
9293      hardcode_direct=yes
9294      hardcode_shlibpath_var=no
9295      ;;
9296
9297    newsos6)
9298      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9299      hardcode_direct=yes
9300      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9301      hardcode_libdir_separator=:
9302      hardcode_shlibpath_var=no
9303      ;;
9304
9305    openbsd*)
9306      hardcode_direct=yes
9307      hardcode_shlibpath_var=no
9308      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9309        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9310        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9311        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9312        export_dynamic_flag_spec='${wl}-E'
9313      else
9314       case $host_os in
9315         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9316           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9317           hardcode_libdir_flag_spec='-R$libdir'
9318           ;;
9319         *)
9320           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9321           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9322           ;;
9323       esac
9324      fi
9325      ;;
9326
9327    os2*)
9328      hardcode_libdir_flag_spec='-L$libdir'
9329      hardcode_minus_L=yes
9330      allow_undefined_flag=unsupported
9331      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'
9332      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9333      ;;
9334
9335    osf3*)
9336      if test "$GCC" = yes; then
9337        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9338        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'
9339      else
9340        allow_undefined_flag=' -expect_unresolved \*'
9341        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'
9342      fi
9343      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9344      hardcode_libdir_separator=:
9345      ;;
9346
9347    osf4* | osf5*)      # as osf3* with the addition of -msym flag
9348      if test "$GCC" = yes; then
9349        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9350        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'
9351        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9352      else
9353        allow_undefined_flag=' -expect_unresolved \*'
9354        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'
9355        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9356        $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'
9357
9358        # Both c and cxx compiler support -rpath directly
9359        hardcode_libdir_flag_spec='-rpath $libdir'
9360      fi
9361      hardcode_libdir_separator=:
9362      ;;
9363
9364    solaris*)
9365      no_undefined_flag=' -z text'
9366      if test "$GCC" = yes; then
9367        wlarc='${wl}'
9368        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9369        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9370          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9371      else
9372        wlarc=''
9373        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9374        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9375        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9376      fi
9377      hardcode_libdir_flag_spec='-R$libdir'
9378      hardcode_shlibpath_var=no
9379      case $host_os in
9380      solaris2.[0-5] | solaris2.[0-5].*) ;;
9381      *)
9382        # The compiler driver will combine linker options so we
9383        # cannot just pass the convience library names through
9384        # without $wl, iff we do not link with $LD.
9385        # Luckily, gcc supports the same syntax we need for Sun Studio.
9386        # Supported since Solaris 2.6 (maybe 2.5.1?)
9387        case $wlarc in
9388        '')
9389          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9390        *)
9391          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' ;;
9392        esac ;;
9393      esac
9394      link_all_deplibs=yes
9395      ;;
9396
9397    sunos4*)
9398      if test "x$host_vendor" = xsequent; then
9399        # Use $CC to link under sequent, because it throws in some extra .o
9400        # files that make .init and .fini sections work.
9401        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9402      else
9403        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9404      fi
9405      hardcode_libdir_flag_spec='-L$libdir'
9406      hardcode_direct=yes
9407      hardcode_minus_L=yes
9408      hardcode_shlibpath_var=no
9409      ;;
9410
9411    sysv4)
9412      case $host_vendor in
9413        sni)
9414          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9415          hardcode_direct=yes # is this really true???
9416        ;;
9417        siemens)
9418          ## LD is ld it makes a PLAMLIB
9419          ## CC just makes a GrossModule.
9420          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9421          reload_cmds='$CC -r -o $output$reload_objs'
9422          hardcode_direct=no
9423        ;;
9424        motorola)
9425          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9426          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9427        ;;
9428      esac
9429      runpath_var='LD_RUN_PATH'
9430      hardcode_shlibpath_var=no
9431      ;;
9432
9433    sysv4.3*)
9434      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9435      hardcode_shlibpath_var=no
9436      export_dynamic_flag_spec='-Bexport'
9437      ;;
9438
9439    sysv4*MP*)
9440      if test -d /usr/nec; then
9441        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9442        hardcode_shlibpath_var=no
9443        runpath_var=LD_RUN_PATH
9444        hardcode_runpath_var=yes
9445        ld_shlibs=yes
9446      fi
9447      ;;
9448
9449    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9450      no_undefined_flag='${wl}-z,text'
9451      archive_cmds_need_lc=no
9452      hardcode_shlibpath_var=no
9453      runpath_var='LD_RUN_PATH'
9454
9455      if test "$GCC" = yes; then
9456        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9457        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9458      else
9459        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9460        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9461      fi
9462      ;;
9463
9464    sysv5* | sco3.2v5* | sco5v6*)
9465      # Note: We can NOT use -z defs as we might desire, because we do not
9466      # link with -lc, and that would cause any symbols used from libc to
9467      # always be unresolved, which means just about no library would
9468      # ever link correctly.  If we're not using GNU ld we use -z text
9469      # though, which does catch some bad symbols but isn't as heavy-handed
9470      # as -z defs.
9471      no_undefined_flag='${wl}-z,text'
9472      allow_undefined_flag='${wl}-z,nodefs'
9473      archive_cmds_need_lc=no
9474      hardcode_shlibpath_var=no
9475      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9476      hardcode_libdir_separator=':'
9477      link_all_deplibs=yes
9478      export_dynamic_flag_spec='${wl}-Bexport'
9479      runpath_var='LD_RUN_PATH'
9480
9481      if test "$GCC" = yes; then
9482        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9483        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9484      else
9485        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9486        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9487      fi
9488      ;;
9489
9490    uts4*)
9491      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9492      hardcode_libdir_flag_spec='-L$libdir'
9493      hardcode_shlibpath_var=no
9494      ;;
9495
9496    *)
9497      ld_shlibs=no
9498      ;;
9499    esac
9500  fi
9501
9502echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9503echo "${ECHO_T}$ld_shlibs" >&6
9504test "$ld_shlibs" = no && can_build_shared=no
9505
9506#
9507# Do we need to explicitly link libc?
9508#
9509case "x$archive_cmds_need_lc" in
9510x|xyes)
9511  # Assume -lc should be added
9512  archive_cmds_need_lc=yes
9513
9514  if test "$enable_shared" = yes && test "$GCC" = yes; then
9515    case $archive_cmds in
9516    *'~'*)
9517      # FIXME: we may have to deal with multi-command sequences.
9518      ;;
9519    '$CC '*)
9520      # Test whether the compiler implicitly links with -lc since on some
9521      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9522      # to ld, don't add -lc before -lgcc.
9523      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9524echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9525      $rm conftest*
9526      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9527
9528      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9529  (eval $ac_compile) 2>&5
9530  ac_status=$?
9531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9532  (exit $ac_status); } 2>conftest.err; then
9533        soname=conftest
9534        lib=conftest
9535        libobjs=conftest.$ac_objext
9536        deplibs=
9537        wl=$lt_prog_compiler_wl
9538        pic_flag=$lt_prog_compiler_pic
9539        compiler_flags=-v
9540        linker_flags=-v
9541        verstring=
9542        output_objdir=.
9543        libname=conftest
9544        lt_save_allow_undefined_flag=$allow_undefined_flag
9545        allow_undefined_flag=
9546        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9547  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9548  ac_status=$?
9549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550  (exit $ac_status); }
9551        then
9552          archive_cmds_need_lc=no
9553        else
9554          archive_cmds_need_lc=yes
9555        fi
9556        allow_undefined_flag=$lt_save_allow_undefined_flag
9557      else
9558        cat conftest.err 1>&5
9559      fi
9560      $rm conftest*
9561      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9562echo "${ECHO_T}$archive_cmds_need_lc" >&6
9563      ;;
9564    esac
9565  fi
9566  ;;
9567esac
9568
9569echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9570echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9571library_names_spec=
9572libname_spec='lib$name'
9573soname_spec=
9574shrext_cmds=".so"
9575postinstall_cmds=
9576postuninstall_cmds=
9577finish_cmds=
9578finish_eval=
9579shlibpath_var=
9580shlibpath_overrides_runpath=unknown
9581version_type=none
9582dynamic_linker="$host_os ld.so"
9583sys_lib_dlsearch_path_spec="/lib /usr/lib"
9584if test "$GCC" = yes; then
9585  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9586  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9587    # if the path contains ";" then we assume it to be the separator
9588    # otherwise default to the standard path separator (i.e. ":") - it is
9589    # assumed that no part of a normal pathname contains ";" but that should
9590    # okay in the real world where ";" in dirpaths is itself problematic.
9591    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9592  else
9593    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9594  fi
9595else
9596  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9597fi
9598need_lib_prefix=unknown
9599hardcode_into_libs=no
9600
9601# when you set need_version to no, make sure it does not cause -set_version
9602# flags to be left without arguments
9603need_version=unknown
9604
9605case $host_os in
9606aix3*)
9607  version_type=linux
9608  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9609  shlibpath_var=LIBPATH
9610
9611  # AIX 3 has no versioning support, so we append a major version to the name.
9612  soname_spec='${libname}${release}${shared_ext}$major'
9613  ;;
9614
9615aix4* | aix5*)
9616  version_type=linux
9617  need_lib_prefix=no
9618  need_version=no
9619  hardcode_into_libs=yes
9620  if test "$host_cpu" = ia64; then
9621    # AIX 5 supports IA64
9622    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9623    shlibpath_var=LD_LIBRARY_PATH
9624  else
9625    # With GCC up to 2.95.x, collect2 would create an import file
9626    # for dependence libraries.  The import file would start with
9627    # the line `#! .'.  This would cause the generated library to
9628    # depend on `.', always an invalid library.  This was fixed in
9629    # development snapshots of GCC prior to 3.0.
9630    case $host_os in
9631      aix4 | aix4.[01] | aix4.[01].*)
9632      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9633           echo ' yes '
9634           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9635        :
9636      else
9637        can_build_shared=no
9638      fi
9639      ;;
9640    esac
9641    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9642    # soname into executable. Probably we can add versioning support to
9643    # collect2, so additional links can be useful in future.
9644    if test "$aix_use_runtimelinking" = yes; then
9645      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9646      # instead of lib<name>.a to let people know that these are not
9647      # typical AIX shared libraries.
9648      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9649    else
9650      # We preserve .a as extension for shared libraries through AIX4.2
9651      # and later when we are not doing run time linking.
9652      library_names_spec='${libname}${release}.a $libname.a'
9653      soname_spec='${libname}${release}${shared_ext}$major'
9654    fi
9655    shlibpath_var=LIBPATH
9656  fi
9657  ;;
9658
9659amigaos*)
9660  library_names_spec='$libname.ixlibrary $libname.a'
9661  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9662  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'
9663  ;;
9664
9665beos*)
9666  library_names_spec='${libname}${shared_ext}'
9667  dynamic_linker="$host_os ld.so"
9668  shlibpath_var=LIBRARY_PATH
9669  ;;
9670
9671bsdi[45]*)
9672  version_type=linux
9673  need_version=no
9674  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9675  soname_spec='${libname}${release}${shared_ext}$major'
9676  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9677  shlibpath_var=LD_LIBRARY_PATH
9678  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9679  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9680  # the default ld.so.conf also contains /usr/contrib/lib and
9681  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9682  # libtool to hard-code these into programs
9683  ;;
9684
9685cygwin* | mingw* | pw32*)
9686  version_type=windows
9687  shrext_cmds=".dll"
9688  need_version=no
9689  need_lib_prefix=no
9690
9691  case $GCC,$host_os in
9692  yes,cygwin* | yes,mingw* | yes,pw32*)
9693    library_names_spec='$libname.dll.a'
9694    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9695    postinstall_cmds='base_file=`basename \${file}`~
9696      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9697      dldir=$destdir/`dirname \$dlpath`~
9698      test -d \$dldir || mkdir -p \$dldir~
9699      $install_prog $dir/$dlname \$dldir/$dlname~
9700      chmod a+x \$dldir/$dlname'
9701    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9702      dlpath=$dir/\$dldll~
9703       $rm \$dlpath'
9704    shlibpath_overrides_runpath=yes
9705
9706    case $host_os in
9707    cygwin*)
9708      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9709      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9710      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9711      ;;
9712    mingw*)
9713      # MinGW DLLs use traditional 'lib' prefix
9714      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9715      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9716      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9717        # It is most probably a Windows format PATH printed by
9718        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9719        # path with ; separators, and with drive letters. We can handle the
9720        # drive letters (cygwin fileutils understands them), so leave them,
9721        # especially as we might pass files found there to a mingw objdump,
9722        # which wouldn't understand a cygwinified path. Ahh.
9723        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9724      else
9725        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9726      fi
9727      ;;
9728    pw32*)
9729      # pw32 DLLs use 'pw' prefix rather than 'lib'
9730      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9731      ;;
9732    esac
9733    ;;
9734
9735  *)
9736    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9737    ;;
9738  esac
9739  dynamic_linker='Win32 ld.exe'
9740  # FIXME: first we should search . and the directory the executable is in
9741  shlibpath_var=PATH
9742  ;;
9743
9744darwin* | rhapsody*)
9745  dynamic_linker="$host_os dyld"
9746  version_type=darwin
9747  need_lib_prefix=no
9748  need_version=no
9749  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9750  soname_spec='${libname}${release}${major}$shared_ext'
9751  shlibpath_overrides_runpath=yes
9752  shlibpath_var=DYLD_LIBRARY_PATH
9753  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9754  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9755  if test "$GCC" = yes; then
9756    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"`
9757  else
9758    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9759  fi
9760  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9761  ;;
9762
9763dgux*)
9764  version_type=linux
9765  need_lib_prefix=no
9766  need_version=no
9767  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9768  soname_spec='${libname}${release}${shared_ext}$major'
9769  shlibpath_var=LD_LIBRARY_PATH
9770  ;;
9771
9772freebsd1*)
9773  dynamic_linker=no
9774  ;;
9775
9776kfreebsd*-gnu)
9777  version_type=linux
9778  need_lib_prefix=no
9779  need_version=no
9780  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9781  soname_spec='${libname}${release}${shared_ext}$major'
9782  shlibpath_var=LD_LIBRARY_PATH
9783  shlibpath_overrides_runpath=no
9784  hardcode_into_libs=yes
9785  dynamic_linker='GNU ld.so'
9786  ;;
9787
9788freebsd* | dragonfly*)
9789  # DragonFly does not have aout.  When/if they implement a new
9790  # versioning mechanism, adjust this.
9791  if test -x /usr/bin/objformat; then
9792    objformat=`/usr/bin/objformat`
9793  else
9794    case $host_os in
9795    freebsd[123]*) objformat=aout ;;
9796    *) objformat=elf ;;
9797    esac
9798  fi
9799  version_type=freebsd-$objformat
9800  case $version_type in
9801    freebsd-elf*)
9802      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9803      need_version=no
9804      need_lib_prefix=no
9805      ;;
9806    freebsd-*)
9807      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9808      need_version=yes
9809      ;;
9810  esac
9811  shlibpath_var=LD_LIBRARY_PATH
9812  case $host_os in
9813  freebsd2*)
9814    shlibpath_overrides_runpath=yes
9815    ;;
9816  freebsd3.[01]* | freebsdelf3.[01]*)
9817    shlibpath_overrides_runpath=yes
9818    hardcode_into_libs=yes
9819    ;;
9820  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9821  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9822    shlibpath_overrides_runpath=no
9823    hardcode_into_libs=yes
9824    ;;
9825  freebsd*) # from 4.6 on
9826    shlibpath_overrides_runpath=yes
9827    hardcode_into_libs=yes
9828    ;;
9829  esac
9830  ;;
9831
9832gnu*)
9833  version_type=linux
9834  need_lib_prefix=no
9835  need_version=no
9836  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9837  soname_spec='${libname}${release}${shared_ext}$major'
9838  shlibpath_var=LD_LIBRARY_PATH
9839  hardcode_into_libs=yes
9840  ;;
9841
9842hpux9* | hpux10* | hpux11*)
9843  # Give a soname corresponding to the major version so that dld.sl refuses to
9844  # link against other versions.
9845  version_type=sunos
9846  need_lib_prefix=no
9847  need_version=no
9848  case $host_cpu in
9849  ia64*)
9850    shrext_cmds='.so'
9851    hardcode_into_libs=yes
9852    dynamic_linker="$host_os dld.so"
9853    shlibpath_var=LD_LIBRARY_PATH
9854    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9855    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9856    soname_spec='${libname}${release}${shared_ext}$major'
9857    if test "X$HPUX_IA64_MODE" = X32; then
9858      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9859    else
9860      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9861    fi
9862    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9863    ;;
9864   hppa*64*)
9865     shrext_cmds='.sl'
9866     hardcode_into_libs=yes
9867     dynamic_linker="$host_os dld.sl"
9868     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9869     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9870     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9871     soname_spec='${libname}${release}${shared_ext}$major'
9872     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9873     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9874     ;;
9875   *)
9876    shrext_cmds='.sl'
9877    dynamic_linker="$host_os dld.sl"
9878    shlibpath_var=SHLIB_PATH
9879    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9880    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9881    soname_spec='${libname}${release}${shared_ext}$major'
9882    ;;
9883  esac
9884  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9885  postinstall_cmds='chmod 555 $lib'
9886  ;;
9887
9888interix3*)
9889  version_type=linux
9890  need_lib_prefix=no
9891  need_version=no
9892  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9893  soname_spec='${libname}${release}${shared_ext}$major'
9894  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9895  shlibpath_var=LD_LIBRARY_PATH
9896  shlibpath_overrides_runpath=no
9897  hardcode_into_libs=yes
9898  ;;
9899
9900irix5* | irix6* | nonstopux*)
9901  case $host_os in
9902    nonstopux*) version_type=nonstopux ;;
9903    *)
9904        if test "$lt_cv_prog_gnu_ld" = yes; then
9905                version_type=linux
9906        else
9907                version_type=irix
9908        fi ;;
9909  esac
9910  need_lib_prefix=no
9911  need_version=no
9912  soname_spec='${libname}${release}${shared_ext}$major'
9913  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9914  case $host_os in
9915  irix5* | nonstopux*)
9916    libsuff= shlibsuff=
9917    ;;
9918  *)
9919    case $LD in # libtool.m4 will add one of these switches to LD
9920    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9921      libsuff= shlibsuff= libmagic=32-bit;;
9922    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9923      libsuff=32 shlibsuff=N32 libmagic=N32;;
9924    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9925      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9926    *) libsuff= shlibsuff= libmagic=never-match;;
9927    esac
9928    ;;
9929  esac
9930  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9931  shlibpath_overrides_runpath=no
9932  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9933  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9934  hardcode_into_libs=yes
9935  ;;
9936
9937# No shared lib support for Linux oldld, aout, or coff.
9938linux*oldld* | linux*aout* | linux*coff*)
9939  dynamic_linker=no
9940  ;;
9941
9942# This must be Linux ELF.
9943linux*)
9944  version_type=linux
9945  need_lib_prefix=no
9946  need_version=no
9947  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9948  soname_spec='${libname}${release}${shared_ext}$major'
9949  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9950  shlibpath_var=LD_LIBRARY_PATH
9951  shlibpath_overrides_runpath=no
9952  # This implies no fast_install, which is unacceptable.
9953  # Some rework will be needed to allow for fast_install
9954  # before this can be enabled.
9955  hardcode_into_libs=yes
9956
9957  # Append ld.so.conf contents to the search path
9958  if test -f /etc/ld.so.conf; then
9959    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' ' '`
9960    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9961  fi
9962
9963  # We used to test for /lib/ld.so.1 and disable shared libraries on
9964  # powerpc, because MkLinux only supported shared libraries with the
9965  # GNU dynamic linker.  Since this was broken with cross compilers,
9966  # most powerpc-linux boxes support dynamic linking these days and
9967  # people can always --disable-shared, the test was removed, and we
9968  # assume the GNU/Linux dynamic linker is in use.
9969  dynamic_linker='GNU/Linux ld.so'
9970  ;;
9971
9972knetbsd*-gnu)
9973  version_type=linux
9974  need_lib_prefix=no
9975  need_version=no
9976  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9977  soname_spec='${libname}${release}${shared_ext}$major'
9978  shlibpath_var=LD_LIBRARY_PATH
9979  shlibpath_overrides_runpath=no
9980  hardcode_into_libs=yes
9981  dynamic_linker='GNU ld.so'
9982  ;;
9983
9984netbsd*)
9985  version_type=sunos
9986  need_lib_prefix=no
9987  need_version=no
9988  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9989    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9990    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9991    dynamic_linker='NetBSD (a.out) ld.so'
9992  else
9993    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9994    soname_spec='${libname}${release}${shared_ext}$major'
9995    dynamic_linker='NetBSD ld.elf_so'
9996  fi
9997  shlibpath_var=LD_LIBRARY_PATH
9998  shlibpath_overrides_runpath=yes
9999  hardcode_into_libs=yes
10000  ;;
10001
10002newsos6)
10003  version_type=linux
10004  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10005  shlibpath_var=LD_LIBRARY_PATH
10006  shlibpath_overrides_runpath=yes
10007  ;;
10008
10009nto-qnx*)
10010  version_type=linux
10011  need_lib_prefix=no
10012  need_version=no
10013  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10014  soname_spec='${libname}${release}${shared_ext}$major'
10015  shlibpath_var=LD_LIBRARY_PATH
10016  shlibpath_overrides_runpath=yes
10017  ;;
10018
10019openbsd*)
10020  version_type=sunos
10021  sys_lib_dlsearch_path_spec="/usr/lib"
10022  need_lib_prefix=no
10023  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10024  case $host_os in
10025    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10026    *)                         need_version=no  ;;
10027  esac
10028  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10029  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10030  shlibpath_var=LD_LIBRARY_PATH
10031  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10032    case $host_os in
10033      openbsd2.[89] | openbsd2.[89].*)
10034        shlibpath_overrides_runpath=no
10035        ;;
10036      *)
10037        shlibpath_overrides_runpath=yes
10038        ;;
10039      esac
10040  else
10041    shlibpath_overrides_runpath=yes
10042  fi
10043  ;;
10044
10045os2*)
10046  libname_spec='$name'
10047  shrext_cmds=".dll"
10048  need_lib_prefix=no
10049  library_names_spec='$libname${shared_ext} $libname.a'
10050  dynamic_linker='OS/2 ld.exe'
10051  shlibpath_var=LIBPATH
10052  ;;
10053
10054osf3* | osf4* | osf5*)
10055  version_type=osf
10056  need_lib_prefix=no
10057  need_version=no
10058  soname_spec='${libname}${release}${shared_ext}$major'
10059  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10060  shlibpath_var=LD_LIBRARY_PATH
10061  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10062  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10063  ;;
10064
10065solaris*)
10066  version_type=linux
10067  need_lib_prefix=no
10068  need_version=no
10069  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10070  soname_spec='${libname}${release}${shared_ext}$major'
10071  shlibpath_var=LD_LIBRARY_PATH
10072  shlibpath_overrides_runpath=yes
10073  hardcode_into_libs=yes
10074  # ldd complains unless libraries are executable
10075  postinstall_cmds='chmod +x $lib'
10076  ;;
10077
10078sunos4*)
10079  version_type=sunos
10080  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10081  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10082  shlibpath_var=LD_LIBRARY_PATH
10083  shlibpath_overrides_runpath=yes
10084  if test "$with_gnu_ld" = yes; then
10085    need_lib_prefix=no
10086  fi
10087  need_version=yes
10088  ;;
10089
10090sysv4 | sysv4.3*)
10091  version_type=linux
10092  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10093  soname_spec='${libname}${release}${shared_ext}$major'
10094  shlibpath_var=LD_LIBRARY_PATH
10095  case $host_vendor in
10096    sni)
10097      shlibpath_overrides_runpath=no
10098      need_lib_prefix=no
10099      export_dynamic_flag_spec='${wl}-Blargedynsym'
10100      runpath_var=LD_RUN_PATH
10101      ;;
10102    siemens)
10103      need_lib_prefix=no
10104      ;;
10105    motorola)
10106      need_lib_prefix=no
10107      need_version=no
10108      shlibpath_overrides_runpath=no
10109      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10110      ;;
10111  esac
10112  ;;
10113
10114sysv4*MP*)
10115  if test -d /usr/nec ;then
10116    version_type=linux
10117    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10118    soname_spec='$libname${shared_ext}.$major'
10119    shlibpath_var=LD_LIBRARY_PATH
10120  fi
10121  ;;
10122
10123sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10124  version_type=freebsd-elf
10125  need_lib_prefix=no
10126  need_version=no
10127  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10128  soname_spec='${libname}${release}${shared_ext}$major'
10129  shlibpath_var=LD_LIBRARY_PATH
10130  hardcode_into_libs=yes
10131  if test "$with_gnu_ld" = yes; then
10132    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10133    shlibpath_overrides_runpath=no
10134  else
10135    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10136    shlibpath_overrides_runpath=yes
10137    case $host_os in
10138      sco3.2v5*)
10139        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10140        ;;
10141    esac
10142  fi
10143  sys_lib_dlsearch_path_spec='/usr/lib'
10144  ;;
10145
10146uts4*)
10147  version_type=linux
10148  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10149  soname_spec='${libname}${release}${shared_ext}$major'
10150  shlibpath_var=LD_LIBRARY_PATH
10151  ;;
10152
10153*)
10154  dynamic_linker=no
10155  ;;
10156esac
10157echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10158echo "${ECHO_T}$dynamic_linker" >&6
10159test "$dynamic_linker" = no && can_build_shared=no
10160
10161variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10162if test "$GCC" = yes; then
10163  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10164fi
10165
10166echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10167echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10168hardcode_action=
10169if test -n "$hardcode_libdir_flag_spec" || \
10170   test -n "$runpath_var" || \
10171   test "X$hardcode_automatic" = "Xyes" ; then
10172
10173  # We can hardcode non-existant directories.
10174  if test "$hardcode_direct" != no &&
10175     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10176     # have to relink, otherwise we might link with an installed library
10177     # when we should be linking with a yet-to-be-installed one
10178     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10179     test "$hardcode_minus_L" != no; then
10180    # Linking always hardcodes the temporary library directory.
10181    hardcode_action=relink
10182  else
10183    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10184    hardcode_action=immediate
10185  fi
10186else
10187  # We cannot hardcode anything, or else we can only hardcode existing
10188  # directories.
10189  hardcode_action=unsupported
10190fi
10191echo "$as_me:$LINENO: result: $hardcode_action" >&5
10192echo "${ECHO_T}$hardcode_action" >&6
10193
10194if test "$hardcode_action" = relink; then
10195  # Fast installation is not supported
10196  enable_fast_install=no
10197elif test "$shlibpath_overrides_runpath" = yes ||
10198     test "$enable_shared" = no; then
10199  # Fast installation is not necessary
10200  enable_fast_install=needless
10201fi
10202
10203striplib=
10204old_striplib=
10205echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10206echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10207if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10208  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10209  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10210  echo "$as_me:$LINENO: result: yes" >&5
10211echo "${ECHO_T}yes" >&6
10212else
10213# FIXME - insert some real tests, host_os isn't really good enough
10214  case $host_os in
10215   darwin*)
10216       if test -n "$STRIP" ; then
10217         striplib="$STRIP -x"
10218         echo "$as_me:$LINENO: result: yes" >&5
10219echo "${ECHO_T}yes" >&6
10220       else
10221  echo "$as_me:$LINENO: result: no" >&5
10222echo "${ECHO_T}no" >&6
10223fi
10224       ;;
10225   *)
10226  echo "$as_me:$LINENO: result: no" >&5
10227echo "${ECHO_T}no" >&6
10228    ;;
10229  esac
10230fi
10231
10232if test "x$enable_dlopen" != xyes; then
10233  enable_dlopen=unknown
10234  enable_dlopen_self=unknown
10235  enable_dlopen_self_static=unknown
10236else
10237  lt_cv_dlopen=no
10238  lt_cv_dlopen_libs=
10239
10240  case $host_os in
10241  beos*)
10242    lt_cv_dlopen="load_add_on"
10243    lt_cv_dlopen_libs=
10244    lt_cv_dlopen_self=yes
10245    ;;
10246
10247  mingw* | pw32*)
10248    lt_cv_dlopen="LoadLibrary"
10249    lt_cv_dlopen_libs=
10250   ;;
10251
10252  cygwin*)
10253    lt_cv_dlopen="dlopen"
10254    lt_cv_dlopen_libs=
10255   ;;
10256
10257  darwin*)
10258  # if libdl is installed we need to link against it
10259    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10260echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10261if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10262  echo $ECHO_N "(cached) $ECHO_C" >&6
10263else
10264  ac_check_lib_save_LIBS=$LIBS
10265LIBS="-ldl  $LIBS"
10266cat >conftest.$ac_ext <<_ACEOF
10267/* confdefs.h.  */
10268_ACEOF
10269cat confdefs.h >>conftest.$ac_ext
10270cat >>conftest.$ac_ext <<_ACEOF
10271/* end confdefs.h.  */
10272
10273/* Override any gcc2 internal prototype to avoid an error.  */
10274#ifdef __cplusplus
10275extern "C"
10276#endif
10277/* We use char because int might match the return type of a gcc2
10278   builtin and then its argument prototype would still apply.  */
10279char dlopen ();
10280int
10281main ()
10282{
10283dlopen ();
10284  ;
10285  return 0;
10286}
10287_ACEOF
10288rm -f conftest.$ac_objext conftest$ac_exeext
10289if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10290  (eval $ac_link) 2>conftest.er1
10291  ac_status=$?
10292  grep -v '^ *+' conftest.er1 >conftest.err
10293  rm -f conftest.er1
10294  cat conftest.err >&5
10295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296  (exit $ac_status); } &&
10297         { ac_try='test -z "$ac_c_werror_flag"
10298                         || test ! -s conftest.err'
10299  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10300  (eval $ac_try) 2>&5
10301  ac_status=$?
10302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303  (exit $ac_status); }; } &&
10304         { ac_try='test -s conftest$ac_exeext'
10305  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10306  (eval $ac_try) 2>&5
10307  ac_status=$?
10308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10309  (exit $ac_status); }; }; then
10310  ac_cv_lib_dl_dlopen=yes
10311else
10312  echo "$as_me: failed program was:" >&5
10313sed 's/^/| /' conftest.$ac_ext >&5
10314
10315ac_cv_lib_dl_dlopen=no
10316fi
10317rm -f conftest.err conftest.$ac_objext \
10318      conftest$ac_exeext conftest.$ac_ext
10319LIBS=$ac_check_lib_save_LIBS
10320fi
10321echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10322echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10323if test $ac_cv_lib_dl_dlopen = yes; then
10324  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10325else
10326
10327    lt_cv_dlopen="dyld"
10328    lt_cv_dlopen_libs=
10329    lt_cv_dlopen_self=yes
10330
10331fi
10332
10333   ;;
10334
10335  *)
10336    echo "$as_me:$LINENO: checking for shl_load" >&5
10337echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10338if test "${ac_cv_func_shl_load+set}" = set; then
10339  echo $ECHO_N "(cached) $ECHO_C" >&6
10340else
10341  cat >conftest.$ac_ext <<_ACEOF
10342/* confdefs.h.  */
10343_ACEOF
10344cat confdefs.h >>conftest.$ac_ext
10345cat >>conftest.$ac_ext <<_ACEOF
10346/* end confdefs.h.  */
10347/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10348   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10349#define shl_load innocuous_shl_load
10350
10351/* System header to define __stub macros and hopefully few prototypes,
10352    which can conflict with char shl_load (); below.
10353    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10354    <limits.h> exists even on freestanding compilers.  */
10355
10356#ifdef __STDC__
10357# include <limits.h>
10358#else
10359# include <assert.h>
10360#endif
10361
10362#undef shl_load
10363
10364/* Override any gcc2 internal prototype to avoid an error.  */
10365#ifdef __cplusplus
10366extern "C"
10367{
10368#endif
10369/* We use char because int might match the return type of a gcc2
10370   builtin and then its argument prototype would still apply.  */
10371char shl_load ();
10372/* The GNU C library defines this for functions which it implements
10373    to always fail with ENOSYS.  Some functions are actually named
10374    something starting with __ and the normal name is an alias.  */
10375#if defined (__stub_shl_load) || defined (__stub___shl_load)
10376choke me
10377#else
10378char (*f) () = shl_load;
10379#endif
10380#ifdef __cplusplus
10381}
10382#endif
10383
10384int
10385main ()
10386{
10387return f != shl_load;
10388  ;
10389  return 0;
10390}
10391_ACEOF
10392rm -f conftest.$ac_objext conftest$ac_exeext
10393if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10394  (eval $ac_link) 2>conftest.er1
10395  ac_status=$?
10396  grep -v '^ *+' conftest.er1 >conftest.err
10397  rm -f conftest.er1
10398  cat conftest.err >&5
10399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10400  (exit $ac_status); } &&
10401         { ac_try='test -z "$ac_c_werror_flag"
10402                         || test ! -s conftest.err'
10403  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10404  (eval $ac_try) 2>&5
10405  ac_status=$?
10406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10407  (exit $ac_status); }; } &&
10408         { ac_try='test -s conftest$ac_exeext'
10409  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10410  (eval $ac_try) 2>&5
10411  ac_status=$?
10412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413  (exit $ac_status); }; }; then
10414  ac_cv_func_shl_load=yes
10415else
10416  echo "$as_me: failed program was:" >&5
10417sed 's/^/| /' conftest.$ac_ext >&5
10418
10419ac_cv_func_shl_load=no
10420fi
10421rm -f conftest.err conftest.$ac_objext \
10422      conftest$ac_exeext conftest.$ac_ext
10423fi
10424echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10425echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10426if test $ac_cv_func_shl_load = yes; then
10427  lt_cv_dlopen="shl_load"
10428else
10429  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10430echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10431if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10432  echo $ECHO_N "(cached) $ECHO_C" >&6
10433else
10434  ac_check_lib_save_LIBS=$LIBS
10435LIBS="-ldld  $LIBS"
10436cat >conftest.$ac_ext <<_ACEOF
10437/* confdefs.h.  */
10438_ACEOF
10439cat confdefs.h >>conftest.$ac_ext
10440cat >>conftest.$ac_ext <<_ACEOF
10441/* end confdefs.h.  */
10442
10443/* Override any gcc2 internal prototype to avoid an error.  */
10444#ifdef __cplusplus
10445extern "C"
10446#endif
10447/* We use char because int might match the return type of a gcc2
10448   builtin and then its argument prototype would still apply.  */
10449char shl_load ();
10450int
10451main ()
10452{
10453shl_load ();
10454  ;
10455  return 0;
10456}
10457_ACEOF
10458rm -f conftest.$ac_objext conftest$ac_exeext
10459if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10460  (eval $ac_link) 2>conftest.er1
10461  ac_status=$?
10462  grep -v '^ *+' conftest.er1 >conftest.err
10463  rm -f conftest.er1
10464  cat conftest.err >&5
10465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10466  (exit $ac_status); } &&
10467         { ac_try='test -z "$ac_c_werror_flag"
10468                         || test ! -s conftest.err'
10469  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10470  (eval $ac_try) 2>&5
10471  ac_status=$?
10472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473  (exit $ac_status); }; } &&
10474         { ac_try='test -s conftest$ac_exeext'
10475  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10476  (eval $ac_try) 2>&5
10477  ac_status=$?
10478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10479  (exit $ac_status); }; }; then
10480  ac_cv_lib_dld_shl_load=yes
10481else
10482  echo "$as_me: failed program was:" >&5
10483sed 's/^/| /' conftest.$ac_ext >&5
10484
10485ac_cv_lib_dld_shl_load=no
10486fi
10487rm -f conftest.err conftest.$ac_objext \
10488      conftest$ac_exeext conftest.$ac_ext
10489LIBS=$ac_check_lib_save_LIBS
10490fi
10491echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10492echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10493if test $ac_cv_lib_dld_shl_load = yes; then
10494  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10495else
10496  echo "$as_me:$LINENO: checking for dlopen" >&5
10497echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10498if test "${ac_cv_func_dlopen+set}" = set; then
10499  echo $ECHO_N "(cached) $ECHO_C" >&6
10500else
10501  cat >conftest.$ac_ext <<_ACEOF
10502/* confdefs.h.  */
10503_ACEOF
10504cat confdefs.h >>conftest.$ac_ext
10505cat >>conftest.$ac_ext <<_ACEOF
10506/* end confdefs.h.  */
10507/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10508   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10509#define dlopen innocuous_dlopen
10510
10511/* System header to define __stub macros and hopefully few prototypes,
10512    which can conflict with char dlopen (); below.
10513    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10514    <limits.h> exists even on freestanding compilers.  */
10515
10516#ifdef __STDC__
10517# include <limits.h>
10518#else
10519# include <assert.h>
10520#endif
10521
10522#undef dlopen
10523
10524/* Override any gcc2 internal prototype to avoid an error.  */
10525#ifdef __cplusplus
10526extern "C"
10527{
10528#endif
10529/* We use char because int might match the return type of a gcc2
10530   builtin and then its argument prototype would still apply.  */
10531char dlopen ();
10532/* The GNU C library defines this for functions which it implements
10533    to always fail with ENOSYS.  Some functions are actually named
10534    something starting with __ and the normal name is an alias.  */
10535#if defined (__stub_dlopen) || defined (__stub___dlopen)
10536choke me
10537#else
10538char (*f) () = dlopen;
10539#endif
10540#ifdef __cplusplus
10541}
10542#endif
10543
10544int
10545main ()
10546{
10547return f != dlopen;
10548  ;
10549  return 0;
10550}
10551_ACEOF
10552rm -f conftest.$ac_objext conftest$ac_exeext
10553if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10554  (eval $ac_link) 2>conftest.er1
10555  ac_status=$?
10556  grep -v '^ *+' conftest.er1 >conftest.err
10557  rm -f conftest.er1
10558  cat conftest.err >&5
10559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10560  (exit $ac_status); } &&
10561         { ac_try='test -z "$ac_c_werror_flag"
10562                         || test ! -s conftest.err'
10563  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10564  (eval $ac_try) 2>&5
10565  ac_status=$?
10566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567  (exit $ac_status); }; } &&
10568         { ac_try='test -s conftest$ac_exeext'
10569  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10570  (eval $ac_try) 2>&5
10571  ac_status=$?
10572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10573  (exit $ac_status); }; }; then
10574  ac_cv_func_dlopen=yes
10575else
10576  echo "$as_me: failed program was:" >&5
10577sed 's/^/| /' conftest.$ac_ext >&5
10578
10579ac_cv_func_dlopen=no
10580fi
10581rm -f conftest.err conftest.$ac_objext \
10582      conftest$ac_exeext conftest.$ac_ext
10583fi
10584echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10585echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10586if test $ac_cv_func_dlopen = yes; then
10587  lt_cv_dlopen="dlopen"
10588else
10589  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10590echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10591if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10592  echo $ECHO_N "(cached) $ECHO_C" >&6
10593else
10594  ac_check_lib_save_LIBS=$LIBS
10595LIBS="-ldl  $LIBS"
10596cat >conftest.$ac_ext <<_ACEOF
10597/* confdefs.h.  */
10598_ACEOF
10599cat confdefs.h >>conftest.$ac_ext
10600cat >>conftest.$ac_ext <<_ACEOF
10601/* end confdefs.h.  */
10602
10603/* Override any gcc2 internal prototype to avoid an error.  */
10604#ifdef __cplusplus
10605extern "C"
10606#endif
10607/* We use char because int might match the return type of a gcc2
10608   builtin and then its argument prototype would still apply.  */
10609char dlopen ();
10610int
10611main ()
10612{
10613dlopen ();
10614  ;
10615  return 0;
10616}
10617_ACEOF
10618rm -f conftest.$ac_objext conftest$ac_exeext
10619if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10620  (eval $ac_link) 2>conftest.er1
10621  ac_status=$?
10622  grep -v '^ *+' conftest.er1 >conftest.err
10623  rm -f conftest.er1
10624  cat conftest.err >&5
10625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10626  (exit $ac_status); } &&
10627         { ac_try='test -z "$ac_c_werror_flag"
10628                         || test ! -s conftest.err'
10629  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10630  (eval $ac_try) 2>&5
10631  ac_status=$?
10632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633  (exit $ac_status); }; } &&
10634         { ac_try='test -s conftest$ac_exeext'
10635  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10636  (eval $ac_try) 2>&5
10637  ac_status=$?
10638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639  (exit $ac_status); }; }; then
10640  ac_cv_lib_dl_dlopen=yes
10641else
10642  echo "$as_me: failed program was:" >&5
10643sed 's/^/| /' conftest.$ac_ext >&5
10644
10645ac_cv_lib_dl_dlopen=no
10646fi
10647rm -f conftest.err conftest.$ac_objext \
10648      conftest$ac_exeext conftest.$ac_ext
10649LIBS=$ac_check_lib_save_LIBS
10650fi
10651echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10652echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10653if test $ac_cv_lib_dl_dlopen = yes; then
10654  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10655else
10656  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10657echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10658if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10659  echo $ECHO_N "(cached) $ECHO_C" >&6
10660else
10661  ac_check_lib_save_LIBS=$LIBS
10662LIBS="-lsvld  $LIBS"
10663cat >conftest.$ac_ext <<_ACEOF
10664/* confdefs.h.  */
10665_ACEOF
10666cat confdefs.h >>conftest.$ac_ext
10667cat >>conftest.$ac_ext <<_ACEOF
10668/* end confdefs.h.  */
10669
10670/* Override any gcc2 internal prototype to avoid an error.  */
10671#ifdef __cplusplus
10672extern "C"
10673#endif
10674/* We use char because int might match the return type of a gcc2
10675   builtin and then its argument prototype would still apply.  */
10676char dlopen ();
10677int
10678main ()
10679{
10680dlopen ();
10681  ;
10682  return 0;
10683}
10684_ACEOF
10685rm -f conftest.$ac_objext conftest$ac_exeext
10686if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10687  (eval $ac_link) 2>conftest.er1
10688  ac_status=$?
10689  grep -v '^ *+' conftest.er1 >conftest.err
10690  rm -f conftest.er1
10691  cat conftest.err >&5
10692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10693  (exit $ac_status); } &&
10694         { ac_try='test -z "$ac_c_werror_flag"
10695                         || test ! -s conftest.err'
10696  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10697  (eval $ac_try) 2>&5
10698  ac_status=$?
10699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700  (exit $ac_status); }; } &&
10701         { ac_try='test -s conftest$ac_exeext'
10702  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10703  (eval $ac_try) 2>&5
10704  ac_status=$?
10705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10706  (exit $ac_status); }; }; then
10707  ac_cv_lib_svld_dlopen=yes
10708else
10709  echo "$as_me: failed program was:" >&5
10710sed 's/^/| /' conftest.$ac_ext >&5
10711
10712ac_cv_lib_svld_dlopen=no
10713fi
10714rm -f conftest.err conftest.$ac_objext \
10715      conftest$ac_exeext conftest.$ac_ext
10716LIBS=$ac_check_lib_save_LIBS
10717fi
10718echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10719echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10720if test $ac_cv_lib_svld_dlopen = yes; then
10721  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10722else
10723  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10724echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10725if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10726  echo $ECHO_N "(cached) $ECHO_C" >&6
10727else
10728  ac_check_lib_save_LIBS=$LIBS
10729LIBS="-ldld  $LIBS"
10730cat >conftest.$ac_ext <<_ACEOF
10731/* confdefs.h.  */
10732_ACEOF
10733cat confdefs.h >>conftest.$ac_ext
10734cat >>conftest.$ac_ext <<_ACEOF
10735/* end confdefs.h.  */
10736
10737/* Override any gcc2 internal prototype to avoid an error.  */
10738#ifdef __cplusplus
10739extern "C"
10740#endif
10741/* We use char because int might match the return type of a gcc2
10742   builtin and then its argument prototype would still apply.  */
10743char dld_link ();
10744int
10745main ()
10746{
10747dld_link ();
10748  ;
10749  return 0;
10750}
10751_ACEOF
10752rm