source: ThirdParty/ASL/stable/1.4/configure @ 3844

Last change on this file since 3844 was 3844, checked in by stefan, 13 months ago

restoring BuildTools/ThirdParty?/ASL/stable/1.4

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