source: stable/0.1/Bonmin/configure @ 77

Last change on this file since 77 was 77, checked in by andreasw, 13 years ago

integrated fix in BuildTools? (changesets 118 and 119) into stable branch

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