source: ThirdParty/ASL/stable/1.2/configure @ 3061

Last change on this file since 3061 was 3061, checked in by stefan, 6 years ago

sync with trunk; rerun autotools

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