2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.59.
5
# Copyright (C) 2003 Free Software Foundation, Inc.
6
# This configure script is free software; the Free Software Foundation
7
# gives unlimited permission to copy, distribute and modify it.
8
## --------------------- ##
9
## M4sh Initialization. ##
10
## --------------------- ##
12
# Be Bourne compatible
13
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17
# is contrary to our usage. Disable this feature.
18
alias -g '${1+"$@"}'='"$@"'
19
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22
DUALCASE=1; export DUALCASE # for MKS sh
24
# Support unset when possible.
25
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32
# Work around bugs in pre-3.0 UWIN ksh.
33
$as_unset ENV MAIL MAILPATH
40
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45
eval $as_var=C; export $as_var
51
# Required to use basename.
52
if expr a : '\(a\)' >/dev/null 2>&1; then
58
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65
# Name of the executable.
66
as_me=`$as_basename "$0" ||
67
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68
X"$0" : 'X\(//\)$' \| \
69
X"$0" : 'X\(/\)$' \| \
70
. : '\(.\)' 2>/dev/null ||
72
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73
/^X\/\(\/\/\)$/{ s//\1/; q; }
74
/^X\/\(\/\).*/{ s//\1/; q; }
78
# PATH needs CR, and LINENO needs CR and PATH.
79
# Avoid depending upon Character Ranges.
80
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83
as_cr_digits='0123456789'
84
as_cr_alnum=$as_cr_Letters$as_cr_digits
86
# The user is always right.
87
if test "${PATH_SEPARATOR+set}" != set; then
88
echo "#! /bin/sh" >conf$$.sh
89
echo "exit 0" >>conf$$.sh
91
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103
test "x$as_lineno_1" != "x$as_lineno_2" &&
104
test "x$as_lineno_3" = "x$as_lineno_2" || {
105
# Find who we are. Look in the path if we contain no path at all
108
*[\\/]* ) as_myself=$0 ;;
109
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113
test -z "$as_dir" && as_dir=.
114
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119
# We did not find ourselves, most probably we were run as `sh COMMAND'
120
# in which case we are not to be found in the path.
121
if test "x$as_myself" = x; then
124
if test ! -f "$as_myself"; then
125
{ echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126
{ (exit 1); exit 1; }; }
128
case $CONFIG_SHELL in
130
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134
test -z "$as_dir" && as_dir=.
135
for as_base in sh bash ksh sh5; do
138
if ("$as_dir/$as_base" -c '
141
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142
test "x$as_lineno_1" != "x$as_lineno_2" &&
143
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146
CONFIG_SHELL=$as_dir/$as_base
148
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157
# uniformly replaced by the line number. The first 'sed' inserts a
158
# line-number line before each line; the second 'sed' does the real
159
# work. The second script uses 'N' to pair each line-number line
160
# with the numbered line, and appends trailing '-' during
161
# substitution so that $LINENO is not a special case at line end.
162
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164
sed '=' <$as_myself |
169
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172
s,^['$as_cr_digits']*\n,,
174
chmod +x $as_me.lineno ||
175
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176
{ (exit 1); exit 1; }; }
178
# Don't try to exec as it changes $[0], causing all sort of problems
179
# (the dirname of $[0] is not the place where we might find the
180
# original and so on. Autoconf is especially sensible to this).
182
# Exit status is that of the last command.
187
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188
*c*,-n*) ECHO_N= ECHO_C='
190
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194
if expr a : '\(a\)' >/dev/null 2>&1; then
200
rm -f conf$$ conf$$.exe conf$$.file
202
if ln -s conf$$.file conf$$ 2>/dev/null; then
203
# We could just check for DJGPP; but this test a) works b) is more generic
204
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205
if test -f conf$$.exe; then
206
# Don't use ln at all; we don't have any links
211
elif ln conf$$.file conf$$ 2>/dev/null; then
216
rm -f conf$$ conf$$.exe conf$$.file
218
if mkdir -p . 2>/dev/null; then
221
test -d ./-p && rmdir ./-p
225
as_executable_p="test -f"
227
# Sed expression to map a string onto a valid CPP name.
228
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230
# Sed expression to map a string onto a valid variable name.
231
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235
# We need space, tab and new line, in precisely that order.
244
# Find the correct PATH separator. Usually this is `:', but
245
# DJGPP uses `;' like DOS.
246
if test "X${PATH_SEPARATOR+set}" != Xset; then
247
UNAME=${UNAME-`uname 2>/dev/null`}
249
*-DOS) lt_cv_sys_path_separator=';' ;;
250
*) lt_cv_sys_path_separator=':' ;;
252
PATH_SEPARATOR=$lt_cv_sys_path_separator
256
# Check that we are running under the correct shell.
257
SHELL=${CONFIG_SHELL-/bin/sh}
261
# Remove one level of quotation (which was required for Make).
262
ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
267
if test "X$1" = X--no-reexec; then
268
# Discard the --no-reexec flag, and continue.
270
elif test "X$1" = X--fallback-echo; then
271
# Avoid inline document here, it may be left over
273
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
274
# Yippee, $echo works!
277
# Restart under the correct shell.
278
exec $SHELL "$0" --no-reexec ${1+"$@"}
281
if test "X$1" = X--fallback-echo; then
282
# used as fallback echo
290
# The HP-UX ksh and POSIX shell print the target directory to stdout
292
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
294
if test -z "$ECHO"; then
295
if test "X${echo_test_string+set}" != Xset; then
296
# find a string as large as possible, as long as the shell can cope with it
297
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
298
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
299
if (echo_test_string="`eval $cmd`") 2>/dev/null &&
300
echo_test_string="`eval $cmd`" &&
301
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
308
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
309
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
310
test "X$echo_testing_string" = "X$echo_test_string"; then
313
# The Solaris, AIX, and Digital Unix default echo programs unquote
314
# backslashes. This makes it impossible to quote backslashes using
315
# echo "$something" | sed 's/\\/\\\\/g'
317
# So, first we look for a working echo in the user's PATH.
319
IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
320
for dir in $PATH /usr/ucb; do
321
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
322
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
323
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
324
test "X$echo_testing_string" = "X$echo_test_string"; then
331
if test "X$echo" = Xecho; then
332
# We didn't find a better echo, so look for alternatives.
333
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
334
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
335
test "X$echo_testing_string" = "X$echo_test_string"; then
336
# This shell has a builtin print -r that does the trick.
338
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
339
test "X$CONFIG_SHELL" != X/bin/ksh; then
340
# If we have ksh, try running configure again with it.
341
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
342
export ORIGINAL_CONFIG_SHELL
343
CONFIG_SHELL=/bin/ksh
345
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
349
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
350
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
351
test "X$echo_testing_string" = "X$echo_test_string"; then
354
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355
test "X$echo_testing_string" = 'X\t' &&
356
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357
test "X$echo_testing_string" = "X$echo_test_string"; then
358
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
360
SHELL="$CONFIG_SHELL"
362
echo="$CONFIG_SHELL $0 --fallback-echo"
363
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
364
test "X$echo_testing_string" = 'X\t' &&
365
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
366
test "X$echo_testing_string" = "X$echo_test_string"; then
367
echo="$CONFIG_SHELL $0 --fallback-echo"
369
# maybe with a smaller string...
372
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
373
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
380
if test "$prev" != 'sed 50q "$0"'; then
381
echo_test_string=`eval $prev`
382
export echo_test_string
383
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
385
# Oops. We lost completely, so just stick with echo.
394
# Copy echo and quote the copy suitably for passing to libtool from
395
# the Makefile, instead of quoting the original, which is used later.
397
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
398
ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
404
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
405
# so uname gets run too.
406
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
413
ac_default_prefix=/usr/local
414
ac_config_libobj_dir=.
419
SHELL=${CONFIG_SHELL-/bin/sh}
421
# Maximum number of lines to put in a shell here document.
422
# This variable seems obsolete. It should probably be removed, and
423
# only ac_max_sed_lines should be used.
424
: ${ac_max_here_lines=38}
426
# Identity of this package.
433
ac_unique_file="libmathhelper/mathhelper.c"
434
# Factoring default headers for most tests.
435
ac_includes_default="\
438
# include <sys/types.h>
441
# include <sys/stat.h>
452
# if !STDC_HEADERS && HAVE_MEMORY_H
458
# include <strings.h>
461
# include <inttypes.h>
471
ac_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 host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE LN_S ECHO RANLIB ac_ct_RANLIB CPP EGREP LIBTOOL LIBOBJS LTLIBOBJS'
474
# Initialize some variables set by options.
476
ac_init_version=false
477
# The variables have the same names as the options, with
478
# dashes changed to underlines.
486
program_transform_name=s,x,x,
494
# Installation directory options.
495
# These are left unexpanded so users can "make install exec_prefix=/foo"
496
# and all the variables that are supposed to be based on exec_prefix
497
# by default will actually change.
498
# Use braces instead of parens because sh, perl, etc. also accept them.
499
bindir='${exec_prefix}/bin'
500
sbindir='${exec_prefix}/sbin'
501
libexecdir='${exec_prefix}/libexec'
502
datadir='${prefix}/share'
503
sysconfdir='${prefix}/etc'
504
sharedstatedir='${prefix}/com'
505
localstatedir='${prefix}/var'
506
libdir='${exec_prefix}/lib'
507
includedir='${prefix}/include'
508
oldincludedir='/usr/include'
509
infodir='${prefix}/info'
510
mandir='${prefix}/man'
515
# If the previous option needs an argument, assign it.
516
if test -n "$ac_prev"; then
517
eval "$ac_prev=\$ac_option"
522
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
524
# Accept the important Cygnus configure options, so we can diagnose typos.
528
-bindir | --bindir | --bindi | --bind | --bin | --bi)
530
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
533
-build | --build | --buil | --bui | --bu)
534
ac_prev=build_alias ;;
535
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
536
build_alias=$ac_optarg ;;
538
-cache-file | --cache-file | --cache-fil | --cache-fi \
539
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
540
ac_prev=cache_file ;;
541
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
542
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
543
cache_file=$ac_optarg ;;
546
cache_file=config.cache ;;
548
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
550
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
552
datadir=$ac_optarg ;;
554
-disable-* | --disable-*)
555
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
556
# Reject names that are not valid shell variable names.
557
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
559
{ (exit 1); exit 1; }; }
560
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561
eval "enable_$ac_feature=no" ;;
563
-enable-* | --enable-*)
564
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
565
# Reject names that are not valid shell variable names.
566
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
567
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
568
{ (exit 1); exit 1; }; }
569
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
571
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
574
eval "enable_$ac_feature='$ac_optarg'" ;;
576
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
577
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
578
| --exec | --exe | --ex)
579
ac_prev=exec_prefix ;;
580
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
581
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
582
| --exec=* | --exe=* | --ex=*)
583
exec_prefix=$ac_optarg ;;
585
-gas | --gas | --ga | --g)
586
# Obsolete; use --with-gas.
589
-help | --help | --hel | --he | -h)
591
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
592
ac_init_help=recursive ;;
593
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
594
ac_init_help=short ;;
596
-host | --host | --hos | --ho)
597
ac_prev=host_alias ;;
598
-host=* | --host=* | --hos=* | --ho=*)
599
host_alias=$ac_optarg ;;
601
-includedir | --includedir | --includedi | --included | --include \
602
| --includ | --inclu | --incl | --inc)
603
ac_prev=includedir ;;
604
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
605
| --includ=* | --inclu=* | --incl=* | --inc=*)
606
includedir=$ac_optarg ;;
608
-infodir | --infodir | --infodi | --infod | --info | --inf)
610
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
611
infodir=$ac_optarg ;;
613
-libdir | --libdir | --libdi | --libd)
615
-libdir=* | --libdir=* | --libdi=* | --libd=*)
618
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
619
| --libexe | --libex | --libe)
620
ac_prev=libexecdir ;;
621
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
622
| --libexe=* | --libex=* | --libe=*)
623
libexecdir=$ac_optarg ;;
625
-localstatedir | --localstatedir | --localstatedi | --localstated \
626
| --localstate | --localstat | --localsta | --localst \
627
| --locals | --local | --loca | --loc | --lo)
628
ac_prev=localstatedir ;;
629
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
630
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
631
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
632
localstatedir=$ac_optarg ;;
634
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
636
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
640
# Obsolete; use --without-fp.
643
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
644
| --no-cr | --no-c | -n)
647
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
648
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
651
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
652
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
653
| --oldin | --oldi | --old | --ol | --o)
654
ac_prev=oldincludedir ;;
655
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
656
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
657
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
658
oldincludedir=$ac_optarg ;;
660
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
662
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
665
-program-prefix | --program-prefix | --program-prefi | --program-pref \
666
| --program-pre | --program-pr | --program-p)
667
ac_prev=program_prefix ;;
668
-program-prefix=* | --program-prefix=* | --program-prefi=* \
669
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
670
program_prefix=$ac_optarg ;;
672
-program-suffix | --program-suffix | --program-suffi | --program-suff \
673
| --program-suf | --program-su | --program-s)
674
ac_prev=program_suffix ;;
675
-program-suffix=* | --program-suffix=* | --program-suffi=* \
676
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
677
program_suffix=$ac_optarg ;;
679
-program-transform-name | --program-transform-name \
680
| --program-transform-nam | --program-transform-na \
681
| --program-transform-n | --program-transform- \
682
| --program-transform | --program-transfor \
683
| --program-transfo | --program-transf \
684
| --program-trans | --program-tran \
685
| --progr-tra | --program-tr | --program-t)
686
ac_prev=program_transform_name ;;
687
-program-transform-name=* | --program-transform-name=* \
688
| --program-transform-nam=* | --program-transform-na=* \
689
| --program-transform-n=* | --program-transform-=* \
690
| --program-transform=* | --program-transfor=* \
691
| --program-transfo=* | --program-transf=* \
692
| --program-trans=* | --program-tran=* \
693
| --progr-tra=* | --program-tr=* | --program-t=*)
694
program_transform_name=$ac_optarg ;;
696
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
697
| -silent | --silent | --silen | --sile | --sil)
700
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
702
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
704
sbindir=$ac_optarg ;;
706
-sharedstatedir | --sharedstatedir | --sharedstatedi \
707
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
708
| --sharedst | --shareds | --shared | --share | --shar \
710
ac_prev=sharedstatedir ;;
711
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
712
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
713
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
715
sharedstatedir=$ac_optarg ;;
717
-site | --site | --sit)
719
-site=* | --site=* | --sit=*)
722
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
724
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
727
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
728
| --syscon | --sysco | --sysc | --sys | --sy)
729
ac_prev=sysconfdir ;;
730
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
731
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
732
sysconfdir=$ac_optarg ;;
734
-target | --target | --targe | --targ | --tar | --ta | --t)
735
ac_prev=target_alias ;;
736
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
737
target_alias=$ac_optarg ;;
739
-v | -verbose | --verbose | --verbos | --verbo | --verb)
742
-version | --version | --versio | --versi | --vers | -V)
746
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
747
# Reject names that are not valid shell variable names.
748
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
749
{ echo "$as_me: error: invalid package name: $ac_package" >&2
750
{ (exit 1); exit 1; }; }
751
ac_package=`echo $ac_package| sed 's/-/_/g'`
753
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
756
eval "with_$ac_package='$ac_optarg'" ;;
758
-without-* | --without-*)
759
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
760
# Reject names that are not valid shell variable names.
761
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
762
{ echo "$as_me: error: invalid package name: $ac_package" >&2
763
{ (exit 1); exit 1; }; }
764
ac_package=`echo $ac_package | sed 's/-/_/g'`
765
eval "with_$ac_package=no" ;;
768
# Obsolete; use --with-x.
771
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
772
| --x-incl | --x-inc | --x-in | --x-i)
773
ac_prev=x_includes ;;
774
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
775
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
776
x_includes=$ac_optarg ;;
778
-x-libraries | --x-libraries | --x-librarie | --x-librari \
779
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
780
ac_prev=x_libraries ;;
781
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
782
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
783
x_libraries=$ac_optarg ;;
785
-*) { echo "$as_me: error: unrecognized option: $ac_option
786
Try \`$0 --help' for more information." >&2
787
{ (exit 1); exit 1; }; }
791
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
792
# Reject names that are not valid shell variable names.
793
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
794
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
795
{ (exit 1); exit 1; }; }
796
ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
797
eval "$ac_envvar='$ac_optarg'"
801
# FIXME: should be removed in autoconf 3.0.
802
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
803
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
804
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
805
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
811
if test -n "$ac_prev"; then
812
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
813
{ echo "$as_me: error: missing argument to $ac_option" >&2
814
{ (exit 1); exit 1; }; }
817
# Be sure to have absolute paths.
818
for ac_var in exec_prefix prefix
820
eval ac_val=$`echo $ac_var`
822
[\\/$]* | ?:[\\/]* | NONE | '' ) ;;
823
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
824
{ (exit 1); exit 1; }; };;
828
# Be sure to have absolute paths.
829
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
830
localstatedir libdir includedir oldincludedir infodir mandir
832
eval ac_val=$`echo $ac_var`
834
[\\/$]* | ?:[\\/]* ) ;;
835
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
836
{ (exit 1); exit 1; }; };;
840
# There might be people who depend on the old broken behavior: `$host'
841
# used to hold the argument of --host etc.
842
# FIXME: To remove some day.
847
# FIXME: To remove some day.
848
if test "x$host_alias" != x; then
849
if test "x$build_alias" = x; then
850
cross_compiling=maybe
851
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
852
If a cross compiler is detected then cross compile mode will be used." >&2
853
elif test "x$build_alias" != "x$host_alias"; then
859
test -n "$host_alias" && ac_tool_prefix=$host_alias-
861
test "$silent" = yes && exec 6>/dev/null
864
# Find the source files, if location was not specified.
865
if test -z "$srcdir"; then
866
ac_srcdir_defaulted=yes
867
# Try the directory containing this script, then its parent.
868
ac_confdir=`(dirname "$0") 2>/dev/null ||
869
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
870
X"$0" : 'X\(//\)[^/]' \| \
871
X"$0" : 'X\(//\)$' \| \
872
X"$0" : 'X\(/\)' \| \
873
. : '\(.\)' 2>/dev/null ||
875
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
876
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
877
/^X\(\/\/\)$/{ s//\1/; q; }
878
/^X\(\/\).*/{ s//\1/; q; }
881
if test ! -r $srcdir/$ac_unique_file; then
885
ac_srcdir_defaulted=no
887
if test ! -r $srcdir/$ac_unique_file; then
888
if test "$ac_srcdir_defaulted" = yes; then
889
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
890
{ (exit 1); exit 1; }; }
892
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
893
{ (exit 1); exit 1; }; }
896
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
897
{ echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
898
{ (exit 1); exit 1; }; }
899
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
900
ac_env_build_alias_set=${build_alias+set}
901
ac_env_build_alias_value=$build_alias
902
ac_cv_env_build_alias_set=${build_alias+set}
903
ac_cv_env_build_alias_value=$build_alias
904
ac_env_host_alias_set=${host_alias+set}
905
ac_env_host_alias_value=$host_alias
906
ac_cv_env_host_alias_set=${host_alias+set}
907
ac_cv_env_host_alias_value=$host_alias
908
ac_env_target_alias_set=${target_alias+set}
909
ac_env_target_alias_value=$target_alias
910
ac_cv_env_target_alias_set=${target_alias+set}
911
ac_cv_env_target_alias_value=$target_alias
912
ac_env_CC_set=${CC+set}
914
ac_cv_env_CC_set=${CC+set}
915
ac_cv_env_CC_value=$CC
916
ac_env_CFLAGS_set=${CFLAGS+set}
917
ac_env_CFLAGS_value=$CFLAGS
918
ac_cv_env_CFLAGS_set=${CFLAGS+set}
919
ac_cv_env_CFLAGS_value=$CFLAGS
920
ac_env_LDFLAGS_set=${LDFLAGS+set}
921
ac_env_LDFLAGS_value=$LDFLAGS
922
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
923
ac_cv_env_LDFLAGS_value=$LDFLAGS
924
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
925
ac_env_CPPFLAGS_value=$CPPFLAGS
926
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
927
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
928
ac_env_CXX_set=${CXX+set}
929
ac_env_CXX_value=$CXX
930
ac_cv_env_CXX_set=${CXX+set}
931
ac_cv_env_CXX_value=$CXX
932
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
933
ac_env_CXXFLAGS_value=$CXXFLAGS
934
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
935
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
936
ac_env_CPP_set=${CPP+set}
937
ac_env_CPP_value=$CPP
938
ac_cv_env_CPP_set=${CPP+set}
939
ac_cv_env_CPP_value=$CPP
942
# Report the --help message.
944
if test "$ac_init_help" = "long"; then
945
# Omit some internal or obsolete options to make the list less imposing.
946
# This message is too long to be a string in the A/UX 3.1 sh.
948
\`configure' configures this package to adapt to many kinds of systems.
950
Usage: $0 [OPTION]... [VAR=VALUE]...
952
To assign environment variables (e.g., CC, CFLAGS...), specify them as
953
VAR=VALUE. See below for descriptions of some of the useful variables.
955
Defaults for the options are specified in brackets.
958
-h, --help display this help and exit
959
--help=short display options specific to this package
960
--help=recursive display the short help of all the included packages
961
-V, --version display version information and exit
962
-q, --quiet, --silent do not print \`checking...' messages
963
--cache-file=FILE cache test results in FILE [disabled]
964
-C, --config-cache alias for \`--cache-file=config.cache'
965
-n, --no-create do not create output files
966
--srcdir=DIR find the sources in DIR [configure dir or \`..']
971
Installation directories:
972
--prefix=PREFIX install architecture-independent files in PREFIX
974
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
977
By default, \`make install' will install all the files in
978
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
979
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
980
for instance \`--prefix=\$HOME'.
982
For better control, use the options below.
984
Fine tuning of the installation directories:
985
--bindir=DIR user executables [EPREFIX/bin]
986
--sbindir=DIR system admin executables [EPREFIX/sbin]
987
--libexecdir=DIR program executables [EPREFIX/libexec]
988
--datadir=DIR read-only architecture-independent data [PREFIX/share]
989
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
990
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
991
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
992
--libdir=DIR object code libraries [EPREFIX/lib]
993
--includedir=DIR C header files [PREFIX/include]
994
--oldincludedir=DIR C header files for non-gcc [/usr/include]
995
--infodir=DIR info documentation [PREFIX/info]
996
--mandir=DIR man documentation [PREFIX/man]
1002
--program-prefix=PREFIX prepend PREFIX to installed program names
1003
--program-suffix=SUFFIX append SUFFIX to installed program names
1004
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1007
--build=BUILD configure for building on BUILD [guessed]
1008
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1009
--target=TARGET configure for building compilers for TARGET [HOST]
1013
if test -n "$ac_init_help"; then
1018
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1019
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1020
--disable-dependency-tracking Speeds up one-time builds
1021
--enable-dependency-tracking Do not reject slow dependency extractors
1022
--enable-shared=PKGS build shared libraries default=yes
1023
--enable-static=PKGS build static libraries default=yes
1024
--enable-fast-install=PKGS optimize for fast installation default=yes
1025
--disable-libtool-lock avoid locking (might break parallel builds)
1028
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1029
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1030
--with-gnu-ld assume the C compiler uses GNU ld default=no
1031
--with-pic try to use only PIC/non-PIC objects default=use both
1033
Some influential environment variables:
1034
CC C compiler command
1035
CFLAGS C compiler flags
1036
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1037
nonstandard directory <lib dir>
1038
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1039
headers in a nonstandard directory <include dir>
1040
CXX C++ compiler command
1041
CXXFLAGS C++ compiler flags
1044
Use these variables to override the choices made by `configure' or to help
1045
it to find libraries and programs with nonstandard names/locations.
1050
if test "$ac_init_help" = "recursive"; then
1051
# If there are subdirs, report their specific --help.
1053
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1054
test -d $ac_dir || continue
1057
if test "$ac_dir" != .; then
1058
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1059
# A "../" for each directory in $ac_dir_suffix.
1060
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1062
ac_dir_suffix= ac_top_builddir=
1066
.) # No --srcdir option. We are building in place.
1068
if test -z "$ac_top_builddir"; then
1071
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1073
[\\/]* | ?:[\\/]* ) # Absolute path.
1074
ac_srcdir=$srcdir$ac_dir_suffix;
1075
ac_top_srcdir=$srcdir ;;
1077
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1078
ac_top_srcdir=$ac_top_builddir$srcdir ;;
1081
# Do not use `cd foo && pwd` to compute absolute paths, because
1082
# the directories may not exist.
1084
.) ac_abs_builddir="$ac_dir";;
1087
.) ac_abs_builddir=`pwd`;;
1088
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1089
*) ac_abs_builddir=`pwd`/"$ac_dir";;
1092
case $ac_abs_builddir in
1093
.) ac_abs_top_builddir=${ac_top_builddir}.;;
1095
case ${ac_top_builddir}. in
1096
.) ac_abs_top_builddir=$ac_abs_builddir;;
1097
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1098
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1101
case $ac_abs_builddir in
1102
.) ac_abs_srcdir=$ac_srcdir;;
1105
.) ac_abs_srcdir=$ac_abs_builddir;;
1106
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1107
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1110
case $ac_abs_builddir in
1111
.) ac_abs_top_srcdir=$ac_top_srcdir;;
1113
case $ac_top_srcdir in
1114
.) ac_abs_top_srcdir=$ac_abs_builddir;;
1115
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1116
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1121
# Check for guested configure; otherwise get Cygnus style configure.
1122
if test -f $ac_srcdir/configure.gnu; then
1124
$SHELL $ac_srcdir/configure.gnu --help=recursive
1125
elif test -f $ac_srcdir/configure; then
1127
$SHELL $ac_srcdir/configure --help=recursive
1128
elif test -f $ac_srcdir/configure.ac ||
1129
test -f $ac_srcdir/configure.in; then
1131
$ac_configure --help
1133
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1139
test -n "$ac_init_help" && exit 0
1140
if $ac_init_version; then
1143
Copyright (C) 2003 Free Software Foundation, Inc.
1144
This configure script is free software; the Free Software Foundation
1145
gives unlimited permission to copy, distribute and modify it.
1151
This file contains any messages produced by compilers while
1152
running configure, to aid debugging if configure makes a mistake.
1154
It was created by $as_me, which was
1155
generated by GNU Autoconf 2.59. Invocation command line was
1166
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1167
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1168
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1169
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1170
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1172
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1173
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1175
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1176
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1177
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1178
hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1179
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1180
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1181
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1185
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1189
test -z "$as_dir" && as_dir=.
1190
echo "PATH: $as_dir"
1205
# Keep a trace of the command line.
1206
# Strip out --no-create and --no-recursion so they do not pile up.
1207
# Strip out --silent because we don't want to record it for future runs.
1208
# Also quote any args containing shell meta-characters.
1209
# Make two passes to allow for proper duplicate-argument suppression.
1214
ac_must_keep_next=false
1220
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1221
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1222
| -silent | --silent | --silen | --sile | --sil)
1224
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1225
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1228
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1230
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1231
if test $ac_must_keep_next = true; then
1232
ac_must_keep_next=false # Got value, back to normal.
1235
*=* | --config-cache | -C | -disable-* | --disable-* \
1236
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1237
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1238
| -with-* | --with-* | -without-* | --without-* | --x)
1239
case "$ac_configure_args0 " in
1240
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1243
-* ) ac_must_keep_next=true ;;
1246
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1247
# Get rid of the leading space.
1253
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1254
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1256
# When interrupted or exit'd, cleanup temporary files, and complete
1257
# config.log. We remove comments because anyway the quotes in there
1258
# would cause problems or look ugly.
1259
# WARNING: Be sure not to use single quotes in there, as some shells,
1260
# such as our DU 5.0 friend, will then `close' the trap.
1261
trap 'exit_status=$?
1262
# Save into config.log some information that might help in debugging.
1267
## ---------------- ##
1268
## Cache variables. ##
1269
## ---------------- ##
1272
# The following way of writing the cache mishandles newlines in values,
1275
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1278
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1279
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1283
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1290
## ----------------- ##
1291
## Output variables. ##
1292
## ----------------- ##
1295
for ac_var in $ac_subst_vars
1297
eval ac_val=$`echo $ac_var`
1298
echo "$ac_var='"'"'$ac_val'"'"'"
1302
if test -n "$ac_subst_files"; then
1309
for ac_var in $ac_subst_files
1311
eval ac_val=$`echo $ac_var`
1312
echo "$ac_var='"'"'$ac_val'"'"'"
1317
if test -s confdefs.h; then
1324
sed "/^$/d" confdefs.h | sort
1327
test "$ac_signal" != 0 &&
1328
echo "$as_me: caught signal $ac_signal"
1329
echo "$as_me: exit $exit_status"
1331
rm -f core *.core &&
1332
rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1335
for ac_signal in 1 2 13 15; do
1336
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1340
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1341
rm -rf conftest* confdefs.h
1342
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1345
# Predefined preprocessor variables.
1347
cat >>confdefs.h <<_ACEOF
1348
#define PACKAGE_NAME "$PACKAGE_NAME"
1352
cat >>confdefs.h <<_ACEOF
1353
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1357
cat >>confdefs.h <<_ACEOF
1358
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1362
cat >>confdefs.h <<_ACEOF
1363
#define PACKAGE_STRING "$PACKAGE_STRING"
1367
cat >>confdefs.h <<_ACEOF
1368
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1372
# Let the site file select an alternate cache file if it wants to.
1373
# Prefer explicitly selected file to automatically selected ones.
1374
if test -z "$CONFIG_SITE"; then
1375
if test "x$prefix" != xNONE; then
1376
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1378
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1381
for ac_site_file in $CONFIG_SITE; do
1382
if test -r "$ac_site_file"; then
1383
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1384
echo "$as_me: loading site script $ac_site_file" >&6;}
1385
sed 's/^/| /' "$ac_site_file" >&5
1390
if test -r "$cache_file"; then
1391
# Some versions of bash will fail to source /dev/null (special
1392
# files actually), so we avoid doing that.
1393
if test -f "$cache_file"; then
1394
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1395
echo "$as_me: loading cache $cache_file" >&6;}
1397
[\\/]* | ?:[\\/]* ) . $cache_file;;
1398
*) . ./$cache_file;;
1402
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1403
echo "$as_me: creating cache $cache_file" >&6;}
1407
# Check that the precious variables saved in the cache have kept the same
1409
ac_cache_corrupted=false
1410
for ac_var in `(set) 2>&1 |
1411
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1412
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1413
eval ac_new_set=\$ac_env_${ac_var}_set
1414
eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1415
eval ac_new_val="\$ac_env_${ac_var}_value"
1416
case $ac_old_set,$ac_new_set in
1418
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1419
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1420
ac_cache_corrupted=: ;;
1422
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1423
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1424
ac_cache_corrupted=: ;;
1427
if test "x$ac_old_val" != "x$ac_new_val"; then
1428
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1429
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1430
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1431
echo "$as_me: former value: $ac_old_val" >&2;}
1432
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1433
echo "$as_me: current value: $ac_new_val" >&2;}
1434
ac_cache_corrupted=:
1437
# Pass precious variables to config.status.
1438
if test "$ac_new_set" = set; then
1440
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1441
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1442
*) ac_arg=$ac_var=$ac_new_val ;;
1444
case " $ac_configure_args " in
1445
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1446
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1450
if $ac_cache_corrupted; then
1451
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1452
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1453
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1454
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1455
{ (exit 1); exit 1; }; }
1459
ac_cpp='$CPP $CPPFLAGS'
1460
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1461
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1462
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1485
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1486
if test -f $ac_dir/install-sh; then
1488
ac_install_sh="$ac_aux_dir/install-sh -c"
1490
elif test -f $ac_dir/install.sh; then
1492
ac_install_sh="$ac_aux_dir/install.sh -c"
1494
elif test -f $ac_dir/shtool; then
1496
ac_install_sh="$ac_aux_dir/shtool install -c"
1500
if test -z "$ac_aux_dir"; then
1501
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1502
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1503
{ (exit 1); exit 1; }; }
1505
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1506
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1507
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1509
# Make sure we can run config.sub.
1510
$ac_config_sub sun4 >/dev/null 2>&1 ||
1511
{ { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1512
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1513
{ (exit 1); exit 1; }; }
1515
echo "$as_me:$LINENO: checking build system type" >&5
1516
echo $ECHO_N "checking build system type... $ECHO_C" >&6
1517
if test "${ac_cv_build+set}" = set; then
1518
echo $ECHO_N "(cached) $ECHO_C" >&6
1520
ac_cv_build_alias=$build_alias
1521
test -z "$ac_cv_build_alias" &&
1522
ac_cv_build_alias=`$ac_config_guess`
1523
test -z "$ac_cv_build_alias" &&
1524
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1525
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1526
{ (exit 1); exit 1; }; }
1527
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1528
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1529
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1530
{ (exit 1); exit 1; }; }
1533
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1534
echo "${ECHO_T}$ac_cv_build" >&6
1536
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1537
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1538
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1541
echo "$as_me:$LINENO: checking host system type" >&5
1542
echo $ECHO_N "checking host system type... $ECHO_C" >&6
1543
if test "${ac_cv_host+set}" = set; then
1544
echo $ECHO_N "(cached) $ECHO_C" >&6
1546
ac_cv_host_alias=$host_alias
1547
test -z "$ac_cv_host_alias" &&
1548
ac_cv_host_alias=$ac_cv_build_alias
1549
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1550
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1551
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1552
{ (exit 1); exit 1; }; }
1555
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1556
echo "${ECHO_T}$ac_cv_host" >&6
1558
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1559
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1560
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1563
echo "$as_me:$LINENO: checking target system type" >&5
1564
echo $ECHO_N "checking target system type... $ECHO_C" >&6
1565
if test "${ac_cv_target+set}" = set; then
1566
echo $ECHO_N "(cached) $ECHO_C" >&6
1568
ac_cv_target_alias=$target_alias
1569
test "x$ac_cv_target_alias" = "x" &&
1570
ac_cv_target_alias=$ac_cv_host_alias
1571
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1572
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1573
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1574
{ (exit 1); exit 1; }; }
1577
echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1578
echo "${ECHO_T}$ac_cv_target" >&6
1579
target=$ac_cv_target
1580
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1581
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1582
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1585
# The aliases save the names the user supplied, while $host etc.
1586
# will get canonicalized.
1587
test -n "$target_alias" &&
1588
test "$program_prefix$program_suffix$program_transform_name" = \
1590
program_prefix=${target_alias}-
1592
am__api_version="1.7a"
1593
# Find a good install program. We prefer a C program (faster),
1594
# so one script is as good as another. But avoid the broken or
1595
# incompatible versions:
1596
# SysV /etc/install, /usr/sbin/install
1597
# SunOS /usr/etc/install
1598
# IRIX /sbin/install
1600
# AmigaOS /C/install, which installs bootblocks on floppy discs
1601
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1602
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1603
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1604
# OS/2's system install, which has a completely different semantic
1605
# ./install, which can be erroneously created by make from ./install.sh.
1606
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1607
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1608
if test -z "$INSTALL"; then
1609
if test "${ac_cv_path_install+set}" = set; then
1610
echo $ECHO_N "(cached) $ECHO_C" >&6
1612
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1616
test -z "$as_dir" && as_dir=.
1617
# Account for people who put trailing slashes in PATH elements.
1619
./ | .// | /cC/* | \
1620
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1621
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1624
# OSF1 and SCO ODT 3.0 have their own names for install.
1625
# Don't use installbsd from OSF since it installs stuff as root
1627
for ac_prog in ginstall scoinst install; do
1628
for ac_exec_ext in '' $ac_executable_extensions; do
1629
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1630
if test $ac_prog = install &&
1631
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1632
# AIX install. It has an incompatible calling convention.
1634
elif test $ac_prog = install &&
1635
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1636
# program-specific install script used by HP pwplus--don't use.
1639
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1651
if test "${ac_cv_path_install+set}" = set; then
1652
INSTALL=$ac_cv_path_install
1654
# As a last resort, use the slow shell script. We don't cache a
1655
# path for INSTALL within a source directory, because that will
1656
# break other packages using the cache if that directory is
1657
# removed, or if the path is relative.
1658
INSTALL=$ac_install_sh
1661
echo "$as_me:$LINENO: result: $INSTALL" >&5
1662
echo "${ECHO_T}$INSTALL" >&6
1664
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1665
# It thinks the first close brace ends the variable substitution.
1666
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1668
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1670
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1672
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1673
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1676
echo timestamp > conftest.file
1677
# Do `set' in a subshell so we don't clobber the current shell's
1678
# arguments. Must try -L first in case configure is actually a
1679
# symlink; some systems play weird games with the mod time of symlinks
1680
# (eg FreeBSD returns the mod time of the symlink's containing
1683
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1684
if test "$*" = "X"; then
1686
set X `ls -t $srcdir/configure conftest.file`
1689
if test "$*" != "X $srcdir/configure conftest.file" \
1690
&& test "$*" != "X conftest.file $srcdir/configure"; then
1692
# If neither matched, then we have a broken ls. This can happen
1693
# if, for instance, CONFIG_SHELL is bash and it inherits a
1694
# broken ls alias from the environment. This has actually
1695
# happened. Such a system could not be considered "sane".
1696
{ { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1697
alias in your environment" >&5
1698
echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1699
alias in your environment" >&2;}
1700
{ (exit 1); exit 1; }; }
1703
test "$2" = conftest.file
1709
{ { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1710
Check your system clock" >&5
1711
echo "$as_me: error: newly created file is older than distributed files!
1712
Check your system clock" >&2;}
1713
{ (exit 1); exit 1; }; }
1715
echo "$as_me:$LINENO: result: yes" >&5
1716
echo "${ECHO_T}yes" >&6
1717
test "$program_prefix" != NONE &&
1718
program_transform_name="s,^,$program_prefix,;$program_transform_name"
1719
# Use a double $ so make ignores it.
1720
test "$program_suffix" != NONE &&
1721
program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1722
# Double any \ or $. echo might interpret backslashes.
1723
# By default was `s,x,x', remove it if useless.
1724
cat <<\_ACEOF >conftest.sed
1725
s/[\\$]/&&/g;s/;s,x,x,$//
1727
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1731
# expand $ac_aux_dir to an absolute path
1732
am_aux_dir=`cd $ac_aux_dir && pwd`
1734
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1735
# Use eval to expand $SHELL
1736
if eval "$MISSING --run true"; then
1737
am_missing_run="$MISSING --run "
1740
{ echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1741
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1744
for ac_prog in gawk mawk nawk awk
1746
# Extract the first word of "$ac_prog", so it can be a program name with args.
1747
set dummy $ac_prog; ac_word=$2
1748
echo "$as_me:$LINENO: checking for $ac_word" >&5
1749
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1750
if test "${ac_cv_prog_AWK+set}" = set; then
1751
echo $ECHO_N "(cached) $ECHO_C" >&6
1753
if test -n "$AWK"; then
1754
ac_cv_prog_AWK="$AWK" # Let the user override the test.
1756
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1760
test -z "$as_dir" && as_dir=.
1761
for ac_exec_ext in '' $ac_executable_extensions; do
1762
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1763
ac_cv_prog_AWK="$ac_prog"
1764
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1773
if test -n "$AWK"; then
1774
echo "$as_me:$LINENO: result: $AWK" >&5
1775
echo "${ECHO_T}$AWK" >&6
1777
echo "$as_me:$LINENO: result: no" >&5
1778
echo "${ECHO_T}no" >&6
1781
test -n "$AWK" && break
1784
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1785
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1786
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1787
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1788
echo $ECHO_N "(cached) $ECHO_C" >&6
1790
cat >conftest.make <<\_ACEOF
1792
@echo 'ac_maketemp="$(MAKE)"'
1794
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1795
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1796
if test -n "$ac_maketemp"; then
1797
eval ac_cv_prog_make_${ac_make}_set=yes
1799
eval ac_cv_prog_make_${ac_make}_set=no
1803
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1804
echo "$as_me:$LINENO: result: yes" >&5
1805
echo "${ECHO_T}yes" >&6
1808
echo "$as_me:$LINENO: result: no" >&5
1809
echo "${ECHO_T}no" >&6
1810
SET_MAKE="MAKE=${MAKE-make}"
1813
rm -rf .tst 2>/dev/null
1814
mkdir .tst 2>/dev/null
1815
if test -d .tst; then
1820
rmdir .tst 2>/dev/null
1822
# test to see if srcdir already configured
1823
if test "`cd $srcdir && pwd`" != "`pwd`" &&
1824
test -f $srcdir/config.status; then
1825
{ { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1826
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1827
{ (exit 1); exit 1; }; }
1830
# test whether we have cygpath
1831
if test -z "$CYGPATH_W"; then
1832
if (cygpath --version) >/dev/null 2>/dev/null; then
1833
CYGPATH_W='cygpath -w'
1840
# Define the identity of the package.
1845
cat >>confdefs.h <<_ACEOF
1846
#define PACKAGE "$PACKAGE"
1850
cat >>confdefs.h <<_ACEOF
1851
#define VERSION "$VERSION"
1854
# Some tools Automake needs.
1856
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1859
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1862
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1865
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1868
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1871
AMTAR=${AMTAR-"${am_missing_run}tar"}
1873
install_sh=${install_sh-"$am_aux_dir/install-sh"}
1875
# Installed binaries are usually stripped using `strip' when the user
1876
# run `make install-strip'. However `strip' might not be the right
1877
# tool to use in cross-compilation environments, therefore Automake
1878
# will honor the `STRIP' environment variable to overrule this program.
1879
if test "$cross_compiling" != no; then
1880
if test -n "$ac_tool_prefix"; then
1881
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1882
set dummy ${ac_tool_prefix}strip; ac_word=$2
1883
echo "$as_me:$LINENO: checking for $ac_word" >&5
1884
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1885
if test "${ac_cv_prog_STRIP+set}" = set; then
1886
echo $ECHO_N "(cached) $ECHO_C" >&6
1888
if test -n "$STRIP"; then
1889
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1891
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1895
test -z "$as_dir" && as_dir=.
1896
for ac_exec_ext in '' $ac_executable_extensions; do
1897
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1898
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1899
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1907
STRIP=$ac_cv_prog_STRIP
1908
if test -n "$STRIP"; then
1909
echo "$as_me:$LINENO: result: $STRIP" >&5
1910
echo "${ECHO_T}$STRIP" >&6
1912
echo "$as_me:$LINENO: result: no" >&5
1913
echo "${ECHO_T}no" >&6
1917
if test -z "$ac_cv_prog_STRIP"; then
1919
# Extract the first word of "strip", so it can be a program name with args.
1920
set dummy strip; ac_word=$2
1921
echo "$as_me:$LINENO: checking for $ac_word" >&5
1922
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1923
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1924
echo $ECHO_N "(cached) $ECHO_C" >&6
1926
if test -n "$ac_ct_STRIP"; then
1927
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1929
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1933
test -z "$as_dir" && as_dir=.
1934
for ac_exec_ext in '' $ac_executable_extensions; do
1935
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1936
ac_cv_prog_ac_ct_STRIP="strip"
1937
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1943
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1946
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1947
if test -n "$ac_ct_STRIP"; then
1948
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1949
echo "${ECHO_T}$ac_ct_STRIP" >&6
1951
echo "$as_me:$LINENO: result: no" >&5
1952
echo "${ECHO_T}no" >&6
1957
STRIP="$ac_cv_prog_STRIP"
1961
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1963
# We need awk for the "check" target. The system "awk" is bad on
1970
ac_cpp='$CPP $CPPFLAGS'
1971
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1972
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1973
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1974
if test -n "$ac_tool_prefix"; then
1975
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1976
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1977
echo "$as_me:$LINENO: checking for $ac_word" >&5
1978
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1979
if test "${ac_cv_prog_CC+set}" = set; then
1980
echo $ECHO_N "(cached) $ECHO_C" >&6
1982
if test -n "$CC"; then
1983
ac_cv_prog_CC="$CC" # Let the user override the test.
1985
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1989
test -z "$as_dir" && as_dir=.
1990
for ac_exec_ext in '' $ac_executable_extensions; do
1991
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1992
ac_cv_prog_CC="${ac_tool_prefix}gcc"
1993
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2002
if test -n "$CC"; then
2003
echo "$as_me:$LINENO: result: $CC" >&5
2004
echo "${ECHO_T}$CC" >&6
2006
echo "$as_me:$LINENO: result: no" >&5
2007
echo "${ECHO_T}no" >&6
2011
if test -z "$ac_cv_prog_CC"; then
2013
# Extract the first word of "gcc", so it can be a program name with args.
2014
set dummy gcc; ac_word=$2
2015
echo "$as_me:$LINENO: checking for $ac_word" >&5
2016
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2017
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2018
echo $ECHO_N "(cached) $ECHO_C" >&6
2020
if test -n "$ac_ct_CC"; then
2021
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2023
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2027
test -z "$as_dir" && as_dir=.
2028
for ac_exec_ext in '' $ac_executable_extensions; do
2029
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2030
ac_cv_prog_ac_ct_CC="gcc"
2031
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2039
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2040
if test -n "$ac_ct_CC"; then
2041
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2042
echo "${ECHO_T}$ac_ct_CC" >&6
2044
echo "$as_me:$LINENO: result: no" >&5
2045
echo "${ECHO_T}no" >&6
2053
if test -z "$CC"; then
2054
if test -n "$ac_tool_prefix"; then
2055
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2056
set dummy ${ac_tool_prefix}cc; ac_word=$2
2057
echo "$as_me:$LINENO: checking for $ac_word" >&5
2058
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2059
if test "${ac_cv_prog_CC+set}" = set; then
2060
echo $ECHO_N "(cached) $ECHO_C" >&6
2062
if test -n "$CC"; then
2063
ac_cv_prog_CC="$CC" # Let the user override the test.
2065
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2069
test -z "$as_dir" && as_dir=.
2070
for ac_exec_ext in '' $ac_executable_extensions; do
2071
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2072
ac_cv_prog_CC="${ac_tool_prefix}cc"
2073
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2082
if test -n "$CC"; then
2083
echo "$as_me:$LINENO: result: $CC" >&5
2084
echo "${ECHO_T}$CC" >&6
2086
echo "$as_me:$LINENO: result: no" >&5
2087
echo "${ECHO_T}no" >&6
2091
if test -z "$ac_cv_prog_CC"; then
2093
# Extract the first word of "cc", so it can be a program name with args.
2094
set dummy cc; ac_word=$2
2095
echo "$as_me:$LINENO: checking for $ac_word" >&5
2096
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2097
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2098
echo $ECHO_N "(cached) $ECHO_C" >&6
2100
if test -n "$ac_ct_CC"; then
2101
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2103
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2107
test -z "$as_dir" && as_dir=.
2108
for ac_exec_ext in '' $ac_executable_extensions; do
2109
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2110
ac_cv_prog_ac_ct_CC="cc"
2111
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2119
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2120
if test -n "$ac_ct_CC"; then
2121
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2122
echo "${ECHO_T}$ac_ct_CC" >&6
2124
echo "$as_me:$LINENO: result: no" >&5
2125
echo "${ECHO_T}no" >&6
2134
if test -z "$CC"; then
2135
# Extract the first word of "cc", so it can be a program name with args.
2136
set dummy cc; ac_word=$2
2137
echo "$as_me:$LINENO: checking for $ac_word" >&5
2138
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2139
if test "${ac_cv_prog_CC+set}" = set; then
2140
echo $ECHO_N "(cached) $ECHO_C" >&6
2142
if test -n "$CC"; then
2143
ac_cv_prog_CC="$CC" # Let the user override the test.
2146
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2150
test -z "$as_dir" && as_dir=.
2151
for ac_exec_ext in '' $ac_executable_extensions; do
2152
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2153
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2154
ac_prog_rejected=yes
2158
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2164
if test $ac_prog_rejected = yes; then
2165
# We found a bogon in the path, so make sure we never use it.
2166
set dummy $ac_cv_prog_CC
2168
if test $# != 0; then
2169
# We chose a different compiler from the bogus one.
2170
# However, it has the same basename, so the bogon will be chosen
2171
# first if we set CC to just the basename; use the full file name.
2173
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2179
if test -n "$CC"; then
2180
echo "$as_me:$LINENO: result: $CC" >&5
2181
echo "${ECHO_T}$CC" >&6
2183
echo "$as_me:$LINENO: result: no" >&5
2184
echo "${ECHO_T}no" >&6
2188
if test -z "$CC"; then
2189
if test -n "$ac_tool_prefix"; then
2192
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2193
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2194
echo "$as_me:$LINENO: checking for $ac_word" >&5
2195
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2196
if test "${ac_cv_prog_CC+set}" = set; then
2197
echo $ECHO_N "(cached) $ECHO_C" >&6
2199
if test -n "$CC"; then
2200
ac_cv_prog_CC="$CC" # Let the user override the test.
2202
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2206
test -z "$as_dir" && as_dir=.
2207
for ac_exec_ext in '' $ac_executable_extensions; do
2208
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2209
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2210
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2219
if test -n "$CC"; then
2220
echo "$as_me:$LINENO: result: $CC" >&5
2221
echo "${ECHO_T}$CC" >&6
2223
echo "$as_me:$LINENO: result: no" >&5
2224
echo "${ECHO_T}no" >&6
2227
test -n "$CC" && break
2230
if test -z "$CC"; then
2234
# Extract the first word of "$ac_prog", so it can be a program name with args.
2235
set dummy $ac_prog; ac_word=$2
2236
echo "$as_me:$LINENO: checking for $ac_word" >&5
2237
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2238
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2239
echo $ECHO_N "(cached) $ECHO_C" >&6
2241
if test -n "$ac_ct_CC"; then
2242
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2244
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2248
test -z "$as_dir" && as_dir=.
2249
for ac_exec_ext in '' $ac_executable_extensions; do
2250
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2251
ac_cv_prog_ac_ct_CC="$ac_prog"
2252
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2260
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2261
if test -n "$ac_ct_CC"; then
2262
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2263
echo "${ECHO_T}$ac_ct_CC" >&6
2265
echo "$as_me:$LINENO: result: no" >&5
2266
echo "${ECHO_T}no" >&6
2269
test -n "$ac_ct_CC" && break
2278
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2279
See \`config.log' for more details." >&5
2280
echo "$as_me: error: no acceptable C compiler found in \$PATH
2281
See \`config.log' for more details." >&2;}
2282
{ (exit 1); exit 1; }; }
2284
# Provide some information about the compiler.
2285
echo "$as_me:$LINENO:" \
2286
"checking for C compiler version" >&5
2287
ac_compiler=`set X $ac_compile; echo $2`
2288
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2289
(eval $ac_compiler --version </dev/null >&5) 2>&5
2291
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2292
(exit $ac_status); }
2293
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2294
(eval $ac_compiler -v </dev/null >&5) 2>&5
2296
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297
(exit $ac_status); }
2298
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2299
(eval $ac_compiler -V </dev/null >&5) 2>&5
2301
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2302
(exit $ac_status); }
2304
cat >conftest.$ac_ext <<_ACEOF
2307
cat confdefs.h >>conftest.$ac_ext
2308
cat >>conftest.$ac_ext <<_ACEOF
2309
/* end confdefs.h. */
2319
ac_clean_files_save=$ac_clean_files
2320
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2321
# Try to create an executable without -o first, disregard a.out.
2322
# It will help us diagnose broken compilers, and finding out an intuition
2324
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2325
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2326
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2327
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2328
(eval $ac_link_default) 2>&5
2330
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331
(exit $ac_status); }; then
2332
# Find the output, starting from the most likely. This scheme is
2333
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2336
# Be careful to initialize this variable, since it used to be cached.
2337
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2339
# b.out is created by i960 compilers.
2340
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2342
test -f "$ac_file" || continue
2344
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2347
# This is the source file.
2350
# We found the default executable, but exeext='' is most
2354
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2355
# FIXME: I believe we export ac_cv_exeext for Libtool,
2356
# but it would be cool to find out if it's true. Does anybody
2357
# maintain Libtool? --akim.
2365
echo "$as_me: failed program was:" >&5
2366
sed 's/^/| /' conftest.$ac_ext >&5
2368
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2369
See \`config.log' for more details." >&5
2370
echo "$as_me: error: C compiler cannot create executables
2371
See \`config.log' for more details." >&2;}
2372
{ (exit 77); exit 77; }; }
2375
ac_exeext=$ac_cv_exeext
2376
echo "$as_me:$LINENO: result: $ac_file" >&5
2377
echo "${ECHO_T}$ac_file" >&6
2379
# Check the compiler produces executables we can run. If not, either
2380
# the compiler is broken, or we cross compile.
2381
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2382
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2383
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2384
# If not cross compiling, check that we can run a simple program.
2385
if test "$cross_compiling" != yes; then
2386
if { ac_try='./$ac_file'
2387
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2390
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391
(exit $ac_status); }; }; then
2394
if test "$cross_compiling" = maybe; then
2397
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2398
If you meant to cross compile, use \`--host'.
2399
See \`config.log' for more details." >&5
2400
echo "$as_me: error: cannot run C compiled programs.
2401
If you meant to cross compile, use \`--host'.
2402
See \`config.log' for more details." >&2;}
2403
{ (exit 1); exit 1; }; }
2407
echo "$as_me:$LINENO: result: yes" >&5
2408
echo "${ECHO_T}yes" >&6
2410
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2411
ac_clean_files=$ac_clean_files_save
2412
# Check the compiler produces executables we can run. If not, either
2413
# the compiler is broken, or we cross compile.
2414
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2415
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2416
echo "$as_me:$LINENO: result: $cross_compiling" >&5
2417
echo "${ECHO_T}$cross_compiling" >&6
2419
echo "$as_me:$LINENO: checking for suffix of executables" >&5
2420
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2421
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2422
(eval $ac_link) 2>&5
2424
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425
(exit $ac_status); }; then
2426
# If both `conftest.exe' and `conftest' are `present' (well, observable)
2427
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2428
# work properly (i.e., refer to `conftest.exe'), while it won't with
2430
for ac_file in conftest.exe conftest conftest.*; do
2431
test -f "$ac_file" || continue
2433
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2434
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2441
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2442
See \`config.log' for more details." >&5
2443
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2444
See \`config.log' for more details." >&2;}
2445
{ (exit 1); exit 1; }; }
2448
rm -f conftest$ac_cv_exeext
2449
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2450
echo "${ECHO_T}$ac_cv_exeext" >&6
2452
rm -f conftest.$ac_ext
2453
EXEEXT=$ac_cv_exeext
2455
echo "$as_me:$LINENO: checking for suffix of object files" >&5
2456
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2457
if test "${ac_cv_objext+set}" = set; then
2458
echo $ECHO_N "(cached) $ECHO_C" >&6
2460
cat >conftest.$ac_ext <<_ACEOF
2463
cat confdefs.h >>conftest.$ac_ext
2464
cat >>conftest.$ac_ext <<_ACEOF
2465
/* end confdefs.h. */
2475
rm -f conftest.o conftest.obj
2476
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2477
(eval $ac_compile) 2>&5
2479
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480
(exit $ac_status); }; then
2481
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2483
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2484
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2489
echo "$as_me: failed program was:" >&5
2490
sed 's/^/| /' conftest.$ac_ext >&5
2492
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2493
See \`config.log' for more details." >&5
2494
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2495
See \`config.log' for more details." >&2;}
2496
{ (exit 1); exit 1; }; }
2499
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2501
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2502
echo "${ECHO_T}$ac_cv_objext" >&6
2503
OBJEXT=$ac_cv_objext
2505
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2506
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2507
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2508
echo $ECHO_N "(cached) $ECHO_C" >&6
2510
cat >conftest.$ac_ext <<_ACEOF
2513
cat confdefs.h >>conftest.$ac_ext
2514
cat >>conftest.$ac_ext <<_ACEOF
2515
/* end confdefs.h. */
2528
rm -f conftest.$ac_objext
2529
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2530
(eval $ac_compile) 2>conftest.er1
2532
grep -v '^ *+' conftest.er1 >conftest.err
2534
cat conftest.err >&5
2535
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536
(exit $ac_status); } &&
2537
{ ac_try='test -z "$ac_c_werror_flag"
2538
|| test ! -s conftest.err'
2539
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2542
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543
(exit $ac_status); }; } &&
2544
{ ac_try='test -s conftest.$ac_objext'
2545
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2548
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549
(exit $ac_status); }; }; then
2552
echo "$as_me: failed program was:" >&5
2553
sed 's/^/| /' conftest.$ac_ext >&5
2557
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2558
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2561
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2562
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2563
GCC=`test $ac_compiler_gnu = yes && echo yes`
2564
ac_test_CFLAGS=${CFLAGS+set}
2565
ac_save_CFLAGS=$CFLAGS
2567
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2568
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2569
if test "${ac_cv_prog_cc_g+set}" = set; then
2570
echo $ECHO_N "(cached) $ECHO_C" >&6
2572
cat >conftest.$ac_ext <<_ACEOF
2575
cat confdefs.h >>conftest.$ac_ext
2576
cat >>conftest.$ac_ext <<_ACEOF
2577
/* end confdefs.h. */
2587
rm -f conftest.$ac_objext
2588
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2589
(eval $ac_compile) 2>conftest.er1
2591
grep -v '^ *+' conftest.er1 >conftest.err
2593
cat conftest.err >&5
2594
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595
(exit $ac_status); } &&
2596
{ ac_try='test -z "$ac_c_werror_flag"
2597
|| test ! -s conftest.err'
2598
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2601
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602
(exit $ac_status); }; } &&
2603
{ ac_try='test -s conftest.$ac_objext'
2604
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2607
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608
(exit $ac_status); }; }; then
2611
echo "$as_me: failed program was:" >&5
2612
sed 's/^/| /' conftest.$ac_ext >&5
2616
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2618
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2619
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2620
if test "$ac_test_CFLAGS" = set; then
2621
CFLAGS=$ac_save_CFLAGS
2622
elif test $ac_cv_prog_cc_g = yes; then
2623
if test "$GCC" = yes; then
2629
if test "$GCC" = yes; then
2635
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2636
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2637
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2638
echo $ECHO_N "(cached) $ECHO_C" >&6
2640
ac_cv_prog_cc_stdc=no
2642
cat >conftest.$ac_ext <<_ACEOF
2645
cat confdefs.h >>conftest.$ac_ext
2646
cat >>conftest.$ac_ext <<_ACEOF
2647
/* end confdefs.h. */
2650
#include <sys/types.h>
2651
#include <sys/stat.h>
2652
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2653
struct buf { int x; };
2654
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2655
static char *e (p, i)
2661
static char *f (char * (*g) (char **, int), char **p, ...)
2666
s = g (p, va_arg (v,int));
2671
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2672
function prototypes and stuff, but not '\xHH' hex character constants.
2673
These don't provoke an error unfortunately, instead are silently treated
2674
as 'x'. The following induces an error, until -std1 is added to get
2675
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2676
array size at least. It's necessary to write '\x00'==0 to get something
2677
that's true only with -std1. */
2678
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2680
int test (int i, double x);
2681
struct s1 {int (*f) (int a);};
2682
struct s2 {int (*f) (double a);};
2683
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2689
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2694
# Don't try gcc -ansi; that turns off useful extensions and
2695
# breaks some systems' header files.
2696
# AIX -qlanglvl=ansi
2697
# Ultrix and OSF/1 -std1
2698
# HP-UX 10.20 and later -Ae
2699
# HP-UX older versions -Aa -D_HPUX_SOURCE
2700
# SVR4 -Xc -D__EXTENSIONS__
2701
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2703
CC="$ac_save_CC $ac_arg"
2704
rm -f conftest.$ac_objext
2705
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2706
(eval $ac_compile) 2>conftest.er1
2708
grep -v '^ *+' conftest.er1 >conftest.err
2710
cat conftest.err >&5
2711
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712
(exit $ac_status); } &&
2713
{ ac_try='test -z "$ac_c_werror_flag"
2714
|| test ! -s conftest.err'
2715
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2718
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719
(exit $ac_status); }; } &&
2720
{ ac_try='test -s conftest.$ac_objext'
2721
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2724
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725
(exit $ac_status); }; }; then
2726
ac_cv_prog_cc_stdc=$ac_arg
2729
echo "$as_me: failed program was:" >&5
2730
sed 's/^/| /' conftest.$ac_ext >&5
2733
rm -f conftest.err conftest.$ac_objext
2735
rm -f conftest.$ac_ext conftest.$ac_objext
2740
case "x$ac_cv_prog_cc_stdc" in
2742
echo "$as_me:$LINENO: result: none needed" >&5
2743
echo "${ECHO_T}none needed" >&6 ;;
2745
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2746
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2747
CC="$CC $ac_cv_prog_cc_stdc" ;;
2750
# Some people use a C++ compiler to compile C. Since we use `exit',
2751
# in C++ we need to declare it. In case someone uses the same compiler
2752
# for both compiling C and C++ we need to have the C++ compiler decide
2753
# the declaration of exit, since it's the most demanding environment.
2754
cat >conftest.$ac_ext <<_ACEOF
2759
rm -f conftest.$ac_objext
2760
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2761
(eval $ac_compile) 2>conftest.er1
2763
grep -v '^ *+' conftest.er1 >conftest.err
2765
cat conftest.err >&5
2766
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767
(exit $ac_status); } &&
2768
{ ac_try='test -z "$ac_c_werror_flag"
2769
|| test ! -s conftest.err'
2770
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2773
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774
(exit $ac_status); }; } &&
2775
{ ac_try='test -s conftest.$ac_objext'
2776
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2779
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780
(exit $ac_status); }; }; then
2781
for ac_declaration in \
2783
'extern "C" void std::exit (int) throw (); using std::exit;' \
2784
'extern "C" void std::exit (int); using std::exit;' \
2785
'extern "C" void exit (int) throw ();' \
2786
'extern "C" void exit (int);' \
2789
cat >conftest.$ac_ext <<_ACEOF
2792
cat confdefs.h >>conftest.$ac_ext
2793
cat >>conftest.$ac_ext <<_ACEOF
2794
/* end confdefs.h. */
2805
rm -f conftest.$ac_objext
2806
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2807
(eval $ac_compile) 2>conftest.er1
2809
grep -v '^ *+' conftest.er1 >conftest.err
2811
cat conftest.err >&5
2812
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813
(exit $ac_status); } &&
2814
{ ac_try='test -z "$ac_c_werror_flag"
2815
|| test ! -s conftest.err'
2816
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2819
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820
(exit $ac_status); }; } &&
2821
{ ac_try='test -s conftest.$ac_objext'
2822
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2825
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826
(exit $ac_status); }; }; then
2829
echo "$as_me: failed program was:" >&5
2830
sed 's/^/| /' conftest.$ac_ext >&5
2834
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2835
cat >conftest.$ac_ext <<_ACEOF
2838
cat confdefs.h >>conftest.$ac_ext
2839
cat >>conftest.$ac_ext <<_ACEOF
2840
/* end confdefs.h. */
2850
rm -f conftest.$ac_objext
2851
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2852
(eval $ac_compile) 2>conftest.er1
2854
grep -v '^ *+' conftest.er1 >conftest.err
2856
cat conftest.err >&5
2857
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858
(exit $ac_status); } &&
2859
{ ac_try='test -z "$ac_c_werror_flag"
2860
|| test ! -s conftest.err'
2861
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2864
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865
(exit $ac_status); }; } &&
2866
{ ac_try='test -s conftest.$ac_objext'
2867
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2870
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2871
(exit $ac_status); }; }; then
2874
echo "$as_me: failed program was:" >&5
2875
sed 's/^/| /' conftest.$ac_ext >&5
2878
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2881
if test -n "$ac_declaration"; then
2882
echo '#ifdef __cplusplus' >>confdefs.h
2883
echo $ac_declaration >>confdefs.h
2884
echo '#endif' >>confdefs.h
2888
echo "$as_me: failed program was:" >&5
2889
sed 's/^/| /' conftest.$ac_ext >&5
2892
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2894
ac_cpp='$CPP $CPPFLAGS'
2895
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2896
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2897
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2898
DEPDIR="${am__leading_dot}deps"
2900
ac_config_commands="$ac_config_commands depfiles"
2903
am_make=${MAKE-make}
2904
cat > confinc << 'END'
2908
# If we don't find an include directive, just comment out the code.
2909
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2910
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2914
# First try GNU make style include.
2915
echo "include confinc" > confmf
2916
# We grep out `Entering directory' and `Leaving directory'
2917
# messages which can occur if `w' ends up in MAKEFLAGS.
2918
# In particular we don't look at `^make:' because GNU make might
2919
# be invoked under some other name (usually "gmake"), in which
2920
# case it prints its new name instead of `make'.
2921
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2926
# Now try BSD make style include.
2927
if test "$am__include" = "#"; then
2928
echo '.include "confinc"' > confmf
2929
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2930
am__include=.include
2937
echo "$as_me:$LINENO: result: $_am_result" >&5
2938
echo "${ECHO_T}$_am_result" >&6
2939
rm -f confinc confmf
2941
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2942
if test "${enable_dependency_tracking+set}" = set; then
2943
enableval="$enable_dependency_tracking"
2946
if test "x$enable_dependency_tracking" != xno; then
2947
am_depcomp="$ac_aux_dir/depcomp"
2952
if test "x$enable_dependency_tracking" != xno; then
2963
depcc="$CC" am_compiler_list=
2965
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2966
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2967
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2968
echo $ECHO_N "(cached) $ECHO_C" >&6
2970
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2971
# We make a subdir and do the tests there. Otherwise we can end up
2972
# making bogus files that we don't know about and never remove. For
2973
# instance it was reported that on HP-UX the gcc test will end up
2974
# making a dummy file named `D' -- because `-MD' means `put the output
2977
# Copy depcomp to subdir because otherwise we won't find it if we're
2978
# using a relative directory.
2979
cp "$am_depcomp" conftest.dir
2982
am_cv_CC_dependencies_compiler_type=none
2983
if test "$am_compiler_list" = ""; then
2984
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2986
for depmode in $am_compiler_list; do
2987
# We need to recreate these files for each test, as the compiler may
2988
# overwrite some of them when testing with obscure command lines.
2989
# This happens at least with the AIX C compiler.
2990
echo '#include "conftest.h"' > conftest.c
2991
echo 'int i;' > conftest.h
2992
echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2996
# after this tag, mechanisms are not by side-effect, so they'll
2997
# only be used when explicitly requested
2998
if test "x$enable_dependency_tracking" = xyes; then
3006
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3007
# mode. It turns out that the SunPro C++ compiler does not properly
3008
# handle `-M -o', and we need to detect this.
3009
if depmode=$depmode \
3010
source=conftest.c object=conftest.o \
3011
depfile=conftest.Po tmpdepfile=conftest.TPo \
3012
$SHELL ./depcomp $depcc -c -o conftest.o conftest.c \
3013
>/dev/null 2>conftest.err &&
3014
grep conftest.h conftest.Po > /dev/null 2>&1 &&
3015
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3016
# icc doesn't choke on unknown options, it will just issue warnings
3017
# (even with -Werror). So we grep stderr for any message
3018
# that says an option was ignored.
3019
if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3020
am_cv_CC_dependencies_compiler_type=$depmode
3029
am_cv_CC_dependencies_compiler_type=none
3033
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3034
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3035
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3040
test "x$enable_dependency_tracking" != xno \
3041
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3043
am__fastdepCC_FALSE='#'
3045
am__fastdepCC_TRUE='#'
3046
am__fastdepCC_FALSE=
3051
ac_cpp='$CXXCPP $CPPFLAGS'
3052
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3053
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3054
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3055
if test -n "$ac_tool_prefix"; then
3056
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3058
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3059
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3060
echo "$as_me:$LINENO: checking for $ac_word" >&5
3061
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3062
if test "${ac_cv_prog_CXX+set}" = set; then
3063
echo $ECHO_N "(cached) $ECHO_C" >&6
3065
if test -n "$CXX"; then
3066
ac_cv_prog_CXX="$CXX" # Let the user override the test.
3068
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3072
test -z "$as_dir" && as_dir=.
3073
for ac_exec_ext in '' $ac_executable_extensions; do
3074
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3075
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3076
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3085
if test -n "$CXX"; then
3086
echo "$as_me:$LINENO: result: $CXX" >&5
3087
echo "${ECHO_T}$CXX" >&6
3089
echo "$as_me:$LINENO: result: no" >&5
3090
echo "${ECHO_T}no" >&6
3093
test -n "$CXX" && break
3096
if test -z "$CXX"; then
3098
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3100
# Extract the first word of "$ac_prog", so it can be a program name with args.
3101
set dummy $ac_prog; ac_word=$2
3102
echo "$as_me:$LINENO: checking for $ac_word" >&5
3103
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3104
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3105
echo $ECHO_N "(cached) $ECHO_C" >&6
3107
if test -n "$ac_ct_CXX"; then
3108
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3110
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3114
test -z "$as_dir" && as_dir=.
3115
for ac_exec_ext in '' $ac_executable_extensions; do
3116
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3117
ac_cv_prog_ac_ct_CXX="$ac_prog"
3118
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3126
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3127
if test -n "$ac_ct_CXX"; then
3128
echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3129
echo "${ECHO_T}$ac_ct_CXX" >&6
3131
echo "$as_me:$LINENO: result: no" >&5
3132
echo "${ECHO_T}no" >&6
3135
test -n "$ac_ct_CXX" && break
3137
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3143
# Provide some information about the compiler.
3144
echo "$as_me:$LINENO:" \
3145
"checking for C++ compiler version" >&5
3146
ac_compiler=`set X $ac_compile; echo $2`
3147
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3148
(eval $ac_compiler --version </dev/null >&5) 2>&5
3150
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151
(exit $ac_status); }
3152
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3153
(eval $ac_compiler -v </dev/null >&5) 2>&5
3155
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156
(exit $ac_status); }
3157
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3158
(eval $ac_compiler -V </dev/null >&5) 2>&5
3160
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161
(exit $ac_status); }
3163
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3164
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3165
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3166
echo $ECHO_N "(cached) $ECHO_C" >&6
3168
cat >conftest.$ac_ext <<_ACEOF
3171
cat confdefs.h >>conftest.$ac_ext
3172
cat >>conftest.$ac_ext <<_ACEOF
3173
/* end confdefs.h. */
3186
rm -f conftest.$ac_objext
3187
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3188
(eval $ac_compile) 2>conftest.er1
3190
grep -v '^ *+' conftest.er1 >conftest.err
3192
cat conftest.err >&5
3193
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194
(exit $ac_status); } &&
3195
{ ac_try='test -z "$ac_cxx_werror_flag"
3196
|| test ! -s conftest.err'
3197
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3200
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201
(exit $ac_status); }; } &&
3202
{ ac_try='test -s conftest.$ac_objext'
3203
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3206
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207
(exit $ac_status); }; }; then
3210
echo "$as_me: failed program was:" >&5
3211
sed 's/^/| /' conftest.$ac_ext >&5
3215
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3216
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3219
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3220
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3221
GXX=`test $ac_compiler_gnu = yes && echo yes`
3222
ac_test_CXXFLAGS=${CXXFLAGS+set}
3223
ac_save_CXXFLAGS=$CXXFLAGS
3225
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3226
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3227
if test "${ac_cv_prog_cxx_g+set}" = set; then
3228
echo $ECHO_N "(cached) $ECHO_C" >&6
3230
cat >conftest.$ac_ext <<_ACEOF
3233
cat confdefs.h >>conftest.$ac_ext
3234
cat >>conftest.$ac_ext <<_ACEOF
3235
/* end confdefs.h. */
3245
rm -f conftest.$ac_objext
3246
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3247
(eval $ac_compile) 2>conftest.er1
3249
grep -v '^ *+' conftest.er1 >conftest.err
3251
cat conftest.err >&5
3252
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253
(exit $ac_status); } &&
3254
{ ac_try='test -z "$ac_cxx_werror_flag"
3255
|| test ! -s conftest.err'
3256
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3259
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260
(exit $ac_status); }; } &&
3261
{ ac_try='test -s conftest.$ac_objext'
3262
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3265
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266
(exit $ac_status); }; }; then
3267
ac_cv_prog_cxx_g=yes
3269
echo "$as_me: failed program was:" >&5
3270
sed 's/^/| /' conftest.$ac_ext >&5
3274
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3276
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3277
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3278
if test "$ac_test_CXXFLAGS" = set; then
3279
CXXFLAGS=$ac_save_CXXFLAGS
3280
elif test $ac_cv_prog_cxx_g = yes; then
3281
if test "$GXX" = yes; then
3287
if test "$GXX" = yes; then
3293
for ac_declaration in \
3295
'extern "C" void std::exit (int) throw (); using std::exit;' \
3296
'extern "C" void std::exit (int); using std::exit;' \
3297
'extern "C" void exit (int) throw ();' \
3298
'extern "C" void exit (int);' \
3301
cat >conftest.$ac_ext <<_ACEOF
3304
cat confdefs.h >>conftest.$ac_ext
3305
cat >>conftest.$ac_ext <<_ACEOF
3306
/* end confdefs.h. */
3317
rm -f conftest.$ac_objext
3318
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3319
(eval $ac_compile) 2>conftest.er1
3321
grep -v '^ *+' conftest.er1 >conftest.err
3323
cat conftest.err >&5
3324
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325
(exit $ac_status); } &&
3326
{ ac_try='test -z "$ac_cxx_werror_flag"
3327
|| test ! -s conftest.err'
3328
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3331
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332
(exit $ac_status); }; } &&
3333
{ ac_try='test -s conftest.$ac_objext'
3334
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3337
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338
(exit $ac_status); }; }; then
3341
echo "$as_me: failed program was:" >&5
3342
sed 's/^/| /' conftest.$ac_ext >&5
3346
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3347
cat >conftest.$ac_ext <<_ACEOF
3350
cat confdefs.h >>conftest.$ac_ext
3351
cat >>conftest.$ac_ext <<_ACEOF
3352
/* end confdefs.h. */
3362
rm -f conftest.$ac_objext
3363
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3364
(eval $ac_compile) 2>conftest.er1
3366
grep -v '^ *+' conftest.er1 >conftest.err
3368
cat conftest.err >&5
3369
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370
(exit $ac_status); } &&
3371
{ ac_try='test -z "$ac_cxx_werror_flag"
3372
|| test ! -s conftest.err'
3373
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3376
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377
(exit $ac_status); }; } &&
3378
{ ac_try='test -s conftest.$ac_objext'
3379
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3382
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383
(exit $ac_status); }; }; then
3386
echo "$as_me: failed program was:" >&5
3387
sed 's/^/| /' conftest.$ac_ext >&5
3390
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3393
if test -n "$ac_declaration"; then
3394
echo '#ifdef __cplusplus' >>confdefs.h
3395
echo $ac_declaration >>confdefs.h
3396
echo '#endif' >>confdefs.h
3400
ac_cpp='$CPP $CPPFLAGS'
3401
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3402
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3403
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3405
depcc="$CXX" am_compiler_list=
3407
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3408
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3409
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3410
echo $ECHO_N "(cached) $ECHO_C" >&6
3412
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3413
# We make a subdir and do the tests there. Otherwise we can end up
3414
# making bogus files that we don't know about and never remove. For
3415
# instance it was reported that on HP-UX the gcc test will end up
3416
# making a dummy file named `D' -- because `-MD' means `put the output
3419
# Copy depcomp to subdir because otherwise we won't find it if we're
3420
# using a relative directory.
3421
cp "$am_depcomp" conftest.dir
3424
am_cv_CXX_dependencies_compiler_type=none
3425
if test "$am_compiler_list" = ""; then
3426
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3428
for depmode in $am_compiler_list; do
3429
# We need to recreate these files for each test, as the compiler may
3430
# overwrite some of them when testing with obscure command lines.
3431
# This happens at least with the AIX C compiler.
3432
echo '#include "conftest.h"' > conftest.c
3433
echo 'int i;' > conftest.h
3434
echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3438
# after this tag, mechanisms are not by side-effect, so they'll
3439
# only be used when explicitly requested
3440
if test "x$enable_dependency_tracking" = xyes; then
3448
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3449
# mode. It turns out that the SunPro C++ compiler does not properly
3450
# handle `-M -o', and we need to detect this.
3451
if depmode=$depmode \
3452
source=conftest.c object=conftest.o \
3453
depfile=conftest.Po tmpdepfile=conftest.TPo \
3454
$SHELL ./depcomp $depcc -c -o conftest.o conftest.c \
3455
>/dev/null 2>conftest.err &&
3456
grep conftest.h conftest.Po > /dev/null 2>&1 &&
3457
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3458
# icc doesn't choke on unknown options, it will just issue warnings
3459
# (even with -Werror). So we grep stderr for any message
3460
# that says an option was ignored.
3461
if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3462
am_cv_CXX_dependencies_compiler_type=$depmode
3471
am_cv_CXX_dependencies_compiler_type=none
3475
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3476
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3477
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3482
test "x$enable_dependency_tracking" != xno \
3483
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3484
am__fastdepCXX_TRUE=
3485
am__fastdepCXX_FALSE='#'
3487
am__fastdepCXX_TRUE='#'
3488
am__fastdepCXX_FALSE=
3492
# Check whether --enable-shared or --disable-shared was given.
3493
if test "${enable_shared+set}" = set; then
3494
enableval="$enable_shared"
3495
p=${PACKAGE-default}
3497
yes) enable_shared=yes ;;
3498
no) enable_shared=no ;;
3501
# Look at the argument we got. We use all the common list separators.
3502
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3503
for pkg in $enableval; do
3504
if test "X$pkg" = "X$p"; then
3514
# Check whether --enable-static or --disable-static was given.
3515
if test "${enable_static+set}" = set; then
3516
enableval="$enable_static"
3517
p=${PACKAGE-default}
3519
yes) enable_static=yes ;;
3520
no) enable_static=no ;;
3523
# Look at the argument we got. We use all the common list separators.
3524
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3525
for pkg in $enableval; do
3526
if test "X$pkg" = "X$p"; then
3536
# Check whether --enable-fast-install or --disable-fast-install was given.
3537
if test "${enable_fast_install+set}" = set; then
3538
enableval="$enable_fast_install"
3539
p=${PACKAGE-default}
3541
yes) enable_fast_install=yes ;;
3542
no) enable_fast_install=no ;;
3544
enable_fast_install=no
3545
# Look at the argument we got. We use all the common list separators.
3546
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3547
for pkg in $enableval; do
3548
if test "X$pkg" = "X$p"; then
3549
enable_fast_install=yes
3556
enable_fast_install=yes
3558
# Find the correct PATH separator. Usually this is `:', but
3559
# DJGPP uses `;' like DOS.
3560
if test "X${PATH_SEPARATOR+set}" != Xset; then
3561
UNAME=${UNAME-`uname 2>/dev/null`}
3563
*-DOS) lt_cv_sys_path_separator=';' ;;
3564
*) lt_cv_sys_path_separator=':' ;;
3566
PATH_SEPARATOR=$lt_cv_sys_path_separator
3570
# Check whether --with-gnu-ld or --without-gnu-ld was given.
3571
if test "${with_gnu_ld+set}" = set; then
3572
withval="$with_gnu_ld"
3573
test "$withval" = no || with_gnu_ld=yes
3578
if test "$GCC" = yes; then
3579
# Check if gcc -print-prog-name=ld gives a path.
3580
echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3581
echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3584
# gcc leaves a trailing carriage return which upsets mingw
3585
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3587
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3590
# Accept absolute paths.
3591
[\\/]* | [A-Za-z]:[\\/]*)
3592
re_direlt='/[^/][^/]*/\.\./'
3593
# Canonicalize the path of ld
3594
ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3595
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3596
ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3598
test -z "$LD" && LD="$ac_prog"
3601
# If it fails, then pretend we aren't using GCC.
3605
# If it is relative, then search for the first ld in PATH.
3609
elif test "$with_gnu_ld" = yes; then
3610
echo "$as_me:$LINENO: checking for GNU ld" >&5
3611
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3613
echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3614
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3616
if test "${lt_cv_path_LD+set}" = set; then
3617
echo $ECHO_N "(cached) $ECHO_C" >&6
3619
if test -z "$LD"; then
3620
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3621
for ac_dir in $PATH; do
3622
test -z "$ac_dir" && ac_dir=.
3623
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3624
lt_cv_path_LD="$ac_dir/$ac_prog"
3625
# Check to see if the program is GNU ld. I'd rather use --version,
3626
# but apparently some GNU ld's only accept -v.
3627
# Break only if it was the GNU/non-GNU ld that we prefer.
3628
if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3629
test "$with_gnu_ld" != no && break
3631
test "$with_gnu_ld" != yes && break
3637
lt_cv_path_LD="$LD" # Let the user override the test with a path.
3642
if test -n "$LD"; then
3643
echo "$as_me:$LINENO: result: $LD" >&5
3644
echo "${ECHO_T}$LD" >&6
3646
echo "$as_me:$LINENO: result: no" >&5
3647
echo "${ECHO_T}no" >&6
3649
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3650
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3651
{ (exit 1); exit 1; }; }
3652
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3653
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3654
if test "${lt_cv_prog_gnu_ld+set}" = set; then
3655
echo $ECHO_N "(cached) $ECHO_C" >&6
3657
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
3658
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3659
lt_cv_prog_gnu_ld=yes
3661
lt_cv_prog_gnu_ld=no
3664
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3665
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3666
with_gnu_ld=$lt_cv_prog_gnu_ld
3669
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3670
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3671
if test "${lt_cv_ld_reload_flag+set}" = set; then
3672
echo $ECHO_N "(cached) $ECHO_C" >&6
3674
lt_cv_ld_reload_flag='-r'
3676
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3677
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3678
reload_flag=$lt_cv_ld_reload_flag
3679
test -n "$reload_flag" && reload_flag=" $reload_flag"
3681
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3682
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3683
if test "${lt_cv_path_NM+set}" = set; then
3684
echo $ECHO_N "(cached) $ECHO_C" >&6
3686
if test -n "$NM"; then
3687
# Let the user override the test.
3690
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3691
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3692
test -z "$ac_dir" && ac_dir=.
3693
tmp_nm=$ac_dir/${ac_tool_prefix}nm
3694
if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3695
# Check to see if the nm accepts a BSD-compat flag.
3696
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
3697
# nm: unknown option "B" ignored
3698
# Tru64's nm complains that /dev/null is an invalid object file
3699
if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3700
lt_cv_path_NM="$tmp_nm -B"
3702
elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3703
lt_cv_path_NM="$tmp_nm -p"
3706
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3707
continue # so that we can try to find one that supports BSD flags
3712
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3717
echo "$as_me:$LINENO: result: $NM" >&5
3718
echo "${ECHO_T}$NM" >&6
3720
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3721
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3722
if test "${lt_cv_path_SED+set}" = set; then
3723
echo $ECHO_N "(cached) $ECHO_C" >&6
3725
# Loop through the user's path and test for sed and gsed.
3726
# Then use that list of sed's as ones to test for truncation.
3727
as_executable_p="test -f"
3728
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3732
test -z "$as_dir" && as_dir=.
3733
for ac_prog in sed gsed; do
3734
for ac_exec_ext in '' $ac_executable_extensions; do
3735
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3736
_sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3742
# Create a temporary directory, and hook for its removal unless debugging.
3745
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3746
trap '{ (exit 1); exit 1; }' 1 2 13 15
3749
# Create a (secure) tmp directory for tmp files.
3752
tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3753
test -n "$tmp" && test -d "$tmp"
3756
tmp=$TMPDIR/sed$$-$RANDOM
3757
(umask 077 && mkdir $tmp)
3760
echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3761
{ (exit 1); exit 1; }
3765
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3766
# along with /bin/sed that truncates output.
3767
for _sed in $_sed_list /usr/xpg4/bin/sed; do
3768
test ! -f ${_sed} && break
3769
cat /dev/null > "$tmp/sed.in"
3771
echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3772
# Check for GNU sed and select it if it is found.
3773
if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3774
lt_cv_path_SED=${_sed}
3778
cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3779
mv "$tmp/sed.tmp" "$tmp/sed.in"
3780
cp "$tmp/sed.in" "$tmp/sed.nl"
3781
echo >>"$tmp/sed.nl"
3782
${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3783
cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3784
# 40000 chars as input seems more than enough
3785
test $_count -gt 10 && break
3786
_count=`expr $_count + 1`
3787
if test $_count -gt $_max; then
3789
lt_cv_path_SED=$_sed
3797
if test "X$SED" != "X"; then
3802
echo "$as_me:$LINENO: result: $SED" >&5
3803
echo "${ECHO_T}$SED" >&6
3805
echo "$as_me:$LINENO: checking whether ln -s works" >&5
3806
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3808
if test "$LN_S" = "ln -s"; then
3809
echo "$as_me:$LINENO: result: yes" >&5
3810
echo "${ECHO_T}yes" >&6
3812
echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3813
echo "${ECHO_T}no, using $LN_S" >&6
3816
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3817
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3818
if test "${lt_cv_deplibs_check_method+set}" = set; then
3819
echo $ECHO_N "(cached) $ECHO_C" >&6
3821
lt_cv_file_magic_cmd='$MAGIC_CMD'
3822
lt_cv_file_magic_test_file=
3823
lt_cv_deplibs_check_method='unknown'
3824
# Need to set the preceding variable on all platforms that support
3825
# interlibrary dependencies.
3826
# 'none' -- dependencies not supported.
3827
# `unknown' -- same as none, but documents that we really don't know.
3828
# 'pass_all' -- all dependencies passed with no checks.
3829
# 'test_compile' -- check by making test program.
3830
# 'file_magic [[regex]]' -- check by looking for files in library path
3831
# which responds to the $file_magic_cmd with a given egrep regex.
3832
# If you have `file' or equivalent on your system and you're not sure
3833
# whether `pass_all' will *always* work, you probably want this one.
3837
lt_cv_deplibs_check_method=pass_all
3841
lt_cv_deplibs_check_method=pass_all
3845
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3846
lt_cv_file_magic_cmd='/usr/bin/file -L'
3847
lt_cv_file_magic_test_file=/shlib/libc.so
3850
cygwin* | mingw* | pw32*)
3851
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3852
lt_cv_file_magic_cmd='$OBJDUMP -f'
3855
darwin* | rhapsody*)
3856
lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3857
lt_cv_file_magic_cmd='/usr/bin/file -L'
3859
rhapsody* | darwin1.[012])
3860
lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3863
lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3869
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3872
# Not sure whether the presence of OpenBSD here was a mistake.
3873
# Let's accept both of them until this is cleared up.
3874
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3875
lt_cv_file_magic_cmd=/usr/bin/file
3876
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3880
lt_cv_deplibs_check_method=pass_all
3885
lt_cv_deplibs_check_method=pass_all
3889
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3890
lt_cv_file_magic_cmd=/usr/bin/file
3891
lt_cv_file_magic_test_file=/usr/lib/libc.sl
3894
irix5* | irix6* | nonstopux*)
3896
irix5* | nonstopux*)
3897
# this will be overridden with pass_all, but let us keep it just in case
3898
lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3902
*-32|*"-32 ") libmagic=32-bit;;
3903
*-n32|*"-n32 ") libmagic=N32;;
3904
*-64|*"-64 ") libmagic=64-bit;;
3905
*) libmagic=never-match;;
3907
# this will be overridden with pass_all, but let us keep it just in case
3908
lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3911
lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3912
lt_cv_deplibs_check_method=pass_all
3915
# This must be Linux ELF.
3918
alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | s390* | x86_64*)
3919
lt_cv_deplibs_check_method=pass_all ;;
3921
# glibc up to 2.1.1 does not perform some relocations on ARM
3922
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3924
lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3928
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3929
lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3931
lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3936
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3937
lt_cv_file_magic_cmd=/usr/bin/file
3938
lt_cv_file_magic_test_file=/usr/lib/libnls.so
3942
lt_cv_file_magic_cmd=/usr/bin/file
3943
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3944
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3945
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3947
lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3951
osf3* | osf4* | osf5*)
3952
# this will be overridden with pass_all, but let us keep it just in case
3953
lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3954
lt_cv_file_magic_test_file=/shlib/libc.so
3955
lt_cv_deplibs_check_method=pass_all
3959
lt_cv_deplibs_check_method=pass_all
3963
lt_cv_deplibs_check_method=pass_all
3964
lt_cv_file_magic_test_file=/lib/libc.so
3967
sysv5uw[78]* | sysv4*uw2*)
3968
lt_cv_deplibs_check_method=pass_all
3971
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3972
case $host_vendor in
3974
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]'
3975
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3978
lt_cv_deplibs_check_method=pass_all
3981
lt_cv_file_magic_cmd='/bin/file'
3982
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3985
lt_cv_file_magic_cmd='/bin/file'
3986
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3987
lt_cv_file_magic_test_file=/lib/libc.so
3990
lt_cv_deplibs_check_method=pass_all
3997
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3998
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3999
file_magic_cmd=$lt_cv_file_magic_cmd
4000
deplibs_check_method=$lt_cv_deplibs_check_method
4009
# Check for command to grab the raw symbol name followed by C symbol from nm.
4010
echo "$as_me:$LINENO: checking command to parse $NM output" >&5
4011
echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
4012
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4013
echo $ECHO_N "(cached) $ECHO_C" >&6
4016
# These are sane defaults that work on at least a few old systems.
4017
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4019
# Character class describing NM global symbol codes.
4020
symcode='[BCDEGRST]'
4022
# Regexp to match symbols that can be accessed directly from C.
4023
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4025
# Transform the above into a raw symbol and a C symbol.
4026
symxfrm='\1 \2\3 \3'
4028
# Transform an extracted symbol line into a proper C declaration
4029
lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
4031
# Transform an extracted symbol line into symbol name and symbol address
4032
lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
4034
# Define system-specific variables.
4039
cygwin* | mingw* | pw32*)
4040
symcode='[ABCDGISTW]'
4042
hpux*) # Its linker distinguishes data from code symbols
4043
lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4044
lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
4047
symcode='[BCDEGRST]'
4050
symcode='[BCDEGQRST]'
4060
# Handle CRLF in mingw tool chain
4064
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4068
# If we're using GNU nm, then use its standard symbol codes.
4069
if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4070
symcode='[ABCDGISTW]'
4073
# Try without a prefix undercore, then with it.
4074
for ac_symprfx in "" "_"; do
4076
# Write the raw and C identifiers.
4077
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4079
# Check to see that the pipe works correctly.
4082
cat > conftest.$ac_ext <<EOF
4087
void nm_test_func(){}
4091
int main(){nm_test_var='a';nm_test_func();return(0);}
4094
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4095
(eval $ac_compile) 2>&5
4097
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098
(exit $ac_status); }; then
4099
# Now try to grab the symbols.
4101
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4102
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4104
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105
(exit $ac_status); } && test -s "$nlist"; then
4106
# Try sorting and uniquifying the output.
4107
if sort "$nlist" | uniq > "$nlist"T; then
4108
mv -f "$nlist"T "$nlist"
4113
# Make sure that we snagged all the symbols we need.
4114
if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4115
if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4116
cat <<EOF > conftest.$ac_ext
4122
# Now generate the symbol file.
4123
eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4125
cat <<EOF >> conftest.$ac_ext
4126
#if defined (__STDC__) && __STDC__
4127
# define lt_ptr void *
4129
# define lt_ptr char *
4133
/* The mapping between symbol names and symbols. */
4138
lt_preloaded_symbols[] =
4141
sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4142
cat <<\EOF >> conftest.$ac_ext
4150
# Now try linking the two files.
4151
mv conftest.$ac_objext conftstm.$ac_objext
4153
save_CFLAGS="$CFLAGS"
4154
LIBS="conftstm.$ac_objext"
4155
CFLAGS="$CFLAGS$no_builtin_flag"
4156
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4157
(eval $ac_link) 2>&5
4159
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160
(exit $ac_status); } && test -s conftest$ac_exeext; then
4164
CFLAGS="$save_CFLAGS"
4166
echo "cannot find nm_test_func in $nlist" >&5
4169
echo "cannot find nm_test_var in $nlist" >&5
4172
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4175
echo "$progname: failed program was:" >&5
4176
cat conftest.$ac_ext >&5
4178
rm -f conftest* conftst*
4180
# Do not use the global_symbol_pipe unless it works.
4181
if test "$pipe_works" = yes; then
4184
lt_cv_sys_global_symbol_pipe=
4190
global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4191
if test -z "$lt_cv_sys_global_symbol_pipe"; then
4192
global_symbol_to_cdecl=
4193
global_symbol_to_c_name_address=
4195
global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4196
global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4198
if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4200
echo "$as_me:$LINENO: result: failed" >&5
4201
echo "${ECHO_T}failed" >&6
4203
echo "$as_me:$LINENO: result: ok" >&5
4204
echo "${ECHO_T}ok" >&6
4208
ac_cpp='$CPP $CPPFLAGS'
4209
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4210
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4211
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4212
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4213
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4214
# On Suns, sometimes $CPP names a directory.
4215
if test -n "$CPP" && test -d "$CPP"; then
4218
if test -z "$CPP"; then
4219
if test "${ac_cv_prog_CPP+set}" = set; then
4220
echo $ECHO_N "(cached) $ECHO_C" >&6
4222
# Double quotes because CPP needs to be expanded
4223
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4226
for ac_c_preproc_warn_flag in '' yes
4228
# Use a header file that comes with gcc, so configuring glibc
4229
# with a fresh cross-compiler works.
4230
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4231
# <limits.h> exists even on freestanding compilers.
4232
# On the NeXT, cc -E runs the code through the compiler's parser,
4233
# not just through cpp. "Syntax error" is here to catch this case.
4234
cat >conftest.$ac_ext <<_ACEOF
4237
cat confdefs.h >>conftest.$ac_ext
4238
cat >>conftest.$ac_ext <<_ACEOF
4239
/* end confdefs.h. */
4241
# include <limits.h>
4243
# include <assert.h>
4247
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4248
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4250
grep -v '^ *+' conftest.er1 >conftest.err
4252
cat conftest.err >&5
4253
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4254
(exit $ac_status); } >/dev/null; then
4255
if test -s conftest.err; then
4256
ac_cpp_err=$ac_c_preproc_warn_flag
4257
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4264
if test -z "$ac_cpp_err"; then
4267
echo "$as_me: failed program was:" >&5
4268
sed 's/^/| /' conftest.$ac_ext >&5
4270
# Broken: fails on valid input.
4273
rm -f conftest.err conftest.$ac_ext
4275
# OK, works on sane cases. Now check whether non-existent headers
4276
# can be detected and how.
4277
cat >conftest.$ac_ext <<_ACEOF
4280
cat confdefs.h >>conftest.$ac_ext
4281
cat >>conftest.$ac_ext <<_ACEOF
4282
/* end confdefs.h. */
4283
#include <ac_nonexistent.h>
4285
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4286
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4288
grep -v '^ *+' conftest.er1 >conftest.err
4290
cat conftest.err >&5
4291
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292
(exit $ac_status); } >/dev/null; then
4293
if test -s conftest.err; then
4294
ac_cpp_err=$ac_c_preproc_warn_flag
4295
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4302
if test -z "$ac_cpp_err"; then
4303
# Broken: success on invalid input.
4306
echo "$as_me: failed program was:" >&5
4307
sed 's/^/| /' conftest.$ac_ext >&5
4309
# Passes both tests.
4313
rm -f conftest.err conftest.$ac_ext
4316
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4317
rm -f conftest.err conftest.$ac_ext
4318
if $ac_preproc_ok; then
4330
echo "$as_me:$LINENO: result: $CPP" >&5
4331
echo "${ECHO_T}$CPP" >&6
4333
for ac_c_preproc_warn_flag in '' yes
4335
# Use a header file that comes with gcc, so configuring glibc
4336
# with a fresh cross-compiler works.
4337
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4338
# <limits.h> exists even on freestanding compilers.
4339
# On the NeXT, cc -E runs the code through the compiler's parser,
4340
# not just through cpp. "Syntax error" is here to catch this case.
4341
cat >conftest.$ac_ext <<_ACEOF
4344
cat confdefs.h >>conftest.$ac_ext
4345
cat >>conftest.$ac_ext <<_ACEOF
4346
/* end confdefs.h. */
4348
# include <limits.h>
4350
# include <assert.h>
4354
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4355
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4357
grep -v '^ *+' conftest.er1 >conftest.err
4359
cat conftest.err >&5
4360
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4361
(exit $ac_status); } >/dev/null; then
4362
if test -s conftest.err; then
4363
ac_cpp_err=$ac_c_preproc_warn_flag
4364
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4371
if test -z "$ac_cpp_err"; then
4374
echo "$as_me: failed program was:" >&5
4375
sed 's/^/| /' conftest.$ac_ext >&5
4377
# Broken: fails on valid input.
4380
rm -f conftest.err conftest.$ac_ext
4382
# OK, works on sane cases. Now check whether non-existent headers
4383
# can be detected and how.
4384
cat >conftest.$ac_ext <<_ACEOF
4387
cat confdefs.h >>conftest.$ac_ext
4388
cat >>conftest.$ac_ext <<_ACEOF
4389
/* end confdefs.h. */
4390
#include <ac_nonexistent.h>
4392
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4393
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4395
grep -v '^ *+' conftest.er1 >conftest.err
4397
cat conftest.err >&5
4398
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399
(exit $ac_status); } >/dev/null; then
4400
if test -s conftest.err; then
4401
ac_cpp_err=$ac_c_preproc_warn_flag
4402
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4409
if test -z "$ac_cpp_err"; then
4410
# Broken: success on invalid input.
4413
echo "$as_me: failed program was:" >&5
4414
sed 's/^/| /' conftest.$ac_ext >&5
4416
# Passes both tests.
4420
rm -f conftest.err conftest.$ac_ext
4423
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4424
rm -f conftest.err conftest.$ac_ext
4425
if $ac_preproc_ok; then
4428
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4429
See \`config.log' for more details." >&5
4430
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4431
See \`config.log' for more details." >&2;}
4432
{ (exit 1); exit 1; }; }
4436
ac_cpp='$CPP $CPPFLAGS'
4437
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4438
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4439
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4442
echo "$as_me:$LINENO: checking for egrep" >&5
4443
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4444
if test "${ac_cv_prog_egrep+set}" = set; then
4445
echo $ECHO_N "(cached) $ECHO_C" >&6
4447
if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4448
then ac_cv_prog_egrep='grep -E'
4449
else ac_cv_prog_egrep='egrep'
4452
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4453
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4454
EGREP=$ac_cv_prog_egrep
4457
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4458
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4459
if test "${ac_cv_header_stdc+set}" = set; then
4460
echo $ECHO_N "(cached) $ECHO_C" >&6
4462
cat >conftest.$ac_ext <<_ACEOF
4465
cat confdefs.h >>conftest.$ac_ext
4466
cat >>conftest.$ac_ext <<_ACEOF
4467
/* end confdefs.h. */
4481
rm -f conftest.$ac_objext
4482
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4483
(eval $ac_compile) 2>conftest.er1
4485
grep -v '^ *+' conftest.er1 >conftest.err
4487
cat conftest.err >&5
4488
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489
(exit $ac_status); } &&
4490
{ ac_try='test -z "$ac_c_werror_flag"
4491
|| test ! -s conftest.err'
4492
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4495
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496
(exit $ac_status); }; } &&
4497
{ ac_try='test -s conftest.$ac_objext'
4498
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4501
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502
(exit $ac_status); }; }; then
4503
ac_cv_header_stdc=yes
4505
echo "$as_me: failed program was:" >&5
4506
sed 's/^/| /' conftest.$ac_ext >&5
4508
ac_cv_header_stdc=no
4510
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4512
if test $ac_cv_header_stdc = yes; then
4513
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4514
cat >conftest.$ac_ext <<_ACEOF
4517
cat confdefs.h >>conftest.$ac_ext
4518
cat >>conftest.$ac_ext <<_ACEOF
4519
/* end confdefs.h. */
4523
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4524
$EGREP "memchr" >/dev/null 2>&1; then
4527
ac_cv_header_stdc=no
4533
if test $ac_cv_header_stdc = yes; then
4534
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4535
cat >conftest.$ac_ext <<_ACEOF
4538
cat confdefs.h >>conftest.$ac_ext
4539
cat >>conftest.$ac_ext <<_ACEOF
4540
/* end confdefs.h. */
4544
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4545
$EGREP "free" >/dev/null 2>&1; then
4548
ac_cv_header_stdc=no
4554
if test $ac_cv_header_stdc = yes; then
4555
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4556
if test "$cross_compiling" = yes; then
4559
cat >conftest.$ac_ext <<_ACEOF
4562
cat confdefs.h >>conftest.$ac_ext
4563
cat >>conftest.$ac_ext <<_ACEOF
4564
/* end confdefs.h. */
4566
#if ((' ' & 0x0FF) == 0x020)
4567
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4568
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4570
# define ISLOWER(c) \
4571
(('a' <= (c) && (c) <= 'i') \
4572
|| ('j' <= (c) && (c) <= 'r') \
4573
|| ('s' <= (c) && (c) <= 'z'))
4574
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4577
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4582
for (i = 0; i < 256; i++)
4583
if (XOR (islower (i), ISLOWER (i))
4584
|| toupper (i) != TOUPPER (i))
4589
rm -f conftest$ac_exeext
4590
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4591
(eval $ac_link) 2>&5
4593
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4595
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4598
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599
(exit $ac_status); }; }; then
4602
echo "$as_me: program exited with status $ac_status" >&5
4603
echo "$as_me: failed program was:" >&5
4604
sed 's/^/| /' conftest.$ac_ext >&5
4607
ac_cv_header_stdc=no
4609
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4613
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4614
echo "${ECHO_T}$ac_cv_header_stdc" >&6
4615
if test $ac_cv_header_stdc = yes; then
4617
cat >>confdefs.h <<\_ACEOF
4618
#define STDC_HEADERS 1
4623
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4633
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4634
inttypes.h stdint.h unistd.h
4636
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4637
echo "$as_me:$LINENO: checking for $ac_header" >&5
4638
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4639
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4640
echo $ECHO_N "(cached) $ECHO_C" >&6
4642
cat >conftest.$ac_ext <<_ACEOF
4645
cat confdefs.h >>conftest.$ac_ext
4646
cat >>conftest.$ac_ext <<_ACEOF
4647
/* end confdefs.h. */
4648
$ac_includes_default
4650
#include <$ac_header>
4652
rm -f conftest.$ac_objext
4653
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4654
(eval $ac_compile) 2>conftest.er1
4656
grep -v '^ *+' conftest.er1 >conftest.err
4658
cat conftest.err >&5
4659
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660
(exit $ac_status); } &&
4661
{ ac_try='test -z "$ac_c_werror_flag"
4662
|| test ! -s conftest.err'
4663
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4666
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667
(exit $ac_status); }; } &&
4668
{ ac_try='test -s conftest.$ac_objext'
4669
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4672
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673
(exit $ac_status); }; }; then
4674
eval "$as_ac_Header=yes"
4676
echo "$as_me: failed program was:" >&5
4677
sed 's/^/| /' conftest.$ac_ext >&5
4679
eval "$as_ac_Header=no"
4681
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4683
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4684
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4685
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4686
cat >>confdefs.h <<_ACEOF
4687
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4696
for ac_header in dlfcn.h
4698
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4699
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4700
echo "$as_me:$LINENO: checking for $ac_header" >&5
4701
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4702
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4703
echo $ECHO_N "(cached) $ECHO_C" >&6
4705
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4706
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4708
# Is the header compilable?
4709
echo "$as_me:$LINENO: checking $ac_header usability" >&5
4710
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4711
cat >conftest.$ac_ext <<_ACEOF
4714
cat confdefs.h >>conftest.$ac_ext
4715
cat >>conftest.$ac_ext <<_ACEOF
4716
/* end confdefs.h. */
4717
$ac_includes_default
4718
#include <$ac_header>
4720
rm -f conftest.$ac_objext
4721
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4722
(eval $ac_compile) 2>conftest.er1
4724
grep -v '^ *+' conftest.er1 >conftest.err
4726
cat conftest.err >&5
4727
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728
(exit $ac_status); } &&
4729
{ ac_try='test -z "$ac_c_werror_flag"
4730
|| test ! -s conftest.err'
4731
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4734
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735
(exit $ac_status); }; } &&
4736
{ ac_try='test -s conftest.$ac_objext'
4737
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4740
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741
(exit $ac_status); }; }; then
4742
ac_header_compiler=yes
4744
echo "$as_me: failed program was:" >&5
4745
sed 's/^/| /' conftest.$ac_ext >&5
4747
ac_header_compiler=no
4749
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4750
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4751
echo "${ECHO_T}$ac_header_compiler" >&6
4753
# Is the header present?
4754
echo "$as_me:$LINENO: checking $ac_header presence" >&5
4755
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4756
cat >conftest.$ac_ext <<_ACEOF
4759
cat confdefs.h >>conftest.$ac_ext
4760
cat >>conftest.$ac_ext <<_ACEOF
4761
/* end confdefs.h. */
4762
#include <$ac_header>
4764
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4765
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4767
grep -v '^ *+' conftest.er1 >conftest.err
4769
cat conftest.err >&5
4770
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771
(exit $ac_status); } >/dev/null; then
4772
if test -s conftest.err; then
4773
ac_cpp_err=$ac_c_preproc_warn_flag
4774
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4781
if test -z "$ac_cpp_err"; then
4782
ac_header_preproc=yes
4784
echo "$as_me: failed program was:" >&5
4785
sed 's/^/| /' conftest.$ac_ext >&5
4787
ac_header_preproc=no
4789
rm -f conftest.err conftest.$ac_ext
4790
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4791
echo "${ECHO_T}$ac_header_preproc" >&6
4793
# So? What about this header?
4794
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4796
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4797
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4798
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4799
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4800
ac_header_preproc=yes
4803
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4804
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4805
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4806
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4807
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4808
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4809
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4810
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4811
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4812
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4813
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4814
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4817
## ------------------------------------------ ##
4818
## Report this to the AC_PACKAGE_NAME lists. ##
4819
## ------------------------------------------ ##
4822
sed "s/^/$as_me: WARNING: /" >&2
4825
echo "$as_me:$LINENO: checking for $ac_header" >&5
4826
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4827
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4828
echo $ECHO_N "(cached) $ECHO_C" >&6
4830
eval "$as_ac_Header=\$ac_header_preproc"
4832
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4833
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4836
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4837
cat >>confdefs.h <<_ACEOF
4838
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4850
# Only perform the check for file, if the check method requires it
4851
case $deplibs_check_method in
4853
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4854
echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4855
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4856
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4857
echo $ECHO_N "(cached) $ECHO_C" >&6
4861
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4864
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4867
ac_save_MAGIC_CMD="$MAGIC_CMD"
4868
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4869
ac_dummy="/usr/bin:$PATH"
4870
for ac_dir in $ac_dummy; do
4871
test -z "$ac_dir" && ac_dir=.
4872
if test -f $ac_dir/${ac_tool_prefix}file; then
4873
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4874
if test -n "$file_magic_test_file"; then
4875
case $deplibs_check_method in
4877
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4878
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4879
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4880
egrep "$file_magic_regex" > /dev/null; then
4885
*** Warning: the command libtool uses to detect shared libraries,
4886
*** $file_magic_cmd, produces output that libtool cannot recognize.
4887
*** The result is that libtool may fail to recognize shared libraries
4888
*** as such. This will affect the creation of libtool libraries that
4889
*** depend on shared libraries, but programs linked with such libtool
4890
*** libraries will work regardless of this problem. Nevertheless, you
4891
*** may want to report the problem to your system manager and/or to
4892
*** bug-libtool@gnu.org
4902
MAGIC_CMD="$ac_save_MAGIC_CMD"
4907
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4908
if test -n "$MAGIC_CMD"; then
4909
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4910
echo "${ECHO_T}$MAGIC_CMD" >&6
4912
echo "$as_me:$LINENO: result: no" >&5
4913
echo "${ECHO_T}no" >&6
4916
if test -z "$lt_cv_path_MAGIC_CMD"; then
4917
if test -n "$ac_tool_prefix"; then
4918
echo "$as_me:$LINENO: checking for file" >&5
4919
echo $ECHO_N "checking for file... $ECHO_C" >&6
4920
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4921
echo $ECHO_N "(cached) $ECHO_C" >&6
4925
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4928
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4931
ac_save_MAGIC_CMD="$MAGIC_CMD"
4932
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4933
ac_dummy="/usr/bin:$PATH"
4934
for ac_dir in $ac_dummy; do
4935
test -z "$ac_dir" && ac_dir=.
4936
if test -f $ac_dir/file; then
4937
lt_cv_path_MAGIC_CMD="$ac_dir/file"
4938
if test -n "$file_magic_test_file"; then
4939
case $deplibs_check_method in
4941
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4942
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4943
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4944
egrep "$file_magic_regex" > /dev/null; then
4949
*** Warning: the command libtool uses to detect shared libraries,
4950
*** $file_magic_cmd, produces output that libtool cannot recognize.
4951
*** The result is that libtool may fail to recognize shared libraries
4952
*** as such. This will affect the creation of libtool libraries that
4953
*** depend on shared libraries, but programs linked with such libtool
4954
*** libraries will work regardless of this problem. Nevertheless, you
4955
*** may want to report the problem to your system manager and/or to
4956
*** bug-libtool@gnu.org
4966
MAGIC_CMD="$ac_save_MAGIC_CMD"
4971
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4972
if test -n "$MAGIC_CMD"; then
4973
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4974
echo "${ECHO_T}$MAGIC_CMD" >&6
4976
echo "$as_me:$LINENO: result: no" >&5
4977
echo "${ECHO_T}no" >&6
4989
if test -n "$ac_tool_prefix"; then
4990
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4991
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4992
echo "$as_me:$LINENO: checking for $ac_word" >&5
4993
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4994
if test "${ac_cv_prog_RANLIB+set}" = set; then
4995
echo $ECHO_N "(cached) $ECHO_C" >&6
4997
if test -n "$RANLIB"; then
4998
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5000
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5004
test -z "$as_dir" && as_dir=.
5005
for ac_exec_ext in '' $ac_executable_extensions; do
5006
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5007
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5008
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5016
RANLIB=$ac_cv_prog_RANLIB
5017
if test -n "$RANLIB"; then
5018
echo "$as_me:$LINENO: result: $RANLIB" >&5
5019
echo "${ECHO_T}$RANLIB" >&6
5021
echo "$as_me:$LINENO: result: no" >&5
5022
echo "${ECHO_T}no" >&6
5026
if test -z "$ac_cv_prog_RANLIB"; then
5027
ac_ct_RANLIB=$RANLIB
5028
# Extract the first word of "ranlib", so it can be a program name with args.
5029
set dummy ranlib; ac_word=$2
5030
echo "$as_me:$LINENO: checking for $ac_word" >&5
5031
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5032
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5033
echo $ECHO_N "(cached) $ECHO_C" >&6
5035
if test -n "$ac_ct_RANLIB"; then
5036
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5038
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5042
test -z "$as_dir" && as_dir=.
5043
for ac_exec_ext in '' $ac_executable_extensions; do
5044
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5045
ac_cv_prog_ac_ct_RANLIB="ranlib"
5046
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5052
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5055
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5056
if test -n "$ac_ct_RANLIB"; then
5057
echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5058
echo "${ECHO_T}$ac_ct_RANLIB" >&6
5060
echo "$as_me:$LINENO: result: no" >&5
5061
echo "${ECHO_T}no" >&6
5064
RANLIB=$ac_ct_RANLIB
5066
RANLIB="$ac_cv_prog_RANLIB"
5069
if test -n "$ac_tool_prefix"; then
5070
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5071
set dummy ${ac_tool_prefix}strip; ac_word=$2
5072
echo "$as_me:$LINENO: checking for $ac_word" >&5
5073
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5074
if test "${ac_cv_prog_STRIP+set}" = set; then
5075
echo $ECHO_N "(cached) $ECHO_C" >&6
5077
if test -n "$STRIP"; then
5078
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5080
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5084
test -z "$as_dir" && as_dir=.
5085
for ac_exec_ext in '' $ac_executable_extensions; do
5086
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5087
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5088
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5096
STRIP=$ac_cv_prog_STRIP
5097
if test -n "$STRIP"; then
5098
echo "$as_me:$LINENO: result: $STRIP" >&5
5099
echo "${ECHO_T}$STRIP" >&6
5101
echo "$as_me:$LINENO: result: no" >&5
5102
echo "${ECHO_T}no" >&6
5106
if test -z "$ac_cv_prog_STRIP"; then
5108
# Extract the first word of "strip", so it can be a program name with args.
5109
set dummy strip; ac_word=$2
5110
echo "$as_me:$LINENO: checking for $ac_word" >&5
5111
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5112
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5113
echo $ECHO_N "(cached) $ECHO_C" >&6
5115
if test -n "$ac_ct_STRIP"; then
5116
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5118
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5122
test -z "$as_dir" && as_dir=.
5123
for ac_exec_ext in '' $ac_executable_extensions; do
5124
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5125
ac_cv_prog_ac_ct_STRIP="strip"
5126
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5132
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5135
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5136
if test -n "$ac_ct_STRIP"; then
5137
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5138
echo "${ECHO_T}$ac_ct_STRIP" >&6
5140
echo "$as_me:$LINENO: result: no" >&5
5141
echo "${ECHO_T}no" >&6
5146
STRIP="$ac_cv_prog_STRIP"
5153
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5154
if test "${enable_libtool_lock+set}" = set; then
5155
enableval="$enable_libtool_lock"
5158
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5160
# Some flags need to be propagated to the compiler or linker for good
5164
# Find out which ABI we are using.
5165
echo '#line 5165 "configure"' > conftest.$ac_ext
5166
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5167
(eval $ac_compile) 2>&5
5169
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170
(exit $ac_status); }; then
5171
case `/usr/bin/file conftest.$ac_objext` in
5187
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
5188
SAVE_CFLAGS="$CFLAGS"
5189
CFLAGS="$CFLAGS -belf"
5190
echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5191
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5192
if test "${lt_cv_cc_needs_belf+set}" = set; then
5193
echo $ECHO_N "(cached) $ECHO_C" >&6
5198
ac_cpp='$CPP $CPPFLAGS'
5199
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5200
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5201
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5203
cat >conftest.$ac_ext <<_ACEOF
5206
cat confdefs.h >>conftest.$ac_ext
5207
cat >>conftest.$ac_ext <<_ACEOF
5208
/* end confdefs.h. */
5218
rm -f conftest.$ac_objext conftest$ac_exeext
5219
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5220
(eval $ac_link) 2>conftest.er1
5222
grep -v '^ *+' conftest.er1 >conftest.err
5224
cat conftest.err >&5
5225
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5226
(exit $ac_status); } &&
5227
{ ac_try='test -z "$ac_c_werror_flag"
5228
|| test ! -s conftest.err'
5229
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5232
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233
(exit $ac_status); }; } &&
5234
{ ac_try='test -s conftest$ac_exeext'
5235
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5238
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5239
(exit $ac_status); }; }; then
5240
lt_cv_cc_needs_belf=yes
5242
echo "$as_me: failed program was:" >&5
5243
sed 's/^/| /' conftest.$ac_ext >&5
5245
lt_cv_cc_needs_belf=no
5247
rm -f conftest.err conftest.$ac_objext \
5248
conftest$ac_exeext conftest.$ac_ext
5250
ac_cpp='$CPP $CPPFLAGS'
5251
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5252
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5253
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5256
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5257
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5258
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5259
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5260
CFLAGS="$SAVE_CFLAGS"
5267
# Sed substitution that helps us do robust quoting. It backslashifies
5268
# metacharacters that are still active within double-quoted strings.
5269
Xsed='sed -e s/^X//'
5270
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5272
# Same as above, but do not quote variable references.
5273
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5275
# Sed substitution to delay expansion of an escaped shell variable in a
5276
# double_quote_subst'ed string.
5277
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5283
default_ofile=libtool
5284
can_build_shared=yes
5286
# All known linkers require a `.a' archive for static linking (except M$VC,
5287
# which needs '.lib').
5289
ltmain="$ac_aux_dir/ltmain.sh"
5290
ofile="$default_ofile"
5291
with_gnu_ld="$lt_cv_prog_gnu_ld"
5292
need_locks="$enable_libtool_lock"
5295
old_CFLAGS="$CFLAGS"
5297
# Set sane defaults for various variables
5298
test -z "$AR" && AR=ar
5299
test -z "$AR_FLAGS" && AR_FLAGS=cru
5300
test -z "$AS" && AS=as
5301
test -z "$CC" && CC=cc
5302
test -z "$DLLTOOL" && DLLTOOL=dlltool
5303
test -z "$LD" && LD=ld
5304
test -z "$LN_S" && LN_S="ln -s"
5305
test -z "$MAGIC_CMD" && MAGIC_CMD=file
5306
test -z "$NM" && NM=nm
5307
test -z "$OBJDUMP" && OBJDUMP=objdump
5308
test -z "$RANLIB" && RANLIB=:
5309
test -z "$STRIP" && STRIP=:
5310
test -z "$ac_objext" && ac_objext=o
5312
if test x"$host" != x"$build"; then
5313
ac_tool_prefix=${host_alias}-
5318
# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
5321
linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
5326
# AIX sometimes has problems with the GCC collect2 program. For some
5327
# reason, if we set the COLLECT_NAMES environment variable, the problems
5328
# vanish in a puff of smoke.
5329
if test "X${COLLECT_NAMES+set}" != Xset; then
5331
export COLLECT_NAMES
5336
# Determine commands to create old-style static archives.
5337
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5338
old_postinstall_cmds='chmod 644 $oldlib'
5339
old_postuninstall_cmds=
5341
if test -n "$RANLIB"; then
5344
old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5347
old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5350
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5353
# Allow CC to be a program name with arguments.
5357
echo "$as_me:$LINENO: checking for objdir" >&5
5358
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5359
rm -f .libs 2>/dev/null
5360
mkdir .libs 2>/dev/null
5361
if test -d .libs; then
5364
# MS-DOS does not allow filenames that begin with a dot.
5367
rmdir .libs 2>/dev/null
5368
echo "$as_me:$LINENO: result: $objdir" >&5
5369
echo "${ECHO_T}$objdir" >&6
5373
# Check whether --with-pic or --without-pic was given.
5374
if test "${with_pic+set}" = set; then
5380
test -z "$pic_mode" && pic_mode=default
5382
# We assume here that the value for lt_cv_prog_cc_pic will not be cached
5383
# in isolation, and that seeing it set (from the cache) indicates that
5384
# the associated values are set (in the cache) correctly too.
5385
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5386
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5387
if test "${lt_cv_prog_cc_pic+set}" = set; then
5388
echo $ECHO_N "(cached) $ECHO_C" >&6
5391
lt_cv_prog_cc_shlib=
5393
lt_cv_prog_cc_static=
5394
lt_cv_prog_cc_no_builtin=
5395
lt_cv_prog_cc_can_build_shared=$can_build_shared
5397
if test "$GCC" = yes; then
5398
lt_cv_prog_cc_wl='-Wl,'
5399
lt_cv_prog_cc_static='-static'
5403
# Below there is a dirty hack to force normal static linking with -ldl
5404
# The problem is because libdl dynamically linked with both libc and
5405
# libC (AIX C++ library), which obviously doesn't included in libraries
5406
# list by gcc. This cause undefined symbols with -static flags.
5407
# This hack allows C programs to be linked with "-static -ldl", but
5408
# not sure about C++ programs.
5409
lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5412
# FIXME: we need at least 68020 code to build shared libraries, but
5413
# adding the `-m68020' flag to GCC prevents building anything better,
5415
lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5417
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5418
# PIC is the default for these OSes.
5420
darwin* | rhapsody*)
5421
# PIC is the default on this platform
5422
# Common symbols not allowed in MH_DYLIB files
5423
lt_cv_prog_cc_pic='-fno-common'
5425
cygwin* | mingw* | pw32* | os2*)
5426
# This hack is so that the source file can tell whether it is being
5427
# built for inclusion in a dll (and should export symbols for example).
5428
lt_cv_prog_cc_pic='-DDLL_EXPORT'
5431
if test -d /usr/nec; then
5432
lt_cv_prog_cc_pic=-Kconform_pic
5436
lt_cv_prog_cc_pic='-fPIC'
5440
# PORTME Check for PIC flags for the system compiler.
5442
aix3* | aix4* | aix5*)
5443
lt_cv_prog_cc_wl='-Wl,'
5444
# All AIX code is PIC.
5445
if test "$host_cpu" = ia64; then
5446
# AIX 5 now supports IA64 processor
5447
lt_cv_prog_cc_static='-Bstatic'
5449
lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5453
hpux9* | hpux10* | hpux11*)
5454
# Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5455
lt_cv_prog_cc_wl='-Wl,'
5456
lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5457
lt_cv_prog_cc_pic='+Z'
5460
irix5* | irix6* | nonstopux*)
5461
lt_cv_prog_cc_wl='-Wl,'
5462
lt_cv_prog_cc_static='-non_shared'
5463
# PIC (with -KPIC) is the default.
5466
cygwin* | mingw* | pw32* | os2*)
5467
# This hack is so that the source file can tell whether it is being
5468
# built for inclusion in a dll (and should export symbols for example).
5469
lt_cv_prog_cc_pic='-DDLL_EXPORT'
5473
lt_cv_prog_cc_pic='-KPIC'
5474
lt_cv_prog_cc_static='-Bstatic'
5477
osf3* | osf4* | osf5*)
5478
# All OSF/1 code is PIC.
5479
lt_cv_prog_cc_wl='-Wl,'
5480
lt_cv_prog_cc_static='-non_shared'
5484
lt_cv_prog_cc_pic='-Kpic'
5485
lt_cv_prog_cc_static='-dn'
5486
lt_cv_prog_cc_shlib='-belf'
5490
lt_cv_prog_cc_pic='-KPIC'
5491
lt_cv_prog_cc_static='-Bstatic'
5492
lt_cv_prog_cc_wl='-Wl,'
5496
lt_cv_prog_cc_pic='-PIC'
5497
lt_cv_prog_cc_static='-Bstatic'
5498
lt_cv_prog_cc_wl='-Qoption ld '
5501
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5502
lt_cv_prog_cc_pic='-KPIC'
5503
lt_cv_prog_cc_static='-Bstatic'
5504
lt_cv_prog_cc_wl='-Wl,'
5508
lt_cv_prog_cc_pic='-pic'
5509
lt_cv_prog_cc_static='-Bstatic'
5513
if test -d /usr/nec ;then
5514
lt_cv_prog_cc_pic='-Kconform_pic'
5515
lt_cv_prog_cc_static='-Bstatic'
5520
lt_cv_prog_cc_can_build_shared=no
5527
if test -z "$lt_cv_prog_cc_pic"; then
5528
echo "$as_me:$LINENO: result: none" >&5
5529
echo "${ECHO_T}none" >&6
5531
echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5532
echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5534
# Check to make sure the pic_flag actually works.
5535
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5536
echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5537
if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5538
echo $ECHO_N "(cached) $ECHO_C" >&6
5540
save_CFLAGS="$CFLAGS"
5541
CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5542
cat >conftest.$ac_ext <<_ACEOF
5545
cat confdefs.h >>conftest.$ac_ext
5546
cat >>conftest.$ac_ext <<_ACEOF
5547
/* end confdefs.h. */
5557
rm -f conftest.$ac_objext
5558
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5559
(eval $ac_compile) 2>conftest.er1
5561
grep -v '^ *+' conftest.er1 >conftest.err
5563
cat conftest.err >&5
5564
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565
(exit $ac_status); } &&
5566
{ ac_try='test -z "$ac_c_werror_flag"
5567
|| test ! -s conftest.err'
5568
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5571
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5572
(exit $ac_status); }; } &&
5573
{ ac_try='test -s conftest.$ac_objext'
5574
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5577
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578
(exit $ac_status); }; }; then
5580
hpux9* | hpux10* | hpux11*)
5581
# On HP-UX, both CC and GCC only warn that PIC is supported... then
5582
# they create non-PIC objects. So, if there were any warnings, we
5583
# assume that PIC is not supported.
5584
if test -s conftest.err; then
5585
lt_cv_prog_cc_pic_works=no
5587
lt_cv_prog_cc_pic_works=yes
5591
lt_cv_prog_cc_pic_works=yes
5596
echo "$as_me: failed program was:" >&5
5597
sed 's/^/| /' conftest.$ac_ext >&5
5599
lt_cv_prog_cc_pic_works=no
5602
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5603
CFLAGS="$save_CFLAGS"
5608
if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5610
lt_cv_prog_cc_can_build_shared=no
5612
lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5615
echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5616
echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5619
# Check for any special shared library compilation flags.
5620
if test -n "$lt_cv_prog_cc_shlib"; then
5621
{ echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5622
echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5623
if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5625
{ echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5626
echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5627
lt_cv_prog_cc_can_build_shared=no
5631
echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5632
echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5633
if test "${lt_cv_prog_cc_static_works+set}" = set; then
5634
echo $ECHO_N "(cached) $ECHO_C" >&6
5636
lt_cv_prog_cc_static_works=no
5637
save_LDFLAGS="$LDFLAGS"
5638
LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5639
cat >conftest.$ac_ext <<_ACEOF
5642
cat confdefs.h >>conftest.$ac_ext
5643
cat >>conftest.$ac_ext <<_ACEOF
5644
/* end confdefs.h. */
5654
rm -f conftest.$ac_objext conftest$ac_exeext
5655
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5656
(eval $ac_link) 2>conftest.er1
5658
grep -v '^ *+' conftest.er1 >conftest.err
5660
cat conftest.err >&5
5661
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662
(exit $ac_status); } &&
5663
{ ac_try='test -z "$ac_c_werror_flag"
5664
|| test ! -s conftest.err'
5665
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5668
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669
(exit $ac_status); }; } &&
5670
{ ac_try='test -s conftest$ac_exeext'
5671
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5674
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675
(exit $ac_status); }; }; then
5676
lt_cv_prog_cc_static_works=yes
5678
echo "$as_me: failed program was:" >&5
5679
sed 's/^/| /' conftest.$ac_ext >&5
5682
rm -f conftest.err conftest.$ac_objext \
5683
conftest$ac_exeext conftest.$ac_ext
5684
LDFLAGS="$save_LDFLAGS"
5689
# Belt *and* braces to stop my trousers falling down:
5690
test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5691
echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5692
echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5694
pic_flag="$lt_cv_prog_cc_pic"
5695
special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5696
wl="$lt_cv_prog_cc_wl"
5697
link_static_flag="$lt_cv_prog_cc_static"
5698
no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5699
can_build_shared="$lt_cv_prog_cc_can_build_shared"
5702
# Check to see if options -o and -c are simultaneously supported by compiler
5703
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5704
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5705
if test "${lt_cv_compiler_c_o+set}" = set; then
5706
echo $ECHO_N "(cached) $ECHO_C" >&6
5709
$rm -r conftest 2>/dev/null
5712
echo "int some_variable = 0;" > conftest.$ac_ext
5714
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5715
# that will create temporary files in the current directory regardless of
5716
# the output directory. Thus, making CWD read-only will cause this test
5717
# to fail, enabling locking or at least warning the user not to do parallel
5720
save_CFLAGS="$CFLAGS"
5721
CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5723
if { (eval echo configure:5723: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5724
# The compiler can only warn and ignore the option if not recognized
5725
# So say no if there are warnings
5726
if test -s out/conftest.err; then
5727
lt_cv_compiler_c_o=no
5729
lt_cv_compiler_c_o=yes
5732
# Append any errors to the config.log.
5733
cat out/conftest.err 1>&5
5734
lt_cv_compiler_c_o=no
5736
CFLAGS="$save_CFLAGS"
5742
$rm -r conftest 2>/dev/null
5746
compiler_c_o=$lt_cv_compiler_c_o
5747
echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5748
echo "${ECHO_T}$compiler_c_o" >&6
5750
if test x"$compiler_c_o" = x"yes"; then
5751
# Check to see if we can write to a .lo
5752
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5753
echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5754
if test "${lt_cv_compiler_o_lo+set}" = set; then
5755
echo $ECHO_N "(cached) $ECHO_C" >&6
5758
lt_cv_compiler_o_lo=no
5759
save_CFLAGS="$CFLAGS"
5760
CFLAGS="$CFLAGS -c -o conftest.lo"
5761
save_objext="$ac_objext"
5763
cat >conftest.$ac_ext <<_ACEOF
5766
cat confdefs.h >>conftest.$ac_ext
5767
cat >>conftest.$ac_ext <<_ACEOF
5768
/* end confdefs.h. */
5773
int some_variable = 0;
5778
rm -f conftest.$ac_objext
5779
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5780
(eval $ac_compile) 2>conftest.er1
5782
grep -v '^ *+' conftest.er1 >conftest.err
5784
cat conftest.err >&5
5785
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786
(exit $ac_status); } &&
5787
{ ac_try='test -z "$ac_c_werror_flag"
5788
|| test ! -s conftest.err'
5789
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5792
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793
(exit $ac_status); }; } &&
5794
{ ac_try='test -s conftest.$ac_objext'
5795
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5798
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799
(exit $ac_status); }; }; then
5800
# The compiler can only warn and ignore the option if not recognized
5801
# So say no if there are warnings
5802
if test -s conftest.err; then
5803
lt_cv_compiler_o_lo=no
5805
lt_cv_compiler_o_lo=yes
5809
echo "$as_me: failed program was:" >&5
5810
sed 's/^/| /' conftest.$ac_ext >&5
5813
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5814
ac_objext="$save_objext"
5815
CFLAGS="$save_CFLAGS"
5819
compiler_o_lo=$lt_cv_compiler_o_lo
5820
echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
5821
echo "${ECHO_T}$compiler_o_lo" >&6
5826
# Check to see if we can do hard links to lock some files if needed
5827
hard_links="nottested"
5828
if test "$compiler_c_o" = no && test "$need_locks" != no; then
5829
# do not overwrite the value of need_locks provided by the user
5830
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5831
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5834
ln conftest.a conftest.b 2>/dev/null && hard_links=no
5836
ln conftest.a conftest.b 2>&5 || hard_links=no
5837
ln conftest.a conftest.b 2>/dev/null && hard_links=no
5838
echo "$as_me:$LINENO: result: $hard_links" >&5
5839
echo "${ECHO_T}$hard_links" >&6
5840
if test "$hard_links" = no; then
5841
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5842
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5849
if test "$GCC" = yes; then
5850
# Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5851
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5852
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5853
echo "int some_variable = 0;" > conftest.$ac_ext
5854
save_CFLAGS="$CFLAGS"
5855
CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5856
compiler_rtti_exceptions=no
5857
cat >conftest.$ac_ext <<_ACEOF
5860
cat confdefs.h >>conftest.$ac_ext
5861
cat >>conftest.$ac_ext <<_ACEOF
5862
/* end confdefs.h. */
5867
int some_variable = 0;
5872
rm -f conftest.$ac_objext
5873
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5874
(eval $ac_compile) 2>conftest.er1
5876
grep -v '^ *+' conftest.er1 >conftest.err
5878
cat conftest.err >&5
5879
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880
(exit $ac_status); } &&
5881
{ ac_try='test -z "$ac_c_werror_flag"
5882
|| test ! -s conftest.err'
5883
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5886
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887
(exit $ac_status); }; } &&
5888
{ ac_try='test -s conftest.$ac_objext'
5889
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5892
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893
(exit $ac_status); }; }; then
5894
# The compiler can only warn and ignore the option if not recognized
5895
# So say no if there are warnings
5896
if test -s conftest.err; then
5897
compiler_rtti_exceptions=no
5899
compiler_rtti_exceptions=yes
5903
echo "$as_me: failed program was:" >&5
5904
sed 's/^/| /' conftest.$ac_ext >&5
5907
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5908
CFLAGS="$save_CFLAGS"
5909
echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5910
echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5912
if test "$compiler_rtti_exceptions" = "yes"; then
5913
no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5915
no_builtin_flag=' -fno-builtin'
5919
# See if the linker supports building shared libraries.
5920
echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5921
echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5923
allow_undefined_flag=
5925
need_lib_prefix=unknown
5926
need_version=unknown
5927
# when you set need_version to no, make sure it does not cause -set_version
5928
# flags to be left without arguments
5930
archive_expsym_cmds=
5931
old_archive_from_new_cmds=
5932
old_archive_from_expsyms_cmds=
5933
export_dynamic_flag_spec=
5934
whole_archive_flag_spec=
5935
thread_safe_flag_spec=
5936
hardcode_into_libs=no
5937
hardcode_libdir_flag_spec=
5938
hardcode_libdir_separator=
5941
hardcode_shlibpath_var=unsupported
5943
link_all_deplibs=unknown
5944
always_export_symbols=no
5945
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5946
# include_expsyms should be a list of space-separated symbols to be *always*
5947
# included in the symbol list
5949
# exclude_expsyms can be an egrep regular expression of symbols to exclude
5950
# it will be wrapped by ` (' and `)$', so one must not match beginning or
5951
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5952
# as well as any symbol that contains `d'.
5953
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5954
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5955
# platforms (ab)use it in PIC code, but their linkers get confused if
5956
# the symbol is explicitly referenced. Since portable code cannot
5957
# rely on this symbol name, it's probably fine to never include it in
5958
# preloaded symbol tables.
5959
extract_expsyms_cmds=
5962
cygwin* | mingw* | pw32*)
5963
# FIXME: the MSVC++ port hasn't been tested in a loooong time
5964
# When not using gcc, we currently assume that we are using
5965
# Microsoft Visual C++.
5966
if test "$GCC" != yes; then
5976
if test "$with_gnu_ld" = yes; then
5977
# If archive_cmds runs LD, not CC, wlarc should be empty
5980
# See if GNU ld supports shared libraries.
5982
aix3* | aix4* | aix5*)
5983
# On AIX, the GNU linker is very broken
5984
# Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5988
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
5989
*** to be unable to reliably create shared libraries on AIX.
5990
*** Therefore, libtool is disabling shared libraries support. If you
5991
*** really care for shared libraries, you may want to modify your PATH
5992
*** so that a non-GNU linker is found, and then restart.
5998
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)'
5999
hardcode_libdir_flag_spec='-L$libdir'
6000
hardcode_minus_L=yes
6002
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6003
# that the semantics of dynamic libraries on AmigaOS, at least up
6004
# to version 4, is to share data among multiple programs linked
6005
# with the same dynamic library. Since this doesn't match the
6006
# behavior of shared libraries on other platforms, we can use
6012
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6013
allow_undefined_flag=unsupported
6014
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6015
# support --undefined. This deserves some investigation. FIXME
6016
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6022
cygwin* | mingw* | pw32*)
6023
# hardcode_libdir_flag_spec is actually meaningless, as there is
6024
# no search path for DLLs.
6025
hardcode_libdir_flag_spec='-L$libdir'
6026
allow_undefined_flag=unsupported
6027
always_export_symbols=yes
6029
extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
6030
sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
6031
test -f $output_objdir/impgen.exe || (cd $output_objdir && \
6032
if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
6033
else $CC -o impgen impgen.c ; fi)~
6034
$output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
6036
old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
6038
# cygwin and mingw dlls have different entry points and sets of symbols
6040
# FIXME: what about values for MSVC?
6041
dll_entry=__cygwin_dll_entry@12
6042
dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
6046
dll_entry=_DllMainCRTStartup@12
6047
dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
6051
# mingw and cygwin differ, and it's simplest to just exclude the union
6052
# of the two symbol sets.
6053
dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
6055
# recent cygwin and mingw systems supply a stub DllMain which the user
6056
# can override, but on older systems we have to supply one (in ltdll.c)
6057
if test "x$lt_cv_need_dllmain" = "xyes"; then
6058
ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
6059
ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
6060
test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
6066
# Extract the symbol export list from an `--export-all' def file,
6067
# then regenerate the def file from the symbol export list, so that
6068
# the compiled dll only exports the symbol export list.
6069
# Be careful not to strip the DATA tag left be newer dlltools.
6070
export_symbols_cmds="$ltdll_cmds"'
6071
$DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
6072
sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
6074
# If the export-symbols file already is a .def file (1st line
6075
# is EXPORTS), use it as is.
6076
# If DATA tags from a recent dlltool are present, honour them!
6077
archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
6078
cp $export_symbols $output_objdir/$soname-def;
6080
echo EXPORTS > $output_objdir/$soname-def;
6082
cat $export_symbols | while read symbol; do
6085
2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
6086
4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
6087
*) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
6089
_lt_hint=`expr 1 + \$_lt_hint`;
6093
$CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
6094
$DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
6095
$CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
6096
$DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
6097
$CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
6101
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6102
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6105
archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6106
archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6111
if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
6115
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6116
*** create shared libraries on Solaris systems. Therefore, libtool
6117
*** is disabling shared libraries support. We urge you to upgrade GNU
6118
*** binutils to release 2.9.1 or newer. Another option is to modify
6119
*** your PATH or compiler configuration so that the native linker is
6120
*** used, and then restart.
6123
elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6124
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6125
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6132
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6135
hardcode_shlibpath_var=no
6139
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6140
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6141
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6148
if test "$ld_shlibs" = yes; then
6149
runpath_var=LD_RUN_PATH
6150
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6151
export_dynamic_flag_spec='${wl}--export-dynamic'
6153
cygwin* | mingw* | pw32*)
6154
# dlltool doesn't understand --whole-archive et. al.
6155
whole_archive_flag_spec=
6158
# ancient GNU ld didn't support --whole-archive et. al.
6159
if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
6160
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6162
whole_archive_flag_spec=
6168
# PORTME fill in a description of your system's linker (not GNU ld)
6171
allow_undefined_flag=unsupported
6172
always_export_symbols=yes
6173
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'
6174
# Note: this linker hardcodes the directories in LIBPATH if there
6175
# are no directories specified by -L.
6176
hardcode_minus_L=yes
6177
if test "$GCC" = yes && test -z "$link_static_flag"; then
6178
# Neither direct hardcoding nor static linking is supported with a
6180
hardcode_direct=unsupported
6185
if test "$host_cpu" = ia64; then
6186
# On IA64, the linker does run time linking by default, so we don't
6187
# have to do anything special.
6188
aix_use_runtimelinking=no
6189
exp_sym_flag='-Bexport'
6192
aix_use_runtimelinking=no
6194
# Test if we are trying to use run time linking or normal
6195
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
6196
# need to do runtime linking.
6197
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6198
for ld_flag in $LDFLAGS; do
6201
aix_use_runtimelinking=yes
6208
exp_sym_flag='-bexport'
6209
no_entry_flag='-bnoentry'
6212
# When large executables or shared objects are built, AIX ld can
6213
# have problems creating the table of contents. If linking a library
6214
# or program results in "error TOC overflow" add -mminimal-toc to
6215
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6216
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6220
hardcode_libdir_separator=':'
6221
if test "$GCC" = yes; then
6222
case $host_os in aix4.[012]|aix4.[012].*)
6223
collect2name=`${CC} -print-prog-name=collect2`
6224
if test -f "$collect2name" && \
6225
strings "$collect2name" | grep resolve_lib_name >/dev/null
6227
# We have reworked collect2
6230
# We have old collect2
6231
hardcode_direct=unsupported
6232
# It fails to find uninstalled libraries when the uninstalled
6233
# path is not listed in the libpath. Setting hardcode_minus_L
6234
# to unsupported forces relinking
6235
hardcode_minus_L=yes
6236
hardcode_libdir_flag_spec='-L$libdir'
6237
hardcode_libdir_separator=
6241
shared_flag='-shared'
6244
if test "$host_cpu" = ia64; then
6245
shared_flag='${wl}-G'
6247
if test "$aix_use_runtimelinking" = yes; then
6248
shared_flag='${wl}-G'
6250
shared_flag='${wl}-bM:SRE'
6255
# It seems that -bexpall can do strange things, so it is better to
6256
# generate a list of symbols to export.
6257
always_export_symbols=yes
6258
if test "$aix_use_runtimelinking" = yes; then
6259
# Warning - without using the other runtime loading flags (-brtl),
6260
# -berok will link without error, but may produce a broken library.
6261
allow_undefined_flag='-berok'
6262
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
6263
archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6265
if test "$host_cpu" = ia64; then
6266
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6267
allow_undefined_flag="-z nodefs"
6268
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
6270
hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
6271
# Warning - without using the other run time loading flags,
6272
# -berok will link without error, but may produce a broken library.
6273
allow_undefined_flag='${wl}-berok'
6274
# This is a bit strange, but is similar to how AIX traditionally builds
6275
# it's shared libraries.
6276
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
6282
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)'
6283
hardcode_libdir_flag_spec='-L$libdir'
6284
hardcode_minus_L=yes
6285
# see comment about different semantics on the GNU ld section
6289
cygwin* | mingw* | pw32*)
6290
# When not using gcc, we currently assume that we are using
6291
# Microsoft Visual C++.
6292
# hardcode_libdir_flag_spec is actually meaningless, as there is
6293
# no search path for DLLs.
6294
hardcode_libdir_flag_spec=' '
6295
allow_undefined_flag=unsupported
6296
# Tell ltmain to make .lib files, not .a files.
6298
# FIXME: Setting linknames here is a bad hack.
6299
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6300
# The linker will automatically build a .lib file if we build a DLL.
6301
old_archive_from_new_cmds='true'
6302
# FIXME: Should let the user specify the lib program.
6303
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6304
fix_srcfile_path='`cygpath -w "$srcfile"`'
6307
darwin* | rhapsody*)
6309
rhapsody* | darwin1.[012])
6310
allow_undefined_flag='-undefined suppress'
6313
allow_undefined_flag='-flat_namespace -undefined suppress'
6316
# FIXME: Relying on posixy $() will cause problems for
6317
# cross-compilation, but unfortunately the echo tests do not
6318
# yet detect zsh echo's removal of \ escapes. Also zsh mangles
6319
# `"' quotes if we put them in here... so don't!
6320
archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
6321
# We need to add '_' to the symbols in $export_symbols first
6322
#archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
6324
hardcode_shlibpath_var=no
6325
whole_archive_flag_spec='-all_load $convenience'
6332
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6333
# support. Future versions do this automatically, but an explicit c++rt0.o
6334
# does not break anything, and helps significantly (at the cost of a little
6337
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6338
hardcode_libdir_flag_spec='-R$libdir'
6340
hardcode_shlibpath_var=no
6343
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
6345
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6347
hardcode_minus_L=yes
6348
hardcode_shlibpath_var=no
6351
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6353
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6354
hardcode_libdir_flag_spec='-R$libdir'
6356
hardcode_shlibpath_var=no
6359
hpux9* | hpux10* | hpux11*)
6361
hpux9*) 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' ;;
6362
*) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6364
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6365
hardcode_libdir_separator=:
6367
hardcode_minus_L=yes # Not in the search PATH, but as the default
6368
# location of the library.
6369
export_dynamic_flag_spec='${wl}-E'
6372
irix5* | irix6* | nonstopux*)
6373
if test "$GCC" = yes; then
6374
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'
6375
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6377
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'
6378
hardcode_libdir_flag_spec='-rpath $libdir'
6380
hardcode_libdir_separator=:
6381
link_all_deplibs=yes
6385
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6386
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6388
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6390
hardcode_libdir_flag_spec='-R$libdir'
6392
hardcode_shlibpath_var=no
6396
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6398
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6399
hardcode_libdir_separator=:
6400
hardcode_shlibpath_var=no
6405
hardcode_shlibpath_var=no
6406
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6407
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6408
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6409
export_dynamic_flag_spec='${wl}-E'
6412
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6413
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6414
hardcode_libdir_flag_spec='-R$libdir'
6417
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6418
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6425
hardcode_libdir_flag_spec='-L$libdir'
6426
hardcode_minus_L=yes
6427
allow_undefined_flag=unsupported
6428
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'
6429
old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6433
if test "$GCC" = yes; then
6434
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6435
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'
6437
allow_undefined_flag=' -expect_unresolved \*'
6438
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'
6440
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6441
hardcode_libdir_separator=:
6444
osf4* | osf5*) # as osf3* with the addition of -msym flag
6445
if test "$GCC" = yes; then
6446
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6447
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'
6448
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6450
allow_undefined_flag=' -expect_unresolved \*'
6451
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'
6452
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6453
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
6455
#Both c and cxx compiler support -rpath directly
6456
hardcode_libdir_flag_spec='-rpath $libdir'
6458
hardcode_libdir_separator=:
6462
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6463
hardcode_shlibpath_var=no
6464
runpath_var=LD_RUN_PATH
6465
hardcode_runpath_var=yes
6466
export_dynamic_flag_spec='${wl}-Bexport'
6470
# gcc --version < 3.0 without binutils cannot create self contained
6471
# shared libraries reliably, requiring libgcc.a to resolve some of
6472
# the object symbols generated in some cases. Libraries that use
6473
# assert need libgcc.a to resolve __eprintf, for example. Linking
6474
# a copy of libgcc.a into every shared library to guarantee resolving
6475
# such symbols causes other problems: According to Tim Van Holder
6476
# <tim.van.holder@pandora.be>, C++ libraries end up with a separate
6477
# (to the application) exception stack for one thing.
6478
no_undefined_flag=' -z defs'
6479
if test "$GCC" = yes; then
6480
case `$CC --version 2>/dev/null` in
6484
*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
6485
*** create self contained shared libraries on Solaris systems, without
6486
*** introducing a dependency on libgcc.a. Therefore, libtool is disabling
6487
*** -no-undefined support, which will at least allow you to build shared
6488
*** libraries. However, you may find that when you link such libraries
6489
*** into an application without using GCC, you have to manually add
6490
*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
6491
*** upgrade to a newer version of GCC. Another option is to rebuild your
6492
*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6499
# $CC -shared without GNU ld will not create a library from C++
6500
# object files and a static libstdc++, better avoid it by now
6501
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6502
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6503
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6504
hardcode_libdir_flag_spec='-R$libdir'
6505
hardcode_shlibpath_var=no
6507
solaris2.[0-5] | solaris2.[0-5].*) ;;
6508
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
6509
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6511
link_all_deplibs=yes
6515
if test "x$host_vendor" = xsequent; then
6516
# Use $CC to link under sequent, because it throws in some extra .o
6517
# files that make .init and .fini sections work.
6518
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6520
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6522
hardcode_libdir_flag_spec='-L$libdir'
6524
hardcode_minus_L=yes
6525
hardcode_shlibpath_var=no
6529
case $host_vendor in
6531
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6532
hardcode_direct=yes # is this really true???
6535
## LD is ld it makes a PLAMLIB
6536
## CC just makes a GrossModule.
6537
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6538
reload_cmds='$CC -r -o $output$reload_objs'
6542
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6543
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6546
runpath_var='LD_RUN_PATH'
6547
hardcode_shlibpath_var=no
6551
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6552
hardcode_shlibpath_var=no
6553
export_dynamic_flag_spec='-Bexport'
6557
no_undefined_flag=' -z text'
6558
# $CC -shared without GNU ld will not create a library from C++
6559
# object files and a static libstdc++, better avoid it by now
6560
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6561
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6562
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6563
hardcode_libdir_flag_spec=
6564
hardcode_shlibpath_var=no
6565
runpath_var='LD_RUN_PATH'
6569
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6570
hardcode_libdir_flag_spec='-L$libdir'
6571
hardcode_shlibpath_var=no
6575
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6576
hardcode_libdir_flag_spec='-L$libdir'
6577
hardcode_shlibpath_var=no
6581
if test -d /usr/nec; then
6582
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6583
hardcode_shlibpath_var=no
6584
runpath_var=LD_RUN_PATH
6585
hardcode_runpath_var=yes
6591
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6594
hardcode_shlibpath_var=no
6595
hardcode_runpath_var=yes
6596
runpath_var=LD_RUN_PATH
6599
sysv5uw7* | unixware7*)
6600
no_undefined_flag='${wl}-z ${wl}text'
6601
if test "$GCC" = yes; then
6602
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6604
archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6606
runpath_var='LD_RUN_PATH'
6607
hardcode_shlibpath_var=no
6615
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6616
echo "${ECHO_T}$ld_shlibs" >&6
6617
test "$ld_shlibs" = no && can_build_shared=no
6619
# Check hardcoding attributes.
6620
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6621
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6623
if test -n "$hardcode_libdir_flag_spec" || \
6624
test -n "$runpath_var"; then
6626
# We can hardcode non-existant directories.
6627
if test "$hardcode_direct" != no &&
6628
# If the only mechanism to avoid hardcoding is shlibpath_var, we
6629
# have to relink, otherwise we might link with an installed library
6630
# when we should be linking with a yet-to-be-installed one
6631
## test "$hardcode_shlibpath_var" != no &&
6632
test "$hardcode_minus_L" != no; then
6633
# Linking always hardcodes the temporary library directory.
6634
hardcode_action=relink
6636
# We can link without hardcoding, and we can hardcode nonexisting dirs.
6637
hardcode_action=immediate
6640
# We cannot hardcode anything, or else we can only hardcode existing
6642
hardcode_action=unsupported
6644
echo "$as_me:$LINENO: result: $hardcode_action" >&5
6645
echo "${ECHO_T}$hardcode_action" >&6
6649
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6650
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6651
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6652
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6653
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6654
echo "$as_me:$LINENO: result: yes" >&5
6655
echo "${ECHO_T}yes" >&6
6657
echo "$as_me:$LINENO: result: no" >&5
6658
echo "${ECHO_T}no" >&6
6661
reload_cmds='$LD$reload_flag -o $output$reload_objs'
6662
test -z "$deplibs_check_method" && deplibs_check_method=unknown
6664
# PORTME Fill in your ld.so characteristics
6665
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6666
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6668
libname_spec='lib$name'
6675
shlibpath_overrides_runpath=unknown
6677
dynamic_linker="$host_os ld.so"
6678
sys_lib_dlsearch_path_spec="/lib /usr/lib"
6679
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6684
library_names_spec='${libname}${release}.so$versuffix $libname.a'
6685
shlibpath_var=LIBPATH
6687
# AIX has no versioning support, so we append a major version to the name.
6688
soname_spec='${libname}${release}.so$major'
6695
hardcode_into_libs=yes
6696
if test "$host_cpu" = ia64; then
6697
# AIX 5 supports IA64
6698
library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6699
shlibpath_var=LD_LIBRARY_PATH
6701
# With GCC up to 2.95.x, collect2 would create an import file
6702
# for dependence libraries. The import file would start with
6703
# the line `#! .'. This would cause the generated library to
6704
# depend on `.', always an invalid library. This was fixed in
6705
# development snapshots of GCC prior to 3.0.
6707
aix4 | aix4.[01] | aix4.[01].*)
6708
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6710
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6717
# AIX (on Power*) has no versioning support, so currently we can
6718
# not hardcode correct soname into executable. Probably we can
6719
# add versioning support to collect2, so additional links can
6720
# be useful in future.
6721
if test "$aix_use_runtimelinking" = yes; then
6722
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
6723
# instead of lib<name>.a to let people know that these are not
6724
# typical AIX shared libraries.
6725
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6727
# We preserve .a as extension for shared libraries through AIX4.2
6728
# and later when we are not doing run time linking.
6729
library_names_spec='${libname}${release}.a $libname.a'
6730
soname_spec='${libname}${release}.so$major'
6732
shlibpath_var=LIBPATH
6734
hardcode_into_libs=yes
6738
library_names_spec='$libname.ixlibrary $libname.a'
6739
# Create ${libname}_ixlibrary.a entries in /sys/libs.
6740
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'
6744
library_names_spec='${libname}.so'
6745
dynamic_linker="$host_os ld.so"
6746
shlibpath_var=LIBRARY_PATH
6752
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6753
soname_spec='${libname}${release}.so$major'
6754
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6755
shlibpath_var=LD_LIBRARY_PATH
6756
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6757
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6758
export_dynamic_flag_spec=-rdynamic
6759
# the default ld.so.conf also contains /usr/contrib/lib and
6760
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6761
# libtool to hard-code these into programs
6764
cygwin* | mingw* | pw32*)
6765
version_type=windows
6768
case $GCC,$host_os in
6770
library_names_spec='$libname.dll.a'
6771
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6772
postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6773
dldir=$destdir/`dirname \$dlpath`~
6774
test -d \$dldir || mkdir -p \$dldir~
6775
$install_prog .libs/$dlname \$dldir/$dlname'
6776
postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6777
dlpath=$dir/\$dldll~
6781
library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6782
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
6785
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6788
library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6791
dynamic_linker='Win32 ld.exe'
6792
# FIXME: first we should search . and the directory the executable is in
6796
darwin* | rhapsody*)
6797
dynamic_linker="$host_os dyld"
6801
# FIXME: Relying on posixy $() will cause problems for
6802
# cross-compilation, but unfortunately the echo tests do not
6803
# yet detect zsh echo's removal of \ escapes.
6804
library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
6805
soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6806
shlibpath_overrides_runpath=yes
6807
shlibpath_var=DYLD_LIBRARY_PATH
6815
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6816
version_type=freebsd-$objformat
6817
case $version_type in
6819
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6824
library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6828
shlibpath_var=LD_LIBRARY_PATH
6831
shlibpath_overrides_runpath=yes
6834
shlibpath_overrides_runpath=no
6835
hardcode_into_libs=yes
6844
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6845
soname_spec='${libname}${release}.so$major'
6846
shlibpath_var=LD_LIBRARY_PATH
6847
hardcode_into_libs=yes
6850
hpux9* | hpux10* | hpux11*)
6851
# Give a soname corresponding to the major version so that dld.sl refuses to
6852
# link against other versions.
6853
dynamic_linker="$host_os dld.sl"
6857
shlibpath_var=SHLIB_PATH
6858
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6859
library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6860
soname_spec='${libname}${release}.sl$major'
6861
# HP-UX runs *really* slowly unless shared libraries are mode 555.
6862
postinstall_cmds='chmod 555 $lib'
6865
irix5* | irix6* | nonstopux*)
6867
nonstopux*) version_type=nonstopux ;;
6868
*) version_type=irix ;;
6872
soname_spec='${libname}${release}.so$major'
6873
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6875
irix5* | nonstopux*)
6879
case $LD in # libtool.m4 will add one of these switches to LD
6880
*-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6881
*-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6882
*-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6883
*) libsuff= shlibsuff= libmagic=never-match;;
6887
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6888
shlibpath_overrides_runpath=no
6889
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6890
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6893
# No shared lib support for Linux oldld, aout, or coff.
6894
linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6898
# This must be Linux ELF.
6903
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6904
soname_spec='${libname}${release}.so$major'
6905
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6906
shlibpath_var=LD_LIBRARY_PATH
6907
shlibpath_overrides_runpath=no
6908
# This implies no fast_install, which is unacceptable.
6909
# Some rework will be needed to allow for fast_install
6910
# before this can be enabled.
6911
hardcode_into_libs=yes
6913
# We used to test for /lib/ld.so.1 and disable shared libraries on
6914
# powerpc, because MkLinux only supported shared libraries with the
6915
# GNU dynamic linker. Since this was broken with cross compilers,
6916
# most powerpc-linux boxes support dynamic linking these days and
6917
# people can always --disable-shared, the test was removed, and we
6918
# assume the GNU/Linux dynamic linker is in use.
6919
dynamic_linker='GNU/Linux ld.so'
6921
# Find out which ABI we are using (multilib Linux x86_64 hack).
6925
echo '#line 6925 "configure"' > conftest.$ac_ext
6926
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6927
(eval $ac_compile) 2>&5
6929
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6930
(exit $ac_status); }; then
6931
case `/usr/bin/file conftest.$ac_objext` in
6942
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
6943
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
6950
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6951
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6952
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6953
dynamic_linker='NetBSD (a.out) ld.so'
6955
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6956
soname_spec='${libname}${release}.so$major'
6957
dynamic_linker='NetBSD ld.elf_so'
6959
shlibpath_var=LD_LIBRARY_PATH
6960
shlibpath_overrides_runpath=yes
6961
hardcode_into_libs=yes
6966
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6967
shlibpath_var=LD_LIBRARY_PATH
6968
shlibpath_overrides_runpath=yes
6975
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6977
openbsd2.[89] | openbsd2.[89].*)
6978
shlibpath_overrides_runpath=no
6981
shlibpath_overrides_runpath=yes
6985
shlibpath_overrides_runpath=yes
6987
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6988
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6989
shlibpath_var=LD_LIBRARY_PATH
6993
libname_spec='$name'
6995
library_names_spec='$libname.dll $libname.a'
6996
dynamic_linker='OS/2 ld.exe'
6997
shlibpath_var=LIBPATH
7000
osf3* | osf4* | osf5*)
7003
soname_spec='${libname}${release}.so$major'
7004
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7005
shlibpath_var=LD_LIBRARY_PATH
7006
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7007
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7008
hardcode_into_libs=yes
7013
soname_spec='${libname}${release}.so$major'
7014
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7015
shlibpath_var=LD_LIBRARY_PATH
7022
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7023
soname_spec='${libname}${release}.so$major'
7024
shlibpath_var=LD_LIBRARY_PATH
7025
shlibpath_overrides_runpath=yes
7026
hardcode_into_libs=yes
7027
# ldd complains unless libraries are executable
7028
postinstall_cmds='chmod +x $lib'
7033
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7034
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7035
shlibpath_var=LD_LIBRARY_PATH
7036
shlibpath_overrides_runpath=yes
7037
if test "$with_gnu_ld" = yes; then
7043
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7045
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7046
soname_spec='${libname}${release}.so$major'
7047
shlibpath_var=LD_LIBRARY_PATH
7048
case $host_vendor in
7050
shlibpath_overrides_runpath=no
7052
export_dynamic_flag_spec='${wl}-Blargedynsym'
7053
runpath_var=LD_RUN_PATH
7061
shlibpath_overrides_runpath=no
7062
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7069
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7070
soname_spec='${libname}${release}.so$major'
7071
shlibpath_var=LD_LIBRARY_PATH
7078
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7079
soname_spec='${libname}${release}.so$major'
7080
shlibpath_var=LD_LIBRARY_PATH
7084
if test -d /usr/nec ;then
7086
library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
7087
soname_spec='$libname.so.$major'
7088
shlibpath_var=LD_LIBRARY_PATH
7096
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7097
echo "${ECHO_T}$dynamic_linker" >&6
7098
test "$dynamic_linker" = no && can_build_shared=no
7100
# Report the final consequences.
7101
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
7102
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
7103
echo "$as_me:$LINENO: result: $can_build_shared" >&5
7104
echo "${ECHO_T}$can_build_shared" >&6
7106
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
7107
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
7108
test "$can_build_shared" = "no" && enable_shared=no
7110
# On AIX, shared libraries and static libraries use the same namespace, and
7111
# are all built from PIC.
7114
test "$enable_shared" = yes && enable_static=no
7115
if test -n "$RANLIB"; then
7116
archive_cmds="$archive_cmds~\$RANLIB \$lib"
7117
postinstall_cmds='$RANLIB $lib'
7122
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7123
test "$enable_shared" = yes && enable_static=no
7127
echo "$as_me:$LINENO: result: $enable_shared" >&5
7128
echo "${ECHO_T}$enable_shared" >&6
7130
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
7131
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
7132
# Make sure either enable_shared or enable_static is yes.
7133
test "$enable_shared" = yes || enable_static=yes
7134
echo "$as_me:$LINENO: result: $enable_static" >&5
7135
echo "${ECHO_T}$enable_static" >&6
7137
if test "$hardcode_action" = relink; then
7138
# Fast installation is not supported
7139
enable_fast_install=no
7140
elif test "$shlibpath_overrides_runpath" = yes ||
7141
test "$enable_shared" = no; then
7142
# Fast installation is not necessary
7143
enable_fast_install=needless
7146
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7147
if test "$GCC" = yes; then
7148
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7151
if test "x$enable_dlopen" != xyes; then
7152
enable_dlopen=unknown
7153
enable_dlopen_self=unknown
7154
enable_dlopen_self_static=unknown
7161
lt_cv_dlopen="load_add_on"
7163
lt_cv_dlopen_self=yes
7166
cygwin* | mingw* | pw32*)
7167
lt_cv_dlopen="LoadLibrary"
7172
echo "$as_me:$LINENO: checking for shl_load" >&5
7173
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7174
if test "${ac_cv_func_shl_load+set}" = set; then
7175
echo $ECHO_N "(cached) $ECHO_C" >&6
7177
cat >conftest.$ac_ext <<_ACEOF
7180
cat confdefs.h >>conftest.$ac_ext
7181
cat >>conftest.$ac_ext <<_ACEOF
7182
/* end confdefs.h. */
7183
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7184
For example, HP-UX 11i <limits.h> declares gettimeofday. */
7185
#define shl_load innocuous_shl_load
7187
/* System header to define __stub macros and hopefully few prototypes,
7188
which can conflict with char shl_load (); below.
7189
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7190
<limits.h> exists even on freestanding compilers. */
7193
# include <limits.h>
7195
# include <assert.h>
7200
/* Override any gcc2 internal prototype to avoid an error. */
7205
/* We use char because int might match the return type of a gcc2
7206
builtin and then its argument prototype would still apply. */
7208
/* The GNU C library defines this for functions which it implements
7209
to always fail with ENOSYS. Some functions are actually named
7210
something starting with __ and the normal name is an alias. */
7211
#if defined (__stub_shl_load) || defined (__stub___shl_load)
7214
char (*f) () = shl_load;
7223
return f != shl_load;
7228
rm -f conftest.$ac_objext conftest$ac_exeext
7229
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7230
(eval $ac_link) 2>conftest.er1
7232
grep -v '^ *+' conftest.er1 >conftest.err
7234
cat conftest.err >&5
7235
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236
(exit $ac_status); } &&
7237
{ ac_try='test -z "$ac_c_werror_flag"
7238
|| test ! -s conftest.err'
7239
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7242
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243
(exit $ac_status); }; } &&
7244
{ ac_try='test -s conftest$ac_exeext'
7245
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7248
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249
(exit $ac_status); }; }; then
7250
ac_cv_func_shl_load=yes
7252
echo "$as_me: failed program was:" >&5
7253
sed 's/^/| /' conftest.$ac_ext >&5
7255
ac_cv_func_shl_load=no
7257
rm -f conftest.err conftest.$ac_objext \
7258
conftest$ac_exeext conftest.$ac_ext
7260
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7261
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7262
if test $ac_cv_func_shl_load = yes; then
7263
lt_cv_dlopen="shl_load"
7265
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7266
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7267
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7268
echo $ECHO_N "(cached) $ECHO_C" >&6
7270
ac_check_lib_save_LIBS=$LIBS
7272
cat >conftest.$ac_ext <<_ACEOF
7275
cat confdefs.h >>conftest.$ac_ext
7276
cat >>conftest.$ac_ext <<_ACEOF
7277
/* end confdefs.h. */
7279
/* Override any gcc2 internal prototype to avoid an error. */
7283
/* We use char because int might match the return type of a gcc2
7284
builtin and then its argument prototype would still apply. */
7294
rm -f conftest.$ac_objext conftest$ac_exeext
7295
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7296
(eval $ac_link) 2>conftest.er1
7298
grep -v '^ *+' conftest.er1 >conftest.err
7300
cat conftest.err >&5
7301
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7302
(exit $ac_status); } &&
7303
{ ac_try='test -z "$ac_c_werror_flag"
7304
|| test ! -s conftest.err'
7305
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7308
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7309
(exit $ac_status); }; } &&
7310
{ ac_try='test -s conftest$ac_exeext'
7311
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7314
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7315
(exit $ac_status); }; }; then
7316
ac_cv_lib_dld_shl_load=yes
7318
echo "$as_me: failed program was:" >&5
7319
sed 's/^/| /' conftest.$ac_ext >&5
7321
ac_cv_lib_dld_shl_load=no
7323
rm -f conftest.err conftest.$ac_objext \
7324
conftest$ac_exeext conftest.$ac_ext
7325
LIBS=$ac_check_lib_save_LIBS
7327
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7328
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7329
if test $ac_cv_lib_dld_shl_load = yes; then
7330
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7332
echo "$as_me:$LINENO: checking for dlopen" >&5
7333
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7334
if test "${ac_cv_func_dlopen+set}" = set; then
7335
echo $ECHO_N "(cached) $ECHO_C" >&6
7337
cat >conftest.$ac_ext <<_ACEOF
7340
cat confdefs.h >>conftest.$ac_ext
7341
cat >>conftest.$ac_ext <<_ACEOF
7342
/* end confdefs.h. */
7343
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
7344
For example, HP-UX 11i <limits.h> declares gettimeofday. */
7345
#define dlopen innocuous_dlopen
7347
/* System header to define __stub macros and hopefully few prototypes,
7348
which can conflict with char dlopen (); below.
7349
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7350
<limits.h> exists even on freestanding compilers. */
7353
# include <limits.h>
7355
# include <assert.h>
7360
/* Override any gcc2 internal prototype to avoid an error. */
7365
/* We use char because int might match the return type of a gcc2
7366
builtin and then its argument prototype would still apply. */
7368
/* The GNU C library defines this for functions which it implements
7369
to always fail with ENOSYS. Some functions are actually named
7370
something starting with __ and the normal name is an alias. */
7371
#if defined (__stub_dlopen) || defined (__stub___dlopen)
7374
char (*f) () = dlopen;
7388
rm -f conftest.$ac_objext conftest$ac_exeext
7389
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7390
(eval $ac_link) 2>conftest.er1
7392
grep -v '^ *+' conftest.er1 >conftest.err
7394
cat conftest.err >&5
7395
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396
(exit $ac_status); } &&
7397
{ ac_try='test -z "$ac_c_werror_flag"
7398
|| test ! -s conftest.err'
7399
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7402
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7403
(exit $ac_status); }; } &&
7404
{ ac_try='test -s conftest$ac_exeext'
7405
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7408
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409
(exit $ac_status); }; }; then
7410
ac_cv_func_dlopen=yes
7412
echo "$as_me: failed program was:" >&5
7413
sed 's/^/| /' conftest.$ac_ext >&5
7415
ac_cv_func_dlopen=no
7417
rm -f conftest.err conftest.$ac_objext \
7418
conftest$ac_exeext conftest.$ac_ext
7420
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7421
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7422
if test $ac_cv_func_dlopen = yes; then
7423
lt_cv_dlopen="dlopen"
7425
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7426
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7427
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7428
echo $ECHO_N "(cached) $ECHO_C" >&6
7430
ac_check_lib_save_LIBS=$LIBS
7432
cat >conftest.$ac_ext <<_ACEOF
7435
cat confdefs.h >>conftest.$ac_ext
7436
cat >>conftest.$ac_ext <<_ACEOF
7437
/* end confdefs.h. */
7439
/* Override any gcc2 internal prototype to avoid an error. */
7443
/* We use char because int might match the return type of a gcc2
7444
builtin and then its argument prototype would still apply. */
7454
rm -f conftest.$ac_objext conftest$ac_exeext
7455
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7456
(eval $ac_link) 2>conftest.er1
7458
grep -v '^ *+' conftest.er1 >conftest.err
7460
cat conftest.err >&5
7461
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7462
(exit $ac_status); } &&
7463
{ ac_try='test -z "$ac_c_werror_flag"
7464
|| test ! -s conftest.err'
7465
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7468
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469
(exit $ac_status); }; } &&
7470
{ ac_try='test -s conftest$ac_exeext'
7471
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7474
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475
(exit $ac_status); }; }; then
7476
ac_cv_lib_dl_dlopen=yes
7478
echo "$as_me: failed program was:" >&5
7479
sed 's/^/| /' conftest.$ac_ext >&5
7481
ac_cv_lib_dl_dlopen=no
7483
rm -f conftest.err conftest.$ac_objext \
7484
conftest$ac_exeext conftest.$ac_ext
7485
LIBS=$ac_check_lib_save_LIBS
7487
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7488
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7489
if test $ac_cv_lib_dl_dlopen = yes; then
7490
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7492
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7493
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7494
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7495
echo $ECHO_N "(cached) $ECHO_C" >&6
7497
ac_check_lib_save_LIBS=$LIBS
7499
cat >conftest.$ac_ext <<_ACEOF
7502
cat confdefs.h >>conftest.$ac_ext
7503
cat >>conftest.$ac_ext <<_ACEOF
7504
/* end confdefs.h. */
7506
/* Override any gcc2 internal prototype to avoid an error. */
7510
/* We use char because int might match the return type of a gcc2
7511
builtin and then its argument prototype would still apply. */
7521
rm -f conftest.$ac_objext conftest$ac_exeext
7522
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7523
(eval $ac_link) 2>conftest.er1
7525
grep -v '^ *+' conftest.er1 >conftest.err
7527
cat conftest.err >&5
7528
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7529
(exit $ac_status); } &&
7530
{ ac_try='test -z "$ac_c_werror_flag"
7531
|| test ! -s conftest.err'
7532
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7535
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7536
(exit $ac_status); }; } &&
7537
{ ac_try='test -s conftest$ac_exeext'
7538
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7541
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542
(exit $ac_status); }; }; then
7543
ac_cv_lib_svld_dlopen=yes
7545
echo "$as_me: failed program was:" >&5
7546
sed 's/^/| /' conftest.$ac_ext >&5
7548
ac_cv_lib_svld_dlopen=no
7550
rm -f conftest.err conftest.$ac_objext \
7551
conftest$ac_exeext conftest.$ac_ext
7552
LIBS=$ac_check_lib_save_LIBS
7554
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7555
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7556
if test $ac_cv_lib_svld_dlopen = yes; then
7557
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7559
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7560
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7561
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7562
echo $ECHO_N "(cached) $ECHO_C" >&6
7564
ac_check_lib_save_LIBS=$LIBS
7566
cat >conftest.$ac_ext <<_ACEOF
7569
cat confdefs.h >>conftest.$ac_ext
7570
cat >>conftest.$ac_ext <<_ACEOF
7571
/* end confdefs.h. */
7573
/* Override any gcc2 internal prototype to avoid an error. */
7577
/* We use char because int might match the return type of a gcc2
7578
builtin and then its argument prototype would still apply. */
7588
rm -f conftest.$ac_objext conftest$ac_exeext
7589
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7590
(eval $ac_link) 2>conftest.er1
7592
grep -v '^ *+' conftest.er1 >conftest.err
7594
cat conftest.err >&5
7595
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596
(exit $ac_status); } &&
7597
{ ac_try='test -z "$ac_c_werror_flag"
7598
|| test ! -s conftest.err'
7599
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7602
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7603
(exit $ac_status); }; } &&
7604
{ ac_try='test -s conftest$ac_exeext'
7605
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7608
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7609
(exit $ac_status); }; }; then
7610
ac_cv_lib_dld_dld_link=yes
7612
echo "$as_me: failed program was:" >&5
7613
sed 's/^/| /' conftest.$ac_ext >&5
7615
ac_cv_lib_dld_dld_link=no
7617
rm -f conftest.err conftest.$ac_objext \
7618
conftest$ac_exeext conftest.$ac_ext
7619
LIBS=$ac_check_lib_save_LIBS
7621
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7622
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7623
if test $ac_cv_lib_dld_dld_link = yes; then
7624
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7645
if test "x$lt_cv_dlopen" != xno; then
7651
case $lt_cv_dlopen in
7653
save_CPPFLAGS="$CPPFLAGS"
7654
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7656
save_LDFLAGS="$LDFLAGS"
7657
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7660
LIBS="$lt_cv_dlopen_libs $LIBS"
7662
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7663
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7664
if test "${lt_cv_dlopen_self+set}" = set; then
7665
echo $ECHO_N "(cached) $ECHO_C" >&6
7667
if test "$cross_compiling" = yes; then :
7668
lt_cv_dlopen_self=cross
7670
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7671
lt_status=$lt_dlunknown
7672
cat > conftest.$ac_ext <<EOF
7673
#line 7673 "configure"
7674
#include "confdefs.h"
7683
# define LT_DLGLOBAL RTLD_GLOBAL
7686
# define LT_DLGLOBAL DL_GLOBAL
7688
# define LT_DLGLOBAL 0
7692
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7693
find out it does not work in some platform. */
7694
#ifndef LT_DLLAZY_OR_NOW
7696
# define LT_DLLAZY_OR_NOW RTLD_LAZY
7699
# define LT_DLLAZY_OR_NOW DL_LAZY
7702
# define LT_DLLAZY_OR_NOW RTLD_NOW
7705
# define LT_DLLAZY_OR_NOW DL_NOW
7707
# define LT_DLLAZY_OR_NOW 0
7715
extern "C" void exit (int);
7718
void fnord() { int i=42;}
7721
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7722
int status = $lt_dlunknown;
7726
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7727
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7728
/* dlclose (self); */
7734
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7735
(eval $ac_link) 2>&5
7737
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7738
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7739
(./conftest; exit; ) 2>/dev/null
7742
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7743
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7744
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7747
# compilation failed
7748
lt_cv_dlopen_self=no
7755
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7756
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7758
if test "x$lt_cv_dlopen_self" = xyes; then
7759
LDFLAGS="$LDFLAGS $link_static_flag"
7760
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7761
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7762
if test "${lt_cv_dlopen_self_static+set}" = set; then
7763
echo $ECHO_N "(cached) $ECHO_C" >&6
7765
if test "$cross_compiling" = yes; then :
7766
lt_cv_dlopen_self_static=cross
7768
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7769
lt_status=$lt_dlunknown
7770
cat > conftest.$ac_ext <<EOF
7771
#line 7771 "configure"
7772
#include "confdefs.h"
7781
# define LT_DLGLOBAL RTLD_GLOBAL
7784
# define LT_DLGLOBAL DL_GLOBAL
7786
# define LT_DLGLOBAL 0
7790
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7791
find out it does not work in some platform. */
7792
#ifndef LT_DLLAZY_OR_NOW
7794
# define LT_DLLAZY_OR_NOW RTLD_LAZY
7797
# define LT_DLLAZY_OR_NOW DL_LAZY
7800
# define LT_DLLAZY_OR_NOW RTLD_NOW
7803
# define LT_DLLAZY_OR_NOW DL_NOW
7805
# define LT_DLLAZY_OR_NOW 0
7813
extern "C" void exit (int);
7816
void fnord() { int i=42;}
7819
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7820
int status = $lt_dlunknown;
7824
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7825
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7826
/* dlclose (self); */
7832
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7833
(eval $ac_link) 2>&5
7835
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7836
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7837
(./conftest; exit; ) 2>/dev/null
7840
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7841
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7842
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7845
# compilation failed
7846
lt_cv_dlopen_self_static=no
7853
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7854
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7857
CPPFLAGS="$save_CPPFLAGS"
7858
LDFLAGS="$save_LDFLAGS"
7863
case $lt_cv_dlopen_self in
7864
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7865
*) enable_dlopen_self=unknown ;;
7868
case $lt_cv_dlopen_self_static in
7869
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7870
*) enable_dlopen_self_static=unknown ;;
7875
if test "$enable_shared" = yes && test "$GCC" = yes; then
7876
case $archive_cmds in
7878
# FIXME: we may have to deal with multi-command sequences.
7881
# Test whether the compiler implicitly links with -lc since on some
7882
# systems, -lgcc has to come before -lc. If gcc already passes -lc
7883
# to ld, don't add -lc before -lgcc.
7884
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7885
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7886
if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7887
echo $ECHO_N "(cached) $ECHO_C" >&6
7890
echo 'static int dummy;' > conftest.$ac_ext
7892
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7893
(eval $ac_compile) 2>&5
7895
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7896
(exit $ac_status); }; then
7899
libobjs=conftest.$ac_objext
7901
wl=$lt_cv_prog_cc_wl
7907
save_allow_undefined_flag=$allow_undefined_flag
7908
allow_undefined_flag=
7909
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7910
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7912
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913
(exit $ac_status); }
7915
lt_cv_archive_cmds_need_lc=no
7917
lt_cv_archive_cmds_need_lc=yes
7919
allow_undefined_flag=$save_allow_undefined_flag
7921
cat conftest.err 1>&5
7925
echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
7926
echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7930
need_lc=${lt_cv_archive_cmds_need_lc-yes}
7932
# The second clause should only fire when bootstrapping the
7933
# libtool distribution, otherwise you forgot to ship ltmain.sh
7934
# with your package, and you will get complaints that there are
7935
# no rules to generate ltmain.sh.
7936
if test -f "$ltmain"; then
7939
# If there is no Makefile yet, we rely on a make rule to execute
7940
# `config.status --recheck' to rerun these tests and create the
7941
# libtool script then.
7942
test -f Makefile && make "$ltmain"
7945
if test -f "$ltmain"; then
7946
trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7949
echo creating $ofile
7951
# Now quote all the things that may contain metacharacters while being
7952
# careful not to overquote the AC_SUBSTed values. We take copies of the
7953
# variables and quote the copies for generation of the libtool script.
7954
for var in echo old_CC old_CFLAGS SED \
7955
AR AR_FLAGS CC LD LN_S NM SHELL \
7956
reload_flag reload_cmds wl \
7957
pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7958
thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7959
library_names_spec soname_spec \
7960
RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7961
old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7962
postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7963
old_striplib striplib file_magic_cmd export_symbols_cmds \
7964
deplibs_check_method allow_undefined_flag no_undefined_flag \
7965
finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7966
global_symbol_to_c_name_address \
7967
hardcode_libdir_flag_spec hardcode_libdir_separator \
7968
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7969
compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7972
reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7973
old_postinstall_cmds | old_postuninstall_cmds | \
7974
export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7975
extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7976
postinstall_cmds | postuninstall_cmds | \
7977
finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7978
# Double-quote double-evaled strings.
7979
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7982
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7987
cat <<__EOF__ > "${ofile}T"
7990
# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7991
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7992
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
7994
# Copyright (C) 1996-2000 Free Software Foundation, Inc.
7995
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7997
# This program is free software; you can redistribute it and/or modify
7998
# it under the terms of the GNU General Public License as published by
7999
# the Free Software Foundation; either version 2 of the License, or
8000
# (at your option) any later version.
8002
# This program is distributed in the hope that it will be useful, but
8003
# WITHOUT ANY WARRANTY; without even the implied warranty of
8004
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8005
# General Public License for more details.
8007
# You should have received a copy of the GNU General Public License
8008
# along with this program; if not, write to the Free Software
8009
# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
8011
# As a special exception to the GNU General Public License, if you
8012
# distribute this file as part of a program that contains a
8013
# configuration script generated by Autoconf, you may include it under
8014
# the same distribution terms that you use for the rest of that program.
8016
# A sed that does not truncate output.
8019
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
8020
Xsed="${SED} -e s/^X//"
8022
# The HP-UX ksh and POSIX shell print the target directory to stdout
8024
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8026
# ### BEGIN LIBTOOL CONFIG
8028
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8030
# Shell to use when invoking shell scripts.
8033
# Whether or not to build shared libraries.
8034
build_libtool_libs=$enable_shared
8036
# Whether or not to build static libraries.
8037
build_old_libs=$enable_static
8039
# Whether or not to add -lc for building shared libraries.
8040
build_libtool_need_lc=$need_lc
8042
# Whether or not to optimize for fast installation.
8043
fast_install=$enable_fast_install
8046
host_alias=$host_alias
8049
# An echo program that does not interpret backslashes.
8054
AR_FLAGS=$lt_AR_FLAGS
8056
# The default C compiler.
8059
# Is the compiler the GNU C compiler?
8062
# The linker used to build libraries.
8065
# Whether we need hard or soft links.
8068
# A BSD-compatible nm program.
8071
# A symbol stripping program
8074
# Used to examine libraries when file_magic_cmd begins "file"
8075
MAGIC_CMD=$MAGIC_CMD
8077
# Used on cygwin: DLL creation program.
8080
# Used on cygwin: object dumper.
8083
# Used on cygwin: assembler.
8086
# The name of the directory that contains temporary libtool files.
8089
# How to create reloadable object files.
8090
reload_flag=$lt_reload_flag
8091
reload_cmds=$lt_reload_cmds
8093
# How to pass a linker flag through the compiler.
8096
# Object file suffix (normally "o").
8099
# Old archive suffix (normally "a").
8102
# Executable file suffix (normally "").
8105
# Additional compiler flags for building library objects.
8106
pic_flag=$lt_pic_flag
8109
# Does compiler simultaneously support -c and -o options?
8110
compiler_c_o=$lt_compiler_c_o
8112
# Can we write directly to a .lo ?
8113
compiler_o_lo=$lt_compiler_o_lo
8115
# Must we lock files when doing compilation ?
8116
need_locks=$lt_need_locks
8118
# Do we need the lib prefix for modules?
8119
need_lib_prefix=$need_lib_prefix
8121
# Do we need a version for libraries?
8122
need_version=$need_version
8124
# Whether dlopen is supported.
8125
dlopen_support=$enable_dlopen
8127
# Whether dlopen of programs is supported.
8128
dlopen_self=$enable_dlopen_self
8130
# Whether dlopen of statically linked programs is supported.
8131
dlopen_self_static=$enable_dlopen_self_static
8133
# Compiler flag to prevent dynamic linking.
8134
link_static_flag=$lt_link_static_flag
8136
# Compiler flag to turn off builtin functions.
8137
no_builtin_flag=$lt_no_builtin_flag
8139
# Compiler flag to allow reflexive dlopens.
8140
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8142
# Compiler flag to generate shared objects directly from archives.
8143
whole_archive_flag_spec=$lt_whole_archive_flag_spec
8145
# Compiler flag to generate thread-safe objects.
8146
thread_safe_flag_spec=$lt_thread_safe_flag_spec
8148
# Library versioning type.
8149
version_type=$version_type
8151
# Format of library name prefix.
8152
libname_spec=$lt_libname_spec
8154
# List of archive names. First name is the real one, the rest are links.
8155
# The last name is the one that the linker finds with -lNAME.
8156
library_names_spec=$lt_library_names_spec
8158
# The coded name of the library, if different from the real name.
8159
soname_spec=$lt_soname_spec
8161
# Commands used to build and install an old-style archive.
8163
old_archive_cmds=$lt_old_archive_cmds
8164
old_postinstall_cmds=$lt_old_postinstall_cmds
8165
old_postuninstall_cmds=$lt_old_postuninstall_cmds
8167
# Create an old-style archive from a shared archive.
8168
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8170
# Create a temporary old-style archive to link instead of a shared archive.
8171
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8173
# Commands used to build and install a shared archive.
8174
archive_cmds=$lt_archive_cmds
8175
archive_expsym_cmds=$lt_archive_expsym_cmds
8176
postinstall_cmds=$lt_postinstall_cmds
8177
postuninstall_cmds=$lt_postuninstall_cmds
8179
# Commands to strip libraries.
8180
old_striplib=$lt_old_striplib
8181
striplib=$lt_striplib
8183
# Method to check whether dependent libraries are shared objects.
8184
deplibs_check_method=$lt_deplibs_check_method
8186
# Command to use when deplibs_check_method == file_magic.
8187
file_magic_cmd=$lt_file_magic_cmd
8189
# Flag that allows shared libraries with undefined symbols to be built.
8190
allow_undefined_flag=$lt_allow_undefined_flag
8192
# Flag that forces no undefined symbols.
8193
no_undefined_flag=$lt_no_undefined_flag
8195
# Commands used to finish a libtool library installation in a directory.
8196
finish_cmds=$lt_finish_cmds
8198
# Same as above, but a single script fragment to be evaled but not shown.
8199
finish_eval=$lt_finish_eval
8201
# Take the output of nm and produce a listing of raw symbols and C names.
8202
global_symbol_pipe=$lt_global_symbol_pipe
8204
# Transform the output of nm in a proper C declaration
8205
global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
8207
# Transform the output of nm in a C name address pair
8208
global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
8210
# This is the shared library runtime path variable.
8211
runpath_var=$runpath_var
8213
# This is the shared library path variable.
8214
shlibpath_var=$shlibpath_var
8216
# Is shlibpath searched before the hard-coded library search path?
8217
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8219
# How to hardcode a shared library path into an executable.
8220
hardcode_action=$hardcode_action
8222
# Whether we should hardcode library paths into libraries.
8223
hardcode_into_libs=$hardcode_into_libs
8225
# Flag to hardcode \$libdir into a binary during linking.
8226
# This must work even if \$libdir does not exist.
8227
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8229
# Whether we need a single -rpath flag with a separated argument.
8230
hardcode_libdir_separator=$lt_hardcode_libdir_separator
8232
# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
8234
hardcode_direct=$hardcode_direct
8236
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8238
hardcode_minus_L=$hardcode_minus_L
8240
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8241
# the resulting binary.
8242
hardcode_shlibpath_var=$hardcode_shlibpath_var
8244
# Variables whose values should be saved in libtool wrapper scripts and
8245
# restored at relink time.
8246
variables_saved_for_relink="$variables_saved_for_relink"
8248
# Whether libtool must link a program against all its dependency libraries.
8249
link_all_deplibs=$link_all_deplibs
8251
# Compile-time system search path for libraries
8252
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8254
# Run-time system search path for libraries
8255
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8257
# Fix the shell variable \$srcfile for the compiler.
8258
fix_srcfile_path="$fix_srcfile_path"
8260
# Set to yes if exported symbols are required.
8261
always_export_symbols=$always_export_symbols
8263
# The commands to list exported symbols.
8264
export_symbols_cmds=$lt_export_symbols_cmds
8266
# The commands to extract the exported symbol list from a shared archive.
8267
extract_expsyms_cmds=$lt_extract_expsyms_cmds
8269
# Symbols that should not be listed in the preloaded symbols.
8270
exclude_expsyms=$lt_exclude_expsyms
8272
# Symbols that must always be exported.
8273
include_expsyms=$lt_include_expsyms
8275
# ### END LIBTOOL CONFIG
8281
cat <<\EOF >> "${ofile}T"
8283
# AIX sometimes has problems with the GCC collect2 program. For some
8284
# reason, if we set the COLLECT_NAMES environment variable, the problems
8285
# vanish in a puff of smoke.
8286
if test "X${COLLECT_NAMES+set}" != Xset; then
8288
export COLLECT_NAMES
8295
cygwin* | mingw* | pw32* | os2*)
8296
cat <<'EOF' >> "${ofile}T"
8297
# This is a source program that is used to create dlls on Windows
8298
# Don't remove nor modify the starting and closing comments
8299
# /* ltdll.c starts here */
8300
# #define WIN32_LEAN_AND_MEAN
8301
# #include <windows.h>
8302
# #undef WIN32_LEAN_AND_MEAN
8303
# #include <stdio.h>
8305
# #ifndef __CYGWIN__
8306
# # ifdef __CYGWIN32__
8307
# # define __CYGWIN__ __CYGWIN32__
8311
# #ifdef __cplusplus
8314
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
8315
# #ifdef __cplusplus
8320
# #include <cygwin/cygwin_dll.h>
8321
# DECLARE_CYGWIN_DLL( DllMain );
8323
# HINSTANCE __hDllInstance_base;
8326
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8328
# __hDllInstance_base = hInst;
8331
# /* ltdll.c ends here */
8332
# This is a source program that is used to create import libraries
8333
# on Windows for dlls which lack them. Don't remove nor modify the
8334
# starting and closing comments
8335
# /* impgen.c starts here */
8336
# /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
8338
# This file is part of GNU libtool.
8340
# This program is free software; you can redistribute it and/or modify
8341
# it under the terms of the GNU General Public License as published by
8342
# the Free Software Foundation; either version 2 of the License, or
8343
# (at your option) any later version.
8345
# This program is distributed in the hope that it will be useful,
8346
# but WITHOUT ANY WARRANTY; without even the implied warranty of
8347
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8348
# GNU General Public License for more details.
8350
# You should have received a copy of the GNU General Public License
8351
# along with this program; if not, write to the Free Software
8352
# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
8355
# #include <stdio.h> /* for printf() */
8356
# #include <unistd.h> /* for open(), lseek(), read() */
8357
# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
8358
# #include <string.h> /* for strdup() */
8360
# /* O_BINARY isn't required (or even defined sometimes) under Unix */
8362
# #define O_BINARY 0
8365
# static unsigned int
8366
# pe_get16 (fd, offset)
8370
# unsigned char b[2];
8371
# lseek (fd, offset, SEEK_SET);
8373
# return b[0] + (b[1]<<8);
8376
# static unsigned int
8377
# pe_get32 (fd, offset)
8381
# unsigned char b[4];
8382
# lseek (fd, offset, SEEK_SET);
8384
# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8387
# static unsigned int
8391
# unsigned char *b = ptr;
8392
# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8401
# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8402
# unsigned long export_rva, export_size, nsections, secptr, expptr;
8403
# unsigned long name_rvas, nexp;
8404
# unsigned char *expdata, *erva;
8405
# char *filename, *dll_name;
8407
# filename = argv[1];
8409
# dll = open(filename, O_RDONLY|O_BINARY);
8413
# dll_name = filename;
8415
# for (i=0; filename[i]; i++)
8416
# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
8417
# dll_name = filename + i +1;
8419
# pe_header_offset = pe_get32 (dll, 0x3c);
8420
# opthdr_ofs = pe_header_offset + 4 + 20;
8421
# num_entries = pe_get32 (dll, opthdr_ofs + 92);
8423
# if (num_entries < 1) /* no exports */
8426
# export_rva = pe_get32 (dll, opthdr_ofs + 96);
8427
# export_size = pe_get32 (dll, opthdr_ofs + 100);
8428
# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8429
# secptr = (pe_header_offset + 4 + 20 +
8430
# pe_get16 (dll, pe_header_offset + 4 + 16));
8433
# for (i = 0; i < nsections; i++)
8436
# unsigned long secptr1 = secptr + 40 * i;
8437
# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8438
# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8439
# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8440
# lseek(dll, secptr1, SEEK_SET);
8441
# read(dll, sname, 8);
8442
# if (vaddr <= export_rva && vaddr+vsize > export_rva)
8444
# expptr = fptr + (export_rva - vaddr);
8445
# if (export_rva + export_size > vaddr + vsize)
8446
# export_size = vsize - (export_rva - vaddr);
8451
# expdata = (unsigned char*)malloc(export_size);
8452
# lseek (dll, expptr, SEEK_SET);
8453
# read (dll, expdata, export_size);
8454
# erva = expdata - export_rva;
8456
# nexp = pe_as32 (expdata+24);
8457
# name_rvas = pe_as32 (expdata+32);
8459
# printf ("EXPORTS\n");
8460
# for (i = 0; i<nexp; i++)
8462
# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8463
# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8468
# /* impgen.c ends here */
8474
# We use sed instead of cat because bash on DJGPP gets confused if
8475
# if finds mixed CR/LF and LF-only lines. Since sed operates in
8476
# text mode, it properly converts lines to CR/LF. This bash problem
8477
# is reportedly fixed, but why not run on old versions too?
8478
sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8480
mv -f "${ofile}T" "$ofile" || \
8481
(rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8489
# This can be used to rebuild libtool when needed
8490
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8492
# Always use our own libtool.
8493
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8495
# Prevent multiple expansion
8501
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8502
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8503
if test "${ac_cv_c_const+set}" = set; then
8504
echo $ECHO_N "(cached) $ECHO_C" >&6
8506
cat >conftest.$ac_ext <<_ACEOF
8509
cat confdefs.h >>conftest.$ac_ext
8510
cat >>conftest.$ac_ext <<_ACEOF
8511
/* end confdefs.h. */
8516
/* FIXME: Include the comments suggested by Paul. */
8518
/* Ultrix mips cc rejects this. */
8519
typedef int charset[2];
8521
/* SunOS 4.1.1 cc rejects this. */
8522
char const *const *ccp;
8524
/* NEC SVR4.0.2 mips cc rejects this. */
8525
struct point {int x, y;};
8526
static struct point const zero = {0,0};
8527
/* AIX XL C 1.02.0.0 rejects this.
8528
It does not let you subtract one const X* pointer from another in
8529
an arm of an if-expression whose if-part is not a constant
8531
const char *g = "string";
8532
ccp = &g + (g ? g-g : 0);
8533
/* HPUX 7.0 cc rejects these. */
8536
ccp = (char const *const *) p;
8537
{ /* SCO 3.2v4 cc rejects this. */
8539
char const *s = 0 ? (char *) 0 : (char const *) 0;
8543
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8545
const int *foo = &x[0];
8548
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8549
typedef const int *iptr;
8553
{ /* AIX XL C 1.02.0.0 rejects this saying
8554
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8555
struct s { int j; const int *ap[3]; };
8556
struct s *b; b->j = 5;
8558
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8567
rm -f conftest.$ac_objext
8568
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8569
(eval $ac_compile) 2>conftest.er1
8571
grep -v '^ *+' conftest.er1 >conftest.err
8573
cat conftest.err >&5
8574
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8575
(exit $ac_status); } &&
8576
{ ac_try='test -z "$ac_c_werror_flag"
8577
|| test ! -s conftest.err'
8578
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8581
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8582
(exit $ac_status); }; } &&
8583
{ ac_try='test -s conftest.$ac_objext'
8584
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8587
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8588
(exit $ac_status); }; }; then
8591
echo "$as_me: failed program was:" >&5
8592
sed 's/^/| /' conftest.$ac_ext >&5
8596
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8598
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8599
echo "${ECHO_T}$ac_cv_c_const" >&6
8600
if test $ac_cv_c_const = no; then
8602
cat >>confdefs.h <<\_ACEOF
8609
# Find a good install program. We prefer a C program (faster),
8610
# so one script is as good as another. But avoid the broken or
8611
# incompatible versions:
8612
# SysV /etc/install, /usr/sbin/install
8613
# SunOS /usr/etc/install
8614
# IRIX /sbin/install
8616
# AmigaOS /C/install, which installs bootblocks on floppy discs
8617
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8618
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8619
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8620
# OS/2's system install, which has a completely different semantic
8621
# ./install, which can be erroneously created by make from ./install.sh.
8622
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8623
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
8624
if test -z "$INSTALL"; then
8625
if test "${ac_cv_path_install+set}" = set; then
8626
echo $ECHO_N "(cached) $ECHO_C" >&6
8628
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8632
test -z "$as_dir" && as_dir=.
8633
# Account for people who put trailing slashes in PATH elements.
8635
./ | .// | /cC/* | \
8636
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8637
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8640
# OSF1 and SCO ODT 3.0 have their own names for install.
8641
# Don't use installbsd from OSF since it installs stuff as root
8643
for ac_prog in ginstall scoinst install; do
8644
for ac_exec_ext in '' $ac_executable_extensions; do
8645
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8646
if test $ac_prog = install &&
8647
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8648
# AIX install. It has an incompatible calling convention.
8650
elif test $ac_prog = install &&
8651
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8652
# program-specific install script used by HP pwplus--don't use.
8655
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8667
if test "${ac_cv_path_install+set}" = set; then
8668
INSTALL=$ac_cv_path_install
8670
# As a last resort, use the slow shell script. We don't cache a
8671
# path for INSTALL within a source directory, because that will
8672
# break other packages using the cache if that directory is
8673
# removed, or if the path is relative.
8674
INSTALL=$ac_install_sh
8677
echo "$as_me:$LINENO: result: $INSTALL" >&5
8678
echo "${ECHO_T}$INSTALL" >&6
8680
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8681
# It thinks the first close brace ends the variable substitution.
8682
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8684
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8686
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8689
ac_config_files="$ac_config_files Makefile libmathhelper/Makefile testsuite/Makefile testsuite/mathhelper/Makefile"
8691
cat >confcache <<\_ACEOF
8692
# This file is a shell script that caches the results of configure
8693
# tests run on this system so they can be shared between configure
8694
# scripts and configure runs, see configure's option --config-cache.
8695
# It is not useful on other systems. If it contains results you don't
8696
# want to keep, you may remove or edit it.
8698
# config.status only pays attention to the cache file if you give it
8699
# the --recheck option to rerun configure.
8701
# `ac_cv_env_foo' variables (set or unset) will be overridden when
8702
# loading this file, other *unset* `ac_cv_foo' will be assigned the
8707
# The following way of writing the cache mishandles newlines in values,
8708
# but we know of no workaround that is simple, portable, and efficient.
8709
# So, don't put newlines in cache variables' values.
8710
# Ultrix sh set writes to stderr and can't be redirected directly,
8711
# and sets the high bit in the cache file unless we assign to the vars.
8714
case `(ac_space=' '; set | grep ac_space) 2>&1` in
8716
# `set' does not quote correctly, so add quotes (double-quote
8717
# substitution turns \\\\ into \\, and sed turns \\ into \).
8720
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8723
# `set' quotes correctly as required by POSIX, so do not add quotes.
8725
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8732
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8734
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8736
if diff $cache_file confcache >/dev/null 2>&1; then :; else
8737
if test -w $cache_file; then
8738
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8739
cat confcache >$cache_file
8741
echo "not updating unwritable cache $cache_file"
8746
test "x$prefix" = xNONE && prefix=$ac_default_prefix
8747
# Let make expand exec_prefix.
8748
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8750
# VPATH may cause trouble with some makes, so we remove $(srcdir),
8751
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8752
# trailing colons and then remove the whole line if VPATH becomes empty
8753
# (actually we leave an empty line to preserve line numbers).
8754
if test "x$srcdir" = x.; then
8755
ac_vpsub='/^[ ]*VPATH[ ]*=/{
8756
s/:*\$(srcdir):*/:/;
8757
s/:*\${srcdir}:*/:/;
8759
s/^\([^=]*=[ ]*\):*/\1/;
8765
# Transform confdefs.h into DEFS.
8766
# Protect against shell expansion while executing Makefile rules.
8767
# Protect against Makefile macro expansion.
8769
# If the first sed substitution is executed (which looks for macros that
8770
# take arguments), then we branch to the quote section. Otherwise,
8771
# look for a macro that doesn't take arguments.
8772
cat >confdef2opt.sed <<\_ACEOF
8775
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
8777
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
8781
s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
8787
# We use echo to avoid assuming a particular line-breaking character.
8788
# The extra dot is to prevent the shell from consuming trailing
8789
# line-breaks from the sub-command output. A line-break within
8790
# single-quotes doesn't work because, if this script is created in a
8791
# platform that uses two characters for line-breaks (e.g., DOS), tr
8793
ac_LF_and_DOT=`echo; echo .`
8794
DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
8795
rm -f confdef2opt.sed
8800
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8801
# 1. Remove the extension, and $U if already installed.
8802
ac_i=`echo "$ac_i" |
8803
sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8805
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8806
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8810
LTLIBOBJS=$ac_ltlibobjs
8813
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8814
{ { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
8815
Usually this means the macro was only invoked conditionally." >&5
8816
echo "$as_me: error: conditional \"AMDEP\" was never defined.
8817
Usually this means the macro was only invoked conditionally." >&2;}
8818
{ (exit 1); exit 1; }; }
8820
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8821
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
8822
Usually this means the macro was only invoked conditionally." >&5
8823
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
8824
Usually this means the macro was only invoked conditionally." >&2;}
8825
{ (exit 1); exit 1; }; }
8827
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
8828
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
8829
Usually this means the macro was only invoked conditionally." >&5
8830
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
8831
Usually this means the macro was only invoked conditionally." >&2;}
8832
{ (exit 1); exit 1; }; }
8835
: ${CONFIG_STATUS=./config.status}
8836
ac_clean_files_save=$ac_clean_files
8837
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8838
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8839
echo "$as_me: creating $CONFIG_STATUS" >&6;}
8840
cat >$CONFIG_STATUS <<_ACEOF
8842
# Generated by $as_me.
8843
# Run this file to recreate the current configuration.
8844
# Compiler output produced by configure, useful for debugging
8845
# configure, is in config.log if it exists.
8850
SHELL=\${CONFIG_SHELL-$SHELL}
8853
cat >>$CONFIG_STATUS <<\_ACEOF
8854
## --------------------- ##
8855
## M4sh Initialization. ##
8856
## --------------------- ##
8858
# Be Bourne compatible
8859
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8862
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8863
# is contrary to our usage. Disable this feature.
8864
alias -g '${1+"$@"}'='"$@"'
8865
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8868
DUALCASE=1; export DUALCASE # for MKS sh
8870
# Support unset when possible.
8871
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8878
# Work around bugs in pre-3.0 UWIN ksh.
8879
$as_unset ENV MAIL MAILPATH
8886
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8887
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8888
LC_TELEPHONE LC_TIME
8890
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8891
eval $as_var=C; export $as_var
8897
# Required to use basename.
8898
if expr a : '\(a\)' >/dev/null 2>&1; then
8904
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
8905
as_basename=basename
8911
# Name of the executable.
8912
as_me=`$as_basename "$0" ||
8913
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8914
X"$0" : 'X\(//\)$' \| \
8915
X"$0" : 'X\(/\)$' \| \
8916
. : '\(.\)' 2>/dev/null ||
8918
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8919
/^X\/\(\/\/\)$/{ s//\1/; q; }
8920
/^X\/\(\/\).*/{ s//\1/; q; }
8924
# PATH needs CR, and LINENO needs CR and PATH.
8925
# Avoid depending upon Character Ranges.
8926
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8927
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8928
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8929
as_cr_digits='0123456789'
8930
as_cr_alnum=$as_cr_Letters$as_cr_digits
8932
# The user is always right.
8933
if test "${PATH_SEPARATOR+set}" != set; then
8934
echo "#! /bin/sh" >conf$$.sh
8935
echo "exit 0" >>conf$$.sh
8937
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8948
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8949
test "x$as_lineno_1" != "x$as_lineno_2" &&
8950
test "x$as_lineno_3" = "x$as_lineno_2" || {
8951
# Find who we are. Look in the path if we contain no path at all
8954
*[\\/]* ) as_myself=$0 ;;
8955
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8959
test -z "$as_dir" && as_dir=.
8960
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8965
# We did not find ourselves, most probably we were run as `sh COMMAND'
8966
# in which case we are not to be found in the path.
8967
if test "x$as_myself" = x; then
8970
if test ! -f "$as_myself"; then
8971
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8972
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8973
{ (exit 1); exit 1; }; }
8975
case $CONFIG_SHELL in
8977
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8978
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
8981
test -z "$as_dir" && as_dir=.
8982
for as_base in sh bash ksh sh5; do
8985
if ("$as_dir/$as_base" -c '
8988
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8989
test "x$as_lineno_1" != "x$as_lineno_2" &&
8990
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
8991
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
8992
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
8993
CONFIG_SHELL=$as_dir/$as_base
8995
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9003
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9004
# uniformly replaced by the line number. The first 'sed' inserts a
9005
# line-number line before each line; the second 'sed' does the real
9006
# work. The second script uses 'N' to pair each line-number line
9007
# with the numbered line, and appends trailing '-' during
9008
# substitution so that $LINENO is not a special case at line end.
9009
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9010
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9011
sed '=' <$as_myself |
9016
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9019
s,^['$as_cr_digits']*\n,,
9021
chmod +x $as_me.lineno ||
9022
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9023
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9024
{ (exit 1); exit 1; }; }
9026
# Don't try to exec as it changes $[0], causing all sort of problems
9027
# (the dirname of $[0] is not the place where we might find the
9028
# original and so on. Autoconf is especially sensible to this).
9030
# Exit status is that of the last command.
9035
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9036
*c*,-n*) ECHO_N= ECHO_C='
9038
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9039
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9042
if expr a : '\(a\)' >/dev/null 2>&1; then
9048
rm -f conf$$ conf$$.exe conf$$.file
9050
if ln -s conf$$.file conf$$ 2>/dev/null; then
9051
# We could just check for DJGPP; but this test a) works b) is more generic
9052
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9053
if test -f conf$$.exe; then
9054
# Don't use ln at all; we don't have any links
9059
elif ln conf$$.file conf$$ 2>/dev/null; then
9064
rm -f conf$$ conf$$.exe conf$$.file
9066
if mkdir -p . 2>/dev/null; then
9069
test -d ./-p && rmdir ./-p
9073
as_executable_p="test -f"
9075
# Sed expression to map a string onto a valid CPP name.
9076
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9078
# Sed expression to map a string onto a valid variable name.
9079
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9083
# We need space, tab and new line, in precisely that order.
9093
# Open the log real soon, to keep \$[0] and so on meaningful, and to
9094
# report actual input values of CONFIG_FILES etc. instead of their
9095
# values after options handling. Logging --version etc. is OK.
9099
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9100
## Running $as_me. ##
9105
This file was extended by $as_me, which was
9106
generated by GNU Autoconf 2.59. Invocation command line was
9108
CONFIG_FILES = $CONFIG_FILES
9109
CONFIG_HEADERS = $CONFIG_HEADERS
9110
CONFIG_LINKS = $CONFIG_LINKS
9111
CONFIG_COMMANDS = $CONFIG_COMMANDS
9115
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9119
# Files that config.status was made for.
9120
if test -n "$ac_config_files"; then
9121
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9124
if test -n "$ac_config_headers"; then
9125
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9128
if test -n "$ac_config_links"; then
9129
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9132
if test -n "$ac_config_commands"; then
9133
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9136
cat >>$CONFIG_STATUS <<\_ACEOF
9139
\`$as_me' instantiates files from templates according to the
9140
current configuration.
9142
Usage: $0 [OPTIONS] [FILE]...
9144
-h, --help print this help, then exit
9145
-V, --version print version number, then exit
9146
-q, --quiet do not print progress messages
9147
-d, --debug don't remove temporary files
9148
--recheck update $as_me by reconfiguring in the same conditions
9149
--file=FILE[:TEMPLATE]
9150
instantiate the configuration file FILE
9152
Configuration files:
9155
Configuration commands:
9158
Report bugs to <bug-autoconf@gnu.org>."
9161
cat >>$CONFIG_STATUS <<_ACEOF
9164
configured by $0, generated by GNU Autoconf 2.59,
9165
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9167
Copyright (C) 2003 Free Software Foundation, Inc.
9168
This config.status script is free software; the Free Software Foundation
9169
gives unlimited permission to copy, distribute and modify it."
9174
cat >>$CONFIG_STATUS <<\_ACEOF
9175
# If no file are specified by the user, then we need to provide default
9176
# value. By we need to know if files were specified by the user.
9182
ac_option=`expr "x$1" : 'x\([^=]*\)='`
9183
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9191
*) # This is not an option, so the user has probably given explicit
9194
ac_need_defaults=false;;
9198
# Handling of the options.
9200
cat >>$CONFIG_STATUS <<\_ACEOF
9201
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9203
--version | --vers* | -V )
9204
echo "$ac_cs_version"; exit 0 ;;
9206
# Conflict between --help and --header
9207
{ { echo "$as_me:$LINENO: error: ambiguous option: $1
9208
Try \`$0 --help' for more information." >&5
9209
echo "$as_me: error: ambiguous option: $1
9210
Try \`$0 --help' for more information." >&2;}
9211
{ (exit 1); exit 1; }; };;
9212
--help | --hel | -h )
9213
echo "$ac_cs_usage"; exit 0 ;;
9214
--debug | --d* | -d )
9216
--file | --fil | --fi | --f )
9218
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9219
ac_need_defaults=false;;
9220
--header | --heade | --head | --hea )
9222
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9223
ac_need_defaults=false;;
9224
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
9225
| -silent | --silent | --silen | --sile | --sil | --si | --s)
9229
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9230
Try \`$0 --help' for more information." >&5
9231
echo "$as_me: error: unrecognized option: $1
9232
Try \`$0 --help' for more information." >&2;}
9233
{ (exit 1); exit 1; }; } ;;
9235
*) ac_config_targets="$ac_config_targets $1" ;;
9241
ac_configure_extra_args=
9243
if $ac_cs_silent; then
9245
ac_configure_extra_args="$ac_configure_extra_args --silent"
9249
cat >>$CONFIG_STATUS <<_ACEOF
9250
if \$ac_cs_recheck; then
9251
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9252
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9257
cat >>$CONFIG_STATUS <<_ACEOF
9259
# INIT-COMMANDS section.
9262
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9268
cat >>$CONFIG_STATUS <<\_ACEOF
9269
for ac_config_target in $ac_config_targets
9271
case "$ac_config_target" in
9272
# Handling of arguments.
9273
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9274
"libmathhelper/Makefile" ) CONFIG_FILES="$CONFIG_FILES libmathhelper/Makefile" ;;
9275
"testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
9276
"testsuite/mathhelper/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/mathhelper/Makefile" ;;
9277
"depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9278
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9279
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9280
{ (exit 1); exit 1; }; };;
9284
# If the user did not use the arguments to specify the items to instantiate,
9285
# then the envvar interface is used. Set only those that are not.
9286
# We use the long form for the default assignment because of an extremely
9287
# bizarre bug on SunOS 4.1.3.
9288
if $ac_need_defaults; then
9289
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9290
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9293
# Have a temporary directory for convenience. Make it in the build tree
9294
# simply because there is no reason to put it here, and in addition,
9295
# creating and moving files from /tmp can sometimes cause problems.
9296
# Create a temporary directory, and hook for its removal unless debugging.
9299
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9300
trap '{ (exit 1); exit 1; }' 1 2 13 15
9303
# Create a (secure) tmp directory for tmp files.
9306
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9307
test -n "$tmp" && test -d "$tmp"
9310
tmp=./confstat$$-$RANDOM
9311
(umask 077 && mkdir $tmp)
9314
echo "$me: cannot create a temporary directory in ." >&2
9315
{ (exit 1); exit 1; }
9320
cat >>$CONFIG_STATUS <<_ACEOF
9323
# CONFIG_FILES section.
9326
# No need to generate the scripts if there are no CONFIG_FILES.
9327
# This happens for instance when ./config.status config.h
9328
if test -n "\$CONFIG_FILES"; then
9329
# Protect against being on the right side of a sed subst in config.status.
9330
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9331
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9332
s,@SHELL@,$SHELL,;t t
9333
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9334
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9335
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9336
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9337
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9338
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9339
s,@exec_prefix@,$exec_prefix,;t t
9340
s,@prefix@,$prefix,;t t
9341
s,@program_transform_name@,$program_transform_name,;t t
9342
s,@bindir@,$bindir,;t t
9343
s,@sbindir@,$sbindir,;t t
9344
s,@libexecdir@,$libexecdir,;t t
9345
s,@datadir@,$datadir,;t t
9346
s,@sysconfdir@,$sysconfdir,;t t
9347
s,@sharedstatedir@,$sharedstatedir,;t t
9348
s,@localstatedir@,$localstatedir,;t t
9349
s,@libdir@,$libdir,;t t
9350
s,@includedir@,$includedir,;t t
9351
s,@oldincludedir@,$oldincludedir,;t t
9352
s,@infodir@,$infodir,;t t
9353
s,@mandir@,$mandir,;t t
9354
s,@build_alias@,$build_alias,;t t
9355
s,@host_alias@,$host_alias,;t t
9356
s,@target_alias@,$target_alias,;t t
9358
s,@ECHO_C@,$ECHO_C,;t t
9359
s,@ECHO_N@,$ECHO_N,;t t
9360
s,@ECHO_T@,$ECHO_T,;t t
9362
s,@build@,$build,;t t
9363
s,@build_cpu@,$build_cpu,;t t
9364
s,@build_vendor@,$build_vendor,;t t
9365
s,@build_os@,$build_os,;t t
9367
s,@host_cpu@,$host_cpu,;t t
9368
s,@host_vendor@,$host_vendor,;t t
9369
s,@host_os@,$host_os,;t t
9370
s,@target@,$target,;t t
9371
s,@target_cpu@,$target_cpu,;t t
9372
s,@target_vendor@,$target_vendor,;t t
9373
s,@target_os@,$target_os,;t t
9374
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9375
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9376
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9377
s,@CYGPATH_W@,$CYGPATH_W,;t t
9378
s,@PACKAGE@,$PACKAGE,;t t
9379
s,@VERSION@,$VERSION,;t t
9380
s,@ACLOCAL@,$ACLOCAL,;t t
9381
s,@AUTOCONF@,$AUTOCONF,;t t
9382
s,@AUTOMAKE@,$AUTOMAKE,;t t
9383
s,@AUTOHEADER@,$AUTOHEADER,;t t
9384
s,@MAKEINFO@,$MAKEINFO,;t t
9385
s,@AMTAR@,$AMTAR,;t t
9386
s,@install_sh@,$install_sh,;t t
9387
s,@STRIP@,$STRIP,;t t
9388
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
9389
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
9391
s,@SET_MAKE@,$SET_MAKE,;t t
9392
s,@am__leading_dot@,$am__leading_dot,;t t
9394
s,@CFLAGS@,$CFLAGS,;t t
9395
s,@LDFLAGS@,$LDFLAGS,;t t
9396
s,@CPPFLAGS@,$CPPFLAGS,;t t
9397
s,@ac_ct_CC@,$ac_ct_CC,;t t
9398
s,@EXEEXT@,$EXEEXT,;t t
9399
s,@OBJEXT@,$OBJEXT,;t t
9400
s,@DEPDIR@,$DEPDIR,;t t
9401
s,@am__include@,$am__include,;t t
9402
s,@am__quote@,$am__quote,;t t
9403
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
9404
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
9405
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
9406
s,@CCDEPMODE@,$CCDEPMODE,;t t
9407
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
9408
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
9410
s,@CXXFLAGS@,$CXXFLAGS,;t t
9411
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
9412
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
9413
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
9414
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
9417
s,@RANLIB@,$RANLIB,;t t
9418
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9420
s,@EGREP@,$EGREP,;t t
9421
s,@LIBTOOL@,$LIBTOOL,;t t
9422
s,@LIBOBJS@,$LIBOBJS,;t t
9423
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9428
cat >>$CONFIG_STATUS <<\_ACEOF
9429
# Split the substitutions into bite-sized pieces for seds with
9430
# small command number limits, like on Digital OSF/1 and HP-UX.
9432
ac_sed_frag=1 # Number of current file.
9433
ac_beg=1 # First line for current file.
9434
ac_end=$ac_max_sed_lines # Line after last line for current file.
9437
while $ac_more_lines; do
9438
if test $ac_beg -gt 1; then
9439
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9441
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9443
if test ! -s $tmp/subs.frag; then
9446
# The purpose of the label and of the branching condition is to
9447
# speed up the sed processing (if there are no `@' at all, there
9448
# is no need to browse any of the substitutions).
9449
# These are the two extra sed commands mentioned above.
9451
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9452
if test -z "$ac_sed_cmds"; then
9453
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9455
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9457
ac_sed_frag=`expr $ac_sed_frag + 1`
9459
ac_end=`expr $ac_end + $ac_max_sed_lines`
9462
if test -z "$ac_sed_cmds"; then
9465
fi # test -n "$CONFIG_FILES"
9468
cat >>$CONFIG_STATUS <<\_ACEOF
9469
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9470
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9472
- | *:- | *:-:* ) # input from stdin
9474
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9475
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9476
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9477
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9478
* ) ac_file_in=$ac_file.in ;;
9481
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9482
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9483
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9484
X"$ac_file" : 'X\(//\)[^/]' \| \
9485
X"$ac_file" : 'X\(//\)$' \| \
9486
X"$ac_file" : 'X\(/\)' \| \
9487
. : '\(.\)' 2>/dev/null ||
9489
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9490
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
9491
/^X\(\/\/\)$/{ s//\1/; q; }
9492
/^X\(\/\).*/{ s//\1/; q; }
9494
{ if $as_mkdir_p; then
9499
while test ! -d "$as_dir"; do
9500
as_dirs="$as_dir $as_dirs"
9501
as_dir=`(dirname "$as_dir") 2>/dev/null ||
9502
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9503
X"$as_dir" : 'X\(//\)[^/]' \| \
9504
X"$as_dir" : 'X\(//\)$' \| \
9505
X"$as_dir" : 'X\(/\)' \| \
9506
. : '\(.\)' 2>/dev/null ||
9508
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9509
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
9510
/^X\(\/\/\)$/{ s//\1/; q; }
9511
/^X\(\/\).*/{ s//\1/; q; }
9514
test ! -n "$as_dirs" || mkdir $as_dirs
9515
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9516
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9517
{ (exit 1); exit 1; }; }; }
9521
if test "$ac_dir" != .; then
9522
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9523
# A "../" for each directory in $ac_dir_suffix.
9524
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9526
ac_dir_suffix= ac_top_builddir=
9530
.) # No --srcdir option. We are building in place.
9532
if test -z "$ac_top_builddir"; then
9535
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9537
[\\/]* | ?:[\\/]* ) # Absolute path.
9538
ac_srcdir=$srcdir$ac_dir_suffix;
9539
ac_top_srcdir=$srcdir ;;
9541
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9542
ac_top_srcdir=$ac_top_builddir$srcdir ;;
9545
# Do not use `cd foo && pwd` to compute absolute paths, because
9546
# the directories may not exist.
9548
.) ac_abs_builddir="$ac_dir";;
9551
.) ac_abs_builddir=`pwd`;;
9552
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9553
*) ac_abs_builddir=`pwd`/"$ac_dir";;
9556
case $ac_abs_builddir in
9557
.) ac_abs_top_builddir=${ac_top_builddir}.;;
9559
case ${ac_top_builddir}. in
9560
.) ac_abs_top_builddir=$ac_abs_builddir;;
9561
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9562
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9565
case $ac_abs_builddir in
9566
.) ac_abs_srcdir=$ac_srcdir;;
9569
.) ac_abs_srcdir=$ac_abs_builddir;;
9570
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9571
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9574
case $ac_abs_builddir in
9575
.) ac_abs_top_srcdir=$ac_top_srcdir;;
9577
case $ac_top_srcdir in
9578
.) ac_abs_top_srcdir=$ac_abs_builddir;;
9579
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9580
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9586
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9587
*) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9590
if test x"$ac_file" != x-; then
9591
{ echo "$as_me:$LINENO: creating $ac_file" >&5
9592
echo "$as_me: creating $ac_file" >&6;}
9595
# Let's still pretend it is `configure' which instantiates (i.e., don't
9596
# use $as_me), people would be surprised to read:
9597
# /* config.h. Generated by config.status. */
9598
if test x"$ac_file" = x-; then
9601
configure_input="$ac_file. "
9603
configure_input=$configure_input"Generated from `echo $ac_file_in |
9604
sed 's,.*/,,'` by configure."
9606
# First look for the input files in the build tree, otherwise in the
9608
ac_file_inputs=`IFS=:
9609
for f in $ac_file_in; do
9611
-) echo $tmp/stdin ;;
9613
# Absolute (can't be DOS-style, as IFS=:)
9614
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9615
echo "$as_me: error: cannot find input file: $f" >&2;}
9616
{ (exit 1); exit 1; }; }
9619
if test -f "$f"; then
9622
elif test -f "$srcdir/$f"; then
9627
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9628
echo "$as_me: error: cannot find input file: $f" >&2;}
9629
{ (exit 1); exit 1; }; }
9632
done` || { (exit 1); exit 1; }
9634
cat >>$CONFIG_STATUS <<_ACEOF
9638
cat >>$CONFIG_STATUS <<\_ACEOF
9640
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9641
s,@configure_input@,$configure_input,;t t
9642
s,@srcdir@,$ac_srcdir,;t t
9643
s,@abs_srcdir@,$ac_abs_srcdir,;t t
9644
s,@top_srcdir@,$ac_top_srcdir,;t t
9645
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9646
s,@builddir@,$ac_builddir,;t t
9647
s,@abs_builddir@,$ac_abs_builddir,;t t
9648
s,@top_builddir@,$ac_top_builddir,;t t
9649
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9650
s,@INSTALL@,$ac_INSTALL,;t t
9651
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9653
if test x"$ac_file" != x-; then
9654
mv $tmp/out $ac_file
9662
cat >>$CONFIG_STATUS <<\_ACEOF
9665
# CONFIG_COMMANDS section.
9667
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
9668
ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9669
ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9670
ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
9671
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9672
X"$ac_dest" : 'X\(//\)[^/]' \| \
9673
X"$ac_dest" : 'X\(//\)$' \| \
9674
X"$ac_dest" : 'X\(/\)' \| \
9675
. : '\(.\)' 2>/dev/null ||
9677
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9678
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
9679
/^X\(\/\/\)$/{ s//\1/; q; }
9680
/^X\(\/\).*/{ s//\1/; q; }
9682
{ if $as_mkdir_p; then
9687
while test ! -d "$as_dir"; do
9688
as_dirs="$as_dir $as_dirs"
9689
as_dir=`(dirname "$as_dir") 2>/dev/null ||
9690
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9691
X"$as_dir" : 'X\(//\)[^/]' \| \
9692
X"$as_dir" : 'X\(//\)$' \| \
9693
X"$as_dir" : 'X\(/\)' \| \
9694
. : '\(.\)' 2>/dev/null ||
9696
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9697
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
9698
/^X\(\/\/\)$/{ s//\1/; q; }
9699
/^X\(\/\).*/{ s//\1/; q; }
9702
test ! -n "$as_dirs" || mkdir $as_dirs
9703
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9704
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9705
{ (exit 1); exit 1; }; }; }
9709
if test "$ac_dir" != .; then
9710
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9711
# A "../" for each directory in $ac_dir_suffix.
9712
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9714
ac_dir_suffix= ac_top_builddir=
9718
.) # No --srcdir option. We are building in place.
9720
if test -z "$ac_top_builddir"; then
9723
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9725
[\\/]* | ?:[\\/]* ) # Absolute path.
9726
ac_srcdir=$srcdir$ac_dir_suffix;
9727
ac_top_srcdir=$srcdir ;;
9729
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9730
ac_top_srcdir=$ac_top_builddir$srcdir ;;
9733
# Do not use `cd foo && pwd` to compute absolute paths, because
9734
# the directories may not exist.
9736
.) ac_abs_builddir="$ac_dir";;
9739
.) ac_abs_builddir=`pwd`;;
9740
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9741
*) ac_abs_builddir=`pwd`/"$ac_dir";;
9744
case $ac_abs_builddir in
9745
.) ac_abs_top_builddir=${ac_top_builddir}.;;
9747
case ${ac_top_builddir}. in
9748
.) ac_abs_top_builddir=$ac_abs_builddir;;
9749
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9750
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9753
case $ac_abs_builddir in
9754
.) ac_abs_srcdir=$ac_srcdir;;
9757
.) ac_abs_srcdir=$ac_abs_builddir;;
9758
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9759
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9762
case $ac_abs_builddir in
9763
.) ac_abs_top_srcdir=$ac_top_srcdir;;
9765
case $ac_top_srcdir in
9766
.) ac_abs_top_srcdir=$ac_abs_builddir;;
9767
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9768
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9773
{ echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9774
echo "$as_me: executing $ac_dest commands" >&6;}
9776
depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
9777
# Strip MF so we end up with the name of the file.
9778
mf=`echo "$mf" | sed -e 's/:.*$//'`
9779
# Check whether this is an Automake generated Makefile or not.
9780
# We used to match only the files named `Makefile.in', but
9781
# some people rename them; so instead we look at the file content.
9782
# Grep'ing the first line is not enough: some people post-process
9783
# each Makefile.in and add a new line on top of each file to say so.
9784
# So let's grep whole file.
9785
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
9786
dirpart=`(dirname "$mf") 2>/dev/null ||
9787
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9788
X"$mf" : 'X\(//\)[^/]' \| \
9789
X"$mf" : 'X\(//\)$' \| \
9790
X"$mf" : 'X\(/\)' \| \
9791
. : '\(.\)' 2>/dev/null ||
9793
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9794
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
9795
/^X\(\/\/\)$/{ s//\1/; q; }
9796
/^X\(\/\).*/{ s//\1/; q; }
9801
grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
9802
# Extract the definition of DEP_FILES from the Makefile without
9804
DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
9805
test -z "$DEPDIR" && continue
9806
# When using ansi2knr, U may be empty or an underscore; expand it
9807
U=`sed -n -e '/^U = / s///p' < "$mf"`
9808
test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
9809
# We invoke sed twice because it is the simplest approach to
9810
# changing $(DEPDIR) to its actual value in the expansion.
9811
for file in `sed -n -e '
9812
/^DEP_FILES = .*\\\\$/ {
9821
/^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
9822
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9823
# Make sure the directory exists.
9824
test -f "$dirpart/$file" && continue
9825
fdir=`(dirname "$file") 2>/dev/null ||
9826
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9827
X"$file" : 'X\(//\)[^/]' \| \
9828
X"$file" : 'X\(//\)$' \| \
9829
X"$file" : 'X\(/\)' \| \
9830
. : '\(.\)' 2>/dev/null ||
9832
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9833
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
9834
/^X\(\/\/\)$/{ s//\1/; q; }
9835
/^X\(\/\).*/{ s//\1/; q; }
9837
{ if $as_mkdir_p; then
9838
mkdir -p $dirpart/$fdir
9840
as_dir=$dirpart/$fdir
9842
while test ! -d "$as_dir"; do
9843
as_dirs="$as_dir $as_dirs"
9844
as_dir=`(dirname "$as_dir") 2>/dev/null ||
9845
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9846
X"$as_dir" : 'X\(//\)[^/]' \| \
9847
X"$as_dir" : 'X\(//\)$' \| \
9848
X"$as_dir" : 'X\(/\)' \| \
9849
. : '\(.\)' 2>/dev/null ||
9851
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9852
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
9853
/^X\(\/\/\)$/{ s//\1/; q; }
9854
/^X\(\/\).*/{ s//\1/; q; }
9857
test ! -n "$as_dirs" || mkdir $as_dirs
9858
fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
9859
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
9860
{ (exit 1); exit 1; }; }; }
9862
# echo "creating $dirpart/$file"
9863
echo '# dummy' > "$dirpart/$file"
9871
cat >>$CONFIG_STATUS <<\_ACEOF
9873
{ (exit 0); exit 0; }
9875
chmod +x $CONFIG_STATUS
9876
ac_clean_files=$ac_clean_files_save
9879
# configure is writing to config.log, and then calls config.status.
9880
# config.status does its own redirection, appending to config.log.
9881
# Unfortunately, on DOS this fails, as config.log is still kept open
9882
# by configure, so config.status won't be able to write to it; its
9883
# output is simply discarded. So we exec the FD to /dev/null,
9884
# effectively closing config.log, so it can be properly (re)opened and
9885
# appended to by config.status. When coming back to configure, we
9886
# need to make the FD available again.
9887
if test "$no_create" != yes; then
9889
ac_config_status_args=
9890
test "$silent" = yes &&
9891
ac_config_status_args="$ac_config_status_args --quiet"
9893
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9895
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
9896
# would make configure fail if this is the last instruction.
9897
$ac_cs_success || { (exit 1); exit 1; }