source: ThirdParty/ASL/trunk/configure @ 2660

Last change on this file since 2660 was 2660, checked in by stefan, 8 years ago

rerun autotools

  • Property svn:executable set to *
File size: 714.7 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for ThirdPartyASL trunk.
4#
5# Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
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, 2007, 2009 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Eclipse Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='ThirdPartyASL'
431PACKAGE_TARNAME='thirdpartyasl'
432PACKAGE_VERSION='trunk'
433PACKAGE_STRING='ThirdPartyASL trunk'
434PACKAGE_BUGREPORT='http://projects.coin-or.org/BuildTools/newticket'
435
436ac_unique_file="solvers/asl.h"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion ASL_SVN_REV EGREP LN_S CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC 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 MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS PKG_CONFIG ac_pt_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED AMPLSOLVER_A ASLMAKEFLAGS ASL_PCLIBS LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
932ac_env_CC_set=${CC+set}
933ac_env_CC_value=$CC
934ac_cv_env_CC_set=${CC+set}
935ac_cv_env_CC_value=$CC
936ac_env_CFLAGS_set=${CFLAGS+set}
937ac_env_CFLAGS_value=$CFLAGS
938ac_cv_env_CFLAGS_set=${CFLAGS+set}
939ac_cv_env_CFLAGS_value=$CFLAGS
940ac_env_LDFLAGS_set=${LDFLAGS+set}
941ac_env_LDFLAGS_value=$LDFLAGS
942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
943ac_cv_env_LDFLAGS_value=$LDFLAGS
944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
945ac_env_CPPFLAGS_value=$CPPFLAGS
946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
948ac_env_MPICC_set=${MPICC+set}
949ac_env_MPICC_value=$MPICC
950ac_cv_env_MPICC_set=${MPICC+set}
951ac_cv_env_MPICC_value=$MPICC
952ac_env_CPP_set=${CPP+set}
953ac_env_CPP_value=$CPP
954ac_cv_env_CPP_set=${CPP+set}
955ac_cv_env_CPP_value=$CPP
956ac_env_CXX_set=${CXX+set}
957ac_env_CXX_value=$CXX
958ac_cv_env_CXX_set=${CXX+set}
959ac_cv_env_CXX_value=$CXX
960ac_env_CXXFLAGS_set=${CXXFLAGS+set}
961ac_env_CXXFLAGS_value=$CXXFLAGS
962ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
963ac_cv_env_CXXFLAGS_value=$CXXFLAGS
964ac_env_CXXCPP_set=${CXXCPP+set}
965ac_env_CXXCPP_value=$CXXCPP
966ac_cv_env_CXXCPP_set=${CXXCPP+set}
967ac_cv_env_CXXCPP_value=$CXXCPP
968ac_env_F77_set=${F77+set}
969ac_env_F77_value=$F77
970ac_cv_env_F77_set=${F77+set}
971ac_cv_env_F77_value=$F77
972ac_env_FFLAGS_set=${FFLAGS+set}
973ac_env_FFLAGS_value=$FFLAGS
974ac_cv_env_FFLAGS_set=${FFLAGS+set}
975ac_cv_env_FFLAGS_value=$FFLAGS
976ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
977ac_env_PKG_CONFIG_value=$PKG_CONFIG
978ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
979ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
980ac_env_ASLMAKEFLAGS_set=${ASLMAKEFLAGS+set}
981ac_env_ASLMAKEFLAGS_value=$ASLMAKEFLAGS
982ac_cv_env_ASLMAKEFLAGS_set=${ASLMAKEFLAGS+set}
983ac_cv_env_ASLMAKEFLAGS_value=$ASLMAKEFLAGS
984
985#
986# Report the --help message.
987#
988if test "$ac_init_help" = "long"; then
989  # Omit some internal or obsolete options to make the list less imposing.
990  # This message is too long to be a string in the A/UX 3.1 sh.
991  cat <<_ACEOF
992\`configure' configures ThirdPartyASL trunk to adapt to many kinds of systems.
993
994Usage: $0 [OPTION]... [VAR=VALUE]...
995
996To assign environment variables (e.g., CC, CFLAGS...), specify them as
997VAR=VALUE.  See below for descriptions of some of the useful variables.
998
999Defaults for the options are specified in brackets.
1000
1001Configuration:
1002  -h, --help              display this help and exit
1003      --help=short        display options specific to this package
1004      --help=recursive    display the short help of all the included packages
1005  -V, --version           display version information and exit
1006  -q, --quiet, --silent   do not print \`checking...' messages
1007      --cache-file=FILE   cache test results in FILE [disabled]
1008  -C, --config-cache      alias for \`--cache-file=config.cache'
1009  -n, --no-create         do not create output files
1010      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1011
1012_ACEOF
1013
1014  cat <<_ACEOF
1015Installation directories:
1016  --prefix=PREFIX         install architecture-independent files in PREFIX
1017                          [$ac_default_prefix]
1018  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1019                          [PREFIX]
1020
1021By default, \`make install' will install all the files in
1022\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1023an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1024for instance \`--prefix=\$HOME'.
1025
1026For better control, use the options below.
1027
1028Fine tuning of the installation directories:
1029  --bindir=DIR           user executables [EPREFIX/bin]
1030  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1031  --libexecdir=DIR       program executables [EPREFIX/libexec]
1032  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1033  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1034  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1035  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1036  --libdir=DIR           object code libraries [EPREFIX/lib]
1037  --includedir=DIR       C header files [PREFIX/include]
1038  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1039  --infodir=DIR          info documentation [PREFIX/info]
1040  --mandir=DIR           man documentation [PREFIX/man]
1041_ACEOF
1042
1043  cat <<\_ACEOF
1044
1045Program names:
1046  --program-prefix=PREFIX            prepend PREFIX to installed program names
1047  --program-suffix=SUFFIX            append SUFFIX to installed program names
1048  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1049
1050System types:
1051  --build=BUILD     configure for building on BUILD [guessed]
1052  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1053_ACEOF
1054fi
1055
1056if test -n "$ac_init_help"; then
1057  case $ac_init_help in
1058     short | recursive ) echo "Configuration of ThirdPartyASL trunk:";;
1059   esac
1060  cat <<\_ACEOF
1061
1062Optional Features:
1063  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1064  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1065  --enable-debug          compile all projects with debug options tests
1066                          (implies --disable-shared)
1067  --enable-debug-asl compile project ASL with debug compiler flags
1068  --enable-doscompile     Under Cygwin, compile so that executables run under
1069                          DOS. Set to mingw to use gcc/g++/ld with
1070                          -mno-cygwin. Set to msvc to use cl/link (or
1071                          icl/link). Default when mentioned: mingw. Default
1072                          when not mentioned: disabled.
1073  --enable-static-standardlibs
1074                          whether to link against static standard libraries
1075                          (libgcc, libgfortran, libstdc++)
1076  --enable-static[=PKGS]
1077                          build static libraries [default=no]
1078  --disable-dependency-tracking  speeds up one-time build
1079  --enable-dependency-tracking   do not reject slow dependency extractors
1080  --enable-maintainer-mode  enable make rules and dependencies not useful
1081                          (and sometimes confusing) to the casual installer
1082  --enable-shared[=PKGS]
1083                          build shared libraries [default=yes]
1084  --enable-fast-install[=PKGS]
1085                          optimize for fast installation [default=yes]
1086  --disable-libtool-lock  avoid locking (might break parallel builds)
1087  --disable-pkg-config    disable use of pkg-config (if available)
1088
1089Optional Packages:
1090  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1091  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1092  --with-asl-verbosity specify the debug verbosity level for project ASL
1093  --with-asl-checklevel specify the sanity check level for project ASL
1094  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1095  --with-pic              try to use only PIC/non-PIC objects [default=use
1096                          both]
1097  --with-tags[=TAGS]
1098                          include additional configurations [automatic]
1099  --with-coin-instdir     prefix of installation directory for precompiled
1100                          COIN packages
1101
1102Some influential environment variables:
1103  CDEFS       Additional -D flags to be used when compiling C code.
1104  ADD_CFLAGS  Additional C compiler options
1105  DBG_CFLAGS  Debug C compiler options
1106  OPT_CFLAGS  Optimize C compiler options
1107  CC          C compiler command
1108  CFLAGS      C compiler flags
1109  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1110              nonstandard directory <lib dir>
1111  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1112              headers in a nonstandard directory <include dir>
1113  MPICC       C MPI Compiler
1114  CPP         C preprocessor
1115  CXX         C++ compiler command
1116  CXXFLAGS    C++ compiler flags
1117  CXXCPP      C++ preprocessor
1118  F77         Fortran 77 compiler command
1119  FFLAGS      Fortran 77 compiler flags
1120  PKG_CONFIG  path to pkg-config utility
1121  ASLMAKEFLAGS
1122              Compilation flags necessary for compiling the AMPL solver
1123              library
1124
1125Use these variables to override the choices made by `configure' or to help
1126it to find libraries and programs with nonstandard names/locations.
1127
1128Report bugs to <http://projects.coin-or.org/BuildTools/newticket>.
1129_ACEOF
1130fi
1131
1132if test "$ac_init_help" = "recursive"; then
1133  # If there are subdirs, report their specific --help.
1134  ac_popdir=`pwd`
1135  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1136    test -d $ac_dir || continue
1137    ac_builddir=.
1138
1139if test "$ac_dir" != .; then
1140  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1141  # A "../" for each directory in $ac_dir_suffix.
1142  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1143else
1144  ac_dir_suffix= ac_top_builddir=
1145fi
1146
1147case $srcdir in
1148  .)  # No --srcdir option.  We are building in place.
1149    ac_srcdir=.
1150    if test -z "$ac_top_builddir"; then
1151       ac_top_srcdir=.
1152    else
1153       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1154    fi ;;
1155  [\\/]* | ?:[\\/]* )  # Absolute path.
1156    ac_srcdir=$srcdir$ac_dir_suffix;
1157    ac_top_srcdir=$srcdir ;;
1158  *) # Relative path.
1159    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1160    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1161esac
1162
1163# Do not use `cd foo && pwd` to compute absolute paths, because
1164# the directories may not exist.
1165case `pwd` in
1166.) ac_abs_builddir="$ac_dir";;
1167*)
1168  case "$ac_dir" in
1169  .) ac_abs_builddir=`pwd`;;
1170  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1171  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1172  esac;;
1173esac
1174case $ac_abs_builddir in
1175.) ac_abs_top_builddir=${ac_top_builddir}.;;
1176*)
1177  case ${ac_top_builddir}. in
1178  .) ac_abs_top_builddir=$ac_abs_builddir;;
1179  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1180  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1181  esac;;
1182esac
1183case $ac_abs_builddir in
1184.) ac_abs_srcdir=$ac_srcdir;;
1185*)
1186  case $ac_srcdir in
1187  .) ac_abs_srcdir=$ac_abs_builddir;;
1188  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1189  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1190  esac;;
1191esac
1192case $ac_abs_builddir in
1193.) ac_abs_top_srcdir=$ac_top_srcdir;;
1194*)
1195  case $ac_top_srcdir in
1196  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1197  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1198  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1199  esac;;
1200esac
1201
1202    cd $ac_dir
1203    # Check for guested configure; otherwise get Cygnus style configure.
1204    if test -f $ac_srcdir/configure.gnu; then
1205      echo
1206      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1207    elif test -f $ac_srcdir/configure; then
1208      echo
1209      $SHELL $ac_srcdir/configure  --help=recursive
1210    elif test -f $ac_srcdir/configure.ac ||
1211           test -f $ac_srcdir/configure.in; then
1212      echo
1213      $ac_configure --help
1214    else
1215      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1216    fi
1217    cd $ac_popdir
1218  done
1219fi
1220
1221test -n "$ac_init_help" && exit 0
1222if $ac_init_version; then
1223  cat <<\_ACEOF
1224ThirdPartyASL configure trunk
1225generated by GNU Autoconf 2.59
1226
1227Copyright (C) 2003 Free Software Foundation, Inc.
1228This configure script is free software; the Free Software Foundation
1229gives unlimited permission to copy, distribute and modify it.
1230
1231
1232Copyright 2006, 2007, 2009 International Business Machines and others.
1233All Rights Reserved.
1234This file is part of the open source package Coin which is distributed
1235under the Eclipse Public License.
1236_ACEOF
1237  exit 0
1238fi
1239exec 5>config.log
1240cat >&5 <<_ACEOF
1241This file contains any messages produced by compilers while
1242running configure, to aid debugging if configure makes a mistake.
1243
1244It was created by ThirdPartyASL $as_me trunk, which was
1245generated by GNU Autoconf 2.59.  Invocation command line was
1246
1247  $ $0 $@
1248
1249_ACEOF
1250{
1251cat <<_ASUNAME
1252## --------- ##
1253## Platform. ##
1254## --------- ##
1255
1256hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1257uname -m = `(uname -m) 2>/dev/null || echo unknown`
1258uname -r = `(uname -r) 2>/dev/null || echo unknown`
1259uname -s = `(uname -s) 2>/dev/null || echo unknown`
1260uname -v = `(uname -v) 2>/dev/null || echo unknown`
1261
1262/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1263/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1264
1265/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1266/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1267/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1268hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1269/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1270/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1271/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1272
1273_ASUNAME
1274
1275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1276for as_dir in $PATH
1277do
1278  IFS=$as_save_IFS
1279  test -z "$as_dir" && as_dir=.
1280  echo "PATH: $as_dir"
1281done
1282
1283} >&5
1284
1285cat >&5 <<_ACEOF
1286
1287
1288## ----------- ##
1289## Core tests. ##
1290## ----------- ##
1291
1292_ACEOF
1293
1294
1295# Keep a trace of the command line.
1296# Strip out --no-create and --no-recursion so they do not pile up.
1297# Strip out --silent because we don't want to record it for future runs.
1298# Also quote any args containing shell meta-characters.
1299# Make two passes to allow for proper duplicate-argument suppression.
1300ac_configure_args=
1301ac_configure_args0=
1302ac_configure_args1=
1303ac_sep=
1304ac_must_keep_next=false
1305for ac_pass in 1 2
1306do
1307  for ac_arg
1308  do
1309    case $ac_arg in
1310    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1311    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1312    | -silent | --silent | --silen | --sile | --sil)
1313      continue ;;
1314    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1315      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1316    esac
1317    case $ac_pass in
1318    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1319    2)
1320      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1321      if test $ac_must_keep_next = true; then
1322        ac_must_keep_next=false # Got value, back to normal.
1323      else
1324        case $ac_arg in
1325          *=* | --config-cache | -C | -disable-* | --disable-* \
1326          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1327          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1328          | -with-* | --with-* | -without-* | --without-* | --x)
1329            case "$ac_configure_args0 " in
1330              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1331            esac
1332            ;;
1333          -* ) ac_must_keep_next=true ;;
1334        esac
1335      fi
1336      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1337      # Get rid of the leading space.
1338      ac_sep=" "
1339      ;;
1340    esac
1341  done
1342done
1343$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1344$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1345
1346# When interrupted or exit'd, cleanup temporary files, and complete
1347# config.log.  We remove comments because anyway the quotes in there
1348# would cause problems or look ugly.
1349# WARNING: Be sure not to use single quotes in there, as some shells,
1350# such as our DU 5.0 friend, will then `close' the trap.
1351trap 'exit_status=$?
1352  # Save into config.log some information that might help in debugging.
1353  {
1354    echo
1355
1356    cat <<\_ASBOX
1357## ---------------- ##
1358## Cache variables. ##
1359## ---------------- ##
1360_ASBOX
1361    echo
1362    # The following way of writing the cache mishandles newlines in values,
1363{
1364  (set) 2>&1 |
1365    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1366    *ac_space=\ *)
1367      sed -n \
1368        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1369          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1370      ;;
1371    *)
1372      sed -n \
1373        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1374      ;;
1375    esac;
1376}
1377    echo
1378
1379    cat <<\_ASBOX
1380## ----------------- ##
1381## Output variables. ##
1382## ----------------- ##
1383_ASBOX
1384    echo
1385    for ac_var in $ac_subst_vars
1386    do
1387      eval ac_val=$`echo $ac_var`
1388      echo "$ac_var='"'"'$ac_val'"'"'"
1389    done | sort
1390    echo
1391
1392    if test -n "$ac_subst_files"; then
1393      cat <<\_ASBOX
1394## ------------- ##
1395## Output files. ##
1396## ------------- ##
1397_ASBOX
1398      echo
1399      for ac_var in $ac_subst_files
1400      do
1401        eval ac_val=$`echo $ac_var`
1402        echo "$ac_var='"'"'$ac_val'"'"'"
1403      done | sort
1404      echo
1405    fi
1406
1407    if test -s confdefs.h; then
1408      cat <<\_ASBOX
1409## ----------- ##
1410## confdefs.h. ##
1411## ----------- ##
1412_ASBOX
1413      echo
1414      sed "/^$/d" confdefs.h | sort
1415      echo
1416    fi
1417    test "$ac_signal" != 0 &&
1418      echo "$as_me: caught signal $ac_signal"
1419    echo "$as_me: exit $exit_status"
1420  } >&5
1421  rm -f core *.core &&
1422  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1423    exit $exit_status
1424     ' 0
1425for ac_signal in 1 2 13 15; do
1426  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1427done
1428ac_signal=0
1429
1430# confdefs.h avoids OS command line length limits that DEFS can exceed.
1431rm -rf conftest* confdefs.h
1432# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1433echo >confdefs.h
1434
1435# Predefined preprocessor variables.
1436
1437cat >>confdefs.h <<_ACEOF
1438#define PACKAGE_NAME "$PACKAGE_NAME"
1439_ACEOF
1440
1441
1442cat >>confdefs.h <<_ACEOF
1443#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1444_ACEOF
1445
1446
1447cat >>confdefs.h <<_ACEOF
1448#define PACKAGE_VERSION "$PACKAGE_VERSION"
1449_ACEOF
1450
1451
1452cat >>confdefs.h <<_ACEOF
1453#define PACKAGE_STRING "$PACKAGE_STRING"
1454_ACEOF
1455
1456
1457cat >>confdefs.h <<_ACEOF
1458#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1459_ACEOF
1460
1461
1462# Let the site file select an alternate cache file if it wants to.
1463# Prefer explicitly selected file to automatically selected ones.
1464if test -z "$CONFIG_SITE"; then
1465  if test "x$prefix" != xNONE; then
1466    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1467  else
1468    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1469  fi
1470fi
1471for ac_site_file in $CONFIG_SITE; do
1472  if test -r "$ac_site_file"; then
1473    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1474echo "$as_me: loading site script $ac_site_file" >&6;}
1475    sed 's/^/| /' "$ac_site_file" >&5
1476    . "$ac_site_file"
1477  fi
1478done
1479
1480if test -r "$cache_file"; then
1481  # Some versions of bash will fail to source /dev/null (special
1482  # files actually), so we avoid doing that.
1483  if test -f "$cache_file"; then
1484    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1485echo "$as_me: loading cache $cache_file" >&6;}
1486    case $cache_file in
1487      [\\/]* | ?:[\\/]* ) . $cache_file;;
1488      *)                      . ./$cache_file;;
1489    esac
1490  fi
1491else
1492  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1493echo "$as_me: creating cache $cache_file" >&6;}
1494  >$cache_file
1495fi
1496
1497# Check that the precious variables saved in the cache have kept the same
1498# value.
1499ac_cache_corrupted=false
1500for ac_var in `(set) 2>&1 |
1501               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1502  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1503  eval ac_new_set=\$ac_env_${ac_var}_set
1504  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1505  eval ac_new_val="\$ac_env_${ac_var}_value"
1506  case $ac_old_set,$ac_new_set in
1507    set,)
1508      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1509echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1510      ac_cache_corrupted=: ;;
1511    ,set)
1512      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1513echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1514      ac_cache_corrupted=: ;;
1515    ,);;
1516    *)
1517      if test "x$ac_old_val" != "x$ac_new_val"; then
1518        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1519echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1520        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1521echo "$as_me:   former value:  $ac_old_val" >&2;}
1522        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1523echo "$as_me:   current value: $ac_new_val" >&2;}
1524        ac_cache_corrupted=:
1525      fi;;
1526  esac
1527  # Pass precious variables to config.status.
1528  if test "$ac_new_set" = set; then
1529    case $ac_new_val in
1530    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1531      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1532    *) ac_arg=$ac_var=$ac_new_val ;;
1533    esac
1534    case " $ac_configure_args " in
1535      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1536      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1537    esac
1538  fi
1539done
1540if $ac_cache_corrupted; then
1541  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1542echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1543  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1544echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1545   { (exit 1); exit 1; }; }
1546fi
1547
1548ac_ext=c
1549ac_cpp='$CPP $CPPFLAGS'
1550ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1551ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1552ac_compiler_gnu=$ac_cv_c_compiler_gnu
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583# List one file in the package so that the configure script can test
1584# whether the package is actually there
1585
1586
1587# Where should everything be installed by default?  Here, we want it
1588# to be installed directly in 'bin', 'lib', 'include' subdirectories
1589# of the directory where configure is run.  The default would be
1590# /usr/local.
1591
1592
1593#############################################################################
1594#                         Standard build tool stuff                         #
1595#############################################################################
1596
1597# Get the system type
1598ac_aux_dir=
1599for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1600  if test -f $ac_dir/install-sh; then
1601    ac_aux_dir=$ac_dir
1602    ac_install_sh="$ac_aux_dir/install-sh -c"
1603    break
1604  elif test -f $ac_dir/install.sh; then
1605    ac_aux_dir=$ac_dir
1606    ac_install_sh="$ac_aux_dir/install.sh -c"
1607    break
1608  elif test -f $ac_dir/shtool; then
1609    ac_aux_dir=$ac_dir
1610    ac_install_sh="$ac_aux_dir/shtool install -c"
1611    break
1612  fi
1613done
1614if test -z "$ac_aux_dir"; then
1615  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1616echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1617   { (exit 1); exit 1; }; }
1618fi
1619ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1620ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1621ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1622
1623# Make sure we can run config.sub.
1624$ac_config_sub sun4 >/dev/null 2>&1 ||
1625  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1626echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1627   { (exit 1); exit 1; }; }
1628
1629echo "$as_me:$LINENO: checking build system type" >&5
1630echo $ECHO_N "checking build system type... $ECHO_C" >&6
1631if test "${ac_cv_build+set}" = set; then
1632  echo $ECHO_N "(cached) $ECHO_C" >&6
1633else
1634  ac_cv_build_alias=$build_alias
1635test -z "$ac_cv_build_alias" &&
1636  ac_cv_build_alias=`$ac_config_guess`
1637test -z "$ac_cv_build_alias" &&
1638  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1639echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1640   { (exit 1); exit 1; }; }
1641ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1642  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1643echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1644   { (exit 1); exit 1; }; }
1645
1646fi
1647echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1648echo "${ECHO_T}$ac_cv_build" >&6
1649build=$ac_cv_build
1650build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1651build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1652build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1653
1654
1655
1656# A bit of initial setup.
1657
1658# As backup, we make sure we don't loose an FLIBS if it has been set
1659# by the user
1660save_FLIBS="$FLIBS"
1661
1662# A useful makefile conditional that is always false
1663
1664
1665if false; then
1666  ALWAYS_FALSE_TRUE=
1667  ALWAYS_FALSE_FALSE='#'
1668else
1669  ALWAYS_FALSE_TRUE='#'
1670  ALWAYS_FALSE_FALSE=
1671fi
1672
1673
1674# We set the following variable so that we know later in AC_COIN_FINALIZE
1675# that we are in a project main directory
1676coin_projectdir=yes
1677
1678# Set the project's version numbers
1679
1680
1681cat >>confdefs.h <<_ACEOF
1682#define ASL_VERSION "$PACKAGE_VERSION"
1683_ACEOF
1684
1685
1686  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
1687  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
1688  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
1689  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
1690  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
1691  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
1692
1693cat >>confdefs.h <<_ACEOF
1694#define ASL_VERSION_MAJOR $coin_majorver
1695_ACEOF
1696
1697
1698cat >>confdefs.h <<_ACEOF
1699#define ASL_VERSION_MINOR $coin_minorver
1700_ACEOF
1701
1702
1703cat >>confdefs.h <<_ACEOF
1704#define ASL_VERSION_RELEASE $coin_releasever
1705_ACEOF
1706
1707
1708  # We use the following variable to have a string with the upper case
1709  # version of the project name
1710  COIN_PRJCT=ASL
1711
1712  # Set the project's SVN revision number. The complicated sed expression
1713  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
1714  # as a single number.
1715  # Extract the first word of "svnversion", so it can be a program name with args.
1716set dummy svnversion; ac_word=$2
1717echo "$as_me:$LINENO: checking for $ac_word" >&5
1718echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1719if test "${ac_cv_prog_have_svnversion+set}" = set; then
1720  echo $ECHO_N "(cached) $ECHO_C" >&6
1721else
1722  if test -n "$have_svnversion"; then
1723  ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
1724else
1725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1726for as_dir in $PATH
1727do
1728  IFS=$as_save_IFS
1729  test -z "$as_dir" && as_dir=.
1730  for ac_exec_ext in '' $ac_executable_extensions; do
1731  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1732    ac_cv_prog_have_svnversion="yes"
1733    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1734    break 2
1735  fi
1736done
1737done
1738
1739  test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
1740fi
1741fi
1742have_svnversion=$ac_cv_prog_have_svnversion
1743if test -n "$have_svnversion"; then
1744  echo "$as_me:$LINENO: result: $have_svnversion" >&5
1745echo "${ECHO_T}$have_svnversion" >&6
1746else
1747  echo "$as_me:$LINENO: result: no" >&5
1748echo "${ECHO_T}no" >&6
1749fi
1750
1751  if test "x$have_svnversion" = xyes; then
1752
1753    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
1754    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
1755      ASL_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
1756
1757cat >>confdefs.h <<_ACEOF
1758#define ASL_SVN_REV $ASL_SVN_REV
1759_ACEOF
1760
1761    fi
1762  fi
1763
1764
1765
1766# Capture libtool library version, if given.
1767
1768
1769
1770
1771# Turn off warnings and pedantic mode since they could make trouble on some
1772# platforms, and we can't fix issues in third-party code.
1773coin_skip_warn_cflags=yes
1774
1775# Check if user wants to produce debugging code
1776
1777echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1778echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1779
1780# Check whether --enable-debug or --disable-debug was given.
1781if test "${enable_debug+set}" = set; then
1782  enableval="$enable_debug"
1783  case "${enableval}" in
1784   yes) coin_debug_compile=true
1785        if test "${enable_shared+set}" = set; then :; else
1786          enable_shared=no
1787        fi
1788        ;;
1789   no)  coin_debug_compile=false
1790        ;;
1791   *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1792echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1793   { (exit 1); exit 1; }; }
1794        ;;
1795esac
1796else
1797  coin_debug_compile=false
1798fi;
1799
1800# Check whether --enable-debug-asl or --disable-debug-asl was given.
1801if test "${enable_debug_asl+set}" = set; then
1802  enableval="$enable_debug_asl"
1803  case "${enableval}" in
1804    yes) coin_debug_compile=true
1805         ;;
1806    no)  coin_debug_compile=false
1807         ;;
1808    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug-asl" >&5
1809echo "$as_me: error: bad value ${enableval} for --enable-debug-asl" >&2;}
1810   { (exit 1); exit 1; }; }
1811         ;;
1812 esac
1813else
1814  :
1815fi;
1816
1817 # m4_ifvaln([ASL],
1818
1819if test $coin_debug_compile = true; then
1820  echo "$as_me:$LINENO: result: yes" >&5
1821echo "${ECHO_T}yes" >&6
1822else
1823  echo "$as_me:$LINENO: result: no" >&5
1824echo "${ECHO_T}no" >&6
1825fi
1826
1827
1828# Check whether --with-asl-verbosity or --without-asl-verbosity was given.
1829if test "${with_asl_verbosity+set}" = set; then
1830  withval="$with_asl_verbosity"
1831  if test "$withval" = yes; then
1832                withval=1
1833              fi
1834              coin_asl_verbosity=$withval
1835else
1836  coin_asl_verbosity=0
1837fi;
1838
1839cat >>confdefs.h <<_ACEOF
1840#define COIN_ASL_VERBOSITY $coin_asl_verbosity
1841_ACEOF
1842
1843
1844
1845# Check whether --with-asl-checklevel or --without-asl-checklevel was given.
1846if test "${with_asl_checklevel+set}" = set; then
1847  withval="$with_asl_checklevel"
1848  if test "$withval" = yes; then
1849                withval=1
1850              fi
1851              coin_asl_checklevel=$withval
1852else
1853  coin_asl_checklevel=0
1854fi;
1855
1856cat >>confdefs.h <<_ACEOF
1857#define COIN_ASL_CHECKLEVEL $coin_asl_checklevel
1858_ACEOF
1859
1860
1861 # m4_ifvaln([ASL],
1862
1863
1864
1865# We need egrep and ln -s somewhere
1866echo "$as_me:$LINENO: checking for egrep" >&5
1867echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1868if test "${ac_cv_prog_egrep+set}" = set; then
1869  echo $ECHO_N "(cached) $ECHO_C" >&6
1870else
1871  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1872    then ac_cv_prog_egrep='grep -E'
1873    else ac_cv_prog_egrep='egrep'
1874    fi
1875fi
1876echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
1877echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1878 EGREP=$ac_cv_prog_egrep
1879
1880
1881echo "$as_me:$LINENO: checking whether ln -s works" >&5
1882echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1883LN_S=$as_ln_s
1884if test "$LN_S" = "ln -s"; then
1885  echo "$as_me:$LINENO: result: yes" >&5
1886echo "${ECHO_T}yes" >&6
1887else
1888  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1889echo "${ECHO_T}no, using $LN_S" >&6
1890fi
1891
1892
1893# Get the name of the C compiler and compiler flags
1894case $build in
1895  *-mingw*)
1896    if test "${LD+set}" = set; then :; else
1897      LD=link
1898    fi
1899    ;;
1900 esac
1901 case $enable_doscompile in
1902   msvc)
1903     if test "x${LD+set}" = xset; then :; else
1904       LD=link
1905     fi
1906     ;;
1907 esac
1908
1909
1910 # Check whether --enable-doscompile or --disable-doscompile was given.
1911if test "${enable_doscompile+set}" = set; then
1912  enableval="$enable_doscompile"
1913  if test "$enable_doscompile" != no; then
1914     case $build in
1915       *-cygwin* | *-mingw*) ;;
1916       *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&5
1917echo "$as_me: error: --enable-doscompile option makes sense only under Cygwin or MinGW" >&2;}
1918   { (exit 1); exit 1; }; } ;;
1919     esac
1920   fi
1921else
1922  enable_doscompile=no
1923fi;
1924 case "$enable_doscompile" in
1925   mingw)
1926     case $build in
1927       *-mingw*) enable_doscompile=no ;;
1928     esac
1929     ;;
1930   msvc|no) ;;
1931   yes) enable_doscompile=mingw ;;
1932   *) { { echo "$as_me:$LINENO: error: Invalid value $enable_doscompile for --enable-doscompile.
1933                    Try configure --help=recursive." >&5
1934echo "$as_me: error: Invalid value $enable_doscompile for --enable-doscompile.
1935                    Try configure --help=recursive." >&2;}
1936   { (exit 1); exit 1; }; }
1937      ;;
1938  esac
1939  if test "$enable_doscompile" != no ; then
1940    { echo "$as_me:$LINENO: DOS compile style is: $enable_doscompile" >&5
1941echo "$as_me: DOS compile style is: $enable_doscompile" >&6;}
1942  fi
1943
1944
1945
1946# check whether to add flags for static linking against standard libraries
1947# Check whether --enable-static-standardlibs or --disable-static-standardlibs was given.
1948if test "${enable_static_standardlibs+set}" = set; then
1949  enableval="$enable_static_standardlibs"
1950  case "$enableval" in
1951     no | yes | auto ) ;;
1952     *)
1953       { { echo "$as_me:$LINENO: error: invalid argument for --enable-static-standardlibs: $enableval" >&5
1954echo "$as_me: error: invalid argument for --enable-static-standardlibs: $enableval" >&2;}
1955   { (exit 1); exit 1; }; } ;;
1956   esac
1957   use_static_standardlibs=$enableval
1958else
1959  if test $enable_shared = yes ; then
1960     use_static_standardlibs = no
1961   else
1962     use_static_standardlibs = auto
1963   fi
1964
1965
1966fi;
1967
1968
1969
1970
1971
1972
1973ac_ext=c
1974ac_cpp='$CPP $CPPFLAGS'
1975ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1976ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1977ac_compiler_gnu=$ac_cv_c_compiler_gnu
1978
1979
1980# For consistency, we set the C compiler to the same value of the C++
1981# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1982if test x"$CXX" != x; then
1983  case "$CXX" in
1984    clang* ) ;;
1985    cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
1986      if test x"$CC" = x; then
1987        CC="$CXX"
1988        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1989echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1990      fi
1991      ;;
1992  esac
1993fi
1994
1995
1996
1997
1998
1999
2000coin_has_cc=yes
2001
2002save_cflags="$CFLAGS"
2003
2004# For *-*-solaris*, promote Studio/Workshop cc compiler to front of list.
2005# Depending on the user's PATH, when Studio/Workshop cc is not present we may
2006# find /usr/ucb/cc, which is almost certainly not a good choice for the C
2007# compiler. In this case, put cc after gcc.
2008
2009case $build in
2010  *-cygwin* | *-mingw*)
2011             if test "$enable_doscompile" = msvc ; then
2012               comps="icl cl"
2013             else
2014               comps="gcc cl"
2015             fi ;;
2016  *-*-solaris*)
2017             # Extract the first word of "cc", so it can be a program name with args.
2018set dummy cc; ac_word=$2
2019echo "$as_me:$LINENO: checking for $ac_word" >&5
2020echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2021if test "${ac_cv_prog_sol_cc_compiler+set}" = set; then
2022  echo $ECHO_N "(cached) $ECHO_C" >&6
2023else
2024  if test -n "$sol_cc_compiler"; then
2025  ac_cv_prog_sol_cc_compiler="$sol_cc_compiler" # Let the user override the test.
2026else
2027  ac_prog_rejected=no
2028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2029for as_dir in $PATH
2030do
2031  IFS=$as_save_IFS
2032  test -z "$as_dir" && as_dir=.
2033  for ac_exec_ext in '' $ac_executable_extensions; do
2034  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2035    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2036       ac_prog_rejected=yes
2037       continue
2038     fi
2039    ac_cv_prog_sol_cc_compiler="cc"
2040    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2041    break 2
2042  fi
2043done
2044done
2045
2046if test $ac_prog_rejected = yes; then
2047  # We found a bogon in the path, so make sure we never use it.
2048  set dummy $ac_cv_prog_sol_cc_compiler
2049  shift
2050  if test $# != 0; then
2051    # We chose a different compiler from the bogus one.
2052    # However, it has the same basename, so the bogon will be chosen
2053    # first if we set sol_cc_compiler to just the basename; use the full file name.
2054    shift
2055    ac_cv_prog_sol_cc_compiler="$as_dir/$ac_word${1+' '}$@"
2056  fi
2057fi
2058fi
2059fi
2060sol_cc_compiler=$ac_cv_prog_sol_cc_compiler
2061if test -n "$sol_cc_compiler"; then
2062  echo "$as_me:$LINENO: result: $sol_cc_compiler" >&5
2063echo "${ECHO_T}$sol_cc_compiler" >&6
2064else
2065  echo "$as_me:$LINENO: result: no" >&5
2066echo "${ECHO_T}no" >&6
2067fi
2068
2069             if test "$sol_cc_compiler" = "cc" ; then
2070               comps="cc xlc gcc pgcc icc"
2071             else
2072               comps="xlc gcc pgcc icc cc"
2073             fi
2074             ;;
2075  *-linux-gnu*) comps="gcc cc pgcc icc xlc" ;;
2076  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
2077  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
2078esac
2079
2080# We delete the cached value, since the test might not have been
2081# performed with our choice of compilers earlier
2082$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
2083# AC_MSG_NOTICE([C compiler candidates: $comps])
2084ac_ext=c
2085ac_cpp='$CPP $CPPFLAGS'
2086ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2087ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2088ac_compiler_gnu=$ac_cv_c_compiler_gnu
2089if test -n "$ac_tool_prefix"; then
2090  for ac_prog in $comps
2091  do
2092    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2093set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2094echo "$as_me:$LINENO: checking for $ac_word" >&5
2095echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2096if test "${ac_cv_prog_CC+set}" = set; then
2097  echo $ECHO_N "(cached) $ECHO_C" >&6
2098else
2099  if test -n "$CC"; then
2100  ac_cv_prog_CC="$CC" # Let the user override the test.
2101else
2102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2103for as_dir in $PATH
2104do
2105  IFS=$as_save_IFS
2106  test -z "$as_dir" && as_dir=.
2107  for ac_exec_ext in '' $ac_executable_extensions; do
2108  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2109    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2110    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2111    break 2
2112  fi
2113done
2114done
2115
2116fi
2117fi
2118CC=$ac_cv_prog_CC
2119if test -n "$CC"; then
2120  echo "$as_me:$LINENO: result: $CC" >&5
2121echo "${ECHO_T}$CC" >&6
2122else
2123  echo "$as_me:$LINENO: result: no" >&5
2124echo "${ECHO_T}no" >&6
2125fi
2126
2127    test -n "$CC" && break
2128  done
2129fi
2130if test -z "$CC"; then
2131  ac_ct_CC=$CC
2132  for ac_prog in $comps
2133do
2134  # Extract the first word of "$ac_prog", so it can be a program name with args.
2135set dummy $ac_prog; ac_word=$2
2136echo "$as_me:$LINENO: checking for $ac_word" >&5
2137echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2138if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2139  echo $ECHO_N "(cached) $ECHO_C" >&6
2140else
2141  if test -n "$ac_ct_CC"; then
2142  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2143else
2144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2145for as_dir in $PATH
2146do
2147  IFS=$as_save_IFS
2148  test -z "$as_dir" && as_dir=.
2149  for ac_exec_ext in '' $ac_executable_extensions; do
2150  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2151    ac_cv_prog_ac_ct_CC="$ac_prog"
2152    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2153    break 2
2154  fi
2155done
2156done
2157
2158fi
2159fi
2160ac_ct_CC=$ac_cv_prog_ac_ct_CC
2161if test -n "$ac_ct_CC"; then
2162  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2163echo "${ECHO_T}$ac_ct_CC" >&6
2164else
2165  echo "$as_me:$LINENO: result: no" >&5
2166echo "${ECHO_T}no" >&6
2167fi
2168
2169  test -n "$ac_ct_CC" && break
2170done
2171
2172  CC=$ac_ct_CC
2173fi
2174
2175
2176test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2177See \`config.log' for more details." >&5
2178echo "$as_me: error: no acceptable C compiler found in \$PATH
2179See \`config.log' for more details." >&2;}
2180   { (exit 1); exit 1; }; }
2181
2182# Provide some information about the compiler.
2183echo "$as_me:$LINENO:" \
2184     "checking for C compiler version" >&5
2185ac_compiler=`set X $ac_compile; echo $2`
2186{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2187  (eval $ac_compiler --version </dev/null >&5) 2>&5
2188  ac_status=$?
2189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190  (exit $ac_status); }
2191{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2192  (eval $ac_compiler -v </dev/null >&5) 2>&5
2193  ac_status=$?
2194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2195  (exit $ac_status); }
2196{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2197  (eval $ac_compiler -V </dev/null >&5) 2>&5
2198  ac_status=$?
2199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2200  (exit $ac_status); }
2201
2202cat >conftest.$ac_ext <<_ACEOF
2203/* confdefs.h.  */
2204_ACEOF
2205cat confdefs.h >>conftest.$ac_ext
2206cat >>conftest.$ac_ext <<_ACEOF
2207/* end confdefs.h.  */
2208
2209int
2210main ()
2211{
2212
2213  ;
2214  return 0;
2215}
2216_ACEOF
2217ac_clean_files_save=$ac_clean_files
2218ac_clean_files="$ac_clean_files a.out a.exe b.out"
2219# Try to create an executable without -o first, disregard a.out.
2220# It will help us diagnose broken compilers, and finding out an intuition
2221# of exeext.
2222echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2223echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2224ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2225if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2226  (eval $ac_link_default) 2>&5
2227  ac_status=$?
2228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229  (exit $ac_status); }; then
2230  # Find the output, starting from the most likely.  This scheme is
2231# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2232# resort.
2233
2234# Be careful to initialize this variable, since it used to be cached.
2235# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2236ac_cv_exeext=
2237# b.out is created by i960 compilers.
2238for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2239do
2240  test -f "$ac_file" || continue
2241  case $ac_file in
2242    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2243        ;;
2244    conftest.$ac_ext )
2245        # This is the source file.
2246        ;;
2247    [ab].out )
2248        # We found the default executable, but exeext='' is most
2249        # certainly right.
2250        break;;
2251    *.* )
2252        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2253        # FIXME: I believe we export ac_cv_exeext for Libtool,
2254        # but it would be cool to find out if it's true.  Does anybody
2255        # maintain Libtool? --akim.
2256        export ac_cv_exeext
2257        break;;
2258    * )
2259        break;;
2260  esac
2261done
2262else
2263  echo "$as_me: failed program was:" >&5
2264sed 's/^/| /' conftest.$ac_ext >&5
2265
2266{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2267See \`config.log' for more details." >&5
2268echo "$as_me: error: C compiler cannot create executables
2269See \`config.log' for more details." >&2;}
2270   { (exit 77); exit 77; }; }
2271fi
2272
2273ac_exeext=$ac_cv_exeext
2274echo "$as_me:$LINENO: result: $ac_file" >&5
2275echo "${ECHO_T}$ac_file" >&6
2276
2277# Check the compiler produces executables we can run.  If not, either
2278# the compiler is broken, or we cross compile.
2279echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2280echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2281# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2282# If not cross compiling, check that we can run a simple program.
2283if test "$cross_compiling" != yes; then
2284  if { ac_try='./$ac_file'
2285  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2286  (eval $ac_try) 2>&5
2287  ac_status=$?
2288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2289  (exit $ac_status); }; }; then
2290    cross_compiling=no
2291  else
2292    if test "$cross_compiling" = maybe; then
2293        cross_compiling=yes
2294    else
2295        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2296If you meant to cross compile, use \`--host'.
2297See \`config.log' for more details." >&5
2298echo "$as_me: error: cannot run C compiled programs.
2299If you meant to cross compile, use \`--host'.
2300See \`config.log' for more details." >&2;}
2301   { (exit 1); exit 1; }; }
2302    fi
2303  fi
2304fi
2305echo "$as_me:$LINENO: result: yes" >&5
2306echo "${ECHO_T}yes" >&6
2307
2308rm -f a.out a.exe conftest$ac_cv_exeext b.out
2309ac_clean_files=$ac_clean_files_save
2310# Check the compiler produces executables we can run.  If not, either
2311# the compiler is broken, or we cross compile.
2312echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2313echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2314echo "$as_me:$LINENO: result: $cross_compiling" >&5
2315echo "${ECHO_T}$cross_compiling" >&6
2316
2317echo "$as_me:$LINENO: checking for suffix of executables" >&5
2318echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2319if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2320  (eval $ac_link) 2>&5
2321  ac_status=$?
2322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323  (exit $ac_status); }; then
2324  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2325# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2326# work properly (i.e., refer to `conftest.exe'), while it won't with
2327# `rm'.
2328for ac_file in conftest.exe conftest conftest.*; do
2329  test -f "$ac_file" || continue
2330  case $ac_file in
2331    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2332    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2333          export ac_cv_exeext
2334          break;;
2335    * ) break;;
2336  esac
2337done
2338else
2339  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2340See \`config.log' for more details." >&5
2341echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2342See \`config.log' for more details." >&2;}
2343   { (exit 1); exit 1; }; }
2344fi
2345
2346rm -f conftest$ac_cv_exeext
2347echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2348echo "${ECHO_T}$ac_cv_exeext" >&6
2349
2350rm -f conftest.$ac_ext
2351EXEEXT=$ac_cv_exeext
2352ac_exeext=$EXEEXT
2353echo "$as_me:$LINENO: checking for suffix of object files" >&5
2354echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2355if test "${ac_cv_objext+set}" = set; then
2356  echo $ECHO_N "(cached) $ECHO_C" >&6
2357else
2358  cat >conftest.$ac_ext <<_ACEOF
2359/* confdefs.h.  */
2360_ACEOF
2361cat confdefs.h >>conftest.$ac_ext
2362cat >>conftest.$ac_ext <<_ACEOF
2363/* end confdefs.h.  */
2364
2365int
2366main ()
2367{
2368
2369  ;
2370  return 0;
2371}
2372_ACEOF
2373rm -f conftest.o conftest.obj
2374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2375  (eval $ac_compile) 2>&5
2376  ac_status=$?
2377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378  (exit $ac_status); }; then
2379  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2380  case $ac_file in
2381    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2382    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2383       break;;
2384  esac
2385done
2386else
2387  echo "$as_me: failed program was:" >&5
2388sed 's/^/| /' conftest.$ac_ext >&5
2389
2390{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2391See \`config.log' for more details." >&5
2392echo "$as_me: error: cannot compute suffix of object files: cannot compile
2393See \`config.log' for more details." >&2;}
2394   { (exit 1); exit 1; }; }
2395fi
2396
2397rm -f conftest.$ac_cv_objext conftest.$ac_ext
2398fi
2399echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2400echo "${ECHO_T}$ac_cv_objext" >&6
2401OBJEXT=$ac_cv_objext
2402ac_objext=$OBJEXT
2403echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2404echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2405if test "${ac_cv_c_compiler_gnu+set}" = set; then
2406  echo $ECHO_N "(cached) $ECHO_C" >&6
2407else
2408  cat >conftest.$ac_ext <<_ACEOF
2409/* confdefs.h.  */
2410_ACEOF
2411cat confdefs.h >>conftest.$ac_ext
2412cat >>conftest.$ac_ext <<_ACEOF
2413/* end confdefs.h.  */
2414
2415int
2416main ()
2417{
2418#ifndef __GNUC__
2419       choke me
2420#endif
2421
2422  ;
2423  return 0;
2424}
2425_ACEOF
2426rm -f conftest.$ac_objext
2427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2428  (eval $ac_compile) 2>conftest.er1
2429  ac_status=$?
2430  grep -v '^ *+' conftest.er1 >conftest.err
2431  rm -f conftest.er1
2432  cat conftest.err >&5
2433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434  (exit $ac_status); } &&
2435         { ac_try='test -z "$ac_c_werror_flag"
2436                         || test ! -s conftest.err'
2437  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2438  (eval $ac_try) 2>&5
2439  ac_status=$?
2440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441  (exit $ac_status); }; } &&
2442         { ac_try='test -s conftest.$ac_objext'
2443  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2444  (eval $ac_try) 2>&5
2445  ac_status=$?
2446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447  (exit $ac_status); }; }; then
2448  ac_compiler_gnu=yes
2449else
2450  echo "$as_me: failed program was:" >&5
2451sed 's/^/| /' conftest.$ac_ext >&5
2452
2453ac_compiler_gnu=no
2454fi
2455rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2456ac_cv_c_compiler_gnu=$ac_compiler_gnu
2457
2458fi
2459echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2460echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2461GCC=`test $ac_compiler_gnu = yes && echo yes`
2462ac_test_CFLAGS=${CFLAGS+set}
2463ac_save_CFLAGS=$CFLAGS
2464CFLAGS="-g"
2465echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2466echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2467if test "${ac_cv_prog_cc_g+set}" = set; then
2468  echo $ECHO_N "(cached) $ECHO_C" >&6
2469else
2470  cat >conftest.$ac_ext <<_ACEOF
2471/* confdefs.h.  */
2472_ACEOF
2473cat confdefs.h >>conftest.$ac_ext
2474cat >>conftest.$ac_ext <<_ACEOF
2475/* end confdefs.h.  */
2476
2477int
2478main ()
2479{
2480
2481  ;
2482  return 0;
2483}
2484_ACEOF
2485rm -f conftest.$ac_objext
2486if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2487  (eval $ac_compile) 2>conftest.er1
2488  ac_status=$?
2489  grep -v '^ *+' conftest.er1 >conftest.err
2490  rm -f conftest.er1
2491  cat conftest.err >&5
2492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493  (exit $ac_status); } &&
2494         { ac_try='test -z "$ac_c_werror_flag"
2495                         || test ! -s conftest.err'
2496  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2497  (eval $ac_try) 2>&5
2498  ac_status=$?
2499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500  (exit $ac_status); }; } &&
2501         { ac_try='test -s conftest.$ac_objext'
2502  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2503  (eval $ac_try) 2>&5
2504  ac_status=$?
2505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506  (exit $ac_status); }; }; then
2507  ac_cv_prog_cc_g=yes
2508else
2509  echo "$as_me: failed program was:" >&5
2510sed 's/^/| /' conftest.$ac_ext >&5
2511
2512ac_cv_prog_cc_g=no
2513fi
2514rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2515fi
2516echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2517echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2518if test "$ac_test_CFLAGS" = set; then
2519  CFLAGS=$ac_save_CFLAGS
2520elif test $ac_cv_prog_cc_g = yes; then
2521  if test "$GCC" = yes; then
2522    CFLAGS="-g -O2"
2523  else
2524    CFLAGS="-g"
2525  fi
2526else
2527  if test "$GCC" = yes; then
2528    CFLAGS="-O2"
2529  else
2530    CFLAGS=
2531  fi
2532fi
2533echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2534echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2535if test "${ac_cv_prog_cc_stdc+set}" = set; then
2536  echo $ECHO_N "(cached) $ECHO_C" >&6
2537else
2538  ac_cv_prog_cc_stdc=no
2539ac_save_CC=$CC
2540cat >conftest.$ac_ext <<_ACEOF
2541/* confdefs.h.  */
2542_ACEOF
2543cat confdefs.h >>conftest.$ac_ext
2544cat >>conftest.$ac_ext <<_ACEOF
2545/* end confdefs.h.  */
2546#include <stdarg.h>
2547#include <stdio.h>
2548#include <sys/types.h>
2549#include <sys/stat.h>
2550/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2551struct buf { int x; };
2552FILE * (*rcsopen) (struct buf *, struct stat *, int);
2553static char *e (p, i)
2554     char **p;
2555     int i;
2556{
2557  return p[i];
2558}
2559static char *f (char * (*g) (char **, int), char **p, ...)
2560{
2561  char *s;
2562  va_list v;
2563  va_start (v,p);
2564  s = g (p, va_arg (v,int));
2565  va_end (v);
2566  return s;
2567}
2568
2569/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2570   function prototypes and stuff, but not '\xHH' hex character constants.
2571   These don't provoke an error unfortunately, instead are silently treated
2572   as 'x'.  The following induces an error, until -std1 is added to get
2573   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2574   array size at least.  It's necessary to write '\x00'==0 to get something
2575   that's true only with -std1.  */
2576int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2577
2578int test (int i, double x);
2579struct s1 {int (*f) (int a);};
2580struct s2 {int (*f) (double a);};
2581int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2582int argc;
2583char **argv;
2584int
2585main ()
2586{
2587return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2588  ;
2589  return 0;
2590}
2591_ACEOF
2592# Don't try gcc -ansi; that turns off useful extensions and
2593# breaks some systems' header files.
2594# AIX                   -qlanglvl=ansi
2595# Ultrix and OSF/1      -std1
2596# HP-UX 10.20 and later -Ae
2597# HP-UX older versions  -Aa -D_HPUX_SOURCE
2598# SVR4                  -Xc -D__EXTENSIONS__
2599for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2600do
2601  CC="$ac_save_CC $ac_arg"
2602  rm -f conftest.$ac_objext
2603if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2604  (eval $ac_compile) 2>conftest.er1
2605  ac_status=$?
2606  grep -v '^ *+' conftest.er1 >conftest.err
2607  rm -f conftest.er1
2608  cat conftest.err >&5
2609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610  (exit $ac_status); } &&
2611         { ac_try='test -z "$ac_c_werror_flag"
2612                         || test ! -s conftest.err'
2613  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2614  (eval $ac_try) 2>&5
2615  ac_status=$?
2616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617  (exit $ac_status); }; } &&
2618         { ac_try='test -s conftest.$ac_objext'
2619  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2620  (eval $ac_try) 2>&5
2621  ac_status=$?
2622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623  (exit $ac_status); }; }; then
2624  ac_cv_prog_cc_stdc=$ac_arg
2625break
2626else
2627  echo "$as_me: failed program was:" >&5
2628sed 's/^/| /' conftest.$ac_ext >&5
2629
2630fi
2631rm -f conftest.err conftest.$ac_objext
2632done
2633rm -f conftest.$ac_ext conftest.$ac_objext
2634CC=$ac_save_CC
2635
2636fi
2637
2638case "x$ac_cv_prog_cc_stdc" in
2639  x|xno)
2640    echo "$as_me:$LINENO: result: none needed" >&5
2641echo "${ECHO_T}none needed" >&6 ;;
2642  *)
2643    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2644echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2645    CC="$CC $ac_cv_prog_cc_stdc" ;;
2646esac
2647
2648# Some people use a C++ compiler to compile C.  Since we use `exit',
2649# in C++ we need to declare it.  In case someone uses the same compiler
2650# for both compiling C and C++ we need to have the C++ compiler decide
2651# the declaration of exit, since it's the most demanding environment.
2652cat >conftest.$ac_ext <<_ACEOF
2653#ifndef __cplusplus
2654  choke me
2655#endif
2656_ACEOF
2657rm -f conftest.$ac_objext
2658if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2659  (eval $ac_compile) 2>conftest.er1
2660  ac_status=$?
2661  grep -v '^ *+' conftest.er1 >conftest.err
2662  rm -f conftest.er1
2663  cat conftest.err >&5
2664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665  (exit $ac_status); } &&
2666         { ac_try='test -z "$ac_c_werror_flag"
2667                         || test ! -s conftest.err'
2668  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2669  (eval $ac_try) 2>&5
2670  ac_status=$?
2671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672  (exit $ac_status); }; } &&
2673         { ac_try='test -s conftest.$ac_objext'
2674  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2675  (eval $ac_try) 2>&5
2676  ac_status=$?
2677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678  (exit $ac_status); }; }; then
2679  for ac_declaration in \
2680   '' \
2681   'extern "C" void std::exit (int) throw (); using std::exit;' \
2682   'extern "C" void std::exit (int); using std::exit;' \
2683   'extern "C" void exit (int) throw ();' \
2684   'extern "C" void exit (int);' \
2685   'void exit (int);'
2686do
2687  cat >conftest.$ac_ext <<_ACEOF
2688/* confdefs.h.  */
2689_ACEOF
2690cat confdefs.h >>conftest.$ac_ext
2691cat >>conftest.$ac_ext <<_ACEOF
2692/* end confdefs.h.  */
2693$ac_declaration
2694#include <stdlib.h>
2695int
2696main ()
2697{
2698exit (42);
2699  ;
2700  return 0;
2701}
2702_ACEOF
2703rm -f conftest.$ac_objext
2704if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2705  (eval $ac_compile) 2>conftest.er1
2706  ac_status=$?
2707  grep -v '^ *+' conftest.er1 >conftest.err
2708  rm -f conftest.er1
2709  cat conftest.err >&5
2710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711  (exit $ac_status); } &&
2712         { ac_try='test -z "$ac_c_werror_flag"
2713                         || test ! -s conftest.err'
2714  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2715  (eval $ac_try) 2>&5
2716  ac_status=$?
2717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718  (exit $ac_status); }; } &&
2719         { ac_try='test -s conftest.$ac_objext'
2720  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2721  (eval $ac_try) 2>&5
2722  ac_status=$?
2723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724  (exit $ac_status); }; }; then
2725  :
2726else
2727  echo "$as_me: failed program was:" >&5
2728sed 's/^/| /' conftest.$ac_ext >&5
2729
2730continue
2731fi
2732rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2733  cat >conftest.$ac_ext <<_ACEOF
2734/* confdefs.h.  */
2735_ACEOF
2736cat confdefs.h >>conftest.$ac_ext
2737cat >>conftest.$ac_ext <<_ACEOF
2738/* end confdefs.h.  */
2739$ac_declaration
2740int
2741main ()
2742{
2743exit (42);
2744  ;
2745  return 0;
2746}
2747_ACEOF
2748rm -f conftest.$ac_objext
2749if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2750  (eval $ac_compile) 2>conftest.er1
2751  ac_status=$?
2752  grep -v '^ *+' conftest.er1 >conftest.err
2753  rm -f conftest.er1
2754  cat conftest.err >&5
2755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756  (exit $ac_status); } &&
2757         { ac_try='test -z "$ac_c_werror_flag"
2758                         || test ! -s conftest.err'
2759  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2760  (eval $ac_try) 2>&5
2761  ac_status=$?
2762  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763  (exit $ac_status); }; } &&
2764         { ac_try='test -s conftest.$ac_objext'
2765  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2766  (eval $ac_try) 2>&5
2767  ac_status=$?
2768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769  (exit $ac_status); }; }; then
2770  break
2771else
2772  echo "$as_me: failed program was:" >&5
2773sed 's/^/| /' conftest.$ac_ext >&5
2774
2775fi
2776rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2777done
2778rm -f conftest*
2779if test -n "$ac_declaration"; then
2780  echo '#ifdef __cplusplus' >>confdefs.h
2781  echo $ac_declaration      >>confdefs.h
2782  echo '#endif'             >>confdefs.h
2783fi
2784
2785else
2786  echo "$as_me: failed program was:" >&5
2787sed 's/^/| /' conftest.$ac_ext >&5
2788
2789fi
2790rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2791ac_ext=c
2792ac_cpp='$CPP $CPPFLAGS'
2793ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2794ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2795ac_compiler_gnu=$ac_cv_c_compiler_gnu
2796
2797if test -z "$CC" ; then
2798  { { echo "$as_me:$LINENO: error: Failed to find a C compiler!" >&5
2799echo "$as_me: error: Failed to find a C compiler!" >&2;}
2800   { (exit 1); exit 1; }; }
2801fi
2802# Autoconf incorrectly concludes that cl recognises -g. It doesn't.
2803case "$CC" in
2804  clang* ) ;;
2805  cl* | */cl* | CL* | */CL* )
2806    if test "$ac_cv_prog_cc_g" = yes ; then
2807      ac_cv_prog_cc_g=no
2808      { echo "$as_me:$LINENO: Overruling autoconf; cl does not recognise -g." >&5
2809echo "$as_me: Overruling autoconf; cl does not recognise -g." >&6;}
2810    fi ;;
2811esac
2812CFLAGS="$save_cflags"
2813
2814# add automake conditional so we can recognize cl compiler in makefile
2815coin_cc_is_cl=false
2816case "$CC" in
2817  clang* ) ;;
2818  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
2819    coin_cc_is_cl=true
2820    ;;
2821esac
2822
2823
2824if test $coin_cc_is_cl = true; then
2825  COIN_CC_IS_CL_TRUE=
2826  COIN_CC_IS_CL_FALSE='#'
2827else
2828  COIN_CC_IS_CL_TRUE='#'
2829  COIN_CC_IS_CL_FALSE=
2830fi
2831
2832
2833# Check if a project specific CFLAGS variable has been set
2834if test x$COIN_PRJCT != x; then
2835  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
2836  if test x$coin_tmp = xset; then
2837    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
2838  fi
2839fi
2840
2841if test x"$CFLAGS" = x; then
2842
2843  coin_add_cflags=
2844  coin_opt_cflags=
2845  coin_dbg_cflags=
2846  coin_warn_cflags=
2847
2848  if test "$GCC" = "yes"; then
2849    case "$CC" in
2850      icc* | */icc*)
2851        ;;
2852      *)
2853        coin_opt_cflags="-O3"
2854        coin_add_cflags="-pipe"
2855        coin_dbg_cflags="-g -O0"
2856        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
2857        case $build in
2858          *-darwin*)
2859            ;;
2860          *)
2861            coin_warn_cflags="-pedantic-errors $coin_warn_cflags"
2862            ;;
2863        esac
2864        case $enable_doscompile in
2865          mingw)
2866            CFLAGS="-mno-cygwin"
2867            cat >conftest.$ac_ext <<_ACEOF
2868/* confdefs.h.  */
2869_ACEOF
2870cat confdefs.h >>conftest.$ac_ext
2871cat >>conftest.$ac_ext <<_ACEOF
2872/* end confdefs.h.  */
2873
2874int
2875main ()
2876{
2877int i=0; i++;
2878  ;
2879  return 0;
2880}
2881_ACEOF
2882rm -f conftest.$ac_objext conftest$ac_exeext
2883if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2884  (eval $ac_link) 2>conftest.er1
2885  ac_status=$?
2886  grep -v '^ *+' conftest.er1 >conftest.err
2887  rm -f conftest.er1
2888  cat conftest.err >&5
2889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890  (exit $ac_status); } &&
2891         { ac_try='test -z "$ac_c_werror_flag"
2892                         || test ! -s conftest.err'
2893  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2894  (eval $ac_try) 2>&5
2895  ac_status=$?
2896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897  (exit $ac_status); }; } &&
2898         { ac_try='test -s conftest$ac_exeext'
2899  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2900  (eval $ac_try) 2>&5
2901  ac_status=$?
2902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903  (exit $ac_status); }; }; then
2904  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2905else
2906  echo "$as_me: failed program was:" >&5
2907sed 's/^/| /' conftest.$ac_ext >&5
2908
2909fi
2910rm -f conftest.err conftest.$ac_objext \
2911      conftest$ac_exeext conftest.$ac_ext
2912            CFLAGS=
2913          ;;
2914        esac
2915    esac
2916  fi
2917  if test -z "$coin_opt_cflags"; then
2918    case $build in
2919      *-cygwin* | *-mingw*)
2920        case "$CC" in
2921          clang* ) ;;
2922          cl* | */cl* | CL* | */CL*)
2923            coin_opt_cflags='-MT -O2'
2924            coin_add_cflags='-nologo -wd4996 -D_CRT_SECURE_NO_DEPRECATE'
2925            coin_dbg_cflags='-MTd'
2926            ;;
2927          icl* | */icl* | ICL* | */ICL*)
2928            coin_opt_cflags='-MT -Ox'
2929            coin_add_cflags='-nologo -D_CRT_SECURE_NO_DEPRECATE'
2930            coin_dbg_cflags='-MTd -debug'
2931            ;;
2932        esac
2933        ;;
2934      *-linux-*)
2935        case "$CC" in
2936          icc* | */icc*)
2937            coin_opt_cflags="-O3 -ip -mp1"
2938            coin_add_cflags=""
2939            coin_dbg_cflags="-g"
2940            # Check if -i_dynamic is necessary (for new glibc library)
2941            CFLAGS=
2942            cat >conftest.$ac_ext <<_ACEOF
2943/* confdefs.h.  */
2944_ACEOF
2945cat confdefs.h >>conftest.$ac_ext
2946cat >>conftest.$ac_ext <<_ACEOF
2947/* end confdefs.h.  */
2948
2949int
2950main ()
2951{
2952int i=0; i++;
2953  ;
2954  return 0;
2955}
2956_ACEOF
2957rm -f conftest.$ac_objext conftest$ac_exeext
2958if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2959  (eval $ac_link) 2>conftest.er1
2960  ac_status=$?
2961  grep -v '^ *+' conftest.er1 >conftest.err
2962  rm -f conftest.er1
2963  cat conftest.err >&5
2964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965  (exit $ac_status); } &&
2966         { ac_try='test -z "$ac_c_werror_flag"
2967                         || test ! -s conftest.err'
2968  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2969  (eval $ac_try) 2>&5
2970  ac_status=$?
2971  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972  (exit $ac_status); }; } &&
2973         { ac_try='test -s conftest$ac_exeext'
2974  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2975  (eval $ac_try) 2>&5
2976  ac_status=$?
2977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978  (exit $ac_status); }; }; then
2979  :
2980else
2981  echo "$as_me: failed program was:" >&5
2982sed 's/^/| /' conftest.$ac_ext >&5
2983
2984coin_add_cflags="-i_dynamic $coin_add_cflags"
2985fi
2986rm -f conftest.err conftest.$ac_objext \
2987      conftest$ac_exeext conftest.$ac_ext
2988            ;;
2989          pgcc* | */pgcc*)
2990            coin_opt_cflags="-fast"
2991            coin_add_cflags="-Kieee -pc 64"
2992            coin_dbg_cflags="-g"
2993            ;;
2994        esac
2995        ;;
2996      *-ibm-*)
2997        case "$CC" in
2998          xlc* | */xlc* | mpxlc* | */mpxlc*)
2999            coin_opt_cflags="-O -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
3000            coin_add_cflags="-bmaxdata:0x80000000 -qsuppress=1500-036 -qsuppress=1500-029"
3001            coin_dbg_cflags="-g"
3002          ;;
3003        esac
3004        ;;
3005      *-hp-*)
3006        coin_opt_cflags="-O"
3007        coin_add_cflags="-Ae"
3008        coin_dbg_cflags="-g"
3009        ;;
3010      *-*-solaris*)
3011        coin_opt_cflags="-xO4"
3012        coin_dbg_cflags="-g"
3013        ;;
3014      *-sgi-*)
3015        coin_opt_cflags="-O -OPT:Olimit=0"
3016        coin_dbg_cflags="-g"
3017        ;;
3018    esac
3019  fi
3020
3021  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
3022    coin_dbg_cflags="-g"
3023  fi
3024
3025  if test -z "$coin_opt_cflags"; then
3026    # Try if -O option works if nothing else is set
3027    CFLAGS="-O"
3028    cat >conftest.$ac_ext <<_ACEOF
3029/* confdefs.h.  */
3030_ACEOF
3031cat confdefs.h >>conftest.$ac_ext
3032cat >>conftest.$ac_ext <<_ACEOF
3033/* end confdefs.h.  */
3034
3035int
3036main ()
3037{
3038int i=0; i++;
3039  ;
3040  return 0;
3041}
3042_ACEOF
3043rm -f conftest.$ac_objext conftest$ac_exeext
3044if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3045  (eval $ac_link) 2>conftest.er1
3046  ac_status=$?
3047  grep -v '^ *+' conftest.er1 >conftest.err
3048  rm -f conftest.er1
3049  cat conftest.err >&5
3050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051  (exit $ac_status); } &&
3052         { ac_try='test -z "$ac_c_werror_flag"
3053                         || test ! -s conftest.err'
3054  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3055  (eval $ac_try) 2>&5
3056  ac_status=$?
3057  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058  (exit $ac_status); }; } &&
3059         { ac_try='test -s conftest$ac_exeext'
3060  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3061  (eval $ac_try) 2>&5
3062  ac_status=$?
3063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064  (exit $ac_status); }; }; then
3065  coin_opt_cflags="-O"
3066else
3067  echo "$as_me: failed program was:" >&5
3068sed 's/^/| /' conftest.$ac_ext >&5
3069
3070fi
3071rm -f conftest.err conftest.$ac_objext \
3072      conftest$ac_exeext conftest.$ac_ext
3073  fi
3074
3075  # if PM doesn't want the warning messages, take them out
3076  if test x"$coin_skip_warn_cflags" = xyes; then
3077    coin_warn_cflags=
3078  fi
3079
3080  if test x${DBG_CFLAGS+set} != xset; then
3081    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
3082  fi
3083  if test x${OPT_CFLAGS+set} != xset; then
3084    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
3085  fi
3086
3087  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
3088  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
3089
3090  if test "$coin_debug_compile" = "true"; then
3091    CFLAGS="$DBG_CFLAGS"
3092  else
3093    CFLAGS="$OPT_CFLAGS"
3094  fi
3095
3096else
3097  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
3098  if test x${DBG_CFLAGS+set} != xset; then
3099    DBG_CFLAGS="$CFLAGS"
3100  fi
3101  if test x${OPT_CFLAGS+set} != xset; then
3102    OPT_CFLAGS="$CFLAGS"
3103  fi
3104fi
3105
3106# If CFLAGS contains -mno-cygwin, CPPFLAGS must also have it.
3107
3108case "$CFLAGS" in
3109  *-mno-cygwin*)
3110    if test x${CPPFLAGS+set} != xset ; then
3111      CPPFLAGS="-mno-cygwin"
3112    else
3113      case "$CPPFLAGS" in
3114        *-mno-cygwin*)
3115          ;;
3116        *)
3117          CPPFLAGS="$CPPFLAGS -mno-cygwin"
3118          ;;
3119      esac
3120    fi ;;
3121esac
3122
3123# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
3124if test x$COIN_PRJCT != x; then
3125  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
3126fi
3127
3128# Try if CFLAGS works
3129save_CFLAGS="$CFLAGS"
3130cat >conftest.$ac_ext <<_ACEOF
3131/* confdefs.h.  */
3132_ACEOF
3133cat confdefs.h >>conftest.$ac_ext
3134cat >>conftest.$ac_ext <<_ACEOF
3135/* end confdefs.h.  */
3136
3137int
3138main ()
3139{
3140int i=0; i++;
3141  ;
3142  return 0;
3143}
3144_ACEOF
3145rm -f conftest.$ac_objext conftest$ac_exeext
3146if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3147  (eval $ac_link) 2>conftest.er1
3148  ac_status=$?
3149  grep -v '^ *+' conftest.er1 >conftest.err
3150  rm -f conftest.er1
3151  cat conftest.err >&5
3152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153  (exit $ac_status); } &&
3154         { ac_try='test -z "$ac_c_werror_flag"
3155                         || test ! -s conftest.err'
3156  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3157  (eval $ac_try) 2>&5
3158  ac_status=$?
3159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160  (exit $ac_status); }; } &&
3161         { ac_try='test -s conftest$ac_exeext'
3162  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3163  (eval $ac_try) 2>&5
3164  ac_status=$?
3165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166  (exit $ac_status); }; }; then
3167  :
3168else
3169  echo "$as_me: failed program was:" >&5
3170sed 's/^/| /' conftest.$ac_ext >&5
3171
3172CFLAGS=
3173fi
3174rm -f conftest.err conftest.$ac_objext \
3175      conftest$ac_exeext conftest.$ac_ext
3176if test -z "$CFLAGS"; then
3177  { 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
3178echo "$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;}
3179  CFLAGS='-O'
3180  cat >conftest.$ac_ext <<_ACEOF
3181/* confdefs.h.  */
3182_ACEOF
3183cat confdefs.h >>conftest.$ac_ext
3184cat >>conftest.$ac_ext <<_ACEOF
3185/* end confdefs.h.  */
3186
3187int
3188main ()
3189{
3190int i=0; i++;
3191  ;
3192  return 0;
3193}
3194_ACEOF
3195rm -f conftest.$ac_objext conftest$ac_exeext
3196if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3197  (eval $ac_link) 2>conftest.er1
3198  ac_status=$?
3199  grep -v '^ *+' conftest.er1 >conftest.err
3200  rm -f conftest.er1
3201  cat conftest.err >&5
3202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203  (exit $ac_status); } &&
3204         { ac_try='test -z "$ac_c_werror_flag"
3205                         || test ! -s conftest.err'
3206  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3207  (eval $ac_try) 2>&5
3208  ac_status=$?
3209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210  (exit $ac_status); }; } &&
3211         { ac_try='test -s conftest$ac_exeext'
3212  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3213  (eval $ac_try) 2>&5
3214  ac_status=$?
3215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216  (exit $ac_status); }; }; then
3217  :
3218else
3219  echo "$as_me: failed program was:" >&5
3220sed 's/^/| /' conftest.$ac_ext >&5
3221
3222CFLAGS=
3223fi
3224rm -f conftest.err conftest.$ac_objext \
3225      conftest$ac_exeext conftest.$ac_ext
3226  if test -z "$CFLAGS"; then
3227    { 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
3228echo "$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;}
3229  fi
3230fi
3231
3232{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
3233echo "$as_me: C compiler options are: $CFLAGS" >&6;}
3234
3235
3236if test x"$MPICC" = x; then :; else
3237  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
3238echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
3239  CC="$MPICC"
3240fi
3241
3242# Correct the LD variable if we are using the MS or Intel-windows compiler
3243case "$CC" in
3244  clang* ) ;;
3245  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
3246    case $build in
3247  *-mingw*)
3248    if test "${LD+set}" = set; then :; else
3249      LD=link
3250    fi
3251    ;;
3252 esac
3253 case $enable_doscompile in
3254   msvc)
3255     if test "x${LD+set}" = xset; then :; else
3256       LD=link
3257     fi
3258     ;;
3259 esac
3260
3261    ;;
3262esac
3263
3264# check whether to add flags for static linking against standard libraries to LDFLAGS
3265if test x$use_static_standardlibs != xno ; then
3266  case $build in
3267    *-mingw*)
3268      static_standardlib_flag=-static
3269      ;;
3270    *)
3271      static_standardlib_flag=-static-libgcc
3272      ;;
3273  esac
3274  case " $LDFLAGS " in
3275    *" $static_standardlib_flag "* ) ;;
3276    *)
3277    echo "$as_me:$LINENO: checking whether linking with $static_standardlib_flag works" >&5
3278echo $ECHO_N "checking whether linking with $static_standardlib_flag works... $ECHO_C" >&6
3279    coin_save_LDFLAGS="$LDFLAGS"
3280    LDFLAGS="$LDFLAGS $static_standardlib_flag"
3281    cat >conftest.$ac_ext <<_ACEOF
3282/* confdefs.h.  */
3283_ACEOF
3284cat confdefs.h >>conftest.$ac_ext
3285cat >>conftest.$ac_ext <<_ACEOF
3286/* end confdefs.h.  */
3287
3288int
3289main ()
3290{
3291int i=0;
3292  ;
3293  return 0;
3294}
3295_ACEOF
3296rm -f conftest.$ac_objext conftest$ac_exeext
3297if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3298  (eval $ac_link) 2>conftest.er1
3299  ac_status=$?
3300  grep -v '^ *+' conftest.er1 >conftest.err
3301  rm -f conftest.er1
3302  cat conftest.err >&5
3303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304  (exit $ac_status); } &&
3305         { ac_try='test -z "$ac_c_werror_flag"
3306                         || test ! -s conftest.err'
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); }; } &&
3312         { ac_try='test -s conftest$ac_exeext'
3313  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3314  (eval $ac_try) 2>&5
3315  ac_status=$?
3316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3317  (exit $ac_status); }; }; then
3318  echo "$as_me:$LINENO: result: yes" >&5
3319echo "${ECHO_T}yes" >&6
3320else
3321  echo "$as_me: failed program was:" >&5
3322sed 's/^/| /' conftest.$ac_ext >&5
3323
3324echo "$as_me:$LINENO: result: no" >&5
3325echo "${ECHO_T}no" >&6
3326       LDFLAGS="$coin_save_LDFLAGS"
3327       if test $use_static_standardlibs = yes ; then
3328         { { echo "$as_me:$LINENO: error: failed to link with $static_standardlib_flag" >&5
3329echo "$as_me: error: failed to link with $static_standardlib_flag" >&2;}
3330   { (exit 1); exit 1; }; }
3331       fi
3332
3333fi
3334rm -f conftest.err conftest.$ac_objext \
3335      conftest$ac_exeext conftest.$ac_ext
3336    ;;
3337  esac
3338fi
3339
3340ac_ext=c
3341ac_cpp='$CPP $CPPFLAGS'
3342ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3343ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3344ac_compiler_gnu=$ac_cv_c_compiler_gnu
3345
3346
3347
3348# Initialize automake and libtool
3349{
3350
3351
3352
3353# START
3354
3355# Test if force_shared has been set
3356if test "x" = xforce_shared; then
3357  if test x$enable_shared = xno; then
3358    { { echo "$as_me:$LINENO: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&5
3359echo "$as_me: error: Shared libraries are disabled by user, but this is not feasible with the given options" >&2;}
3360   { (exit 1); exit 1; }; }
3361  fi
3362  enable_shared=yes;
3363else
3364  # On Cygwin and AIX, building DLLs doesn't work
3365  case $build in
3366    *-cygwin*)
3367      coin_disable_shared=yes
3368      platform=Cygwin
3369    ;;
3370    *-aix*)
3371      coin_disable_shared=yes
3372      platform=AIX
3373    ;;
3374    *-mingw*)
3375      coin_disable_shared=yes
3376      platform="Msys"
3377#      case "$CXX" in
3378#        cl*)
3379#          coin_disable_shared=yes
3380#          platform="Msys with cl"
3381#      ;;
3382#      esac
3383    ;;
3384  esac
3385fi
3386if test x"$coin_disable_shared" = xyes; then
3387  if test x"$enable_shared" = xyes; then
3388    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
3389echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
3390  fi
3391  enable_shared=no
3392fi
3393# By default, we only want the shared objects to be compiled
3394# Check whether --enable-static or --disable-static was given.
3395if test "${enable_static+set}" = set; then
3396  enableval="$enable_static"
3397  p=${PACKAGE-default}
3398    case $enableval in
3399    yes) enable_static=yes ;;
3400    no) enable_static=no ;;
3401    *)
3402     enable_static=no
3403      # Look at the argument we got.  We use all the common list separators.
3404      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3405      for pkg in $enableval; do
3406        IFS="$lt_save_ifs"
3407        if test "X$pkg" = "X$p"; then
3408          enable_static=yes
3409        fi
3410      done
3411      IFS="$lt_save_ifs"
3412      ;;
3413    esac
3414else
3415  enable_static=no
3416fi;
3417
3418
3419
3420
3421# Initialize automake
3422am__api_version="1.9"
3423# Find a good install program.  We prefer a C program (faster),
3424# so one script is as good as another.  But avoid the broken or
3425# incompatible versions:
3426# SysV /etc/install, /usr/sbin/install
3427# SunOS /usr/etc/install
3428# IRIX /sbin/install
3429# AIX /bin/install
3430# AmigaOS /C/install, which installs bootblocks on floppy discs
3431# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3432# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3433# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3434# OS/2's system install, which has a completely different semantic
3435# ./install, which can be erroneously created by make from ./install.sh.
3436echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3437echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3438if test -z "$INSTALL"; then
3439if test "${ac_cv_path_install+set}" = set; then
3440  echo $ECHO_N "(cached) $ECHO_C" >&6
3441else
3442  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3443for as_dir in $PATH
3444do
3445  IFS=$as_save_IFS
3446  test -z "$as_dir" && as_dir=.
3447  # Account for people who put trailing slashes in PATH elements.
3448case $as_dir/ in
3449  ./ | .// | /cC/* | \
3450  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3451  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3452  /usr/ucb/* ) ;;
3453  *)
3454    # OSF1 and SCO ODT 3.0 have their own names for install.
3455    # Don't use installbsd from OSF since it installs stuff as root
3456    # by default.
3457    for ac_prog in ginstall scoinst install; do
3458      for ac_exec_ext in '' $ac_executable_extensions; do
3459        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3460          if test $ac_prog = install &&
3461            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3462            # AIX install.  It has an incompatible calling convention.
3463            :
3464          elif test $ac_prog = install &&
3465            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3466            # program-specific install script used by HP pwplus--don't use.
3467            :
3468          else
3469            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3470            break 3
3471          fi
3472        fi
3473      done
3474    done
3475    ;;
3476esac
3477done
3478
3479
3480fi
3481  if test "${ac_cv_path_install+set}" = set; then
3482    INSTALL=$ac_cv_path_install
3483  else
3484    # As a last resort, use the slow shell script.  We don't cache a
3485    # path for INSTALL within a source directory, because that will
3486    # break other packages using the cache if that directory is
3487    # removed, or if the path is relative.
3488    INSTALL=$ac_install_sh
3489  fi
3490fi
3491echo "$as_me:$LINENO: result: $INSTALL" >&5
3492echo "${ECHO_T}$INSTALL" >&6
3493
3494# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3495# It thinks the first close brace ends the variable substitution.
3496test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3497
3498test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3499
3500test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3501
3502echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3503echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3504# Just in case
3505sleep 1
3506echo timestamp > conftest.file
3507# Do `set' in a subshell so we don't clobber the current shell's
3508# arguments.  Must try -L first in case configure is actually a
3509# symlink; some systems play weird games with the mod time of symlinks
3510# (eg FreeBSD returns the mod time of the symlink's containing
3511# directory).
3512if (
3513   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3514   if test "$*" = "X"; then
3515      # -L didn't work.
3516      set X `ls -t $srcdir/configure conftest.file`
3517   fi
3518   rm -f conftest.file
3519   if test "$*" != "X $srcdir/configure conftest.file" \
3520      && test "$*" != "X conftest.file $srcdir/configure"; then
3521
3522      # If neither matched, then we have a broken ls.  This can happen
3523      # if, for instance, CONFIG_SHELL is bash and it inherits a
3524      # broken ls alias from the environment.  This has actually
3525      # happened.  Such a system could not be considered "sane".
3526      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3527alias in your environment" >&5
3528echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3529alias in your environment" >&2;}
3530   { (exit 1); exit 1; }; }
3531   fi
3532
3533   test "$2" = conftest.file
3534   )
3535then
3536   # Ok.
3537   :
3538else
3539   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3540Check your system clock" >&5
3541echo "$as_me: error: newly created file is older than distributed files!
3542Check your system clock" >&2;}
3543   { (exit 1); exit 1; }; }
3544fi
3545echo "$as_me:$LINENO: result: yes" >&5
3546echo "${ECHO_T}yes" >&6
3547test "$program_prefix" != NONE &&
3548  program_transform_name="s,^,$program_prefix,;$program_transform_name"
3549# Use a double $ so make ignores it.
3550test "$program_suffix" != NONE &&
3551  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3552# Double any \ or $.  echo might interpret backslashes.
3553# By default was `s,x,x', remove it if useless.
3554cat <<\_ACEOF >conftest.sed
3555s/[\\$]/&&/g;s/;s,x,x,$//
3556_ACEOF
3557program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3558rm conftest.sed
3559
3560# expand $ac_aux_dir to an absolute path
3561am_aux_dir=`cd $ac_aux_dir && pwd`
3562
3563test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3564# Use eval to expand $SHELL
3565if eval "$MISSING --run true"; then
3566  am_missing_run="$MISSING --run "
3567else
3568  am_missing_run=
3569  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3570echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3571fi
3572
3573if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3574  # We used to keeping the `.' as first argument, in order to
3575  # allow $(mkdir_p) to be used without argument.  As in
3576  #   $(mkdir_p) $(somedir)
3577  # where $(somedir) is conditionally defined.  However this is wrong
3578  # for two reasons:
3579  #  1. if the package is installed by a user who cannot write `.'
3580  #     make install will fail,
3581  #  2. the above comment should most certainly read
3582  #     $(mkdir_p) $(DESTDIR)$(somedir)
3583  #     so it does not work when $(somedir) is undefined and
3584  #     $(DESTDIR) is not.
3585  #  To support the latter case, we have to write
3586  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3587  #  so the `.' trick is pointless.
3588  mkdir_p='mkdir -p --'
3589else
3590  # On NextStep and OpenStep, the `mkdir' command does not
3591  # recognize any option.  It will interpret all options as
3592  # directories to create, and then abort because `.' already
3593  # exists.
3594  for d in ./-p ./--version;
3595  do
3596    test -d $d && rmdir $d
3597  done
3598  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3599  if test -f "$ac_aux_dir/mkinstalldirs"; then
3600    mkdir_p='$(mkinstalldirs)'
3601  else
3602    mkdir_p='$(install_sh) -d'
3603  fi
3604fi
3605
3606for ac_prog in gawk mawk nawk awk
3607do
3608  # Extract the first word of "$ac_prog", so it can be a program name with args.
3609set dummy $ac_prog; ac_word=$2
3610echo "$as_me:$LINENO: checking for $ac_word" >&5
3611echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3612if test "${ac_cv_prog_AWK+set}" = set; then
3613  echo $ECHO_N "(cached) $ECHO_C" >&6
3614else
3615  if test -n "$AWK"; then
3616  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3617else
3618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3619for as_dir in $PATH
3620do
3621  IFS=$as_save_IFS
3622  test -z "$as_dir" && as_dir=.
3623  for ac_exec_ext in '' $ac_executable_extensions; do
3624  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3625    ac_cv_prog_AWK="$ac_prog"
3626    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3627    break 2
3628  fi
3629done
3630done
3631
3632fi
3633fi
3634AWK=$ac_cv_prog_AWK
3635if test -n "$AWK"; then
3636  echo "$as_me:$LINENO: result: $AWK" >&5
3637echo "${ECHO_T}$AWK" >&6
3638else
3639  echo "$as_me:$LINENO: result: no" >&5
3640echo "${ECHO_T}no" >&6
3641fi
3642
3643  test -n "$AWK" && break
3644done
3645
3646echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3647echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3648set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3649if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3650  echo $ECHO_N "(cached) $ECHO_C" >&6
3651else
3652  cat >conftest.make <<\_ACEOF
3653all:
3654        @echo 'ac_maketemp="$(MAKE)"'
3655_ACEOF
3656# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3657eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3658if test -n "$ac_maketemp"; then
3659  eval ac_cv_prog_make_${ac_make}_set=yes
3660else
3661  eval ac_cv_prog_make_${ac_make}_set=no
3662fi
3663rm -f conftest.make
3664fi
3665if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3666  echo "$as_me:$LINENO: result: yes" >&5
3667echo "${ECHO_T}yes" >&6
3668  SET_MAKE=
3669else
3670  echo "$as_me:$LINENO: result: no" >&5
3671echo "${ECHO_T}no" >&6
3672  SET_MAKE="MAKE=${MAKE-make}"
3673fi
3674
3675rm -rf .tst 2>/dev/null
3676mkdir .tst 2>/dev/null
3677if test -d .tst; then
3678  am__leading_dot=.
3679else
3680  am__leading_dot=_
3681fi
3682rmdir .tst 2>/dev/null
3683
3684DEPDIR="${am__leading_dot}deps"
3685
3686          ac_config_commands="$ac_config_commands depfiles"
3687
3688
3689am_make=${MAKE-make}
3690cat > confinc << 'END'
3691am__doit:
3692        @echo done
3693.PHONY: am__doit
3694END
3695# If we don't find an include directive, just comment out the code.
3696echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3697echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3698am__include="#"
3699am__quote=
3700_am_result=none
3701# First try GNU make style include.
3702echo "include confinc" > confmf
3703# We grep out `Entering directory' and `Leaving directory'
3704# messages which can occur if `w' ends up in MAKEFLAGS.
3705# In particular we don't look at `^make:' because GNU make might
3706# be invoked under some other name (usually "gmake"), in which
3707# case it prints its new name instead of `make'.
3708if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3709   am__include=include
3710   am__quote=
3711   _am_result=GNU
3712fi
3713# Now try BSD make style include.
3714if test "$am__include" = "#"; then
3715   echo '.include "confinc"' > confmf
3716   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3717      am__include=.include
3718      am__quote="\""
3719      _am_result=BSD
3720   fi
3721fi
3722
3723
3724echo "$as_me:$LINENO: result: $_am_result" >&5
3725echo "${ECHO_T}$_am_result" >&6
3726rm -f confinc confmf
3727
3728# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3729if test "${enable_dependency_tracking+set}" = set; then
3730  enableval="$enable_dependency_tracking"
3731
3732fi;
3733if test "x$enable_dependency_tracking" != xno; then
3734  am_depcomp="$ac_aux_dir/depcomp"
3735  AMDEPBACKSLASH='\'
3736fi
3737
3738
3739if test "x$enable_dependency_tracking" != xno; then
3740  AMDEP_TRUE=
3741  AMDEP_FALSE='#'
3742else
3743  AMDEP_TRUE='#'
3744  AMDEP_FALSE=
3745fi
3746
3747
3748
3749
3750
3751
3752# AC_MSG_NOTICE([Beginning automake initialisation.])
3753# Stuff for automake
3754# test to see if srcdir already configured
3755if test "`cd $srcdir && pwd`" != "`pwd`" &&
3756   test -f $srcdir/config.status; then
3757  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3758echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3759   { (exit 1); exit 1; }; }
3760fi
3761
3762# test whether we have cygpath
3763if test -z "$CYGPATH_W"; then
3764  if (cygpath --version) >/dev/null 2>/dev/null; then
3765    CYGPATH_W='cygpath -w'
3766  else
3767    CYGPATH_W=echo
3768  fi
3769fi
3770
3771
3772# Define the identity of the package.
3773 PACKAGE='thirdpartyasl'
3774 VERSION='trunk'
3775
3776
3777cat >>confdefs.h <<_ACEOF
3778#define PACKAGE "$PACKAGE"
3779_ACEOF
3780
3781
3782cat >>confdefs.h <<_ACEOF
3783#define VERSION "$VERSION"
3784_ACEOF
3785
3786# Some tools Automake needs.
3787
3788ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3789
3790
3791AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3792
3793
3794AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3795
3796
3797AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3798
3799
3800MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3801
3802install_sh=${install_sh-"$am_aux_dir/install-sh"}
3803
3804# Installed binaries are usually stripped using `strip' when the user
3805# run `make install-strip'.  However `strip' might not be the right
3806# tool to use in cross-compilation environments, therefore Automake
3807# will honor the `STRIP' environment variable to overrule this program.
3808if test "$cross_compiling" != no; then
3809  if test -n "$ac_tool_prefix"; then
3810  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3811set dummy ${ac_tool_prefix}strip; ac_word=$2
3812echo "$as_me:$LINENO: checking for $ac_word" >&5
3813echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3814if test "${ac_cv_prog_STRIP+set}" = set; then
3815  echo $ECHO_N "(cached) $ECHO_C" >&6
3816else
3817  if test -n "$STRIP"; then
3818  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3819else
3820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3821for as_dir in $PATH
3822do
3823  IFS=$as_save_IFS
3824  test -z "$as_dir" && as_dir=.
3825  for ac_exec_ext in '' $ac_executable_extensions; do
3826  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3827    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3828    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3829    break 2
3830  fi
3831done
3832done
3833
3834fi
3835fi
3836STRIP=$ac_cv_prog_STRIP
3837if test -n "$STRIP"; then
3838  echo "$as_me:$LINENO: result: $STRIP" >&5
3839echo "${ECHO_T}$STRIP" >&6
3840else
3841  echo "$as_me:$LINENO: result: no" >&5
3842echo "${ECHO_T}no" >&6
3843fi
3844
3845fi
3846if test -z "$ac_cv_prog_STRIP"; then
3847  ac_ct_STRIP=$STRIP
3848  # Extract the first word of "strip", so it can be a program name with args.
3849set dummy strip; ac_word=$2
3850echo "$as_me:$LINENO: checking for $ac_word" >&5
3851echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3852if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3853  echo $ECHO_N "(cached) $ECHO_C" >&6
3854else
3855  if test -n "$ac_ct_STRIP"; then
3856  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3857else
3858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3859for as_dir in $PATH
3860do
3861  IFS=$as_save_IFS
3862  test -z "$as_dir" && as_dir=.
3863  for ac_exec_ext in '' $ac_executable_extensions; do
3864  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3865    ac_cv_prog_ac_ct_STRIP="strip"
3866    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3867    break 2
3868  fi
3869done
3870done
3871
3872  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3873fi
3874fi
3875ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3876if test -n "$ac_ct_STRIP"; then
3877  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3878echo "${ECHO_T}$ac_ct_STRIP" >&6
3879else
3880  echo "$as_me:$LINENO: result: no" >&5
3881echo "${ECHO_T}no" >&6
3882fi
3883
3884  STRIP=$ac_ct_STRIP
3885else
3886  STRIP="$ac_cv_prog_STRIP"
3887fi
3888
3889fi
3890INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3891
3892# We need awk for the "check" target.  The system "awk" is bad on
3893# some platforms.
3894# Always define AMTAR for backward compatibility.
3895
3896AMTAR=${AMTAR-"${am_missing_run}tar"}
3897
3898am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3899
3900
3901
3902
3903depcc="$CC"   am_compiler_list=
3904
3905echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3906echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3907if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3908  echo $ECHO_N "(cached) $ECHO_C" >&6
3909else
3910  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3911  # We make a subdir and do the tests there.  Otherwise we can end up
3912  # making bogus files that we don't know about and never remove.  For
3913  # instance it was reported that on HP-UX the gcc test will end up
3914  # making a dummy file named `D' -- because `-MD' means `put the output
3915  # in D'.
3916  mkdir conftest.dir
3917  # Copy depcomp to subdir because otherwise we won't find it if we're
3918  # using a relative directory.
3919  cp "$am_depcomp" conftest.dir
3920  cd conftest.dir
3921  # We will build objects and dependencies in a subdirectory because
3922  # it helps to detect inapplicable dependency modes.  For instance
3923  # both Tru64's cc and ICC support -MD to output dependencies as a
3924  # side effect of compilation, but ICC will put the dependencies in
3925  # the current directory while Tru64 will put them in the object
3926  # directory.
3927  mkdir sub
3928
3929  am_cv_CC_dependencies_compiler_type=none
3930  if test "$am_compiler_list" = ""; then
3931     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3932  fi
3933  for depmode in $am_compiler_list; do
3934    # Setup a source with many dependencies, because some compilers
3935    # like to wrap large dependency lists on column 80 (with \), and
3936    # we should not choose a depcomp mode which is confused by this.
3937    #
3938    # We need to recreate these files for each test, as the compiler may
3939    # overwrite some of them when testing with obscure command lines.
3940    # This happens at least with the AIX C compiler.
3941    : > sub/conftest.c
3942    for i in 1 2 3 4 5 6; do
3943      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3944      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3945      # Solaris 8's {/usr,}/bin/sh.
3946      touch sub/conftst$i.h
3947    done
3948    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3949
3950    case $depmode in
3951    nosideeffect)
3952      # after this tag, mechanisms are not by side-effect, so they'll
3953      # only be used when explicitly requested
3954      if test "x$enable_dependency_tracking" = xyes; then
3955        continue
3956      else
3957        break
3958      fi
3959      ;;
3960    none) break ;;
3961    esac
3962    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3963    # mode.  It turns out that the SunPro C++ compiler does not properly
3964    # handle `-M -o', and we need to detect this.
3965    if depmode=$depmode \
3966       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3967       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3968       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3969         >/dev/null 2>conftest.err &&
3970       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3971       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3972       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3973      # icc doesn't choke on unknown options, it will just issue warnings
3974      # or remarks (even with -Werror).  So we grep stderr for any message
3975      # that says an option was ignored or not supported.
3976      # When given -MP, icc 7.0 and 7.1 complain thusly:
3977      #   icc: Command line warning: ignoring option '-M'; no argument required
3978      # The diagnosis changed in icc 8.0:
3979      #   icc: Command line remark: option '-MP' not supported
3980      if (grep 'ignoring option' conftest.err ||
3981          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3982        am_cv_CC_dependencies_compiler_type=$depmode
3983        break
3984      fi
3985    fi
3986  done
3987
3988  cd ..
3989  rm -rf conftest.dir
3990else
3991  am_cv_CC_dependencies_compiler_type=none
3992fi
3993
3994fi
3995echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3996echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3997CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3998
3999
4000
4001if
4002  test "x$enable_dependency_tracking" != xno \
4003  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4004  am__fastdepCC_TRUE=
4005  am__fastdepCC_FALSE='#'
4006else
4007  am__fastdepCC_TRUE='#'
4008  am__fastdepCC_FALSE=
4009fi
4010
4011
4012
4013echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4014echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4015    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4016if test "${enable_maintainer_mode+set}" = set; then
4017  enableval="$enable_maintainer_mode"
4018  USE_MAINTAINER_MODE=$enableval
4019else
4020  USE_MAINTAINER_MODE=no
4021fi;
4022  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4023echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4024
4025
4026if test $USE_MAINTAINER_MODE = yes; then
4027  MAINTAINER_MODE_TRUE=
4028  MAINTAINER_MODE_FALSE='#'
4029else
4030  MAINTAINER_MODE_TRUE='#'
4031  MAINTAINER_MODE_FALSE=
4032fi
4033
4034  MAINT=$MAINTAINER_MODE_TRUE
4035
4036
4037
4038coin_have_externals=no
4039if test "$enable_maintainer_mode" = yes; then
4040
4041  # If maintainer mode is chosen, we make sure that the correct versions
4042  # of the tools are used, and that we know where libtool.m4 is (to
4043  # recreate acinclude.m4)
4044
4045
4046  LIBTOOLM4=
4047  # Normally, $HOME
4048  AUTOTOOLS_DFLT=$HOME
4049
4050  echo "$as_me:$LINENO: checking whether we are using the correct autotools" >&5
4051echo $ECHO_N "checking whether we are using the correct autotools... $ECHO_C" >&6
4052if test "${ac_cv_use_correct_autotools+set}" = set; then
4053  echo $ECHO_N "(cached) $ECHO_C" >&6
4054else
4055  ac_cv_use_correct_autotools=check
4056fi
4057echo "$as_me:$LINENO: result: $ac_cv_use_correct_autotools" >&5
4058echo "${ECHO_T}$ac_cv_use_correct_autotools" >&6
4059
4060  if test $ac_cv_use_correct_autotools = check; then
4061    ac_cv_use_correct_autotools=yes
4062    # Check if we have autoconf
4063    # Extract the first word of "autoconf", so it can be a program name with args.
4064set dummy autoconf; ac_word=$2
4065echo "$as_me:$LINENO: checking for $ac_word" >&5
4066echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4067if test "${ac_cv_prog_have_autoconf+set}" = set; then
4068  echo $ECHO_N "(cached) $ECHO_C" >&6
4069else
4070  if test -n "$have_autoconf"; then
4071  ac_cv_prog_have_autoconf="$have_autoconf" # Let the user override the test.
4072else
4073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4074for as_dir in $PATH
4075do
4076  IFS=$as_save_IFS
4077  test -z "$as_dir" && as_dir=.
4078  for ac_exec_ext in '' $ac_executable_extensions; do
4079  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4080    ac_cv_prog_have_autoconf="yes"
4081    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4082    break 2
4083  fi
4084done
4085done
4086
4087  test -z "$ac_cv_prog_have_autoconf" && ac_cv_prog_have_autoconf="no"
4088fi
4089fi
4090have_autoconf=$ac_cv_prog_have_autoconf
4091if test -n "$have_autoconf"; then
4092  echo "$as_me:$LINENO: result: $have_autoconf" >&5
4093echo "${ECHO_T}$have_autoconf" >&6
4094else
4095  echo "$as_me:$LINENO: result: no" >&5
4096echo "${ECHO_T}no" >&6
4097fi
4098
4099    if test $have_autoconf = no; then
4100      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&5
4101echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find autoconf in your path." >&2;}
4102   { (exit 1); exit 1; }; }
4103    fi
4104
4105    # Check whether autoconf is the correct version
4106    correct_version='2.59'
4107    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4108    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of autoconf" >&5
4109echo $ECHO_N "checking whether we are using the correct version ($correct_version) of autoconf... $ECHO_C" >&6
4110    autoconf --version > confauto.out 2>&1
4111    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4112      echo "$as_me:$LINENO: result: yes" >&5
4113echo "${ECHO_T}yes" >&6
4114    else
4115      rm -f confauto.out
4116      echo "$as_me:$LINENO: result: no" >&5
4117echo "${ECHO_T}no" >&6
4118      { { echo "$as_me:$LINENO: error: You don't have the correct version of autoconf as the first one in your path." >&5
4119echo "$as_me: error: You don't have the correct version of autoconf as the first one in your path." >&2;}
4120   { (exit 1); exit 1; }; }
4121    fi
4122    rm -f confauto.out
4123
4124    # Check if the executable autoconf is picked up from the correct location
4125    echo "$as_me:$LINENO: checking whether autoconf is coming from the correct location" >&5
4126echo $ECHO_N "checking whether autoconf is coming from the correct location... $ECHO_C" >&6
4127    autoconf_dir=`which autoconf | sed -e 's=/autoconf=='`
4128    autoconf_dir=`cd $autoconf_dir; pwd`
4129    if test x$AUTOTOOLS_DIR = x; then
4130      want_dir=$AUTOTOOLS_DFLT/bin
4131    else
4132      want_dir=$AUTOTOOLS_DIR/bin
4133    fi
4134    if test $autoconf_dir = `cd $want_dir; pwd`; then
4135      echo "$as_me:$LINENO: result: yes" >&5
4136echo "${ECHO_T}yes" >&6
4137    else
4138      rm -f confauto.out
4139      echo "$as_me:$LINENO: result: no" >&5
4140echo "${ECHO_T}no" >&6
4141      { { echo "$as_me:$LINENO: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4142echo "$as_me: error: The autoconf executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4143   { (exit 1); exit 1; }; }
4144    fi
4145
4146    # Check if we have automake
4147    # Extract the first word of "automake", so it can be a program name with args.
4148set dummy automake; ac_word=$2
4149echo "$as_me:$LINENO: checking for $ac_word" >&5
4150echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4151if test "${ac_cv_prog_have_automake+set}" = set; then
4152  echo $ECHO_N "(cached) $ECHO_C" >&6
4153else
4154  if test -n "$have_automake"; then
4155  ac_cv_prog_have_automake="$have_automake" # Let the user override the test.
4156else
4157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4158for as_dir in $PATH
4159do
4160  IFS=$as_save_IFS
4161  test -z "$as_dir" && as_dir=.
4162  for ac_exec_ext in '' $ac_executable_extensions; do
4163  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4164    ac_cv_prog_have_automake="yes"
4165    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4166    break 2
4167  fi
4168done
4169done
4170
4171  test -z "$ac_cv_prog_have_automake" && ac_cv_prog_have_automake="no"
4172fi
4173fi
4174have_automake=$ac_cv_prog_have_automake
4175if test -n "$have_automake"; then
4176  echo "$as_me:$LINENO: result: $have_automake" >&5
4177echo "${ECHO_T}$have_automake" >&6
4178else
4179  echo "$as_me:$LINENO: result: no" >&5
4180echo "${ECHO_T}no" >&6
4181fi
4182
4183    if test $have_automake = no; then
4184      { { echo "$as_me:$LINENO: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&5
4185echo "$as_me: error: You specified you want to use maintainer mode, but I cannot find automake in your path." >&2;}
4186   { (exit 1); exit 1; }; }
4187    fi
4188
4189    # Check whether automake is the correct version
4190    correct_version='1.9.6'
4191    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4192    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of automake" >&5
4193echo $ECHO_N "checking whether we are using the correct version ($correct_version) of automake... $ECHO_C" >&6
4194    automake --version > confauto.out 2>&1
4195    if $EGREP $grep_version confauto.out >/dev/null 2>&1; then
4196      echo "$as_me:$LINENO: result: yes" >&5
4197echo "${ECHO_T}yes" >&6
4198    else
4199      rm -f confauto.out
4200      echo "$as_me:$LINENO: result: no" >&5
4201echo "${ECHO_T}no" >&6
4202      { { echo "$as_me:$LINENO: error: You don't have the correct version of automake as the first one in your path." >&5
4203echo "$as_me: error: You don't have the correct version of automake as the first one in your path." >&2;}
4204   { (exit 1); exit 1; }; }
4205    fi
4206    rm -f confauto.out
4207
4208    # Check if the executable automake is picked up from the correct location
4209    echo "$as_me:$LINENO: checking whether automake is coming from the correct location" >&5
4210echo $ECHO_N "checking whether automake is coming from the correct location... $ECHO_C" >&6
4211    automake_dir=`which automake | sed -e 's=/automake=='`
4212    automake_dir=`cd $automake_dir; pwd`
4213    if test x$AUTOTOOLS_DIR = x; then
4214      want_dir=$AUTOTOOLS_DFLT/bin
4215    else
4216      want_dir=$AUTOTOOLS_DIR/bin
4217    fi
4218    if test $automake_dir = `cd $want_dir; pwd`; then
4219      echo "$as_me:$LINENO: result: yes" >&5
4220echo "${ECHO_T}yes" >&6
4221    else
4222      rm -f confauto.out
4223      echo "$as_me:$LINENO: result: no" >&5
4224echo "${ECHO_T}no" >&6
4225      { { echo "$as_me:$LINENO: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&5
4226echo "$as_me: error: The automake executable should be picked up from \$AUTOTOOLS_DFLT/bin or \$AUTOTOOLS_DIR/bin." >&2;}
4227   { (exit 1); exit 1; }; }
4228    fi
4229
4230    # Check if this is the correct version of libtool (with escaped dots)
4231    if test x$AUTOTOOLS_DIR = x; then
4232      want_dir=$AUTOTOOLS_DFLT/share
4233    else
4234      want_dir=$AUTOTOOLS_DIR/share
4235    fi
4236    correct_version='1.5.22'
4237    grep_version=`echo  $correct_version | sed -e 's/\\./\\\\\\./g'`
4238    if test -r $want_dir/libtool/ltmain.sh; then
4239  have_ltmain=yes
4240  :
4241else
4242  have_ltmain=no
4243  :
4244fi
4245
4246    echo "$as_me:$LINENO: checking whether we are using the correct version ($correct_version) of libtool." >&5
4247echo $ECHO_N "checking whether we are using the correct version ($correct_version) of libtool.... $ECHO_C" >&6
4248    if test $have_ltmain = yes; then
4249    if $EGREP $grep_version $want_dir/libtool/ltmain.sh >/dev/null 2>&1; then
4250        echo "$as_me:$LINENO: result: yes" >&5
4251echo "${ECHO_T}yes" >&6
4252      else
4253        echo "$as_me:$LINENO: result: no" >&5
4254echo "${ECHO_T}no" >&6
4255        { { echo "$as_me:$LINENO: error: You don't have the correct version of libtool." >&5
4256echo "$as_me: error: You don't have the correct version of libtool." >&2;}
4257   { (exit 1); exit 1; }; }
4258      fi
4259    else
4260      echo "$as_me:$LINENO: result: no" >&5
4261echo "${ECHO_T}no" >&6
4262      { { echo "$as_me:$LINENO: error: I cannot find the ltmain.sh file." >&5
4263echo "$as_me: error: I cannot find the ltmain.sh file." >&2;}
4264   { (exit 1); exit 1; }; }
4265    fi
4266  fi
4267
4268  # Check if we can find the libtool file
4269  if test x$AUTOTOOLS_DIR = x; then
4270    want_dir=$AUTOTOOLS_DFLT/share
4271  else
4272    want_dir=$AUTOTOOLS_DIR/share
4273  fi
4274  if test -r $want_dir/aclocal/libtool.m4; then
4275  LIBTOOLM4="$want_dir/aclocal/libtool.m4"
4276  :
4277else
4278  { { echo "$as_me:$LINENO: error: I cannot find the libtool.m4 file." >&5
4279echo "$as_me: error: I cannot find the libtool.m4 file." >&2;}
4280   { (exit 1); exit 1; }; }
4281  :
4282fi
4283
4284
4285  # Check if we have an Dependencies file
4286  if test -r $srcdir/Dependencies; then
4287    coin_have_externals=yes
4288  fi
4289  # Check if subversion is installed and understands https
4290  # Extract the first word of "svn", so it can be a program name with args.
4291set dummy svn; ac_word=$2
4292echo "$as_me:$LINENO: checking for $ac_word" >&5
4293echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4294if test "${ac_cv_prog_have_svn+set}" = set; then
4295  echo $ECHO_N "(cached) $ECHO_C" >&6
4296else
4297  if test -n "$have_svn"; then
4298  ac_cv_prog_have_svn="$have_svn" # Let the user override the test.
4299else
4300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4301for as_dir in $PATH
4302do
4303  IFS=$as_save_IFS
4304  test -z "$as_dir" && as_dir=.
4305  for ac_exec_ext in '' $ac_executable_extensions; do
4306  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4307    ac_cv_prog_have_svn="yes"
4308    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4309    break 2
4310  fi
4311done
4312done
4313
4314  test -z "$ac_cv_prog_have_svn" && ac_cv_prog_have_svn="no"
4315fi
4316fi
4317have_svn=$ac_cv_prog_have_svn
4318if test -n "$have_svn"; then
4319  echo "$as_me:$LINENO: result: $have_svn" >&5
4320echo "${ECHO_T}$have_svn" >&6
4321else
4322  echo "$as_me:$LINENO: result: no" >&5
4323echo "${ECHO_T}no" >&6
4324fi
4325
4326  if test x$have_svn = xyes; then
4327    echo "$as_me:$LINENO: checking whether svn understands https" >&5
4328echo $ECHO_N "checking whether svn understands https... $ECHO_C" >&6
4329if test "${ac_cv_svn_understands_https+set}" = set; then
4330  echo $ECHO_N "(cached) $ECHO_C" >&6
4331else
4332  svn --version > confauto.out 2>&1
4333                    if $EGREP https confauto.out >/dev/null 2>&1; then
4334                      ac_cv_svn_understands_https=yes
4335                    else
4336                      ac_cv_svn_understands_https=no
4337                      have_svn=no
4338                      ac_cv_prog_have_svn=no
4339                    fi
4340                    rm -f confauto.out
4341fi
4342echo "$as_me:$LINENO: result: $ac_cv_svn_understands_https" >&5
4343echo "${ECHO_T}$ac_cv_svn_understands_https" >&6
4344  fi
4345
4346  # Find the location of the BuildTools directory
4347  BUILDTOOLSDIR=
4348  if test -r $srcdir/BuildTools/coin.m4; then
4349    BUILDTOOLSDIR=$srcdir/BuildTools
4350  else
4351    if test -r $srcdir/../BuildTools/coin.m4; then
4352      BUILDTOOLSDIR=$srcdir/../BuildTools
4353    else
4354      if test -r $srcdir/../../BuildTools/coin.m4; then
4355        BUILDTOOLSDIR=$srcdir/../../BuildTools
4356      else
4357        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
4358echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
4359   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
4360      fi
4361    fi
4362  fi
4363
4364
4365  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
4366  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
4367    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
4368  fi
4369
4370  # The following variable is set to the name of the directory where
4371  # the autotool scripts are located
4372
4373  AUX_DIR=$ac_aux_dir
4374fi
4375
4376# helpful variable for the base directory of this package
4377abs_source_dir=`cd $srcdir; pwd`
4378
4379
4380# Stuff for example Makefiles
4381if test x$prefix = xNONE; then
4382  full_prefix=$ac_default_prefix
4383else
4384  full_prefix=$prefix
4385fi
4386full_prefix=`cd $full_prefix ; pwd`
4387
4388abs_lib_dir=$full_prefix/lib
4389
4390abs_include_dir=$full_prefix/include
4391
4392abs_bin_dir=$full_prefix/bin
4393
4394
4395
4396if test $coin_have_externals = yes && test x$have_svn = xyes; then
4397  HAVE_EXTERNALS_TRUE=
4398  HAVE_EXTERNALS_FALSE='#'
4399else
4400  HAVE_EXTERNALS_TRUE='#'
4401  HAVE_EXTERNALS_FALSE=
4402fi
4403
4404
4405# AC_MSG_NOTICE([End automake initialisation.])
4406
4407
4408
4409LIBTOOL=
4410if test -r ../libtool; then
4411  coin_config_dir=..
4412  LIBTOOL='$(SHELL) $(top_builddir)/../libtool'
4413fi
4414if test "x$LIBTOOL" = x; then
4415  if test -r ../../libtool; then
4416    coin_config_dir=../..
4417    LIBTOOL='$(SHELL) $(top_builddir)/../../libtool'
4418  fi
4419fi
4420
4421if test "x$LIBTOOL" = x; then
4422# AC_MSG_NOTICE([Creating libtool script (calling COIN_PROG_LIBTOOL).])
4423  # Stuff for libtool
4424  # Check whether --enable-shared or --disable-shared was given.
4425if test "${enable_shared+set}" = set; then
4426  enableval="$enable_shared"
4427  p=${PACKAGE-default}
4428    case $enableval in
4429    yes) enable_shared=yes ;;
4430    no) enable_shared=no ;;
4431    *)
4432      enable_shared=no
4433      # Look at the argument we got.  We use all the common list separators.
4434      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4435      for pkg in $enableval; do
4436        IFS="$lt_save_ifs"
4437        if test "X$pkg" = "X$p"; then
4438          enable_shared=yes
4439        fi
4440      done
4441      IFS="$lt_save_ifs"
4442      ;;
4443    esac
4444else
4445  enable_shared=yes
4446fi;
4447
4448# Check whether --enable-fast-install or --disable-fast-install was given.
4449if test "${enable_fast_install+set}" = set; then
4450  enableval="$enable_fast_install"
4451  p=${PACKAGE-default}
4452    case $enableval in
4453    yes) enable_fast_install=yes ;;
4454    no) enable_fast_install=no ;;
4455    *)
4456      enable_fast_install=no
4457      # Look at the argument we got.  We use all the common list separators.
4458      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4459      for pkg in $enableval; do
4460        IFS="$lt_save_ifs"
4461        if test "X$pkg" = "X$p"; then
4462          enable_fast_install=yes
4463        fi
4464      done
4465      IFS="$lt_save_ifs"
4466      ;;
4467    esac
4468else
4469  enable_fast_install=yes
4470fi;
4471
4472echo "$as_me:$LINENO: checking host system type" >&5
4473echo $ECHO_N "checking host system type... $ECHO_C" >&6
4474if test "${ac_cv_host+set}" = set; then
4475  echo $ECHO_N "(cached) $ECHO_C" >&6
4476else
4477  ac_cv_host_alias=$host_alias
4478test -z "$ac_cv_host_alias" &&
4479  ac_cv_host_alias=$ac_cv_build_alias
4480ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4481  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4482echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4483   { (exit 1); exit 1; }; }
4484
4485fi
4486echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4487echo "${ECHO_T}$ac_cv_host" >&6
4488host=$ac_cv_host
4489host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4490host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4491host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4492
4493
4494echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4495echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4496if test "${lt_cv_path_SED+set}" = set; then
4497  echo $ECHO_N "(cached) $ECHO_C" >&6
4498else
4499  # Loop through the user's path and test for sed and gsed.
4500# Then use that list of sed's as ones to test for truncation.
4501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4502for as_dir in $PATH
4503do
4504  IFS=$as_save_IFS
4505  test -z "$as_dir" && as_dir=.
4506  for lt_ac_prog in sed gsed; do
4507    for ac_exec_ext in '' $ac_executable_extensions; do
4508      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4509        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4510      fi
4511    done
4512  done
4513done
4514lt_ac_max=0
4515lt_ac_count=0
4516# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4517# along with /bin/sed that truncates output.
4518for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4519  test ! -f $lt_ac_sed && continue
4520  cat /dev/null > conftest.in
4521  lt_ac_count=0
4522  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4523  # Check for GNU sed and select it if it is found.
4524  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4525    lt_cv_path_SED=$lt_ac_sed
4526    break
4527  fi
4528  while true; do
4529    cat conftest.in conftest.in >conftest.tmp
4530    mv conftest.tmp conftest.in
4531    cp conftest.in conftest.nl
4532    echo >>conftest.nl
4533    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4534    cmp -s conftest.out conftest.nl || break
4535    # 10000 chars as input seems more than enough
4536    test $lt_ac_count -gt 10 && break
4537    lt_ac_count=`expr $lt_ac_count + 1`
4538    if test $lt_ac_count -gt $lt_ac_max; then
4539      lt_ac_max=$lt_ac_count
4540      lt_cv_path_SED=$lt_ac_sed
4541    fi
4542  done
4543done
4544
4545fi
4546
4547SED=$lt_cv_path_SED
4548echo "$as_me:$LINENO: result: $SED" >&5
4549echo "${ECHO_T}$SED" >&6
4550
4551
4552# Check whether --with-gnu-ld or --without-gnu-ld was given.
4553if test "${with_gnu_ld+set}" = set; then
4554  withval="$with_gnu_ld"
4555  test "$withval" = no || with_gnu_ld=yes
4556else
4557  with_gnu_ld=no
4558fi;
4559ac_prog=ld
4560if test "$GCC" = yes; then
4561  # Check if gcc -print-prog-name=ld gives a path.
4562  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4563echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4564  case $host in
4565  *-*-mingw*)
4566    # gcc leaves a trailing carriage return which upsets mingw
4567    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4568  *)
4569    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4570  esac
4571  case $ac_prog in
4572    # Accept absolute paths.
4573    [\\/]* | ?:[\\/]*)
4574      re_direlt='/[^/][^/]*/\.\./'
4575      # Canonicalize the pathname of ld
4576      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4577      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4578        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4579      done
4580      test -z "$LD" && LD="$ac_prog"
4581      ;;
4582  "")
4583    # If it fails, then pretend we aren't using GCC.
4584    ac_prog=ld
4585    ;;
4586  *)
4587    # If it is relative, then search for the first ld in PATH.
4588    with_gnu_ld=unknown
4589    ;;
4590  esac
4591elif test "$with_gnu_ld" = yes; then
4592  echo "$as_me:$LINENO: checking for GNU ld" >&5
4593echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4594else
4595  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4596echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4597fi
4598if test "${lt_cv_path_LD+set}" = set; then
4599  echo $ECHO_N "(cached) $ECHO_C" >&6
4600else
4601  if test -z "$LD"; then
4602  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4603  for ac_dir in $PATH; do
4604    IFS="$lt_save_ifs"
4605    test -z "$ac_dir" && ac_dir=.
4606    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4607      lt_cv_path_LD="$ac_dir/$ac_prog"
4608      # Check to see if the program is GNU ld.  I'd rather use --version,
4609      # but apparently some variants of GNU ld only accept -v.
4610      # Break only if it was the GNU/non-GNU ld that we prefer.
4611      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4612      *GNU* | *'with BFD'*)
4613        test "$with_gnu_ld" != no && break
4614        ;;
4615      *)
4616        test "$with_gnu_ld" != yes && break
4617        ;;
4618      esac
4619    fi
4620  done
4621  IFS="$lt_save_ifs"
4622else
4623  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4624fi
4625fi
4626
4627LD="$lt_cv_path_LD"
4628if test -n "$LD"; then
4629  echo "$as_me:$LINENO: result: $LD" >&5
4630echo "${ECHO_T}$LD" >&6
4631else
4632  echo "$as_me:$LINENO: result: no" >&5
4633echo "${ECHO_T}no" >&6
4634fi
4635test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4636echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4637   { (exit 1); exit 1; }; }
4638echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4639echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4640if test "${lt_cv_prog_gnu_ld+set}" = set; then
4641  echo $ECHO_N "(cached) $ECHO_C" >&6
4642else
4643  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4644case `$LD -v 2>&1 </dev/null` in
4645*GNU* | *'with BFD'*)
4646  lt_cv_prog_gnu_ld=yes
4647  ;;
4648*)
4649  lt_cv_prog_gnu_ld=no
4650  ;;
4651esac
4652fi
4653echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4654echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4655with_gnu_ld=$lt_cv_prog_gnu_ld
4656
4657
4658echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4659echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4660if test "${lt_cv_ld_reload_flag+set}" = set; then
4661  echo $ECHO_N "(cached) $ECHO_C" >&6
4662else
4663  lt_cv_ld_reload_flag='-r'
4664fi
4665echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4666echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4667reload_flag=$lt_cv_ld_reload_flag
4668case $reload_flag in
4669"" | " "*) ;;
4670*) reload_flag=" $reload_flag" ;;
4671esac
4672reload_cmds='$LD$reload_flag -o $output$reload_objs'
4673case $host_os in
4674  darwin*)
4675    if test "$GCC" = yes; then
4676      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4677    else
4678      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4679    fi
4680    ;;
4681esac
4682
4683echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4684echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4685if test "${lt_cv_path_NM+set}" = set; then
4686  echo $ECHO_N "(cached) $ECHO_C" >&6
4687else
4688  if test -n "$NM"; then
4689  # Let the user override the test.
4690  lt_cv_path_NM="$NM"
4691else
4692  lt_nm_to_check="${ac_tool_prefix}nm"
4693  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4694    lt_nm_to_check="$lt_nm_to_check nm"
4695  fi
4696  for lt_tmp_nm in $lt_nm_to_check; do
4697    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4698    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4699      IFS="$lt_save_ifs"
4700      test -z "$ac_dir" && ac_dir=.
4701      tmp_nm="$ac_dir/$lt_tmp_nm"
4702      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4703        # Check to see if the nm accepts a BSD-compat flag.
4704        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4705        #   nm: unknown option "B" ignored
4706        # Tru64's nm complains that /dev/null is an invalid object file
4707        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4708        */dev/null* | *'Invalid file or object type'*)
4709          lt_cv_path_NM="$tmp_nm -B"
4710          break
4711          ;;
4712        *)
4713          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4714          */dev/null*)
4715            lt_cv_path_NM="$tmp_nm -p"
4716            break
4717            ;;
4718          *)
4719            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4720            continue # so that we can try to find one that supports BSD flags
4721            ;;
4722          esac
4723          ;;
4724        esac
4725      fi
4726    done
4727    IFS="$lt_save_ifs"
4728  done
4729  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4730fi
4731fi
4732echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4733echo "${ECHO_T}$lt_cv_path_NM" >&6
4734NM="$lt_cv_path_NM"
4735
4736echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4737echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4738if test "${lt_cv_deplibs_check_method+set}" = set; then
4739  echo $ECHO_N "(cached) $ECHO_C" >&6
4740else
4741  lt_cv_file_magic_cmd='$MAGIC_CMD'
4742lt_cv_file_magic_test_file=
4743lt_cv_deplibs_check_method='unknown'
4744# Need to set the preceding variable on all platforms that support
4745# interlibrary dependencies.
4746# 'none' -- dependencies not supported.
4747# `unknown' -- same as none, but documents that we really don't know.
4748# 'pass_all' -- all dependencies passed with no checks.
4749# 'test_compile' -- check by making test program.
4750# 'file_magic [[regex]]' -- check by looking for files in library path
4751# which responds to the $file_magic_cmd with a given extended regex.
4752# If you have `file' or equivalent on your system and you're not sure
4753# whether `pass_all' will *always* work, you probably want this one.
4754
4755case $host_os in
4756aix4* | aix5*)
4757  lt_cv_deplibs_check_method=pass_all
4758  ;;
4759
4760beos*)
4761  lt_cv_deplibs_check_method=pass_all
4762  ;;
4763
4764bsdi[45]*)
4765  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4766  lt_cv_file_magic_cmd='/usr/bin/file -L'
4767  lt_cv_file_magic_test_file=/shlib/libc.so
4768  ;;
4769
4770cygwin*)
4771  # func_win32_libid is a shell function defined in ltmain.sh
4772  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4773  lt_cv_file_magic_cmd='func_win32_libid'
4774  ;;
4775
4776mingw* | pw32*)
4777  # Base MSYS/MinGW do not provide the 'file' command needed by
4778  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4779  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4780  lt_cv_file_magic_cmd='$OBJDUMP -f'
4781  ;;
4782
4783darwin* | rhapsody*)
4784  lt_cv_deplibs_check_method=pass_all
4785  ;;
4786
4787freebsd* | kfreebsd*-gnu | dragonfly*)
4788  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4789    case $host_cpu in
4790    i*86 )
4791      # Not sure whether the presence of OpenBSD here was a mistake.
4792      # Let's accept both of them until this is cleared up.
4793      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4794      lt_cv_file_magic_cmd=/usr/bin/file
4795      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4796      ;;
4797    esac
4798  else
4799    lt_cv_deplibs_check_method=pass_all
4800  fi
4801  ;;
4802
4803gnu*)
4804  lt_cv_deplibs_check_method=pass_all
4805  ;;
4806
4807hpux10.20* | hpux11*)
4808  lt_cv_file_magic_cmd=/usr/bin/file
4809  case $host_cpu in
4810  ia64*)
4811    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4812    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4813    ;;
4814  hppa*64*)
4815    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]'
4816    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4817    ;;
4818  *)
4819    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4820    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4821    ;;
4822  esac
4823  ;;
4824
4825interix3*)
4826  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4827  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4828  ;;
4829
4830irix5* | irix6* | nonstopux*)
4831  case $LD in
4832  *-32|*"-32 ") libmagic=32-bit;;
4833  *-n32|*"-n32 ") libmagic=N32;;
4834  *-64|*"-64 ") libmagic=64-bit;;
4835  *) libmagic=never-match;;
4836  esac
4837  lt_cv_deplibs_check_method=pass_all
4838  ;;
4839
4840# This must be Linux ELF.
4841linux*)
4842  lt_cv_deplibs_check_method=pass_all
4843  ;;
4844
4845netbsd*)
4846  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4847    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4848  else
4849    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4850  fi
4851  ;;
4852
4853newos6*)
4854  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4855  lt_cv_file_magic_cmd=/usr/bin/file
4856  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4857  ;;
4858
4859nto-qnx*)
4860  lt_cv_deplibs_check_method=unknown
4861  ;;
4862
4863openbsd*)
4864  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4865    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4866  else
4867    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4868  fi
4869  ;;
4870
4871osf3* | osf4* | osf5*)
4872  lt_cv_deplibs_check_method=pass_all
4873  ;;
4874
4875solaris*)
4876  lt_cv_deplibs_check_method=pass_all
4877  ;;
4878
4879sysv4 | sysv4.3*)
4880  case $host_vendor in
4881  motorola)
4882    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]'
4883    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4884    ;;
4885  ncr)
4886    lt_cv_deplibs_check_method=pass_all
4887    ;;
4888  sequent)
4889    lt_cv_file_magic_cmd='/bin/file'
4890    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4891    ;;
4892  sni)
4893    lt_cv_file_magic_cmd='/bin/file'
4894    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4895    lt_cv_file_magic_test_file=/lib/libc.so
4896    ;;
4897  siemens)
4898    lt_cv_deplibs_check_method=pass_all
4899    ;;
4900  pc)
4901    lt_cv_deplibs_check_method=pass_all
4902    ;;
4903  esac
4904  ;;
4905
4906sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4907  lt_cv_deplibs_check_method=pass_all
4908  ;;
4909esac
4910
4911fi
4912echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4913echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4914file_magic_cmd=$lt_cv_file_magic_cmd
4915deplibs_check_method=$lt_cv_deplibs_check_method
4916test -z "$deplibs_check_method" && deplibs_check_method=unknown
4917
4918
4919
4920
4921# If no C compiler was specified, use CC.
4922LTCC=${LTCC-"$CC"}
4923
4924# If no C compiler flags were specified, use CFLAGS.
4925LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4926
4927# Allow CC to be a program name with arguments.
4928compiler=$CC
4929
4930# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4931if test "${enable_libtool_lock+set}" = set; then
4932  enableval="$enable_libtool_lock"
4933
4934fi;
4935test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4936
4937# Some flags need to be propagated to the compiler or linker for good
4938# libtool support.
4939case $host in
4940ia64-*-hpux*)
4941  # Find out which ABI we are using.
4942  echo 'int i;' > conftest.$ac_ext
4943  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4944  (eval $ac_compile) 2>&5
4945  ac_status=$?
4946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947  (exit $ac_status); }; then
4948    case `/usr/bin/file conftest.$ac_objext` in
4949    *ELF-32*)
4950      HPUX_IA64_MODE="32"
4951      ;;
4952    *ELF-64*)
4953      HPUX_IA64_MODE="64"
4954      ;;
4955    esac
4956  fi
4957  rm -rf conftest*
4958  ;;
4959*-*-irix6*)
4960  # Find out which ABI we are using.
4961  echo '#line 4961 "configure"' > conftest.$ac_ext
4962  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4963  (eval $ac_compile) 2>&5
4964  ac_status=$?
4965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966  (exit $ac_status); }; then
4967   if test "$lt_cv_prog_gnu_ld" = yes; then
4968    case `/usr/bin/file conftest.$ac_objext` in
4969    *32-bit*)
4970      LD="${LD-ld} -melf32bsmip"
4971      ;;
4972    *N32*)
4973      LD="${LD-ld} -melf32bmipn32"
4974      ;;
4975    *64-bit*)
4976      LD="${LD-ld} -melf64bmip"
4977      ;;
4978    esac
4979   else
4980    case `/usr/bin/file conftest.$ac_objext` in
4981    *32-bit*)
4982      LD="${LD-ld} -32"
4983      ;;
4984    *N32*)
4985      LD="${LD-ld} -n32"
4986      ;;
4987    *64-bit*)
4988      LD="${LD-ld} -64"
4989      ;;
4990    esac
4991   fi
4992  fi
4993  rm -rf conftest*
4994  ;;
4995
4996x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4997  # Find out which ABI we are using.
4998  echo 'int i;' > conftest.$ac_ext
4999  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5000  (eval $ac_compile) 2>&5
5001  ac_status=$?
5002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003  (exit $ac_status); }; then
5004    case `/usr/bin/file conftest.o` in
5005    *32-bit*)
5006      case $host in
5007        x86_64-*linux*)
5008          LD="${LD-ld} -m elf_i386"
5009          ;;
5010        ppc64-*linux*|powerpc64-*linux*)
5011          LD="${LD-ld} -m elf32ppclinux"
5012          ;;
5013        s390x-*linux*)
5014          LD="${LD-ld} -m elf_s390"
5015          ;;
5016        sparc64-*linux*)
5017          LD="${LD-ld} -m elf32_sparc"
5018          ;;
5019      esac
5020      ;;
5021    *64-bit*)
5022      case $host in
5023        x86_64-*linux*)
5024          LD="${LD-ld} -m elf_x86_64"
5025          ;;
5026        ppc*-*linux*|powerpc*-*linux*)
5027          LD="${LD-ld} -m elf64ppc"
5028          ;;
5029        s390*-*linux*)
5030          LD="${LD-ld} -m elf64_s390"
5031          ;;
5032        sparc*-*linux*)
5033          LD="${LD-ld} -m elf64_sparc"
5034          ;;
5035      esac
5036      ;;
5037    esac
5038  fi
5039  rm -rf conftest*
5040  ;;
5041
5042*-*-sco3.2v5*)
5043  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5044  SAVE_CFLAGS="$CFLAGS"
5045  CFLAGS="$CFLAGS -belf"
5046  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5047echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5048if test "${lt_cv_cc_needs_belf+set}" = set; then
5049  echo $ECHO_N "(cached) $ECHO_C" >&6
5050else
5051  ac_ext=c
5052ac_cpp='$CPP $CPPFLAGS'
5053ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5054ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5055ac_compiler_gnu=$ac_cv_c_compiler_gnu
5056
5057     cat >conftest.$ac_ext <<_ACEOF
5058/* confdefs.h.  */
5059_ACEOF
5060cat confdefs.h >>conftest.$ac_ext
5061cat >>conftest.$ac_ext <<_ACEOF
5062/* end confdefs.h.  */
5063
5064int
5065main ()
5066{
5067
5068  ;
5069  return 0;
5070}
5071_ACEOF
5072rm -f conftest.$ac_objext conftest$ac_exeext
5073if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5074  (eval $ac_link) 2>conftest.er1
5075  ac_status=$?
5076  grep -v '^ *+' conftest.er1 >conftest.err
5077  rm -f conftest.er1
5078  cat conftest.err >&5
5079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5080  (exit $ac_status); } &&
5081         { ac_try='test -z "$ac_c_werror_flag"
5082                         || test ! -s conftest.err'
5083  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5084  (eval $ac_try) 2>&5
5085  ac_status=$?
5086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087  (exit $ac_status); }; } &&
5088         { ac_try='test -s conftest$ac_exeext'
5089  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5090  (eval $ac_try) 2>&5
5091  ac_status=$?
5092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093  (exit $ac_status); }; }; then
5094  lt_cv_cc_needs_belf=yes
5095else
5096  echo "$as_me: failed program was:" >&5
5097sed 's/^/| /' conftest.$ac_ext >&5
5098
5099lt_cv_cc_needs_belf=no
5100fi
5101rm -f conftest.err conftest.$ac_objext \
5102      conftest$ac_exeext conftest.$ac_ext
5103     ac_ext=c
5104ac_cpp='$CPP $CPPFLAGS'
5105ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5106ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5107ac_compiler_gnu=$ac_cv_c_compiler_gnu
5108
5109fi
5110echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5111echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5112  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5113    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5114    CFLAGS="$SAVE_CFLAGS"
5115  fi
5116  ;;
5117sparc*-*solaris*)
5118  # Find out which ABI we are using.
5119  echo 'int i;' > conftest.$ac_ext
5120  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5121  (eval $ac_compile) 2>&5
5122  ac_status=$?
5123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5124  (exit $ac_status); }; then
5125    case `/usr/bin/file conftest.o` in
5126    *64-bit*)
5127      case $lt_cv_prog_gnu_ld in
5128      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5129      *)    LD="${LD-ld} -64" ;;
5130      esac
5131      ;;
5132    esac
5133  fi
5134  rm -rf conftest*
5135  ;;
5136
5137
5138esac
5139
5140need_locks="$enable_libtool_lock"
5141
5142
5143ac_ext=c
5144ac_cpp='$CPP $CPPFLAGS'
5145ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5146ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5147ac_compiler_gnu=$ac_cv_c_compiler_gnu
5148echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5149echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5150# On Suns, sometimes $CPP names a directory.
5151if test -n "$CPP" && test -d "$CPP"; then
5152  CPP=
5153fi
5154if test -z "$CPP"; then
5155  if test "${ac_cv_prog_CPP+set}" = set; then
5156  echo $ECHO_N "(cached) $ECHO_C" >&6
5157else
5158      # Double quotes because CPP needs to be expanded
5159    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5160    do
5161      ac_preproc_ok=false
5162for ac_c_preproc_warn_flag in '' yes
5163do
5164  # Use a header file that comes with gcc, so configuring glibc
5165  # with a fresh cross-compiler works.
5166  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5167  # <limits.h> exists even on freestanding compilers.
5168  # On the NeXT, cc -E runs the code through the compiler's parser,
5169  # not just through cpp. "Syntax error" is here to catch this case.
5170  cat >conftest.$ac_ext <<_ACEOF
5171/* confdefs.h.  */
5172_ACEOF
5173cat confdefs.h >>conftest.$ac_ext
5174cat >>conftest.$ac_ext <<_ACEOF
5175/* end confdefs.h.  */
5176#ifdef __STDC__
5177# include <limits.h>
5178#else
5179# include <assert.h>
5180#endif
5181                     Syntax error
5182_ACEOF
5183if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5184  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5185  ac_status=$?
5186  grep -v '^ *+' conftest.er1 >conftest.err
5187  rm -f conftest.er1
5188  cat conftest.err >&5
5189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190  (exit $ac_status); } >/dev/null; then
5191  if test -s conftest.err; then
5192    ac_cpp_err=$ac_c_preproc_warn_flag
5193    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5194  else
5195    ac_cpp_err=
5196  fi
5197else
5198  ac_cpp_err=yes
5199fi
5200if test -z "$ac_cpp_err"; then
5201  :
5202else
5203  echo "$as_me: failed program was:" >&5
5204sed 's/^/| /' conftest.$ac_ext >&5
5205
5206  # Broken: fails on valid input.
5207continue
5208fi
5209rm -f conftest.err conftest.$ac_ext
5210
5211  # OK, works on sane cases.  Now check whether non-existent headers
5212  # can be detected and how.
5213  cat >conftest.$ac_ext <<_ACEOF
5214/* confdefs.h.  */
5215_ACEOF
5216cat confdefs.h >>conftest.$ac_ext
5217cat >>conftest.$ac_ext <<_ACEOF
5218/* end confdefs.h.  */
5219#include <ac_nonexistent.h>
5220_ACEOF
5221if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5222  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5223  ac_status=$?
5224  grep -v '^ *+' conftest.er1 >conftest.err
5225  rm -f conftest.er1
5226  cat conftest.err >&5
5227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228  (exit $ac_status); } >/dev/null; then
5229  if test -s conftest.err; then
5230    ac_cpp_err=$ac_c_preproc_warn_flag
5231    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5232  else
5233    ac_cpp_err=
5234  fi
5235else
5236  ac_cpp_err=yes
5237fi
5238if test -z "$ac_cpp_err"; then
5239  # Broken: success on invalid input.
5240continue
5241else
5242  echo "$as_me: failed program was:" >&5
5243sed 's/^/| /' conftest.$ac_ext >&5
5244
5245  # Passes both tests.
5246ac_preproc_ok=:
5247break
5248fi
5249rm -f conftest.err conftest.$ac_ext
5250
5251done
5252# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5253rm -f conftest.err conftest.$ac_ext
5254if $ac_preproc_ok; then
5255  break
5256fi
5257
5258    done
5259    ac_cv_prog_CPP=$CPP
5260
5261fi
5262  CPP=$ac_cv_prog_CPP
5263else
5264  ac_cv_prog_CPP=$CPP
5265fi
5266echo "$as_me:$LINENO: result: $CPP" >&5
5267echo "${ECHO_T}$CPP" >&6
5268ac_preproc_ok=false
5269for ac_c_preproc_warn_flag in '' yes
5270do
5271  # Use a header file that comes with gcc, so configuring glibc
5272  # with a fresh cross-compiler works.
5273  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5274  # <limits.h> exists even on freestanding compilers.
5275  # On the NeXT, cc -E runs the code through the compiler's parser,
5276  # not just through cpp. "Syntax error" is here to catch this case.
5277  cat >conftest.$ac_ext <<_ACEOF
5278/* confdefs.h.  */
5279_ACEOF
5280cat confdefs.h >>conftest.$ac_ext
5281cat >>conftest.$ac_ext <<_ACEOF
5282/* end confdefs.h.  */
5283#ifdef __STDC__
5284# include <limits.h>
5285#else
5286# include <assert.h>
5287#endif
5288                     Syntax error
5289_ACEOF
5290if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5291  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5292  ac_status=$?
5293  grep -v '^ *+' conftest.er1 >conftest.err
5294  rm -f conftest.er1
5295  cat conftest.err >&5
5296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297  (exit $ac_status); } >/dev/null; then
5298  if test -s conftest.err; then
5299    ac_cpp_err=$ac_c_preproc_warn_flag
5300    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5301  else
5302    ac_cpp_err=
5303  fi
5304else
5305  ac_cpp_err=yes
5306fi
5307if test -z "$ac_cpp_err"; then
5308  :
5309else
5310  echo "$as_me: failed program was:" >&5
5311sed 's/^/| /' conftest.$ac_ext >&5
5312
5313  # Broken: fails on valid input.
5314continue
5315fi
5316rm -f conftest.err conftest.$ac_ext
5317
5318  # OK, works on sane cases.  Now check whether non-existent headers
5319  # can be detected and how.
5320  cat >conftest.$ac_ext <<_ACEOF
5321/* confdefs.h.  */
5322_ACEOF
5323cat confdefs.h >>conftest.$ac_ext
5324cat >>conftest.$ac_ext <<_ACEOF
5325/* end confdefs.h.  */
5326#include <ac_nonexistent.h>
5327_ACEOF
5328if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5329  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5330  ac_status=$?
5331  grep -v '^ *+' conftest.er1 >conftest.err
5332  rm -f conftest.er1
5333  cat conftest.err >&5
5334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5335  (exit $ac_status); } >/dev/null; then
5336  if test -s conftest.err; then
5337    ac_cpp_err=$ac_c_preproc_warn_flag
5338    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5339  else
5340    ac_cpp_err=
5341  fi
5342else
5343  ac_cpp_err=yes
5344fi
5345if test -z "$ac_cpp_err"; then
5346  # Broken: success on invalid input.
5347continue
5348else
5349  echo "$as_me: failed program was:" >&5
5350sed 's/^/| /' conftest.$ac_ext >&5
5351
5352  # Passes both tests.
5353ac_preproc_ok=:
5354break
5355fi
5356rm -f conftest.err conftest.$ac_ext
5357
5358done
5359# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5360rm -f conftest.err conftest.$ac_ext
5361if $ac_preproc_ok; then
5362  :
5363else
5364  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5365See \`config.log' for more details." >&5
5366echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5367See \`config.log' for more details." >&2;}
5368   { (exit 1); exit 1; }; }
5369fi
5370
5371ac_ext=c
5372ac_cpp='$CPP $CPPFLAGS'
5373ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5374ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5375ac_compiler_gnu=$ac_cv_c_compiler_gnu
5376
5377
5378echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5379echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5380if test "${ac_cv_header_stdc+set}" = set; then
5381  echo $ECHO_N "(cached) $ECHO_C" >&6
5382else
5383  cat >conftest.$ac_ext <<_ACEOF
5384/* confdefs.h.  */
5385_ACEOF
5386cat confdefs.h >>conftest.$ac_ext
5387cat >>conftest.$ac_ext <<_ACEOF
5388/* end confdefs.h.  */
5389#include <stdlib.h>
5390#include <stdarg.h>
5391#include <string.h>
5392#include <float.h>
5393
5394int
5395main ()
5396{
5397
5398  ;
5399  return 0;
5400}
5401_ACEOF
5402rm -f conftest.$ac_objext
5403if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5404  (eval $ac_compile) 2>conftest.er1
5405  ac_status=$?
5406  grep -v '^ *+' conftest.er1 >conftest.err
5407  rm -f conftest.er1
5408  cat conftest.err >&5
5409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410  (exit $ac_status); } &&
5411         { ac_try='test -z "$ac_c_werror_flag"
5412                         || test ! -s conftest.err'
5413  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5414  (eval $ac_try) 2>&5
5415  ac_status=$?
5416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417  (exit $ac_status); }; } &&
5418         { ac_try='test -s conftest.$ac_objext'
5419  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5420  (eval $ac_try) 2>&5
5421  ac_status=$?
5422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5423  (exit $ac_status); }; }; then
5424  ac_cv_header_stdc=yes
5425else
5426  echo "$as_me: failed program was:" >&5
5427sed 's/^/| /' conftest.$ac_ext >&5
5428
5429ac_cv_header_stdc=no
5430fi
5431rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5432
5433if test $ac_cv_header_stdc = yes; then
5434  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5435  cat >conftest.$ac_ext <<_ACEOF
5436/* confdefs.h.  */
5437_ACEOF
5438cat confdefs.h >>conftest.$ac_ext
5439cat >>conftest.$ac_ext <<_ACEOF
5440/* end confdefs.h.  */
5441#include <string.h>
5442
5443_ACEOF
5444if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5445  $EGREP "memchr" >/dev/null 2>&1; then
5446  :
5447else
5448  ac_cv_header_stdc=no
5449fi
5450rm -f conftest*
5451
5452fi
5453
5454if test $ac_cv_header_stdc = yes; then
5455  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5456  cat >conftest.$ac_ext <<_ACEOF
5457/* confdefs.h.  */
5458_ACEOF
5459cat confdefs.h >>conftest.$ac_ext
5460cat >>conftest.$ac_ext <<_ACEOF
5461/* end confdefs.h.  */
5462#include <stdlib.h>
5463
5464_ACEOF
5465if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5466  $EGREP "free" >/dev/null 2>&1; then
5467  :
5468else
5469  ac_cv_header_stdc=no
5470fi
5471rm -f conftest*
5472
5473fi
5474
5475if test $ac_cv_header_stdc = yes; then
5476  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5477  if test "$cross_compiling" = yes; then
5478  :
5479else
5480  cat >conftest.$ac_ext <<_ACEOF
5481/* confdefs.h.  */
5482_ACEOF
5483cat confdefs.h >>conftest.$ac_ext
5484cat >>conftest.$ac_ext <<_ACEOF
5485/* end confdefs.h.  */
5486#include <ctype.h>
5487#if ((' ' & 0x0FF) == 0x020)
5488# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5489# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5490#else
5491# define ISLOWER(c) \
5492                   (('a' <= (c) && (c) <= 'i') \
5493                     || ('j' <= (c) && (c) <= 'r') \
5494                     || ('s' <= (c) && (c) <= 'z'))
5495# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5496#endif
5497
5498#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5499int
5500main ()
5501{
5502  int i;
5503  for (i = 0; i < 256; i++)
5504    if (XOR (islower (i), ISLOWER (i))
5505        || toupper (i) != TOUPPER (i))
5506      exit(2);
5507  exit (0);
5508}
5509_ACEOF
5510rm -f conftest$ac_exeext
5511if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5512  (eval $ac_link) 2>&5
5513  ac_status=$?
5514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5516  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5517  (eval $ac_try) 2>&5
5518  ac_status=$?
5519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520  (exit $ac_status); }; }; then
5521  :
5522else
5523  echo "$as_me: program exited with status $ac_status" >&5
5524echo "$as_me: failed program was:" >&5
5525sed 's/^/| /' conftest.$ac_ext >&5
5526
5527( exit $ac_status )
5528ac_cv_header_stdc=no
5529fi
5530rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5531fi
5532fi
5533fi
5534echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5535echo "${ECHO_T}$ac_cv_header_stdc" >&6
5536if test $ac_cv_header_stdc = yes; then
5537
5538cat >>confdefs.h <<\_ACEOF
5539#define STDC_HEADERS 1
5540_ACEOF
5541
5542fi
5543
5544# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5555                  inttypes.h stdint.h unistd.h
5556do
5557as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5558echo "$as_me:$LINENO: checking for $ac_header" >&5
5559echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5560if eval "test \"\${$as_ac_Header+set}\" = set"; then
5561  echo $ECHO_N "(cached) $ECHO_C" >&6
5562else
5563  cat >conftest.$ac_ext <<_ACEOF
5564/* confdefs.h.  */
5565_ACEOF
5566cat confdefs.h >>conftest.$ac_ext
5567cat >>conftest.$ac_ext <<_ACEOF
5568/* end confdefs.h.  */
5569$ac_includes_default
5570
5571#include <$ac_header>
5572_ACEOF
5573rm -f conftest.$ac_objext
5574if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5575  (eval $ac_compile) 2>conftest.er1
5576  ac_status=$?
5577  grep -v '^ *+' conftest.er1 >conftest.err
5578  rm -f conftest.er1
5579  cat conftest.err >&5
5580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5581  (exit $ac_status); } &&
5582         { ac_try='test -z "$ac_c_werror_flag"
5583                         || test ! -s conftest.err'
5584  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5585  (eval $ac_try) 2>&5
5586  ac_status=$?
5587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588  (exit $ac_status); }; } &&
5589         { ac_try='test -s conftest.$ac_objext'
5590  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5591  (eval $ac_try) 2>&5
5592  ac_status=$?
5593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594  (exit $ac_status); }; }; then
5595  eval "$as_ac_Header=yes"
5596else
5597  echo "$as_me: failed program was:" >&5
5598sed 's/^/| /' conftest.$ac_ext >&5
5599
5600eval "$as_ac_Header=no"
5601fi
5602rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5603fi
5604echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5605echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5606if test `eval echo '${'$as_ac_Header'}'` = yes; then
5607  cat >>confdefs.h <<_ACEOF
5608#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5609_ACEOF
5610
5611fi
5612
5613done
5614
5615
5616
5617for ac_header in dlfcn.h
5618do
5619as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5620if eval "test \"\${$as_ac_Header+set}\" = set"; then
5621  echo "$as_me:$LINENO: checking for $ac_header" >&5
5622echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5623if eval "test \"\${$as_ac_Header+set}\" = set"; then
5624  echo $ECHO_N "(cached) $ECHO_C" >&6
5625fi
5626echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5627echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5628else
5629  # Is the header compilable?
5630echo "$as_me:$LINENO: checking $ac_header usability" >&5
5631echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5632cat >conftest.$ac_ext <<_ACEOF
5633/* confdefs.h.  */
5634_ACEOF
5635cat confdefs.h >>conftest.$ac_ext
5636cat >>conftest.$ac_ext <<_ACEOF
5637/* end confdefs.h.  */
5638$ac_includes_default
5639#include <$ac_header>
5640_ACEOF
5641rm -f conftest.$ac_objext
5642if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5643  (eval $ac_compile) 2>conftest.er1
5644  ac_status=$?
5645  grep -v '^ *+' conftest.er1 >conftest.err
5646  rm -f conftest.er1
5647  cat conftest.err >&5
5648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649  (exit $ac_status); } &&
5650         { ac_try='test -z "$ac_c_werror_flag"
5651                         || test ! -s conftest.err'
5652  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5653  (eval $ac_try) 2>&5
5654  ac_status=$?
5655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5656  (exit $ac_status); }; } &&
5657         { ac_try='test -s conftest.$ac_objext'
5658  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5659  (eval $ac_try) 2>&5
5660  ac_status=$?
5661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662  (exit $ac_status); }; }; then
5663  ac_header_compiler=yes
5664else
5665  echo "$as_me: failed program was:" >&5
5666sed 's/^/| /' conftest.$ac_ext >&5
5667
5668ac_header_compiler=no
5669fi
5670rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5671echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5672echo "${ECHO_T}$ac_header_compiler" >&6
5673
5674# Is the header present?
5675echo "$as_me:$LINENO: checking $ac_header presence" >&5
5676echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5677cat >conftest.$ac_ext <<_ACEOF
5678/* confdefs.h.  */
5679_ACEOF
5680cat confdefs.h >>conftest.$ac_ext
5681cat >>conftest.$ac_ext <<_ACEOF
5682/* end confdefs.h.  */
5683#include <$ac_header>
5684_ACEOF
5685if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5686  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5687  ac_status=$?
5688  grep -v '^ *+' conftest.er1 >conftest.err
5689  rm -f conftest.er1
5690  cat conftest.err >&5
5691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5692  (exit $ac_status); } >/dev/null; then
5693  if test -s conftest.err; then
5694    ac_cpp_err=$ac_c_preproc_warn_flag
5695    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5696  else
5697    ac_cpp_err=
5698  fi
5699else
5700  ac_cpp_err=yes
5701fi
5702if test -z "$ac_cpp_err"; then
5703  ac_header_preproc=yes
5704else
5705  echo "$as_me: failed program was:" >&5
5706sed 's/^/| /' conftest.$ac_ext >&5
5707
5708  ac_header_preproc=no
5709fi
5710rm -f conftest.err conftest.$ac_ext
5711echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5712echo "${ECHO_T}$ac_header_preproc" >&6
5713
5714# So?  What about this header?
5715case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5716  yes:no: )
5717    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5718echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5719    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5720echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5721    ac_header_preproc=yes
5722    ;;
5723  no:yes:* )
5724    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5725echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5726    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5727echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5728    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5729echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5730    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5731echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5732    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5733echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5734    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5735echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5736    (
5737      cat <<\_ASBOX
5738## --------------------------------------------------------------- ##
5739## Report this to http://projects.coin-or.org/BuildTools/newticket ##
5740## --------------------------------------------------------------- ##
5741_ASBOX
5742    ) |
5743      sed "s/^/$as_me: WARNING:     /" >&2
5744    ;;
5745esac
5746echo "$as_me:$LINENO: checking for $ac_header" >&5
5747echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5748if eval "test \"\${$as_ac_Header+set}\" = set"; then
5749  echo $ECHO_N "(cached) $ECHO_C" >&6
5750else
5751  eval "$as_ac_Header=\$ac_header_preproc"
5752fi
5753echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5754echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5755
5756fi
5757if test `eval echo '${'$as_ac_Header'}'` = yes; then
5758  cat >>confdefs.h <<_ACEOF
5759#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5760_ACEOF
5761
5762fi
5763
5764done
5765
5766ac_ext=cc
5767ac_cpp='$CXXCPP $CPPFLAGS'
5768ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5769ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5770ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5771if test -n "$ac_tool_prefix"; then
5772  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5773  do
5774    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5775set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5776echo "$as_me:$LINENO: checking for $ac_word" >&5
5777echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5778if test "${ac_cv_prog_CXX+set}" = set; then
5779  echo $ECHO_N "(cached) $ECHO_C" >&6
5780else
5781  if test -n "$CXX"; then
5782  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5783else
5784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5785for as_dir in $PATH
5786do
5787  IFS=$as_save_IFS
5788  test -z "$as_dir" && as_dir=.
5789  for ac_exec_ext in '' $ac_executable_extensions; do
5790  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5791    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5792    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5793    break 2
5794  fi
5795done
5796done
5797
5798fi
5799fi
5800CXX=$ac_cv_prog_CXX
5801if test -n "$CXX"; then
5802  echo "$as_me:$LINENO: result: $CXX" >&5
5803echo "${ECHO_T}$CXX" >&6
5804else
5805  echo "$as_me:$LINENO: result: no" >&5
5806echo "${ECHO_T}no" >&6
5807fi
5808
5809    test -n "$CXX" && break
5810  done
5811fi
5812if test -z "$CXX"; then
5813  ac_ct_CXX=$CXX
5814  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5815do
5816  # Extract the first word of "$ac_prog", so it can be a program name with args.
5817set dummy $ac_prog; ac_word=$2
5818echo "$as_me:$LINENO: checking for $ac_word" >&5
5819echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5820if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5821  echo $ECHO_N "(cached) $ECHO_C" >&6
5822else
5823  if test -n "$ac_ct_CXX"; then
5824  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5825else
5826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5827for as_dir in $PATH
5828do
5829  IFS=$as_save_IFS
5830  test -z "$as_dir" && as_dir=.
5831  for ac_exec_ext in '' $ac_executable_extensions; do
5832  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5833    ac_cv_prog_ac_ct_CXX="$ac_prog"
5834    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5835    break 2
5836  fi
5837done
5838done
5839
5840fi
5841fi
5842ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5843if test -n "$ac_ct_CXX"; then
5844  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5845echo "${ECHO_T}$ac_ct_CXX" >&6
5846else
5847  echo "$as_me:$LINENO: result: no" >&5
5848echo "${ECHO_T}no" >&6
5849fi
5850
5851  test -n "$ac_ct_CXX" && break
5852done
5853test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5854
5855  CXX=$ac_ct_CXX
5856fi
5857
5858
5859# Provide some information about the compiler.
5860echo "$as_me:$LINENO:" \
5861     "checking for C++ compiler version" >&5
5862ac_compiler=`set X $ac_compile; echo $2`
5863{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5864  (eval $ac_compiler --version </dev/null >&5) 2>&5
5865  ac_status=$?
5866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867  (exit $ac_status); }
5868{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5869  (eval $ac_compiler -v </dev/null >&5) 2>&5
5870  ac_status=$?
5871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872  (exit $ac_status); }
5873{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5874  (eval $ac_compiler -V </dev/null >&5) 2>&5
5875  ac_status=$?
5876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877  (exit $ac_status); }
5878
5879echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5880echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5881if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5882  echo $ECHO_N "(cached) $ECHO_C" >&6
5883else
5884  cat >conftest.$ac_ext <<_ACEOF
5885/* confdefs.h.  */
5886_ACEOF
5887cat confdefs.h >>conftest.$ac_ext
5888cat >>conftest.$ac_ext <<_ACEOF
5889/* end confdefs.h.  */
5890
5891int
5892main ()
5893{
5894#ifndef __GNUC__
5895       choke me
5896#endif
5897
5898  ;
5899  return 0;
5900}
5901_ACEOF
5902rm -f conftest.$ac_objext
5903if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5904  (eval $ac_compile) 2>conftest.er1
5905  ac_status=$?
5906  grep -v '^ *+' conftest.er1 >conftest.err
5907  rm -f conftest.er1
5908  cat conftest.err >&5
5909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910  (exit $ac_status); } &&
5911         { ac_try='test -z "$ac_cxx_werror_flag"
5912                         || test ! -s conftest.err'
5913  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5914  (eval $ac_try) 2>&5
5915  ac_status=$?
5916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917  (exit $ac_status); }; } &&
5918         { ac_try='test -s conftest.$ac_objext'
5919  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5920  (eval $ac_try) 2>&5
5921  ac_status=$?
5922  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923  (exit $ac_status); }; }; then
5924  ac_compiler_gnu=yes
5925else
5926  echo "$as_me: failed program was:" >&5
5927sed 's/^/| /' conftest.$ac_ext >&5
5928
5929ac_compiler_gnu=no
5930fi
5931rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5932ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5933
5934fi
5935echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5936echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5937GXX=`test $ac_compiler_gnu = yes && echo yes`
5938ac_test_CXXFLAGS=${CXXFLAGS+set}
5939ac_save_CXXFLAGS=$CXXFLAGS
5940CXXFLAGS="-g"
5941echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5942echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5943if test "${ac_cv_prog_cxx_g+set}" = set; then
5944  echo $ECHO_N "(cached) $ECHO_C" >&6
5945else
5946  cat >conftest.$ac_ext <<_ACEOF
5947/* confdefs.h.  */
5948_ACEOF
5949cat confdefs.h >>conftest.$ac_ext
5950cat >>conftest.$ac_ext <<_ACEOF
5951/* end confdefs.h.  */
5952
5953int
5954main ()
5955{
5956
5957  ;
5958  return 0;
5959}
5960_ACEOF
5961rm -f conftest.$ac_objext
5962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5963  (eval $ac_compile) 2>conftest.er1
5964  ac_status=$?
5965  grep -v '^ *+' conftest.er1 >conftest.err
5966  rm -f conftest.er1
5967  cat conftest.err >&5
5968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969  (exit $ac_status); } &&
5970         { ac_try='test -z "$ac_cxx_werror_flag"
5971                         || test ! -s conftest.err'
5972  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5973  (eval $ac_try) 2>&5
5974  ac_status=$?
5975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976  (exit $ac_status); }; } &&
5977         { ac_try='test -s conftest.$ac_objext'
5978  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5979  (eval $ac_try) 2>&5
5980  ac_status=$?
5981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982  (exit $ac_status); }; }; then
5983  ac_cv_prog_cxx_g=yes
5984else
5985  echo "$as_me: failed program was:" >&5
5986sed 's/^/| /' conftest.$ac_ext >&5
5987
5988ac_cv_prog_cxx_g=no
5989fi
5990rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5991fi
5992echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5993echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5994if test "$ac_test_CXXFLAGS" = set; then
5995  CXXFLAGS=$ac_save_CXXFLAGS
5996elif test $ac_cv_prog_cxx_g = yes; then
5997  if test "$GXX" = yes; then
5998    CXXFLAGS="-g -O2"
5999  else
6000    CXXFLAGS="-g"
6001  fi
6002else
6003  if test "$GXX" = yes; then
6004    CXXFLAGS="-O2"
6005  else
6006    CXXFLAGS=
6007  fi
6008fi
6009for ac_declaration in \
6010   '' \
6011   'extern "C" void std::exit (int) throw (); using std::exit;' \
6012   'extern "C" void std::exit (int); using std::exit;' \
6013   'extern "C" void exit (int) throw ();' \
6014   'extern "C" void exit (int);' \
6015   'void exit (int);'
6016do
6017  cat >conftest.$ac_ext <<_ACEOF
6018/* confdefs.h.  */
6019_ACEOF
6020cat confdefs.h >>conftest.$ac_ext
6021cat >>conftest.$ac_ext <<_ACEOF
6022/* end confdefs.h.  */
6023$ac_declaration
6024#include <stdlib.h>
6025int
6026main ()
6027{
6028exit (42);
6029  ;
6030  return 0;
6031}
6032_ACEOF
6033rm -f conftest.$ac_objext
6034if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6035  (eval $ac_compile) 2>conftest.er1
6036  ac_status=$?
6037  grep -v '^ *+' conftest.er1 >conftest.err
6038  rm -f conftest.er1
6039  cat conftest.err >&5
6040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041  (exit $ac_status); } &&
6042         { ac_try='test -z "$ac_cxx_werror_flag"
6043                         || test ! -s conftest.err'
6044  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6045  (eval $ac_try) 2>&5
6046  ac_status=$?
6047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048  (exit $ac_status); }; } &&
6049         { ac_try='test -s conftest.$ac_objext'
6050  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6051  (eval $ac_try) 2>&5
6052  ac_status=$?
6053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054  (exit $ac_status); }; }; then
6055  :
6056else
6057  echo "$as_me: failed program was:" >&5
6058sed 's/^/| /' conftest.$ac_ext >&5
6059
6060continue
6061fi
6062rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6063  cat >conftest.$ac_ext <<_ACEOF
6064/* confdefs.h.  */
6065_ACEOF
6066cat confdefs.h >>conftest.$ac_ext
6067cat >>conftest.$ac_ext <<_ACEOF
6068/* end confdefs.h.  */
6069$ac_declaration
6070int
6071main ()
6072{
6073exit (42);
6074  ;
6075  return 0;
6076}
6077_ACEOF
6078rm -f conftest.$ac_objext
6079if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6080  (eval $ac_compile) 2>conftest.er1
6081  ac_status=$?
6082  grep -v '^ *+' conftest.er1 >conftest.err
6083  rm -f conftest.er1
6084  cat conftest.err >&5
6085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086  (exit $ac_status); } &&
6087         { ac_try='test -z "$ac_cxx_werror_flag"
6088                         || test ! -s conftest.err'
6089  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6090  (eval $ac_try) 2>&5
6091  ac_status=$?
6092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093  (exit $ac_status); }; } &&
6094         { ac_try='test -s conftest.$ac_objext'
6095  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6096  (eval $ac_try) 2>&5
6097  ac_status=$?
6098  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099  (exit $ac_status); }; }; then
6100  break
6101else
6102  echo "$as_me: failed program was:" >&5
6103sed 's/^/| /' conftest.$ac_ext >&5
6104
6105fi
6106rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6107done
6108rm -f conftest*
6109if test -n "$ac_declaration"; then
6110  echo '#ifdef __cplusplus' >>confdefs.h
6111  echo $ac_declaration      >>confdefs.h
6112  echo '#endif'             >>confdefs.h
6113fi
6114
6115ac_ext=cc
6116ac_cpp='$CXXCPP $CPPFLAGS'
6117ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6118ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6119ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6120
6121depcc="$CXX"  am_compiler_list=
6122
6123echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6124echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6125if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6126  echo $ECHO_N "(cached) $ECHO_C" >&6
6127else
6128  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6129  # We make a subdir and do the tests there.  Otherwise we can end up
6130  # making bogus files that we don't know about and never remove.  For
6131  # instance it was reported that on HP-UX the gcc test will end up
6132  # making a dummy file named `D' -- because `-MD' means `put the output
6133  # in D'.
6134  mkdir conftest.dir
6135  # Copy depcomp to subdir because otherwise we won't find it if we're
6136  # using a relative directory.
6137  cp "$am_depcomp" conftest.dir
6138  cd conftest.dir
6139  # We will build objects and dependencies in a subdirectory because
6140  # it helps to detect inapplicable dependency modes.  For instance
6141  # both Tru64's cc and ICC support -MD to output dependencies as a
6142  # side effect of compilation, but ICC will put the dependencies in
6143  # the current directory while Tru64 will put them in the object
6144  # directory.
6145  mkdir sub
6146
6147  am_cv_CXX_dependencies_compiler_type=none
6148  if test "$am_compiler_list" = ""; then
6149     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6150  fi
6151  for depmode in $am_compiler_list; do
6152    # Setup a source with many dependencies, because some compilers
6153    # like to wrap large dependency lists on column 80 (with \), and
6154    # we should not choose a depcomp mode which is confused by this.
6155    #
6156    # We need to recreate these files for each test, as the compiler may
6157    # overwrite some of them when testing with obscure command lines.
6158    # This happens at least with the AIX C compiler.
6159    : > sub/conftest.c
6160    for i in 1 2 3 4 5 6; do
6161      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6162      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6163      # Solaris 8's {/usr,}/bin/sh.
6164      touch sub/conftst$i.h
6165    done
6166    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6167
6168    case $depmode in
6169    nosideeffect)
6170      # after this tag, mechanisms are not by side-effect, so they'll
6171      # only be used when explicitly requested
6172      if test "x$enable_dependency_tracking" = xyes; then
6173        continue
6174      else
6175        break
6176      fi
6177      ;;
6178    none) break ;;
6179    esac
6180    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6181    # mode.  It turns out that the SunPro C++ compiler does not properly
6182    # handle `-M -o', and we need to detect this.
6183    if depmode=$depmode \
6184       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6185       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6186       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6187         >/dev/null 2>conftest.err &&
6188       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6189       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6190       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6191      # icc doesn't choke on unknown options, it will just issue warnings
6192      # or remarks (even with -Werror).  So we grep stderr for any message
6193      # that says an option was ignored or not supported.
6194      # When given -MP, icc 7.0 and 7.1 complain thusly:
6195      #   icc: Command line warning: ignoring option '-M'; no argument required
6196      # The diagnosis changed in icc 8.0:
6197      #   icc: Command line remark: option '-MP' not supported
6198      if (grep 'ignoring option' conftest.err ||
6199          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6200        am_cv_CXX_dependencies_compiler_type=$depmode
6201        break
6202      fi
6203    fi
6204  done
6205
6206  cd ..
6207  rm -rf conftest.dir
6208else
6209  am_cv_CXX_dependencies_compiler_type=none
6210fi
6211
6212fi
6213echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6214echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
6215CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6216
6217
6218
6219if
6220  test "x$enable_dependency_tracking" != xno \
6221  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6222  am__fastdepCXX_TRUE=
6223  am__fastdepCXX_FALSE='#'
6224else
6225  am__fastdepCXX_TRUE='#'
6226  am__fastdepCXX_FALSE=
6227fi
6228
6229
6230
6231
6232if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6233    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6234    (test "X$CXX" != "Xg++"))) ; then
6235  ac_ext=cc
6236ac_cpp='$CXXCPP $CPPFLAGS'
6237ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6238ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6239ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6240echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6241echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6242if test -z "$CXXCPP"; then
6243  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6244  echo $ECHO_N "(cached) $ECHO_C" >&6
6245else
6246      # Double quotes because CXXCPP needs to be expanded
6247    for CXXCPP in "$CXX -E" "/lib/cpp"
6248    do
6249      ac_preproc_ok=false
6250for ac_cxx_preproc_warn_flag in '' yes
6251do
6252  # Use a header file that comes with gcc, so configuring glibc
6253  # with a fresh cross-compiler works.
6254  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6255  # <limits.h> exists even on freestanding compilers.
6256  # On the NeXT, cc -E runs the code through the compiler's parser,
6257  # not just through cpp. "Syntax error" is here to catch this case.
6258  cat >conftest.$ac_ext <<_ACEOF
6259/* confdefs.h.  */
6260_ACEOF
6261cat confdefs.h >>conftest.$ac_ext
6262cat >>conftest.$ac_ext <<_ACEOF
6263/* end confdefs.h.  */
6264#ifdef __STDC__
6265# include <limits.h>
6266#else
6267# include <assert.h>
6268#endif
6269                     Syntax error
6270_ACEOF
6271if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6272  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6273  ac_status=$?
6274  grep -v '^ *+' conftest.er1 >conftest.err
6275  rm -f conftest.er1
6276  cat conftest.err >&5
6277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6278  (exit $ac_status); } >/dev/null; then
6279  if test -s conftest.err; then
6280    ac_cpp_err=$ac_cxx_preproc_warn_flag
6281    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6282  else
6283    ac_cpp_err=
6284  fi
6285else
6286  ac_cpp_err=yes
6287fi
6288if test -z "$ac_cpp_err"; then
6289  :
6290else
6291  echo "$as_me: failed program was:" >&5
6292sed 's/^/| /' conftest.$ac_ext >&5
6293
6294  # Broken: fails on valid input.
6295continue
6296fi
6297rm -f conftest.err conftest.$ac_ext
6298
6299  # OK, works on sane cases.  Now check whether non-existent headers
6300  # can be detected and how.
6301  cat >conftest.$ac_ext <<_ACEOF
6302/* confdefs.h.  */
6303_ACEOF
6304cat confdefs.h >>conftest.$ac_ext
6305cat >>conftest.$ac_ext <<_ACEOF
6306/* end confdefs.h.  */
6307#include <ac_nonexistent.h>
6308_ACEOF
6309if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6310  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6311  ac_status=$?
6312  grep -v '^ *+' conftest.er1 >conftest.err
6313  rm -f conftest.er1
6314  cat conftest.err >&5
6315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316  (exit $ac_status); } >/dev/null; then
6317  if test -s conftest.err; then
6318    ac_cpp_err=$ac_cxx_preproc_warn_flag
6319    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6320  else
6321    ac_cpp_err=
6322  fi
6323else
6324  ac_cpp_err=yes
6325fi
6326if test -z "$ac_cpp_err"; then
6327  # Broken: success on invalid input.
6328continue
6329else
6330  echo "$as_me: failed program was:" >&5
6331sed 's/^/| /' conftest.$ac_ext >&5
6332
6333  # Passes both tests.
6334ac_preproc_ok=:
6335break
6336fi
6337rm -f conftest.err conftest.$ac_ext
6338
6339done
6340# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6341rm -f conftest.err conftest.$ac_ext
6342if $ac_preproc_ok; then
6343  break
6344fi
6345
6346    done
6347    ac_cv_prog_CXXCPP=$CXXCPP
6348
6349fi
6350  CXXCPP=$ac_cv_prog_CXXCPP
6351else
6352  ac_cv_prog_CXXCPP=$CXXCPP
6353fi
6354echo "$as_me:$LINENO: result: $CXXCPP" >&5
6355echo "${ECHO_T}$CXXCPP" >&6
6356ac_preproc_ok=false
6357for ac_cxx_preproc_warn_flag in '' yes
6358do
6359  # Use a header file that comes with gcc, so configuring glibc
6360  # with a fresh cross-compiler works.
6361  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6362  # <limits.h> exists even on freestanding compilers.
6363  # On the NeXT, cc -E runs the code through the compiler's parser,
6364  # not just through cpp. "Syntax error" is here to catch this case.
6365  cat >conftest.$ac_ext <<_ACEOF
6366/* confdefs.h.  */
6367_ACEOF
6368cat confdefs.h >>conftest.$ac_ext
6369cat >>conftest.$ac_ext <<_ACEOF
6370/* end confdefs.h.  */
6371#ifdef __STDC__
6372# include <limits.h>
6373#else
6374# include <assert.h>
6375#endif
6376                     Syntax error
6377_ACEOF
6378if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6379  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6380  ac_status=$?
6381  grep -v '^ *+' conftest.er1 >conftest.err
6382  rm -f conftest.er1
6383  cat conftest.err >&5
6384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385  (exit $ac_status); } >/dev/null; then
6386  if test -s conftest.err; then
6387    ac_cpp_err=$ac_cxx_preproc_warn_flag
6388    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6389  else
6390    ac_cpp_err=
6391  fi
6392else
6393  ac_cpp_err=yes
6394fi
6395if test -z "$ac_cpp_err"; then
6396  :
6397else
6398  echo "$as_me: failed program was:" >&5
6399sed 's/^/| /' conftest.$ac_ext >&5
6400
6401  # Broken: fails on valid input.
6402continue
6403fi
6404rm -f conftest.err conftest.$ac_ext
6405
6406  # OK, works on sane cases.  Now check whether non-existent headers
6407  # can be detected and how.
6408  cat >conftest.$ac_ext <<_ACEOF
6409/* confdefs.h.  */
6410_ACEOF
6411cat confdefs.h >>conftest.$ac_ext
6412cat >>conftest.$ac_ext <<_ACEOF
6413/* end confdefs.h.  */
6414#include <ac_nonexistent.h>
6415_ACEOF
6416if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6417  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6418  ac_status=$?
6419  grep -v '^ *+' conftest.er1 >conftest.err
6420  rm -f conftest.er1
6421  cat conftest.err >&5
6422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423  (exit $ac_status); } >/dev/null; then
6424  if test -s conftest.err; then
6425    ac_cpp_err=$ac_cxx_preproc_warn_flag
6426    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6427  else
6428    ac_cpp_err=
6429  fi
6430else
6431  ac_cpp_err=yes
6432fi
6433if test -z "$ac_cpp_err"; then
6434  # Broken: success on invalid input.
6435continue
6436else
6437  echo "$as_me: failed program was:" >&5
6438sed 's/^/| /' conftest.$ac_ext >&5
6439
6440  # Passes both tests.
6441ac_preproc_ok=:
6442break
6443fi
6444rm -f conftest.err conftest.$ac_ext
6445
6446done
6447# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6448rm -f conftest.err conftest.$ac_ext
6449if $ac_preproc_ok; then
6450  :
6451else
6452  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6453See \`config.log' for more details." >&5
6454echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6455See \`config.log' for more details." >&2;}
6456   { (exit 1); exit 1; }; }
6457fi
6458
6459ac_ext=cc
6460ac_cpp='$CXXCPP $CPPFLAGS'
6461ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6462ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6463ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6464
6465fi
6466
6467
6468ac_ext=f
6469ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6470ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6471ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6472if test -n "$ac_tool_prefix"; then
6473  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6474  do
6475    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6476set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6477echo "$as_me:$LINENO: checking for $ac_word" >&5
6478echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6479if test "${ac_cv_prog_F77+set}" = set; then
6480  echo $ECHO_N "(cached) $ECHO_C" >&6
6481else
6482  if test -n "$F77"; then
6483  ac_cv_prog_F77="$F77" # Let the user override the test.
6484else
6485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6486for as_dir in $PATH
6487do
6488  IFS=$as_save_IFS
6489  test -z "$as_dir" && as_dir=.
6490  for ac_exec_ext in '' $ac_executable_extensions; do
6491  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6492    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6493    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6494    break 2
6495  fi
6496done
6497done
6498
6499fi
6500fi
6501F77=$ac_cv_prog_F77
6502if test -n "$F77"; then
6503  echo "$as_me:$LINENO: result: $F77" >&5
6504echo "${ECHO_T}$F77" >&6
6505else
6506  echo "$as_me:$LINENO: result: no" >&5
6507echo "${ECHO_T}no" >&6
6508fi
6509
6510    test -n "$F77" && break
6511  done
6512fi
6513if test -z "$F77"; then
6514  ac_ct_F77=$F77
6515  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6516do
6517  # Extract the first word of "$ac_prog", so it can be a program name with args.
6518set dummy $ac_prog; ac_word=$2
6519echo "$as_me:$LINENO: checking for $ac_word" >&5
6520echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6521if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6522  echo $ECHO_N "(cached) $ECHO_C" >&6
6523else
6524  if test -n "$ac_ct_F77"; then
6525  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6526else
6527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6528for as_dir in $PATH
6529do
6530  IFS=$as_save_IFS
6531  test -z "$as_dir" && as_dir=.
6532  for ac_exec_ext in '' $ac_executable_extensions; do
6533  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6534    ac_cv_prog_ac_ct_F77="$ac_prog"
6535    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6536    break 2
6537  fi
6538done
6539done
6540
6541fi
6542fi
6543ac_ct_F77=$ac_cv_prog_ac_ct_F77
6544if test -n "$ac_ct_F77"; then
6545  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6546echo "${ECHO_T}$ac_ct_F77" >&6
6547else
6548  echo "$as_me:$LINENO: result: no" >&5
6549echo "${ECHO_T}no" >&6
6550fi
6551
6552  test -n "$ac_ct_F77" && break
6553done
6554
6555  F77=$ac_ct_F77
6556fi
6557
6558
6559# Provide some information about the compiler.
6560echo "$as_me:6560:" \
6561     "checking for Fortran 77 compiler version" >&5
6562ac_compiler=`set X $ac_compile; echo $2`
6563{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6564  (eval $ac_compiler --version </dev/null >&5) 2>&5
6565  ac_status=$?
6566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6567  (exit $ac_status); }
6568{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6569  (eval $ac_compiler -v </dev/null >&5) 2>&5
6570  ac_status=$?
6571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6572  (exit $ac_status); }
6573{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6574  (eval $ac_compiler -V </dev/null >&5) 2>&5
6575  ac_status=$?
6576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6577  (exit $ac_status); }
6578rm -f a.out
6579
6580# If we don't use `.F' as extension, the preprocessor is not run on the
6581# input file.  (Note that this only needs to work for GNU compilers.)
6582ac_save_ext=$ac_ext
6583ac_ext=F
6584echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6585echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6586if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6587  echo $ECHO_N "(cached) $ECHO_C" >&6
6588else
6589  cat >conftest.$ac_ext <<_ACEOF
6590      program main
6591#ifndef __GNUC__
6592       choke me
6593#endif
6594
6595      end
6596_ACEOF
6597rm -f conftest.$ac_objext
6598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6599  (eval $ac_compile) 2>conftest.er1
6600  ac_status=$?
6601  grep -v '^ *+' conftest.er1 >conftest.err
6602  rm -f conftest.er1
6603  cat conftest.err >&5
6604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605  (exit $ac_status); } &&
6606         { ac_try='test -z "$ac_f77_werror_flag"
6607                         || test ! -s conftest.err'
6608  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6609  (eval $ac_try) 2>&5
6610  ac_status=$?
6611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612  (exit $ac_status); }; } &&
6613         { ac_try='test -s conftest.$ac_objext'
6614  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6615  (eval $ac_try) 2>&5
6616  ac_status=$?
6617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6618  (exit $ac_status); }; }; then
6619  ac_compiler_gnu=yes
6620else
6621  echo "$as_me: failed program was:" >&5
6622sed 's/^/| /' conftest.$ac_ext >&5
6623
6624ac_compiler_gnu=no
6625fi
6626rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6627ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6628
6629fi
6630echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6631echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6632ac_ext=$ac_save_ext
6633ac_test_FFLAGS=${FFLAGS+set}
6634ac_save_FFLAGS=$FFLAGS
6635FFLAGS=
6636echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6637echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6638if test "${ac_cv_prog_f77_g+set}" = set; then
6639  echo $ECHO_N "(cached) $ECHO_C" >&6
6640else
6641  FFLAGS=-g
6642cat >conftest.$ac_ext <<_ACEOF
6643      program main
6644
6645      end
6646_ACEOF
6647rm -f conftest.$ac_objext
6648if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6649  (eval $ac_compile) 2>conftest.er1
6650  ac_status=$?
6651  grep -v '^ *+' conftest.er1 >conftest.err
6652  rm -f conftest.er1
6653  cat conftest.err >&5
6654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655  (exit $ac_status); } &&
6656         { ac_try='test -z "$ac_f77_werror_flag"
6657                         || test ! -s conftest.err'
6658  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6659  (eval $ac_try) 2>&5
6660  ac_status=$?
6661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6662  (exit $ac_status); }; } &&
6663         { ac_try='test -s conftest.$ac_objext'
6664  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6665  (eval $ac_try) 2>&5
6666  ac_status=$?
6667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6668  (exit $ac_status); }; }; then
6669  ac_cv_prog_f77_g=yes
6670else
6671  echo "$as_me: failed program was:" >&5
6672sed 's/^/| /' conftest.$ac_ext >&5
6673
6674ac_cv_prog_f77_g=no
6675fi
6676rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6677
6678fi
6679echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6680echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6681if test "$ac_test_FFLAGS" = set; then
6682  FFLAGS=$ac_save_FFLAGS
6683elif test $ac_cv_prog_f77_g = yes; then
6684  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6685    FFLAGS="-g -O2"
6686  else
6687    FFLAGS="-g"
6688  fi
6689else
6690  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6691    FFLAGS="-O2"
6692  else
6693    FFLAGS=
6694  fi
6695fi
6696
6697G77=`test $ac_compiler_gnu = yes && echo yes`
6698ac_ext=c
6699ac_cpp='$CPP $CPPFLAGS'
6700ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6701ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6702ac_compiler_gnu=$ac_cv_c_compiler_gnu
6703
6704
6705
6706# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6707
6708# find the maximum length of command line arguments
6709echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6710echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6711if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6712  echo $ECHO_N "(cached) $ECHO_C" >&6
6713else
6714    i=0
6715  teststring="ABCD"
6716
6717  case $build_os in
6718  msdosdjgpp*)
6719    # On DJGPP, this test can blow up pretty badly due to problems in libc
6720    # (any single argument exceeding 2000 bytes causes a buffer overrun
6721    # during glob expansion).  Even if it were fixed, the result of this
6722    # check would be larger than it should be.
6723    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6724    ;;
6725
6726  gnu*)
6727    # Under GNU Hurd, this test is not required because there is
6728    # no limit to the length of command line arguments.
6729    # Libtool will interpret -1 as no limit whatsoever
6730    lt_cv_sys_max_cmd_len=-1;
6731    ;;
6732
6733  cygwin* | mingw*)
6734    # On Win9x/ME, this test blows up -- it succeeds, but takes
6735    # about 5 minutes as the teststring grows exponentially.
6736    # Worse, since 9x/ME are not pre-emptively multitasking,
6737    # you end up with a "frozen" computer, even though with patience
6738    # the test eventually succeeds (with a max line length of 256k).
6739    # Instead, let's just punt: use the minimum linelength reported by
6740    # all of the supported platforms: 8192 (on NT/2K/XP).
6741    lt_cv_sys_max_cmd_len=8192;
6742    ;;
6743
6744  amigaos*)
6745    # On AmigaOS with pdksh, this test takes hours, literally.
6746    # So we just punt and use a minimum line length of 8192.
6747    lt_cv_sys_max_cmd_len=8192;
6748    ;;
6749
6750  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6751    # This has been around since 386BSD, at least.  Likely further.
6752    if test -x /sbin/sysctl; then
6753      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6754    elif test -x /usr/sbin/sysctl; then
6755      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6756    else
6757      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6758    fi
6759    # And add a safety zone
6760    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6761    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6762    ;;
6763
6764  interix*)
6765    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6766    lt_cv_sys_max_cmd_len=196608
6767    ;;
6768
6769  osf*)
6770    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6771    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6772    # nice to cause kernel panics so lets avoid the loop below.
6773    # First set a reasonable default.
6774    lt_cv_sys_max_cmd_len=16384
6775    #
6776    if test -x /sbin/sysconfig; then
6777      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6778        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6779      esac
6780    fi
6781    ;;
6782  sco3.2v5*)
6783    lt_cv_sys_max_cmd_len=102400
6784    ;;
6785  sysv5* | sco5v6* | sysv4.2uw2*)
6786    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6787    if test -n "$kargmax"; then
6788      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6789    else
6790      lt_cv_sys_max_cmd_len=32768
6791    fi
6792    ;;
6793  *)
6794    # If test is not a shell built-in, we'll probably end up computing a
6795    # maximum length that is only half of the actual maximum length, but
6796    # we can't tell.
6797    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6798    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6799               = "XX$teststring") >/dev/null 2>&1 &&
6800            new_result=`expr "X$teststring" : ".*" 2>&1` &&
6801            lt_cv_sys_max_cmd_len=$new_result &&
6802            test $i != 17 # 1/2 MB should be enough
6803    do
6804      i=`expr $i + 1`
6805      teststring=$teststring$teststring
6806    done
6807    teststring=
6808    # Add a significant safety factor because C++ compilers can tack on massive
6809    # amounts of additional arguments before passing them to the linker.
6810    # It appears as though 1/2 is a usable value.
6811    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6812    ;;
6813  esac
6814
6815fi
6816
6817if test -n $lt_cv_sys_max_cmd_len ; then
6818  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6819echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6820else
6821  echo "$as_me:$LINENO: result: none" >&5
6822echo "${ECHO_T}none" >&6
6823fi
6824
6825
6826
6827
6828# Check for command to grab the raw symbol name followed by C symbol from nm.
6829echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6830echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6831if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6832  echo $ECHO_N "(cached) $ECHO_C" >&6
6833else
6834
6835# These are sane defaults that work on at least a few old systems.
6836# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6837
6838# Character class describing NM global symbol codes.
6839symcode='[BCDEGRST]'
6840
6841# Regexp to match symbols that can be accessed directly from C.
6842sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6843
6844# Transform an extracted symbol line into a proper C declaration
6845lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6846
6847# Transform an extracted symbol line into symbol name and symbol address
6848lt_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'"
6849
6850# Define system-specific variables.
6851case $host_os in
6852aix*)
6853  symcode='[BCDT]'
6854  ;;
6855cygwin* | mingw* | pw32*)
6856  symcode='[ABCDGISTW]'
6857  ;;
6858hpux*) # Its linker distinguishes data from code symbols
6859  if test "$host_cpu" = ia64; then
6860    symcode='[ABCDEGRST]'
6861  fi
6862  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6863  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'"
6864  ;;
6865linux*)
6866  if test "$host_cpu" = ia64; then
6867    symcode='[ABCDGIRSTW]'
6868    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6869    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'"
6870  fi
6871  ;;
6872irix* | nonstopux*)
6873  symcode='[BCDEGRST]'
6874  ;;
6875osf*)
6876  symcode='[BCDEGQRST]'
6877  ;;
6878solaris*)
6879  symcode='[BDRT]'
6880  ;;
6881sco3.2v5*)
6882  symcode='[DT]'
6883  ;;
6884sysv4.2uw2*)
6885  symcode='[DT]'
6886  ;;
6887sysv5* | sco5v6* | unixware* | OpenUNIX*)
6888  symcode='[ABDT]'
6889  ;;
6890sysv4)
6891  symcode='[DFNSTU]'
6892  ;;
6893esac
6894
6895# Handle CRLF in mingw tool chain
6896opt_cr=
6897case $build_os in
6898mingw*)
6899  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6900  ;;
6901esac
6902
6903# If we're using GNU nm, then use its standard symbol codes.
6904case `$NM -V 2>&1` in
6905*GNU* | *'with BFD'*)
6906  symcode='[ABCDGIRSTW]' ;;
6907esac
6908
6909# Try without a prefix undercore, then with it.
6910for ac_symprfx in "" "_"; do
6911
6912  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6913  symxfrm="\\1 $ac_symprfx\\2 \\2"
6914
6915  # Write the raw and C identifiers.
6916  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6917
6918  # Check to see that the pipe works correctly.
6919  pipe_works=no
6920
6921  rm -f conftest*
6922  cat > conftest.$ac_ext <<EOF
6923#ifdef __cplusplus
6924extern "C" {
6925#endif
6926char nm_test_var;
6927void nm_test_func(){}
6928#ifdef __cplusplus
6929}
6930#endif
6931int main(){nm_test_var='a';nm_test_func();return(0);}
6932EOF
6933
6934  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6935  (eval $ac_compile) 2>&5
6936  ac_status=$?
6937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6938  (exit $ac_status); }; then
6939    # Now try to grab the symbols.
6940    nlist=conftest.nm
6941    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6942  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6943  ac_status=$?
6944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6945  (exit $ac_status); } && test -s "$nlist"; then
6946      # Try sorting and uniquifying the output.
6947      if sort "$nlist" | uniq > "$nlist"T; then
6948        mv -f "$nlist"T "$nlist"
6949      else
6950        rm -f "$nlist"T
6951      fi
6952
6953      # Make sure that we snagged all the symbols we need.
6954      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6955        if grep ' nm_test_func$' "$nlist" >/dev/null; then
6956          cat <<EOF > conftest.$ac_ext
6957#ifdef __cplusplus
6958extern "C" {
6959#endif
6960
6961EOF
6962          # Now generate the symbol file.
6963          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6964
6965          cat <<EOF >> conftest.$ac_ext
6966#if defined (__STDC__) && __STDC__
6967# define lt_ptr_t void *
6968#else
6969# define lt_ptr_t char *
6970# define const
6971#endif
6972
6973/* The mapping between symbol names and symbols. */
6974const struct {
6975  const char *name;
6976  lt_ptr_t address;
6977}
6978lt_preloaded_symbols[] =
6979{
6980EOF
6981          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6982          cat <<\EOF >> conftest.$ac_ext
6983  {0, (lt_ptr_t) 0}
6984};
6985
6986#ifdef __cplusplus
6987}
6988#endif
6989EOF
6990          # Now try linking the two files.
6991          mv conftest.$ac_objext conftstm.$ac_objext
6992          lt_save_LIBS="$LIBS"
6993          lt_save_CFLAGS="$CFLAGS"
6994          LIBS="conftstm.$ac_objext"
6995          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6996          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6997  (eval $ac_link) 2>&5
6998  ac_status=$?
6999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7001            pipe_works=yes
7002          fi
7003          LIBS="$lt_save_LIBS"
7004          CFLAGS="$lt_save_CFLAGS"
7005        else
7006          echo "cannot find nm_test_func in $nlist" >&5
7007        fi
7008      else
7009        echo "cannot find nm_test_var in $nlist" >&5
7010      fi
7011    else
7012      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7013    fi
7014  else
7015    echo "$progname: failed program was:" >&5
7016    cat conftest.$ac_ext >&5
7017  fi
7018  rm -f conftest* conftst*
7019
7020  # Do not use the global_symbol_pipe unless it works.
7021  if test "$pipe_works" = yes; then
7022    break
7023  else
7024    lt_cv_sys_global_symbol_pipe=
7025  fi
7026done
7027
7028fi
7029
7030if test -z "$lt_cv_sys_global_symbol_pipe"; then
7031  lt_cv_sys_global_symbol_to_cdecl=
7032fi
7033if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7034  echo "$as_me:$LINENO: result: failed" >&5
7035echo "${ECHO_T}failed" >&6
7036else
7037  echo "$as_me:$LINENO: result: ok" >&5
7038echo "${ECHO_T}ok" >&6
7039fi
7040
7041echo "$as_me:$LINENO: checking for objdir" >&5
7042echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7043if test "${lt_cv_objdir+set}" = set; then
7044  echo $ECHO_N "(cached) $ECHO_C" >&6
7045else
7046  rm -f .libs 2>/dev/null
7047mkdir .libs 2>/dev/null
7048if test -d .libs; then
7049  lt_cv_objdir=.libs
7050else
7051  # MS-DOS does not allow filenames that begin with a dot.
7052  lt_cv_objdir=_libs
7053fi
7054rmdir .libs 2>/dev/null
7055fi
7056echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7057echo "${ECHO_T}$lt_cv_objdir" >&6
7058objdir=$lt_cv_objdir
7059
7060
7061
7062
7063
7064case $host_os in
7065aix3*)
7066  # AIX sometimes has problems with the GCC collect2 program.  For some
7067  # reason, if we set the COLLECT_NAMES environment variable, the problems
7068  # vanish in a puff of smoke.
7069  if test "X${COLLECT_NAMES+set}" != Xset; then
7070    COLLECT_NAMES=
7071    export COLLECT_NAMES
7072  fi
7073  ;;
7074esac
7075
7076# Sed substitution that helps us do robust quoting.  It backslashifies
7077# metacharacters that are still active within double-quoted strings.
7078Xsed='sed -e 1s/^X//'
7079sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7080
7081# Same as above, but do not quote variable references.
7082double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7083
7084# Sed substitution to delay expansion of an escaped shell variable in a
7085# double_quote_subst'ed string.
7086delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7087
7088# Sed substitution to avoid accidental globbing in evaled expressions
7089no_glob_subst='s/\*/\\\*/g'
7090
7091# Constants:
7092rm="rm -f"
7093
7094# Global variables:
7095default_ofile=libtool
7096can_build_shared=yes
7097
7098# All known linkers require a `.a' archive for static linking (except MSVC,
7099# which needs '.lib').
7100libext=a
7101ltmain="$ac_aux_dir/ltmain.sh"
7102ofile="$default_ofile"
7103with_gnu_ld="$lt_cv_prog_gnu_ld"
7104
7105if test -n "$ac_tool_prefix"; then
7106  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7107set dummy ${ac_tool_prefix}ar; ac_word=$2
7108echo "$as_me:$LINENO: checking for $ac_word" >&5
7109echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7110if test "${ac_cv_prog_AR+set}" = set; then
7111  echo $ECHO_N "(cached) $ECHO_C" >&6
7112else
7113  if test -n "$AR"; then
7114  ac_cv_prog_AR="$AR" # Let the user override the test.
7115else
7116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7117for as_dir in $PATH
7118do
7119  IFS=$as_save_IFS
7120  test -z "$as_dir" && as_dir=.
7121  for ac_exec_ext in '' $ac_executable_extensions; do
7122  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7123    ac_cv_prog_AR="${ac_tool_prefix}ar"
7124    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7125    break 2
7126  fi
7127done
7128done
7129
7130fi
7131fi
7132AR=$ac_cv_prog_AR
7133if test -n "$AR"; then
7134  echo "$as_me:$LINENO: result: $AR" >&5
7135echo "${ECHO_T}$AR" >&6
7136else
7137  echo "$as_me:$LINENO: result: no" >&5
7138echo "${ECHO_T}no" >&6
7139fi
7140
7141fi
7142if test -z "$ac_cv_prog_AR"; then
7143  ac_ct_AR=$AR
7144  # Extract the first word of "ar", so it can be a program name with args.
7145set dummy ar; ac_word=$2
7146echo "$as_me:$LINENO: checking for $ac_word" >&5
7147echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7148if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7149  echo $ECHO_N "(cached) $ECHO_C" >&6
7150else
7151  if test -n "$ac_ct_AR"; then
7152  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7153else
7154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7155for as_dir in $PATH
7156do
7157  IFS=$as_save_IFS
7158  test -z "$as_dir" && as_dir=.
7159  for ac_exec_ext in '' $ac_executable_extensions; do
7160  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7161    ac_cv_prog_ac_ct_AR="ar"
7162    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7163    break 2
7164  fi
7165done
7166done
7167
7168  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7169fi
7170fi
7171ac_ct_AR=$ac_cv_prog_ac_ct_AR
7172if test -n "$ac_ct_AR"; then
7173  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7174echo "${ECHO_T}$ac_ct_AR" >&6
7175else
7176  echo "$as_me:$LINENO: result: no" >&5
7177echo "${ECHO_T}no" >&6
7178fi
7179
7180  AR=$ac_ct_AR
7181else
7182  AR="$ac_cv_prog_AR"
7183fi
7184
7185if test -n "$ac_tool_prefix"; then
7186  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7187set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7188echo "$as_me:$LINENO: checking for $ac_word" >&5
7189echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7190if test "${ac_cv_prog_RANLIB+set}" = set; then
7191  echo $ECHO_N "(cached) $ECHO_C" >&6
7192else
7193  if test -n "$RANLIB"; then
7194  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7195else
7196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7197for as_dir in $PATH
7198do
7199  IFS=$as_save_IFS
7200  test -z "$as_dir" && as_dir=.
7201  for ac_exec_ext in '' $ac_executable_extensions; do
7202  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7203    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7204    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7205    break 2
7206  fi
7207done
7208done
7209
7210fi
7211fi
7212RANLIB=$ac_cv_prog_RANLIB
7213if test -n "$RANLIB"; then
7214  echo "$as_me:$LINENO: result: $RANLIB" >&5
7215echo "${ECHO_T}$RANLIB" >&6
7216else
7217  echo "$as_me:$LINENO: result: no" >&5
7218echo "${ECHO_T}no" >&6
7219fi
7220
7221fi
7222if test -z "$ac_cv_prog_RANLIB"; then
7223  ac_ct_RANLIB=$RANLIB
7224  # Extract the first word of "ranlib", so it can be a program name with args.
7225set dummy ranlib; ac_word=$2
7226echo "$as_me:$LINENO: checking for $ac_word" >&5
7227echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7228if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7229  echo $ECHO_N "(cached) $ECHO_C" >&6
7230else
7231  if test -n "$ac_ct_RANLIB"; then
7232  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7233else
7234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7235for as_dir in $PATH
7236do
7237  IFS=$as_save_IFS
7238  test -z "$as_dir" && as_dir=.
7239  for ac_exec_ext in '' $ac_executable_extensions; do
7240  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7241    ac_cv_prog_ac_ct_RANLIB="ranlib"
7242    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7243    break 2
7244  fi
7245done
7246done
7247
7248  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7249fi
7250fi
7251ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7252if test -n "$ac_ct_RANLIB"; then
7253  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7254echo "${ECHO_T}$ac_ct_RANLIB" >&6
7255else
7256  echo "$as_me:$LINENO: result: no" >&5
7257echo "${ECHO_T}no" >&6
7258fi
7259
7260  RANLIB=$ac_ct_RANLIB
7261else
7262  RANLIB="$ac_cv_prog_RANLIB"
7263fi
7264
7265if test -n "$ac_tool_prefix"; then
7266  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7267set dummy ${ac_tool_prefix}strip; ac_word=$2
7268echo "$as_me:$LINENO: checking for $ac_word" >&5
7269echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7270if test "${ac_cv_prog_STRIP+set}" = set; then
7271  echo $ECHO_N "(cached) $ECHO_C" >&6
7272else
7273  if test -n "$STRIP"; then
7274  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7275else
7276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7277for as_dir in $PATH
7278do
7279  IFS=$as_save_IFS
7280  test -z "$as_dir" && as_dir=.
7281  for ac_exec_ext in '' $ac_executable_extensions; do
7282  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7283    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7284    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7285    break 2
7286  fi
7287done
7288done
7289
7290fi
7291fi
7292STRIP=$ac_cv_prog_STRIP
7293if test -n "$STRIP"; then
7294  echo "$as_me:$LINENO: result: $STRIP" >&5
7295echo "${ECHO_T}$STRIP" >&6
7296else
7297  echo "$as_me:$LINENO: result: no" >&5
7298echo "${ECHO_T}no" >&6
7299fi
7300
7301fi
7302if test -z "$ac_cv_prog_STRIP"; then
7303  ac_ct_STRIP=$STRIP
7304  # Extract the first word of "strip", so it can be a program name with args.
7305set dummy strip; ac_word=$2
7306echo "$as_me:$LINENO: checking for $ac_word" >&5
7307echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7308if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7309  echo $ECHO_N "(cached) $ECHO_C" >&6
7310else
7311  if test -n "$ac_ct_STRIP"; then
7312  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7313else
7314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7315for as_dir in $PATH
7316do
7317  IFS=$as_save_IFS
7318  test -z "$as_dir" && as_dir=.
7319  for ac_exec_ext in '' $ac_executable_extensions; do
7320  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7321    ac_cv_prog_ac_ct_STRIP="strip"
7322    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7323    break 2
7324  fi
7325done
7326done
7327
7328  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7329fi
7330fi
7331ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7332if test -n "$ac_ct_STRIP"; then
7333  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7334echo "${ECHO_T}$ac_ct_STRIP" >&6
7335else
7336  echo "$as_me:$LINENO: result: no" >&5
7337echo "${ECHO_T}no" >&6
7338fi
7339
7340  STRIP=$ac_ct_STRIP
7341else
7342  STRIP="$ac_cv_prog_STRIP"
7343fi
7344
7345
7346old_CC="$CC"
7347old_CFLAGS="$CFLAGS"
7348
7349# Set sane defaults for various variables
7350test -z "$AR" && AR=ar
7351test -z "$AR_FLAGS" && AR_FLAGS=cru
7352test -z "$AS" && AS=as
7353test -z "$CC" && CC=cc
7354test -z "$LTCC" && LTCC=$CC
7355test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7356test -z "$DLLTOOL" && DLLTOOL=dlltool
7357test -z "$LD" && LD=ld
7358test -z "$LN_S" && LN_S="ln -s"
7359test -z "$MAGIC_CMD" && MAGIC_CMD=file
7360test -z "$NM" && NM=nm
7361test -z "$SED" && SED=sed
7362test -z "$OBJDUMP" && OBJDUMP=objdump
7363test -z "$RANLIB" && RANLIB=:
7364test -z "$STRIP" && STRIP=:
7365test -z "$ac_objext" && ac_objext=o
7366
7367# Determine commands to create old-style static archives.
7368old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7369old_postinstall_cmds='chmod 644 $oldlib'
7370old_postuninstall_cmds=
7371
7372if test -n "$RANLIB"; then
7373  case $host_os in
7374  openbsd*)
7375    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7376    ;;
7377  *)
7378    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7379    ;;
7380  esac
7381  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7382fi
7383
7384for cc_temp in $compiler""; do
7385  case $cc_temp in
7386    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7387    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7388    \-*) ;;
7389    *) break;;
7390  esac
7391done
7392cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7393
7394
7395# Only perform the check for file, if the check method requires it
7396case $deplibs_check_method in
7397file_magic*)
7398  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7399    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7400echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7401if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7402  echo $ECHO_N "(cached) $ECHO_C" >&6
7403else
7404  case $MAGIC_CMD in
7405[\\/*] |  ?:[\\/]*)
7406  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7407  ;;
7408*)
7409  lt_save_MAGIC_CMD="$MAGIC_CMD"
7410  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7411  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7412  for ac_dir in $ac_dummy; do
7413    IFS="$lt_save_ifs"
7414    test -z "$ac_dir" && ac_dir=.
7415    if test -f $ac_dir/${ac_tool_prefix}file; then
7416      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7417      if test -n "$file_magic_test_file"; then
7418        case $deplibs_check_method in
7419        "file_magic "*)
7420          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7421          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7422          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7423            $EGREP "$file_magic_regex" > /dev/null; then
7424            :
7425          else
7426            cat <<EOF 1>&2
7427
7428*** Warning: the command libtool uses to detect shared libraries,
7429*** $file_magic_cmd, produces output that libtool cannot recognize.
7430*** The result is that libtool may fail to recognize shared libraries
7431*** as such.  This will affect the creation of libtool libraries that
7432*** depend on shared libraries, but programs linked with such libtool
7433*** libraries will work regardless of this problem.  Nevertheless, you
7434*** may want to report the problem to your system manager and/or to
7435*** bug-libtool@gnu.org
7436
7437EOF
7438          fi ;;
7439        esac
7440      fi
7441      break
7442    fi
7443  done
7444  IFS="$lt_save_ifs"
7445  MAGIC_CMD="$lt_save_MAGIC_CMD"
7446  ;;
7447esac
7448fi
7449
7450MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7451if test -n "$MAGIC_CMD"; then
7452  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7453echo "${ECHO_T}$MAGIC_CMD" >&6
7454else
7455  echo "$as_me:$LINENO: result: no" >&5
7456echo "${ECHO_T}no" >&6
7457fi
7458
7459if test -z "$lt_cv_path_MAGIC_CMD"; then
7460  if test -n "$ac_tool_prefix"; then
7461    echo "$as_me:$LINENO: checking for file" >&5
7462echo $ECHO_N "checking for file... $ECHO_C" >&6
7463if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7464  echo $ECHO_N "(cached) $ECHO_C" >&6
7465else
7466  case $MAGIC_CMD in
7467[\\/*] |  ?:[\\/]*)
7468  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7469  ;;
7470*)
7471  lt_save_MAGIC_CMD="$MAGIC_CMD"
7472  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7473  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7474  for ac_dir in $ac_dummy; do
7475    IFS="$lt_save_ifs"
7476    test -z "$ac_dir" && ac_dir=.
7477    if test -f $ac_dir/file; then
7478      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7479      if test -n "$file_magic_test_file"; then
7480        case $deplibs_check_method in
7481        "file_magic "*)
7482          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7483          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7484          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7485            $EGREP "$file_magic_regex" > /dev/null; then
7486            :
7487          else
7488            cat <<EOF 1>&2
7489
7490*** Warning: the command libtool uses to detect shared libraries,
7491*** $file_magic_cmd, produces output that libtool cannot recognize.
7492*** The result is that libtool may fail to recognize shared libraries
7493*** as such.  This will affect the creation of libtool libraries that
7494*** depend on shared libraries, but programs linked with such libtool
7495*** libraries will work regardless of this problem.  Nevertheless, you
7496*** may want to report the problem to your system manager and/or to
7497*** bug-libtool@gnu.org
7498
7499EOF
7500          fi ;;
7501        esac
7502      fi
7503      break
7504    fi
7505  done
7506  IFS="$lt_save_ifs"
7507  MAGIC_CMD="$lt_save_MAGIC_CMD"
7508  ;;
7509esac
7510fi
7511
7512MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7513if test -n "$MAGIC_CMD"; then
7514  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7515echo "${ECHO_T}$MAGIC_CMD" >&6
7516else
7517  echo "$as_me:$LINENO: result: no" >&5
7518echo "${ECHO_T}no" >&6
7519fi
7520
7521  else
7522    MAGIC_CMD=:
7523  fi
7524fi
7525
7526  fi
7527  ;;
7528esac
7529
7530enable_dlopen=no
7531enable_win32_dll=no
7532
7533# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7534if test "${enable_libtool_lock+set}" = set; then
7535  enableval="$enable_libtool_lock"
7536
7537fi;
7538test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7539
7540
7541# Check whether --with-pic or --without-pic was given.
7542if test "${with_pic+set}" = set; then
7543  withval="$with_pic"
7544  pic_mode="$withval"
7545else
7546  pic_mode=default
7547fi;
7548test -z "$pic_mode" && pic_mode=default
7549
7550# Use C for the default configuration in the libtool script
7551tagname=
7552lt_save_CC="$CC"
7553ac_ext=c
7554ac_cpp='$CPP $CPPFLAGS'
7555ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7556ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7557ac_compiler_gnu=$ac_cv_c_compiler_gnu
7558
7559
7560# Source file extension for C test sources.
7561ac_ext=c
7562
7563# Object file extension for compiled C test sources.
7564objext=o
7565objext=$objext
7566
7567# Code to be used in simple compile tests
7568lt_simple_compile_test_code="int some_variable = 0;\n"
7569
7570# Code to be used in simple link tests
7571lt_simple_link_test_code='int main(){return(0);}\n'
7572
7573
7574# If no C compiler was specified, use CC.
7575LTCC=${LTCC-"$CC"}
7576
7577# If no C compiler flags were specified, use CFLAGS.
7578LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7579
7580# Allow CC to be a program name with arguments.
7581compiler=$CC
7582
7583
7584# save warnings/boilerplate of simple test code
7585ac_outfile=conftest.$ac_objext
7586printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7587eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7588_lt_compiler_boilerplate=`cat conftest.err`
7589$rm conftest*
7590
7591ac_outfile=conftest.$ac_objext
7592printf "$lt_simple_link_test_code" >conftest.$ac_ext
7593eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7594_lt_linker_boilerplate=`cat conftest.err`
7595$rm conftest*
7596
7597
7598## CAVEAT EMPTOR:
7599## There is no encapsulation within the following macros, do not change
7600## the running order or otherwise move them around unless you know exactly
7601## what you are doing...
7602
7603lt_prog_compiler_no_builtin_flag=
7604
7605if test "$GCC" = yes; then
7606  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7607
7608
7609echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7610echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7611if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7612  echo $ECHO_N "(cached) $ECHO_C" >&6
7613else
7614  lt_cv_prog_compiler_rtti_exceptions=no
7615  ac_outfile=conftest.$ac_objext
7616   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7617   lt_compiler_flag="-fno-rtti -fno-exceptions"
7618   # Insert the option either (1) after the last *FLAGS variable, or
7619   # (2) before a word containing "conftest.", or (3) at the end.
7620   # Note that $ac_compile itself does not contain backslashes and begins
7621   # with a dollar sign (not a hyphen), so the echo should work correctly.
7622   # The option is referenced via a variable to avoid confusing sed.
7623   lt_compile=`echo "$ac_compile" | $SED \
7624   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7625   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7626   -e 's:$: $lt_compiler_flag:'`
7627   (eval echo "\"\$as_me:7627: $lt_compile\"" >&5)
7628   (eval "$lt_compile" 2>conftest.err)
7629   ac_status=$?
7630   cat conftest.err >&5
7631   echo "$as_me:7631: \$? = $ac_status" >&5
7632   if (exit $ac_status) && test -s "$ac_outfile"; then
7633     # The compiler can only warn and ignore the option if not recognized
7634     # So say no if there are warnings other than the usual output.
7635     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7636     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7637     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7638       lt_cv_prog_compiler_rtti_exceptions=yes
7639     fi
7640   fi
7641   $rm conftest*
7642
7643fi
7644echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7645echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7646
7647if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7648    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7649else
7650    :
7651fi
7652
7653fi
7654
7655lt_prog_compiler_wl=
7656lt_prog_compiler_pic=
7657lt_prog_compiler_static=
7658
7659echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7660echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7661
7662  if test "$GCC" = yes; then
7663    lt_prog_compiler_wl='-Wl,'
7664    lt_prog_compiler_static='-static'
7665
7666    case $host_os in
7667      aix*)
7668      # All AIX code is PIC.
7669      if test "$host_cpu" = ia64; then
7670        # AIX 5 now supports IA64 processor
7671        lt_prog_compiler_static='-Bstatic'
7672      fi
7673      ;;
7674
7675    amigaos*)
7676      # FIXME: we need at least 68020 code to build shared libraries, but
7677      # adding the `-m68020' flag to GCC prevents building anything better,
7678      # like `-m68040'.
7679      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7680      ;;
7681
7682    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7683      # PIC is the default for these OSes.
7684      ;;
7685
7686    mingw* | pw32* | os2*)
7687      # This hack is so that the source file can tell whether it is being
7688      # built for inclusion in a dll (and should export symbols for example).
7689      lt_prog_compiler_pic='-DDLL_EXPORT'
7690      ;;
7691
7692    darwin* | rhapsody*)
7693      # PIC is the default on this platform
7694      # Common symbols not allowed in MH_DYLIB files
7695      lt_prog_compiler_pic='-fno-common'
7696      ;;
7697
7698    interix3*)
7699      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7700      # Instead, we relocate shared libraries at runtime.
7701      ;;
7702
7703    msdosdjgpp*)
7704      # Just because we use GCC doesn't mean we suddenly get shared libraries
7705      # on systems that don't support them.
7706      lt_prog_compiler_can_build_shared=no
7707      enable_shared=no
7708      ;;
7709
7710    sysv4*MP*)
7711      if test -d /usr/nec; then
7712        lt_prog_compiler_pic=-Kconform_pic
7713      fi
7714      ;;
7715
7716    hpux*)
7717      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7718      # not for PA HP-UX.
7719      case $host_cpu in
7720      hppa*64*|ia64*)
7721        # +Z the default
7722        ;;
7723      *)
7724        lt_prog_compiler_pic='-fPIC'
7725        ;;
7726      esac
7727      ;;
7728
7729    *)
7730      lt_prog_compiler_pic='-fPIC'
7731      ;;
7732    esac
7733  else
7734    # PORTME Check for flag to pass linker flags through the system compiler.
7735    case $host_os in
7736    aix*)
7737      lt_prog_compiler_wl='-Wl,'
7738      if test "$host_cpu" = ia64; then
7739        # AIX 5 now supports IA64 processor
7740        lt_prog_compiler_static='-Bstatic'
7741      else
7742        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7743      fi
7744      ;;
7745      darwin*)
7746        # PIC is the default on this platform
7747        # Common symbols not allowed in MH_DYLIB files
7748       case $cc_basename in
7749         xlc*)
7750         lt_prog_compiler_pic='-qnocommon'
7751         lt_prog_compiler_wl='-Wl,'
7752         ;;
7753       esac
7754       ;;
7755
7756    mingw* | pw32* | os2*)
7757      # This hack is so that the source file can tell whether it is being
7758      # built for inclusion in a dll (and should export symbols for example).
7759      lt_prog_compiler_pic='-DDLL_EXPORT'
7760      ;;
7761
7762    hpux9* | hpux10* | hpux11*)
7763      lt_prog_compiler_wl='-Wl,'
7764      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7765      # not for PA HP-UX.
7766      case $host_cpu in
7767      hppa*64*|ia64*)
7768        # +Z the default
7769        ;;
7770      *)
7771        lt_prog_compiler_pic='+Z'
7772        ;;
7773      esac
7774      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7775      lt_prog_compiler_static='${wl}-a ${wl}archive'
7776      ;;
7777
7778    irix5* | irix6* | nonstopux*)
7779      lt_prog_compiler_wl='-Wl,'
7780      # PIC (with -KPIC) is the default.
7781      lt_prog_compiler_static='-non_shared'
7782      ;;
7783
7784    newsos6)
7785      lt_prog_compiler_pic='-KPIC'
7786      lt_prog_compiler_static='-Bstatic'
7787      ;;
7788
7789    linux*)
7790      case $cc_basename in
7791      icc* | ecc*)
7792        lt_prog_compiler_wl='-Wl,'
7793        lt_prog_compiler_pic='-KPIC'
7794        lt_prog_compiler_static='-static'
7795        ;;
7796      pgcc* | pgf77* | pgf90* | pgf95*)
7797        # Portland Group compilers (*not* the Pentium gcc compiler,
7798        # which looks to be a dead project)
7799        lt_prog_compiler_wl='-Wl,'
7800        lt_prog_compiler_pic='-fpic'
7801        lt_prog_compiler_static='-Bstatic'
7802        ;;
7803      ccc*)
7804        lt_prog_compiler_wl='-Wl,'
7805        # All Alpha code is PIC.
7806        lt_prog_compiler_static='-non_shared'
7807        ;;
7808      esac
7809      ;;
7810
7811    osf3* | osf4* | osf5*)
7812      lt_prog_compiler_wl='-Wl,'
7813      # All OSF/1 code is PIC.
7814      lt_prog_compiler_static='-non_shared'
7815      ;;
7816
7817    solaris*)
7818      lt_prog_compiler_pic='-KPIC'
7819      lt_prog_compiler_static='-Bstatic'
7820      case $cc_basename in
7821      f77* | f90* | f95*)
7822        lt_prog_compiler_wl='-Qoption ld ';;
7823      *)
7824        lt_prog_compiler_wl='-Wl,';;
7825      esac
7826      ;;
7827
7828    sunos4*)
7829      lt_prog_compiler_wl='-Qoption ld '
7830      lt_prog_compiler_pic='-PIC'
7831      lt_prog_compiler_static='-Bstatic'
7832      ;;
7833
7834    sysv4 | sysv4.2uw2* | sysv4.3*)
7835      lt_prog_compiler_wl='-Wl,'
7836      lt_prog_compiler_pic='-KPIC'
7837      lt_prog_compiler_static='-Bstatic'
7838      ;;
7839
7840    sysv4*MP*)
7841      if test -d /usr/nec ;then
7842        lt_prog_compiler_pic='-Kconform_pic'
7843        lt_prog_compiler_static='-Bstatic'
7844      fi
7845      ;;
7846
7847    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7848      lt_prog_compiler_wl='-Wl,'
7849      lt_prog_compiler_pic='-KPIC'
7850      lt_prog_compiler_static='-Bstatic'
7851      ;;
7852
7853    unicos*)
7854      lt_prog_compiler_wl='-Wl,'
7855      lt_prog_compiler_can_build_shared=no
7856      ;;
7857
7858    uts4*)
7859      lt_prog_compiler_pic='-pic'
7860      lt_prog_compiler_static='-Bstatic'
7861      ;;
7862
7863    *)
7864      lt_prog_compiler_can_build_shared=no
7865      ;;
7866    esac
7867  fi
7868
7869echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7870echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7871
7872#
7873# Check to make sure the PIC flag actually works.
7874#
7875if test -n "$lt_prog_compiler_pic"; then
7876
7877echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7878echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7879if test "${lt_prog_compiler_pic_works+set}" = set; then
7880  echo $ECHO_N "(cached) $ECHO_C" >&6
7881else
7882  lt_prog_compiler_pic_works=no
7883  ac_outfile=conftest.$ac_objext
7884   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7885   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7886   # Insert the option either (1) after the last *FLAGS variable, or
7887   # (2) before a word containing "conftest.", or (3) at the end.
7888   # Note that $ac_compile itself does not contain backslashes and begins
7889   # with a dollar sign (not a hyphen), so the echo should work correctly.
7890   # The option is referenced via a variable to avoid confusing sed.
7891   lt_compile=`echo "$ac_compile" | $SED \
7892   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7893   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7894   -e 's:$: $lt_compiler_flag:'`
7895   (eval echo "\"\$as_me:7895: $lt_compile\"" >&5)
7896   (eval "$lt_compile" 2>conftest.err)
7897   ac_status=$?
7898   cat conftest.err >&5
7899   echo "$as_me:7899: \$? = $ac_status" >&5
7900   if (exit $ac_status) && test -s "$ac_outfile"; then
7901     # The compiler can only warn and ignore the option if not recognized
7902     # So say no if there are warnings other than the usual output.
7903     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7904     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7905     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7906       lt_prog_compiler_pic_works=yes
7907     fi
7908   fi
7909   $rm conftest*
7910
7911fi
7912echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7913echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7914
7915if test x"$lt_prog_compiler_pic_works" = xyes; then
7916    case $lt_prog_compiler_pic in
7917     "" | " "*) ;;
7918     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7919     esac
7920else
7921    lt_prog_compiler_pic=
7922     lt_prog_compiler_can_build_shared=no
7923fi
7924
7925fi
7926case $host_os in
7927  # For platforms which do not support PIC, -DPIC is meaningless:
7928  *djgpp*)
7929    lt_prog_compiler_pic=
7930    ;;
7931  *)
7932    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7933    ;;
7934esac
7935
7936#
7937# Check to make sure the static flag actually works.
7938#
7939wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7940echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7941echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7942if test "${lt_prog_compiler_static_works+set}" = set; then
7943  echo $ECHO_N "(cached) $ECHO_C" >&6
7944else
7945  lt_prog_compiler_static_works=no
7946   save_LDFLAGS="$LDFLAGS"
7947   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7948   printf "$lt_simple_link_test_code" > conftest.$ac_ext
7949   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7950     # The linker can only warn and ignore the option if not recognized
7951     # So say no if there are warnings
7952     if test -s conftest.err; then
7953       # Append any errors to the config.log.
7954       cat conftest.err 1>&5
7955       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7956       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7957       if diff conftest.exp conftest.er2 >/dev/null; then
7958         lt_prog_compiler_static_works=yes
7959       fi
7960     else
7961       lt_prog_compiler_static_works=yes
7962     fi
7963   fi
7964   $rm conftest*
7965   LDFLAGS="$save_LDFLAGS"
7966
7967fi
7968echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7969echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7970
7971if test x"$lt_prog_compiler_static_works" = xyes; then
7972    :
7973else
7974    lt_prog_compiler_static=
7975fi
7976
7977
7978echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7979echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7980if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7981  echo $ECHO_N "(cached) $ECHO_C" >&6
7982else
7983  lt_cv_prog_compiler_c_o=no
7984   $rm -r conftest 2>/dev/null
7985   mkdir conftest
7986   cd conftest
7987   mkdir out
7988   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7989
7990   lt_compiler_flag="-o out/conftest2.$ac_objext"
7991   # Insert the option either (1) after the last *FLAGS variable, or
7992   # (2) before a word containing "conftest.", or (3) at the end.
7993   # Note that $ac_compile itself does not contain backslashes and begins
7994   # with a dollar sign (not a hyphen), so the echo should work correctly.
7995   lt_compile=`echo "$ac_compile" | $SED \
7996   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7997   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7998   -e 's:$: $lt_compiler_flag:'`
7999   (eval echo "\"\$as_me:7999: $lt_compile\"" >&5)
8000   (eval "$lt_compile" 2>out/conftest.err)
8001   ac_status=$?
8002   cat out/conftest.err >&5
8003   echo "$as_me:8003: \$? = $ac_status" >&5
8004   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8005   then
8006     # The compiler can only warn and ignore the option if not recognized
8007     # So say no if there are warnings
8008     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8009     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8010     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8011       lt_cv_prog_compiler_c_o=yes
8012     fi
8013   fi
8014   chmod u+w . 2>&5
8015   $rm conftest*
8016   # SGI C++ compiler will create directory out/ii_files/ for
8017   # template instantiation
8018   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8019   $rm out/* && rmdir out
8020   cd ..
8021   rmdir conftest
8022   $rm conftest*
8023
8024fi
8025echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8026echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8027
8028
8029hard_links="nottested"
8030if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8031  # do not overwrite the value of need_locks provided by the user
8032  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8033echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8034  hard_links=yes
8035  $rm conftest*
8036  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8037  touch conftest.a
8038  ln conftest.a conftest.b 2>&5 || hard_links=no
8039  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8040  echo "$as_me:$LINENO: result: $hard_links" >&5
8041echo "${ECHO_T}$hard_links" >&6
8042  if test "$hard_links" = no; then
8043    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8044echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8045    need_locks=warn
8046  fi
8047else
8048  need_locks=no
8049fi
8050
8051echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8052echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8053
8054  runpath_var=
8055  allow_undefined_flag=
8056  enable_shared_with_static_runtimes=no
8057  archive_cmds=
8058  archive_expsym_cmds=
8059  old_archive_From_new_cmds=
8060  old_archive_from_expsyms_cmds=
8061  export_dynamic_flag_spec=
8062  whole_archive_flag_spec=
8063  thread_safe_flag_spec=
8064  hardcode_libdir_flag_spec=
8065  hardcode_libdir_flag_spec_ld=
8066  hardcode_libdir_separator=
8067  hardcode_direct=no
8068  hardcode_minus_L=no
8069  hardcode_shlibpath_var=unsupported
8070  link_all_deplibs=unknown
8071  hardcode_automatic=no
8072  module_cmds=
8073  module_expsym_cmds=
8074  always_export_symbols=no
8075  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8076  # include_expsyms should be a list of space-separated symbols to be *always*
8077  # included in the symbol list
8078  include_expsyms=
8079  # exclude_expsyms can be an extended regexp of symbols to exclude
8080  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8081  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8082  # as well as any symbol that contains `d'.
8083  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8084  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8085  # platforms (ab)use it in PIC code, but their linkers get confused if
8086  # the symbol is explicitly referenced.  Since portable code cannot
8087  # rely on this symbol name, it's probably fine to never include it in
8088  # preloaded symbol tables.
8089  extract_expsyms_cmds=
8090  # Just being paranoid about ensuring that cc_basename is set.
8091  for cc_temp in $compiler""; do
8092  case $cc_temp in
8093    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8094    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8095    \-*) ;;
8096    *) break;;
8097  esac
8098done
8099cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8100
8101  case $host_os in
8102  cygwin* | mingw* | pw32*)
8103    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8104    # When not using gcc, we currently assume that we are using
8105    # Microsoft Visual C++.
8106    if test "$GCC" != yes; then
8107      with_gnu_ld=no
8108    fi
8109    ;;
8110  interix*)
8111    # we just hope/assume this is gcc and not c89 (= MSVC++)
8112    with_gnu_ld=yes
8113    ;;
8114  openbsd*)
8115    with_gnu_ld=no
8116    ;;
8117  esac
8118
8119  ld_shlibs=yes
8120  if test "$with_gnu_ld" = yes; then
8121    # If archive_cmds runs LD, not CC, wlarc should be empty
8122    wlarc='${wl}'
8123
8124    # Set some defaults for GNU ld with shared library support. These
8125    # are reset later if shared libraries are not supported. Putting them
8126    # here allows them to be overridden if necessary.
8127    runpath_var=LD_RUN_PATH
8128    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8129    export_dynamic_flag_spec='${wl}--export-dynamic'
8130    # ancient GNU ld didn't support --whole-archive et. al.
8131    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8132        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8133      else
8134        whole_archive_flag_spec=
8135    fi
8136    supports_anon_versioning=no
8137    case `$LD -v 2>/dev/null` in
8138      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8139      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8140      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8141      *\ 2.11.*) ;; # other 2.11 versions
8142      *) supports_anon_versioning=yes ;;
8143    esac
8144
8145    # See if GNU ld supports shared libraries.
8146    case $host_os in
8147    aix3* | aix4* | aix5*)
8148      # On AIX/PPC, the GNU linker is very broken
8149      if test "$host_cpu" != ia64; then
8150        ld_shlibs=no
8151        cat <<EOF 1>&2
8152
8153*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8154*** to be unable to reliably create shared libraries on AIX.
8155*** Therefore, libtool is disabling shared libraries support.  If you
8156*** really care for shared libraries, you may want to modify your PATH
8157*** so that a non-GNU linker is found, and then restart.
8158
8159EOF
8160      fi
8161      ;;
8162
8163    amigaos*)
8164      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)'
8165      hardcode_libdir_flag_spec='-L$libdir'
8166      hardcode_minus_L=yes
8167
8168      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8169      # that the semantics of dynamic libraries on AmigaOS, at least up
8170      # to version 4, is to share data among multiple programs linked
8171      # with the same dynamic library.  Since this doesn't match the
8172      # behavior of shared libraries on other platforms, we can't use
8173      # them.
8174      ld_shlibs=no
8175      ;;
8176
8177    beos*)
8178      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8179        allow_undefined_flag=unsupported
8180        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8181        # support --undefined.  This deserves some investigation.  FIXME
8182        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8183      else
8184        ld_shlibs=no
8185      fi
8186      ;;
8187
8188    cygwin* | mingw* | pw32*)
8189      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8190      # as there is no search path for DLLs.
8191      hardcode_libdir_flag_spec='-L$libdir'
8192      allow_undefined_flag=unsupported
8193      always_export_symbols=no
8194      enable_shared_with_static_runtimes=yes
8195      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8196
8197      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8198        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8199        # If the export-symbols file already is a .def file (1st line
8200        # is EXPORTS), use it as is; otherwise, prepend...
8201        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8202          cp $export_symbols $output_objdir/$soname.def;
8203        else
8204          echo EXPORTS > $output_objdir/$soname.def;
8205          cat $export_symbols >> $output_objdir/$soname.def;
8206        fi~
8207        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8208      else
8209        ld_shlibs=no
8210      fi
8211      ;;
8212
8213    interix3*)
8214      hardcode_direct=no
8215      hardcode_shlibpath_var=no
8216      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8217      export_dynamic_flag_spec='${wl}-E'
8218      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8219      # Instead, shared libraries are loaded at an image base (0x10000000 by
8220      # default) and relocated if they conflict, which is a slow very memory
8221      # consuming and fragmenting process.  To avoid this, we pick a random,
8222      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8223      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8224      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8225      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'
8226      ;;
8227
8228    linux*)
8229      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8230        tmp_addflag=
8231        case $cc_basename,$host_cpu in
8232        pgcc*)                          # Portland Group C compiler
8233          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'
8234          tmp_addflag=' $pic_flag'
8235          ;;
8236        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8237          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'
8238          tmp_addflag=' $pic_flag -Mnomain' ;;
8239        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8240          tmp_addflag=' -i_dynamic' ;;
8241        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8242          tmp_addflag=' -i_dynamic -nofor_main' ;;
8243        ifc* | ifort*)                  # Intel Fortran compiler
8244          tmp_addflag=' -nofor_main' ;;
8245        esac
8246        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8247
8248        if test $supports_anon_versioning = yes; then
8249          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8250  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8251  $echo "local: *; };" >> $output_objdir/$libname.ver~
8252          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8253        fi
8254      else
8255        ld_shlibs=no
8256      fi
8257      ;;
8258
8259    netbsd*)
8260      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8261        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8262        wlarc=
8263      else
8264        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8265        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8266      fi
8267      ;;
8268
8269    solaris*)
8270      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8271        ld_shlibs=no
8272        cat <<EOF 1>&2
8273
8274*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8275*** create shared libraries on Solaris systems.  Therefore, libtool
8276*** is disabling shared libraries support.  We urge you to upgrade GNU
8277*** binutils to release 2.9.1 or newer.  Another option is to modify
8278*** your PATH or compiler configuration so that the native linker is
8279*** used, and then restart.
8280
8281EOF
8282      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8283        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8284        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8285      else
8286        ld_shlibs=no
8287      fi
8288      ;;
8289
8290    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8291      case `$LD -v 2>&1` in
8292        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8293        ld_shlibs=no
8294        cat <<_LT_EOF 1>&2
8295
8296*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8297*** reliably create shared libraries on SCO systems.  Therefore, libtool
8298*** is disabling shared libraries support.  We urge you to upgrade GNU
8299*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8300*** your PATH or compiler configuration so that the native linker is
8301*** used, and then restart.
8302
8303_LT_EOF
8304        ;;
8305        *)
8306          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8307            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8308            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8309            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8310          else
8311            ld_shlibs=no
8312          fi
8313        ;;
8314      esac
8315      ;;
8316
8317    sunos4*)
8318      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8319      wlarc=
8320      hardcode_direct=yes
8321      hardcode_shlibpath_var=no
8322      ;;
8323
8324    *)
8325      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8326        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8327        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8328      else
8329        ld_shlibs=no
8330      fi
8331      ;;
8332    esac
8333
8334    if test "$ld_shlibs" = no; then
8335      runpath_var=
8336      hardcode_libdir_flag_spec=
8337      export_dynamic_flag_spec=
8338      whole_archive_flag_spec=
8339    fi
8340  else
8341    # PORTME fill in a description of your system's linker (not GNU ld)
8342    case $host_os in
8343    aix3*)
8344      allow_undefined_flag=unsupported
8345      always_export_symbols=yes
8346      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'
8347      # Note: this linker hardcodes the directories in LIBPATH if there
8348      # are no directories specified by -L.
8349      hardcode_minus_L=yes
8350      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8351        # Neither direct hardcoding nor static linking is supported with a
8352        # broken collect2.
8353        hardcode_direct=unsupported
8354      fi
8355      ;;
8356
8357    aix4* | aix5*)
8358      if test "$host_cpu" = ia64; then
8359        # On IA64, the linker does run time linking by default, so we don't
8360        # have to do anything special.
8361        aix_use_runtimelinking=no
8362        exp_sym_flag='-Bexport'
8363        no_entry_flag=""
8364      else
8365        # If we're using GNU nm, then we don't want the "-C" option.
8366        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8367        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8368          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'
8369        else
8370          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'
8371        fi
8372        aix_use_runtimelinking=no
8373
8374        # Test if we are trying to use run time linking or normal
8375        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8376        # need to do runtime linking.
8377        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8378          for ld_flag in $LDFLAGS; do
8379          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8380            aix_use_runtimelinking=yes
8381            break
8382          fi
8383          done
8384          ;;
8385        esac
8386
8387        exp_sym_flag='-bexport'
8388        no_entry_flag='-bnoentry'
8389      fi
8390
8391      # When large executables or shared objects are built, AIX ld can
8392      # have problems creating the table of contents.  If linking a library
8393      # or program results in "error TOC overflow" add -mminimal-toc to
8394      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8395      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8396
8397      archive_cmds=''
8398      hardcode_direct=yes
8399      hardcode_libdir_separator=':'
8400      link_all_deplibs=yes
8401
8402      if test "$GCC" = yes; then
8403        case $host_os in aix4.[012]|aix4.[012].*)
8404        # We only want to do this on AIX 4.2 and lower, the check
8405        # below for broken collect2 doesn't work under 4.3+
8406          collect2name=`${CC} -print-prog-name=collect2`
8407          if test -f "$collect2name" && \
8408           strings "$collect2name" | grep resolve_lib_name >/dev/null
8409          then
8410          # We have reworked collect2
8411          hardcode_direct=yes
8412          else
8413          # We have old collect2
8414          hardcode_direct=unsupported
8415          # It fails to find uninstalled libraries when the uninstalled
8416          # path is not listed in the libpath.  Setting hardcode_minus_L
8417          # to unsupported forces relinking
8418          hardcode_minus_L=yes
8419          hardcode_libdir_flag_spec='-L$libdir'
8420          hardcode_libdir_separator=
8421          fi
8422          ;;
8423        esac
8424        shared_flag='-shared'
8425        if test "$aix_use_runtimelinking" = yes; then
8426          shared_flag="$shared_flag "'${wl}-G'
8427        fi
8428      else
8429        # not using gcc
8430        if test "$host_cpu" = ia64; then
8431        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8432        # chokes on -Wl,-G. The following line is correct:
8433          shared_flag='-G'
8434        else
8435          if test "$aix_use_runtimelinking" = yes; then
8436            shared_flag='${wl}-G'
8437          else
8438            shared_flag='${wl}-bM:SRE'
8439          fi
8440        fi
8441      fi
8442
8443      # It seems that -bexpall does not export symbols beginning with
8444      # underscore (_), so it is better to generate a list of symbols to export.
8445      always_export_symbols=yes
8446      if test "$aix_use_runtimelinking" = yes; then
8447        # Warning - without using the other runtime loading flags (-brtl),
8448        # -berok will link without error, but may produce a broken library.
8449        allow_undefined_flag='-berok'
8450       # Determine the default libpath from the value encoded in an empty executable.
8451       cat >conftest.$ac_ext <<_ACEOF
8452/* confdefs.h.  */
8453_ACEOF
8454cat confdefs.h >>conftest.$ac_ext
8455cat >>conftest.$ac_ext <<_ACEOF
8456/* end confdefs.h.  */
8457
8458int
8459main ()
8460{
8461
8462  ;
8463  return 0;
8464}
8465_ACEOF
8466rm -f conftest.$ac_objext conftest$ac_exeext
8467if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8468  (eval $ac_link) 2>conftest.er1
8469  ac_status=$?
8470  grep -v '^ *+' conftest.er1 >conftest.err
8471  rm -f conftest.er1
8472  cat conftest.err >&5
8473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474  (exit $ac_status); } &&
8475         { ac_try='test -z "$ac_c_werror_flag"
8476                         || test ! -s conftest.err'
8477  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8478  (eval $ac_try) 2>&5
8479  ac_status=$?
8480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481  (exit $ac_status); }; } &&
8482         { ac_try='test -s conftest$ac_exeext'
8483  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8484  (eval $ac_try) 2>&5
8485  ac_status=$?
8486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487  (exit $ac_status); }; }; then
8488
8489aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8490}'`
8491# Check for a 64-bit object if we didn't find anything.
8492if 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; }
8493}'`; fi
8494else
8495  echo "$as_me: failed program was:" >&5
8496sed 's/^/| /' conftest.$ac_ext >&5
8497
8498fi
8499rm -f conftest.err conftest.$ac_objext \
8500      conftest$ac_exeext conftest.$ac_ext
8501if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8502
8503       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8504        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"
8505       else
8506        if test "$host_cpu" = ia64; then
8507          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8508          allow_undefined_flag="-z nodefs"
8509          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"
8510        else
8511         # Determine the default libpath from the value encoded in an empty executable.
8512         cat >conftest.$ac_ext <<_ACEOF
8513/* confdefs.h.  */
8514_ACEOF
8515cat confdefs.h >>conftest.$ac_ext
8516cat >>conftest.$ac_ext <<_ACEOF
8517/* end confdefs.h.  */
8518
8519int
8520main ()
8521{
8522
8523  ;
8524  return 0;
8525}
8526_ACEOF
8527rm -f conftest.$ac_objext conftest$ac_exeext
8528if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8529  (eval $ac_link) 2>conftest.er1
8530  ac_status=$?
8531  grep -v '^ *+' conftest.er1 >conftest.err
8532  rm -f conftest.er1
8533  cat conftest.err >&5
8534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535  (exit $ac_status); } &&
8536         { ac_try='test -z "$ac_c_werror_flag"
8537                         || test ! -s conftest.err'
8538  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8539  (eval $ac_try) 2>&5
8540  ac_status=$?
8541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542  (exit $ac_status); }; } &&
8543         { ac_try='test -s conftest$ac_exeext'
8544  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8545  (eval $ac_try) 2>&5
8546  ac_status=$?
8547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548  (exit $ac_status); }; }; then
8549
8550aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8551}'`
8552# Check for a 64-bit object if we didn't find anything.
8553if 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; }
8554}'`; fi
8555else
8556  echo "$as_me: failed program was:" >&5
8557sed 's/^/| /' conftest.$ac_ext >&5
8558
8559fi
8560rm -f conftest.err conftest.$ac_objext \
8561      conftest$ac_exeext conftest.$ac_ext
8562if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8563
8564         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8565          # Warning - without using the other run time loading flags,
8566          # -berok will link without error, but may produce a broken library.
8567          no_undefined_flag=' ${wl}-bernotok'
8568          allow_undefined_flag=' ${wl}-berok'
8569          # Exported symbols can be pulled into shared objects from archives
8570          whole_archive_flag_spec='$convenience'
8571          archive_cmds_need_lc=yes
8572          # This is similar to how AIX traditionally builds its shared libraries.
8573          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'
8574        fi
8575      fi
8576      ;;
8577
8578    amigaos*)
8579      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)'
8580      hardcode_libdir_flag_spec='-L$libdir'
8581      hardcode_minus_L=yes
8582      # see comment about different semantics on the GNU ld section
8583      ld_shlibs=no
8584      ;;
8585
8586    bsdi[45]*)
8587      export_dynamic_flag_spec=-rdynamic
8588      ;;
8589
8590    cygwin* | mingw* | pw32*)
8591      # When not using gcc, we currently assume that we are using
8592      # Microsoft Visual C++.
8593      # hardcode_libdir_flag_spec is actually meaningless, as there is
8594      # no search path for DLLs.
8595      hardcode_libdir_flag_spec=' '
8596      allow_undefined_flag=unsupported
8597      # Tell ltmain to make .lib files, not .a files.
8598      libext=lib
8599      # Tell ltmain to make .dll files, not .so files.
8600      shrext_cmds=".dll"
8601      # FIXME: Setting linknames here is a bad hack.
8602      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8603      # The linker will automatically build a .lib file if we build a DLL.
8604      old_archive_From_new_cmds='true'
8605      # FIXME: Should let the user specify the lib program.
8606      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8607      fix_srcfile_path='`cygpath -w "$srcfile"`'
8608      enable_shared_with_static_runtimes=yes
8609      ;;
8610
8611    darwin* | rhapsody*)
8612      case $host_os in
8613        rhapsody* | darwin1.[012])
8614         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8615         ;;
8616       *) # Darwin 1.3 on
8617         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8618           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8619         else
8620           case ${MACOSX_DEPLOYMENT_TARGET} in
8621             10.[012])
8622               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8623               ;;
8624             10.*)
8625               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8626               ;;
8627           esac
8628         fi
8629         ;;
8630      esac
8631      archive_cmds_need_lc=no
8632      hardcode_direct=no
8633      hardcode_automatic=yes
8634      hardcode_shlibpath_var=unsupported
8635      whole_archive_flag_spec=''
8636      link_all_deplibs=yes
8637    if test "$GCC" = yes ; then
8638        output_verbose_link_cmd='echo'
8639        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8640      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8641      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8642      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}'
8643      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}'
8644    else
8645      case $cc_basename in
8646        xlc*)
8647         output_verbose_link_cmd='echo'
8648         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8649         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8650          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8651         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}'
8652          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}'
8653          ;;
8654       *)
8655         ld_shlibs=no
8656          ;;
8657      esac
8658    fi
8659      ;;
8660
8661    dgux*)
8662      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8663      hardcode_libdir_flag_spec='-L$libdir'
8664      hardcode_shlibpath_var=no
8665      ;;
8666
8667    freebsd1*)
8668      ld_shlibs=no
8669      ;;
8670
8671    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8672    # support.  Future versions do this automatically, but an explicit c++rt0.o
8673    # does not break anything, and helps significantly (at the cost of a little
8674    # extra space).
8675    freebsd2.2*)
8676      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8677      hardcode_libdir_flag_spec='-R$libdir'
8678      hardcode_direct=yes
8679      hardcode_shlibpath_var=no
8680      ;;
8681
8682    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8683    freebsd2*)
8684      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8685      hardcode_direct=yes
8686      hardcode_minus_L=yes
8687      hardcode_shlibpath_var=no
8688      ;;
8689
8690    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8691    freebsd* | kfreebsd*-gnu | dragonfly*)
8692      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8693      hardcode_libdir_flag_spec='-R$libdir'
8694      hardcode_direct=yes
8695      hardcode_shlibpath_var=no
8696      ;;
8697
8698    hpux9*)
8699      if test "$GCC" = yes; then
8700        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'
8701      else
8702        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'
8703      fi
8704      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8705      hardcode_libdir_separator=:
8706      hardcode_direct=yes
8707
8708      # hardcode_minus_L: Not really in the search PATH,
8709      # but as the default location of the library.
8710      hardcode_minus_L=yes
8711      export_dynamic_flag_spec='${wl}-E'
8712      ;;
8713
8714    hpux10*)
8715      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8716        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8717      else
8718        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8719      fi
8720      if test "$with_gnu_ld" = no; then
8721        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8722        hardcode_libdir_separator=:
8723
8724        hardcode_direct=yes
8725        export_dynamic_flag_spec='${wl}-E'
8726
8727        # hardcode_minus_L: Not really in the search PATH,
8728        # but as the default location of the library.
8729        hardcode_minus_L=yes
8730      fi
8731      ;;
8732
8733    hpux11*)
8734      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8735        case $host_cpu in
8736        hppa*64*)
8737          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8738          ;;
8739        ia64*)
8740          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8741          ;;
8742        *)
8743          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8744          ;;
8745        esac
8746      else
8747        case $host_cpu in
8748        hppa*64*)
8749          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8750          ;;
8751        ia64*)
8752          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8753          ;;
8754        *)
8755          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8756          ;;
8757        esac
8758      fi
8759      if test "$with_gnu_ld" = no; then
8760        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8761        hardcode_libdir_separator=:
8762
8763        case $host_cpu in
8764        hppa*64*|ia64*)
8765          hardcode_libdir_flag_spec_ld='+b $libdir'
8766          hardcode_direct=no
8767          hardcode_shlibpath_var=no
8768          ;;
8769        *)
8770          hardcode_direct=yes
8771          export_dynamic_flag_spec='${wl}-E'
8772
8773          # hardcode_minus_L: Not really in the search PATH,
8774          # but as the default location of the library.
8775          hardcode_minus_L=yes
8776          ;;
8777        esac
8778      fi
8779      ;;
8780
8781    irix5* | irix6* | nonstopux*)
8782      if test "$GCC" = yes; then
8783        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'
8784      else
8785        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'
8786        hardcode_libdir_flag_spec_ld='-rpath $libdir'
8787      fi
8788      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8789      hardcode_libdir_separator=:
8790      link_all_deplibs=yes
8791      ;;
8792
8793    netbsd*)
8794      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8795        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8796      else
8797        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8798      fi
8799      hardcode_libdir_flag_spec='-R$libdir'
8800      hardcode_direct=yes
8801      hardcode_shlibpath_var=no
8802      ;;
8803
8804    newsos6)
8805      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8806      hardcode_direct=yes
8807      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8808      hardcode_libdir_separator=:
8809      hardcode_shlibpath_var=no
8810      ;;
8811
8812    openbsd*)
8813      hardcode_direct=yes
8814      hardcode_shlibpath_var=no
8815      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8816        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8817        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8818        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8819        export_dynamic_flag_spec='${wl}-E'
8820      else
8821       case $host_os in
8822         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8823           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8824           hardcode_libdir_flag_spec='-R$libdir'
8825           ;;
8826         *)
8827           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8828           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8829           ;;
8830       esac
8831      fi
8832      ;;
8833
8834    os2*)
8835      hardcode_libdir_flag_spec='-L$libdir'
8836      hardcode_minus_L=yes
8837      allow_undefined_flag=unsupported
8838      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'
8839      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8840      ;;
8841
8842    osf3*)
8843      if test "$GCC" = yes; then
8844        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8845        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'
8846      else
8847        allow_undefined_flag=' -expect_unresolved \*'
8848        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'
8849      fi
8850      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8851      hardcode_libdir_separator=:
8852      ;;
8853
8854    osf4* | osf5*)      # as osf3* with the addition of -msym flag
8855      if test "$GCC" = yes; then
8856        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8857        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'
8858        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8859      else
8860        allow_undefined_flag=' -expect_unresolved \*'
8861        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'
8862        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8863        $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'
8864
8865        # Both c and cxx compiler support -rpath directly
8866        hardcode_libdir_flag_spec='-rpath $libdir'
8867      fi
8868      hardcode_libdir_separator=:
8869      ;;
8870
8871    solaris*)
8872      no_undefined_flag=' -z text'
8873      if test "$GCC" = yes; then
8874        wlarc='${wl}'
8875        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8876        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8877          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8878      else
8879        wlarc=''
8880        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8881        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8882        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8883      fi
8884      hardcode_libdir_flag_spec='-R$libdir'
8885      hardcode_shlibpath_var=no
8886      case $host_os in
8887      solaris2.[0-5] | solaris2.[0-5].*) ;;
8888      *)
8889        # The compiler driver will combine linker options so we
8890        # cannot just pass the convience library names through
8891        # without $wl, iff we do not link with $LD.
8892        # Luckily, gcc supports the same syntax we need for Sun Studio.
8893        # Supported since Solaris 2.6 (maybe 2.5.1?)
8894        case $wlarc in
8895        '')
8896          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8897        *)
8898          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' ;;
8899        esac ;;
8900      esac
8901      link_all_deplibs=yes
8902      ;;
8903
8904    sunos4*)
8905      if test "x$host_vendor" = xsequent; then
8906        # Use $CC to link under sequent, because it throws in some extra .o
8907        # files that make .init and .fini sections work.
8908        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8909      else
8910        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8911      fi
8912      hardcode_libdir_flag_spec='-L$libdir'
8913      hardcode_direct=yes
8914      hardcode_minus_L=yes
8915      hardcode_shlibpath_var=no
8916      ;;
8917
8918    sysv4)
8919      case $host_vendor in
8920        sni)
8921          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8922          hardcode_direct=yes # is this really true???
8923        ;;
8924        siemens)
8925          ## LD is ld it makes a PLAMLIB
8926          ## CC just makes a GrossModule.
8927          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8928          reload_cmds='$CC -r -o $output$reload_objs'
8929          hardcode_direct=no
8930        ;;
8931        motorola)
8932          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8933          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8934        ;;
8935      esac
8936      runpath_var='LD_RUN_PATH'
8937      hardcode_shlibpath_var=no
8938      ;;
8939
8940    sysv4.3*)
8941      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8942      hardcode_shlibpath_var=no
8943      export_dynamic_flag_spec='-Bexport'
8944      ;;
8945
8946    sysv4*MP*)
8947      if test -d /usr/nec; then
8948        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8949        hardcode_shlibpath_var=no
8950        runpath_var=LD_RUN_PATH
8951        hardcode_runpath_var=yes
8952        ld_shlibs=yes
8953      fi
8954      ;;
8955
8956    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8957      no_undefined_flag='${wl}-z,text'
8958      archive_cmds_need_lc=no
8959      hardcode_shlibpath_var=no
8960      runpath_var='LD_RUN_PATH'
8961
8962      if test "$GCC" = yes; then
8963        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8964        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8965      else
8966        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8967        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8968      fi
8969      ;;
8970
8971    sysv5* | sco3.2v5* | sco5v6*)
8972      # Note: We can NOT use -z defs as we might desire, because we do not
8973      # link with -lc, and that would cause any symbols used from libc to
8974      # always be unresolved, which means just about no library would
8975      # ever link correctly.  If we're not using GNU ld we use -z text
8976      # though, which does catch some bad symbols but isn't as heavy-handed
8977      # as -z defs.
8978      no_undefined_flag='${wl}-z,text'
8979      allow_undefined_flag='${wl}-z,nodefs'
8980      archive_cmds_need_lc=no
8981      hardcode_shlibpath_var=no
8982      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8983      hardcode_libdir_separator=':'
8984      link_all_deplibs=yes
8985      export_dynamic_flag_spec='${wl}-Bexport'
8986      runpath_var='LD_RUN_PATH'
8987
8988      if test "$GCC" = yes; then
8989        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8990        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8991      else
8992        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8993        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8994      fi
8995      ;;
8996
8997    uts4*)
8998      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8999      hardcode_libdir_flag_spec='-L$libdir'
9000      hardcode_shlibpath_var=no
9001      ;;
9002
9003    *)
9004      ld_shlibs=no
9005      ;;
9006    esac
9007  fi
9008
9009echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9010echo "${ECHO_T}$ld_shlibs" >&6
9011test "$ld_shlibs" = no && can_build_shared=no
9012
9013#
9014# Do we need to explicitly link libc?
9015#
9016case "x$archive_cmds_need_lc" in
9017x|xyes)
9018  # Assume -lc should be added
9019  archive_cmds_need_lc=yes
9020
9021  if test "$enable_shared" = yes && test "$GCC" = yes; then
9022    case $archive_cmds in
9023    *'~'*)
9024      # FIXME: we may have to deal with multi-command sequences.
9025      ;;
9026    '$CC '*)
9027      # Test whether the compiler implicitly links with -lc since on some
9028      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9029      # to ld, don't add -lc before -lgcc.
9030      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9031echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9032      $rm conftest*
9033      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9034
9035      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9036  (eval $ac_compile) 2>&5
9037  ac_status=$?
9038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9039  (exit $ac_status); } 2>conftest.err; then
9040        soname=conftest
9041        lib=conftest
9042        libobjs=conftest.$ac_objext
9043        deplibs=
9044        wl=$lt_prog_compiler_wl
9045        pic_flag=$lt_prog_compiler_pic
9046        compiler_flags=-v
9047        linker_flags=-v
9048        verstring=
9049        output_objdir=.
9050        libname=conftest
9051        lt_save_allow_undefined_flag=$allow_undefined_flag
9052        allow_undefined_flag=
9053        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9054  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9055  ac_status=$?
9056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057  (exit $ac_status); }
9058        then
9059          archive_cmds_need_lc=no
9060        else
9061          archive_cmds_need_lc=yes
9062        fi
9063        allow_undefined_flag=$lt_save_allow_undefined_flag
9064      else
9065        cat conftest.err 1>&5
9066      fi
9067      $rm conftest*
9068      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9069echo "${ECHO_T}$archive_cmds_need_lc" >&6
9070      ;;
9071    esac
9072  fi
9073  ;;
9074esac
9075
9076echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9077echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9078library_names_spec=
9079libname_spec='lib$name'
9080soname_spec=
9081shrext_cmds=".so"
9082postinstall_cmds=
9083postuninstall_cmds=
9084finish_cmds=
9085finish_eval=
9086shlibpath_var=
9087shlibpath_overrides_runpath=unknown
9088version_type=none
9089dynamic_linker="$host_os ld.so"
9090sys_lib_dlsearch_path_spec="/lib /usr/lib"
9091if test "$GCC" = yes; then
9092  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9093  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9094    # if the path contains ";" then we assume it to be the separator
9095    # otherwise default to the standard path separator (i.e. ":") - it is
9096    # assumed that no part of a normal pathname contains ";" but that should
9097    # okay in the real world where ";" in dirpaths is itself problematic.
9098    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9099  else
9100    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9101  fi
9102else
9103  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9104fi
9105need_lib_prefix=unknown
9106hardcode_into_libs=no
9107
9108# when you set need_version to no, make sure it does not cause -set_version
9109# flags to be left without arguments
9110need_version=unknown
9111
9112case $host_os in
9113aix3*)
9114  version_type=linux
9115  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9116  shlibpath_var=LIBPATH
9117
9118  # AIX 3 has no versioning support, so we append a major version to the name.
9119  soname_spec='${libname}${release}${shared_ext}$major'
9120  ;;
9121
9122aix4* | aix5*)
9123  version_type=linux
9124  need_lib_prefix=no
9125  need_version=no
9126  hardcode_into_libs=yes
9127  if test "$host_cpu" = ia64; then
9128    # AIX 5 supports IA64
9129    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9130    shlibpath_var=LD_LIBRARY_PATH
9131  else
9132    # With GCC up to 2.95.x, collect2 would create an import file
9133    # for dependence libraries.  The import file would start with
9134    # the line `#! .'.  This would cause the generated library to
9135    # depend on `.', always an invalid library.  This was fixed in
9136    # development snapshots of GCC prior to 3.0.
9137    case $host_os in
9138      aix4 | aix4.[01] | aix4.[01].*)
9139      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9140           echo ' yes '
9141           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9142        :
9143      else
9144        can_build_shared=no
9145      fi
9146      ;;
9147    esac
9148    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9149    # soname into executable. Probably we can add versioning support to
9150    # collect2, so additional links can be useful in future.
9151    if test "$aix_use_runtimelinking" = yes; then
9152      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9153      # instead of lib<name>.a to let people know that these are not
9154      # typical AIX shared libraries.
9155      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9156    else
9157      # We preserve .a as extension for shared libraries through AIX4.2
9158      # and later when we are not doing run time linking.
9159      library_names_spec='${libname}${release}.a $libname.a'
9160      soname_spec='${libname}${release}${shared_ext}$major'
9161    fi
9162    shlibpath_var=LIBPATH
9163  fi
9164  ;;
9165
9166amigaos*)
9167  library_names_spec='$libname.ixlibrary $libname.a'
9168  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9169  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'
9170  ;;
9171
9172beos*)
9173  library_names_spec='${libname}${shared_ext}'
9174  dynamic_linker="$host_os ld.so"
9175  shlibpath_var=LIBRARY_PATH
9176  ;;
9177
9178bsdi[45]*)
9179  version_type=linux
9180  need_version=no
9181  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9182  soname_spec='${libname}${release}${shared_ext}$major'
9183  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9184  shlibpath_var=LD_LIBRARY_PATH
9185  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9186  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9187  # the default ld.so.conf also contains /usr/contrib/lib and
9188  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9189  # libtool to hard-code these into programs
9190  ;;
9191
9192cygwin* | mingw* | pw32*)
9193  version_type=windows
9194  shrext_cmds=".dll"
9195  need_version=no
9196  need_lib_prefix=no
9197
9198  case $GCC,$host_os in
9199  yes,cygwin* | yes,mingw* | yes,pw32*)
9200    library_names_spec='$libname.dll.a'
9201    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9202    postinstall_cmds='base_file=`basename \${file}`~
9203      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9204      dldir=$destdir/`dirname \$dlpath`~
9205      test -d \$dldir || mkdir -p \$dldir~
9206      $install_prog $dir/$dlname \$dldir/$dlname~
9207      chmod a+x \$dldir/$dlname'
9208    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9209      dlpath=$dir/\$dldll~
9210       $rm \$dlpath'
9211    shlibpath_overrides_runpath=yes
9212
9213    case $host_os in
9214    cygwin*)
9215      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9216      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9217      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9218      ;;
9219    mingw*)
9220      # MinGW DLLs use traditional 'lib' prefix
9221      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9222      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9223      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9224        # It is most probably a Windows format PATH printed by
9225        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9226        # path with ; separators, and with drive letters. We can handle the
9227        # drive letters (cygwin fileutils understands them), so leave them,
9228        # especially as we might pass files found there to a mingw objdump,
9229        # which wouldn't understand a cygwinified path. Ahh.
9230        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9231      else
9232        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9233      fi
9234      ;;
9235    pw32*)
9236      # pw32 DLLs use 'pw' prefix rather than 'lib'
9237      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9238      ;;
9239    esac
9240    ;;
9241
9242  *)
9243    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9244    ;;
9245  esac
9246  dynamic_linker='Win32 ld.exe'
9247  # FIXME: first we should search . and the directory the executable is in
9248  shlibpath_var=PATH
9249  ;;
9250
9251darwin* | rhapsody*)
9252  dynamic_linker="$host_os dyld"
9253  version_type=darwin
9254  need_lib_prefix=no
9255  need_version=no
9256  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9257  soname_spec='${libname}${release}${major}$shared_ext'
9258  shlibpath_overrides_runpath=yes
9259  shlibpath_var=DYLD_LIBRARY_PATH
9260  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9261  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9262  if test "$GCC" = yes; then
9263    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"`
9264  else
9265    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9266  fi
9267  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9268  ;;
9269
9270dgux*)
9271  version_type=linux
9272  need_lib_prefix=no
9273  need_version=no
9274  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9275  soname_spec='${libname}${release}${shared_ext}$major'
9276  shlibpath_var=LD_LIBRARY_PATH
9277  ;;
9278
9279freebsd1*)
9280  dynamic_linker=no
9281  ;;
9282
9283kfreebsd*-gnu)
9284  version_type=linux
9285  need_lib_prefix=no
9286  need_version=no
9287  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9288  soname_spec='${libname}${release}${shared_ext}$major'
9289  shlibpath_var=LD_LIBRARY_PATH
9290  shlibpath_overrides_runpath=no
9291  hardcode_into_libs=yes
9292  dynamic_linker='GNU ld.so'
9293  ;;
9294
9295freebsd* | dragonfly*)
9296  # DragonFly does not have aout.  When/if they implement a new
9297  # versioning mechanism, adjust this.
9298  if test -x /usr/bin/objformat; then
9299    objformat=`/usr/bin/objformat`
9300  else
9301    case $host_os in
9302    freebsd[123]*) objformat=aout ;;
9303    *) objformat=elf ;;
9304    esac
9305  fi
9306  version_type=freebsd-$objformat
9307  case $version_type in
9308    freebsd-elf*)
9309      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9310      need_version=no
9311      need_lib_prefix=no
9312      ;;
9313    freebsd-*)
9314      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9315      need_version=yes
9316      ;;
9317  esac
9318  shlibpath_var=LD_LIBRARY_PATH
9319  case $host_os in
9320  freebsd2*)
9321    shlibpath_overrides_runpath=yes
9322    ;;
9323  freebsd3.[01]* | freebsdelf3.[01]*)
9324    shlibpath_overrides_runpath=yes
9325    hardcode_into_libs=yes
9326    ;;
9327  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9328  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9329    shlibpath_overrides_runpath=no
9330    hardcode_into_libs=yes
9331    ;;
9332  freebsd*) # from 4.6 on
9333    shlibpath_overrides_runpath=yes
9334    hardcode_into_libs=yes
9335    ;;
9336  esac
9337  ;;
9338
9339gnu*)
9340  version_type=linux
9341  need_lib_prefix=no
9342  need_version=no
9343  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9344  soname_spec='${libname}${release}${shared_ext}$major'
9345  shlibpath_var=LD_LIBRARY_PATH
9346  hardcode_into_libs=yes
9347  ;;
9348
9349hpux9* | hpux10* | hpux11*)
9350  # Give a soname corresponding to the major version so that dld.sl refuses to
9351  # link against other versions.
9352  version_type=sunos
9353  need_lib_prefix=no
9354  need_version=no
9355  case $host_cpu in
9356  ia64*)
9357    shrext_cmds='.so'
9358    hardcode_into_libs=yes
9359    dynamic_linker="$host_os dld.so"
9360    shlibpath_var=LD_LIBRARY_PATH
9361    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9362    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9363    soname_spec='${libname}${release}${shared_ext}$major'
9364    if test "X$HPUX_IA64_MODE" = X32; then
9365      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9366    else
9367      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9368    fi
9369    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9370    ;;
9371   hppa*64*)
9372     shrext_cmds='.sl'
9373     hardcode_into_libs=yes
9374     dynamic_linker="$host_os dld.sl"
9375     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9376     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9377     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9378     soname_spec='${libname}${release}${shared_ext}$major'
9379     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9380     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9381     ;;
9382   *)
9383    shrext_cmds='.sl'
9384    dynamic_linker="$host_os dld.sl"
9385    shlibpath_var=SHLIB_PATH
9386    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9387    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9388    soname_spec='${libname}${release}${shared_ext}$major'
9389    ;;
9390  esac
9391  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9392  postinstall_cmds='chmod 555 $lib'
9393  ;;
9394
9395interix3*)
9396  version_type=linux
9397  need_lib_prefix=no
9398  need_version=no
9399  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9400  soname_spec='${libname}${release}${shared_ext}$major'
9401  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9402  shlibpath_var=LD_LIBRARY_PATH
9403  shlibpath_overrides_runpath=no
9404  hardcode_into_libs=yes
9405  ;;
9406
9407irix5* | irix6* | nonstopux*)
9408  case $host_os in
9409    nonstopux*) version_type=nonstopux ;;
9410    *)
9411        if test "$lt_cv_prog_gnu_ld" = yes; then
9412                version_type=linux
9413        else
9414                version_type=irix
9415        fi ;;
9416  esac
9417  need_lib_prefix=no
9418  need_version=no
9419  soname_spec='${libname}${release}${shared_ext}$major'
9420  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9421  case $host_os in
9422  irix5* | nonstopux*)
9423    libsuff= shlibsuff=
9424    ;;
9425  *)
9426    case $LD in # libtool.m4 will add one of these switches to LD
9427    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9428      libsuff= shlibsuff= libmagic=32-bit;;
9429    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9430      libsuff=32 shlibsuff=N32 libmagic=N32;;
9431    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9432      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9433    *) libsuff= shlibsuff= libmagic=never-match;;
9434    esac
9435    ;;
9436  esac
9437  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9438  shlibpath_overrides_runpath=no
9439  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9440  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9441  hardcode_into_libs=yes
9442  ;;
9443
9444# No shared lib support for Linux oldld, aout, or coff.
9445linux*oldld* | linux*aout* | linux*coff*)
9446  dynamic_linker=no
9447  ;;
9448
9449# This must be Linux ELF.
9450linux*)
9451  version_type=linux
9452  need_lib_prefix=no
9453  need_version=no
9454  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9455  soname_spec='${libname}${release}${shared_ext}$major'
9456  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9457  shlibpath_var=LD_LIBRARY_PATH
9458  shlibpath_overrides_runpath=no
9459  # This implies no fast_install, which is unacceptable.
9460  # Some rework will be needed to allow for fast_install
9461  # before this can be enabled.
9462  hardcode_into_libs=yes
9463
9464  # Append ld.so.conf contents to the search path
9465  if test -f /etc/ld.so.conf; then
9466    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' ' '`
9467    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9468  fi
9469
9470  # We used to test for /lib/ld.so.1 and disable shared libraries on
9471  # powerpc, because MkLinux only supported shared libraries with the
9472  # GNU dynamic linker.  Since this was broken with cross compilers,
9473  # most powerpc-linux boxes support dynamic linking these days and
9474  # people can always --disable-shared, the test was removed, and we
9475  # assume the GNU/Linux dynamic linker is in use.
9476  dynamic_linker='GNU/Linux ld.so'
9477  ;;
9478
9479knetbsd*-gnu)
9480  version_type=linux
9481  need_lib_prefix=no
9482  need_version=no
9483  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9484  soname_spec='${libname}${release}${shared_ext}$major'
9485  shlibpath_var=LD_LIBRARY_PATH
9486  shlibpath_overrides_runpath=no
9487  hardcode_into_libs=yes
9488  dynamic_linker='GNU ld.so'
9489  ;;
9490
9491netbsd*)
9492  version_type=sunos
9493  need_lib_prefix=no
9494  need_version=no
9495  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9496    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9497    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9498    dynamic_linker='NetBSD (a.out) ld.so'
9499  else
9500    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9501    soname_spec='${libname}${release}${shared_ext}$major'
9502    dynamic_linker='NetBSD ld.elf_so'
9503  fi
9504  shlibpath_var=LD_LIBRARY_PATH
9505  shlibpath_overrides_runpath=yes
9506  hardcode_into_libs=yes
9507  ;;
9508
9509newsos6)
9510  version_type=linux
9511  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9512  shlibpath_var=LD_LIBRARY_PATH
9513  shlibpath_overrides_runpath=yes
9514  ;;
9515
9516nto-qnx*)
9517  version_type=linux
9518  need_lib_prefix=no
9519  need_version=no
9520  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9521  soname_spec='${libname}${release}${shared_ext}$major'
9522  shlibpath_var=LD_LIBRARY_PATH
9523  shlibpath_overrides_runpath=yes
9524  ;;
9525
9526openbsd*)
9527  version_type=sunos
9528  sys_lib_dlsearch_path_spec="/usr/lib"
9529  need_lib_prefix=no
9530  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9531  case $host_os in
9532    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9533    *)                         need_version=no  ;;
9534  esac
9535  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9536  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9537  shlibpath_var=LD_LIBRARY_PATH
9538  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9539    case $host_os in
9540      openbsd2.[89] | openbsd2.[89].*)
9541        shlibpath_overrides_runpath=no
9542        ;;
9543      *)
9544        shlibpath_overrides_runpath=yes
9545        ;;
9546      esac
9547  else
9548    shlibpath_overrides_runpath=yes
9549  fi
9550  ;;
9551
9552os2*)
9553  libname_spec='$name'
9554  shrext_cmds=".dll"
9555  need_lib_prefix=no
9556  library_names_spec='$libname${shared_ext} $libname.a'
9557  dynamic_linker='OS/2 ld.exe'
9558  shlibpath_var=LIBPATH
9559  ;;
9560
9561osf3* | osf4* | osf5*)
9562  version_type=osf
9563  need_lib_prefix=no
9564  need_version=no
9565  soname_spec='${libname}${release}${shared_ext}$major'
9566  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9567  shlibpath_var=LD_LIBRARY_PATH
9568  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9569  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9570  ;;
9571
9572solaris*)
9573  version_type=linux
9574  need_lib_prefix=no
9575  need_version=no
9576  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9577  soname_spec='${libname}${release}${shared_ext}$major'
9578  shlibpath_var=LD_LIBRARY_PATH
9579  shlibpath_overrides_runpath=yes
9580  hardcode_into_libs=yes
9581  # ldd complains unless libraries are executable
9582  postinstall_cmds='chmod +x $lib'
9583  ;;
9584
9585sunos4*)
9586  version_type=sunos
9587  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9588  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9589  shlibpath_var=LD_LIBRARY_PATH
9590  shlibpath_overrides_runpath=yes
9591  if test "$with_gnu_ld" = yes; then
9592    need_lib_prefix=no
9593  fi
9594  need_version=yes
9595  ;;
9596
9597sysv4 | sysv4.3*)
9598  version_type=linux
9599  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9600  soname_spec='${libname}${release}${shared_ext}$major'
9601  shlibpath_var=LD_LIBRARY_PATH
9602  case $host_vendor in
9603    sni)
9604      shlibpath_overrides_runpath=no
9605      need_lib_prefix=no
9606      export_dynamic_flag_spec='${wl}-Blargedynsym'
9607      runpath_var=LD_RUN_PATH
9608      ;;
9609    siemens)
9610      need_lib_prefix=no
9611      ;;
9612    motorola)
9613      need_lib_prefix=no
9614      need_version=no
9615      shlibpath_overrides_runpath=no
9616      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9617      ;;
9618  esac
9619  ;;
9620
9621sysv4*MP*)
9622  if test -d /usr/nec ;then
9623    version_type=linux
9624    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9625    soname_spec='$libname${shared_ext}.$major'
9626    shlibpath_var=LD_LIBRARY_PATH
9627  fi
9628  ;;
9629
9630sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9631  version_type=freebsd-elf
9632  need_lib_prefix=no
9633  need_version=no
9634  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9635  soname_spec='${libname}${release}${shared_ext}$major'
9636  shlibpath_var=LD_LIBRARY_PATH
9637  hardcode_into_libs=yes
9638  if test "$with_gnu_ld" = yes; then
9639    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9640    shlibpath_overrides_runpath=no
9641  else
9642    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9643    shlibpath_overrides_runpath=yes
9644    case $host_os in
9645      sco3.2v5*)
9646        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9647        ;;
9648    esac
9649  fi
9650  sys_lib_dlsearch_path_spec='/usr/lib'
9651  ;;
9652
9653uts4*)
9654  version_type=linux
9655  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9656  soname_spec='${libname}${release}${shared_ext}$major'
9657  shlibpath_var=LD_LIBRARY_PATH
9658  ;;
9659
9660*)
9661  dynamic_linker=no
9662  ;;
9663esac
9664echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9665echo "${ECHO_T}$dynamic_linker" >&6
9666test "$dynamic_linker" = no && can_build_shared=no
9667
9668variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9669if test "$GCC" = yes; then
9670  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9671fi
9672
9673echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9674echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9675hardcode_action=
9676if test -n "$hardcode_libdir_flag_spec" || \
9677   test -n "$runpath_var" || \
9678   test "X$hardcode_automatic" = "Xyes" ; then
9679
9680  # We can hardcode non-existant directories.
9681  if test "$hardcode_direct" != no &&
9682     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9683     # have to relink, otherwise we might link with an installed library
9684     # when we should be linking with a yet-to-be-installed one
9685     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9686     test "$hardcode_minus_L" != no; then
9687    # Linking always hardcodes the temporary library directory.
9688    hardcode_action=relink
9689  else
9690    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9691    hardcode_action=immediate
9692  fi
9693else
9694  # We cannot hardcode anything, or else we can only hardcode existing
9695  # directories.
9696  hardcode_action=unsupported
9697fi
9698echo "$as_me:$LINENO: result: $hardcode_action" >&5
9699echo "${ECHO_T}$hardcode_action" >&6
9700
9701if test "$hardcode_action" = relink; then
9702  # Fast installation is not supported
9703  enable_fast_install=no
9704elif test "$shlibpath_overrides_runpath" = yes ||
9705     test "$enable_shared" = no; then
9706  # Fast installation is not necessary
9707  enable_fast_install=needless
9708fi
9709
9710striplib=
9711old_striplib=
9712echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9713echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9714if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9715  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9716  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9717  echo "$as_me:$LINENO: result: yes" >&5
9718echo "${ECHO_T}yes" >&6
9719else
9720# FIXME - insert some real tests, host_os isn't really good enough
9721  case $host_os in
9722   darwin*)
9723       if test -n "$STRIP" ; then
9724         striplib="$STRIP -x"
9725         echo "$as_me:$LINENO: result: yes" >&5
9726echo "${ECHO_T}yes" >&6
9727       else
9728  echo "$as_me:$LINENO: result: no" >&5
9729echo "${ECHO_T}no" >&6
9730fi
9731       ;;
9732   *)
9733  echo "$as_me:$LINENO: result: no" >&5
9734echo "${ECHO_T}no" >&6
9735    ;;
9736  esac
9737fi
9738
9739if test "x$enable_dlopen" != xyes; then
9740  enable_dlopen=unknown
9741  enable_dlopen_self=unknown
9742  enable_dlopen_self_static=unknown
9743else
9744  lt_cv_dlopen=no
9745  lt_cv_dlopen_libs=
9746
9747  case $host_os in
9748  beos*)
9749    lt_cv_dlopen="load_add_on"
9750    lt_cv_dlopen_libs=
9751    lt_cv_dlopen_self=yes
9752    ;;
9753
9754  mingw* | pw32*)
9755    lt_cv_dlopen="LoadLibrary"
9756    lt_cv_dlopen_libs=
9757   ;;
9758
9759  cygwin*)
9760    lt_cv_dlopen="dlopen"
9761    lt_cv_dlopen_libs=
9762   ;;
9763
9764  darwin*)
9765  # if libdl is installed we need to link against it
9766    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9767echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9768if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9769  echo $ECHO_N "(cached) $ECHO_C" >&6
9770else
9771  ac_check_lib_save_LIBS=$LIBS
9772LIBS="-ldl  $LIBS"
9773cat >conftest.$ac_ext <<_ACEOF
9774/* confdefs.h.  */
9775_ACEOF
9776cat confdefs.h >>conftest.$ac_ext
9777cat >>conftest.$ac_ext <<_ACEOF
9778/* end confdefs.h.  */
9779
9780/* Override any gcc2 internal prototype to avoid an error.  */
9781#ifdef __cplusplus
9782extern "C"
9783#endif
9784/* We use char because int might match the return type of a gcc2
9785   builtin and then its argument prototype would still apply.  */
9786char dlopen ();
9787int
9788main ()
9789{
9790dlopen ();
9791  ;
9792  return 0;
9793}
9794_ACEOF
9795rm -f conftest.$ac_objext conftest$ac_exeext
9796if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9797  (eval $ac_link) 2>conftest.er1
9798  ac_status=$?
9799  grep -v '^ *+' conftest.er1 >conftest.err
9800  rm -f conftest.er1
9801  cat conftest.err >&5
9802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9803  (exit $ac_status); } &&
9804         { ac_try='test -z "$ac_c_werror_flag"
9805                         || test ! -s conftest.err'
9806  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9807  (eval $ac_try) 2>&5
9808  ac_status=$?
9809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9810  (exit $ac_status); }; } &&
9811         { ac_try='test -s conftest$ac_exeext'
9812  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9813  (eval $ac_try) 2>&5
9814  ac_status=$?
9815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9816  (exit $ac_status); }; }; then
9817  ac_cv_lib_dl_dlopen=yes
9818else
9819  echo "$as_me: failed program was:" >&5
9820sed 's/^/| /' conftest.$ac_ext >&5
9821
9822ac_cv_lib_dl_dlopen=no
9823fi
9824rm -f conftest.err conftest.$ac_objext \
9825      conftest$ac_exeext conftest.$ac_ext
9826LIBS=$ac_check_lib_save_LIBS
9827fi
9828echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9829echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9830if test $ac_cv_lib_dl_dlopen = yes; then
9831  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9832else
9833
9834    lt_cv_dlopen="dyld"
9835    lt_cv_dlopen_libs=
9836    lt_cv_dlopen_self=yes
9837
9838fi
9839
9840   ;;
9841
9842  *)
9843    echo "$as_me:$LINENO: checking for shl_load" >&5
9844echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9845if test "${ac_cv_func_shl_load+set}" = set; then
9846  echo $ECHO_N "(cached) $ECHO_C" >&6
9847else
9848  cat >conftest.$ac_ext <<_ACEOF
9849/* confdefs.h.  */
9850_ACEOF
9851cat confdefs.h >>conftest.$ac_ext
9852cat >>conftest.$ac_ext <<_ACEOF
9853/* end confdefs.h.  */
9854/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9855   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9856#define shl_load innocuous_shl_load
9857
9858/* System header to define __stub macros and hopefully few prototypes,
9859    which can conflict with char shl_load (); below.
9860    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9861    <limits.h> exists even on freestanding compilers.  */
9862
9863#ifdef __STDC__
9864# include <limits.h>
9865#else
9866# include <assert.h>
9867#endif
9868
9869#undef shl_load
9870
9871/* Override any gcc2 internal prototype to avoid an error.  */
9872#ifdef __cplusplus
9873extern "C"
9874{
9875#endif
9876/* We use char because int might match the return type of a gcc2
9877   builtin and then its argument prototype would still apply.  */
9878char shl_load ();
9879/* The GNU C library defines this for functions which it implements
9880    to always fail with ENOSYS.  Some functions are actually named
9881    something starting with __ and the normal name is an alias.  */
9882#if defined (__stub_shl_load) || defined (__stub___shl_load)
9883choke me
9884#else
9885char (*f) () = shl_load;
9886#endif
9887#ifdef __cplusplus
9888}
9889#endif
9890
9891int
9892main ()
9893{
9894return f != shl_load;
9895  ;
9896  return 0;
9897}
9898_ACEOF
9899rm -f conftest.$ac_objext conftest$ac_exeext
9900if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9901  (eval $ac_link) 2>conftest.er1
9902  ac_status=$?
9903  grep -v '^ *+' conftest.er1 >conftest.err
9904  rm -f conftest.er1
9905  cat conftest.err >&5
9906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9907  (exit $ac_status); } &&
9908         { ac_try='test -z "$ac_c_werror_flag"
9909                         || test ! -s conftest.err'
9910  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9911  (eval $ac_try) 2>&5
9912  ac_status=$?
9913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9914  (exit $ac_status); }; } &&
9915         { ac_try='test -s conftest$ac_exeext'
9916  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9917  (eval $ac_try) 2>&5
9918  ac_status=$?
9919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920  (exit $ac_status); }; }; then
9921  ac_cv_func_shl_load=yes
9922else
9923  echo "$as_me: failed program was:" >&5
9924sed 's/^/| /' conftest.$ac_ext >&5
9925
9926ac_cv_func_shl_load=no
9927fi
9928rm -f conftest.err conftest.$ac_objext \
9929      conftest$ac_exeext conftest.$ac_ext
9930fi
9931echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9932echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9933if test $ac_cv_func_shl_load = yes; then
9934  lt_cv_dlopen="shl_load"
9935else
9936  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9937echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9938if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9939  echo $ECHO_N "(cached) $ECHO_C" >&6
9940else
9941  ac_check_lib_save_LIBS=$LIBS
9942LIBS="-ldld  $LIBS"
9943cat >conftest.$ac_ext <<_ACEOF
9944/* confdefs.h.  */
9945_ACEOF
9946cat confdefs.h >>conftest.$ac_ext
9947cat >>conftest.$ac_ext <<_ACEOF
9948/* end confdefs.h.  */
9949
9950/* Override any gcc2 internal prototype to avoid an error.  */
9951#ifdef __cplusplus
9952extern "C"
9953#endif
9954/* We use char because int might match the return type of a gcc2
9955   builtin and then its argument prototype would still apply.  */
9956char shl_load ();
9957int
9958main ()
9959{
9960shl_load ();
9961  ;
9962  return 0;
9963}
9964_ACEOF
9965rm -f conftest.$ac_objext conftest$ac_exeext
9966if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9967  (eval $ac_link) 2>conftest.er1
9968  ac_status=$?
9969  grep -v '^ *+' conftest.er1 >conftest.err
9970  rm -f conftest.er1
9971  cat conftest.err >&5
9972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973  (exit $ac_status); } &&
9974         { ac_try='test -z "$ac_c_werror_flag"
9975                         || test ! -s conftest.err'
9976  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9977  (eval $ac_try) 2>&5
9978  ac_status=$?
9979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980  (exit $ac_status); }; } &&
9981         { ac_try='test -s conftest$ac_exeext'
9982  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9983  (eval $ac_try) 2>&5
9984  ac_status=$?
9985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986  (exit $ac_status); }; }; then
9987  ac_cv_lib_dld_shl_load=yes
9988else
9989  echo "$as_me: failed program was:" >&5
9990sed 's/^/| /' conftest.$ac_ext >&5
9991
9992ac_cv_lib_dld_shl_load=no
9993fi
9994rm -f conftest.err conftest.$ac_objext \
9995      conftest$ac_exeext conftest.$ac_ext
9996LIBS=$ac_check_lib_save_LIBS
9997fi
9998echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9999echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10000if test $ac_cv_lib_dld_shl_load = yes; then
10001  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10002else
10003  echo "$as_me:$LINENO: checking for dlopen" >&5
10004echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10005if test "${ac_cv_func_dlopen+set}" = set; then
10006  echo $ECHO_N "(cached) $ECHO_C" >&6
10007else
10008  cat >conftest.$ac_ext <<_ACEOF
10009/* confdefs.h.  */
10010_ACEOF
10011cat confdefs.h >>conftest.$ac_ext
10012cat >>conftest.$ac_ext <<_ACEOF
10013/* end confdefs.h.  */
10014/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10015   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10016#define dlopen innocuous_dlopen
10017
10018/* System header to define __stub macros and hopefully few prototypes,
10019    which can conflict with char dlopen (); below.
10020    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10021    <limits.h> exists even on freestanding compilers.  */
10022
10023#ifdef __STDC__
10024# include <limits.h>
10025#else
10026# include <assert.h>
10027#endif
10028
10029#undef dlopen
10030
10031/* Override any gcc2 internal prototype to avoid an error.  */
10032#ifdef __cplusplus
10033extern "C"
10034{
10035#endif
10036/* We use char because int might match the return type of a gcc2
10037   builtin and then its argument prototype would still apply.  */
10038char dlopen ();
10039/* The GNU C library defines this for functions which it implements
10040    to always fail with ENOSYS.  Some functions are actually named
10041    something starting with __ and the normal name is an alias.  */
10042#if defined (__stub_dlopen) || defined (__stub___dlopen)
10043choke me
10044#else
10045char (*f) () = dlopen;
10046#endif
10047#ifdef __cplusplus
10048}
10049#endif
10050
10051int
10052main ()
10053{
10054return f != dlopen;
10055  ;
10056  return 0;
10057}
10058_ACEOF
10059rm -f conftest.$ac_objext conftest$ac_exeext
10060if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10061  (eval $ac_link) 2>conftest.er1
10062  ac_status=$?
10063  grep -v '^ *+' conftest.er1 >conftest.err
10064  rm -f conftest.er1
10065  cat conftest.err >&5
10066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067  (exit $ac_status); } &&
10068         { ac_try='test -z "$ac_c_werror_flag"
10069                         || test ! -s conftest.err'
10070  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10071  (eval $ac_try) 2>&5
10072  ac_status=$?
10073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10074  (exit $ac_status); }; } &&
10075         { ac_try='test -s conftest$ac_exeext'
10076  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10077  (eval $ac_try) 2>&5
10078  ac_status=$?
10079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080  (exit $ac_status); }; }; then
10081  ac_cv_func_dlopen=yes
10082else
10083  echo "$as_me: failed program was:" >&5
10084sed 's/^/| /' conftest.$ac_ext >&5
10085
10086ac_cv_func_dlopen=no
10087fi
10088rm -f conftest.err conftest.$ac_objext \
10089      conftest$ac_exeext conftest.$ac_ext
10090fi
10091echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10092echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10093if test $ac_cv_func_dlopen = yes; then
10094  lt_cv_dlopen="dlopen"
10095else
10096  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10097echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10098if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10099  echo $ECHO_N "(cached) $ECHO_C" >&6
10100else
10101  ac_check_lib_save_LIBS=$LIBS
10102LIBS="-ldl  $LIBS"
10103cat >conftest.$ac_ext <<_ACEOF
10104/* confdefs.h.  */
10105_ACEOF
10106cat confdefs.h >>conftest.$ac_ext
10107cat >>conftest.$ac_ext <<_ACEOF
10108/* end confdefs.h.  */
10109
10110/* Override any gcc2 internal prototype to avoid an error.  */
10111#ifdef __cplusplus
10112extern "C"
10113#endif
10114/* We use char because int might match the return type of a gcc2
10115   builtin and then its argument prototype would still apply.  */
10116char dlopen ();
10117int
10118main ()
10119{
10120dlopen ();
10121  ;
10122  return 0;
10123}
10124_ACEOF
10125rm -f conftest.$ac_objext conftest$ac_exeext
10126if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10127  (eval $ac_link) 2>conftest.er1
10128  ac_status=$?
10129  grep -v '^ *+' conftest.er1 >conftest.err
10130  rm -f conftest.er1
10131  cat conftest.err >&5
10132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10133  (exit $ac_status); } &&
10134         { ac_try='test -z "$ac_c_werror_flag"
10135                         || test ! -s conftest.err'
10136  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10137  (eval $ac_try) 2>&5
10138  ac_status=$?
10139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10140  (exit $ac_status); }; } &&
10141         { ac_try='test -s conftest$ac_exeext'
10142  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10143  (eval $ac_try) 2>&5
10144  ac_status=$?
10145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146  (exit $ac_status); }; }; then
10147  ac_cv_lib_dl_dlopen=yes
10148else
10149  echo "$as_me: failed program was:" >&5
10150sed 's/^/| /' conftest.$ac_ext >&5
10151
10152ac_cv_lib_dl_dlopen=no
10153fi
10154rm -f conftest.err conftest.$ac_objext \
10155      conftest$ac_exeext conftest.$ac_ext
10156LIBS=$ac_check_lib_save_LIBS
10157fi
10158echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10159echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10160if test $ac_cv_lib_dl_dlopen = yes; then
10161  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10162else
10163  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10164echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10165if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10166  echo $ECHO_N "(cached) $ECHO_C" >&6
10167else
10168  ac_check_lib_save_LIBS=$LIBS
10169LIBS="-lsvld  $LIBS"
10170cat >conftest.$ac_ext <<_ACEOF
10171/* confdefs.h.  */
10172_ACEOF
10173cat confdefs.h >>conftest.$ac_ext
10174cat >>conftest.$ac_ext <<_ACEOF
10175/* end confdefs.h.  */
10176
10177/* Override any gcc2 internal prototype to avoid an error.  */
10178#ifdef __cplusplus
10179extern "C"
10180#endif
10181/* We use char because int might match the return type of a gcc2
10182   builtin and then its argument prototype would still apply.  */
10183char dlopen ();
10184int
10185main ()
10186{
10187dlopen ();
10188  ;
10189  return 0;
10190}
10191_ACEOF
10192rm -f conftest.$ac_objext conftest$ac_exeext
10193if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10194  (eval $ac_link) 2>conftest.er1
10195  ac_status=$?
10196  grep -v '^ *+' conftest.er1 >conftest.err
10197  rm -f conftest.er1
10198  cat conftest.err >&5
10199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200  (exit $ac_status); } &&
10201         { ac_try='test -z "$ac_c_werror_flag"
10202                         || test ! -s conftest.err'
10203  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10204  (eval $ac_try) 2>&5
10205  ac_status=$?
10206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207  (exit $ac_status); }; } &&
10208         { ac_try='test -s conftest$ac_exeext'
10209  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10210  (eval $ac_try) 2>&5
10211  ac_status=$?
10212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213  (exit $ac_status); }; }; then
10214  ac_cv_lib_svld_dlopen=yes
10215else
10216  echo "$as_me: failed program was:" >&5
10217sed 's/^/| /' conftest.$ac_ext >&5
10218
10219ac_cv_lib_svld_dlopen=no
10220fi
10221rm -f conftest.err conftest.$ac_objext \
10222      conftest$ac_exeext conftest.$ac_ext
10223LIBS=$ac_check_lib_save_LIBS
10224fi
10225echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10226echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10227if test $ac_cv_lib_svld_dlopen = yes; then
10228  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10229else
10230  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10231echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10232if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10233  echo $ECHO_N "(cached) $ECHO_C" >&6
10234else
10235  ac_check_lib_save_LIBS=$LIBS
10236LIBS="-ldld  $LIBS"
10237cat >conftest.$ac_ext <<_ACEOF
10238/* confdefs.h.  */
10239_ACEOF
10240cat confdefs.h >>conftest.$ac_ext
10241cat >>conftest.$ac_ext <<_ACEOF
10242/* end confdefs.h.  */
10243
10244/* Override any gcc2 internal prototype to avoid an error.  */
10245#ifdef __cplusplus
10246extern "C"
10247#endif
10248/* We use char because int might match the return type of a gcc2
10249   builtin and then its argument prototype would still apply.  */
10250char dld_link ();
10251int
10252main ()
10253{
10254dld_link ();
10255  ;
10256  return 0;
10257}
10258_ACEOF
10259rm -f conftest.$ac_objext conftest$ac_exeext
10260if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10261  (eval $ac_link) 2>conftest.er1
10262  ac_status=$?
10263  grep -v '^ *+' conftest.er1 >conftest.err
10264  rm -f conftest.er1
10265  cat conftest.err >&5
10266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10267  (exit $ac_status); } &&
10268         { ac_try='test -z "$ac_c_werror_flag"
10269                         || test ! -s conftest.err'
10270  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10271  (eval $ac_try) 2>&5
10272  ac_status=$?
10273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10274  (exit $ac_status); }; } &&
10275         { ac_try='test -s conftest$ac_exeext'
10276  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10277  (eval $ac_try) 2>&5
10278  ac_status=$?
10279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10280  (exit $ac_status); }; }; then
10281  ac_cv_lib_dld_dld_link=yes
10282else
10283  echo "$as_me: failed program was:" >&5
10284sed 's/^/| /' conftest.$ac_ext >&5
10285
10286ac_cv_lib_dld_dld_link=no
10287fi
10288rm -f conftest.err conftest.$ac_objext \
10289      conftest$ac_exeext conftest.$ac_ext
10290LIBS=$ac_check_lib_save_LIBS
10291fi
10292echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10293echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10294if test $ac_cv_lib_dld_dld_link = yes; then
10295  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10296fi
10297
10298
10299fi
10300
10301
10302fi
10303
10304
10305fi
10306
10307
10308fi
10309
10310
10311fi
10312
10313    ;;
10314  esac
10315
10316  if test "x$lt_cv_dlopen" != xno; then
10317    enable_dlopen=yes
10318  else
10319    enable_dlopen=no
10320  fi
10321
10322  case $lt_cv_dlopen in
10323  dlopen)
10324    save_CPPFLAGS="$CPPFLAGS"
10325    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10326
10327    save_LDFLAGS="$LDFLAGS"
10328    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10329
10330    save_LIBS="$LIBS"
10331    LIBS="$lt_cv_dlopen_libs $LIBS"
10332
10333    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10334echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10335if test "${lt_cv_dlopen_self+set}" = set; then
10336  echo $ECHO_N "(cached) $ECHO_C" >&6
10337else
10338          if test "$cross_compiling" = yes; then :
10339  lt_cv_dlopen_self=cross
10340else
10341  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10342  lt_status=$lt_dlunknown
10343  cat > conftest.$ac_ext <<EOF
10344#line 10344 "configure"
10345#include "confdefs.h"
10346
10347#if HAVE_DLFCN_H
10348#include <dlfcn.h>
10349#endif
10350
10351#include <stdio.h>
10352
10353#ifdef RTLD_GLOBAL
10354#  define LT_DLGLOBAL           RTLD_GLOBAL
10355#else
10356#  ifdef DL_GLOBAL
10357#    define LT_DLGLOBAL         DL_GLOBAL
10358#  else
10359#    define LT_DLGLOBAL         0
10360#  endif
10361#endif
10362
10363/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10364   find out it does not work in some platform. */
10365#ifndef LT_DLLAZY_OR_NOW
10366#  ifdef RTLD_LAZY
10367#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10368#  else
10369#    ifdef DL_LAZY
10370#      define LT_DLLAZY_OR_NOW          DL_LAZY
10371#    else
10372#      ifdef RTLD_NOW
10373#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10374#      else
10375#        ifdef DL_NOW
10376#          define LT_DLLAZY_OR_NOW      DL_NOW
10377#        else
10378#          define LT_DLLAZY_OR_NOW      0
10379#        endif
10380#      endif
10381#    endif
10382#  endif
10383#endif
10384
10385#ifdef __cplusplus
10386extern "C" void exit (int);
10387#endif
10388
10389void fnord() { int i=42;}
10390int main ()
10391{
10392  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10393  int status = $lt_dlunknown;
10394
10395  if (self)
10396    {
10397      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10398      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10399      /* dlclose (self); */
10400    }
10401  else
10402    puts (dlerror ());
10403
10404    exit (status);
10405}
10406EOF
10407  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10408  (eval $ac_link) 2>&5
10409  ac_status=$?
10410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10412    (./conftest; exit; ) >&5 2>/dev/null
10413    lt_status=$?
10414    case x$lt_status in
10415      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10416      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10417      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10418    esac
10419  else :
10420    # compilation failed
10421    lt_cv_dlopen_self=no
10422  fi
10423fi
10424rm -fr conftest*
10425
10426
10427fi
10428echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10429echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10430
10431    if test "x$lt_cv_dlopen_self" = xyes; then
10432      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10433      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10434echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10435if test "${lt_cv_dlopen_self_static+set}" = set; then
10436  echo $ECHO_N "(cached) $ECHO_C" >&6
10437else
10438          if test "$cross_compiling" = yes; then :
10439  lt_cv_dlopen_self_static=cross
10440else
10441  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10442  lt_status=$lt_dlunknown
10443  cat > conftest.$ac_ext <<EOF
10444#line 10444 "configure"
10445#include "confdefs.h"
10446
10447#if HAVE_DLFCN_H
10448#include <dlfcn.h>
10449#endif
10450
10451#include <stdio.h>
10452
10453#ifdef RTLD_GLOBAL
10454#  define LT_DLGLOBAL           RTLD_GLOBAL
10455#else
10456#  ifdef DL_GLOBAL
10457#    define LT_DLGLOBAL         DL_GLOBAL
10458#  else
10459#    define LT_DLGLOBAL         0
10460#  endif
10461#endif
10462
10463/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10464   find out it does not work in some platform. */
10465#ifndef LT_DLLAZY_OR_NOW
10466#  ifdef RTLD_LAZY
10467#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10468#  else
10469#    ifdef DL_LAZY
10470#      define LT_DLLAZY_OR_NOW          DL_LAZY
10471#    else
10472#      ifdef RTLD_NOW
10473#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10474#      else
10475#        ifdef DL_NOW
10476#          define LT_DLLAZY_OR_NOW      DL_NOW
10477#        else
10478#          define LT_DLLAZY_OR_NOW      0
10479#        endif
10480#      endif
10481#    endif
10482#  endif
10483#endif
10484
10485#ifdef __cplusplus
10486extern "C" void exit (int);
10487#endif
10488
10489void fnord() { int i=42;}
10490int main ()
10491{
10492  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10493  int status = $lt_dlunknown;
10494
10495  if (self)
10496    {
10497      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10498      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10499      /* dlclose (self); */
10500    }
10501  else
10502    puts (dlerror ());
10503
10504    exit (status);
10505}
10506EOF
10507  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10508  (eval $ac_link) 2>&5
10509  ac_status=$?
10510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10512    (./conftest; exit; ) >&5 2>/dev/null
10513    lt_status=$?
10514    case x$lt_status in
10515      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10516      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10517      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10518    esac
10519  else :
10520    # compilation failed
10521    lt_cv_dlopen_self_static=no
10522  fi
10523fi
10524rm -fr conftest*
10525
10526
10527fi
10528echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10529echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10530    fi
10531
10532    CPPFLAGS="$save_CPPFLAGS"
10533    LDFLAGS="$save_LDFLAGS"
10534    LIBS="$save_LIBS"
10535    ;;
10536  esac
10537
10538  case $lt_cv_dlopen_self in
10539  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10540  *) enable_dlopen_self=unknown ;;
10541  esac
10542
10543  case $lt_cv_dlopen_self_static in
10544  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10545  *) enable_dlopen_self_static=unknown ;;
10546  esac
10547fi
10548
10549
10550# Report which library types will actually be built
10551echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10552echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10553echo "$as_me:$LINENO: result: $can_build_shared" >&5
10554echo "${ECHO_T}$can_build_shared" >&6
10555
10556echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10557echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10558test "$can_build_shared" = "no" && enable_shared=no
10559
10560# On AIX, shared libraries and static libraries use the same namespace, and
10561# are all built from PIC.
10562case $host_os in
10563aix3*)
10564  test "$enable_shared" = yes && enable_static=no
10565  if test -n "$RANLIB"; then
10566    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10567    postinstall_cmds='$RANLIB $lib'
10568  fi
10569  ;;
10570
10571aix4* | aix5*)
10572  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10573    test "$enable_shared" = yes && enable_static=no
10574  fi
10575    ;;
10576esac
10577echo "$as_me:$LINENO: result: $enable_shared" >&5
10578echo "${ECHO_T}$enable_shared" >&6
10579
10580echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10581echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10582# Make sure either enable_shared or enable_static is yes.
10583test "$enable_shared" = yes || enable_static=yes
10584echo "$as_me:$LINENO: result: $enable_static" >&5
10585echo "${ECHO_T}$enable_static" >&6
10586
10587# The else clause should only fire when bootstrapping the
10588# libtool distribution, otherwise you forgot to ship ltmain.sh
10589# with your package, and you will get complaints that there are
10590# no rules to generate ltmain.sh.
10591if test -f "$ltmain"; then
10592  # See if we are running on zsh, and set the options which allow our commands through
10593  # without removal of \ escapes.
10594  if test -n "${ZSH_VERSION+set}" ; then
10595    setopt NO_GLOB_SUBST
10596  fi
10597  # Now quote all the things that may contain metacharacters while being
10598  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10599  # variables and quote the copies for generation of the libtool script.
10600  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10601    SED SHELL STRIP \
10602    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10603    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10604    deplibs_check_method reload_flag reload_cmds need_locks \
10605    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10606    lt_cv_sys_global_symbol_to_c_name_address \
10607    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10608    old_postinstall_cmds old_postuninstall_cmds \
10609    compiler \
10610    CC \
10611    LD \
10612    lt_prog_compiler_wl \
10613    lt_prog_compiler_pic \
10614    lt_prog_compiler_static \
10615    lt_prog_compiler_no_builtin_flag \
10616    export_dynamic_flag_spec \
10617    thread_safe_flag_spec \
10618    whole_archive_flag_spec \
10619    enable_shared_with_static_runtimes \
10620    old_archive_cmds \
10621    old_archive_from_new_cmds \
10622    predep_objects \
10623    postdep_objects \
10624    predeps \
10625    postdeps \
10626    compiler_lib_search_path \
10627    archive_cmds \
10628    archive_expsym_cmds \
10629    postinstall_cmds \
10630    postuninstall_cmds \
10631    old_archive_from_expsyms_cmds \
10632    allow_undefined_flag \
10633    no_undefined_flag \
10634    export_symbols_cmds \
10635    hardcode_libdir_flag_spec \
10636    hardcode_libdir_flag_spec_ld \
10637    hardcode_libdir_separator \
10638    hardcode_automatic \
10639    module_cmds \
10640    module_expsym_cmds \
10641    lt_cv_prog_compiler_c_o \
10642    exclude_expsyms \
10643    include_expsyms; do
10644
10645    case $var in
10646    old_archive_cmds | \
10647    old_archive_from_new_cmds | \
10648    archive_cmds | \
10649    archive_expsym_cmds | \
10650    module_cmds | \
10651    module_expsym_cmds | \
10652    old_archive_from_expsyms_cmds | \
10653    export_symbols_cmds | \
10654    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10655    postinstall_cmds | postuninstall_cmds | \
10656    old_postinstall_cmds | old_postuninstall_cmds | \
10657    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10658      # Double-quote double-evaled strings.
10659      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10660      ;;
10661    *)
10662      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10663      ;;
10664    esac
10665  done
10666
10667  case $lt_echo in
10668  *'\$0 --fallback-echo"')
10669    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10670    ;;
10671  esac
10672
10673cfgfile="${ofile}T"
10674  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10675  $rm -f "$cfgfile"
10676  { echo "$as_me:$LINENO: creating $ofile" >&5
10677echo "$as_me: creating $ofile" >&6;}
10678
10679  cat <<__EOF__ >> "$cfgfile"
10680#! $SHELL
10681
10682# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10683# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10684# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10685#
10686# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10687# Free Software Foundation, Inc.
10688#
10689# This file is part of GNU Libtool:
10690# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10691#
10692# This program is free software; you can redistribute it and/or modify
10693# it under the terms of the GNU General Public License as published by
10694# the Free Software Foundation; either version 2 of the License, or
10695# (at your option) any later version.
10696#
10697# This program is distributed in the hope that it will be useful, but
10698# WITHOUT ANY WARRANTY; without even the implied warranty of
10699# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10700# General Public License for more details.
10701#
10702# You should have received a copy of the GNU General Public License
10703# along with this program; if not, write to the Free Software
10704# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10705#
10706# As a special exception to the GNU General Public License, if you
10707# distribute this file as part of a program that contains a
10708# configuration script generated by Autoconf, you may include it under
10709# the same distribution terms that you use for the rest of that program.
10710
10711# A sed program that does not truncate output.
10712SED=$lt_SED
10713
10714# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10715Xsed="$SED -e 1s/^X//"
10716
10717# The HP-UX ksh and POSIX shell print the target directory to stdout
10718# if CDPATH is set.
10719(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10720
10721# The names of the tagged configurations supported by this script.
10722available_tags=
10723
10724# ### BEGIN LIBTOOL CONFIG
10725
10726# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10727
10728# Shell to use when invoking shell scripts.
10729SHELL=$lt_SHELL
10730
10731# Whether or not to build shared libraries.
10732build_libtool_libs=$enable_shared
10733
10734# Whether or not to build static libraries.
10735build_old_libs=$enable_static
10736
10737# Whether or not to add -lc for building shared libraries.
10738build_libtool_need_lc=$archive_cmds_need_lc
10739
10740# Whether or not to disallow shared libs when runtime libs are static
10741allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10742
10743# Whether or not to optimize for fast installation.
10744fast_install=$enable_fast_install
10745
10746# The host system.
10747host_alias=$host_alias
10748host=$host
10749host_os=$host_os
10750
10751# The build system.
10752build_alias=$build_alias
10753build=$build
10754build_os=$build_os
10755
10756# An echo program that does not interpret backslashes.
10757echo=$lt_echo
10758
10759# The archiver.
10760AR=$lt_AR
10761AR_FLAGS=$lt_AR_FLAGS
10762
10763# A C compiler.
10764LTCC=$lt_LTCC
10765
10766# LTCC compiler flags.
10767LTCFLAGS=$lt_LTCFLAGS
10768
10769# A language-specific compiler.
10770CC=$lt_compiler
10771
10772# Is the compiler the GNU C compiler?
10773with_gcc=$GCC
10774
10775# An ERE matcher.
10776EGREP=$lt_EGREP
10777
10778# The linker used to build libraries.
10779LD=$lt_LD
10780
10781# Whether we need hard or soft links.
10782LN_S=$lt_LN_S
10783
10784# A BSD-compatible nm program.
10785NM=$lt_NM
10786
10787# A symbol stripping program
10788STRIP=$lt_STRIP
10789